rehive 3.1.4 → 4.1.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 -506
- package/dist/admin.d.mts +31507 -0
- package/dist/admin.d.ts +31507 -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-7WQMKBQ6.js +7 -0
- package/dist/chunk-CUQ6U73E.mjs +1 -0
- package/dist/chunk-DRLSOKDI.js +7 -0
- package/dist/chunk-GR5TETAU.js +1 -0
- package/dist/chunk-JK4JOKBZ.js +1 -0
- package/dist/chunk-KQ5BJOW2.mjs +1 -0
- package/dist/chunk-KUM3UI4C.mjs +7 -0
- package/dist/chunk-OEIQFP6T.js +1 -0
- package/dist/chunk-S4QKN5WW.mjs +1 -0
- package/dist/chunk-S5UXBHRU.mjs +1 -0
- package/dist/chunk-UMUOM4B2.mjs +7 -0
- package/dist/chunk-YRYX3G3E.js +1 -0
- package/dist/create-api-client-2vNCP2LN.d.mts +25 -0
- package/dist/create-api-client-D-Z8R83N.d.ts +25 -0
- package/dist/create-auth-CHzmb_8_.d.mts +18570 -0
- package/dist/create-auth-CHzmb_8_.d.ts +18570 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +214 -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 +31428 -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 +214 -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 +19780 -0
- package/src/shared/api-utils.ts +22 -0
- package/src/shared/bind-sdk.ts +48 -0
- package/src/shared/create-api-client.ts +55 -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,4219 +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
|
-
export interface Activate {
|
|
14
|
-
/**
|
|
15
|
-
* Token
|
|
16
|
-
* @minLength 1
|
|
17
|
-
*/
|
|
18
|
-
token: string;
|
|
19
|
-
/**
|
|
20
|
-
* Id
|
|
21
|
-
* @minLength 1
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Email
|
|
26
|
-
* @minLength 1
|
|
27
|
-
*/
|
|
28
|
-
email?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Secret
|
|
31
|
-
* @format uuid
|
|
32
|
-
*/
|
|
33
|
-
secret?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface AdminCreateAsset {
|
|
37
|
-
/**
|
|
38
|
-
* Address
|
|
39
|
-
* @minLength 1
|
|
40
|
-
*/
|
|
41
|
-
address: string;
|
|
42
|
-
/**
|
|
43
|
-
* Currency code
|
|
44
|
-
* @minLength 1
|
|
45
|
-
* @maxLength 12
|
|
46
|
-
*/
|
|
47
|
-
currency_code: string;
|
|
48
|
-
/**
|
|
49
|
-
* Description
|
|
50
|
-
* @minLength 1
|
|
51
|
-
*/
|
|
52
|
-
description?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Symbol
|
|
55
|
-
* @minLength 1
|
|
56
|
-
*/
|
|
57
|
-
symbol?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Unit
|
|
60
|
-
* @minLength 1
|
|
61
|
-
*/
|
|
62
|
-
unit?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Id
|
|
65
|
-
* @minLength 1
|
|
66
|
-
*/
|
|
67
|
-
id?: string;
|
|
68
|
-
/** Issued by company */
|
|
69
|
-
issued_by_company?: boolean;
|
|
70
|
-
/** Sep24 enabled */
|
|
71
|
-
sep24_enabled?: boolean;
|
|
72
|
-
/** Auth required */
|
|
73
|
-
auth_required?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Auth signing key
|
|
76
|
-
* @minLength 1
|
|
77
|
-
*/
|
|
78
|
-
auth_signing_key?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Divisibility
|
|
81
|
-
* @min 0
|
|
82
|
-
* @max 7
|
|
83
|
-
*/
|
|
84
|
-
divisibility?: number;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface AdminAsset {
|
|
88
|
-
/**
|
|
89
|
-
* Id
|
|
90
|
-
* @format uuid
|
|
91
|
-
*/
|
|
92
|
-
id?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Address
|
|
95
|
-
* @minLength 1
|
|
96
|
-
*/
|
|
97
|
-
address?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* Currency code
|
|
100
|
-
* @minLength 1
|
|
101
|
-
*/
|
|
102
|
-
currency_code?: string | null;
|
|
103
|
-
/** Auth required */
|
|
104
|
-
auth_required?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Auth signing key
|
|
107
|
-
* @maxLength 100
|
|
108
|
-
*/
|
|
109
|
-
auth_signing_key?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Display decimals
|
|
112
|
-
* @min 0
|
|
113
|
-
* @max 2147483647
|
|
114
|
-
*/
|
|
115
|
-
display_decimals?: number;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface AdminAuthAssetTrust {
|
|
119
|
-
/** Trustor public address */
|
|
120
|
-
trustor_public_address: number;
|
|
121
|
-
/** Authorize */
|
|
122
|
-
authorize: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Asset id
|
|
125
|
-
* @format uuid
|
|
126
|
-
*/
|
|
127
|
-
asset_id: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface AdminFundAsset {
|
|
131
|
-
/** Issuer secret */
|
|
132
|
-
issuer_secret?: string | null;
|
|
133
|
-
/** Amount */
|
|
134
|
-
amount: number;
|
|
135
|
-
/**
|
|
136
|
-
* Asset id
|
|
137
|
-
* @format uuid
|
|
138
|
-
*/
|
|
139
|
-
asset_id: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface BlacklistedAccount {
|
|
143
|
-
/** ID */
|
|
144
|
-
id?: number;
|
|
145
|
-
/**
|
|
146
|
-
* Public address
|
|
147
|
-
* @minLength 1
|
|
148
|
-
* @maxLength 100
|
|
149
|
-
*/
|
|
150
|
-
public_address: string;
|
|
151
|
-
/**
|
|
152
|
-
* Name
|
|
153
|
-
* @maxLength 100
|
|
154
|
-
*/
|
|
155
|
-
name?: string | null;
|
|
156
|
-
/**
|
|
157
|
-
* Description
|
|
158
|
-
* @maxLength 255
|
|
159
|
-
*/
|
|
160
|
-
description?: string | null;
|
|
161
|
-
/**
|
|
162
|
-
* Created
|
|
163
|
-
* @format date-time
|
|
164
|
-
*/
|
|
165
|
-
created?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Updated
|
|
168
|
-
* @format date-time
|
|
169
|
-
*/
|
|
170
|
-
updated?: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface Coldstorage {
|
|
174
|
-
/** Balance */
|
|
175
|
-
balance?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Rehive account reference
|
|
178
|
-
* @minLength 1
|
|
179
|
-
*/
|
|
180
|
-
rehive_account_reference?: string;
|
|
181
|
-
/** User account identifier */
|
|
182
|
-
user_account_identifier?: string;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export interface ColdstorageAccount {
|
|
186
|
-
/**
|
|
187
|
-
* Id
|
|
188
|
-
* @format uuid
|
|
189
|
-
*/
|
|
190
|
-
id?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Account address
|
|
193
|
-
* @maxLength 100
|
|
194
|
-
*/
|
|
195
|
-
account_address?: string | null;
|
|
196
|
-
/** Cursor */
|
|
197
|
-
cursor?: number;
|
|
198
|
-
/** User */
|
|
199
|
-
user?: string;
|
|
200
|
-
/** Status */
|
|
201
|
-
status?: "Active" | "Disabled" | "Removed";
|
|
202
|
-
/** Type */
|
|
203
|
-
type?: "deposit" | "withdraw" | "issue" | null;
|
|
204
|
-
/** Primary */
|
|
205
|
-
primary?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Date monitoring was disabled
|
|
208
|
-
* @format date-time
|
|
209
|
-
*/
|
|
210
|
-
date_monitoring_was_disabled?: string | null;
|
|
211
|
-
/** Service controlled */
|
|
212
|
-
service_controlled?: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* Note
|
|
215
|
-
* @maxLength 255
|
|
216
|
-
*/
|
|
217
|
-
note?: string | null;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface CompanyAdmin {
|
|
221
|
-
/**
|
|
222
|
-
* Identifier
|
|
223
|
-
* @minLength 1
|
|
224
|
-
*/
|
|
225
|
-
identifier?: string | null;
|
|
226
|
-
/**
|
|
227
|
-
* Secret
|
|
228
|
-
* @format uuid
|
|
229
|
-
*/
|
|
230
|
-
secret?: string | null;
|
|
231
|
-
/**
|
|
232
|
-
* Email
|
|
233
|
-
* @format email
|
|
234
|
-
* @maxLength 254
|
|
235
|
-
*/
|
|
236
|
-
email?: string | null;
|
|
237
|
-
/** Has completed setup */
|
|
238
|
-
has_completed_setup: boolean;
|
|
239
|
-
/** Active */
|
|
240
|
-
active?: boolean;
|
|
241
|
-
/** Is federated */
|
|
242
|
-
is_federated?: string;
|
|
243
|
-
/** Federation domain */
|
|
244
|
-
federation_domain?: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface DefaultGroupAccountPair {
|
|
248
|
-
/**
|
|
249
|
-
* Id
|
|
250
|
-
* @format uuid
|
|
251
|
-
*/
|
|
252
|
-
id?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Group
|
|
255
|
-
* @minLength 1
|
|
256
|
-
* @maxLength 100
|
|
257
|
-
*/
|
|
258
|
-
group: string;
|
|
259
|
-
/**
|
|
260
|
-
* Account
|
|
261
|
-
* @minLength 1
|
|
262
|
-
* @maxLength 100
|
|
263
|
-
*/
|
|
264
|
-
account: string;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export interface CompanyConfiguration {
|
|
268
|
-
/**
|
|
269
|
-
* Id
|
|
270
|
-
* @format uuid
|
|
271
|
-
*/
|
|
272
|
-
id?: string;
|
|
273
|
-
/**
|
|
274
|
-
* Transaction credit subtype
|
|
275
|
-
* @maxLength 100
|
|
276
|
-
*/
|
|
277
|
-
transaction_credit_subtype?: string | null;
|
|
278
|
-
/**
|
|
279
|
-
* Transaction debit subtype
|
|
280
|
-
* @maxLength 100
|
|
281
|
-
*/
|
|
282
|
-
transaction_debit_subtype?: string | null;
|
|
283
|
-
/**
|
|
284
|
-
* Transaction fee subtype
|
|
285
|
-
* @maxLength 100
|
|
286
|
-
*/
|
|
287
|
-
transaction_fee_subtype?: string | null;
|
|
288
|
-
/** Use default as fallback */
|
|
289
|
-
use_default_as_fallback?: boolean;
|
|
290
|
-
/**
|
|
291
|
-
* Transaction fund subtype
|
|
292
|
-
* @maxLength 100
|
|
293
|
-
*/
|
|
294
|
-
transaction_fund_subtype?: string | null;
|
|
295
|
-
/**
|
|
296
|
-
* Transaction issue subtype
|
|
297
|
-
* @maxLength 100
|
|
298
|
-
*/
|
|
299
|
-
transaction_issue_subtype?: string | null;
|
|
300
|
-
/**
|
|
301
|
-
* Transaction withdraw subtype
|
|
302
|
-
* @maxLength 100
|
|
303
|
-
*/
|
|
304
|
-
transaction_withdraw_subtype?: string | null;
|
|
305
|
-
/**
|
|
306
|
-
* Transaction credit warmstorage subtype
|
|
307
|
-
* @maxLength 100
|
|
308
|
-
*/
|
|
309
|
-
transaction_credit_warmstorage_subtype?: string | null;
|
|
310
|
-
/**
|
|
311
|
-
* Transaction debit warmstorage subtype
|
|
312
|
-
* @maxLength 100
|
|
313
|
-
*/
|
|
314
|
-
transaction_debit_warmstorage_subtype?: string | null;
|
|
315
|
-
/**
|
|
316
|
-
* Transaction credit hotwallet subtype
|
|
317
|
-
* @maxLength 100
|
|
318
|
-
*/
|
|
319
|
-
transaction_credit_hotwallet_subtype?: string | null;
|
|
320
|
-
/**
|
|
321
|
-
* Transaction debit hotwallet subtype
|
|
322
|
-
* @maxLength 100
|
|
323
|
-
*/
|
|
324
|
-
transaction_debit_hotwallet_subtype?: string | null;
|
|
325
|
-
/**
|
|
326
|
-
* Transaction credit coldstorage subtype
|
|
327
|
-
* @maxLength 100
|
|
328
|
-
*/
|
|
329
|
-
transaction_credit_coldstorage_subtype?: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Transaction debit coldstorage subtype
|
|
332
|
-
* @maxLength 100
|
|
333
|
-
*/
|
|
334
|
-
transaction_debit_coldstorage_subtype?: string | null;
|
|
335
|
-
currency_fees_paid_by_company?: (string | null)[];
|
|
336
|
-
group_account_pairs?: DefaultGroupAccountPair[];
|
|
337
|
-
/** Disable withdrawals */
|
|
338
|
-
disable_withdrawals?: boolean;
|
|
339
|
-
/** Allow multiple memos per user */
|
|
340
|
-
allow_multiple_memos_per_user?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* External signer url
|
|
343
|
-
* @maxLength 255
|
|
344
|
-
*/
|
|
345
|
-
external_signer_url?: string | null;
|
|
346
|
-
/**
|
|
347
|
-
* External signer key
|
|
348
|
-
* @maxLength 255
|
|
349
|
-
*/
|
|
350
|
-
external_signer_key?: string | null;
|
|
351
|
-
/**
|
|
352
|
-
* Created
|
|
353
|
-
* @format date-time
|
|
354
|
-
*/
|
|
355
|
-
created?: string;
|
|
356
|
-
/**
|
|
357
|
-
* Updated
|
|
358
|
-
* @format date-time
|
|
359
|
-
*/
|
|
360
|
-
updated?: string;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export interface AnchorPlatformConfiguration {
|
|
364
|
-
/**
|
|
365
|
-
* Sep10 jwt secret
|
|
366
|
-
* @minLength 1
|
|
367
|
-
* @maxLength 100
|
|
368
|
-
*/
|
|
369
|
-
sep10_jwt_secret?: string | null;
|
|
370
|
-
/**
|
|
371
|
-
* Anchor platform api key
|
|
372
|
-
* @minLength 1
|
|
373
|
-
* @maxLength 100
|
|
374
|
-
*/
|
|
375
|
-
anchor_platform_api_key?: string | null;
|
|
376
|
-
/**
|
|
377
|
-
* Anchor platform base api
|
|
378
|
-
* @minLength 1
|
|
379
|
-
* @maxLength 255
|
|
380
|
-
*/
|
|
381
|
-
anchor_platform_base_api?: string | null;
|
|
382
|
-
/**
|
|
383
|
-
* Anchor tier requirement
|
|
384
|
-
* @minLength 1
|
|
385
|
-
* @maxLength 100
|
|
386
|
-
*/
|
|
387
|
-
anchor_tier_requirement?: string | null;
|
|
388
|
-
withdrawable_currencies?: (string | null)[];
|
|
389
|
-
/**
|
|
390
|
-
* Prs return url
|
|
391
|
-
* @minLength 1
|
|
392
|
-
* @maxLength 255
|
|
393
|
-
*/
|
|
394
|
-
prs_return_url?: string | null;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export interface StellarToml {
|
|
398
|
-
/**
|
|
399
|
-
* File
|
|
400
|
-
* @format uri
|
|
401
|
-
*/
|
|
402
|
-
file?: string;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
export interface Federation {
|
|
406
|
-
/**
|
|
407
|
-
* Id
|
|
408
|
-
* @format uuid
|
|
409
|
-
*/
|
|
410
|
-
id?: string;
|
|
411
|
-
/**
|
|
412
|
-
* Domain
|
|
413
|
-
* @maxLength 255
|
|
414
|
-
*/
|
|
415
|
-
domain?: string | null;
|
|
416
|
-
/** Validated */
|
|
417
|
-
validated?: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* Created
|
|
420
|
-
* @format date-time
|
|
421
|
-
*/
|
|
422
|
-
created?: string;
|
|
423
|
-
/**
|
|
424
|
-
* Updated
|
|
425
|
-
* @format date-time
|
|
426
|
-
*/
|
|
427
|
-
updated?: string;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
export interface Hotwallet {
|
|
431
|
-
/**
|
|
432
|
-
* Id
|
|
433
|
-
* @format uuid
|
|
434
|
-
*/
|
|
435
|
-
id?: string;
|
|
436
|
-
/**
|
|
437
|
-
* Rehive account reference
|
|
438
|
-
* @minLength 1
|
|
439
|
-
*/
|
|
440
|
-
rehive_account_reference?: string;
|
|
441
|
-
/**
|
|
442
|
-
* Low balance percentage
|
|
443
|
-
* @format decimal
|
|
444
|
-
*/
|
|
445
|
-
low_balance_percentage?: string;
|
|
446
|
-
/**
|
|
447
|
-
* Low balance amount
|
|
448
|
-
* @min -9223372036854776000
|
|
449
|
-
* @max 9223372036854776000
|
|
450
|
-
*/
|
|
451
|
-
low_balance_amount?: number;
|
|
452
|
-
/** Fee priority */
|
|
453
|
-
fee_priority?: "high" | "medium" | "low";
|
|
454
|
-
/** Fee maximum */
|
|
455
|
-
fee_maximum?:
|
|
456
|
-
| "10"
|
|
457
|
-
| "20"
|
|
458
|
-
| "30"
|
|
459
|
-
| "40"
|
|
460
|
-
| "50"
|
|
461
|
-
| "60"
|
|
462
|
-
| "70"
|
|
463
|
-
| "80"
|
|
464
|
-
| "90"
|
|
465
|
-
| "95"
|
|
466
|
-
| "99";
|
|
467
|
-
/** Externally signed */
|
|
468
|
-
externally_signed?: boolean;
|
|
469
|
-
/** Primary hotwallet account */
|
|
470
|
-
primary_hotwallet_account?: string;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export interface HotwalletBalance {
|
|
474
|
-
/** Balance */
|
|
475
|
-
balance?: string;
|
|
476
|
-
/** Rehive account reference */
|
|
477
|
-
rehive_account_reference?: string;
|
|
478
|
-
/** Low balance percentage */
|
|
479
|
-
low_balance_percentage?: string;
|
|
480
|
-
/** User account identifier */
|
|
481
|
-
user_account_identifier?: string;
|
|
482
|
-
/** Primary stellar account */
|
|
483
|
-
primary_stellar_account?: string;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export interface HotwalletFund {
|
|
487
|
-
/** Account address */
|
|
488
|
-
account_address?: string;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export interface HotwalletFees {
|
|
492
|
-
/** Total fees */
|
|
493
|
-
total_fees?: string;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export interface HotwalletMerge {
|
|
497
|
-
/**
|
|
498
|
-
* Destination account
|
|
499
|
-
* @minLength 1
|
|
500
|
-
*/
|
|
501
|
-
destination_account: string;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export interface HotwalletSend {
|
|
505
|
-
/**
|
|
506
|
-
* Rehive code
|
|
507
|
-
* @minLength 1
|
|
508
|
-
*/
|
|
509
|
-
rehive_code?: string;
|
|
510
|
-
/** Rehive response */
|
|
511
|
-
rehive_response?: object;
|
|
512
|
-
/** Reference */
|
|
513
|
-
reference?: string | null;
|
|
514
|
-
/** To reference */
|
|
515
|
-
to_reference?: string | null;
|
|
516
|
-
/**
|
|
517
|
-
* Amount
|
|
518
|
-
* @min 0
|
|
519
|
-
*/
|
|
520
|
-
amount: number;
|
|
521
|
-
/**
|
|
522
|
-
* Currency
|
|
523
|
-
* @default "XLM"
|
|
524
|
-
*/
|
|
525
|
-
currency?: string | null;
|
|
526
|
-
/**
|
|
527
|
-
* Account
|
|
528
|
-
* @default "default"
|
|
529
|
-
*/
|
|
530
|
-
account?: string | null;
|
|
531
|
-
/**
|
|
532
|
-
* Debit account
|
|
533
|
-
* @default "default"
|
|
534
|
-
*/
|
|
535
|
-
debit_account?: string | null;
|
|
536
|
-
/**
|
|
537
|
-
* Memo
|
|
538
|
-
* @maxLength 28
|
|
539
|
-
* @default ""
|
|
540
|
-
*/
|
|
541
|
-
memo?: string;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
export interface KnownPublicAddresses {
|
|
545
|
-
/** ID */
|
|
546
|
-
id?: number;
|
|
547
|
-
/**
|
|
548
|
-
* Public address
|
|
549
|
-
* @maxLength 100
|
|
550
|
-
*/
|
|
551
|
-
public_address?: string | null;
|
|
552
|
-
/**
|
|
553
|
-
* Name
|
|
554
|
-
* @maxLength 100
|
|
555
|
-
*/
|
|
556
|
-
name?: string | null;
|
|
557
|
-
/**
|
|
558
|
-
* Description
|
|
559
|
-
* @maxLength 255
|
|
560
|
-
*/
|
|
561
|
-
description?: string | null;
|
|
562
|
-
/**
|
|
563
|
-
* Logo
|
|
564
|
-
* @format uri
|
|
565
|
-
*/
|
|
566
|
-
logo?: string | null;
|
|
567
|
-
/** Requires memo */
|
|
568
|
-
requires_memo?: boolean;
|
|
569
|
-
/**
|
|
570
|
-
* Created
|
|
571
|
-
* @format date-time
|
|
572
|
-
*/
|
|
573
|
-
created?: string;
|
|
574
|
-
/**
|
|
575
|
-
* Updated
|
|
576
|
-
* @format date-time
|
|
577
|
-
*/
|
|
578
|
-
updated?: string;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
export interface AdminMemo {
|
|
582
|
-
/**
|
|
583
|
-
* Id
|
|
584
|
-
* @format uuid
|
|
585
|
-
*/
|
|
586
|
-
id?: string;
|
|
587
|
-
/**
|
|
588
|
-
* Data
|
|
589
|
-
* @minLength 1
|
|
590
|
-
*/
|
|
591
|
-
data?: string | null;
|
|
592
|
-
/** Memo type */
|
|
593
|
-
memo_type?: "MEMO_TEXT" | "MEMO_ID" | "MEMO_HASH" | "MEMO_RETURN" | null;
|
|
594
|
-
/**
|
|
595
|
-
* Rehive account
|
|
596
|
-
* @maxLength 255
|
|
597
|
-
*/
|
|
598
|
-
rehive_account?: string | null;
|
|
599
|
-
/** Primary */
|
|
600
|
-
primary?: boolean;
|
|
601
|
-
/**
|
|
602
|
-
* Created
|
|
603
|
-
* @format date-time
|
|
604
|
-
*/
|
|
605
|
-
created?: string;
|
|
606
|
-
/**
|
|
607
|
-
* Updated
|
|
608
|
-
* @format date-time
|
|
609
|
-
*/
|
|
610
|
-
updated?: string;
|
|
611
|
-
/** User */
|
|
612
|
-
user?: number | null;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
export interface UserSeralizer {
|
|
616
|
-
/**
|
|
617
|
-
* Id
|
|
618
|
-
* @minLength 1
|
|
619
|
-
*/
|
|
620
|
-
id?: string;
|
|
621
|
-
/**
|
|
622
|
-
* Email
|
|
623
|
-
* @format email
|
|
624
|
-
* @minLength 1
|
|
625
|
-
*/
|
|
626
|
-
email?: string | null;
|
|
627
|
-
/**
|
|
628
|
-
* Identifier
|
|
629
|
-
* @minLength 1
|
|
630
|
-
*/
|
|
631
|
-
identifier?: string;
|
|
632
|
-
/**
|
|
633
|
-
* First name
|
|
634
|
-
* @maxLength 50
|
|
635
|
-
*/
|
|
636
|
-
first_name?: string | null;
|
|
637
|
-
/**
|
|
638
|
-
* Last name
|
|
639
|
-
* @maxLength 50
|
|
640
|
-
*/
|
|
641
|
-
last_name?: string | null;
|
|
642
|
-
/**
|
|
643
|
-
* Created
|
|
644
|
-
* @format date-time
|
|
645
|
-
*/
|
|
646
|
-
created?: string;
|
|
647
|
-
/**
|
|
648
|
-
* Updated
|
|
649
|
-
* @format date-time
|
|
650
|
-
*/
|
|
651
|
-
updated?: string;
|
|
652
|
-
/**
|
|
653
|
-
* Account id
|
|
654
|
-
* @minLength 1
|
|
655
|
-
*/
|
|
656
|
-
account_id?: string | null;
|
|
657
|
-
/**
|
|
658
|
-
* Username
|
|
659
|
-
* @maxLength 150
|
|
660
|
-
*/
|
|
661
|
-
username?: string | null;
|
|
662
|
-
/** Memo */
|
|
663
|
-
memo?: string;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export interface AdminSEP10AuthenticatedAccount {
|
|
667
|
-
/**
|
|
668
|
-
* Identifier
|
|
669
|
-
* @format uuid
|
|
670
|
-
*/
|
|
671
|
-
identifier?: string;
|
|
672
|
-
/**
|
|
673
|
-
* Onchain identifier
|
|
674
|
-
* @minLength 1
|
|
675
|
-
*/
|
|
676
|
-
onchain_identifier?: string;
|
|
677
|
-
user: UserSeralizer;
|
|
678
|
-
/** Is validated */
|
|
679
|
-
is_validated?: boolean;
|
|
680
|
-
/**
|
|
681
|
-
* Client domain
|
|
682
|
-
* @minLength 1
|
|
683
|
-
*/
|
|
684
|
-
client_domain?: string | null;
|
|
685
|
-
/**
|
|
686
|
-
* Created
|
|
687
|
-
* @format date-time
|
|
688
|
-
*/
|
|
689
|
-
created?: string;
|
|
690
|
-
/**
|
|
691
|
-
* Updated
|
|
692
|
-
* @format date-time
|
|
693
|
-
*/
|
|
694
|
-
updated?: string;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
export interface Transaction {
|
|
698
|
-
/** ID */
|
|
699
|
-
id?: number;
|
|
700
|
-
/**
|
|
701
|
-
* User
|
|
702
|
-
* @minLength 1
|
|
703
|
-
*/
|
|
704
|
-
user: string;
|
|
705
|
-
/**
|
|
706
|
-
* Reason for assigning
|
|
707
|
-
* @maxLength 255
|
|
708
|
-
*/
|
|
709
|
-
reason_for_assigning?: string | null;
|
|
710
|
-
/**
|
|
711
|
-
* Rehive code
|
|
712
|
-
* @minLength 1
|
|
713
|
-
*/
|
|
714
|
-
rehive_code?: string | null;
|
|
715
|
-
/**
|
|
716
|
-
* External id
|
|
717
|
-
* @minLength 1
|
|
718
|
-
*/
|
|
719
|
-
external_id?: string | null;
|
|
720
|
-
/** Rehive response */
|
|
721
|
-
rehive_response?: object | null;
|
|
722
|
-
/** Tx type */
|
|
723
|
-
tx_type?:
|
|
724
|
-
| "debit"
|
|
725
|
-
| "credit"
|
|
726
|
-
| "deposit"
|
|
727
|
-
| "withdraw"
|
|
728
|
-
| "transfer"
|
|
729
|
-
| "fund"
|
|
730
|
-
| "issue"
|
|
731
|
-
| "asset_auth";
|
|
732
|
-
/** Amount */
|
|
733
|
-
amount?: number;
|
|
734
|
-
/**
|
|
735
|
-
* Currency
|
|
736
|
-
* @minLength 1
|
|
737
|
-
*/
|
|
738
|
-
currency?: string;
|
|
739
|
-
/** Status */
|
|
740
|
-
status?:
|
|
741
|
-
| "Initiated"
|
|
742
|
-
| "Quoted"
|
|
743
|
-
| "Unfunded"
|
|
744
|
-
| "Funded"
|
|
745
|
-
| "Waiting"
|
|
746
|
-
| "Pending"
|
|
747
|
-
| "Confirmed"
|
|
748
|
-
| "Complete"
|
|
749
|
-
| "Failed"
|
|
750
|
-
| "Cancelled"
|
|
751
|
-
| null;
|
|
752
|
-
/** Fee */
|
|
753
|
-
fee?: number;
|
|
754
|
-
/**
|
|
755
|
-
* To reference
|
|
756
|
-
* @minLength 1
|
|
757
|
-
*/
|
|
758
|
-
to_reference?: string | null;
|
|
759
|
-
/**
|
|
760
|
-
* From reference
|
|
761
|
-
* @minLength 1
|
|
762
|
-
*/
|
|
763
|
-
from_reference?: string | null;
|
|
764
|
-
/** Horizon response */
|
|
765
|
-
horizon_response?: object | null;
|
|
766
|
-
/** Withdrawal status */
|
|
767
|
-
withdrawal_status?:
|
|
768
|
-
| "pending_withdrawal"
|
|
769
|
-
| "failed_withdrawal"
|
|
770
|
-
| "approved_withdrawal"
|
|
771
|
-
| null;
|
|
772
|
-
/** Transaction hash */
|
|
773
|
-
transaction_hash?: string;
|
|
774
|
-
/**
|
|
775
|
-
* Xdr
|
|
776
|
-
* @minLength 1
|
|
777
|
-
*/
|
|
778
|
-
xdr?: string | null;
|
|
779
|
-
/** Signed */
|
|
780
|
-
signed?: boolean;
|
|
781
|
-
/**
|
|
782
|
-
* Memo
|
|
783
|
-
* @minLength 1
|
|
784
|
-
*/
|
|
785
|
-
memo?: string;
|
|
786
|
-
/**
|
|
787
|
-
* Created
|
|
788
|
-
* @format date-time
|
|
789
|
-
*/
|
|
790
|
-
created?: string;
|
|
791
|
-
/**
|
|
792
|
-
* Updated
|
|
793
|
-
* @format date-time
|
|
794
|
-
*/
|
|
795
|
-
updated?: string;
|
|
796
|
-
/**
|
|
797
|
-
* Completed
|
|
798
|
-
* @format date-time
|
|
799
|
-
*/
|
|
800
|
-
completed?: string | null;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export interface AdminSEP24Transaction {
|
|
804
|
-
/**
|
|
805
|
-
* Identifier
|
|
806
|
-
* @format uuid
|
|
807
|
-
*/
|
|
808
|
-
identifier?: string;
|
|
809
|
-
/**
|
|
810
|
-
* Anchor platform id
|
|
811
|
-
* @minLength 1
|
|
812
|
-
*/
|
|
813
|
-
anchor_platform_id?: string;
|
|
814
|
-
/**
|
|
815
|
-
* Sep10 authenticated account
|
|
816
|
-
* @format uuid
|
|
817
|
-
*/
|
|
818
|
-
sep10_authenticated_account?: string | null;
|
|
819
|
-
/** Prs request */
|
|
820
|
-
prs_request?: string;
|
|
821
|
-
/** Tx type */
|
|
822
|
-
tx_type: "deposit" | "withdraw";
|
|
823
|
-
/** Amount */
|
|
824
|
-
amount?: number;
|
|
825
|
-
/**
|
|
826
|
-
* Currency
|
|
827
|
-
* @minLength 1
|
|
828
|
-
*/
|
|
829
|
-
currency?: string;
|
|
830
|
-
transaction: Transaction;
|
|
831
|
-
/**
|
|
832
|
-
* Rehive withdrawal account reference
|
|
833
|
-
* @minLength 1
|
|
834
|
-
*/
|
|
835
|
-
rehive_withdrawal_account_reference?: string | null;
|
|
836
|
-
/**
|
|
837
|
-
* Rehive withdrawal transaction id
|
|
838
|
-
* @minLength 1
|
|
839
|
-
*/
|
|
840
|
-
rehive_withdrawal_transaction_id?: string | null;
|
|
841
|
-
/**
|
|
842
|
-
* Processing account
|
|
843
|
-
* @minLength 1
|
|
844
|
-
*/
|
|
845
|
-
processing_account?: string;
|
|
846
|
-
/**
|
|
847
|
-
* Rehive internal dispersal collection id
|
|
848
|
-
* @minLength 1
|
|
849
|
-
*/
|
|
850
|
-
rehive_internal_dispersal_collection_id?: string;
|
|
851
|
-
/**
|
|
852
|
-
* Created
|
|
853
|
-
* @format date-time
|
|
854
|
-
*/
|
|
855
|
-
created?: string;
|
|
856
|
-
/**
|
|
857
|
-
* Updated
|
|
858
|
-
* @format date-time
|
|
859
|
-
*/
|
|
860
|
-
updated?: string;
|
|
861
|
-
/** Status */
|
|
862
|
-
status:
|
|
863
|
-
| "initiated"
|
|
864
|
-
| "initiated_invoicing"
|
|
865
|
-
| "prs_requested"
|
|
866
|
-
| "prs_quoted"
|
|
867
|
-
| "prs_processing"
|
|
868
|
-
| "prs_complete"
|
|
869
|
-
| "processing_internal_dispersal"
|
|
870
|
-
| "completed_internal_dispersal"
|
|
871
|
-
| "processing_external_dispersal"
|
|
872
|
-
| "completed_external_dispersal"
|
|
873
|
-
| "complete"
|
|
874
|
-
| "failed";
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
export interface StellarAccount {
|
|
878
|
-
/**
|
|
879
|
-
* Id
|
|
880
|
-
* @format uuid
|
|
881
|
-
*/
|
|
882
|
-
id?: string;
|
|
883
|
-
/**
|
|
884
|
-
* Account address
|
|
885
|
-
* @maxLength 100
|
|
886
|
-
*/
|
|
887
|
-
account_address?: string | null;
|
|
888
|
-
/** Cursor */
|
|
889
|
-
cursor?: number;
|
|
890
|
-
/** User */
|
|
891
|
-
user?: string;
|
|
892
|
-
/** Status */
|
|
893
|
-
status?: "Active" | "Disabled" | "Removed";
|
|
894
|
-
/** Type */
|
|
895
|
-
type?: "deposit" | "withdraw" | "issue" | null;
|
|
896
|
-
/** Primary */
|
|
897
|
-
primary?: boolean;
|
|
898
|
-
/**
|
|
899
|
-
* Date monitoring was disabled
|
|
900
|
-
* @format date-time
|
|
901
|
-
*/
|
|
902
|
-
date_monitoring_was_disabled?: string | null;
|
|
903
|
-
/** Service controlled */
|
|
904
|
-
service_controlled?: boolean;
|
|
905
|
-
/**
|
|
906
|
-
* Note
|
|
907
|
-
* @maxLength 255
|
|
908
|
-
*/
|
|
909
|
-
note?: string | null;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export interface StellarAccountGenerate {
|
|
913
|
-
/**
|
|
914
|
-
* Id
|
|
915
|
-
* @format uuid
|
|
916
|
-
*/
|
|
917
|
-
id?: string;
|
|
918
|
-
/**
|
|
919
|
-
* Account address
|
|
920
|
-
* @minLength 1
|
|
921
|
-
*/
|
|
922
|
-
account_address?: string | null;
|
|
923
|
-
/** Type */
|
|
924
|
-
type?: "deposit" | "withdraw" | "issue" | null;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export interface StellarAccountChangeOwnership {
|
|
928
|
-
/**
|
|
929
|
-
* New owner address
|
|
930
|
-
* @minLength 1
|
|
931
|
-
*/
|
|
932
|
-
new_owner_address: string;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
export interface AdminUserInfoSeralizer {
|
|
936
|
-
/**
|
|
937
|
-
* Id
|
|
938
|
-
* @minLength 1
|
|
939
|
-
*/
|
|
940
|
-
id?: string;
|
|
941
|
-
/**
|
|
942
|
-
* Email
|
|
943
|
-
* @format email
|
|
944
|
-
* @minLength 1
|
|
945
|
-
*/
|
|
946
|
-
email?: string | null;
|
|
947
|
-
/**
|
|
948
|
-
* Identifier
|
|
949
|
-
* @minLength 1
|
|
950
|
-
*/
|
|
951
|
-
identifier?: string;
|
|
952
|
-
/** Crypto */
|
|
953
|
-
crypto?: string;
|
|
954
|
-
/**
|
|
955
|
-
* Username
|
|
956
|
-
* @maxLength 150
|
|
957
|
-
*/
|
|
958
|
-
username?: string | null;
|
|
959
|
-
/** Memo */
|
|
960
|
-
memo?: string;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
export interface AdminTransaction {
|
|
964
|
-
/** ID */
|
|
965
|
-
id?: number;
|
|
966
|
-
user: AdminUserInfoSeralizer;
|
|
967
|
-
/**
|
|
968
|
-
* Reason for assigning
|
|
969
|
-
* @maxLength 255
|
|
970
|
-
*/
|
|
971
|
-
reason_for_assigning?: string | null;
|
|
972
|
-
/**
|
|
973
|
-
* Rehive code
|
|
974
|
-
* @minLength 1
|
|
975
|
-
*/
|
|
976
|
-
rehive_code?: string | null;
|
|
977
|
-
/**
|
|
978
|
-
* External id
|
|
979
|
-
* @minLength 1
|
|
980
|
-
*/
|
|
981
|
-
external_id?: string | null;
|
|
982
|
-
/** Rehive response */
|
|
983
|
-
rehive_response?: object | null;
|
|
984
|
-
/** Tx type */
|
|
985
|
-
tx_type?:
|
|
986
|
-
| "debit"
|
|
987
|
-
| "credit"
|
|
988
|
-
| "deposit"
|
|
989
|
-
| "withdraw"
|
|
990
|
-
| "transfer"
|
|
991
|
-
| "fund"
|
|
992
|
-
| "issue"
|
|
993
|
-
| "asset_auth";
|
|
994
|
-
/** Amount */
|
|
995
|
-
amount?: number;
|
|
996
|
-
/**
|
|
997
|
-
* Currency
|
|
998
|
-
* @minLength 1
|
|
999
|
-
*/
|
|
1000
|
-
currency?: string;
|
|
1001
|
-
/** Status */
|
|
1002
|
-
status?:
|
|
1003
|
-
| "Initiated"
|
|
1004
|
-
| "Quoted"
|
|
1005
|
-
| "Unfunded"
|
|
1006
|
-
| "Funded"
|
|
1007
|
-
| "Waiting"
|
|
1008
|
-
| "Pending"
|
|
1009
|
-
| "Confirmed"
|
|
1010
|
-
| "Complete"
|
|
1011
|
-
| "Failed"
|
|
1012
|
-
| "Cancelled"
|
|
1013
|
-
| null;
|
|
1014
|
-
/** Fee */
|
|
1015
|
-
fee?: number;
|
|
1016
|
-
/**
|
|
1017
|
-
* To reference
|
|
1018
|
-
* @minLength 1
|
|
1019
|
-
*/
|
|
1020
|
-
to_reference?: string | null;
|
|
1021
|
-
/**
|
|
1022
|
-
* From reference
|
|
1023
|
-
* @minLength 1
|
|
1024
|
-
*/
|
|
1025
|
-
from_reference?: string | null;
|
|
1026
|
-
/** Horizon response */
|
|
1027
|
-
horizon_response?: object | null;
|
|
1028
|
-
/** Withdrawal status */
|
|
1029
|
-
withdrawal_status?:
|
|
1030
|
-
| "pending_withdrawal"
|
|
1031
|
-
| "failed_withdrawal"
|
|
1032
|
-
| "approved_withdrawal"
|
|
1033
|
-
| null;
|
|
1034
|
-
/** Transaction hash */
|
|
1035
|
-
transaction_hash?: string;
|
|
1036
|
-
/**
|
|
1037
|
-
* Xdr
|
|
1038
|
-
* @minLength 1
|
|
1039
|
-
*/
|
|
1040
|
-
xdr?: string | null;
|
|
1041
|
-
/** Signed */
|
|
1042
|
-
signed?: boolean;
|
|
1043
|
-
/**
|
|
1044
|
-
* Memo
|
|
1045
|
-
* @minLength 1
|
|
1046
|
-
*/
|
|
1047
|
-
memo?: string;
|
|
1048
|
-
/**
|
|
1049
|
-
* Created
|
|
1050
|
-
* @format date-time
|
|
1051
|
-
*/
|
|
1052
|
-
created?: string;
|
|
1053
|
-
/**
|
|
1054
|
-
* Updated
|
|
1055
|
-
* @format date-time
|
|
1056
|
-
*/
|
|
1057
|
-
updated?: string;
|
|
1058
|
-
/**
|
|
1059
|
-
* Completed
|
|
1060
|
-
* @format date-time
|
|
1061
|
-
*/
|
|
1062
|
-
completed?: string | null;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface AdminSendTransaction {
|
|
1066
|
-
/**
|
|
1067
|
-
* Rehive code
|
|
1068
|
-
* @minLength 1
|
|
1069
|
-
*/
|
|
1070
|
-
rehive_code?: string;
|
|
1071
|
-
/** Rehive response */
|
|
1072
|
-
rehive_response?: object;
|
|
1073
|
-
/** Reference */
|
|
1074
|
-
reference?: string | null;
|
|
1075
|
-
/** To reference */
|
|
1076
|
-
to_reference?: string | null;
|
|
1077
|
-
/**
|
|
1078
|
-
* Amount
|
|
1079
|
-
* @min 0
|
|
1080
|
-
*/
|
|
1081
|
-
amount: number;
|
|
1082
|
-
/**
|
|
1083
|
-
* Currency
|
|
1084
|
-
* @default "XLM"
|
|
1085
|
-
*/
|
|
1086
|
-
currency?: string | null;
|
|
1087
|
-
/**
|
|
1088
|
-
* Account
|
|
1089
|
-
* @default "default"
|
|
1090
|
-
*/
|
|
1091
|
-
account?: string | null;
|
|
1092
|
-
/**
|
|
1093
|
-
* Debit account
|
|
1094
|
-
* @default "default"
|
|
1095
|
-
*/
|
|
1096
|
-
debit_account?: string | null;
|
|
1097
|
-
/**
|
|
1098
|
-
* Memo
|
|
1099
|
-
* @maxLength 28
|
|
1100
|
-
* @default ""
|
|
1101
|
-
*/
|
|
1102
|
-
memo?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* User
|
|
1105
|
-
* @minLength 1
|
|
1106
|
-
*/
|
|
1107
|
-
user: string;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export interface AdminUser {
|
|
1111
|
-
/**
|
|
1112
|
-
* Id
|
|
1113
|
-
* @minLength 1
|
|
1114
|
-
*/
|
|
1115
|
-
id?: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* Email
|
|
1118
|
-
* @format email
|
|
1119
|
-
* @minLength 1
|
|
1120
|
-
*/
|
|
1121
|
-
email?: string | null;
|
|
1122
|
-
/**
|
|
1123
|
-
* Identifier
|
|
1124
|
-
* @minLength 1
|
|
1125
|
-
*/
|
|
1126
|
-
identifier?: string;
|
|
1127
|
-
/**
|
|
1128
|
-
* First name
|
|
1129
|
-
* @maxLength 50
|
|
1130
|
-
*/
|
|
1131
|
-
first_name?: string | null;
|
|
1132
|
-
/**
|
|
1133
|
-
* Last name
|
|
1134
|
-
* @maxLength 50
|
|
1135
|
-
*/
|
|
1136
|
-
last_name?: string | null;
|
|
1137
|
-
/**
|
|
1138
|
-
* Created
|
|
1139
|
-
* @format date-time
|
|
1140
|
-
*/
|
|
1141
|
-
created?: string;
|
|
1142
|
-
/**
|
|
1143
|
-
* Updated
|
|
1144
|
-
* @format date-time
|
|
1145
|
-
*/
|
|
1146
|
-
updated?: string;
|
|
1147
|
-
/**
|
|
1148
|
-
* Account id
|
|
1149
|
-
* @minLength 1
|
|
1150
|
-
*/
|
|
1151
|
-
account_id?: string | null;
|
|
1152
|
-
/** Crypto */
|
|
1153
|
-
crypto?: string;
|
|
1154
|
-
/**
|
|
1155
|
-
* Username
|
|
1156
|
-
* @maxLength 150
|
|
1157
|
-
*/
|
|
1158
|
-
username?: string | null;
|
|
1159
|
-
/** Memo */
|
|
1160
|
-
memo?: string;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
export interface AdminUserMemo {
|
|
1164
|
-
/**
|
|
1165
|
-
* Id
|
|
1166
|
-
* @format uuid
|
|
1167
|
-
*/
|
|
1168
|
-
id?: string;
|
|
1169
|
-
/**
|
|
1170
|
-
* Data
|
|
1171
|
-
* @minLength 1
|
|
1172
|
-
*/
|
|
1173
|
-
data?: string | null;
|
|
1174
|
-
/** Memo type */
|
|
1175
|
-
memo_type?: "MEMO_TEXT" | "MEMO_ID" | "MEMO_HASH" | "MEMO_RETURN" | null;
|
|
1176
|
-
/**
|
|
1177
|
-
* Rehive account
|
|
1178
|
-
* @maxLength 255
|
|
1179
|
-
*/
|
|
1180
|
-
rehive_account?: string | null;
|
|
1181
|
-
/** Primary */
|
|
1182
|
-
primary?: boolean;
|
|
1183
|
-
/**
|
|
1184
|
-
* Created
|
|
1185
|
-
* @format date-time
|
|
1186
|
-
*/
|
|
1187
|
-
created?: string;
|
|
1188
|
-
/**
|
|
1189
|
-
* Updated
|
|
1190
|
-
* @format date-time
|
|
1191
|
-
*/
|
|
1192
|
-
updated?: string;
|
|
1193
|
-
/** User */
|
|
1194
|
-
user?: number | null;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
export interface Warmstorage {
|
|
1198
|
-
/** Balance */
|
|
1199
|
-
balance?: string;
|
|
1200
|
-
/**
|
|
1201
|
-
* Rehive account reference
|
|
1202
|
-
* @minLength 1
|
|
1203
|
-
*/
|
|
1204
|
-
rehive_account_reference?: string;
|
|
1205
|
-
/** User account identifier */
|
|
1206
|
-
user_account_identifier?: string;
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
export interface WarmstorageAccount {
|
|
1210
|
-
/**
|
|
1211
|
-
* Id
|
|
1212
|
-
* @format uuid
|
|
1213
|
-
*/
|
|
1214
|
-
id?: string;
|
|
1215
|
-
/**
|
|
1216
|
-
* Account address
|
|
1217
|
-
* @maxLength 100
|
|
1218
|
-
*/
|
|
1219
|
-
account_address?: string | null;
|
|
1220
|
-
/** Cursor */
|
|
1221
|
-
cursor?: number;
|
|
1222
|
-
/** User */
|
|
1223
|
-
user?: string;
|
|
1224
|
-
/** Status */
|
|
1225
|
-
status?: "Active" | "Disabled" | "Removed";
|
|
1226
|
-
/** Type */
|
|
1227
|
-
type?: "deposit" | "withdraw" | "issue" | null;
|
|
1228
|
-
/** Primary */
|
|
1229
|
-
primary?: boolean;
|
|
1230
|
-
/**
|
|
1231
|
-
* Date monitoring was disabled
|
|
1232
|
-
* @format date-time
|
|
1233
|
-
*/
|
|
1234
|
-
date_monitoring_was_disabled?: string | null;
|
|
1235
|
-
/**
|
|
1236
|
-
* Note
|
|
1237
|
-
* @maxLength 255
|
|
1238
|
-
*/
|
|
1239
|
-
note?: string | null;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
export interface UserCompanyConfiguration {
|
|
1243
|
-
/**
|
|
1244
|
-
* Transaction credit subtype
|
|
1245
|
-
* @minLength 1
|
|
1246
|
-
*/
|
|
1247
|
-
transaction_credit_subtype?: string | null;
|
|
1248
|
-
/**
|
|
1249
|
-
* Transaction debit subtype
|
|
1250
|
-
* @minLength 1
|
|
1251
|
-
*/
|
|
1252
|
-
transaction_debit_subtype?: string | null;
|
|
1253
|
-
/**
|
|
1254
|
-
* Transaction fee subtype
|
|
1255
|
-
* @minLength 1
|
|
1256
|
-
*/
|
|
1257
|
-
transaction_fee_subtype?: string | null;
|
|
1258
|
-
/**
|
|
1259
|
-
* Transaction fund subtype
|
|
1260
|
-
* @minLength 1
|
|
1261
|
-
*/
|
|
1262
|
-
transaction_fund_subtype?: string | null;
|
|
1263
|
-
/**
|
|
1264
|
-
* Transaction withdraw subtype
|
|
1265
|
-
* @minLength 1
|
|
1266
|
-
*/
|
|
1267
|
-
transaction_withdraw_subtype?: string | null;
|
|
1268
|
-
/** Disable withdrawals */
|
|
1269
|
-
disable_withdrawals?: boolean;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
export interface Company {
|
|
1273
|
-
/**
|
|
1274
|
-
* Identifier
|
|
1275
|
-
* @minLength 1
|
|
1276
|
-
*/
|
|
1277
|
-
identifier?: string | null;
|
|
1278
|
-
/** Active */
|
|
1279
|
-
active?: boolean;
|
|
1280
|
-
/** Is federated */
|
|
1281
|
-
is_federated?: string;
|
|
1282
|
-
/** Federation domain */
|
|
1283
|
-
federation_domain?: string;
|
|
1284
|
-
/** Has service issued acccounts */
|
|
1285
|
-
has_service_issued_acccounts?: string;
|
|
1286
|
-
company_configuration: UserCompanyConfiguration;
|
|
1287
|
-
/** Anchor tier requirement */
|
|
1288
|
-
anchor_tier_requirement?: string;
|
|
1289
|
-
/** Sep24 withdrawable currencies */
|
|
1290
|
-
sep24_withdrawable_currencies?: string;
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
export interface Asset {
|
|
1294
|
-
/**
|
|
1295
|
-
* Hotwallet account id
|
|
1296
|
-
* @minLength 1
|
|
1297
|
-
*/
|
|
1298
|
-
hotwallet_account_id?: string;
|
|
1299
|
-
/**
|
|
1300
|
-
* Currency code
|
|
1301
|
-
* @minLength 1
|
|
1302
|
-
*/
|
|
1303
|
-
currency_code?: string;
|
|
1304
|
-
/**
|
|
1305
|
-
* Display decimals
|
|
1306
|
-
* @minLength 1
|
|
1307
|
-
*/
|
|
1308
|
-
display_decimals?: string;
|
|
1309
|
-
/**
|
|
1310
|
-
* Address
|
|
1311
|
-
* @minLength 1
|
|
1312
|
-
*/
|
|
1313
|
-
address?: string;
|
|
1314
|
-
/**
|
|
1315
|
-
* Id
|
|
1316
|
-
* @minLength 1
|
|
1317
|
-
*/
|
|
1318
|
-
id: string;
|
|
1319
|
-
/** Sep24 enabled */
|
|
1320
|
-
sep24_enabled?: boolean;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
export interface Deactivate {
|
|
1324
|
-
/**
|
|
1325
|
-
* Token
|
|
1326
|
-
* @minLength 1
|
|
1327
|
-
*/
|
|
1328
|
-
token: string;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
export interface PRSWebhook {
|
|
1332
|
-
/**
|
|
1333
|
-
* Id
|
|
1334
|
-
* @minLength 1
|
|
1335
|
-
*/
|
|
1336
|
-
id: string;
|
|
1337
|
-
/** Event */
|
|
1338
|
-
event: "service_payment_requests.request.update";
|
|
1339
|
-
/**
|
|
1340
|
-
* Company
|
|
1341
|
-
* @minLength 1
|
|
1342
|
-
*/
|
|
1343
|
-
company: string;
|
|
1344
|
-
/** Data */
|
|
1345
|
-
data: object;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
export interface InfoView {
|
|
1349
|
-
/** Stellar network */
|
|
1350
|
-
stellar_network?: string;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
export interface KnownAssets {
|
|
1354
|
-
/**
|
|
1355
|
-
* Address
|
|
1356
|
-
* @minLength 1
|
|
1357
|
-
*/
|
|
1358
|
-
address?: string | null;
|
|
1359
|
-
/**
|
|
1360
|
-
* Code
|
|
1361
|
-
* @minLength 1
|
|
1362
|
-
*/
|
|
1363
|
-
code?: string | null;
|
|
1364
|
-
/**
|
|
1365
|
-
* Description
|
|
1366
|
-
* @minLength 1
|
|
1367
|
-
*/
|
|
1368
|
-
description?: string | null;
|
|
1369
|
-
/**
|
|
1370
|
-
* Symbol
|
|
1371
|
-
* @minLength 1
|
|
1372
|
-
*/
|
|
1373
|
-
symbol?: string | null;
|
|
1374
|
-
/**
|
|
1375
|
-
* Unit
|
|
1376
|
-
* @minLength 1
|
|
1377
|
-
*/
|
|
1378
|
-
unit?: string | null;
|
|
1379
|
-
/**
|
|
1380
|
-
* Icon
|
|
1381
|
-
* @minLength 1
|
|
1382
|
-
*/
|
|
1383
|
-
icon?: string | null;
|
|
1384
|
-
/**
|
|
1385
|
-
* Website
|
|
1386
|
-
* @minLength 1
|
|
1387
|
-
*/
|
|
1388
|
-
website?: string | null;
|
|
1389
|
-
/**
|
|
1390
|
-
* Name
|
|
1391
|
-
* @minLength 1
|
|
1392
|
-
*/
|
|
1393
|
-
name?: string | null;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
export interface SendTransaction {
|
|
1397
|
-
/**
|
|
1398
|
-
* Rehive code
|
|
1399
|
-
* @minLength 1
|
|
1400
|
-
*/
|
|
1401
|
-
rehive_code?: string;
|
|
1402
|
-
/** Rehive response */
|
|
1403
|
-
rehive_response?: object;
|
|
1404
|
-
/** Reference */
|
|
1405
|
-
reference?: string | null;
|
|
1406
|
-
/** To reference */
|
|
1407
|
-
to_reference?: string | null;
|
|
1408
|
-
/**
|
|
1409
|
-
* Amount
|
|
1410
|
-
* @min 0
|
|
1411
|
-
*/
|
|
1412
|
-
amount: number;
|
|
1413
|
-
/**
|
|
1414
|
-
* Currency
|
|
1415
|
-
* @default "XLM"
|
|
1416
|
-
*/
|
|
1417
|
-
currency?: string | null;
|
|
1418
|
-
/**
|
|
1419
|
-
* Account
|
|
1420
|
-
* @default "default"
|
|
1421
|
-
*/
|
|
1422
|
-
account?: string | null;
|
|
1423
|
-
/**
|
|
1424
|
-
* Debit account
|
|
1425
|
-
* @default "default"
|
|
1426
|
-
*/
|
|
1427
|
-
debit_account?: string | null;
|
|
1428
|
-
/**
|
|
1429
|
-
* Memo
|
|
1430
|
-
* @maxLength 28
|
|
1431
|
-
* @default ""
|
|
1432
|
-
*/
|
|
1433
|
-
memo?: string;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
export interface UserInfoSeralizer {
|
|
1437
|
-
/**
|
|
1438
|
-
* Id
|
|
1439
|
-
* @minLength 1
|
|
1440
|
-
*/
|
|
1441
|
-
id?: string;
|
|
1442
|
-
/**
|
|
1443
|
-
* Email
|
|
1444
|
-
* @format email
|
|
1445
|
-
* @minLength 1
|
|
1446
|
-
*/
|
|
1447
|
-
email?: string | null;
|
|
1448
|
-
/**
|
|
1449
|
-
* Identifier
|
|
1450
|
-
* @minLength 1
|
|
1451
|
-
*/
|
|
1452
|
-
identifier?: string;
|
|
1453
|
-
/** Crypto */
|
|
1454
|
-
crypto?: string;
|
|
1455
|
-
/**
|
|
1456
|
-
* Username
|
|
1457
|
-
* @maxLength 150
|
|
1458
|
-
*/
|
|
1459
|
-
username?: string | null;
|
|
1460
|
-
/** Memo */
|
|
1461
|
-
memo?: string;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
export type AnchorAccountValidate = object;
|
|
1465
|
-
|
|
1466
|
-
export type AnchorSessionValidate = object;
|
|
1467
|
-
|
|
1468
|
-
export interface UserSEP24Transaction {
|
|
1469
|
-
/**
|
|
1470
|
-
* Identifier
|
|
1471
|
-
* @format uuid
|
|
1472
|
-
*/
|
|
1473
|
-
identifier?: string;
|
|
1474
|
-
/**
|
|
1475
|
-
* Anchor platform id
|
|
1476
|
-
* @minLength 1
|
|
1477
|
-
*/
|
|
1478
|
-
anchor_platform_id?: string;
|
|
1479
|
-
/** Prs request id */
|
|
1480
|
-
prs_request_id?: string;
|
|
1481
|
-
/** Tx type */
|
|
1482
|
-
tx_type: "deposit" | "withdraw";
|
|
1483
|
-
/**
|
|
1484
|
-
* Amount
|
|
1485
|
-
* @min -9223372036854776000
|
|
1486
|
-
* @max 9223372036854776000
|
|
1487
|
-
*/
|
|
1488
|
-
amount?: number;
|
|
1489
|
-
/**
|
|
1490
|
-
* Currency
|
|
1491
|
-
* @minLength 1
|
|
1492
|
-
* @maxLength 10
|
|
1493
|
-
*/
|
|
1494
|
-
currency: string;
|
|
1495
|
-
/** Transaction hash */
|
|
1496
|
-
transaction_hash?: string;
|
|
1497
|
-
/**
|
|
1498
|
-
* Rehive withdrawal account reference
|
|
1499
|
-
* @maxLength 50
|
|
1500
|
-
*/
|
|
1501
|
-
rehive_withdrawal_account_reference?: string | null;
|
|
1502
|
-
/**
|
|
1503
|
-
* Created
|
|
1504
|
-
* @format date-time
|
|
1505
|
-
*/
|
|
1506
|
-
created?: string;
|
|
1507
|
-
/**
|
|
1508
|
-
* Updated
|
|
1509
|
-
* @format date-time
|
|
1510
|
-
*/
|
|
1511
|
-
updated?: string;
|
|
1512
|
-
/** Status */
|
|
1513
|
-
status:
|
|
1514
|
-
| "initiated"
|
|
1515
|
-
| "initiated_invoicing"
|
|
1516
|
-
| "prs_requested"
|
|
1517
|
-
| "prs_quoted"
|
|
1518
|
-
| "prs_processing"
|
|
1519
|
-
| "prs_complete"
|
|
1520
|
-
| "processing_internal_dispersal"
|
|
1521
|
-
| "completed_internal_dispersal"
|
|
1522
|
-
| "processing_external_dispersal"
|
|
1523
|
-
| "completed_external_dispersal"
|
|
1524
|
-
| "complete"
|
|
1525
|
-
| "failed";
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
export interface UserMemo {
|
|
1529
|
-
/**
|
|
1530
|
-
* Id
|
|
1531
|
-
* @format uuid
|
|
1532
|
-
*/
|
|
1533
|
-
id?: string;
|
|
1534
|
-
/**
|
|
1535
|
-
* Data
|
|
1536
|
-
* @minLength 1
|
|
1537
|
-
*/
|
|
1538
|
-
data?: string | null;
|
|
1539
|
-
/** Memo type */
|
|
1540
|
-
memo_type?: "MEMO_TEXT" | "MEMO_ID" | "MEMO_HASH" | "MEMO_RETURN" | null;
|
|
1541
|
-
/**
|
|
1542
|
-
* Rehive account
|
|
1543
|
-
* @maxLength 255
|
|
1544
|
-
*/
|
|
1545
|
-
rehive_account?: string | null;
|
|
1546
|
-
/** Primary */
|
|
1547
|
-
primary?: boolean;
|
|
1548
|
-
/**
|
|
1549
|
-
* Created
|
|
1550
|
-
* @format date-time
|
|
1551
|
-
*/
|
|
1552
|
-
created?: string;
|
|
1553
|
-
/**
|
|
1554
|
-
* Updated
|
|
1555
|
-
* @format date-time
|
|
1556
|
-
*/
|
|
1557
|
-
updated?: string;
|
|
1558
|
-
/** User */
|
|
1559
|
-
user?: number | null;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
export interface SetUsernameMemo {
|
|
1563
|
-
/**
|
|
1564
|
-
* Username
|
|
1565
|
-
* @minLength 1
|
|
1566
|
-
*/
|
|
1567
|
-
username: string;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
export type ActivateCreateData = Activate;
|
|
1571
|
-
|
|
1572
|
-
export type AdminAssetListData = AdminCreateAsset[];
|
|
1573
|
-
|
|
1574
|
-
export type AdminAssetCreateData = AdminCreateAsset;
|
|
1575
|
-
|
|
1576
|
-
export type AdminAssetReadData = AdminAsset;
|
|
1577
|
-
|
|
1578
|
-
export type AdminAssetPartialUpdateData = AdminAsset;
|
|
1579
|
-
|
|
1580
|
-
export type AdminAssetAuthoriseHolderCreateData = AdminAuthAssetTrust;
|
|
1581
|
-
|
|
1582
|
-
export type AdminAssetFundCreateData = AdminFundAsset;
|
|
1583
|
-
|
|
1584
|
-
export type AdminBlacklistedAccountReadData = BlacklistedAccount;
|
|
1585
|
-
|
|
1586
|
-
export type AdminBlacklistedAccountUpdateData = BlacklistedAccount;
|
|
1587
|
-
|
|
1588
|
-
export type AdminBlacklistedAccountPartialUpdateData = BlacklistedAccount;
|
|
1589
|
-
|
|
1590
|
-
export type AdminBlacklistedAccountDeleteData = any;
|
|
1591
|
-
|
|
1592
|
-
export type AdminBlacklistedAccountsListData = BlacklistedAccount[];
|
|
1593
|
-
|
|
1594
|
-
export type AdminBlacklistedAccountsCreateData = BlacklistedAccount;
|
|
1595
|
-
|
|
1596
|
-
export interface AdminColdstorageListParams {
|
|
1597
|
-
/** A page number within the paginated result set. */
|
|
1598
|
-
page?: number;
|
|
1599
|
-
/** Number of results to return per page. */
|
|
1600
|
-
page_size?: number;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
export interface AdminColdstorageListData {
|
|
1604
|
-
count: number;
|
|
1605
|
-
/** @format uri */
|
|
1606
|
-
next?: string | null;
|
|
1607
|
-
/** @format uri */
|
|
1608
|
-
previous?: string | null;
|
|
1609
|
-
results: Coldstorage[];
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
export interface AdminColdstorageAccountsListParams {
|
|
1613
|
-
/** A page number within the paginated result set. */
|
|
1614
|
-
page?: number;
|
|
1615
|
-
/** Number of results to return per page. */
|
|
1616
|
-
page_size?: number;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
export interface AdminColdstorageAccountsListData {
|
|
1620
|
-
count: number;
|
|
1621
|
-
/** @format uri */
|
|
1622
|
-
next?: string | null;
|
|
1623
|
-
/** @format uri */
|
|
1624
|
-
previous?: string | null;
|
|
1625
|
-
results: ColdstorageAccount[];
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
export type AdminColdstorageAccountsCreateData = ColdstorageAccount;
|
|
1629
|
-
|
|
1630
|
-
export type AdminColdstorageAccountsReadData = ColdstorageAccount;
|
|
1631
|
-
|
|
1632
|
-
export type AdminColdstorageAccountsPartialUpdateData = ColdstorageAccount;
|
|
1633
|
-
|
|
1634
|
-
export type AdminCompanyListData = CompanyAdmin[];
|
|
1635
|
-
|
|
1636
|
-
export type AdminCompanyPartialUpdateData = CompanyAdmin;
|
|
1637
|
-
|
|
1638
|
-
export type AdminCompanyConfigurationListData = CompanyConfiguration[];
|
|
1639
|
-
|
|
1640
|
-
export type AdminCompanyConfigurationUpdateData = CompanyConfiguration;
|
|
1641
|
-
|
|
1642
|
-
export type AdminCompanyConfigurationPartialUpdateData = CompanyConfiguration;
|
|
1643
|
-
|
|
1644
|
-
export type AdminCompanyConfigurationAccountGroupsListData =
|
|
1645
|
-
DefaultGroupAccountPair[];
|
|
1646
|
-
|
|
1647
|
-
export type AdminCompanyConfigurationAccountGroupsCreateData =
|
|
1648
|
-
DefaultGroupAccountPair;
|
|
1649
|
-
|
|
1650
|
-
export type AdminCompanyConfigurationAccountGroupsReadData =
|
|
1651
|
-
DefaultGroupAccountPair;
|
|
1652
|
-
|
|
1653
|
-
export type AdminCompanyConfigurationAccountGroupsUpdateData =
|
|
1654
|
-
DefaultGroupAccountPair;
|
|
1655
|
-
|
|
1656
|
-
export type AdminCompanyConfigurationAccountGroupsPartialUpdateData =
|
|
1657
|
-
DefaultGroupAccountPair;
|
|
1658
|
-
|
|
1659
|
-
export type AdminCompanyConfigurationAccountGroupsDeleteData = any;
|
|
1660
|
-
|
|
1661
|
-
export type AdminCompanyConfigurationAnchorPlatformListData =
|
|
1662
|
-
AnchorPlatformConfiguration[];
|
|
1663
|
-
|
|
1664
|
-
export type AdminCompanyConfigurationAnchorPlatformUpdateData =
|
|
1665
|
-
AnchorPlatformConfiguration;
|
|
1666
|
-
|
|
1667
|
-
export type AdminCompanyConfigurationAnchorPlatformPartialUpdateData =
|
|
1668
|
-
AnchorPlatformConfiguration;
|
|
1669
|
-
|
|
1670
|
-
export type AdminCompanyStellarTomlListData = StellarToml[];
|
|
1671
|
-
|
|
1672
|
-
export type AdminFederationListData = Federation[];
|
|
1673
|
-
|
|
1674
|
-
export type AdminFederationCreateData = Federation;
|
|
1675
|
-
|
|
1676
|
-
export type AdminHotwalletListData = Hotwallet[];
|
|
1677
|
-
|
|
1678
|
-
export type AdminHotwalletCreateData = Hotwallet;
|
|
1679
|
-
|
|
1680
|
-
export type AdminHotwalletPartialUpdateData = Hotwallet;
|
|
1681
|
-
|
|
1682
|
-
export type AdminHotwalletActiveListData = HotwalletBalance[];
|
|
1683
|
-
|
|
1684
|
-
export type AdminHotwalletEnableMssCreateData = HotwalletFund;
|
|
1685
|
-
|
|
1686
|
-
export type AdminHotwalletFeesListData = HotwalletFees[];
|
|
1687
|
-
|
|
1688
|
-
export type AdminHotwalletFundListData = HotwalletFund[];
|
|
1689
|
-
|
|
1690
|
-
export type AdminHotwalletMergeCreateData = HotwalletMerge;
|
|
1691
|
-
|
|
1692
|
-
export type AdminHotwalletSendCreateData = HotwalletSend;
|
|
1693
|
-
|
|
1694
|
-
export type AdminKnownPublicAddressesListData = KnownPublicAddresses[];
|
|
1695
|
-
|
|
1696
|
-
export type AdminKnownPublicAddressesCreateData = KnownPublicAddresses;
|
|
1697
|
-
|
|
1698
|
-
export type AdminKnownPublicAddressesReadData = KnownPublicAddresses;
|
|
1699
|
-
|
|
1700
|
-
export type AdminKnownPublicAddressesUpdateData = KnownPublicAddresses;
|
|
1701
|
-
|
|
1702
|
-
export type AdminKnownPublicAddressesPartialUpdateData = KnownPublicAddresses;
|
|
1703
|
-
|
|
1704
|
-
export type AdminKnownPublicAddressesDeleteData = any;
|
|
1705
|
-
|
|
1706
|
-
export type AdminMemosListData = AdminMemo[];
|
|
1707
|
-
|
|
1708
|
-
export type AdminMemosCreateData = AdminMemo;
|
|
1709
|
-
|
|
1710
|
-
export interface AdminSep10AuthenticatedAccountsListParams {
|
|
1711
|
-
/** A page number within the paginated result set. */
|
|
1712
|
-
page?: number;
|
|
1713
|
-
/** Number of results to return per page. */
|
|
1714
|
-
page_size?: number;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
export interface AdminSep10AuthenticatedAccountsListData {
|
|
1718
|
-
count: number;
|
|
1719
|
-
/** @format uri */
|
|
1720
|
-
next?: string | null;
|
|
1721
|
-
/** @format uri */
|
|
1722
|
-
previous?: string | null;
|
|
1723
|
-
results: AdminSEP10AuthenticatedAccount[];
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
export type AdminSep10AuthenticatedAccountsReadData =
|
|
1727
|
-
AdminSEP10AuthenticatedAccount;
|
|
1728
|
-
|
|
1729
|
-
export interface AdminSep24TransactionsListParams {
|
|
1730
|
-
/** A page number within the paginated result set. */
|
|
1731
|
-
page?: number;
|
|
1732
|
-
/** Number of results to return per page. */
|
|
1733
|
-
page_size?: number;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
export interface AdminSep24TransactionsListData {
|
|
1737
|
-
count: number;
|
|
1738
|
-
/** @format uri */
|
|
1739
|
-
next?: string | null;
|
|
1740
|
-
/** @format uri */
|
|
1741
|
-
previous?: string | null;
|
|
1742
|
-
results: AdminSEP24Transaction[];
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
export type AdminSep24TransactionsReadData = AdminSEP24Transaction;
|
|
1746
|
-
|
|
1747
|
-
export interface AdminStellarAccountsListParams {
|
|
1748
|
-
/** A page number within the paginated result set. */
|
|
1749
|
-
page?: number;
|
|
1750
|
-
/** Number of results to return per page. */
|
|
1751
|
-
page_size?: number;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
export interface AdminStellarAccountsListData {
|
|
1755
|
-
count: number;
|
|
1756
|
-
/** @format uri */
|
|
1757
|
-
next?: string | null;
|
|
1758
|
-
/** @format uri */
|
|
1759
|
-
previous?: string | null;
|
|
1760
|
-
results: StellarAccount[];
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
export type AdminStellarAccountsGenerateCreateData = StellarAccountGenerate;
|
|
1764
|
-
|
|
1765
|
-
export type AdminStellarAccountsReadData = StellarAccount;
|
|
1766
|
-
|
|
1767
|
-
export type AdminStellarAccountsPartialUpdateData = StellarAccount;
|
|
1768
|
-
|
|
1769
|
-
export type AdminStellarAccountsChangeOwnershipCreateData =
|
|
1770
|
-
StellarAccountChangeOwnership;
|
|
1771
|
-
|
|
1772
|
-
export interface AdminTransactionsListParams {
|
|
1773
|
-
/** A page number within the paginated result set. */
|
|
1774
|
-
page?: number;
|
|
1775
|
-
/** Number of results to return per page. */
|
|
1776
|
-
page_size?: number;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
export interface AdminTransactionsListData {
|
|
1780
|
-
count: number;
|
|
1781
|
-
/** @format uri */
|
|
1782
|
-
next?: string | null;
|
|
1783
|
-
/** @format uri */
|
|
1784
|
-
previous?: string | null;
|
|
1785
|
-
results: AdminTransaction[];
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
export type AdminTransactionsSendCreateData = AdminSendTransaction;
|
|
1789
|
-
|
|
1790
|
-
export type AdminTransactionsReadData = AdminTransaction;
|
|
1791
|
-
|
|
1792
|
-
export type AdminTransactionsPartialUpdateData = AdminTransaction;
|
|
1793
|
-
|
|
1794
|
-
export interface AdminUsersListParams {
|
|
1795
|
-
/** A page number within the paginated result set. */
|
|
1796
|
-
page?: number;
|
|
1797
|
-
/** Number of results to return per page. */
|
|
1798
|
-
page_size?: number;
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
export interface AdminUsersListData {
|
|
1802
|
-
count: number;
|
|
1803
|
-
/** @format uri */
|
|
1804
|
-
next?: string | null;
|
|
1805
|
-
/** @format uri */
|
|
1806
|
-
previous?: string | null;
|
|
1807
|
-
results: AdminUserInfoSeralizer[];
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
export type AdminUsersCreateData = AdminUserInfoSeralizer;
|
|
1811
|
-
|
|
1812
|
-
export type AdminUsersReadData = AdminUser;
|
|
1813
|
-
|
|
1814
|
-
export type AdminUsersPartialUpdateData = UserSeralizer;
|
|
1815
|
-
|
|
1816
|
-
export type AdminUsersMemosListData = AdminUserMemo[];
|
|
1817
|
-
|
|
1818
|
-
export type AdminUsersMemosCreateData = AdminUserMemo;
|
|
1819
|
-
|
|
1820
|
-
export interface AdminWarmstorageListParams {
|
|
1821
|
-
/** A page number within the paginated result set. */
|
|
1822
|
-
page?: number;
|
|
1823
|
-
/** Number of results to return per page. */
|
|
1824
|
-
page_size?: number;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
export interface AdminWarmstorageListData {
|
|
1828
|
-
count: number;
|
|
1829
|
-
/** @format uri */
|
|
1830
|
-
next?: string | null;
|
|
1831
|
-
/** @format uri */
|
|
1832
|
-
previous?: string | null;
|
|
1833
|
-
results: Warmstorage[];
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
export interface AdminWarmstorageAccountsListParams {
|
|
1837
|
-
/** A page number within the paginated result set. */
|
|
1838
|
-
page?: number;
|
|
1839
|
-
/** Number of results to return per page. */
|
|
1840
|
-
page_size?: number;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
export interface AdminWarmstorageAccountsListData {
|
|
1844
|
-
count: number;
|
|
1845
|
-
/** @format uri */
|
|
1846
|
-
next?: string | null;
|
|
1847
|
-
/** @format uri */
|
|
1848
|
-
previous?: string | null;
|
|
1849
|
-
results: WarmstorageAccount[];
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
export type AdminWarmstorageAccountsCreateData = WarmstorageAccount;
|
|
1853
|
-
|
|
1854
|
-
export type AdminWarmstorageAccountsReadData = WarmstorageAccount;
|
|
1855
|
-
|
|
1856
|
-
export type AdminWarmstorageAccountsPartialUpdateData = WarmstorageAccount;
|
|
1857
|
-
|
|
1858
|
-
export type CompanyListData = Company[];
|
|
1859
|
-
|
|
1860
|
-
export type CompanyAssetsListData = Asset[];
|
|
1861
|
-
|
|
1862
|
-
export type DeactivateCreateData = Deactivate;
|
|
1863
|
-
|
|
1864
|
-
export type HooksPrsCreateData = PRSWebhook;
|
|
1865
|
-
|
|
1866
|
-
export type InfoListData = InfoView[];
|
|
1867
|
-
|
|
1868
|
-
export interface KnownAssetsListParams {
|
|
1869
|
-
/** A page number within the paginated result set. */
|
|
1870
|
-
page?: number;
|
|
1871
|
-
/** Number of results to return per page. */
|
|
1872
|
-
page_size?: number;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
export interface KnownAssetsListData {
|
|
1876
|
-
count: number;
|
|
1877
|
-
/** @format uri */
|
|
1878
|
-
next?: string | null;
|
|
1879
|
-
/** @format uri */
|
|
1880
|
-
previous?: string | null;
|
|
1881
|
-
results: KnownAssets[];
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
export type StellarFederationReadData = any;
|
|
1885
|
-
|
|
1886
|
-
export interface TransactionsListParams {
|
|
1887
|
-
/** A page number within the paginated result set. */
|
|
1888
|
-
page?: number;
|
|
1889
|
-
/** Number of results to return per page. */
|
|
1890
|
-
page_size?: number;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
export interface TransactionsListData {
|
|
1894
|
-
count: number;
|
|
1895
|
-
/** @format uri */
|
|
1896
|
-
next?: string | null;
|
|
1897
|
-
/** @format uri */
|
|
1898
|
-
previous?: string | null;
|
|
1899
|
-
results: AdminTransaction[];
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
export type TransactionsSendCreateData = SendTransaction;
|
|
1903
|
-
|
|
1904
|
-
export type UserListData = UserInfoSeralizer[];
|
|
1905
|
-
|
|
1906
|
-
export type UserPartialUpdateData = UserInfoSeralizer;
|
|
1907
|
-
|
|
1908
|
-
export type UserAccountListData = any;
|
|
1909
|
-
|
|
1910
|
-
export type UserAnchorSessionsValidateCreateData = AnchorAccountValidate;
|
|
1911
|
-
|
|
1912
|
-
export type UserAnchorSessionsValidateAccountCreateData = AnchorAccountValidate;
|
|
1913
|
-
|
|
1914
|
-
export type UserAnchorSessionsValidateSessionCreateData = AnchorSessionValidate;
|
|
1915
|
-
|
|
1916
|
-
export type UserAnchorTransactionsListData = UserSEP24Transaction[];
|
|
1917
|
-
|
|
1918
|
-
export type UserAnchorTransactionsReadData = UserSEP24Transaction;
|
|
1919
|
-
|
|
1920
|
-
export type UserAnchorTransactionsCreateData = UserSEP24Transaction;
|
|
1921
|
-
|
|
1922
|
-
export type UserAnchorTransactionsPartialUpdateData = UserSEP24Transaction;
|
|
1923
|
-
|
|
1924
|
-
export type UserAnchorAuthCreateData = any;
|
|
1925
|
-
|
|
1926
|
-
export type UserKnownPublicAddressesListData = KnownPublicAddresses[];
|
|
1927
|
-
|
|
1928
|
-
export type UserMemosListData = UserMemo[];
|
|
1929
|
-
|
|
1930
|
-
export type UserMemosCreateData = UserMemo;
|
|
1931
|
-
|
|
1932
|
-
export type UserTransactionsSendCreateData = SendTransaction;
|
|
1933
|
-
|
|
1934
|
-
export type UserUsernameSetCreateData = SetUsernameMemo;
|
|
1935
|
-
|
|
1936
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
1937
|
-
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
|
|
1938
|
-
|
|
1939
|
-
export interface FullRequestParams extends Omit<RequestInit, "body"> {
|
|
1940
|
-
/** set parameter to `true` for call `securityWorker` for this request */
|
|
1941
|
-
secure?: boolean;
|
|
1942
|
-
/** request path */
|
|
1943
|
-
path: string;
|
|
1944
|
-
/** content type of request body */
|
|
1945
|
-
type?: ContentType;
|
|
1946
|
-
/** query params */
|
|
1947
|
-
query?: QueryParamsType;
|
|
1948
|
-
/** format of response (i.e. response.json() -> format: "json") */
|
|
1949
|
-
format?: ResponseFormat;
|
|
1950
|
-
/** request body */
|
|
1951
|
-
body?: unknown;
|
|
1952
|
-
/** base url */
|
|
1953
|
-
baseUrl?: string;
|
|
1954
|
-
/** request cancellation token */
|
|
1955
|
-
cancelToken?: CancelToken;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
export type RequestParams = Omit<
|
|
1959
|
-
FullRequestParams,
|
|
1960
|
-
"body" | "method" | "query" | "path"
|
|
1961
|
-
>;
|
|
1962
|
-
|
|
1963
|
-
export interface ApiConfig<SecurityDataType = unknown> {
|
|
1964
|
-
baseUrl?: string;
|
|
1965
|
-
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
|
|
1966
|
-
securityWorker?: (
|
|
1967
|
-
securityData: SecurityDataType | null,
|
|
1968
|
-
) => Promise<RequestParams | void> | RequestParams | void;
|
|
1969
|
-
customFetch?: typeof fetch;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
export interface HttpResponse<D extends unknown, E extends unknown = unknown>
|
|
1973
|
-
extends Response {
|
|
1974
|
-
data: D;
|
|
1975
|
-
error: E;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
type CancelToken = Symbol | string | number;
|
|
1979
|
-
|
|
1980
|
-
export enum ContentType {
|
|
1981
|
-
Json = "application/json",
|
|
1982
|
-
JsonApi = "application/vnd.api+json",
|
|
1983
|
-
FormData = "multipart/form-data",
|
|
1984
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1985
|
-
Text = "text/plain",
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
export class HttpClient<SecurityDataType = unknown> {
|
|
1989
|
-
public baseUrl: string = "https://stellar.services.rehive.com/api/1";
|
|
1990
|
-
private securityData: SecurityDataType | null = null;
|
|
1991
|
-
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
1992
|
-
private abortControllers = new Map<CancelToken, AbortController>();
|
|
1993
|
-
private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
|
|
1994
|
-
fetch(...fetchParams);
|
|
1995
|
-
|
|
1996
|
-
private baseApiParams: RequestParams = {
|
|
1997
|
-
credentials: "same-origin",
|
|
1998
|
-
headers: {},
|
|
1999
|
-
redirect: "follow",
|
|
2000
|
-
referrerPolicy: "no-referrer",
|
|
2001
|
-
};
|
|
2002
|
-
|
|
2003
|
-
constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
|
|
2004
|
-
Object.assign(this, apiConfig);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
public setSecurityData = (data: SecurityDataType | null) => {
|
|
2008
|
-
this.securityData = data;
|
|
2009
|
-
};
|
|
2010
|
-
|
|
2011
|
-
protected encodeQueryParam(key: string, value: any) {
|
|
2012
|
-
const encodedKey = encodeURIComponent(key);
|
|
2013
|
-
return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
protected addQueryParam(query: QueryParamsType, key: string) {
|
|
2017
|
-
return this.encodeQueryParam(key, query[key]);
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
protected addArrayQueryParam(query: QueryParamsType, key: string) {
|
|
2021
|
-
const value = query[key];
|
|
2022
|
-
return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
protected toQueryString(rawQuery?: QueryParamsType): string {
|
|
2026
|
-
const query = rawQuery || {};
|
|
2027
|
-
const keys = Object.keys(query).filter(
|
|
2028
|
-
(key) => "undefined" !== typeof query[key],
|
|
2029
|
-
);
|
|
2030
|
-
return keys
|
|
2031
|
-
.map((key) =>
|
|
2032
|
-
Array.isArray(query[key])
|
|
2033
|
-
? this.addArrayQueryParam(query, key)
|
|
2034
|
-
: this.addQueryParam(query, key),
|
|
2035
|
-
)
|
|
2036
|
-
.join("&");
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
protected addQueryParams(rawQuery?: QueryParamsType): string {
|
|
2040
|
-
const queryString = this.toQueryString(rawQuery);
|
|
2041
|
-
return queryString ? `?${queryString}` : "";
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
private contentFormatters: Record<ContentType, (input: any) => any> = {
|
|
2045
|
-
[ContentType.Json]: (input: any) =>
|
|
2046
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
2047
|
-
? JSON.stringify(input)
|
|
2048
|
-
: input,
|
|
2049
|
-
[ContentType.JsonApi]: (input: any) =>
|
|
2050
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
2051
|
-
? JSON.stringify(input)
|
|
2052
|
-
: input,
|
|
2053
|
-
[ContentType.Text]: (input: any) =>
|
|
2054
|
-
input !== null && typeof input !== "string"
|
|
2055
|
-
? JSON.stringify(input)
|
|
2056
|
-
: input,
|
|
2057
|
-
[ContentType.FormData]: (input: any) =>
|
|
2058
|
-
Object.keys(input || {}).reduce((formData, key) => {
|
|
2059
|
-
const property = input[key];
|
|
2060
|
-
formData.append(
|
|
2061
|
-
key,
|
|
2062
|
-
property instanceof Blob
|
|
2063
|
-
? property
|
|
2064
|
-
: typeof property === "object" && property !== null
|
|
2065
|
-
? JSON.stringify(property)
|
|
2066
|
-
: `${property}`,
|
|
2067
|
-
);
|
|
2068
|
-
return formData;
|
|
2069
|
-
}, new FormData()),
|
|
2070
|
-
[ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
|
|
2071
|
-
};
|
|
2072
|
-
|
|
2073
|
-
protected mergeRequestParams(
|
|
2074
|
-
params1: RequestParams,
|
|
2075
|
-
params2?: RequestParams,
|
|
2076
|
-
): RequestParams {
|
|
2077
|
-
return {
|
|
2078
|
-
...this.baseApiParams,
|
|
2079
|
-
...params1,
|
|
2080
|
-
...(params2 || {}),
|
|
2081
|
-
headers: {
|
|
2082
|
-
...(this.baseApiParams.headers || {}),
|
|
2083
|
-
...(params1.headers || {}),
|
|
2084
|
-
...((params2 && params2.headers) || {}),
|
|
2085
|
-
},
|
|
2086
|
-
};
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
protected createAbortSignal = (
|
|
2090
|
-
cancelToken: CancelToken,
|
|
2091
|
-
): AbortSignal | undefined => {
|
|
2092
|
-
if (this.abortControllers.has(cancelToken)) {
|
|
2093
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
2094
|
-
if (abortController) {
|
|
2095
|
-
return abortController.signal;
|
|
2096
|
-
}
|
|
2097
|
-
return void 0;
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
const abortController = new AbortController();
|
|
2101
|
-
this.abortControllers.set(cancelToken, abortController);
|
|
2102
|
-
return abortController.signal;
|
|
2103
|
-
};
|
|
2104
|
-
|
|
2105
|
-
public abortRequest = (cancelToken: CancelToken) => {
|
|
2106
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
2107
|
-
|
|
2108
|
-
if (abortController) {
|
|
2109
|
-
abortController.abort();
|
|
2110
|
-
this.abortControllers.delete(cancelToken);
|
|
2111
|
-
}
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
public request = async <T = any, E = any>({
|
|
2115
|
-
body,
|
|
2116
|
-
secure,
|
|
2117
|
-
path,
|
|
2118
|
-
type,
|
|
2119
|
-
query,
|
|
2120
|
-
format,
|
|
2121
|
-
baseUrl,
|
|
2122
|
-
cancelToken,
|
|
2123
|
-
...params
|
|
2124
|
-
}: FullRequestParams): Promise<HttpResponse<T, E>> => {
|
|
2125
|
-
const secureParams =
|
|
2126
|
-
((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
|
|
2127
|
-
this.securityWorker &&
|
|
2128
|
-
(await this.securityWorker(this.securityData))) ||
|
|
2129
|
-
{};
|
|
2130
|
-
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
2131
|
-
const queryString = query && this.toQueryString(query);
|
|
2132
|
-
const payloadFormatter = this.contentFormatters[type || ContentType.Json];
|
|
2133
|
-
const responseFormat = format || requestParams.format;
|
|
2134
|
-
|
|
2135
|
-
return this.customFetch(
|
|
2136
|
-
`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
|
|
2137
|
-
{
|
|
2138
|
-
...requestParams,
|
|
2139
|
-
headers: {
|
|
2140
|
-
...(requestParams.headers || {}),
|
|
2141
|
-
...(type && type !== ContentType.FormData
|
|
2142
|
-
? { "Content-Type": type }
|
|
2143
|
-
: {}),
|
|
2144
|
-
},
|
|
2145
|
-
signal:
|
|
2146
|
-
(cancelToken
|
|
2147
|
-
? this.createAbortSignal(cancelToken)
|
|
2148
|
-
: requestParams.signal) || null,
|
|
2149
|
-
body:
|
|
2150
|
-
typeof body === "undefined" || body === null
|
|
2151
|
-
? null
|
|
2152
|
-
: payloadFormatter(body),
|
|
2153
|
-
},
|
|
2154
|
-
).then(async (response) => {
|
|
2155
|
-
const r = response.clone() as HttpResponse<T, E>;
|
|
2156
|
-
r.data = null as unknown as T;
|
|
2157
|
-
r.error = null as unknown as E;
|
|
2158
|
-
|
|
2159
|
-
const data = !responseFormat
|
|
2160
|
-
? r
|
|
2161
|
-
: await response[responseFormat]()
|
|
2162
|
-
.then((data) => {
|
|
2163
|
-
if (r.ok) {
|
|
2164
|
-
r.data = data;
|
|
2165
|
-
} else {
|
|
2166
|
-
r.error = data;
|
|
2167
|
-
}
|
|
2168
|
-
return r;
|
|
2169
|
-
})
|
|
2170
|
-
.catch((e) => {
|
|
2171
|
-
r.error = e;
|
|
2172
|
-
return r;
|
|
2173
|
-
});
|
|
2174
|
-
|
|
2175
|
-
if (cancelToken) {
|
|
2176
|
-
this.abortControllers.delete(cancelToken);
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
if (!response.ok) throw data;
|
|
2180
|
-
return data;
|
|
2181
|
-
});
|
|
2182
|
-
};
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
/**
|
|
2186
|
-
* @title Stellar Service API
|
|
2187
|
-
* @version v1
|
|
2188
|
-
* @baseUrl https://stellar.services.rehive.com/api/1
|
|
2189
|
-
*
|
|
2190
|
-
* Start by clicking Authorize and adding the header: Token <your-api-key>. The user endpoints require a normal rehive user token returned by Rehive's /auth/login/ or /auth/register/ endpoints. The admin endpoints require a permanent token with admin permissions. The /hooks/ enpoint requires the secret from the Rehive webhook settings in the authorization header as Secret <your-webhook-secret>.
|
|
2191
|
-
*/
|
|
2192
|
-
export class Api<
|
|
2193
|
-
SecurityDataType extends unknown,
|
|
2194
|
-
> extends HttpClient<SecurityDataType> {
|
|
2195
|
-
activate = {
|
|
2196
|
-
/**
|
|
2197
|
-
* @description This endpoint is used by the Rehive Marketplace to add this service for a specific company. It requires an permanent API token for that company with admin permissions.
|
|
2198
|
-
*
|
|
2199
|
-
* @tags activate
|
|
2200
|
-
* @name ActivateCreate
|
|
2201
|
-
* @request POST:/activate/
|
|
2202
|
-
* @secure
|
|
2203
|
-
*/
|
|
2204
|
-
activateCreate: (data: Activate, params: RequestParams = {}) =>
|
|
2205
|
-
this.request<ActivateCreateData, any>({
|
|
2206
|
-
path: `/activate/`,
|
|
2207
|
-
method: "POST",
|
|
2208
|
-
body: data,
|
|
2209
|
-
secure: true,
|
|
2210
|
-
type: ContentType.Json,
|
|
2211
|
-
format: "json",
|
|
2212
|
-
...params,
|
|
2213
|
-
}),
|
|
2214
|
-
};
|
|
2215
|
-
admin = {
|
|
2216
|
-
/**
|
|
2217
|
-
* @description Add a new stellar asset to the service, or list existing assets. You'll need to include a valid stellar anchor issuing address and asset ID.
|
|
2218
|
-
*
|
|
2219
|
-
* @tags admin
|
|
2220
|
-
* @name AdminAssetList
|
|
2221
|
-
* @request GET:/admin/asset/
|
|
2222
|
-
* @secure
|
|
2223
|
-
*/
|
|
2224
|
-
adminAssetList: (params: RequestParams = {}) =>
|
|
2225
|
-
this.request<AdminAssetListData, any>({
|
|
2226
|
-
path: `/admin/asset/`,
|
|
2227
|
-
method: "GET",
|
|
2228
|
-
secure: true,
|
|
2229
|
-
format: "json",
|
|
2230
|
-
...params,
|
|
2231
|
-
}),
|
|
2232
|
-
|
|
2233
|
-
/**
|
|
2234
|
-
* @description Add a new stellar asset to the service, or list existing assets. You'll need to include a valid stellar anchor issuing address and asset ID.
|
|
2235
|
-
*
|
|
2236
|
-
* @tags admin
|
|
2237
|
-
* @name AdminAssetCreate
|
|
2238
|
-
* @request POST:/admin/asset/
|
|
2239
|
-
* @secure
|
|
2240
|
-
*/
|
|
2241
|
-
adminAssetCreate: (data: AdminCreateAsset, params: RequestParams = {}) =>
|
|
2242
|
-
this.request<AdminAssetCreateData, any>({
|
|
2243
|
-
path: `/admin/asset/`,
|
|
2244
|
-
method: "POST",
|
|
2245
|
-
body: data,
|
|
2246
|
-
secure: true,
|
|
2247
|
-
type: ContentType.Json,
|
|
2248
|
-
format: "json",
|
|
2249
|
-
...params,
|
|
2250
|
-
}),
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* No description
|
|
2254
|
-
*
|
|
2255
|
-
* @tags admin
|
|
2256
|
-
* @name AdminAssetRead
|
|
2257
|
-
* @request GET:/admin/asset/{id}/
|
|
2258
|
-
* @secure
|
|
2259
|
-
*/
|
|
2260
|
-
adminAssetRead: (id: string, params: RequestParams = {}) =>
|
|
2261
|
-
this.request<AdminAssetReadData, any>({
|
|
2262
|
-
path: `/admin/asset/${id}/`,
|
|
2263
|
-
method: "GET",
|
|
2264
|
-
secure: true,
|
|
2265
|
-
format: "json",
|
|
2266
|
-
...params,
|
|
2267
|
-
}),
|
|
2268
|
-
|
|
2269
|
-
/**
|
|
2270
|
-
* No description
|
|
2271
|
-
*
|
|
2272
|
-
* @tags admin
|
|
2273
|
-
* @name AdminAssetPartialUpdate
|
|
2274
|
-
* @request PATCH:/admin/asset/{id}/
|
|
2275
|
-
* @secure
|
|
2276
|
-
*/
|
|
2277
|
-
adminAssetPartialUpdate: (
|
|
2278
|
-
id: string,
|
|
2279
|
-
data: AdminAsset,
|
|
2280
|
-
params: RequestParams = {},
|
|
2281
|
-
) =>
|
|
2282
|
-
this.request<AdminAssetPartialUpdateData, any>({
|
|
2283
|
-
path: `/admin/asset/${id}/`,
|
|
2284
|
-
method: "PATCH",
|
|
2285
|
-
body: data,
|
|
2286
|
-
secure: true,
|
|
2287
|
-
type: ContentType.Json,
|
|
2288
|
-
format: "json",
|
|
2289
|
-
...params,
|
|
2290
|
-
}),
|
|
2291
|
-
|
|
2292
|
-
/**
|
|
2293
|
-
* @description A simple APIView for funding asset accounts.
|
|
2294
|
-
*
|
|
2295
|
-
* @tags admin
|
|
2296
|
-
* @name AdminAssetAuthoriseHolderCreate
|
|
2297
|
-
* @request POST:/admin/asset/{id}/authorise_holder/
|
|
2298
|
-
* @secure
|
|
2299
|
-
*/
|
|
2300
|
-
adminAssetAuthoriseHolderCreate: (
|
|
2301
|
-
id: string,
|
|
2302
|
-
data: AdminAuthAssetTrust,
|
|
2303
|
-
params: RequestParams = {},
|
|
2304
|
-
) =>
|
|
2305
|
-
this.request<AdminAssetAuthoriseHolderCreateData, any>({
|
|
2306
|
-
path: `/admin/asset/${id}/authorise_holder/`,
|
|
2307
|
-
method: "POST",
|
|
2308
|
-
body: data,
|
|
2309
|
-
secure: true,
|
|
2310
|
-
type: ContentType.Json,
|
|
2311
|
-
format: "json",
|
|
2312
|
-
...params,
|
|
2313
|
-
}),
|
|
2314
|
-
|
|
2315
|
-
/**
|
|
2316
|
-
* @description A simple APIView for funding asset accounts.
|
|
2317
|
-
*
|
|
2318
|
-
* @tags admin
|
|
2319
|
-
* @name AdminAssetFundCreate
|
|
2320
|
-
* @request POST:/admin/asset/{id}/fund/
|
|
2321
|
-
* @secure
|
|
2322
|
-
*/
|
|
2323
|
-
adminAssetFundCreate: (
|
|
2324
|
-
id: string,
|
|
2325
|
-
data: AdminFundAsset,
|
|
2326
|
-
params: RequestParams = {},
|
|
2327
|
-
) =>
|
|
2328
|
-
this.request<AdminAssetFundCreateData, any>({
|
|
2329
|
-
path: `/admin/asset/${id}/fund/`,
|
|
2330
|
-
method: "POST",
|
|
2331
|
-
body: data,
|
|
2332
|
-
secure: true,
|
|
2333
|
-
type: ContentType.Json,
|
|
2334
|
-
format: "json",
|
|
2335
|
-
...params,
|
|
2336
|
-
}),
|
|
2337
|
-
|
|
2338
|
-
/**
|
|
2339
|
-
* No description
|
|
2340
|
-
*
|
|
2341
|
-
* @tags admin
|
|
2342
|
-
* @name AdminBlacklistedAccountRead
|
|
2343
|
-
* @request GET:/admin/blacklisted-account/{id}/
|
|
2344
|
-
* @secure
|
|
2345
|
-
*/
|
|
2346
|
-
adminBlacklistedAccountRead: (id: string, params: RequestParams = {}) =>
|
|
2347
|
-
this.request<AdminBlacklistedAccountReadData, any>({
|
|
2348
|
-
path: `/admin/blacklisted-account/${id}/`,
|
|
2349
|
-
method: "GET",
|
|
2350
|
-
secure: true,
|
|
2351
|
-
format: "json",
|
|
2352
|
-
...params,
|
|
2353
|
-
}),
|
|
2354
|
-
|
|
2355
|
-
/**
|
|
2356
|
-
* No description
|
|
2357
|
-
*
|
|
2358
|
-
* @tags admin
|
|
2359
|
-
* @name AdminBlacklistedAccountUpdate
|
|
2360
|
-
* @request PUT:/admin/blacklisted-account/{id}/
|
|
2361
|
-
* @secure
|
|
2362
|
-
*/
|
|
2363
|
-
adminBlacklistedAccountUpdate: (
|
|
2364
|
-
id: string,
|
|
2365
|
-
data: BlacklistedAccount,
|
|
2366
|
-
params: RequestParams = {},
|
|
2367
|
-
) =>
|
|
2368
|
-
this.request<AdminBlacklistedAccountUpdateData, any>({
|
|
2369
|
-
path: `/admin/blacklisted-account/${id}/`,
|
|
2370
|
-
method: "PUT",
|
|
2371
|
-
body: data,
|
|
2372
|
-
secure: true,
|
|
2373
|
-
type: ContentType.Json,
|
|
2374
|
-
format: "json",
|
|
2375
|
-
...params,
|
|
2376
|
-
}),
|
|
2377
|
-
|
|
2378
|
-
/**
|
|
2379
|
-
* No description
|
|
2380
|
-
*
|
|
2381
|
-
* @tags admin
|
|
2382
|
-
* @name AdminBlacklistedAccountPartialUpdate
|
|
2383
|
-
* @request PATCH:/admin/blacklisted-account/{id}/
|
|
2384
|
-
* @secure
|
|
2385
|
-
*/
|
|
2386
|
-
adminBlacklistedAccountPartialUpdate: (
|
|
2387
|
-
id: string,
|
|
2388
|
-
data: BlacklistedAccount,
|
|
2389
|
-
params: RequestParams = {},
|
|
2390
|
-
) =>
|
|
2391
|
-
this.request<AdminBlacklistedAccountPartialUpdateData, any>({
|
|
2392
|
-
path: `/admin/blacklisted-account/${id}/`,
|
|
2393
|
-
method: "PATCH",
|
|
2394
|
-
body: data,
|
|
2395
|
-
secure: true,
|
|
2396
|
-
type: ContentType.Json,
|
|
2397
|
-
format: "json",
|
|
2398
|
-
...params,
|
|
2399
|
-
}),
|
|
2400
|
-
|
|
2401
|
-
/**
|
|
2402
|
-
* No description
|
|
2403
|
-
*
|
|
2404
|
-
* @tags admin
|
|
2405
|
-
* @name AdminBlacklistedAccountDelete
|
|
2406
|
-
* @request DELETE:/admin/blacklisted-account/{id}/
|
|
2407
|
-
* @secure
|
|
2408
|
-
*/
|
|
2409
|
-
adminBlacklistedAccountDelete: (id: string, params: RequestParams = {}) =>
|
|
2410
|
-
this.request<AdminBlacklistedAccountDeleteData, any>({
|
|
2411
|
-
path: `/admin/blacklisted-account/${id}/`,
|
|
2412
|
-
method: "DELETE",
|
|
2413
|
-
secure: true,
|
|
2414
|
-
...params,
|
|
2415
|
-
}),
|
|
2416
|
-
|
|
2417
|
-
/**
|
|
2418
|
-
* No description
|
|
2419
|
-
*
|
|
2420
|
-
* @tags admin
|
|
2421
|
-
* @name AdminBlacklistedAccountsList
|
|
2422
|
-
* @request GET:/admin/blacklisted-accounts/
|
|
2423
|
-
* @secure
|
|
2424
|
-
*/
|
|
2425
|
-
adminBlacklistedAccountsList: (params: RequestParams = {}) =>
|
|
2426
|
-
this.request<AdminBlacklistedAccountsListData, any>({
|
|
2427
|
-
path: `/admin/blacklisted-accounts/`,
|
|
2428
|
-
method: "GET",
|
|
2429
|
-
secure: true,
|
|
2430
|
-
format: "json",
|
|
2431
|
-
...params,
|
|
2432
|
-
}),
|
|
2433
|
-
|
|
2434
|
-
/**
|
|
2435
|
-
* No description
|
|
2436
|
-
*
|
|
2437
|
-
* @tags admin
|
|
2438
|
-
* @name AdminBlacklistedAccountsCreate
|
|
2439
|
-
* @request POST:/admin/blacklisted-accounts/
|
|
2440
|
-
* @secure
|
|
2441
|
-
*/
|
|
2442
|
-
adminBlacklistedAccountsCreate: (
|
|
2443
|
-
data: BlacklistedAccount,
|
|
2444
|
-
params: RequestParams = {},
|
|
2445
|
-
) =>
|
|
2446
|
-
this.request<AdminBlacklistedAccountsCreateData, any>({
|
|
2447
|
-
path: `/admin/blacklisted-accounts/`,
|
|
2448
|
-
method: "POST",
|
|
2449
|
-
body: data,
|
|
2450
|
-
secure: true,
|
|
2451
|
-
type: ContentType.Json,
|
|
2452
|
-
format: "json",
|
|
2453
|
-
...params,
|
|
2454
|
-
}),
|
|
2455
|
-
|
|
2456
|
-
/**
|
|
2457
|
-
* @description ### View coldstorage balance
|
|
2458
|
-
*
|
|
2459
|
-
* @tags admin
|
|
2460
|
-
* @name AdminColdstorageList
|
|
2461
|
-
* @request GET:/admin/coldstorage/
|
|
2462
|
-
* @secure
|
|
2463
|
-
*/
|
|
2464
|
-
adminColdstorageList: (
|
|
2465
|
-
query: AdminColdstorageListParams,
|
|
2466
|
-
params: RequestParams = {},
|
|
2467
|
-
) =>
|
|
2468
|
-
this.request<AdminColdstorageListData, any>({
|
|
2469
|
-
path: `/admin/coldstorage/`,
|
|
2470
|
-
method: "GET",
|
|
2471
|
-
query: query,
|
|
2472
|
-
secure: true,
|
|
2473
|
-
format: "json",
|
|
2474
|
-
...params,
|
|
2475
|
-
}),
|
|
2476
|
-
|
|
2477
|
-
/**
|
|
2478
|
-
* @description ### List or create coldstorage accounts for monitoring
|
|
2479
|
-
*
|
|
2480
|
-
* @tags admin
|
|
2481
|
-
* @name AdminColdstorageAccountsList
|
|
2482
|
-
* @request GET:/admin/coldstorage/accounts/
|
|
2483
|
-
* @secure
|
|
2484
|
-
*/
|
|
2485
|
-
adminColdstorageAccountsList: (
|
|
2486
|
-
query: AdminColdstorageAccountsListParams,
|
|
2487
|
-
params: RequestParams = {},
|
|
2488
|
-
) =>
|
|
2489
|
-
this.request<AdminColdstorageAccountsListData, any>({
|
|
2490
|
-
path: `/admin/coldstorage/accounts/`,
|
|
2491
|
-
method: "GET",
|
|
2492
|
-
query: query,
|
|
2493
|
-
secure: true,
|
|
2494
|
-
format: "json",
|
|
2495
|
-
...params,
|
|
2496
|
-
}),
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* @description ### List or create coldstorage accounts for monitoring
|
|
2500
|
-
*
|
|
2501
|
-
* @tags admin
|
|
2502
|
-
* @name AdminColdstorageAccountsCreate
|
|
2503
|
-
* @request POST:/admin/coldstorage/accounts/
|
|
2504
|
-
* @secure
|
|
2505
|
-
*/
|
|
2506
|
-
adminColdstorageAccountsCreate: (
|
|
2507
|
-
data: ColdstorageAccount,
|
|
2508
|
-
params: RequestParams = {},
|
|
2509
|
-
) =>
|
|
2510
|
-
this.request<AdminColdstorageAccountsCreateData, any>({
|
|
2511
|
-
path: `/admin/coldstorage/accounts/`,
|
|
2512
|
-
method: "POST",
|
|
2513
|
-
body: data,
|
|
2514
|
-
secure: true,
|
|
2515
|
-
type: ContentType.Json,
|
|
2516
|
-
format: "json",
|
|
2517
|
-
...params,
|
|
2518
|
-
}),
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* @description ### View or update a cold storage account
|
|
2522
|
-
*
|
|
2523
|
-
* @tags admin
|
|
2524
|
-
* @name AdminColdstorageAccountsRead
|
|
2525
|
-
* @request GET:/admin/coldstorage/accounts/{id}/
|
|
2526
|
-
* @secure
|
|
2527
|
-
*/
|
|
2528
|
-
adminColdstorageAccountsRead: (id: string, params: RequestParams = {}) =>
|
|
2529
|
-
this.request<AdminColdstorageAccountsReadData, any>({
|
|
2530
|
-
path: `/admin/coldstorage/accounts/${id}/`,
|
|
2531
|
-
method: "GET",
|
|
2532
|
-
secure: true,
|
|
2533
|
-
format: "json",
|
|
2534
|
-
...params,
|
|
2535
|
-
}),
|
|
2536
|
-
|
|
2537
|
-
/**
|
|
2538
|
-
* @description ### View or update a cold storage account
|
|
2539
|
-
*
|
|
2540
|
-
* @tags admin
|
|
2541
|
-
* @name AdminColdstorageAccountsPartialUpdate
|
|
2542
|
-
* @request PATCH:/admin/coldstorage/accounts/{id}/
|
|
2543
|
-
* @secure
|
|
2544
|
-
*/
|
|
2545
|
-
adminColdstorageAccountsPartialUpdate: (
|
|
2546
|
-
id: string,
|
|
2547
|
-
data: ColdstorageAccount,
|
|
2548
|
-
params: RequestParams = {},
|
|
2549
|
-
) =>
|
|
2550
|
-
this.request<AdminColdstorageAccountsPartialUpdateData, any>({
|
|
2551
|
-
path: `/admin/coldstorage/accounts/${id}/`,
|
|
2552
|
-
method: "PATCH",
|
|
2553
|
-
body: data,
|
|
2554
|
-
secure: true,
|
|
2555
|
-
type: ContentType.Json,
|
|
2556
|
-
format: "json",
|
|
2557
|
-
...params,
|
|
2558
|
-
}),
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2562
|
-
*
|
|
2563
|
-
* @tags admin
|
|
2564
|
-
* @name AdminCompanyList
|
|
2565
|
-
* @request GET:/admin/company/
|
|
2566
|
-
* @secure
|
|
2567
|
-
*/
|
|
2568
|
-
adminCompanyList: (params: RequestParams = {}) =>
|
|
2569
|
-
this.request<AdminCompanyListData, any>({
|
|
2570
|
-
path: `/admin/company/`,
|
|
2571
|
-
method: "GET",
|
|
2572
|
-
secure: true,
|
|
2573
|
-
format: "json",
|
|
2574
|
-
...params,
|
|
2575
|
-
}),
|
|
2576
|
-
|
|
2577
|
-
/**
|
|
2578
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2579
|
-
*
|
|
2580
|
-
* @tags admin
|
|
2581
|
-
* @name AdminCompanyPartialUpdate
|
|
2582
|
-
* @request PATCH:/admin/company/
|
|
2583
|
-
* @secure
|
|
2584
|
-
*/
|
|
2585
|
-
adminCompanyPartialUpdate: (
|
|
2586
|
-
data: CompanyAdmin,
|
|
2587
|
-
params: RequestParams = {},
|
|
2588
|
-
) =>
|
|
2589
|
-
this.request<AdminCompanyPartialUpdateData, any>({
|
|
2590
|
-
path: `/admin/company/`,
|
|
2591
|
-
method: "PATCH",
|
|
2592
|
-
body: data,
|
|
2593
|
-
secure: true,
|
|
2594
|
-
type: ContentType.Json,
|
|
2595
|
-
format: "json",
|
|
2596
|
-
...params,
|
|
2597
|
-
}),
|
|
2598
|
-
|
|
2599
|
-
/**
|
|
2600
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2601
|
-
*
|
|
2602
|
-
* @tags admin
|
|
2603
|
-
* @name AdminCompanyConfigurationList
|
|
2604
|
-
* @request GET:/admin/company/configuration/
|
|
2605
|
-
* @secure
|
|
2606
|
-
*/
|
|
2607
|
-
adminCompanyConfigurationList: (params: RequestParams = {}) =>
|
|
2608
|
-
this.request<AdminCompanyConfigurationListData, any>({
|
|
2609
|
-
path: `/admin/company/configuration/`,
|
|
2610
|
-
method: "GET",
|
|
2611
|
-
secure: true,
|
|
2612
|
-
format: "json",
|
|
2613
|
-
...params,
|
|
2614
|
-
}),
|
|
2615
|
-
|
|
2616
|
-
/**
|
|
2617
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2618
|
-
*
|
|
2619
|
-
* @tags admin
|
|
2620
|
-
* @name AdminCompanyConfigurationUpdate
|
|
2621
|
-
* @request PUT:/admin/company/configuration/
|
|
2622
|
-
* @secure
|
|
2623
|
-
*/
|
|
2624
|
-
adminCompanyConfigurationUpdate: (
|
|
2625
|
-
data: CompanyConfiguration,
|
|
2626
|
-
params: RequestParams = {},
|
|
2627
|
-
) =>
|
|
2628
|
-
this.request<AdminCompanyConfigurationUpdateData, any>({
|
|
2629
|
-
path: `/admin/company/configuration/`,
|
|
2630
|
-
method: "PUT",
|
|
2631
|
-
body: data,
|
|
2632
|
-
secure: true,
|
|
2633
|
-
type: ContentType.Json,
|
|
2634
|
-
format: "json",
|
|
2635
|
-
...params,
|
|
2636
|
-
}),
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2640
|
-
*
|
|
2641
|
-
* @tags admin
|
|
2642
|
-
* @name AdminCompanyConfigurationPartialUpdate
|
|
2643
|
-
* @request PATCH:/admin/company/configuration/
|
|
2644
|
-
* @secure
|
|
2645
|
-
*/
|
|
2646
|
-
adminCompanyConfigurationPartialUpdate: (
|
|
2647
|
-
data: CompanyConfiguration,
|
|
2648
|
-
params: RequestParams = {},
|
|
2649
|
-
) =>
|
|
2650
|
-
this.request<AdminCompanyConfigurationPartialUpdateData, any>({
|
|
2651
|
-
path: `/admin/company/configuration/`,
|
|
2652
|
-
method: "PATCH",
|
|
2653
|
-
body: data,
|
|
2654
|
-
secure: true,
|
|
2655
|
-
type: ContentType.Json,
|
|
2656
|
-
format: "json",
|
|
2657
|
-
...params,
|
|
2658
|
-
}),
|
|
2659
|
-
|
|
2660
|
-
/**
|
|
2661
|
-
* @description Group/Account Pairs specified for the company
|
|
2662
|
-
*
|
|
2663
|
-
* @tags admin
|
|
2664
|
-
* @name AdminCompanyConfigurationAccountGroupsList
|
|
2665
|
-
* @request GET:/admin/company/configuration/account-groups/
|
|
2666
|
-
* @secure
|
|
2667
|
-
*/
|
|
2668
|
-
adminCompanyConfigurationAccountGroupsList: (params: RequestParams = {}) =>
|
|
2669
|
-
this.request<AdminCompanyConfigurationAccountGroupsListData, any>({
|
|
2670
|
-
path: `/admin/company/configuration/account-groups/`,
|
|
2671
|
-
method: "GET",
|
|
2672
|
-
secure: true,
|
|
2673
|
-
format: "json",
|
|
2674
|
-
...params,
|
|
2675
|
-
}),
|
|
2676
|
-
|
|
2677
|
-
/**
|
|
2678
|
-
* @description Group/Account Pairs specified for the company
|
|
2679
|
-
*
|
|
2680
|
-
* @tags admin
|
|
2681
|
-
* @name AdminCompanyConfigurationAccountGroupsCreate
|
|
2682
|
-
* @request POST:/admin/company/configuration/account-groups/
|
|
2683
|
-
* @secure
|
|
2684
|
-
*/
|
|
2685
|
-
adminCompanyConfigurationAccountGroupsCreate: (
|
|
2686
|
-
data: DefaultGroupAccountPair,
|
|
2687
|
-
params: RequestParams = {},
|
|
2688
|
-
) =>
|
|
2689
|
-
this.request<AdminCompanyConfigurationAccountGroupsCreateData, any>({
|
|
2690
|
-
path: `/admin/company/configuration/account-groups/`,
|
|
2691
|
-
method: "POST",
|
|
2692
|
-
body: data,
|
|
2693
|
-
secure: true,
|
|
2694
|
-
type: ContentType.Json,
|
|
2695
|
-
format: "json",
|
|
2696
|
-
...params,
|
|
2697
|
-
}),
|
|
2698
|
-
|
|
2699
|
-
/**
|
|
2700
|
-
* @description Details for a Group/Account pair
|
|
2701
|
-
*
|
|
2702
|
-
* @tags admin
|
|
2703
|
-
* @name AdminCompanyConfigurationAccountGroupsRead
|
|
2704
|
-
* @request GET:/admin/company/configuration/account-groups/{id}/
|
|
2705
|
-
* @secure
|
|
2706
|
-
*/
|
|
2707
|
-
adminCompanyConfigurationAccountGroupsRead: (
|
|
2708
|
-
id: string,
|
|
2709
|
-
params: RequestParams = {},
|
|
2710
|
-
) =>
|
|
2711
|
-
this.request<AdminCompanyConfigurationAccountGroupsReadData, any>({
|
|
2712
|
-
path: `/admin/company/configuration/account-groups/${id}/`,
|
|
2713
|
-
method: "GET",
|
|
2714
|
-
secure: true,
|
|
2715
|
-
format: "json",
|
|
2716
|
-
...params,
|
|
2717
|
-
}),
|
|
2718
|
-
|
|
2719
|
-
/**
|
|
2720
|
-
* @description Details for a Group/Account pair
|
|
2721
|
-
*
|
|
2722
|
-
* @tags admin
|
|
2723
|
-
* @name AdminCompanyConfigurationAccountGroupsUpdate
|
|
2724
|
-
* @request PUT:/admin/company/configuration/account-groups/{id}/
|
|
2725
|
-
* @secure
|
|
2726
|
-
*/
|
|
2727
|
-
adminCompanyConfigurationAccountGroupsUpdate: (
|
|
2728
|
-
id: string,
|
|
2729
|
-
data: DefaultGroupAccountPair,
|
|
2730
|
-
params: RequestParams = {},
|
|
2731
|
-
) =>
|
|
2732
|
-
this.request<AdminCompanyConfigurationAccountGroupsUpdateData, any>({
|
|
2733
|
-
path: `/admin/company/configuration/account-groups/${id}/`,
|
|
2734
|
-
method: "PUT",
|
|
2735
|
-
body: data,
|
|
2736
|
-
secure: true,
|
|
2737
|
-
type: ContentType.Json,
|
|
2738
|
-
format: "json",
|
|
2739
|
-
...params,
|
|
2740
|
-
}),
|
|
2741
|
-
|
|
2742
|
-
/**
|
|
2743
|
-
* @description Details for a Group/Account pair
|
|
2744
|
-
*
|
|
2745
|
-
* @tags admin
|
|
2746
|
-
* @name AdminCompanyConfigurationAccountGroupsPartialUpdate
|
|
2747
|
-
* @request PATCH:/admin/company/configuration/account-groups/{id}/
|
|
2748
|
-
* @secure
|
|
2749
|
-
*/
|
|
2750
|
-
adminCompanyConfigurationAccountGroupsPartialUpdate: (
|
|
2751
|
-
id: string,
|
|
2752
|
-
data: DefaultGroupAccountPair,
|
|
2753
|
-
params: RequestParams = {},
|
|
2754
|
-
) =>
|
|
2755
|
-
this.request<
|
|
2756
|
-
AdminCompanyConfigurationAccountGroupsPartialUpdateData,
|
|
2757
|
-
any
|
|
2758
|
-
>({
|
|
2759
|
-
path: `/admin/company/configuration/account-groups/${id}/`,
|
|
2760
|
-
method: "PATCH",
|
|
2761
|
-
body: data,
|
|
2762
|
-
secure: true,
|
|
2763
|
-
type: ContentType.Json,
|
|
2764
|
-
format: "json",
|
|
2765
|
-
...params,
|
|
2766
|
-
}),
|
|
2767
|
-
|
|
2768
|
-
/**
|
|
2769
|
-
* @description Details for a Group/Account pair
|
|
2770
|
-
*
|
|
2771
|
-
* @tags admin
|
|
2772
|
-
* @name AdminCompanyConfigurationAccountGroupsDelete
|
|
2773
|
-
* @request DELETE:/admin/company/configuration/account-groups/{id}/
|
|
2774
|
-
* @secure
|
|
2775
|
-
*/
|
|
2776
|
-
adminCompanyConfigurationAccountGroupsDelete: (
|
|
2777
|
-
id: string,
|
|
2778
|
-
params: RequestParams = {},
|
|
2779
|
-
) =>
|
|
2780
|
-
this.request<AdminCompanyConfigurationAccountGroupsDeleteData, any>({
|
|
2781
|
-
path: `/admin/company/configuration/account-groups/${id}/`,
|
|
2782
|
-
method: "DELETE",
|
|
2783
|
-
secure: true,
|
|
2784
|
-
...params,
|
|
2785
|
-
}),
|
|
2786
|
-
|
|
2787
|
-
/**
|
|
2788
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2789
|
-
*
|
|
2790
|
-
* @tags admin
|
|
2791
|
-
* @name AdminCompanyConfigurationAnchorPlatformList
|
|
2792
|
-
* @request GET:/admin/company/configuration/anchor_platform/
|
|
2793
|
-
* @secure
|
|
2794
|
-
*/
|
|
2795
|
-
adminCompanyConfigurationAnchorPlatformList: (params: RequestParams = {}) =>
|
|
2796
|
-
this.request<AdminCompanyConfigurationAnchorPlatformListData, any>({
|
|
2797
|
-
path: `/admin/company/configuration/anchor_platform/`,
|
|
2798
|
-
method: "GET",
|
|
2799
|
-
secure: true,
|
|
2800
|
-
format: "json",
|
|
2801
|
-
...params,
|
|
2802
|
-
}),
|
|
2803
|
-
|
|
2804
|
-
/**
|
|
2805
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2806
|
-
*
|
|
2807
|
-
* @tags admin
|
|
2808
|
-
* @name AdminCompanyConfigurationAnchorPlatformUpdate
|
|
2809
|
-
* @request PUT:/admin/company/configuration/anchor_platform/
|
|
2810
|
-
* @secure
|
|
2811
|
-
*/
|
|
2812
|
-
adminCompanyConfigurationAnchorPlatformUpdate: (
|
|
2813
|
-
data: AnchorPlatformConfiguration,
|
|
2814
|
-
params: RequestParams = {},
|
|
2815
|
-
) =>
|
|
2816
|
-
this.request<AdminCompanyConfigurationAnchorPlatformUpdateData, any>({
|
|
2817
|
-
path: `/admin/company/configuration/anchor_platform/`,
|
|
2818
|
-
method: "PUT",
|
|
2819
|
-
body: data,
|
|
2820
|
-
secure: true,
|
|
2821
|
-
type: ContentType.Json,
|
|
2822
|
-
format: "json",
|
|
2823
|
-
...params,
|
|
2824
|
-
}),
|
|
2825
|
-
|
|
2826
|
-
/**
|
|
2827
|
-
* @description Details of Rehive company that was added via the /activate/ endpoint.
|
|
2828
|
-
*
|
|
2829
|
-
* @tags admin
|
|
2830
|
-
* @name AdminCompanyConfigurationAnchorPlatformPartialUpdate
|
|
2831
|
-
* @request PATCH:/admin/company/configuration/anchor_platform/
|
|
2832
|
-
* @secure
|
|
2833
|
-
*/
|
|
2834
|
-
adminCompanyConfigurationAnchorPlatformPartialUpdate: (
|
|
2835
|
-
data: AnchorPlatformConfiguration,
|
|
2836
|
-
params: RequestParams = {},
|
|
2837
|
-
) =>
|
|
2838
|
-
this.request<
|
|
2839
|
-
AdminCompanyConfigurationAnchorPlatformPartialUpdateData,
|
|
2840
|
-
any
|
|
2841
|
-
>({
|
|
2842
|
-
path: `/admin/company/configuration/anchor_platform/`,
|
|
2843
|
-
method: "PATCH",
|
|
2844
|
-
body: data,
|
|
2845
|
-
secure: true,
|
|
2846
|
-
type: ContentType.Json,
|
|
2847
|
-
format: "json",
|
|
2848
|
-
...params,
|
|
2849
|
-
}),
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* @description Create and sends back a link to a Stellar.toml file
|
|
2853
|
-
*
|
|
2854
|
-
* @tags admin
|
|
2855
|
-
* @name AdminCompanyStellarTomlList
|
|
2856
|
-
* @request GET:/admin/company/stellar-toml/
|
|
2857
|
-
* @secure
|
|
2858
|
-
*/
|
|
2859
|
-
adminCompanyStellarTomlList: (params: RequestParams = {}) =>
|
|
2860
|
-
this.request<AdminCompanyStellarTomlListData, any>({
|
|
2861
|
-
path: `/admin/company/stellar-toml/`,
|
|
2862
|
-
method: "GET",
|
|
2863
|
-
secure: true,
|
|
2864
|
-
format: "json",
|
|
2865
|
-
...params,
|
|
2866
|
-
}),
|
|
2867
|
-
|
|
2868
|
-
/**
|
|
2869
|
-
* @description ### View or update a Stellar Account
|
|
2870
|
-
*
|
|
2871
|
-
* @tags admin
|
|
2872
|
-
* @name AdminFederationList
|
|
2873
|
-
* @request GET:/admin/federation/
|
|
2874
|
-
* @secure
|
|
2875
|
-
*/
|
|
2876
|
-
adminFederationList: (params: RequestParams = {}) =>
|
|
2877
|
-
this.request<AdminFederationListData, any>({
|
|
2878
|
-
path: `/admin/federation/`,
|
|
2879
|
-
method: "GET",
|
|
2880
|
-
secure: true,
|
|
2881
|
-
format: "json",
|
|
2882
|
-
...params,
|
|
2883
|
-
}),
|
|
2884
|
-
|
|
2885
|
-
/**
|
|
2886
|
-
* @description ### View or update a Stellar Account
|
|
2887
|
-
*
|
|
2888
|
-
* @tags admin
|
|
2889
|
-
* @name AdminFederationCreate
|
|
2890
|
-
* @request POST:/admin/federation/
|
|
2891
|
-
* @secure
|
|
2892
|
-
*/
|
|
2893
|
-
adminFederationCreate: (data: Federation, params: RequestParams = {}) =>
|
|
2894
|
-
this.request<AdminFederationCreateData, any>({
|
|
2895
|
-
path: `/admin/federation/`,
|
|
2896
|
-
method: "POST",
|
|
2897
|
-
body: data,
|
|
2898
|
-
secure: true,
|
|
2899
|
-
type: ContentType.Json,
|
|
2900
|
-
format: "json",
|
|
2901
|
-
...params,
|
|
2902
|
-
}),
|
|
2903
|
-
|
|
2904
|
-
/**
|
|
2905
|
-
* @description ### View, create and update the hot wallet
|
|
2906
|
-
*
|
|
2907
|
-
* @tags admin
|
|
2908
|
-
* @name AdminHotwalletList
|
|
2909
|
-
* @request GET:/admin/hotwallet/
|
|
2910
|
-
* @secure
|
|
2911
|
-
*/
|
|
2912
|
-
adminHotwalletList: (params: RequestParams = {}) =>
|
|
2913
|
-
this.request<AdminHotwalletListData, any>({
|
|
2914
|
-
path: `/admin/hotwallet/`,
|
|
2915
|
-
method: "GET",
|
|
2916
|
-
secure: true,
|
|
2917
|
-
format: "json",
|
|
2918
|
-
...params,
|
|
2919
|
-
}),
|
|
2920
|
-
|
|
2921
|
-
/**
|
|
2922
|
-
* @description ### View, create and update the hot wallet
|
|
2923
|
-
*
|
|
2924
|
-
* @tags admin
|
|
2925
|
-
* @name AdminHotwalletCreate
|
|
2926
|
-
* @request POST:/admin/hotwallet/
|
|
2927
|
-
* @secure
|
|
2928
|
-
*/
|
|
2929
|
-
adminHotwalletCreate: (data: Hotwallet, params: RequestParams = {}) =>
|
|
2930
|
-
this.request<AdminHotwalletCreateData, any>({
|
|
2931
|
-
path: `/admin/hotwallet/`,
|
|
2932
|
-
method: "POST",
|
|
2933
|
-
body: data,
|
|
2934
|
-
secure: true,
|
|
2935
|
-
type: ContentType.Json,
|
|
2936
|
-
format: "json",
|
|
2937
|
-
...params,
|
|
2938
|
-
}),
|
|
2939
|
-
|
|
2940
|
-
/**
|
|
2941
|
-
* @description ### View, create and update the hot wallet
|
|
2942
|
-
*
|
|
2943
|
-
* @tags admin
|
|
2944
|
-
* @name AdminHotwalletPartialUpdate
|
|
2945
|
-
* @request PATCH:/admin/hotwallet/
|
|
2946
|
-
* @secure
|
|
2947
|
-
*/
|
|
2948
|
-
adminHotwalletPartialUpdate: (
|
|
2949
|
-
data: Hotwallet,
|
|
2950
|
-
params: RequestParams = {},
|
|
2951
|
-
) =>
|
|
2952
|
-
this.request<AdminHotwalletPartialUpdateData, any>({
|
|
2953
|
-
path: `/admin/hotwallet/`,
|
|
2954
|
-
method: "PATCH",
|
|
2955
|
-
body: data,
|
|
2956
|
-
secure: true,
|
|
2957
|
-
type: ContentType.Json,
|
|
2958
|
-
format: "json",
|
|
2959
|
-
...params,
|
|
2960
|
-
}),
|
|
2961
|
-
|
|
2962
|
-
/**
|
|
2963
|
-
* @description ### View hotwallet balance
|
|
2964
|
-
*
|
|
2965
|
-
* @tags admin
|
|
2966
|
-
* @name AdminHotwalletActiveList
|
|
2967
|
-
* @request GET:/admin/hotwallet/active/
|
|
2968
|
-
* @secure
|
|
2969
|
-
*/
|
|
2970
|
-
adminHotwalletActiveList: (params: RequestParams = {}) =>
|
|
2971
|
-
this.request<AdminHotwalletActiveListData, any>({
|
|
2972
|
-
path: `/admin/hotwallet/active/`,
|
|
2973
|
-
method: "GET",
|
|
2974
|
-
secure: true,
|
|
2975
|
-
format: "json",
|
|
2976
|
-
...params,
|
|
2977
|
-
}),
|
|
2978
|
-
|
|
2979
|
-
/**
|
|
2980
|
-
* @description A simple APIView for funding asset accounts.
|
|
2981
|
-
*
|
|
2982
|
-
* @tags admin
|
|
2983
|
-
* @name AdminHotwalletEnableMssCreate
|
|
2984
|
-
* @request POST:/admin/hotwallet/enable_mss/
|
|
2985
|
-
* @secure
|
|
2986
|
-
*/
|
|
2987
|
-
adminHotwalletEnableMssCreate: (
|
|
2988
|
-
data: HotwalletFund,
|
|
2989
|
-
params: RequestParams = {},
|
|
2990
|
-
) =>
|
|
2991
|
-
this.request<AdminHotwalletEnableMssCreateData, any>({
|
|
2992
|
-
path: `/admin/hotwallet/enable_mss/`,
|
|
2993
|
-
method: "POST",
|
|
2994
|
-
body: data,
|
|
2995
|
-
secure: true,
|
|
2996
|
-
type: ContentType.Json,
|
|
2997
|
-
format: "json",
|
|
2998
|
-
...params,
|
|
2999
|
-
}),
|
|
3000
|
-
|
|
3001
|
-
/**
|
|
3002
|
-
* @description ### View hotwallet balance
|
|
3003
|
-
*
|
|
3004
|
-
* @tags admin
|
|
3005
|
-
* @name AdminHotwalletFeesList
|
|
3006
|
-
* @request GET:/admin/hotwallet/fees/
|
|
3007
|
-
* @secure
|
|
3008
|
-
*/
|
|
3009
|
-
adminHotwalletFeesList: (params: RequestParams = {}) =>
|
|
3010
|
-
this.request<AdminHotwalletFeesListData, any>({
|
|
3011
|
-
path: `/admin/hotwallet/fees/`,
|
|
3012
|
-
method: "GET",
|
|
3013
|
-
secure: true,
|
|
3014
|
-
format: "json",
|
|
3015
|
-
...params,
|
|
3016
|
-
}),
|
|
3017
|
-
|
|
3018
|
-
/**
|
|
3019
|
-
* @description View and update company. Authenticates requests using a token in the Authorization header.
|
|
3020
|
-
*
|
|
3021
|
-
* @tags admin
|
|
3022
|
-
* @name AdminHotwalletFundList
|
|
3023
|
-
* @request GET:/admin/hotwallet/fund/
|
|
3024
|
-
* @secure
|
|
3025
|
-
*/
|
|
3026
|
-
adminHotwalletFundList: (params: RequestParams = {}) =>
|
|
3027
|
-
this.request<AdminHotwalletFundListData, any>({
|
|
3028
|
-
path: `/admin/hotwallet/fund/`,
|
|
3029
|
-
method: "GET",
|
|
3030
|
-
secure: true,
|
|
3031
|
-
format: "json",
|
|
3032
|
-
...params,
|
|
3033
|
-
}),
|
|
3034
|
-
|
|
3035
|
-
/**
|
|
3036
|
-
* @description ### Merges and deletes the current hotwallet
|
|
3037
|
-
*
|
|
3038
|
-
* @tags admin
|
|
3039
|
-
* @name AdminHotwalletMergeCreate
|
|
3040
|
-
* @request POST:/admin/hotwallet/merge/
|
|
3041
|
-
* @secure
|
|
3042
|
-
*/
|
|
3043
|
-
adminHotwalletMergeCreate: (
|
|
3044
|
-
data: HotwalletMerge,
|
|
3045
|
-
params: RequestParams = {},
|
|
3046
|
-
) =>
|
|
3047
|
-
this.request<AdminHotwalletMergeCreateData, any>({
|
|
3048
|
-
path: `/admin/hotwallet/merge/`,
|
|
3049
|
-
method: "POST",
|
|
3050
|
-
body: data,
|
|
3051
|
-
secure: true,
|
|
3052
|
-
type: ContentType.Json,
|
|
3053
|
-
format: "json",
|
|
3054
|
-
...params,
|
|
3055
|
-
}),
|
|
3056
|
-
|
|
3057
|
-
/**
|
|
3058
|
-
* @description ### Sends an onchain transactions directly from the Hotwallet
|
|
3059
|
-
*
|
|
3060
|
-
* @tags admin
|
|
3061
|
-
* @name AdminHotwalletSendCreate
|
|
3062
|
-
* @request POST:/admin/hotwallet/send/
|
|
3063
|
-
* @secure
|
|
3064
|
-
*/
|
|
3065
|
-
adminHotwalletSendCreate: (
|
|
3066
|
-
data: HotwalletSend,
|
|
3067
|
-
params: RequestParams = {},
|
|
3068
|
-
) =>
|
|
3069
|
-
this.request<AdminHotwalletSendCreateData, any>({
|
|
3070
|
-
path: `/admin/hotwallet/send/`,
|
|
3071
|
-
method: "POST",
|
|
3072
|
-
body: data,
|
|
3073
|
-
secure: true,
|
|
3074
|
-
type: ContentType.Json,
|
|
3075
|
-
format: "json",
|
|
3076
|
-
...params,
|
|
3077
|
-
}),
|
|
3078
|
-
|
|
3079
|
-
/**
|
|
3080
|
-
* No description
|
|
3081
|
-
*
|
|
3082
|
-
* @tags admin
|
|
3083
|
-
* @name AdminKnownPublicAddressesList
|
|
3084
|
-
* @request GET:/admin/known-public-addresses/
|
|
3085
|
-
* @secure
|
|
3086
|
-
*/
|
|
3087
|
-
adminKnownPublicAddressesList: (params: RequestParams = {}) =>
|
|
3088
|
-
this.request<AdminKnownPublicAddressesListData, any>({
|
|
3089
|
-
path: `/admin/known-public-addresses/`,
|
|
3090
|
-
method: "GET",
|
|
3091
|
-
secure: true,
|
|
3092
|
-
format: "json",
|
|
3093
|
-
...params,
|
|
3094
|
-
}),
|
|
3095
|
-
|
|
3096
|
-
/**
|
|
3097
|
-
* No description
|
|
3098
|
-
*
|
|
3099
|
-
* @tags admin
|
|
3100
|
-
* @name AdminKnownPublicAddressesCreate
|
|
3101
|
-
* @request POST:/admin/known-public-addresses/
|
|
3102
|
-
* @secure
|
|
3103
|
-
*/
|
|
3104
|
-
adminKnownPublicAddressesCreate: (
|
|
3105
|
-
data: KnownPublicAddresses,
|
|
3106
|
-
params: RequestParams = {},
|
|
3107
|
-
) =>
|
|
3108
|
-
this.request<AdminKnownPublicAddressesCreateData, any>({
|
|
3109
|
-
path: `/admin/known-public-addresses/`,
|
|
3110
|
-
method: "POST",
|
|
3111
|
-
body: data,
|
|
3112
|
-
secure: true,
|
|
3113
|
-
type: ContentType.Json,
|
|
3114
|
-
format: "json",
|
|
3115
|
-
...params,
|
|
3116
|
-
}),
|
|
3117
|
-
|
|
3118
|
-
/**
|
|
3119
|
-
* No description
|
|
3120
|
-
*
|
|
3121
|
-
* @tags admin
|
|
3122
|
-
* @name AdminKnownPublicAddressesRead
|
|
3123
|
-
* @request GET:/admin/known-public-addresses/{id}/
|
|
3124
|
-
* @secure
|
|
3125
|
-
*/
|
|
3126
|
-
adminKnownPublicAddressesRead: (id: string, params: RequestParams = {}) =>
|
|
3127
|
-
this.request<AdminKnownPublicAddressesReadData, any>({
|
|
3128
|
-
path: `/admin/known-public-addresses/${id}/`,
|
|
3129
|
-
method: "GET",
|
|
3130
|
-
secure: true,
|
|
3131
|
-
format: "json",
|
|
3132
|
-
...params,
|
|
3133
|
-
}),
|
|
3134
|
-
|
|
3135
|
-
/**
|
|
3136
|
-
* No description
|
|
3137
|
-
*
|
|
3138
|
-
* @tags admin
|
|
3139
|
-
* @name AdminKnownPublicAddressesUpdate
|
|
3140
|
-
* @request PUT:/admin/known-public-addresses/{id}/
|
|
3141
|
-
* @secure
|
|
3142
|
-
*/
|
|
3143
|
-
adminKnownPublicAddressesUpdate: (
|
|
3144
|
-
id: string,
|
|
3145
|
-
data: KnownPublicAddresses,
|
|
3146
|
-
params: RequestParams = {},
|
|
3147
|
-
) =>
|
|
3148
|
-
this.request<AdminKnownPublicAddressesUpdateData, any>({
|
|
3149
|
-
path: `/admin/known-public-addresses/${id}/`,
|
|
3150
|
-
method: "PUT",
|
|
3151
|
-
body: data,
|
|
3152
|
-
secure: true,
|
|
3153
|
-
type: ContentType.Json,
|
|
3154
|
-
format: "json",
|
|
3155
|
-
...params,
|
|
3156
|
-
}),
|
|
3157
|
-
|
|
3158
|
-
/**
|
|
3159
|
-
* No description
|
|
3160
|
-
*
|
|
3161
|
-
* @tags admin
|
|
3162
|
-
* @name AdminKnownPublicAddressesPartialUpdate
|
|
3163
|
-
* @request PATCH:/admin/known-public-addresses/{id}/
|
|
3164
|
-
* @secure
|
|
3165
|
-
*/
|
|
3166
|
-
adminKnownPublicAddressesPartialUpdate: (
|
|
3167
|
-
id: string,
|
|
3168
|
-
data: KnownPublicAddresses,
|
|
3169
|
-
params: RequestParams = {},
|
|
3170
|
-
) =>
|
|
3171
|
-
this.request<AdminKnownPublicAddressesPartialUpdateData, any>({
|
|
3172
|
-
path: `/admin/known-public-addresses/${id}/`,
|
|
3173
|
-
method: "PATCH",
|
|
3174
|
-
body: data,
|
|
3175
|
-
secure: true,
|
|
3176
|
-
type: ContentType.Json,
|
|
3177
|
-
format: "json",
|
|
3178
|
-
...params,
|
|
3179
|
-
}),
|
|
3180
|
-
|
|
3181
|
-
/**
|
|
3182
|
-
* No description
|
|
3183
|
-
*
|
|
3184
|
-
* @tags admin
|
|
3185
|
-
* @name AdminKnownPublicAddressesDelete
|
|
3186
|
-
* @request DELETE:/admin/known-public-addresses/{id}/
|
|
3187
|
-
* @secure
|
|
3188
|
-
*/
|
|
3189
|
-
adminKnownPublicAddressesDelete: (id: string, params: RequestParams = {}) =>
|
|
3190
|
-
this.request<AdminKnownPublicAddressesDeleteData, any>({
|
|
3191
|
-
path: `/admin/known-public-addresses/${id}/`,
|
|
3192
|
-
method: "DELETE",
|
|
3193
|
-
secure: true,
|
|
3194
|
-
...params,
|
|
3195
|
-
}),
|
|
3196
|
-
|
|
3197
|
-
/**
|
|
3198
|
-
* No description
|
|
3199
|
-
*
|
|
3200
|
-
* @tags admin
|
|
3201
|
-
* @name AdminMemosList
|
|
3202
|
-
* @request GET:/admin/memos/
|
|
3203
|
-
* @secure
|
|
3204
|
-
*/
|
|
3205
|
-
adminMemosList: (params: RequestParams = {}) =>
|
|
3206
|
-
this.request<AdminMemosListData, any>({
|
|
3207
|
-
path: `/admin/memos/`,
|
|
3208
|
-
method: "GET",
|
|
3209
|
-
secure: true,
|
|
3210
|
-
format: "json",
|
|
3211
|
-
...params,
|
|
3212
|
-
}),
|
|
3213
|
-
|
|
3214
|
-
/**
|
|
3215
|
-
* No description
|
|
3216
|
-
*
|
|
3217
|
-
* @tags admin
|
|
3218
|
-
* @name AdminMemosCreate
|
|
3219
|
-
* @request POST:/admin/memos/
|
|
3220
|
-
* @secure
|
|
3221
|
-
*/
|
|
3222
|
-
adminMemosCreate: (data: AdminMemo, params: RequestParams = {}) =>
|
|
3223
|
-
this.request<AdminMemosCreateData, any>({
|
|
3224
|
-
path: `/admin/memos/`,
|
|
3225
|
-
method: "POST",
|
|
3226
|
-
body: data,
|
|
3227
|
-
secure: true,
|
|
3228
|
-
type: ContentType.Json,
|
|
3229
|
-
format: "json",
|
|
3230
|
-
...params,
|
|
3231
|
-
}),
|
|
3232
|
-
|
|
3233
|
-
/**
|
|
3234
|
-
* @description ### List transactions
|
|
3235
|
-
*
|
|
3236
|
-
* @tags admin
|
|
3237
|
-
* @name AdminSep10AuthenticatedAccountsList
|
|
3238
|
-
* @request GET:/admin/sep10-authenticated-accounts/
|
|
3239
|
-
* @secure
|
|
3240
|
-
*/
|
|
3241
|
-
adminSep10AuthenticatedAccountsList: (
|
|
3242
|
-
query: AdminSep10AuthenticatedAccountsListParams,
|
|
3243
|
-
params: RequestParams = {},
|
|
3244
|
-
) =>
|
|
3245
|
-
this.request<AdminSep10AuthenticatedAccountsListData, any>({
|
|
3246
|
-
path: `/admin/sep10-authenticated-accounts/`,
|
|
3247
|
-
method: "GET",
|
|
3248
|
-
query: query,
|
|
3249
|
-
secure: true,
|
|
3250
|
-
format: "json",
|
|
3251
|
-
...params,
|
|
3252
|
-
}),
|
|
3253
|
-
|
|
3254
|
-
/**
|
|
3255
|
-
* @description ### GET a single SEP10AuthenticatedAccount object
|
|
3256
|
-
*
|
|
3257
|
-
* @tags admin
|
|
3258
|
-
* @name AdminSep10AuthenticatedAccountsRead
|
|
3259
|
-
* @request GET:/admin/sep10-authenticated-accounts/{id}/
|
|
3260
|
-
* @secure
|
|
3261
|
-
*/
|
|
3262
|
-
adminSep10AuthenticatedAccountsRead: (
|
|
3263
|
-
id: string,
|
|
3264
|
-
params: RequestParams = {},
|
|
3265
|
-
) =>
|
|
3266
|
-
this.request<AdminSep10AuthenticatedAccountsReadData, any>({
|
|
3267
|
-
path: `/admin/sep10-authenticated-accounts/${id}/`,
|
|
3268
|
-
method: "GET",
|
|
3269
|
-
secure: true,
|
|
3270
|
-
format: "json",
|
|
3271
|
-
...params,
|
|
3272
|
-
}),
|
|
3273
|
-
|
|
3274
|
-
/**
|
|
3275
|
-
* @description ### List all SEP24Transaction objects
|
|
3276
|
-
*
|
|
3277
|
-
* @tags admin
|
|
3278
|
-
* @name AdminSep24TransactionsList
|
|
3279
|
-
* @request GET:/admin/sep24-transactions/
|
|
3280
|
-
* @secure
|
|
3281
|
-
*/
|
|
3282
|
-
adminSep24TransactionsList: (
|
|
3283
|
-
query: AdminSep24TransactionsListParams,
|
|
3284
|
-
params: RequestParams = {},
|
|
3285
|
-
) =>
|
|
3286
|
-
this.request<AdminSep24TransactionsListData, any>({
|
|
3287
|
-
path: `/admin/sep24-transactions/`,
|
|
3288
|
-
method: "GET",
|
|
3289
|
-
query: query,
|
|
3290
|
-
secure: true,
|
|
3291
|
-
format: "json",
|
|
3292
|
-
...params,
|
|
3293
|
-
}),
|
|
3294
|
-
|
|
3295
|
-
/**
|
|
3296
|
-
* @description ### GET a single SEP24Transaction object
|
|
3297
|
-
*
|
|
3298
|
-
* @tags admin
|
|
3299
|
-
* @name AdminSep24TransactionsRead
|
|
3300
|
-
* @request GET:/admin/sep24-transactions/{id}/
|
|
3301
|
-
* @secure
|
|
3302
|
-
*/
|
|
3303
|
-
adminSep24TransactionsRead: (id: string, params: RequestParams = {}) =>
|
|
3304
|
-
this.request<AdminSep24TransactionsReadData, any>({
|
|
3305
|
-
path: `/admin/sep24-transactions/${id}/`,
|
|
3306
|
-
method: "GET",
|
|
3307
|
-
secure: true,
|
|
3308
|
-
format: "json",
|
|
3309
|
-
...params,
|
|
3310
|
-
}),
|
|
3311
|
-
|
|
3312
|
-
/**
|
|
3313
|
-
* @description ### List stellar accounts
|
|
3314
|
-
*
|
|
3315
|
-
* @tags admin
|
|
3316
|
-
* @name AdminStellarAccountsList
|
|
3317
|
-
* @request GET:/admin/stellar_accounts/
|
|
3318
|
-
* @secure
|
|
3319
|
-
*/
|
|
3320
|
-
adminStellarAccountsList: (
|
|
3321
|
-
query: AdminStellarAccountsListParams,
|
|
3322
|
-
params: RequestParams = {},
|
|
3323
|
-
) =>
|
|
3324
|
-
this.request<AdminStellarAccountsListData, any>({
|
|
3325
|
-
path: `/admin/stellar_accounts/`,
|
|
3326
|
-
method: "GET",
|
|
3327
|
-
query: query,
|
|
3328
|
-
secure: true,
|
|
3329
|
-
format: "json",
|
|
3330
|
-
...params,
|
|
3331
|
-
}),
|
|
3332
|
-
|
|
3333
|
-
/**
|
|
3334
|
-
* @description ### View or update a Stellar Account
|
|
3335
|
-
*
|
|
3336
|
-
* @tags admin
|
|
3337
|
-
* @name AdminStellarAccountsGenerateCreate
|
|
3338
|
-
* @request POST:/admin/stellar_accounts/generate/
|
|
3339
|
-
* @secure
|
|
3340
|
-
*/
|
|
3341
|
-
adminStellarAccountsGenerateCreate: (
|
|
3342
|
-
data: StellarAccountGenerate,
|
|
3343
|
-
params: RequestParams = {},
|
|
3344
|
-
) =>
|
|
3345
|
-
this.request<AdminStellarAccountsGenerateCreateData, any>({
|
|
3346
|
-
path: `/admin/stellar_accounts/generate/`,
|
|
3347
|
-
method: "POST",
|
|
3348
|
-
body: data,
|
|
3349
|
-
secure: true,
|
|
3350
|
-
type: ContentType.Json,
|
|
3351
|
-
format: "json",
|
|
3352
|
-
...params,
|
|
3353
|
-
}),
|
|
3354
|
-
|
|
3355
|
-
/**
|
|
3356
|
-
* @description ### View or update a Stellar Account
|
|
3357
|
-
*
|
|
3358
|
-
* @tags admin
|
|
3359
|
-
* @name AdminStellarAccountsRead
|
|
3360
|
-
* @request GET:/admin/stellar_accounts/{id}/
|
|
3361
|
-
* @secure
|
|
3362
|
-
*/
|
|
3363
|
-
adminStellarAccountsRead: (id: string, params: RequestParams = {}) =>
|
|
3364
|
-
this.request<AdminStellarAccountsReadData, any>({
|
|
3365
|
-
path: `/admin/stellar_accounts/${id}/`,
|
|
3366
|
-
method: "GET",
|
|
3367
|
-
secure: true,
|
|
3368
|
-
format: "json",
|
|
3369
|
-
...params,
|
|
3370
|
-
}),
|
|
3371
|
-
|
|
3372
|
-
/**
|
|
3373
|
-
* @description ### View or update a Stellar Account
|
|
3374
|
-
*
|
|
3375
|
-
* @tags admin
|
|
3376
|
-
* @name AdminStellarAccountsPartialUpdate
|
|
3377
|
-
* @request PATCH:/admin/stellar_accounts/{id}/
|
|
3378
|
-
* @secure
|
|
3379
|
-
*/
|
|
3380
|
-
adminStellarAccountsPartialUpdate: (
|
|
3381
|
-
id: string,
|
|
3382
|
-
data: StellarAccount,
|
|
3383
|
-
params: RequestParams = {},
|
|
3384
|
-
) =>
|
|
3385
|
-
this.request<AdminStellarAccountsPartialUpdateData, any>({
|
|
3386
|
-
path: `/admin/stellar_accounts/${id}/`,
|
|
3387
|
-
method: "PATCH",
|
|
3388
|
-
body: data,
|
|
3389
|
-
secure: true,
|
|
3390
|
-
type: ContentType.Json,
|
|
3391
|
-
format: "json",
|
|
3392
|
-
...params,
|
|
3393
|
-
}),
|
|
3394
|
-
|
|
3395
|
-
/**
|
|
3396
|
-
* @description ### Change the ownership of a service generated account ### Adds a new primary signer and removes the services secret as a signer
|
|
3397
|
-
*
|
|
3398
|
-
* @tags admin
|
|
3399
|
-
* @name AdminStellarAccountsChangeOwnershipCreate
|
|
3400
|
-
* @request POST:/admin/stellar_accounts/{id}/change_ownership/
|
|
3401
|
-
* @secure
|
|
3402
|
-
*/
|
|
3403
|
-
adminStellarAccountsChangeOwnershipCreate: (
|
|
3404
|
-
id: string,
|
|
3405
|
-
data: StellarAccountChangeOwnership,
|
|
3406
|
-
params: RequestParams = {},
|
|
3407
|
-
) =>
|
|
3408
|
-
this.request<AdminStellarAccountsChangeOwnershipCreateData, any>({
|
|
3409
|
-
path: `/admin/stellar_accounts/${id}/change_ownership/`,
|
|
3410
|
-
method: "POST",
|
|
3411
|
-
body: data,
|
|
3412
|
-
secure: true,
|
|
3413
|
-
type: ContentType.Json,
|
|
3414
|
-
format: "json",
|
|
3415
|
-
...params,
|
|
3416
|
-
}),
|
|
3417
|
-
|
|
3418
|
-
/**
|
|
3419
|
-
* @description ### List transactions
|
|
3420
|
-
*
|
|
3421
|
-
* @tags admin
|
|
3422
|
-
* @name AdminTransactionsList
|
|
3423
|
-
* @request GET:/admin/transactions/
|
|
3424
|
-
* @secure
|
|
3425
|
-
*/
|
|
3426
|
-
adminTransactionsList: (
|
|
3427
|
-
query: AdminTransactionsListParams,
|
|
3428
|
-
params: RequestParams = {},
|
|
3429
|
-
) =>
|
|
3430
|
-
this.request<AdminTransactionsListData, any>({
|
|
3431
|
-
path: `/admin/transactions/`,
|
|
3432
|
-
method: "GET",
|
|
3433
|
-
query: query,
|
|
3434
|
-
secure: true,
|
|
3435
|
-
format: "json",
|
|
3436
|
-
...params,
|
|
3437
|
-
}),
|
|
3438
|
-
|
|
3439
|
-
/**
|
|
3440
|
-
* @description View for sending assets directly out of the hotwallet account
|
|
3441
|
-
*
|
|
3442
|
-
* @tags admin
|
|
3443
|
-
* @name AdminTransactionsSendCreate
|
|
3444
|
-
* @request POST:/admin/transactions/send/
|
|
3445
|
-
* @secure
|
|
3446
|
-
*/
|
|
3447
|
-
adminTransactionsSendCreate: (
|
|
3448
|
-
data: AdminSendTransaction,
|
|
3449
|
-
params: RequestParams = {},
|
|
3450
|
-
) =>
|
|
3451
|
-
this.request<AdminTransactionsSendCreateData, any>({
|
|
3452
|
-
path: `/admin/transactions/send/`,
|
|
3453
|
-
method: "POST",
|
|
3454
|
-
body: data,
|
|
3455
|
-
secure: true,
|
|
3456
|
-
type: ContentType.Json,
|
|
3457
|
-
format: "json",
|
|
3458
|
-
...params,
|
|
3459
|
-
}),
|
|
3460
|
-
|
|
3461
|
-
/**
|
|
3462
|
-
* @description ### GET and PATCH a single transaction on the Stellar service
|
|
3463
|
-
*
|
|
3464
|
-
* @tags admin
|
|
3465
|
-
* @name AdminTransactionsRead
|
|
3466
|
-
* @request GET:/admin/transactions/{id}/
|
|
3467
|
-
* @secure
|
|
3468
|
-
*/
|
|
3469
|
-
adminTransactionsRead: (id: string, params: RequestParams = {}) =>
|
|
3470
|
-
this.request<AdminTransactionsReadData, any>({
|
|
3471
|
-
path: `/admin/transactions/${id}/`,
|
|
3472
|
-
method: "GET",
|
|
3473
|
-
secure: true,
|
|
3474
|
-
format: "json",
|
|
3475
|
-
...params,
|
|
3476
|
-
}),
|
|
3477
|
-
|
|
3478
|
-
/**
|
|
3479
|
-
* @description ### GET and PATCH a single transaction on the Stellar service
|
|
3480
|
-
*
|
|
3481
|
-
* @tags admin
|
|
3482
|
-
* @name AdminTransactionsPartialUpdate
|
|
3483
|
-
* @request PATCH:/admin/transactions/{id}/
|
|
3484
|
-
* @secure
|
|
3485
|
-
*/
|
|
3486
|
-
adminTransactionsPartialUpdate: (
|
|
3487
|
-
id: string,
|
|
3488
|
-
data: AdminTransaction,
|
|
3489
|
-
params: RequestParams = {},
|
|
3490
|
-
) =>
|
|
3491
|
-
this.request<AdminTransactionsPartialUpdateData, any>({
|
|
3492
|
-
path: `/admin/transactions/${id}/`,
|
|
3493
|
-
method: "PATCH",
|
|
3494
|
-
body: data,
|
|
3495
|
-
secure: true,
|
|
3496
|
-
type: ContentType.Json,
|
|
3497
|
-
format: "json",
|
|
3498
|
-
...params,
|
|
3499
|
-
}),
|
|
3500
|
-
|
|
3501
|
-
/**
|
|
3502
|
-
* @description ### List users
|
|
3503
|
-
*
|
|
3504
|
-
* @tags admin
|
|
3505
|
-
* @name AdminUsersList
|
|
3506
|
-
* @request GET:/admin/users/
|
|
3507
|
-
* @secure
|
|
3508
|
-
*/
|
|
3509
|
-
adminUsersList: (query: AdminUsersListParams, params: RequestParams = {}) =>
|
|
3510
|
-
this.request<AdminUsersListData, any>({
|
|
3511
|
-
path: `/admin/users/`,
|
|
3512
|
-
method: "GET",
|
|
3513
|
-
query: query,
|
|
3514
|
-
secure: true,
|
|
3515
|
-
format: "json",
|
|
3516
|
-
...params,
|
|
3517
|
-
}),
|
|
3518
|
-
|
|
3519
|
-
/**
|
|
3520
|
-
* @description ### List users
|
|
3521
|
-
*
|
|
3522
|
-
* @tags admin
|
|
3523
|
-
* @name AdminUsersCreate
|
|
3524
|
-
* @request POST:/admin/users/
|
|
3525
|
-
* @secure
|
|
3526
|
-
*/
|
|
3527
|
-
adminUsersCreate: (
|
|
3528
|
-
data: AdminUserInfoSeralizer,
|
|
3529
|
-
params: RequestParams = {},
|
|
3530
|
-
) =>
|
|
3531
|
-
this.request<AdminUsersCreateData, any>({
|
|
3532
|
-
path: `/admin/users/`,
|
|
3533
|
-
method: "POST",
|
|
3534
|
-
body: data,
|
|
3535
|
-
secure: true,
|
|
3536
|
-
type: ContentType.Json,
|
|
3537
|
-
format: "json",
|
|
3538
|
-
...params,
|
|
3539
|
-
}),
|
|
3540
|
-
|
|
3541
|
-
/**
|
|
3542
|
-
* @description ### List users
|
|
3543
|
-
*
|
|
3544
|
-
* @tags admin
|
|
3545
|
-
* @name AdminUsersRead
|
|
3546
|
-
* @request GET:/admin/users/{id}/
|
|
3547
|
-
* @secure
|
|
3548
|
-
*/
|
|
3549
|
-
adminUsersRead: (id: string, params: RequestParams = {}) =>
|
|
3550
|
-
this.request<AdminUsersReadData, any>({
|
|
3551
|
-
path: `/admin/users/${id}/`,
|
|
3552
|
-
method: "GET",
|
|
3553
|
-
secure: true,
|
|
3554
|
-
format: "json",
|
|
3555
|
-
...params,
|
|
3556
|
-
}),
|
|
3557
|
-
|
|
3558
|
-
/**
|
|
3559
|
-
* @description ### List users
|
|
3560
|
-
*
|
|
3561
|
-
* @tags admin
|
|
3562
|
-
* @name AdminUsersPartialUpdate
|
|
3563
|
-
* @request PATCH:/admin/users/{id}/
|
|
3564
|
-
* @secure
|
|
3565
|
-
*/
|
|
3566
|
-
adminUsersPartialUpdate: (
|
|
3567
|
-
id: string,
|
|
3568
|
-
data: UserSeralizer,
|
|
3569
|
-
params: RequestParams = {},
|
|
3570
|
-
) =>
|
|
3571
|
-
this.request<AdminUsersPartialUpdateData, any>({
|
|
3572
|
-
path: `/admin/users/${id}/`,
|
|
3573
|
-
method: "PATCH",
|
|
3574
|
-
body: data,
|
|
3575
|
-
secure: true,
|
|
3576
|
-
type: ContentType.Json,
|
|
3577
|
-
format: "json",
|
|
3578
|
-
...params,
|
|
3579
|
-
}),
|
|
3580
|
-
|
|
3581
|
-
/**
|
|
3582
|
-
* No description
|
|
3583
|
-
*
|
|
3584
|
-
* @tags admin
|
|
3585
|
-
* @name AdminUsersMemosList
|
|
3586
|
-
* @request GET:/admin/users/{id}/memos/
|
|
3587
|
-
* @secure
|
|
3588
|
-
*/
|
|
3589
|
-
adminUsersMemosList: (id: string, params: RequestParams = {}) =>
|
|
3590
|
-
this.request<AdminUsersMemosListData, any>({
|
|
3591
|
-
path: `/admin/users/${id}/memos/`,
|
|
3592
|
-
method: "GET",
|
|
3593
|
-
secure: true,
|
|
3594
|
-
format: "json",
|
|
3595
|
-
...params,
|
|
3596
|
-
}),
|
|
3597
|
-
|
|
3598
|
-
/**
|
|
3599
|
-
* No description
|
|
3600
|
-
*
|
|
3601
|
-
* @tags admin
|
|
3602
|
-
* @name AdminUsersMemosCreate
|
|
3603
|
-
* @request POST:/admin/users/{id}/memos/
|
|
3604
|
-
* @secure
|
|
3605
|
-
*/
|
|
3606
|
-
adminUsersMemosCreate: (
|
|
3607
|
-
id: string,
|
|
3608
|
-
data: AdminUserMemo,
|
|
3609
|
-
params: RequestParams = {},
|
|
3610
|
-
) =>
|
|
3611
|
-
this.request<AdminUsersMemosCreateData, any>({
|
|
3612
|
-
path: `/admin/users/${id}/memos/`,
|
|
3613
|
-
method: "POST",
|
|
3614
|
-
body: data,
|
|
3615
|
-
secure: true,
|
|
3616
|
-
type: ContentType.Json,
|
|
3617
|
-
format: "json",
|
|
3618
|
-
...params,
|
|
3619
|
-
}),
|
|
3620
|
-
|
|
3621
|
-
/**
|
|
3622
|
-
* @description ### View warmstorage balance
|
|
3623
|
-
*
|
|
3624
|
-
* @tags admin
|
|
3625
|
-
* @name AdminWarmstorageList
|
|
3626
|
-
* @request GET:/admin/warmstorage/
|
|
3627
|
-
* @secure
|
|
3628
|
-
*/
|
|
3629
|
-
adminWarmstorageList: (
|
|
3630
|
-
query: AdminWarmstorageListParams,
|
|
3631
|
-
params: RequestParams = {},
|
|
3632
|
-
) =>
|
|
3633
|
-
this.request<AdminWarmstorageListData, any>({
|
|
3634
|
-
path: `/admin/warmstorage/`,
|
|
3635
|
-
method: "GET",
|
|
3636
|
-
query: query,
|
|
3637
|
-
secure: true,
|
|
3638
|
-
format: "json",
|
|
3639
|
-
...params,
|
|
3640
|
-
}),
|
|
3641
|
-
|
|
3642
|
-
/**
|
|
3643
|
-
* @description ### List or create warmstorage accounts for monitoring
|
|
3644
|
-
*
|
|
3645
|
-
* @tags admin
|
|
3646
|
-
* @name AdminWarmstorageAccountsList
|
|
3647
|
-
* @request GET:/admin/warmstorage/accounts/
|
|
3648
|
-
* @secure
|
|
3649
|
-
*/
|
|
3650
|
-
adminWarmstorageAccountsList: (
|
|
3651
|
-
query: AdminWarmstorageAccountsListParams,
|
|
3652
|
-
params: RequestParams = {},
|
|
3653
|
-
) =>
|
|
3654
|
-
this.request<AdminWarmstorageAccountsListData, any>({
|
|
3655
|
-
path: `/admin/warmstorage/accounts/`,
|
|
3656
|
-
method: "GET",
|
|
3657
|
-
query: query,
|
|
3658
|
-
secure: true,
|
|
3659
|
-
format: "json",
|
|
3660
|
-
...params,
|
|
3661
|
-
}),
|
|
3662
|
-
|
|
3663
|
-
/**
|
|
3664
|
-
* @description ### List or create warmstorage accounts for monitoring
|
|
3665
|
-
*
|
|
3666
|
-
* @tags admin
|
|
3667
|
-
* @name AdminWarmstorageAccountsCreate
|
|
3668
|
-
* @request POST:/admin/warmstorage/accounts/
|
|
3669
|
-
* @secure
|
|
3670
|
-
*/
|
|
3671
|
-
adminWarmstorageAccountsCreate: (
|
|
3672
|
-
data: WarmstorageAccount,
|
|
3673
|
-
params: RequestParams = {},
|
|
3674
|
-
) =>
|
|
3675
|
-
this.request<AdminWarmstorageAccountsCreateData, any>({
|
|
3676
|
-
path: `/admin/warmstorage/accounts/`,
|
|
3677
|
-
method: "POST",
|
|
3678
|
-
body: data,
|
|
3679
|
-
secure: true,
|
|
3680
|
-
type: ContentType.Json,
|
|
3681
|
-
format: "json",
|
|
3682
|
-
...params,
|
|
3683
|
-
}),
|
|
3684
|
-
|
|
3685
|
-
/**
|
|
3686
|
-
* @description ### View or update a warm storage account
|
|
3687
|
-
*
|
|
3688
|
-
* @tags admin
|
|
3689
|
-
* @name AdminWarmstorageAccountsRead
|
|
3690
|
-
* @request GET:/admin/warmstorage/accounts/{id}/
|
|
3691
|
-
* @secure
|
|
3692
|
-
*/
|
|
3693
|
-
adminWarmstorageAccountsRead: (id: string, params: RequestParams = {}) =>
|
|
3694
|
-
this.request<AdminWarmstorageAccountsReadData, any>({
|
|
3695
|
-
path: `/admin/warmstorage/accounts/${id}/`,
|
|
3696
|
-
method: "GET",
|
|
3697
|
-
secure: true,
|
|
3698
|
-
format: "json",
|
|
3699
|
-
...params,
|
|
3700
|
-
}),
|
|
3701
|
-
|
|
3702
|
-
/**
|
|
3703
|
-
* @description ### View or update a warm storage account
|
|
3704
|
-
*
|
|
3705
|
-
* @tags admin
|
|
3706
|
-
* @name AdminWarmstorageAccountsPartialUpdate
|
|
3707
|
-
* @request PATCH:/admin/warmstorage/accounts/{id}/
|
|
3708
|
-
* @secure
|
|
3709
|
-
*/
|
|
3710
|
-
adminWarmstorageAccountsPartialUpdate: (
|
|
3711
|
-
id: string,
|
|
3712
|
-
data: WarmstorageAccount,
|
|
3713
|
-
params: RequestParams = {},
|
|
3714
|
-
) =>
|
|
3715
|
-
this.request<AdminWarmstorageAccountsPartialUpdateData, any>({
|
|
3716
|
-
path: `/admin/warmstorage/accounts/${id}/`,
|
|
3717
|
-
method: "PATCH",
|
|
3718
|
-
body: data,
|
|
3719
|
-
secure: true,
|
|
3720
|
-
type: ContentType.Json,
|
|
3721
|
-
format: "json",
|
|
3722
|
-
...params,
|
|
3723
|
-
}),
|
|
3724
|
-
};
|
|
3725
|
-
company = {
|
|
3726
|
-
/**
|
|
3727
|
-
* @description Public details of the Rehive company that was added via the /activate/ endpoint.
|
|
3728
|
-
*
|
|
3729
|
-
* @tags company
|
|
3730
|
-
* @name CompanyList
|
|
3731
|
-
* @request GET:/company/
|
|
3732
|
-
* @secure
|
|
3733
|
-
*/
|
|
3734
|
-
companyList: (params: RequestParams = {}) =>
|
|
3735
|
-
this.request<CompanyListData, any>({
|
|
3736
|
-
path: `/company/`,
|
|
3737
|
-
method: "GET",
|
|
3738
|
-
secure: true,
|
|
3739
|
-
format: "json",
|
|
3740
|
-
...params,
|
|
3741
|
-
}),
|
|
3742
|
-
|
|
3743
|
-
/**
|
|
3744
|
-
* @description Add a new stellar asset to the service, or list existing assets. You'll need to include a valid stellar anchor issuing address and asset ID.
|
|
3745
|
-
*
|
|
3746
|
-
* @tags company
|
|
3747
|
-
* @name CompanyAssetsList
|
|
3748
|
-
* @request GET:/company/assets/
|
|
3749
|
-
* @secure
|
|
3750
|
-
*/
|
|
3751
|
-
companyAssetsList: (params: RequestParams = {}) =>
|
|
3752
|
-
this.request<CompanyAssetsListData, any>({
|
|
3753
|
-
path: `/company/assets/`,
|
|
3754
|
-
method: "GET",
|
|
3755
|
-
secure: true,
|
|
3756
|
-
format: "json",
|
|
3757
|
-
...params,
|
|
3758
|
-
}),
|
|
3759
|
-
};
|
|
3760
|
-
deactivate = {
|
|
3761
|
-
/**
|
|
3762
|
-
* @description This endpoint is used by the Rehive Marketplace to remove this service for a specific company. It requires a permanent API token for that company.
|
|
3763
|
-
*
|
|
3764
|
-
* @tags deactivate
|
|
3765
|
-
* @name DeactivateCreate
|
|
3766
|
-
* @request POST:/deactivate/
|
|
3767
|
-
* @secure
|
|
3768
|
-
*/
|
|
3769
|
-
deactivateCreate: (data: Deactivate, params: RequestParams = {}) =>
|
|
3770
|
-
this.request<DeactivateCreateData, any>({
|
|
3771
|
-
path: `/deactivate/`,
|
|
3772
|
-
method: "POST",
|
|
3773
|
-
body: data,
|
|
3774
|
-
secure: true,
|
|
3775
|
-
type: ContentType.Json,
|
|
3776
|
-
format: "json",
|
|
3777
|
-
...params,
|
|
3778
|
-
}),
|
|
3779
|
-
};
|
|
3780
|
-
hooks = {
|
|
3781
|
-
/**
|
|
3782
|
-
* No description
|
|
3783
|
-
*
|
|
3784
|
-
* @tags hooks
|
|
3785
|
-
* @name HooksPrsCreate
|
|
3786
|
-
* @request POST:/hooks/prs/
|
|
3787
|
-
* @secure
|
|
3788
|
-
*/
|
|
3789
|
-
hooksPrsCreate: (data: PRSWebhook, params: RequestParams = {}) =>
|
|
3790
|
-
this.request<HooksPrsCreateData, any>({
|
|
3791
|
-
path: `/hooks/prs/`,
|
|
3792
|
-
method: "POST",
|
|
3793
|
-
body: data,
|
|
3794
|
-
secure: true,
|
|
3795
|
-
type: ContentType.Json,
|
|
3796
|
-
format: "json",
|
|
3797
|
-
...params,
|
|
3798
|
-
}),
|
|
3799
|
-
};
|
|
3800
|
-
info = {
|
|
3801
|
-
/**
|
|
3802
|
-
* @description Returns node and network data for the service
|
|
3803
|
-
*
|
|
3804
|
-
* @tags info
|
|
3805
|
-
* @name InfoList
|
|
3806
|
-
* @request GET:/info/
|
|
3807
|
-
* @secure
|
|
3808
|
-
*/
|
|
3809
|
-
infoList: (params: RequestParams = {}) =>
|
|
3810
|
-
this.request<InfoListData, any>({
|
|
3811
|
-
path: `/info/`,
|
|
3812
|
-
method: "GET",
|
|
3813
|
-
secure: true,
|
|
3814
|
-
format: "json",
|
|
3815
|
-
...params,
|
|
3816
|
-
}),
|
|
3817
|
-
};
|
|
3818
|
-
knownAssets = {
|
|
3819
|
-
/**
|
|
3820
|
-
* @description Returns node and network data for the service
|
|
3821
|
-
*
|
|
3822
|
-
* @tags known-assets
|
|
3823
|
-
* @name KnownAssetsList
|
|
3824
|
-
* @request GET:/known-assets/
|
|
3825
|
-
* @secure
|
|
3826
|
-
*/
|
|
3827
|
-
knownAssetsList: (
|
|
3828
|
-
query: KnownAssetsListParams,
|
|
3829
|
-
params: RequestParams = {},
|
|
3830
|
-
) =>
|
|
3831
|
-
this.request<KnownAssetsListData, any>({
|
|
3832
|
-
path: `/known-assets/`,
|
|
3833
|
-
method: "GET",
|
|
3834
|
-
query: query,
|
|
3835
|
-
secure: true,
|
|
3836
|
-
format: "json",
|
|
3837
|
-
...params,
|
|
3838
|
-
}),
|
|
3839
|
-
};
|
|
3840
|
-
stellarFederation = {
|
|
3841
|
-
/**
|
|
3842
|
-
* No description
|
|
3843
|
-
*
|
|
3844
|
-
* @tags stellar_federation
|
|
3845
|
-
* @name StellarFederationRead
|
|
3846
|
-
* @request GET:/stellar_federation/{company}/
|
|
3847
|
-
* @secure
|
|
3848
|
-
*/
|
|
3849
|
-
stellarFederationRead: (company: string, params: RequestParams = {}) =>
|
|
3850
|
-
this.request<StellarFederationReadData, any>({
|
|
3851
|
-
path: `/stellar_federation/${company}/`,
|
|
3852
|
-
method: "GET",
|
|
3853
|
-
secure: true,
|
|
3854
|
-
...params,
|
|
3855
|
-
}),
|
|
3856
|
-
};
|
|
3857
|
-
transactions = {
|
|
3858
|
-
/**
|
|
3859
|
-
* @description ### List transactions
|
|
3860
|
-
*
|
|
3861
|
-
* @tags transactions
|
|
3862
|
-
* @name TransactionsList
|
|
3863
|
-
* @request GET:/transactions/
|
|
3864
|
-
* @secure
|
|
3865
|
-
*/
|
|
3866
|
-
transactionsList: (
|
|
3867
|
-
query: TransactionsListParams,
|
|
3868
|
-
params: RequestParams = {},
|
|
3869
|
-
) =>
|
|
3870
|
-
this.request<TransactionsListData, any>({
|
|
3871
|
-
path: `/transactions/`,
|
|
3872
|
-
method: "GET",
|
|
3873
|
-
query: query,
|
|
3874
|
-
secure: true,
|
|
3875
|
-
format: "json",
|
|
3876
|
-
...params,
|
|
3877
|
-
}),
|
|
3878
|
-
|
|
3879
|
-
/**
|
|
3880
|
-
* @description Create the send transaction on Rehive, and/or on the stellar blockchain. When the an email address, the transaction will be handled off-chain, only on the rehive ledger. When sent to a stellar address, the transaction is created on Rehive. Rehive then sends a webhook to the /hooks/debit/ endpoint and a blockchain transaction is created and broadcasted.
|
|
3881
|
-
*
|
|
3882
|
-
* @tags transactions
|
|
3883
|
-
* @name TransactionsSendCreate
|
|
3884
|
-
* @request POST:/transactions/send/
|
|
3885
|
-
* @secure
|
|
3886
|
-
*/
|
|
3887
|
-
transactionsSendCreate: (
|
|
3888
|
-
data: SendTransaction,
|
|
3889
|
-
params: RequestParams = {},
|
|
3890
|
-
) =>
|
|
3891
|
-
this.request<TransactionsSendCreateData, any>({
|
|
3892
|
-
path: `/transactions/send/`,
|
|
3893
|
-
method: "POST",
|
|
3894
|
-
body: data,
|
|
3895
|
-
secure: true,
|
|
3896
|
-
type: ContentType.Json,
|
|
3897
|
-
format: "json",
|
|
3898
|
-
...params,
|
|
3899
|
-
}),
|
|
3900
|
-
};
|
|
3901
|
-
user = {
|
|
3902
|
-
/**
|
|
3903
|
-
* No description
|
|
3904
|
-
*
|
|
3905
|
-
* @tags user
|
|
3906
|
-
* @name UserList
|
|
3907
|
-
* @request GET:/user/
|
|
3908
|
-
* @secure
|
|
3909
|
-
*/
|
|
3910
|
-
userList: (params: RequestParams = {}) =>
|
|
3911
|
-
this.request<UserListData, any>({
|
|
3912
|
-
path: `/user/`,
|
|
3913
|
-
method: "GET",
|
|
3914
|
-
secure: true,
|
|
3915
|
-
format: "json",
|
|
3916
|
-
...params,
|
|
3917
|
-
}),
|
|
3918
|
-
|
|
3919
|
-
/**
|
|
3920
|
-
* No description
|
|
3921
|
-
*
|
|
3922
|
-
* @tags user
|
|
3923
|
-
* @name UserPartialUpdate
|
|
3924
|
-
* @request PATCH:/user/
|
|
3925
|
-
* @secure
|
|
3926
|
-
*/
|
|
3927
|
-
userPartialUpdate: (data: UserInfoSeralizer, params: RequestParams = {}) =>
|
|
3928
|
-
this.request<UserPartialUpdateData, any>({
|
|
3929
|
-
path: `/user/`,
|
|
3930
|
-
method: "PATCH",
|
|
3931
|
-
body: data,
|
|
3932
|
-
secure: true,
|
|
3933
|
-
type: ContentType.Json,
|
|
3934
|
-
format: "json",
|
|
3935
|
-
...params,
|
|
3936
|
-
}),
|
|
3937
|
-
|
|
3938
|
-
/**
|
|
3939
|
-
* No description
|
|
3940
|
-
*
|
|
3941
|
-
* @tags user
|
|
3942
|
-
* @name UserAccountList
|
|
3943
|
-
* @request GET:/user/account/
|
|
3944
|
-
* @secure
|
|
3945
|
-
*/
|
|
3946
|
-
userAccountList: (params: RequestParams = {}) =>
|
|
3947
|
-
this.request<UserAccountListData, any>({
|
|
3948
|
-
path: `/user/account/`,
|
|
3949
|
-
method: "GET",
|
|
3950
|
-
secure: true,
|
|
3951
|
-
...params,
|
|
3952
|
-
}),
|
|
3953
|
-
|
|
3954
|
-
/**
|
|
3955
|
-
* @description ### Endpoint for validating a specific session id using a valid Rehive user session
|
|
3956
|
-
*
|
|
3957
|
-
* @tags user
|
|
3958
|
-
* @name UserAnchorSessionsValidateCreate
|
|
3959
|
-
* @request POST:/user/anchor/sessions/{session_id}/validate/
|
|
3960
|
-
* @secure
|
|
3961
|
-
*/
|
|
3962
|
-
userAnchorSessionsValidateCreate: (
|
|
3963
|
-
sessionId: string,
|
|
3964
|
-
data: AnchorAccountValidate,
|
|
3965
|
-
params: RequestParams = {},
|
|
3966
|
-
) =>
|
|
3967
|
-
this.request<UserAnchorSessionsValidateCreateData, any>({
|
|
3968
|
-
path: `/user/anchor/sessions/${sessionId}/validate/`,
|
|
3969
|
-
method: "POST",
|
|
3970
|
-
body: data,
|
|
3971
|
-
secure: true,
|
|
3972
|
-
type: ContentType.Json,
|
|
3973
|
-
format: "json",
|
|
3974
|
-
...params,
|
|
3975
|
-
}),
|
|
3976
|
-
|
|
3977
|
-
/**
|
|
3978
|
-
* @description ### Endpoint for validating a specific session id using a valid Rehive user session
|
|
3979
|
-
*
|
|
3980
|
-
* @tags user
|
|
3981
|
-
* @name UserAnchorSessionsValidateAccountCreate
|
|
3982
|
-
* @request POST:/user/anchor/sessions/{session_id}/validate_account/
|
|
3983
|
-
* @secure
|
|
3984
|
-
*/
|
|
3985
|
-
userAnchorSessionsValidateAccountCreate: (
|
|
3986
|
-
sessionId: string,
|
|
3987
|
-
data: AnchorAccountValidate,
|
|
3988
|
-
params: RequestParams = {},
|
|
3989
|
-
) =>
|
|
3990
|
-
this.request<UserAnchorSessionsValidateAccountCreateData, any>({
|
|
3991
|
-
path: `/user/anchor/sessions/${sessionId}/validate_account/`,
|
|
3992
|
-
method: "POST",
|
|
3993
|
-
body: data,
|
|
3994
|
-
secure: true,
|
|
3995
|
-
type: ContentType.Json,
|
|
3996
|
-
format: "json",
|
|
3997
|
-
...params,
|
|
3998
|
-
}),
|
|
3999
|
-
|
|
4000
|
-
/**
|
|
4001
|
-
* @description ### Endpoint for validating a specific session id using a valid Rehive user session
|
|
4002
|
-
*
|
|
4003
|
-
* @tags user
|
|
4004
|
-
* @name UserAnchorSessionsValidateSessionCreate
|
|
4005
|
-
* @request POST:/user/anchor/sessions/{session_id}/validate_session/
|
|
4006
|
-
* @secure
|
|
4007
|
-
*/
|
|
4008
|
-
userAnchorSessionsValidateSessionCreate: (
|
|
4009
|
-
sessionId: string,
|
|
4010
|
-
data: AnchorSessionValidate,
|
|
4011
|
-
params: RequestParams = {},
|
|
4012
|
-
) =>
|
|
4013
|
-
this.request<UserAnchorSessionsValidateSessionCreateData, any>({
|
|
4014
|
-
path: `/user/anchor/sessions/${sessionId}/validate_session/`,
|
|
4015
|
-
method: "POST",
|
|
4016
|
-
body: data,
|
|
4017
|
-
secure: true,
|
|
4018
|
-
type: ContentType.Json,
|
|
4019
|
-
format: "json",
|
|
4020
|
-
...params,
|
|
4021
|
-
}),
|
|
4022
|
-
|
|
4023
|
-
/**
|
|
4024
|
-
* @description ### Endpoint for viewing all user SEP-10 sessions
|
|
4025
|
-
*
|
|
4026
|
-
* @tags user
|
|
4027
|
-
* @name UserAnchorTransactionsList
|
|
4028
|
-
* @request GET:/user/anchor/transactions/
|
|
4029
|
-
* @secure
|
|
4030
|
-
*/
|
|
4031
|
-
userAnchorTransactionsList: (params: RequestParams = {}) =>
|
|
4032
|
-
this.request<UserAnchorTransactionsListData, any>({
|
|
4033
|
-
path: `/user/anchor/transactions/`,
|
|
4034
|
-
method: "GET",
|
|
4035
|
-
secure: true,
|
|
4036
|
-
format: "json",
|
|
4037
|
-
...params,
|
|
4038
|
-
}),
|
|
4039
|
-
|
|
4040
|
-
/**
|
|
4041
|
-
* @description ### Endpoint for viewing all user SEP-10 sessions
|
|
4042
|
-
*
|
|
4043
|
-
* @tags user
|
|
4044
|
-
* @name UserAnchorTransactionsRead
|
|
4045
|
-
* @request GET:/user/anchor/transactions/{transaction_id}/
|
|
4046
|
-
* @secure
|
|
4047
|
-
*/
|
|
4048
|
-
userAnchorTransactionsRead: (
|
|
4049
|
-
transactionId: string,
|
|
4050
|
-
params: RequestParams = {},
|
|
4051
|
-
) =>
|
|
4052
|
-
this.request<UserAnchorTransactionsReadData, any>({
|
|
4053
|
-
path: `/user/anchor/transactions/${transactionId}/`,
|
|
4054
|
-
method: "GET",
|
|
4055
|
-
secure: true,
|
|
4056
|
-
format: "json",
|
|
4057
|
-
...params,
|
|
4058
|
-
}),
|
|
4059
|
-
|
|
4060
|
-
/**
|
|
4061
|
-
* @description ### Endpoint for viewing all user SEP-10 sessions
|
|
4062
|
-
*
|
|
4063
|
-
* @tags user
|
|
4064
|
-
* @name UserAnchorTransactionsCreate
|
|
4065
|
-
* @request POST:/user/anchor/transactions/{transaction_id}/
|
|
4066
|
-
* @secure
|
|
4067
|
-
*/
|
|
4068
|
-
userAnchorTransactionsCreate: (
|
|
4069
|
-
transactionId: string,
|
|
4070
|
-
data: UserSEP24Transaction,
|
|
4071
|
-
params: RequestParams = {},
|
|
4072
|
-
) =>
|
|
4073
|
-
this.request<UserAnchorTransactionsCreateData, any>({
|
|
4074
|
-
path: `/user/anchor/transactions/${transactionId}/`,
|
|
4075
|
-
method: "POST",
|
|
4076
|
-
body: data,
|
|
4077
|
-
secure: true,
|
|
4078
|
-
type: ContentType.Json,
|
|
4079
|
-
format: "json",
|
|
4080
|
-
...params,
|
|
4081
|
-
}),
|
|
4082
|
-
|
|
4083
|
-
/**
|
|
4084
|
-
* @description ### Endpoint for viewing all user SEP-10 sessions
|
|
4085
|
-
*
|
|
4086
|
-
* @tags user
|
|
4087
|
-
* @name UserAnchorTransactionsPartialUpdate
|
|
4088
|
-
* @request PATCH:/user/anchor/transactions/{transaction_id}/
|
|
4089
|
-
* @secure
|
|
4090
|
-
*/
|
|
4091
|
-
userAnchorTransactionsPartialUpdate: (
|
|
4092
|
-
transactionId: string,
|
|
4093
|
-
data: UserSEP24Transaction,
|
|
4094
|
-
params: RequestParams = {},
|
|
4095
|
-
) =>
|
|
4096
|
-
this.request<UserAnchorTransactionsPartialUpdateData, any>({
|
|
4097
|
-
path: `/user/anchor/transactions/${transactionId}/`,
|
|
4098
|
-
method: "PATCH",
|
|
4099
|
-
body: data,
|
|
4100
|
-
secure: true,
|
|
4101
|
-
type: ContentType.Json,
|
|
4102
|
-
format: "json",
|
|
4103
|
-
...params,
|
|
4104
|
-
}),
|
|
4105
|
-
|
|
4106
|
-
/**
|
|
4107
|
-
* @description ### Endpoint for generating a new unvalidated authentication session using a SEP 10 JWT
|
|
4108
|
-
*
|
|
4109
|
-
* @tags user
|
|
4110
|
-
* @name UserAnchorAuthCreate
|
|
4111
|
-
* @request POST:/user/anchor/{company_id}/auth/
|
|
4112
|
-
* @secure
|
|
4113
|
-
*/
|
|
4114
|
-
userAnchorAuthCreate: (companyId: string, params: RequestParams = {}) =>
|
|
4115
|
-
this.request<UserAnchorAuthCreateData, any>({
|
|
4116
|
-
path: `/user/anchor/${companyId}/auth/`,
|
|
4117
|
-
method: "POST",
|
|
4118
|
-
secure: true,
|
|
4119
|
-
...params,
|
|
4120
|
-
}),
|
|
4121
|
-
|
|
4122
|
-
/**
|
|
4123
|
-
* No description
|
|
4124
|
-
*
|
|
4125
|
-
* @tags user
|
|
4126
|
-
* @name UserKnownPublicAddressesList
|
|
4127
|
-
* @request GET:/user/known-public-addresses/
|
|
4128
|
-
* @secure
|
|
4129
|
-
*/
|
|
4130
|
-
userKnownPublicAddressesList: (params: RequestParams = {}) =>
|
|
4131
|
-
this.request<UserKnownPublicAddressesListData, any>({
|
|
4132
|
-
path: `/user/known-public-addresses/`,
|
|
4133
|
-
method: "GET",
|
|
4134
|
-
secure: true,
|
|
4135
|
-
format: "json",
|
|
4136
|
-
...params,
|
|
4137
|
-
}),
|
|
4138
|
-
|
|
4139
|
-
/**
|
|
4140
|
-
* No description
|
|
4141
|
-
*
|
|
4142
|
-
* @tags user
|
|
4143
|
-
* @name UserMemosList
|
|
4144
|
-
* @request GET:/user/memos/
|
|
4145
|
-
* @secure
|
|
4146
|
-
*/
|
|
4147
|
-
userMemosList: (params: RequestParams = {}) =>
|
|
4148
|
-
this.request<UserMemosListData, any>({
|
|
4149
|
-
path: `/user/memos/`,
|
|
4150
|
-
method: "GET",
|
|
4151
|
-
secure: true,
|
|
4152
|
-
format: "json",
|
|
4153
|
-
...params,
|
|
4154
|
-
}),
|
|
4155
|
-
|
|
4156
|
-
/**
|
|
4157
|
-
* No description
|
|
4158
|
-
*
|
|
4159
|
-
* @tags user
|
|
4160
|
-
* @name UserMemosCreate
|
|
4161
|
-
* @request POST:/user/memos/
|
|
4162
|
-
* @secure
|
|
4163
|
-
*/
|
|
4164
|
-
userMemosCreate: (data: UserMemo, params: RequestParams = {}) =>
|
|
4165
|
-
this.request<UserMemosCreateData, any>({
|
|
4166
|
-
path: `/user/memos/`,
|
|
4167
|
-
method: "POST",
|
|
4168
|
-
body: data,
|
|
4169
|
-
secure: true,
|
|
4170
|
-
type: ContentType.Json,
|
|
4171
|
-
format: "json",
|
|
4172
|
-
...params,
|
|
4173
|
-
}),
|
|
4174
|
-
|
|
4175
|
-
/**
|
|
4176
|
-
* @description Create the send transaction on Rehive, and/or on the stellar blockchain. When the an email address, the transaction will be handled off-chain, only on the rehive ledger. When sent to a stellar address, the transaction is created on Rehive. Rehive then sends a webhook to the /hooks/debit/ endpoint and a blockchain transaction is created and broadcasted.
|
|
4177
|
-
*
|
|
4178
|
-
* @tags user
|
|
4179
|
-
* @name UserTransactionsSendCreate
|
|
4180
|
-
* @request POST:/user/transactions/send/
|
|
4181
|
-
* @secure
|
|
4182
|
-
*/
|
|
4183
|
-
userTransactionsSendCreate: (
|
|
4184
|
-
data: SendTransaction,
|
|
4185
|
-
params: RequestParams = {},
|
|
4186
|
-
) =>
|
|
4187
|
-
this.request<UserTransactionsSendCreateData, any>({
|
|
4188
|
-
path: `/user/transactions/send/`,
|
|
4189
|
-
method: "POST",
|
|
4190
|
-
body: data,
|
|
4191
|
-
secure: true,
|
|
4192
|
-
type: ContentType.Json,
|
|
4193
|
-
format: "json",
|
|
4194
|
-
...params,
|
|
4195
|
-
}),
|
|
4196
|
-
|
|
4197
|
-
/**
|
|
4198
|
-
* No description
|
|
4199
|
-
*
|
|
4200
|
-
* @tags user
|
|
4201
|
-
* @name UserUsernameSetCreate
|
|
4202
|
-
* @request POST:/user/username/set/
|
|
4203
|
-
* @secure
|
|
4204
|
-
*/
|
|
4205
|
-
userUsernameSetCreate: (
|
|
4206
|
-
data: SetUsernameMemo,
|
|
4207
|
-
params: RequestParams = {},
|
|
4208
|
-
) =>
|
|
4209
|
-
this.request<UserUsernameSetCreateData, any>({
|
|
4210
|
-
path: `/user/username/set/`,
|
|
4211
|
-
method: "POST",
|
|
4212
|
-
body: data,
|
|
4213
|
-
secure: true,
|
|
4214
|
-
type: ContentType.Json,
|
|
4215
|
-
format: "json",
|
|
4216
|
-
...params,
|
|
4217
|
-
}),
|
|
4218
|
-
};
|
|
4219
|
-
}
|