@lightsparkdev/grid 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/CHANGELOG.md +85 -0
- package/LICENSE +201 -0
- package/README.md +516 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +302 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +302 -0
- package/client.d.ts.map +1 -0
- package/client.js +588 -0
- package/client.js.map +1 -0
- package/client.mjs +584 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +2055 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +2055 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +857 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +787 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +58 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +58 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +109 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +103 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +86 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/.DS_Store +0 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +147 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/.DS_Store +0 -0
- package/resources/config.d.mts +130 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +130 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +47 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +43 -0
- package/resources/config.mjs.map +1 -0
- package/resources/customers/bulk.d.mts +170 -0
- package/resources/customers/bulk.d.mts.map +1 -0
- package/resources/customers/bulk.d.ts +170 -0
- package/resources/customers/bulk.d.ts.map +1 -0
- package/resources/customers/bulk.js +103 -0
- package/resources/customers/bulk.js.map +1 -0
- package/resources/customers/bulk.mjs +99 -0
- package/resources/customers/bulk.mjs.map +1 -0
- package/resources/customers/customers.d.mts +1238 -0
- package/resources/customers/customers.d.mts.map +1 -0
- package/resources/customers/customers.d.ts +1238 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +130 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +125 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/external-accounts.d.mts +461 -0
- package/resources/customers/external-accounts.d.mts.map +1 -0
- package/resources/customers/external-accounts.d.ts +461 -0
- package/resources/customers/external-accounts.d.ts.map +1 -0
- package/resources/customers/external-accounts.js +83 -0
- package/resources/customers/external-accounts.js.map +1 -0
- package/resources/customers/external-accounts.mjs +79 -0
- package/resources/customers/external-accounts.mjs.map +1 -0
- package/resources/customers/index.d.mts +4 -0
- package/resources/customers/index.d.mts.map +1 -0
- package/resources/customers/index.d.ts +4 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +11 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +5 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers.d.mts +2 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +2 -0
- package/resources/customers.d.ts.map +1 -0
- package/resources/customers.js +6 -0
- package/resources/customers.js.map +1 -0
- package/resources/customers.mjs +3 -0
- package/resources/customers.mjs.map +1 -0
- package/resources/exchange-rates.d.mts +101 -0
- package/resources/exchange-rates.d.mts.map +1 -0
- package/resources/exchange-rates.d.ts +101 -0
- package/resources/exchange-rates.d.ts.map +1 -0
- package/resources/exchange-rates.js +23 -0
- package/resources/exchange-rates.js.map +1 -0
- package/resources/exchange-rates.mjs +19 -0
- package/resources/exchange-rates.mjs.map +1 -0
- package/resources/index.d.mts +16 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +16 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +35 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +17 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invitations.d.mts +166 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +166 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +83 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +79 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/plaid.d.mts +101 -0
- package/resources/plaid.d.mts.map +1 -0
- package/resources/plaid.d.ts +101 -0
- package/resources/plaid.d.ts.map +1 -0
- package/resources/plaid.js +64 -0
- package/resources/plaid.js.map +1 -0
- package/resources/plaid.mjs +60 -0
- package/resources/plaid.mjs.map +1 -0
- package/resources/platform/external-accounts.d.mts +111 -0
- package/resources/platform/external-accounts.d.mts.map +1 -0
- package/resources/platform/external-accounts.d.ts +111 -0
- package/resources/platform/external-accounts.d.ts.map +1 -0
- package/resources/platform/external-accounts.js +74 -0
- package/resources/platform/external-accounts.js.map +1 -0
- package/resources/platform/external-accounts.mjs +70 -0
- package/resources/platform/external-accounts.mjs.map +1 -0
- package/resources/platform/index.d.mts +3 -0
- package/resources/platform/index.d.mts.map +1 -0
- package/resources/platform/index.d.ts +3 -0
- package/resources/platform/index.d.ts.map +1 -0
- package/resources/platform/index.js +9 -0
- package/resources/platform/index.js.map +1 -0
- package/resources/platform/index.mjs +4 -0
- package/resources/platform/index.mjs.map +1 -0
- package/resources/platform/platform.d.mts +41 -0
- package/resources/platform/platform.d.mts.map +1 -0
- package/resources/platform/platform.d.ts +41 -0
- package/resources/platform/platform.d.ts.map +1 -0
- package/resources/platform/platform.js +34 -0
- package/resources/platform/platform.js.map +1 -0
- package/resources/platform/platform.mjs +29 -0
- package/resources/platform/platform.mjs.map +1 -0
- package/resources/platform.d.mts +2 -0
- package/resources/platform.d.mts.map +1 -0
- package/resources/platform.d.ts +2 -0
- package/resources/platform.d.ts.map +1 -0
- package/resources/platform.js +6 -0
- package/resources/platform.js.map +1 -0
- package/resources/platform.mjs +3 -0
- package/resources/platform.mjs.map +1 -0
- package/resources/quotes.d.mts +580 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +580 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +122 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +118 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/receiver.d.mts +100 -0
- package/resources/receiver.d.mts.map +1 -0
- package/resources/receiver.d.ts +100 -0
- package/resources/receiver.d.ts.map +1 -0
- package/resources/receiver.js +27 -0
- package/resources/receiver.js.map +1 -0
- package/resources/receiver.mjs +23 -0
- package/resources/receiver.mjs.map +1 -0
- package/resources/sandbox/index.d.mts +4 -0
- package/resources/sandbox/index.d.mts.map +1 -0
- package/resources/sandbox/index.d.ts +4 -0
- package/resources/sandbox/index.d.ts.map +1 -0
- package/resources/sandbox/index.js +11 -0
- package/resources/sandbox/index.js.map +1 -0
- package/resources/sandbox/index.mjs +5 -0
- package/resources/sandbox/index.mjs.map +1 -0
- package/resources/sandbox/internal-accounts.d.mts +61 -0
- package/resources/sandbox/internal-accounts.d.mts.map +1 -0
- package/resources/sandbox/internal-accounts.d.ts +61 -0
- package/resources/sandbox/internal-accounts.d.ts.map +1 -0
- package/resources/sandbox/internal-accounts.js +29 -0
- package/resources/sandbox/internal-accounts.js.map +1 -0
- package/resources/sandbox/internal-accounts.mjs +25 -0
- package/resources/sandbox/internal-accounts.mjs.map +1 -0
- package/resources/sandbox/sandbox.d.mts +116 -0
- package/resources/sandbox/sandbox.d.mts.map +1 -0
- package/resources/sandbox/sandbox.d.ts +116 -0
- package/resources/sandbox/sandbox.d.ts.map +1 -0
- package/resources/sandbox/sandbox.js +37 -0
- package/resources/sandbox/sandbox.js.map +1 -0
- package/resources/sandbox/sandbox.mjs +32 -0
- package/resources/sandbox/sandbox.mjs.map +1 -0
- package/resources/sandbox/uma.d.mts +48 -0
- package/resources/sandbox/uma.d.mts.map +1 -0
- package/resources/sandbox/uma.d.ts +48 -0
- package/resources/sandbox/uma.d.ts.map +1 -0
- package/resources/sandbox/uma.js +27 -0
- package/resources/sandbox/uma.js.map +1 -0
- package/resources/sandbox/uma.mjs +23 -0
- package/resources/sandbox/uma.mjs.map +1 -0
- package/resources/sandbox.d.mts +2 -0
- package/resources/sandbox.d.mts.map +1 -0
- package/resources/sandbox.d.ts +2 -0
- package/resources/sandbox.d.ts.map +1 -0
- package/resources/sandbox.js +6 -0
- package/resources/sandbox.js.map +1 -0
- package/resources/sandbox.mjs +3 -0
- package/resources/sandbox.mjs.map +1 -0
- package/resources/tokens.d.mts +131 -0
- package/resources/tokens.d.mts.map +1 -0
- package/resources/tokens.d.ts +131 -0
- package/resources/tokens.d.ts.map +1 -0
- package/resources/tokens.js +67 -0
- package/resources/tokens.js.map +1 -0
- package/resources/tokens.mjs +63 -0
- package/resources/tokens.mjs.map +1 -0
- package/resources/transactions.d.mts +226 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +226 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +71 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +67 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/transfer-in.d.mts +154 -0
- package/resources/transfer-in.d.mts.map +1 -0
- package/resources/transfer-in.d.ts +154 -0
- package/resources/transfer-in.d.ts.map +1 -0
- package/resources/transfer-in.js +42 -0
- package/resources/transfer-in.js.map +1 -0
- package/resources/transfer-in.mjs +38 -0
- package/resources/transfer-in.mjs.map +1 -0
- package/resources/transfer-out.d.mts +70 -0
- package/resources/transfer-out.d.mts.map +1 -0
- package/resources/transfer-out.d.ts +70 -0
- package/resources/transfer-out.d.ts.map +1 -0
- package/resources/transfer-out.js +40 -0
- package/resources/transfer-out.js.map +1 -0
- package/resources/transfer-out.mjs +36 -0
- package/resources/transfer-out.mjs.map +1 -0
- package/resources/uma-providers.d.mts +70 -0
- package/resources/uma-providers.d.mts.map +1 -0
- package/resources/uma-providers.d.ts +70 -0
- package/resources/uma-providers.d.ts.map +1 -0
- package/resources/uma-providers.js +21 -0
- package/resources/uma-providers.js.map +1 -0
- package/resources/uma-providers.mjs +17 -0
- package/resources/uma-providers.mjs.map +1 -0
- package/resources/webhooks.d.mts +27 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +27 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +15 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/.DS_Store +0 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1111 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +2936 -0
- package/src/core/pagination.ts +173 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +76 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/config.ts +178 -0
- package/src/resources/customers/bulk.ts +201 -0
- package/src/resources/customers/customers.ts +1687 -0
- package/src/resources/customers/external-accounts.ts +630 -0
- package/src/resources/customers/index.ts +51 -0
- package/src/resources/customers.ts +3 -0
- package/src/resources/exchange-rates.ts +127 -0
- package/src/resources/index.ts +104 -0
- package/src/resources/invitations.ts +207 -0
- package/src/resources/plaid.ts +128 -0
- package/src/resources/platform/external-accounts.ts +136 -0
- package/src/resources/platform/index.ts +13 -0
- package/src/resources/platform/platform.ts +70 -0
- package/src/resources/platform.ts +3 -0
- package/src/resources/quotes.ts +726 -0
- package/src/resources/receiver.ts +139 -0
- package/src/resources/sandbox/index.ts +10 -0
- package/src/resources/sandbox/internal-accounts.ts +82 -0
- package/src/resources/sandbox/sandbox.ts +159 -0
- package/src/resources/sandbox/uma.ts +61 -0
- package/src/resources/sandbox.ts +3 -0
- package/src/resources/tokens.ts +176 -0
- package/src/resources/transactions.ts +312 -0
- package/src/resources/transfer-in.ts +193 -0
- package/src/resources/transfer-out.ts +90 -0
- package/src/resources/uma-providers.ts +98 -0
- package/src/resources/webhooks.ts +35 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.mjs","sourceRoot":"","sources":["../src/resources/sandbox.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Tokens extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new API token to access the Grid APIs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const apiToken = await client.tokens.create({
|
|
12
|
+
* name: 'Sandbox read-only',
|
|
13
|
+
* permissions: ['VIEW'],
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: TokenCreateParams, options?: RequestOptions): APIPromise<APIToken>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve an API token by their system-generated ID
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const apiToken = await client.tokens.retrieve('tokenId');
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
retrieve(tokenID: string, options?: RequestOptions): APIPromise<APIToken>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a list of API tokens with optional filtering parameters. Returns all
|
|
29
|
+
* tokens that match the specified filters. If no filters are provided, returns all
|
|
30
|
+
* tokens (paginated).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // Automatically fetches more pages as needed.
|
|
35
|
+
* for await (const apiToken of client.tokens.list()) {
|
|
36
|
+
* // ...
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
list(query?: TokenListParams | null | undefined, options?: RequestOptions): PagePromise<APITokensDefaultPagination, APIToken>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete an API token by their system-generated ID
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* await client.tokens.delete('tokenId');
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
delete(tokenID: string, options?: RequestOptions): APIPromise<void>;
|
|
50
|
+
}
|
|
51
|
+
export type APITokensDefaultPagination = DefaultPagination<APIToken>;
|
|
52
|
+
export interface APIToken {
|
|
53
|
+
/**
|
|
54
|
+
* System-generated unique identifier
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* An opaque identifier that should be used as a client_id (or username) in the
|
|
59
|
+
* HTTP Basic Authentication scheme when issuing http requests to Grid.
|
|
60
|
+
*/
|
|
61
|
+
clientId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Creation timestamp
|
|
64
|
+
*/
|
|
65
|
+
createdAt: string;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the token
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* A list of permissions granted to the token
|
|
72
|
+
*/
|
|
73
|
+
permissions: Array<Permission>;
|
|
74
|
+
/**
|
|
75
|
+
* Last update timestamp
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
/**
|
|
79
|
+
* The secret that should be used to authenticate against Grid API. This secret is
|
|
80
|
+
* not stored and will never be available again after creation. Platform must keep
|
|
81
|
+
* this secret secure as it grants access to the account.
|
|
82
|
+
*/
|
|
83
|
+
clientSecret?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Permission of an API token that determines what actions the token can perform:
|
|
87
|
+
* VIEW: Can view all data, including platform config, customers and transactions
|
|
88
|
+
* TRANSACT: Can send payments MANAGE: Can manage platform config, api tokens and
|
|
89
|
+
* customers
|
|
90
|
+
*/
|
|
91
|
+
export type Permission = 'VIEW' | 'TRANSACT' | 'MANAGE';
|
|
92
|
+
export interface TokenCreateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Name of the token to help identify it
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
/**
|
|
98
|
+
* A list of permissions to grant to the token
|
|
99
|
+
*/
|
|
100
|
+
permissions: Array<Permission>;
|
|
101
|
+
}
|
|
102
|
+
export interface TokenListParams extends DefaultPaginationParams {
|
|
103
|
+
/**
|
|
104
|
+
* Filter customers created after this timestamp (inclusive)
|
|
105
|
+
*/
|
|
106
|
+
createdAfter?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Filter customers created before this timestamp (inclusive)
|
|
109
|
+
*/
|
|
110
|
+
createdBefore?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Maximum number of results to return (default 20, max 100)
|
|
113
|
+
*/
|
|
114
|
+
limit?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Filter by name of the token
|
|
117
|
+
*/
|
|
118
|
+
name?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Filter customers updated after this timestamp (inclusive)
|
|
121
|
+
*/
|
|
122
|
+
updatedAfter?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Filter customers updated before this timestamp (inclusive)
|
|
125
|
+
*/
|
|
126
|
+
updatedBefore?: string;
|
|
127
|
+
}
|
|
128
|
+
export declare namespace Tokens {
|
|
129
|
+
export { type APIToken as APIToken, type Permission as Permission, type APITokensDefaultPagination as APITokensDefaultPagination, type TokenCreateParams as TokenCreateParams, type TokenListParams as TokenListParams, };
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=tokens.d.mts.map
|
|
@@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,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;IAC9D;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Tokens extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new API token to access the Grid APIs.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const apiToken = await client.tokens.create({
|
|
12
|
+
* name: 'Sandbox read-only',
|
|
13
|
+
* permissions: ['VIEW'],
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: TokenCreateParams, options?: RequestOptions): APIPromise<APIToken>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve an API token by their system-generated ID
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const apiToken = await client.tokens.retrieve('tokenId');
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
retrieve(tokenID: string, options?: RequestOptions): APIPromise<APIToken>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a list of API tokens with optional filtering parameters. Returns all
|
|
29
|
+
* tokens that match the specified filters. If no filters are provided, returns all
|
|
30
|
+
* tokens (paginated).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // Automatically fetches more pages as needed.
|
|
35
|
+
* for await (const apiToken of client.tokens.list()) {
|
|
36
|
+
* // ...
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
list(query?: TokenListParams | null | undefined, options?: RequestOptions): PagePromise<APITokensDefaultPagination, APIToken>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete an API token by their system-generated ID
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* await client.tokens.delete('tokenId');
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
delete(tokenID: string, options?: RequestOptions): APIPromise<void>;
|
|
50
|
+
}
|
|
51
|
+
export type APITokensDefaultPagination = DefaultPagination<APIToken>;
|
|
52
|
+
export interface APIToken {
|
|
53
|
+
/**
|
|
54
|
+
* System-generated unique identifier
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* An opaque identifier that should be used as a client_id (or username) in the
|
|
59
|
+
* HTTP Basic Authentication scheme when issuing http requests to Grid.
|
|
60
|
+
*/
|
|
61
|
+
clientId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Creation timestamp
|
|
64
|
+
*/
|
|
65
|
+
createdAt: string;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the token
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* A list of permissions granted to the token
|
|
72
|
+
*/
|
|
73
|
+
permissions: Array<Permission>;
|
|
74
|
+
/**
|
|
75
|
+
* Last update timestamp
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
/**
|
|
79
|
+
* The secret that should be used to authenticate against Grid API. This secret is
|
|
80
|
+
* not stored and will never be available again after creation. Platform must keep
|
|
81
|
+
* this secret secure as it grants access to the account.
|
|
82
|
+
*/
|
|
83
|
+
clientSecret?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Permission of an API token that determines what actions the token can perform:
|
|
87
|
+
* VIEW: Can view all data, including platform config, customers and transactions
|
|
88
|
+
* TRANSACT: Can send payments MANAGE: Can manage platform config, api tokens and
|
|
89
|
+
* customers
|
|
90
|
+
*/
|
|
91
|
+
export type Permission = 'VIEW' | 'TRANSACT' | 'MANAGE';
|
|
92
|
+
export interface TokenCreateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Name of the token to help identify it
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
/**
|
|
98
|
+
* A list of permissions to grant to the token
|
|
99
|
+
*/
|
|
100
|
+
permissions: Array<Permission>;
|
|
101
|
+
}
|
|
102
|
+
export interface TokenListParams extends DefaultPaginationParams {
|
|
103
|
+
/**
|
|
104
|
+
* Filter customers created after this timestamp (inclusive)
|
|
105
|
+
*/
|
|
106
|
+
createdAfter?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Filter customers created before this timestamp (inclusive)
|
|
109
|
+
*/
|
|
110
|
+
createdBefore?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Maximum number of results to return (default 20, max 100)
|
|
113
|
+
*/
|
|
114
|
+
limit?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Filter by name of the token
|
|
117
|
+
*/
|
|
118
|
+
name?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Filter customers updated after this timestamp (inclusive)
|
|
121
|
+
*/
|
|
122
|
+
updatedAfter?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Filter customers updated before this timestamp (inclusive)
|
|
125
|
+
*/
|
|
126
|
+
updatedBefore?: string;
|
|
127
|
+
}
|
|
128
|
+
export declare namespace Tokens {
|
|
129
|
+
export { type APIToken as APIToken, type Permission as Permission, type APITokensDefaultPagination as APITokensDefaultPagination, type TokenCreateParams as TokenCreateParams, type TokenListParams as TokenListParams, };
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE;OAEhE,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAI/E;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIzE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,QAAQ,CAAC;IAIpD;;;;;;;OAOG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMpE;AAED,MAAM,MAAM,0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|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tokens = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class Tokens extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new API token to access the Grid APIs.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const apiToken = await client.tokens.create({
|
|
16
|
+
* name: 'Sandbox read-only',
|
|
17
|
+
* permissions: ['VIEW'],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/tokens', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve an API token by their system-generated ID
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const apiToken = await client.tokens.retrieve('tokenId');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(tokenID, options) {
|
|
33
|
+
return this._client.get((0, path_1.path) `/tokens/${tokenID}`, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve a list of API tokens with optional filtering parameters. Returns all
|
|
37
|
+
* tokens that match the specified filters. If no filters are provided, returns all
|
|
38
|
+
* tokens (paginated).
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* // Automatically fetches more pages as needed.
|
|
43
|
+
* for await (const apiToken of client.tokens.list()) {
|
|
44
|
+
* // ...
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(query = {}, options) {
|
|
49
|
+
return this._client.getAPIList('/tokens', (pagination_1.DefaultPagination), { query, ...options });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Delete an API token by their system-generated ID
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.tokens.delete('tokenId');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
delete(tokenID, options) {
|
|
60
|
+
return this._client.delete((0, path_1.path) `/tokens/${tokenID}`, {
|
|
61
|
+
...options,
|
|
62
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.Tokens = Tokens;
|
|
67
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAkG;AAClG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,8BAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,wBA8DC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { DefaultPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class Tokens extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new API token to access the Grid APIs.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const apiToken = await client.tokens.create({
|
|
13
|
+
* name: 'Sandbox read-only',
|
|
14
|
+
* permissions: ['VIEW'],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/tokens', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve an API token by their system-generated ID
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const apiToken = await client.tokens.retrieve('tokenId');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieve(tokenID, options) {
|
|
30
|
+
return this._client.get(path `/tokens/${tokenID}`, options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a list of API tokens with optional filtering parameters. Returns all
|
|
34
|
+
* tokens that match the specified filters. If no filters are provided, returns all
|
|
35
|
+
* tokens (paginated).
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* // Automatically fetches more pages as needed.
|
|
40
|
+
* for await (const apiToken of client.tokens.list()) {
|
|
41
|
+
* // ...
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(query = {}, options) {
|
|
46
|
+
return this._client.getAPIList('/tokens', (DefaultPagination), { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delete an API token by their system-generated ID
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* await client.tokens.delete('tokenId');
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
delete(tokenID, options) {
|
|
57
|
+
return this._client.delete(path `/tokens/${tokenID}`, {
|
|
58
|
+
...options,
|
|
59
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=tokens.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.mjs","sourceRoot":"","sources":["../src/resources/tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,iBAAiB,EAA6C;OAChE,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,iBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as TransactionsAPI from "./transactions.mjs";
|
|
3
|
+
import * as InvitationsAPI from "./invitations.mjs";
|
|
4
|
+
import * as TransferInAPI from "./transfer-in.mjs";
|
|
5
|
+
import { TransactionsDefaultPagination } from "./transfer-in.mjs";
|
|
6
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
7
|
+
import { type DefaultPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
8
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
9
|
+
export declare class Transactions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve detailed information about a specific transaction.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const transaction = await client.transactions.retrieve(
|
|
16
|
+
* 'transactionId',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
retrieve(transactionID: string, options?: RequestOptions): APIPromise<TransferInAPI.Transaction>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve a paginated list of transactions with optional filtering. The
|
|
23
|
+
* transactions can be filtered by customer ID, platform customer ID, UMA address,
|
|
24
|
+
* date range, status, and transaction type.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Automatically fetches more pages as needed.
|
|
29
|
+
* for await (const transaction of client.transactions.list()) {
|
|
30
|
+
* // ...
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(query?: TransactionListParams | null | undefined, options?: RequestOptions): PagePromise<TransactionsDefaultPagination, TransferInAPI.Transaction>;
|
|
35
|
+
/**
|
|
36
|
+
* Approve a pending incoming payment that was previously acknowledged with a 202
|
|
37
|
+
* response. This endpoint allows platforms to asynchronously approve payments
|
|
38
|
+
* after async processing.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const incomingTransaction =
|
|
43
|
+
* await client.transactions.approve('transactionId');
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
approve(transactionID: string, body?: TransactionApproveParams | null | undefined, options?: RequestOptions): APIPromise<IncomingTransaction>;
|
|
47
|
+
/**
|
|
48
|
+
* Reject a pending incoming payment that was previously acknowledged with a 202
|
|
49
|
+
* response. This endpoint allows platforms to asynchronously reject payments after
|
|
50
|
+
* additional processing.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const incomingTransaction =
|
|
55
|
+
* await client.transactions.reject('transactionId');
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
reject(transactionID: string, body?: TransactionRejectParams | null | undefined, options?: RequestOptions): APIPromise<IncomingTransaction>;
|
|
59
|
+
}
|
|
60
|
+
export interface BaseTransactionSource {
|
|
61
|
+
/**
|
|
62
|
+
* Currency code for the source
|
|
63
|
+
*/
|
|
64
|
+
currency?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface IncomingTransaction extends TransferInAPI.Transaction {
|
|
67
|
+
/**
|
|
68
|
+
* Amount received in the recipient's currency
|
|
69
|
+
*/
|
|
70
|
+
receivedAmount: InvitationsAPI.CurrencyAmount;
|
|
71
|
+
/**
|
|
72
|
+
* If the transaction failed, this field provides the reason for failure.
|
|
73
|
+
*/
|
|
74
|
+
failureReason?: 'LNURLP_FAILED' | 'PAY_REQUEST_FAILED' | 'PAYMENT_APPROVAL_WEBHOOK_ERROR' | 'PAYMENT_APPROVAL_TIMED_OUT' | 'OFFRAMP_FAILED' | 'MISSING_MANDATORY_PAYEE_DATA' | 'QUOTE_EXPIRED' | 'QUOTE_EXECUTION_FAILED';
|
|
75
|
+
/**
|
|
76
|
+
* Details about the rate and fees for the transaction.
|
|
77
|
+
*/
|
|
78
|
+
rateDetails?: IncomingTransaction.RateDetails;
|
|
79
|
+
/**
|
|
80
|
+
* Included for all transactions except those with "CREATED" status
|
|
81
|
+
*/
|
|
82
|
+
reconciliationInstructions?: IncomingTransaction.ReconciliationInstructions;
|
|
83
|
+
/**
|
|
84
|
+
* Source account details
|
|
85
|
+
*/
|
|
86
|
+
source?: TransactionSourceOneOf;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace IncomingTransaction {
|
|
89
|
+
/**
|
|
90
|
+
* Details about the rate and fees for the transaction.
|
|
91
|
+
*/
|
|
92
|
+
interface RateDetails {
|
|
93
|
+
/**
|
|
94
|
+
* The fixed fee charged by the Grid product to execute the quote in the smallest
|
|
95
|
+
* unit of the receiving currency (eg. cents).
|
|
96
|
+
*/
|
|
97
|
+
gridApiFixedFee: number;
|
|
98
|
+
/**
|
|
99
|
+
* The underlying multiplier from the mSATS to the receiving currency, including
|
|
100
|
+
* variable fees.
|
|
101
|
+
*/
|
|
102
|
+
gridApiMultiplier: number;
|
|
103
|
+
/**
|
|
104
|
+
* The variable fee amount charged by the Grid product to execute the quote in the
|
|
105
|
+
* smallest unit of the receiving currency (eg. cents). This is the receiving
|
|
106
|
+
* amount times gridApiVariableFeeRate.
|
|
107
|
+
*/
|
|
108
|
+
gridApiVariableFeeAmount: number;
|
|
109
|
+
/**
|
|
110
|
+
* The variable fee rate charged by the Grid product to execute the quote as a
|
|
111
|
+
* percentage of the receiving currency amount.
|
|
112
|
+
*/
|
|
113
|
+
gridApiVariableFeeRate: number;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Included for all transactions except those with "CREATED" status
|
|
117
|
+
*/
|
|
118
|
+
interface ReconciliationInstructions {
|
|
119
|
+
/**
|
|
120
|
+
* Unique reference code that must be included with the payment to match it with
|
|
121
|
+
* the correct incoming transaction
|
|
122
|
+
*/
|
|
123
|
+
reference: string;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Source account details
|
|
128
|
+
*/
|
|
129
|
+
export type TransactionSourceOneOf = TransactionSourceOneOf.AccountTransactionSource | TransactionSourceOneOf.UmaAddressTransactionSource;
|
|
130
|
+
export declare namespace TransactionSourceOneOf {
|
|
131
|
+
/**
|
|
132
|
+
* Source account details
|
|
133
|
+
*/
|
|
134
|
+
interface AccountTransactionSource extends TransactionsAPI.BaseTransactionSource {
|
|
135
|
+
/**
|
|
136
|
+
* Source account identifier
|
|
137
|
+
*/
|
|
138
|
+
accountId: string;
|
|
139
|
+
sourceType: 'ACCOUNT';
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* UMA address source details
|
|
143
|
+
*/
|
|
144
|
+
interface UmaAddressTransactionSource extends TransactionsAPI.BaseTransactionSource {
|
|
145
|
+
sourceType: 'UMA_ADDRESS';
|
|
146
|
+
/**
|
|
147
|
+
* UMA address of the sender
|
|
148
|
+
*/
|
|
149
|
+
umaAddress: string;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Status of a payment transaction
|
|
154
|
+
*/
|
|
155
|
+
export type TransactionStatus = 'CREATED' | 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'REJECTED' | 'FAILED' | 'REFUNDED' | 'EXPIRED';
|
|
156
|
+
/**
|
|
157
|
+
* Type of transaction (incoming payment or outgoing payment)
|
|
158
|
+
*/
|
|
159
|
+
export type TransactionType = 'INCOMING' | 'OUTGOING';
|
|
160
|
+
export interface TransactionListParams extends DefaultPaginationParams {
|
|
161
|
+
/**
|
|
162
|
+
* Filter by system customer ID
|
|
163
|
+
*/
|
|
164
|
+
customerId?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Filter by end date (inclusive) in ISO 8601 format
|
|
167
|
+
*/
|
|
168
|
+
endDate?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Maximum number of results to return (default 20, max 100)
|
|
171
|
+
*/
|
|
172
|
+
limit?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Filter by platform-specific customer ID
|
|
175
|
+
*/
|
|
176
|
+
platformCustomerId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Filter by receiver account identifier
|
|
179
|
+
*/
|
|
180
|
+
receiverAccountIdentifier?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Filter by reference
|
|
183
|
+
*/
|
|
184
|
+
reference?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Filter by sender account identifier
|
|
187
|
+
*/
|
|
188
|
+
senderAccountIdentifier?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Order to sort results in
|
|
191
|
+
*/
|
|
192
|
+
sortOrder?: 'asc' | 'desc';
|
|
193
|
+
/**
|
|
194
|
+
* Filter by start date (inclusive) in ISO 8601 format
|
|
195
|
+
*/
|
|
196
|
+
startDate?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Filter by transaction status
|
|
199
|
+
*/
|
|
200
|
+
status?: TransactionStatus;
|
|
201
|
+
/**
|
|
202
|
+
* Filter by transaction type
|
|
203
|
+
*/
|
|
204
|
+
type?: TransactionType;
|
|
205
|
+
}
|
|
206
|
+
export interface TransactionApproveParams {
|
|
207
|
+
/**
|
|
208
|
+
* Information about the recipient, provided by the platform if requested in the
|
|
209
|
+
* original webhook via `requestedReceiverCustomerInfoFields`.
|
|
210
|
+
*/
|
|
211
|
+
receiverCustomerInfo?: {
|
|
212
|
+
[key: string]: unknown;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export interface TransactionRejectParams {
|
|
216
|
+
/**
|
|
217
|
+
* Optional reason for rejecting the payment. This is just for debugging purposes
|
|
218
|
+
* or can be used for a platform's own purposes.
|
|
219
|
+
*/
|
|
220
|
+
reason?: string;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace Transactions {
|
|
223
|
+
export { type BaseTransactionSource as BaseTransactionSource, type IncomingTransaction as IncomingTransaction, type TransactionSourceOneOf as TransactionSourceOneOf, type TransactionStatus as TransactionStatus, type TransactionType as TransactionType, type TransactionListParams as TransactionListParams, type TransactionApproveParams as TransactionApproveParams, type TransactionRejectParams as TransactionRejectParams, };
|
|
224
|
+
}
|
|
225
|
+
export { type TransactionsDefaultPagination };
|
|
226
|
+
//# sourceMappingURL=transactions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.d.mts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,KAAK,cAAc;OACnB,KAAK,aAAa;OAClB,EAAE,6BAA6B,EAAE;OACjC,EAAE,UAAU,EAAE;OACd,EAAqB,KAAK,uBAAuB,EAAE,WAAW,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC;IAIhG;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAA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