@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,139 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as ConfigAPI from './config';
|
|
5
|
+
import * as QuotesAPI from './quotes';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Receiver extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Lookup an external account by ID to determine supported currencies and exchange
|
|
13
|
+
* rates. This endpoint helps platforms determine what currencies they can send to
|
|
14
|
+
* a given external account, along with the current estimated exchange rates and
|
|
15
|
+
* minimum and maximum amounts that can be sent.
|
|
16
|
+
*/
|
|
17
|
+
lookupExternalAccount(
|
|
18
|
+
accountID: string,
|
|
19
|
+
query: ReceiverLookupExternalAccountParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<ReceiverLookupExternalAccountResponse> {
|
|
22
|
+
return this._client.get(path`/receiver/external-account/${accountID}`, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Lookup a receiving UMA address to determine supported currencies and exchange
|
|
27
|
+
* rates. This endpoint helps platforms determine what currencies they can send to
|
|
28
|
+
* a given UMA address.
|
|
29
|
+
*/
|
|
30
|
+
lookupUma(
|
|
31
|
+
receiverUmaAddress: string,
|
|
32
|
+
query: ReceiverLookupUmaParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<ReceiverLookupUmaResponse> {
|
|
35
|
+
return this._client.get(path`/receiver/uma/${receiverUmaAddress}`, { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CounterpartyFieldDefinition {
|
|
40
|
+
/**
|
|
41
|
+
* Whether the field is mandatory
|
|
42
|
+
*/
|
|
43
|
+
mandatory: boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Name of a type of field containing info about a platform's customer or
|
|
47
|
+
* counterparty customer.
|
|
48
|
+
*/
|
|
49
|
+
name: ConfigAPI.CustomerInfoFieldName;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface LookupResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier for the lookup. Needed in the subsequent create quote request.
|
|
55
|
+
*/
|
|
56
|
+
lookupId: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* List of currencies supported by the receiving account
|
|
60
|
+
*/
|
|
61
|
+
supportedCurrencies: Array<LookupResponse.SupportedCurrency>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Fields required by the receiving institution about the payer before payment can
|
|
65
|
+
* be completed
|
|
66
|
+
*/
|
|
67
|
+
requiredPayerDataFields?: Array<CounterpartyFieldDefinition>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export namespace LookupResponse {
|
|
71
|
+
export interface SupportedCurrency {
|
|
72
|
+
currency: QuotesAPI.Currency;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* An estimated exchange rate from the sender's currency to this currency. This is
|
|
76
|
+
* not a locked rate and is subject to change when calling the quotes endpoint.
|
|
77
|
+
*/
|
|
78
|
+
estimatedExchangeRate: number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The maximum amount that can be received in this currency.
|
|
82
|
+
*/
|
|
83
|
+
max: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The minimum amount that can be received in this currency.
|
|
87
|
+
*/
|
|
88
|
+
min: number;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface ReceiverLookupExternalAccountResponse extends LookupResponse {
|
|
93
|
+
/**
|
|
94
|
+
* The external account ID that was looked up
|
|
95
|
+
*/
|
|
96
|
+
accountId: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface ReceiverLookupUmaResponse extends LookupResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The UMA address that was looked up
|
|
102
|
+
*/
|
|
103
|
+
receiverUmaAddress: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface ReceiverLookupExternalAccountParams {
|
|
107
|
+
/**
|
|
108
|
+
* System ID of the sender (optional if senderUmaAddress is provided)
|
|
109
|
+
*/
|
|
110
|
+
customerId?: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* UMA address of the sender (optional if customerId is provided)
|
|
114
|
+
*/
|
|
115
|
+
senderUmaAddress?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface ReceiverLookupUmaParams {
|
|
119
|
+
/**
|
|
120
|
+
* System ID of the sender (optional if senderUmaAddress is provided)
|
|
121
|
+
*/
|
|
122
|
+
customerId?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* UMA address of the sender (optional if customerId is provided)
|
|
126
|
+
*/
|
|
127
|
+
senderUmaAddress?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare namespace Receiver {
|
|
131
|
+
export {
|
|
132
|
+
type CounterpartyFieldDefinition as CounterpartyFieldDefinition,
|
|
133
|
+
type LookupResponse as LookupResponse,
|
|
134
|
+
type ReceiverLookupExternalAccountResponse as ReceiverLookupExternalAccountResponse,
|
|
135
|
+
type ReceiverLookupUmaResponse as ReceiverLookupUmaResponse,
|
|
136
|
+
type ReceiverLookupExternalAccountParams as ReceiverLookupExternalAccountParams,
|
|
137
|
+
type ReceiverLookupUmaParams as ReceiverLookupUmaParams,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
InternalAccounts,
|
|
5
|
+
type InternalAccount,
|
|
6
|
+
type InternalAccountFundParams,
|
|
7
|
+
type InternalAccountsDefaultPagination,
|
|
8
|
+
} from './internal-accounts';
|
|
9
|
+
export { Sandbox, type SandboxSendFundsResponse, type SandboxSendFundsParams } from './sandbox';
|
|
10
|
+
export { Uma, type UmaReceivePaymentParams } from './uma';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as InvitationsAPI from '../invitations';
|
|
5
|
+
import * as QuotesAPI from '../quotes';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { DefaultPagination } from '../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class InternalAccounts extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Simulate receiving funds into an internal account in the sandbox environment.
|
|
14
|
+
* This is useful for testing scenarios where you need to add funds to a customer's
|
|
15
|
+
* or platform's internal account without going through a real bank transfer or
|
|
16
|
+
* following payment instructions. This endpoint is only for the sandbox
|
|
17
|
+
* environment and will fail for production platforms/keys.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const internalAccount =
|
|
22
|
+
* await client.sandbox.internalAccounts.fund(
|
|
23
|
+
* 'InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123',
|
|
24
|
+
* { amount: 100000 },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
fund(
|
|
29
|
+
accountID: string,
|
|
30
|
+
body: InternalAccountFundParams,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<InternalAccount> {
|
|
33
|
+
return this._client.post(path`/sandbox/internal-accounts/${accountID}/fund`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type InternalAccountsDefaultPagination = DefaultPagination<InternalAccount>;
|
|
38
|
+
|
|
39
|
+
export interface InternalAccount {
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the internal account
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
|
|
45
|
+
balance: InvitationsAPI.CurrencyAmount;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Timestamp when the internal account was created
|
|
49
|
+
*/
|
|
50
|
+
createdAt: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Payment instructions for funding the account
|
|
54
|
+
*/
|
|
55
|
+
fundingPaymentInstructions: Array<QuotesAPI.PaymentInstructions>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Timestamp when the internal account was last updated
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the customer associated with the internal account. If this field is
|
|
64
|
+
* empty, the internal account belongs to the platform.
|
|
65
|
+
*/
|
|
66
|
+
customerId?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface InternalAccountFundParams {
|
|
70
|
+
/**
|
|
71
|
+
* Amount to add in the smallest unit of the account's currency (e.g., cents for
|
|
72
|
+
* USD/EUR, satoshis for BTC)
|
|
73
|
+
*/
|
|
74
|
+
amount: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export declare namespace InternalAccounts {
|
|
78
|
+
export {
|
|
79
|
+
type InternalAccount as InternalAccount,
|
|
80
|
+
type InternalAccountFundParams as InternalAccountFundParams,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as InvitationsAPI from '../invitations';
|
|
5
|
+
import * as QuotesAPI from '../quotes';
|
|
6
|
+
import * as TransactionsAPI from '../transactions';
|
|
7
|
+
import * as TransferInAPI from '../transfer-in';
|
|
8
|
+
import * as InternalAccountsAPI from './internal-accounts';
|
|
9
|
+
import { InternalAccount, InternalAccountFundParams, InternalAccounts } from './internal-accounts';
|
|
10
|
+
import * as UmaAPI from './uma';
|
|
11
|
+
import { Uma, UmaReceivePaymentParams } from './uma';
|
|
12
|
+
import { APIPromise } from '../../core/api-promise';
|
|
13
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
14
|
+
|
|
15
|
+
export class Sandbox extends APIResource {
|
|
16
|
+
uma: UmaAPI.Uma = new UmaAPI.Uma(this._client);
|
|
17
|
+
internalAccounts: InternalAccountsAPI.InternalAccounts = new InternalAccountsAPI.InternalAccounts(
|
|
18
|
+
this._client,
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Simulate sending funds to the bank account as instructed in the quote. This
|
|
23
|
+
* endpoint is only for the sandbox environment and will fail for production
|
|
24
|
+
* platforms/keys.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response = await client.sandbox.sendFunds({
|
|
29
|
+
* currencyCode: 'USD',
|
|
30
|
+
* quoteId: 'Quote:019542f5-b3e7-1d02-0000-000000000006',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
sendFunds(body: SandboxSendFundsParams, options?: RequestOptions): APIPromise<SandboxSendFundsResponse> {
|
|
35
|
+
return this._client.post('/sandbox/send', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface SandboxSendFundsResponse extends TransferInAPI.Transaction {
|
|
40
|
+
/**
|
|
41
|
+
* Payment instructions for executing the payment.
|
|
42
|
+
*/
|
|
43
|
+
paymentInstructions: Array<QuotesAPI.PaymentInstructions>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Amount sent in the sender's currency
|
|
47
|
+
*/
|
|
48
|
+
sentAmount: InvitationsAPI.CurrencyAmount;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Source account details
|
|
52
|
+
*/
|
|
53
|
+
source: TransactionsAPI.TransactionSourceOneOf;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Number of sending currency units per receiving currency unit.
|
|
57
|
+
*/
|
|
58
|
+
exchangeRate?: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* If the transaction failed, this field provides the reason for failure.
|
|
62
|
+
*/
|
|
63
|
+
failureReason?:
|
|
64
|
+
| 'QUOTE_EXPIRED'
|
|
65
|
+
| 'QUOTE_EXECUTION_FAILED'
|
|
66
|
+
| 'LIGHTNING_PAYMENT_FAILED'
|
|
67
|
+
| 'FUNDING_AMOUNT_MISMATCH'
|
|
68
|
+
| 'COUNTERPARTY_POST_TX_FAILED'
|
|
69
|
+
| 'TIMEOUT';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The fees associated with the quote in the smallest unit of the sending currency
|
|
73
|
+
* (eg. cents).
|
|
74
|
+
*/
|
|
75
|
+
fees?: number;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* ID of the original transaction that this transaction is retrying, if applicable
|
|
79
|
+
*/
|
|
80
|
+
originalTransactionId?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the quote that was used to trigger this payment
|
|
84
|
+
*/
|
|
85
|
+
quoteId?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Details about the rate and fees for the transaction.
|
|
89
|
+
*/
|
|
90
|
+
rateDetails?: QuotesAPI.OutgoingRateDetails;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Amount to be received by recipient in the recipient's currency
|
|
94
|
+
*/
|
|
95
|
+
receivedAmount?: InvitationsAPI.CurrencyAmount;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The refund if transaction was refunded.
|
|
99
|
+
*/
|
|
100
|
+
refund?: SandboxSendFundsResponse.Refund;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace SandboxSendFundsResponse {
|
|
104
|
+
/**
|
|
105
|
+
* The refund if transaction was refunded.
|
|
106
|
+
*/
|
|
107
|
+
export interface Refund {
|
|
108
|
+
/**
|
|
109
|
+
* When the refund was initiated
|
|
110
|
+
*/
|
|
111
|
+
initiatedAt: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The unique reference code of the refund
|
|
115
|
+
*/
|
|
116
|
+
reference: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* When the refund was or will be settled
|
|
120
|
+
*/
|
|
121
|
+
settledAt?: string;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface SandboxSendFundsParams {
|
|
126
|
+
/**
|
|
127
|
+
* Currency code for the funds to be sent
|
|
128
|
+
*/
|
|
129
|
+
currencyCode: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The unique identifier of the quote
|
|
133
|
+
*/
|
|
134
|
+
quoteId: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The amount to send in the smallest unit of the currency (eg. cents). If not
|
|
138
|
+
* provided, the amount will be derived from the quote.
|
|
139
|
+
*/
|
|
140
|
+
currencyAmount?: number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
Sandbox.Uma = Uma;
|
|
144
|
+
Sandbox.InternalAccounts = InternalAccounts;
|
|
145
|
+
|
|
146
|
+
export declare namespace Sandbox {
|
|
147
|
+
export {
|
|
148
|
+
type SandboxSendFundsResponse as SandboxSendFundsResponse,
|
|
149
|
+
type SandboxSendFundsParams as SandboxSendFundsParams,
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export { Uma as Uma, type UmaReceivePaymentParams as UmaReceivePaymentParams };
|
|
153
|
+
|
|
154
|
+
export {
|
|
155
|
+
InternalAccounts as InternalAccounts,
|
|
156
|
+
type InternalAccount as InternalAccount,
|
|
157
|
+
type InternalAccountFundParams as InternalAccountFundParams,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Uma extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulate sending payment from an sandbox uma address to a platform customer to
|
|
11
|
+
* test payment receive. This endpoint is only for the sandbox environment and will
|
|
12
|
+
* fail for production platforms/keys.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const incomingTransaction =
|
|
17
|
+
* await client.sandbox.uma.receivePayment({
|
|
18
|
+
* receivingCurrencyAmount: 1000,
|
|
19
|
+
* receivingCurrencyCode: 'USD',
|
|
20
|
+
* senderUmaAddress: '$success.usd@sandbox.grid.uma.money',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
receivePayment(
|
|
25
|
+
body: UmaReceivePaymentParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<TransactionsAPI.IncomingTransaction> {
|
|
28
|
+
return this._client.post('/sandbox/uma/receive', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface UmaReceivePaymentParams {
|
|
33
|
+
/**
|
|
34
|
+
* The amount to be received in the smallest unit of the currency (eg. cents)
|
|
35
|
+
*/
|
|
36
|
+
receivingCurrencyAmount: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The currency code for the receiving amount
|
|
40
|
+
*/
|
|
41
|
+
receivingCurrencyCode: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* UMA address of the sender from the sandbox
|
|
45
|
+
*/
|
|
46
|
+
senderUmaAddress: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* System ID of the receiver (optional if receiverUmaAddress is provided)
|
|
50
|
+
*/
|
|
51
|
+
customerId?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* UMA address of the receiver (optional if customerId is provided)
|
|
55
|
+
*/
|
|
56
|
+
receiverUmaAddress?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare namespace Uma {
|
|
60
|
+
export { type UmaReceivePaymentParams as UmaReceivePaymentParams };
|
|
61
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Tokens extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new API token to access the Grid APIs.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const apiToken = await client.tokens.create({
|
|
17
|
+
* name: 'Sandbox read-only',
|
|
18
|
+
* permissions: ['VIEW'],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: TokenCreateParams, options?: RequestOptions): APIPromise<APIToken> {
|
|
23
|
+
return this._client.post('/tokens', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve an API token by their system-generated ID
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const apiToken = await client.tokens.retrieve('tokenId');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieve(tokenID: string, options?: RequestOptions): APIPromise<APIToken> {
|
|
35
|
+
return this._client.get(path`/tokens/${tokenID}`, options);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve a list of API tokens with optional filtering parameters. Returns all
|
|
40
|
+
* tokens that match the specified filters. If no filters are provided, returns all
|
|
41
|
+
* tokens (paginated).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const apiToken of client.tokens.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(
|
|
52
|
+
query: TokenListParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): PagePromise<APITokensDefaultPagination, APIToken> {
|
|
55
|
+
return this._client.getAPIList('/tokens', DefaultPagination<APIToken>, { query, ...options });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Delete an API token by their system-generated ID
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.tokens.delete('tokenId');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
delete(tokenID: string, options?: RequestOptions): APIPromise<void> {
|
|
67
|
+
return this._client.delete(path`/tokens/${tokenID}`, {
|
|
68
|
+
...options,
|
|
69
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type APITokensDefaultPagination = DefaultPagination<APIToken>;
|
|
75
|
+
|
|
76
|
+
export interface APIToken {
|
|
77
|
+
/**
|
|
78
|
+
* System-generated unique identifier
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* An opaque identifier that should be used as a client_id (or username) in the
|
|
84
|
+
* HTTP Basic Authentication scheme when issuing http requests to Grid.
|
|
85
|
+
*/
|
|
86
|
+
clientId: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Creation timestamp
|
|
90
|
+
*/
|
|
91
|
+
createdAt: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Name of the token
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A list of permissions granted to the token
|
|
100
|
+
*/
|
|
101
|
+
permissions: Array<Permission>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Last update timestamp
|
|
105
|
+
*/
|
|
106
|
+
updatedAt: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The secret that should be used to authenticate against Grid API. This secret is
|
|
110
|
+
* not stored and will never be available again after creation. Platform must keep
|
|
111
|
+
* this secret secure as it grants access to the account.
|
|
112
|
+
*/
|
|
113
|
+
clientSecret?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Permission of an API token that determines what actions the token can perform:
|
|
118
|
+
* VIEW: Can view all data, including platform config, customers and transactions
|
|
119
|
+
* TRANSACT: Can send payments MANAGE: Can manage platform config, api tokens and
|
|
120
|
+
* customers
|
|
121
|
+
*/
|
|
122
|
+
export type Permission = 'VIEW' | 'TRANSACT' | 'MANAGE';
|
|
123
|
+
|
|
124
|
+
export interface TokenCreateParams {
|
|
125
|
+
/**
|
|
126
|
+
* Name of the token to help identify it
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A list of permissions to grant to the token
|
|
132
|
+
*/
|
|
133
|
+
permissions: Array<Permission>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface TokenListParams extends DefaultPaginationParams {
|
|
137
|
+
/**
|
|
138
|
+
* Filter customers created after this timestamp (inclusive)
|
|
139
|
+
*/
|
|
140
|
+
createdAfter?: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Filter customers created before this timestamp (inclusive)
|
|
144
|
+
*/
|
|
145
|
+
createdBefore?: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Maximum number of results to return (default 20, max 100)
|
|
149
|
+
*/
|
|
150
|
+
limit?: number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Filter by name of the token
|
|
154
|
+
*/
|
|
155
|
+
name?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Filter customers updated after this timestamp (inclusive)
|
|
159
|
+
*/
|
|
160
|
+
updatedAfter?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Filter customers updated before this timestamp (inclusive)
|
|
164
|
+
*/
|
|
165
|
+
updatedBefore?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export declare namespace Tokens {
|
|
169
|
+
export {
|
|
170
|
+
type APIToken as APIToken,
|
|
171
|
+
type Permission as Permission,
|
|
172
|
+
type APITokensDefaultPagination as APITokensDefaultPagination,
|
|
173
|
+
type TokenCreateParams as TokenCreateParams,
|
|
174
|
+
type TokenListParams as TokenListParams,
|
|
175
|
+
};
|
|
176
|
+
}
|