Skip to content

Commit 25e39e6

Browse files
fix(api): Update /v2/auth_rules/results endpoint parameter naming and action types
1 parent 638e66d commit 25e39e6

10 files changed

Lines changed: 42 additions & 42 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 177
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-32c9a538495a2c820a7ca28c4f09cc1226642b8f7c9422ce1889aebd15e225ca.yml
3-
openapi_spec_hash: b6403689900263b73d4054a548f00285
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fe39002b6b38eb33ba43532f28e317bdd4dbb5b0efd46fa098178cb6a544d585.yml
3+
openapi_spec_hash: 8ee7b837e77df089ca3359b5502c7525
44
config_hash: 693dddc4721eef512d75ab6c60897794

lib/lithic/models/auth_rules/v2_list_results_params.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class V2ListResultsParams < Lithic::Internal::Type::BaseModel
2121
# @return [String, nil]
2222
optional :ending_before, String
2323

24-
# @!attribute event_uuid
25-
# Filter by event UUID
24+
# @!attribute event_token
25+
# Filter by event token
2626
#
2727
# @return [String, nil]
28-
optional :event_uuid, String
28+
optional :event_token, String
2929

3030
# @!attribute has_actions
3131
# Filter by whether the rule evaluation produced any actions. When not provided,
@@ -47,15 +47,15 @@ class V2ListResultsParams < Lithic::Internal::Type::BaseModel
4747
# @return [String, nil]
4848
optional :starting_after, String
4949

50-
# @!method initialize(auth_rule_token: nil, ending_before: nil, event_uuid: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
50+
# @!method initialize(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
5151
# Some parameter documentations has been truncated, see
5252
# {Lithic::Models::AuthRules::V2ListResultsParams} for more details.
5353
#
5454
# @param auth_rule_token [String] Filter by Auth Rule token
5555
#
5656
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
5757
#
58-
# @param event_uuid [String] Filter by event UUID
58+
# @param event_token [String] Filter by event token
5959
#
6060
# @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
6161
#

lib/lithic/models/auth_rules/v2_list_results_response.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class V2ListResultsResponse < Lithic::Internal::Type::BaseModel
1414
# @!attribute actions
1515
# Actions returned by the rule evaluation
1616
#
17-
# @return [Array<Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction>]
17+
# @return [Array<Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction>]
1818
required :actions,
1919
-> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2ListResultsResponse::Action] }
2020

@@ -59,7 +59,7 @@ class V2ListResultsResponse < Lithic::Internal::Type::BaseModel
5959
#
6060
# @param token [String] Globally unique identifier for the evaluation
6161
#
62-
# @param actions [Array<Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction>] Actions returned by the rule evaluation
62+
# @param actions [Array<Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction>] Actions returned by the rule evaluation
6363
#
6464
# @param auth_rule_token [String] The Auth Rule token
6565
#
@@ -78,7 +78,7 @@ module Action
7878

7979
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction }
8080

81-
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction }
81+
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction }
8282

8383
variant -> { Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction }
8484

@@ -99,7 +99,7 @@ class AuthorizationAction < Lithic::Internal::Type::BaseModel
9999
# @param explanation [String] Optional explanation for why this action was taken
100100
end
101101

102-
class ThreeDSAction < Lithic::Internal::Type::BaseModel
102+
class Authentication3DSAction < Lithic::Internal::Type::BaseModel
103103
# @!attribute explanation
104104
# Optional explanation for why this action was taken
105105
#
@@ -369,7 +369,7 @@ module Type
369369
end
370370

371371
# @!method self.variants
372-
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction)]
372+
# @return [Array(Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction, Lithic::Models::AuthRules::V2ListResultsResponse::Action::ReturnAction)]
373373
end
374374

375375
# The state of the Auth Rule

lib/lithic/resources/auth_rules/v2.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ def draft(auth_rule_token, params = {})
206206
# **Limitations:**
207207
#
208208
# - Results are available for the past 3 months only
209-
# - At least one filter (`event_uuid` or `auth_rule_token`) must be provided
210-
# - When filtering by `event_uuid`, pagination is not supported
209+
# - At least one filter (`event_token` or `auth_rule_token`) must be provided
210+
# - When filtering by `event_token`, pagination is not supported
211211
#
212-
# @overload list_results(auth_rule_token: nil, ending_before: nil, event_uuid: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
212+
# @overload list_results(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
213213
#
214214
# @param auth_rule_token [String] Filter by Auth Rule token
215215
#
216216
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
217217
#
218-
# @param event_uuid [String] Filter by event UUID
218+
# @param event_token [String] Filter by event token
219219
#
220220
# @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
221221
#

rbi/lithic/models/auth_rules/v2_list_results_params.rbi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ module Lithic
3030
sig { params(ending_before: String).void }
3131
attr_writer :ending_before
3232

33-
# Filter by event UUID
33+
# Filter by event token
3434
sig { returns(T.nilable(String)) }
35-
attr_reader :event_uuid
35+
attr_reader :event_token
3636

37-
sig { params(event_uuid: String).void }
38-
attr_writer :event_uuid
37+
sig { params(event_token: String).void }
38+
attr_writer :event_token
3939

