rehive 3.1.4 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +211 -506
- package/dist/admin.d.mts +31284 -0
- package/dist/admin.d.ts +31284 -0
- package/dist/admin.js +1 -0
- package/dist/admin.mjs +1 -0
- package/dist/auth.d.mts +23 -0
- package/dist/auth.d.ts +23 -0
- package/dist/auth.js +1 -0
- package/dist/auth.mjs +1 -0
- package/dist/chunk-53JJUQ4V.js +1 -0
- package/dist/chunk-5MRX4DHT.js +1 -0
- package/dist/chunk-7WWCXCY2.mjs +1 -0
- package/dist/chunk-HF5XDXOU.mjs +1 -0
- package/dist/chunk-NFN3B6SG.mjs +1 -0
- package/dist/chunk-OEIQFP6T.js +1 -0
- package/dist/chunk-Q2ZX3WFY.mjs +7 -0
- package/dist/chunk-QWQ6ZENI.js +1 -0
- package/dist/chunk-RKDIBDG6.js +7 -0
- package/dist/chunk-S4QKN5WW.mjs +1 -0
- package/dist/chunk-UYUMXTPF.js +7 -0
- package/dist/chunk-V277OEVY.mjs +7 -0
- package/dist/create-api-client-BMeX50D6.d.ts +25 -0
- package/dist/create-api-client-BrsH1l8c.d.mts +25 -0
- package/dist/create-auth-UTklIOTc.d.mts +18340 -0
- package/dist/create-auth-UTklIOTc.d.ts +18340 -0
- package/dist/extensions/alchemy.d.mts +1114 -0
- package/dist/extensions/alchemy.d.ts +1114 -0
- package/dist/extensions/alchemy.js +7 -0
- package/dist/extensions/alchemy.mjs +7 -0
- package/dist/extensions/app.d.mts +2042 -0
- package/dist/extensions/app.d.ts +2042 -0
- package/dist/extensions/app.js +7 -0
- package/dist/extensions/app.mjs +7 -0
- package/dist/extensions/billing.d.mts +828 -0
- package/dist/extensions/billing.d.ts +828 -0
- package/dist/extensions/billing.js +7 -0
- package/dist/extensions/billing.mjs +7 -0
- package/dist/extensions/bridge.d.mts +2028 -0
- package/dist/extensions/bridge.d.ts +2028 -0
- package/dist/extensions/bridge.js +7 -0
- package/dist/extensions/bridge.mjs +7 -0
- package/dist/extensions/builder.d.mts +542 -0
- package/dist/extensions/builder.d.ts +542 -0
- package/dist/extensions/builder.js +7 -0
- package/dist/extensions/builder.mjs +7 -0
- package/dist/extensions/business.d.mts +8972 -0
- package/dist/extensions/business.d.ts +8972 -0
- package/dist/extensions/business.js +7 -0
- package/dist/extensions/business.mjs +7 -0
- package/dist/extensions/conversion.d.mts +2786 -0
- package/dist/extensions/conversion.d.ts +2786 -0
- package/dist/extensions/conversion.js +7 -0
- package/dist/extensions/conversion.mjs +7 -0
- package/dist/extensions/mass-send.d.mts +1294 -0
- package/dist/extensions/mass-send.d.ts +1294 -0
- package/dist/extensions/mass-send.js +7 -0
- package/dist/extensions/mass-send.mjs +7 -0
- package/dist/extensions/notifications.d.mts +2035 -0
- package/dist/extensions/notifications.d.ts +2035 -0
- package/dist/extensions/notifications.js +7 -0
- package/dist/extensions/notifications.mjs +7 -0
- package/dist/extensions/payment-requests.d.mts +3746 -0
- package/dist/extensions/payment-requests.d.ts +3746 -0
- package/dist/extensions/payment-requests.js +7 -0
- package/dist/extensions/payment-requests.mjs +7 -0
- package/dist/extensions/products.d.mts +10092 -0
- package/dist/extensions/products.d.ts +10092 -0
- package/dist/extensions/products.js +7 -0
- package/dist/extensions/products.mjs +7 -0
- package/dist/extensions/rain.d.mts +1896 -0
- package/dist/extensions/rain.d.ts +1896 -0
- package/dist/extensions/rain.js +7 -0
- package/dist/extensions/rain.mjs +7 -0
- package/dist/extensions/rewards.d.mts +2038 -0
- package/dist/extensions/rewards.d.ts +2038 -0
- package/dist/extensions/rewards.js +7 -0
- package/dist/extensions/rewards.mjs +7 -0
- package/dist/extensions/stellar-testnet.d.mts +3922 -0
- package/dist/extensions/stellar-testnet.d.ts +3922 -0
- package/dist/extensions/stellar-testnet.js +7 -0
- package/dist/extensions/stellar-testnet.mjs +7 -0
- package/dist/extensions/stellar.d.mts +3922 -0
- package/dist/extensions/stellar.d.ts +3922 -0
- package/dist/extensions/stellar.js +7 -0
- package/dist/extensions/stellar.mjs +7 -0
- package/dist/index.d.mts +6 -61050
- package/dist/index.d.ts +6 -61050
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +8 -61087
- package/dist/react.d.ts +8 -61087
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +1347 -0
- package/dist/user.d.ts +1347 -0
- package/dist/user.js +1 -0
- package/dist/user.mjs +1 -0
- package/package.json +99 -32
- package/src/auth/core/storage-adapters.ts +58 -0
- package/src/auth/create-auth.ts +563 -0
- package/src/auth/index.ts +4 -0
- package/src/auth/types/index.ts +28 -0
- package/src/extensions/alchemy/create-api.ts +13 -0
- package/src/extensions/alchemy/index.ts +3 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/alchemy/openapi-ts/client/index.ts +25 -0
- package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/alchemy/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/alchemy/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/alchemy/openapi-ts/index.ts +4 -0
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +179 -0
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +851 -0
- package/src/extensions/app/create-api.ts +13 -0
- package/src/extensions/app/index.ts +3 -0
- package/src/extensions/app/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/app/openapi-ts/client/index.ts +25 -0
- package/src/extensions/app/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/app/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/app/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/app/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/app/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/app/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/app/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/app/openapi-ts/index.ts +4 -0
- package/src/extensions/app/openapi-ts/sdk.gen.ts +539 -0
- package/src/extensions/app/openapi-ts/types.gen.ts +1702 -0
- package/src/extensions/billing/create-api.ts +13 -0
- package/src/extensions/billing/index.ts +3 -0
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/billing/openapi-ts/client/index.ts +25 -0
- package/src/extensions/billing/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/billing/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/billing/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/billing/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/billing/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/billing/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/billing/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/billing/openapi-ts/index.ts +4 -0
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +155 -0
- package/src/extensions/billing/openapi-ts/types.gen.ts +508 -0
- package/src/extensions/bridge/create-api.ts +13 -0
- package/src/extensions/bridge/index.ts +3 -0
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/bridge/openapi-ts/client/index.ts +25 -0
- package/src/extensions/bridge/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/bridge/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/bridge/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/bridge/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/bridge/openapi-ts/index.ts +4 -0
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +383 -0
- package/src/extensions/bridge/openapi-ts/types.gen.ts +1855 -0
- package/src/extensions/builder/create-api.ts +13 -0
- package/src/extensions/builder/index.ts +3 -0
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/builder/openapi-ts/client/index.ts +25 -0
- package/src/extensions/builder/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/builder/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/builder/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/builder/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/builder/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/builder/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/builder/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/builder/openapi-ts/index.ts +4 -0
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +60 -0
- package/src/extensions/builder/openapi-ts/types.gen.ts +215 -0
- package/src/extensions/business/create-api.ts +13 -0
- package/src/extensions/business/index.ts +3 -0
- package/src/extensions/business/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/business/openapi-ts/client/index.ts +25 -0
- package/src/extensions/business/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/business/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/business/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/business/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/business/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/business/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/business/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/business/openapi-ts/index.ts +4 -0
- package/src/extensions/business/openapi-ts/sdk.gen.ts +903 -0
- package/src/extensions/business/openapi-ts/types.gen.ts +8718 -0
- package/src/extensions/conversion/create-api.ts +13 -0
- package/src/extensions/conversion/index.ts +3 -0
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/conversion/openapi-ts/client/index.ts +25 -0
- package/src/extensions/conversion/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/conversion/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/conversion/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/conversion/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/conversion/openapi-ts/index.ts +4 -0
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +684 -0
- package/src/extensions/conversion/openapi-ts/types.gen.ts +2467 -0
- package/src/extensions/mass-send/create-api.ts +13 -0
- package/src/extensions/mass-send/index.ts +3 -0
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/mass-send/openapi-ts/client/index.ts +25 -0
- package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/mass-send/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/mass-send/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/mass-send/openapi-ts/index.ts +4 -0
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +270 -0
- package/src/extensions/mass-send/openapi-ts/types.gen.ts +988 -0
- package/src/extensions/notifications/create-api.ts +13 -0
- package/src/extensions/notifications/index.ts +3 -0
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/notifications/openapi-ts/client/index.ts +25 -0
- package/src/extensions/notifications/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/notifications/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/notifications/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/notifications/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/notifications/openapi-ts/index.ts +4 -0
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +450 -0
- package/src/extensions/notifications/openapi-ts/types.gen.ts +1732 -0
- package/src/extensions/payment-requests/create-api.ts +13 -0
- package/src/extensions/payment-requests/index.ts +3 -0
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +25 -0
- package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/payment-requests/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/payment-requests/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/payment-requests/openapi-ts/index.ts +4 -0
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +845 -0
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +3415 -0
- package/src/extensions/products/create-api.ts +13 -0
- package/src/extensions/products/index.ts +3 -0
- package/src/extensions/products/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/products/openapi-ts/client/index.ts +25 -0
- package/src/extensions/products/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/products/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/products/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/products/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/products/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/products/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/products/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/products/openapi-ts/index.ts +4 -0
- package/src/extensions/products/openapi-ts/sdk.gen.ts +2619 -0
- package/src/extensions/products/openapi-ts/types.gen.ts +9717 -0
- package/src/extensions/rain/create-api.ts +13 -0
- package/src/extensions/rain/index.ts +3 -0
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rain/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rain/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rain/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rain/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rain/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rain/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rain/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rain/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rain/openapi-ts/index.ts +4 -0
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +227 -0
- package/src/extensions/rain/openapi-ts/types.gen.ts +1660 -0
- package/src/extensions/rewards/create-api.ts +13 -0
- package/src/extensions/rewards/index.ts +3 -0
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/rewards/openapi-ts/client/index.ts +25 -0
- package/src/extensions/rewards/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/rewards/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/rewards/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/rewards/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/rewards/openapi-ts/index.ts +4 -0
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +345 -0
- package/src/extensions/rewards/openapi-ts/types.gen.ts +1718 -0
- package/src/extensions/stellar/create-api.ts +13 -0
- package/src/extensions/stellar/index.ts +3 -0
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar/openapi-ts/types.gen.ts +3543 -0
- package/src/extensions/stellar-testnet/create-api.ts +13 -0
- package/src/extensions/stellar-testnet/index.ts +3 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +288 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +25 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +213 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +41 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +169 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/stellar-testnet/openapi-ts/index.ts +4 -0
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +1049 -0
- package/src/extensions/stellar-testnet/openapi-ts/types.gen.ts +3543 -0
- package/src/platform/admin/create-api.ts +11 -0
- package/src/platform/admin/index.ts +3 -42
- package/src/platform/admin/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/admin/openapi-ts/client/index.ts +25 -0
- package/src/platform/admin/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/admin/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/admin/openapi-ts/client.gen.ts +16 -0
- package/src/platform/admin/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/admin/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/admin/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/admin/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/admin/openapi-ts/index.ts +4 -0
- package/src/platform/admin/openapi-ts/sdk.gen.ts +3975 -0
- package/src/platform/admin/openapi-ts/types.gen.ts +31193 -0
- package/src/platform/user/create-api.ts +11 -0
- package/src/platform/user/index.ts +3 -42
- package/src/platform/user/openapi-ts/client/client.gen.ts +288 -0
- package/src/platform/user/openapi-ts/client/index.ts +25 -0
- package/src/platform/user/openapi-ts/client/types.gen.ts +213 -0
- package/src/platform/user/openapi-ts/client/utils.gen.ts +316 -0
- package/src/platform/user/openapi-ts/client.gen.ts +16 -0
- package/src/platform/user/openapi-ts/core/auth.gen.ts +41 -0
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +84 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +169 -0
- package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/platform/user/openapi-ts/core/serverSentEvents.gen.ts +243 -0
- package/src/platform/user/openapi-ts/core/types.gen.ts +104 -0
- package/src/platform/user/openapi-ts/core/utils.gen.ts +140 -0
- package/src/platform/user/openapi-ts/index.ts +4 -0
- package/src/platform/user/openapi-ts/sdk.gen.ts +2090 -0
- package/src/platform/user/openapi-ts/types.gen.ts +19540 -0
- package/src/shared/api-utils.ts +22 -0
- package/src/shared/bind-sdk.ts +48 -0
- package/src/shared/create-api-client.ts +54 -0
- package/src/extensions/app/http-client.ts +0 -1
- package/src/extensions/app/rehive-app-api.ts +0 -1827
- package/src/extensions/bridge/rehive-bridge-api.ts +0 -1436
- package/src/extensions/business/rehive-business-api.ts +0 -9480
- package/src/extensions/conversion/rehive-conversion-api.ts +0 -3054
- package/src/extensions/mass-send/rehive-mass-send-api.ts +0 -1061
- package/src/extensions/notifications/rehive-notifications-api.ts +0 -1964
- package/src/extensions/payment-requests/rehive-payment-requests-api.ts +0 -4026
- package/src/extensions/products/rehive-products-api.ts +0 -13107
- package/src/extensions/rewards/rehive-rewards-api.ts +0 -2139
- package/src/extensions/stellar/rehive-stellar-api.ts +0 -4219
- package/src/extensions/stellar-testnet/rehive-stellar-testnet-api.ts +0 -4219
- package/src/platform/admin/rehive-platform-admin-api.ts +0 -35075
- package/src/platform/user/rehive-platform-user-api.ts +0 -21554
|
@@ -1,1964 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
/*
|
|
5
|
-
* ---------------------------------------------------------------
|
|
6
|
-
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
-
* ## ##
|
|
8
|
-
* ## AUTHOR: acacode ##
|
|
9
|
-
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
-
* ---------------------------------------------------------------
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/** This serializer can be used if only a `status` is required in the response. */
|
|
14
|
-
export interface ActionResponse {
|
|
15
|
-
/** @default "sucess" */
|
|
16
|
-
status?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Serialize the activation data, should be a token that represents an admin
|
|
21
|
-
* user.
|
|
22
|
-
*/
|
|
23
|
-
export interface Activate {
|
|
24
|
-
token: string;
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
system_email: string;
|
|
28
|
-
/** @format uuid */
|
|
29
|
-
secret: string;
|
|
30
|
-
push_enabled: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** Serialize company, update and delete. */
|
|
34
|
-
export interface AdminCompany {
|
|
35
|
-
id: string;
|
|
36
|
-
/** @format uuid */
|
|
37
|
-
secret: string;
|
|
38
|
-
push_enabled?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* * `test` - Test
|
|
41
|
-
* * `production` - Production
|
|
42
|
-
*/
|
|
43
|
-
mode: "test" | "production";
|
|
44
|
-
quotas: Quotas;
|
|
45
|
-
/** @maxLength 50 */
|
|
46
|
-
bimi_selector_header?: string | null;
|
|
47
|
-
/** @maxLength 100 */
|
|
48
|
-
name?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* @format uri
|
|
51
|
-
* @maxLength 200
|
|
52
|
-
*/
|
|
53
|
-
website?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* @format email
|
|
56
|
-
* @maxLength 254
|
|
57
|
-
*/
|
|
58
|
-
system_email?: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* @format email
|
|
61
|
-
* @maxLength 254
|
|
62
|
-
*/
|
|
63
|
-
support_email?: string | null;
|
|
64
|
-
/**
|
|
65
|
-
* @format email
|
|
66
|
-
* @maxLength 254
|
|
67
|
-
*/
|
|
68
|
-
contact_email?: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* @format uri
|
|
71
|
-
* @maxLength 512
|
|
72
|
-
*/
|
|
73
|
-
logo?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* @format uri
|
|
76
|
-
* @maxLength 512
|
|
77
|
-
*/
|
|
78
|
-
icon?: string | null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface AdminCompanyResponse {
|
|
82
|
-
/** @example "success" */
|
|
83
|
-
status?: string;
|
|
84
|
-
/** Serialize company, update and delete. */
|
|
85
|
-
data?: AdminCompany;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** Serialize notifications, create, update and delete. */
|
|
89
|
-
export interface AdminCreateUpdateNotification {
|
|
90
|
-
id: number;
|
|
91
|
-
/**
|
|
92
|
-
* * `email` - email
|
|
93
|
-
* * `sms` - sms
|
|
94
|
-
* * `push` - push
|
|
95
|
-
*/
|
|
96
|
-
type?: "email" | "sms" | "push" | "" | null;
|
|
97
|
-
template?: string | null;
|
|
98
|
-
/** @maxLength 250 */
|
|
99
|
-
name: string;
|
|
100
|
-
/** @maxLength 250 */
|
|
101
|
-
subject?: string | null;
|
|
102
|
-
/** @maxLength 250 */
|
|
103
|
-
description?: string | null;
|
|
104
|
-
company: string;
|
|
105
|
-
html_message?: string | null;
|
|
106
|
-
text_message?: string | null;
|
|
107
|
-
/** @maxLength 300 */
|
|
108
|
-
sms_message?: string | null;
|
|
109
|
-
/** @maxLength 300 */
|
|
110
|
-
push_message?: string | null;
|
|
111
|
-
enabled?: boolean;
|
|
112
|
-
preference_enabled?: boolean;
|
|
113
|
-
event?: string | null;
|
|
114
|
-
/** @maxLength 150 */
|
|
115
|
-
to_email?: string | null;
|
|
116
|
-
/** @maxLength 150 */
|
|
117
|
-
to_mobile?: string | null;
|
|
118
|
-
/** @maxLength 150 */
|
|
119
|
-
to_user?: string | null;
|
|
120
|
-
/** @maxLength 250 */
|
|
121
|
-
expression?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
* @format email
|
|
124
|
-
* @maxLength 250
|
|
125
|
-
*/
|
|
126
|
-
from_email?: string | null;
|
|
127
|
-
layout?: string | null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/** Serialize notifications, create, update and delete. */
|
|
131
|
-
export interface AdminCredential {
|
|
132
|
-
id: number;
|
|
133
|
-
/**
|
|
134
|
-
* * `twilio` - twilio
|
|
135
|
-
* * `sendgrid` - sendgrid
|
|
136
|
-
*/
|
|
137
|
-
credential_type: "twilio" | "sendgrid";
|
|
138
|
-
credentials?: Record<string, any>;
|
|
139
|
-
created: number;
|
|
140
|
-
updated: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface AdminCredentialResponse {
|
|
144
|
-
/** @example "success" */
|
|
145
|
-
status?: string;
|
|
146
|
-
/** Serialize notifications, create, update and delete. */
|
|
147
|
-
data?: AdminCredential;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/** Serialize notification logs. */
|
|
151
|
-
export interface AdminLog {
|
|
152
|
-
id: number;
|
|
153
|
-
notification: string | null;
|
|
154
|
-
/**
|
|
155
|
-
* * `email` - email
|
|
156
|
-
* * `sms` - sms
|
|
157
|
-
* * `push` - push
|
|
158
|
-
*/
|
|
159
|
-
type: "email" | "sms" | "push";
|
|
160
|
-
user: string | null;
|
|
161
|
-
/** @maxLength 150 */
|
|
162
|
-
recipient: string;
|
|
163
|
-
text_message: string | null;
|
|
164
|
-
html_message: string | null;
|
|
165
|
-
sms_message: string | null;
|
|
166
|
-
push_message: string | null;
|
|
167
|
-
sent?: boolean;
|
|
168
|
-
error_message?: string | null;
|
|
169
|
-
created: number;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface AdminLogResponse {
|
|
173
|
-
/** @example "success" */
|
|
174
|
-
status?: string;
|
|
175
|
-
/** Serialize notification logs. */
|
|
176
|
-
data?: AdminLog;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/** Serialize log sending. */
|
|
180
|
-
export interface AdminLogSend {
|
|
181
|
-
recipient?: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/** Serialize notifications, create, update and delete. */
|
|
185
|
-
export interface AdminNotification {
|
|
186
|
-
id: number;
|
|
187
|
-
/**
|
|
188
|
-
* * `email` - email
|
|
189
|
-
* * `sms` - sms
|
|
190
|
-
* * `push` - push
|
|
191
|
-
*/
|
|
192
|
-
type: "email" | "sms" | "push";
|
|
193
|
-
template?: AdminReducedTemplate | null;
|
|
194
|
-
/** @maxLength 250 */
|
|
195
|
-
name: string;
|
|
196
|
-
/** @maxLength 250 */
|
|
197
|
-
subject?: string | null;
|
|
198
|
-
/** @maxLength 250 */
|
|
199
|
-
description?: string | null;
|
|
200
|
-
company: string;
|
|
201
|
-
html_message?: string | null;
|
|
202
|
-
text_message?: string | null;
|
|
203
|
-
/** @maxLength 300 */
|
|
204
|
-
sms_message?: string | null;
|
|
205
|
-
/** @maxLength 300 */
|
|
206
|
-
push_message?: string | null;
|
|
207
|
-
enabled?: boolean;
|
|
208
|
-
preference_enabled?: boolean;
|
|
209
|
-
event: string;
|
|
210
|
-
/** @maxLength 150 */
|
|
211
|
-
to_email?: string | null;
|
|
212
|
-
/** @maxLength 150 */
|
|
213
|
-
to_mobile?: string | null;
|
|
214
|
-
/** @maxLength 150 */
|
|
215
|
-
to_user?: string | null;
|
|
216
|
-
/** @maxLength 250 */
|
|
217
|
-
expression?: string | null;
|
|
218
|
-
/**
|
|
219
|
-
* @format email
|
|
220
|
-
* @maxLength 250
|
|
221
|
-
*/
|
|
222
|
-
from_email?: string | null;
|
|
223
|
-
/**
|
|
224
|
-
* A ModelSerializer that takes additional arguments for
|
|
225
|
-
* "fields", "omit" and "expand" in order to
|
|
226
|
-
* control which fields are displayed, and whether to replace simple
|
|
227
|
-
* values with complex, nested serializations
|
|
228
|
-
*/
|
|
229
|
-
layout?: ReducedNotificationLayout;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface AdminNotificationResponse {
|
|
233
|
-
/** @example "success" */
|
|
234
|
-
status?: string;
|
|
235
|
-
/** Serialize notifications, create, update and delete. */
|
|
236
|
-
data?: AdminNotification;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* A ModelSerializer that takes additional arguments for
|
|
241
|
-
* "fields", "omit" and "expand" in order to
|
|
242
|
-
* control which fields are displayed, and whether to replace simple
|
|
243
|
-
* values with complex, nested serializations
|
|
244
|
-
*/
|
|
245
|
-
export interface AdminReducedTemplate {
|
|
246
|
-
id: string;
|
|
247
|
-
default?: boolean;
|
|
248
|
-
deletable?: boolean;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/** Serialize templates. */
|
|
252
|
-
export interface AdminTemplate {
|
|
253
|
-
id: string;
|
|
254
|
-
/**
|
|
255
|
-
* * `email` - email
|
|
256
|
-
* * `sms` - sms
|
|
257
|
-
* * `push` - push
|
|
258
|
-
*/
|
|
259
|
-
type: "email" | "sms" | "push";
|
|
260
|
-
/** @maxLength 250 */
|
|
261
|
-
name: string;
|
|
262
|
-
/** @maxLength 250 */
|
|
263
|
-
subject: string;
|
|
264
|
-
/** @maxLength 250 */
|
|
265
|
-
description?: string | null;
|
|
266
|
-
html_message?: string | null;
|
|
267
|
-
text_message?: string | null;
|
|
268
|
-
/** @maxLength 300 */
|
|
269
|
-
sms_message?: string | null;
|
|
270
|
-
/** @maxLength 300 */
|
|
271
|
-
push_message?: string | null;
|
|
272
|
-
enabled?: boolean;
|
|
273
|
-
preference_enabled?: boolean;
|
|
274
|
-
event: string;
|
|
275
|
-
/** @maxLength 150 */
|
|
276
|
-
to_email?: string | null;
|
|
277
|
-
/** @maxLength 150 */
|
|
278
|
-
to_mobile?: string | null;
|
|
279
|
-
/** @maxLength 150 */
|
|
280
|
-
to_user?: string | null;
|
|
281
|
-
/** @maxLength 250 */
|
|
282
|
-
expression?: string | null;
|
|
283
|
-
layout: ReducedLayoutTemplate;
|
|
284
|
-
default?: boolean;
|
|
285
|
-
deletable?: boolean;
|
|
286
|
-
created: number;
|
|
287
|
-
updated: number;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export interface AdminTemplateResponse {
|
|
291
|
-
/** @example "success" */
|
|
292
|
-
status?: string;
|
|
293
|
-
/** Serialize templates. */
|
|
294
|
-
data?: AdminTemplate;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/** Trigger a notification. */
|
|
298
|
-
export interface AdminTriggerNotification {
|
|
299
|
-
data?: Record<string, any>;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Serialize the deactivation data, should be a token that represents an admin
|
|
304
|
-
* user.
|
|
305
|
-
*/
|
|
306
|
-
export interface Deactivate {
|
|
307
|
-
token: string;
|
|
308
|
-
/** @default false */
|
|
309
|
-
purge?: boolean;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* A ModelSerializer that takes additional arguments for
|
|
314
|
-
* "fields", "omit" and "expand" in order to
|
|
315
|
-
* control which fields are displayed, and whether to replace simple
|
|
316
|
-
* values with complex, nested serializations
|
|
317
|
-
*/
|
|
318
|
-
export interface LayoutTemplate {
|
|
319
|
-
id: string;
|
|
320
|
-
name: string;
|
|
321
|
-
description: string | null;
|
|
322
|
-
/**
|
|
323
|
-
* * `email` - email
|
|
324
|
-
* * `sms` - sms
|
|
325
|
-
* * `push` - push
|
|
326
|
-
*/
|
|
327
|
-
type: "email" | "sms" | "push";
|
|
328
|
-
html_layout: string | null;
|
|
329
|
-
text_layout: string | null;
|
|
330
|
-
sms_layout: string | null;
|
|
331
|
-
push_layout: string | null;
|
|
332
|
-
created: number;
|
|
333
|
-
updated: number;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export interface LayoutTemplateResponse {
|
|
337
|
-
/** @example "success" */
|
|
338
|
-
status?: string;
|
|
339
|
-
/**
|
|
340
|
-
* A ModelSerializer that takes additional arguments for
|
|
341
|
-
* "fields", "omit" and "expand" in order to
|
|
342
|
-
* control which fields are displayed, and whether to replace simple
|
|
343
|
-
* values with complex, nested serializations
|
|
344
|
-
*/
|
|
345
|
-
data?: LayoutTemplate;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* A ModelSerializer that takes additional arguments for
|
|
350
|
-
* "fields", "omit" and "expand" in order to
|
|
351
|
-
* control which fields are displayed, and whether to replace simple
|
|
352
|
-
* values with complex, nested serializations
|
|
353
|
-
*/
|
|
354
|
-
export interface NotificationLayout {
|
|
355
|
-
id: string;
|
|
356
|
-
/** @maxLength 30 */
|
|
357
|
-
name: string;
|
|
358
|
-
/** @maxLength 100 */
|
|
359
|
-
description?: string | null;
|
|
360
|
-
/**
|
|
361
|
-
* * `email` - email
|
|
362
|
-
* * `sms` - sms
|
|
363
|
-
* * `push` - push
|
|
364
|
-
*/
|
|
365
|
-
type: "email" | "sms" | "push";
|
|
366
|
-
html_layout?: string | null;
|
|
367
|
-
text_layout?: string | null;
|
|
368
|
-
sms_layout?: string | null;
|
|
369
|
-
push_layout?: string | null;
|
|
370
|
-
created: number;
|
|
371
|
-
updated: number;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export interface NotificationLayoutResponse {
|
|
375
|
-
/** @example "success" */
|
|
376
|
-
status?: string;
|
|
377
|
-
/**
|
|
378
|
-
* A ModelSerializer that takes additional arguments for
|
|
379
|
-
* "fields", "omit" and "expand" in order to
|
|
380
|
-
* control which fields are displayed, and whether to replace simple
|
|
381
|
-
* values with complex, nested serializations
|
|
382
|
-
*/
|
|
383
|
-
data?: NotificationLayout;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export interface PaginatedAdminCredentialList {
|
|
387
|
-
/** @example 123 */
|
|
388
|
-
count?: number;
|
|
389
|
-
/**
|
|
390
|
-
* @format uri
|
|
391
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
392
|
-
*/
|
|
393
|
-
next?: string | null;
|
|
394
|
-
/**
|
|
395
|
-
* @format uri
|
|
396
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
397
|
-
*/
|
|
398
|
-
previous?: string | null;
|
|
399
|
-
results?: AdminCredential[];
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export interface PaginatedAdminCredentialListResponse {
|
|
403
|
-
/** @example "success" */
|
|
404
|
-
status?: string;
|
|
405
|
-
data?: PaginatedAdminCredentialList;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export interface PaginatedAdminLogList {
|
|
409
|
-
/** @example 123 */
|
|
410
|
-
count?: number;
|
|
411
|
-
/**
|
|
412
|
-
* @format uri
|
|
413
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
414
|
-
*/
|
|
415
|
-
next?: string | null;
|
|
416
|
-
/**
|
|
417
|
-
* @format uri
|
|
418
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
419
|
-
*/
|
|
420
|
-
previous?: string | null;
|
|
421
|
-
results?: AdminLog[];
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export interface PaginatedAdminLogListResponse {
|
|
425
|
-
/** @example "success" */
|
|
426
|
-
status?: string;
|
|
427
|
-
data?: PaginatedAdminLogList;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
export interface PaginatedAdminNotificationList {
|
|
431
|
-
/** @example 123 */
|
|
432
|
-
count?: number;
|
|
433
|
-
/**
|
|
434
|
-
* @format uri
|
|
435
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
436
|
-
*/
|
|
437
|
-
next?: string | null;
|
|
438
|
-
/**
|
|
439
|
-
* @format uri
|
|
440
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
441
|
-
*/
|
|
442
|
-
previous?: string | null;
|
|
443
|
-
results?: AdminNotification[];
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface PaginatedAdminNotificationListResponse {
|
|
447
|
-
/** @example "success" */
|
|
448
|
-
status?: string;
|
|
449
|
-
data?: PaginatedAdminNotificationList;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
export interface PaginatedAdminTemplateList {
|
|
453
|
-
/** @example 123 */
|
|
454
|
-
count?: number;
|
|
455
|
-
/**
|
|
456
|
-
* @format uri
|
|
457
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
458
|
-
*/
|
|
459
|
-
next?: string | null;
|
|
460
|
-
/**
|
|
461
|
-
* @format uri
|
|
462
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
463
|
-
*/
|
|
464
|
-
previous?: string | null;
|
|
465
|
-
results?: AdminTemplate[];
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export interface PaginatedAdminTemplateListResponse {
|
|
469
|
-
/** @example "success" */
|
|
470
|
-
status?: string;
|
|
471
|
-
data?: PaginatedAdminTemplateList;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export interface PaginatedLayoutTemplateList {
|
|
475
|
-
/** @example 123 */
|
|
476
|
-
count?: number;
|
|
477
|
-
/**
|
|
478
|
-
* @format uri
|
|
479
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
480
|
-
*/
|
|
481
|
-
next?: string | null;
|
|
482
|
-
/**
|
|
483
|
-
* @format uri
|
|
484
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
485
|
-
*/
|
|
486
|
-
previous?: string | null;
|
|
487
|
-
results?: LayoutTemplate[];
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
export interface PaginatedLayoutTemplateListResponse {
|
|
491
|
-
/** @example "success" */
|
|
492
|
-
status?: string;
|
|
493
|
-
data?: PaginatedLayoutTemplateList;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export interface PaginatedNotificationLayoutList {
|
|
497
|
-
/** @example 123 */
|
|
498
|
-
count?: number;
|
|
499
|
-
/**
|
|
500
|
-
* @format uri
|
|
501
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
502
|
-
*/
|
|
503
|
-
next?: string | null;
|
|
504
|
-
/**
|
|
505
|
-
* @format uri
|
|
506
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
507
|
-
*/
|
|
508
|
-
previous?: string | null;
|
|
509
|
-
results?: NotificationLayout[];
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export interface PaginatedNotificationLayoutListResponse {
|
|
513
|
-
/** @example "success" */
|
|
514
|
-
status?: string;
|
|
515
|
-
data?: PaginatedNotificationLayoutList;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface PaginatedUserNotificationList {
|
|
519
|
-
/** @example 123 */
|
|
520
|
-
count?: number;
|
|
521
|
-
/**
|
|
522
|
-
* @format uri
|
|
523
|
-
* @example "http://api.example.org/accounts/?page=4"
|
|
524
|
-
*/
|
|
525
|
-
next?: string | null;
|
|
526
|
-
/**
|
|
527
|
-
* @format uri
|
|
528
|
-
* @example "http://api.example.org/accounts/?page=2"
|
|
529
|
-
*/
|
|
530
|
-
previous?: string | null;
|
|
531
|
-
results?: UserNotification[];
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export interface PaginatedUserNotificationListResponse {
|
|
535
|
-
/** @example "success" */
|
|
536
|
-
status?: string;
|
|
537
|
-
data?: PaginatedUserNotificationList;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/** Serialize company, update and delete. */
|
|
541
|
-
export interface PatchedAdminCompany {
|
|
542
|
-
id?: string;
|
|
543
|
-
/** @format uuid */
|
|
544
|
-
secret?: string;
|
|
545
|
-
push_enabled?: boolean;
|
|
546
|
-
/**
|
|
547
|
-
* * `test` - Test
|
|
548
|
-
* * `production` - Production
|
|
549
|
-
*/
|
|
550
|
-
mode?: "test" | "production";
|
|
551
|
-
quotas?: Quotas;
|
|
552
|
-
/** @maxLength 50 */
|
|
553
|
-
bimi_selector_header?: string | null;
|
|
554
|
-
/** @maxLength 100 */
|
|
555
|
-
name?: string | null;
|
|
556
|
-
/**
|
|
557
|
-
* @format uri
|
|
558
|
-
* @maxLength 200
|
|
559
|
-
*/
|
|
560
|
-
website?: string | null;
|
|
561
|
-
/**
|
|
562
|
-
* @format email
|
|
563
|
-
* @maxLength 254
|
|
564
|
-
*/
|
|
565
|
-
system_email?: string | null;
|
|
566
|
-
/**
|
|
567
|
-
* @format email
|
|
568
|
-
* @maxLength 254
|
|
569
|
-
*/
|
|
570
|
-
support_email?: string | null;
|
|
571
|
-
/**
|
|
572
|
-
* @format email
|
|
573
|
-
* @maxLength 254
|
|
574
|
-
*/
|
|
575
|
-
contact_email?: string | null;
|
|
576
|
-
/**
|
|
577
|
-
* @format uri
|
|
578
|
-
* @maxLength 512
|
|
579
|
-
*/
|
|
580
|
-
logo?: string | null;
|
|
581
|
-
/**
|
|
582
|
-
* @format uri
|
|
583
|
-
* @maxLength 512
|
|
584
|
-
*/
|
|
585
|
-
icon?: string | null;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/** Serialize notifications, create, update and delete. */
|
|
589
|
-
export interface PatchedAdminCreateUpdateNotification {
|
|
590
|
-
id?: number;
|
|
591
|
-
/**
|
|
592
|
-
* * `email` - email
|
|
593
|
-
* * `sms` - sms
|
|
594
|
-
* * `push` - push
|
|
595
|
-
*/
|
|
596
|
-
type?: "email" | "sms" | "push" | "" | null;
|
|
597
|
-
template?: string | null;
|
|
598
|
-
/** @maxLength 250 */
|
|
599
|
-
name?: string;
|
|
600
|
-
/** @maxLength 250 */
|
|
601
|
-
subject?: string | null;
|
|
602
|
-
/** @maxLength 250 */
|
|
603
|
-
description?: string | null;
|
|
604
|
-
company?: string;
|
|
605
|
-
html_message?: string | null;
|
|
606
|
-
text_message?: string | null;
|
|
607
|
-
/** @maxLength 300 */
|
|
608
|
-
sms_message?: string | null;
|
|
609
|
-
/** @maxLength 300 */
|
|
610
|
-
push_message?: string | null;
|
|
611
|
-
enabled?: boolean;
|
|
612
|
-
preference_enabled?: boolean;
|
|
613
|
-
event?: string | null;
|
|
614
|
-
/** @maxLength 150 */
|
|
615
|
-
to_email?: string | null;
|
|
616
|
-
/** @maxLength 150 */
|
|
617
|
-
to_mobile?: string | null;
|
|
618
|
-
/** @maxLength 150 */
|
|
619
|
-
to_user?: string | null;
|
|
620
|
-
/** @maxLength 250 */
|
|
621
|
-
expression?: string | null;
|
|
622
|
-
/**
|
|
623
|
-
* @format email
|
|
624
|
-
* @maxLength 250
|
|
625
|
-
*/
|
|
626
|
-
from_email?: string | null;
|
|
627
|
-
layout?: string | null;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/** Serialize notifications, create, update and delete. */
|
|
631
|
-
export interface PatchedAdminCredential {
|
|
632
|
-
id?: number;
|
|
633
|
-
/**
|
|
634
|
-
* * `twilio` - twilio
|
|
635
|
-
* * `sendgrid` - sendgrid
|
|
636
|
-
*/
|
|
637
|
-
credential_type?: "twilio" | "sendgrid";
|
|
638
|
-
credentials?: Record<string, any>;
|
|
639
|
-
created?: number;
|
|
640
|
-
updated?: number;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* A ModelSerializer that takes additional arguments for
|
|
645
|
-
* "fields", "omit" and "expand" in order to
|
|
646
|
-
* control which fields are displayed, and whether to replace simple
|
|
647
|
-
* values with complex, nested serializations
|
|
648
|
-
*/
|
|
649
|
-
export interface PatchedNotificationLayout {
|
|
650
|
-
id?: string;
|
|
651
|
-
/** @maxLength 30 */
|
|
652
|
-
name?: string;
|
|
653
|
-
/** @maxLength 100 */
|
|
654
|
-
description?: string | null;
|
|
655
|
-
/**
|
|
656
|
-
* * `email` - email
|
|
657
|
-
* * `sms` - sms
|
|
658
|
-
* * `push` - push
|
|
659
|
-
*/
|
|
660
|
-
type?: "email" | "sms" | "push";
|
|
661
|
-
html_layout?: string | null;
|
|
662
|
-
text_layout?: string | null;
|
|
663
|
-
sms_layout?: string | null;
|
|
664
|
-
push_layout?: string | null;
|
|
665
|
-
created?: number;
|
|
666
|
-
updated?: number;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Serialize notifications update. Actually updates the notification
|
|
671
|
-
* preference instead.
|
|
672
|
-
*/
|
|
673
|
-
export interface PatchedUserUpdateNotification {
|
|
674
|
-
enabled?: boolean;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface Quotas {
|
|
678
|
-
sms: number;
|
|
679
|
-
email: number;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* A ModelSerializer that takes additional arguments for
|
|
684
|
-
* "fields", "omit" and "expand" in order to
|
|
685
|
-
* control which fields are displayed, and whether to replace simple
|
|
686
|
-
* values with complex, nested serializations
|
|
687
|
-
*/
|
|
688
|
-
export interface ReducedLayoutTemplate {
|
|
689
|
-
id: string;
|
|
690
|
-
/** @maxLength 30 */
|
|
691
|
-
name: string;
|
|
692
|
-
/** @maxLength 100 */
|
|
693
|
-
description?: string | null;
|
|
694
|
-
created: number;
|
|
695
|
-
updated: number;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* A ModelSerializer that takes additional arguments for
|
|
700
|
-
* "fields", "omit" and "expand" in order to
|
|
701
|
-
* control which fields are displayed, and whether to replace simple
|
|
702
|
-
* values with complex, nested serializations
|
|
703
|
-
*/
|
|
704
|
-
export interface ReducedNotificationLayout {
|
|
705
|
-
id: string;
|
|
706
|
-
/** @maxLength 30 */
|
|
707
|
-
name: string;
|
|
708
|
-
/** @maxLength 100 */
|
|
709
|
-
description?: string | null;
|
|
710
|
-
created: number;
|
|
711
|
-
updated: number;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
/** Serialize notifications. */
|
|
715
|
-
export interface UserNotification {
|
|
716
|
-
id: number;
|
|
717
|
-
/** @maxLength 250 */
|
|
718
|
-
name: string;
|
|
719
|
-
/** @maxLength 250 */
|
|
720
|
-
description?: string | null;
|
|
721
|
-
event: string;
|
|
722
|
-
type: string;
|
|
723
|
-
enabled: boolean;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
export interface UserNotificationResponse {
|
|
727
|
-
/** @example "success" */
|
|
728
|
-
status?: string;
|
|
729
|
-
/** Serialize notifications. */
|
|
730
|
-
data?: UserNotification;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Serialize notifications update. Actually updates the notification
|
|
735
|
-
* preference instead.
|
|
736
|
-
*/
|
|
737
|
-
export interface UserUpdateNotification {
|
|
738
|
-
enabled: boolean;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Validate and serialize the webhook data. The secret key and company are
|
|
743
|
-
* used to identify a specific company.
|
|
744
|
-
*/
|
|
745
|
-
export interface Webhook {
|
|
746
|
-
id: string;
|
|
747
|
-
event: string;
|
|
748
|
-
company: string;
|
|
749
|
-
data: Record<string, any>;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export type ActivateCreateData = ActionResponse;
|
|
753
|
-
|
|
754
|
-
export type AdminCompanyRetrieveData = AdminCompanyResponse;
|
|
755
|
-
|
|
756
|
-
export type AdminCompanyUpdateData = AdminCompanyResponse;
|
|
757
|
-
|
|
758
|
-
export type AdminCompanyPartialUpdateData = AdminCompanyResponse;
|
|
759
|
-
|
|
760
|
-
export interface AdminCredentialsListParams {
|
|
761
|
-
/** A page number within the paginated result set. */
|
|
762
|
-
page?: number;
|
|
763
|
-
/** Number of results to return per page. */
|
|
764
|
-
page_size?: number;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export type AdminCredentialsListData = PaginatedAdminCredentialListResponse;
|
|
768
|
-
|
|
769
|
-
export type AdminCredentialsCreateData = AdminCredentialResponse;
|
|
770
|
-
|
|
771
|
-
export type AdminCredentialsRetrieveData = AdminCredentialResponse;
|
|
772
|
-
|
|
773
|
-
export type AdminCredentialsUpdateData = AdminCredentialResponse;
|
|
774
|
-
|
|
775
|
-
export type AdminCredentialsPartialUpdateData = AdminCredentialResponse;
|
|
776
|
-
|
|
777
|
-
export type AdminCredentialsDestroyData = AdminCredentialResponse;
|
|
778
|
-
|
|
779
|
-
export interface AdminLayoutTemplatesListParams {
|
|
780
|
-
name?: string;
|
|
781
|
-
/** A page number within the paginated result set. */
|
|
782
|
-
page?: number;
|
|
783
|
-
/** Number of results to return per page. */
|
|
784
|
-
page_size?: number;
|
|
785
|
-
type?: string;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export type AdminLayoutTemplatesListData = PaginatedLayoutTemplateListResponse;
|
|
789
|
-
|
|
790
|
-
export type AdminLayoutTemplatesRetrieveData = LayoutTemplateResponse;
|
|
791
|
-
|
|
792
|
-
export interface AdminLayoutsListParams {
|
|
793
|
-
name?: string;
|
|
794
|
-
/** A page number within the paginated result set. */
|
|
795
|
-
page?: number;
|
|
796
|
-
/** Number of results to return per page. */
|
|
797
|
-
page_size?: number;
|
|
798
|
-
type?: string;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
export type AdminLayoutsListData = PaginatedNotificationLayoutListResponse;
|
|
802
|
-
|
|
803
|
-
export type AdminLayoutsCreateData = NotificationLayoutResponse;
|
|
804
|
-
|
|
805
|
-
export type AdminLayoutsRetrieveData = NotificationLayoutResponse;
|
|
806
|
-
|
|
807
|
-
export type AdminLayoutsUpdateData = NotificationLayoutResponse;
|
|
808
|
-
|
|
809
|
-
export type AdminLayoutsPartialUpdateData = NotificationLayoutResponse;
|
|
810
|
-
|
|
811
|
-
export type AdminLayoutsDestroyData = NotificationLayoutResponse;
|
|
812
|
-
|
|
813
|
-
export interface AdminLogsListParams {
|
|
814
|
-
/** @format date-time */
|
|
815
|
-
created__gt?: string;
|
|
816
|
-
/** @format date-time */
|
|
817
|
-
created__lt?: string;
|
|
818
|
-
notification?: string;
|
|
819
|
-
notification__name?: string;
|
|
820
|
-
notification__name__contains?: string;
|
|
821
|
-
/** A page number within the paginated result set. */
|
|
822
|
-
page?: number;
|
|
823
|
-
/** Number of results to return per page. */
|
|
824
|
-
page_size?: number;
|
|
825
|
-
recipient?: string;
|
|
826
|
-
recipient__contains?: string;
|
|
827
|
-
sent?: boolean;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export type AdminLogsListData = PaginatedAdminLogListResponse;
|
|
831
|
-
|
|
832
|
-
export type AdminLogsRetrieveData = AdminLogResponse;
|
|
833
|
-
|
|
834
|
-
export type AdminLogsSendCreateData = ActionResponse;
|
|
835
|
-
|
|
836
|
-
export interface AdminNotificationsListParams {
|
|
837
|
-
event?: string;
|
|
838
|
-
layout?: string;
|
|
839
|
-
name?: string;
|
|
840
|
-
/** A page number within the paginated result set. */
|
|
841
|
-
page?: number;
|
|
842
|
-
/** Number of results to return per page. */
|
|
843
|
-
page_size?: number;
|
|
844
|
-
type?: string;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
export type AdminNotificationsListData = PaginatedAdminNotificationListResponse;
|
|
848
|
-
|
|
849
|
-
export type AdminNotificationsCreateData = AdminNotificationResponse;
|
|
850
|
-
|
|
851
|
-
export type AdminNotificationsRetrieveData = AdminNotificationResponse;
|
|
852
|
-
|
|
853
|
-
export type AdminNotificationsUpdateData = AdminNotificationResponse;
|
|
854
|
-
|
|
855
|
-
export type AdminNotificationsPartialUpdateData = AdminNotificationResponse;
|
|
856
|
-
|
|
857
|
-
export type AdminNotificationsDestroyData = AdminNotificationResponse;
|
|
858
|
-
|
|
859
|
-
export type AdminNotificationsTriggerCreateData = ActionResponse;
|
|
860
|
-
|
|
861
|
-
export interface AdminTemplatesListParams {
|
|
862
|
-
event?: string;
|
|
863
|
-
layout?: string;
|
|
864
|
-
name?: string;
|
|
865
|
-
/** A page number within the paginated result set. */
|
|
866
|
-
page?: number;
|
|
867
|
-
/** Number of results to return per page. */
|
|
868
|
-
page_size?: number;
|
|
869
|
-
type?: string;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
export type AdminTemplatesListData = PaginatedAdminTemplateListResponse;
|
|
873
|
-
|
|
874
|
-
export type AdminTemplatesRetrieveData = AdminTemplateResponse;
|
|
875
|
-
|
|
876
|
-
export type AdminWebhookCreateData = ActionResponse;
|
|
877
|
-
|
|
878
|
-
export type DeactivateCreateData = ActionResponse;
|
|
879
|
-
|
|
880
|
-
export interface UserNotificationsListParams {
|
|
881
|
-
event?: string;
|
|
882
|
-
layout?: string;
|
|
883
|
-
name?: string;
|
|
884
|
-
/** A page number within the paginated result set. */
|
|
885
|
-
page?: number;
|
|
886
|
-
/** Number of results to return per page. */
|
|
887
|
-
page_size?: number;
|
|
888
|
-
type?: string;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
export type UserNotificationsListData = PaginatedUserNotificationListResponse;
|
|
892
|
-
|
|
893
|
-
export type UserNotificationsRetrieveData = UserNotificationResponse;
|
|
894
|
-
|
|
895
|
-
export type UserNotificationsUpdateData = UserNotificationResponse;
|
|
896
|
-
|
|
897
|
-
export type UserNotificationsPartialUpdateData = UserNotificationResponse;
|
|
898
|
-
|
|
899
|
-
export type WebhookCreateData = ActionResponse;
|
|
900
|
-
|
|
901
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
902
|
-
export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
|
|
903
|
-
|
|
904
|
-
export interface FullRequestParams extends Omit<RequestInit, "body"> {
|
|
905
|
-
/** set parameter to `true` for call `securityWorker` for this request */
|
|
906
|
-
secure?: boolean;
|
|
907
|
-
/** request path */
|
|
908
|
-
path: string;
|
|
909
|
-
/** content type of request body */
|
|
910
|
-
type?: ContentType;
|
|
911
|
-
/** query params */
|
|
912
|
-
query?: QueryParamsType;
|
|
913
|
-
/** format of response (i.e. response.json() -> format: "json") */
|
|
914
|
-
format?: ResponseFormat;
|
|
915
|
-
/** request body */
|
|
916
|
-
body?: unknown;
|
|
917
|
-
/** base url */
|
|
918
|
-
baseUrl?: string;
|
|
919
|
-
/** request cancellation token */
|
|
920
|
-
cancelToken?: CancelToken;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export type RequestParams = Omit<
|
|
924
|
-
FullRequestParams,
|
|
925
|
-
"body" | "method" | "query" | "path"
|
|
926
|
-
>;
|
|
927
|
-
|
|
928
|
-
export interface ApiConfig<SecurityDataType = unknown> {
|
|
929
|
-
baseUrl?: string;
|
|
930
|
-
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
|
|
931
|
-
securityWorker?: (
|
|
932
|
-
securityData: SecurityDataType | null,
|
|
933
|
-
) => Promise<RequestParams | void> | RequestParams | void;
|
|
934
|
-
customFetch?: typeof fetch;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
export interface HttpResponse<D extends unknown, E extends unknown = unknown>
|
|
938
|
-
extends Response {
|
|
939
|
-
data: D;
|
|
940
|
-
error: E;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
type CancelToken = Symbol | string | number;
|
|
944
|
-
|
|
945
|
-
export enum ContentType {
|
|
946
|
-
Json = "application/json",
|
|
947
|
-
JsonApi = "application/vnd.api+json",
|
|
948
|
-
FormData = "multipart/form-data",
|
|
949
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
950
|
-
Text = "text/plain",
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
export class HttpClient<SecurityDataType = unknown> {
|
|
954
|
-
public baseUrl: string = "https://notification.services.rehive.com/api/";
|
|
955
|
-
private securityData: SecurityDataType | null = null;
|
|
956
|
-
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
957
|
-
private abortControllers = new Map<CancelToken, AbortController>();
|
|
958
|
-
private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
|
|
959
|
-
fetch(...fetchParams);
|
|
960
|
-
|
|
961
|
-
private baseApiParams: RequestParams = {
|
|
962
|
-
credentials: "same-origin",
|
|
963
|
-
headers: {},
|
|
964
|
-
redirect: "follow",
|
|
965
|
-
referrerPolicy: "no-referrer",
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
|
|
969
|
-
Object.assign(this, apiConfig);
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
public setSecurityData = (data: SecurityDataType | null) => {
|
|
973
|
-
this.securityData = data;
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
protected encodeQueryParam(key: string, value: any) {
|
|
977
|
-
const encodedKey = encodeURIComponent(key);
|
|
978
|
-
return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
protected addQueryParam(query: QueryParamsType, key: string) {
|
|
982
|
-
return this.encodeQueryParam(key, query[key]);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
protected addArrayQueryParam(query: QueryParamsType, key: string) {
|
|
986
|
-
const value = query[key];
|
|
987
|
-
return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
protected toQueryString(rawQuery?: QueryParamsType): string {
|
|
991
|
-
const query = rawQuery || {};
|
|
992
|
-
const keys = Object.keys(query).filter(
|
|
993
|
-
(key) => "undefined" !== typeof query[key],
|
|
994
|
-
);
|
|
995
|
-
return keys
|
|
996
|
-
.map((key) =>
|
|
997
|
-
Array.isArray(query[key])
|
|
998
|
-
? this.addArrayQueryParam(query, key)
|
|
999
|
-
: this.addQueryParam(query, key),
|
|
1000
|
-
)
|
|
1001
|
-
.join("&");
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
protected addQueryParams(rawQuery?: QueryParamsType): string {
|
|
1005
|
-
const queryString = this.toQueryString(rawQuery);
|
|
1006
|
-
return queryString ? `?${queryString}` : "";
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
private contentFormatters: Record<ContentType, (input: any) => any> = {
|
|
1010
|
-
[ContentType.Json]: (input: any) =>
|
|
1011
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
1012
|
-
? JSON.stringify(input)
|
|
1013
|
-
: input,
|
|
1014
|
-
[ContentType.JsonApi]: (input: any) =>
|
|
1015
|
-
input !== null && (typeof input === "object" || typeof input === "string")
|
|
1016
|
-
? JSON.stringify(input)
|
|
1017
|
-
: input,
|
|
1018
|
-
[ContentType.Text]: (input: any) =>
|
|
1019
|
-
input !== null && typeof input !== "string"
|
|
1020
|
-
? JSON.stringify(input)
|
|
1021
|
-
: input,
|
|
1022
|
-
[ContentType.FormData]: (input: any) =>
|
|
1023
|
-
Object.keys(input || {}).reduce((formData, key) => {
|
|
1024
|
-
const property = input[key];
|
|
1025
|
-
formData.append(
|
|
1026
|
-
key,
|
|
1027
|
-
property instanceof Blob
|
|
1028
|
-
? property
|
|
1029
|
-
: typeof property === "object" && property !== null
|
|
1030
|
-
? JSON.stringify(property)
|
|
1031
|
-
: `${property}`,
|
|
1032
|
-
);
|
|
1033
|
-
return formData;
|
|
1034
|
-
}, new FormData()),
|
|
1035
|
-
[ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
protected mergeRequestParams(
|
|
1039
|
-
params1: RequestParams,
|
|
1040
|
-
params2?: RequestParams,
|
|
1041
|
-
): RequestParams {
|
|
1042
|
-
return {
|
|
1043
|
-
...this.baseApiParams,
|
|
1044
|
-
...params1,
|
|
1045
|
-
...(params2 || {}),
|
|
1046
|
-
headers: {
|
|
1047
|
-
...(this.baseApiParams.headers || {}),
|
|
1048
|
-
...(params1.headers || {}),
|
|
1049
|
-
...((params2 && params2.headers) || {}),
|
|
1050
|
-
},
|
|
1051
|
-
};
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
protected createAbortSignal = (
|
|
1055
|
-
cancelToken: CancelToken,
|
|
1056
|
-
): AbortSignal | undefined => {
|
|
1057
|
-
if (this.abortControllers.has(cancelToken)) {
|
|
1058
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
1059
|
-
if (abortController) {
|
|
1060
|
-
return abortController.signal;
|
|
1061
|
-
}
|
|
1062
|
-
return void 0;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
const abortController = new AbortController();
|
|
1066
|
-
this.abortControllers.set(cancelToken, abortController);
|
|
1067
|
-
return abortController.signal;
|
|
1068
|
-
};
|
|
1069
|
-
|
|
1070
|
-
public abortRequest = (cancelToken: CancelToken) => {
|
|
1071
|
-
const abortController = this.abortControllers.get(cancelToken);
|
|
1072
|
-
|
|
1073
|
-
if (abortController) {
|
|
1074
|
-
abortController.abort();
|
|
1075
|
-
this.abortControllers.delete(cancelToken);
|
|
1076
|
-
}
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
public request = async <T = any, E = any>({
|
|
1080
|
-
body,
|
|
1081
|
-
secure,
|
|
1082
|
-
path,
|
|
1083
|
-
type,
|
|
1084
|
-
query,
|
|
1085
|
-
format,
|
|
1086
|
-
baseUrl,
|
|
1087
|
-
cancelToken,
|
|
1088
|
-
...params
|
|
1089
|
-
}: FullRequestParams): Promise<HttpResponse<T, E>> => {
|
|
1090
|
-
const secureParams =
|
|
1091
|
-
((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
|
|
1092
|
-
this.securityWorker &&
|
|
1093
|
-
(await this.securityWorker(this.securityData))) ||
|
|
1094
|
-
{};
|
|
1095
|
-
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
1096
|
-
const queryString = query && this.toQueryString(query);
|
|
1097
|
-
const payloadFormatter = this.contentFormatters[type || ContentType.Json];
|
|
1098
|
-
const responseFormat = format || requestParams.format;
|
|
1099
|
-
|
|
1100
|
-
return this.customFetch(
|
|
1101
|
-
`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
|
|
1102
|
-
{
|
|
1103
|
-
...requestParams,
|
|
1104
|
-
headers: {
|
|
1105
|
-
...(requestParams.headers || {}),
|
|
1106
|
-
...(type && type !== ContentType.FormData
|
|
1107
|
-
? { "Content-Type": type }
|
|
1108
|
-
: {}),
|
|
1109
|
-
},
|
|
1110
|
-
signal:
|
|
1111
|
-
(cancelToken
|
|
1112
|
-
? this.createAbortSignal(cancelToken)
|
|
1113
|
-
: requestParams.signal) || null,
|
|
1114
|
-
body:
|
|
1115
|
-
typeof body === "undefined" || body === null
|
|
1116
|
-
? null
|
|
1117
|
-
: payloadFormatter(body),
|
|
1118
|
-
},
|
|
1119
|
-
).then(async (response) => {
|
|
1120
|
-
const r = response.clone() as HttpResponse<T, E>;
|
|
1121
|
-
r.data = null as unknown as T;
|
|
1122
|
-
r.error = null as unknown as E;
|
|
1123
|
-
|
|
1124
|
-
const data = !responseFormat
|
|
1125
|
-
? r
|
|
1126
|
-
: await response[responseFormat]()
|
|
1127
|
-
.then((data) => {
|
|
1128
|
-
if (r.ok) {
|
|
1129
|
-
r.data = data;
|
|
1130
|
-
} else {
|
|
1131
|
-
r.error = data;
|
|
1132
|
-
}
|
|
1133
|
-
return r;
|
|
1134
|
-
})
|
|
1135
|
-
.catch((e) => {
|
|
1136
|
-
r.error = e;
|
|
1137
|
-
return r;
|
|
1138
|
-
});
|
|
1139
|
-
|
|
1140
|
-
if (cancelToken) {
|
|
1141
|
-
this.abortControllers.delete(cancelToken);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
if (!response.ok) throw data;
|
|
1145
|
-
return data;
|
|
1146
|
-
});
|
|
1147
|
-
};
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* @title Notification Service API
|
|
1152
|
-
* @version 1 (1)
|
|
1153
|
-
* @termsOfService https://rehive.com/terms/
|
|
1154
|
-
* @baseUrl https://notification.services.rehive.com/api/
|
|
1155
|
-
* @externalDocs https://docs.rehive.com
|
|
1156
|
-
* @contact Rehive Support <support@rehive.com> (https://rehive.com/support/)
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
* The **Notification Service API** is used for sending email, SMS, and push notifications in Rehive.
|
|
1160
|
-
*
|
|
1161
|
-
*/
|
|
1162
|
-
export class Api<
|
|
1163
|
-
SecurityDataType extends unknown,
|
|
1164
|
-
> extends HttpClient<SecurityDataType> {
|
|
1165
|
-
activate = {
|
|
1166
|
-
/**
|
|
1167
|
-
* No description
|
|
1168
|
-
*
|
|
1169
|
-
* @tags activate
|
|
1170
|
-
* @name ActivateCreate
|
|
1171
|
-
* @summary Activate service
|
|
1172
|
-
* @request POST:/activate/
|
|
1173
|
-
* @secure
|
|
1174
|
-
*/
|
|
1175
|
-
activateCreate: (data: Activate, params: RequestParams = {}) =>
|
|
1176
|
-
this.request<ActivateCreateData, any>({
|
|
1177
|
-
path: `/activate/`,
|
|
1178
|
-
method: "POST",
|
|
1179
|
-
body: data,
|
|
1180
|
-
secure: true,
|
|
1181
|
-
type: ContentType.Json,
|
|
1182
|
-
format: "json",
|
|
1183
|
-
...params,
|
|
1184
|
-
}),
|
|
1185
|
-
};
|
|
1186
|
-
admin = {
|
|
1187
|
-
/**
|
|
1188
|
-
* No description
|
|
1189
|
-
*
|
|
1190
|
-
* @tags admin
|
|
1191
|
-
* @name AdminCompanyRetrieve
|
|
1192
|
-
* @summary Retrieve company
|
|
1193
|
-
* @request GET:/admin/company/
|
|
1194
|
-
* @secure
|
|
1195
|
-
*/
|
|
1196
|
-
adminCompanyRetrieve: (params: RequestParams = {}) =>
|
|
1197
|
-
this.request<AdminCompanyRetrieveData, any>({
|
|
1198
|
-
path: `/admin/company/`,
|
|
1199
|
-
method: "GET",
|
|
1200
|
-
secure: true,
|
|
1201
|
-
format: "json",
|
|
1202
|
-
...params,
|
|
1203
|
-
}),
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* No description
|
|
1207
|
-
*
|
|
1208
|
-
* @tags admin
|
|
1209
|
-
* @name AdminCompanyUpdate
|
|
1210
|
-
* @summary Update company
|
|
1211
|
-
* @request PUT:/admin/company/
|
|
1212
|
-
* @secure
|
|
1213
|
-
*/
|
|
1214
|
-
adminCompanyUpdate: (data: AdminCompany, params: RequestParams = {}) =>
|
|
1215
|
-
this.request<AdminCompanyUpdateData, any>({
|
|
1216
|
-
path: `/admin/company/`,
|
|
1217
|
-
method: "PUT",
|
|
1218
|
-
body: data,
|
|
1219
|
-
secure: true,
|
|
1220
|
-
type: ContentType.Json,
|
|
1221
|
-
format: "json",
|
|
1222
|
-
...params,
|
|
1223
|
-
}),
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* No description
|
|
1227
|
-
*
|
|
1228
|
-
* @tags admin
|
|
1229
|
-
* @name AdminCompanyPartialUpdate
|
|
1230
|
-
* @summary Partially update company
|
|
1231
|
-
* @request PATCH:/admin/company/
|
|
1232
|
-
* @secure
|
|
1233
|
-
*/
|
|
1234
|
-
adminCompanyPartialUpdate: (
|
|
1235
|
-
data: PatchedAdminCompany,
|
|
1236
|
-
params: RequestParams = {},
|
|
1237
|
-
) =>
|
|
1238
|
-
this.request<AdminCompanyPartialUpdateData, any>({
|
|
1239
|
-
path: `/admin/company/`,
|
|
1240
|
-
method: "PATCH",
|
|
1241
|
-
body: data,
|
|
1242
|
-
secure: true,
|
|
1243
|
-
type: ContentType.Json,
|
|
1244
|
-
format: "json",
|
|
1245
|
-
...params,
|
|
1246
|
-
}),
|
|
1247
|
-
|
|
1248
|
-
/**
|
|
1249
|
-
* No description
|
|
1250
|
-
*
|
|
1251
|
-
* @tags admin
|
|
1252
|
-
* @name AdminCredentialsList
|
|
1253
|
-
* @summary List credentials
|
|
1254
|
-
* @request GET:/admin/credentials/
|
|
1255
|
-
* @secure
|
|
1256
|
-
*/
|
|
1257
|
-
adminCredentialsList: (
|
|
1258
|
-
query: AdminCredentialsListParams,
|
|
1259
|
-
params: RequestParams = {},
|
|
1260
|
-
) =>
|
|
1261
|
-
this.request<AdminCredentialsListData, any>({
|
|
1262
|
-
path: `/admin/credentials/`,
|
|
1263
|
-
method: "GET",
|
|
1264
|
-
query: query,
|
|
1265
|
-
secure: true,
|
|
1266
|
-
format: "json",
|
|
1267
|
-
...params,
|
|
1268
|
-
}),
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* No description
|
|
1272
|
-
*
|
|
1273
|
-
* @tags admin
|
|
1274
|
-
* @name AdminCredentialsCreate
|
|
1275
|
-
* @summary Create credential
|
|
1276
|
-
* @request POST:/admin/credentials/
|
|
1277
|
-
* @secure
|
|
1278
|
-
*/
|
|
1279
|
-
adminCredentialsCreate: (
|
|
1280
|
-
data: AdminCredential,
|
|
1281
|
-
params: RequestParams = {},
|
|
1282
|
-
) =>
|
|
1283
|
-
this.request<AdminCredentialsCreateData, any>({
|
|
1284
|
-
path: `/admin/credentials/`,
|
|
1285
|
-
method: "POST",
|
|
1286
|
-
body: data,
|
|
1287
|
-
secure: true,
|
|
1288
|
-
type: ContentType.Json,
|
|
1289
|
-
format: "json",
|
|
1290
|
-
...params,
|
|
1291
|
-
}),
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* No description
|
|
1295
|
-
*
|
|
1296
|
-
* @tags admin
|
|
1297
|
-
* @name AdminCredentialsRetrieve
|
|
1298
|
-
* @summary Retrieve credential
|
|
1299
|
-
* @request GET:/admin/credentials/{credential_id}/
|
|
1300
|
-
* @secure
|
|
1301
|
-
*/
|
|
1302
|
-
adminCredentialsRetrieve: (
|
|
1303
|
-
credentialId: string,
|
|
1304
|
-
params: RequestParams = {},
|
|
1305
|
-
) =>
|
|
1306
|
-
this.request<AdminCredentialsRetrieveData, any>({
|
|
1307
|
-
path: `/admin/credentials/${credentialId}/`,
|
|
1308
|
-
method: "GET",
|
|
1309
|
-
secure: true,
|
|
1310
|
-
format: "json",
|
|
1311
|
-
...params,
|
|
1312
|
-
}),
|
|
1313
|
-
|
|
1314
|
-
/**
|
|
1315
|
-
* No description
|
|
1316
|
-
*
|
|
1317
|
-
* @tags admin
|
|
1318
|
-
* @name AdminCredentialsUpdate
|
|
1319
|
-
* @summary Update credential
|
|
1320
|
-
* @request PUT:/admin/credentials/{credential_id}/
|
|
1321
|
-
* @secure
|
|
1322
|
-
*/
|
|
1323
|
-
adminCredentialsUpdate: (
|
|
1324
|
-
credentialId: string,
|
|
1325
|
-
data: AdminCredential,
|
|
1326
|
-
params: RequestParams = {},
|
|
1327
|
-
) =>
|
|
1328
|
-
this.request<AdminCredentialsUpdateData, any>({
|
|
1329
|
-
path: `/admin/credentials/${credentialId}/`,
|
|
1330
|
-
method: "PUT",
|
|
1331
|
-
body: data,
|
|
1332
|
-
secure: true,
|
|
1333
|
-
type: ContentType.Json,
|
|
1334
|
-
format: "json",
|
|
1335
|
-
...params,
|
|
1336
|
-
}),
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* No description
|
|
1340
|
-
*
|
|
1341
|
-
* @tags admin
|
|
1342
|
-
* @name AdminCredentialsPartialUpdate
|
|
1343
|
-
* @summary Partially update credential
|
|
1344
|
-
* @request PATCH:/admin/credentials/{credential_id}/
|
|
1345
|
-
* @secure
|
|
1346
|
-
*/
|
|
1347
|
-
adminCredentialsPartialUpdate: (
|
|
1348
|
-
credentialId: string,
|
|
1349
|
-
data: PatchedAdminCredential,
|
|
1350
|
-
params: RequestParams = {},
|
|
1351
|
-
) =>
|
|
1352
|
-
this.request<AdminCredentialsPartialUpdateData, any>({
|
|
1353
|
-
path: `/admin/credentials/${credentialId}/`,
|
|
1354
|
-
method: "PATCH",
|
|
1355
|
-
body: data,
|
|
1356
|
-
secure: true,
|
|
1357
|
-
type: ContentType.Json,
|
|
1358
|
-
format: "json",
|
|
1359
|
-
...params,
|
|
1360
|
-
}),
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* No description
|
|
1364
|
-
*
|
|
1365
|
-
* @tags admin
|
|
1366
|
-
* @name AdminCredentialsDestroy
|
|
1367
|
-
* @summary Delete credential
|
|
1368
|
-
* @request DELETE:/admin/credentials/{credential_id}/
|
|
1369
|
-
* @secure
|
|
1370
|
-
*/
|
|
1371
|
-
adminCredentialsDestroy: (
|
|
1372
|
-
credentialId: string,
|
|
1373
|
-
params: RequestParams = {},
|
|
1374
|
-
) =>
|
|
1375
|
-
this.request<AdminCredentialsDestroyData, any>({
|
|
1376
|
-
path: `/admin/credentials/${credentialId}/`,
|
|
1377
|
-
method: "DELETE",
|
|
1378
|
-
secure: true,
|
|
1379
|
-
format: "json",
|
|
1380
|
-
...params,
|
|
1381
|
-
}),
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* No description
|
|
1385
|
-
*
|
|
1386
|
-
* @tags admin
|
|
1387
|
-
* @name AdminLayoutTemplatesList
|
|
1388
|
-
* @summary List layout templates
|
|
1389
|
-
* @request GET:/admin/layout-templates/
|
|
1390
|
-
* @secure
|
|
1391
|
-
*/
|
|
1392
|
-
adminLayoutTemplatesList: (
|
|
1393
|
-
query: AdminLayoutTemplatesListParams,
|
|
1394
|
-
params: RequestParams = {},
|
|
1395
|
-
) =>
|
|
1396
|
-
this.request<AdminLayoutTemplatesListData, any>({
|
|
1397
|
-
path: `/admin/layout-templates/`,
|
|
1398
|
-
method: "GET",
|
|
1399
|
-
query: query,
|
|
1400
|
-
secure: true,
|
|
1401
|
-
format: "json",
|
|
1402
|
-
...params,
|
|
1403
|
-
}),
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* No description
|
|
1407
|
-
*
|
|
1408
|
-
* @tags admin
|
|
1409
|
-
* @name AdminLayoutTemplatesRetrieve
|
|
1410
|
-
* @summary Retrieve layout template
|
|
1411
|
-
* @request GET:/admin/layout-templates/{id}/
|
|
1412
|
-
* @secure
|
|
1413
|
-
*/
|
|
1414
|
-
adminLayoutTemplatesRetrieve: (id: string, params: RequestParams = {}) =>
|
|
1415
|
-
this.request<AdminLayoutTemplatesRetrieveData, any>({
|
|
1416
|
-
path: `/admin/layout-templates/${id}/`,
|
|
1417
|
-
method: "GET",
|
|
1418
|
-
secure: true,
|
|
1419
|
-
format: "json",
|
|
1420
|
-
...params,
|
|
1421
|
-
}),
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* No description
|
|
1425
|
-
*
|
|
1426
|
-
* @tags admin
|
|
1427
|
-
* @name AdminLayoutsList
|
|
1428
|
-
* @summary List layouts
|
|
1429
|
-
* @request GET:/admin/layouts/
|
|
1430
|
-
* @secure
|
|
1431
|
-
*/
|
|
1432
|
-
adminLayoutsList: (
|
|
1433
|
-
query: AdminLayoutsListParams,
|
|
1434
|
-
params: RequestParams = {},
|
|
1435
|
-
) =>
|
|
1436
|
-
this.request<AdminLayoutsListData, any>({
|
|
1437
|
-
path: `/admin/layouts/`,
|
|
1438
|
-
method: "GET",
|
|
1439
|
-
query: query,
|
|
1440
|
-
secure: true,
|
|
1441
|
-
format: "json",
|
|
1442
|
-
...params,
|
|
1443
|
-
}),
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* No description
|
|
1447
|
-
*
|
|
1448
|
-
* @tags admin
|
|
1449
|
-
* @name AdminLayoutsCreate
|
|
1450
|
-
* @summary Create layout
|
|
1451
|
-
* @request POST:/admin/layouts/
|
|
1452
|
-
* @secure
|
|
1453
|
-
*/
|
|
1454
|
-
adminLayoutsCreate: (
|
|
1455
|
-
data: NotificationLayout,
|
|
1456
|
-
params: RequestParams = {},
|
|
1457
|
-
) =>
|
|
1458
|
-
this.request<AdminLayoutsCreateData, any>({
|
|
1459
|
-
path: `/admin/layouts/`,
|
|
1460
|
-
method: "POST",
|
|
1461
|
-
body: data,
|
|
1462
|
-
secure: true,
|
|
1463
|
-
type: ContentType.Json,
|
|
1464
|
-
format: "json",
|
|
1465
|
-
...params,
|
|
1466
|
-
}),
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* No description
|
|
1470
|
-
*
|
|
1471
|
-
* @tags admin
|
|
1472
|
-
* @name AdminLayoutsRetrieve
|
|
1473
|
-
* @summary Retrieve layout
|
|
1474
|
-
* @request GET:/admin/layouts/{id}/
|
|
1475
|
-
* @secure
|
|
1476
|
-
*/
|
|
1477
|
-
adminLayoutsRetrieve: (id: string, params: RequestParams = {}) =>
|
|
1478
|
-
this.request<AdminLayoutsRetrieveData, any>({
|
|
1479
|
-
path: `/admin/layouts/${id}/`,
|
|
1480
|
-
method: "GET",
|
|
1481
|
-
secure: true,
|
|
1482
|
-
format: "json",
|
|
1483
|
-
...params,
|
|
1484
|
-
}),
|
|
1485
|
-
|
|
1486
|
-
/**
|
|
1487
|
-
* No description
|
|
1488
|
-
*
|
|
1489
|
-
* @tags admin
|
|
1490
|
-
* @name AdminLayoutsUpdate
|
|
1491
|
-
* @summary Update layout
|
|
1492
|
-
* @request PUT:/admin/layouts/{id}/
|
|
1493
|
-
* @secure
|
|
1494
|
-
*/
|
|
1495
|
-
adminLayoutsUpdate: (
|
|
1496
|
-
id: string,
|
|
1497
|
-
data: NotificationLayout,
|
|
1498
|
-
params: RequestParams = {},
|
|
1499
|
-
) =>
|
|
1500
|
-
this.request<AdminLayoutsUpdateData, any>({
|
|
1501
|
-
path: `/admin/layouts/${id}/`,
|
|
1502
|
-
method: "PUT",
|
|
1503
|
-
body: data,
|
|
1504
|
-
secure: true,
|
|
1505
|
-
type: ContentType.Json,
|
|
1506
|
-
format: "json",
|
|
1507
|
-
...params,
|
|
1508
|
-
}),
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* No description
|
|
1512
|
-
*
|
|
1513
|
-
* @tags admin
|
|
1514
|
-
* @name AdminLayoutsPartialUpdate
|
|
1515
|
-
* @summary Partially update layout
|
|
1516
|
-
* @request PATCH:/admin/layouts/{id}/
|
|
1517
|
-
* @secure
|
|
1518
|
-
*/
|
|
1519
|
-
adminLayoutsPartialUpdate: (
|
|
1520
|
-
id: string,
|
|
1521
|
-
data: PatchedNotificationLayout,
|
|
1522
|
-
params: RequestParams = {},
|
|
1523
|
-
) =>
|
|
1524
|
-
this.request<AdminLayoutsPartialUpdateData, any>({
|
|
1525
|
-
path: `/admin/layouts/${id}/`,
|
|
1526
|
-
method: "PATCH",
|
|
1527
|
-
body: data,
|
|
1528
|
-
secure: true,
|
|
1529
|
-
type: ContentType.Json,
|
|
1530
|
-
format: "json",
|
|
1531
|
-
...params,
|
|
1532
|
-
}),
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* No description
|
|
1536
|
-
*
|
|
1537
|
-
* @tags admin
|
|
1538
|
-
* @name AdminLayoutsDestroy
|
|
1539
|
-
* @summary Delete layout
|
|
1540
|
-
* @request DELETE:/admin/layouts/{id}/
|
|
1541
|
-
* @secure
|
|
1542
|
-
*/
|
|
1543
|
-
adminLayoutsDestroy: (id: string, params: RequestParams = {}) =>
|
|
1544
|
-
this.request<AdminLayoutsDestroyData, any>({
|
|
1545
|
-
path: `/admin/layouts/${id}/`,
|
|
1546
|
-
method: "DELETE",
|
|
1547
|
-
secure: true,
|
|
1548
|
-
format: "json",
|
|
1549
|
-
...params,
|
|
1550
|
-
}),
|
|
1551
|
-
|
|
1552
|
-
/**
|
|
1553
|
-
* No description
|
|
1554
|
-
*
|
|
1555
|
-
* @tags admin
|
|
1556
|
-
* @name AdminLogsList
|
|
1557
|
-
* @summary List logs
|
|
1558
|
-
* @request GET:/admin/logs/
|
|
1559
|
-
* @secure
|
|
1560
|
-
*/
|
|
1561
|
-
adminLogsList: (query: AdminLogsListParams, params: RequestParams = {}) =>
|
|
1562
|
-
this.request<AdminLogsListData, any>({
|
|
1563
|
-
path: `/admin/logs/`,
|
|
1564
|
-
method: "GET",
|
|
1565
|
-
query: query,
|
|
1566
|
-
secure: true,
|
|
1567
|
-
format: "json",
|
|
1568
|
-
...params,
|
|
1569
|
-
}),
|
|
1570
|
-
|
|
1571
|
-
/**
|
|
1572
|
-
* No description
|
|
1573
|
-
*
|
|
1574
|
-
* @tags admin
|
|
1575
|
-
* @name AdminLogsRetrieve
|
|
1576
|
-
* @summary Retrieve log
|
|
1577
|
-
* @request GET:/admin/logs/{log_id}/
|
|
1578
|
-
* @secure
|
|
1579
|
-
*/
|
|
1580
|
-
adminLogsRetrieve: (logId: string, params: RequestParams = {}) =>
|
|
1581
|
-
this.request<AdminLogsRetrieveData, any>({
|
|
1582
|
-
path: `/admin/logs/${logId}/`,
|
|
1583
|
-
method: "GET",
|
|
1584
|
-
secure: true,
|
|
1585
|
-
format: "json",
|
|
1586
|
-
...params,
|
|
1587
|
-
}),
|
|
1588
|
-
|
|
1589
|
-
/**
|
|
1590
|
-
* No description
|
|
1591
|
-
*
|
|
1592
|
-
* @tags admin
|
|
1593
|
-
* @name AdminLogsSendCreate
|
|
1594
|
-
* @summary Send notification
|
|
1595
|
-
* @request POST:/admin/logs/{log_id}/send/
|
|
1596
|
-
* @secure
|
|
1597
|
-
*/
|
|
1598
|
-
adminLogsSendCreate: (
|
|
1599
|
-
logId: string,
|
|
1600
|
-
data: AdminLogSend,
|
|
1601
|
-
params: RequestParams = {},
|
|
1602
|
-
) =>
|
|
1603
|
-
this.request<AdminLogsSendCreateData, any>({
|
|
1604
|
-
path: `/admin/logs/${logId}/send/`,
|
|
1605
|
-
method: "POST",
|
|
1606
|
-
body: data,
|
|
1607
|
-
secure: true,
|
|
1608
|
-
type: ContentType.Json,
|
|
1609
|
-
format: "json",
|
|
1610
|
-
...params,
|
|
1611
|
-
}),
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* No description
|
|
1615
|
-
*
|
|
1616
|
-
* @tags admin
|
|
1617
|
-
* @name AdminNotificationsList
|
|
1618
|
-
* @summary List notifications
|
|
1619
|
-
* @request GET:/admin/notifications/
|
|
1620
|
-
* @secure
|
|
1621
|
-
*/
|
|
1622
|
-
adminNotificationsList: (
|
|
1623
|
-
query: AdminNotificationsListParams,
|
|
1624
|
-
params: RequestParams = {},
|
|
1625
|
-
) =>
|
|
1626
|
-
this.request<AdminNotificationsListData, any>({
|
|
1627
|
-
path: `/admin/notifications/`,
|
|
1628
|
-
method: "GET",
|
|
1629
|
-
query: query,
|
|
1630
|
-
secure: true,
|
|
1631
|
-
format: "json",
|
|
1632
|
-
...params,
|
|
1633
|
-
}),
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* No description
|
|
1637
|
-
*
|
|
1638
|
-
* @tags admin
|
|
1639
|
-
* @name AdminNotificationsCreate
|
|
1640
|
-
* @summary Create notification
|
|
1641
|
-
* @request POST:/admin/notifications/
|
|
1642
|
-
* @secure
|
|
1643
|
-
*/
|
|
1644
|
-
adminNotificationsCreate: (
|
|
1645
|
-
data: AdminCreateUpdateNotification,
|
|
1646
|
-
params: RequestParams = {},
|
|
1647
|
-
) =>
|
|
1648
|
-
this.request<AdminNotificationsCreateData, any>({
|
|
1649
|
-
path: `/admin/notifications/`,
|
|
1650
|
-
method: "POST",
|
|
1651
|
-
body: data,
|
|
1652
|
-
secure: true,
|
|
1653
|
-
type: ContentType.Json,
|
|
1654
|
-
format: "json",
|
|
1655
|
-
...params,
|
|
1656
|
-
}),
|
|
1657
|
-
|
|
1658
|
-
/**
|
|
1659
|
-
* No description
|
|
1660
|
-
*
|
|
1661
|
-
* @tags admin
|
|
1662
|
-
* @name AdminNotificationsRetrieve
|
|
1663
|
-
* @summary Retrieve notification
|
|
1664
|
-
* @request GET:/admin/notifications/{notification_id}/
|
|
1665
|
-
* @secure
|
|
1666
|
-
*/
|
|
1667
|
-
adminNotificationsRetrieve: (
|
|
1668
|
-
notificationId: string,
|
|
1669
|
-
params: RequestParams = {},
|
|
1670
|
-
) =>
|
|
1671
|
-
this.request<AdminNotificationsRetrieveData, any>({
|
|
1672
|
-
path: `/admin/notifications/${notificationId}/`,
|
|
1673
|
-
method: "GET",
|
|
1674
|
-
secure: true,
|
|
1675
|
-
format: "json",
|
|
1676
|
-
...params,
|
|
1677
|
-
}),
|
|
1678
|
-
|
|
1679
|
-
/**
|
|
1680
|
-
* No description
|
|
1681
|
-
*
|
|
1682
|
-
* @tags admin
|
|
1683
|
-
* @name AdminNotificationsUpdate
|
|
1684
|
-
* @summary Update notification
|
|
1685
|
-
* @request PUT:/admin/notifications/{notification_id}/
|
|
1686
|
-
* @secure
|
|
1687
|
-
*/
|
|
1688
|
-
adminNotificationsUpdate: (
|
|
1689
|
-
notificationId: string,
|
|
1690
|
-
data: AdminCreateUpdateNotification,
|
|
1691
|
-
params: RequestParams = {},
|
|
1692
|
-
) =>
|
|
1693
|
-
this.request<AdminNotificationsUpdateData, any>({
|
|
1694
|
-
path: `/admin/notifications/${notificationId}/`,
|
|
1695
|
-
method: "PUT",
|
|
1696
|
-
body: data,
|
|
1697
|
-
secure: true,
|
|
1698
|
-
type: ContentType.Json,
|
|
1699
|
-
format: "json",
|
|
1700
|
-
...params,
|
|
1701
|
-
}),
|
|
1702
|
-
|
|
1703
|
-
/**
|
|
1704
|
-
* No description
|
|
1705
|
-
*
|
|
1706
|
-
* @tags admin
|
|
1707
|
-
* @name AdminNotificationsPartialUpdate
|
|
1708
|
-
* @summary Partially update notification
|
|
1709
|
-
* @request PATCH:/admin/notifications/{notification_id}/
|
|
1710
|
-
* @secure
|
|
1711
|
-
*/
|
|
1712
|
-
adminNotificationsPartialUpdate: (
|
|
1713
|
-
notificationId: string,
|
|
1714
|
-
data: PatchedAdminCreateUpdateNotification,
|
|
1715
|
-
params: RequestParams = {},
|
|
1716
|
-
) =>
|
|
1717
|
-
this.request<AdminNotificationsPartialUpdateData, any>({
|
|
1718
|
-
path: `/admin/notifications/${notificationId}/`,
|
|
1719
|
-
method: "PATCH",
|
|
1720
|
-
body: data,
|
|
1721
|
-
secure: true,
|
|
1722
|
-
type: ContentType.Json,
|
|
1723
|
-
format: "json",
|
|
1724
|
-
...params,
|
|
1725
|
-
}),
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* No description
|
|
1729
|
-
*
|
|
1730
|
-
* @tags admin
|
|
1731
|
-
* @name AdminNotificationsDestroy
|
|
1732
|
-
* @summary Delete notification
|
|
1733
|
-
* @request DELETE:/admin/notifications/{notification_id}/
|
|
1734
|
-
* @secure
|
|
1735
|
-
*/
|
|
1736
|
-
adminNotificationsDestroy: (
|
|
1737
|
-
notificationId: string,
|
|
1738
|
-
params: RequestParams = {},
|
|
1739
|
-
) =>
|
|
1740
|
-
this.request<AdminNotificationsDestroyData, any>({
|
|
1741
|
-
path: `/admin/notifications/${notificationId}/`,
|
|
1742
|
-
method: "DELETE",
|
|
1743
|
-
secure: true,
|
|
1744
|
-
format: "json",
|
|
1745
|
-
...params,
|
|
1746
|
-
}),
|
|
1747
|
-
|
|
1748
|
-
/**
|
|
1749
|
-
* No description
|
|
1750
|
-
*
|
|
1751
|
-
* @tags admin
|
|
1752
|
-
* @name AdminNotificationsTriggerCreate
|
|
1753
|
-
* @summary Trigger notification
|
|
1754
|
-
* @request POST:/admin/notifications/{notification_id}/trigger/
|
|
1755
|
-
* @secure
|
|
1756
|
-
*/
|
|
1757
|
-
adminNotificationsTriggerCreate: (
|
|
1758
|
-
notificationId: string,
|
|
1759
|
-
data: AdminTriggerNotification,
|
|
1760
|
-
params: RequestParams = {},
|
|
1761
|
-
) =>
|
|
1762
|
-
this.request<AdminNotificationsTriggerCreateData, any>({
|
|
1763
|
-
path: `/admin/notifications/${notificationId}/trigger/`,
|
|
1764
|
-
method: "POST",
|
|
1765
|
-
body: data,
|
|
1766
|
-
secure: true,
|
|
1767
|
-
type: ContentType.Json,
|
|
1768
|
-
format: "json",
|
|
1769
|
-
...params,
|
|
1770
|
-
}),
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* No description
|
|
1774
|
-
*
|
|
1775
|
-
* @tags admin
|
|
1776
|
-
* @name AdminTemplatesList
|
|
1777
|
-
* @summary List templates
|
|
1778
|
-
* @request GET:/admin/templates/
|
|
1779
|
-
* @secure
|
|
1780
|
-
*/
|
|
1781
|
-
adminTemplatesList: (
|
|
1782
|
-
query: AdminTemplatesListParams,
|
|
1783
|
-
params: RequestParams = {},
|
|
1784
|
-
) =>
|
|
1785
|
-
this.request<AdminTemplatesListData, any>({
|
|
1786
|
-
path: `/admin/templates/`,
|
|
1787
|
-
method: "GET",
|
|
1788
|
-
query: query,
|
|
1789
|
-
secure: true,
|
|
1790
|
-
format: "json",
|
|
1791
|
-
...params,
|
|
1792
|
-
}),
|
|
1793
|
-
|
|
1794
|
-
/**
|
|
1795
|
-
* No description
|
|
1796
|
-
*
|
|
1797
|
-
* @tags admin
|
|
1798
|
-
* @name AdminTemplatesRetrieve
|
|
1799
|
-
* @summary Retrieve template
|
|
1800
|
-
* @request GET:/admin/templates/{template_id}/
|
|
1801
|
-
* @secure
|
|
1802
|
-
*/
|
|
1803
|
-
adminTemplatesRetrieve: (templateId: string, params: RequestParams = {}) =>
|
|
1804
|
-
this.request<AdminTemplatesRetrieveData, any>({
|
|
1805
|
-
path: `/admin/templates/${templateId}/`,
|
|
1806
|
-
method: "GET",
|
|
1807
|
-
secure: true,
|
|
1808
|
-
format: "json",
|
|
1809
|
-
...params,
|
|
1810
|
-
}),
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* No description
|
|
1814
|
-
*
|
|
1815
|
-
* @tags admin
|
|
1816
|
-
* @name AdminWebhookCreate
|
|
1817
|
-
* @request POST:/admin/webhook/
|
|
1818
|
-
* @secure
|
|
1819
|
-
*/
|
|
1820
|
-
adminWebhookCreate: (data: Webhook, params: RequestParams = {}) =>
|
|
1821
|
-
this.request<AdminWebhookCreateData, any>({
|
|
1822
|
-
path: `/admin/webhook/`,
|
|
1823
|
-
method: "POST",
|
|
1824
|
-
body: data,
|
|
1825
|
-
secure: true,
|
|
1826
|
-
type: ContentType.Json,
|
|
1827
|
-
format: "json",
|
|
1828
|
-
...params,
|
|
1829
|
-
}),
|
|
1830
|
-
};
|
|
1831
|
-
deactivate = {
|
|
1832
|
-
/**
|
|
1833
|
-
* No description
|
|
1834
|
-
*
|
|
1835
|
-
* @tags deactivate
|
|
1836
|
-
* @name DeactivateCreate
|
|
1837
|
-
* @summary Deactivate service
|
|
1838
|
-
* @request POST:/deactivate/
|
|
1839
|
-
* @secure
|
|
1840
|
-
*/
|
|
1841
|
-
deactivateCreate: (data: Deactivate, params: RequestParams = {}) =>
|
|
1842
|
-
this.request<DeactivateCreateData, any>({
|
|
1843
|
-
path: `/deactivate/`,
|
|
1844
|
-
method: "POST",
|
|
1845
|
-
body: data,
|
|
1846
|
-
secure: true,
|
|
1847
|
-
type: ContentType.Json,
|
|
1848
|
-
format: "json",
|
|
1849
|
-
...params,
|
|
1850
|
-
}),
|
|
1851
|
-
};
|
|
1852
|
-
user = {
|
|
1853
|
-
/**
|
|
1854
|
-
* No description
|
|
1855
|
-
*
|
|
1856
|
-
* @tags user
|
|
1857
|
-
* @name UserNotificationsList
|
|
1858
|
-
* @summary List notifications
|
|
1859
|
-
* @request GET:/user/notifications/
|
|
1860
|
-
* @secure
|
|
1861
|
-
*/
|
|
1862
|
-
userNotificationsList: (
|
|
1863
|
-
query: UserNotificationsListParams,
|
|
1864
|
-
params: RequestParams = {},
|
|
1865
|
-
) =>
|
|
1866
|
-
this.request<UserNotificationsListData, any>({
|
|
1867
|
-
path: `/user/notifications/`,
|
|
1868
|
-
method: "GET",
|
|
1869
|
-
query: query,
|
|
1870
|
-
secure: true,
|
|
1871
|
-
format: "json",
|
|
1872
|
-
...params,
|
|
1873
|
-
}),
|
|
1874
|
-
|
|
1875
|
-
/**
|
|
1876
|
-
* No description
|
|
1877
|
-
*
|
|
1878
|
-
* @tags user
|
|
1879
|
-
* @name UserNotificationsRetrieve
|
|
1880
|
-
* @summary Retrieve notification
|
|
1881
|
-
* @request GET:/user/notifications/{notification_id}/
|
|
1882
|
-
* @secure
|
|
1883
|
-
*/
|
|
1884
|
-
userNotificationsRetrieve: (
|
|
1885
|
-
notificationId: string,
|
|
1886
|
-
params: RequestParams = {},
|
|
1887
|
-
) =>
|
|
1888
|
-
this.request<UserNotificationsRetrieveData, any>({
|
|
1889
|
-
path: `/user/notifications/${notificationId}/`,
|
|
1890
|
-
method: "GET",
|
|
1891
|
-
secure: true,
|
|
1892
|
-
format: "json",
|
|
1893
|
-
...params,
|
|
1894
|
-
}),
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* No description
|
|
1898
|
-
*
|
|
1899
|
-
* @tags user
|
|
1900
|
-
* @name UserNotificationsUpdate
|
|
1901
|
-
* @summary Update notification
|
|
1902
|
-
* @request PUT:/user/notifications/{notification_id}/
|
|
1903
|
-
* @secure
|
|
1904
|
-
*/
|
|
1905
|
-
userNotificationsUpdate: (
|
|
1906
|
-
notificationId: string,
|
|
1907
|
-
data: UserUpdateNotification,
|
|
1908
|
-
params: RequestParams = {},
|
|
1909
|
-
) =>
|
|
1910
|
-
this.request<UserNotificationsUpdateData, any>({
|
|
1911
|
-
path: `/user/notifications/${notificationId}/`,
|
|
1912
|
-
method: "PUT",
|
|
1913
|
-
body: data,
|
|
1914
|
-
secure: true,
|
|
1915
|
-
type: ContentType.Json,
|
|
1916
|
-
format: "json",
|
|
1917
|
-
...params,
|
|
1918
|
-
}),
|
|
1919
|
-
|
|
1920
|
-
/**
|
|
1921
|
-
* No description
|
|
1922
|
-
*
|
|
1923
|
-
* @tags user
|
|
1924
|
-
* @name UserNotificationsPartialUpdate
|
|
1925
|
-
* @summary Partially update notification
|
|
1926
|
-
* @request PATCH:/user/notifications/{notification_id}/
|
|
1927
|
-
* @secure
|
|
1928
|
-
*/
|
|
1929
|
-
userNotificationsPartialUpdate: (
|
|
1930
|
-
notificationId: string,
|
|
1931
|
-
data: PatchedUserUpdateNotification,
|
|
1932
|
-
params: RequestParams = {},
|
|
1933
|
-
) =>
|
|
1934
|
-
this.request<UserNotificationsPartialUpdateData, any>({
|
|
1935
|
-
path: `/user/notifications/${notificationId}/`,
|
|
1936
|
-
method: "PATCH",
|
|
1937
|
-
body: data,
|
|
1938
|
-
secure: true,
|
|
1939
|
-
type: ContentType.Json,
|
|
1940
|
-
format: "json",
|
|
1941
|
-
...params,
|
|
1942
|
-
}),
|
|
1943
|
-
};
|
|
1944
|
-
webhook = {
|
|
1945
|
-
/**
|
|
1946
|
-
* No description
|
|
1947
|
-
*
|
|
1948
|
-
* @tags webhook
|
|
1949
|
-
* @name WebhookCreate
|
|
1950
|
-
* @request POST:/webhook/
|
|
1951
|
-
* @secure
|
|
1952
|
-
*/
|
|
1953
|
-
webhookCreate: (data: Webhook, params: RequestParams = {}) =>
|
|
1954
|
-
this.request<WebhookCreateData, any>({
|
|
1955
|
-
path: `/webhook/`,
|
|
1956
|
-
method: "POST",
|
|
1957
|
-
body: data,
|
|
1958
|
-
secure: true,
|
|
1959
|
-
type: ContentType.Json,
|
|
1960
|
-
format: "json",
|
|
1961
|
-
...params,
|
|
1962
|
-
}),
|
|
1963
|
-
};
|
|
1964
|
-
}
|