Skip to content

Commit 0b2cba4

Browse files
feat(api): api update
1 parent 8479aa6 commit 0b2cba4

21 files changed

Lines changed: 278 additions & 205 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 168
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury/modern-treasury-2e93e9d440e8d1d28e027d1d6d63a6e0c347507b46e80c7fe8f2ba24bcb8344b.yml
3-
openapi_spec_hash: d444e4359bd336b14539a2cd6eba585b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury/modern-treasury-477ba18aa6f9ff5f567f7fa38c2f49fcfa36e244ca3c9c379ce9f9244563e6bd.yml
3+
openapi_spec_hash: 3cc6078528a242d118b463bb743e0fd2
44
config_hash: ca358dc5d2d922c4af5c00eb04b5e060

packages/mcp-server/src/local-docs-search.ts

Lines changed: 58 additions & 55 deletions
Large diffs are not rendered by default.

src/resources/bulk-requests.ts

Lines changed: 2 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ export interface BulkRequestCreateParams {
158158
| BulkRequestCreateParams.ExpectedPaymentCreateRequest
159159
| Shared.LedgerTransactionCreateRequest
160160
| Shared.LedgerAccountCreateRequest
161-
| BulkRequestCreateParams.TransactionCreateRequest
161+
| unknown
162+
| unknown
162163
| BulkRequestCreateParams.ID
163164
| BulkRequestCreateParams.PaymentOrderUpdateRequestWithID
164165
| BulkRequestCreateParams.ExpectedPaymentUpdateRequestWithID
@@ -812,98 +813,6 @@ export namespace BulkRequestCreateParams {
812813
}
813814
}
814815

815-
export interface TransactionCreateRequest {
816-
/**
817-
* Value in specified currency's smallest unit. e.g. $10 would be represented
818-
* as 1000.
819-
*/
820-
amount: number;
821-
822-
/**
823-
* The date on which the transaction occurred.
824-
*/
825-
as_of_date: string | null;
826-
827-
/**
828-
* Either `credit` or `debit`.
829-
*/
830-
direction: string;
831-
832-
/**
833-
* The ID of the relevant Internal Account.
834-
*/
835-
internal_account_id: string;
836-
837-
/**
838-
* When applicable, the bank-given code that determines the transaction's category.
839-
* For most banks this is the BAI2/BTRS transaction code.
840-
*/
841-
vendor_code: string | null;
842-
843-
/**
844-
* The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
845-
* `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
846-
* `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`,
847-
* `us_bank`, or others.
848-
*/
849-
vendor_code_type: string | null;
850-
851-
/**
852-
* Additional data represented as key-value pairs. Both the key and value must be
853-
* strings.
854-
*/
855-
metadata?: { [key: string]: string };
856-
857-
/**
858-
* This field will be `true` if the transaction has posted to the account.
859-
*/
860-
posted?: boolean;
861-
862-
/**
863-
* The type of the transaction. Examples could be
864-
* `card, `ach`, `wire`, `check`, `rtp`, or `book`.
865-
*/
866-
type?:
867-
| 'ach'
868-
| 'au_becs'
869-
| 'bacs'
870-
| 'book'
871-
| 'card'
872-
| 'chats'
873-
| 'check'
874-
| 'cross_border'
875-
| 'dk_nets'
876-
| 'eft'
877-
| 'gb_fps'
878-
| 'masav'
879-
| 'mx_ccen'
880-
| 'neft'
881-
| 'nics'
882-
| 'nz_becs'
883-
| 'pl_elixir'
884-
| 'rtp'
885-
| 'se_bankgirot'
886-
| 'sepa'
887-
| 'sg_giro'
888-
| 'sic'
889-
| 'stablecoin'
890-
| 'wire'
891-
| 'zengin'
892-
| 'other'
893-
| null;
894-
895-
/**
896-
* An identifier given to this transaction by the bank, often `null`.
897-
*/
898-
vendor_customer_id?: string | null;
899-
900-
/**
901-
* The transaction detail text that often appears in on your bank statement and in
902-
* your banking portal.
903-
*/
904-
vendor_description?: string | null;
905-
}
906-
907816
export interface ID {
908817
id?: string;
909818
}

src/resources/connection-legal-entities.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ export namespace ConnectionLegalEntityCreateParams {
299299
*/
300300
suffix?: string | null;
301301

302+
/**
303+
* Acceptance of terms of use by the legal entity.
304+
*/
305+
terms_of_use?: LegalEntity.TermsOfUse | null;
306+
302307
/**
303308
* @deprecated Deprecated. Use `third_party_verifications` instead.
304309
*/
@@ -371,6 +376,22 @@ export namespace ConnectionLegalEntityCreateParams {
371376
*/
372377
registration_number: string;
373378
}
379+
380+
/**
381+
* Acceptance of terms of use by the legal entity.
382+
*/
383+
export interface TermsOfUse {
384+
/**
385+
* The ISO 8601 timestamp indicating when the terms of use were accepted.
386+
*/
387+
accepted_at?: string;
388+
389+
/**
390+
* The IP address from which the terms of use were accepted. Supports both IPv4 and
391+
* IPv6 formats.
392+
*/
393+
ip_address?: string;
394+
}
374395
}
375396
}
376397

