@@ -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 */
824819export 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+
826831export 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