@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,28 @@
|
|
|
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.Evidence = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const uploads_1 = require("../../internal/uploads.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Evidence extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the file evidence associated with a dispute.
|
|
12
|
+
*/
|
|
13
|
+
list(disputeID, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/disputes/${disputeID}/evidence`, {
|
|
15
|
+
...options,
|
|
16
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
17
|
+
__binaryResponse: true,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Upload a file that will serve as evidence for a dispute.
|
|
22
|
+
*/
|
|
23
|
+
upload(disputeID, body, options) {
|
|
24
|
+
return this._client.put((0, path_1.path) `/disputes/${disputeID}/evidence`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options, headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]) }, this._client));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Evidence = Evidence;
|
|
28
|
+
//# sourceMappingURL=evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evidence.js","sourceRoot":"","sources":["../../src/resources/disputes/evidence.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,WAAW,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA0B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,aAAa,SAAS,WAAW,EACrC,IAAA,qCAA2B,EACzB,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,EAClF,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF;AAxBD,4BAwBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 Evidence extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve the file evidence associated with a dispute.
|
|
9
|
+
*/
|
|
10
|
+
list(disputeID, options) {
|
|
11
|
+
return this._client.get(path `/disputes/${disputeID}/evidence`, {
|
|
12
|
+
...options,
|
|
13
|
+
headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
14
|
+
__binaryResponse: true,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Upload a file that will serve as evidence for a dispute.
|
|
19
|
+
*/
|
|
20
|
+
upload(disputeID, body, options) {
|
|
21
|
+
return this._client.put(path `/disputes/${disputeID}/evidence`, multipartFormRequestOptions({ body, ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) }, this._client));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=evidence.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evidence.mjs","sourceRoot":"","sources":["../../src/resources/disputes/evidence.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,WAAW,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA0B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,aAAa,SAAS,WAAW,EACrC,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":"index.d.mts","sourceRoot":"","sources":["../../src/resources/disputes/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,QAAQ,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/disputes/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,QAAQ,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Evidence = exports.Disputes = void 0;
|
|
5
|
+
var disputes_1 = require("./disputes.js");
|
|
6
|
+
Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return disputes_1.Disputes; } });
|
|
7
|
+
var evidence_1 = require("./evidence.js");
|
|
8
|
+
Object.defineProperty(exports, "Evidence", { enumerable: true, get: function () { return evidence_1.Evidence; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/disputes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,0CAAiE;AAAxD,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/disputes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAKT;OACM,EAAE,QAAQ,EAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.d.mts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.d.ts","sourceRoot":"","sources":["../src/resources/disputes.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("./disputes/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=disputes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.js","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.mjs","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Applications } from "./applications/applications.mjs";
|
|
2
|
+
export { Balances, type BalanceRetrieveResponse } from "./balances.mjs";
|
|
3
|
+
export { Cards, type IssuingCard, type IssuingCardLimit, type IssuingCardStatus, type CardListResponse, type CardRetrieveSecretsResponse, type CardUpdateParams, type CardListParams, type CardRetrieveSecretsParams, } from "./cards/cards.mjs";
|
|
4
|
+
export { Companies, type IssuingChargeCreateBody, type IssuingChargeCreateResponse, type IssuingContract, type CompanyListResponse, type CompanyInitiatePaymentResponse, type CompanyRetrieveBalancesResponse, type CompanyRetrieveContractsResponse, type CompanyUpdateParams, type CompanyListParams, type CompanyChargeParams, type CompanyCreateUserParams, type CompanyInitiatePaymentParams, } from "./companies/companies.mjs";
|
|
5
|
+
export { Contracts, type ContractListResponse } from "./contracts.mjs";
|
|
6
|
+
export { Disputes, type IssuingDispute, type DisputeListResponse, type DisputeUpdateParams, type DisputeListParams, } from "./disputes/disputes.mjs";
|
|
7
|
+
export { Keys, type KeyCreateResponse, type KeyCreateParams } from "./keys.mjs";
|
|
8
|
+
export { Payments, type PaymentInitiateResponse, type PaymentInitiateParams } from "./payments.mjs";
|
|
9
|
+
export { Signatures, type SignatureRetrievePaymentSignatureParams, type SignatureRetrieveWithdrawalSignatureParams, } from "./signatures.mjs";
|
|
10
|
+
export { Transactions, type IssuingTransaction, type TransactionListResponse, type TransactionUpdateParams, type TransactionListParams, type TransactionCreateDisputeParams, } from "./transactions/transactions.mjs";
|
|
11
|
+
export { Users, type UserListResponse, type UserInitiatePaymentResponse, type UserRetrieveBalancesResponse, type UserRetrieveContractsResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserCreateCardParams, type UserCreateChargeParams, type UserInitiatePaymentParams, } from "./users/users.mjs";
|
|
12
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE;OAChB,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE;OAC1C,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B;OACM,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC;OACM,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE;OACxC,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,IAAI,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACtD,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE;OACtE,EACL,UAAU,EACV,KAAK,uCAAuC,EAC5C,KAAK,0CAA0C,GAChD;OACM,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,GACpC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Applications } from "./applications/applications.js";
|
|
2
|
+
export { Balances, type BalanceRetrieveResponse } from "./balances.js";
|
|
3
|
+
export { Cards, type IssuingCard, type IssuingCardLimit, type IssuingCardStatus, type CardListResponse, type CardRetrieveSecretsResponse, type CardUpdateParams, type CardListParams, type CardRetrieveSecretsParams, } from "./cards/cards.js";
|
|
4
|
+
export { Companies, type IssuingChargeCreateBody, type IssuingChargeCreateResponse, type IssuingContract, type CompanyListResponse, type CompanyInitiatePaymentResponse, type CompanyRetrieveBalancesResponse, type CompanyRetrieveContractsResponse, type CompanyUpdateParams, type CompanyListParams, type CompanyChargeParams, type CompanyCreateUserParams, type CompanyInitiatePaymentParams, } from "./companies/companies.js";
|
|
5
|
+
export { Contracts, type ContractListResponse } from "./contracts.js";
|
|
6
|
+
export { Disputes, type IssuingDispute, type DisputeListResponse, type DisputeUpdateParams, type DisputeListParams, } from "./disputes/disputes.js";
|
|
7
|
+
export { Keys, type KeyCreateResponse, type KeyCreateParams } from "./keys.js";
|
|
8
|
+
export { Payments, type PaymentInitiateResponse, type PaymentInitiateParams } from "./payments.js";
|
|
9
|
+
export { Signatures, type SignatureRetrievePaymentSignatureParams, type SignatureRetrieveWithdrawalSignatureParams, } from "./signatures.js";
|
|
10
|
+
export { Transactions, type IssuingTransaction, type TransactionListResponse, type TransactionUpdateParams, type TransactionListParams, type TransactionCreateDisputeParams, } from "./transactions/transactions.js";
|
|
11
|
+
export { Users, type UserListResponse, type UserInitiatePaymentResponse, type UserRetrieveBalancesResponse, type UserRetrieveContractsResponse, type UserCreateParams, type UserUpdateParams, type UserListParams, type UserCreateCardParams, type UserCreateChargeParams, type UserInitiatePaymentParams, } from "./users/users.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE;OAChB,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE;OAC1C,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B;OACM,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC;OACM,EAAE,SAAS,EAAE,KAAK,oBAAoB,EAAE;OACxC,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EAAE,IAAI,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACtD,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE;OACtE,EACL,UAAU,EACV,KAAK,uCAAuC,EAC5C,KAAK,0CAA0C,GAChD;OACM,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,GACpC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.Users = exports.Transactions = exports.Signatures = exports.Payments = exports.Keys = exports.Disputes = exports.Contracts = exports.Companies = exports.Cards = exports.Balances = exports.Applications = void 0;
|
|
5
|
+
var applications_1 = require("./applications/applications.js");
|
|
6
|
+
Object.defineProperty(exports, "Applications", { enumerable: true, get: function () { return applications_1.Applications; } });
|
|
7
|
+
var balances_1 = require("./balances.js");
|
|
8
|
+
Object.defineProperty(exports, "Balances", { enumerable: true, get: function () { return balances_1.Balances; } });
|
|
9
|
+
var cards_1 = require("./cards/cards.js");
|
|
10
|
+
Object.defineProperty(exports, "Cards", { enumerable: true, get: function () { return cards_1.Cards; } });
|
|
11
|
+
var companies_1 = require("./companies/companies.js");
|
|
12
|
+
Object.defineProperty(exports, "Companies", { enumerable: true, get: function () { return companies_1.Companies; } });
|
|
13
|
+
var contracts_1 = require("./contracts.js");
|
|
14
|
+
Object.defineProperty(exports, "Contracts", { enumerable: true, get: function () { return contracts_1.Contracts; } });
|
|
15
|
+
var disputes_1 = require("./disputes/disputes.js");
|
|
16
|
+
Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return disputes_1.Disputes; } });
|
|
17
|
+
var keys_1 = require("./keys.js");
|
|
18
|
+
Object.defineProperty(exports, "Keys", { enumerable: true, get: function () { return keys_1.Keys; } });
|
|
19
|
+
var payments_1 = require("./payments.js");
|
|
20
|
+
Object.defineProperty(exports, "Payments", { enumerable: true, get: function () { return payments_1.Payments; } });
|
|
21
|
+
var signatures_1 = require("./signatures.js");
|
|
22
|
+
Object.defineProperty(exports, "Signatures", { enumerable: true, get: function () { return signatures_1.Signatures; } });
|
|
23
|
+
var transactions_1 = require("./transactions/transactions.js");
|
|
24
|
+
Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return transactions_1.Transactions; } });
|
|
25
|
+
var users_1 = require("./users/users.js");
|
|
26
|
+
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,0CAAoE;AAA3D,oGAAA,QAAQ,OAAA;AACjB,0CAUuB;AATrB,8FAAA,KAAK,OAAA;AAUP,sDAc+B;AAb7B,sGAAA,SAAS,OAAA;AAcX,4CAAmE;AAA1D,sGAAA,SAAS,OAAA;AAClB,mDAM6B;AAL3B,oGAAA,QAAQ,OAAA;AAMV,kCAA4E;AAAnE,4FAAA,IAAI,OAAA;AACb,0CAAgG;AAAvF,oGAAA,QAAQ,OAAA;AACjB,8CAIsB;AAHpB,wGAAA,UAAU,OAAA;AAIZ,+DAOqC;AANnC,4GAAA,YAAY,OAAA;AAOd,0CAYuB;AAXrB,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Applications } from "./applications/applications.mjs";
|
|
3
|
+
export { Balances } from "./balances.mjs";
|
|
4
|
+
export { Cards, } from "./cards/cards.mjs";
|
|
5
|
+
export { Companies, } from "./companies/companies.mjs";
|
|
6
|
+
export { Contracts } from "./contracts.mjs";
|
|
7
|
+
export { Disputes, } from "./disputes/disputes.mjs";
|
|
8
|
+
export { Keys } from "./keys.mjs";
|
|
9
|
+
export { Payments } from "./payments.mjs";
|
|
10
|
+
export { Signatures, } from "./signatures.mjs";
|
|
11
|
+
export { Transactions, } from "./transactions/transactions.mjs";
|
|
12
|
+
export { Users, } from "./users/users.mjs";
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAE;OAChB,EAAE,QAAQ,EAAgC;OAC1C,EACL,KAAK,GASN;OACM,EACL,SAAS,GAaV;OACM,EAAE,SAAS,EAA6B;OACxC,EACL,QAAQ,GAKT;OACM,EAAE,IAAI,EAAgD;OACtD,EAAE,QAAQ,EAA4D;OACtE,EACL,UAAU,GAGX;OACM,EACL,YAAY,GAMb;OACM,EACL,KAAK,GAWN"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 Keys extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint allows for the creation of a new key with a specified name and
|
|
7
|
+
* expiration time. The key is used for various security operations within the
|
|
8
|
+
* system.
|
|
9
|
+
*/
|
|
10
|
+
create(body: KeyCreateParams, options?: RequestOptions): APIPromise<KeyCreateResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint allows for the deletion of a specific key using its unique ID.
|
|
13
|
+
*/
|
|
14
|
+
delete(keyID: string, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents a unique key used for issuing, typically used for authentication or
|
|
18
|
+
* encryption purposes.
|
|
19
|
+
*/
|
|
20
|
+
export interface KeyCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The key's unique identifier
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The expiration date and time of the key
|
|
27
|
+
*/
|
|
28
|
+
expiresAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* The actual key used for the issuing process
|
|
31
|
+
*/
|
|
32
|
+
key: string;
|
|
33
|
+
/**
|
|
34
|
+
* The name assigned to the key
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
export interface KeyCreateParams {
|
|
39
|
+
/**
|
|
40
|
+
* The expiration timestamp of the key
|
|
41
|
+
*/
|
|
42
|
+
expiresAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the key being created
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Keys {
|
|
49
|
+
export { type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=keys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.mts","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMlE;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 Keys extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint allows for the creation of a new key with a specified name and
|
|
7
|
+
* expiration time. The key is used for various security operations within the
|
|
8
|
+
* system.
|
|
9
|
+
*/
|
|
10
|
+
create(body: KeyCreateParams, options?: RequestOptions): APIPromise<KeyCreateResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint allows for the deletion of a specific key using its unique ID.
|
|
13
|
+
*/
|
|
14
|
+
delete(keyID: string, options?: RequestOptions): APIPromise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents a unique key used for issuing, typically used for authentication or
|
|
18
|
+
* encryption purposes.
|
|
19
|
+
*/
|
|
20
|
+
export interface KeyCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The key's unique identifier
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The expiration date and time of the key
|
|
27
|
+
*/
|
|
28
|
+
expiresAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* The actual key used for the issuing process
|
|
31
|
+
*/
|
|
32
|
+
key: string;
|
|
33
|
+
/**
|
|
34
|
+
* The name assigned to the key
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
export interface KeyCreateParams {
|
|
39
|
+
/**
|
|
40
|
+
* The expiration timestamp of the key
|
|
41
|
+
*/
|
|
42
|
+
expiresAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the key being created
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Keys {
|
|
49
|
+
export { type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMlE;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.Keys = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class Keys extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint allows for the creation of a new key with a specified name and
|
|
11
|
+
* expiration time. The key is used for various security operations within the
|
|
12
|
+
* system.
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/keys', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* This endpoint allows for the deletion of a specific key using its unique ID.
|
|
19
|
+
*/
|
|
20
|
+
delete(keyID, options) {
|
|
21
|
+
return this._client.delete((0, path_1.path) `/keys/${keyID}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Keys = Keys;
|
|
28
|
+
//# sourceMappingURL=keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;OAIG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,SAAS,KAAK,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,oBAmBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class Keys extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* This endpoint allows for the creation of a new key with a specified name and
|
|
8
|
+
* expiration time. The key is used for various security operations within the
|
|
9
|
+
* system.
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return this._client.post('/keys', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This endpoint allows for the deletion of a specific key using its unique ID.
|
|
16
|
+
*/
|
|
17
|
+
delete(keyID, options) {
|
|
18
|
+
return this._client.delete(path `/keys/${keyID}`, {
|
|
19
|
+
...options,
|
|
20
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=keys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.mjs","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,SAAS,KAAK,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Payments extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint initiates a payment for an authorized user tenant. The request
|
|
7
|
+
* includes the amount to be transferred and the wallet address to send the payment
|
|
8
|
+
* from.
|
|
9
|
+
*/
|
|
10
|
+
initiate(body: PaymentInitiateParams, options?: RequestOptions): APIPromise<PaymentInitiateResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface PaymentInitiateResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The address to send the payment to
|
|
15
|
+
*/
|
|
16
|
+
address: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PaymentInitiateParams {
|
|
19
|
+
/**
|
|
20
|
+
* The amount of the payment, in cents
|
|
21
|
+
*/
|
|
22
|
+
amount: number;
|
|
23
|
+
/**
|
|
24
|
+
* The wallet address the payment is being sent from
|
|
25
|
+
*/
|
|
26
|
+
walletAddress: string;
|
|
27
|
+
/**
|
|
28
|
+
* The chain ID (base-10 number) that the payment transaction is on
|
|
29
|
+
*/
|
|
30
|
+
chainId?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace Payments {
|
|
33
|
+
export { type PaymentInitiateResponse as PaymentInitiateResponse, type PaymentInitiateParams as PaymentInitiateParams, };
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=payments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.mts","sourceRoot":"","sources":["../src/resources/payments.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,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGrG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Payments extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint initiates a payment for an authorized user tenant. The request
|
|
7
|
+
* includes the amount to be transferred and the wallet address to send the payment
|
|
8
|
+
* from.
|
|
9
|
+
*/
|
|
10
|
+
initiate(body: PaymentInitiateParams, options?: RequestOptions): APIPromise<PaymentInitiateResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface PaymentInitiateResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The address to send the payment to
|
|
15
|
+
*/
|
|
16
|
+
address: string;
|
|
17
|
+
}
|
|
18
|
+
export interface PaymentInitiateParams {
|
|
19
|
+
/**
|
|
20
|
+
* The amount of the payment, in cents
|
|
21
|
+
*/
|
|
22
|
+
amount: number;
|
|
23
|
+
/**
|
|
24
|
+
* The wallet address the payment is being sent from
|
|
25
|
+
*/
|
|
26
|
+
walletAddress: string;
|
|
27
|
+
/**
|
|
28
|
+
* The chain ID (base-10 number) that the payment transaction is on
|
|
29
|
+
*/
|
|
30
|
+
chainId?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace Payments {
|
|
33
|
+
export { type PaymentInitiateResponse as PaymentInitiateResponse, type PaymentInitiateParams as PaymentInitiateParams, };
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.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,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGrG;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -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.Payments = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Payments extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint initiates a payment for an authorized user tenant. The request
|
|
9
|
+
* includes the amount to be transferred and the wallet address to send the payment
|
|
10
|
+
* from.
|
|
11
|
+
*/
|
|
12
|
+
initiate(body, options) {
|
|
13
|
+
return this._client.post('/payments', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Payments = Payments;
|
|
17
|
+
//# sourceMappingURL=payments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,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 Payments extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint initiates a payment for an authorized user tenant. The request
|
|
6
|
+
* includes the amount to be transferred and the wallet address to send the payment
|
|
7
|
+
* from.
|
|
8
|
+
*/
|
|
9
|
+
initiate(body, options) {
|
|
10
|
+
return this._client.post('/payments', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=payments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,QAAQ,CAAC,IAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as CompaniesSignaturesAPI from "./companies/signatures.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Signatures extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* This endpoint retrieves the payment signature for an authorized user tenant. The
|
|
8
|
+
* signature is used to authorize a payment transaction on a blockchain.
|
|
9
|
+
*/
|
|
10
|
+
retrievePaymentSignature(query: SignatureRetrievePaymentSignatureParams, options?: RequestOptions): APIPromise<CompaniesSignaturesAPI.IssuingSignature>;
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint retrieves the withdrawal signature for an authorized user tenant.
|
|
13
|
+
* The signature is used to authorize a withdrawal transaction on a blockchain.
|
|
14
|
+
*/
|
|
15
|
+
retrieveWithdrawalSignature(query: SignatureRetrieveWithdrawalSignatureParams, options?: RequestOptions): APIPromise<CompaniesSignaturesAPI.IssuingSignature>;
|
|
16
|
+
}
|
|
17
|
+
export interface SignatureRetrievePaymentSignatureParams {
|
|
18
|
+
/**
|
|
19
|
+
* The address of the token that the payment should be made in, as a hex string for
|
|
20
|
+
* EVM or base58 string for Solana
|
|
21
|
+
*/
|
|
22
|
+
token: string;
|
|
23
|
+
/**
|
|
24
|
+
* The address of the admin making the payment, as a hex string for EVM or base58
|
|
25
|
+
* string for Solana
|
|
26
|
+
*/
|
|
27
|
+
adminAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
* The amount of token that is being paid
|
|
30
|
+
*/
|
|
31
|
+
amount: string;
|
|
32
|
+
/**
|
|
33
|
+
* The chain ID (base-10 number) that the smart contract is deployed on
|
|
34
|
+
*/
|
|
35
|
+
chainId?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface SignatureRetrieveWithdrawalSignatureParams {
|
|
38
|
+
/**
|
|
39
|
+
* The address of the token that the withdrawal should be made in, as a hex string
|
|
40
|
+
* for EVM or base58 string for Solana
|
|
41
|
+
*/
|
|
42
|
+
token: string;
|
|
43
|
+
/**
|
|
44
|
+
* The address of the admin making the payment, as a hex string for EVM or base58
|
|
45
|
+
* string for Solana
|
|
46
|
+
*/
|
|
47
|
+
adminAddress: string;
|
|
48
|
+
/**
|
|
49
|
+
* The amount of token that is being withdrawn
|
|
50
|
+
*/
|
|
51
|
+
amount: string;
|
|
52
|
+
/**
|
|
53
|
+
* The address the withdrawal should be sent to, as a hex string for EVM or base58
|
|
54
|
+
* string for Solana
|
|
55
|
+
*/
|
|
56
|
+
recipientAddress: string;
|
|
57
|
+
/**
|
|
58
|
+
* The chain ID (base-10 number) that the smart contract is deployed on
|
|
59
|
+
*/
|
|
60
|
+
chainId?: number;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace Signatures {
|
|
63
|
+
export { type SignatureRetrievePaymentSignatureParams as SignatureRetrievePaymentSignatureParams, type SignatureRetrieveWithdrawalSignatureParams as SignatureRetrieveWithdrawalSignatureParams, };
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=signatures.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatures.d.mts","sourceRoot":"","sources":["../src/resources/signatures.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,sBAAsB;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,wBAAwB,CACtB,KAAK,EAAE,uCAAuC,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC,gBAAgB,CAAC;IAItD;;;OAGG;IACH,2BAA2B,CACzB,KAAK,EAAE,0CAA0C,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC,gBAAgB,CAAC;CAGvD;AAED,MAAM,WAAW,uCAAuC;IACtD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0CAA0C;IACzD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,0CAA0C,IAAI,0CAA0C,GAC9F,CAAC;CACH"}
|