src/resources/counterparties.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,11 @@ export namespace CounterpartyCreateParams {
668668
*/
669669
suffix?: string | null;
670670

671+
/**
672+
* Acceptance of terms of use by the legal entity.
673+
*/
674+
terms_of_use?: LegalEntity.TermsOfUse | null;
675+
671676
/**
672677
* @deprecated Deprecated. Use `third_party_verifications` instead.
673678
*/
@@ -740,6 +745,22 @@ export namespace CounterpartyCreateParams {
740745
*/
741746
registration_number: string;
742747
}
748+
749+
/**
750+
* Acceptance of terms of use by the legal entity.
751+
*/
752+
export interface TermsOfUse {
753+
/**
754+
* The ISO 8601 timestamp indicating when the terms of use were accepted.
755+
*/
756+
accepted_at?: string;
757+
758+
/**
759+
* The IP address from which the terms of use were accepted. Supports both IPv4 and
760+
* IPv6 formats.
761+
*/
762+
ip_address?: string;
763+
}
743764
}
744765
}
745766

src/resources/documents.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export interface Document {
4646

4747
discarded_at: string | null;
4848

49-
document_details: Array<Document.DocumentDetail>;
50-
5149
/**
5250
* A category given to the document, can be `null`.
5351
*/
@@ -96,28 +94,6 @@ export interface Document {
9694
}
9795

9896
export namespace Document {
99-
export interface DocumentDetail {
100-
id: string;
101-
102-
created_at: string;
103-
104-
discarded_at: string | null;
105-
106-
document_identifier: string;
107-
108-
document_identifier_type: string;
109-
110-
/**
111-
* This field will be true if this object exists in the live environment or false
112-
* if it exists in the test environment.
113-
*/
114-
live_mode: boolean;
115-
116-
object: string;
117-
118-
updated_at: string;
119-
}
120-
12197
export interface File {
12298
/**
12399
* The MIME content type of the document.

src/resources/holds.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,17 @@ export interface HoldListParams extends PageParams {
305305
metadata?: { [key: string]: string };
306306

307307
/**
308-
* Translation missing: en.openapi.descriptions.payment_order.query_params.status
308+
* Only return holds for a specific status.
309309
*/
310310
status?: 'active' | 'resolved' | null;
311311

312312
/**
313-
* Translation missing:
314-
* en.openapi.descriptions.payment_order.query_params.target_id
313+
* Only return holds for a specific target ID.
315314
*/
316315
target_id?: string | null;
317316

318317
/**
319-
* Translation missing:
320-
* en.openapi.descriptions.payment_order.query_params.target_type
318+
* Only return holds for a specific target type.
321319
*/
322320
target_type?: 'payment_order' | null;
323321
}

src/resources/internal-accounts/balance-reports.ts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class BalanceReports extends APIResource {
2323
* balance_report_type: 'intraday',
2424
* balances: [
2525
* {
26-
* amount: 0,
2726
* balance_type: 'closing_available',
2827
* vendor_code: 'vendor_code',
2928
* vendor_code_type: 'vendor_code_type',
@@ -125,7 +124,7 @@ export interface BalanceReport {
125124
/**
126125
* The time (24-hour clock) of the balance report in local time.
127126
*/
128-
as_of_time: string | null;
127+
as_of_time: string;
129128

130129
/**
131130
* The specific type of balance report. One of `intraday`, `previous_day`,
@@ -165,6 +164,12 @@ export namespace BalanceReport {
165164
*/
166165
amount: number;
167166

167+
/**
168+
* The amount of the balance as a string, preserving full precision for values that
169+
* may exceed safe integer limits in some languages.
170+
*/
171+
amount_string: string;
172+
168173
/**
169174
* The date on which the balance became true for the account.
170175
*/
@@ -254,11 +259,6 @@ export interface BalanceReportCreateParams {
254259

255260
export namespace BalanceReportCreateParams {
256261
export interface Balance {
257-
/**
258-
* The balance amount.
259-
*/
260-
amount: number;
261-
262262
/**
263263
* The specific type of balance reported. One of `opening_ledger`,
264264
* `closing_ledger`, `current_ledger`, `opening_available`,
@@ -288,6 +288,17 @@ export namespace BalanceReportCreateParams {
288288
* `us_bank`.
289289
*/
290290
vendor_code_type: string | null;
291+
292+
/**
293+
* The balance amount.
294+
*/
295+
amount?: number;
296+
297+
/**
298+
* The amount of the balance as a string, preserving full precision for values that
299+
* may exceed safe integer limits in some languages.
300+
*/
301+
amount_string?: string;
291302
}
292303
}
293304

src/resources/invoices/invoices.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export interface Invoice {
191191
invoicer_name: string | null;
192192

193193
/**
194-
* Translation missing: en.openapi.descriptions.invoice.schema.issued_at
194+
* The time at which the invoice was issued.
195195
*/
196196
issued_at: string | null;
197197

@@ -238,7 +238,7 @@ export interface Invoice {
238238
originating_account_id: string;
239239

240240
/**
241-
* Translation missing: en.openapi.descriptions.invoice.schema.paid_at
241+
* The time at which the invoice was paid.
242242
*/
243243
paid_at: string | null;
244244

@@ -318,7 +318,7 @@ export interface Invoice {
318318
virtual_account_id: string | null;
319319

320320
/**
321-
* Translation missing: en.openapi.descriptions.invoice.schema.voided_at
321+
* The time at which the invoice was voided.
322322
*/
323323
voided_at: string | null;
324324
}

0 commit comments

Comments
 (0)