@getivy/node-sdk 1.7.1 → 2.0.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 +149 -571
- 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 +243 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +243 -0
- package/client.d.ts.map +1 -0
- package/client.js +524 -0
- package/client.js.map +1 -0
- package/client.mjs +520 -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/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/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 +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/banks.d.mts.map +1 -0
- 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/data/accounts.d.mts +95 -0
- package/resources/data/accounts.d.mts.map +1 -0
- package/resources/data/accounts.d.ts +4 -3
- package/resources/data/accounts.d.ts.map +1 -1
- package/resources/data/accounts.js +1 -1
- package/resources/data/accounts.js.map +1 -1
- package/resources/data/accounts.mjs +1 -1
- package/resources/data/accounts.mjs.map +1 -1
- package/resources/data/balances.d.mts +49 -0
- package/resources/data/balances.d.mts.map +1 -0
- package/resources/data/balances.d.ts +4 -3
- package/resources/data/balances.d.ts.map +1 -1
- package/resources/data/balances.js +1 -1
- package/resources/data/balances.js.map +1 -1
- package/resources/data/balances.mjs +1 -1
- package/resources/data/balances.mjs.map +1 -1
- package/resources/data/consent.d.mts +81 -0
- package/resources/data/consent.d.mts.map +1 -0
- package/resources/data/consent.d.ts +5 -4
- package/resources/data/consent.d.ts.map +1 -1
- package/resources/data/consent.js +1 -1
- package/resources/data/consent.js.map +1 -1
- package/resources/data/consent.mjs +1 -1
- package/resources/data/consent.mjs.map +1 -1
- package/resources/data/data.d.mts +26 -0
- package/resources/data/data.d.mts.map +1 -0
- package/resources/data/data.d.ts +1 -1
- package/resources/data/data.d.ts.map +1 -1
- package/resources/data/data.js +7 -29
- package/resources/data/data.js.map +1 -1
- package/resources/data/data.mjs +1 -1
- package/resources/data/index.d.mts +7 -0
- package/resources/data/index.d.mts.map +1 -0
- package/resources/data/index.d.ts.map +1 -1
- package/resources/data/session.d.mts +259 -0
- package/resources/data/session.d.mts.map +1 -0
- package/resources/data/session.d.ts +5 -4
- package/resources/data/session.d.ts.map +1 -1
- package/resources/data/session.js +1 -1
- package/resources/data/session.js.map +1 -1
- package/resources/data/session.mjs +1 -1
- package/resources/data/session.mjs.map +1 -1
- package/resources/data/transactions.d.mts +62 -0
- package/resources/data/transactions.d.mts.map +1 -0
- package/resources/data/transactions.d.ts +4 -3
- package/resources/data/transactions.d.ts.map +1 -1
- package/resources/data/transactions.js +1 -1
- package/resources/data/transactions.js.map +1 -1
- package/resources/data/transactions.mjs +1 -1
- package/resources/data/transactions.mjs.map +1 -1
- package/resources/data.d.mts +2 -0
- package/resources/data.d.mts.map +1 -0
- package/resources/data.d.ts.map +1 -1
- package/resources/data.js +2 -15
- package/resources/data.js.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 +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/orders.d.mts +1251 -0
- package/resources/orders.d.mts.map +1 -0
- package/resources/orders.d.ts +6 -5
- 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 +198 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +4 -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 +153 -0
- package/resources/webhook/subscription.d.mts.map +1 -0
- package/resources/webhook/subscription.d.ts +8 -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 +1002 -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/data/accounts.ts +4 -3
- package/src/resources/data/balances.ts +4 -3
- package/src/resources/data/consent.ts +5 -7
- package/src/resources/data/data.ts +1 -1
- package/src/resources/data/session.ts +5 -7
- package/src/resources/data/transactions.ts +4 -3
- package/src/resources/deposits.ts +4 -6
- package/src/resources/fx.ts +6 -8
- package/src/resources/orders.ts +6 -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 +4 -3
- package/src/resources/webhook/subscription.ts +8 -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/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/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Ivy
|
|
1
|
+
# Ivy TypeScript API Library
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/@getivy/node-sdk) 
|
|
3
|
+
[>)](https://npmjs.org/package/@getivy/node-sdk) 
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the Ivy REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
@@ -130,8 +130,10 @@ Note that requests which time out will be [retried twice by default](#retries).
|
|
|
130
130
|
### Accessing raw Response data (e.g., headers)
|
|
131
131
|
|
|
132
132
|
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
|
|
133
|
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
|
|
133
134
|
|
|
134
135
|
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
|
|
136
|
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
|
|
135
137
|
|
|
136
138
|
<!-- prettier-ignore -->
|
|
137
139
|
```ts
|
|
@@ -148,6 +150,59 @@ console.log(raw.headers.get('X-My-Header'));
|
|
|
148
150
|
console.log(customer.id);
|
|
149
151
|
```
|
|
150
152
|
|
|
153
|
+
### Logging
|
|
154
|
+
|
|
155
|
+
> [!IMPORTANT]
|
|
156
|
+
> All log messages are intended for debugging only. The format and content of log messages
|
|
157
|
+
> may change between releases.
|
|
158
|
+
|
|
159
|
+
#### Log levels
|
|
160
|
+
|
|
161
|
+
The log level can be configured in two ways:
|
|
162
|
+
|
|
163
|
+
1. Via the `IVY_LOG` environment variable
|
|
164
|
+
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
import Ivy from '@getivy/node-sdk';
|
|
168
|
+
|
|
169
|
+
const client = new Ivy({
|
|
170
|
+
logLevel: 'debug', // Show all log messages
|
|
171
|
+
});
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Available log levels, from most to least verbose:
|
|
175
|
+
|
|
176
|
+
- `'debug'` - Show debug messages, info, warnings, and errors
|
|
177
|
+
- `'info'` - Show info messages, warnings, and errors
|
|
178
|
+
- `'warn'` - Show warnings and errors (default)
|
|
179
|
+
- `'error'` - Show only errors
|
|
180
|
+
- `'off'` - Disable all logging
|
|
181
|
+
|
|
182
|
+
At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
|
|
183
|
+
Some authentication-related headers are redacted, but sensitive data in request and response bodies
|
|
184
|
+
may still be visible.
|
|
185
|
+
|
|
186
|
+
#### Custom logger
|
|
187
|
+
|
|
188
|
+
By default, this library logs to `globalThis.console`. You can also provide a custom logger.
|
|
189
|
+
Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
|
|
190
|
+
|
|
191
|
+
When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
|
|
192
|
+
below the configured level will not be sent to your logger.
|
|
193
|
+
|
|
194
|
+
```ts
|
|
195
|
+
import Ivy from '@getivy/node-sdk';
|
|
196
|
+
import pino from 'pino';
|
|
197
|
+
|
|
198
|
+
const logger = pino();
|
|
199
|
+
|
|
200
|
+
const client = new Ivy({
|
|
201
|
+
logger: logger.child({ name: 'Ivy' }),
|
|
202
|
+
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
151
206
|
### Making custom/undocumented requests
|
|
152
207
|
|
|
153
208
|
This library is typed for convenient access to the documented API. If you need to access undocumented
|
|
@@ -172,9 +227,8 @@ parameter. This library doesn't validate at runtime that the request matches the
|
|
|
172
227
|
send will be sent as-is.
|
|
173
228
|
|
|
174
229
|
```ts
|
|
175
|
-
client.
|
|
176
|
-
|
|
177
|
-
bar: 12,
|
|
230
|
+
client.customers.create({
|
|
231
|
+
// ...
|
|
178
232
|
// @ts-expect-error baz is not yet public
|
|
179
233
|
baz: 'undocumented option',
|
|
180
234
|
});
|
|
@@ -194,69 +248,85 @@ validate or strip extra properties from the response from the API.
|
|
|
194
248
|
|
|
195
249
|
### Customizing the fetch client
|
|
196
250
|
|
|
197
|
-
By default, this library
|
|
251
|
+
By default, this library expects a global `fetch` function is defined.
|
|
198
252
|
|
|
199
|
-
If you
|
|
200
|
-
(for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
|
|
201
|
-
add the following import before your first import `from "Ivy"`:
|
|
253
|
+
If you want to use a different `fetch` function, you can either polyfill the global:
|
|
202
254
|
|
|
203
255
|
```ts
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
import Ivy from '@getivy/node-sdk';
|
|
256
|
+
import fetch from 'my-fetch';
|
|
257
|
+
|
|
258
|
+
globalThis.fetch = fetch;
|
|
208
259
|
```
|
|
209
260
|
|
|
210
|
-
|
|
211
|
-
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/getivy/node-sdk/tree/main/src/_shims#readme)).
|
|
261
|
+
Or pass it to the client:
|
|
212
262
|
|
|
213
|
-
|
|
263
|
+
```ts
|
|
264
|
+
import Ivy from '@getivy/node-sdk';
|
|
265
|
+
import fetch from 'my-fetch';
|
|
214
266
|
|
|
215
|
-
|
|
216
|
-
|
|
267
|
+
const client = new Ivy({ fetch });
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Fetch options
|
|
271
|
+
|
|
272
|
+
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
217
273
|
|
|
218
274
|
```ts
|
|
219
|
-
import { fetch } from 'undici'; // as one example
|
|
220
275
|
import Ivy from '@getivy/node-sdk';
|
|
221
276
|
|
|
222
277
|
const client = new Ivy({
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
const response = await fetch(url, init);
|
|
226
|
-
console.log('Got response', response);
|
|
227
|
-
return response;
|
|
278
|
+
fetchOptions: {
|
|
279
|
+
// `RequestInit` options
|
|
228
280
|
},
|
|
229
281
|
});
|
|
230
282
|
```
|
|
231
283
|
|
|
232
|
-
|
|
233
|
-
This is intended for debugging purposes only and may change in the future without notice.
|
|
284
|
+
#### Configuring proxies
|
|
234
285
|
|
|
235
|
-
|
|
286
|
+
To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
|
|
287
|
+
options to requests:
|
|
236
288
|
|
|
237
|
-
|
|
289
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
238
290
|
|
|
239
|
-
|
|
291
|
+
```ts
|
|
292
|
+
import Ivy from '@getivy/node-sdk';
|
|
293
|
+
import * as undici from 'undici';
|
|
294
|
+
|
|
295
|
+
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
296
|
+
const client = new Ivy({
|
|
297
|
+
fetchOptions: {
|
|
298
|
+
dispatcher: proxyAgent,
|
|
299
|
+
},
|
|
300
|
+
});
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
240
304
|
|
|
241
|
-
<!-- prettier-ignore -->
|
|
242
305
|
```ts
|
|
243
|
-
import
|
|
244
|
-
import { HttpsProxyAgent } from 'https-proxy-agent';
|
|
306
|
+
import Ivy from '@getivy/node-sdk';
|
|
245
307
|
|
|
246
|
-
// Configure the default for all requests:
|
|
247
308
|
const client = new Ivy({
|
|
248
|
-
|
|
309
|
+
fetchOptions: {
|
|
310
|
+
proxy: 'http://localhost:8888',
|
|
311
|
+
},
|
|
249
312
|
});
|
|
313
|
+
```
|
|
250
314
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
315
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
316
|
+
|
|
317
|
+
```ts
|
|
318
|
+
import Ivy from 'npm:@getivy/node-sdk';
|
|
319
|
+
|
|
320
|
+
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
321
|
+
const client = new Ivy({
|
|
322
|
+
fetchOptions: {
|
|
323
|
+
client: httpClient,
|
|
256
324
|
},
|
|
257
|
-
);
|
|
325
|
+
});
|
|
258
326
|
```
|
|
259
327
|
|
|
328
|
+
## Frequently Asked Questions
|
|
329
|
+
|
|
260
330
|
## Semantic versioning
|
|
261
331
|
|
|
262
332
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
@@ -271,12 +341,12 @@ We are keen for your feedback; please open an [issue](https://www.github.com/get
|
|
|
271
341
|
|
|
272
342
|
## Requirements
|
|
273
343
|
|
|
274
|
-
TypeScript >= 4.
|
|
344
|
+
TypeScript >= 4.9 is supported.
|
|
275
345
|
|
|
276
346
|
The following runtimes are supported:
|
|
277
347
|
|
|
278
348
|
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
|
|
279
|
-
- Node.js
|
|
349
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
280
350
|
- Deno v1.28.0 or higher.
|
|
281
351
|
- Bun 1.0 or later.
|
|
282
352
|
- Cloudflare Workers.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/api-promise instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
+
//# sourceMappingURL=api-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/bin/cli
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const commands = {
|
|
6
|
+
migrate: {
|
|
7
|
+
description:
|
|
8
|
+
'Run migrations to update your code using @getivy/node-sdk@1 to be compatible with @getivy/node-sdk@2',
|
|
9
|
+
fn: () => {
|
|
10
|
+
const result = spawnSync(
|
|
11
|
+
'npx',
|
|
12
|
+
[
|
|
13
|
+
'-y',
|
|
14
|
+
'https://github.com/stainless-api/migrate-ts/releases/download/0.0.2/stainless-api-migrate-0.0.2-6.tgz',
|
|
15
|
+
'--migrationConfig',
|
|
16
|
+
require.resolve('./migration-config.json'),
|
|
17
|
+
...process.argv.slice(3),
|
|
18
|
+
],
|
|
19
|
+
{ stdio: 'inherit' },
|
|
20
|
+
);
|
|
21
|
+
if (result.status !== 0) {
|
|
22
|
+
process.exit(result.status);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function exitWithHelp() {
|
|
29
|
+
console.log(`Usage: getivy-node-sdk <subcommand>`);
|
|
30
|
+
console.log();
|
|
31
|
+
console.log('Subcommands:');
|
|
32
|
+
|
|
33
|
+
for (const [name, info] of Object.entries(commands)) {
|
|
34
|
+
console.log(` ${name} ${info.description}`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
console.log();
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (process.argv.length < 3) {
|
|
42
|
+
exitWithHelp();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const commandName = process.argv[2];
|
|
46
|
+
|
|
47
|
+
const command = commands[commandName];
|
|
48
|
+
if (!command) {
|
|
49
|
+
console.log(`Unknown subcommand ${commandName}.`);
|
|
50
|
+
exitWithHelp();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
command.fn();
|
package/client.d.mts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
+
import * as API from "./resources/index.mjs";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
+
import { Balance, BalanceRetrieveParams, BalanceRetrieveResponse } from "./resources/balance.mjs";
|
|
10
|
+
import { BankListParams, BankListResponse, BankRetrieveParams, BankRetrieveResponse, BankSearchParams, BankSearchResponse, Banks } from "./resources/banks.mjs";
|
|
11
|
+
import { BeneficiaryPayoutCreateResponse, BeneficiaryPayouts } from "./resources/beneficiary-payouts.mjs";
|
|
12
|
+
import { Capabilities, CapabilityRetrieveParams, CapabilityRetrieveResponse } from "./resources/capabilities.mjs";
|
|
13
|
+
import { Checkoutsession, CheckoutsessionCreateParams, CheckoutsessionCreateResponse, CheckoutsessionExpireParams, CheckoutsessionExpireResponse, CheckoutsessionRetrieveParams, CheckoutsessionRetrieveResponse } from "./resources/checkoutsession.mjs";
|
|
14
|
+
import { CustomerCreateParams, CustomerCreateResponse, CustomerDeleteParams, CustomerDeleteResponse, CustomerRetrieveParams, CustomerRetrieveResponse, CustomerSearchParams, CustomerSearchResponse, CustomerUpdateParams, CustomerUpdateResponse, Customers } from "./resources/customers.mjs";
|
|
15
|
+
import { DepositRetrieveParams, DepositRetrieveResponse, Deposits } from "./resources/deposits.mjs";
|
|
16
|
+
import { Fx, FxExecuteParams, FxExecuteResponse, FxRetrieveParams, FxRetrieveRateParams, FxRetrieveRateResponse, FxRetrieveResponse } from "./resources/fx.mjs";
|
|
17
|
+
import { OrderCreateParams, OrderCreateResponse, OrderExpireParams, OrderExpireResponse, OrderRetrieveParams, OrderRetrieveResponse, Orders } from "./resources/orders.mjs";
|
|
18
|
+
import { Payee, PayeeVerifyParams, PayeeVerifyResponse } from "./resources/payee.mjs";
|
|
19
|
+
import { Payout, PayoutCreateParams, PayoutListParams, PayoutListResponse, PayoutRetrieveParams, PayoutRetrieveResponse, Payouts } from "./resources/payouts.mjs";
|
|
20
|
+
import { Refund, RefundCreateParams, RefundCreateResponse, RefundRetrieveParams, Refunds } from "./resources/refunds.mjs";
|
|
21
|
+
import { ReturnCreateParams, ReturnCreateResponse, ReturnRetrieveParams, ReturnRetrieveResponse, Returns } from "./resources/returns.mjs";
|
|
22
|
+
import { Subaccount, SubaccountCreateParams, SubaccountCreateResponse, SubaccountRetrieveParams, Subaccounts } from "./resources/subaccounts.mjs";
|
|
23
|
+
import { TransactionListParams, TransactionListResponse, Transactions } from "./resources/transactions.mjs";
|
|
24
|
+
import { Data } from "./resources/data/data.mjs";
|
|
25
|
+
import { Webhook, WebhookTriggerParams, WebhookTriggerResponse } from "./resources/webhook/webhook.mjs";
|
|
26
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
27
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
28
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
29
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
30
|
+
declare const environments: {
|
|
31
|
+
production: string;
|
|
32
|
+
sandbox: string;
|
|
33
|
+
};
|
|
34
|
+
type Environment = keyof typeof environments;
|
|
35
|
+
export interface ClientOptions {
|
|
36
|
+
/**
|
|
37
|
+
* API key for authentication with Ivy API
|
|
38
|
+
*/
|
|
39
|
+
apiKey?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the environment to use for the API.
|
|
42
|
+
*
|
|
43
|
+
* Each environment maps to a different base URL:
|
|
44
|
+
* - `production` corresponds to `https://api.getivy.de`
|
|
45
|
+
* - `sandbox` corresponds to `https://api.sand.getivy.de`
|
|
46
|
+
*/
|
|
47
|
+
environment?: Environment | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
50
|
+
*
|
|
51
|
+
* Defaults to process.env['IVY_BASE_URL'].
|
|
52
|
+
*/
|
|
53
|
+
baseURL?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
56
|
+
* from the server before timing out a single request.
|
|
57
|
+
*
|
|
58
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
59
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
60
|
+
*
|
|
61
|
+
* @unit milliseconds
|
|
62
|
+
*/
|
|
63
|
+
timeout?: number | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
66
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
67
|
+
*/
|
|
68
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Specify a custom `fetch` function implementation.
|
|
71
|
+
*
|
|
72
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
73
|
+
*/
|
|
74
|
+
fetch?: Fetch | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
77
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
78
|
+
*
|
|
79
|
+
* @default 2
|
|
80
|
+
*/
|
|
81
|
+
maxRetries?: number | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Default headers to include with every request to the API.
|
|
84
|
+
*
|
|
85
|
+
* These can be removed in individual requests by explicitly setting the
|
|
86
|
+
* header to `null` in request options.
|
|
87
|
+
*/
|
|
88
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Default query parameters to include with every request to the API.
|
|
91
|
+
*
|
|
92
|
+
* These can be removed in individual requests by explicitly setting the
|
|
93
|
+
* param to `undefined` in request options.
|
|
94
|
+
*/
|
|
95
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Set the log level.
|
|
98
|
+
*
|
|
99
|
+
* Defaults to process.env['IVY_LOG'] or 'warn' if it isn't set.
|
|
100
|
+
*/
|
|
101
|
+
logLevel?: LogLevel | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Set the logger.
|
|
104
|
+
*
|
|
105
|
+
* Defaults to globalThis.console.
|
|
106
|
+
*/
|
|
107
|
+
logger?: Logger | undefined;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* API Client for interfacing with the Ivy API.
|
|
111
|
+
*/
|
|
112
|
+
export declare class Ivy {
|
|
113
|
+
#private;
|
|
114
|
+
apiKey: string;
|
|
115
|
+
baseURL: string;
|
|
116
|
+
maxRetries: number;
|
|
117
|
+
timeout: number;
|
|
118
|
+
logger: Logger;
|
|
119
|
+
logLevel: LogLevel | undefined;
|
|
120
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
121
|
+
private fetch;
|
|
122
|
+
protected idempotencyHeader?: string;
|
|
123
|
+
private _options;
|
|
124
|
+
/**
|
|
125
|
+
* API Client for interfacing with the Ivy API.
|
|
126
|
+
*
|
|
127
|
+
* @param {string | undefined} [opts.apiKey=process.env['IVY_API_KEY'] ?? undefined]
|
|
128
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
129
|
+
* @param {string} [opts.baseURL=process.env['IVY_BASE_URL'] ?? https://api.getivy.de] - Override the default base URL for the API.
|
|
130
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
131
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
132
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
133
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
134
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
135
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
136
|
+
*/
|
|
137
|
+
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
138
|
+
/**
|
|
139
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
140
|
+
*/
|
|
141
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
142
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
143
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
144
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
147
|
+
*/
|
|
148
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
149
|
+
private getUserAgent;
|
|
150
|
+
protected defaultIdempotencyKey(): string;
|
|
151
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
152
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
153
|
+
/**
|
|
154
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
155
|
+
*/
|
|
156
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
159
|
+
*
|
|
160
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
161
|
+
* the request properties, e.g. `method` or `url`.
|
|
162
|
+
*/
|
|
163
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
164
|
+
url: string;
|
|
165
|
+
options: FinalRequestOptions;
|
|
166
|
+
}): Promise<void>;
|
|
167
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
168
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
169
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
170
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
171
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
172
|
+
private methodRequest;
|
|
173
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
174
|
+
private makeRequest;
|
|
175
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
176
|
+
private shouldRetry;
|
|
177
|
+
private retryRequest;
|
|
178
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
179
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
180
|
+
retryCount?: number;
|
|
181
|
+
}): Promise<{
|
|
182
|
+
req: FinalizedRequestInit;
|
|
183
|
+
url: string;
|
|
184
|
+
timeout: number;
|
|
185
|
+
}>;
|
|
186
|
+
private buildHeaders;
|
|
187
|
+
private _makeAbort;
|
|
188
|
+
private buildBody;
|
|
189
|
+
static Ivy: typeof Ivy;
|
|
190
|
+
static DEFAULT_TIMEOUT: number;
|
|
191
|
+
static IvyError: typeof Errors.IvyError;
|
|
192
|
+
static APIError: typeof Errors.APIError;
|
|
193
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
194
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
195
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
196
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
197
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
198
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
199
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
200
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
201
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
202
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
203
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
204
|
+
static toFile: typeof Uploads.toFile;
|
|
205
|
+
banks: API.Banks;
|
|
206
|
+
checkoutsession: API.Checkoutsession;
|
|
207
|
+
data: API.Data;
|
|
208
|
+
customers: API.Customers;
|
|
209
|
+
orders: API.Orders;
|
|
210
|
+
deposits: API.Deposits;
|
|
211
|
+
returns: API.Returns;
|
|
212
|
+
fx: API.Fx;
|
|
213
|
+
beneficiaryPayouts: API.BeneficiaryPayouts;
|
|
214
|
+
transactions: API.Transactions;
|
|
215
|
+
capabilities: API.Capabilities;
|
|
216
|
+
refunds: API.Refunds;
|
|
217
|
+
payouts: API.Payouts;
|
|
218
|
+
subaccounts: API.Subaccounts;
|
|
219
|
+
balance: API.Balance;
|
|
220
|
+
webhook: API.Webhook;
|
|
221
|
+
payee: API.Payee;
|
|
222
|
+
}
|
|
223
|
+
export declare namespace Ivy {
|
|
224
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
225
|
+
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, };
|
|
226
|
+
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, };
|
|
227
|
+
export { Data as Data };
|
|
228
|
+
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, };
|
|
229
|
+
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, };
|
|
230
|
+
export { Deposits as Deposits, type DepositRetrieveResponse as DepositRetrieveResponse, type DepositRetrieveParams as DepositRetrieveParams, };
|
|
231
|
+
export { Returns as Returns, type ReturnCreateResponse as ReturnCreateResponse, type ReturnRetrieveResponse as ReturnRetrieveResponse, type ReturnCreateParams as ReturnCreateParams, type ReturnRetrieveParams as ReturnRetrieveParams, };
|
|
232
|
+
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, };
|
|
233
|
+
export { BeneficiaryPayouts as BeneficiaryPayouts, type BeneficiaryPayoutCreateResponse as BeneficiaryPayoutCreateResponse, };
|
|
234
|
+
export { Transactions as Transactions, type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
|
|
235
|
+
export { Capabilities as Capabilities, type CapabilityRetrieveResponse as CapabilityRetrieveResponse, type CapabilityRetrieveParams as CapabilityRetrieveParams, };
|
|
236
|
+
export { Refunds as Refunds, type Refund as Refund, type RefundCreateResponse as RefundCreateResponse, type RefundCreateParams as RefundCreateParams, type RefundRetrieveParams as RefundRetrieveParams, };
|
|
237
|
+
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, };
|
|
238
|
+
export { Subaccounts as Subaccounts, type Subaccount as Subaccount, type SubaccountCreateResponse as SubaccountCreateResponse, type SubaccountCreateParams as SubaccountCreateParams, type SubaccountRetrieveParams as SubaccountRetrieveParams, };
|
|
239
|
+
export { Balance as Balance, type BalanceRetrieveResponse as BalanceRetrieveResponse, type BalanceRetrieveParams as BalanceRetrieveParams, };
|
|
240
|
+
export { Webhook as Webhook, type WebhookTriggerResponse as WebhookTriggerResponse, type WebhookTriggerParams as WebhookTriggerParams, };
|
|
241
|
+
export { Payee as Payee, type PayeeVerifyResponse as PayeeVerifyResponse, type PayeeVerifyParams as PayeeVerifyParams, };
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,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