Skip to content

Commit e50dd4d

Browse files
fix(api): Update /v2/auth_rules/results endpoint parameter naming and action types
1 parent aea1658 commit e50dd4d

5 files changed

Lines changed: 19 additions & 19 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: 176
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

src/lithic/resources/auth_rules/v2/v2.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def list_results(
632632
*,
633633
auth_rule_token: str | Omit = omit,
634634
ending_before: str | Omit = omit,
635-
event_uuid: str | Omit = omit,
635+
event_token: str | Omit = omit,
636636
has_actions: bool | Omit = omit,
637637
page_size: int | Omit = omit,
638638
starting_after: str | Omit = omit,
@@ -649,16 +649,16 @@ def list_results(
649649
**Limitations:**
650650
651651
- Results are available for the past 3 months only
652-
- At least one filter (`event_uuid` or `auth_rule_token`) must be provided
653-
- When filtering by `event_uuid`, pagination is not supported
652+
- At least one filter (`event_token` or `auth_rule_token`) must be provided
653+
- When filtering by `event_token`, pagination is not supported
654654
655655
Args:
656656
auth_rule_token: Filter by Auth Rule token
657657
658658
ending_before: A cursor representing an item's token before which a page of results should end.
659659
Used to retrieve the previous page of results before this item.
660660
661-
event_uuid: Filter by event UUID
661+
event_token: Filter by event token
662662
663663
has_actions: Filter by whether the rule evaluation produced any actions. When not provided,
664664
all results are returned.
@@ -688,7 +688,7 @@ def list_results(
688688
{
689689
"auth_rule_token": auth_rule_token,
690690
"ending_before": ending_before,
691-
"event_uuid": event_uuid,
691+
"event_token": event_token,
692692
"has_actions": has_actions,
693693
"page_size": page_size,
694694
"starting_after": starting_after,
@@ -1437,7 +1437,7 @@ def list_results(
14371437
*,
14381438
auth_rule_token: str | Omit = omit,
14391439
ending_before: str | Omit = omit,
1440-
event_uuid: str | Omit = omit,
1440+
event_token: str | Omit = omit,
14411441
has_actions: bool | Omit = omit,
14421442
page_size: int | Omit = omit,
14431443
starting_after: str | Omit = omit,
@@ -1454,16 +1454,16 @@ def list_results(
14541454
**Limitations:**
14551455
14561456
- Results are available for the past 3 months only
1457-
- At least one filter (`event_uuid` or `auth_rule_token`) must be provided
1458-
- When filtering by `event_uuid`, pagination is not supported
1457+
- At least one filter (`event_token` or `auth_rule_token`) must be provided
1458+
- When filtering by `event_token`, pagination is not supported
14591459
14601460
Args:
14611461
auth_rule_token: Filter by Auth Rule token
14621462
14631463
ending_before: A cursor representing an item's token before which a page of results should end.
14641464
Used to retrieve the previous page of results before this item.
14651465
1466-
event_uuid: Filter by event UUID
1466+
event_token: Filter by event token
14671467
14681468
has_actions: Filter by whether the rule evaluation produced any actions. When not provided,
14691469
all results are returned.
@@ -1493,7 +1493,7 @@ def list_results(
14931493
{
14941494
"auth_rule_token": auth_rule_token,
14951495
"ending_before": ending_before,
1496-
"event_uuid": event_uuid,
1496+
"event_token": event_token,
14971497
"has_actions": has_actions,
14981498
"page_size": page_size,
14991499
"starting_after": starting_after,

src/lithic/types/auth_rules/v2_list_results_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class V2ListResultsParams(TypedDict, total=False):
1717
Used to retrieve the previous page of results before this item.
1818
"""
1919

20-
event_uuid: str
21-
"""Filter by event UUID"""
20+
event_token: str
21+
"""Filter by event token"""
2222

2323
has_actions: bool
2424
"""Filter by whether the rule evaluation produced any actions.

src/lithic/types/auth_rules/v2_list_results_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"V2ListResultsResponse",
1212
"Action",
1313
"ActionAuthorizationAction",
14-
"ActionThreeDSAction",
14+
"ActionAuthentication3DSAction",
1515
"ActionDeclineAction",
1616
"ActionRequireTfaAction",
1717
"ActionApproveAction",
@@ -24,7 +24,7 @@ class ActionAuthorizationAction(BaseModel):
2424
"""Optional explanation for why this action was taken"""
2525

2626

27-
class ActionThreeDSAction(BaseModel):
27+
class ActionAuthentication3DSAction(BaseModel):
2828
explanation: Optional[str] = None
2929
"""Optional explanation for why this action was taken"""
3030

@@ -169,7 +169,7 @@ class ActionReturnAction(BaseModel):
169169

170170
Action: TypeAlias = Union[
171171
ActionAuthorizationAction,
172-
ActionThreeDSAction,
172+
ActionAuthentication3DSAction,
173173
ActionDeclineAction,
174174
ActionRequireTfaAction,
175175
ActionApproveAction,

tests/api_resources/auth_rules/test_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def test_method_list_results_with_all_params(self, client: Lithic) -> None:
589589
v2 = client.auth_rules.v2.list_results(
590590
auth_rule_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
591591
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
592-
event_uuid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
592+
event_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
593593
has_actions=True,
594594
page_size=1,
595595
starting_after="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
@@ -1318,7 +1318,7 @@ async def test_method_list_results_with_all_params(self, async_client: AsyncLith
13181318
v2 = await async_client.auth_rules.v2.list_results(
13191319
auth_rule_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
13201320
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
1321-
event_uuid="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
1321+
event_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
13221322
has_actions=True,
13231323
page_size=1,
13241324
starting_after="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",

0 commit comments

Comments
 (0)