@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,89 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class APIKeys extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the API key resource for the key authenticating this request. Useful for
|
|
10
|
+
* verifying which key is in use and discovering its current authorization context
|
|
11
|
+
* without inferring it from rejected requests.
|
|
12
|
+
*/
|
|
13
|
+
introspect(options?: RequestOptions): APIPromise<APIKeyIntrospectResponse> {
|
|
14
|
+
return this._client.get('/v1/api_key', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface APIKeyIntrospectResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier of the API key.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Effective API version for the request (header value or merchant pin).
|
|
26
|
+
*/
|
|
27
|
+
api_version: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ISO 8601 UTC timestamp at which this key was created.
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* ISO 8601 UTC timestamp at which this key expires. `null` if the key has no
|
|
36
|
+
* expiry.
|
|
37
|
+
*/
|
|
38
|
+
expires_at: string | null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* IP addresses or CIDR ranges this key is permitted to authenticate from. An empty
|
|
42
|
+
* array means the key is not IP-restricted.
|
|
43
|
+
*/
|
|
44
|
+
ip_allow_list: Array<string>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Identifier of the merchant the key belongs to.
|
|
48
|
+
*/
|
|
49
|
+
merchant_id: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The effective set of scopes for this key. Stored aliases (e.g. `full_access`,
|
|
53
|
+
* `read_only`) are always expanded to concrete `resource:action` scopes against
|
|
54
|
+
* the current registry before they appear here.
|
|
55
|
+
*/
|
|
56
|
+
scopes: Array<
|
|
57
|
+
| 'payouts:read'
|
|
58
|
+
| 'payouts:write'
|
|
59
|
+
| 'deposits:read'
|
|
60
|
+
| 'returns:read'
|
|
61
|
+
| 'returns:write'
|
|
62
|
+
| 'conversions:read'
|
|
63
|
+
| 'conversions:write'
|
|
64
|
+
| 'quotes:read'
|
|
65
|
+
| 'accounts:read'
|
|
66
|
+
| 'accounts:write'
|
|
67
|
+
| 'account_programs:read'
|
|
68
|
+
| 'webhook_subscriptions:read'
|
|
69
|
+
| 'webhook_subscriptions:write'
|
|
70
|
+
| 'events:read'
|
|
71
|
+
| 'webhook_deliveries:read'
|
|
72
|
+
| 'webhook_deliveries:write'
|
|
73
|
+
>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Resource type discriminator.
|
|
77
|
+
*/
|
|
78
|
+
type: 'api_key';
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* ISO 8601 UTC timestamp of the last update to this key (e.g. roll, IP allowlist
|
|
82
|
+
* change, revoke). `null` if the key has not been updated since creation.
|
|
83
|
+
*/
|
|
84
|
+
updated_at: string | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare namespace APIKeys {
|
|
88
|
+
export { type APIKeyIntrospectResponse as APIKeyIntrospectResponse };
|
|
89
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class APIVersions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the catalogue of publicly available Augustus Banking API versions,
|
|
10
|
+
* ordered oldest to newest. New accounts and unpinned merchants resolve to the
|
|
11
|
+
* entry with `is_latest: true`. Public: no authentication required.
|
|
12
|
+
*/
|
|
13
|
+
list(options?: RequestOptions): APIPromise<APIVersionListResponse> {
|
|
14
|
+
return this._client.get('/v1/api_versions', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface APIVersionListResponse {
|
|
19
|
+
data: Array<APIVersionListResponse.Data>;
|
|
20
|
+
|
|
21
|
+
has_more: boolean;
|
|
22
|
+
|
|
23
|
+
next_cursor: string | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace APIVersionListResponse {
|
|
27
|
+
export interface Data {
|
|
28
|
+
/**
|
|
29
|
+
* When this version was marked deprecated, ISO 8601 UTC. Null if not deprecated.
|
|
30
|
+
*/
|
|
31
|
+
deprecated_at: string | null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* True for the most recently published version. New accounts and unpinned
|
|
35
|
+
* merchants resolve to this version.
|
|
36
|
+
*/
|
|
37
|
+
is_latest: boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Version identifier as sent in the `api-version` request header.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* When this version became publicly available, ISO 8601 UTC.
|
|
46
|
+
*/
|
|
47
|
+
released_at: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* When this version will stop being served, ISO 8601 UTC. Null if no sunset is
|
|
51
|
+
* scheduled.
|
|
52
|
+
*/
|
|
53
|
+
sunset_at: string | null;
|
|
54
|
+
|
|
55
|
+
type: 'api_version';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare namespace APIVersions {
|
|
60
|
+
export { type APIVersionListResponse as APIVersionListResponse };
|
|
61
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Conversions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates and executes a conversion.
|
|
12
|
+
*/
|
|
13
|
+
create(body: ConversionCreateParams, options?: RequestOptions): APIPromise<ConversionCreateResponse> {
|
|
14
|
+
return this._client.post('/v1/conversions', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a conversion by ID.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConversionRetrieveResponse> {
|
|
21
|
+
return this._client.get(path`/v1/conversions/${id}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns a paginated list of conversions.
|
|
26
|
+
*/
|
|
27
|
+
list(
|
|
28
|
+
query: ConversionListParams | null | undefined = {},
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): PagePromise<ConversionListResponsesCursorPage, ConversionListResponse> {
|
|
31
|
+
return this._client.getAPIList('/v1/conversions', CursorPage<ConversionListResponse>, {
|
|
32
|
+
query,
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ConversionListResponsesCursorPage = CursorPage<ConversionListResponse>;
|
|
39
|
+
|
|
40
|
+
export interface ConversionCreateResponse {
|
|
41
|
+
/**
|
|
42
|
+
* Unique identifier of the conversion.
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* ISO 8601 UTC timestamp when the conversion completed, or null.
|
|
48
|
+
*/
|
|
49
|
+
completed_at: string | null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* ISO 8601 UTC timestamp when the conversion was created.
|
|
53
|
+
*/
|
|
54
|
+
created_at: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Failure details when status is failed, otherwise null.
|
|
58
|
+
*/
|
|
59
|
+
failure: ConversionCreateResponse.Failure | null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Key-value pairs stored with the conversion.
|
|
63
|
+
*/
|
|
64
|
+
metadata: { [key: string]: string };
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* ID of the associated quote, or null.
|
|
68
|
+
*/
|
|
69
|
+
quote_id: string | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* ID of the source account, or null.
|
|
73
|
+
*/
|
|
74
|
+
source_account_id: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Source amount as a string decimal.
|
|
78
|
+
*/
|
|
79
|
+
source_amount: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Source currency code.
|
|
83
|
+
*/
|
|
84
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Current status of the conversion.
|
|
88
|
+
*/
|
|
89
|
+
status: 'pending' | 'completed' | 'failed';
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* ID of the target account, or null.
|
|
93
|
+
*/
|
|
94
|
+
target_account_id: string | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Target currency code.
|
|
98
|
+
*/
|
|
99
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Resource type discriminator.
|
|
103
|
+
*/
|
|
104
|
+
type: 'conversion';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* ISO 8601 UTC timestamp when the conversion was last updated.
|
|
108
|
+
*/
|
|
109
|
+
updated_at: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace ConversionCreateResponse {
|
|
113
|
+
/**
|
|
114
|
+
* Failure details when status is failed, otherwise null.
|
|
115
|
+
*/
|
|
116
|
+
export interface Failure {
|
|
117
|
+
/**
|
|
118
|
+
* Human-readable description of the failure.
|
|
119
|
+
*/
|
|
120
|
+
message: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ConversionRetrieveResponse {
|
|
125
|
+
/**
|
|
126
|
+
* Unique identifier of the conversion.
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* ISO 8601 UTC timestamp when the conversion completed, or null.
|
|
132
|
+
*/
|
|
133
|
+
completed_at: string | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* ISO 8601 UTC timestamp when the conversion was created.
|
|
137
|
+
*/
|
|
138
|
+
created_at: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Failure details when status is failed, otherwise null.
|
|
142
|
+
*/
|
|
143
|
+
failure: ConversionRetrieveResponse.Failure | null;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Key-value pairs stored with the conversion.
|
|
147
|
+
*/
|
|
148
|
+
metadata: { [key: string]: string };
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* ID of the associated quote, or null.
|
|
152
|
+
*/
|
|
153
|
+
quote_id: string | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* ID of the source account, or null.
|
|
157
|
+
*/
|
|
158
|
+
source_account_id: string | null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Source amount as a string decimal.
|
|
162
|
+
*/
|
|
163
|
+
source_amount: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Source currency code.
|
|
167
|
+
*/
|
|
168
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Current status of the conversion.
|
|
172
|
+
*/
|
|
173
|
+
status: 'pending' | 'completed' | 'failed';
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ID of the target account, or null.
|
|
177
|
+
*/
|
|
178
|
+
target_account_id: string | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Target currency code.
|
|
182
|
+
*/
|
|
183
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Resource type discriminator.
|
|
187
|
+
*/
|
|
188
|
+
type: 'conversion';
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* ISO 8601 UTC timestamp when the conversion was last updated.
|
|
192
|
+
*/
|
|
193
|
+
updated_at: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export namespace ConversionRetrieveResponse {
|
|
197
|
+
/**
|
|
198
|
+
* Failure details when status is failed, otherwise null.
|
|
199
|
+
*/
|
|
200
|
+
export interface Failure {
|
|
201
|
+
/**
|
|
202
|
+
* Human-readable description of the failure.
|
|
203
|
+
*/
|
|
204
|
+
message: string;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface ConversionListResponse {
|
|
209
|
+
/**
|
|
210
|
+
* Unique identifier of the conversion.
|
|
211
|
+
*/
|
|
212
|
+
id: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* ISO 8601 UTC timestamp when the conversion completed, or null.
|
|
216
|
+
*/
|
|
217
|
+
completed_at: string | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* ISO 8601 UTC timestamp when the conversion was created.
|
|
221
|
+
*/
|
|
222
|
+
created_at: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Failure details when status is failed, otherwise null.
|
|
226
|
+
*/
|
|
227
|
+
failure: ConversionListResponse.Failure | null;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Key-value pairs stored with the conversion.
|
|
231
|
+
*/
|
|
232
|
+
metadata: { [key: string]: string };
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* ID of the associated quote, or null.
|
|
236
|
+
*/
|
|
237
|
+
quote_id: string | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* ID of the source account, or null.
|
|
241
|
+
*/
|
|
242
|
+
source_account_id: string | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Source amount as a string decimal.
|
|
246
|
+
*/
|
|
247
|
+
source_amount: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Source currency code.
|
|
251
|
+
*/
|
|
252
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Current status of the conversion.
|
|
256
|
+
*/
|
|
257
|
+
status: 'pending' | 'completed' | 'failed';
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* ID of the target account, or null.
|
|
261
|
+
*/
|
|
262
|
+
target_account_id: string | null;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Target currency code.
|
|
266
|
+
*/
|
|
267
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Resource type discriminator.
|
|
271
|
+
*/
|
|
272
|
+
type: 'conversion';
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* ISO 8601 UTC timestamp when the conversion was last updated.
|
|
276
|
+
*/
|
|
277
|
+
updated_at: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace ConversionListResponse {
|
|
281
|
+
/**
|
|
282
|
+
* Failure details when status is failed, otherwise null.
|
|
283
|
+
*/
|
|
284
|
+
export interface Failure {
|
|
285
|
+
/**
|
|
286
|
+
* Human-readable description of the failure.
|
|
287
|
+
*/
|
|
288
|
+
message: string;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface ConversionCreateParams {
|
|
293
|
+
/**
|
|
294
|
+
* ID of the source account to debit.
|
|
295
|
+
*/
|
|
296
|
+
source_account_id: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Amount to convert as a string decimal (e.g. "100.50").
|
|
300
|
+
*/
|
|
301
|
+
source_amount: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* ID of the target account to credit.
|
|
305
|
+
*/
|
|
306
|
+
target_account_id: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Key-value pairs stored with the conversion.
|
|
310
|
+
*/
|
|
311
|
+
metadata?: { [key: string]: string };
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface ConversionListParams extends CursorPageParams {
|
|
315
|
+
/**
|
|
316
|
+
* Filter by source currency code.
|
|
317
|
+
*/
|
|
318
|
+
source_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Filter by conversion status.
|
|
322
|
+
*/
|
|
323
|
+
status?: 'pending' | 'completed' | 'failed';
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Filter by target currency code.
|
|
327
|
+
*/
|
|
328
|
+
target_currency?: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export declare namespace Conversions {
|
|
332
|
+
export {
|
|
333
|
+
type ConversionCreateResponse as ConversionCreateResponse,
|
|
334
|
+
type ConversionRetrieveResponse as ConversionRetrieveResponse,
|
|
335
|
+
type ConversionListResponse as ConversionListResponse,
|
|
336
|
+
type ConversionListResponsesCursorPage as ConversionListResponsesCursorPage,
|
|
337
|
+
type ConversionCreateParams as ConversionCreateParams,
|
|
338
|
+
type ConversionListParams as ConversionListParams,
|
|
339
|
+
};
|
|
340
|
+
}
|