@getivy/node-sdk 1.7.1 → 2.1.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 +155 -558
- package/README.md +112 -42
- 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/bin/cli +53 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +240 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +240 -0
- package/client.d.ts.map +1 -0
- package/client.js +521 -0
- package/client.js.map +1 -0
- package/client.mjs +517 -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/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 +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -175
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -174
- package/index.d.ts.map +1 -1
- package/index.js +12 -166
- package/index.js.map +1 -1
- package/index.mjs +5 -139
- package/index.mjs.map +1 -1
- 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/{resources/data.mjs → internal/builtin-types.mjs} +2 -2
- 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/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/{src/resources/data.ts → internal/types.mjs} +2 -2
- 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 +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -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 +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.js +2 -3
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +1 -1
- package/internal/utils/query.mjs.map +1 -1
- 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 +114 -64
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/balance.d.mts +44 -0
- package/resources/balance.d.mts.map +1 -0
- package/resources/balance.d.ts +4 -3
- package/resources/balance.d.ts.map +1 -1
- package/resources/balance.js +1 -1
- package/resources/balance.js.map +1 -1
- package/resources/balance.mjs +1 -1
- package/resources/balance.mjs.map +1 -1
- package/resources/banks.d.mts +251 -0
- package/resources/{data/session.d.ts.map → banks.d.mts.map} +1 -1
- package/resources/banks.d.ts +6 -5
- package/resources/banks.d.ts.map +1 -1
- package/resources/banks.js +1 -1
- package/resources/banks.js.map +1 -1
- package/resources/banks.mjs +1 -1
- package/resources/banks.mjs.map +1 -1
- package/resources/beneficiary-payouts.d.mts +64 -0
- package/resources/beneficiary-payouts.d.mts.map +1 -0
- package/resources/beneficiary-payouts.d.ts +4 -3
- package/resources/beneficiary-payouts.d.ts.map +1 -1
- package/resources/beneficiary-payouts.js +1 -1
- package/resources/beneficiary-payouts.js.map +1 -1
- package/resources/beneficiary-payouts.mjs +1 -1
- package/resources/beneficiary-payouts.mjs.map +1 -1
- package/resources/capabilities.d.mts +20 -0
- package/resources/capabilities.d.mts.map +1 -0
- package/resources/capabilities.d.ts +4 -3
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/capabilities.js +1 -1
- package/resources/capabilities.js.map +1 -1
- package/resources/capabilities.mjs +1 -1
- package/resources/capabilities.mjs.map +1 -1
- package/resources/checkoutsession.d.mts +659 -0
- package/resources/checkoutsession.d.mts.map +1 -0
- package/resources/checkoutsession.d.ts +6 -5
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/checkoutsession.js +1 -1
- package/resources/checkoutsession.js.map +1 -1
- package/resources/checkoutsession.mjs +1 -1
- package/resources/checkoutsession.mjs.map +1 -1
- package/resources/customers.d.mts +668 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +8 -7
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +1 -1
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +1 -1
- package/resources/customers.mjs.map +1 -1
- package/resources/deposits.d.mts +192 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +4 -3
- package/resources/deposits.d.ts.map +1 -1
- package/resources/deposits.js +1 -1
- package/resources/deposits.js.map +1 -1
- package/resources/deposits.mjs +1 -1
- package/resources/deposits.mjs.map +1 -1
- package/resources/fx.d.mts +155 -0
- package/resources/fx.d.mts.map +1 -0
- package/resources/fx.d.ts +6 -5
- package/resources/fx.d.ts.map +1 -1
- package/resources/fx.js +1 -1
- package/resources/fx.js.map +1 -1
- package/resources/fx.mjs +1 -1
- package/resources/fx.mjs.map +1 -1
- package/resources/index.d.mts +17 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/orders.d.mts +1251 -0
- package/resources/orders.d.mts.map +1 -0
- package/resources/orders.d.ts +9 -8
- package/resources/orders.d.ts.map +1 -1
- package/resources/orders.js +1 -1
- package/resources/orders.js.map +1 -1
- package/resources/orders.mjs +1 -1
- package/resources/orders.mjs.map +1 -1
- package/resources/payee.d.mts +51 -0
- package/resources/payee.d.mts.map +1 -0
- package/resources/payee.d.ts +4 -3
- package/resources/payee.d.ts.map +1 -1
- package/resources/payee.js +1 -1
- package/resources/payee.js.map +1 -1
- package/resources/payee.mjs +1 -1
- package/resources/payee.mjs.map +1 -1
- package/resources/payouts.d.mts +459 -0
- package/resources/payouts.d.mts.map +1 -0
- package/resources/payouts.d.ts +6 -5
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +1 -1
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +1 -1
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.mts +97 -0
- package/resources/refunds.d.mts.map +1 -0
- package/resources/refunds.d.ts +5 -4
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +1 -1
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +1 -1
- package/resources/refunds.mjs.map +1 -1
- package/resources/returns.d.mts +105 -0
- package/resources/returns.d.mts.map +1 -0
- package/resources/returns.d.ts +5 -4
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +1 -1
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +1 -1
- package/resources/returns.mjs.map +1 -1
- package/resources/subaccounts.d.mts +60 -0
- package/resources/subaccounts.d.mts.map +1 -0
- package/resources/subaccounts.d.ts +5 -4
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/transactions.d.mts +203 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +9 -3
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/webhook/index.d.mts +3 -0
- package/resources/webhook/index.d.mts.map +1 -0
- package/resources/webhook/index.d.ts.map +1 -1
- package/resources/webhook/subscription.d.mts +156 -0
- package/resources/webhook/subscription.d.mts.map +1 -0
- package/resources/webhook/subscription.d.ts +11 -7
- package/resources/webhook/subscription.d.ts.map +1 -1
- package/resources/webhook/subscription.js +1 -1
- package/resources/webhook/subscription.js.map +1 -1
- package/resources/webhook/subscription.mjs +1 -1
- package/resources/webhook/subscription.mjs.map +1 -1
- package/resources/webhook/webhook.d.mts +29 -0
- package/resources/webhook/webhook.d.mts.map +1 -0
- package/resources/webhook/webhook.d.ts +4 -3
- package/resources/webhook/webhook.d.ts.map +1 -1
- package/resources/webhook/webhook.js +3 -25
- package/resources/webhook/webhook.js.map +1 -1
- package/resources/webhook/webhook.mjs +1 -1
- package/resources/webhook/webhook.mjs.map +1 -1
- package/resources/webhook.d.mts +2 -0
- package/resources/webhook.d.mts.map +1 -0
- package/resources/webhook.d.ts.map +1 -1
- package/resources/webhook.js +2 -15
- package/resources/webhook.js.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +997 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +89 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +5 -450
- 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/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 +95 -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 +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +1 -1
- 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/resource.ts +2 -11
- package/src/resources/balance.ts +4 -6
- package/src/resources/banks.ts +6 -5
- package/src/resources/beneficiary-payouts.ts +4 -3
- package/src/resources/capabilities.ts +4 -6
- package/src/resources/checkoutsession.ts +9 -8
- package/src/resources/customers.ts +8 -10
- package/src/resources/deposits.ts +4 -6
- package/src/resources/fx.ts +6 -8
- package/src/resources/index.ts +0 -1
- package/src/resources/orders.ts +9 -5
- package/src/resources/payee.ts +4 -3
- package/src/resources/payouts.ts +6 -8
- package/src/resources/refunds.ts +5 -4
- package/src/resources/returns.ts +5 -7
- package/src/resources/subaccounts.ts +5 -7
- package/src/resources/transactions.ts +10 -3
- package/src/resources/webhook/subscription.ts +14 -22
- package/src/resources/webhook/webhook.ts +4 -6
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -920
- package/core.js.map +0 -1
- package/core.mjs +0 -888
- package/core.mjs.map +0 -1
- package/resources/data/accounts.d.ts +0 -94
- package/resources/data/accounts.d.ts.map +0 -1
- package/resources/data/accounts.js +0 -15
- package/resources/data/accounts.js.map +0 -1
- package/resources/data/accounts.mjs +0 -11
- package/resources/data/accounts.mjs.map +0 -1
- package/resources/data/balances.d.ts +0 -48
- package/resources/data/balances.d.ts.map +0 -1
- package/resources/data/balances.js +0 -15
- package/resources/data/balances.js.map +0 -1
- package/resources/data/balances.mjs +0 -11
- package/resources/data/balances.mjs.map +0 -1
- package/resources/data/consent.d.ts +0 -80
- package/resources/data/consent.d.ts.map +0 -1
- package/resources/data/consent.js +0 -21
- package/resources/data/consent.js.map +0 -1
- package/resources/data/consent.mjs +0 -17
- package/resources/data/consent.mjs.map +0 -1
- package/resources/data/data.d.ts +0 -26
- package/resources/data/data.d.ts.map +0 -1
- package/resources/data/data.js +0 -55
- package/resources/data/data.js.map +0 -1
- package/resources/data/data.mjs +0 -28
- package/resources/data/data.mjs.map +0 -1
- package/resources/data/index.d.ts +0 -7
- package/resources/data/index.d.ts.map +0 -1
- package/resources/data/index.js +0 -17
- package/resources/data/index.js.map +0 -1
- package/resources/data/index.mjs +0 -8
- package/resources/data/index.mjs.map +0 -1
- package/resources/data/session.d.ts +0 -258
- package/resources/data/session.js +0 -21
- package/resources/data/session.js.map +0 -1
- package/resources/data/session.mjs +0 -17
- package/resources/data/session.mjs.map +0 -1
- package/resources/data/transactions.d.ts +0 -61
- package/resources/data/transactions.d.ts.map +0 -1
- package/resources/data/transactions.js +0 -16
- package/resources/data/transactions.js.map +0 -1
- package/resources/data/transactions.mjs +0 -12
- package/resources/data/transactions.mjs.map +0 -1
- package/resources/data.d.ts +0 -2
- package/resources/data.d.ts.map +0 -1
- package/resources/data.js +0 -19
- package/resources/data.js.map +0 -1
- package/resources/data.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1231
- package/src/resources/data/accounts.ts +0 -127
- package/src/resources/data/balances.ts +0 -60
- package/src/resources/data/consent.ts +0 -110
- package/src/resources/data/data.ts +0 -75
- package/src/resources/data/index.ts +0 -20
- package/src/resources/data/session.ts +0 -1317
- package/src/resources/data/transactions.ts +0 -79
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/error.js
CHANGED
|
@@ -1,113 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
exports.IvyError = IvyError;
|
|
9
|
-
class APIError extends IvyError {
|
|
10
|
-
constructor(status, error, message, headers) {
|
|
11
|
-
super(`${APIError.makeMessage(status, error, message)}`);
|
|
12
|
-
this.status = status;
|
|
13
|
-
this.headers = headers;
|
|
14
|
-
this.error = error;
|
|
15
|
-
}
|
|
16
|
-
static makeMessage(status, error, message) {
|
|
17
|
-
const msg = error?.message ?
|
|
18
|
-
typeof error.message === 'string' ?
|
|
19
|
-
error.message
|
|
20
|
-
: JSON.stringify(error.message)
|
|
21
|
-
: error ? JSON.stringify(error)
|
|
22
|
-
: message;
|
|
23
|
-
if (status && msg) {
|
|
24
|
-
return `${status} ${msg}`;
|
|
25
|
-
}
|
|
26
|
-
if (status) {
|
|
27
|
-
return `${status} status code (no body)`;
|
|
28
|
-
}
|
|
29
|
-
if (msg) {
|
|
30
|
-
return msg;
|
|
31
|
-
}
|
|
32
|
-
return '(no status code or body)';
|
|
33
|
-
}
|
|
34
|
-
static generate(status, errorResponse, message, headers) {
|
|
35
|
-
if (!status || !headers) {
|
|
36
|
-
return new APIConnectionError({ message, cause: (0, core_1.castToError)(errorResponse) });
|
|
37
|
-
}
|
|
38
|
-
const error = errorResponse;
|
|
39
|
-
if (status === 400) {
|
|
40
|
-
return new BadRequestError(status, error, message, headers);
|
|
41
|
-
}
|
|
42
|
-
if (status === 401) {
|
|
43
|
-
return new AuthenticationError(status, error, message, headers);
|
|
44
|
-
}
|
|
45
|
-
if (status === 403) {
|
|
46
|
-
return new PermissionDeniedError(status, error, message, headers);
|
|
47
|
-
}
|
|
48
|
-
if (status === 404) {
|
|
49
|
-
return new NotFoundError(status, error, message, headers);
|
|
50
|
-
}
|
|
51
|
-
if (status === 409) {
|
|
52
|
-
return new ConflictError(status, error, message, headers);
|
|
53
|
-
}
|
|
54
|
-
if (status === 422) {
|
|
55
|
-
return new UnprocessableEntityError(status, error, message, headers);
|
|
56
|
-
}
|
|
57
|
-
if (status === 429) {
|
|
58
|
-
return new RateLimitError(status, error, message, headers);
|
|
59
|
-
}
|
|
60
|
-
if (status >= 500) {
|
|
61
|
-
return new InternalServerError(status, error, message, headers);
|
|
62
|
-
}
|
|
63
|
-
return new APIError(status, error, message, headers);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.APIError = APIError;
|
|
67
|
-
class APIUserAbortError extends APIError {
|
|
68
|
-
constructor({ message } = {}) {
|
|
69
|
-
super(undefined, undefined, message || 'Request was aborted.', undefined);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.APIUserAbortError = APIUserAbortError;
|
|
73
|
-
class APIConnectionError extends APIError {
|
|
74
|
-
constructor({ message, cause }) {
|
|
75
|
-
super(undefined, undefined, message || 'Connection error.', undefined);
|
|
76
|
-
// in some environments the 'cause' property is already declared
|
|
77
|
-
// @ts-ignore
|
|
78
|
-
if (cause)
|
|
79
|
-
this.cause = cause;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.APIConnectionError = APIConnectionError;
|
|
83
|
-
class APIConnectionTimeoutError extends APIConnectionError {
|
|
84
|
-
constructor({ message } = {}) {
|
|
85
|
-
super({ message: message ?? 'Request timed out.' });
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.APIConnectionTimeoutError = APIConnectionTimeoutError;
|
|
89
|
-
class BadRequestError extends APIError {
|
|
90
|
-
}
|
|
91
|
-
exports.BadRequestError = BadRequestError;
|
|
92
|
-
class AuthenticationError extends APIError {
|
|
93
|
-
}
|
|
94
|
-
exports.AuthenticationError = AuthenticationError;
|
|
95
|
-
class PermissionDeniedError extends APIError {
|
|
96
|
-
}
|
|
97
|
-
exports.PermissionDeniedError = PermissionDeniedError;
|
|
98
|
-
class NotFoundError extends APIError {
|
|
99
|
-
}
|
|
100
|
-
exports.NotFoundError = NotFoundError;
|
|
101
|
-
class ConflictError extends APIError {
|
|
102
|
-
}
|
|
103
|
-
exports.ConflictError = ConflictError;
|
|
104
|
-
class UnprocessableEntityError extends APIError {
|
|
105
|
-
}
|
|
106
|
-
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
107
|
-
class RateLimitError extends APIError {
|
|
108
|
-
}
|
|
109
|
-
exports.RateLimitError = RateLimitError;
|
|
110
|
-
class InternalServerError extends APIError {
|
|
111
|
-
}
|
|
112
|
-
exports.InternalServerError = InternalServerError;
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/error instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/error.js"), exports);
|
|
113
6
|
//# sourceMappingURL=error.js.map
|
package/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,0DAA6B"}
|
package/error.mjs
CHANGED
|
@@ -1,97 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { castToError } from "./core.mjs";
|
|
3
|
-
export class IvyError extends Error {
|
|
4
|
-
}
|
|
5
|
-
export class APIError extends IvyError {
|
|
6
|
-
constructor(status, error, message, headers) {
|
|
7
|
-
super(`${APIError.makeMessage(status, error, message)}`);
|
|
8
|
-
this.status = status;
|
|
9
|
-
this.headers = headers;
|
|
10
|
-
this.error = error;
|
|
11
|
-
}
|
|
12
|
-
static makeMessage(status, error, message) {
|
|
13
|
-
const msg = error?.message ?
|
|
14
|
-
typeof error.message === 'string' ?
|
|
15
|
-
error.message
|
|
16
|
-
: JSON.stringify(error.message)
|
|
17
|
-
: error ? JSON.stringify(error)
|
|
18
|
-
: message;
|
|
19
|
-
if (status && msg) {
|
|
20
|
-
return `${status} ${msg}`;
|
|
21
|
-
}
|
|
22
|
-
if (status) {
|
|
23
|
-
return `${status} status code (no body)`;
|
|
24
|
-
}
|
|
25
|
-
if (msg) {
|
|
26
|
-
return msg;
|
|
27
|
-
}
|
|
28
|
-
return '(no status code or body)';
|
|
29
|
-
}
|
|
30
|
-
static generate(status, errorResponse, message, headers) {
|
|
31
|
-
if (!status || !headers) {
|
|
32
|
-
return new APIConnectionError({ message, cause: castToError(errorResponse) });
|
|
33
|
-
}
|
|
34
|
-
const error = errorResponse;
|
|
35
|
-
if (status === 400) {
|
|
36
|
-
return new BadRequestError(status, error, message, headers);
|
|
37
|
-
}
|
|
38
|
-
if (status === 401) {
|
|
39
|
-
return new AuthenticationError(status, error, message, headers);
|
|
40
|
-
}
|
|
41
|
-
if (status === 403) {
|
|
42
|
-
return new PermissionDeniedError(status, error, message, headers);
|
|
43
|
-
}
|
|
44
|
-
if (status === 404) {
|
|
45
|
-
return new NotFoundError(status, error, message, headers);
|
|
46
|
-
}
|
|
47
|
-
if (status === 409) {
|
|
48
|
-
return new ConflictError(status, error, message, headers);
|
|
49
|
-
}
|
|
50
|
-
if (status === 422) {
|
|
51
|
-
return new UnprocessableEntityError(status, error, message, headers);
|
|
52
|
-
}
|
|
53
|
-
if (status === 429) {
|
|
54
|
-
return new RateLimitError(status, error, message, headers);
|
|
55
|
-
}
|
|
56
|
-
if (status >= 500) {
|
|
57
|
-
return new InternalServerError(status, error, message, headers);
|
|
58
|
-
}
|
|
59
|
-
return new APIError(status, error, message, headers);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export class APIUserAbortError extends APIError {
|
|
63
|
-
constructor({ message } = {}) {
|
|
64
|
-
super(undefined, undefined, message || 'Request was aborted.', undefined);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export class APIConnectionError extends APIError {
|
|
68
|
-
constructor({ message, cause }) {
|
|
69
|
-
super(undefined, undefined, message || 'Connection error.', undefined);
|
|
70
|
-
// in some environments the 'cause' property is already declared
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
if (cause)
|
|
73
|
-
this.cause = cause;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export class APIConnectionTimeoutError extends APIConnectionError {
|
|
77
|
-
constructor({ message } = {}) {
|
|
78
|
-
super({ message: message ?? 'Request timed out.' });
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export class BadRequestError extends APIError {
|
|
82
|
-
}
|
|
83
|
-
export class AuthenticationError extends APIError {
|
|
84
|
-
}
|
|
85
|
-
export class PermissionDeniedError extends APIError {
|
|
86
|
-
}
|
|
87
|
-
export class NotFoundError extends APIError {
|
|
88
|
-
}
|
|
89
|
-
export class ConflictError extends APIError {
|
|
90
|
-
}
|
|
91
|
-
export class UnprocessableEntityError extends APIError {
|
|
92
|
-
}
|
|
93
|
-
export class RateLimitError extends APIError {
|
|
94
|
-
}
|
|
95
|
-
export class InternalServerError extends APIError {
|
|
96
|
-
}
|
|
1
|
+
export * from "./core/error.mjs";
|
|
97
2
|
//# sourceMappingURL=error.mjs.map
|
package/error.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
|
package/index.d.mts
CHANGED
|
@@ -1,175 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { BankListParams, BankListResponse, BankRetrieveParams, BankRetrieveResponse, BankSearchParams, BankSearchResponse, Banks } from "./resources/banks.js";
|
|
8
|
-
import { BeneficiaryPayoutCreateResponse, BeneficiaryPayouts } from "./resources/beneficiary-payouts.js";
|
|
9
|
-
import { Capabilities, CapabilityRetrieveParams, CapabilityRetrieveResponse } from "./resources/capabilities.js";
|
|
10
|
-
import { Checkoutsession, CheckoutsessionCreateParams, CheckoutsessionCreateResponse, CheckoutsessionExpireParams, CheckoutsessionExpireResponse, CheckoutsessionRetrieveParams, CheckoutsessionRetrieveResponse } from "./resources/checkoutsession.js";
|
|
11
|
-
import { CustomerCreateParams, CustomerCreateResponse, CustomerDeleteParams, CustomerDeleteResponse, CustomerRetrieveParams, CustomerRetrieveResponse, CustomerSearchParams, CustomerSearchResponse, CustomerUpdateParams, CustomerUpdateResponse, Customers } from "./resources/customers.js";
|
|
12
|
-
import { DepositRetrieveParams, DepositRetrieveResponse, Deposits } from "./resources/deposits.js";
|
|
13
|
-
import { Fx, FxExecuteParams, FxExecuteResponse, FxRetrieveParams, FxRetrieveRateParams, FxRetrieveRateResponse, FxRetrieveResponse } from "./resources/fx.js";
|
|
14
|
-
import { OrderCreateParams, OrderCreateResponse, OrderExpireParams, OrderExpireResponse, OrderRetrieveParams, OrderRetrieveResponse, Orders } from "./resources/orders.js";
|
|
15
|
-
import { Payee, PayeeVerifyParams, PayeeVerifyResponse } from "./resources/payee.js";
|
|
16
|
-
import { Payout, PayoutCreateParams, PayoutListParams, PayoutListResponse, PayoutRetrieveParams, PayoutRetrieveResponse, Payouts } from "./resources/payouts.js";
|
|
17
|
-
import { Refund, RefundCreateParams, RefundCreateResponse, RefundRetrieveParams, Refunds } from "./resources/refunds.js";
|
|
18
|
-
import { ReturnCreateParams, ReturnCreateResponse, ReturnRetrieveParams, ReturnRetrieveResponse, Returns } from "./resources/returns.js";
|
|
19
|
-
import { Subaccount, SubaccountCreateParams, SubaccountCreateResponse, SubaccountRetrieveParams, Subaccounts } from "./resources/subaccounts.js";
|
|
20
|
-
import { TransactionListParams, TransactionListResponse, Transactions } from "./resources/transactions.js";
|
|
21
|
-
import { Data } from "./resources/data/data.js";
|
|
22
|
-
import { Webhook, WebhookTriggerParams, WebhookTriggerResponse } from "./resources/webhook/webhook.js";
|
|
23
|
-
declare const environments: {
|
|
24
|
-
production: string;
|
|
25
|
-
sandbox: string;
|
|
26
|
-
};
|
|
27
|
-
type Environment = keyof typeof environments;
|
|
28
|
-
export interface ClientOptions {
|
|
29
|
-
/**
|
|
30
|
-
* API key for authentication with Ivy API
|
|
31
|
-
*/
|
|
32
|
-
apiKey?: string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the environment to use for the API.
|
|
35
|
-
*
|
|
36
|
-
* Each environment maps to a different base URL:
|
|
37
|
-
* - `production` corresponds to `https://api.getivy.de`
|
|
38
|
-
* - `sandbox` corresponds to `https://api.sand.getivy.de`
|
|
39
|
-
*/
|
|
40
|
-
environment?: Environment | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
43
|
-
*
|
|
44
|
-
* Defaults to process.env['IVY_BASE_URL'].
|
|
45
|
-
*/
|
|
46
|
-
baseURL?: string | null | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
49
|
-
* from the server before timing out a single request.
|
|
50
|
-
*
|
|
51
|
-
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
52
|
-
* much longer than this timeout before the promise succeeds or fails.
|
|
53
|
-
*
|
|
54
|
-
* @unit milliseconds
|
|
55
|
-
*/
|
|
56
|
-
timeout?: number | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* An HTTP agent used to manage HTTP(S) connections.
|
|
59
|
-
*
|
|
60
|
-
* If not provided, an agent will be constructed by default in the Node.js environment,
|
|
61
|
-
* otherwise no agent is used.
|
|
62
|
-
*/
|
|
63
|
-
httpAgent?: Agent | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Specify a custom `fetch` function implementation.
|
|
66
|
-
*
|
|
67
|
-
* If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
|
|
68
|
-
* defined globally.
|
|
69
|
-
*/
|
|
70
|
-
fetch?: Core.Fetch | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The maximum number of times that the client will retry a request in case of a
|
|
73
|
-
* temporary failure, like a network error or a 5XX error from the server.
|
|
74
|
-
*
|
|
75
|
-
* @default 2
|
|
76
|
-
*/
|
|
77
|
-
maxRetries?: number | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Default headers to include with every request to the API.
|
|
80
|
-
*
|
|
81
|
-
* These can be removed in individual requests by explicitly setting the
|
|
82
|
-
* header to `undefined` or `null` in request options.
|
|
83
|
-
*/
|
|
84
|
-
defaultHeaders?: Core.Headers | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Default query parameters to include with every request to the API.
|
|
87
|
-
*
|
|
88
|
-
* These can be removed in individual requests by explicitly setting the
|
|
89
|
-
* param to `undefined` in request options.
|
|
90
|
-
*/
|
|
91
|
-
defaultQuery?: Core.DefaultQuery | undefined;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* API Client for interfacing with the Ivy API.
|
|
95
|
-
*/
|
|
96
|
-
export declare class Ivy extends Core.APIClient {
|
|
97
|
-
#private;
|
|
98
|
-
apiKey: string;
|
|
99
|
-
private _options;
|
|
100
|
-
/**
|
|
101
|
-
* API Client for interfacing with the Ivy API.
|
|
102
|
-
*
|
|
103
|
-
* @param {string | undefined} [opts.apiKey=process.env['IVY_API_KEY'] ?? undefined]
|
|
104
|
-
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
105
|
-
* @param {string} [opts.baseURL=process.env['IVY_BASE_URL'] ?? https://api.getivy.de] - Override the default base URL for the API.
|
|
106
|
-
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
107
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
108
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
109
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
110
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
111
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
112
|
-
*/
|
|
113
|
-
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
114
|
-
banks: API.Banks;
|
|
115
|
-
checkoutsession: API.Checkoutsession;
|
|
116
|
-
data: API.Data;
|
|
117
|
-
customers: API.Customers;
|
|
118
|
-
orders: API.Orders;
|
|
119
|
-
deposits: API.Deposits;
|
|
120
|
-
returns: API.Returns;
|
|
121
|
-
fx: API.Fx;
|
|
122
|
-
beneficiaryPayouts: API.BeneficiaryPayouts;
|
|
123
|
-
transactions: API.Transactions;
|
|
124
|
-
capabilities: API.Capabilities;
|
|
125
|
-
refunds: API.Refunds;
|
|
126
|
-
payouts: API.Payouts;
|
|
127
|
-
subaccounts: API.Subaccounts;
|
|
128
|
-
balance: API.Balance;
|
|
129
|
-
webhook: API.Webhook;
|
|
130
|
-
payee: API.Payee;
|
|
131
|
-
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
132
|
-
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
133
|
-
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
134
|
-
static Ivy: typeof Ivy;
|
|
135
|
-
static DEFAULT_TIMEOUT: number;
|
|
136
|
-
static IvyError: typeof Errors.IvyError;
|
|
137
|
-
static APIError: typeof Errors.APIError;
|
|
138
|
-
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
139
|
-
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
140
|
-
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
141
|
-
static NotFoundError: typeof Errors.NotFoundError;
|
|
142
|
-
static ConflictError: typeof Errors.ConflictError;
|
|
143
|
-
static RateLimitError: typeof Errors.RateLimitError;
|
|
144
|
-
static BadRequestError: typeof Errors.BadRequestError;
|
|
145
|
-
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
146
|
-
static InternalServerError: typeof Errors.InternalServerError;
|
|
147
|
-
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
148
|
-
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
149
|
-
static toFile: typeof Uploads.toFile;
|
|
150
|
-
static fileFromPath: typeof Uploads.fileFromPath;
|
|
151
|
-
}
|
|
152
|
-
export declare namespace Ivy {
|
|
153
|
-
export type RequestOptions = Core.RequestOptions;
|
|
154
|
-
export { Banks as Banks, type BankRetrieveResponse as BankRetrieveResponse, type BankListResponse as BankListResponse, type BankSearchResponse as BankSearchResponse, type BankRetrieveParams as BankRetrieveParams, type BankListParams as BankListParams, type BankSearchParams as BankSearchParams, };
|
|
155
|
-
export { Checkoutsession as Checkoutsession, type CheckoutsessionCreateResponse as CheckoutsessionCreateResponse, type CheckoutsessionRetrieveResponse as CheckoutsessionRetrieveResponse, type CheckoutsessionExpireResponse as CheckoutsessionExpireResponse, type CheckoutsessionCreateParams as CheckoutsessionCreateParams, type CheckoutsessionRetrieveParams as CheckoutsessionRetrieveParams, type CheckoutsessionExpireParams as CheckoutsessionExpireParams, };
|
|
156
|
-
export { Data as Data };
|
|
157
|
-
export { Customers as Customers, type CustomerCreateResponse as CustomerCreateResponse, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerSearchResponse as CustomerSearchResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerDeleteParams as CustomerDeleteParams, type CustomerSearchParams as CustomerSearchParams, };
|
|
158
|
-
export { Orders as Orders, type OrderCreateResponse as OrderCreateResponse, type OrderRetrieveResponse as OrderRetrieveResponse, type OrderExpireResponse as OrderExpireResponse, type OrderCreateParams as OrderCreateParams, type OrderRetrieveParams as OrderRetrieveParams, type OrderExpireParams as OrderExpireParams, };
|
|
159
|
-
export { Deposits as Deposits, type DepositRetrieveResponse as DepositRetrieveResponse, type DepositRetrieveParams as DepositRetrieveParams, };
|
|
160
|
-
export { Returns as Returns, type ReturnCreateResponse as ReturnCreateResponse, type ReturnRetrieveResponse as ReturnRetrieveResponse, type ReturnCreateParams as ReturnCreateParams, type ReturnRetrieveParams as ReturnRetrieveParams, };
|
|
161
|
-
export { Fx as Fx, type FxRetrieveResponse as FxRetrieveResponse, type FxExecuteResponse as FxExecuteResponse, type FxRetrieveRateResponse as FxRetrieveRateResponse, type FxRetrieveParams as FxRetrieveParams, type FxExecuteParams as FxExecuteParams, type FxRetrieveRateParams as FxRetrieveRateParams, };
|
|
162
|
-
export { BeneficiaryPayouts as BeneficiaryPayouts, type BeneficiaryPayoutCreateResponse as BeneficiaryPayoutCreateResponse, };
|
|
163
|
-
export { Transactions as Transactions, type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
|
|
164
|
-
export { Capabilities as Capabilities, type CapabilityRetrieveResponse as CapabilityRetrieveResponse, type CapabilityRetrieveParams as CapabilityRetrieveParams, };
|
|
165
|
-
export { Refunds as Refunds, type Refund as Refund, type RefundCreateResponse as RefundCreateResponse, type RefundCreateParams as RefundCreateParams, type RefundRetrieveParams as RefundRetrieveParams, };
|
|
166
|
-
export { Payouts as Payouts, type Payout as Payout, type PayoutRetrieveResponse as PayoutRetrieveResponse, type PayoutListResponse as PayoutListResponse, type PayoutCreateParams as PayoutCreateParams, type PayoutRetrieveParams as PayoutRetrieveParams, type PayoutListParams as PayoutListParams, };
|
|
167
|
-
export { Subaccounts as Subaccounts, type Subaccount as Subaccount, type SubaccountCreateResponse as SubaccountCreateResponse, type SubaccountCreateParams as SubaccountCreateParams, type SubaccountRetrieveParams as SubaccountRetrieveParams, };
|
|
168
|
-
export { Balance as Balance, type BalanceRetrieveResponse as BalanceRetrieveResponse, type BalanceRetrieveParams as BalanceRetrieveParams, };
|
|
169
|
-
export { Webhook as Webhook, type WebhookTriggerResponse as WebhookTriggerResponse, type WebhookTriggerParams as WebhookTriggerParams, };
|
|
170
|
-
export { Payee as Payee, type PayeeVerifyResponse as PayeeVerifyResponse, type PayeeVerifyParams as PayeeVerifyParams, };
|
|
171
|
-
}
|
|
172
|
-
export { toFile, fileFromPath } from "./uploads.js";
|
|
173
|
-
export { IvyError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
|
174
|
-
export default Ivy;
|
|
175
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { Ivy as default } from "./client.mjs";
|
|
2
|
+
export { type Uploadable, toFile } from "./core/uploads.mjs";
|
|
3
|
+
export { APIPromise } from "./core/api-promise.mjs";
|
|
4
|
+
export { Ivy, type ClientOptions } from "./client.mjs";
|
|
5
|
+
export { IvyError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
package/index.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,IAAI,OAAO,EAAE;OAElB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,GAAG,EAAE,KAAK,aAAa,EAAE;OAC3B,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
package/index.d.ts
CHANGED
|
@@ -1,175 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { Balance, BalanceRetrieveParams, BalanceRetrieveResponse } from "./resources/balance.js";
|
|
7
|
-
import { BankListParams, BankListResponse, BankRetrieveParams, BankRetrieveResponse, BankSearchParams, BankSearchResponse, Banks } from "./resources/banks.js";
|
|
8
|
-
import { BeneficiaryPayoutCreateResponse, BeneficiaryPayouts } from "./resources/beneficiary-payouts.js";
|
|
9
|
-
import { Capabilities, CapabilityRetrieveParams, CapabilityRetrieveResponse } from "./resources/capabilities.js";
|
|
10
|
-
import { Checkoutsession, CheckoutsessionCreateParams, CheckoutsessionCreateResponse, CheckoutsessionExpireParams, CheckoutsessionExpireResponse, CheckoutsessionRetrieveParams, CheckoutsessionRetrieveResponse } from "./resources/checkoutsession.js";
|
|
11
|
-
import { CustomerCreateParams, CustomerCreateResponse, CustomerDeleteParams, CustomerDeleteResponse, CustomerRetrieveParams, CustomerRetrieveResponse, CustomerSearchParams, CustomerSearchResponse, CustomerUpdateParams, CustomerUpdateResponse, Customers } from "./resources/customers.js";
|
|
12
|
-
import { DepositRetrieveParams, DepositRetrieveResponse, Deposits } from "./resources/deposits.js";
|
|
13
|
-
import { Fx, FxExecuteParams, FxExecuteResponse, FxRetrieveParams, FxRetrieveRateParams, FxRetrieveRateResponse, FxRetrieveResponse } from "./resources/fx.js";
|
|
14
|
-
import { OrderCreateParams, OrderCreateResponse, OrderExpireParams, OrderExpireResponse, OrderRetrieveParams, OrderRetrieveResponse, Orders } from "./resources/orders.js";
|
|
15
|
-
import { Payee, PayeeVerifyParams, PayeeVerifyResponse } from "./resources/payee.js";
|
|
16
|
-
import { Payout, PayoutCreateParams, PayoutListParams, PayoutListResponse, PayoutRetrieveParams, PayoutRetrieveResponse, Payouts } from "./resources/payouts.js";
|
|
17
|
-
import { Refund, RefundCreateParams, RefundCreateResponse, RefundRetrieveParams, Refunds } from "./resources/refunds.js";
|
|
18
|
-
import { ReturnCreateParams, ReturnCreateResponse, ReturnRetrieveParams, ReturnRetrieveResponse, Returns } from "./resources/returns.js";
|
|
19
|
-
import { Subaccount, SubaccountCreateParams, SubaccountCreateResponse, SubaccountRetrieveParams, Subaccounts } from "./resources/subaccounts.js";
|
|
20
|
-
import { TransactionListParams, TransactionListResponse, Transactions } from "./resources/transactions.js";
|
|
21
|
-
import { Data } from "./resources/data/data.js";
|
|
22
|
-
import { Webhook, WebhookTriggerParams, WebhookTriggerResponse } from "./resources/webhook/webhook.js";
|
|
23
|
-
declare const environments: {
|
|
24
|
-
production: string;
|
|
25
|
-
sandbox: string;
|
|
26
|
-
};
|
|
27
|
-
type Environment = keyof typeof environments;
|
|
28
|
-
export interface ClientOptions {
|
|
29
|
-
/**
|
|
30
|
-
* API key for authentication with Ivy API
|
|
31
|
-
*/
|
|
32
|
-
apiKey?: string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the environment to use for the API.
|
|
35
|
-
*
|
|
36
|
-
* Each environment maps to a different base URL:
|
|
37
|
-
* - `production` corresponds to `https://api.getivy.de`
|
|
38
|
-
* - `sandbox` corresponds to `https://api.sand.getivy.de`
|
|
39
|
-
*/
|
|
40
|
-
environment?: Environment | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
43
|
-
*
|
|
44
|
-
* Defaults to process.env['IVY_BASE_URL'].
|
|
45
|
-
*/
|
|
46
|
-
baseURL?: string | null | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
49
|
-
* from the server before timing out a single request.
|
|
50
|
-
*
|
|
51
|
-
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
52
|
-
* much longer than this timeout before the promise succeeds or fails.
|
|
53
|
-
*
|
|
54
|
-
* @unit milliseconds
|
|
55
|
-
*/
|
|
56
|
-
timeout?: number | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* An HTTP agent used to manage HTTP(S) connections.
|
|
59
|
-
*
|
|
60
|
-
* If not provided, an agent will be constructed by default in the Node.js environment,
|
|
61
|
-
* otherwise no agent is used.
|
|
62
|
-
*/
|
|
63
|
-
httpAgent?: Agent | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Specify a custom `fetch` function implementation.
|
|
66
|
-
*
|
|
67
|
-
* If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
|
|
68
|
-
* defined globally.
|
|
69
|
-
*/
|
|
70
|
-
fetch?: Core.Fetch | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The maximum number of times that the client will retry a request in case of a
|
|
73
|
-
* temporary failure, like a network error or a 5XX error from the server.
|
|
74
|
-
*
|
|
75
|
-
* @default 2
|
|
76
|
-
*/
|
|
77
|
-
maxRetries?: number | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Default headers to include with every request to the API.
|
|
80
|
-
*
|
|
81
|
-
* These can be removed in individual requests by explicitly setting the
|
|
82
|
-
* header to `undefined` or `null` in request options.
|
|
83
|
-
*/
|
|
84
|
-
defaultHeaders?: Core.Headers | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Default query parameters to include with every request to the API.
|
|
87
|
-
*
|
|
88
|
-
* These can be removed in individual requests by explicitly setting the
|
|
89
|
-
* param to `undefined` in request options.
|
|
90
|
-
*/
|
|
91
|
-
defaultQuery?: Core.DefaultQuery | undefined;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* API Client for interfacing with the Ivy API.
|
|
95
|
-
*/
|
|
96
|
-
export declare class Ivy extends Core.APIClient {
|
|
97
|
-
#private;
|
|
98
|
-
apiKey: string;
|
|
99
|
-
private _options;
|
|
100
|
-
/**
|
|
101
|
-
* API Client for interfacing with the Ivy API.
|
|
102
|
-
*
|
|
103
|
-
* @param {string | undefined} [opts.apiKey=process.env['IVY_API_KEY'] ?? undefined]
|
|
104
|
-
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
105
|
-
* @param {string} [opts.baseURL=process.env['IVY_BASE_URL'] ?? https://api.getivy.de] - Override the default base URL for the API.
|
|
106
|
-
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
107
|
-
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
108
|
-
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
109
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
110
|
-
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
111
|
-
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
112
|
-
*/
|
|
113
|
-
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
114
|
-
banks: API.Banks;
|
|
115
|
-
checkoutsession: API.Checkoutsession;
|
|
116
|
-
data: API.Data;
|
|
117
|
-
customers: API.Customers;
|
|
118
|
-
orders: API.Orders;
|
|
119
|
-
deposits: API.Deposits;
|
|
120
|
-
returns: API.Returns;
|
|
121
|
-
fx: API.Fx;
|
|
122
|
-
beneficiaryPayouts: API.BeneficiaryPayouts;
|
|
123
|
-
transactions: API.Transactions;
|
|
124
|
-
capabilities: API.Capabilities;
|
|
125
|
-
refunds: API.Refunds;
|
|
126
|
-
payouts: API.Payouts;
|
|
127
|
-
subaccounts: API.Subaccounts;
|
|
128
|
-
balance: API.Balance;
|
|
129
|
-
webhook: API.Webhook;
|
|
130
|
-
payee: API.Payee;
|
|
131
|
-
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
132
|
-
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
133
|
-
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
134
|
-
static Ivy: typeof Ivy;
|
|
135
|
-
static DEFAULT_TIMEOUT: number;
|
|
136
|
-
static IvyError: typeof Errors.IvyError;
|
|
137
|
-
static APIError: typeof Errors.APIError;
|
|
138
|
-
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
139
|
-
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
140
|
-
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
141
|
-
static NotFoundError: typeof Errors.NotFoundError;
|
|
142
|
-
static ConflictError: typeof Errors.ConflictError;
|
|
143
|
-
static RateLimitError: typeof Errors.RateLimitError;
|
|
144
|
-
static BadRequestError: typeof Errors.BadRequestError;
|
|
145
|
-
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
146
|
-
static InternalServerError: typeof Errors.InternalServerError;
|
|
147
|
-
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
148
|
-
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
149
|
-
static toFile: typeof Uploads.toFile;
|
|
150
|
-
static fileFromPath: typeof Uploads.fileFromPath;
|
|
151
|
-
}
|
|
152
|
-
export declare namespace Ivy {
|
|
153
|
-
export type RequestOptions = Core.RequestOptions;
|
|
154
|
-
export { Banks as Banks, type BankRetrieveResponse as BankRetrieveResponse, type BankListResponse as BankListResponse, type BankSearchResponse as BankSearchResponse, type BankRetrieveParams as BankRetrieveParams, type BankListParams as BankListParams, type BankSearchParams as BankSearchParams, };
|
|
155
|
-
export { Checkoutsession as Checkoutsession, type CheckoutsessionCreateResponse as CheckoutsessionCreateResponse, type CheckoutsessionRetrieveResponse as CheckoutsessionRetrieveResponse, type CheckoutsessionExpireResponse as CheckoutsessionExpireResponse, type CheckoutsessionCreateParams as CheckoutsessionCreateParams, type CheckoutsessionRetrieveParams as CheckoutsessionRetrieveParams, type CheckoutsessionExpireParams as CheckoutsessionExpireParams, };
|
|
156
|
-
export { Data as Data };
|
|
157
|
-
export { Customers as Customers, type CustomerCreateResponse as CustomerCreateResponse, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerSearchResponse as CustomerSearchResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerDeleteParams as CustomerDeleteParams, type CustomerSearchParams as CustomerSearchParams, };
|
|
158
|
-
export { Orders as Orders, type OrderCreateResponse as OrderCreateResponse, type OrderRetrieveResponse as OrderRetrieveResponse, type OrderExpireResponse as OrderExpireResponse, type OrderCreateParams as OrderCreateParams, type OrderRetrieveParams as OrderRetrieveParams, type OrderExpireParams as OrderExpireParams, };
|
|
159
|
-
export { Deposits as Deposits, type DepositRetrieveResponse as DepositRetrieveResponse, type DepositRetrieveParams as DepositRetrieveParams, };
|
|
160
|
-
export { Returns as Returns, type ReturnCreateResponse as ReturnCreateResponse, type ReturnRetrieveResponse as ReturnRetrieveResponse, type ReturnCreateParams as ReturnCreateParams, type ReturnRetrieveParams as ReturnRetrieveParams, };
|
|
161
|
-
export { Fx as Fx, type FxRetrieveResponse as FxRetrieveResponse, type FxExecuteResponse as FxExecuteResponse, type FxRetrieveRateResponse as FxRetrieveRateResponse, type FxRetrieveParams as FxRetrieveParams, type FxExecuteParams as FxExecuteParams, type FxRetrieveRateParams as FxRetrieveRateParams, };
|
|
162
|
-
export { BeneficiaryPayouts as BeneficiaryPayouts, type BeneficiaryPayoutCreateResponse as BeneficiaryPayoutCreateResponse, };
|
|
163
|
-
export { Transactions as Transactions, type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
|
|
164
|
-
export { Capabilities as Capabilities, type CapabilityRetrieveResponse as CapabilityRetrieveResponse, type CapabilityRetrieveParams as CapabilityRetrieveParams, };
|
|
165
|
-
export { Refunds as Refunds, type Refund as Refund, type RefundCreateResponse as RefundCreateResponse, type RefundCreateParams as RefundCreateParams, type RefundRetrieveParams as RefundRetrieveParams, };
|
|
166
|
-
export { Payouts as Payouts, type Payout as Payout, type PayoutRetrieveResponse as PayoutRetrieveResponse, type PayoutListResponse as PayoutListResponse, type PayoutCreateParams as PayoutCreateParams, type PayoutRetrieveParams as PayoutRetrieveParams, type PayoutListParams as PayoutListParams, };
|
|
167
|
-
export { Subaccounts as Subaccounts, type Subaccount as Subaccount, type SubaccountCreateResponse as SubaccountCreateResponse, type SubaccountCreateParams as SubaccountCreateParams, type SubaccountRetrieveParams as SubaccountRetrieveParams, };
|
|
168
|
-
export { Balance as Balance, type BalanceRetrieveResponse as BalanceRetrieveResponse, type BalanceRetrieveParams as BalanceRetrieveParams, };
|
|
169
|
-
export { Webhook as Webhook, type WebhookTriggerResponse as WebhookTriggerResponse, type WebhookTriggerParams as WebhookTriggerParams, };
|
|
170
|
-
export { Payee as Payee, type PayeeVerifyResponse as PayeeVerifyResponse, type PayeeVerifyParams as PayeeVerifyParams, };
|
|
171
|
-
}
|
|
172
|
-
export { toFile, fileFromPath } from "./uploads.js";
|
|
173
|
-
export { IvyError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
|
174
|
-
export default Ivy;
|
|
1
|
+
export { Ivy as default } from "./client.js";
|
|
2
|
+
export { type Uploadable, toFile } from "./core/uploads.js";
|
|
3
|
+
export { APIPromise } from "./core/api-promise.js";
|
|
4
|
+
export { Ivy, type ClientOptions } from "./client.js";
|
|
5
|
+
export { IvyError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.js";
|
|
175
6
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,IAAI,OAAO,EAAE;OAElB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,GAAG,EAAE,KAAK,aAAa,EAAE;OAC3B,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|