@getivy/node-sdk 1.7.0 → 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 -563
- 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
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Subscription, type SubscriptionCreateResponse, type SubscriptionUpdateResponse, type SubscriptionListResponse, type SubscriptionDeleteResponse, type SubscriptionPingResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionDeleteParams, type SubscriptionPingParams, } from "./subscription.mjs";
|
|
2
|
+
export { Webhook, type WebhookTriggerResponse, type WebhookTriggerParams } from "./webhook.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Subscription extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
7
|
+
* url. There can be multiple subscriptions per app.
|
|
8
|
+
*/
|
|
9
|
+
create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SubscriptionCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
12
|
+
* used via the app or via the API by providing an API key.
|
|
13
|
+
*/
|
|
14
|
+
update(body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<SubscriptionUpdateResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
17
|
+
* results are paginated and provided in chronological order.
|
|
18
|
+
*/
|
|
19
|
+
list(body: SubscriptionListParams, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Deletes a webhook subscription.
|
|
22
|
+
*/
|
|
23
|
+
delete(body: SubscriptionDeleteParams, options?: RequestOptions): APIPromise<SubscriptionDeleteResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Sends a test ping to verify webhook subscription endpoint connectivity.
|
|
26
|
+
*/
|
|
27
|
+
ping(body: SubscriptionPingParams, options?: RequestOptions): APIPromise<SubscriptionPingResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface SubscriptionCreateResponse {
|
|
30
|
+
id: unknown;
|
|
31
|
+
createdAt: unknown;
|
|
32
|
+
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned' | 'fx.initiated' | 'fx.succeeded' | 'fx.failed'>;
|
|
33
|
+
merchant: unknown;
|
|
34
|
+
merchantApp: unknown;
|
|
35
|
+
updatedAt: unknown;
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
export interface SubscriptionUpdateResponse {
|
|
39
|
+
id: unknown;
|
|
40
|
+
createdAt: unknown;
|
|
41
|
+
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned' | 'fx.initiated' | 'fx.succeeded' | 'fx.failed'>;
|
|
42
|
+
merchant: unknown;
|
|
43
|
+
merchantApp: unknown;
|
|
44
|
+
updatedAt: unknown;
|
|
45
|
+
url: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SubscriptionListResponse {
|
|
48
|
+
/**
|
|
49
|
+
* The total number of webhook subscriptions
|
|
50
|
+
*/
|
|
51
|
+
count: number;
|
|
52
|
+
/**
|
|
53
|
+
* Whether there are more webhook subscriptions to retrieve
|
|
54
|
+
*/
|
|
55
|
+
hasNext: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Array of webhook subscription objects
|
|
58
|
+
*/
|
|
59
|
+
items: Array<SubscriptionListResponse.Item>;
|
|
60
|
+
/**
|
|
61
|
+
* The number of webhook subscriptions skipped
|
|
62
|
+
*/
|
|
63
|
+
skip: number;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace SubscriptionListResponse {
|
|
66
|
+
interface Item {
|
|
67
|
+
id: unknown;
|
|
68
|
+
createdAt: unknown;
|
|
69
|
+
events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned' | 'fx.initiated' | 'fx.succeeded' | 'fx.failed'>;
|
|
70
|
+
merchant: unknown;
|
|
71
|
+
merchantApp: unknown;
|
|
72
|
+
updatedAt: unknown;
|
|
73
|
+
url: string;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export interface SubscriptionDeleteResponse {
|
|
77
|
+
/**
|
|
78
|
+
* Whether the webhook subscription was successfully deleted
|
|
79
|
+
*/
|
|
80
|
+
success: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface SubscriptionPingResponse {
|
|
83
|
+
/**
|
|
84
|
+
* The unique identifier of the webhook subscription
|
|
85
|
+
*/
|
|
86
|
+
id: unknown;
|
|
87
|
+
/**
|
|
88
|
+
* The timestamp when the ping was executed
|
|
89
|
+
*/
|
|
90
|
+
date: unknown;
|
|
91
|
+
/**
|
|
92
|
+
* The response from the webhook endpoint
|
|
93
|
+
*/
|
|
94
|
+
response: unknown;
|
|
95
|
+
/**
|
|
96
|
+
* The HTTP status code returned by the webhook endpoint
|
|
97
|
+
*/
|
|
98
|
+
statusCode: number;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the ping was successful
|
|
101
|
+
*/
|
|
102
|
+
success: boolean;
|
|
103
|
+
}
|
|
104
|
+
export interface SubscriptionCreateParams {
|
|
105
|
+
/**
|
|
106
|
+
* The endpoint where webhook events are sent.
|
|
107
|
+
*/
|
|
108
|
+
url: string;
|
|
109
|
+
/**
|
|
110
|
+
* The events to subscribe the url to.
|
|
111
|
+
*/
|
|
112
|
+
events?: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned' | 'fx.initiated' | 'fx.succeeded' | 'fx.failed'>;
|
|
113
|
+
}
|
|
114
|
+
export interface SubscriptionUpdateParams {
|
|
115
|
+
/**
|
|
116
|
+
* The unique identifier of the webhook subscription to update
|
|
117
|
+
*/
|
|
118
|
+
id: unknown;
|
|
119
|
+
/**
|
|
120
|
+
* The new events to subscribe the url to
|
|
121
|
+
*/
|
|
122
|
+
events?: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned' | 'fx.initiated' | 'fx.succeeded' | 'fx.failed'>;
|
|
123
|
+
/**
|
|
124
|
+
* The new endpoint where webhook events are sent
|
|
125
|
+
*/
|
|
126
|
+
url?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface SubscriptionListParams {
|
|
129
|
+
/**
|
|
130
|
+
* The maximum number of webhook subscriptions to return
|
|
131
|
+
*/
|
|
132
|
+
limit?: number;
|
|
133
|
+
/**
|
|
134
|
+
* The number of webhook subscriptions to skip
|
|
135
|
+
*/
|
|
136
|
+
skip?: number;
|
|
137
|
+
}
|
|
138
|
+
export interface SubscriptionDeleteParams {
|
|
139
|
+
/**
|
|
140
|
+
* The unique identifier of the webhook subscription to delete
|
|
141
|
+
*/
|
|
142
|
+
id: unknown;
|
|
143
|
+
}
|
|
144
|
+
export interface SubscriptionPingParams {
|
|
145
|
+
/**
|
|
146
|
+
* The unique identifier of the webhook subscription to ping
|
|
147
|
+
*/
|
|
148
|
+
id: unknown;
|
|
149
|
+
}
|
|
150
|
+
export declare namespace Subscription {
|
|
151
|
+
export { type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionPingResponse as SubscriptionPingResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, type SubscriptionPingParams as SubscriptionPingParams, };
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=subscription.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.mts","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIlG;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;O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eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,WAAW,CACd,CAAC;IAEF;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
3
4
|
export declare class Subscription extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
6
7
|
* url. There can be multiple subscriptions per app.
|
|
7
8
|
*/
|
|
8
|
-
create(body: SubscriptionCreateParams, options?:
|
|
9
|
+
create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SubscriptionCreateResponse>;
|
|
9
10
|
/**
|
|
10
11
|
* Updates the url or subcribed to events for a webhook subscription. This can be
|
|
11
12
|
* used via the app or via the API by providing an API key.
|
|
12
13
|
*/
|
|
13
|
-
update(body: SubscriptionUpdateParams, options?:
|
|
14
|
+
update(body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<SubscriptionUpdateResponse>;
|
|
14
15
|
/**
|
|
15
16
|
* Lists all webhook subscriptions that are registered for the merchant. The
|
|
16
17
|
* results are paginated and provided in chronological order.
|
|
17
18
|
*/
|
|
18
|
-
list(body: SubscriptionListParams, options?:
|
|
19
|
+
list(body: SubscriptionListParams, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
19
20
|
/**
|
|
20
21
|
* Deletes a webhook subscription.
|
|
21
22
|
*/
|
|
22
|
-
delete(body: SubscriptionDeleteParams, options?:
|
|
23
|
+
delete(body: SubscriptionDeleteParams, options?: RequestOptions): APIPromise<SubscriptionDeleteResponse>;
|
|
23
24
|
/**
|
|
24
25
|
* Sends a test ping to verify webhook subscription endpoint connectivity.
|
|
25
26
|
*/
|
|
26
|
-
ping(body: SubscriptionPingParams, options?:
|
|
27
|
+
ping(body: SubscriptionPingParams, options?: RequestOptions): APIPromise<SubscriptionPingResponse>;
|
|
27
28
|
}
|
|
28
29
|
export interface SubscriptionCreateResponse {
|
|
29
30
|
id: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MA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B,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Subscription = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
class Subscription extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAtCD,oCAsCC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
export class Subscription extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a webhook subscription that sends various events from Ivy to a specified
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.mjs","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"subscription.mjs","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as SubscriptionAPI from "./subscription.mjs";
|
|
3
|
+
import { Subscription, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionDeleteParams, SubscriptionDeleteResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionPingParams, SubscriptionPingResponse, SubscriptionUpdateParams, SubscriptionUpdateResponse } from "./subscription.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Webhook extends APIResource {
|
|
7
|
+
subscription: SubscriptionAPI.Subscription;
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint allows you to trigger a specific webhook by its ID.
|
|
10
|
+
*/
|
|
11
|
+
trigger(body: WebhookTriggerParams, options?: RequestOptions): APIPromise<WebhookTriggerResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface WebhookTriggerResponse {
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the webhook was successfully triggered
|
|
16
|
+
*/
|
|
17
|
+
success: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface WebhookTriggerParams {
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier for the webhook to trigger.
|
|
22
|
+
*/
|
|
23
|
+
id: unknown;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace Webhook {
|
|
26
|
+
export { type WebhookTriggerResponse as WebhookTriggerResponse, type WebhookTriggerParams as WebhookTriggerParams, };
|
|
27
|
+
export { Subscription as Subscription, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionPingResponse as SubscriptionPingResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, type SubscriptionPingParams as SubscriptionPingParams, };
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=webhook.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.mts","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGlG;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;CACb;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
3
2
|
import * as SubscriptionAPI from "./subscription.js";
|
|
4
3
|
import { Subscription, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionDeleteParams, SubscriptionDeleteResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionPingParams, SubscriptionPingResponse, SubscriptionUpdateParams, SubscriptionUpdateResponse } from "./subscription.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
6
|
export declare class Webhook extends APIResource {
|
|
6
7
|
subscription: SubscriptionAPI.Subscription;
|
|
7
8
|
/**
|
|
8
9
|
* This endpoint allows you to trigger a specific webhook by its ID.
|
|
9
10
|
*/
|
|
10
|
-
trigger(body: WebhookTriggerParams, options?:
|
|
11
|
+
trigger(body: WebhookTriggerParams, options?: RequestOptions): APIPromise<WebhookTriggerResponse>;
|
|
11
12
|
}
|
|
12
13
|
export interface WebhookTriggerResponse {
|
|
13
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGlG;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;CACb;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.Webhook = void 0;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const SubscriptionAPI = tslib_1.__importStar(require("./subscription.js"));
|
|
30
8
|
const subscription_1 = require("./subscription.js");
|
|
31
9
|
class Webhook extends resource_1.APIResource {
|
|
32
10
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2EAAkD;AAClD,oDAYwB;AAIxB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQ9F,CAAC;IANC;;OAEG;IACH,OAAO,CAAC,IAA0B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AATD,0BASC;AAgBD,OAAO,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as SubscriptionAPI from "./subscription.mjs";
|
|
4
4
|
import { Subscription, } from "./subscription.mjs";
|
|
5
5
|
export class Webhook extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.mjs","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"webhook.mjs","sourceRoot":"","sources":["../../src/resources/webhook/webhook.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,GAWb;AAID,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAQ9F,CAAC;IANC;;OAEG;IACH,OAAO,CAAC,IAA0B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAgBD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.mts","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":""}
|
package/resources/webhook.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./webhook/index.js"), exports);
|
|
19
6
|
//# sourceMappingURL=webhook.js.map
|
package/resources/webhook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../src/resources/webhook.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
package/resources.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
tslib_1.__exportStar(require("./resources/index.js"), exports);
|
|
18
5
|
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;AAAA,+DAAkC"}
|