Skip to content

Commit 736c6eb

Browse files
feat(api): update via SDK Studio
1 parent 6f5fda9 commit 736c6eb

16 files changed

Lines changed: 106 additions & 446 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 166
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ea181df6344c4809973e9fdcdea61b6065b589010d3cb3284b3af18d38f61e60.yml
1+
configured_endpoints: 165
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a0d3bcd9c54616729a7e43847e3134205e0695d78f357cc7a25c2775b588dbbd.yml
33
openapi_spec_hash: 36c423c286ca426f7510b27fadbdd66f
4-
config_hash: aa02468405245f7c87df78e6cf07848b
4+
config_hash: 56632a1c934324aa46c1e5c610c2de85

api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Types:
7272
- <code><a href="./src/resources/auth-rules/v2/v2.ts">AuthRuleCondition</a></code>
7373
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalAttribute</a></code>
7474
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalBlockParameters</a></code>
75+
- <code><a href="./src/resources/auth-rules/v2/v2.ts">RuleStats</a></code>
7576
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParams</a></code>
7677
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParamsPeriodWindow</a></code>
7778
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2CreateResponse</a></code>
@@ -459,7 +460,6 @@ Types:
459460
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountListResponse</a></code>
460461
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryMicroDepositsResponse</a></code>
461462
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryPrenoteResponse</a></code>
462-
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountSetVerificationMethodResponse</a></code>
463463

464464
Methods:
465465

@@ -469,7 +469,6 @@ Methods:
469469
- <code title="get /v1/external_bank_accounts">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">list</a>({ ...params }) -> ExternalBankAccountListResponsesCursorPage</code>
470470
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/retry_micro_deposits">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">retryMicroDeposits</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountRetryMicroDepositsResponse</code>
471471
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/retry_prenote">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">retryPrenote</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountRetryPrenoteResponse</code>
472-
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/set_verification_method">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">setVerificationMethod</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountSetVerificationMethodResponse</code>
473472

474473
## MicroDeposits
475474

@@ -523,6 +522,8 @@ Methods:
523522

524523
Types:
525524

525+
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResponse</a></code>
526+
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResult</a></code>
526527
- <code><a href="./src/resources/three-ds/decisioning.ts">DecisioningRetrieveSecretResponse</a></code>
527528

