@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,100 @@
|
|
|
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 Indicative extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns an indicative quote for a currency pair. Not persisted or holdable.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(
|
|
12
|
+
query: IndicativeRetrieveParams,
|
|
13
|
+
options?: RequestOptions,
|
|
14
|
+
): APIPromise<IndicativeRetrieveResponse> {
|
|
15
|
+
return this._client.get('/v1/quotes/indicative', { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IndicativeRetrieveResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Conversion fee, or null if no fee applies.
|
|
22
|
+
*/
|
|
23
|
+
fee: IndicativeRetrieveResponse.Fee | null;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ISO 8601 UTC timestamp when the quote was fetched.
|
|
27
|
+
*/
|
|
28
|
+
quoted_at: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Conversion rate applied.
|
|
32
|
+
*/
|
|
33
|
+
rate: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Source amount as a string decimal.
|
|
37
|
+
*/
|
|
38
|
+
source_amount: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Source currency code.
|
|
42
|
+
*/
|
|
43
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Target amount as a string decimal.
|
|
47
|
+
*/
|
|
48
|
+
target_amount: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Target currency code.
|
|
52
|
+
*/
|
|
53
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Venue the quote was fetched from.
|
|
57
|
+
*/
|
|
58
|
+
venue: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace IndicativeRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Conversion fee, or null if no fee applies.
|
|
64
|
+
*/
|
|
65
|
+
export interface Fee {
|
|
66
|
+
/**
|
|
67
|
+
* Fee amount as a string decimal.
|
|
68
|
+
*/
|
|
69
|
+
amount: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Fee currency code.
|
|
73
|
+
*/
|
|
74
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface IndicativeRetrieveParams {
|
|
79
|
+
/**
|
|
80
|
+
* Source currency code.
|
|
81
|
+
*/
|
|
82
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Target currency code.
|
|
86
|
+
*/
|
|
87
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Source amount as a string decimal. Defaults to 1 unit if omitted.
|
|
91
|
+
*/
|
|
92
|
+
source_amount?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export declare namespace Indicative {
|
|
96
|
+
export {
|
|
97
|
+
type IndicativeRetrieveResponse as IndicativeRetrieveResponse,
|
|
98
|
+
type IndicativeRetrieveParams as IndicativeRetrieveParams,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as IndicativeAPI from './indicative';
|
|
5
|
+
import { Indicative, IndicativeRetrieveParams, IndicativeRetrieveResponse } from './indicative';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Quotes extends APIResource {
|
|
11
|
+
indicative: IndicativeAPI.Indicative = new IndicativeAPI.Indicative(this._client);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a persisted quote by ID.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<QuoteRetrieveResponse> {
|
|
17
|
+
return this._client.get(path`/v1/quotes/${id}`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface QuoteRetrieveResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the quote.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ISO 8601 UTC timestamp when the quote was created.
|
|
29
|
+
*/
|
|
30
|
+
created_at: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Exchange rate applied.
|
|
34
|
+
*/
|
|
35
|
+
exchange_rate: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* ISO 8601 UTC timestamp when the quote expires.
|
|
39
|
+
*/
|
|
40
|
+
expires_at: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Current funding status of the quote.
|
|
44
|
+
*/
|
|
45
|
+
funding_status: 'pending' | 'sent' | 'completed' | 'failed' | 'on_hold';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Source amount as a string decimal.
|
|
49
|
+
*/
|
|
50
|
+
source_amount: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Source currency code.
|
|
54
|
+
*/
|
|
55
|
+
source_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Current status of the quote.
|
|
59
|
+
*/
|
|
60
|
+
status:
|
|
61
|
+
| 'pending'
|
|
62
|
+
| 'quote_accepted'
|
|
63
|
+
| 'order_pending'
|
|
64
|
+
| 'order_failed'
|
|
65
|
+
| 'order_completed'
|
|
66
|
+
| 'withdrawal_pending'
|
|
67
|
+
| 'withdrawal_failed'
|
|
68
|
+
| 'withdrawal_completed'
|
|
69
|
+
| 'completed'
|
|
70
|
+
| 'failed';
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Target amount as a string decimal.
|
|
74
|
+
*/
|
|
75
|
+
target_amount: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Target currency code.
|
|
79
|
+
*/
|
|
80
|
+
target_currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Resource type discriminator.
|
|
84
|
+
*/
|
|
85
|
+
type: 'quote';
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* ISO 8601 UTC timestamp when the quote was last updated.
|
|
89
|
+
*/
|
|
90
|
+
updated_at: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Execution venue (e.g. "kraken").
|
|
94
|
+
*/
|
|
95
|
+
venue: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
Quotes.Indicative = Indicative;
|
|
99
|
+
|
|
100
|
+
export declare namespace Quotes {
|
|
101
|
+
export { type QuoteRetrieveResponse as QuoteRetrieveResponse };
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
Indicative as Indicative,
|
|
105
|
+
type IndicativeRetrieveResponse as IndicativeRetrieveResponse,
|
|
106
|
+
type IndicativeRetrieveParams as IndicativeRetrieveParams,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Returns extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a return by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ReturnRetrieveResponse> {
|
|
13
|
+
return this._client.get(path`/v1/returns/${id}`, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ReturnRetrieveResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the return.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
25
|
+
*/
|
|
26
|
+
amount: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* ISO 8601 UTC timestamp when the return was created.
|
|
30
|
+
*/
|
|
31
|
+
created_at: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Currency code (ISO 4217 currency code or crypto currency code).
|
|
35
|
+
*/
|
|
36
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* ID of the parent deposit.
|
|
40
|
+
*/
|
|
41
|
+
deposit_id: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Failure details when status is failed, otherwise null.
|
|
45
|
+
*/
|
|
46
|
+
failure: ReturnRetrieveResponse.Failure | null;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Current status of the return.
|
|
50
|
+
*/
|
|
51
|
+
status: 'pending' | 'paid' | 'failed' | 'returned';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Type of the resource.
|
|
55
|
+
*/
|
|
56
|
+
type: 'return';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* ISO 8601 UTC timestamp when the return was last updated.
|
|
60
|
+
*/
|
|
61
|
+
updated_at: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace ReturnRetrieveResponse {
|
|
65
|
+
/**
|
|
66
|
+
* Failure details when status is failed, otherwise null.
|
|
67
|
+
*/
|
|
68
|
+
export interface Failure {
|
|
69
|
+
/**
|
|
70
|
+
* Failure code.
|
|
71
|
+
*/
|
|
72
|
+
code:
|
|
73
|
+
| 'account_closed'
|
|
74
|
+
| 'account_blocked'
|
|
75
|
+
| 'insufficient_funds'
|
|
76
|
+
| 'invalid_account_format'
|
|
77
|
+
| 'invalid_instruction'
|
|
78
|
+
| 'invalid_amount'
|
|
79
|
+
| 'invalid_time'
|
|
80
|
+
| 'duplicate_transaction'
|
|
81
|
+
| 'payee_verification_failed'
|
|
82
|
+
| 'system_error'
|
|
83
|
+
| 'provider_system_error'
|
|
84
|
+
| 'rejected_by_correspondent_bank'
|
|
85
|
+
| 'blocked_by_review'
|
|
86
|
+
| 'unknown';
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Human-readable description of the failure.
|
|
90
|
+
*/
|
|
91
|
+
message: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Whether the return can be retried.
|
|
95
|
+
*/
|
|
96
|
+
retry: boolean;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare namespace Returns {
|
|
101
|
+
export { type ReturnRetrieveResponse as ReturnRetrieveResponse };
|
|
102
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 Scopes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the catalogue of scopes available to API keys. The list is filtered by
|
|
10
|
+
* the `Api-Version` request header and defaults to the latest version when the
|
|
11
|
+
* header is omitted. Public: no authentication required.
|
|
12
|
+
*/
|
|
13
|
+
list(options?: RequestOptions): APIPromise<ScopeListResponse> {
|
|
14
|
+
return this._client.get('/v1/scopes', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ScopeListResponse {
|
|
19
|
+
data: Array<ScopeListResponse.Data>;
|
|
20
|
+
|
|
21
|
+
has_more: boolean;
|
|
22
|
+
|
|
23
|
+
next_cursor: string | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace ScopeListResponse {
|
|
27
|
+
export interface Data {
|
|
28
|
+
/**
|
|
29
|
+
* Scope identifier in `resource:action` format.
|
|
30
|
+
*/
|
|
31
|
+
id:
|
|
32
|
+
| 'payouts:read'
|
|
33
|
+
| 'payouts:write'
|
|
34
|
+
| 'deposits:read'
|
|
35
|
+
| 'returns:read'
|
|
36
|
+
| 'returns:write'
|
|
37
|
+
| 'conversions:read'
|
|
38
|
+
| 'conversions:write'
|
|
39
|
+
| 'quotes:read'
|
|
40
|
+
| 'accounts:read'
|
|
41
|
+
| 'accounts:write'
|
|
42
|
+
| 'account_programs:read'
|
|
43
|
+
| 'webhook_subscriptions:read'
|
|
44
|
+
| 'webhook_subscriptions:write'
|
|
45
|
+
| 'events:read'
|
|
46
|
+
| 'webhook_deliveries:read'
|
|
47
|
+
| 'webhook_deliveries:write';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Action category.
|
|
51
|
+
*/
|
|
52
|
+
action: 'read' | 'write';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* First API version that exposes this scope.
|
|
56
|
+
*/
|
|
57
|
+
available_from: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* API version in which this scope was deprecated; null if not deprecated.
|
|
61
|
+
*/
|
|
62
|
+
deprecated_in: string | null;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Human-readable description of the scope.
|
|
66
|
+
*/
|
|
67
|
+
description: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Resource the scope applies to.
|
|
71
|
+
*/
|
|
72
|
+
resource: string;
|
|
73
|
+
|
|
74
|
+
type: 'scope';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace Scopes {
|
|
79
|
+
export { type ScopeListResponse as ScopeListResponse };
|
|
80
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
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 WebhookDeliveries extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves a webhook delivery by ID.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WebhookDeliveryRetrieveResponse> {
|
|
14
|
+
return this._client.get(path`/v1/webhook_deliveries/${id}`, options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Lists webhook deliveries for the merchant with cursor-based pagination.
|
|
19
|
+
* Deliveries are retained for 30 days.
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
query: WebhookDeliveryListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): PagePromise<WebhookDeliveryListResponsesCursorPage, WebhookDeliveryListResponse> {
|
|
25
|
+
return this._client.getAPIList('/v1/webhook_deliveries', CursorPage<WebhookDeliveryListResponse>, {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Triggers a fresh delivery attempt of the event to the same webhook subscription.
|
|
33
|
+
*/
|
|
34
|
+
redeliver(id: string, options?: RequestOptions): APIPromise<WebhookDeliveryRedeliverResponse> {
|
|
35
|
+
return this._client.post(path`/v1/webhook_deliveries/${id}/redeliver`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type WebhookDeliveryListResponsesCursorPage = CursorPage<WebhookDeliveryListResponse>;
|
|
40
|
+
|
|
41
|
+
export interface WebhookDeliveryRetrieveResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the webhook delivery.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Ordered list of HTTP delivery attempts for this delivery.
|
|
49
|
+
*/
|
|
50
|
+
attempts: Array<WebhookDeliveryRetrieveResponse.Attempt>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* ISO 8601 UTC timestamp when the delivery was created.
|
|
54
|
+
*/
|
|
55
|
+
created_at: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Identifier of the event this delivery was for.
|
|
59
|
+
*/
|
|
60
|
+
event_id: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Current status of the delivery.
|
|
64
|
+
*/
|
|
65
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the webhook subscription this delivery targeted.
|
|
69
|
+
*/
|
|
70
|
+
subscription_id: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Resource type discriminator.
|
|
74
|
+
*/
|
|
75
|
+
type: 'webhook_delivery';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* ISO 8601 UTC timestamp when the delivery was last updated.
|
|
79
|
+
*/
|
|
80
|
+
updated_at: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export namespace WebhookDeliveryRetrieveResponse {
|
|
84
|
+
export interface Attempt {
|
|
85
|
+
/**
|
|
86
|
+
* ISO 8601 UTC timestamp when this attempt resolved.
|
|
87
|
+
*/
|
|
88
|
+
attempted_at: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Current status of the delivery.
|
|
92
|
+
*/
|
|
93
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* HTTP status code returned by the receiver for this attempt.
|
|
97
|
+
*/
|
|
98
|
+
status_code: number;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface WebhookDeliveryListResponse {
|
|
103
|
+
/**
|
|
104
|
+
* Unique identifier of the webhook delivery.
|
|
105
|
+
*/
|
|
106
|
+
id: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Ordered list of HTTP delivery attempts for this delivery.
|
|
110
|
+
*/
|
|
111
|
+
attempts: Array<WebhookDeliveryListResponse.Attempt>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* ISO 8601 UTC timestamp when the delivery was created.
|
|
115
|
+
*/
|
|
116
|
+
created_at: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Identifier of the event this delivery was for.
|
|
120
|
+
*/
|
|
121
|
+
event_id: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Current status of the delivery.
|
|
125
|
+
*/
|
|
126
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Identifier of the webhook subscription this delivery targeted.
|
|
130
|
+
*/
|
|
131
|
+
subscription_id: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Resource type discriminator.
|
|
135
|
+
*/
|
|
136
|
+
type: 'webhook_delivery';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* ISO 8601 UTC timestamp when the delivery was last updated.
|
|
140
|
+
*/
|
|
141
|
+
updated_at: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export namespace WebhookDeliveryListResponse {
|
|
145
|
+
export interface Attempt {
|
|
146
|
+
/**
|
|
147
|
+
* ISO 8601 UTC timestamp when this attempt resolved.
|
|
148
|
+
*/
|
|
149
|
+
attempted_at: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Current status of the delivery.
|
|
153
|
+
*/
|
|
154
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* HTTP status code returned by the receiver for this attempt.
|
|
158
|
+
*/
|
|
159
|
+
status_code: number;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface WebhookDeliveryRedeliverResponse {
|
|
164
|
+
/**
|
|
165
|
+
* Unique identifier of the webhook delivery.
|
|
166
|
+
*/
|
|
167
|
+
id: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Ordered list of HTTP delivery attempts for this delivery.
|
|
171
|
+
*/
|
|
172
|
+
attempts: Array<WebhookDeliveryRedeliverResponse.Attempt>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* ISO 8601 UTC timestamp when the delivery was created.
|
|
176
|
+
*/
|
|
177
|
+
created_at: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Identifier of the event this delivery was for.
|
|
181
|
+
*/
|
|
182
|
+
event_id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Current status of the delivery.
|
|
186
|
+
*/
|
|
187
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Identifier of the webhook subscription this delivery targeted.
|
|
191
|
+
*/
|
|
192
|
+
subscription_id: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Resource type discriminator.
|
|
196
|
+
*/
|
|
197
|
+
type: 'webhook_delivery';
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* ISO 8601 UTC timestamp when the delivery was last updated.
|
|
201
|
+
*/
|
|
202
|
+
updated_at: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export namespace WebhookDeliveryRedeliverResponse {
|
|
206
|
+
export interface Attempt {
|
|
207
|
+
/**
|
|
208
|
+
* ISO 8601 UTC timestamp when this attempt resolved.
|
|
209
|
+
*/
|
|
210
|
+
attempted_at: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Current status of the delivery.
|
|
214
|
+
*/
|
|
215
|
+
status: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* HTTP status code returned by the receiver for this attempt.
|
|
219
|
+
*/
|
|
220
|
+
status_code: number;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface WebhookDeliveryListParams extends CursorPageParams {
|
|
225
|
+
created_at?: WebhookDeliveryListParams.CreatedAt;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Filter by event ID.
|
|
229
|
+
*/
|
|
230
|
+
event_id?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Filter by delivery status.
|
|
234
|
+
*/
|
|
235
|
+
status?: 'pending' | 'delivered' | 'failed' | 'processing' | 'ignored';
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Filter by webhook subscription ID.
|
|
239
|
+
*/
|
|
240
|
+
subscription_id?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace WebhookDeliveryListParams {
|
|
244
|
+
export interface CreatedAt {
|
|
245
|
+
/**
|
|
246
|
+
* Include deliveries whose created_at is greater than or equal to this ISO 8601
|
|
247
|
+
* timestamp.
|
|
248
|
+
*/
|
|
249
|
+
gte?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Include deliveries whose created_at is less than or equal to this ISO 8601
|
|
253
|
+
* timestamp.
|
|
254
|
+
*/
|
|
255
|
+
lte?: string;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare namespace WebhookDeliveries {
|
|
260
|
+
export {
|
|
261
|
+
type WebhookDeliveryRetrieveResponse as WebhookDeliveryRetrieveResponse,
|
|
262
|
+
type WebhookDeliveryListResponse as WebhookDeliveryListResponse,
|
|
263
|
+
type WebhookDeliveryRedeliverResponse as WebhookDeliveryRedeliverResponse,
|
|
264
|
+
type WebhookDeliveryListResponsesCursorPage as WebhookDeliveryListResponsesCursorPage,
|
|
265
|
+
type WebhookDeliveryListParams as WebhookDeliveryListParams,
|
|
266
|
+
};
|
|
267
|
+
}
|