Skip to content

Commit 6b5a250

Browse files
feat(api): update via SDK Studio
1 parent a77b04f commit 6b5a250

11 files changed

Lines changed: 105 additions & 254 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: 166
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-bfc8c5f8203a4474e9d583c8f40319f35161331f5bfeaaece3ccf63770519502.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9f0265b7c9be88b8617e3330b7d3ef4a6211d73fe40d6293e05812339c6ae37a.yml
33
openapi_spec_hash: b638196f623d1b2a72ea0ad387c06b6a
4-
config_hash: aa02468405245f7c87df78e6cf07848b
4+
config_hash: cbf2b90f343214bd90c39f6fa9ede6b9

api.md

Lines changed: 3 additions & 0 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>
@@ -523,6 +524,8 @@ Methods:
523524

524525
Types:
525526

527+
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResponse</a></code>
528+
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResult</a></code>
526529
- <code><a href="./src/resources/three-ds/decisioning.ts">DecisioningRetrieveSecretResponse</a></code>
527530

528531
Methods:

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)