increase 0.377.0 → 0.378.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 +180 -4442
- package/README.md +115 -50
- 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 +46 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +382 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +382 -0
- package/client.d.ts.map +1 -0
- package/client.js +650 -0
- package/client.js.map +1 -0
- package/client.mjs +646 -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 +145 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +145 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +280 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +253 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +67 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +67 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -145
- package/error.d.ts.map +1 -1
- package/error.js +3 -277
- package/error.js.map +1 -1
- package/error.mjs +1 -252
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -320
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -319
- package/index.d.ts.map +1 -1
- package/index.js +14 -358
- package/index.js.map +1 -1
- package/index.mjs +6 -331
- 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 +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- 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 +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -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/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 +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +114 -66
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -30
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -37
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -35
- package/pagination.mjs.map +1 -1
- 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/account-numbers.d.mts +309 -0
- package/resources/account-numbers.d.mts.map +1 -0
- package/resources/account-numbers.d.ts +10 -11
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js +20 -16
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs +19 -14
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-statements.d.mts +113 -0
- package/resources/account-statements.d.mts.map +1 -0
- package/resources/account-statements.d.ts +8 -9
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-statements.js +18 -14
- package/resources/account-statements.js.map +1 -1
- package/resources/account-statements.mjs +17 -12
- package/resources/account-statements.mjs.map +1 -1
- package/resources/account-transfers.d.mts +325 -0
- package/resources/account-transfers.d.mts.map +1 -0
- package/resources/account-transfers.d.ts +11 -12
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js +22 -18
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs +21 -16
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.mts +291 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +12 -14
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +35 -23
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +34 -21
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-prenotifications.d.mts +473 -0
- package/resources/ach-prenotifications.d.mts.map +1 -0
- package/resources/ach-prenotifications.d.ts +9 -10
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-prenotifications.js +18 -14
- package/resources/ach-prenotifications.js.map +1 -1
- package/resources/ach-prenotifications.mjs +17 -12
- package/resources/ach-prenotifications.mjs.map +1 -1
- package/resources/ach-transfers.d.mts +1091 -0
- package/resources/ach-transfers.d.mts.map +1 -0
- package/resources/ach-transfers.d.ts +11 -12
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js +22 -18
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs +21 -16
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/bookkeeping-accounts.d.mts +164 -0
- package/resources/bookkeeping-accounts.d.mts.map +1 -0
- package/resources/bookkeeping-accounts.d.ts +10 -12
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.js +34 -19
- package/resources/bookkeeping-accounts.js.map +1 -1
- package/resources/bookkeeping-accounts.mjs +33 -17
- package/resources/bookkeeping-accounts.mjs.map +1 -1
- package/resources/bookkeeping-entries.d.mts +74 -0
- package/resources/bookkeeping-entries.d.mts.map +1 -0
- package/resources/bookkeeping-entries.d.ts +8 -9
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entries.js +18 -14
- package/resources/bookkeeping-entries.js.map +1 -1
- package/resources/bookkeeping-entries.mjs +17 -12
- package/resources/bookkeeping-entries.mjs.map +1 -1
- package/resources/bookkeeping-entry-sets.d.mts +156 -0
- package/resources/bookkeeping-entry-sets.d.mts.map +1 -0
- package/resources/bookkeeping-entry-sets.d.ts +9 -10
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.js +18 -14
- package/resources/bookkeeping-entry-sets.js.map +1 -1
- package/resources/bookkeeping-entry-sets.mjs +17 -12
- package/resources/bookkeeping-entry-sets.mjs.map +1 -1
- package/resources/card-disputes.d.mts +5657 -0
- package/resources/card-disputes.d.mts.map +1 -0
- package/resources/card-disputes.d.ts +11 -12
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js +25 -18
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs +24 -16
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-payments.d.mts +4523 -0
- package/resources/card-payments.d.mts.map +1 -0
- package/resources/card-payments.d.ts +8 -9
- package/resources/card-payments.d.ts.map +1 -1
- package/resources/card-payments.js +18 -14
- package/resources/card-payments.js.map +1 -1
- package/resources/card-payments.mjs +17 -12
- package/resources/card-payments.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.mts +266 -0
- package/resources/card-purchase-supplements.d.mts.map +1 -0
- package/resources/card-purchase-supplements.d.ts +8 -9
- package/resources/card-purchase-supplements.d.ts.map +1 -1
- package/resources/card-purchase-supplements.js +18 -14
- package/resources/card-purchase-supplements.js.map +1 -1
- package/resources/card-purchase-supplements.mjs +17 -12
- package/resources/card-purchase-supplements.mjs.map +1 -1
- package/resources/card-push-transfers.d.mts +992 -0
- package/resources/card-push-transfers.d.mts.map +1 -0
- package/resources/card-push-transfers.d.ts +11 -12
- package/resources/card-push-transfers.d.ts.map +1 -1
- package/resources/card-push-transfers.js +22 -18
- package/resources/card-push-transfers.js.map +1 -1
- package/resources/card-push-transfers.mjs +21 -16
- package/resources/card-push-transfers.mjs.map +1 -1
- package/resources/card-tokens.d.mts +153 -0
- package/resources/card-tokens.d.mts.map +1 -0
- package/resources/card-tokens.d.ts +9 -10
- package/resources/card-tokens.d.ts.map +1 -1
- package/resources/card-tokens.js +20 -16
- package/resources/card-tokens.js.map +1 -1
- package/resources/card-tokens.mjs +19 -14
- package/resources/card-tokens.mjs.map +1 -1
- package/resources/card-validations.d.mts +513 -0
- package/resources/card-validations.d.mts.map +1 -0
- package/resources/card-validations.d.ts +9 -10
- package/resources/card-validations.d.ts.map +1 -1
- package/resources/card-validations.js +18 -14
- package/resources/card-validations.js.map +1 -1
- package/resources/card-validations.mjs +17 -12
- package/resources/card-validations.mjs.map +1 -1
- package/resources/cards.d.mts +486 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +13 -14
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +26 -22
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +25 -20
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.mts +453 -0
- package/resources/check-deposits.d.mts.map +1 -0
- package/resources/check-deposits.d.ts +9 -10
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js +18 -14
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs +17 -12
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.mts +874 -0
- package/resources/check-transfers.d.mts.map +1 -0
- package/resources/check-transfers.d.ts +12 -13
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js +24 -20
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs +23 -18
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.mts +1161 -0
- package/resources/declined-transactions.d.mts.map +1 -0
- package/resources/declined-transactions.d.ts +8 -9
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js +21 -14
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs +20 -12
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-card-profiles.d.mts +303 -0
- package/resources/digital-card-profiles.d.mts.map +1 -0
- package/resources/digital-card-profiles.d.ts +11 -12
- package/resources/digital-card-profiles.d.ts.map +1 -1
- package/resources/digital-card-profiles.js +25 -18
- package/resources/digital-card-profiles.js.map +1 -1
- package/resources/digital-card-profiles.mjs +24 -16
- package/resources/digital-card-profiles.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.mts +181 -0
- package/resources/digital-wallet-tokens.d.mts.map +1 -0
- package/resources/digital-wallet-tokens.d.ts +8 -9
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/digital-wallet-tokens.js +18 -14
- package/resources/digital-wallet-tokens.js.map +1 -1
- package/resources/digital-wallet-tokens.mjs +17 -12
- package/resources/digital-wallet-tokens.mjs.map +1 -1
- package/resources/documents.d.mts +213 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +9 -10
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +18 -14
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +17 -12
- package/resources/documents.mjs.map +1 -1
- package/resources/entities.d.mts +2759 -0
- package/resources/entities.d.mts.map +1 -0
- package/resources/entities.d.ts +17 -18
- package/resources/entities.d.ts.map +1 -1
- package/resources/entities.js +37 -30
- package/resources/entities.js.map +1 -1
- package/resources/entities.mjs +36 -28
- package/resources/entities.mjs.map +1 -1
- package/resources/event-subscriptions.d.mts +471 -0
- package/resources/event-subscriptions.d.mts.map +1 -0
- package/resources/event-subscriptions.d.ts +10 -11
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js +20 -16
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs +19 -14
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.mts +261 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +8 -9
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +18 -14
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +17 -12
- package/resources/events.mjs.map +1 -1
- package/resources/exports.d.mts +440 -0
- package/resources/exports.d.mts.map +1 -0
- package/resources/exports.d.ts +9 -10
- package/resources/exports.d.ts.map +1 -1
- package/resources/exports.js +18 -14
- package/resources/exports.js.map +1 -1
- package/resources/exports.mjs +17 -12
- package/resources/exports.mjs.map +1 -1
- package/resources/external-accounts.d.mts +212 -0
- package/resources/external-accounts.d.mts.map +1 -0
- package/resources/external-accounts.d.ts +10 -11
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js +20 -16
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +19 -14
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/fednow-transfers.d.mts +474 -0
- package/resources/fednow-transfers.d.mts.map +1 -0
- package/resources/fednow-transfers.d.ts +11 -12
- package/resources/fednow-transfers.d.ts.map +1 -1
- package/resources/fednow-transfers.js +22 -18
- package/resources/fednow-transfers.js.map +1 -1
- package/resources/fednow-transfers.mjs +21 -16
- package/resources/fednow-transfers.mjs.map +1 -1
- package/resources/file-links.d.mts +72 -0
- package/resources/file-links.d.mts.map +1 -0
- package/resources/file-links.d.ts +4 -3
- package/resources/file-links.d.ts.map +1 -1
- package/resources/file-links.js +1 -1
- package/resources/file-links.js.map +1 -1
- package/resources/file-links.mjs +1 -1
- package/resources/file-links.mjs.map +1 -1
- package/resources/files.d.mts +242 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +11 -11
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +20 -39
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +19 -14
- package/resources/files.mjs.map +1 -1
- package/resources/groups.d.mts +54 -0
- package/resources/groups.d.mts.map +1 -0
- package/resources/groups.d.ts +4 -3
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.mts +704 -0
- package/resources/inbound-ach-transfers.d.mts.map +1 -0
- package/resources/inbound-ach-transfers.d.ts +11 -12
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +27 -23
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +26 -21
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-check-deposits.d.mts +278 -0
- package/resources/inbound-check-deposits.d.mts.map +1 -0
- package/resources/inbound-check-deposits.d.ts +10 -11
- package/resources/inbound-check-deposits.d.ts.map +1 -1
- package/resources/inbound-check-deposits.js +25 -18
- package/resources/inbound-check-deposits.js.map +1 -1
- package/resources/inbound-check-deposits.mjs +24 -16
- package/resources/inbound-check-deposits.mjs.map +1 -1
- package/resources/inbound-fednow-transfers.d.mts +188 -0
- package/resources/inbound-fednow-transfers.d.mts.map +1 -0
- package/resources/inbound-fednow-transfers.d.ts +8 -9
- package/resources/inbound-fednow-transfers.d.ts.map +1 -1
- package/resources/inbound-fednow-transfers.js +18 -14
- package/resources/inbound-fednow-transfers.js.map +1 -1
- package/resources/inbound-fednow-transfers.mjs +17 -12
- package/resources/inbound-fednow-transfers.mjs.map +1 -1
- package/resources/inbound-mail-items.d.mts +187 -0
- package/resources/inbound-mail-items.d.mts.map +1 -0
- package/resources/inbound-mail-items.d.ts +9 -10
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js +20 -16
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs +19 -14
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-real-time-payments-transfers.d.mts +192 -0
- package/resources/inbound-real-time-payments-transfers.d.mts.map +1 -0
- package/resources/inbound-real-time-payments-transfers.d.ts +8 -9
- package/resources/inbound-real-time-payments-transfers.d.ts.map +1 -1
- package/resources/inbound-real-time-payments-transfers.js +18 -14
- package/resources/inbound-real-time-payments-transfers.js.map +1 -1
- package/resources/inbound-real-time-payments-transfers.mjs +17 -12
- package/resources/inbound-real-time-payments-transfers.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.mts +138 -0
- package/resources/inbound-wire-drawdown-requests.d.mts.map +1 -0
- package/resources/inbound-wire-drawdown-requests.d.ts +8 -9
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js +18 -14
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs +17 -12
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.mts +245 -0
- package/resources/inbound-wire-transfers.d.mts.map +1 -0
- package/resources/inbound-wire-transfers.d.ts +9 -10
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js +20 -16
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs +19 -14
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.mts +58 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +51 -52
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -58
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +51 -52
- package/resources/index.mjs.map +1 -1
- package/resources/intrafi-account-enrollments.d.mts +153 -0
- package/resources/intrafi-account-enrollments.d.mts.map +1 -0
- package/resources/intrafi-account-enrollments.d.ts +10 -11
- package/resources/intrafi-account-enrollments.d.ts.map +1 -1
- package/resources/intrafi-account-enrollments.js +20 -16
- package/resources/intrafi-account-enrollments.js.map +1 -1
- package/resources/intrafi-account-enrollments.mjs +19 -14
- package/resources/intrafi-account-enrollments.mjs.map +1 -1
- package/resources/intrafi-balances.d.mts +101 -0
- package/resources/intrafi-balances.d.mts.map +1 -0
- package/resources/intrafi-balances.d.ts +4 -3
- package/resources/intrafi-balances.d.ts.map +1 -1
- package/resources/intrafi-balances.js +4 -3
- package/resources/intrafi-balances.js.map +1 -1
- package/resources/intrafi-balances.mjs +4 -3
- package/resources/intrafi-balances.mjs.map +1 -1
- package/resources/intrafi-exclusions.d.mts +141 -0
- package/resources/intrafi-exclusions.d.mts.map +1 -0
- package/resources/intrafi-exclusions.d.ts +10 -11
- package/resources/intrafi-exclusions.d.ts.map +1 -1
- package/resources/intrafi-exclusions.js +20 -16
- package/resources/intrafi-exclusions.js.map +1 -1
- package/resources/intrafi-exclusions.mjs +19 -14
- package/resources/intrafi-exclusions.mjs.map +1 -1
- package/resources/lockboxes.d.mts +215 -0
- package/resources/lockboxes.d.mts.map +1 -0
- package/resources/lockboxes.d.ts +10 -11
- package/resources/lockboxes.d.ts.map +1 -1
- package/resources/lockboxes.js +20 -16
- package/resources/lockboxes.js.map +1 -1
- package/resources/lockboxes.mjs +19 -14
- package/resources/lockboxes.mjs.map +1 -1
- package/resources/oauth-applications.d.mts +113 -0
- package/resources/oauth-applications.d.mts.map +1 -0
- package/resources/oauth-applications.d.ts +8 -9
- package/resources/oauth-applications.d.ts.map +1 -1
- package/resources/oauth-applications.js +18 -14
- package/resources/oauth-applications.js.map +1 -1
- package/resources/oauth-applications.mjs +17 -12
- package/resources/oauth-applications.mjs.map +1 -1
- package/resources/oauth-connections.d.mts +94 -0
- package/resources/oauth-connections.d.mts.map +1 -0
- package/resources/oauth-connections.d.ts +8 -9
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/oauth-connections.js +18 -14
- package/resources/oauth-connections.js.map +1 -1
- package/resources/oauth-connections.mjs +17 -12
- package/resources/oauth-connections.mjs.map +1 -1
- package/resources/oauth-tokens.d.mts +77 -0
- package/resources/oauth-tokens.d.mts.map +1 -0
- package/resources/oauth-tokens.d.ts +4 -3
- package/resources/oauth-tokens.d.ts.map +1 -1
- package/resources/oauth-tokens.js +1 -1
- package/resources/oauth-tokens.js.map +1 -1
- package/resources/oauth-tokens.mjs +1 -1
- package/resources/oauth-tokens.mjs.map +1 -1
- package/resources/pending-transactions.d.mts +1182 -0
- package/resources/pending-transactions.d.mts.map +1 -0
- package/resources/pending-transactions.d.ts +10 -11
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js +20 -16
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs +19 -14
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/physical-card-profiles.d.mts +268 -0
- package/resources/physical-card-profiles.d.mts.map +1 -0
- package/resources/physical-card-profiles.d.ts +11 -12
- package/resources/physical-card-profiles.d.ts.map +1 -1
- package/resources/physical-card-profiles.js +25 -18
- package/resources/physical-card-profiles.js.map +1 -1
- package/resources/physical-card-profiles.mjs +24 -16
- package/resources/physical-card-profiles.mjs.map +1 -1
- package/resources/physical-cards.d.mts +455 -0
- package/resources/physical-cards.d.mts.map +1 -0
- package/resources/physical-cards.d.ts +10 -11
- package/resources/physical-cards.d.ts.map +1 -1
- package/resources/physical-cards.js +20 -16
- package/resources/physical-cards.js.map +1 -1
- package/resources/physical-cards.mjs +19 -14
- package/resources/physical-cards.mjs.map +1 -1
- package/resources/programs.d.mts +89 -0
- package/resources/programs.d.mts.map +1 -0
- package/resources/programs.d.ts +8 -9
- package/resources/programs.d.ts.map +1 -1
- package/resources/programs.js +18 -14
- package/resources/programs.js.map +1 -1
- package/resources/programs.mjs +17 -12
- package/resources/programs.mjs.map +1 -1
- package/resources/real-time-decisions.d.mts +1132 -0
- package/resources/real-time-decisions.d.mts.map +1 -0
- package/resources/real-time-decisions.d.ts +5 -4
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js +6 -5
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs +6 -5
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.mts +504 -0
- package/resources/real-time-payments-transfers.d.mts.map +1 -0
- package/resources/real-time-payments-transfers.d.ts +11 -12
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js +22 -18
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs +21 -16
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/routing-numbers.d.mts +79 -0
- package/resources/routing-numbers.d.mts.map +1 -0
- package/resources/routing-numbers.d.ts +6 -7
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js +7 -8
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +6 -6
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/account-statements.d.mts +29 -0
- package/resources/simulations/account-statements.d.mts.map +1 -0
- package/resources/simulations/account-statements.d.ts +4 -3
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/account-statements.js +1 -1
- package/resources/simulations/account-statements.js.map +1 -1
- package/resources/simulations/account-statements.mjs +1 -1
- package/resources/simulations/account-statements.mjs.map +1 -1
- package/resources/simulations/account-transfers.d.mts +22 -0
- package/resources/simulations/account-transfers.d.mts.map +1 -0
- package/resources/simulations/account-transfers.d.ts +4 -3
- package/resources/simulations/account-transfers.d.ts.map +1 -1
- package/resources/simulations/account-transfers.js +4 -3
- package/resources/simulations/account-transfers.js.map +1 -1
- package/resources/simulations/account-transfers.mjs +4 -3
- package/resources/simulations/account-transfers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.mts +307 -0
- package/resources/simulations/ach-transfers.d.mts.map +1 -0
- package/resources/simulations/ach-transfers.d.ts +8 -7
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +12 -14
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +12 -14
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-authorization-expirations.d.mts +30 -0
- package/resources/simulations/card-authorization-expirations.d.mts.map +1 -0
- package/resources/simulations/card-authorization-expirations.d.ts +4 -3
- package/resources/simulations/card-authorization-expirations.d.ts.map +1 -1
- package/resources/simulations/card-authorization-expirations.js +1 -1
- package/resources/simulations/card-authorization-expirations.js.map +1 -1
- package/resources/simulations/card-authorization-expirations.mjs +1 -1
- package/resources/simulations/card-authorization-expirations.mjs.map +1 -1
- package/resources/simulations/card-authorizations.d.mts +244 -0
- package/resources/simulations/card-authorizations.d.mts.map +1 -0
- package/resources/simulations/card-authorizations.d.ts +4 -3
- package/resources/simulations/card-authorizations.d.ts.map +1 -1
- package/resources/simulations/card-authorizations.js +1 -1
- package/resources/simulations/card-authorizations.js.map +1 -1
- package/resources/simulations/card-authorizations.mjs +1 -1
- package/resources/simulations/card-authorizations.mjs.map +1 -1
- package/resources/simulations/card-disputes.d.mts +192 -0
- package/resources/simulations/card-disputes.d.mts.map +1 -0
- package/resources/simulations/card-disputes.d.ts +4 -3
- package/resources/simulations/card-disputes.d.ts.map +1 -1
- package/resources/simulations/card-disputes.js +4 -3
- package/resources/simulations/card-disputes.js.map +1 -1
- package/resources/simulations/card-disputes.mjs +4 -3
- package/resources/simulations/card-disputes.mjs.map +1 -1
- package/resources/simulations/card-fuel-confirmations.d.mts +36 -0
- package/resources/simulations/card-fuel-confirmations.d.mts.map +1 -0
- package/resources/simulations/card-fuel-confirmations.d.ts +4 -3
- package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -1
- package/resources/simulations/card-fuel-confirmations.js +1 -1
- package/resources/simulations/card-fuel-confirmations.js.map +1 -1
- package/resources/simulations/card-fuel-confirmations.mjs +1 -1
- package/resources/simulations/card-fuel-confirmations.mjs.map +1 -1
- package/resources/simulations/card-increments.d.mts +41 -0
- package/resources/simulations/card-increments.d.mts.map +1 -0
- package/resources/simulations/card-increments.d.ts +4 -3
- package/resources/simulations/card-increments.d.ts.map +1 -1
- package/resources/simulations/card-increments.js +1 -1
- package/resources/simulations/card-increments.js.map +1 -1
- package/resources/simulations/card-increments.mjs +1 -1
- package/resources/simulations/card-increments.mjs.map +1 -1
- package/resources/simulations/card-refunds.d.mts +39 -0
- package/resources/simulations/card-refunds.d.mts.map +1 -0
- package/resources/simulations/card-refunds.d.ts +4 -3
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/card-refunds.js +1 -1
- package/resources/simulations/card-refunds.js.map +1 -1
- package/resources/simulations/card-refunds.mjs +1 -1
- package/resources/simulations/card-refunds.mjs.map +1 -1
- package/resources/simulations/card-reversals.d.mts +36 -0
- package/resources/simulations/card-reversals.d.mts.map +1 -0
- package/resources/simulations/card-reversals.d.ts +4 -3
- package/resources/simulations/card-reversals.d.ts.map +1 -1
- package/resources/simulations/card-reversals.js +1 -1
- package/resources/simulations/card-reversals.js.map +1 -1
- package/resources/simulations/card-reversals.mjs +1 -1
- package/resources/simulations/card-reversals.mjs.map +1 -1
- package/resources/simulations/card-settlements.d.mts +44 -0
- package/resources/simulations/card-settlements.d.mts.map +1 -0
- package/resources/simulations/card-settlements.d.ts +4 -3
- package/resources/simulations/card-settlements.d.ts.map +1 -1
- package/resources/simulations/card-settlements.js +1 -1
- package/resources/simulations/card-settlements.js.map +1 -1
- package/resources/simulations/card-settlements.mjs +1 -1
- package/resources/simulations/card-settlements.mjs.map +1 -1
- package/resources/simulations/card-tokens.d.mts +67 -0
- package/resources/simulations/card-tokens.d.mts.map +1 -0
- package/resources/simulations/card-tokens.d.ts +4 -3
- package/resources/simulations/card-tokens.d.ts.map +1 -1
- package/resources/simulations/card-tokens.js +1 -1
- package/resources/simulations/card-tokens.js.map +1 -1
- package/resources/simulations/card-tokens.mjs +1 -1
- package/resources/simulations/card-tokens.mjs.map +1 -1
- package/resources/simulations/check-deposits.d.mts +47 -0
- package/resources/simulations/check-deposits.d.mts.map +1 -0
- package/resources/simulations/check-deposits.d.ts +6 -5
- package/resources/simulations/check-deposits.d.ts.map +1 -1
- package/resources/simulations/check-deposits.js +8 -7
- package/resources/simulations/check-deposits.js.map +1 -1
- package/resources/simulations/check-deposits.mjs +8 -7
- package/resources/simulations/check-deposits.mjs.map +1 -1
- package/resources/simulations/check-transfers.d.mts +22 -0
- package/resources/simulations/check-transfers.d.mts.map +1 -0
- package/resources/simulations/check-transfers.d.ts +4 -3
- package/resources/simulations/check-transfers.d.ts.map +1 -1
- package/resources/simulations/check-transfers.js +4 -3
- package/resources/simulations/check-transfers.js.map +1 -1
- package/resources/simulations/check-transfers.mjs +4 -3
- package/resources/simulations/check-transfers.mjs.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.mts +55 -0
- package/resources/simulations/digital-wallet-token-requests.d.mts.map +1 -0
- package/resources/simulations/digital-wallet-token-requests.d.ts +4 -3
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.js +1 -1
- package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs +1 -1
- package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
- package/resources/simulations/documents.d.mts +27 -0
- package/resources/simulations/documents.d.mts.map +1 -0
- package/resources/simulations/documents.d.ts +4 -3
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/documents.js +1 -1
- package/resources/simulations/documents.js.map +1 -1
- package/resources/simulations/documents.mjs +1 -1
- package/resources/simulations/documents.mjs.map +1 -1
- package/resources/simulations/inbound-ach-transfers.d.mts +140 -0
- package/resources/simulations/inbound-ach-transfers.d.mts.map +1 -0
- package/resources/simulations/inbound-ach-transfers.d.ts +4 -3
- package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/simulations/inbound-ach-transfers.js +1 -1
- package/resources/simulations/inbound-ach-transfers.js.map +1 -1
- package/resources/simulations/inbound-ach-transfers.mjs +1 -1
- package/resources/simulations/inbound-ach-transfers.mjs.map +1 -1
- package/resources/simulations/inbound-check-deposits.d.mts +56 -0
- package/resources/simulations/inbound-check-deposits.d.mts.map +1 -0
- package/resources/simulations/inbound-check-deposits.d.ts +4 -3
- package/resources/simulations/inbound-check-deposits.d.ts.map +1 -1
- package/resources/simulations/inbound-check-deposits.js +1 -1
- package/resources/simulations/inbound-check-deposits.js.map +1 -1
- package/resources/simulations/inbound-check-deposits.mjs +1 -1
- package/resources/simulations/inbound-check-deposits.mjs.map +1 -1
- package/resources/simulations/inbound-fednow-transfers.d.mts +51 -0
- package/resources/simulations/inbound-fednow-transfers.d.mts.map +1 -0
- package/resources/simulations/inbound-fednow-transfers.d.ts +4 -3
- package/resources/simulations/inbound-fednow-transfers.d.ts.map +1 -1
- package/resources/simulations/inbound-fednow-transfers.js +1 -1
- package/resources/simulations/inbound-fednow-transfers.js.map +1 -1
- package/resources/simulations/inbound-fednow-transfers.mjs +1 -1
- package/resources/simulations/inbound-fednow-transfers.mjs.map +1 -1
- package/resources/simulations/inbound-mail-items.d.mts +39 -0
- package/resources/simulations/inbound-mail-items.d.mts.map +1 -0
- package/resources/simulations/inbound-mail-items.d.ts +4 -3
- package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
- package/resources/simulations/inbound-mail-items.js +1 -1
- package/resources/simulations/inbound-mail-items.js.map +1 -1
- package/resources/simulations/inbound-mail-items.mjs +1 -1
- package/resources/simulations/inbound-mail-items.mjs.map +1 -1
- package/resources/simulations/inbound-real-time-payments-transfers.d.mts +59 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.mts.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts +4 -3
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/inbound-real-time-payments-transfers.js +1 -1
- package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/inbound-real-time-payments-transfers.mjs +1 -1
- package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.mts +117 -0
- package/resources/simulations/inbound-wire-drawdown-requests.d.mts.map +1 -0
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts +4 -3
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/simulations/inbound-wire-transfers.d.mts +104 -0
- package/resources/simulations/inbound-wire-transfers.d.mts.map +1 -0
- package/resources/simulations/inbound-wire-transfers.d.ts +4 -3
- package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/simulations/inbound-wire-transfers.js +1 -1
- package/resources/simulations/inbound-wire-transfers.js.map +1 -1
- package/resources/simulations/inbound-wire-transfers.mjs +1 -1
- package/resources/simulations/inbound-wire-transfers.mjs.map +1 -1
- package/resources/simulations/index.d.mts +32 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.mts +46 -0
- package/resources/simulations/interest-payments.d.mts.map +1 -0
- package/resources/simulations/interest-payments.d.ts +4 -3
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/pending-transactions.d.mts +20 -0
- package/resources/simulations/pending-transactions.d.mts.map +1 -0
- package/resources/simulations/pending-transactions.d.ts +4 -3
- package/resources/simulations/pending-transactions.d.ts.map +1 -1
- package/resources/simulations/pending-transactions.js +4 -3
- package/resources/simulations/pending-transactions.js.map +1 -1
- package/resources/simulations/pending-transactions.mjs +4 -3
- package/resources/simulations/pending-transactions.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.mts +88 -0
- package/resources/simulations/physical-cards.d.mts.map +1 -0
- package/resources/simulations/physical-cards.d.ts +5 -4
- package/resources/simulations/physical-cards.d.ts.map +1 -1
- package/resources/simulations/physical-cards.js +6 -5
- package/resources/simulations/physical-cards.js.map +1 -1
- package/resources/simulations/physical-cards.mjs +6 -5
- package/resources/simulations/physical-cards.mjs.map +1 -1
- package/resources/simulations/programs.d.mts +46 -0
- package/resources/simulations/programs.d.mts.map +1 -0
- package/resources/simulations/programs.d.ts +4 -3
- package/resources/simulations/programs.d.ts.map +1 -1
- package/resources/simulations/programs.js +1 -1
- package/resources/simulations/programs.js.map +1 -1
- package/resources/simulations/programs.mjs +1 -1
- package/resources/simulations/programs.mjs.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.mts +91 -0
- package/resources/simulations/real-time-payments-transfers.d.mts.map +1 -0
- package/resources/simulations/real-time-payments-transfers.d.ts +4 -3
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +4 -3
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +4 -3
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.mts +126 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +32 -54
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +1 -1
- package/resources/simulations/wire-drawdown-requests.d.mts +31 -0
- package/resources/simulations/wire-drawdown-requests.d.mts.map +1 -0
- package/resources/simulations/wire-drawdown-requests.d.ts +5 -4
- package/resources/simulations/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/wire-drawdown-requests.js +6 -5
- package/resources/simulations/wire-drawdown-requests.js.map +1 -1
- package/resources/simulations/wire-drawdown-requests.mjs +6 -5
- package/resources/simulations/wire-drawdown-requests.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.mts +36 -0
- package/resources/simulations/wire-transfers.d.mts.map +1 -0
- package/resources/simulations/wire-transfers.d.ts +5 -4
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +6 -5
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +6 -5
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts.map +1 -1
- package/resources/simulations.js +2 -15
- package/resources/simulations.js.map +1 -1
- package/resources/supplemental-documents.d.mts +92 -0
- package/resources/supplemental-documents.d.mts.map +1 -0
- package/resources/supplemental-documents.d.ts +8 -8
- package/resources/supplemental-documents.d.ts.map +1 -1
- package/resources/supplemental-documents.js +4 -8
- package/resources/supplemental-documents.js.map +1 -1
- package/resources/supplemental-documents.mjs +3 -6
- package/resources/supplemental-documents.mjs.map +1 -1
- package/resources/transactions.d.mts +3483 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +8 -9
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +18 -14
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +17 -12
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.mts +362 -0
- package/resources/wire-drawdown-requests.d.mts.map +1 -0
- package/resources/wire-drawdown-requests.d.ts +9 -10
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-drawdown-requests.js +18 -14
- package/resources/wire-drawdown-requests.js.map +1 -1
- package/resources/wire-drawdown-requests.mjs +17 -12
- package/resources/wire-drawdown-requests.mjs.map +1 -1
- package/resources/wire-transfers.d.mts +751 -0
- package/resources/wire-transfers.d.mts.map +1 -0
- package/resources/wire-transfers.d.ts +11 -12
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +22 -18
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +21 -16
- package/resources/wire-transfers.mjs.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 +1692 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +443 -0
- package/src/core/pagination.ts +165 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -443
- package/src/index.ts +6 -1199
- 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 +50 -0
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- 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 +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/pagination.ts +2 -68
- package/src/resource.ts +2 -11
- package/src/resources/account-numbers.ts +18 -27
- package/src/resources/account-statements.ts +13 -22
- package/src/resources/account-transfers.ts +18 -27
- package/src/resources/accounts.ts +23 -42
- package/src/resources/ach-prenotifications.ts +14 -26
- package/src/resources/ach-transfers.ts +18 -27
- package/src/resources/bookkeeping-accounts.ts +24 -45
- package/src/resources/bookkeeping-entries.ts +13 -22
- package/src/resources/bookkeeping-entry-sets.ts +14 -29
- package/src/resources/card-disputes.ts +23 -29
- package/src/resources/card-payments.ts +13 -22
- package/src/resources/card-purchase-supplements.ts +13 -25
- package/src/resources/card-push-transfers.ts +18 -30
- package/src/resources/card-tokens.ts +15 -24
- package/src/resources/card-validations.ts +14 -23
- package/src/resources/cards.ts +24 -34
- package/src/resources/check-deposits.ts +14 -23
- package/src/resources/check-transfers.ts +22 -31
- package/src/resources/declined-transactions.ts +16 -25
- package/src/resources/digital-card-profiles.ts +23 -32
- package/src/resources/digital-wallet-tokens.ts +13 -22
- package/src/resources/documents.ts +14 -20
- package/src/resources/entities.ts +43 -50
- package/src/resources/event-subscriptions.ts +18 -30
- package/src/resources/events.ts +13 -19
- package/src/resources/exports.ts +14 -20
- package/src/resources/external-accounts.ts +18 -27
- package/src/resources/fednow-transfers.ts +18 -27
- package/src/resources/file-links.ts +4 -3
- package/src/resources/files.ts +18 -22
- package/src/resources/groups.ts +4 -3
- package/src/resources/inbound-ach-transfers.ts +31 -37
- package/src/resources/inbound-check-deposits.ts +22 -34
- package/src/resources/inbound-fednow-transfers.ts +13 -25
- package/src/resources/inbound-mail-items.ts +17 -26
- package/src/resources/inbound-real-time-payments-transfers.ts +15 -26
- package/src/resources/inbound-wire-drawdown-requests.ts +15 -26
- package/src/resources/inbound-wire-transfers.ts +17 -29
- package/src/resources/index.ts +68 -58
- package/src/resources/intrafi-account-enrollments.ts +24 -32
- package/src/resources/intrafi-balances.ts +6 -4
- package/src/resources/intrafi-exclusions.ts +16 -28
- package/src/resources/lockboxes.ts +16 -26
- package/src/resources/oauth-applications.ts +13 -22
- package/src/resources/oauth-connections.ts +13 -22
- package/src/resources/oauth-tokens.ts +4 -3
- package/src/resources/pending-transactions.ts +16 -28
- package/src/resources/physical-card-profiles.ts +23 -38
- package/src/resources/physical-cards.ts +18 -27
- package/src/resources/programs.ts +13 -19
- package/src/resources/real-time-decisions.ts +10 -8
- package/src/resources/real-time-payments-transfers.ts +29 -37
- package/src/resources/routing-numbers.ts +11 -10
- package/src/resources/simulations/account-statements.ts +5 -4
- package/src/resources/simulations/account-transfers.ts +8 -6
- package/src/resources/simulations/ach-transfers.ts +23 -24
- package/src/resources/simulations/card-authorization-expirations.ts +5 -4
- package/src/resources/simulations/card-authorizations.ts +5 -4
- package/src/resources/simulations/card-disputes.ts +8 -6
- package/src/resources/simulations/card-fuel-confirmations.ts +5 -4
- package/src/resources/simulations/card-increments.ts +4 -6
- package/src/resources/simulations/card-refunds.ts +4 -6
- package/src/resources/simulations/card-reversals.ts +4 -6
- package/src/resources/simulations/card-settlements.ts +5 -4
- package/src/resources/simulations/card-tokens.ts +4 -6
- package/src/resources/simulations/check-deposits.ts +10 -17
- package/src/resources/simulations/check-transfers.ts +6 -7
- package/src/resources/simulations/digital-wallet-token-requests.ts +5 -4
- package/src/resources/simulations/documents.ts +4 -3
- package/src/resources/simulations/inbound-ach-transfers.ts +5 -4
- package/src/resources/simulations/inbound-check-deposits.ts +5 -4
- package/src/resources/simulations/inbound-fednow-transfers.ts +5 -4
- package/src/resources/simulations/inbound-mail-items.ts +5 -4
- package/src/resources/simulations/inbound-real-time-payments-transfers.ts +5 -4
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +5 -4
- package/src/resources/simulations/inbound-wire-transfers.ts +5 -4
- package/src/resources/simulations/interest-payments.ts +5 -4
- package/src/resources/simulations/pending-transactions.ts +8 -6
- package/src/resources/simulations/physical-cards.ts +12 -10
- package/src/resources/simulations/programs.ts +4 -3
- package/src/resources/simulations/real-time-payments-transfers.ts +8 -6
- package/src/resources/simulations/simulations.ts +1 -1
- package/src/resources/simulations/wire-drawdown-requests.ts +18 -10
- package/src/resources/simulations/wire-transfers.ts +8 -12
- package/src/resources/supplemental-documents.ts +11 -12
- package/src/resources/transactions.ts +13 -22
- package/src/resources/wire-drawdown-requests.ts +14 -29
- package/src/resources/wire-transfers.ts +18 -27
- 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 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/resources/webhooks.d.ts +0 -22
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js +0 -82
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs +0 -78
- package/resources/webhooks.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 -1236
- package/src/resources/webhooks.ts +0 -110
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/client.mjs
ADDED
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
var _Increase_instances, _a, _Increase_encoder, _Increase_baseURLOverridden;
|
|
3
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet } from "./internal/tslib.mjs";
|
|
4
|
+
import { uuid4 } from "./internal/utils/uuid.mjs";
|
|
5
|
+
import { validatePositiveInteger, isAbsoluteURL, safeJSON } from "./internal/utils/values.mjs";
|
|
6
|
+
import { sleep } from "./internal/utils/sleep.mjs";
|
|
7
|
+
import { castToError, isAbortError } from "./internal/errors.mjs";
|
|
8
|
+
import { getPlatformHeaders } from "./internal/detect-platform.mjs";
|
|
9
|
+
import * as Shims from "./internal/shims.mjs";
|
|
10
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
11
|
+
import * as qs from "./internal/qs/index.mjs";
|
|
12
|
+
import { VERSION } from "./version.mjs";
|
|
13
|
+
import * as Errors from "./core/error.mjs";
|
|
14
|
+
import * as Pagination from "./core/pagination.mjs";
|
|
15
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
16
|
+
import * as API from "./resources/index.mjs";
|
|
17
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
18
|
+
import { AccountNumbers, } from "./resources/account-numbers.mjs";
|
|
19
|
+
import { AccountStatements, } from "./resources/account-statements.mjs";
|
|
20
|
+
import { AccountTransfers, } from "./resources/account-transfers.mjs";
|
|
21
|
+
import { Accounts, } from "./resources/accounts.mjs";
|
|
22
|
+
import { ACHPrenotifications, } from "./resources/ach-prenotifications.mjs";
|
|
23
|
+
import { ACHTransfers, } from "./resources/ach-transfers.mjs";
|
|
24
|
+
import { BookkeepingAccounts, } from "./resources/bookkeeping-accounts.mjs";
|
|
25
|
+
import { BookkeepingEntries, } from "./resources/bookkeeping-entries.mjs";
|
|
26
|
+
import { BookkeepingEntrySets, } from "./resources/bookkeeping-entry-sets.mjs";
|
|
27
|
+
import { CardDisputes, } from "./resources/card-disputes.mjs";
|
|
28
|
+
import { CardPayments, } from "./resources/card-payments.mjs";
|
|
29
|
+
import { CardPurchaseSupplements, } from "./resources/card-purchase-supplements.mjs";
|
|
30
|
+
import { CardPushTransfers, } from "./resources/card-push-transfers.mjs";
|
|
31
|
+
import { CardTokens, } from "./resources/card-tokens.mjs";
|
|
32
|
+
import { CardValidations, } from "./resources/card-validations.mjs";
|
|
33
|
+
import { Cards, } from "./resources/cards.mjs";
|
|
34
|
+
import { CheckDeposits, } from "./resources/check-deposits.mjs";
|
|
35
|
+
import { CheckTransfers, } from "./resources/check-transfers.mjs";
|
|
36
|
+
import { DeclinedTransactions, } from "./resources/declined-transactions.mjs";
|
|
37
|
+
import { DigitalCardProfiles, } from "./resources/digital-card-profiles.mjs";
|
|
38
|
+
import { DigitalWalletTokens, } from "./resources/digital-wallet-tokens.mjs";
|
|
39
|
+
import { Documents, } from "./resources/documents.mjs";
|
|
40
|
+
import { Entities, } from "./resources/entities.mjs";
|
|
41
|
+
import { EventSubscriptions, } from "./resources/event-subscriptions.mjs";
|
|
42
|
+
import { Events } from "./resources/events.mjs";
|
|
43
|
+
import { Exports } from "./resources/exports.mjs";
|
|
44
|
+
import { ExternalAccounts, } from "./resources/external-accounts.mjs";
|
|
45
|
+
import { FednowTransfers, } from "./resources/fednow-transfers.mjs";
|
|
46
|
+
import { FileLinks } from "./resources/file-links.mjs";
|
|
47
|
+
import { Files } from "./resources/files.mjs";
|
|
48
|
+
import { Groups } from "./resources/groups.mjs";
|
|
49
|
+
import { InboundACHTransfers, } from "./resources/inbound-ach-transfers.mjs";
|
|
50
|
+
import { InboundCheckDeposits, } from "./resources/inbound-check-deposits.mjs";
|
|
51
|
+
import { InboundFednowTransfers, } from "./resources/inbound-fednow-transfers.mjs";
|
|
52
|
+
import { InboundMailItems, } from "./resources/inbound-mail-items.mjs";
|
|
53
|
+
import { InboundRealTimePaymentsTransfers, } from "./resources/inbound-real-time-payments-transfers.mjs";
|
|
54
|
+
import { InboundWireDrawdownRequests, } from "./resources/inbound-wire-drawdown-requests.mjs";
|
|
55
|
+
import { InboundWireTransfers, } from "./resources/inbound-wire-transfers.mjs";
|
|
56
|
+
import { IntrafiAccountEnrollments, } from "./resources/intrafi-account-enrollments.mjs";
|
|
57
|
+
import { IntrafiBalances } from "./resources/intrafi-balances.mjs";
|
|
58
|
+
import { IntrafiExclusions, } from "./resources/intrafi-exclusions.mjs";
|
|
59
|
+
import { Lockboxes, } from "./resources/lockboxes.mjs";
|
|
60
|
+
import { OAuthApplications, } from "./resources/oauth-applications.mjs";
|
|
61
|
+
import { OAuthConnections, } from "./resources/oauth-connections.mjs";
|
|
62
|
+
import { OAuthTokens } from "./resources/oauth-tokens.mjs";
|
|
63
|
+
import { PendingTransactions, } from "./resources/pending-transactions.mjs";
|
|
64
|
+
import { PhysicalCardProfiles, } from "./resources/physical-card-profiles.mjs";
|
|
65
|
+
import { PhysicalCards, } from "./resources/physical-cards.mjs";
|
|
66
|
+
import { Programs } from "./resources/programs.mjs";
|
|
67
|
+
import { RealTimeDecisions, } from "./resources/real-time-decisions.mjs";
|
|
68
|
+
import { RealTimePaymentsTransfers, } from "./resources/real-time-payments-transfers.mjs";
|
|
69
|
+
import { RoutingNumbers, } from "./resources/routing-numbers.mjs";
|
|
70
|
+
import { SupplementalDocuments, } from "./resources/supplemental-documents.mjs";
|
|
71
|
+
import { Transactions } from "./resources/transactions.mjs";
|
|
72
|
+
import { WireDrawdownRequests, } from "./resources/wire-drawdown-requests.mjs";
|
|
73
|
+
import { WireTransfers, } from "./resources/wire-transfers.mjs";
|
|
74
|
+
import { Simulations } from "./resources/simulations/simulations.mjs";
|
|
75
|
+
import { buildHeaders } from "./internal/headers.mjs";
|
|
76
|
+
import { readEnv } from "./internal/utils/env.mjs";
|
|
77
|
+
import { formatRequestDetails, loggerFor, parseLogLevel, } from "./internal/utils/log.mjs";
|
|
78
|
+
import { isEmptyObj } from "./internal/utils/values.mjs";
|
|
79
|
+
const environments = {
|
|
80
|
+
production: 'https://api.increase.com',
|
|
81
|
+
sandbox: 'https://sandbox.increase.com',
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* API Client for interfacing with the Increase API.
|
|
85
|
+
*/
|
|
86
|
+
export class Increase {
|
|
87
|
+
/**
|
|
88
|
+
* API Client for interfacing with the Increase API.
|
|
89
|
+
*
|
|
90
|
+
* @param {string | undefined} [opts.apiKey=process.env['INCREASE_API_KEY'] ?? undefined]
|
|
91
|
+
* @param {string | null | undefined} [opts.webhookSecret=process.env['INCREASE_WEBHOOK_SECRET'] ?? null]
|
|
92
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
93
|
+
* @param {string} [opts.baseURL=process.env['INCREASE_BASE_URL'] ?? https://api.increase.com] - Override the default base URL for the API.
|
|
94
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
95
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
96
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
97
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
98
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
99
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
100
|
+
*/
|
|
101
|
+
constructor({ baseURL = readEnv('INCREASE_BASE_URL'), apiKey = readEnv('INCREASE_API_KEY'), webhookSecret = readEnv('INCREASE_WEBHOOK_SECRET') ?? null, ...opts } = {}) {
|
|
102
|
+
_Increase_instances.add(this);
|
|
103
|
+
_Increase_encoder.set(this, void 0);
|
|
104
|
+
this.accounts = new API.Accounts(this);
|
|
105
|
+
this.accountNumbers = new API.AccountNumbers(this);
|
|
106
|
+
this.accountTransfers = new API.AccountTransfers(this);
|
|
107
|
+
this.cards = new API.Cards(this);
|
|
108
|
+
this.cardPayments = new API.CardPayments(this);
|
|
109
|
+
this.cardPurchaseSupplements = new API.CardPurchaseSupplements(this);
|
|
110
|
+
this.cardDisputes = new API.CardDisputes(this);
|
|
111
|
+
this.physicalCards = new API.PhysicalCards(this);
|
|
112
|
+
this.digitalCardProfiles = new API.DigitalCardProfiles(this);
|
|
113
|
+
this.physicalCardProfiles = new API.PhysicalCardProfiles(this);
|
|
114
|
+
this.digitalWalletTokens = new API.DigitalWalletTokens(this);
|
|
115
|
+
this.transactions = new API.Transactions(this);
|
|
116
|
+
this.pendingTransactions = new API.PendingTransactions(this);
|
|
117
|
+
this.declinedTransactions = new API.DeclinedTransactions(this);
|
|
118
|
+
this.achTransfers = new API.ACHTransfers(this);
|
|
119
|
+
this.achPrenotifications = new API.ACHPrenotifications(this);
|
|
120
|
+
this.inboundACHTransfers = new API.InboundACHTransfers(this);
|
|
121
|
+
this.wireTransfers = new API.WireTransfers(this);
|
|
122
|
+
this.inboundWireTransfers = new API.InboundWireTransfers(this);
|
|
123
|
+
this.wireDrawdownRequests = new API.WireDrawdownRequests(this);
|
|
124
|
+
this.inboundWireDrawdownRequests = new API.InboundWireDrawdownRequests(this);
|
|
125
|
+
this.checkTransfers = new API.CheckTransfers(this);
|
|
126
|
+
this.inboundCheckDeposits = new API.InboundCheckDeposits(this);
|
|
127
|
+
this.realTimePaymentsTransfers = new API.RealTimePaymentsTransfers(this);
|
|
128
|
+
this.inboundRealTimePaymentsTransfers = new API.InboundRealTimePaymentsTransfers(this);
|
|
129
|
+
this.fednowTransfers = new API.FednowTransfers(this);
|
|
130
|
+
this.inboundFednowTransfers = new API.InboundFednowTransfers(this);
|
|
131
|
+
this.checkDeposits = new API.CheckDeposits(this);
|
|
132
|
+
this.lockboxes = new API.Lockboxes(this);
|
|
133
|
+
this.inboundMailItems = new API.InboundMailItems(this);
|
|
134
|
+
this.routingNumbers = new API.RoutingNumbers(this);
|
|
135
|
+
this.externalAccounts = new API.ExternalAccounts(this);
|
|
136
|
+
this.entities = new API.Entities(this);
|
|
137
|
+
this.supplementalDocuments = new API.SupplementalDocuments(this);
|
|
138
|
+
this.programs = new API.Programs(this);
|
|
139
|
+
this.accountStatements = new API.AccountStatements(this);
|
|
140
|
+
this.files = new API.Files(this);
|
|
141
|
+
this.fileLinks = new API.FileLinks(this);
|
|
142
|
+
this.documents = new API.Documents(this);
|
|
143
|
+
this.exports = new API.Exports(this);
|
|
144
|
+
this.events = new API.Events(this);
|
|
145
|
+
this.eventSubscriptions = new API.EventSubscriptions(this);
|
|
146
|
+
this.realTimeDecisions = new API.RealTimeDecisions(this);
|
|
147
|
+
this.bookkeepingAccounts = new API.BookkeepingAccounts(this);
|
|
148
|
+
this.bookkeepingEntrySets = new API.BookkeepingEntrySets(this);
|
|
149
|
+
this.bookkeepingEntries = new API.BookkeepingEntries(this);
|
|
150
|
+
this.groups = new API.Groups(this);
|
|
151
|
+
this.oauthApplications = new API.OAuthApplications(this);
|
|
152
|
+
this.oauthConnections = new API.OAuthConnections(this);
|
|
153
|
+
this.oauthTokens = new API.OAuthTokens(this);
|
|
154
|
+
this.intrafiAccountEnrollments = new API.IntrafiAccountEnrollments(this);
|
|
155
|
+
this.intrafiBalances = new API.IntrafiBalances(this);
|
|
156
|
+
this.intrafiExclusions = new API.IntrafiExclusions(this);
|
|
157
|
+
this.cardTokens = new API.CardTokens(this);
|
|
158
|
+
this.cardPushTransfers = new API.CardPushTransfers(this);
|
|
159
|
+
this.cardValidations = new API.CardValidations(this);
|
|
160
|
+
this.simulations = new API.Simulations(this);
|
|
161
|
+
if (apiKey === undefined) {
|
|
162
|
+
throw new Errors.IncreaseError("The INCREASE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Increase client with an apiKey option, like new Increase({ apiKey: 'My API Key' }).");
|
|
163
|
+
}
|
|
164
|
+
const options = {
|
|
165
|
+
apiKey,
|
|
166
|
+
webhookSecret,
|
|
167
|
+
...opts,
|
|
168
|
+
baseURL,
|
|
169
|
+
environment: opts.environment ?? 'production',
|
|
170
|
+
};
|
|
171
|
+
if (baseURL && opts.environment) {
|
|
172
|
+
throw new Errors.IncreaseError('Ambiguous URL; The `baseURL` option (or INCREASE_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null');
|
|
173
|
+
}
|
|
174
|
+
this.baseURL = options.baseURL || environments[options.environment || 'production'];
|
|
175
|
+
this.timeout = options.timeout ?? _a.DEFAULT_TIMEOUT /* 1 minute */;
|
|
176
|
+
this.logger = options.logger ?? console;
|
|
177
|
+
const defaultLogLevel = 'warn';
|
|
178
|
+
// Set default logLevel early so that we can log a warning in parseLogLevel.
|
|
179
|
+
this.logLevel = defaultLogLevel;
|
|
180
|
+
this.logLevel =
|
|
181
|
+
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
|
|
182
|
+
parseLogLevel(readEnv('INCREASE_LOG'), "process.env['INCREASE_LOG']", this) ??
|
|
183
|
+
defaultLogLevel;
|
|
184
|
+
this.fetchOptions = options.fetchOptions;
|
|
185
|
+
this.maxRetries = options.maxRetries ?? 2;
|
|
186
|
+
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
187
|
+
__classPrivateFieldSet(this, _Increase_encoder, Opts.FallbackEncoder, "f");
|
|
188
|
+
this._options = options;
|
|
189
|
+
this.idempotencyHeader = 'Idempotency-Key';
|
|
190
|
+
this.apiKey = apiKey;
|
|
191
|
+
this.webhookSecret = webhookSecret;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
195
|
+
*/
|
|
196
|
+
withOptions(options) {
|
|
197
|
+
const client = new this.constructor({
|
|
198
|
+
...this._options,
|
|
199
|
+
environment: options.environment ? options.environment : undefined,
|
|
200
|
+
baseURL: options.environment ? undefined : this.baseURL,
|
|
201
|
+
maxRetries: this.maxRetries,
|
|
202
|
+
timeout: this.timeout,
|
|
203
|
+
logger: this.logger,
|
|
204
|
+
logLevel: this.logLevel,
|
|
205
|
+
fetch: this.fetch,
|
|
206
|
+
fetchOptions: this.fetchOptions,
|
|
207
|
+
apiKey: this.apiKey,
|
|
208
|
+
webhookSecret: this.webhookSecret,
|
|
209
|
+
...options,
|
|
210
|
+
});
|
|
211
|
+
return client;
|
|
212
|
+
}
|
|
213
|
+
defaultQuery() {
|
|
214
|
+
return this._options.defaultQuery;
|
|
215
|
+
}
|
|
216
|
+
validateHeaders({ values, nulls }) {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
async authHeaders(opts) {
|
|
220
|
+
return buildHeaders([{ Authorization: `Bearer ${this.apiKey}` }]);
|
|
221
|
+
}
|
|
222
|
+
stringifyQuery(query) {
|
|
223
|
+
return qs.stringify(query, { allowDots: true, arrayFormat: 'comma' });
|
|
224
|
+
}
|
|
225
|
+
getUserAgent() {
|
|
226
|
+
return `${this.constructor.name}/JS ${VERSION}`;
|
|
227
|
+
}
|
|
228
|
+
defaultIdempotencyKey() {
|
|
229
|
+
return `stainless-node-retry-${uuid4()}`;
|
|
230
|
+
}
|
|
231
|
+
makeStatusError(status, error, message, headers) {
|
|
232
|
+
return Errors.APIError.generate(status, error, message, headers);
|
|
233
|
+
}
|
|
234
|
+
buildURL(path, query, defaultBaseURL) {
|
|
235
|
+
const baseURL = (!__classPrivateFieldGet(this, _Increase_instances, "m", _Increase_baseURLOverridden).call(this) && defaultBaseURL) || this.baseURL;
|
|
236
|
+
const url = isAbsoluteURL(path) ?
|
|
237
|
+
new URL(path)
|
|
238
|
+
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
239
|
+
const defaultQuery = this.defaultQuery();
|
|
240
|
+
if (!isEmptyObj(defaultQuery)) {
|
|
241
|
+
query = { ...defaultQuery, ...query };
|
|
242
|
+
}
|
|
243
|
+
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
244
|
+
url.search = this.stringifyQuery(query);
|
|
245
|
+
}
|
|
246
|
+
return url.toString();
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
250
|
+
*/
|
|
251
|
+
async prepareOptions(options) { }
|
|
252
|
+
/**
|
|
253
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
254
|
+
*
|
|
255
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
256
|
+
* the request properties, e.g. `method` or `url`.
|
|
257
|
+
*/
|
|
258
|
+
async prepareRequest(request, { url, options }) { }
|
|
259
|
+
get(path, opts) {
|
|
260
|
+
return this.methodRequest('get', path, opts);
|
|
261
|
+
}
|
|
262
|
+
post(path, opts) {
|
|
263
|
+
return this.methodRequest('post', path, opts);
|
|
264
|
+
}
|
|
265
|
+
patch(path, opts) {
|
|
266
|
+
return this.methodRequest('patch', path, opts);
|
|
267
|
+
}
|
|
268
|
+
put(path, opts) {
|
|
269
|
+
return this.methodRequest('put', path, opts);
|
|
270
|
+
}
|
|
271
|
+
delete(path, opts) {
|
|
272
|
+
return this.methodRequest('delete', path, opts);
|
|
273
|
+
}
|
|
274
|
+
methodRequest(method, path, opts) {
|
|
275
|
+
return this.request(Promise.resolve(opts).then((opts) => {
|
|
276
|
+
return { method, path, ...opts };
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
request(options, remainingRetries = null) {
|
|
280
|
+
return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
|
|
281
|
+
}
|
|
282
|
+
async makeRequest(optionsInput, retriesRemaining, retryOfRequestLogID) {
|
|
283
|
+
const options = await optionsInput;
|
|
284
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
285
|
+
if (retriesRemaining == null) {
|
|
286
|
+
retriesRemaining = maxRetries;
|
|
287
|
+
}
|
|
288
|
+
await this.prepareOptions(options);
|
|
289
|
+
const { req, url, timeout } = await this.buildRequest(options, {
|
|
290
|
+
retryCount: maxRetries - retriesRemaining,
|
|
291
|
+
});
|
|
292
|
+
await this.prepareRequest(req, { url, options });
|
|
293
|
+
/** Not an API request ID, just for correlating local log entries. */
|
|
294
|
+
const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
|
|
295
|
+
const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
|
|
296
|
+
const startTime = Date.now();
|
|
297
|
+
loggerFor(this).debug(`[${requestLogID}] sending request`, formatRequestDetails({
|
|
298
|
+
retryOfRequestLogID,
|
|
299
|
+
method: options.method,
|
|
300
|
+
url,
|
|
301
|
+
options,
|
|
302
|
+
headers: req.headers,
|
|
303
|
+
}));
|
|
304
|
+
if (options.signal?.aborted) {
|
|
305
|
+
throw new Errors.APIUserAbortError();
|
|
306
|
+
}
|
|
307
|
+
const controller = new AbortController();
|
|
308
|
+
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
309
|
+
const headersTime = Date.now();
|
|
310
|
+
if (response instanceof globalThis.Error) {
|
|
311
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
312
|
+
if (options.signal?.aborted) {
|
|
313
|
+
throw new Errors.APIUserAbortError();
|
|
314
|
+
}
|
|
315
|
+
// detect native connection timeout errors
|
|
316
|
+
// deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
|
|
317
|
+
// undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
|
|
318
|
+
// others do not provide enough information to distinguish timeouts from other connection errors
|
|
319
|
+
const isTimeout = isAbortError(response) ||
|
|
320
|
+
/timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
|
|
321
|
+
if (retriesRemaining) {
|
|
322
|
+
loggerFor(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`);
|
|
323
|
+
loggerFor(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`, formatRequestDetails({
|
|
324
|
+
retryOfRequestLogID,
|
|
325
|
+
url,
|
|
326
|
+
durationMs: headersTime - startTime,
|
|
327
|
+
message: response.message,
|
|
328
|
+
}));
|
|
329
|
+
return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
|
|
330
|
+
}
|
|
331
|
+
loggerFor(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`);
|
|
332
|
+
loggerFor(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`, formatRequestDetails({
|
|
333
|
+
retryOfRequestLogID,
|
|
334
|
+
url,
|
|
335
|
+
durationMs: headersTime - startTime,
|
|
336
|
+
message: response.message,
|
|
337
|
+
}));
|
|
338
|
+
if (isTimeout) {
|
|
339
|
+
throw new Errors.APIConnectionTimeoutError();
|
|
340
|
+
}
|
|
341
|
+
throw new Errors.APIConnectionError({ cause: response });
|
|
342
|
+
}
|
|
343
|
+
const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${response.ok ? 'succeeded' : 'failed'} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
344
|
+
if (!response.ok) {
|
|
345
|
+
const shouldRetry = await this.shouldRetry(response);
|
|
346
|
+
if (retriesRemaining && shouldRetry) {
|
|
347
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
348
|
+
// We don't need the body of this response.
|
|
349
|
+
await Shims.CancelReadableStream(response.body);
|
|
350
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
351
|
+
loggerFor(this).debug(`[${requestLogID}] response error (${retryMessage})`, formatRequestDetails({
|
|
352
|
+
retryOfRequestLogID,
|
|
353
|
+
url: response.url,
|
|
354
|
+
status: response.status,
|
|
355
|
+
headers: response.headers,
|
|
356
|
+
durationMs: headersTime - startTime,
|
|
357
|
+
}));
|
|
358
|
+
return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID, response.headers);
|
|
359
|
+
}
|
|
360
|
+
const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
|
|
361
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
362
|
+
const errText = await response.text().catch((err) => castToError(err).message);
|
|
363
|
+
const errJSON = safeJSON(errText);
|
|
364
|
+
const errMessage = errJSON ? undefined : errText;
|
|
365
|
+
loggerFor(this).debug(`[${requestLogID}] response error (${retryMessage})`, formatRequestDetails({
|
|
366
|
+
retryOfRequestLogID,
|
|
367
|
+
url: response.url,
|
|
368
|
+
status: response.status,
|
|
369
|
+
headers: response.headers,
|
|
370
|
+
message: errMessage,
|
|
371
|
+
durationMs: Date.now() - startTime,
|
|
372
|
+
}));
|
|
373
|
+
const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
|
|
374
|
+
throw err;
|
|
375
|
+
}
|
|
376
|
+
loggerFor(this).info(responseInfo);
|
|
377
|
+
loggerFor(this).debug(`[${requestLogID}] response start`, formatRequestDetails({
|
|
378
|
+
retryOfRequestLogID,
|
|
379
|
+
url: response.url,
|
|
380
|
+
status: response.status,
|
|
381
|
+
headers: response.headers,
|
|
382
|
+
durationMs: headersTime - startTime,
|
|
383
|
+
}));
|
|
384
|
+
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
385
|
+
}
|
|
386
|
+
getAPIList(path, Page, opts) {
|
|
387
|
+
return this.requestAPIList(Page, { method: 'get', path, ...opts });
|
|
388
|
+
}
|
|
389
|
+
requestAPIList(Page, options) {
|
|
390
|
+
const request = this.makeRequest(options, null, undefined);
|
|
391
|
+
return new Pagination.PagePromise(this, request, Page);
|
|
392
|
+
}
|
|
393
|
+
async fetchWithTimeout(url, init, ms, controller) {
|
|
394
|
+
const { signal, method, ...options } = init || {};
|
|
395
|
+
if (signal)
|
|
396
|
+
signal.addEventListener('abort', () => controller.abort());
|
|
397
|
+
const timeout = setTimeout(() => controller.abort(), ms);
|
|
398
|
+
const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
|
|
399
|
+
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
400
|
+
const fetchOptions = {
|
|
401
|
+
signal: controller.signal,
|
|
402
|
+
...(isReadableBody ? { duplex: 'half' } : {}),
|
|
403
|
+
method: 'GET',
|
|
404
|
+
...options,
|
|
405
|
+
};
|
|
406
|
+
if (method) {
|
|
407
|
+
// Custom methods like 'patch' need to be uppercased
|
|
408
|
+
// See https://github.com/nodejs/undici/issues/2294
|
|
409
|
+
fetchOptions.method = method.toUpperCase();
|
|
410
|
+
}
|
|
411
|
+
try {
|
|
412
|
+
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
413
|
+
return await this.fetch.call(undefined, url, fetchOptions);
|
|
414
|
+
}
|
|
415
|
+
finally {
|
|
416
|
+
clearTimeout(timeout);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
async shouldRetry(response) {
|
|
420
|
+
// Note this is not a standard header.
|
|
421
|
+
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
422
|
+
// If the server explicitly says whether or not to retry, obey.
|
|
423
|
+
if (shouldRetryHeader === 'true')
|
|
424
|
+
return true;
|
|
425
|
+
if (shouldRetryHeader === 'false')
|
|
426
|
+
return false;
|
|
427
|
+
// Retry on request timeouts.
|
|
428
|
+
if (response.status === 408)
|
|
429
|
+
return true;
|
|
430
|
+
// Retry on lock timeouts.
|
|
431
|
+
if (response.status === 409)
|
|
432
|
+
return true;
|
|
433
|
+
// Retry on rate limits.
|
|
434
|
+
if (response.status === 429)
|
|
435
|
+
return true;
|
|
436
|
+
// Retry internal errors.
|
|
437
|
+
if (response.status >= 500)
|
|
438
|
+
return true;
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
async retryRequest(options, retriesRemaining, requestLogID, responseHeaders) {
|
|
442
|
+
let timeoutMillis;
|
|
443
|
+
// Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
|
|
444
|
+
const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
|
|
445
|
+
if (retryAfterMillisHeader) {
|
|
446
|
+
const timeoutMs = parseFloat(retryAfterMillisHeader);
|
|
447
|
+
if (!Number.isNaN(timeoutMs)) {
|
|
448
|
+
timeoutMillis = timeoutMs;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
// About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
|
|
452
|
+
const retryAfterHeader = responseHeaders?.get('retry-after');
|
|
453
|
+
if (retryAfterHeader && !timeoutMillis) {
|
|
454
|
+
const timeoutSeconds = parseFloat(retryAfterHeader);
|
|
455
|
+
if (!Number.isNaN(timeoutSeconds)) {
|
|
456
|
+
timeoutMillis = timeoutSeconds * 1000;
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
// If the API asks us to wait a certain amount of time (and it's a reasonable amount),
|
|
463
|
+
// just do what it says, but otherwise calculate a default
|
|
464
|
+
if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
|
|
465
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
466
|
+
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
467
|
+
}
|
|
468
|
+
await sleep(timeoutMillis);
|
|
469
|
+
return this.makeRequest(options, retriesRemaining - 1, requestLogID);
|
|
470
|
+
}
|
|
471
|
+
calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) {
|
|
472
|
+
const initialRetryDelay = 0.5;
|
|
473
|
+
const maxRetryDelay = 8.0;
|
|
474
|
+
const numRetries = maxRetries - retriesRemaining;
|
|
475
|
+
// Apply exponential backoff, but not more than the max.
|
|
476
|
+
const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
|
|
477
|
+
// Apply some jitter, take up to at most 25 percent of the retry time.
|
|
478
|
+
const jitter = 1 - Math.random() * 0.25;
|
|
479
|
+
return sleepSeconds * jitter * 1000;
|
|
480
|
+
}
|
|
481
|
+
async buildRequest(inputOptions, { retryCount = 0 } = {}) {
|
|
482
|
+
const options = { ...inputOptions };
|
|
483
|
+
const { method, path, query, defaultBaseURL } = options;
|
|
484
|
+
const url = this.buildURL(path, query, defaultBaseURL);
|
|
485
|
+
if ('timeout' in options)
|
|
486
|
+
validatePositiveInteger('timeout', options.timeout);
|
|
487
|
+
options.timeout = options.timeout ?? this.timeout;
|
|
488
|
+
const { bodyHeaders, body } = this.buildBody({ options });
|
|
489
|
+
const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
490
|
+
const req = {
|
|
491
|
+
method,
|
|
492
|
+
headers: reqHeaders,
|
|
493
|
+
...(options.signal && { signal: options.signal }),
|
|
494
|
+
...(globalThis.ReadableStream &&
|
|
495
|
+
body instanceof globalThis.ReadableStream && { duplex: 'half' }),
|
|
496
|
+
...(body && { body }),
|
|
497
|
+
...(this.fetchOptions ?? {}),
|
|
498
|
+
...(options.fetchOptions ?? {}),
|
|
499
|
+
};
|
|
500
|
+
return { req, url, timeout: options.timeout };
|
|
501
|
+
}
|
|
502
|
+
async buildHeaders({ options, method, bodyHeaders, retryCount, }) {
|
|
503
|
+
let idempotencyHeaders = {};
|
|
504
|
+
if (this.idempotencyHeader && method !== 'get') {
|
|
505
|
+
if (!options.idempotencyKey)
|
|
506
|
+
options.idempotencyKey = this.defaultIdempotencyKey();
|
|
507
|
+
idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
|
|
508
|
+
}
|
|
509
|
+
const headers = buildHeaders([
|
|
510
|
+
idempotencyHeaders,
|
|
511
|
+
{
|
|
512
|
+
Accept: 'application/json',
|
|
513
|
+
'User-Agent': this.getUserAgent(),
|
|
514
|
+
'X-Stainless-Retry-Count': String(retryCount),
|
|
515
|
+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
516
|
+
...getPlatformHeaders(),
|
|
517
|
+
},
|
|
518
|
+
await this.authHeaders(options),
|
|
519
|
+
this._options.defaultHeaders,
|
|
520
|
+
bodyHeaders,
|
|
521
|
+
options.headers,
|
|
522
|
+
]);
|
|
523
|
+
this.validateHeaders(headers);
|
|
524
|
+
return headers.values;
|
|
525
|
+
}
|
|
526
|
+
buildBody({ options: { body, headers: rawHeaders } }) {
|
|
527
|
+
if (!body) {
|
|
528
|
+
return { bodyHeaders: undefined, body: undefined };
|
|
529
|
+
}
|
|
530
|
+
const headers = buildHeaders([rawHeaders]);
|
|
531
|
+
if (
|
|
532
|
+
// Pass raw type verbatim
|
|
533
|
+
ArrayBuffer.isView(body) ||
|
|
534
|
+
body instanceof ArrayBuffer ||
|
|
535
|
+
body instanceof DataView ||
|
|
536
|
+
(typeof body === 'string' &&
|
|
537
|
+
// Preserve legacy string encoding behavior for now
|
|
538
|
+
headers.values.has('content-type')) ||
|
|
539
|
+
// `Blob` is superset of `File`
|
|
540
|
+
(globalThis.Blob && body instanceof globalThis.Blob) ||
|
|
541
|
+
// `FormData` -> `multipart/form-data`
|
|
542
|
+
body instanceof FormData ||
|
|
543
|
+
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
544
|
+
body instanceof URLSearchParams ||
|
|
545
|
+
// Send chunked stream (each chunk has own `length`)
|
|
546
|
+
(globalThis.ReadableStream && body instanceof globalThis.ReadableStream)) {
|
|
547
|
+
return { bodyHeaders: undefined, body: body };
|
|
548
|
+
}
|
|
549
|
+
else if (typeof body === 'object' &&
|
|
550
|
+
(Symbol.asyncIterator in body ||
|
|
551
|
+
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))) {
|
|
552
|
+
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body) };
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
return __classPrivateFieldGet(this, _Increase_encoder, "f").call(this, { body, headers });
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
_a = Increase, _Increase_encoder = new WeakMap(), _Increase_instances = new WeakSet(), _Increase_baseURLOverridden = function _Increase_baseURLOverridden() {
|
|
560
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
561
|
+
};
|
|
562
|
+
Increase.Increase = _a;
|
|
563
|
+
Increase.DEFAULT_TIMEOUT = 60000; // 1 minute
|
|
564
|
+
Increase.IncreaseError = Errors.IncreaseError;
|
|
565
|
+
Increase.APIError = Errors.APIError;
|
|
566
|
+
Increase.APIConnectionError = Errors.APIConnectionError;
|
|
567
|
+
Increase.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
568
|
+
Increase.APIUserAbortError = Errors.APIUserAbortError;
|
|
569
|
+
Increase.NotFoundError = Errors.NotFoundError;
|
|
570
|
+
Increase.ConflictError = Errors.ConflictError;
|
|
571
|
+
Increase.RateLimitError = Errors.RateLimitError;
|
|
572
|
+
Increase.BadRequestError = Errors.BadRequestError;
|
|
573
|
+
Increase.RateLimitedError = Errors.RateLimitedError;
|
|
574
|
+
Increase.InvalidAPIKeyError = Errors.InvalidAPIKeyError;
|
|
575
|
+
Increase.AuthenticationError = Errors.AuthenticationError;
|
|
576
|
+
Increase.InternalServerError = Errors.InternalServerError;
|
|
577
|
+
Increase.ObjectNotFoundError = Errors.ObjectNotFoundError;
|
|
578
|
+
Increase.PrivateFeatureError = Errors.PrivateFeatureError;
|
|
579
|
+
Increase.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
580
|
+
Increase.InvalidOperationError = Errors.InvalidOperationError;
|
|
581
|
+
Increase.MalformedRequestError = Errors.MalformedRequestError;
|
|
582
|
+
Increase.APIMethodNotFoundError = Errors.APIMethodNotFoundError;
|
|
583
|
+
Increase.InvalidParametersError = Errors.InvalidParametersError;
|
|
584
|
+
Increase.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
585
|
+
Increase.EnvironmentMismatchError = Errors.EnvironmentMismatchError;
|
|
586
|
+
Increase.InsufficientPermissionsError = Errors.InsufficientPermissionsError;
|
|
587
|
+
Increase.IdempotencyKeyAlreadyUsedError = Errors.IdempotencyKeyAlreadyUsedError;
|
|
588
|
+
Increase.toFile = Uploads.toFile;
|
|
589
|
+
Increase.Accounts = Accounts;
|
|
590
|
+
Increase.AccountNumbers = AccountNumbers;
|
|
591
|
+
Increase.AccountTransfers = AccountTransfers;
|
|
592
|
+
Increase.Cards = Cards;
|
|
593
|
+
Increase.CardPayments = CardPayments;
|
|
594
|
+
Increase.CardPurchaseSupplements = CardPurchaseSupplements;
|
|
595
|
+
Increase.CardDisputes = CardDisputes;
|
|
596
|
+
Increase.PhysicalCards = PhysicalCards;
|
|
597
|
+
Increase.DigitalCardProfiles = DigitalCardProfiles;
|
|
598
|
+
Increase.PhysicalCardProfiles = PhysicalCardProfiles;
|
|
599
|
+
Increase.DigitalWalletTokens = DigitalWalletTokens;
|
|
600
|
+
Increase.Transactions = Transactions;
|
|
601
|
+
Increase.PendingTransactions = PendingTransactions;
|
|
602
|
+
Increase.DeclinedTransactions = DeclinedTransactions;
|
|
603
|
+
Increase.ACHTransfers = ACHTransfers;
|
|
604
|
+
Increase.ACHPrenotifications = ACHPrenotifications;
|
|
605
|
+
Increase.InboundACHTransfers = InboundACHTransfers;
|
|
606
|
+
Increase.WireTransfers = WireTransfers;
|
|
607
|
+
Increase.InboundWireTransfers = InboundWireTransfers;
|
|
608
|
+
Increase.WireDrawdownRequests = WireDrawdownRequests;
|
|
609
|
+
Increase.InboundWireDrawdownRequests = InboundWireDrawdownRequests;
|
|
610
|
+
Increase.CheckTransfers = CheckTransfers;
|
|
611
|
+
Increase.InboundCheckDeposits = InboundCheckDeposits;
|
|
612
|
+
Increase.RealTimePaymentsTransfers = RealTimePaymentsTransfers;
|
|
613
|
+
Increase.InboundRealTimePaymentsTransfers = InboundRealTimePaymentsTransfers;
|
|
614
|
+
Increase.FednowTransfers = FednowTransfers;
|
|
615
|
+
Increase.InboundFednowTransfers = InboundFednowTransfers;
|
|
616
|
+
Increase.CheckDeposits = CheckDeposits;
|
|
617
|
+
Increase.Lockboxes = Lockboxes;
|
|
618
|
+
Increase.InboundMailItems = InboundMailItems;
|
|
619
|
+
Increase.RoutingNumbers = RoutingNumbers;
|
|
620
|
+
Increase.ExternalAccounts = ExternalAccounts;
|
|
621
|
+
Increase.Entities = Entities;
|
|
622
|
+
Increase.SupplementalDocuments = SupplementalDocuments;
|
|
623
|
+
Increase.Programs = Programs;
|
|
624
|
+
Increase.AccountStatements = AccountStatements;
|
|
625
|
+
Increase.Files = Files;
|
|
626
|
+
Increase.FileLinks = FileLinks;
|
|
627
|
+
Increase.Documents = Documents;
|
|
628
|
+
Increase.Exports = Exports;
|
|
629
|
+
Increase.Events = Events;
|
|
630
|
+
Increase.EventSubscriptions = EventSubscriptions;
|
|
631
|
+
Increase.RealTimeDecisions = RealTimeDecisions;
|
|
632
|
+
Increase.BookkeepingAccounts = BookkeepingAccounts;
|
|
633
|
+
Increase.BookkeepingEntrySets = BookkeepingEntrySets;
|
|
634
|
+
Increase.BookkeepingEntries = BookkeepingEntries;
|
|
635
|
+
Increase.Groups = Groups;
|
|
636
|
+
Increase.OAuthApplications = OAuthApplications;
|
|
637
|
+
Increase.OAuthConnections = OAuthConnections;
|
|
638
|
+
Increase.OAuthTokens = OAuthTokens;
|
|
639
|
+
Increase.IntrafiAccountEnrollments = IntrafiAccountEnrollments;
|
|
640
|
+
Increase.IntrafiBalances = IntrafiBalances;
|
|
641
|
+
Increase.IntrafiExclusions = IntrafiExclusions;
|
|
642
|
+
Increase.CardTokens = CardTokens;
|
|
643
|
+
Increase.CardPushTransfers = CardPushTransfers;
|
|
644
|
+
Increase.CardValidations = CardValidations;
|
|
645
|
+
Increase.Simulations = Simulations;
|
|
646
|
+
//# sourceMappingURL=client.mjs.map
|