@@ -135,8 +135,8 @@ func (r *AuthRuleV2Service) Draft(ctx context.Context, authRuleToken string, bod
135135// **Limitations:**
136136//
137137// - Results are available for the past 3 months only
138- // - At least one filter (`event_uuid ` or `auth_rule_token`) must be provided
139- // - When filtering by `event_uuid `, pagination is not supported
138+ // - At least one filter (`event_token ` or `auth_rule_token`) must be provided
139+ // - When filtering by `event_token `, pagination is not supported
140140func (r * AuthRuleV2Service ) ListResults (ctx context.Context , query AuthRuleV2ListResultsParams , opts ... option.RequestOption ) (res * pagination.CursorPage [AuthRuleV2ListResultsResponse ], err error ) {
141141 var raw * http.Response
142142 opts = slices .Concat (r .Options , opts )
@@ -159,8 +159,8 @@ func (r *AuthRuleV2Service) ListResults(ctx context.Context, query AuthRuleV2Lis
159159// **Limitations:**
160160//
161161// - Results are available for the past 3 months only
162- // - At least one filter (`event_uuid ` or `auth_rule_token`) must be provided
163- // - When filtering by `event_uuid `, pagination is not supported
162+ // - At least one filter (`event_token ` or `auth_rule_token`) must be provided
163+ // - When filtering by `event_token `, pagination is not supported
164164func (r * AuthRuleV2Service ) ListResultsAutoPaging (ctx context.Context , query AuthRuleV2ListResultsParams , opts ... option.RequestOption ) * pagination.CursorPageAutoPager [AuthRuleV2ListResultsResponse ] {
165165 return pagination .NewCursorPageAutoPager (r .ListResults (ctx , query , opts ... ))
166166}
@@ -3008,7 +3008,7 @@ func (r *AuthRuleV2ListResultsResponseAction) UnmarshalJSON(data []byte) (err er
30083008//
30093009// Possible runtime types of the union are
30103010// [AuthRuleV2ListResultsResponseActionsAuthorizationAction],
3011- // [AuthRuleV2ListResultsResponseActionsThreeDSAction ],
3011+ // [AuthRuleV2ListResultsResponseActionsAuthentication3DSAction ],
30123012// [AuthRuleV2ListResultsResponseActionsDeclineAction],
30133013// [AuthRuleV2ListResultsResponseActionsRequireTfaAction],
30143014// [AuthRuleV2ListResultsResponseActionsApproveAction],
@@ -3018,7 +3018,7 @@ func (r AuthRuleV2ListResultsResponseAction) AsUnion() AuthRuleV2ListResultsResp
30183018}
30193019
30203020// Union satisfied by [AuthRuleV2ListResultsResponseActionsAuthorizationAction],
3021- // [AuthRuleV2ListResultsResponseActionsThreeDSAction ],
3021+ // [AuthRuleV2ListResultsResponseActionsAuthentication3DSAction ],
30223022// [AuthRuleV2ListResultsResponseActionsDeclineAction],
30233023// [AuthRuleV2ListResultsResponseActionsRequireTfaAction],
30243024// [AuthRuleV2ListResultsResponseActionsApproveAction] or
@@ -3037,7 +3037,7 @@ func init() {
30373037 },
30383038 apijson.UnionVariant {
30393039 TypeFilter : gjson .JSON ,
3040- Type : reflect .TypeOf (AuthRuleV2ListResultsResponseActionsThreeDSAction {}),
3040+ Type : reflect .TypeOf (AuthRuleV2ListResultsResponseActionsAuthentication3DSAction {}),
30413041 },
30423042 apijson.UnionVariant {
30433043 TypeFilter : gjson .JSON ,
@@ -3084,29 +3084,30 @@ func (r authRuleV2ListResultsResponseActionsAuthorizationActionJSON) RawJSON() s
30843084func (r AuthRuleV2ListResultsResponseActionsAuthorizationAction ) implementsAuthRuleV2ListResultsResponseAction () {
30853085}
30863086
3087- type AuthRuleV2ListResultsResponseActionsThreeDSAction struct {
3087+ type AuthRuleV2ListResultsResponseActionsAuthentication3DSAction struct {
30883088 // Optional explanation for why this action was taken
3089- Explanation string `json:"explanation"`
3090- JSON authRuleV2ListResultsResponseActionsThreeDSActionJSON `json:"-"`
3089+ Explanation string `json:"explanation"`
3090+ JSON authRuleV2ListResultsResponseActionsAuthentication3DsActionJSON `json:"-"`
30913091}
30923092
3093- // authRuleV2ListResultsResponseActionsThreeDSActionJSON contains the JSON metadata
3094- // for the struct [AuthRuleV2ListResultsResponseActionsThreeDSAction]
3095- type authRuleV2ListResultsResponseActionsThreeDSActionJSON struct {
3093+ // authRuleV2ListResultsResponseActionsAuthentication3DsActionJSON contains the
3094+ // JSON metadata for the struct
3095+ // [AuthRuleV2ListResultsResponseActionsAuthentication3DSAction]
3096+ type authRuleV2ListResultsResponseActionsAuthentication3DsActionJSON struct {
30963097 Explanation apijson.Field
30973098 raw string
30983099 ExtraFields map [string ]apijson.Field
30993100}
31003101
3101- func (r * AuthRuleV2ListResultsResponseActionsThreeDSAction ) UnmarshalJSON (data []byte ) (err error ) {
3102+ func (r * AuthRuleV2ListResultsResponseActionsAuthentication3DSAction ) UnmarshalJSON (data []byte ) (err error ) {
31023103 return apijson .UnmarshalRoot (data , r )
31033104}
31043105
3105- func (r authRuleV2ListResultsResponseActionsThreeDSActionJSON ) RawJSON () string {
3106+ func (r authRuleV2ListResultsResponseActionsAuthentication3DsActionJSON ) RawJSON () string {
31063107 return r .raw
31073108}
31083109
3109- func (r AuthRuleV2ListResultsResponseActionsThreeDSAction ) implementsAuthRuleV2ListResultsResponseAction () {
3110+ func (r AuthRuleV2ListResultsResponseActionsAuthentication3DSAction ) implementsAuthRuleV2ListResultsResponseAction () {
31103111}
31113112
31123113type AuthRuleV2ListResultsResponseActionsDeclineAction struct {
@@ -4517,8 +4518,8 @@ type AuthRuleV2ListResultsParams struct {
45174518 // A cursor representing an item's token before which a page of results should end.
45184519 // Used to retrieve the previous page of results before this item.
45194520 EndingBefore param.Field [string ] `query:"ending_before" format:"uuid"`
4520- // Filter by event UUID
4521- EventUuid param.Field [string ] `query:"event_uuid " format:"uuid"`
4521+ // Filter by event token
4522+ EventToken param.Field [string ] `query:"event_token " format:"uuid"`
45224523 // Filter by whether the rule evaluation produced any actions. When not provided,
45234524 // all results are returned.
45244525 HasActions param.Field [bool ] `query:"has_actions"`
0 commit comments