@rainapi/rain-sdk 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/LICENSE +201 -0
- package/README.md +412 -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 +222 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +222 -0
- package/client.d.ts.map +1 -0
- package/client.js +501 -0
- package/client.js.map +1 -0
- package/client.mjs +497 -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 +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.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 +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -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 +138 -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/applications/applications.d.mts +14 -0
- package/resources/applications/applications.d.mts.map +1 -0
- package/resources/applications/applications.d.ts +14 -0
- package/resources/applications/applications.d.ts.map +1 -0
- package/resources/applications/applications.js +21 -0
- package/resources/applications/applications.js.map +1 -0
- package/resources/applications/applications.mjs +16 -0
- package/resources/applications/applications.mjs.map +1 -0
- package/resources/applications/company/company.d.mts +584 -0
- package/resources/applications/company/company.d.mts.map +1 -0
- package/resources/applications/company/company.d.ts +584 -0
- package/resources/applications/company/company.d.ts.map +1 -0
- package/resources/applications/company/company.js +138 -0
- package/resources/applications/company/company.js.map +1 -0
- package/resources/applications/company/company.mjs +133 -0
- package/resources/applications/company/company.mjs.map +1 -0
- package/resources/applications/company/index.d.mts +3 -0
- package/resources/applications/company/index.d.mts.map +1 -0
- package/resources/applications/company/index.d.ts +3 -0
- package/resources/applications/company/index.d.ts.map +1 -0
- package/resources/applications/company/index.js +9 -0
- package/resources/applications/company/index.js.map +1 -0
- package/resources/applications/company/index.mjs +4 -0
- package/resources/applications/company/index.mjs.map +1 -0
- package/resources/applications/company/ubo/document.d.mts +50 -0
- package/resources/applications/company/ubo/document.d.mts.map +1 -0
- package/resources/applications/company/ubo/document.d.ts +50 -0
- package/resources/applications/company/ubo/document.d.ts.map +1 -0
- package/resources/applications/company/ubo/document.js +32 -0
- package/resources/applications/company/ubo/document.js.map +1 -0
- package/resources/applications/company/ubo/document.mjs +28 -0
- package/resources/applications/company/ubo/document.mjs.map +1 -0
- package/resources/applications/company/ubo/index.d.mts +3 -0
- package/resources/applications/company/ubo/index.d.mts.map +1 -0
- package/resources/applications/company/ubo/index.d.ts +3 -0
- package/resources/applications/company/ubo/index.d.ts.map +1 -0
- package/resources/applications/company/ubo/index.js +9 -0
- package/resources/applications/company/ubo/index.js.map +1 -0
- package/resources/applications/company/ubo/index.mjs +4 -0
- package/resources/applications/company/ubo/index.mjs.map +1 -0
- package/resources/applications/company/ubo/ubo.d.mts +96 -0
- package/resources/applications/company/ubo/ubo.d.mts.map +1 -0
- package/resources/applications/company/ubo/ubo.d.ts +96 -0
- package/resources/applications/company/ubo/ubo.d.ts.map +1 -0
- package/resources/applications/company/ubo/ubo.js +48 -0
- package/resources/applications/company/ubo/ubo.js.map +1 -0
- package/resources/applications/company/ubo/ubo.mjs +43 -0
- package/resources/applications/company/ubo/ubo.mjs.map +1 -0
- package/resources/applications/company/ubo.d.mts +2 -0
- package/resources/applications/company/ubo.d.mts.map +1 -0
- package/resources/applications/company/ubo.d.ts +2 -0
- package/resources/applications/company/ubo.d.ts.map +1 -0
- package/resources/applications/company/ubo.js +6 -0
- package/resources/applications/company/ubo.js.map +1 -0
- package/resources/applications/company/ubo.mjs +3 -0
- package/resources/applications/company/ubo.mjs.map +1 -0
- package/resources/applications/company.d.mts +2 -0
- package/resources/applications/company.d.mts.map +1 -0
- package/resources/applications/company.d.ts +2 -0
- package/resources/applications/company.d.ts.map +1 -0
- package/resources/applications/company.js +6 -0
- package/resources/applications/company.js.map +1 -0
- package/resources/applications/company.mjs +3 -0
- package/resources/applications/company.mjs.map +1 -0
- package/resources/applications/index.d.mts +4 -0
- package/resources/applications/index.d.mts.map +1 -0
- package/resources/applications/index.d.ts +4 -0
- package/resources/applications/index.d.ts.map +1 -0
- package/resources/applications/index.js +11 -0
- package/resources/applications/index.js.map +1 -0
- package/resources/applications/index.mjs +5 -0
- package/resources/applications/index.mjs.map +1 -0
- package/resources/applications/user.d.mts +507 -0
- package/resources/applications/user.d.mts.map +1 -0
- package/resources/applications/user.d.ts +507 -0
- package/resources/applications/user.d.ts.map +1 -0
- package/resources/applications/user.js +103 -0
- package/resources/applications/user.js.map +1 -0
- package/resources/applications/user.mjs +99 -0
- package/resources/applications/user.mjs.map +1 -0
- package/resources/applications.d.mts +2 -0
- package/resources/applications.d.mts.map +1 -0
- package/resources/applications.d.ts +2 -0
- package/resources/applications.d.ts.map +1 -0
- package/resources/applications.js +6 -0
- package/resources/applications.js.map +1 -0
- package/resources/applications.mjs +3 -0
- package/resources/applications.mjs.map +1 -0
- package/resources/balances.d.mts +37 -0
- package/resources/balances.d.mts.map +1 -0
- package/resources/balances.d.ts +37 -0
- package/resources/balances.d.ts.map +1 -0
- package/resources/balances.js +17 -0
- package/resources/balances.js.map +1 -0
- package/resources/balances.mjs +13 -0
- package/resources/balances.mjs.map +1 -0
- package/resources/cards/cards.d.mts +188 -0
- package/resources/cards/cards.d.mts.map +1 -0
- package/resources/cards/cards.d.ts +188 -0
- package/resources/cards/cards.d.ts.map +1 -0
- package/resources/cards/cards.js +50 -0
- package/resources/cards/cards.js.map +1 -0
- package/resources/cards/cards.mjs +45 -0
- package/resources/cards/cards.mjs.map +1 -0
- package/resources/cards/index.d.mts +3 -0
- package/resources/cards/index.d.mts.map +1 -0
- package/resources/cards/index.d.ts +3 -0
- package/resources/cards/index.d.ts.map +1 -0
- package/resources/cards/index.js +9 -0
- package/resources/cards/index.js.map +1 -0
- package/resources/cards/index.mjs +4 -0
- package/resources/cards/index.mjs.map +1 -0
- package/resources/cards/pin.d.mts +73 -0
- package/resources/cards/pin.d.mts.map +1 -0
- package/resources/cards/pin.d.ts +73 -0
- package/resources/cards/pin.d.ts.map +1 -0
- package/resources/cards/pin.js +32 -0
- package/resources/cards/pin.js.map +1 -0
- package/resources/cards/pin.mjs +28 -0
- package/resources/cards/pin.mjs.map +1 -0
- package/resources/cards.d.mts +2 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +2 -0
- package/resources/cards.d.ts.map +1 -0
- package/resources/cards.js +6 -0
- package/resources/cards.js.map +1 -0
- package/resources/cards.mjs +3 -0
- package/resources/cards.mjs.map +1 -0
- package/resources/companies/companies.d.mts +252 -0
- package/resources/companies/companies.d.mts.map +1 -0
- package/resources/companies/companies.d.ts +252 -0
- package/resources/companies/companies.d.ts.map +1 -0
- package/resources/companies/companies.js +69 -0
- package/resources/companies/companies.js.map +1 -0
- package/resources/companies/companies.mjs +64 -0
- package/resources/companies/companies.mjs.map +1 -0
- package/resources/companies/index.d.mts +3 -0
- package/resources/companies/index.d.mts.map +1 -0
- package/resources/companies/index.d.ts +3 -0
- package/resources/companies/index.d.ts.map +1 -0
- package/resources/companies/index.js +9 -0
- package/resources/companies/index.js.map +1 -0
- package/resources/companies/index.mjs +4 -0
- package/resources/companies/index.mjs.map +1 -0
- package/resources/companies/signatures.d.mts +122 -0
- package/resources/companies/signatures.d.mts.map +1 -0
- package/resources/companies/signatures.d.ts +122 -0
- package/resources/companies/signatures.d.ts.map +1 -0
- package/resources/companies/signatures.js +24 -0
- package/resources/companies/signatures.js.map +1 -0
- package/resources/companies/signatures.mjs +20 -0
- package/resources/companies/signatures.mjs.map +1 -0
- package/resources/companies.d.mts +2 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +2 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +6 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +3 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/contracts.d.mts +15 -0
- package/resources/contracts.d.mts.map +1 -0
- package/resources/contracts.d.ts +15 -0
- package/resources/contracts.d.ts.map +1 -0
- package/resources/contracts.js +15 -0
- package/resources/contracts.js.map +1 -0
- package/resources/contracts.mjs +11 -0
- package/resources/contracts.mjs.map +1 -0
- package/resources/disputes/disputes.d.mts +88 -0
- package/resources/disputes/disputes.d.mts.map +1 -0
- package/resources/disputes/disputes.d.ts +88 -0
- package/resources/disputes/disputes.d.ts.map +1 -0
- package/resources/disputes/disputes.js +42 -0
- package/resources/disputes/disputes.js.map +1 -0
- package/resources/disputes/disputes.mjs +37 -0
- package/resources/disputes/disputes.mjs.map +1 -0
- package/resources/disputes/evidence.d.mts +32 -0
- package/resources/disputes/evidence.d.mts.map +1 -0
- package/resources/disputes/evidence.d.ts +32 -0
- package/resources/disputes/evidence.d.ts.map +1 -0
- package/resources/disputes/evidence.js +28 -0
- package/resources/disputes/evidence.js.map +1 -0
- package/resources/disputes/evidence.mjs +24 -0
- package/resources/disputes/evidence.mjs.map +1 -0
- package/resources/disputes/index.d.mts +3 -0
- package/resources/disputes/index.d.mts.map +1 -0
- package/resources/disputes/index.d.ts +3 -0
- package/resources/disputes/index.d.ts.map +1 -0
- package/resources/disputes/index.js +9 -0
- package/resources/disputes/index.js.map +1 -0
- package/resources/disputes/index.mjs +4 -0
- package/resources/disputes/index.mjs.map +1 -0
- package/resources/disputes.d.mts +2 -0
- package/resources/disputes.d.mts.map +1 -0
- package/resources/disputes.d.ts +2 -0
- package/resources/disputes.d.ts.map +1 -0
- package/resources/disputes.js +6 -0
- package/resources/disputes.js.map +1 -0
- package/resources/disputes.mjs +3 -0
- package/resources/disputes.mjs.map +1 -0
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +27 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +13 -0
- package/resources/index.mjs.map +1 -0
- package/resources/keys.d.mts +51 -0
- package/resources/keys.d.mts.map +1 -0
- package/resources/keys.d.ts +51 -0
- package/resources/keys.d.ts.map +1 -0
- package/resources/keys.js +28 -0
- package/resources/keys.js.map +1 -0
- package/resources/keys.mjs +24 -0
- package/resources/keys.mjs.map +1 -0
- package/resources/payments.d.mts +35 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +35 -0
- package/resources/payments.d.ts.map +1 -0
- package/resources/payments.js +17 -0
- package/resources/payments.js.map +1 -0
- package/resources/payments.mjs +13 -0
- package/resources/payments.mjs.map +1 -0
- package/resources/signatures.d.mts +65 -0
- package/resources/signatures.d.mts.map +1 -0
- package/resources/signatures.d.ts +65 -0
- package/resources/signatures.d.ts.map +1 -0
- package/resources/signatures.js +23 -0
- package/resources/signatures.js.map +1 -0
- package/resources/signatures.mjs +19 -0
- package/resources/signatures.mjs.map +1 -0
- package/resources/transactions/index.d.mts +3 -0
- package/resources/transactions/index.d.mts.map +1 -0
- package/resources/transactions/index.d.ts +3 -0
- package/resources/transactions/index.d.ts.map +1 -0
- package/resources/transactions/index.js +9 -0
- package/resources/transactions/index.js.map +1 -0
- package/resources/transactions/index.mjs +4 -0
- package/resources/transactions/index.mjs.map +1 -0
- package/resources/transactions/receipt.d.mts +26 -0
- package/resources/transactions/receipt.d.mts.map +1 -0
- package/resources/transactions/receipt.d.ts +26 -0
- package/resources/transactions/receipt.d.ts.map +1 -0
- package/resources/transactions/receipt.js +30 -0
- package/resources/transactions/receipt.js.map +1 -0
- package/resources/transactions/receipt.mjs +26 -0
- package/resources/transactions/receipt.mjs.map +1 -0
- package/resources/transactions/transactions.d.mts +401 -0
- package/resources/transactions/transactions.d.mts.map +1 -0
- package/resources/transactions/transactions.d.ts +401 -0
- package/resources/transactions/transactions.d.ts.map +1 -0
- package/resources/transactions/transactions.js +52 -0
- package/resources/transactions/transactions.js.map +1 -0
- package/resources/transactions/transactions.mjs +47 -0
- package/resources/transactions/transactions.mjs.map +1 -0
- package/resources/transactions.d.mts +2 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +2 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +6 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/users/index.d.mts +3 -0
- package/resources/users/index.d.mts.map +1 -0
- package/resources/users/index.d.ts +3 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js +9 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs +4 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/users/signatures.d.mts +92 -0
- package/resources/users/signatures.d.mts.map +1 -0
- package/resources/users/signatures.d.ts +92 -0
- package/resources/users/signatures.d.ts.map +1 -0
- package/resources/users/signatures.js +51 -0
- package/resources/users/signatures.js.map +1 -0
- package/resources/users/signatures.mjs +47 -0
- package/resources/users/signatures.mjs.map +1 -0
- package/resources/users/users.d.mts +349 -0
- package/resources/users/users.d.mts.map +1 -0
- package/resources/users/users.d.ts +349 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/users/users.js +174 -0
- package/resources/users/users.js.map +1 -0
- package/resources/users/users.mjs +169 -0
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.mts +2 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +6 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.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/api-promise.ts +2 -0
- package/src/client.ts +914 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -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 +22 -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/resource.ts +2 -0
- package/src/resources/applications/applications.ts +61 -0
- package/src/resources/applications/company/company.ts +750 -0
- package/src/resources/applications/company/index.ts +15 -0
- package/src/resources/applications/company/ubo/document.ts +89 -0
- package/src/resources/applications/company/ubo/index.ts +4 -0
- package/src/resources/applications/company/ubo/ubo.ts +158 -0
- package/src/resources/applications/company/ubo.ts +3 -0
- package/src/resources/applications/company.ts +3 -0
- package/src/resources/applications/index.ts +25 -0
- package/src/resources/applications/user.ts +666 -0
- package/src/resources/applications.ts +3 -0
- package/src/resources/balances.ts +47 -0
- package/src/resources/cards/cards.ts +274 -0
- package/src/resources/cards/index.ts +14 -0
- package/src/resources/cards/pin.ts +108 -0
- package/src/resources/cards.ts +3 -0
- package/src/resources/companies/companies.ts +371 -0
- package/src/resources/companies/index.ts +23 -0
- package/src/resources/companies/signatures.ts +162 -0
- package/src/resources/companies.ts +3 -0
- package/src/resources/contracts.ts +21 -0
- package/src/resources/disputes/disputes.ts +135 -0
- package/src/resources/disputes/evidence.ts +56 -0
- package/src/resources/disputes/index.ts +10 -0
- package/src/resources/disputes.ts +3 -0
- package/src/resources/index.ts +66 -0
- package/src/resources/keys.ts +70 -0
- package/src/resources/payments.ts +47 -0
- package/src/resources/signatures.ts +91 -0
- package/src/resources/transactions/index.ts +11 -0
- package/src/resources/transactions/receipt.ts +48 -0
- package/src/resources/transactions/transactions.ts +522 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users/index.ts +20 -0
- package/src/resources/users/signatures.ts +121 -0
- package/src/resources/users/users.ts +471 -0
- package/src/resources/users.ts +3 -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,99 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class User extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Submits an application to create a consumer account for a user. The application
|
|
9
|
+
* can be submitted using a Sumsub share token, Persona share token, or directly
|
|
10
|
+
* via API. The user must provide details about their wallet, occupation, salary,
|
|
11
|
+
* and other account-related information.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const issuingUser = await client.applications.user.create({
|
|
16
|
+
* accountPurpose: 'accountPurpose',
|
|
17
|
+
* annualSalary: 'annualSalary',
|
|
18
|
+
* expectedMonthlyVolume: 'expectedMonthlyVolume',
|
|
19
|
+
* ipAddress: 'ipAddress',
|
|
20
|
+
* isTermsOfServiceAccepted: true,
|
|
21
|
+
* occupation: 'occupation',
|
|
22
|
+
* sumsubShareToken: 'sumsubShareToken',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/applications/user', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves the current status and details of a user's consumer application. This
|
|
31
|
+
* includes the user's application progress and related information.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const user = await client.applications.user.retrieve(
|
|
36
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(userID, options) {
|
|
41
|
+
return this._client.get(path `/applications/user/${userID}`, options);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Updates the application information for a user, including personal details such
|
|
45
|
+
* as name, birth date, occupation, national ID, and account purpose.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const issuingUser = await client.applications.user.update(
|
|
50
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
update(userID, body = {}, options) {
|
|
55
|
+
return this._client.patch(path `/applications/user/${userID}`, { body, ...options });
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Submits an initial application for creating a consumer account. This request
|
|
59
|
+
* gathers basic personal details of the user, including their first and last name,
|
|
60
|
+
* email address, and optional wallet address if using a Rain-managed solution or
|
|
61
|
+
* hosted completion flow.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const issuingUser =
|
|
66
|
+
* await client.applications.user.initiate();
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
initiate(body = {}, options) {
|
|
70
|
+
return this._client.post('/applications/user/initiate', { body, ...options });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Allows a user to reapply or respond to a request for additional information
|
|
74
|
+
* regarding their consumer application. This is used when the initial application
|
|
75
|
+
* needs updating or more information is required.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
reapply(userID, body, options) {
|
|
80
|
+
return this._client.put(path `/applications/user/${userID}/reapply`, { body, ...options });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Uploads a document for a user to support their consumer application. This is
|
|
84
|
+
* used to provide additional verification documents such as IDs, utility bills,
|
|
85
|
+
* and other required legal documents.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* await client.applications.user.uploadDocument(
|
|
90
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
91
|
+
* { document: fs.createReadStream('path/to/file') },
|
|
92
|
+
* );
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
uploadDocument(userID, body, options) {
|
|
96
|
+
return this._client.put(path `/applications/user/${userID}/document`, multipartFormRequestOptions({ body, ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) }, this._client));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.mjs","sourceRoot":"","sources":["../../src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,IAA8B,EAAE,OAAwB;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,sBAAsB,MAAM,WAAW,EAC3C,2BAA2B,CACzB,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,EAClF,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.d.mts","sourceRoot":"","sources":["../src/resources/applications.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../src/resources/applications.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./applications/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=applications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../src/resources/applications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.mjs","sourceRoot":"","sources":["../src/resources/applications.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Balances extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the credit balances for an authorized user tenant. This includes
|
|
7
|
+
* details such as credit limit, pending charges, posted charges, balance due, and
|
|
8
|
+
* spending power.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options?: RequestOptions): APIPromise<BalanceRetrieveResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface BalanceRetrieveResponse {
|
|
13
|
+
/**
|
|
14
|
+
* Balance due of the company, in cents
|
|
15
|
+
*/
|
|
16
|
+
balanceDue: number;
|
|
17
|
+
/**
|
|
18
|
+
* Credit limit of the company, in cents
|
|
19
|
+
*/
|
|
20
|
+
creditLimit: number;
|
|
21
|
+
/**
|
|
22
|
+
* Pending charges of the company, in cents
|
|
23
|
+
*/
|
|
24
|
+
pendingCharges: number;
|
|
25
|
+
/**
|
|
26
|
+
* Posted charges of the company, in cents
|
|
27
|
+
*/
|
|
28
|
+
postedCharges: number;
|
|
29
|
+
/**
|
|
30
|
+
* The amount of money the company can spend, in cents
|
|
31
|
+
*/
|
|
32
|
+
spendingPower: number;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace Balances {
|
|
35
|
+
export { type BalanceRetrieveResponse as BalanceRetrieveResponse };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=balances.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balances.d.mts","sourceRoot":"","sources":["../src/resources/balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGxE;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Balances extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the credit balances for an authorized user tenant. This includes
|
|
7
|
+
* details such as credit limit, pending charges, posted charges, balance due, and
|
|
8
|
+
* spending power.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options?: RequestOptions): APIPromise<BalanceRetrieveResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface BalanceRetrieveResponse {
|
|
13
|
+
/**
|
|
14
|
+
* Balance due of the company, in cents
|
|
15
|
+
*/
|
|
16
|
+
balanceDue: number;
|
|
17
|
+
/**
|
|
18
|
+
* Credit limit of the company, in cents
|
|
19
|
+
*/
|
|
20
|
+
creditLimit: number;
|
|
21
|
+
/**
|
|
22
|
+
* Pending charges of the company, in cents
|
|
23
|
+
*/
|
|
24
|
+
pendingCharges: number;
|
|
25
|
+
/**
|
|
26
|
+
* Posted charges of the company, in cents
|
|
27
|
+
*/
|
|
28
|
+
postedCharges: number;
|
|
29
|
+
/**
|
|
30
|
+
* The amount of money the company can spend, in cents
|
|
31
|
+
*/
|
|
32
|
+
spendingPower: number;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace Balances {
|
|
35
|
+
export { type BalanceRetrieveResponse as BalanceRetrieveResponse };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=balances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balances.d.ts","sourceRoot":"","sources":["../src/resources/balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGxE;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Balances = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Balances extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the credit balances for an authorized user tenant. This includes
|
|
9
|
+
* details such as credit limit, pending charges, posted charges, balance due, and
|
|
10
|
+
* spending power.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(options) {
|
|
13
|
+
return this._client.get('/balances', options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Balances = Balances;
|
|
17
|
+
//# sourceMappingURL=balances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balances.js","sourceRoot":"","sources":["../src/resources/balances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AATD,4BASC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Balances extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the credit balances for an authorized user tenant. This includes
|
|
6
|
+
* details such as credit limit, pending charges, posted charges, balance due, and
|
|
7
|
+
* spending power.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(options) {
|
|
10
|
+
return this._client.get('/balances', options);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=balances.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balances.mjs","sourceRoot":"","sources":["../src/resources/balances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as PinAPI from "./pin.mjs";
|
|
3
|
+
import { Pin, PinRetrieveParams, PinRetrieveResponse, PinUpdateParams } from "./pin.mjs";
|
|
4
|
+
import * as CompanyAPI from "../applications/company/company.mjs";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class Cards extends APIResource {
|
|
8
|
+
pin: PinAPI.Pin;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve detailed information for a specific card by its unique ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(cardID: string, options?: RequestOptions): APIPromise<IssuingCard>;
|
|
13
|
+
/**
|
|
14
|
+
* Update details for an existing card, such as status, limit, billing address, and
|
|
15
|
+
* configuration.
|
|
16
|
+
*/
|
|
17
|
+
update(cardID: string, body?: CardUpdateParams | null | undefined, options?: RequestOptions): APIPromise<IssuingCard>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves all cards associated with a user or company. You can filter by user or
|
|
20
|
+
* company ID and card status.
|
|
21
|
+
*/
|
|
22
|
+
list(query?: CardListParams | null | undefined, options?: RequestOptions): APIPromise<CardListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve the encrypted data for a specific card, including the encrypted PAN and
|
|
25
|
+
* CVC
|
|
26
|
+
*/
|
|
27
|
+
retrieveSecrets(cardID: string, params: CardRetrieveSecretsParams, options?: RequestOptions): APIPromise<CardRetrieveSecretsResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface IssuingCard {
|
|
30
|
+
/**
|
|
31
|
+
* The card's ID
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the company that issued the card
|
|
36
|
+
*/
|
|
37
|
+
companyId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The expiration month of the card
|
|
40
|
+
*/
|
|
41
|
+
expirationMonth: string;
|
|
42
|
+
/**
|
|
43
|
+
* The expiration year of the card
|
|
44
|
+
*/
|
|
45
|
+
expirationYear: string;
|
|
46
|
+
/**
|
|
47
|
+
* The last four digits of the card number
|
|
48
|
+
*/
|
|
49
|
+
last4: string;
|
|
50
|
+
/**
|
|
51
|
+
* The card's current status
|
|
52
|
+
*/
|
|
53
|
+
status: IssuingCardStatus;
|
|
54
|
+
/**
|
|
55
|
+
* The type of the card (physical or virtual)
|
|
56
|
+
*/
|
|
57
|
+
type: 'physical' | 'virtual';
|
|
58
|
+
/**
|
|
59
|
+
* The userID to whom the card was issued
|
|
60
|
+
*/
|
|
61
|
+
userId: string;
|
|
62
|
+
/**
|
|
63
|
+
* The card's spending limit
|
|
64
|
+
*/
|
|
65
|
+
limit?: IssuingCardLimit;
|
|
66
|
+
tokenWallets?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Represents the spending limit and frequency for a card.
|
|
70
|
+
*/
|
|
71
|
+
export interface IssuingCardLimit {
|
|
72
|
+
/**
|
|
73
|
+
* The maximum spending amount in cents
|
|
74
|
+
*/
|
|
75
|
+
amount: number;
|
|
76
|
+
/**
|
|
77
|
+
* The frequency at which the spending limit resets
|
|
78
|
+
*/
|
|
79
|
+
frequency: 'per24HourPeriod' | 'per7DayPeriod' | 'per30DayPeriod' | 'perYearPeriod' | 'allTime' | 'perAuthorization';
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The current status of the card
|
|
83
|
+
*/
|
|
84
|
+
export type IssuingCardStatus = 'notActivated' | 'active' | 'locked' | 'canceled';
|
|
85
|
+
export type CardListResponse = Array<IssuingCard>;
|
|
86
|
+
/**
|
|
87
|
+
* The encrypted data for the card
|
|
88
|
+
*/
|
|
89
|
+
export interface CardRetrieveSecretsResponse {
|
|
90
|
+
/**
|
|
91
|
+
* The encrypted CVC
|
|
92
|
+
*/
|
|
93
|
+
encryptedCvc: CardRetrieveSecretsResponse.EncryptedCvc;
|
|
94
|
+
/**
|
|
95
|
+
* The encrypted PAN
|
|
96
|
+
*/
|
|
97
|
+
encryptedPan: CardRetrieveSecretsResponse.EncryptedPan;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace CardRetrieveSecretsResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The encrypted CVC
|
|
102
|
+
*/
|
|
103
|
+
interface EncryptedCvc {
|
|
104
|
+
/**
|
|
105
|
+
* The encrypted data
|
|
106
|
+
*/
|
|
107
|
+
data: string;
|
|
108
|
+
/**
|
|
109
|
+
* The initialization vector
|
|
110
|
+
*/
|
|
111
|
+
iv: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The encrypted PAN
|
|
115
|
+
*/
|
|
116
|
+
interface EncryptedPan {
|
|
117
|
+
/**
|
|
118
|
+
* The encrypted data
|
|
119
|
+
*/
|
|
120
|
+
data: string;
|
|
121
|
+
/**
|
|
122
|
+
* The initialization vector
|
|
123
|
+
*/
|
|
124
|
+
iv: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export interface CardUpdateParams {
|
|
128
|
+
/**
|
|
129
|
+
* The billing address associated with the card.
|
|
130
|
+
*/
|
|
131
|
+
billing?: CompanyAPI.PhysicalAddress;
|
|
132
|
+
/**
|
|
133
|
+
* Configuration for the card, such as virtual card art
|
|
134
|
+
*/
|
|
135
|
+
configuration?: CardUpdateParams.Configuration;
|
|
136
|
+
/**
|
|
137
|
+
* The limit associated with the card
|
|
138
|
+
*/
|
|
139
|
+
limit?: IssuingCardLimit;
|
|
140
|
+
/**
|
|
141
|
+
* The current status of the card
|
|
142
|
+
*/
|
|
143
|
+
status?: IssuingCardStatus;
|
|
144
|
+
}
|
|
145
|
+
export declare namespace CardUpdateParams {
|
|
146
|
+
/**
|
|
147
|
+
* Configuration for the card, such as virtual card art
|
|
148
|
+
*/
|
|
149
|
+
interface Configuration {
|
|
150
|
+
/**
|
|
151
|
+
* The virtual card art ID used to customize the card's appearance, if applicable
|
|
152
|
+
*/
|
|
153
|
+
virtualCardArt?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export interface CardListParams {
|
|
157
|
+
/**
|
|
158
|
+
* For corporate cards, the identifier of the company to get cards for
|
|
159
|
+
*/
|
|
160
|
+
companyId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The ID of the resource after which to start fetching
|
|
163
|
+
*/
|
|
164
|
+
cursor?: string;
|
|
165
|
+
/**
|
|
166
|
+
* The number of resources to fetch
|
|
167
|
+
*/
|
|
168
|
+
limit?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Filter cards by status
|
|
171
|
+
*/
|
|
172
|
+
status?: IssuingCardStatus;
|
|
173
|
+
/**
|
|
174
|
+
* The identifier of the user to get cards for
|
|
175
|
+
*/
|
|
176
|
+
userId?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface CardRetrieveSecretsParams {
|
|
179
|
+
/**
|
|
180
|
+
* Encrypted session ID generated by the user requesting the encrypted data
|
|
181
|
+
*/
|
|
182
|
+
SessionId: string;
|
|
183
|
+
}
|
|
184
|
+
export declare namespace Cards {
|
|
185
|
+
export { type IssuingCard as IssuingCard, type IssuingCardLimit as IssuingCardLimit, type IssuingCardStatus as IssuingCardStatus, type CardListResponse as CardListResponse, type CardRetrieveSecretsResponse as CardRetrieveSecretsResponse, type CardUpdateParams as CardUpdateParams, type CardListParams as CardListParams, type CardRetrieveSecretsParams as CardRetrieveSecretsParams, };
|
|
186
|
+
export { Pin as Pin, type PinRetrieveResponse as PinRetrieveResponse, type PinRetrieveParams as PinRetrieveParams, type PinUpdateParams as PinUpdateParams, };
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=cards.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cards.d.mts","sourceRoot":"","sources":["../../src/resources/cards/cards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,GAAG,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE;OAChE,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAE/C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI3E;;;OAGG;IACH,MAAM,CACJ,MAA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AO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as PinAPI from "./pin.js";
|
|
3
|
+
import { Pin, PinRetrieveParams, PinRetrieveResponse, PinUpdateParams } from "./pin.js";
|
|
4
|
+
import * as CompanyAPI from "../applications/company/company.js";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Cards extends APIResource {
|
|
8
|
+
pin: PinAPI.Pin;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve detailed information for a specific card by its unique ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(cardID: string, options?: RequestOptions): APIPromise<IssuingCard>;
|
|
13
|
+
/**
|
|
14
|
+
* Update details for an existing card, such as status, limit, billing address, and
|
|
15
|
+
* configuration.
|
|
16
|
+
*/
|
|
17
|
+
update(cardID: string, body?: CardUpdateParams | null | undefined, options?: RequestOptions): APIPromise<IssuingCard>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves all cards associated with a user or company. You can filter by user or
|
|
20
|
+
* company ID and card status.
|
|
21
|
+
*/
|
|
22
|
+
list(query?: CardListParams | null | undefined, options?: RequestOptions): APIPromise<CardListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve the encrypted data for a specific card, including the encrypted PAN and
|
|
25
|
+
* CVC
|
|
26
|
+
*/
|
|
27
|
+
retrieveSecrets(cardID: string, params: CardRetrieveSecretsParams, options?: RequestOptions): APIPromise<CardRetrieveSecretsResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface IssuingCard {
|
|
30
|
+
/**
|
|
31
|
+
* The card's ID
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* The ID of the company that issued the card
|
|
36
|
+
*/
|
|
37
|
+
companyId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The expiration month of the card
|
|
40
|
+
*/
|
|
41
|
+
expirationMonth: string;
|
|
42
|
+
/**
|
|
43
|
+
* The expiration year of the card
|
|
44
|
+
*/
|
|
45
|
+
expirationYear: string;
|
|
46
|
+
/**
|
|
47
|
+
* The last four digits of the card number
|
|
48
|
+
*/
|
|
49
|
+
last4: string;
|
|
50
|
+
/**
|
|
51
|
+
* The card's current status
|
|
52
|
+
*/
|
|
53
|
+
status: IssuingCardStatus;
|
|
54
|
+
/**
|
|
55
|
+
* The type of the card (physical or virtual)
|
|
56
|
+
*/
|
|
57
|
+
type: 'physical' | 'virtual';
|
|
58
|
+
/**
|
|
59
|
+
* The userID to whom the card was issued
|
|
60
|
+
*/
|
|
61
|
+
userId: string;
|
|
62
|
+
/**
|
|
63
|
+
* The card's spending limit
|
|
64
|
+
*/
|
|
65
|
+
limit?: IssuingCardLimit;
|
|
66
|
+
tokenWallets?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Represents the spending limit and frequency for a card.
|
|
70
|
+
*/
|
|
71
|
+
export interface IssuingCardLimit {
|
|
72
|
+
/**
|
|
73
|
+
* The maximum spending amount in cents
|
|
74
|
+
*/
|
|
75
|
+
amount: number;
|
|
76
|
+
/**
|
|
77
|
+
* The frequency at which the spending limit resets
|
|
78
|
+
*/
|
|
79
|
+
frequency: 'per24HourPeriod' | 'per7DayPeriod' | 'per30DayPeriod' | 'perYearPeriod' | 'allTime' | 'perAuthorization';
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The current status of the card
|
|
83
|
+
*/
|
|
84
|
+
export type IssuingCardStatus = 'notActivated' | 'active' | 'locked' | 'canceled';
|
|
85
|
+
export type CardListResponse = Array<IssuingCard>;
|
|
86
|
+
/**
|
|
87
|
+
* The encrypted data for the card
|
|
88
|
+
*/
|
|
89
|
+
export interface CardRetrieveSecretsResponse {
|
|
90
|
+
/**
|
|
91
|
+
* The encrypted CVC
|
|
92
|
+
*/
|
|
93
|
+
encryptedCvc: CardRetrieveSecretsResponse.EncryptedCvc;
|
|
94
|
+
/**
|
|
95
|
+
* The encrypted PAN
|
|
96
|
+
*/
|
|
97
|
+
encryptedPan: CardRetrieveSecretsResponse.EncryptedPan;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace CardRetrieveSecretsResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The encrypted CVC
|
|
102
|
+
*/
|
|
103
|
+
interface EncryptedCvc {
|
|
104
|
+
/**
|
|
105
|
+
* The encrypted data
|
|
106
|
+
*/
|
|
107
|
+
data: string;
|
|
108
|
+
/**
|
|
109
|
+
* The initialization vector
|
|
110
|
+
*/
|
|
111
|
+
iv: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The encrypted PAN
|
|
115
|
+
*/
|
|
116
|
+
interface EncryptedPan {
|
|
117
|
+
/**
|
|
118
|
+
* The encrypted data
|
|
119
|
+
*/
|
|
120
|
+
data: string;
|
|
121
|
+
/**
|
|
122
|
+
* The initialization vector
|
|
123
|
+
*/
|
|
124
|
+
iv: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export interface CardUpdateParams {
|
|
128
|
+
/**
|
|
129
|
+
* The billing address associated with the card.
|
|
130
|
+
*/
|
|
131
|
+
billing?: CompanyAPI.PhysicalAddress;
|
|
132
|
+
/**
|
|
133
|
+
* Configuration for the card, such as virtual card art
|
|
134
|
+
*/
|
|
135
|
+
configuration?: CardUpdateParams.Configuration;
|
|
136
|
+
/**
|
|
137
|
+
* The limit associated with the card
|
|
138
|
+
*/
|
|
139
|
+
limit?: IssuingCardLimit;
|
|
140
|
+
/**
|
|
141
|
+
* The current status of the card
|
|
142
|
+
*/
|
|
143
|
+
status?: IssuingCardStatus;
|
|
144
|
+
}
|
|
145
|
+
export declare namespace CardUpdateParams {
|
|
146
|
+
/**
|
|
147
|
+
* Configuration for the card, such as virtual card art
|
|
148
|
+
*/
|
|
149
|
+
interface Configuration {
|
|
150
|
+
/**
|
|
151
|
+
* The virtual card art ID used to customize the card's appearance, if applicable
|
|
152
|
+
*/
|
|
153
|
+
virtualCardArt?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export interface CardListParams {
|
|
157
|
+
/**
|
|
158
|
+
* For corporate cards, the identifier of the company to get cards for
|
|
159
|
+
*/
|
|
160
|
+
companyId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The ID of the resource after which to start fetching
|
|
163
|
+
*/
|
|
164
|
+
cursor?: string;
|
|
165
|
+
/**
|
|
166
|
+
* The number of resources to fetch
|
|
167
|
+
*/
|
|
168
|
+
limit?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Filter cards by status
|
|
171
|
+
*/
|
|
172
|
+
status?: IssuingCardStatus;
|
|
173
|
+
/**
|
|
174
|
+
* The identifier of the user to get cards for
|
|
175
|
+
*/
|
|
176
|
+
userId?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface CardRetrieveSecretsParams {
|
|
179
|
+
/**
|
|
180
|
+
* Encrypted session ID generated by the user requesting the encrypted data
|
|
181
|
+
*/
|
|
182
|
+
SessionId: string;
|
|
183
|
+
}
|
|
184
|
+
export declare namespace Cards {
|
|
185
|
+
export { type IssuingCard as IssuingCard, type IssuingCardLimit as IssuingCardLimit, type IssuingCardStatus as IssuingCardStatus, type CardListResponse as CardListResponse, type CardRetrieveSecretsResponse as CardRetrieveSecretsResponse, type CardUpdateParams as CardUpdateParams, type CardListParams as CardListParams, type CardRetrieveSecretsParams as CardRetrieveSecretsParams, };
|
|
186
|
+
export { Pin as Pin, type PinRetrieveResponse as PinRetrieveResponse, type PinRetrieveParams as PinRetrieveParams, type PinUpdateParams as PinUpdateParams, };
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=cards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/resources/cards/cards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,GAAG,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE;OAChE,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAE/C;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI3E;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAI1B;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;OAGG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAO3C;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,C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