4040
# Filter by whether the rule evaluation produced any actions. When not provided,
4141
# all results are returned.
@@ -64,7 +64,7 @@ module Lithic
6464
params(
6565
auth_rule_token: String,
6666
ending_before: String,
67-
event_uuid: String,
67+
event_token: String,
6868
has_actions: T::Boolean,
6969
page_size: Integer,
7070
starting_after: String,
@@ -77,8 +77,8 @@ module Lithic
7777
# A cursor representing an item's token before which a page of results should end.
7878
# Used to retrieve the previous page of results before this item.
7979
ending_before: nil,
80-
# Filter by event UUID
81-
event_uuid: nil,
80+
# Filter by event token
81+
event_token: nil,
8282
# Filter by whether the rule evaluation produced any actions. When not provided,
8383
# all results are returned.
8484
has_actions: nil,
@@ -96,7 +96,7 @@ module Lithic
9696
{
9797
auth_rule_token: String,
9898
ending_before: String,
99-
event_uuid: String,
99+
event_token: String,
100100
has_actions: T::Boolean,
101101
page_size: Integer,
102102
starting_after: String,

rbi/lithic/models/auth_rules/v2_list_results_response.rbi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module Lithic
6262
T::Array[
6363
T.any(
6464
Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction::OrHash,
65-
Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction::OrHash,
65+
Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction::OrHash,
6666
Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction::OrHash,
6767
Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction::OrHash,
6868
Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction::OrHash,
@@ -126,7 +126,7 @@ module Lithic
126126
T.type_alias do
127127
T.any(
128128
Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction,
129-
Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction,
129+
Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction,
130130
Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction,
131131
Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction,
132132
Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction,
@@ -162,11 +162,11 @@ module Lithic
162162
end
163163
end
164164

165-
class ThreeDSAction < Lithic::Internal::Type::BaseModel
165+
class Authentication3DSAction < Lithic::Internal::Type::BaseModel
166166
OrHash =
167167
T.type_alias do
168168
T.any(
169-
Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction,
169+
Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction,
170170
Lithic::Internal::AnyHash
171171
)
172172
end

rbi/lithic/resources/auth_rules/v2.rbi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ module Lithic
203203
# **Limitations:**
204204
#
205205
# - Results are available for the past 3 months only
206-
# - At least one filter (`event_uuid` or `auth_rule_token`) must be provided
207-
# - When filtering by `event_uuid`, pagination is not supported
206+
# - At least one filter (`event_token` or `auth_rule_token`) must be provided
207+
# - When filtering by `event_token`, pagination is not supported
208208
sig do
209209
params(
210210
auth_rule_token: String,
211211
ending_before: String,
212-
event_uuid: String,
212+
event_token: String,
213213
has_actions: T::Boolean,
214214
page_size: Integer,
215215
starting_after: String,
@@ -226,8 +226,8 @@ module Lithic
226226
# A cursor representing an item's token before which a page of results should end.
227227
# Used to retrieve the previous page of results before this item.
228228
ending_before: nil,
229-
# Filter by event UUID
230-
event_uuid: nil,
229+
# Filter by event token
230+
event_token: nil,
231231
# Filter by whether the rule evaluation produced any actions. When not provided,
232232
# all results are returned.
233233
has_actions: nil,

sig/lithic/models/auth_rules/v2_list_results_params.rbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Lithic
55
{
66
auth_rule_token: String,
77
ending_before: String,
8-
event_uuid: String,
8+
event_token: String,
99
has_actions: bool,
1010
page_size: Integer,
1111
starting_after: String
@@ -24,9 +24,9 @@ module Lithic
2424

2525
def ending_before=: (String) -> String
2626

27-
attr_reader event_uuid: String?
27+
attr_reader event_token: String?
2828

29-
def event_uuid=: (String) -> String
29+
def event_token=: (String) -> String
3030

3131
attr_reader has_actions: bool?
3232

@@ -43,7 +43,7 @@ module Lithic
4343
def initialize: (
4444
?auth_rule_token: String,
4545
?ending_before: String,
46-
?event_uuid: String,
46+
?event_token: String,
4747
?has_actions: bool,
4848
?page_size: Integer,
4949
?starting_after: String,
@@ -53,7 +53,7 @@ module Lithic
5353
def to_hash: -> {
5454
auth_rule_token: String,
5555
ending_before: String,
56-
event_uuid: String,
56+
event_token: String,
5757
has_actions: bool,
5858
page_size: Integer,
5959
starting_after: String,

sig/lithic/models/auth_rules/v2_list_results_response.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module Lithic
5454

5555
type action =
5656
Lithic::Models::AuthRules::V2ListResultsResponse::Action::AuthorizationAction
57-
| Lithic::Models::AuthRules::V2ListResultsResponse::Action::ThreeDSAction
57+
| Lithic::Models::AuthRules::V2ListResultsResponse::Action::Authentication3DSAction
5858
| Lithic::Models::AuthRules::V2ListResultsResponse::Action::DeclineAction
5959
| Lithic::Models::AuthRules::V2ListResultsResponse::Action::RequireTfaAction
6060
| Lithic::Models::AuthRules::V2ListResultsResponse::Action::ApproveAction
@@ -75,9 +75,9 @@ module Lithic
7575
def to_hash: -> { explanation: String }
7676
end
7777

78-
type three_ds_action = { explanation: String }
78+
type authentication3_ds_action = { explanation: String }
7979

80-
class ThreeDSAction < Lithic::Internal::Type::BaseModel
80+
class Authentication3DSAction < Lithic::Internal::Type::BaseModel
8181
attr_reader explanation: String?
8282

8383
def explanation=: (String) -> String

sig/lithic/resources/auth_rules/v2.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module Lithic
6161
def list_results: (
6262
?auth_rule_token: String,
6363
?ending_before: String,
64-
?event_uuid: String,
64+
?event_token: String,
6565
?has_actions: bool,
6666
?page_size: Integer,
6767
?starting_after: String,

0 commit comments

Comments
 (0)