@lightsparkdev/grid 0.2.1
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/.DS_Store +0 -0
- package/CHANGELOG.md +85 -0
- package/LICENSE +201 -0
- package/README.md +516 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +302 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +302 -0
- package/client.d.ts.map +1 -0
- package/client.js +588 -0
- package/client.js.map +1 -0
- package/client.mjs +584 -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 +2055 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +2055 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +857 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +787 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +58 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +58 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +109 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +103 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +86 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/.DS_Store +0 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/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 +147 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/.DS_Store +0 -0
- package/resources/config.d.mts +130 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +130 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +47 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +43 -0
- package/resources/config.mjs.map +1 -0
- package/resources/customers/bulk.d.mts +170 -0
- package/resources/customers/bulk.d.mts.map +1 -0
- package/resources/customers/bulk.d.ts +170 -0
- package/resources/customers/bulk.d.ts.map +1 -0
- package/resources/customers/bulk.js +103 -0
- package/resources/customers/bulk.js.map +1 -0
- package/resources/customers/bulk.mjs +99 -0
- package/resources/customers/bulk.mjs.map +1 -0
- package/resources/customers/customers.d.mts +1238 -0
- package/resources/customers/customers.d.mts.map +1 -0
- package/resources/customers/customers.d.ts +1238 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +130 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +125 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/external-accounts.d.mts +461 -0
- package/resources/customers/external-accounts.d.mts.map +1 -0
- package/resources/customers/external-accounts.d.ts +461 -0
- package/resources/customers/external-accounts.d.ts.map +1 -0
- package/resources/customers/external-accounts.js +83 -0
- package/resources/customers/external-accounts.js.map +1 -0
- package/resources/customers/external-accounts.mjs +79 -0
- package/resources/customers/external-accounts.mjs.map +1 -0
- package/resources/customers/index.d.mts +4 -0
- package/resources/customers/index.d.mts.map +1 -0
- package/resources/customers/index.d.ts +4 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +11 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +5 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers.d.mts +2 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +2 -0
- package/resources/customers.d.ts.map +1 -0
- package/resources/customers.js +6 -0
- package/resources/customers.js.map +1 -0
- package/resources/customers.mjs +3 -0
- package/resources/customers.mjs.map +1 -0
- package/resources/exchange-rates.d.mts +101 -0
- package/resources/exchange-rates.d.mts.map +1 -0
- package/resources/exchange-rates.d.ts +101 -0
- package/resources/exchange-rates.d.ts.map +1 -0
- package/resources/exchange-rates.js +23 -0
- package/resources/exchange-rates.js.map +1 -0
- package/resources/exchange-rates.mjs +19 -0
- package/resources/exchange-rates.mjs.map +1 -0
- package/resources/index.d.mts +16 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +16 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +35 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +17 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invitations.d.mts +166 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +166 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +83 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +79 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/plaid.d.mts +101 -0
- package/resources/plaid.d.mts.map +1 -0
- package/resources/plaid.d.ts +101 -0
- package/resources/plaid.d.ts.map +1 -0
- package/resources/plaid.js +64 -0
- package/resources/plaid.js.map +1 -0
- package/resources/plaid.mjs +60 -0
- package/resources/plaid.mjs.map +1 -0
- package/resources/platform/external-accounts.d.mts +111 -0
- package/resources/platform/external-accounts.d.mts.map +1 -0
- package/resources/platform/external-accounts.d.ts +111 -0
- package/resources/platform/external-accounts.d.ts.map +1 -0
- package/resources/platform/external-accounts.js +74 -0
- package/resources/platform/external-accounts.js.map +1 -0
- package/resources/platform/external-accounts.mjs +70 -0
- package/resources/platform/external-accounts.mjs.map +1 -0
- package/resources/platform/index.d.mts +3 -0
- package/resources/platform/index.d.mts.map +1 -0
- package/resources/platform/index.d.ts +3 -0
- package/resources/platform/index.d.ts.map +1 -0
- package/resources/platform/index.js +9 -0
- package/resources/platform/index.js.map +1 -0
- package/resources/platform/index.mjs +4 -0
- package/resources/platform/index.mjs.map +1 -0
- package/resources/platform/platform.d.mts +41 -0
- package/resources/platform/platform.d.mts.map +1 -0
- package/resources/platform/platform.d.ts +41 -0
- package/resources/platform/platform.d.ts.map +1 -0
- package/resources/platform/platform.js +34 -0
- package/resources/platform/platform.js.map +1 -0
- package/resources/platform/platform.mjs +29 -0
- package/resources/platform/platform.mjs.map +1 -0
- package/resources/platform.d.mts +2 -0
- package/resources/platform.d.mts.map +1 -0
- package/resources/platform.d.ts +2 -0
- package/resources/platform.d.ts.map +1 -0
- package/resources/platform.js +6 -0
- package/resources/platform.js.map +1 -0
- package/resources/platform.mjs +3 -0
- package/resources/platform.mjs.map +1 -0
- package/resources/quotes.d.mts +580 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +580 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +122 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +118 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/receiver.d.mts +100 -0
- package/resources/receiver.d.mts.map +1 -0
- package/resources/receiver.d.ts +100 -0
- package/resources/receiver.d.ts.map +1 -0
- package/resources/receiver.js +27 -0
- package/resources/receiver.js.map +1 -0
- package/resources/receiver.mjs +23 -0
- package/resources/receiver.mjs.map +1 -0
- package/resources/sandbox/index.d.mts +4 -0
- package/resources/sandbox/index.d.mts.map +1 -0
- package/resources/sandbox/index.d.ts +4 -0
- package/resources/sandbox/index.d.ts.map +1 -0
- package/resources/sandbox/index.js +11 -0
- package/resources/sandbox/index.js.map +1 -0
- package/resources/sandbox/index.mjs +5 -0
- package/resources/sandbox/index.mjs.map +1 -0
- package/resources/sandbox/internal-accounts.d.mts +61 -0
- package/resources/sandbox/internal-accounts.d.mts.map +1 -0
- package/resources/sandbox/internal-accounts.d.ts +61 -0
- package/resources/sandbox/internal-accounts.d.ts.map +1 -0
- package/resources/sandbox/internal-accounts.js +29 -0
- package/resources/sandbox/internal-accounts.js.map +1 -0
- package/resources/sandbox/internal-accounts.mjs +25 -0
- package/resources/sandbox/internal-accounts.mjs.map +1 -0
- package/resources/sandbox/sandbox.d.mts +116 -0
- package/resources/sandbox/sandbox.d.mts.map +1 -0
- package/resources/sandbox/sandbox.d.ts +116 -0
- package/resources/sandbox/sandbox.d.ts.map +1 -0
- package/resources/sandbox/sandbox.js +37 -0
- package/resources/sandbox/sandbox.js.map +1 -0
- package/resources/sandbox/sandbox.mjs +32 -0
- package/resources/sandbox/sandbox.mjs.map +1 -0
- package/resources/sandbox/uma.d.mts +48 -0
- package/resources/sandbox/uma.d.mts.map +1 -0
- package/resources/sandbox/uma.d.ts +48 -0
- package/resources/sandbox/uma.d.ts.map +1 -0
- package/resources/sandbox/uma.js +27 -0
- package/resources/sandbox/uma.js.map +1 -0
- package/resources/sandbox/uma.mjs +23 -0
- package/resources/sandbox/uma.mjs.map +1 -0
- package/resources/sandbox.d.mts +2 -0
- package/resources/sandbox.d.mts.map +1 -0
- package/resources/sandbox.d.ts +2 -0
- package/resources/sandbox.d.ts.map +1 -0
- package/resources/sandbox.js +6 -0
- package/resources/sandbox.js.map +1 -0
- package/resources/sandbox.mjs +3 -0
- package/resources/sandbox.mjs.map +1 -0
- package/resources/tokens.d.mts +131 -0
- package/resources/tokens.d.mts.map +1 -0
- package/resources/tokens.d.ts +131 -0
- package/resources/tokens.d.ts.map +1 -0
- package/resources/tokens.js +67 -0
- package/resources/tokens.js.map +1 -0
- package/resources/tokens.mjs +63 -0
- package/resources/tokens.mjs.map +1 -0
- package/resources/transactions.d.mts +226 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +226 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +71 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +67 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/transfer-in.d.mts +154 -0
- package/resources/transfer-in.d.mts.map +1 -0
- package/resources/transfer-in.d.ts +154 -0
- package/resources/transfer-in.d.ts.map +1 -0
- package/resources/transfer-in.js +42 -0
- package/resources/transfer-in.js.map +1 -0
- package/resources/transfer-in.mjs +38 -0
- package/resources/transfer-in.mjs.map +1 -0
- package/resources/transfer-out.d.mts +70 -0
- package/resources/transfer-out.d.mts.map +1 -0
- package/resources/transfer-out.d.ts +70 -0
- package/resources/transfer-out.d.ts.map +1 -0
- package/resources/transfer-out.js +40 -0
- package/resources/transfer-out.js.map +1 -0
- package/resources/transfer-out.mjs +36 -0
- package/resources/transfer-out.mjs.map +1 -0
- package/resources/uma-providers.d.mts +70 -0
- package/resources/uma-providers.d.mts.map +1 -0
- package/resources/uma-providers.d.ts +70 -0
- package/resources/uma-providers.d.ts.map +1 -0
- package/resources/uma-providers.js +21 -0
- package/resources/uma-providers.js.map +1 -0
- package/resources/uma-providers.mjs +17 -0
- package/resources/uma-providers.mjs.map +1 -0
- package/resources/webhooks.d.mts +27 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +27 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +15 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/.DS_Store +0 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1111 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +2936 -0
- package/src/core/pagination.ts +173 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +76 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/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/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/config.ts +178 -0
- package/src/resources/customers/bulk.ts +201 -0
- package/src/resources/customers/customers.ts +1687 -0
- package/src/resources/customers/external-accounts.ts +630 -0
- package/src/resources/customers/index.ts +51 -0
- package/src/resources/customers.ts +3 -0
- package/src/resources/exchange-rates.ts +127 -0
- package/src/resources/index.ts +104 -0
- package/src/resources/invitations.ts +207 -0
- package/src/resources/plaid.ts +128 -0
- package/src/resources/platform/external-accounts.ts +136 -0
- package/src/resources/platform/index.ts +13 -0
- package/src/resources/platform/platform.ts +70 -0
- package/src/resources/platform.ts +3 -0
- package/src/resources/quotes.ts +726 -0
- package/src/resources/receiver.ts +139 -0
- package/src/resources/sandbox/index.ts +10 -0
- package/src/resources/sandbox/internal-accounts.ts +82 -0
- package/src/resources/sandbox/sandbox.ts +159 -0
- package/src/resources/sandbox/uma.ts +61 -0
- package/src/resources/sandbox.ts +3 -0
- package/src/resources/tokens.ts +176 -0
- package/src/resources/transactions.ts +312 -0
- package/src/resources/transfer-in.ts +193 -0
- package/src/resources/transfer-out.ts +90 -0
- package/src/resources/uma-providers.ts +98 -0
- package/src/resources/webhooks.ts +35 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,4CAgBqB;AAfnB,sGAAA,SAAS,OAAA;AAgBX,4DAyB6B;AAxB3B,qHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Bulk, } from "./bulk.mjs";
|
|
3
|
+
export { Customers, } from "./customers.mjs";
|
|
4
|
+
export { ExternalAccounts, } from "./external-accounts.mjs";
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAIL;OACM,EACL,SAAS,GAeV;OACM,EACL,gBAAgB,GAwBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./customers/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as QuotesAPI from "./quotes.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class ExchangeRates extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve cached exchange rates for currency corridors. Returns FX rates that are
|
|
8
|
+
* cached for approximately 5 minutes. Rates include fees specific to your platform
|
|
9
|
+
* for authenticated requests.
|
|
10
|
+
*
|
|
11
|
+
* **Filtering Options:**
|
|
12
|
+
*
|
|
13
|
+
* - Filter by source currency to get all available destination corridors
|
|
14
|
+
* - Filter by specific destination currency or currencies
|
|
15
|
+
* - Provide a sending amount to get calculated receiving amounts
|
|
16
|
+
*/
|
|
17
|
+
list(query?: ExchangeRateListParams | null | undefined, options?: RequestOptions): APIPromise<ExchangeRateListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface ExchangeRateListResponse {
|
|
20
|
+
/**
|
|
21
|
+
* List of exchange rates matching the filter criteria
|
|
22
|
+
*/
|
|
23
|
+
data: Array<ExchangeRateListResponse.Data>;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ExchangeRateListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Exchange rate information for a currency corridor
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
destinationCurrency: QuotesAPI.Currency;
|
|
31
|
+
/**
|
|
32
|
+
* The payment rail used for the destination (e.g., UPI, SEPA_INSTANT,
|
|
33
|
+
* MOBILE_MONEY, FASTER_PAYMENTS)
|
|
34
|
+
*/
|
|
35
|
+
destinationPaymentRail: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of sending currency units per receiving currency unit.
|
|
38
|
+
*/
|
|
39
|
+
exchangeRate: number;
|
|
40
|
+
/**
|
|
41
|
+
* Fees associated with an exchange rate
|
|
42
|
+
*/
|
|
43
|
+
fees: Data.Fees;
|
|
44
|
+
/**
|
|
45
|
+
* The maximum supported sending amount in the smallest unit of the source
|
|
46
|
+
* currency.
|
|
47
|
+
*/
|
|
48
|
+
maxSendingAmount: number;
|
|
49
|
+
/**
|
|
50
|
+
* The minimum supported sending amount in the smallest unit of the source
|
|
51
|
+
* currency.
|
|
52
|
+
*/
|
|
53
|
+
minSendingAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
* The receiving amount in the smallest unit of the destination currency
|
|
56
|
+
*/
|
|
57
|
+
receivingAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
* The sending amount in the smallest unit of the source currency (e.g., cents for
|
|
60
|
+
* USD). Echoed back from the request if provided.
|
|
61
|
+
*/
|
|
62
|
+
sendingAmount: number;
|
|
63
|
+
sourceCurrency: QuotesAPI.Currency;
|
|
64
|
+
/**
|
|
65
|
+
* Timestamp when this exchange rate was last refreshed
|
|
66
|
+
*/
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
}
|
|
69
|
+
namespace Data {
|
|
70
|
+
/**
|
|
71
|
+
* Fees associated with an exchange rate
|
|
72
|
+
*/
|
|
73
|
+
interface Fees {
|
|
74
|
+
/**
|
|
75
|
+
* Fixed fee in the smallest unit of the sending currency (e.g., cents for USD)
|
|
76
|
+
*/
|
|
77
|
+
fixed?: number;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export interface ExchangeRateListParams {
|
|
82
|
+
/**
|
|
83
|
+
* Filter by destination currency code(s). Can be repeated for multiple currencies
|
|
84
|
+
* (e.g., &destinationCurrency=INR&destinationCurrency=GBP)
|
|
85
|
+
*/
|
|
86
|
+
destinationCurrency?: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Sending amount in the smallest unit of the source currency (e.g., cents for
|
|
89
|
+
* USD). If no amount is provided, the default is 10000 in the sending currency
|
|
90
|
+
* smallest unit.
|
|
91
|
+
*/
|
|
92
|
+
sendingAmount?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Filter by source currency code (e.g., USD)
|
|
95
|
+
*/
|
|
96
|
+
sourceCurrency?: string;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace ExchangeRates {
|
|
99
|
+
export { type ExchangeRateListResponse as ExchangeRateListResponse, type ExchangeRateListParams as ExchangeRateListParams, };
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=exchange-rates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-rates.d.mts","sourceRoot":"","sources":["../src/resources/exchange-rates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,IAAI;QACnB,mBAAmB,EAAE,SAAS,CAAC,QAAQ,CAAC;QAExC;;;WAGG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAC;QAEnC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as QuotesAPI from "./quotes.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class ExchangeRates extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve cached exchange rates for currency corridors. Returns FX rates that are
|
|
8
|
+
* cached for approximately 5 minutes. Rates include fees specific to your platform
|
|
9
|
+
* for authenticated requests.
|
|
10
|
+
*
|
|
11
|
+
* **Filtering Options:**
|
|
12
|
+
*
|
|
13
|
+
* - Filter by source currency to get all available destination corridors
|
|
14
|
+
* - Filter by specific destination currency or currencies
|
|
15
|
+
* - Provide a sending amount to get calculated receiving amounts
|
|
16
|
+
*/
|
|
17
|
+
list(query?: ExchangeRateListParams | null | undefined, options?: RequestOptions): APIPromise<ExchangeRateListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface ExchangeRateListResponse {
|
|
20
|
+
/**
|
|
21
|
+
* List of exchange rates matching the filter criteria
|
|
22
|
+
*/
|
|
23
|
+
data: Array<ExchangeRateListResponse.Data>;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ExchangeRateListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Exchange rate information for a currency corridor
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
destinationCurrency: QuotesAPI.Currency;
|
|
31
|
+
/**
|
|
32
|
+
* The payment rail used for the destination (e.g., UPI, SEPA_INSTANT,
|
|
33
|
+
* MOBILE_MONEY, FASTER_PAYMENTS)
|
|
34
|
+
*/
|
|
35
|
+
destinationPaymentRail: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of sending currency units per receiving currency unit.
|
|
38
|
+
*/
|
|
39
|
+
exchangeRate: number;
|
|
40
|
+
/**
|
|
41
|
+
* Fees associated with an exchange rate
|
|
42
|
+
*/
|
|
43
|
+
fees: Data.Fees;
|
|
44
|
+
/**
|
|
45
|
+
* The maximum supported sending amount in the smallest unit of the source
|
|
46
|
+
* currency.
|
|
47
|
+
*/
|
|
48
|
+
maxSendingAmount: number;
|
|
49
|
+
/**
|
|
50
|
+
* The minimum supported sending amount in the smallest unit of the source
|
|
51
|
+
* currency.
|
|
52
|
+
*/
|
|
53
|
+
minSendingAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
* The receiving amount in the smallest unit of the destination currency
|
|
56
|
+
*/
|
|
57
|
+
receivingAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
* The sending amount in the smallest unit of the source currency (e.g., cents for
|
|
60
|
+
* USD). Echoed back from the request if provided.
|
|
61
|
+
*/
|
|
62
|
+
sendingAmount: number;
|
|
63
|
+
sourceCurrency: QuotesAPI.Currency;
|
|
64
|
+
/**
|
|
65
|
+
* Timestamp when this exchange rate was last refreshed
|
|
66
|
+
*/
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
}
|
|
69
|
+
namespace Data {
|
|
70
|
+
/**
|
|
71
|
+
* Fees associated with an exchange rate
|
|
72
|
+
*/
|
|
73
|
+
interface Fees {
|
|
74
|
+
/**
|
|
75
|
+
* Fixed fee in the smallest unit of the sending currency (e.g., cents for USD)
|
|
76
|
+
*/
|
|
77
|
+
fixed?: number;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export interface ExchangeRateListParams {
|
|
82
|
+
/**
|
|
83
|
+
* Filter by destination currency code(s). Can be repeated for multiple currencies
|
|
84
|
+
* (e.g., &destinationCurrency=INR&destinationCurrency=GBP)
|
|
85
|
+
*/
|
|
86
|
+
destinationCurrency?: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Sending amount in the smallest unit of the source currency (e.g., cents for
|
|
89
|
+
* USD). If no amount is provided, the default is 10000 in the sending currency
|
|
90
|
+
* smallest unit.
|
|
91
|
+
*/
|
|
92
|
+
sendingAmount?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Filter by source currency code (e.g., USD)
|
|
95
|
+
*/
|
|
96
|
+
sourceCurrency?: string;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace ExchangeRates {
|
|
99
|
+
export { type ExchangeRateListResponse as ExchangeRateListResponse, type ExchangeRateListParams as ExchangeRateListParams, };
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=exchange-rates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-rates.d.ts","sourceRoot":"","sources":["../src/resources/exchange-rates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,IAAI;QACnB,mBAAmB,EAAE,SAAS,CAAC,QAAQ,CAAC;QAExC;;;WAGG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAEhB;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAC;QAEnC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExchangeRates = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class ExchangeRates extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve cached exchange rates for currency corridors. Returns FX rates that are
|
|
9
|
+
* cached for approximately 5 minutes. Rates include fees specific to your platform
|
|
10
|
+
* for authenticated requests.
|
|
11
|
+
*
|
|
12
|
+
* **Filtering Options:**
|
|
13
|
+
*
|
|
14
|
+
* - Filter by source currency to get all available destination corridors
|
|
15
|
+
* - Filter by specific destination currency or currencies
|
|
16
|
+
* - Provide a sending amount to get calculated receiving amounts
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.get('/exchange-rates', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ExchangeRates = ExchangeRates;
|
|
23
|
+
//# sourceMappingURL=exchange-rates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-rates.js","sourceRoot":"","sources":["../src/resources/exchange-rates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF;AAlBD,sCAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class ExchangeRates extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve cached exchange rates for currency corridors. Returns FX rates that are
|
|
6
|
+
* cached for approximately 5 minutes. Rates include fees specific to your platform
|
|
7
|
+
* for authenticated requests.
|
|
8
|
+
*
|
|
9
|
+
* **Filtering Options:**
|
|
10
|
+
*
|
|
11
|
+
* - Filter by source currency to get all available destination corridors
|
|
12
|
+
* - Filter by specific destination currency or currencies
|
|
13
|
+
* - Provide a sending amount to get calculated receiving amounts
|
|
14
|
+
*/
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
return this._client.get('/exchange-rates', { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=exchange-rates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-rates.mjs","sourceRoot":"","sources":["../src/resources/exchange-rates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Config, type CustomerInfoFieldName, type PlatformConfig, type PlatformCurrencyConfig, type ConfigUpdateParams, } from "./config.mjs";
|
|
2
|
+
export { Customers, type Customer, type CustomerCreate, type CustomerOneOf, type CustomerUpdate, type CustomerRetrieveResponse, type CustomerUpdateResponse, type CustomerDeleteResponse, type CustomerGetKYCLinkResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerGetKYCLinkParams, type CustomerListInternalAccountsParams, type CustomerOneovesDefaultPagination, } from "./customers/customers.mjs";
|
|
3
|
+
export { ExchangeRates, type ExchangeRateListResponse, type ExchangeRateListParams } from "./exchange-rates.mjs";
|
|
4
|
+
export { Invitations, type CurrencyAmount, type UmaInvitation, type InvitationCreateParams, type InvitationClaimParams, } from "./invitations.mjs";
|
|
5
|
+
export { Plaid, type PlaidCreateLinkTokenResponse, type PlaidCreateLinkTokenParams, type PlaidSubmitPublicTokenParams, } from "./plaid.mjs";
|
|
6
|
+
export { Platform, type PlatformListInternalAccountsResponse, type PlatformListInternalAccountsParams, } from "./platform/platform.mjs";
|
|
7
|
+
export { Quotes, type BaseDestination, type BasePaymentAccountInfo, type BaseQuoteSource, type Currency, type OutgoingRateDetails, type PaymentInstructions, type Quote, type QuoteDestinationOneOf, type QuoteSourceOneOf, type QuoteCreateParams, type QuoteListParams, type QuotesDefaultPagination, } from "./quotes.mjs";
|
|
8
|
+
export { Receiver, type CounterpartyFieldDefinition, type LookupResponse, type ReceiverLookupExternalAccountResponse, type ReceiverLookupUmaResponse, type ReceiverLookupExternalAccountParams, type ReceiverLookupUmaParams, } from "./receiver.mjs";
|
|
9
|
+
export { Sandbox, type SandboxSendFundsResponse, type SandboxSendFundsParams } from "./sandbox/sandbox.mjs";
|
|
10
|
+
export { Tokens, type APIToken, type Permission, type TokenCreateParams, type TokenListParams, type APITokensDefaultPagination, } from "./tokens.mjs";
|
|
11
|
+
export { Transactions, type BaseTransactionSource, type IncomingTransaction, type TransactionSourceOneOf, type TransactionStatus, type TransactionType, type TransactionListParams, type TransactionApproveParams, type TransactionRejectParams, } from "./transactions.mjs";
|
|
12
|
+
export { TransferIn, type BaseTransactionDestination, type Transaction, type TransferInCreateParams, type TransactionsDefaultPagination, } from "./transfer-in.mjs";
|
|
13
|
+
export { TransferOut, type TransferOutCreateParams } from "./transfer-out.mjs";
|
|
14
|
+
export { UmaProviders, type UmaProviderListResponse, type UmaProviderListParams, type UmaProviderListResponsesDefaultPagination, } from "./uma-providers.mjs";
|
|
15
|
+
export { Webhooks, type WebhookSendTestResponse } from "./webhooks.mjs";
|
|
16
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,GACxB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC7E,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,GAClC;OACM,EACL,QAAQ,EACR,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,GACxC;OACM,EACL,MAAM,EACN,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,qCAAqC,EAC1C,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,GAC7B;OACM,EAAE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OACvE,EACL,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B;OACM,EACL,UAAU,EACV,KAAK,0BAA0B,EAC/B,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,GACnC;OACM,EAAE,WAAW,EAAE,KAAK,uBAAuB,EAAE;OAC7C,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yCAAyC,GAC/C;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Config, type CustomerInfoFieldName, type PlatformConfig, type PlatformCurrencyConfig, type ConfigUpdateParams, } from "./config.js";
|
|
2
|
+
export { Customers, type Customer, type CustomerCreate, type CustomerOneOf, type CustomerUpdate, type CustomerRetrieveResponse, type CustomerUpdateResponse, type CustomerDeleteResponse, type CustomerGetKYCLinkResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerGetKYCLinkParams, type CustomerListInternalAccountsParams, type CustomerOneovesDefaultPagination, } from "./customers/customers.js";
|
|
3
|
+
export { ExchangeRates, type ExchangeRateListResponse, type ExchangeRateListParams } from "./exchange-rates.js";
|
|
4
|
+
export { Invitations, type CurrencyAmount, type UmaInvitation, type InvitationCreateParams, type InvitationClaimParams, } from "./invitations.js";
|
|
5
|
+
export { Plaid, type PlaidCreateLinkTokenResponse, type PlaidCreateLinkTokenParams, type PlaidSubmitPublicTokenParams, } from "./plaid.js";
|
|
6
|
+
export { Platform, type PlatformListInternalAccountsResponse, type PlatformListInternalAccountsParams, } from "./platform/platform.js";
|
|
7
|
+
export { Quotes, type BaseDestination, type BasePaymentAccountInfo, type BaseQuoteSource, type Currency, type OutgoingRateDetails, type PaymentInstructions, type Quote, type QuoteDestinationOneOf, type QuoteSourceOneOf, type QuoteCreateParams, type QuoteListParams, type QuotesDefaultPagination, } from "./quotes.js";
|
|
8
|
+
export { Receiver, type CounterpartyFieldDefinition, type LookupResponse, type ReceiverLookupExternalAccountResponse, type ReceiverLookupUmaResponse, type ReceiverLookupExternalAccountParams, type ReceiverLookupUmaParams, } from "./receiver.js";
|
|
9
|
+
export { Sandbox, type SandboxSendFundsResponse, type SandboxSendFundsParams } from "./sandbox/sandbox.js";
|
|
10
|
+
export { Tokens, type APIToken, type Permission, type TokenCreateParams, type TokenListParams, type APITokensDefaultPagination, } from "./tokens.js";
|
|
11
|
+
export { Transactions, type BaseTransactionSource, type IncomingTransaction, type TransactionSourceOneOf, type TransactionStatus, type TransactionType, type TransactionListParams, type TransactionApproveParams, type TransactionRejectParams, } from "./transactions.js";
|
|
12
|
+
export { TransferIn, type BaseTransactionDestination, type Transaction, type TransferInCreateParams, type TransactionsDefaultPagination, } from "./transfer-in.js";
|
|
13
|
+
export { TransferOut, type TransferOutCreateParams } from "./transfer-out.js";
|
|
14
|
+
export { UmaProviders, type UmaProviderListResponse, type UmaProviderListParams, type UmaProviderListResponsesDefaultPagination, } from "./uma-providers.js";
|
|
15
|
+
export { Webhooks, type WebhookSendTestResponse } from "./webhooks.js";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,GACxB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OAC7E,EACL,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,GAClC;OACM,EACL,QAAQ,EACR,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,GACxC;OACM,EACL,MAAM,EACN,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,qCAAqC,EAC1C,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,GAC7B;OACM,EAAE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OACvE,EACL,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B;OACM,EACL,UAAU,EACV,KAAK,0BAA0B,EAC/B,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,GACnC;OACM,EAAE,WAAW,EAAE,KAAK,uBAAuB,EAAE;OAC7C,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yCAAyC,GAC/C;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Webhooks = exports.UmaProviders = exports.TransferOut = exports.TransferIn = exports.Transactions = exports.Tokens = exports.Sandbox = exports.Receiver = exports.Quotes = exports.Platform = exports.Plaid = exports.Invitations = exports.ExchangeRates = exports.Customers = exports.Config = void 0;
|
|
5
|
+
var config_1 = require("./config.js");
|
|
6
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
7
|
+
var customers_1 = require("./customers/customers.js");
|
|
8
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
9
|
+
var exchange_rates_1 = require("./exchange-rates.js");
|
|
10
|
+
Object.defineProperty(exports, "ExchangeRates", { enumerable: true, get: function () { return exchange_rates_1.ExchangeRates; } });
|
|
11
|
+
var invitations_1 = require("./invitations.js");
|
|
12
|
+
Object.defineProperty(exports, "Invitations", { enumerable: true, get: function () { return invitations_1.Invitations; } });
|
|
13
|
+
var plaid_1 = require("./plaid.js");
|
|
14
|
+
Object.defineProperty(exports, "Plaid", { enumerable: true, get: function () { return plaid_1.Plaid; } });
|
|
15
|
+
var platform_1 = require("./platform/platform.js");
|
|
16
|
+
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return platform_1.Platform; } });
|
|
17
|
+
var quotes_1 = require("./quotes.js");
|
|
18
|
+
Object.defineProperty(exports, "Quotes", { enumerable: true, get: function () { return quotes_1.Quotes; } });
|
|
19
|
+
var receiver_1 = require("./receiver.js");
|
|
20
|
+
Object.defineProperty(exports, "Receiver", { enumerable: true, get: function () { return receiver_1.Receiver; } });
|
|
21
|
+
var sandbox_1 = require("./sandbox/sandbox.js");
|
|
22
|
+
Object.defineProperty(exports, "Sandbox", { enumerable: true, get: function () { return sandbox_1.Sandbox; } });
|
|
23
|
+
var tokens_1 = require("./tokens.js");
|
|
24
|
+
Object.defineProperty(exports, "Tokens", { enumerable: true, get: function () { return tokens_1.Tokens; } });
|
|
25
|
+
var transactions_1 = require("./transactions.js");
|
|
26
|
+
Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return transactions_1.Transactions; } });
|
|
27
|
+
var transfer_in_1 = require("./transfer-in.js");
|
|
28
|
+
Object.defineProperty(exports, "TransferIn", { enumerable: true, get: function () { return transfer_in_1.TransferIn; } });
|
|
29
|
+
var transfer_out_1 = require("./transfer-out.js");
|
|
30
|
+
Object.defineProperty(exports, "TransferOut", { enumerable: true, get: function () { return transfer_out_1.TransferOut; } });
|
|
31
|
+
var uma_providers_1 = require("./uma-providers.js");
|
|
32
|
+
Object.defineProperty(exports, "UmaProviders", { enumerable: true, get: function () { return uma_providers_1.UmaProviders; } });
|
|
33
|
+
var webhooks_1 = require("./webhooks.js");
|
|
34
|
+
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,sDAgB+B;AAf7B,sGAAA,SAAS,OAAA;AAgBX,sDAA6G;AAApG,+GAAA,aAAa,OAAA;AACtB,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,mDAI6B;AAH3B,oGAAA,QAAQ,OAAA;AAIV,sCAckB;AAbhB,gGAAA,MAAM,OAAA;AAcR,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,gDAAwG;AAA/F,kGAAA,OAAO,OAAA;AAChB,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,kDAUwB;AATtB,4GAAA,YAAY,OAAA;AAUd,gDAMuB;AALrB,yGAAA,UAAU,OAAA;AAMZ,kDAA2E;AAAlE,2GAAA,WAAW,OAAA;AACpB,oDAKyB;AAJvB,6GAAA,YAAY,OAAA;AAKd,0CAAoE;AAA3D,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Config, } from "./config.mjs";
|
|
3
|
+
export { Customers, } from "./customers/customers.mjs";
|
|
4
|
+
export { ExchangeRates } from "./exchange-rates.mjs";
|
|
5
|
+
export { Invitations, } from "./invitations.mjs";
|
|
6
|
+
export { Plaid, } from "./plaid.mjs";
|
|
7
|
+
export { Platform, } from "./platform/platform.mjs";
|
|
8
|
+
export { Quotes, } from "./quotes.mjs";
|
|
9
|
+
export { Receiver, } from "./receiver.mjs";
|
|
10
|
+
export { Sandbox } from "./sandbox/sandbox.mjs";
|
|
11
|
+
export { Tokens, } from "./tokens.mjs";
|
|
12
|
+
export { Transactions, } from "./transactions.mjs";
|
|
13
|
+
export { TransferIn, } from "./transfer-in.mjs";
|
|
14
|
+
export { TransferOut } from "./transfer-out.mjs";
|
|
15
|
+
export { UmaProviders, } from "./uma-providers.mjs";
|
|
16
|
+
export { Webhooks } from "./webhooks.mjs";
|
|
17
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EACL,SAAS,GAeV;OACM,EAAE,aAAa,EAA8D;OAC7E,EACL,WAAW,GAKZ;OACM,EACL,KAAK,GAIN;OACM,EACL,QAAQ,GAGT;OACM,EACL,MAAM,GAaP;OACM,EACL,QAAQ,GAOT;OACM,EAAE,OAAO,EAA8D;OACvE,EACL,MAAM,GAMP;OACM,EACL,YAAY,GASb;OACM,EACL,UAAU,GAKX;OACM,EAAE,WAAW,EAAgC;OAC7C,EACL,YAAY,GAIb;OACM,EAAE,QAAQ,EAAgC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as QuotesAPI from "./quotes.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Invitations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create an UMA invitation from a given platform customer.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const umaInvitation = await client.invitations.create({
|
|
12
|
+
* inviterUma: '$inviter@uma.domain',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(body: InvitationCreateParams, options?: RequestOptions): APIPromise<UmaInvitation>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve details about an UMA invitation by its invitation code.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const umaInvitation = await client.invitations.retrieve(
|
|
23
|
+
* 'invitationCode',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
retrieve(invitationCode: string, options?: RequestOptions): APIPromise<UmaInvitation>;
|
|
28
|
+
/**
|
|
29
|
+
* Cancel a pending UMA invitation. Only the inviter or platform can cancel an
|
|
30
|
+
* invitation.
|
|
31
|
+
*
|
|
32
|
+
* When an invitation is cancelled:
|
|
33
|
+
*
|
|
34
|
+
* 1. The invitation status changes from PENDING to CANCELLED
|
|
35
|
+
* 2. The invitation can no longer be claimed
|
|
36
|
+
* 3. The invitation URL will show as cancelled when accessed
|
|
37
|
+
*
|
|
38
|
+
* Only pending invitations can be cancelled. Attempting to cancel an invitation
|
|
39
|
+
* that is already claimed, expired, or cancelled will result in an error.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const umaInvitation = await client.invitations.cancel(
|
|
44
|
+
* 'invitationCode',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
cancel(invitationCode: string, options?: RequestOptions): APIPromise<UmaInvitation>;
|
|
49
|
+
/**
|
|
50
|
+
* Claim an UMA invitation by associating it with an invitee UMA address.
|
|
51
|
+
*
|
|
52
|
+
* When an invitation is successfully claimed:
|
|
53
|
+
*
|
|
54
|
+
* 1. The invitation status changes from PENDING to CLAIMED
|
|
55
|
+
* 2. The invitee UMA address is associated with the invitation
|
|
56
|
+
* 3. An INVITATION_CLAIMED webhook is triggered to notify the platform that
|
|
57
|
+
* created the invitation
|
|
58
|
+
*
|
|
59
|
+
* This endpoint allows customers to accept invitations sent to them by other UMA
|
|
60
|
+
* customers.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const umaInvitation = await client.invitations.claim(
|
|
65
|
+
* 'invitationCode',
|
|
66
|
+
* { inviteeUma: '$invitee@uma.domain' },
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
claim(invitationCode: string, body: InvitationClaimParams, options?: RequestOptions): APIPromise<UmaInvitation>;
|
|
71
|
+
}
|
|
72
|
+
export interface CurrencyAmount {
|
|
73
|
+
/**
|
|
74
|
+
* Amount in the smallest unit of the currency (e.g., cents for USD/EUR, satoshis
|
|
75
|
+
* for BTC)
|
|
76
|
+
*/
|
|
77
|
+
amount: number;
|
|
78
|
+
currency: QuotesAPI.Currency;
|
|
79
|
+
}
|
|
80
|
+
export interface UmaInvitation {
|
|
81
|
+
/**
|
|
82
|
+
* The unique code of the invitation
|
|
83
|
+
*/
|
|
84
|
+
code: string;
|
|
85
|
+
/**
|
|
86
|
+
* When the invitation was created
|
|
87
|
+
*/
|
|
88
|
+
createdAt: string;
|
|
89
|
+
/**
|
|
90
|
+
* The UMA address of the inviter
|
|
91
|
+
*/
|
|
92
|
+
inviterUma: string;
|
|
93
|
+
/**
|
|
94
|
+
* The status of the invitation
|
|
95
|
+
*/
|
|
96
|
+
status: 'PENDING' | 'CLAIMED' | 'EXPIRED' | 'CANCELLED';
|
|
97
|
+
/**
|
|
98
|
+
* The URL where this invitation can be claimed.
|
|
99
|
+
*/
|
|
100
|
+
url: string;
|
|
101
|
+
/**
|
|
102
|
+
* The amount to send to the invitee when the invitation is claimed. This is
|
|
103
|
+
* optional and if not provided, the invitee will not receive any amount. Note that
|
|
104
|
+
* the actual sending of the amount must be done by the inviter platform once the
|
|
105
|
+
* INVITATION_CLAIMED webhook is received. If the inviter platform either does not
|
|
106
|
+
* send the payment or the payment fails, the invitee will not receive this amount.
|
|
107
|
+
* This field is primarily used for display purposes on the claiming side of the
|
|
108
|
+
* invitation. This field is useful for "send-by-link" style customer flows where
|
|
109
|
+
* an inviter can send a payment simply by sharing a link without knowing the
|
|
110
|
+
* receiver's UMA address. Note that these sends can only be sender-locked, meaning
|
|
111
|
+
* that the sender will not know ahead of time how much the receiver will receive
|
|
112
|
+
* in the receiving currency.
|
|
113
|
+
*/
|
|
114
|
+
amountToSend?: CurrencyAmount;
|
|
115
|
+
/**
|
|
116
|
+
* When the invitation was claimed if it has been claimed
|
|
117
|
+
*/
|
|
118
|
+
claimedAt?: string;
|
|
119
|
+
/**
|
|
120
|
+
* When the invitation expires (if at all)
|
|
121
|
+
*/
|
|
122
|
+
expiresAt?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The inviter's first name. Will be displayed when the recipient clicks the invite
|
|
125
|
+
* link
|
|
126
|
+
*/
|
|
127
|
+
firstName?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The UMA address of the invitee
|
|
130
|
+
*/
|
|
131
|
+
inviteeUma?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface InvitationCreateParams {
|
|
134
|
+
/**
|
|
135
|
+
* The UMA address of the customer creating the invitation
|
|
136
|
+
*/
|
|
137
|
+
inviterUma: string;
|
|
138
|
+
/**
|
|
139
|
+
* An amount to send (in the smallest unit of the customer's currency) to the
|
|
140
|
+
* invitee when the invitation is claimed. This is optional and if not provided,
|
|
141
|
+
* the invitee will not receive any amount. Note that the actual sending of the
|
|
142
|
+
* amount must be done by the inviter platform once the INVITATION_CLAIMED webhook
|
|
143
|
+
* is received. If the inviter platform either does not send the payment or the
|
|
144
|
+
* payment fails, the invitee will not receive this amount. This field is primarily
|
|
145
|
+
* used for display purposes on the claiming side of the invitation.
|
|
146
|
+
*/
|
|
147
|
+
amountToSend?: number;
|
|
148
|
+
/**
|
|
149
|
+
* When the invitation expires (if at all)
|
|
150
|
+
*/
|
|
151
|
+
expiresAt?: string;
|
|
152
|
+
/**
|
|
153
|
+
* First name of the invitee to show as part of the invite
|
|
154
|
+
*/
|
|
155
|
+
firstName?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface InvitationClaimParams {
|
|
158
|
+
/**
|
|
159
|
+
* The UMA address of the customer claiming the invitation
|
|
160
|
+
*/
|
|
161
|
+
inviteeUma: string;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace Invitations {
|
|
164
|
+
export { type CurrencyAmount as CurrencyAmount, type UmaInvitation as UmaInvitation, type InvitationCreateParams as InvitationCreateParams, type InvitationClaimParams as InvitationClaimParams, };
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=invitations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invitations.d.mts","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzF;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIrF;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAInF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CACH,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC;CAG7B;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IAExD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|