rehive 3.1.3 → 4.0.0
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/README.md +211 -494
- package/dist/admin.d.mts +31284 -0
- package/dist/admin.d.ts +31284 -0
- package/dist/admin.js +1 -0
- package/dist/admin.mjs +1 -0
- package/dist/auth.d.mts +23 -0
- package/dist/auth.d.ts +23 -0
- package/dist/auth.js +1 -0
- package/dist/auth.mjs +1 -0
- package/dist/chunk-53JJUQ4V.js +1 -0
- package/dist/chunk-5MRX4DHT.js +1 -0
- package/dist/chunk-7WWCXCY2.mjs +1 -0
- package/dist/chunk-HF5XDXOU.mjs +1 -0
- package/dist/chunk-NFN3B6SG.mjs +1 -0
- package/dist/chunk-OEIQFP6T.js +1 -0
- package/dist/chunk-Q2ZX3WFY.mjs +7 -0
- package/dist/chunk-QWQ6ZENI.js +1 -0
- package/dist/chunk-RKDIBDG6.js +7 -0
- package/dist/chunk-S4QKN5WW.mjs +1 -0
- package/dist/chunk-UYUMXTPF.js +7 -0
- package/dist/chunk-V277OEVY.mjs +7 -0
- package/dist/create-api-client-BMeX50D6.d.ts +25 -0
- package/dist/create-api-client-BrsH1l8c.d.mts +25 -0
- package/dist/create-auth-UTklIOTc.d.mts +18340 -0
- package/dist/create-auth-UTklIOTc.d.ts +18340 -0
- package/dist/extensions/alchemy.d.mts +1114 -0
- package/dist/extensions/alchemy.d.ts +1114 -0
- package/dist/extensions/alchemy.js +7 -0
- package/dist/extensions/alchemy.mjs +7 -0
- package/dist/extensions/app.d.mts +2042 -0
- package/dist/extensions/app.d.ts +2042 -0
- package/dist/extensions/app.js +7 -0
- package/dist/extensions/app.mjs +7 -0
- package/dist/extensions/billing.d.mts +828 -0
- package/dist/extensions/billing.d.ts +828 -0
- package/dist/extensions/billing.js +7 -0
- package/dist/extensions/billing.mjs +7 -0
- package/dist/extensions/bridge.d.mts +2028 -0
- package/dist/extensions/bridge.d.ts +2028 -0
- package/dist/extensions/bridge.js +7 -0
- package/dist/extensions/bridge.mjs +7 -0
- package/dist/extensions/builder.d.mts +542 -0
- package/dist/extensions/builder.d.ts +542 -0
- package/dist/extensions/builder.js +7 -0
- package/dist/extensions/builder.mjs +7 -0
- package/dist/extensions/business.d.mts +8972 -0
- package/dist/extensions/business.d.ts +8972 -0
- package/dist/extensions/business.js +7 -0
- package/dist/extensions/business.mjs +7 -0
- package/dist/extensions/conversion.d.mts +2786 -0
- package/dist/extensions/conversion.d.ts +2786 -0
- package/dist/extensions/conversion.js +7 -0
- package/dist/extensions/conversion.mjs +7 -0
- package/dist/extensions/mass-send.d.mts +1294 -0
- package/dist/extensions/mass-send.d.ts +1294 -0
- package/dist/extensions/mass-send.js +7 -0
- package/dist/extensions/mass-send.mjs +7 -0
- package/dist/extensions/notifications.d.mts +2035 -0
- package/dist/extensions/notifications.d.ts +2035 -0
- package/dist/extensions/notifications.js +7 -0
- package/dist/extensions/notifications.mjs +7 -0
- package/dist/extensions/payment-requests.d.mts +3746 -0
- package/dist/extensions/payment-requests.d.ts +3746 -0
- package/dist/extensions/payment-requests.js +7 -0
- package/dist/extensions/payment-requests.mjs +7 -0
- package/dist/extensions/products.d.mts +10092 -0
- package/dist/extensions/products.d.ts +10092 -0
- package/dist/extensions/products.js +7 -0
- package/dist/extensions/products.mjs +7 -0
- package/dist/extensions/rain.d.mts +1896 -0
- package/dist/extensions/rain.d.ts +1896 -0
- package/dist/extensions/rain.js +7 -0
- package/dist/extensions/rain.mjs +7 -0
- package/dist/extensions/rewards.d.mts +2038 -0
- package/dist/extensions/rewards.d.ts +2038 -0
- package/dist/extensions/rewards.js +7 -0
- package/dist/extensions/rewards.mjs +7 -0
- package/dist/extensions/stellar-testnet.d.mts +3922 -0
- package/dist/extensions/stellar-testnet.d.ts +3922 -0
- package/dist/extensions/stellar-testnet.js +7 -0
- package/dist/extensions/stellar-testnet.mjs +7 -0
- package/dist/extensions/stellar.d.mts +3922 -0
- package/dist/extensions/stellar.d.ts +3922 -0
- package/dist/extensions/stellar.js +7 -0
- package/dist/extensions/stellar.mjs +7 -0
- package/dist/index.d.mts +6 -61050
- package/dist/index.d.ts +6 -61050
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +8 -61087
- package/dist/react.d.ts +8 -61087
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +1347 -0
- package/dist/user.d.ts +1347 -0
- package/dist/user.js +1 -0
- package/dist/user.mjs +1 -0
- package/package.json +99 -32
- package/src/auth/core/storage-adapters.ts +58 -0
- package/src/auth/create-auth.ts +563 -0
- package/src/auth/index.ts +4 -0
- package/src/auth/types/index.ts +28 -0
- package/src/extensions/alchemy/create-api.ts +13 -0
- package/src/extensions/alchemy/index.ts +3 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/alchemy/openapi-ts/client/index.ts +25 -0
- package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/alchemy/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/alchemy/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/alchemy/openapi-ts/index.ts +4 -0
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +179 -0
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +851 -0
- package/src/extensions/app/create-api.ts +13 -0
- package/src/extensions/app/index.ts +3 -0
- package/src/extensions/app/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/app/openapi-ts/client/index.ts +25 -0
- package/src/extensions/app/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/app/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/app/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/app/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/app/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/app/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/app/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/app/openapi-ts/index.ts +4 -0
- package/src/extensions/app/openapi-ts/sdk.gen.ts +539 -0
- package/src/extensions/app/openapi-ts/types.gen.ts +1702 -0
- package/src/extensions/billing/create-api.ts +13 -0
- package/src/extensions/billing/index.ts +3 -0
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/billing/openapi-ts/client/index.ts +25 -0
- package/src/extensions/billing/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/billing/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/billing/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/billing/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/billing/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/billing/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/billing/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/billing/openapi-ts/index.ts +4 -0
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +155 -0
- package/src/extensions/billing/openapi-ts/types.gen.ts +508 -0
- package/src/extensions/bridge/create-api.ts +13 -0
- package/src/extensions/bridge/index.ts +3 -0
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/bridge/openapi-ts/client/index.ts +25 -0
- package/src/extensions/bridge/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/bridge/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/bridge/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/bridge/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/bridge/openapi-ts/index.ts +4 -0
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +383 -0
- package/src/extensions/bridge/openapi-ts/types.gen.ts +1855 -0
- package/src/extensions/builder/create-api.ts +13 -0
- package/src/extensions/builder/index.ts +3 -0
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/builder/openapi-ts/client/index.ts +25 -0
- package/src/extensions/builder/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/builder/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/builder/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/builder/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/builder/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/builder/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/builder/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/builder/openapi-ts/index.ts +4 -0
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +60 -0
- package/src/extensions/builder/openapi-ts/types.gen.ts +215 -0
- package/src/extensions/business/create-api.ts +13 -0
- package/src/extensions/business/index.ts +3 -0
- package/src/extensions/business/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/business/openapi-ts/client/index.ts +25 -0
- package/src/extensions/business/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/business/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/business/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/business/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/business/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/business/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/business/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/business/openapi-ts/index.ts +4 -0
- package/src/extensions/business/openapi-ts/sdk.gen.ts +903 -0
- package/src/extensions/business/openapi-ts/types.gen.ts +8718 -0
- package/src/extensions/conversion/create-api.ts +13 -0
- package/src/extensions/conversion/index.ts +3 -0
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/conversion/openapi-ts/client/index.ts +25 -0
- package/src/extensions/conversion/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/conversion/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/conversion/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/conversion/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/conversion/openapi-ts/index.ts +4 -0
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +684 -0
- package/src/extensions/conversion/openapi-ts/types.gen.ts +2467 -0
- package/src/extensions/mass-send/create-api.ts +13 -0
- package/src/extensions/mass-send/index.ts +3 -0
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/mass-send/openapi-ts/client/index.ts +25 -0
- package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/mass-send/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/mass-send/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/mass-send/openapi-ts/index.ts +4 -0
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +270 -0
- package/src/extensions/mass-send/openapi-ts/types.gen.ts +988 -0
- package/src/extensions/notifications/create-api.ts +13 -0
- package/src/extensions/notifications/index.ts +3 -0
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/notifications/openapi-ts/client/index.ts +25 -0
- package/src/extensions/notifications/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/notifications/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/notifications/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/notifications/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/notifications/openapi-ts/index.ts +4 -0
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +450 -0
- package/src/extensions/notifications/openapi-ts/types.gen.ts +1732 -0
- package/src/extensions/payment-requests/create-api.ts +13 -0
- package/src/extensions/payment-requests/index.ts +3 -0
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +25 -0
- package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/payment-requests/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/payment-requests/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/payment-requests/openapi-ts/index.ts +4 -0
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +845 -0
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +3415 -0
- package/src/extensions/products/create-api.ts +13 -0
- package/src/extensions/products/index.ts +3 -0
- package/src/extensions/products/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/products/openapi-ts/client/index.ts +25 -0
- package/src/extensions/products/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/products/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/products/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/products/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/products/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/products/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/products/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/products/openapi-ts/index.ts +4 -0
- package/src/extensions/products/openapi-ts/sdk.gen.ts +2619 -0
- package/src/extensions/products/openapi-ts/types.gen.ts +9717 -0
- package/src/extensions/rain/create-api.ts +13 -0
- package/src/extensions/rain/index.ts +3 -0
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rain/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rain/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rain/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rain/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rain/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rain/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rain/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rain/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rain/openapi-ts/index.ts +4 -0
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +227 -0
- package/src/extensions/rain/openapi-ts/types.gen.ts +1660 -0
- package/src/extensions/rewards/create-api.ts +13 -0
- package/src/extensions/rewards/index.ts +3 -0
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rewards/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rewards/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rewards/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rewards/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rewards/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rewards/openapi-ts/index.ts +4 -0
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +345 -0
- package/src/extensions/rewards/openapi-ts/types.gen.ts +1718 -0
- package/src/extensions/stellar/create-api.ts +13 -0
- package/src/extensions/stellar/index.ts +3 -0
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar/openapi-ts/types.gen.ts +3543 -0
- package/src/extensions/stellar-testnet/create-api.ts +13 -0
- package/src/extensions/stellar-testnet/index.ts +3 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar-testnet/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar-testnet/openapi-ts/types.gen.ts +3543 -0
- package/src/platform/admin/create-api.ts +11 -0
- package/src/platform/admin/index.ts +3 -42
- package/src/platform/admin/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/admin/openapi-ts/client/index.ts +25 -0
- package/src/platform/admin/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/admin/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/admin/openapi-ts/client.gen.ts +16 -0
- package/src/platform/admin/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/admin/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/admin/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/admin/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/admin/openapi-ts/index.ts +4 -0
- package/src/platform/admin/openapi-ts/sdk.gen.ts +3975 -0
- package/src/platform/admin/openapi-ts/types.gen.ts +31193 -0
- package/src/platform/user/create-api.ts +11 -0
- package/src/platform/user/index.ts +3 -42
- package/src/platform/user/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/user/openapi-ts/client/index.ts +25 -0
- package/src/platform/user/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/user/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/user/openapi-ts/client.gen.ts +16 -0
- package/src/platform/user/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/user/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/user/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/user/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/user/openapi-ts/index.ts +4 -0
- package/src/platform/user/openapi-ts/sdk.gen.ts +2090 -0
- package/src/platform/user/openapi-ts/types.gen.ts +19540 -0
- package/src/shared/api-utils.ts +22 -0
- package/src/shared/bind-sdk.ts +48 -0
- package/src/shared/create-api-client.ts +54 -0
- package/src/extensions/app/http-client.ts +0 -1
- package/src/extensions/app/rehive-app-api.ts +0 -1827
- package/src/extensions/bridge/rehive-bridge-api.ts +0 -1436
- package/src/extensions/business/rehive-business-api.ts +0 -9480
- package/src/extensions/conversion/rehive-conversion-api.ts +0 -3054
- package/src/extensions/mass-send/rehive-mass-send-api.ts +0 -1061
- package/src/extensions/notifications/rehive-notifications-api.ts +0 -1964
- package/src/extensions/payment-requests/rehive-payment-requests-api.ts +0 -4026
- package/src/extensions/products/rehive-products-api.ts +0 -13107
- package/src/extensions/rewards/rehive-rewards-api.ts +0 -2139
- package/src/extensions/stellar/rehive-stellar-api.ts +0 -4219
- package/src/extensions/stellar-testnet/rehive-stellar-testnet-api.ts +0 -4219
- package/src/platform/admin/rehive-platform-admin-api.ts +0 -35075
- package/src/platform/user/rehive-platform-user-api.ts +0 -21554
|
@@ -1,1436 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/** This serializer can be used if only a `status` is required in the response. */
|
|
14
|
-
export interface ActionResponse {
|
|
15
|
-
status: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Serialize the activation data, should be a token that represents an admin
|
|
20
|
-
* user.
|
|
21
|
-
*/
|
|
22
|
-
export interface Activate {
|
|
23
|
-
token: string;
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
/** @format uuid */
|
|
27
|
-
secret: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* A ModelSerializer that takes additional arguments for
|
|
32
|
-
* "fields", "omit" and "expand" in order to
|
|
33
|
-
* control which fields are displayed, and whether to replace simple
|
|
34
|
-
* values with complex, nested serializations
|
|
35
|
-
*/
|
|
36
|
-
export interface AdminCard {
|
|
37
|
-
id: string;
|
|
38
|
-
currency: Currency;
|
|
39
|
-
account: string | null;
|
|
40
|
-
bridge_id: string | null;
|
|
41
|
-
user: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* A ModelSerializer that takes additional arguments for
|
|
46
|
-
* "fields", "omit" and "expand" in order to
|
|
47
|
-
* control which fields are displayed, and whether to replace simple
|
|
48
|
-
* values with complex, nested serializations
|
|
49
|
-
*/
|
|
50
|
-
export interface AdminCompany {
|
|
51
|
-
id: string;
|
|
52
|
-
/** @format uuid */
|
|
53
|
-
secret: string;
|
|
54
|
-
/**
|
|
55
|
-
* * `test` - Test
|
|
56
|
-
* * `production` - Production
|
|
57
|
-
*/
|
|
58
|
-
mode: "test" | "production";
|
|
59
|
-
bridge_api_key: string;
|
|
60
|
-
bridge_webhook_id: string | null;
|
|
61
|
-
admin_user_bridge_id: string | null;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface AdminCompanyResponse {
|
|
65
|
-
status: string;
|
|
66
|
-
/**
|
|
67
|
-
* A ModelSerializer that takes additional arguments for
|
|
68
|
-
* "fields", "omit" and "expand" in order to
|
|
69
|
-
* control which fields are displayed, and whether to replace simple
|
|
70
|
-
* values with complex, nested serializations
|
|
71
|
-
*/
|
|
72
|
-
data: AdminCompany;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface AdminCryptoReturnPolicy {
|
|
76
|
-
id: string;
|
|
77
|
-
refund_destination_address?: string | null;
|
|
78
|
-
refund_destination_blockchain_memo?: string | null;
|
|
79
|
-
refund_destination_chain?: string | null;
|
|
80
|
-
refund_destination_currency?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* * `refund_to_sender` - refund_to_sender
|
|
83
|
-
* * `static_address` - static_address
|
|
84
|
-
*/
|
|
85
|
-
strategy: "refund_to_sender" | "static_address";
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export type AdminCryptoReturnPolicyList = AdminCryptoReturnPolicy[];
|
|
89
|
-
|
|
90
|
-
export interface AdminCryptoReturnPolicyListResponse {
|
|
91
|
-
status: string;
|
|
92
|
-
data: AdminCryptoReturnPolicyList;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface AdminCryptoReturnPolicyResponse {
|
|
96
|
-
status: string;
|
|
97
|
-
data: AdminCryptoReturnPolicy;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A ModelSerializer that takes additional arguments for
|
|
102
|
-
* "fields", "omit" and "expand" in order to
|
|
103
|
-
* control which fields are displayed, and whether to replace simple
|
|
104
|
-
* values with complex, nested serializations
|
|
105
|
-
*/
|
|
106
|
-
export interface AdminCurrency {
|
|
107
|
-
code: string;
|
|
108
|
-
/** * `usdc` - Usdc */
|
|
109
|
-
bridge_code?: "usdc";
|
|
110
|
-
/** * `solana` - Solana */
|
|
111
|
-
bridge_chain?: "solana";
|
|
112
|
-
display_code: string | null;
|
|
113
|
-
description: string | null;
|
|
114
|
-
symbol: string | null;
|
|
115
|
-
unit: string | null;
|
|
116
|
-
divisibility: number;
|
|
117
|
-
manager: string | null;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface AdminCurrencyResponse {
|
|
121
|
-
status: string;
|
|
122
|
-
/**
|
|
123
|
-
* A ModelSerializer that takes additional arguments for
|
|
124
|
-
* "fields", "omit" and "expand" in order to
|
|
125
|
-
* control which fields are displayed, and whether to replace simple
|
|
126
|
-
* values with complex, nested serializations
|
|
127
|
-
*/
|
|
128
|
-
data: AdminCurrency;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* A ModelSerializer that takes additional arguments for
|
|
133
|
-
* "fields", "omit" and "expand" in order to
|
|
134
|
-
* control which fields are displayed, and whether to replace simple
|
|
135
|
-
* values with complex, nested serializations
|
|
136
|
-
*/
|
|
137
|
-
export interface AdminExtendedCard {
|
|
138
|
-
id: string;
|
|
139
|
-
currency: Currency;
|
|
140
|
-
account: string | null;
|
|
141
|
-
bridge_id: string | null;
|
|
142
|
-
client_reference_id: string;
|
|
143
|
-
card_image_url: string;
|
|
144
|
-
status: string;
|
|
145
|
-
status_reason: string;
|
|
146
|
-
card_details: Record<string, any>;
|
|
147
|
-
balances: Record<string, any>;
|
|
148
|
-
freezes: Record<string, any>;
|
|
149
|
-
funding_instructions: Record<string, any>;
|
|
150
|
-
user: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface AdminExtendedCardResponse {
|
|
154
|
-
status: string;
|
|
155
|
-
/**
|
|
156
|
-
* A ModelSerializer that takes additional arguments for
|
|
157
|
-
* "fields", "omit" and "expand" in order to
|
|
158
|
-
* control which fields are displayed, and whether to replace simple
|
|
159
|
-
* values with complex, nested serializations
|
|
160
|
-
*/
|
|
161
|
-
data: AdminExtendedCard;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* A ModelSerializer that takes additional arguments for
|
|
166
|
-
* "fields", "omit" and "expand" in order to
|
|
167
|
-
* control which fields are displayed, and whether to replace simple
|
|
168
|
-
* values with complex, nested serializations
|
|
169
|
-
*/
|
|
170
|
-
export interface AdminPaymentProcessorQuote {
|
|
171
|
-
id: string;
|
|
172
|
-
/** @maxLength 256 */
|
|
173
|
-
account?: string | null;
|
|
174
|
-
currency: Record<string, any>;
|
|
175
|
-
/**
|
|
176
|
-
* @format decimal
|
|
177
|
-
* @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
|
|
178
|
-
*/
|
|
179
|
-
amount?: string | null;
|
|
180
|
-
/** @format date-time */
|
|
181
|
-
expiration_date?: string | null;
|
|
182
|
-
payer_user?: Record<string, any>;
|
|
183
|
-
/**
|
|
184
|
-
* * `bank` - Bank
|
|
185
|
-
* * `wallet` - Wallet
|
|
186
|
-
* * `crypto` - Crypto
|
|
187
|
-
*/
|
|
188
|
-
processor_type: "bank" | "wallet" | "crypto";
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface AdminPaymentProcessorQuoteResponse {
|
|
192
|
-
reference: string;
|
|
193
|
-
account: string;
|
|
194
|
-
deposit_details: Record<string, any>;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface AdminPaymentProcessorQuoteResponseResponse {
|
|
198
|
-
status: string;
|
|
199
|
-
data: AdminPaymentProcessorQuoteResponse;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* A ModelSerializer that takes additional arguments for
|
|
204
|
-
* "fields", "omit" and "expand" in order to
|
|
205
|
-
* control which fields are displayed, and whether to replace simple
|
|
206
|
-
* values with complex, nested serializations
|
|
207
|
-
*/
|
|
208
|
-
export interface AdminUpdateCompany {
|
|
209
|
-
id: string;
|
|
210
|
-
/** @format uuid */
|
|
211
|
-
secret: string;
|
|
212
|
-
/**
|
|
213
|
-
* * `test` - Test
|
|
214
|
-
* * `production` - Production
|
|
215
|
-
*/
|
|
216
|
-
mode: "test" | "production";
|
|
217
|
-
bridge_api_key?: string;
|
|
218
|
-
bridge_webhook_id: string | null;
|
|
219
|
-
/** @maxLength 64 */
|
|
220
|
-
admin_user_bridge_id?: string | null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* A ModelSerializer that takes additional arguments for
|
|
225
|
-
* "fields", "omit" and "expand" in order to
|
|
226
|
-
* control which fields are displayed, and whether to replace simple
|
|
227
|
-
* values with complex, nested serializations
|
|
228
|
-
*/
|
|
229
|
-
export interface AdminWallet {
|
|
230
|
-
id: string;
|
|
231
|
-
user: string;
|
|
232
|
-
currency: Currency;
|
|
233
|
-
account: string | null;
|
|
234
|
-
bridge_id: string | null;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface AdminWalletResponse {
|
|
238
|
-
status: string;
|
|
239
|
-
/**
|
|
240
|
-
* A ModelSerializer that takes additional arguments for
|
|
241
|
-
* "fields", "omit" and "expand" in order to
|
|
242
|
-
* control which fields are displayed, and whether to replace simple
|
|
243
|
-
* values with complex, nested serializations
|
|
244
|
-
*/
|
|
245
|
-
data: AdminWallet;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export interface BridgeWebhook {
|
|
249
|
-
event_id: string;
|
|
250
|
-
event_category: string;
|
|
251
|
-
event_type: string;
|
|
252
|
-
event_object_id: string;
|
|
253
|
-
event_object_status?: string | null;
|
|
254
|
-
event_object_changes?: Record<string, any>;
|
|
255
|
-
event_object: Record<string, any>;
|
|
256
|
-
event_created_at: string;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* A ModelSerializer that takes additional arguments for
|
|
261
|
-
* "fields", "omit" and "expand" in order to
|
|
262
|
-
* control which fields are displayed, and whether to replace simple
|
|
263
|
-
* values with complex, nested serializations
|
|
264
|
-
*/
|
|
265
|
-
export interface Currency {
|
|
266
|
-
/** @maxLength 32 */
|
|
267
|
-
code: string;
|
|
268
|
-
/** * `usdc` - Usdc */
|
|
269
|
-
bridge_code?: "usdc";
|
|
270
|
-
/** * `solana` - Solana */
|
|
271
|
-
bridge_chain?: "solana";
|
|
272
|
-
/** @maxLength 32 */
|
|
273
|
-
display_code?: string | null;
|
|
274
|
-
/** @maxLength 256 */
|
|
275
|
-
description?: string | null;
|
|
276
|
-
/** @maxLength 32 */
|
|
277
|
-
symbol?: string | null;
|
|
278
|
-
/** @maxLength 32 */
|
|
279
|
-
unit?: string | null;
|
|
280
|
-
/**
|
|
281
|
-
* @min -2147483648
|
|
282
|
-
* @max 2147483647
|
|
283
|
-
*/
|
|
284
|
-
divisibility?: number;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Serialize the deactivation data, should be a token that represents an admin
|
|
289
|
-
* user.
|
|
290
|
-
*/
|
|
291
|
-
export interface Deactivate {
|
|
292
|
-
token: string;
|
|
293
|
-
/** @default false */
|
|
294
|
-
purge?: boolean;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export interface PaginatedAdminCardList {
|
|
298
|
-
/** @example 123 */
|
|
299
|
-
count?: number;
|
|
300
|
-
/**
|
|
301
|
-
* @format uri
|
|
302
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
303
|
-
*/
|
|
304
|
-
next?: string | null;
|
|
305
|
-
/**
|
|
306
|
-
* @format uri
|
|
307
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
308
|
-
*/
|
|
309
|
-
previous?: string | null;
|
|
310
|
-
results?: AdminCard[];
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export interface PaginatedAdminCardListResponse {
|
|
314
|
-
status: string;
|
|
315
|
-
data: PaginatedAdminCardList;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export interface PaginatedAdminCurrencyList {
|
|
319
|
-
/** @example 123 */
|
|
320
|
-
count?: number;
|
|
321
|
-
/**
|
|
322
|
-
* @format uri
|
|
323
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
324
|
-
*/
|
|
325
|
-
next?: string | null;
|
|
326
|
-
/**
|
|
327
|
-
* @format uri
|
|
328
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
329
|
-
*/
|
|
330
|
-
previous?: string | null;
|
|
331
|
-
results?: AdminCurrency[];
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export interface PaginatedAdminCurrencyListResponse {
|
|
335
|
-
status: string;
|
|
336
|
-
data: PaginatedAdminCurrencyList;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export interface PaginatedAdminWalletList {
|
|
340
|
-
/** @example 123 */
|
|
341
|
-
count?: number;
|
|
342
|
-
/**
|
|
343
|
-
* @format uri
|
|
344
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
345
|
-
*/
|
|
346
|
-
next?: string | null;
|
|
347
|
-
/**
|
|
348
|
-
* @format uri
|
|
349
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
350
|
-
*/
|
|
351
|
-
previous?: string | null;
|
|
352
|
-
results?: AdminWallet[];
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface PaginatedAdminWalletListResponse {
|
|
356
|
-
status: string;
|
|
357
|
-
data: PaginatedAdminWalletList;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface PatchedAdminCryptoReturnPolicy {
|
|
361
|
-
id?: string;
|
|
362
|
-
refund_destination_address?: string | null;
|
|
363
|
-
refund_destination_blockchain_memo?: string | null;
|
|
364
|
-
refund_destination_chain?: string | null;
|
|
365
|
-
refund_destination_currency?: string | null;
|
|
366
|
-
/**
|
|
367
|
-
* * `refund_to_sender` - refund_to_sender
|
|
368
|
-
* * `static_address` - static_address
|
|
369
|
-
*/
|
|
370
|
-
strategy?: "refund_to_sender" | "static_address";
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* A ModelSerializer that takes additional arguments for
|
|
375
|
-
* "fields", "omit" and "expand" in order to
|
|
376
|
-
* control which fields are displayed, and whether to replace simple
|
|
377
|
-
* values with complex, nested serializations
|
|
378
|
-
*/
|
|
379
|
-
export interface PatchedAdminCurrency {
|
|
380
|
-
code?: string;
|
|
381
|
-
/** * `usdc` - Usdc */
|
|
382
|
-
bridge_code?: "usdc";
|
|
383
|
-
/** * `solana` - Solana */
|
|
384
|
-
bridge_chain?: "solana";
|
|
385
|
-
display_code?: string | null;
|
|
386
|
-
description?: string | null;
|
|
387
|
-
symbol?: string | null;
|
|
388
|
-
unit?: string | null;
|
|
389
|
-
divisibility?: number;
|
|
390
|
-
manager?: string | null;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* A ModelSerializer that takes additional arguments for
|
|
395
|
-
* "fields", "omit" and "expand" in order to
|
|
396
|
-
* control which fields are displayed, and whether to replace simple
|
|
397
|
-
* values with complex, nested serializations
|
|
398
|
-
*/
|
|
399
|
-
export interface PatchedAdminUpdateCompany {
|
|
400
|
-
id?: string;
|
|
401
|
-
/** @format uuid */
|
|
402
|
-
secret?: string;
|
|
403
|
-
/**
|
|
404
|
-
* * `test` - Test
|
|
405
|
-
* * `production` - Production
|
|
406
|
-
*/
|
|
407
|
-
mode?: "test" | "production";
|
|
408
|
-
bridge_api_key?: string;
|
|
409
|
-
bridge_webhook_id?: string | null;
|
|
410
|
-
/** @maxLength 64 */
|
|
411
|
-
admin_user_bridge_id?: string | null;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* A ModelSerializer that takes additional arguments for
|
|
416
|
-
* "fields", "omit" and "expand" in order to
|
|
417
|
-
* control which fields are displayed, and whether to replace simple
|
|
418
|
-
* values with complex, nested serializations
|
|
419
|
-
*/
|
|
420
|
-
export interface PatchedUser {
|
|
421
|
-
id?: string;
|
|
422
|
-
bridge_id?: string;
|
|
423
|
-
bridge_signed_agreement_id?: string;
|
|
424
|
-
business_id?: string;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* A ModelSerializer that takes additional arguments for
|
|
429
|
-
* "fields", "omit" and "expand" in order to
|
|
430
|
-
* control which fields are displayed, and whether to replace simple
|
|
431
|
-
* values with complex, nested serializations
|
|
432
|
-
*/
|
|
433
|
-
export interface User {
|
|
434
|
-
id: string;
|
|
435
|
-
bridge_id: string;
|
|
436
|
-
bridge_signed_agreement_id: string;
|
|
437
|
-
business_id: string;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export interface UserCreateCustomerKYCLink {
|
|
441
|
-
/**
|
|
442
|
-
* * `individual` - Individual
|
|
443
|
-
* * `business` - Business
|
|
444
|
-
* @default "individual"
|
|
445
|
-
*/
|
|
446
|
-
customer_type?: "individual" | "business";
|
|
447
|
-
/** @format uri */
|
|
448
|
-
redirect_uri?: string | null;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export interface UserCryptoDeposit {
|
|
452
|
-
account_currency: string;
|
|
453
|
-
/**
|
|
454
|
-
* * `solana` - Solana
|
|
455
|
-
* * `base` - Base
|
|
456
|
-
* * `ethereum` - Ethereum
|
|
457
|
-
* * `stellar` - Stellar
|
|
458
|
-
* * `tron` - Tron
|
|
459
|
-
* * `polygon` - Polygon
|
|
460
|
-
* * `arbitrum` - Arbitrum
|
|
461
|
-
* * `optimism` - Optimism
|
|
462
|
-
*/
|
|
463
|
-
chain:
|
|
464
|
-
| "solana"
|
|
465
|
-
| "base"
|
|
466
|
-
| "ethereum"
|
|
467
|
-
| "stellar"
|
|
468
|
-
| "tron"
|
|
469
|
-
| "polygon"
|
|
470
|
-
| "arbitrum"
|
|
471
|
-
| "optimism";
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export interface UserCryptoDepositResponse {
|
|
475
|
-
chain: string;
|
|
476
|
-
currency: string;
|
|
477
|
-
address: string;
|
|
478
|
-
memo: string;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export interface UserCryptoDepositResponseResponse {
|
|
482
|
-
status: string;
|
|
483
|
-
data: UserCryptoDepositResponse;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export interface UserCustomerKYCLink {
|
|
487
|
-
kyc: Record<string, any>;
|
|
488
|
-
tos: Record<string, any>;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export interface UserCustomerKYCLinkResponse {
|
|
492
|
-
status: string;
|
|
493
|
-
data: UserCustomerKYCLink;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export interface UserResponse {
|
|
497
|
-
status: string;
|
|
498
|
-
/**
|
|
499
|
-
* A ModelSerializer that takes additional arguments for
|
|
500
|
-
* "fields", "omit" and "expand" in order to
|
|
501
|
-
* control which fields are displayed, and whether to replace simple
|
|
502
|
-
* values with complex, nested serializations
|
|
503
|
-
*/
|
|
504
|
-
data: User;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export interface Webhook {
|
|
508
|
-
id: string;
|
|
509
|
-
/**
|
|
510
|
-
* * `account.currency.create` - Account Currency Create
|
|
511
|
-
* * `bank_account.create` - Bank Account Create
|
|
512
|
-
* * `bank_account.update` - Bank Account Update
|
|
513
|
-
* * `currency.create` - Currency Create
|
|
514
|
-
* * `currency.update` - Currency Update
|
|
515
|
-
* * `transaction.initiate` - Transaction Initiate
|
|
516
|
-
* * `transaction.transition.update` - Transaction Transition Update
|
|
517
|
-
* * `user.update` - User Update
|
|
518
|
-
*/
|
|
519
|
-
event:
|
|
520
|
-
| "account.currency.create"
|
|
521
|
-
| "bank_account.create"
|
|
522
|
-
| "bank_account.update"
|
|
523
|
-
| "currency.create"
|
|
524
|
-
| "currency.update"
|
|
525
|
-
| "transaction.initiate"
|
|
526
|
-
| "transaction.transition.update"
|
|
527
|
-
| "user.update";
|
|
528
|
-
company: string;
|
|
529
|
-
data: Record<string, any>;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export type ActivateCreateData = ActionResponse;
|
|
533
|
-
|
|
534
|
-
export interface AdminCardsListParams {
|
|
535
|
-
account?: string;
|
|
536
|
-
bridge_id?: string;
|
|
537
|
-
currency?: string;
|
|
538
|
-
/** A page number within the paginated result set. */
|
|
539
|
-
page?: number;
|
|
540
|
-
/** Number of results to return per page. */
|
|
541
|
-
page_size?: number;
|
|
542
|
-
user?: string;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export type AdminCardsListData = PaginatedAdminCardListResponse;
|
|
546
|
-
|
|
547
|
-
export type AdminCardsRetrieveData = AdminExtendedCardResponse;
|
|
548
|
-
|
|
549
|
-
export type AdminCompanyRetrieveData = AdminCompanyResponse;
|
|
550
|
-
|
|
551
|
-
export type AdminCompanyUpdateData = AdminCompanyResponse;
|
|
552
|
-
|
|
553
|
-
export type AdminCompanyPartialUpdateData = AdminCompanyResponse;
|
|
554
|
-
|
|
555
|
-
export type AdminCryptoReturnPoliciesListData =
|
|
556
|
-
AdminCryptoReturnPolicyListResponse;
|
|
557
|
-
|
|
558
|
-
export type AdminCryptoReturnPoliciesCreateData =
|
|
559
|
-
AdminCryptoReturnPolicyResponse;
|
|
560
|
-
|
|
561
|
-
export type AdminCryptoReturnPoliciesRetrieveData =
|
|
562
|
-
AdminCryptoReturnPolicyResponse;
|
|
563
|
-
|
|
564
|
-
export type AdminCryptoReturnPoliciesUpdateData =
|
|
565
|
-
AdminCryptoReturnPolicyResponse;
|
|
566
|
-
|
|
567
|
-
export type AdminCryptoReturnPoliciesPartialUpdateData =
|
|
568
|
-
AdminCryptoReturnPolicyResponse;
|
|
569
|
-
|
|
570
|
-
export type AdminCryptoReturnPoliciesDestroyData =
|
|
571
|
-
AdminCryptoReturnPolicyResponse;
|
|
572
|
-
|
|
573
|
-
export interface AdminCurrenciesListParams {
|
|
574
|
-
/** A page number within the paginated result set. */
|
|
575
|
-
page?: number;
|
|
576
|
-
/** Number of results to return per page. */
|
|
577
|
-
page_size?: number;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
export type AdminCurrenciesListData = PaginatedAdminCurrencyListResponse;
|
|
581
|
-
|
|
582
|
-
export type AdminCurrenciesRetrieveData = AdminCurrencyResponse;
|
|
583
|
-
|
|
584
|
-
export type AdminCurrenciesUpdateData = AdminCurrencyResponse;
|
|
585
|
-
|
|
586
|
-
export type AdminCurrenciesPartialUpdateData = AdminCurrencyResponse;
|
|
587
|
-
|
|
588
|
-
export type AdminPaymentProcessorQuoteCreateData =
|
|
589
|
-
AdminPaymentProcessorQuoteResponseResponse;
|
|
590
|
-
|
|
591
|
-
export interface AdminWalletsListParams {
|
|
592
|
-
account?: string;
|
|
593
|
-
bridge_id?: string;
|
|
594
|
-
currency?: string;
|
|
595
|
-
/** A page number within the paginated result set. */
|
|
596
|
-
page?: number;
|
|
597
|
-
/** Number of results to return per page. */
|
|
598
|
-
page_size?: number;
|
|
599
|
-
user?: string;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
export type AdminWalletsListData = PaginatedAdminWalletListResponse;
|
|
603
|
-
|
|
604
|
-
export type AdminWalletsRetrieveData = AdminWalletResponse;
|
|
605
|
-
|
|
606
|
-
export type BridgeWebhookCreateData = ActionResponse;
|
|
607
|
-
|
|
608
|
-
export type DeactivateCreateData = ActionResponse;
|
|
609
|
-
|
|
610
|
-
export type UserRetrieveData = UserResponse;
|
|
611
|
-
|
|
612
|
-
export type UserUpdateData = UserResponse;
|
|
613
|
-
|
|
614
|
-
export type UserPartialUpdateData = UserResponse;
|
|
615
|
-
|
|
616
|
-
export type UserCryptoDepositCreateData = UserCryptoDepositResponseResponse;
|
|
617
|
-
|
|
618
|
-
export type UserKycLinksCreateData = UserCustomerKYCLinkResponse;
|
|
619
|
-
|
|
620
|
-
export type WebhookCreateData = ActionResponse;
|
|
621
|
-
|
|
622
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
623
|
-
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
|
|
624
|
-
|
|
625
|
-
export interface FullRequestParams extends Omit<RequestInit, "body"> {
|
|
626
|
-
/** set parameter to `true` for call `securityWorker` for this request */
|
|
627
|
-
secure?: boolean;
|
|
628
|
-
/** request path */
|
|
629
|
-
path: string;
|
|
630
|
-
/** content type of request body */
|
|
631
|
-
type?: ContentType;
|
|
632
|
-
/** query params */
|
|
633
|
-
query?: QueryParamsType;
|
|
634
|
-
/** format of response (i.e. response.json() -> format: "json") */
|
|
635
|
-
format?: ResponseFormat;
|
|
636
|
-
/** request body */
|
|
637
|
-
body?: unknown;
|
|
638
|
-
/** base url */
|
|
639
|
-
baseUrl?: string;
|
|
640
|
-
/** request cancellation token */
|
|
641
|
-
cancelToken?: CancelToken;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
export type RequestParams = Omit<
|
|
645
|
-
FullRequestParams,
|
|
646
|
-
"body" | "method" | "query" | "path"
|
|
647
|
-
>;
|
|
648
|
-
|
|
649
|
-
export interface ApiConfig<SecurityDataType = unknown> {
|
|
650
|
-
baseUrl?: string;
|
|
651
|
-
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
|
|
652
|
-
securityWorker?: (
|
|
653
|
-
securityData: SecurityDataType | null,
|
|
654
|
-
) => Promise<RequestParams | void> | RequestParams | void;
|
|
655
|
-
customFetch?: typeof fetch;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
export interface HttpResponse<D extends unknown, E extends unknown = unknown>
|
|
659
|
-
extends Response {
|
|
660
|
-
data: D;
|
|
661
|
-
error: E;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
type CancelToken = Symbol | string | number;
|
|
665
|
-
|
|
666
|
-
export enum ContentType {
|
|
667
|
-
Json = "application/json",
|
|
668
|
-
JsonApi = "application/vnd.api+json",
|
|
669
|
-
FormData = "multipart/form-data",
|
|
670
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
671
|
-
Text = "text/plain",
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
export class HttpClient<SecurityDataType = unknown> {
|
|
675
|
-
public baseUrl: string = "https://bridge.services.rehive.com/api/";
|
|
676
|
-
private securityData: SecurityDataType | null = null;
|
|
677
|
-
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
678
|
-
private abortControllers = new Map<CancelToken, AbortController>();
|
|
679
|
-
private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
|
|
680
|
-
fetch(...fetchParams);
|
|
681
|
-
|
|
682
|
-
private baseApiParams: RequestParams = {
|
|
683
|
-
credentials: "same-origin",
|
|
684
|
-
headers: {},
|
|
685
|
-
redirect: "follow",
|
|
686
|
-
referrerPolicy: "no-referrer",
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
|
|
690
|
-
Object.assign(this, apiConfig);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
public setSecurityData = (data: SecurityDataType | null) => {
|
|
694
|
-
this.securityData = data;
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
protected encodeQueryParam(key: string, value: any) {
|
|
698
|
-
const encodedKey = encodeURIComponent(key);
|
|
699
|
-
return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
protected addQueryParam(query: QueryParamsType, key: string) {
|
|
703
|
-
return this.encodeQueryParam(key, query[key]);
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
protected addArrayQueryParam(query: QueryParamsType, key: string) {
|
|
707
|
-
const value = query[key];
|
|
708
|
-
return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
protected toQueryString(rawQuery?: QueryParamsType): string {
|
|
712
|
-
const query = rawQuery || {};
|
|
713
|
-
const keys = Object.keys(query).filter(
|
|
714
|
-
(key) => "undefined" !== typeof query[key],
|
|
715
|
-
);
|
|
716
|
-
return keys
|
|
717
|
-
.map((key) =>
|
|
718
|
-
Array.isArray(query[key])
|
|
719
|
-
? this.addArrayQueryParam(query, key)
|
|
720
|
-
: this.addQueryParam(query, key),
|
|
721
|
-
)
|
|
722
|
-
.join("&");
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
protected addQueryParams(rawQuery?: QueryParamsType): string {
|
|
726
|
-
const queryString = this.toQueryString(rawQuery);
|
|
727
|
-
return queryString ? `?${queryString}` : "";
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
private contentFormatters: Record<ContentType, (input: any) => any> = {
|
|
731
|
-
[ContentType.Json]: (input: any) =>
|
|
732
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
733
|
-
? JSON.stringify(input)
|
|
734
|
-
: input,
|
|
735
|
-
[ContentType.JsonApi]: (input: any) =>
|
|
736
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
737
|
-
? JSON.stringify(input)
|
|
738
|
-
: input,
|
|
739
|
-
[ContentType.Text]: (input: any) =>
|
|
740
|
-
input !== null && typeof input !== "string"
|
|
741
|
-
? JSON.stringify(input)
|
|
742
|
-
: input,
|
|
743
|
-
[ContentType.FormData]: (input: any) =>
|
|
744
|
-
Object.keys(input || {}).reduce((formData, key) => {
|
|
745
|
-
const property = input[key];
|
|
746
|
-
formData.append(
|
|
747
|
-
key,
|
|
748
|
-
property instanceof Blob
|
|
749
|
-
? property
|
|
750
|
-
: typeof property === "object" && property !== null
|
|
751
|
-
? JSON.stringify(property)
|
|
752
|
-
: `${property}`,
|
|
753
|
-
);
|
|
754
|
-
return formData;
|
|
755
|
-
}, new FormData()),
|
|
756
|
-
[ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
protected mergeRequestParams(
|
|
760
|
-
params1: RequestParams,
|
|
761
|
-
params2?: RequestParams,
|
|
762
|
-
): RequestParams {
|
|
763
|
-
return {
|
|
764
|
-
...this.baseApiParams,
|
|
765
|
-
...params1,
|
|
766
|
-
...(params2 || {}),
|
|
767
|
-
headers: {
|
|
768
|
-
...(this.baseApiParams.headers || {}),
|
|
769
|
-
...(params1.headers || {}),
|
|
770
|
-
...((params2 && params2.headers) || {}),
|
|
771
|
-
},
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
protected createAbortSignal = (
|
|
776
|
-
cancelToken: CancelToken,
|
|
777
|
-
): AbortSignal | undefined => {
|
|
778
|
-
if (this.abortControllers.has(cancelToken)) {
|
|
779
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
780
|
-
if (abortController) {
|
|
781
|
-
return abortController.signal;
|
|
782
|
-
}
|
|
783
|
-
return void 0;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
const abortController = new AbortController();
|
|
787
|
-
this.abortControllers.set(cancelToken, abortController);
|
|
788
|
-
return abortController.signal;
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
public abortRequest = (cancelToken: CancelToken) => {
|
|
792
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
793
|
-
|
|
794
|
-
if (abortController) {
|
|
795
|
-
abortController.abort();
|
|
796
|
-
this.abortControllers.delete(cancelToken);
|
|
797
|
-
}
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
public request = async <T = any, E = any>({
|
|
801
|
-
body,
|
|
802
|
-
secure,
|
|
803
|
-
path,
|
|
804
|
-
type,
|
|
805
|
-
query,
|
|
806
|
-
format,
|
|
807
|
-
baseUrl,
|
|
808
|
-
cancelToken,
|
|
809
|
-
...params
|
|
810
|
-
}: FullRequestParams): Promise<HttpResponse<T, E>> => {
|
|
811
|
-
const secureParams =
|
|
812
|
-
((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
|
|
813
|
-
this.securityWorker &&
|
|
814
|
-
(await this.securityWorker(this.securityData))) ||
|
|
815
|
-
{};
|
|
816
|
-
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
817
|
-
const queryString = query && this.toQueryString(query);
|
|
818
|
-
const payloadFormatter = this.contentFormatters[type || ContentType.Json];
|
|
819
|
-
const responseFormat = format || requestParams.format;
|
|
820
|
-
|
|
821
|
-
return this.customFetch(
|
|
822
|
-
`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
|
|
823
|
-
{
|
|
824
|
-
...requestParams,
|
|
825
|
-
headers: {
|
|
826
|
-
...(requestParams.headers || {}),
|
|
827
|
-
...(type && type !== ContentType.FormData
|
|
828
|
-
? { "Content-Type": type }
|
|
829
|
-
: {}),
|
|
830
|
-
},
|
|
831
|
-
signal:
|
|
832
|
-
(cancelToken
|
|
833
|
-
? this.createAbortSignal(cancelToken)
|
|
834
|
-
: requestParams.signal) || null,
|
|
835
|
-
body:
|
|
836
|
-
typeof body === "undefined" || body === null
|
|
837
|
-
? null
|
|
838
|
-
: payloadFormatter(body),
|
|
839
|
-
},
|
|
840
|
-
).then(async (response) => {
|
|
841
|
-
const r = response.clone() as HttpResponse<T, E>;
|
|
842
|
-
r.data = null as unknown as T;
|
|
843
|
-
r.error = null as unknown as E;
|
|
844
|
-
|
|
845
|
-
const data = !responseFormat
|
|
846
|
-
? r
|
|
847
|
-
: await response[responseFormat]()
|
|
848
|
-
.then((data) => {
|
|
849
|
-
if (r.ok) {
|
|
850
|
-
r.data = data;
|
|
851
|
-
} else {
|
|
852
|
-
r.error = data;
|
|
853
|
-
}
|
|
854
|
-
return r;
|
|
855
|
-
})
|
|
856
|
-
.catch((e) => {
|
|
857
|
-
r.error = e;
|
|
858
|
-
return r;
|
|
859
|
-
});
|
|
860
|
-
|
|
861
|
-
if (cancelToken) {
|
|
862
|
-
this.abortControllers.delete(cancelToken);
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
if (!response.ok) throw data;
|
|
866
|
-
return data;
|
|
867
|
-
});
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* @title Bridge Service API
|
|
873
|
-
* @version 1 (1)
|
|
874
|
-
* @termsOfService https://rehive.com/terms/
|
|
875
|
-
* @baseUrl https://bridge.services.rehive.com/api/
|
|
876
|
-
* @externalDocs https://docs.rehive.com
|
|
877
|
-
* @contact Rehive Support <support@rehive.com> (https://rehive.com/support/)
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
* The **Bridge Service API** is used for managing and processing Rehive transactions using Bridge.
|
|
881
|
-
*
|
|
882
|
-
*/
|
|
883
|
-
export class Api<
|
|
884
|
-
SecurityDataType extends unknown,
|
|
885
|
-
> extends HttpClient<SecurityDataType> {
|
|
886
|
-
activate = {
|
|
887
|
-
/**
|
|
888
|
-
* No description
|
|
889
|
-
*
|
|
890
|
-
* @tags activate
|
|
891
|
-
* @name ActivateCreate
|
|
892
|
-
* @request POST:/activate/
|
|
893
|
-
* @secure
|
|
894
|
-
*/
|
|
895
|
-
activateCreate: (data: Activate, params: RequestParams = {}) =>
|
|
896
|
-
this.request<ActivateCreateData, any>({
|
|
897
|
-
path: `/activate/`,
|
|
898
|
-
method: "POST",
|
|
899
|
-
body: data,
|
|
900
|
-
secure: true,
|
|
901
|
-
type: ContentType.Json,
|
|
902
|
-
format: "json",
|
|
903
|
-
...params,
|
|
904
|
-
}),
|
|
905
|
-
};
|
|
906
|
-
admin = {
|
|
907
|
-
/**
|
|
908
|
-
* No description
|
|
909
|
-
*
|
|
910
|
-
* @tags admin
|
|
911
|
-
* @name AdminCardsList
|
|
912
|
-
* @request GET:/admin/cards/
|
|
913
|
-
* @secure
|
|
914
|
-
*/
|
|
915
|
-
adminCardsList: (query: AdminCardsListParams, params: RequestParams = {}) =>
|
|
916
|
-
this.request<AdminCardsListData, any>({
|
|
917
|
-
path: `/admin/cards/`,
|
|
918
|
-
method: "GET",
|
|
919
|
-
query: query,
|
|
920
|
-
secure: true,
|
|
921
|
-
format: "json",
|
|
922
|
-
...params,
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* No description
|
|
927
|
-
*
|
|
928
|
-
* @tags admin
|
|
929
|
-
* @name AdminCardsRetrieve
|
|
930
|
-
* @request GET:/admin/cards/{identifier}/
|
|
931
|
-
* @secure
|
|
932
|
-
*/
|
|
933
|
-
adminCardsRetrieve: (identifier: string, params: RequestParams = {}) =>
|
|
934
|
-
this.request<AdminCardsRetrieveData, any>({
|
|
935
|
-
path: `/admin/cards/${identifier}/`,
|
|
936
|
-
method: "GET",
|
|
937
|
-
secure: true,
|
|
938
|
-
format: "json",
|
|
939
|
-
...params,
|
|
940
|
-
}),
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* No description
|
|
944
|
-
*
|
|
945
|
-
* @tags admin
|
|
946
|
-
* @name AdminCompanyRetrieve
|
|
947
|
-
* @request GET:/admin/company/
|
|
948
|
-
* @secure
|
|
949
|
-
*/
|
|
950
|
-
adminCompanyRetrieve: (params: RequestParams = {}) =>
|
|
951
|
-
this.request<AdminCompanyRetrieveData, any>({
|
|
952
|
-
path: `/admin/company/`,
|
|
953
|
-
method: "GET",
|
|
954
|
-
secure: true,
|
|
955
|
-
format: "json",
|
|
956
|
-
...params,
|
|
957
|
-
}),
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* No description
|
|
961
|
-
*
|
|
962
|
-
* @tags admin
|
|
963
|
-
* @name AdminCompanyUpdate
|
|
964
|
-
* @request PUT:/admin/company/
|
|
965
|
-
* @secure
|
|
966
|
-
*/
|
|
967
|
-
adminCompanyUpdate: (
|
|
968
|
-
data: AdminUpdateCompany,
|
|
969
|
-
params: RequestParams = {},
|
|
970
|
-
) =>
|
|
971
|
-
this.request<AdminCompanyUpdateData, any>({
|
|
972
|
-
path: `/admin/company/`,
|
|
973
|
-
method: "PUT",
|
|
974
|
-
body: data,
|
|
975
|
-
secure: true,
|
|
976
|
-
type: ContentType.Json,
|
|
977
|
-
format: "json",
|
|
978
|
-
...params,
|
|
979
|
-
}),
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* No description
|
|
983
|
-
*
|
|
984
|
-
* @tags admin
|
|
985
|
-
* @name AdminCompanyPartialUpdate
|
|
986
|
-
* @request PATCH:/admin/company/
|
|
987
|
-
* @secure
|
|
988
|
-
*/
|
|
989
|
-
adminCompanyPartialUpdate: (
|
|
990
|
-
data: PatchedAdminUpdateCompany,
|
|
991
|
-
params: RequestParams = {},
|
|
992
|
-
) =>
|
|
993
|
-
this.request<AdminCompanyPartialUpdateData, any>({
|
|
994
|
-
path: `/admin/company/`,
|
|
995
|
-
method: "PATCH",
|
|
996
|
-
body: data,
|
|
997
|
-
secure: true,
|
|
998
|
-
type: ContentType.Json,
|
|
999
|
-
format: "json",
|
|
1000
|
-
...params,
|
|
1001
|
-
}),
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* No description
|
|
1005
|
-
*
|
|
1006
|
-
* @tags admin
|
|
1007
|
-
* @name AdminCryptoReturnPoliciesList
|
|
1008
|
-
* @request GET:/admin/crypto-return-policies/
|
|
1009
|
-
* @secure
|
|
1010
|
-
*/
|
|
1011
|
-
adminCryptoReturnPoliciesList: (params: RequestParams = {}) =>
|
|
1012
|
-
this.request<AdminCryptoReturnPoliciesListData, any>({
|
|
1013
|
-
path: `/admin/crypto-return-policies/`,
|
|
1014
|
-
method: "GET",
|
|
1015
|
-
secure: true,
|
|
1016
|
-
format: "json",
|
|
1017
|
-
...params,
|
|
1018
|
-
}),
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* No description
|
|
1022
|
-
*
|
|
1023
|
-
* @tags admin
|
|
1024
|
-
* @name AdminCryptoReturnPoliciesCreate
|
|
1025
|
-
* @request POST:/admin/crypto-return-policies/
|
|
1026
|
-
* @secure
|
|
1027
|
-
*/
|
|
1028
|
-
adminCryptoReturnPoliciesCreate: (
|
|
1029
|
-
data: AdminCryptoReturnPolicy,
|
|
1030
|
-
params: RequestParams = {},
|
|
1031
|
-
) =>
|
|
1032
|
-
this.request<AdminCryptoReturnPoliciesCreateData, any>({
|
|
1033
|
-
path: `/admin/crypto-return-policies/`,
|
|
1034
|
-
method: "POST",
|
|
1035
|
-
body: data,
|
|
1036
|
-
secure: true,
|
|
1037
|
-
type: ContentType.Json,
|
|
1038
|
-
format: "json",
|
|
1039
|
-
...params,
|
|
1040
|
-
}),
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* No description
|
|
1044
|
-
*
|
|
1045
|
-
* @tags admin
|
|
1046
|
-
* @name AdminCryptoReturnPoliciesRetrieve
|
|
1047
|
-
* @request GET:/admin/crypto-return-policies/{identifier}/
|
|
1048
|
-
* @secure
|
|
1049
|
-
*/
|
|
1050
|
-
adminCryptoReturnPoliciesRetrieve: (
|
|
1051
|
-
identifier: string,
|
|
1052
|
-
params: RequestParams = {},
|
|
1053
|
-
) =>
|
|
1054
|
-
this.request<AdminCryptoReturnPoliciesRetrieveData, any>({
|
|
1055
|
-
path: `/admin/crypto-return-policies/${identifier}/`,
|
|
1056
|
-
method: "GET",
|
|
1057
|
-
secure: true,
|
|
1058
|
-
format: "json",
|
|
1059
|
-
...params,
|
|
1060
|
-
}),
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* No description
|
|
1064
|
-
*
|
|
1065
|
-
* @tags admin
|
|
1066
|
-
* @name AdminCryptoReturnPoliciesUpdate
|
|
1067
|
-
* @request PUT:/admin/crypto-return-policies/{identifier}/
|
|
1068
|
-
* @secure
|
|
1069
|
-
*/
|
|
1070
|
-
adminCryptoReturnPoliciesUpdate: (
|
|
1071
|
-
identifier: string,
|
|
1072
|
-
data: AdminCryptoReturnPolicy,
|
|
1073
|
-
params: RequestParams = {},
|
|
1074
|
-
) =>
|
|
1075
|
-
this.request<AdminCryptoReturnPoliciesUpdateData, any>({
|
|
1076
|
-
path: `/admin/crypto-return-policies/${identifier}/`,
|
|
1077
|
-
method: "PUT",
|
|
1078
|
-
body: data,
|
|
1079
|
-
secure: true,
|
|
1080
|
-
type: ContentType.Json,
|
|
1081
|
-
format: "json",
|
|
1082
|
-
...params,
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1085
|
-
/**
|
|
1086
|
-
* No description
|
|
1087
|
-
*
|
|
1088
|
-
* @tags admin
|
|
1089
|
-
* @name AdminCryptoReturnPoliciesPartialUpdate
|
|
1090
|
-
* @request PATCH:/admin/crypto-return-policies/{identifier}/
|
|
1091
|
-
* @secure
|
|
1092
|
-
*/
|
|
1093
|
-
adminCryptoReturnPoliciesPartialUpdate: (
|
|
1094
|
-
identifier: string,
|
|
1095
|
-
data: PatchedAdminCryptoReturnPolicy,
|
|
1096
|
-
params: RequestParams = {},
|
|
1097
|
-
) =>
|
|
1098
|
-
this.request<AdminCryptoReturnPoliciesPartialUpdateData, any>({
|
|
1099
|
-
path: `/admin/crypto-return-policies/${identifier}/`,
|
|
1100
|
-
method: "PATCH",
|
|
1101
|
-
body: data,
|
|
1102
|
-
secure: true,
|
|
1103
|
-
type: ContentType.Json,
|
|
1104
|
-
format: "json",
|
|
1105
|
-
...params,
|
|
1106
|
-
}),
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* No description
|
|
1110
|
-
*
|
|
1111
|
-
* @tags admin
|
|
1112
|
-
* @name AdminCryptoReturnPoliciesDestroy
|
|
1113
|
-
* @request DELETE:/admin/crypto-return-policies/{identifier}/
|
|
1114
|
-
* @secure
|
|
1115
|
-
*/
|
|
1116
|
-
adminCryptoReturnPoliciesDestroy: (
|
|
1117
|
-
identifier: string,
|
|
1118
|
-
params: RequestParams = {},
|
|
1119
|
-
) =>
|
|
1120
|
-
this.request<AdminCryptoReturnPoliciesDestroyData, any>({
|
|
1121
|
-
path: `/admin/crypto-return-policies/${identifier}/`,
|
|
1122
|
-
method: "DELETE",
|
|
1123
|
-
secure: true,
|
|
1124
|
-
format: "json",
|
|
1125
|
-
...params,
|
|
1126
|
-
}),
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* No description
|
|
1130
|
-
*
|
|
1131
|
-
* @tags admin
|
|
1132
|
-
* @name AdminCurrenciesList
|
|
1133
|
-
* @request GET:/admin/currencies/
|
|
1134
|
-
* @secure
|
|
1135
|
-
*/
|
|
1136
|
-
adminCurrenciesList: (
|
|
1137
|
-
query: AdminCurrenciesListParams,
|
|
1138
|
-
params: RequestParams = {},
|
|
1139
|
-
) =>
|
|
1140
|
-
this.request<AdminCurrenciesListData, any>({
|
|
1141
|
-
path: `/admin/currencies/`,
|
|
1142
|
-
method: "GET",
|
|
1143
|
-
query: query,
|
|
1144
|
-
secure: true,
|
|
1145
|
-
format: "json",
|
|
1146
|
-
...params,
|
|
1147
|
-
}),
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* No description
|
|
1151
|
-
*
|
|
1152
|
-
* @tags admin
|
|
1153
|
-
* @name AdminCurrenciesRetrieve
|
|
1154
|
-
* @request GET:/admin/currencies/{code}/
|
|
1155
|
-
* @secure
|
|
1156
|
-
*/
|
|
1157
|
-
adminCurrenciesRetrieve: (code: string, params: RequestParams = {}) =>
|
|
1158
|
-
this.request<AdminCurrenciesRetrieveData, any>({
|
|
1159
|
-
path: `/admin/currencies/${code}/`,
|
|
1160
|
-
method: "GET",
|
|
1161
|
-
secure: true,
|
|
1162
|
-
format: "json",
|
|
1163
|
-
...params,
|
|
1164
|
-
}),
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* No description
|
|
1168
|
-
*
|
|
1169
|
-
* @tags admin
|
|
1170
|
-
* @name AdminCurrenciesUpdate
|
|
1171
|
-
* @request PUT:/admin/currencies/{code}/
|
|
1172
|
-
* @secure
|
|
1173
|
-
*/
|
|
1174
|
-
adminCurrenciesUpdate: (
|
|
1175
|
-
code: string,
|
|
1176
|
-
data: AdminCurrency,
|
|
1177
|
-
params: RequestParams = {},
|
|
1178
|
-
) =>
|
|
1179
|
-
this.request<AdminCurrenciesUpdateData, any>({
|
|
1180
|
-
path: `/admin/currencies/${code}/`,
|
|
1181
|
-
method: "PUT",
|
|
1182
|
-
body: data,
|
|
1183
|
-
secure: true,
|
|
1184
|
-
type: ContentType.Json,
|
|
1185
|
-
format: "json",
|
|
1186
|
-
...params,
|
|
1187
|
-
}),
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* No description
|
|
1191
|
-
*
|
|
1192
|
-
* @tags admin
|
|
1193
|
-
* @name AdminCurrenciesPartialUpdate
|
|
1194
|
-
* @request PATCH:/admin/currencies/{code}/
|
|
1195
|
-
* @secure
|
|
1196
|
-
*/
|
|
1197
|
-
adminCurrenciesPartialUpdate: (
|
|
1198
|
-
code: string,
|
|
1199
|
-
data: PatchedAdminCurrency,
|
|
1200
|
-
params: RequestParams = {},
|
|
1201
|
-
) =>
|
|
1202
|
-
this.request<AdminCurrenciesPartialUpdateData, any>({
|
|
1203
|
-
path: `/admin/currencies/${code}/`,
|
|
1204
|
-
method: "PATCH",
|
|
1205
|
-
body: data,
|
|
1206
|
-
secure: true,
|
|
1207
|
-
type: ContentType.Json,
|
|
1208
|
-
format: "json",
|
|
1209
|
-
...params,
|
|
1210
|
-
}),
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* No description
|
|
1214
|
-
*
|
|
1215
|
-
* @tags admin
|
|
1216
|
-
* @name AdminPaymentProcessorQuoteCreate
|
|
1217
|
-
* @request POST:/admin/payment-processor-quote/
|
|
1218
|
-
* @secure
|
|
1219
|
-
*/
|
|
1220
|
-
adminPaymentProcessorQuoteCreate: (
|
|
1221
|
-
data: AdminPaymentProcessorQuote,
|
|
1222
|
-
params: RequestParams = {},
|
|
1223
|
-
) =>
|
|
1224
|
-
this.request<AdminPaymentProcessorQuoteCreateData, any>({
|
|
1225
|
-
path: `/admin/payment-processor-quote/`,
|
|
1226
|
-
method: "POST",
|
|
1227
|
-
body: data,
|
|
1228
|
-
secure: true,
|
|
1229
|
-
type: ContentType.Json,
|
|
1230
|
-
format: "json",
|
|
1231
|
-
...params,
|
|
1232
|
-
}),
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* No description
|
|
1236
|
-
*
|
|
1237
|
-
* @tags admin
|
|
1238
|
-
* @name AdminWalletsList
|
|
1239
|
-
* @request GET:/admin/wallets/
|
|
1240
|
-
* @secure
|
|
1241
|
-
*/
|
|
1242
|
-
adminWalletsList: (
|
|
1243
|
-
query: AdminWalletsListParams,
|
|
1244
|
-
params: RequestParams = {},
|
|
1245
|
-
) =>
|
|
1246
|
-
this.request<AdminWalletsListData, any>({
|
|
1247
|
-
path: `/admin/wallets/`,
|
|
1248
|
-
method: "GET",
|
|
1249
|
-
query: query,
|
|
1250
|
-
secure: true,
|
|
1251
|
-
format: "json",
|
|
1252
|
-
...params,
|
|
1253
|
-
}),
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* No description
|
|
1257
|
-
*
|
|
1258
|
-
* @tags admin
|
|
1259
|
-
* @name AdminWalletsRetrieve
|
|
1260
|
-
* @request GET:/admin/wallets/{identifier}/
|
|
1261
|
-
* @secure
|
|
1262
|
-
*/
|
|
1263
|
-
adminWalletsRetrieve: (identifier: string, params: RequestParams = {}) =>
|
|
1264
|
-
this.request<AdminWalletsRetrieveData, any>({
|
|
1265
|
-
path: `/admin/wallets/${identifier}/`,
|
|
1266
|
-
method: "GET",
|
|
1267
|
-
secure: true,
|
|
1268
|
-
format: "json",
|
|
1269
|
-
...params,
|
|
1270
|
-
}),
|
|
1271
|
-
};
|
|
1272
|
-
bridge = {
|
|
1273
|
-
/**
|
|
1274
|
-
* No description
|
|
1275
|
-
*
|
|
1276
|
-
* @tags bridge
|
|
1277
|
-
* @name BridgeWebhookCreate
|
|
1278
|
-
* @request POST:/bridge/webhook/{company_id}/
|
|
1279
|
-
* @secure
|
|
1280
|
-
*/
|
|
1281
|
-
bridgeWebhookCreate: (
|
|
1282
|
-
companyId: string,
|
|
1283
|
-
data: BridgeWebhook,
|
|
1284
|
-
params: RequestParams = {},
|
|
1285
|
-
) =>
|
|
1286
|
-
this.request<BridgeWebhookCreateData, any>({
|
|
1287
|
-
path: `/bridge/webhook/${companyId}/`,
|
|
1288
|
-
method: "POST",
|
|
1289
|
-
body: data,
|
|
1290
|
-
secure: true,
|
|
1291
|
-
type: ContentType.Json,
|
|
1292
|
-
format: "json",
|
|
1293
|
-
...params,
|
|
1294
|
-
}),
|
|
1295
|
-
};
|
|
1296
|
-
deactivate = {
|
|
1297
|
-
/**
|
|
1298
|
-
* No description
|
|
1299
|
-
*
|
|
1300
|
-
* @tags deactivate
|
|
1301
|
-
* @name DeactivateCreate
|
|
1302
|
-
* @request POST:/deactivate/
|
|
1303
|
-
* @secure
|
|
1304
|
-
*/
|
|
1305
|
-
deactivateCreate: (data: Deactivate, params: RequestParams = {}) =>
|
|
1306
|
-
this.request<DeactivateCreateData, any>({
|
|
1307
|
-
path: `/deactivate/`,
|
|
1308
|
-
method: "POST",
|
|
1309
|
-
body: data,
|
|
1310
|
-
secure: true,
|
|
1311
|
-
type: ContentType.Json,
|
|
1312
|
-
format: "json",
|
|
1313
|
-
...params,
|
|
1314
|
-
}),
|
|
1315
|
-
};
|
|
1316
|
-
user = {
|
|
1317
|
-
/**
|
|
1318
|
-
* No description
|
|
1319
|
-
*
|
|
1320
|
-
* @tags user
|
|
1321
|
-
* @name UserRetrieve
|
|
1322
|
-
* @request GET:/user/
|
|
1323
|
-
* @secure
|
|
1324
|
-
*/
|
|
1325
|
-
userRetrieve: (params: RequestParams = {}) =>
|
|
1326
|
-
this.request<UserRetrieveData, any>({
|
|
1327
|
-
path: `/user/`,
|
|
1328
|
-
method: "GET",
|
|
1329
|
-
secure: true,
|
|
1330
|
-
format: "json",
|
|
1331
|
-
...params,
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* No description
|
|
1336
|
-
*
|
|
1337
|
-
* @tags user
|
|
1338
|
-
* @name UserUpdate
|
|
1339
|
-
* @request PUT:/user/
|
|
1340
|
-
* @secure
|
|
1341
|
-
*/
|
|
1342
|
-
userUpdate: (data: User, params: RequestParams = {}) =>
|
|
1343
|
-
this.request<UserUpdateData, any>({
|
|
1344
|
-
path: `/user/`,
|
|
1345
|
-
method: "PUT",
|
|
1346
|
-
body: data,
|
|
1347
|
-
secure: true,
|
|
1348
|
-
type: ContentType.Json,
|
|
1349
|
-
format: "json",
|
|
1350
|
-
...params,
|
|
1351
|
-
}),
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* No description
|
|
1355
|
-
*
|
|
1356
|
-
* @tags user
|
|
1357
|
-
* @name UserPartialUpdate
|
|
1358
|
-
* @request PATCH:/user/
|
|
1359
|
-
* @secure
|
|
1360
|
-
*/
|
|
1361
|
-
userPartialUpdate: (data: PatchedUser, params: RequestParams = {}) =>
|
|
1362
|
-
this.request<UserPartialUpdateData, any>({
|
|
1363
|
-
path: `/user/`,
|
|
1364
|
-
method: "PATCH",
|
|
1365
|
-
body: data,
|
|
1366
|
-
secure: true,
|
|
1367
|
-
type: ContentType.Json,
|
|
1368
|
-
format: "json",
|
|
1369
|
-
...params,
|
|
1370
|
-
}),
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* No description
|
|
1374
|
-
*
|
|
1375
|
-
* @tags user
|
|
1376
|
-
* @name UserCryptoDepositCreate
|
|
1377
|
-
* @request POST:/user/crypto-deposit/
|
|
1378
|
-
* @secure
|
|
1379
|
-
*/
|
|
1380
|
-
userCryptoDepositCreate: (
|
|
1381
|
-
data: UserCryptoDeposit,
|
|
1382
|
-
params: RequestParams = {},
|
|
1383
|
-
) =>
|
|
1384
|
-
this.request<UserCryptoDepositCreateData, any>({
|
|
1385
|
-
path: `/user/crypto-deposit/`,
|
|
1386
|
-
method: "POST",
|
|
1387
|
-
body: data,
|
|
1388
|
-
secure: true,
|
|
1389
|
-
type: ContentType.Json,
|
|
1390
|
-
format: "json",
|
|
1391
|
-
...params,
|
|
1392
|
-
}),
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* No description
|
|
1396
|
-
*
|
|
1397
|
-
* @tags user
|
|
1398
|
-
* @name UserKycLinksCreate
|
|
1399
|
-
* @request POST:/user/kyc-links/
|
|
1400
|
-
* @secure
|
|
1401
|
-
*/
|
|
1402
|
-
userKycLinksCreate: (
|
|
1403
|
-
data: UserCreateCustomerKYCLink,
|
|
1404
|
-
params: RequestParams = {},
|
|
1405
|
-
) =>
|
|
1406
|
-
this.request<UserKycLinksCreateData, any>({
|
|
1407
|
-
path: `/user/kyc-links/`,
|
|
1408
|
-
method: "POST",
|
|
1409
|
-
body: data,
|
|
1410
|
-
secure: true,
|
|
1411
|
-
type: ContentType.Json,
|
|
1412
|
-
format: "json",
|
|
1413
|
-
...params,
|
|
1414
|
-
}),
|
|
1415
|
-
};
|
|
1416
|
-
webhook = {
|
|
1417
|
-
/**
|
|
1418
|
-
* No description
|
|
1419
|
-
*
|
|
1420
|
-
* @tags webhook
|
|
1421
|
-
* @name WebhookCreate
|
|
1422
|
-
* @request POST:/webhook/
|
|
1423
|
-
* @secure
|
|
1424
|
-
*/
|
|
1425
|
-
webhookCreate: (data: Webhook, params: RequestParams = {}) =>
|
|
1426
|
-
this.request<WebhookCreateData, any>({
|
|
1427
|
-
path: `/webhook/`,
|
|
1428
|
-
method: "POST",
|
|
1429
|
-
body: data,
|
|
1430
|
-
secure: true,
|
|
1431
|
-
type: ContentType.Json,
|
|
1432
|
-
format: "json",
|
|
1433
|
-
...params,
|
|
1434
|
-
}),
|
|
1435
|
-
};
|
|
1436
|
-
}
|