Skip to content

Commit 4d1ee57

Browse files
feat(api): support event_streams in auth_rules list endpoint
1 parent cdb319c commit 4d1ee57

File tree

6 files changed

+23
-34
lines changed

6 files changed

+23
-34
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-abe6a4f82f696099fa8ecb1cc44f08979e17d56578ae7ea68b0e9182e21df508.yml
33
openapi_spec_hash: d2ce51592a9a234c6f34a1168a31f91f
4-
config_hash: ba3fbfc99a1b8635d9e79e9e49d12952
4+
config_hash: 739714a3fead0b26ee3a3b7bc51081f6

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Types:
8080
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalOperation</a></code>
8181
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalTokenizationActionParameters</a></code>
8282
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalValue</a></code>
83+
- <code><a href="./src/resources/auth-rules/v2/v2.ts">EventStream</a></code>
8384
- <code><a href="./src/resources/auth-rules/v2/v2.ts">MerchantLockParameters</a></code>
8485
- <code><a href="./src/resources/auth-rules/v2/v2.ts">RuleStats</a></code>
8586
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParams</a></code>

src/resources/auth-rules/auth-rules.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
ConditionalOperation,
1515
ConditionalTokenizationActionParameters,
1616
ConditionalValue,
17+
EventStream,
1718
MerchantLockParameters,
1819
RuleStats,
1920
V2,
@@ -48,6 +49,7 @@ export declare namespace AuthRules {
4849
type ConditionalOperation as ConditionalOperation,
4950
type ConditionalTokenizationActionParameters as ConditionalTokenizationActionParameters,
5051
type ConditionalValue as ConditionalValue,
52+
type EventStream as EventStream,
5153
type MerchantLockParameters as MerchantLockParameters,
5254
type RuleStats as RuleStats,
5355
type VelocityLimitParams as VelocityLimitParams,

src/resources/auth-rules/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export {
1313
type ConditionalOperation,
1414
type ConditionalTokenizationActionParameters,
1515
type ConditionalValue,
16+
type EventStream,
1617
type MerchantLockParameters,
1718
type RuleStats,
1819
type VelocityLimitParams,

src/resources/auth-rules/v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export {
1919
type ConditionalOperation,
2020
type ConditionalTokenizationActionParameters,
2121
type ConditionalValue,
22+
type EventStream,
2223
type MerchantLockParameters,
2324
type RuleStats,
2425
type VelocityLimitParams,

src/resources/auth-rules/v2/v2.ts

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,7 @@ export interface AuthRule {
151151
/**
152152
* The event stream during which the rule will be evaluated.
153153
*/
154-
event_stream:
155-
| 'AUTHORIZATION'
156-
| 'THREE_DS_AUTHENTICATION'
157-
| 'TOKENIZATION'
158-
| 'ACH_CREDIT_RECEIPT'
159-
| 'ACH_DEBIT_RECEIPT';
154+
event_stream: EventStream;
160155

161156
/**
162157
* Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
@@ -823,6 +818,16 @@ export namespace ConditionalTokenizationActionParameters {
823818
*/
824819
export type ConditionalValue = string | number | Array<string> | (string & {});
825820

821+
/**
822+
* The event stream during which the rule will be evaluated.
823+
*/
824+
export type EventStream =
825+
| 'AUTHORIZATION'
826+
| 'THREE_DS_AUTHENTICATION'
827+
| 'TOKENIZATION'
828+
| 'ACH_CREDIT_RECEIPT'
829+
| 'ACH_DEBIT_RECEIPT';
830+
826831
export interface MerchantLockParameters {
827832
/**
828833
* A list of merchant locks defining specific merchants or groups of merchants
@@ -1265,12 +1270,7 @@ export declare namespace V2CreateParams {
12651270
/**
12661271
* The event stream during which the rule will be evaluated.
12671272
*/
1268-
event_stream?:
1269-
| 'AUTHORIZATION'
1270-
| 'THREE_DS_AUTHENTICATION'
1271-
| 'TOKENIZATION'
1272-
| 'ACH_CREDIT_RECEIPT'
1273-
| 'ACH_DEBIT_RECEIPT';
1273+
event_stream?: EventStream;
12741274

12751275
/**
12761276
* Auth Rule Name
@@ -1313,12 +1313,7 @@ export declare namespace V2CreateParams {
13131313
/**
13141314
* The event stream during which the rule will be evaluated.
13151315
*/
1316-
event_stream?:
1317-
| 'AUTHORIZATION'
1318-
| 'THREE_DS_AUTHENTICATION'
1319-
| 'TOKENIZATION'
1320-
| 'ACH_CREDIT_RECEIPT'
1321-
| 'ACH_DEBIT_RECEIPT';
1316+
event_stream?: EventStream;
13221317

13231318
/**
13241319
* Auth Rule Name
@@ -1361,12 +1356,7 @@ export declare namespace V2CreateParams {
13611356
/**
13621357
* The event stream during which the rule will be evaluated.
13631358
*/
1364-
event_stream?:
1365-
| 'AUTHORIZATION'
1366-
| 'THREE_DS_AUTHENTICATION'
1367-
| 'TOKENIZATION'
1368-
| 'ACH_CREDIT_RECEIPT'
1369-
| 'ACH_DEBIT_RECEIPT';
1359+
event_stream?: EventStream;
13701360

13711361
/**
13721362
* Card tokens to which the Auth Rule does not apply.
@@ -1480,21 +1470,14 @@ export interface V2ListParams extends CursorPageParams {
14801470
* Deprecated: Use event_streams instead. Only return Auth rules that are executed
14811471
* during the provided event stream.
14821472
*/
1483-
event_stream?:
1484-
| 'AUTHORIZATION'
1485-
| 'THREE_DS_AUTHENTICATION'
1486-
| 'TOKENIZATION'
1487-
| 'ACH_CREDIT_RECEIPT'
1488-
| 'ACH_DEBIT_RECEIPT';
1473+
event_stream?: EventStream;
14891474

14901475
/**
14911476
* Only return Auth rules that are executed during any of the provided event
14921477
* streams. If event_streams and event_stream are specified, the values will be
14931478
* combined.
14941479
*/
1495-
event_streams?: Array<
1496-
'AUTHORIZATION' | 'THREE_DS_AUTHENTICATION' | 'TOKENIZATION' | 'ACH_CREDIT_RECEIPT' | 'ACH_DEBIT_RECEIPT'
1497-
>;
1480+
event_streams?: Array<EventStream>;
14981481

14991482
/**
15001483
* Only return Auth Rules that are bound to the provided scope.
@@ -1549,6 +1532,7 @@ export declare namespace V2 {
15491532
type ConditionalOperation as ConditionalOperation,
15501533
type ConditionalTokenizationActionParameters as ConditionalTokenizationActionParameters,
15511534
type ConditionalValue as ConditionalValue,
1535+
type EventStream as EventStream,
15521536
type MerchantLockParameters as MerchantLockParameters,
15531537
type RuleStats as RuleStats,
15541538
type VelocityLimitParams as VelocityLimitParams,

0 commit comments

Comments
 (0)