@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,312 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as TransactionsAPI from './transactions';
|
|
5
|
+
import * as InvitationsAPI from './invitations';
|
|
6
|
+
import * as TransferInAPI from './transfer-in';
|
|
7
|
+
import { TransactionsDefaultPagination } from './transfer-in';
|
|
8
|
+
import { APIPromise } from '../core/api-promise';
|
|
9
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from '../core/pagination';
|
|
10
|
+
import { RequestOptions } from '../internal/request-options';
|
|
11
|
+
import { path } from '../internal/utils/path';
|
|
12
|
+
|
|
13
|
+
export class Transactions extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve detailed information about a specific transaction.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const transaction = await client.transactions.retrieve(
|
|
20
|
+
* 'transactionId',
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
retrieve(transactionID: string, options?: RequestOptions): APIPromise<TransferInAPI.Transaction> {
|
|
25
|
+
return this._client.get(path`/transactions/${transactionID}`, options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a paginated list of transactions with optional filtering. The
|
|
30
|
+
* transactions can be filtered by customer ID, platform customer ID, UMA address,
|
|
31
|
+
* date range, status, and transaction type.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* // Automatically fetches more pages as needed.
|
|
36
|
+
* for await (const transaction of client.transactions.list()) {
|
|
37
|
+
* // ...
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
list(
|
|
42
|
+
query: TransactionListParams | null | undefined = {},
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): PagePromise<TransactionsDefaultPagination, TransferInAPI.Transaction> {
|
|
45
|
+
return this._client.getAPIList('/transactions', DefaultPagination<TransferInAPI.Transaction>, {
|
|
46
|
+
query,
|
|
47
|
+
...options,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Approve a pending incoming payment that was previously acknowledged with a 202
|
|
53
|
+
* response. This endpoint allows platforms to asynchronously approve payments
|
|
54
|
+
* after async processing.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const incomingTransaction =
|
|
59
|
+
* await client.transactions.approve('transactionId');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
approve(
|
|
63
|
+
transactionID: string,
|
|
64
|
+
body: TransactionApproveParams | null | undefined = {},
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): APIPromise<IncomingTransaction> {
|
|
67
|
+
return this._client.post(path`/transactions/${transactionID}/approve`, { body, ...options });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Reject a pending incoming payment that was previously acknowledged with a 202
|
|
72
|
+
* response. This endpoint allows platforms to asynchronously reject payments after
|
|
73
|
+
* additional processing.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const incomingTransaction =
|
|
78
|
+
* await client.transactions.reject('transactionId');
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
reject(
|
|
82
|
+
transactionID: string,
|
|
83
|
+
body: TransactionRejectParams | null | undefined = {},
|
|
84
|
+
options?: RequestOptions,
|
|
85
|
+
): APIPromise<IncomingTransaction> {
|
|
86
|
+
return this._client.post(path`/transactions/${transactionID}/reject`, { body, ...options });
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface BaseTransactionSource {
|
|
91
|
+
/**
|
|
92
|
+
* Currency code for the source
|
|
93
|
+
*/
|
|
94
|
+
currency?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface IncomingTransaction extends TransferInAPI.Transaction {
|
|
98
|
+
/**
|
|
99
|
+
* Amount received in the recipient's currency
|
|
100
|
+
*/
|
|
101
|
+
receivedAmount: InvitationsAPI.CurrencyAmount;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* If the transaction failed, this field provides the reason for failure.
|
|
105
|
+
*/
|
|
106
|
+
failureReason?:
|
|
107
|
+
| 'LNURLP_FAILED'
|
|
108
|
+
| 'PAY_REQUEST_FAILED'
|
|
109
|
+
| 'PAYMENT_APPROVAL_WEBHOOK_ERROR'
|
|
110
|
+
| 'PAYMENT_APPROVAL_TIMED_OUT'
|
|
111
|
+
| 'OFFRAMP_FAILED'
|
|
112
|
+
| 'MISSING_MANDATORY_PAYEE_DATA'
|
|
113
|
+
| 'QUOTE_EXPIRED'
|
|
114
|
+
| 'QUOTE_EXECUTION_FAILED';
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Details about the rate and fees for the transaction.
|
|
118
|
+
*/
|
|
119
|
+
rateDetails?: IncomingTransaction.RateDetails;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Included for all transactions except those with "CREATED" status
|
|
123
|
+
*/
|
|
124
|
+
reconciliationInstructions?: IncomingTransaction.ReconciliationInstructions;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Source account details
|
|
128
|
+
*/
|
|
129
|
+
source?: TransactionSourceOneOf;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export namespace IncomingTransaction {
|
|
133
|
+
/**
|
|
134
|
+
* Details about the rate and fees for the transaction.
|
|
135
|
+
*/
|
|
136
|
+
export interface RateDetails {
|
|
137
|
+
/**
|
|
138
|
+
* The fixed fee charged by the Grid product to execute the quote in the smallest
|
|
139
|
+
* unit of the receiving currency (eg. cents).
|
|
140
|
+
*/
|
|
141
|
+
gridApiFixedFee: number;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The underlying multiplier from the mSATS to the receiving currency, including
|
|
145
|
+
* variable fees.
|
|
146
|
+
*/
|
|
147
|
+
gridApiMultiplier: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The variable fee amount charged by the Grid product to execute the quote in the
|
|
151
|
+
* smallest unit of the receiving currency (eg. cents). This is the receiving
|
|
152
|
+
* amount times gridApiVariableFeeRate.
|
|
153
|
+
*/
|
|
154
|
+
gridApiVariableFeeAmount: number;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The variable fee rate charged by the Grid product to execute the quote as a
|
|
158
|
+
* percentage of the receiving currency amount.
|
|
159
|
+
*/
|
|
160
|
+
gridApiVariableFeeRate: number;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Included for all transactions except those with "CREATED" status
|
|
165
|
+
*/
|
|
166
|
+
export interface ReconciliationInstructions {
|
|
167
|
+
/**
|
|
168
|
+
* Unique reference code that must be included with the payment to match it with
|
|
169
|
+
* the correct incoming transaction
|
|
170
|
+
*/
|
|
171
|
+
reference: string;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Source account details
|
|
177
|
+
*/
|
|
178
|
+
export type TransactionSourceOneOf =
|
|
179
|
+
| TransactionSourceOneOf.AccountTransactionSource
|
|
180
|
+
| TransactionSourceOneOf.UmaAddressTransactionSource;
|
|
181
|
+
|
|
182
|
+
export namespace TransactionSourceOneOf {
|
|
183
|
+
/**
|
|
184
|
+
* Source account details
|
|
185
|
+
*/
|
|
186
|
+
export interface AccountTransactionSource extends TransactionsAPI.BaseTransactionSource {
|
|
187
|
+
/**
|
|
188
|
+
* Source account identifier
|
|
189
|
+
*/
|
|
190
|
+
accountId: string;
|
|
191
|
+
|
|
192
|
+
sourceType: 'ACCOUNT';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* UMA address source details
|
|
197
|
+
*/
|
|
198
|
+
export interface UmaAddressTransactionSource extends TransactionsAPI.BaseTransactionSource {
|
|
199
|
+
sourceType: 'UMA_ADDRESS';
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* UMA address of the sender
|
|
203
|
+
*/
|
|
204
|
+
umaAddress: string;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Status of a payment transaction
|
|
210
|
+
*/
|
|
211
|
+
export type TransactionStatus =
|
|
212
|
+
| 'CREATED'
|
|
213
|
+
| 'PENDING'
|
|
214
|
+
| 'PROCESSING'
|
|
215
|
+
| 'COMPLETED'
|
|
216
|
+
| 'REJECTED'
|
|
217
|
+
| 'FAILED'
|
|
218
|
+
| 'REFUNDED'
|
|
219
|
+
| 'EXPIRED';
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Type of transaction (incoming payment or outgoing payment)
|
|
223
|
+
*/
|
|
224
|
+
export type TransactionType = 'INCOMING' | 'OUTGOING';
|
|
225
|
+
|
|
226
|
+
export interface TransactionListParams extends DefaultPaginationParams {
|
|
227
|
+
/**
|
|
228
|
+
* Filter by system customer ID
|
|
229
|
+
*/
|
|
230
|
+
customerId?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Filter by end date (inclusive) in ISO 8601 format
|
|
234
|
+
*/
|
|
235
|
+
endDate?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Maximum number of results to return (default 20, max 100)
|
|
239
|
+
*/
|
|
240
|
+
limit?: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Filter by platform-specific customer ID
|
|
244
|
+
*/
|
|
245
|
+
platformCustomerId?: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Filter by receiver account identifier
|
|
249
|
+
*/
|
|
250
|
+
receiverAccountIdentifier?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Filter by reference
|
|
254
|
+
*/
|
|
255
|
+
reference?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Filter by sender account identifier
|
|
259
|
+
*/
|
|
260
|
+
senderAccountIdentifier?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Order to sort results in
|
|
264
|
+
*/
|
|
265
|
+
sortOrder?: 'asc' | 'desc';
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Filter by start date (inclusive) in ISO 8601 format
|
|
269
|
+
*/
|
|
270
|
+
startDate?: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Filter by transaction status
|
|
274
|
+
*/
|
|
275
|
+
status?: TransactionStatus;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Filter by transaction type
|
|
279
|
+
*/
|
|
280
|
+
type?: TransactionType;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface TransactionApproveParams {
|
|
284
|
+
/**
|
|
285
|
+
* Information about the recipient, provided by the platform if requested in the
|
|
286
|
+
* original webhook via `requestedReceiverCustomerInfoFields`.
|
|
287
|
+
*/
|
|
288
|
+
receiverCustomerInfo?: { [key: string]: unknown };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface TransactionRejectParams {
|
|
292
|
+
/**
|
|
293
|
+
* Optional reason for rejecting the payment. This is just for debugging purposes
|
|
294
|
+
* or can be used for a platform's own purposes.
|
|
295
|
+
*/
|
|
296
|
+
reason?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export declare namespace Transactions {
|
|
300
|
+
export {
|
|
301
|
+
type BaseTransactionSource as BaseTransactionSource,
|
|
302
|
+
type IncomingTransaction as IncomingTransaction,
|
|
303
|
+
type TransactionSourceOneOf as TransactionSourceOneOf,
|
|
304
|
+
type TransactionStatus as TransactionStatus,
|
|
305
|
+
type TransactionType as TransactionType,
|
|
306
|
+
type TransactionListParams as TransactionListParams,
|
|
307
|
+
type TransactionApproveParams as TransactionApproveParams,
|
|
308
|
+
type TransactionRejectParams as TransactionRejectParams,
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export { type TransactionsDefaultPagination };
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as TransferInAPI from './transfer-in';
|
|
5
|
+
import * as TransactionsAPI from './transactions';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { DefaultPagination } from '../core/pagination';
|
|
8
|
+
import { buildHeaders } from '../internal/headers';
|
|
9
|
+
import { RequestOptions } from '../internal/request-options';
|
|
10
|
+
|
|
11
|
+
export class TransferIn extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Transfer funds from an external account to an internal account for a specific
|
|
14
|
+
* customer. This endpoint should only be used for external account sources with
|
|
15
|
+
* pull functionality (e.g. ACH Pull). Otherwise, use the paymentInstructions on
|
|
16
|
+
* the internal account to deposit funds.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const transaction = await client.transferIn.create({
|
|
21
|
+
* destination: {
|
|
22
|
+
* accountId:
|
|
23
|
+
* 'InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123',
|
|
24
|
+
* },
|
|
25
|
+
* source: {
|
|
26
|
+
* accountId:
|
|
27
|
+
* 'ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965',
|
|
28
|
+
* },
|
|
29
|
+
* amount: 12550,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(params: TransferInCreateParams, options?: RequestOptions): APIPromise<Transaction> {
|
|
34
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
35
|
+
return this._client.post('/transfer-in', {
|
|
36
|
+
body,
|
|
37
|
+
...options,
|
|
38
|
+
headers: buildHeaders([
|
|
39
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type TransactionsDefaultPagination = DefaultPagination<Transaction>;
|
|
47
|
+
|
|
48
|
+
export interface BaseTransactionDestination {
|
|
49
|
+
/**
|
|
50
|
+
* Currency code for the destination
|
|
51
|
+
*/
|
|
52
|
+
currency?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Transaction {
|
|
56
|
+
/**
|
|
57
|
+
* Unique identifier for the transaction
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* System ID of the customer (sender for outgoing, recipient for incoming)
|
|
63
|
+
*/
|
|
64
|
+
customerId: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Destination account details
|
|
68
|
+
*/
|
|
69
|
+
destination: Transaction.AccountTransactionDestination | Transaction.UmaAddressTransactionDestination;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Platform-specific ID of the customer (sender for outgoing, recipient for
|
|
73
|
+
* incoming)
|
|
74
|
+
*/
|
|
75
|
+
platformCustomerId: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Status of a payment transaction
|
|
79
|
+
*/
|
|
80
|
+
status: TransactionsAPI.TransactionStatus;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Type of transaction (incoming payment or outgoing payment)
|
|
84
|
+
*/
|
|
85
|
+
type: TransactionsAPI.TransactionType;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Additional information about the counterparty, if available and relevant to the
|
|
89
|
+
* transaction and platform. Only applicable for transactions to/from UMA
|
|
90
|
+
* addresses.
|
|
91
|
+
*/
|
|
92
|
+
counterpartyInformation?: { [key: string]: unknown };
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* When the transaction was created
|
|
96
|
+
*/
|
|
97
|
+
createdAt?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Optional memo or description for the payment
|
|
101
|
+
*/
|
|
102
|
+
description?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* When the payment was or will be settled
|
|
106
|
+
*/
|
|
107
|
+
settledAt?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* When the transaction was last updated
|
|
111
|
+
*/
|
|
112
|
+
updatedAt?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export namespace Transaction {
|
|
116
|
+
/**
|
|
117
|
+
* Destination account details
|
|
118
|
+
*/
|
|
119
|
+
export interface AccountTransactionDestination extends TransferInAPI.BaseTransactionDestination {
|
|
120
|
+
/**
|
|
121
|
+
* Destination account identifier
|
|
122
|
+
*/
|
|
123
|
+
accountId: string;
|
|
124
|
+
|
|
125
|
+
destinationType: 'ACCOUNT';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* UMA address destination details
|
|
130
|
+
*/
|
|
131
|
+
export interface UmaAddressTransactionDestination extends TransferInAPI.BaseTransactionDestination {
|
|
132
|
+
destinationType: 'UMA_ADDRESS';
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* UMA address of the recipient
|
|
136
|
+
*/
|
|
137
|
+
umaAddress: string;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface TransferInCreateParams {
|
|
142
|
+
/**
|
|
143
|
+
* Body param: Destination internal account details
|
|
144
|
+
*/
|
|
145
|
+
destination: TransferInCreateParams.Destination;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Body param: Source external account details
|
|
149
|
+
*/
|
|
150
|
+
source: TransferInCreateParams.Source;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Body param: Amount in the smallest unit of the currency (e.g., cents for
|
|
154
|
+
* USD/EUR, satoshis for BTC)
|
|
155
|
+
*/
|
|
156
|
+
amount?: number;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Header param: A unique identifier for the request. If the same key is sent
|
|
160
|
+
* multiple times, the server will return the same response as the first request.
|
|
161
|
+
*/
|
|
162
|
+
'Idempotency-Key'?: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export namespace TransferInCreateParams {
|
|
166
|
+
/**
|
|
167
|
+
* Destination internal account details
|
|
168
|
+
*/
|
|
169
|
+
export interface Destination {
|
|
170
|
+
/**
|
|
171
|
+
* Reference to an internal account ID
|
|
172
|
+
*/
|
|
173
|
+
accountId: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Source external account details
|
|
178
|
+
*/
|
|
179
|
+
export interface Source {
|
|
180
|
+
/**
|
|
181
|
+
* Reference to an external account ID
|
|
182
|
+
*/
|
|
183
|
+
accountId: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export declare namespace TransferIn {
|
|
188
|
+
export {
|
|
189
|
+
type BaseTransactionDestination as BaseTransactionDestination,
|
|
190
|
+
type Transaction as Transaction,
|
|
191
|
+
type TransferInCreateParams as TransferInCreateParams,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as TransferInAPI from './transfer-in';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class TransferOut extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Transfer funds from an internal account to an external account for a specific
|
|
12
|
+
* customer.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const transaction = await client.transferOut.create({
|
|
17
|
+
* destination: {
|
|
18
|
+
* accountId:
|
|
19
|
+
* 'ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965',
|
|
20
|
+
* },
|
|
21
|
+
* source: {
|
|
22
|
+
* accountId:
|
|
23
|
+
* 'InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123',
|
|
24
|
+
* },
|
|
25
|
+
* amount: 12550,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(params: TransferOutCreateParams, options?: RequestOptions): APIPromise<TransferInAPI.Transaction> {
|
|
30
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
31
|
+
return this._client.post('/transfer-out', {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface TransferOutCreateParams {
|
|
43
|
+
/**
|
|
44
|
+
* Body param: Destination external account details
|
|
45
|
+
*/
|
|
46
|
+
destination: TransferOutCreateParams.Destination;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Body param: Source internal account details
|
|
50
|
+
*/
|
|
51
|
+
source: TransferOutCreateParams.Source;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Body param: Amount in the smallest unit of the currency (e.g., cents for
|
|
55
|
+
* USD/EUR, satoshis for BTC)
|
|
56
|
+
*/
|
|
57
|
+
amount?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Header param: A unique identifier for the request. If the same key is sent
|
|
61
|
+
* multiple times, the server will return the same response as the first request.
|
|
62
|
+
*/
|
|
63
|
+
'Idempotency-Key'?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace TransferOutCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* Destination external account details
|
|
69
|
+
*/
|
|
70
|
+
export interface Destination {
|
|
71
|
+
/**
|
|
72
|
+
* Reference to an external account ID
|
|
73
|
+
*/
|
|
74
|
+
accountId: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Source internal account details
|
|
79
|
+
*/
|
|
80
|
+
export interface Source {
|
|
81
|
+
/**
|
|
82
|
+
* Reference to an internal account ID
|
|
83
|
+
*/
|
|
84
|
+
accountId: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare namespace TransferOut {
|
|
89
|
+
export { type TransferOutCreateParams as TransferOutCreateParams };
|
|
90
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as QuotesAPI from './quotes';
|
|
5
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class UmaProviders extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a list of available Counterparty Providers. The response includes basic
|
|
11
|
+
* information about each provider, such as its UMA address, name, and supported
|
|
12
|
+
* currencies.
|
|
13
|
+
*/
|
|
14
|
+
list(
|
|
15
|
+
query: UmaProviderListParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): PagePromise<UmaProviderListResponsesDefaultPagination, UmaProviderListResponse> {
|
|
18
|
+
return this._client.getAPIList('/uma-providers', DefaultPagination<UmaProviderListResponse>, {
|
|
19
|
+
query,
|
|
20
|
+
...options,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type UmaProviderListResponsesDefaultPagination = DefaultPagination<UmaProviderListResponse>;
|
|
26
|
+
|
|
27
|
+
export interface UmaProviderListResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Whether this UMA Provider is on your allow list
|
|
30
|
+
*/
|
|
31
|
+
allowListStatus?: boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Domain this VASP uses for UMA addresses
|
|
35
|
+
*/
|
|
36
|
+
domain?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Legal Entity Identifier for the UMA Provider
|
|
40
|
+
*/
|
|
41
|
+
lei?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Logo URL for the VASP
|
|
45
|
+
*/
|
|
46
|
+
logoUrl?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Name of the UMA Provider
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* List of currencies supported by this UMA Provider
|
|
55
|
+
*/
|
|
56
|
+
supportedCurrencies?: Array<QuotesAPI.Currency>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Region(s) this UMA Provider operates in
|
|
60
|
+
*/
|
|
61
|
+
supportedRegions?: Array<string>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface UmaProviderListParams extends DefaultPaginationParams {
|
|
65
|
+
/**
|
|
66
|
+
* The alpha-2 representation of a country, as defined by the ISO 3166-1 standard.
|
|
67
|
+
*/
|
|
68
|
+
countryCode?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The ISO 4217 currency code to filter providers by supported currency.
|
|
72
|
+
*/
|
|
73
|
+
currencyCode?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether to include providers which are not on your allowlist in the response. By
|
|
77
|
+
* default the response will include blocked providers.
|
|
78
|
+
*/
|
|
79
|
+
hasBlockedProviders?: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Maximum number of results to return (default 20, max 100)
|
|
83
|
+
*/
|
|
84
|
+
limit?: number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Order to sort results in
|
|
88
|
+
*/
|
|
89
|
+
sortOrder?: 'asc' | 'desc';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare namespace UmaProviders {
|
|
93
|
+
export {
|
|
94
|
+
type UmaProviderListResponse as UmaProviderListResponse,
|
|
95
|
+
type UmaProviderListResponsesDefaultPagination as UmaProviderListResponsesDefaultPagination,
|
|
96
|
+
type UmaProviderListParams as UmaProviderListParams,
|
|
97
|
+
};
|
|
98
|
+
}
|