Skip to content

Commit 51e1602

Browse files
feat(api): api update
1 parent 26d80bf commit 51e1602

3 files changed

Lines changed: 5 additions & 5 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: 168
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury/modern-treasury-e7fe5fb3b88ac9a488ffe8a59365061f89fb7c907e00e46b1736d87a27f47a9c.yml
3-
openapi_spec_hash: 551397b486a54d1e20f922ebffcec44f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury/modern-treasury-2e93e9d440e8d1d28e027d1d6d63a6e0c347507b46e80c7fe8f2ba24bcb8344b.yml
3+
openapi_spec_hash: d444e4359bd336b14539a2cd6eba585b
44
config_hash: ca358dc5d2d922c4af5c00eb04b5e060

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2963,7 +2963,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
29632963
qualified: 'client.internalAccounts.create',
29642964
params: [
29652965
'connection_id: string;',
2966-
"currency: 'USD' | 'CAD' | 'USDC' | 'USDG' | 'USDT' | 'PYUSD';",
2966+
"currency: 'USD' | 'CAD' | 'USDC' | 'USDT' | 'PYUSD' | 'USDG';",
29672967
'name: string;',
29682968
"account_capabilities?: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[];",
29692969
'account_type?: string;',
@@ -2980,7 +2980,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
29802980
response:
29812981
"{ id: string; account_capabilities: { id: string; created_at: string; direction: transaction_direction; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]; account_details: object[]; account_type: string; connection: object; contra_ledger_account_id: string; counterparty_id: string; created_at: string; currency: string; debitable: boolean; external_id: string; ledger_account_id: string; legal_entity_id: string; live_mode: boolean; metadata: object; name: string; object: string; parent_account_id: string; party_address: object; party_name: string; party_type: 'business' | 'individual'; routing_details: object[]; status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'; updated_at: string; vendor_id: string; }",
29822982
markdown:
2983-
"## create\n\n`client.internalAccounts.create(connection_id: string, currency: 'USD' | 'CAD' | 'USDC' | 'USDG' | 'USDT' | 'PYUSD', name: string, account_capabilities?: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[], account_type?: string, counterparty_id?: string, debitable?: boolean, external_id?: string, legal_entity_id?: string, metadata?: object, parent_account_id?: string, party_address?: { country: string; line1: string; locality: string; postal_code: string; region: string; line2?: string; }, party_name?: string, vendor_attributes?: object): { id: string; account_capabilities: object[]; account_details: account_detail[]; account_type: string; connection: connection; contra_ledger_account_id: string; counterparty_id: string; created_at: string; currency: currency; debitable: boolean; external_id: string; ledger_account_id: string; legal_entity_id: string; live_mode: boolean; metadata: object; name: string; object: string; parent_account_id: string; party_address: address; party_name: string; party_type: 'business' | 'individual'; routing_details: routing_detail[]; status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'; updated_at: string; vendor_id: string; }`\n\n**post** `/api/internal_accounts`\n\ncreate internal account\n\n### Parameters\n\n- `connection_id: string`\n The identifier of the financial institution the account belongs to.\n\n- `currency: 'USD' | 'CAD' | 'USDC' | 'USDG' | 'USDT' | 'PYUSD'`\n The currency of the internal account. Supports fiat and stablecoin currencies.\n\n- `name: string`\n The nickname of the account.\n\n- `account_capabilities?: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]`\n An array of AccountCapability objects that list the originating abilities of the internal account and any relevant information for them.\n\n- `account_type?: string`\n The account type, used to provision the appropriate account at the financial institution.\n\n- `counterparty_id?: string`\n The Counterparty associated to this account.\n\n- `debitable?: boolean`\n Whether this account can receive ACH debits. Only applicable to accounts created under a Modern Treasury PSP connection, or `null` for Bring Your Own Bank accounts. Defaults to `false`. Configurable only on creation. Please reach out to your customer success manager to enable this capability for your connection.\n\n- `external_id?: string`\n An optional user-defined 180 character unique identifier.\n\n- `legal_entity_id?: string`\n The LegalEntity associated to this account.\n\n- `metadata?: object`\n Additional data represented as key-value pairs. Both the key and value must be strings.\n\n- `parent_account_id?: string`\n The parent internal account of this new account.\n\n- `party_address?: { country: string; line1: string; locality: string; postal_code: string; region: string; line2?: string; }`\n The address associated with the owner or null.\n - `country: string`\n Country code conforms to [ISO 3166-1 alpha-2]\n - `line1: string`\n - `locality: string`\n Locality or City.\n - `postal_code: string`\n The postal code of the address.\n - `region: string`\n Region or State.\n - `line2?: string`\n\n- `party_name?: string`\n The legal name of the entity which owns the account.\n\n- `vendor_attributes?: object`\n A hash of vendor specific attributes that will be used when creating the account at the vendor specified by the given connection.\n\n### Returns\n\n- `{ id: string; account_capabilities: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]; account_details: { id: string; account_number_safe: string; account_number_type: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; account_number?: string; }[]; account_type: string; connection: { id: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; vendor_customer_id: string; vendor_id: string; vendor_name: string; }; contra_ledger_account_id: string; counterparty_id: string; created_at: string; currency: string; debitable: boolean; external_id: string; ledger_account_id: string; legal_entity_id: string; live_mode: boolean; metadata: object; name: string; object: string; parent_account_id: string; party_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }; party_name: string; party_type: 'business' | 'individual'; routing_details: { id: string; bank_address: address; bank_name: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; payment_type: string; routing_number: string; routing_number_type: string; updated_at: string; }[]; status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'; updated_at: string; vendor_id: string; }`\n\n - `id: string`\n - `account_capabilities: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]`\n - `account_details: { id: string; account_number_safe: string; account_number_type: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; account_number?: string; }[]`\n - `account_type: string`\n - `connection: { id: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; vendor_customer_id: string; vendor_id: string; vendor_name: string; }`\n - `contra_ledger_account_id: string`\n - `counterparty_id: string`\n - `created_at: string`\n - `currency: string`\n - `debitable: boolean`\n - `external_id: string`\n - `ledger_account_id: string`\n - `legal_entity_id: string`\n - `live_mode: boolean`\n - `metadata: object`\n - `name: string`\n - `object: string`\n - `parent_account_id: string`\n - `party_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }`\n - `party_name: string`\n - `party_type: 'business' | 'individual'`\n - `routing_details: { id: string; bank_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }; bank_name: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; payment_type: string; routing_number: string; routing_number_type: string; updated_at: string; }[]`\n - `status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'`\n - `updated_at: string`\n - `vendor_id: string`\n\n### Example\n\n```typescript\nimport ModernTreasury from 'modern-treasury';\n\nconst client = new ModernTreasury();\n\nconst internalAccount = await client.internalAccounts.create({\n connection_id: 'connection_id',\n currency: 'USD',\n name: 'name',\n});\n\nconsole.log(internalAccount);\n```",
2983+
"## create\n\n`client.internalAccounts.create(connection_id: string, currency: 'USD' | 'CAD' | 'USDC' | 'USDT' | 'PYUSD' | 'USDG', name: string, account_capabilities?: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[], account_type?: string, counterparty_id?: string, debitable?: boolean, external_id?: string, legal_entity_id?: string, metadata?: object, parent_account_id?: string, party_address?: { country: string; line1: string; locality: string; postal_code: string; region: string; line2?: string; }, party_name?: string, vendor_attributes?: object): { id: string; account_capabilities: object[]; account_details: account_detail[]; account_type: string; connection: connection; contra_ledger_account_id: string; counterparty_id: string; created_at: string; currency: currency; debitable: boolean; external_id: string; ledger_account_id: string; legal_entity_id: string; live_mode: boolean; metadata: object; name: string; object: string; parent_account_id: string; party_address: address; party_name: string; party_type: 'business' | 'individual'; routing_details: routing_detail[]; status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'; updated_at: string; vendor_id: string; }`\n\n**post** `/api/internal_accounts`\n\ncreate internal account\n\n### Parameters\n\n- `connection_id: string`\n The identifier of the financial institution the account belongs to.\n\n- `currency: 'USD' | 'CAD' | 'USDC' | 'USDT' | 'PYUSD' | 'USDG'`\n The currency of the internal account. Supports fiat and stablecoin currencies.\n\n- `name: string`\n The nickname of the account.\n\n- `account_capabilities?: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]`\n An array of AccountCapability objects that list the originating abilities of the internal account and any relevant information for them.\n\n- `account_type?: string`\n The account type, used to provision the appropriate account at the financial institution.\n\n- `counterparty_id?: string`\n The Counterparty associated to this account.\n\n- `debitable?: boolean`\n Whether this account can receive ACH debits. Only applicable to accounts created under a Modern Treasury PSP connection, or `null` for Bring Your Own Bank accounts. Defaults to `false`. Configurable only on creation. Please reach out to your customer success manager to enable this capability for your connection.\n\n- `external_id?: string`\n An optional user-defined 180 character unique identifier.\n\n- `legal_entity_id?: string`\n The LegalEntity associated to this account.\n\n- `metadata?: object`\n Additional data represented as key-value pairs. Both the key and value must be strings.\n\n- `parent_account_id?: string`\n The parent internal account of this new account.\n\n- `party_address?: { country: string; line1: string; locality: string; postal_code: string; region: string; line2?: string; }`\n The address associated with the owner or null.\n - `country: string`\n Country code conforms to [ISO 3166-1 alpha-2]\n - `line1: string`\n - `locality: string`\n Locality or City.\n - `postal_code: string`\n The postal code of the address.\n - `region: string`\n Region or State.\n - `line2?: string`\n\n- `party_name?: string`\n The legal name of the entity which owns the account.\n\n- `vendor_attributes?: object`\n A hash of vendor specific attributes that will be used when creating the account at the vendor specified by the given connection.\n\n### Returns\n\n- `{ id: string; account_capabilities: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]; account_details: { id: string; account_number_safe: string; account_number_type: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; account_number?: string; }[]; account_type: string; connection: { id: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; vendor_customer_id: string; vendor_id: string; vendor_name: string; }; contra_ledger_account_id: string; counterparty_id: string; created_at: string; currency: string; debitable: boolean; external_id: string; ledger_account_id: string; legal_entity_id: string; live_mode: boolean; metadata: object; name: string; object: string; parent_account_id: string; party_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }; party_name: string; party_type: 'business' | 'individual'; routing_details: { id: string; bank_address: address; bank_name: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; payment_type: string; routing_number: string; routing_number_type: string; updated_at: string; }[]; status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'; updated_at: string; vendor_id: string; }`\n\n - `id: string`\n - `account_capabilities: { id: string; created_at: string; direction: 'credit' | 'debit'; discarded_at: string; identifier: string; live_mode: boolean; object: string; payment_type: string; updated_at: string; }[]`\n - `account_details: { id: string; account_number_safe: string; account_number_type: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; account_number?: string; }[]`\n - `account_type: string`\n - `connection: { id: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; updated_at: string; vendor_customer_id: string; vendor_id: string; vendor_name: string; }`\n - `contra_ledger_account_id: string`\n - `counterparty_id: string`\n - `created_at: string`\n - `currency: string`\n - `debitable: boolean`\n - `external_id: string`\n - `ledger_account_id: string`\n - `legal_entity_id: string`\n - `live_mode: boolean`\n - `metadata: object`\n - `name: string`\n - `object: string`\n - `parent_account_id: string`\n - `party_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }`\n - `party_name: string`\n - `party_type: 'business' | 'individual'`\n - `routing_details: { id: string; bank_address: { id: string; country: string; created_at: string; line1: string; line2: string; live_mode: boolean; locality: string; object: string; postal_code: string; region: string; updated_at: string; }; bank_name: string; created_at: string; discarded_at: string; live_mode: boolean; object: string; payment_type: string; routing_number: string; routing_number_type: string; updated_at: string; }[]`\n - `status: 'active' | 'closed' | 'pending_activation' | 'pending_closure' | 'suspended'`\n - `updated_at: string`\n - `vendor_id: string`\n\n### Example\n\n```typescript\nimport ModernTreasury from 'modern-treasury';\n\nconst client = new ModernTreasury();\n\nconst internalAccount = await client.internalAccounts.create({\n connection_id: 'connection_id',\n currency: 'USD',\n name: 'name',\n});\n\nconsole.log(internalAccount);\n```",
29842984
perLanguage: {
29852985
typescript: {
29862986
method: 'client.internalAccounts.create',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ export interface InternalAccountCreateParams {
405405
/**
406406
* The currency of the internal account. Supports fiat and stablecoin currencies.
407407
*/
408-
currency: 'USD' | 'CAD' | 'USDC' | 'USDG' | 'USDT' | 'PYUSD';
408+
currency: 'USD' | 'CAD' | 'USDC' | 'USDT' | 'PYUSD' | 'USDG';
409409

410410
/**
411411
* The nickname of the account.

0 commit comments

Comments
 (0)