Skip to content

Commit 638e66d

Browse files
feat(api): Add /v2/auth_rules/results endpoint for listing rule evaluation data
1 parent a9a41d9 commit 638e66d

16 files changed

Lines changed: 2395 additions & 16 deletions

File tree

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fbdac41d84b5679c659e324345bc4101b056b5f5ed4ddefcd6680afe20db41dc.yml
3-
openapi_spec_hash: 37834cd63d604a528d0467c1cfb01919
4-
config_hash: 61652458521692cd0b88976827c42c25
1+
configured_endpoints: 177
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-32c9a538495a2c820a7ca28c4f09cc1226642b8f7c9422ce1889aebd15e225ca.yml
3+
openapi_spec_hash: b6403689900263b73d4054a548f00285
4+
config_hash: 693dddc4721eef512d75ab6c60897794

lib/lithic.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
require_relative "lithic/models/auth_rules/v2_delete_params"
128128
require_relative "lithic/models/auth_rules/v2_draft_params"
129129
require_relative "lithic/models/auth_rules/v2_list_params"
130+
require_relative "lithic/models/auth_rules/v2_list_results_params"
131+
require_relative "lithic/models/auth_rules/v2_list_results_response"
130132
require_relative "lithic/models/auth_rules/v2_promote_params"
131133
require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
132134
require_relative "lithic/models/auth_rules/v2_retrieve_features_response"

lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Models
55
module AuthRules
66
class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
77
# @!attribute action
8-
# The action to take if the conditions are met
8+
# The action to take if the conditions are met.
99
#
1010
# @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
1111
required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
@@ -17,11 +17,11 @@ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
1717
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
1818

1919
# @!method initialize(action:, conditions:)
20-
# @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
20+
# @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met.
2121
#
2222
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
2323

24-
# The action to take if the conditions are met
24+
# The action to take if the conditions are met.
2525
#
2626
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
2727
module Action

lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Models
55
module AuthRules
66
class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseModel
77
# @!attribute action
8-
# The action to take if the conditions are met
8+
# The action to take if the conditions are met.
99
#
1010
# @return [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction]
1111
required :action, union: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action }
@@ -17,11 +17,11 @@ class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseMode
1717
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition] }
1818

1919
# @!method initialize(action:, conditions:)
20-
# @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met
20+
# @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met.
2121
#
2222
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition>]
2323

24-
# The action to take if the conditions are met
24+
# The action to take if the conditions are met.
2525
#
2626
# @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters#action
2727
module Action
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# frozen_string_literal: true
2+
3+
module Lithic
4+
module Models
5+
module AuthRules
6+
# @see Lithic::Resources::AuthRules::V2#list_results
7+
class V2ListResultsParams < Lithic::Internal::Type::BaseModel
8+
extend Lithic::Internal::Type::RequestParameters::Converter
9+
include Lithic::Internal::Type::RequestParameters
10+
11+
# @!attribute auth_rule_token
12+
# Filter by Auth Rule token
13+
#
14+
# @return [String, nil]
15+
optional :auth_rule_token, String
16+
17+
# @!attribute ending_before
18+
# A cursor representing an item's token before which a page of results should end.
19+
# Used to retrieve the previous page of results before this item.
20+
#
21+
# @return [String, nil]
22+
optional :ending_before, String
23+
24+
# @!attribute event_uuid
25+
# Filter by event UUID
26+
#
27+
# @return [String, nil]
28+
optional :event_uuid, String
29+
30+
# @!attribute has_actions
31+
# Filter by whether the rule evaluation produced any actions. When not provided,
32+
# all results are returned.
33+
#
34+
# @return [Boolean, nil]
35+
optional :has_actions, Lithic::Internal::Type::Boolean
36+
37+
# @!attribute page_size
38+
# Page size (for pagination).
39+
#
40+
# @return [Integer, nil]
41+
optional :page_size, Integer
42+
43+
# @!attribute starting_after
44+
# A cursor representing an item's token after which a page of results should
45+
# begin. Used to retrieve the next page of results after this item.
46+
#
47+
# @return [String, nil]
48+
optional :starting_after, String
49+
50+
# @!method initialize(auth_rule_token: nil, ending_before: nil, event_uuid: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
51+
# Some parameter documentations has been truncated, see
52+
# {Lithic::Models::AuthRules::V2ListResultsParams} for more details.
53+
#
54+
# @param auth_rule_token [String] Filter by Auth Rule token
55+
#
56+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
57+
#
58+
# @param event_uuid [String] Filter by event UUID
59+
#
60+
# @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
61+
#
62+
# @param page_size [Integer] Page size (for pagination).
63+
#
64+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
65+
#
66+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
67+
end
68+
end
69+
end
70+
end

0 commit comments

Comments
 (0)