528529
Methods:

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ import {
198198
ExternalBankAccountRetryMicroDepositsResponse,
199199
ExternalBankAccountRetryPrenoteParams,
200200
ExternalBankAccountRetryPrenoteResponse,
201-
ExternalBankAccountSetVerificationMethodParams,
202-
ExternalBankAccountSetVerificationMethodResponse,
203201
ExternalBankAccountUpdateParams,
204202
ExternalBankAccountUpdateResponse,
205203
ExternalBankAccounts,
@@ -715,14 +713,12 @@ export declare namespace Lithic {
715713
type ExternalBankAccountListResponse as ExternalBankAccountListResponse,
716714
type ExternalBankAccountRetryMicroDepositsResponse as ExternalBankAccountRetryMicroDepositsResponse,
717715
type ExternalBankAccountRetryPrenoteResponse as ExternalBankAccountRetryPrenoteResponse,
718-
type ExternalBankAccountSetVerificationMethodResponse as ExternalBankAccountSetVerificationMethodResponse,
719716
ExternalBankAccountListResponsesCursorPage as ExternalBankAccountListResponsesCursorPage,
720717
type ExternalBankAccountCreateParams as ExternalBankAccountCreateParams,
721718
type ExternalBankAccountUpdateParams as ExternalBankAccountUpdateParams,
722719
type ExternalBankAccountListParams as ExternalBankAccountListParams,
723720
type ExternalBankAccountRetryMicroDepositsParams as ExternalBankAccountRetryMicroDepositsParams,
724721
type ExternalBankAccountRetryPrenoteParams as ExternalBankAccountRetryPrenoteParams,
725-
type ExternalBankAccountSetVerificationMethodParams as ExternalBankAccountSetVerificationMethodParams,
726722
};
727723

728724
export {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
AuthRuleCondition,
88
ConditionalAttribute,
99
ConditionalBlockParameters,
10+
RuleStats,
1011
V2,
1112
V2ApplyParams,
1213
V2ApplyResponse,
@@ -42,6 +43,7 @@ export declare namespace AuthRules {
4243
type AuthRuleCondition as AuthRuleCondition,
4344
type ConditionalAttribute as ConditionalAttribute,
4445
type ConditionalBlockParameters as ConditionalBlockParameters,
46+
type RuleStats as RuleStats,
4547
type VelocityLimitParams as VelocityLimitParams,
4648
type VelocityLimitParamsPeriodWindow as VelocityLimitParamsPeriodWindow,
4749
type V2CreateResponse as V2CreateResponse,

src/resources/auth-rules/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export {
88
type AuthRuleCondition,
99
type ConditionalAttribute,
1010
type ConditionalBlockParameters,
11+
type RuleStats,
1112
type VelocityLimitParams,
1213
type VelocityLimitParamsPeriodWindow,
1314
type V2CreateResponse,

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

Lines changed: 3 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { APIResource } from '../../../resource';
44
import * as Core from '../../../core';
5+
import * as V2API from './v2';
56

67
export class Backtests extends APIResource {
78
/**
@@ -97,129 +98,9 @@ export interface BacktestResults {
9798

9899
export namespace BacktestResults {
99100
export interface Results {
100-
current_version?: Results.CurrentVersion | null;
101+
current_version?: V2API.RuleStats | null;
101102

102-
draft_version?: Results.DraftVersion | null;
103-
}
104-
105-
export namespace Results {
106-
export interface CurrentVersion {
107-
/**
108-
* The total number of historical transactions approved by this rule during the
109-
* relevant period, or the number of transactions that would have been approved if
110-
* the rule was evaluated in shadow mode.
111-
*/
112-
approved?: number;
113-
114-
/**
115-
* The total number of historical transactions challenged by this rule during the
116-
* relevant period, or the number of transactions that would have been challenged
117-
* if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
118-
* Rules.
119-
*/
120-
challenged?: number;
121-
122-
/**
123-
* The total number of historical transactions declined by this rule during the
124-
* relevant period, or the number of transactions that would have been declined if
125-
* the rule was evaluated in shadow mode.
126-
*/
127-
declined?: number;
128-
129-
/**
130-
* Example events and their outcomes.
131-
*/
132-
examples?: Array<CurrentVersion.Example>;
133-
134-
/**
135-
* The version of the rule, this is incremented whenever the rule's parameters
136-
* change.
137-
*/
138-
version?: number;
139-
}
140-
141-
export namespace CurrentVersion {
142-
export interface Example {
143-
/**
144-
* Whether the rule would have approved the request.
145-
*/
146-
approved?: boolean;
147-
148-
/**
149-
* The decision made by the rule for this event.
150-
*/
151-
decision?: 'APPROVED' | 'DECLINED' | 'CHALLENGED';
152-
153-
/**
154-
* The event token.
155-
*/
156-
event_token?: string;
157-
158-
/**
159-
* The timestamp of the event.
160-
*/
161-
timestamp?: string;
162-
}
163-
}
164-
165-
export interface DraftVersion {
166-
/**
167-
* The total number of historical transactions approved by this rule during the
168-
* relevant period, or the number of transactions that would have been approved if
169-
* the rule was evaluated in shadow mode.
170-
*/
171-
approved?: number;
172-
173-
/**
174-
* The total number of historical transactions challenged by this rule during the
175-
* relevant period, or the number of transactions that would have been challenged
176-
* if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
177-
* Rules.
178-
*/
179-
challenged?: number;
180-
181-
/**
182-
* The total number of historical transactions declined by this rule during the
183-
* relevant period, or the number of transactions that would have been declined if
184-
* the rule was evaluated in shadow mode.
185-
*/
186-
declined?: number;
187-
188-
/**
189-
* Example events and their outcomes.
190-
*/
191-
examples?: Array<DraftVersion.Example>;
192-
193-
/**
194-
* The version of the rule, this is incremented whenever the rule's parameters
195-
* change.
196-
*/
197-
version?: number;
198-
}
199-
200-
export namespace DraftVersion {
201-
export interface Example {
202-
/**
203-
* Whether the rule would have approved the request.
204-
*/
205-
approved?: boolean;
206-
207-
/**
208-
* The decision made by the rule for this event.
209-
*/
210-
decision?: 'APPROVED' | 'DECLINED' | 'CHALLENGED';
211-
212-
/**
213-
* The event token.
214-
*/
215-
event_token?: string;
216-
217-
/**
218-
* The timestamp of the event.
219-
*/
220-
timestamp?: string;
221-
}
222-
}
103+
draft_version?: V2API.RuleStats | null;
223104
}
224105

225106
export interface SimulationParameters {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export {
1313
type AuthRuleCondition,
1414
type ConditionalAttribute,
1515
type ConditionalBlockParameters,
16+
type RuleStats,
1617
type VelocityLimitParams,
1718
type VelocityLimitParamsPeriodWindow,
1819
type V2CreateResponse,

0 commit comments

Comments
 (0)