@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,507 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as CompanyAPI from "./company/company.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { type Uploadable } from "../../core/uploads.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare 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: UserCreateParams, options?: RequestOptions): APIPromise<IssuingUser>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves the current status and details of a user's consumer application. This
|
|
29
|
+
* includes the user's application progress and related information.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const user = await client.applications.user.retrieve(
|
|
34
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(userID: string, options?: RequestOptions): APIPromise<UserRetrieveResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Updates the application information for a user, including personal details such
|
|
41
|
+
* as name, birth date, occupation, national ID, and account purpose.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const issuingUser = await client.applications.user.update(
|
|
46
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
update(userID: string, body?: UserUpdateParams | null | undefined, options?: RequestOptions): APIPromise<IssuingUser>;
|
|
51
|
+
/**
|
|
52
|
+
* Submits an initial application for creating a consumer account. This request
|
|
53
|
+
* gathers basic personal details of the user, including their first and last name,
|
|
54
|
+
* email address, and optional wallet address if using a Rain-managed solution or
|
|
55
|
+
* hosted completion flow.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const issuingUser =
|
|
60
|
+
* await client.applications.user.initiate();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
initiate(body?: UserInitiateParams | null | undefined, options?: RequestOptions): APIPromise<IssuingUser>;
|
|
64
|
+
/**
|
|
65
|
+
* Allows a user to reapply or respond to a request for additional information
|
|
66
|
+
* regarding their consumer application. This is used when the initial application
|
|
67
|
+
* needs updating or more information is required.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated
|
|
70
|
+
*/
|
|
71
|
+
reapply(userID: string, body: UserReapplyParams, options?: RequestOptions): APIPromise<IssuingUser>;
|
|
72
|
+
/**
|
|
73
|
+
* Uploads a document for a user to support their consumer application. This is
|
|
74
|
+
* used to provide additional verification documents such as IDs, utility bills,
|
|
75
|
+
* and other required legal documents.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* await client.applications.user.uploadDocument(
|
|
80
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
81
|
+
* { document: fs.createReadStream('path/to/file') },
|
|
82
|
+
* );
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
uploadDocument(userID: string, body: UserUploadDocumentParams, options?: RequestOptions): APIPromise<void>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The details of an issuing application.
|
|
89
|
+
*/
|
|
90
|
+
export interface IssuingUser extends CompanyAPI.IssuingApplication {
|
|
91
|
+
/**
|
|
92
|
+
* The user's unique identifier
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* The user's email address
|
|
97
|
+
*/
|
|
98
|
+
email: string;
|
|
99
|
+
/**
|
|
100
|
+
* The user's first name
|
|
101
|
+
*/
|
|
102
|
+
firstName: string;
|
|
103
|
+
/**
|
|
104
|
+
* Indicates whether the user account is active
|
|
105
|
+
*/
|
|
106
|
+
isActive: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Indicates whether the user has accepted the terms of service
|
|
109
|
+
*/
|
|
110
|
+
isTermsOfServiceAccepted: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The user's last name
|
|
113
|
+
*/
|
|
114
|
+
lastName: string;
|
|
115
|
+
/**
|
|
116
|
+
* The user's address
|
|
117
|
+
*/
|
|
118
|
+
address?: CompanyAPI.PhysicalAddress;
|
|
119
|
+
/**
|
|
120
|
+
* The identifier of the company the user belongs to, if applicable
|
|
121
|
+
*/
|
|
122
|
+
companyId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The country code for the user's phone number
|
|
125
|
+
*/
|
|
126
|
+
phoneCountryCode?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The user's phone number
|
|
129
|
+
*/
|
|
130
|
+
phoneNumber?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* The details of an issuing application.
|
|
134
|
+
*/
|
|
135
|
+
export interface UserRetrieveResponse extends CompanyAPI.IssuingApplication {
|
|
136
|
+
/**
|
|
137
|
+
* The identifier of the user's application
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
140
|
+
}
|
|
141
|
+
export type UserCreateParams = UserCreateParams.UsingSumsubShareToken | UserCreateParams.UsingPersonaShareToken | UserCreateParams.UsingAPI;
|
|
142
|
+
export declare namespace UserCreateParams {
|
|
143
|
+
interface UsingSumsubShareToken {
|
|
144
|
+
/**
|
|
145
|
+
* The purpose of the user's account
|
|
146
|
+
*/
|
|
147
|
+
accountPurpose: string;
|
|
148
|
+
/**
|
|
149
|
+
* The user's annual salary
|
|
150
|
+
*/
|
|
151
|
+
annualSalary: string;
|
|
152
|
+
/**
|
|
153
|
+
* The estimated monthly spending amount for the user
|
|
154
|
+
*/
|
|
155
|
+
expectedMonthlyVolume: string;
|
|
156
|
+
/**
|
|
157
|
+
* This user's IP address
|
|
158
|
+
*/
|
|
159
|
+
ipAddress: string;
|
|
160
|
+
/**
|
|
161
|
+
* Indicates whether the user has accepted the terms of service
|
|
162
|
+
*/
|
|
163
|
+
isTermsOfServiceAccepted: true;
|
|
164
|
+
/**
|
|
165
|
+
* The user's occupation
|
|
166
|
+
*/
|
|
167
|
+
occupation: string;
|
|
168
|
+
/**
|
|
169
|
+
* The Sumsub share token used for user verification
|
|
170
|
+
*/
|
|
171
|
+
sumsubShareToken: string;
|
|
172
|
+
/**
|
|
173
|
+
* The chain ID of the user's external collateral contract, if applicable. Not
|
|
174
|
+
* required when using Rain's collateral contracts.
|
|
175
|
+
*/
|
|
176
|
+
chainId?: string;
|
|
177
|
+
/**
|
|
178
|
+
* The address of the user's external collateral contract, if applicable. Not
|
|
179
|
+
* required when using Rain's collateral contracts.
|
|
180
|
+
*/
|
|
181
|
+
contractAddress?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Indicates whether the user will use existing documents for additional
|
|
184
|
+
* verification
|
|
185
|
+
*/
|
|
186
|
+
hasExistingDocuments?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* The user's Solana address. Either walletAddress or solanaAddress is required if
|
|
189
|
+
* using a Rain-managed solution, but optional otherwise.
|
|
190
|
+
*/
|
|
191
|
+
solanaAddress?: string;
|
|
192
|
+
/**
|
|
193
|
+
* A unique identifier for the source of this user.
|
|
194
|
+
*/
|
|
195
|
+
sourceKey?: string;
|
|
196
|
+
/**
|
|
197
|
+
* The user's Ethereum Virtual Machine (EVM) address. Either walletAddress or
|
|
198
|
+
* solanaAddress is required if using a Rain-managed solution, but optional
|
|
199
|
+
* otherwise.
|
|
200
|
+
*/
|
|
201
|
+
walletAddress?: string;
|
|
202
|
+
}
|
|
203
|
+
interface UsingPersonaShareToken {
|
|
204
|
+
/**
|
|
205
|
+
* The purpose of the user's account
|
|
206
|
+
*/
|
|
207
|
+
accountPurpose: string;
|
|
208
|
+
/**
|
|
209
|
+
* The user's annual salary
|
|
210
|
+
*/
|
|
211
|
+
annualSalary: string;
|
|
212
|
+
/**
|
|
213
|
+
* The estimated monthly spending amount for the user
|
|
214
|
+
*/
|
|
215
|
+
expectedMonthlyVolume: string;
|
|
216
|
+
/**
|
|
217
|
+
* This user's IP address
|
|
218
|
+
*/
|
|
219
|
+
ipAddress: string;
|
|
220
|
+
/**
|
|
221
|
+
* Indicates whether the user has accepted the terms of service
|
|
222
|
+
*/
|
|
223
|
+
isTermsOfServiceAccepted: true;
|
|
224
|
+
/**
|
|
225
|
+
* The user's occupation
|
|
226
|
+
*/
|
|
227
|
+
occupation: string;
|
|
228
|
+
/**
|
|
229
|
+
* The Persona inquiry ID
|
|
230
|
+
*/
|
|
231
|
+
personaShareToken: string;
|
|
232
|
+
/**
|
|
233
|
+
* The chain ID of the user's external collateral contract, if applicable. Not
|
|
234
|
+
* required when using Rain's collateral contracts.
|
|
235
|
+
*/
|
|
236
|
+
chainId?: string;
|
|
237
|
+
/**
|
|
238
|
+
* The address of the user's external collateral contract, if applicable. Not
|
|
239
|
+
* required when using Rain's collateral contracts.
|
|
240
|
+
*/
|
|
241
|
+
contractAddress?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Indicates whether the user will use existing documents for additional
|
|
244
|
+
* verification
|
|
245
|
+
*/
|
|
246
|
+
hasExistingDocuments?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* The user's Solana address. Either walletAddress or solanaAddress is required if
|
|
249
|
+
* using a Rain-managed solution, but optional otherwise.
|
|
250
|
+
*/
|
|
251
|
+
solanaAddress?: string;
|
|
252
|
+
/**
|
|
253
|
+
* A unique identifier for the source of this user.
|
|
254
|
+
*/
|
|
255
|
+
sourceKey?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The user's Ethereum Virtual Machine (EVM) address. Either walletAddress or
|
|
258
|
+
* solanaAddress is required if using a Rain-managed solution, but optional
|
|
259
|
+
* otherwise.
|
|
260
|
+
*/
|
|
261
|
+
walletAddress?: string;
|
|
262
|
+
}
|
|
263
|
+
interface UsingAPI {
|
|
264
|
+
/**
|
|
265
|
+
* The purpose of the user's account
|
|
266
|
+
*/
|
|
267
|
+
accountPurpose: string;
|
|
268
|
+
/**
|
|
269
|
+
* The person's address
|
|
270
|
+
*/
|
|
271
|
+
address: CompanyAPI.PhysicalAddress;
|
|
272
|
+
/**
|
|
273
|
+
* The user's annual salary
|
|
274
|
+
*/
|
|
275
|
+
annualSalary: string;
|
|
276
|
+
/**
|
|
277
|
+
* The person's birth date
|
|
278
|
+
*/
|
|
279
|
+
birthDate: string;
|
|
280
|
+
/**
|
|
281
|
+
* The 2-digit country code of the person's national ID issuer
|
|
282
|
+
*/
|
|
283
|
+
countryOfIssue: string;
|
|
284
|
+
/**
|
|
285
|
+
* The user's email address
|
|
286
|
+
*/
|
|
287
|
+
email: string;
|
|
288
|
+
/**
|
|
289
|
+
* The estimated monthly spending amount for the user
|
|
290
|
+
*/
|
|
291
|
+
expectedMonthlyVolume: string;
|
|
292
|
+
/**
|
|
293
|
+
* The person's first name
|
|
294
|
+
*/
|
|
295
|
+
firstName: string;
|
|
296
|
+
/**
|
|
297
|
+
* This user's IP address
|
|
298
|
+
*/
|
|
299
|
+
ipAddress: string;
|
|
300
|
+
/**
|
|
301
|
+
* Indicates whether the user has accepted the terms of service
|
|
302
|
+
*/
|
|
303
|
+
isTermsOfServiceAccepted: true;
|
|
304
|
+
/**
|
|
305
|
+
* The person's last name
|
|
306
|
+
*/
|
|
307
|
+
lastName: string;
|
|
308
|
+
/**
|
|
309
|
+
* The person's national ID number. For the US, this is a 9-digit SSN
|
|
310
|
+
*/
|
|
311
|
+
nationalId: string;
|
|
312
|
+
/**
|
|
313
|
+
* The user's occupation
|
|
314
|
+
*/
|
|
315
|
+
occupation: string;
|
|
316
|
+
/**
|
|
317
|
+
* The person's unique identifier
|
|
318
|
+
*/
|
|
319
|
+
id?: string;
|
|
320
|
+
/**
|
|
321
|
+
* The chain ID of the user's external collateral contract, if applicable. Not
|
|
322
|
+
* required when using Rain's collateral contracts.
|
|
323
|
+
*/
|
|
324
|
+
chainId?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The address of the user's external collateral contract, if applicable. Not
|
|
327
|
+
* required when using Rain's collateral contracts.
|
|
328
|
+
*/
|
|
329
|
+
contractAddress?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Indicates whether the user will use existing documents for additional
|
|
332
|
+
* verification
|
|
333
|
+
*/
|
|
334
|
+
hasExistingDocuments?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* The country code for the phone number
|
|
337
|
+
*/
|
|
338
|
+
phoneCountryCode?: string;
|
|
339
|
+
/**
|
|
340
|
+
* The phone number of the person
|
|
341
|
+
*/
|
|
342
|
+
phoneNumber?: string;
|
|
343
|
+
/**
|
|
344
|
+
* The user's Solana address. Either walletAddress or solanaAddress is required if
|
|
345
|
+
* using a Rain-managed solution, but optional otherwise.
|
|
346
|
+
*/
|
|
347
|
+
solanaAddress?: string;
|
|
348
|
+
/**
|
|
349
|
+
* A unique identifier for the source of this user.
|
|
350
|
+
*/
|
|
351
|
+
sourceKey?: string;
|
|
352
|
+
/**
|
|
353
|
+
* The user's Ethereum Virtual Machine (EVM) address. Either walletAddress or
|
|
354
|
+
* solanaAddress is required if using a Rain-managed solution, but optional
|
|
355
|
+
* otherwise.
|
|
356
|
+
*/
|
|
357
|
+
walletAddress?: string;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
export interface UserUpdateParams {
|
|
361
|
+
/**
|
|
362
|
+
* The purpose of the user's account
|
|
363
|
+
*/
|
|
364
|
+
accountPurpose?: string;
|
|
365
|
+
/**
|
|
366
|
+
* The user's address
|
|
367
|
+
*/
|
|
368
|
+
address?: CompanyAPI.PhysicalAddress;
|
|
369
|
+
/**
|
|
370
|
+
* The user's annual salary
|
|
371
|
+
*/
|
|
372
|
+
annualSalary?: string;
|
|
373
|
+
/**
|
|
374
|
+
* The user's birth date
|
|
375
|
+
*/
|
|
376
|
+
birthDate?: string;
|
|
377
|
+
/**
|
|
378
|
+
* The 2-digit country code of the user's national ID issuer
|
|
379
|
+
*/
|
|
380
|
+
countryOfIssue?: string;
|
|
381
|
+
/**
|
|
382
|
+
* The estimated monthly spending amount for the user
|
|
383
|
+
*/
|
|
384
|
+
expectedMonthlyVolume?: string;
|
|
385
|
+
/**
|
|
386
|
+
* The user's first name
|
|
387
|
+
*/
|
|
388
|
+
firstName?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Indicates whether the user will use existing documents for additional
|
|
391
|
+
* verification
|
|
392
|
+
*/
|
|
393
|
+
hasExistingDocuments?: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* The user's IP address
|
|
396
|
+
*/
|
|
397
|
+
ipAddress?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Indicates whether the user has accepted the terms of service
|
|
400
|
+
*/
|
|
401
|
+
isTermsOfServiceAccepted?: true;
|
|
402
|
+
/**
|
|
403
|
+
* The user's last name
|
|
404
|
+
*/
|
|
405
|
+
lastName?: string;
|
|
406
|
+
/**
|
|
407
|
+
* The user's national ID number. For the US, this is a 9-digit SSN.
|
|
408
|
+
*/
|
|
409
|
+
nationalId?: string;
|
|
410
|
+
/**
|
|
411
|
+
* The user's occupation
|
|
412
|
+
*/
|
|
413
|
+
occupation?: string;
|
|
414
|
+
}
|
|
415
|
+
export interface UserInitiateParams {
|
|
416
|
+
/**
|
|
417
|
+
* The user's email address
|
|
418
|
+
*/
|
|
419
|
+
email?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The user's first name
|
|
422
|
+
*/
|
|
423
|
+
firstName?: string;
|
|
424
|
+
/**
|
|
425
|
+
* The user's last name
|
|
426
|
+
*/
|
|
427
|
+
lastName?: string;
|
|
428
|
+
/**
|
|
429
|
+
* The user's wallet address. Required if using the hosted completion flow and a
|
|
430
|
+
* Rain-managed solution. Not required otherwise.
|
|
431
|
+
*/
|
|
432
|
+
walletAddress?: string;
|
|
433
|
+
}
|
|
434
|
+
export interface UserReapplyParams {
|
|
435
|
+
/**
|
|
436
|
+
* The purpose of the user's account
|
|
437
|
+
*/
|
|
438
|
+
accountPurpose: string;
|
|
439
|
+
/**
|
|
440
|
+
* The user's address
|
|
441
|
+
*/
|
|
442
|
+
address: CompanyAPI.PhysicalAddress;
|
|
443
|
+
/**
|
|
444
|
+
* The user's annual salary
|
|
445
|
+
*/
|
|
446
|
+
annualSalary: string;
|
|
447
|
+
/**
|
|
448
|
+
* The user's birth date
|
|
449
|
+
*/
|
|
450
|
+
birthDate: string;
|
|
451
|
+
/**
|
|
452
|
+
* The 2-digit country code of the user's national ID issuer
|
|
453
|
+
*/
|
|
454
|
+
countryOfIssue: string;
|
|
455
|
+
/**
|
|
456
|
+
* The estimated monthly spending amount for the user
|
|
457
|
+
*/
|
|
458
|
+
expectedMonthlyVolume: string;
|
|
459
|
+
/**
|
|
460
|
+
* The user's IP address
|
|
461
|
+
*/
|
|
462
|
+
ipAddress: string;
|
|
463
|
+
/**
|
|
464
|
+
* Indicates whether the user has accepted the terms of service
|
|
465
|
+
*/
|
|
466
|
+
isTermsOfServiceAccepted: true;
|
|
467
|
+
/**
|
|
468
|
+
* The user's national ID number. For the US, this is a 9-digit SSN
|
|
469
|
+
*/
|
|
470
|
+
nationalId: string;
|
|
471
|
+
/**
|
|
472
|
+
* The user's occupation
|
|
473
|
+
*/
|
|
474
|
+
occupation: string;
|
|
475
|
+
/**
|
|
476
|
+
* Indicates whether the user will use existing documents for additional
|
|
477
|
+
* verification
|
|
478
|
+
*/
|
|
479
|
+
hasExistingDocuments?: boolean;
|
|
480
|
+
}
|
|
481
|
+
export interface UserUploadDocumentParams {
|
|
482
|
+
/**
|
|
483
|
+
* The actual document file to be uploaded. The document must be in binary format,
|
|
484
|
+
* and the maximum allowed size is 20 MB.
|
|
485
|
+
*/
|
|
486
|
+
document: Uploadable;
|
|
487
|
+
/**
|
|
488
|
+
* The country where the document was issued
|
|
489
|
+
*/
|
|
490
|
+
country?: string;
|
|
491
|
+
/**
|
|
492
|
+
* The name or title of the document being uploaded
|
|
493
|
+
*/
|
|
494
|
+
name?: string;
|
|
495
|
+
/**
|
|
496
|
+
* The side of the document being uploaded
|
|
497
|
+
*/
|
|
498
|
+
side?: 'front' | 'back';
|
|
499
|
+
/**
|
|
500
|
+
* The type of the document being uploaded
|
|
501
|
+
*/
|
|
502
|
+
type?: 'idCard' | 'passport' | 'drivers' | 'residencePermit' | 'utilityBill' | 'selfie' | 'videoSelfie' | 'profileImage' | 'idDocPhoto' | 'agreement' | 'contract' | 'driversTranslation' | 'investorDoc' | 'vehicleRegistrationCertificate' | 'incomeSource' | 'paymentMethod' | 'bankCard' | 'covidVaccinationForm' | 'other';
|
|
503
|
+
}
|
|
504
|
+
export declare namespace User {
|
|
505
|
+
export { type IssuingUser as IssuingUser, type UserRetrieveResponse as UserRetrieveResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserInitiateParams as UserInitiateParams, type UserReapplyParams as UserReapplyParams, type UserUploadDocumentParams as UserUploadDocumentParams, };
|
|
506
|
+
}
|
|
507
|
+
//# sourceMappingURL=user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../../src/resources/applications/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIjF;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIpF;;;;;;;;;;OAUG;IACH,MAAM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