@augustusbank/typescript-sdk 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +136 -0
- package/LICENSE +201 -0
- package/README.md +394 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +249 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +249 -0
- package/client.d.ts.map +1 -0
- package/client.js +542 -0
- package/client.js.map +1 -0
- package/client.mjs +538 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +161 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/account-programs.d.mts +112 -0
- package/resources/account-programs.d.mts.map +1 -0
- package/resources/account-programs.d.ts +112 -0
- package/resources/account-programs.d.ts.map +1 -0
- package/resources/account-programs.js +33 -0
- package/resources/account-programs.js.map +1 -0
- package/resources/account-programs.mjs +29 -0
- package/resources/account-programs.mjs.map +1 -0
- package/resources/accounts.d.mts +850 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +850 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +49 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/api-keys.d.mts +58 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +58 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +17 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +13 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/api-versions.d.mts +47 -0
- package/resources/api-versions.d.mts.map +1 -0
- package/resources/api-versions.d.ts +47 -0
- package/resources/api-versions.d.ts.map +1 -0
- package/resources/api-versions.js +17 -0
- package/resources/api-versions.js.map +1 -0
- package/resources/api-versions.mjs +13 -0
- package/resources/api-versions.mjs.map +1 -0
- package/resources/conversions.d.mts +270 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +270 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +32 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +28 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/deposits.d.mts +252 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +252 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +23 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +19 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/events.d.mts +101 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +101 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +24 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +20 -0
- package/resources/events.mjs.map +1 -0
- package/resources/index.d.mts +15 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +15 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +33 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +16 -0
- package/resources/index.mjs.map +1 -0
- package/resources/payouts.d.mts +550 -0
- package/resources/payouts.d.mts.map +1 -0
- package/resources/payouts.d.ts +550 -0
- package/resources/payouts.d.ts.map +1 -0
- package/resources/payouts.js +29 -0
- package/resources/payouts.js.map +1 -0
- package/resources/payouts.mjs +25 -0
- package/resources/payouts.mjs.map +1 -0
- package/resources/quotes/index.d.mts +3 -0
- package/resources/quotes/index.d.mts.map +1 -0
- package/resources/quotes/index.d.ts +3 -0
- package/resources/quotes/index.d.ts.map +1 -0
- package/resources/quotes/index.js +9 -0
- package/resources/quotes/index.js.map +1 -0
- package/resources/quotes/index.mjs +4 -0
- package/resources/quotes/index.mjs.map +1 -0
- package/resources/quotes/indicative.d.mts +76 -0
- package/resources/quotes/indicative.d.mts.map +1 -0
- package/resources/quotes/indicative.d.ts +76 -0
- package/resources/quotes/indicative.d.ts.map +1 -0
- package/resources/quotes/indicative.js +15 -0
- package/resources/quotes/indicative.js.map +1 -0
- package/resources/quotes/indicative.mjs +11 -0
- package/resources/quotes/indicative.mjs.map +1 -0
- package/resources/quotes/quotes.d.mts +71 -0
- package/resources/quotes/quotes.d.mts.map +1 -0
- package/resources/quotes/quotes.d.ts +71 -0
- package/resources/quotes/quotes.d.ts.map +1 -0
- package/resources/quotes/quotes.js +24 -0
- package/resources/quotes/quotes.js.map +1 -0
- package/resources/quotes/quotes.mjs +19 -0
- package/resources/quotes/quotes.mjs.map +1 -0
- package/resources/quotes.d.mts +2 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +2 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +6 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +3 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/returns.d.mts +70 -0
- package/resources/returns.d.mts.map +1 -0
- package/resources/returns.d.ts +70 -0
- package/resources/returns.d.ts.map +1 -0
- package/resources/returns.js +16 -0
- package/resources/returns.js.map +1 -0
- package/resources/returns.mjs +12 -0
- package/resources/returns.mjs.map +1 -0
- package/resources/scopes.d.mts +49 -0
- package/resources/scopes.d.mts.map +1 -0
- package/resources/scopes.d.ts +49 -0
- package/resources/scopes.d.ts.map +1 -0
- package/resources/scopes.js +17 -0
- package/resources/scopes.js.map +1 -0
- package/resources/scopes.mjs +13 -0
- package/resources/scopes.mjs.map +1 -0
- package/resources/webhook-deliveries.d.mts +203 -0
- package/resources/webhook-deliveries.d.mts.map +1 -0
- package/resources/webhook-deliveries.d.ts +203 -0
- package/resources/webhook-deliveries.d.ts.map +1 -0
- package/resources/webhook-deliveries.js +33 -0
- package/resources/webhook-deliveries.js.map +1 -0
- package/resources/webhook-deliveries.mjs +29 -0
- package/resources/webhook-deliveries.mjs.map +1 -0
- package/resources/webhook-subscriptions.d.mts +221 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -0
- package/resources/webhook-subscriptions.d.ts +221 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -0
- package/resources/webhook-subscriptions.js +54 -0
- package/resources/webhook-subscriptions.js.map +1 -0
- package/resources/webhook-subscriptions.mjs +50 -0
- package/resources/webhook-subscriptions.mjs.map +1 -0
- package/resources/webhooks.d.mts +1489 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +1489 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +20 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +16 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1047 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +157 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/account-programs.ts +156 -0
- package/src/resources/accounts.ts +1603 -0
- package/src/resources/api-keys.ts +89 -0
- package/src/resources/api-versions.ts +61 -0
- package/src/resources/conversions.ts +340 -0
- package/src/resources/deposits.ts +364 -0
- package/src/resources/events.ts +170 -0
- package/src/resources/index.ts +99 -0
- package/src/resources/payouts.ts +735 -0
- package/src/resources/quotes/index.ts +4 -0
- package/src/resources/quotes/indicative.ts +100 -0
- package/src/resources/quotes/quotes.ts +108 -0
- package/src/resources/quotes.ts +3 -0
- package/src/resources/returns.ts +102 -0
- package/src/resources/scopes.ts +80 -0
- package/src/resources/webhook-deliveries.ts +267 -0
- package/src/resources/webhook-subscriptions.ts +411 -0
- package/src/resources/webhooks.ts +1953 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Accounts extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new account.
|
|
8
|
+
*/
|
|
9
|
+
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves an account by ID.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AccountRetrieveResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns a paginated list of accounts.
|
|
16
|
+
*/
|
|
17
|
+
list(query?: AccountListParams | null | undefined, options?: RequestOptions): PagePromise<AccountListResponsesCursorPage, AccountListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Closes an account
|
|
20
|
+
*/
|
|
21
|
+
close(id: string, body: AccountCloseParams, options?: RequestOptions): APIPromise<AccountCloseResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Freezes an account
|
|
24
|
+
*/
|
|
25
|
+
freeze(id: string, options?: RequestOptions): APIPromise<AccountFreezeResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the available balance for an account.
|
|
28
|
+
*/
|
|
29
|
+
retrieveBalance(id: string, options?: RequestOptions): APIPromise<AccountRetrieveBalanceResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Unfreezes an account
|
|
32
|
+
*/
|
|
33
|
+
unfreeze(id: string, options?: RequestOptions): APIPromise<AccountUnfreezeResponse>;
|
|
34
|
+
}
|
|
35
|
+
export type AccountListResponsesCursorPage = CursorPage<AccountListResponse>;
|
|
36
|
+
export interface AccountCreateResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier of the account.
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Type of the account.
|
|
43
|
+
*/
|
|
44
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
45
|
+
/**
|
|
46
|
+
* Asset type of the account.
|
|
47
|
+
*/
|
|
48
|
+
asset_type: 'fiat' | 'crypto';
|
|
49
|
+
/**
|
|
50
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
51
|
+
*/
|
|
52
|
+
created_at: string;
|
|
53
|
+
/**
|
|
54
|
+
* ISO 4217 currency code for the account.
|
|
55
|
+
*/
|
|
56
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
57
|
+
/**
|
|
58
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
59
|
+
* this account can send or receive funds.
|
|
60
|
+
*/
|
|
61
|
+
financial_addresses: Array<AccountCreateResponse.UnionMember0 | AccountCreateResponse.UnionMember1 | AccountCreateResponse.UnionMember2 | AccountCreateResponse.UnionMember3>;
|
|
62
|
+
/**
|
|
63
|
+
* Human-readable label for the account.
|
|
64
|
+
*/
|
|
65
|
+
label: string;
|
|
66
|
+
/**
|
|
67
|
+
* Current status of the account.
|
|
68
|
+
*/
|
|
69
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
70
|
+
/**
|
|
71
|
+
* Resource type discriminator.
|
|
72
|
+
*/
|
|
73
|
+
type: 'account';
|
|
74
|
+
/**
|
|
75
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
76
|
+
*/
|
|
77
|
+
updated_at: string;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace AccountCreateResponse {
|
|
80
|
+
interface UnionMember0 {
|
|
81
|
+
/**
|
|
82
|
+
* Name of the account holder.
|
|
83
|
+
*/
|
|
84
|
+
account_holder_name: string;
|
|
85
|
+
/**
|
|
86
|
+
* Bank Identifier Code, or null if not provided.
|
|
87
|
+
*/
|
|
88
|
+
bic: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* International Bank Account Number.
|
|
91
|
+
*/
|
|
92
|
+
iban: string;
|
|
93
|
+
/**
|
|
94
|
+
* Discriminator for IBAN financial address.
|
|
95
|
+
*/
|
|
96
|
+
type: 'iban';
|
|
97
|
+
}
|
|
98
|
+
interface UnionMember1 {
|
|
99
|
+
/**
|
|
100
|
+
* Name of the account holder.
|
|
101
|
+
*/
|
|
102
|
+
account_holder_name: string;
|
|
103
|
+
/**
|
|
104
|
+
* UK account number (8 digits).
|
|
105
|
+
*/
|
|
106
|
+
account_number: string;
|
|
107
|
+
/**
|
|
108
|
+
* UK sort code (6 digits).
|
|
109
|
+
*/
|
|
110
|
+
sort_code: string;
|
|
111
|
+
/**
|
|
112
|
+
* Discriminator for UK sort code financial address.
|
|
113
|
+
*/
|
|
114
|
+
type: 'sort_code';
|
|
115
|
+
}
|
|
116
|
+
interface UnionMember2 {
|
|
117
|
+
/**
|
|
118
|
+
* Name of the account holder.
|
|
119
|
+
*/
|
|
120
|
+
account_holder_name: string;
|
|
121
|
+
/**
|
|
122
|
+
* Bank account number.
|
|
123
|
+
*/
|
|
124
|
+
account_number: string;
|
|
125
|
+
/**
|
|
126
|
+
* ABA routing number (9 digits).
|
|
127
|
+
*/
|
|
128
|
+
routing_number: string;
|
|
129
|
+
/**
|
|
130
|
+
* Discriminator for ABA wire financial address.
|
|
131
|
+
*/
|
|
132
|
+
type: 'aba';
|
|
133
|
+
}
|
|
134
|
+
interface UnionMember3 {
|
|
135
|
+
/**
|
|
136
|
+
* Wallet address on the specified blockchain.
|
|
137
|
+
*/
|
|
138
|
+
address: string;
|
|
139
|
+
/**
|
|
140
|
+
* Blockchain network for the crypto wallet.
|
|
141
|
+
*/
|
|
142
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
143
|
+
/**
|
|
144
|
+
* Discriminator for crypto wallet financial address.
|
|
145
|
+
*/
|
|
146
|
+
type: 'crypto_wallet';
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export interface AccountRetrieveResponse {
|
|
150
|
+
/**
|
|
151
|
+
* Unique identifier of the account.
|
|
152
|
+
*/
|
|
153
|
+
id: string;
|
|
154
|
+
/**
|
|
155
|
+
* Type of the account.
|
|
156
|
+
*/
|
|
157
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
158
|
+
/**
|
|
159
|
+
* Asset type of the account.
|
|
160
|
+
*/
|
|
161
|
+
asset_type: 'fiat' | 'crypto';
|
|
162
|
+
/**
|
|
163
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
164
|
+
*/
|
|
165
|
+
created_at: string;
|
|
166
|
+
/**
|
|
167
|
+
* ISO 4217 currency code for the account.
|
|
168
|
+
*/
|
|
169
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
170
|
+
/**
|
|
171
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
172
|
+
* this account can send or receive funds.
|
|
173
|
+
*/
|
|
174
|
+
financial_addresses: Array<AccountRetrieveResponse.UnionMember0 | AccountRetrieveResponse.UnionMember1 | AccountRetrieveResponse.UnionMember2 | AccountRetrieveResponse.UnionMember3>;
|
|
175
|
+
/**
|
|
176
|
+
* Human-readable label for the account.
|
|
177
|
+
*/
|
|
178
|
+
label: string;
|
|
179
|
+
/**
|
|
180
|
+
* Current status of the account.
|
|
181
|
+
*/
|
|
182
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
183
|
+
/**
|
|
184
|
+
* Resource type discriminator.
|
|
185
|
+
*/
|
|
186
|
+
type: 'account';
|
|
187
|
+
/**
|
|
188
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
189
|
+
*/
|
|
190
|
+
updated_at: string;
|
|
191
|
+
}
|
|
192
|
+
export declare namespace AccountRetrieveResponse {
|
|
193
|
+
interface UnionMember0 {
|
|
194
|
+
/**
|
|
195
|
+
* Name of the account holder.
|
|
196
|
+
*/
|
|
197
|
+
account_holder_name: string;
|
|
198
|
+
/**
|
|
199
|
+
* Bank Identifier Code, or null if not provided.
|
|
200
|
+
*/
|
|
201
|
+
bic: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* International Bank Account Number.
|
|
204
|
+
*/
|
|
205
|
+
iban: string;
|
|
206
|
+
/**
|
|
207
|
+
* Discriminator for IBAN financial address.
|
|
208
|
+
*/
|
|
209
|
+
type: 'iban';
|
|
210
|
+
}
|
|
211
|
+
interface UnionMember1 {
|
|
212
|
+
/**
|
|
213
|
+
* Name of the account holder.
|
|
214
|
+
*/
|
|
215
|
+
account_holder_name: string;
|
|
216
|
+
/**
|
|
217
|
+
* UK account number (8 digits).
|
|
218
|
+
*/
|
|
219
|
+
account_number: string;
|
|
220
|
+
/**
|
|
221
|
+
* UK sort code (6 digits).
|
|
222
|
+
*/
|
|
223
|
+
sort_code: string;
|
|
224
|
+
/**
|
|
225
|
+
* Discriminator for UK sort code financial address.
|
|
226
|
+
*/
|
|
227
|
+
type: 'sort_code';
|
|
228
|
+
}
|
|
229
|
+
interface UnionMember2 {
|
|
230
|
+
/**
|
|
231
|
+
* Name of the account holder.
|
|
232
|
+
*/
|
|
233
|
+
account_holder_name: string;
|
|
234
|
+
/**
|
|
235
|
+
* Bank account number.
|
|
236
|
+
*/
|
|
237
|
+
account_number: string;
|
|
238
|
+
/**
|
|
239
|
+
* ABA routing number (9 digits).
|
|
240
|
+
*/
|
|
241
|
+
routing_number: string;
|
|
242
|
+
/**
|
|
243
|
+
* Discriminator for ABA wire financial address.
|
|
244
|
+
*/
|
|
245
|
+
type: 'aba';
|
|
246
|
+
}
|
|
247
|
+
interface UnionMember3 {
|
|
248
|
+
/**
|
|
249
|
+
* Wallet address on the specified blockchain.
|
|
250
|
+
*/
|
|
251
|
+
address: string;
|
|
252
|
+
/**
|
|
253
|
+
* Blockchain network for the crypto wallet.
|
|
254
|
+
*/
|
|
255
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
256
|
+
/**
|
|
257
|
+
* Discriminator for crypto wallet financial address.
|
|
258
|
+
*/
|
|
259
|
+
type: 'crypto_wallet';
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
export interface AccountListResponse {
|
|
263
|
+
/**
|
|
264
|
+
* Unique identifier of the account.
|
|
265
|
+
*/
|
|
266
|
+
id: string;
|
|
267
|
+
/**
|
|
268
|
+
* Type of the account.
|
|
269
|
+
*/
|
|
270
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
271
|
+
/**
|
|
272
|
+
* Asset type of the account.
|
|
273
|
+
*/
|
|
274
|
+
asset_type: 'fiat' | 'crypto';
|
|
275
|
+
/**
|
|
276
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
277
|
+
*/
|
|
278
|
+
created_at: string;
|
|
279
|
+
/**
|
|
280
|
+
* ISO 4217 currency code for the account.
|
|
281
|
+
*/
|
|
282
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
283
|
+
/**
|
|
284
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
285
|
+
* this account can send or receive funds.
|
|
286
|
+
*/
|
|
287
|
+
financial_addresses: Array<AccountListResponse.UnionMember0 | AccountListResponse.UnionMember1 | AccountListResponse.UnionMember2 | AccountListResponse.UnionMember3>;
|
|
288
|
+
/**
|
|
289
|
+
* Human-readable label for the account.
|
|
290
|
+
*/
|
|
291
|
+
label: string;
|
|
292
|
+
/**
|
|
293
|
+
* Current status of the account.
|
|
294
|
+
*/
|
|
295
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
296
|
+
/**
|
|
297
|
+
* Resource type discriminator.
|
|
298
|
+
*/
|
|
299
|
+
type: 'account';
|
|
300
|
+
/**
|
|
301
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
302
|
+
*/
|
|
303
|
+
updated_at: string;
|
|
304
|
+
}
|
|
305
|
+
export declare namespace AccountListResponse {
|
|
306
|
+
interface UnionMember0 {
|
|
307
|
+
/**
|
|
308
|
+
* Name of the account holder.
|
|
309
|
+
*/
|
|
310
|
+
account_holder_name: string;
|
|
311
|
+
/**
|
|
312
|
+
* Bank Identifier Code, or null if not provided.
|
|
313
|
+
*/
|
|
314
|
+
bic: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* International Bank Account Number.
|
|
317
|
+
*/
|
|
318
|
+
iban: string;
|
|
319
|
+
/**
|
|
320
|
+
* Discriminator for IBAN financial address.
|
|
321
|
+
*/
|
|
322
|
+
type: 'iban';
|
|
323
|
+
}
|
|
324
|
+
interface UnionMember1 {
|
|
325
|
+
/**
|
|
326
|
+
* Name of the account holder.
|
|
327
|
+
*/
|
|
328
|
+
account_holder_name: string;
|
|
329
|
+
/**
|
|
330
|
+
* UK account number (8 digits).
|
|
331
|
+
*/
|
|
332
|
+
account_number: string;
|
|
333
|
+
/**
|
|
334
|
+
* UK sort code (6 digits).
|
|
335
|
+
*/
|
|
336
|
+
sort_code: string;
|
|
337
|
+
/**
|
|
338
|
+
* Discriminator for UK sort code financial address.
|
|
339
|
+
*/
|
|
340
|
+
type: 'sort_code';
|
|
341
|
+
}
|
|
342
|
+
interface UnionMember2 {
|
|
343
|
+
/**
|
|
344
|
+
* Name of the account holder.
|
|
345
|
+
*/
|
|
346
|
+
account_holder_name: string;
|
|
347
|
+
/**
|
|
348
|
+
* Bank account number.
|
|
349
|
+
*/
|
|
350
|
+
account_number: string;
|
|
351
|
+
/**
|
|
352
|
+
* ABA routing number (9 digits).
|
|
353
|
+
*/
|
|
354
|
+
routing_number: string;
|
|
355
|
+
/**
|
|
356
|
+
* Discriminator for ABA wire financial address.
|
|
357
|
+
*/
|
|
358
|
+
type: 'aba';
|
|
359
|
+
}
|
|
360
|
+
interface UnionMember3 {
|
|
361
|
+
/**
|
|
362
|
+
* Wallet address on the specified blockchain.
|
|
363
|
+
*/
|
|
364
|
+
address: string;
|
|
365
|
+
/**
|
|
366
|
+
* Blockchain network for the crypto wallet.
|
|
367
|
+
*/
|
|
368
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
369
|
+
/**
|
|
370
|
+
* Discriminator for crypto wallet financial address.
|
|
371
|
+
*/
|
|
372
|
+
type: 'crypto_wallet';
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
export interface AccountCloseResponse {
|
|
376
|
+
/**
|
|
377
|
+
* Unique identifier of the account.
|
|
378
|
+
*/
|
|
379
|
+
id: string;
|
|
380
|
+
/**
|
|
381
|
+
* Type of the account.
|
|
382
|
+
*/
|
|
383
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
384
|
+
/**
|
|
385
|
+
* Asset type of the account.
|
|
386
|
+
*/
|
|
387
|
+
asset_type: 'fiat' | 'crypto';
|
|
388
|
+
/**
|
|
389
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
390
|
+
*/
|
|
391
|
+
created_at: string;
|
|
392
|
+
/**
|
|
393
|
+
* ISO 4217 currency code for the account.
|
|
394
|
+
*/
|
|
395
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
396
|
+
/**
|
|
397
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
398
|
+
* this account can send or receive funds.
|
|
399
|
+
*/
|
|
400
|
+
financial_addresses: Array<AccountCloseResponse.UnionMember0 | AccountCloseResponse.UnionMember1 | AccountCloseResponse.UnionMember2 | AccountCloseResponse.UnionMember3>;
|
|
401
|
+
/**
|
|
402
|
+
* Human-readable label for the account.
|
|
403
|
+
*/
|
|
404
|
+
label: string;
|
|
405
|
+
/**
|
|
406
|
+
* Current status of the account.
|
|
407
|
+
*/
|
|
408
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
409
|
+
/**
|
|
410
|
+
* Resource type discriminator.
|
|
411
|
+
*/
|
|
412
|
+
type: 'account';
|
|
413
|
+
/**
|
|
414
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
415
|
+
*/
|
|
416
|
+
updated_at: string;
|
|
417
|
+
}
|
|
418
|
+
export declare namespace AccountCloseResponse {
|
|
419
|
+
interface UnionMember0 {
|
|
420
|
+
/**
|
|
421
|
+
* Name of the account holder.
|
|
422
|
+
*/
|
|
423
|
+
account_holder_name: string;
|
|
424
|
+
/**
|
|
425
|
+
* Bank Identifier Code, or null if not provided.
|
|
426
|
+
*/
|
|
427
|
+
bic: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* International Bank Account Number.
|
|
430
|
+
*/
|
|
431
|
+
iban: string;
|
|
432
|
+
/**
|
|
433
|
+
* Discriminator for IBAN financial address.
|
|
434
|
+
*/
|
|
435
|
+
type: 'iban';
|
|
436
|
+
}
|
|
437
|
+
interface UnionMember1 {
|
|
438
|
+
/**
|
|
439
|
+
* Name of the account holder.
|
|
440
|
+
*/
|
|
441
|
+
account_holder_name: string;
|
|
442
|
+
/**
|
|
443
|
+
* UK account number (8 digits).
|
|
444
|
+
*/
|
|
445
|
+
account_number: string;
|
|
446
|
+
/**
|
|
447
|
+
* UK sort code (6 digits).
|
|
448
|
+
*/
|
|
449
|
+
sort_code: string;
|
|
450
|
+
/**
|
|
451
|
+
* Discriminator for UK sort code financial address.
|
|
452
|
+
*/
|
|
453
|
+
type: 'sort_code';
|
|
454
|
+
}
|
|
455
|
+
interface UnionMember2 {
|
|
456
|
+
/**
|
|
457
|
+
* Name of the account holder.
|
|
458
|
+
*/
|
|
459
|
+
account_holder_name: string;
|
|
460
|
+
/**
|
|
461
|
+
* Bank account number.
|
|
462
|
+
*/
|
|
463
|
+
account_number: string;
|
|
464
|
+
/**
|
|
465
|
+
* ABA routing number (9 digits).
|
|
466
|
+
*/
|
|
467
|
+
routing_number: string;
|
|
468
|
+
/**
|
|
469
|
+
* Discriminator for ABA wire financial address.
|
|
470
|
+
*/
|
|
471
|
+
type: 'aba';
|
|
472
|
+
}
|
|
473
|
+
interface UnionMember3 {
|
|
474
|
+
/**
|
|
475
|
+
* Wallet address on the specified blockchain.
|
|
476
|
+
*/
|
|
477
|
+
address: string;
|
|
478
|
+
/**
|
|
479
|
+
* Blockchain network for the crypto wallet.
|
|
480
|
+
*/
|
|
481
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
482
|
+
/**
|
|
483
|
+
* Discriminator for crypto wallet financial address.
|
|
484
|
+
*/
|
|
485
|
+
type: 'crypto_wallet';
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
export interface AccountFreezeResponse {
|
|
489
|
+
/**
|
|
490
|
+
* Unique identifier of the account.
|
|
491
|
+
*/
|
|
492
|
+
id: string;
|
|
493
|
+
/**
|
|
494
|
+
* Type of the account.
|
|
495
|
+
*/
|
|
496
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
497
|
+
/**
|
|
498
|
+
* Asset type of the account.
|
|
499
|
+
*/
|
|
500
|
+
asset_type: 'fiat' | 'crypto';
|
|
501
|
+
/**
|
|
502
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
503
|
+
*/
|
|
504
|
+
created_at: string;
|
|
505
|
+
/**
|
|
506
|
+
* ISO 4217 currency code for the account.
|
|
507
|
+
*/
|
|
508
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
509
|
+
/**
|
|
510
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
511
|
+
* this account can send or receive funds.
|
|
512
|
+
*/
|
|
513
|
+
financial_addresses: Array<AccountFreezeResponse.UnionMember0 | AccountFreezeResponse.UnionMember1 | AccountFreezeResponse.UnionMember2 | AccountFreezeResponse.UnionMember3>;
|
|
514
|
+
/**
|
|
515
|
+
* Human-readable label for the account.
|
|
516
|
+
*/
|
|
517
|
+
label: string;
|
|
518
|
+
/**
|
|
519
|
+
* Current status of the account.
|
|
520
|
+
*/
|
|
521
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
522
|
+
/**
|
|
523
|
+
* Resource type discriminator.
|
|
524
|
+
*/
|
|
525
|
+
type: 'account';
|
|
526
|
+
/**
|
|
527
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
528
|
+
*/
|
|
529
|
+
updated_at: string;
|
|
530
|
+
}
|
|
531
|
+
export declare namespace AccountFreezeResponse {
|
|
532
|
+
interface UnionMember0 {
|
|
533
|
+
/**
|
|
534
|
+
* Name of the account holder.
|
|
535
|
+
*/
|
|
536
|
+
account_holder_name: string;
|
|
537
|
+
/**
|
|
538
|
+
* Bank Identifier Code, or null if not provided.
|
|
539
|
+
*/
|
|
540
|
+
bic: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* International Bank Account Number.
|
|
543
|
+
*/
|
|
544
|
+
iban: string;
|
|
545
|
+
/**
|
|
546
|
+
* Discriminator for IBAN financial address.
|
|
547
|
+
*/
|
|
548
|
+
type: 'iban';
|
|
549
|
+
}
|
|
550
|
+
interface UnionMember1 {
|
|
551
|
+
/**
|
|
552
|
+
* Name of the account holder.
|
|
553
|
+
*/
|
|
554
|
+
account_holder_name: string;
|
|
555
|
+
/**
|
|
556
|
+
* UK account number (8 digits).
|
|
557
|
+
*/
|
|
558
|
+
account_number: string;
|
|
559
|
+
/**
|
|
560
|
+
* UK sort code (6 digits).
|
|
561
|
+
*/
|
|
562
|
+
sort_code: string;
|
|
563
|
+
/**
|
|
564
|
+
* Discriminator for UK sort code financial address.
|
|
565
|
+
*/
|
|
566
|
+
type: 'sort_code';
|
|
567
|
+
}
|
|
568
|
+
interface UnionMember2 {
|
|
569
|
+
/**
|
|
570
|
+
* Name of the account holder.
|
|
571
|
+
*/
|
|
572
|
+
account_holder_name: string;
|
|
573
|
+
/**
|
|
574
|
+
* Bank account number.
|
|
575
|
+
*/
|
|
576
|
+
account_number: string;
|
|
577
|
+
/**
|
|
578
|
+
* ABA routing number (9 digits).
|
|
579
|
+
*/
|
|
580
|
+
routing_number: string;
|
|
581
|
+
/**
|
|
582
|
+
* Discriminator for ABA wire financial address.
|
|
583
|
+
*/
|
|
584
|
+
type: 'aba';
|
|
585
|
+
}
|
|
586
|
+
interface UnionMember3 {
|
|
587
|
+
/**
|
|
588
|
+
* Wallet address on the specified blockchain.
|
|
589
|
+
*/
|
|
590
|
+
address: string;
|
|
591
|
+
/**
|
|
592
|
+
* Blockchain network for the crypto wallet.
|
|
593
|
+
*/
|
|
594
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
595
|
+
/**
|
|
596
|
+
* Discriminator for crypto wallet financial address.
|
|
597
|
+
*/
|
|
598
|
+
type: 'crypto_wallet';
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
export interface AccountRetrieveBalanceResponse {
|
|
602
|
+
/**
|
|
603
|
+
* Unique identifier of the account.
|
|
604
|
+
*/
|
|
605
|
+
account_id: string;
|
|
606
|
+
/**
|
|
607
|
+
* Available balance amount as a decimal string.
|
|
608
|
+
*/
|
|
609
|
+
amount: string;
|
|
610
|
+
/**
|
|
611
|
+
* ISO 8601 UTC timestamp when the balance was retrieved.
|
|
612
|
+
*/
|
|
613
|
+
as_of: string;
|
|
614
|
+
/**
|
|
615
|
+
* ISO 4217 currency code for the balance.
|
|
616
|
+
*/
|
|
617
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
618
|
+
/**
|
|
619
|
+
* Resource type discriminator.
|
|
620
|
+
*/
|
|
621
|
+
type: 'account_balance';
|
|
622
|
+
}
|
|
623
|
+
export interface AccountUnfreezeResponse {
|
|
624
|
+
/**
|
|
625
|
+
* Unique identifier of the account.
|
|
626
|
+
*/
|
|
627
|
+
id: string;
|
|
628
|
+
/**
|
|
629
|
+
* Type of the account.
|
|
630
|
+
*/
|
|
631
|
+
account_type: 'virtual_account' | 'payment_account';
|
|
632
|
+
/**
|
|
633
|
+
* Asset type of the account.
|
|
634
|
+
*/
|
|
635
|
+
asset_type: 'fiat' | 'crypto';
|
|
636
|
+
/**
|
|
637
|
+
* ISO 8601 UTC timestamp when the account was created.
|
|
638
|
+
*/
|
|
639
|
+
created_at: string;
|
|
640
|
+
/**
|
|
641
|
+
* ISO 4217 currency code for the account.
|
|
642
|
+
*/
|
|
643
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
644
|
+
/**
|
|
645
|
+
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
646
|
+
* this account can send or receive funds.
|
|
647
|
+
*/
|
|
648
|
+
financial_addresses: Array<AccountUnfreezeResponse.UnionMember0 | AccountUnfreezeResponse.UnionMember1 | AccountUnfreezeResponse.UnionMember2 | AccountUnfreezeResponse.UnionMember3>;
|
|
649
|
+
/**
|
|
650
|
+
* Human-readable label for the account.
|
|
651
|
+
*/
|
|
652
|
+
label: string;
|
|
653
|
+
/**
|
|
654
|
+
* Current status of the account.
|
|
655
|
+
*/
|
|
656
|
+
status: 'pending' | 'active' | 'frozen' | 'closed';
|
|
657
|
+
/**
|
|
658
|
+
* Resource type discriminator.
|
|
659
|
+
*/
|
|
660
|
+
type: 'account';
|
|
661
|
+
/**
|
|
662
|
+
* ISO 8601 UTC timestamp when the account was last updated.
|
|
663
|
+
*/
|
|
664
|
+
updated_at: string;
|
|
665
|
+
}
|
|
666
|
+
export declare namespace AccountUnfreezeResponse {
|
|
667
|
+
interface UnionMember0 {
|
|
668
|
+
/**
|
|
669
|
+
* Name of the account holder.
|
|
670
|
+
*/
|
|
671
|
+
account_holder_name: string;
|
|
672
|
+
/**
|
|
673
|
+
* Bank Identifier Code, or null if not provided.
|
|
674
|
+
*/
|
|
675
|
+
bic: string | null;
|
|
676
|
+
/**
|
|
677
|
+
* International Bank Account Number.
|
|
678
|
+
*/
|
|
679
|
+
iban: string;
|
|
680
|
+
/**
|
|
681
|
+
* Discriminator for IBAN financial address.
|
|
682
|
+
*/
|
|
683
|
+
type: 'iban';
|
|
684
|
+
}
|
|
685
|
+
interface UnionMember1 {
|
|
686
|
+
/**
|
|
687
|
+
* Name of the account holder.
|
|
688
|
+
*/
|
|
689
|
+
account_holder_name: string;
|
|
690
|
+
/**
|
|
691
|
+
* UK account number (8 digits).
|
|
692
|
+
*/
|
|
693
|
+
account_number: string;
|
|
694
|
+
/**
|
|
695
|
+
* UK sort code (6 digits).
|
|
696
|
+
*/
|
|
697
|
+
sort_code: string;
|
|
698
|
+
/**
|
|
699
|
+
* Discriminator for UK sort code financial address.
|
|
700
|
+
*/
|
|
701
|
+
type: 'sort_code';
|
|
702
|
+
}
|
|
703
|
+
interface UnionMember2 {
|
|
704
|
+
/**
|
|
705
|
+
* Name of the account holder.
|
|
706
|
+
*/
|
|
707
|
+
account_holder_name: string;
|
|
708
|
+
/**
|
|
709
|
+
* Bank account number.
|
|
710
|
+
*/
|
|
711
|
+
account_number: string;
|
|
712
|
+
/**
|
|
713
|
+
* ABA routing number (9 digits).
|
|
714
|
+
*/
|
|
715
|
+
routing_number: string;
|
|
716
|
+
/**
|
|
717
|
+
* Discriminator for ABA wire financial address.
|
|
718
|
+
*/
|
|
719
|
+
type: 'aba';
|
|
720
|
+
}
|
|
721
|
+
interface UnionMember3 {
|
|
722
|
+
/**
|
|
723
|
+
* Wallet address on the specified blockchain.
|
|
724
|
+
*/
|
|
725
|
+
address: string;
|
|
726
|
+
/**
|
|
727
|
+
* Blockchain network for the crypto wallet.
|
|
728
|
+
*/
|
|
729
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
730
|
+
/**
|
|
731
|
+
* Discriminator for crypto wallet financial address.
|
|
732
|
+
*/
|
|
733
|
+
type: 'crypto_wallet';
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
export interface AccountCreateParams {
|
|
737
|
+
/**
|
|
738
|
+
* ID of the account program to create the account under.
|
|
739
|
+
*/
|
|
740
|
+
account_program_id: string;
|
|
741
|
+
/**
|
|
742
|
+
* Type of account. Currently only virtual account.
|
|
743
|
+
*/
|
|
744
|
+
account_type: 'virtual_account';
|
|
745
|
+
/**
|
|
746
|
+
* Personal information of the account beneficiary.
|
|
747
|
+
*/
|
|
748
|
+
beneficiary_data: AccountCreateParams.BeneficiaryData;
|
|
749
|
+
}
|
|
750
|
+
export declare namespace AccountCreateParams {
|
|
751
|
+
/**
|
|
752
|
+
* Personal information of the account beneficiary.
|
|
753
|
+
*/
|
|
754
|
+
interface BeneficiaryData {
|
|
755
|
+
/**
|
|
756
|
+
* ISO 3166-1 alpha-2 country code of citizenship.
|
|
757
|
+
*/
|
|
758
|
+
country_of_citizenship: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
759
|
+
/**
|
|
760
|
+
* Date of birth in YYYY-MM-DD (UTC) format.
|
|
761
|
+
*/
|
|
762
|
+
date_of_birth: string;
|
|
763
|
+
/**
|
|
764
|
+
* Government-issued identification. Discriminated union with type: "id" (generic
|
|
765
|
+
* ID), "ssn" (Social Security Number, format ###-##-####), or "itin" (Individual
|
|
766
|
+
* Taxpayer ID, format 9##-##-####).
|
|
767
|
+
*/
|
|
768
|
+
identification: BeneficiaryData.UnionMember0 | BeneficiaryData.UnionMember1 | BeneficiaryData.UnionMember2;
|
|
769
|
+
/**
|
|
770
|
+
* Full legal name of the account holder.
|
|
771
|
+
*/
|
|
772
|
+
legal_name: string;
|
|
773
|
+
/**
|
|
774
|
+
* Residential address of the account holder.
|
|
775
|
+
*/
|
|
776
|
+
residential_address: BeneficiaryData.ResidentialAddress;
|
|
777
|
+
}
|
|
778
|
+
namespace BeneficiaryData {
|
|
779
|
+
interface UnionMember0 {
|
|
780
|
+
type: 'id';
|
|
781
|
+
value: string;
|
|
782
|
+
}
|
|
783
|
+
interface UnionMember1 {
|
|
784
|
+
type: 'ssn';
|
|
785
|
+
value: string;
|
|
786
|
+
}
|
|
787
|
+
interface UnionMember2 {
|
|
788
|
+
type: 'itin';
|
|
789
|
+
value: string;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Residential address of the account holder.
|
|
793
|
+
*/
|
|
794
|
+
interface ResidentialAddress {
|
|
795
|
+
/**
|
|
796
|
+
* City name.
|
|
797
|
+
*/
|
|
798
|
+
city: string;
|
|
799
|
+
/**
|
|
800
|
+
* ISO 3166-1 alpha-2 country code.
|
|
801
|
+
*/
|
|
802
|
+
country: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
803
|
+
/**
|
|
804
|
+
* Postal or ZIP code.
|
|
805
|
+
*/
|
|
806
|
+
postal_code: string;
|
|
807
|
+
/**
|
|
808
|
+
* Primary street address.
|
|
809
|
+
*/
|
|
810
|
+
street_line_1: string;
|
|
811
|
+
/**
|
|
812
|
+
* Two-letter state code.
|
|
813
|
+
*/
|
|
814
|
+
state?: string;
|
|
815
|
+
/**
|
|
816
|
+
* Secondary street address (apartment, suite, etc.).
|
|
817
|
+
*/
|
|
818
|
+
street_line_2?: string;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
export interface AccountListParams extends CursorPageParams {
|
|
823
|
+
/**
|
|
824
|
+
* Filter by account holder name (case-insensitive phrase match). Crypto wallets
|
|
825
|
+
* are excluded when set.
|
|
826
|
+
*/
|
|
827
|
+
account_holder_name?: string;
|
|
828
|
+
/**
|
|
829
|
+
* Filter by exact fiat account number. Crypto wallets are excluded when set.
|
|
830
|
+
*/
|
|
831
|
+
account_number?: string;
|
|
832
|
+
/**
|
|
833
|
+
* ID of the account program to list virtual accounts for.
|
|
834
|
+
*/
|
|
835
|
+
parent_id?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Filter by account status.
|
|
838
|
+
*/
|
|
839
|
+
status?: 'pending' | 'active' | 'frozen';
|
|
840
|
+
}
|
|
841
|
+
export interface AccountCloseParams {
|
|
842
|
+
/**
|
|
843
|
+
* Reason for closing the account.
|
|
844
|
+
*/
|
|
845
|
+
reason: 'aml_risk_fraud' | 'client_request';
|
|
846
|
+
}
|
|
847
|
+
export declare namespace Accounts {
|
|
848
|
+
export { type AccountCreateResponse as AccountCreateResponse, type AccountRetrieveResponse as AccountRetrieveResponse, type AccountListResponse as AccountListResponse, type AccountCloseResponse as AccountCloseResponse, type AccountFreezeResponse as AccountFreezeResponse, type AccountRetrieveBalanceResponse as AccountRetrieveBalanceResponse, type AccountUnfreezeResponse as AccountUnfreezeResponse, type AccountListResponsesCursorPage as AccountListResponsesCursorPage, type AccountCreateParams as AccountCreateParams, type AccountListParams as AccountListParams, type AccountCloseParams as AccountCloseParams, };
|
|
849
|
+
}
|
|
850
|
+
//# sourceMappingURL=accounts.d.ts.map
|