rehive 4.2.1 → 4.3.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/dist/admin.d.mts +2003 -539
- package/dist/admin.d.ts +2003 -539
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/chunk-HSNZ57ET.mjs +6 -0
- package/dist/chunk-KOUIKOXX.mjs +1 -0
- package/dist/chunk-M6Z3PA5D.js +6 -0
- package/dist/{chunk-HXAEBUQM.js → chunk-MAMZSYFF.js} +1 -1
- package/dist/chunk-OP7MQ6KX.js +1 -0
- package/dist/{chunk-A53KSFBA.mjs → chunk-QKHQP5JT.mjs} +1 -1
- package/dist/chunk-WNBM6WBC.mjs +6 -0
- package/dist/chunk-YPGO2Y5R.js +6 -0
- package/dist/{create-api-client-CgvKBlQ_.d.ts → create-api-client-C02JVdcx.d.ts} +1 -1
- package/dist/{create-api-client-Bkkri-AM.d.mts → create-api-client-DvXFNRl7.d.mts} +1 -1
- package/dist/{create-auth-ChOASbvo.d.mts → create-auth-9l3wfvKL.d.mts} +861 -234
- package/dist/{create-auth-ChOASbvo.d.ts → create-auth-9l3wfvKL.d.ts} +861 -234
- package/dist/extensions/alchemy.d.mts +288 -34
- package/dist/extensions/alchemy.d.ts +288 -34
- package/dist/extensions/alchemy.js +5 -5
- package/dist/extensions/alchemy.mjs +5 -5
- package/dist/extensions/app.d.mts +67 -54
- package/dist/extensions/app.d.ts +67 -54
- package/dist/extensions/app.js +5 -5
- package/dist/extensions/app.mjs +5 -5
- package/dist/extensions/billing.d.mts +32 -19
- package/dist/extensions/billing.d.ts +32 -19
- package/dist/extensions/billing.js +5 -5
- package/dist/extensions/billing.mjs +5 -5
- package/dist/extensions/bridge.d.mts +120 -74
- package/dist/extensions/bridge.d.ts +120 -74
- package/dist/extensions/bridge.js +5 -5
- package/dist/extensions/bridge.mjs +5 -5
- package/dist/extensions/builder.d.mts +24 -11
- package/dist/extensions/builder.d.ts +24 -11
- package/dist/extensions/builder.js +5 -5
- package/dist/extensions/builder.mjs +5 -5
- package/dist/extensions/business.d.mts +206 -102
- package/dist/extensions/business.d.ts +206 -102
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +79 -66
- package/dist/extensions/conversion.d.ts +79 -66
- package/dist/extensions/conversion.js +5 -5
- package/dist/extensions/conversion.mjs +5 -5
- package/dist/extensions/mass-send.d.mts +43 -30
- package/dist/extensions/mass-send.d.ts +43 -30
- package/dist/extensions/mass-send.js +5 -5
- package/dist/extensions/mass-send.mjs +5 -5
- package/dist/extensions/mukuru.d.mts +1068 -0
- package/dist/extensions/mukuru.d.ts +1068 -0
- package/dist/extensions/mukuru.js +6 -0
- package/dist/extensions/mukuru.mjs +6 -0
- package/dist/extensions/notifications.d.mts +60 -47
- package/dist/extensions/notifications.d.ts +60 -47
- package/dist/extensions/notifications.js +5 -5
- package/dist/extensions/notifications.mjs +5 -5
- package/dist/extensions/payment-requests.d.mts +96 -83
- package/dist/extensions/payment-requests.d.ts +96 -83
- package/dist/extensions/payment-requests.js +5 -5
- package/dist/extensions/payment-requests.mjs +5 -5
- package/dist/extensions/products.d.mts +260 -247
- package/dist/extensions/products.d.ts +260 -247
- package/dist/extensions/products.js +5 -5
- package/dist/extensions/products.mjs +5 -5
- package/dist/extensions/rain.d.mts +121 -34
- package/dist/extensions/rain.d.ts +121 -34
- package/dist/extensions/rain.js +5 -5
- package/dist/extensions/rain.mjs +5 -5
- package/dist/extensions/rewards.d.mts +49 -36
- package/dist/extensions/rewards.d.ts +49 -36
- package/dist/extensions/rewards.js +5 -5
- package/dist/extensions/rewards.mjs +5 -5
- package/dist/extensions/stellar-testnet.d.mts +120 -107
- package/dist/extensions/stellar-testnet.d.ts +120 -107
- package/dist/extensions/stellar-testnet.js +5 -5
- package/dist/extensions/stellar-testnet.mjs +5 -5
- package/dist/extensions/stellar.d.mts +120 -107
- package/dist/extensions/stellar.d.ts +120 -107
- package/dist/extensions/stellar.js +5 -5
- package/dist/extensions/stellar.mjs +5 -5
- package/dist/extensions/sumsub.d.mts +1309 -0
- package/dist/extensions/sumsub.d.ts +1309 -0
- package/dist/extensions/sumsub.js +6 -0
- package/dist/extensions/sumsub.mjs +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +229 -216
- package/dist/user.d.ts +229 -216
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +14 -4
- package/src/auth/create-auth.ts +774 -170
- package/src/auth/index.ts +25 -2
- package/src/auth/types/index.ts +48 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/alchemy/openapi-ts/client/index.ts +1 -0
- package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/alchemy/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/alchemy/openapi-ts/index.ts +2 -2
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +60 -28
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +258 -1
- package/src/extensions/app/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/app/openapi-ts/client/index.ts +1 -0
- package/src/extensions/app/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/app/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/app/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/app/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/app/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/app/openapi-ts/sdk.gen.ts +264 -92
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/billing/openapi-ts/client/index.ts +1 -0
- package/src/extensions/billing/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/billing/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/billing/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/billing/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/billing/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +14 -14
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/bridge/openapi-ts/client/index.ts +1 -0
- package/src/extensions/bridge/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/bridge/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/bridge/openapi-ts/index.ts +1 -1
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +60 -60
- package/src/extensions/bridge/openapi-ts/types.gen.ts +44 -9
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/builder/openapi-ts/client/index.ts +1 -0
- package/src/extensions/builder/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/builder/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/builder/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/builder/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/builder/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +6 -6
- package/src/extensions/business/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/business/openapi-ts/client/index.ts +1 -0
- package/src/extensions/business/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/business/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/business/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/business/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/business/openapi-ts/index.ts +1 -1
- package/src/extensions/business/openapi-ts/sdk.gen.ts +85 -85
- package/src/extensions/business/openapi-ts/types.gen.ts +104 -11
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/conversion/openapi-ts/client/index.ts +1 -0
- package/src/extensions/conversion/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/conversion/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +61 -61
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/mass-send/openapi-ts/client/index.ts +1 -0
- package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/mass-send/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +25 -25
- package/src/extensions/mukuru/create-api.ts +13 -0
- package/src/extensions/mukuru/index.ts +3 -0
- package/src/extensions/mukuru/openapi-ts/client/client.gen.ts +277 -0
- package/src/extensions/mukuru/openapi-ts/client/index.ts +26 -0
- package/src/extensions/mukuru/openapi-ts/client/types.gen.ts +218 -0
- package/src/extensions/mukuru/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/mukuru/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/mukuru/openapi-ts/core/auth.gen.ts +48 -0
- package/src/extensions/mukuru/openapi-ts/core/bodySerializer.gen.ts +82 -0
- package/src/extensions/mukuru/openapi-ts/core/params.gen.ts +171 -0
- package/src/extensions/mukuru/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/mukuru/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/mukuru/openapi-ts/core/serverSentEvents.gen.ts +242 -0
- package/src/extensions/mukuru/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/mukuru/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/mukuru/openapi-ts/index.ts +4 -0
- package/src/extensions/mukuru/openapi-ts/sdk.gen.ts +170 -0
- package/src/extensions/mukuru/openapi-ts/types.gen.ts +778 -0
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/notifications/openapi-ts/client/index.ts +1 -0
- package/src/extensions/notifications/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/notifications/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +42 -42
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +1 -0
- package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/payment-requests/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +78 -78
- package/src/extensions/products/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/products/openapi-ts/client/index.ts +1 -0
- package/src/extensions/products/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/products/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/products/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/products/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/products/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/products/openapi-ts/sdk.gen.ts +242 -242
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/rain/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rain/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/rain/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/rain/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/rain/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/rain/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/rain/openapi-ts/index.ts +2 -2
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +34 -28
- package/src/extensions/rain/openapi-ts/types.gen.ts +79 -0
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/rewards/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rewards/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/rewards/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +31 -31
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/stellar/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/stellar/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +102 -102
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +112 -133
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +7 -4
- package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +12 -12
- package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +2 -2
- package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +7 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +14 -12
- package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +4 -4
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +102 -102
- package/src/extensions/sumsub/create-api.ts +13 -0
- package/src/extensions/sumsub/index.ts +3 -0
- package/src/extensions/sumsub/openapi-ts/client/client.gen.ts +277 -0
- package/src/extensions/sumsub/openapi-ts/client/index.ts +26 -0
- package/src/extensions/sumsub/openapi-ts/client/types.gen.ts +218 -0
- package/src/extensions/sumsub/openapi-ts/client/utils.gen.ts +316 -0
- package/src/extensions/sumsub/openapi-ts/client.gen.ts +16 -0
- package/src/extensions/sumsub/openapi-ts/core/auth.gen.ts +48 -0
- package/src/extensions/sumsub/openapi-ts/core/bodySerializer.gen.ts +82 -0
- package/src/extensions/sumsub/openapi-ts/core/params.gen.ts +171 -0
- package/src/extensions/sumsub/openapi-ts/core/pathSerializer.gen.ts +171 -0
- package/src/extensions/sumsub/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
- package/src/extensions/sumsub/openapi-ts/core/serverSentEvents.gen.ts +242 -0
- package/src/extensions/sumsub/openapi-ts/core/types.gen.ts +104 -0
- package/src/extensions/sumsub/openapi-ts/core/utils.gen.ts +140 -0
- package/src/extensions/sumsub/openapi-ts/index.ts +4 -0
- package/src/extensions/sumsub/openapi-ts/sdk.gen.ts +225 -0
- package/src/extensions/sumsub/openapi-ts/types.gen.ts +1039 -0
- package/src/platform/admin/openapi-ts/client/client.gen.ts +112 -133
- package/src/platform/admin/openapi-ts/client/index.ts +1 -0
- package/src/platform/admin/openapi-ts/client/types.gen.ts +7 -4
- package/src/platform/admin/openapi-ts/client/utils.gen.ts +12 -12
- package/src/platform/admin/openapi-ts/client.gen.ts +2 -2
- package/src/platform/admin/openapi-ts/core/auth.gen.ts +7 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +14 -12
- package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/core/utils.gen.ts +4 -4
- package/src/platform/admin/openapi-ts/index.ts +2 -2
- package/src/platform/admin/openapi-ts/sdk.gen.ts +481 -372
- package/src/platform/admin/openapi-ts/types.gen.ts +1651 -150
- package/src/platform/user/openapi-ts/client/client.gen.ts +112 -133
- package/src/platform/user/openapi-ts/client/index.ts +1 -0
- package/src/platform/user/openapi-ts/client/types.gen.ts +7 -4
- package/src/platform/user/openapi-ts/client/utils.gen.ts +12 -12
- package/src/platform/user/openapi-ts/client.gen.ts +2 -2
- package/src/platform/user/openapi-ts/core/auth.gen.ts +7 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +14 -12
- package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +6 -6
- package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +1 -1
- package/src/platform/user/openapi-ts/core/utils.gen.ts +4 -4
- package/src/platform/user/openapi-ts/index.ts +1 -1
- package/src/platform/user/openapi-ts/sdk.gen.ts +1101 -389
- package/src/platform/user/openapi-ts/types.gen.ts +818 -230
- package/dist/chunk-CRNPJD3E.js +0 -6
- package/dist/chunk-IJBXROTB.mjs +0 -6
- package/dist/chunk-OV77OD2G.js +0 -1
- package/dist/chunk-RO2QGTSG.mjs +0 -1
- package/dist/chunk-TAABJLJG.mjs +0 -6
- package/dist/chunk-Y33FT632.js +0 -6
|
@@ -0,0 +1,1309 @@
|
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-DvXFNRl7.mjs';
|
|
2
|
+
import '../create-auth-9l3wfvKL.mjs';
|
|
3
|
+
|
|
4
|
+
type AuthToken = string | undefined;
|
|
5
|
+
interface Auth {
|
|
6
|
+
/**
|
|
7
|
+
* Which part of the request do we use to send the auth?
|
|
8
|
+
*
|
|
9
|
+
* @default 'header'
|
|
10
|
+
*/
|
|
11
|
+
in?: 'header' | 'query' | 'cookie';
|
|
12
|
+
/**
|
|
13
|
+
* A unique identifier for the security scheme.
|
|
14
|
+
*
|
|
15
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
16
|
+
* shape would otherwise be identical.
|
|
17
|
+
*/
|
|
18
|
+
key?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Header or query parameter name.
|
|
21
|
+
*
|
|
22
|
+
* @default 'Authorization'
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
scheme?: 'basic' | 'bearer';
|
|
26
|
+
type: 'apiKey' | 'http';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface SerializerOptions<T> {
|
|
30
|
+
/**
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
explode: boolean;
|
|
34
|
+
style: T;
|
|
35
|
+
}
|
|
36
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
37
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
38
|
+
|
|
39
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
40
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
41
|
+
type QuerySerializerOptionsObject = {
|
|
42
|
+
allowReserved?: boolean;
|
|
43
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
44
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
45
|
+
};
|
|
46
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
47
|
+
/**
|
|
48
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
49
|
+
* override the global array/object settings for specific parameter names.
|
|
50
|
+
*/
|
|
51
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
55
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
56
|
+
/**
|
|
57
|
+
* Returns the final request URL.
|
|
58
|
+
*/
|
|
59
|
+
buildUrl: BuildUrlFn;
|
|
60
|
+
getConfig: () => Config;
|
|
61
|
+
request: RequestFn;
|
|
62
|
+
setConfig: (config: Config) => Config;
|
|
63
|
+
} & {
|
|
64
|
+
[K in HttpMethod]: MethodFn;
|
|
65
|
+
} & ([SseFn] extends [never] ? {
|
|
66
|
+
sse?: never;
|
|
67
|
+
} : {
|
|
68
|
+
sse: {
|
|
69
|
+
[K in HttpMethod]: SseFn;
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
interface Config$1 {
|
|
73
|
+
/**
|
|
74
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
75
|
+
* added to the request payload as defined by its `security` array.
|
|
76
|
+
*/
|
|
77
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
78
|
+
/**
|
|
79
|
+
* A function for serializing request body parameter. By default,
|
|
80
|
+
* {@link JSON.stringify()} will be used.
|
|
81
|
+
*/
|
|
82
|
+
bodySerializer?: BodySerializer | null;
|
|
83
|
+
/**
|
|
84
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
85
|
+
* `Headers` object with.
|
|
86
|
+
*
|
|
87
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
88
|
+
*/
|
|
89
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* The request method.
|
|
92
|
+
*
|
|
93
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
94
|
+
*/
|
|
95
|
+
method?: Uppercase<HttpMethod>;
|
|
96
|
+
/**
|
|
97
|
+
* A function for serializing request query parameters. By default, arrays
|
|
98
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
99
|
+
* style, and reserved characters are percent-encoded.
|
|
100
|
+
*
|
|
101
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
102
|
+
* API function is used.
|
|
103
|
+
*
|
|
104
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
105
|
+
*/
|
|
106
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
107
|
+
/**
|
|
108
|
+
* A function validating request data. This is useful if you want to ensure
|
|
109
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
110
|
+
* the server.
|
|
111
|
+
*/
|
|
112
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* A function transforming response data before it's returned. This is useful
|
|
115
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
116
|
+
*/
|
|
117
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* A function validating response data. This is useful if you want to ensure
|
|
120
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
121
|
+
* the transformers and returned to the user.
|
|
122
|
+
*/
|
|
123
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
127
|
+
/**
|
|
128
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
129
|
+
* fetch instance.
|
|
130
|
+
*
|
|
131
|
+
* @default globalThis.fetch
|
|
132
|
+
*/
|
|
133
|
+
fetch?: typeof fetch;
|
|
134
|
+
/**
|
|
135
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
136
|
+
*/
|
|
137
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
138
|
+
/**
|
|
139
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
140
|
+
*
|
|
141
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
142
|
+
*
|
|
143
|
+
* @param error The error that occurred.
|
|
144
|
+
*/
|
|
145
|
+
onSseError?: (error: unknown) => void;
|
|
146
|
+
/**
|
|
147
|
+
* Callback invoked when an event is streamed from the server.
|
|
148
|
+
*
|
|
149
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
150
|
+
*
|
|
151
|
+
* @param event Event streamed from the server.
|
|
152
|
+
* @returns Nothing (void).
|
|
153
|
+
*/
|
|
154
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
155
|
+
serializedBody?: RequestInit['body'];
|
|
156
|
+
/**
|
|
157
|
+
* Default retry delay in milliseconds.
|
|
158
|
+
*
|
|
159
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
160
|
+
*
|
|
161
|
+
* @default 3000
|
|
162
|
+
*/
|
|
163
|
+
sseDefaultRetryDelay?: number;
|
|
164
|
+
/**
|
|
165
|
+
* Maximum number of retry attempts before giving up.
|
|
166
|
+
*/
|
|
167
|
+
sseMaxRetryAttempts?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Maximum retry delay in milliseconds.
|
|
170
|
+
*
|
|
171
|
+
* Applies only when exponential backoff is used.
|
|
172
|
+
*
|
|
173
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
174
|
+
*
|
|
175
|
+
* @default 30000
|
|
176
|
+
*/
|
|
177
|
+
sseMaxRetryDelay?: number;
|
|
178
|
+
/**
|
|
179
|
+
* Optional sleep function for retry backoff.
|
|
180
|
+
*
|
|
181
|
+
* Defaults to using `setTimeout`.
|
|
182
|
+
*/
|
|
183
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
184
|
+
url: string;
|
|
185
|
+
};
|
|
186
|
+
interface StreamEvent<TData = unknown> {
|
|
187
|
+
data: TData;
|
|
188
|
+
event?: string;
|
|
189
|
+
id?: string;
|
|
190
|
+
retry?: number;
|
|
191
|
+
}
|
|
192
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
193
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
197
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
198
|
+
response: Res | undefined,
|
|
199
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
200
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
201
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
202
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
203
|
+
declare class Interceptors<Interceptor> {
|
|
204
|
+
fns: Array<Interceptor | null>;
|
|
205
|
+
clear(): void;
|
|
206
|
+
eject(id: number | Interceptor): void;
|
|
207
|
+
exists(id: number | Interceptor): boolean;
|
|
208
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
209
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
210
|
+
use(fn: Interceptor): number;
|
|
211
|
+
}
|
|
212
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
213
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
214
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
215
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type ResponseStyle = 'data' | 'fields';
|
|
219
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
220
|
+
/**
|
|
221
|
+
* Base URL for all requests made by this client.
|
|
222
|
+
*/
|
|
223
|
+
baseUrl?: T['baseUrl'];
|
|
224
|
+
/**
|
|
225
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
226
|
+
* fetch instance.
|
|
227
|
+
*
|
|
228
|
+
* @default globalThis.fetch
|
|
229
|
+
*/
|
|
230
|
+
fetch?: typeof fetch;
|
|
231
|
+
/**
|
|
232
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
233
|
+
* options won't have any effect.
|
|
234
|
+
*
|
|
235
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
236
|
+
*/
|
|
237
|
+
next?: never;
|
|
238
|
+
/**
|
|
239
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
240
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
241
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
242
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
243
|
+
*
|
|
244
|
+
* @default 'auto'
|
|
245
|
+
*/
|
|
246
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
247
|
+
/**
|
|
248
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
249
|
+
*
|
|
250
|
+
* @default 'fields'
|
|
251
|
+
*/
|
|
252
|
+
responseStyle?: ResponseStyle;
|
|
253
|
+
/**
|
|
254
|
+
* Throw an error instead of returning it in the response?
|
|
255
|
+
*
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
throwOnError?: T['throwOnError'];
|
|
259
|
+
}
|
|
260
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'data', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
261
|
+
responseStyle: TResponseStyle;
|
|
262
|
+
throwOnError: ThrowOnError;
|
|
263
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
264
|
+
/**
|
|
265
|
+
* Any body that you want to add to your request.
|
|
266
|
+
*
|
|
267
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
268
|
+
*/
|
|
269
|
+
body?: unknown;
|
|
270
|
+
path?: Record<string, unknown>;
|
|
271
|
+
query?: Record<string, unknown>;
|
|
272
|
+
/**
|
|
273
|
+
* Security mechanism(s) to use for the request.
|
|
274
|
+
*/
|
|
275
|
+
security?: ReadonlyArray<Auth>;
|
|
276
|
+
url: Url;
|
|
277
|
+
}
|
|
278
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'data', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
279
|
+
headers: Headers;
|
|
280
|
+
serializedBody?: string;
|
|
281
|
+
}
|
|
282
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'data'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
283
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
284
|
+
request: Request;
|
|
285
|
+
response: Response;
|
|
286
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
287
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
288
|
+
error: undefined;
|
|
289
|
+
} | {
|
|
290
|
+
data: undefined;
|
|
291
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
292
|
+
}) & {
|
|
293
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
294
|
+
request?: Request;
|
|
295
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
296
|
+
response?: Response;
|
|
297
|
+
}>;
|
|
298
|
+
interface ClientOptions$1 {
|
|
299
|
+
baseUrl?: string;
|
|
300
|
+
responseStyle?: ResponseStyle;
|
|
301
|
+
throwOnError?: boolean;
|
|
302
|
+
}
|
|
303
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
304
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
305
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'data'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
306
|
+
type BuildUrlFn = <TData extends {
|
|
307
|
+
body?: unknown;
|
|
308
|
+
path?: Record<string, unknown>;
|
|
309
|
+
query?: Record<string, unknown>;
|
|
310
|
+
url: string;
|
|
311
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
312
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
313
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
314
|
+
};
|
|
315
|
+
interface TDataShape {
|
|
316
|
+
body?: unknown;
|
|
317
|
+
headers?: unknown;
|
|
318
|
+
path?: unknown;
|
|
319
|
+
query?: unknown;
|
|
320
|
+
url: string;
|
|
321
|
+
}
|
|
322
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
323
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'data'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
324
|
+
|
|
325
|
+
type ClientOptions = {
|
|
326
|
+
baseUrl: 'https://sumsub.services.rehive.com/api/' | (string & {});
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* This serializer can be used if only a `status` is required in the response.
|
|
330
|
+
*/
|
|
331
|
+
type ActionResponse = {
|
|
332
|
+
status: string;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Serialize the activation data, should be a token that represents an admin
|
|
336
|
+
* user.
|
|
337
|
+
*/
|
|
338
|
+
type Activate = {
|
|
339
|
+
token: string;
|
|
340
|
+
readonly id: string;
|
|
341
|
+
readonly name: string;
|
|
342
|
+
readonly secret: string;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* A ModelSerializer that takes additional arguments for
|
|
346
|
+
* "fields", "omit" and "expand" in order to
|
|
347
|
+
* control which fields are displayed, and whether to replace simple
|
|
348
|
+
* values with complex, nested serializations
|
|
349
|
+
*/
|
|
350
|
+
type AdminCompany = {
|
|
351
|
+
readonly id: string;
|
|
352
|
+
readonly secret: string;
|
|
353
|
+
/**
|
|
354
|
+
* * `test` - Test
|
|
355
|
+
* * `production` - Production
|
|
356
|
+
*/
|
|
357
|
+
readonly mode: 'test' | 'production';
|
|
358
|
+
sumsub_app_token: string;
|
|
359
|
+
sumsub_secret_key: string;
|
|
360
|
+
sumsub_webhook_secret_key: string;
|
|
361
|
+
readonly supported_groups: {
|
|
362
|
+
[key: string]: {
|
|
363
|
+
sumsub_verification_level: string;
|
|
364
|
+
sumsub_type: 'individual' | 'company';
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
type AdminCompanyResponse = {
|
|
369
|
+
status: string;
|
|
370
|
+
data: AdminCompany;
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* A ModelSerializer that takes additional arguments for
|
|
374
|
+
* "fields", "omit" and "expand" in order to
|
|
375
|
+
* control which fields are displayed, and whether to replace simple
|
|
376
|
+
* values with complex, nested serializations
|
|
377
|
+
*/
|
|
378
|
+
type AdminCurrency = {
|
|
379
|
+
readonly code: string;
|
|
380
|
+
readonly display_code: string | null;
|
|
381
|
+
readonly description: string | null;
|
|
382
|
+
readonly symbol: string | null;
|
|
383
|
+
readonly unit: string | null;
|
|
384
|
+
readonly divisibility: number;
|
|
385
|
+
readonly manager: string | null;
|
|
386
|
+
};
|
|
387
|
+
type AdminCurrencyResponse = {
|
|
388
|
+
status: string;
|
|
389
|
+
data: AdminCurrency;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Mapping between a platform document type id and a Sumsub document type.
|
|
393
|
+
* Scoped to the requesting admin's company (enforced by the view).
|
|
394
|
+
*/
|
|
395
|
+
type AdminDocumentType = {
|
|
396
|
+
readonly id: string;
|
|
397
|
+
platform_type: string;
|
|
398
|
+
/**
|
|
399
|
+
* * `ID_CARD` - Id Card
|
|
400
|
+
* * `PASSPORT` - Passport
|
|
401
|
+
* * `DRIVERS` - Drivers
|
|
402
|
+
* * `RESIDENCE_PERMIT` - Residence Permit
|
|
403
|
+
* * `UTILITY_BILL` - Utility Bill
|
|
404
|
+
* * `SELFIE` - Selfie
|
|
405
|
+
* * `VIDEO_SELFIE` - Video Selfie
|
|
406
|
+
* * `PROFILE_IMAGE` - Profile Image
|
|
407
|
+
* * `ID_DOC_PHOTO` - Id Doc Photo
|
|
408
|
+
* * `AGREEMENT` - Agreement
|
|
409
|
+
* * `CONTRACT` - Contract
|
|
410
|
+
* * `DRIVERS_TRANSLATION` - Drivers Translation
|
|
411
|
+
* * `INVESTOR_DOC` - Investor Doc
|
|
412
|
+
* * `VEHICLE_REGISTRATION_CERTIFICATE` - Vehicle Registration Certificate
|
|
413
|
+
* * `INCOME_SOURCE` - Income Source
|
|
414
|
+
* * `PAYMENT_METHOD` - Payment Method
|
|
415
|
+
* * `BANK_CARD` - Bank Card
|
|
416
|
+
* * `ARBITRARY_DOC` - Arbitrary Doc
|
|
417
|
+
* * `OTHER` - Other
|
|
418
|
+
*/
|
|
419
|
+
sumsub_type: 'ID_CARD' | 'PASSPORT' | 'DRIVERS' | 'RESIDENCE_PERMIT' | 'UTILITY_BILL' | 'SELFIE' | 'VIDEO_SELFIE' | 'PROFILE_IMAGE' | 'ID_DOC_PHOTO' | 'AGREEMENT' | 'CONTRACT' | 'DRIVERS_TRANSLATION' | 'INVESTOR_DOC' | 'VEHICLE_REGISTRATION_CERTIFICATE' | 'INCOME_SOURCE' | 'PAYMENT_METHOD' | 'BANK_CARD' | 'ARBITRARY_DOC' | 'OTHER';
|
|
420
|
+
/**
|
|
421
|
+
* * `single` - Single
|
|
422
|
+
* * `double` - Double
|
|
423
|
+
*/
|
|
424
|
+
kind?: 'single' | 'double';
|
|
425
|
+
readonly created: number;
|
|
426
|
+
readonly updated: number;
|
|
427
|
+
};
|
|
428
|
+
type AdminDocumentTypeResponse = {
|
|
429
|
+
status: string;
|
|
430
|
+
data: AdminDocumentType;
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* A ModelSerializer that takes additional arguments for
|
|
434
|
+
* "fields", "omit" and "expand" in order to
|
|
435
|
+
* control which fields are displayed, and whether to replace simple
|
|
436
|
+
* values with complex, nested serializations
|
|
437
|
+
*/
|
|
438
|
+
type AdminUpdateCompany = {
|
|
439
|
+
readonly id: string;
|
|
440
|
+
readonly secret: string;
|
|
441
|
+
/**
|
|
442
|
+
* * `test` - Test
|
|
443
|
+
* * `production` - Production
|
|
444
|
+
*/
|
|
445
|
+
readonly mode: 'test' | 'production';
|
|
446
|
+
sumsub_app_token?: string;
|
|
447
|
+
sumsub_secret_key?: string;
|
|
448
|
+
sumsub_webhook_secret_key?: string;
|
|
449
|
+
supported_groups?: {
|
|
450
|
+
[key: string]: {
|
|
451
|
+
sumsub_verification_level: string;
|
|
452
|
+
sumsub_type: 'individual' | 'company';
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Admin-facing user serializer. Includes the internal `sumsub_client_comment`
|
|
458
|
+
* (not safe for end users) plus created/updated timestamps. All fields are
|
|
459
|
+
* read-only.
|
|
460
|
+
*/
|
|
461
|
+
type AdminUser = {
|
|
462
|
+
readonly id: string;
|
|
463
|
+
readonly sumsub_id: string;
|
|
464
|
+
readonly sumsub_verification_level: string | null;
|
|
465
|
+
/**
|
|
466
|
+
* * `individual` - Individual
|
|
467
|
+
* * `company` - Company
|
|
468
|
+
*/
|
|
469
|
+
readonly sumsub_type: 'individual' | 'company' | null;
|
|
470
|
+
/**
|
|
471
|
+
* * `init` - Init
|
|
472
|
+
* * `pending` - Pending
|
|
473
|
+
* * `prechecked` - Prechecked
|
|
474
|
+
* * `queued` - Queued
|
|
475
|
+
* * `completed` - Completed
|
|
476
|
+
* * `onHold` - On Hold
|
|
477
|
+
* * `awaitingService` - Awaiting Service
|
|
478
|
+
* * `awaitingUser` - Awaiting User
|
|
479
|
+
*/
|
|
480
|
+
readonly sumsub_review_status: 'init' | 'pending' | 'prechecked' | 'queued' | 'completed' | 'onHold' | 'awaitingService' | 'awaitingUser';
|
|
481
|
+
/**
|
|
482
|
+
* * `GREEN` - Green
|
|
483
|
+
* * `RED` - Red
|
|
484
|
+
*/
|
|
485
|
+
readonly sumsub_review_answer: 'GREEN' | 'RED' | null;
|
|
486
|
+
/**
|
|
487
|
+
* * `FINAL` - Final
|
|
488
|
+
* * `RETRY` - Retry
|
|
489
|
+
*/
|
|
490
|
+
readonly sumsub_reject_type: 'FINAL' | 'RETRY' | null;
|
|
491
|
+
readonly sumsub_reject_labels: Array<string>;
|
|
492
|
+
readonly sumsub_moderation_comment: string | null;
|
|
493
|
+
readonly sumsub_client_comment: string | null;
|
|
494
|
+
readonly created: number;
|
|
495
|
+
readonly updated: number;
|
|
496
|
+
};
|
|
497
|
+
type AdminUserResponse = {
|
|
498
|
+
status: string;
|
|
499
|
+
data: AdminUser;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Generate a Sumsub share token for the target admin user so another Sumsub
|
|
503
|
+
* client (identified by `client_id`) can reuse this applicant's identity.
|
|
504
|
+
*/
|
|
505
|
+
type AdminUserShareToken = {
|
|
506
|
+
client_id: string;
|
|
507
|
+
readonly token: string;
|
|
508
|
+
};
|
|
509
|
+
type AdminUserShareTokenResponse = {
|
|
510
|
+
status: string;
|
|
511
|
+
data: AdminUserShareToken;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Serialize the deactivation data, should be a token that represents an admin
|
|
515
|
+
* user.
|
|
516
|
+
*/
|
|
517
|
+
type Deactivate = {
|
|
518
|
+
token: string;
|
|
519
|
+
purge?: boolean;
|
|
520
|
+
};
|
|
521
|
+
type PaginatedAdminCurrencyList = {
|
|
522
|
+
count?: number;
|
|
523
|
+
next?: string | null;
|
|
524
|
+
previous?: string | null;
|
|
525
|
+
results?: Array<AdminCurrency>;
|
|
526
|
+
};
|
|
527
|
+
type PaginatedAdminCurrencyListResponse = {
|
|
528
|
+
status: string;
|
|
529
|
+
data: PaginatedAdminCurrencyList;
|
|
530
|
+
};
|
|
531
|
+
type PaginatedAdminDocumentTypeList = {
|
|
532
|
+
count?: number;
|
|
533
|
+
next?: string | null;
|
|
534
|
+
previous?: string | null;
|
|
535
|
+
results?: Array<AdminDocumentType>;
|
|
536
|
+
};
|
|
537
|
+
type PaginatedAdminDocumentTypeListResponse = {
|
|
538
|
+
status: string;
|
|
539
|
+
data: PaginatedAdminDocumentTypeList;
|
|
540
|
+
};
|
|
541
|
+
type PaginatedAdminUserList = {
|
|
542
|
+
count?: number;
|
|
543
|
+
next?: string | null;
|
|
544
|
+
previous?: string | null;
|
|
545
|
+
results?: Array<AdminUser>;
|
|
546
|
+
};
|
|
547
|
+
type PaginatedAdminUserListResponse = {
|
|
548
|
+
status: string;
|
|
549
|
+
data: PaginatedAdminUserList;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* A ModelSerializer that takes additional arguments for
|
|
553
|
+
* "fields", "omit" and "expand" in order to
|
|
554
|
+
* control which fields are displayed, and whether to replace simple
|
|
555
|
+
* values with complex, nested serializations
|
|
556
|
+
*/
|
|
557
|
+
type PatchedAdminCurrency = {
|
|
558
|
+
readonly code?: string;
|
|
559
|
+
readonly display_code?: string | null;
|
|
560
|
+
readonly description?: string | null;
|
|
561
|
+
readonly symbol?: string | null;
|
|
562
|
+
readonly unit?: string | null;
|
|
563
|
+
readonly divisibility?: number;
|
|
564
|
+
readonly manager?: string | null;
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Mapping between a platform document type id and a Sumsub document type.
|
|
568
|
+
* Scoped to the requesting admin's company (enforced by the view).
|
|
569
|
+
*/
|
|
570
|
+
type PatchedAdminDocumentType = {
|
|
571
|
+
readonly id?: string;
|
|
572
|
+
platform_type?: string;
|
|
573
|
+
/**
|
|
574
|
+
* * `ID_CARD` - Id Card
|
|
575
|
+
* * `PASSPORT` - Passport
|
|
576
|
+
* * `DRIVERS` - Drivers
|
|
577
|
+
* * `RESIDENCE_PERMIT` - Residence Permit
|
|
578
|
+
* * `UTILITY_BILL` - Utility Bill
|
|
579
|
+
* * `SELFIE` - Selfie
|
|
580
|
+
* * `VIDEO_SELFIE` - Video Selfie
|
|
581
|
+
* * `PROFILE_IMAGE` - Profile Image
|
|
582
|
+
* * `ID_DOC_PHOTO` - Id Doc Photo
|
|
583
|
+
* * `AGREEMENT` - Agreement
|
|
584
|
+
* * `CONTRACT` - Contract
|
|
585
|
+
* * `DRIVERS_TRANSLATION` - Drivers Translation
|
|
586
|
+
* * `INVESTOR_DOC` - Investor Doc
|
|
587
|
+
* * `VEHICLE_REGISTRATION_CERTIFICATE` - Vehicle Registration Certificate
|
|
588
|
+
* * `INCOME_SOURCE` - Income Source
|
|
589
|
+
* * `PAYMENT_METHOD` - Payment Method
|
|
590
|
+
* * `BANK_CARD` - Bank Card
|
|
591
|
+
* * `ARBITRARY_DOC` - Arbitrary Doc
|
|
592
|
+
* * `OTHER` - Other
|
|
593
|
+
*/
|
|
594
|
+
sumsub_type?: 'ID_CARD' | 'PASSPORT' | 'DRIVERS' | 'RESIDENCE_PERMIT' | 'UTILITY_BILL' | 'SELFIE' | 'VIDEO_SELFIE' | 'PROFILE_IMAGE' | 'ID_DOC_PHOTO' | 'AGREEMENT' | 'CONTRACT' | 'DRIVERS_TRANSLATION' | 'INVESTOR_DOC' | 'VEHICLE_REGISTRATION_CERTIFICATE' | 'INCOME_SOURCE' | 'PAYMENT_METHOD' | 'BANK_CARD' | 'ARBITRARY_DOC' | 'OTHER';
|
|
595
|
+
/**
|
|
596
|
+
* * `single` - Single
|
|
597
|
+
* * `double` - Double
|
|
598
|
+
*/
|
|
599
|
+
kind?: 'single' | 'double';
|
|
600
|
+
readonly created?: number;
|
|
601
|
+
readonly updated?: number;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* A ModelSerializer that takes additional arguments for
|
|
605
|
+
* "fields", "omit" and "expand" in order to
|
|
606
|
+
* control which fields are displayed, and whether to replace simple
|
|
607
|
+
* values with complex, nested serializations
|
|
608
|
+
*/
|
|
609
|
+
type PatchedAdminUpdateCompany = {
|
|
610
|
+
readonly id?: string;
|
|
611
|
+
readonly secret?: string;
|
|
612
|
+
/**
|
|
613
|
+
* * `test` - Test
|
|
614
|
+
* * `production` - Production
|
|
615
|
+
*/
|
|
616
|
+
readonly mode?: 'test' | 'production';
|
|
617
|
+
sumsub_app_token?: string;
|
|
618
|
+
sumsub_secret_key?: string;
|
|
619
|
+
sumsub_webhook_secret_key?: string;
|
|
620
|
+
supported_groups?: {
|
|
621
|
+
[key: string]: {
|
|
622
|
+
sumsub_verification_level: string;
|
|
623
|
+
sumsub_type: 'individual' | 'company';
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* A ModelSerializer that takes additional arguments for
|
|
629
|
+
* "fields", "omit" and "expand" in order to
|
|
630
|
+
* control which fields are displayed, and whether to replace simple
|
|
631
|
+
* values with complex, nested serializations
|
|
632
|
+
*/
|
|
633
|
+
type PatchedUser = {
|
|
634
|
+
readonly id?: string;
|
|
635
|
+
readonly sumsub_id?: string;
|
|
636
|
+
/**
|
|
637
|
+
* * `init` - Init
|
|
638
|
+
* * `pending` - Pending
|
|
639
|
+
* * `prechecked` - Prechecked
|
|
640
|
+
* * `queued` - Queued
|
|
641
|
+
* * `completed` - Completed
|
|
642
|
+
* * `onHold` - On Hold
|
|
643
|
+
* * `awaitingService` - Awaiting Service
|
|
644
|
+
* * `awaitingUser` - Awaiting User
|
|
645
|
+
*/
|
|
646
|
+
readonly sumsub_review_status?: 'init' | 'pending' | 'prechecked' | 'queued' | 'completed' | 'onHold' | 'awaitingService' | 'awaitingUser';
|
|
647
|
+
/**
|
|
648
|
+
* * `GREEN` - Green
|
|
649
|
+
* * `RED` - Red
|
|
650
|
+
*/
|
|
651
|
+
readonly sumsub_review_answer?: 'GREEN' | 'RED' | null;
|
|
652
|
+
/**
|
|
653
|
+
* * `FINAL` - Final
|
|
654
|
+
* * `RETRY` - Retry
|
|
655
|
+
*/
|
|
656
|
+
readonly sumsub_reject_type?: 'FINAL' | 'RETRY' | null;
|
|
657
|
+
readonly sumsub_reject_labels?: Array<string>;
|
|
658
|
+
readonly sumsub_moderation_comment?: string | null;
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Accept all Sumsub webhook events, but only log + process events listed in
|
|
662
|
+
* `SumsubWebhookEvent`. Signature is verified using HMAC-SHA512 over the raw
|
|
663
|
+
* request body, keyed by the company's webhook secret.
|
|
664
|
+
*/
|
|
665
|
+
type SumsubWebhook = {
|
|
666
|
+
type: string;
|
|
667
|
+
applicantId?: string | null;
|
|
668
|
+
createdAtMs?: string | null;
|
|
669
|
+
externalUserId?: string | null;
|
|
670
|
+
reviewStatus?: string | null;
|
|
671
|
+
reviewResult?: {
|
|
672
|
+
[key: string]: unknown;
|
|
673
|
+
} | null;
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* A ModelSerializer that takes additional arguments for
|
|
677
|
+
* "fields", "omit" and "expand" in order to
|
|
678
|
+
* control which fields are displayed, and whether to replace simple
|
|
679
|
+
* values with complex, nested serializations
|
|
680
|
+
*/
|
|
681
|
+
type User = {
|
|
682
|
+
readonly id: string;
|
|
683
|
+
readonly sumsub_id: string;
|
|
684
|
+
/**
|
|
685
|
+
* * `init` - Init
|
|
686
|
+
* * `pending` - Pending
|
|
687
|
+
* * `prechecked` - Prechecked
|
|
688
|
+
* * `queued` - Queued
|
|
689
|
+
* * `completed` - Completed
|
|
690
|
+
* * `onHold` - On Hold
|
|
691
|
+
* * `awaitingService` - Awaiting Service
|
|
692
|
+
* * `awaitingUser` - Awaiting User
|
|
693
|
+
*/
|
|
694
|
+
readonly sumsub_review_status: 'init' | 'pending' | 'prechecked' | 'queued' | 'completed' | 'onHold' | 'awaitingService' | 'awaitingUser';
|
|
695
|
+
/**
|
|
696
|
+
* * `GREEN` - Green
|
|
697
|
+
* * `RED` - Red
|
|
698
|
+
*/
|
|
699
|
+
readonly sumsub_review_answer: 'GREEN' | 'RED' | null;
|
|
700
|
+
/**
|
|
701
|
+
* * `FINAL` - Final
|
|
702
|
+
* * `RETRY` - Retry
|
|
703
|
+
*/
|
|
704
|
+
readonly sumsub_reject_type: 'FINAL' | 'RETRY' | null;
|
|
705
|
+
readonly sumsub_reject_labels: Array<string>;
|
|
706
|
+
readonly sumsub_moderation_comment: string | null;
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Generate a Sumsub access token for the authenticated user.
|
|
710
|
+
*
|
|
711
|
+
* Creates a Sumsub applicant for the user on first call (populating initial
|
|
712
|
+
* info from the Rehive platform resource), then issues a short-lived access
|
|
713
|
+
* token that can be used to initialize the Sumsub Web/Mobile SDK.
|
|
714
|
+
*/
|
|
715
|
+
type UserAccessToken = {
|
|
716
|
+
readonly token: string;
|
|
717
|
+
};
|
|
718
|
+
type UserAccessTokenResponse = {
|
|
719
|
+
status: string;
|
|
720
|
+
data: UserAccessToken;
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* A ModelSerializer that takes additional arguments for
|
|
724
|
+
* "fields", "omit" and "expand" in order to
|
|
725
|
+
* control which fields are displayed, and whether to replace simple
|
|
726
|
+
* values with complex, nested serializations
|
|
727
|
+
*/
|
|
728
|
+
type UserCompany = {
|
|
729
|
+
readonly id: string;
|
|
730
|
+
readonly supported_groups: {
|
|
731
|
+
[key: string]: {
|
|
732
|
+
sumsub_type: 'individual' | 'company';
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
type UserCompanyResponse = {
|
|
737
|
+
status: string;
|
|
738
|
+
data: UserCompany;
|
|
739
|
+
};
|
|
740
|
+
type UserResponse = {
|
|
741
|
+
status: string;
|
|
742
|
+
data: User;
|
|
743
|
+
};
|
|
744
|
+
type Webhook = {
|
|
745
|
+
id: string;
|
|
746
|
+
/**
|
|
747
|
+
* * `currency.create` - Currency Create
|
|
748
|
+
* * `currency.update` - Currency Update
|
|
749
|
+
*/
|
|
750
|
+
event: 'currency.create' | 'currency.update';
|
|
751
|
+
company: string;
|
|
752
|
+
data: {
|
|
753
|
+
[key: string]: unknown;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
/**
|
|
757
|
+
* A ModelSerializer that takes additional arguments for
|
|
758
|
+
* "fields", "omit" and "expand" in order to
|
|
759
|
+
* control which fields are displayed, and whether to replace simple
|
|
760
|
+
* values with complex, nested serializations
|
|
761
|
+
*/
|
|
762
|
+
type AdminCompanyWritable = {
|
|
763
|
+
sumsub_app_token: string;
|
|
764
|
+
sumsub_secret_key: string;
|
|
765
|
+
sumsub_webhook_secret_key: string;
|
|
766
|
+
};
|
|
767
|
+
type AdminCompanyResponseWritable = {
|
|
768
|
+
status: string;
|
|
769
|
+
data: AdminCompanyWritable;
|
|
770
|
+
};
|
|
771
|
+
type AdminCurrencyResponseWritable = {
|
|
772
|
+
status: string;
|
|
773
|
+
};
|
|
774
|
+
/**
|
|
775
|
+
* Mapping between a platform document type id and a Sumsub document type.
|
|
776
|
+
* Scoped to the requesting admin's company (enforced by the view).
|
|
777
|
+
*/
|
|
778
|
+
type AdminDocumentTypeWritable = {
|
|
779
|
+
platform_type: string;
|
|
780
|
+
/**
|
|
781
|
+
* * `ID_CARD` - Id Card
|
|
782
|
+
* * `PASSPORT` - Passport
|
|
783
|
+
* * `DRIVERS` - Drivers
|
|
784
|
+
* * `RESIDENCE_PERMIT` - Residence Permit
|
|
785
|
+
* * `UTILITY_BILL` - Utility Bill
|
|
786
|
+
* * `SELFIE` - Selfie
|
|
787
|
+
* * `VIDEO_SELFIE` - Video Selfie
|
|
788
|
+
* * `PROFILE_IMAGE` - Profile Image
|
|
789
|
+
* * `ID_DOC_PHOTO` - Id Doc Photo
|
|
790
|
+
* * `AGREEMENT` - Agreement
|
|
791
|
+
* * `CONTRACT` - Contract
|
|
792
|
+
* * `DRIVERS_TRANSLATION` - Drivers Translation
|
|
793
|
+
* * `INVESTOR_DOC` - Investor Doc
|
|
794
|
+
* * `VEHICLE_REGISTRATION_CERTIFICATE` - Vehicle Registration Certificate
|
|
795
|
+
* * `INCOME_SOURCE` - Income Source
|
|
796
|
+
* * `PAYMENT_METHOD` - Payment Method
|
|
797
|
+
* * `BANK_CARD` - Bank Card
|
|
798
|
+
* * `ARBITRARY_DOC` - Arbitrary Doc
|
|
799
|
+
* * `OTHER` - Other
|
|
800
|
+
*/
|
|
801
|
+
sumsub_type: 'ID_CARD' | 'PASSPORT' | 'DRIVERS' | 'RESIDENCE_PERMIT' | 'UTILITY_BILL' | 'SELFIE' | 'VIDEO_SELFIE' | 'PROFILE_IMAGE' | 'ID_DOC_PHOTO' | 'AGREEMENT' | 'CONTRACT' | 'DRIVERS_TRANSLATION' | 'INVESTOR_DOC' | 'VEHICLE_REGISTRATION_CERTIFICATE' | 'INCOME_SOURCE' | 'PAYMENT_METHOD' | 'BANK_CARD' | 'ARBITRARY_DOC' | 'OTHER';
|
|
802
|
+
/**
|
|
803
|
+
* * `single` - Single
|
|
804
|
+
* * `double` - Double
|
|
805
|
+
*/
|
|
806
|
+
kind?: 'single' | 'double';
|
|
807
|
+
};
|
|
808
|
+
type AdminDocumentTypeResponseWritable = {
|
|
809
|
+
status: string;
|
|
810
|
+
data: AdminDocumentTypeWritable;
|
|
811
|
+
};
|
|
812
|
+
/**
|
|
813
|
+
* A ModelSerializer that takes additional arguments for
|
|
814
|
+
* "fields", "omit" and "expand" in order to
|
|
815
|
+
* control which fields are displayed, and whether to replace simple
|
|
816
|
+
* values with complex, nested serializations
|
|
817
|
+
*/
|
|
818
|
+
type AdminUpdateCompanyWritable = {
|
|
819
|
+
sumsub_app_token?: string;
|
|
820
|
+
sumsub_secret_key?: string;
|
|
821
|
+
sumsub_webhook_secret_key?: string;
|
|
822
|
+
supported_groups?: {
|
|
823
|
+
[key: string]: {
|
|
824
|
+
sumsub_verification_level: string;
|
|
825
|
+
sumsub_type: 'individual' | 'company';
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
type AdminUserResponseWritable = {
|
|
830
|
+
status: string;
|
|
831
|
+
};
|
|
832
|
+
type PaginatedAdminCurrencyListWritable = {
|
|
833
|
+
count?: number;
|
|
834
|
+
next?: string | null;
|
|
835
|
+
previous?: string | null;
|
|
836
|
+
results?: Array<unknown>;
|
|
837
|
+
};
|
|
838
|
+
type PaginatedAdminCurrencyListResponseWritable = {
|
|
839
|
+
status: string;
|
|
840
|
+
data: PaginatedAdminCurrencyListWritable;
|
|
841
|
+
};
|
|
842
|
+
type PaginatedAdminDocumentTypeListWritable = {
|
|
843
|
+
count?: number;
|
|
844
|
+
next?: string | null;
|
|
845
|
+
previous?: string | null;
|
|
846
|
+
results?: Array<AdminDocumentTypeWritable>;
|
|
847
|
+
};
|
|
848
|
+
type PaginatedAdminDocumentTypeListResponseWritable = {
|
|
849
|
+
status: string;
|
|
850
|
+
data: PaginatedAdminDocumentTypeListWritable;
|
|
851
|
+
};
|
|
852
|
+
type PaginatedAdminUserListWritable = {
|
|
853
|
+
count?: number;
|
|
854
|
+
next?: string | null;
|
|
855
|
+
previous?: string | null;
|
|
856
|
+
results?: Array<unknown>;
|
|
857
|
+
};
|
|
858
|
+
type PaginatedAdminUserListResponseWritable = {
|
|
859
|
+
status: string;
|
|
860
|
+
data: PaginatedAdminUserListWritable;
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Mapping between a platform document type id and a Sumsub document type.
|
|
864
|
+
* Scoped to the requesting admin's company (enforced by the view).
|
|
865
|
+
*/
|
|
866
|
+
type PatchedAdminDocumentTypeWritable = {
|
|
867
|
+
platform_type?: string;
|
|
868
|
+
/**
|
|
869
|
+
* * `ID_CARD` - Id Card
|
|
870
|
+
* * `PASSPORT` - Passport
|
|
871
|
+
* * `DRIVERS` - Drivers
|
|
872
|
+
* * `RESIDENCE_PERMIT` - Residence Permit
|
|
873
|
+
* * `UTILITY_BILL` - Utility Bill
|
|
874
|
+
* * `SELFIE` - Selfie
|
|
875
|
+
* * `VIDEO_SELFIE` - Video Selfie
|
|
876
|
+
* * `PROFILE_IMAGE` - Profile Image
|
|
877
|
+
* * `ID_DOC_PHOTO` - Id Doc Photo
|
|
878
|
+
* * `AGREEMENT` - Agreement
|
|
879
|
+
* * `CONTRACT` - Contract
|
|
880
|
+
* * `DRIVERS_TRANSLATION` - Drivers Translation
|
|
881
|
+
* * `INVESTOR_DOC` - Investor Doc
|
|
882
|
+
* * `VEHICLE_REGISTRATION_CERTIFICATE` - Vehicle Registration Certificate
|
|
883
|
+
* * `INCOME_SOURCE` - Income Source
|
|
884
|
+
* * `PAYMENT_METHOD` - Payment Method
|
|
885
|
+
* * `BANK_CARD` - Bank Card
|
|
886
|
+
* * `ARBITRARY_DOC` - Arbitrary Doc
|
|
887
|
+
* * `OTHER` - Other
|
|
888
|
+
*/
|
|
889
|
+
sumsub_type?: 'ID_CARD' | 'PASSPORT' | 'DRIVERS' | 'RESIDENCE_PERMIT' | 'UTILITY_BILL' | 'SELFIE' | 'VIDEO_SELFIE' | 'PROFILE_IMAGE' | 'ID_DOC_PHOTO' | 'AGREEMENT' | 'CONTRACT' | 'DRIVERS_TRANSLATION' | 'INVESTOR_DOC' | 'VEHICLE_REGISTRATION_CERTIFICATE' | 'INCOME_SOURCE' | 'PAYMENT_METHOD' | 'BANK_CARD' | 'ARBITRARY_DOC' | 'OTHER';
|
|
890
|
+
/**
|
|
891
|
+
* * `single` - Single
|
|
892
|
+
* * `double` - Double
|
|
893
|
+
*/
|
|
894
|
+
kind?: 'single' | 'double';
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* A ModelSerializer that takes additional arguments for
|
|
898
|
+
* "fields", "omit" and "expand" in order to
|
|
899
|
+
* control which fields are displayed, and whether to replace simple
|
|
900
|
+
* values with complex, nested serializations
|
|
901
|
+
*/
|
|
902
|
+
type PatchedAdminUpdateCompanyWritable = {
|
|
903
|
+
sumsub_app_token?: string;
|
|
904
|
+
sumsub_secret_key?: string;
|
|
905
|
+
sumsub_webhook_secret_key?: string;
|
|
906
|
+
supported_groups?: {
|
|
907
|
+
[key: string]: {
|
|
908
|
+
sumsub_verification_level: string;
|
|
909
|
+
sumsub_type: 'individual' | 'company';
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
type UserAccessTokenResponseWritable = {
|
|
914
|
+
status: string;
|
|
915
|
+
};
|
|
916
|
+
/**
|
|
917
|
+
* A ModelSerializer that takes additional arguments for
|
|
918
|
+
* "fields", "omit" and "expand" in order to
|
|
919
|
+
* control which fields are displayed, and whether to replace simple
|
|
920
|
+
* values with complex, nested serializations
|
|
921
|
+
*/
|
|
922
|
+
type UserCompanyWritable = {
|
|
923
|
+
[key: string]: unknown;
|
|
924
|
+
};
|
|
925
|
+
type UserCompanyResponseWritable = {
|
|
926
|
+
status: string;
|
|
927
|
+
data: UserCompanyWritable;
|
|
928
|
+
};
|
|
929
|
+
type UserResponseWritable = {
|
|
930
|
+
status: string;
|
|
931
|
+
};
|
|
932
|
+
type ActivateCreateData = {
|
|
933
|
+
body: Activate;
|
|
934
|
+
path?: never;
|
|
935
|
+
query?: never;
|
|
936
|
+
url: '/activate/';
|
|
937
|
+
};
|
|
938
|
+
type ActivateCreateResponses = {
|
|
939
|
+
200: ActionResponse;
|
|
940
|
+
};
|
|
941
|
+
type ActivateCreateResponse = ActivateCreateResponses[keyof ActivateCreateResponses];
|
|
942
|
+
type AdminCompanyRetrieveData = {
|
|
943
|
+
body?: never;
|
|
944
|
+
path?: never;
|
|
945
|
+
query?: never;
|
|
946
|
+
url: '/admin/company/';
|
|
947
|
+
};
|
|
948
|
+
type AdminCompanyRetrieveResponses = {
|
|
949
|
+
200: AdminCompanyResponse;
|
|
950
|
+
};
|
|
951
|
+
type AdminCompanyRetrieveResponse = AdminCompanyRetrieveResponses[keyof AdminCompanyRetrieveResponses];
|
|
952
|
+
type AdminCompanyPartialUpdateData = {
|
|
953
|
+
body?: PatchedAdminUpdateCompanyWritable;
|
|
954
|
+
path?: never;
|
|
955
|
+
query?: never;
|
|
956
|
+
url: '/admin/company/';
|
|
957
|
+
};
|
|
958
|
+
type AdminCompanyPartialUpdateResponses = {
|
|
959
|
+
200: AdminCompanyResponse;
|
|
960
|
+
};
|
|
961
|
+
type AdminCompanyPartialUpdateResponse = AdminCompanyPartialUpdateResponses[keyof AdminCompanyPartialUpdateResponses];
|
|
962
|
+
type AdminCompanyUpdateData = {
|
|
963
|
+
body?: AdminUpdateCompanyWritable;
|
|
964
|
+
path?: never;
|
|
965
|
+
query?: never;
|
|
966
|
+
url: '/admin/company/';
|
|
967
|
+
};
|
|
968
|
+
type AdminCompanyUpdateResponses = {
|
|
969
|
+
200: AdminCompanyResponse;
|
|
970
|
+
};
|
|
971
|
+
type AdminCompanyUpdateResponse = AdminCompanyUpdateResponses[keyof AdminCompanyUpdateResponses];
|
|
972
|
+
type AdminCurrenciesListData = {
|
|
973
|
+
body?: never;
|
|
974
|
+
path?: never;
|
|
975
|
+
query?: {
|
|
976
|
+
/**
|
|
977
|
+
* A page number within the paginated result set.
|
|
978
|
+
*/
|
|
979
|
+
page?: number;
|
|
980
|
+
/**
|
|
981
|
+
* Number of results to return per page.
|
|
982
|
+
*/
|
|
983
|
+
page_size?: number;
|
|
984
|
+
};
|
|
985
|
+
url: '/admin/currencies/';
|
|
986
|
+
};
|
|
987
|
+
type AdminCurrenciesListResponses = {
|
|
988
|
+
200: PaginatedAdminCurrencyListResponse;
|
|
989
|
+
};
|
|
990
|
+
type AdminCurrenciesListResponse = AdminCurrenciesListResponses[keyof AdminCurrenciesListResponses];
|
|
991
|
+
type AdminCurrenciesRetrieveData = {
|
|
992
|
+
body?: never;
|
|
993
|
+
path: {
|
|
994
|
+
code: string;
|
|
995
|
+
};
|
|
996
|
+
query?: never;
|
|
997
|
+
url: '/admin/currencies/{code}/';
|
|
998
|
+
};
|
|
999
|
+
type AdminCurrenciesRetrieveResponses = {
|
|
1000
|
+
200: AdminCurrencyResponse;
|
|
1001
|
+
};
|
|
1002
|
+
type AdminCurrenciesRetrieveResponse = AdminCurrenciesRetrieveResponses[keyof AdminCurrenciesRetrieveResponses];
|
|
1003
|
+
type AdminCurrenciesPartialUpdateData = {
|
|
1004
|
+
body?: PatchedAdminCurrency;
|
|
1005
|
+
path: {
|
|
1006
|
+
code: string;
|
|
1007
|
+
};
|
|
1008
|
+
query?: never;
|
|
1009
|
+
url: '/admin/currencies/{code}/';
|
|
1010
|
+
};
|
|
1011
|
+
type AdminCurrenciesPartialUpdateResponses = {
|
|
1012
|
+
200: AdminCurrencyResponse;
|
|
1013
|
+
};
|
|
1014
|
+
type AdminCurrenciesPartialUpdateResponse = AdminCurrenciesPartialUpdateResponses[keyof AdminCurrenciesPartialUpdateResponses];
|
|
1015
|
+
type AdminCurrenciesUpdateData = {
|
|
1016
|
+
body?: AdminCurrency;
|
|
1017
|
+
path: {
|
|
1018
|
+
code: string;
|
|
1019
|
+
};
|
|
1020
|
+
query?: never;
|
|
1021
|
+
url: '/admin/currencies/{code}/';
|
|
1022
|
+
};
|
|
1023
|
+
type AdminCurrenciesUpdateResponses = {
|
|
1024
|
+
200: AdminCurrencyResponse;
|
|
1025
|
+
};
|
|
1026
|
+
type AdminCurrenciesUpdateResponse = AdminCurrenciesUpdateResponses[keyof AdminCurrenciesUpdateResponses];
|
|
1027
|
+
type AdminDocumentTypesListData = {
|
|
1028
|
+
body?: never;
|
|
1029
|
+
path?: never;
|
|
1030
|
+
query?: {
|
|
1031
|
+
id?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* A page number within the paginated result set.
|
|
1034
|
+
*/
|
|
1035
|
+
page?: number;
|
|
1036
|
+
/**
|
|
1037
|
+
* Number of results to return per page.
|
|
1038
|
+
*/
|
|
1039
|
+
page_size?: number;
|
|
1040
|
+
platform_type?: string;
|
|
1041
|
+
sumsub_type?: string;
|
|
1042
|
+
};
|
|
1043
|
+
url: '/admin/document-types/';
|
|
1044
|
+
};
|
|
1045
|
+
type AdminDocumentTypesListResponses = {
|
|
1046
|
+
200: PaginatedAdminDocumentTypeListResponse;
|
|
1047
|
+
};
|
|
1048
|
+
type AdminDocumentTypesListResponse = AdminDocumentTypesListResponses[keyof AdminDocumentTypesListResponses];
|
|
1049
|
+
type AdminDocumentTypesCreateData = {
|
|
1050
|
+
body: AdminDocumentTypeWritable;
|
|
1051
|
+
path?: never;
|
|
1052
|
+
query?: never;
|
|
1053
|
+
url: '/admin/document-types/';
|
|
1054
|
+
};
|
|
1055
|
+
type AdminDocumentTypesCreateResponses = {
|
|
1056
|
+
201: AdminDocumentTypeResponse;
|
|
1057
|
+
};
|
|
1058
|
+
type AdminDocumentTypesCreateResponse = AdminDocumentTypesCreateResponses[keyof AdminDocumentTypesCreateResponses];
|
|
1059
|
+
type AdminDocumentTypesDestroyData = {
|
|
1060
|
+
body?: never;
|
|
1061
|
+
path: {
|
|
1062
|
+
identifier: string;
|
|
1063
|
+
};
|
|
1064
|
+
query?: never;
|
|
1065
|
+
url: '/admin/document-types/{identifier}/';
|
|
1066
|
+
};
|
|
1067
|
+
type AdminDocumentTypesDestroyResponses = {
|
|
1068
|
+
200: AdminDocumentTypeResponse;
|
|
1069
|
+
};
|
|
1070
|
+
type AdminDocumentTypesDestroyResponse = AdminDocumentTypesDestroyResponses[keyof AdminDocumentTypesDestroyResponses];
|
|
1071
|
+
type AdminDocumentTypesRetrieveData = {
|
|
1072
|
+
body?: never;
|
|
1073
|
+
path: {
|
|
1074
|
+
identifier: string;
|
|
1075
|
+
};
|
|
1076
|
+
query?: never;
|
|
1077
|
+
url: '/admin/document-types/{identifier}/';
|
|
1078
|
+
};
|
|
1079
|
+
type AdminDocumentTypesRetrieveResponses = {
|
|
1080
|
+
200: AdminDocumentTypeResponse;
|
|
1081
|
+
};
|
|
1082
|
+
type AdminDocumentTypesRetrieveResponse = AdminDocumentTypesRetrieveResponses[keyof AdminDocumentTypesRetrieveResponses];
|
|
1083
|
+
type AdminDocumentTypesPartialUpdateData = {
|
|
1084
|
+
body?: PatchedAdminDocumentTypeWritable;
|
|
1085
|
+
path: {
|
|
1086
|
+
identifier: string;
|
|
1087
|
+
};
|
|
1088
|
+
query?: never;
|
|
1089
|
+
url: '/admin/document-types/{identifier}/';
|
|
1090
|
+
};
|
|
1091
|
+
type AdminDocumentTypesPartialUpdateResponses = {
|
|
1092
|
+
200: AdminDocumentTypeResponse;
|
|
1093
|
+
};
|
|
1094
|
+
type AdminDocumentTypesPartialUpdateResponse = AdminDocumentTypesPartialUpdateResponses[keyof AdminDocumentTypesPartialUpdateResponses];
|
|
1095
|
+
type AdminDocumentTypesUpdateData = {
|
|
1096
|
+
body: AdminDocumentTypeWritable;
|
|
1097
|
+
path: {
|
|
1098
|
+
identifier: string;
|
|
1099
|
+
};
|
|
1100
|
+
query?: never;
|
|
1101
|
+
url: '/admin/document-types/{identifier}/';
|
|
1102
|
+
};
|
|
1103
|
+
type AdminDocumentTypesUpdateResponses = {
|
|
1104
|
+
200: AdminDocumentTypeResponse;
|
|
1105
|
+
};
|
|
1106
|
+
type AdminDocumentTypesUpdateResponse = AdminDocumentTypesUpdateResponses[keyof AdminDocumentTypesUpdateResponses];
|
|
1107
|
+
type AdminUserShareCreateData = {
|
|
1108
|
+
body: AdminUserShareToken;
|
|
1109
|
+
path: {
|
|
1110
|
+
identifier: string;
|
|
1111
|
+
};
|
|
1112
|
+
query?: never;
|
|
1113
|
+
url: '/admin/user/{identifier}/share/';
|
|
1114
|
+
};
|
|
1115
|
+
type AdminUserShareCreateResponses = {
|
|
1116
|
+
201: AdminUserShareTokenResponse;
|
|
1117
|
+
};
|
|
1118
|
+
type AdminUserShareCreateResponse = AdminUserShareCreateResponses[keyof AdminUserShareCreateResponses];
|
|
1119
|
+
type AdminUsersListData = {
|
|
1120
|
+
body?: never;
|
|
1121
|
+
path?: never;
|
|
1122
|
+
query?: {
|
|
1123
|
+
id?: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* A page number within the paginated result set.
|
|
1126
|
+
*/
|
|
1127
|
+
page?: number;
|
|
1128
|
+
/**
|
|
1129
|
+
* Number of results to return per page.
|
|
1130
|
+
*/
|
|
1131
|
+
page_size?: number;
|
|
1132
|
+
sumsub_id?: string;
|
|
1133
|
+
sumsub_review_status?: string;
|
|
1134
|
+
sumsub_type?: string;
|
|
1135
|
+
};
|
|
1136
|
+
url: '/admin/users/';
|
|
1137
|
+
};
|
|
1138
|
+
type AdminUsersListResponses = {
|
|
1139
|
+
200: PaginatedAdminUserListResponse;
|
|
1140
|
+
};
|
|
1141
|
+
type AdminUsersListResponse = AdminUsersListResponses[keyof AdminUsersListResponses];
|
|
1142
|
+
type AdminUsersRetrieveData = {
|
|
1143
|
+
body?: never;
|
|
1144
|
+
path: {
|
|
1145
|
+
identifier: string;
|
|
1146
|
+
};
|
|
1147
|
+
query?: never;
|
|
1148
|
+
url: '/admin/users/{identifier}/';
|
|
1149
|
+
};
|
|
1150
|
+
type AdminUsersRetrieveResponses = {
|
|
1151
|
+
200: AdminUserResponse;
|
|
1152
|
+
};
|
|
1153
|
+
type AdminUsersRetrieveResponse = AdminUsersRetrieveResponses[keyof AdminUsersRetrieveResponses];
|
|
1154
|
+
type DeactivateCreateData = {
|
|
1155
|
+
body: Deactivate;
|
|
1156
|
+
path?: never;
|
|
1157
|
+
query?: never;
|
|
1158
|
+
url: '/deactivate/';
|
|
1159
|
+
};
|
|
1160
|
+
type DeactivateCreateResponses = {
|
|
1161
|
+
200: ActionResponse;
|
|
1162
|
+
};
|
|
1163
|
+
type DeactivateCreateResponse = DeactivateCreateResponses[keyof DeactivateCreateResponses];
|
|
1164
|
+
type SumsubWebhookCreateData = {
|
|
1165
|
+
body: SumsubWebhook;
|
|
1166
|
+
path: {
|
|
1167
|
+
company_id: string;
|
|
1168
|
+
};
|
|
1169
|
+
query?: never;
|
|
1170
|
+
url: '/sumsub/webhook/{company_id}/';
|
|
1171
|
+
};
|
|
1172
|
+
type SumsubWebhookCreateResponses = {
|
|
1173
|
+
200: ActionResponse;
|
|
1174
|
+
};
|
|
1175
|
+
type SumsubWebhookCreateResponse = SumsubWebhookCreateResponses[keyof SumsubWebhookCreateResponses];
|
|
1176
|
+
type UserRetrieveData = {
|
|
1177
|
+
body?: never;
|
|
1178
|
+
path?: never;
|
|
1179
|
+
query?: never;
|
|
1180
|
+
url: '/user/';
|
|
1181
|
+
};
|
|
1182
|
+
type UserRetrieveResponses = {
|
|
1183
|
+
200: UserResponse;
|
|
1184
|
+
};
|
|
1185
|
+
type UserRetrieveResponse = UserRetrieveResponses[keyof UserRetrieveResponses];
|
|
1186
|
+
type UserPartialUpdateData = {
|
|
1187
|
+
body?: PatchedUser;
|
|
1188
|
+
path?: never;
|
|
1189
|
+
query?: never;
|
|
1190
|
+
url: '/user/';
|
|
1191
|
+
};
|
|
1192
|
+
type UserPartialUpdateResponses = {
|
|
1193
|
+
200: UserResponse;
|
|
1194
|
+
};
|
|
1195
|
+
type UserPartialUpdateResponse = UserPartialUpdateResponses[keyof UserPartialUpdateResponses];
|
|
1196
|
+
type UserUpdateData = {
|
|
1197
|
+
body?: User;
|
|
1198
|
+
path?: never;
|
|
1199
|
+
query?: never;
|
|
1200
|
+
url: '/user/';
|
|
1201
|
+
};
|
|
1202
|
+
type UserUpdateResponses = {
|
|
1203
|
+
200: UserResponse;
|
|
1204
|
+
};
|
|
1205
|
+
type UserUpdateResponse = UserUpdateResponses[keyof UserUpdateResponses];
|
|
1206
|
+
type UserAccessTokenCreateData = {
|
|
1207
|
+
body?: UserAccessToken;
|
|
1208
|
+
path?: never;
|
|
1209
|
+
query?: never;
|
|
1210
|
+
url: '/user/access-token/';
|
|
1211
|
+
};
|
|
1212
|
+
type UserAccessTokenCreateResponses = {
|
|
1213
|
+
200: UserAccessTokenResponse;
|
|
1214
|
+
};
|
|
1215
|
+
type UserAccessTokenCreateResponse = UserAccessTokenCreateResponses[keyof UserAccessTokenCreateResponses];
|
|
1216
|
+
type UserCompanyRetrieveData = {
|
|
1217
|
+
body?: never;
|
|
1218
|
+
path?: never;
|
|
1219
|
+
query?: never;
|
|
1220
|
+
url: '/user/company/';
|
|
1221
|
+
};
|
|
1222
|
+
type UserCompanyRetrieveResponses = {
|
|
1223
|
+
200: UserCompanyResponse;
|
|
1224
|
+
};
|
|
1225
|
+
type UserCompanyRetrieveResponse = UserCompanyRetrieveResponses[keyof UserCompanyRetrieveResponses];
|
|
1226
|
+
type WebhookCreateData = {
|
|
1227
|
+
body: Webhook;
|
|
1228
|
+
path?: never;
|
|
1229
|
+
query?: never;
|
|
1230
|
+
url: '/webhook/';
|
|
1231
|
+
};
|
|
1232
|
+
type WebhookCreateResponses = {
|
|
1233
|
+
200: ActionResponse;
|
|
1234
|
+
};
|
|
1235
|
+
type WebhookCreateResponse = WebhookCreateResponses[keyof WebhookCreateResponses];
|
|
1236
|
+
|
|
1237
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
1238
|
+
/**
|
|
1239
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1240
|
+
* individual options. This might be also useful if you want to implement a
|
|
1241
|
+
* custom client.
|
|
1242
|
+
*/
|
|
1243
|
+
client?: Client;
|
|
1244
|
+
/**
|
|
1245
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1246
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1247
|
+
*/
|
|
1248
|
+
meta?: Record<string, unknown>;
|
|
1249
|
+
};
|
|
1250
|
+
declare const activateCreate: <ThrowOnError extends boolean = false>(options: Options<ActivateCreateData, ThrowOnError>) => RequestResult<ActivateCreateResponses, unknown, ThrowOnError>;
|
|
1251
|
+
declare const adminCompanyRetrieve: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyRetrieveData, ThrowOnError>) => RequestResult<AdminCompanyRetrieveResponses, unknown, ThrowOnError>;
|
|
1252
|
+
declare const adminCompanyPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyPartialUpdateData, ThrowOnError>) => RequestResult<AdminCompanyPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1253
|
+
declare const adminCompanyUpdate: <ThrowOnError extends boolean = false>(options?: Options<AdminCompanyUpdateData, ThrowOnError>) => RequestResult<AdminCompanyUpdateResponses, unknown, ThrowOnError>;
|
|
1254
|
+
declare const adminCurrenciesList: <ThrowOnError extends boolean = false>(options?: Options<AdminCurrenciesListData, ThrowOnError>) => RequestResult<AdminCurrenciesListResponses, unknown, ThrowOnError>;
|
|
1255
|
+
declare const adminCurrenciesRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesRetrieveData, ThrowOnError>) => RequestResult<AdminCurrenciesRetrieveResponses, unknown, ThrowOnError>;
|
|
1256
|
+
declare const adminCurrenciesPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesPartialUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1257
|
+
declare const adminCurrenciesUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesUpdateResponses, unknown, ThrowOnError>;
|
|
1258
|
+
declare const adminDocumentTypesList: <ThrowOnError extends boolean = false>(options?: Options<AdminDocumentTypesListData, ThrowOnError>) => RequestResult<AdminDocumentTypesListResponses, unknown, ThrowOnError>;
|
|
1259
|
+
declare const adminDocumentTypesCreate: <ThrowOnError extends boolean = false>(options: Options<AdminDocumentTypesCreateData, ThrowOnError>) => RequestResult<AdminDocumentTypesCreateResponses, unknown, ThrowOnError>;
|
|
1260
|
+
declare const adminDocumentTypesDestroy: <ThrowOnError extends boolean = false>(options: Options<AdminDocumentTypesDestroyData, ThrowOnError>) => RequestResult<AdminDocumentTypesDestroyResponses, unknown, ThrowOnError>;
|
|
1261
|
+
declare const adminDocumentTypesRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminDocumentTypesRetrieveData, ThrowOnError>) => RequestResult<AdminDocumentTypesRetrieveResponses, unknown, ThrowOnError>;
|
|
1262
|
+
declare const adminDocumentTypesPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminDocumentTypesPartialUpdateData, ThrowOnError>) => RequestResult<AdminDocumentTypesPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1263
|
+
declare const adminDocumentTypesUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminDocumentTypesUpdateData, ThrowOnError>) => RequestResult<AdminDocumentTypesUpdateResponses, unknown, ThrowOnError>;
|
|
1264
|
+
declare const adminUserShareCreate: <ThrowOnError extends boolean = false>(options: Options<AdminUserShareCreateData, ThrowOnError>) => RequestResult<AdminUserShareCreateResponses, unknown, ThrowOnError>;
|
|
1265
|
+
declare const adminUsersList: <ThrowOnError extends boolean = false>(options?: Options<AdminUsersListData, ThrowOnError>) => RequestResult<AdminUsersListResponses, unknown, ThrowOnError>;
|
|
1266
|
+
declare const adminUsersRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminUsersRetrieveData, ThrowOnError>) => RequestResult<AdminUsersRetrieveResponses, unknown, ThrowOnError>;
|
|
1267
|
+
declare const deactivateCreate: <ThrowOnError extends boolean = false>(options: Options<DeactivateCreateData, ThrowOnError>) => RequestResult<DeactivateCreateResponses, unknown, ThrowOnError>;
|
|
1268
|
+
declare const sumsubWebhookCreate: <ThrowOnError extends boolean = false>(options: Options<SumsubWebhookCreateData, ThrowOnError>) => RequestResult<SumsubWebhookCreateResponses, unknown, ThrowOnError>;
|
|
1269
|
+
declare const userRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserRetrieveData, ThrowOnError>) => RequestResult<UserRetrieveResponses, unknown, ThrowOnError>;
|
|
1270
|
+
declare const userPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserPartialUpdateData, ThrowOnError>) => RequestResult<UserPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1271
|
+
declare const userUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserUpdateData, ThrowOnError>) => RequestResult<UserUpdateResponses, unknown, ThrowOnError>;
|
|
1272
|
+
declare const userAccessTokenCreate: <ThrowOnError extends boolean = false>(options?: Options<UserAccessTokenCreateData, ThrowOnError>) => RequestResult<UserAccessTokenCreateResponses, unknown, ThrowOnError>;
|
|
1273
|
+
declare const userCompanyRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserCompanyRetrieveData, ThrowOnError>) => RequestResult<UserCompanyRetrieveResponses, unknown, ThrowOnError>;
|
|
1274
|
+
declare const webhookCreate: <ThrowOnError extends boolean = false>(options: Options<WebhookCreateData, ThrowOnError>) => RequestResult<WebhookCreateResponses, unknown, ThrowOnError>;
|
|
1275
|
+
|
|
1276
|
+
type sdk_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options<TData, ThrowOnError, TResponse>;
|
|
1277
|
+
declare const sdk_activateCreate: typeof activateCreate;
|
|
1278
|
+
declare const sdk_adminCompanyPartialUpdate: typeof adminCompanyPartialUpdate;
|
|
1279
|
+
declare const sdk_adminCompanyRetrieve: typeof adminCompanyRetrieve;
|
|
1280
|
+
declare const sdk_adminCompanyUpdate: typeof adminCompanyUpdate;
|
|
1281
|
+
declare const sdk_adminCurrenciesList: typeof adminCurrenciesList;
|
|
1282
|
+
declare const sdk_adminCurrenciesPartialUpdate: typeof adminCurrenciesPartialUpdate;
|
|
1283
|
+
declare const sdk_adminCurrenciesRetrieve: typeof adminCurrenciesRetrieve;
|
|
1284
|
+
declare const sdk_adminCurrenciesUpdate: typeof adminCurrenciesUpdate;
|
|
1285
|
+
declare const sdk_adminDocumentTypesCreate: typeof adminDocumentTypesCreate;
|
|
1286
|
+
declare const sdk_adminDocumentTypesDestroy: typeof adminDocumentTypesDestroy;
|
|
1287
|
+
declare const sdk_adminDocumentTypesList: typeof adminDocumentTypesList;
|
|
1288
|
+
declare const sdk_adminDocumentTypesPartialUpdate: typeof adminDocumentTypesPartialUpdate;
|
|
1289
|
+
declare const sdk_adminDocumentTypesRetrieve: typeof adminDocumentTypesRetrieve;
|
|
1290
|
+
declare const sdk_adminDocumentTypesUpdate: typeof adminDocumentTypesUpdate;
|
|
1291
|
+
declare const sdk_adminUserShareCreate: typeof adminUserShareCreate;
|
|
1292
|
+
declare const sdk_adminUsersList: typeof adminUsersList;
|
|
1293
|
+
declare const sdk_adminUsersRetrieve: typeof adminUsersRetrieve;
|
|
1294
|
+
declare const sdk_deactivateCreate: typeof deactivateCreate;
|
|
1295
|
+
declare const sdk_sumsubWebhookCreate: typeof sumsubWebhookCreate;
|
|
1296
|
+
declare const sdk_userAccessTokenCreate: typeof userAccessTokenCreate;
|
|
1297
|
+
declare const sdk_userCompanyRetrieve: typeof userCompanyRetrieve;
|
|
1298
|
+
declare const sdk_userPartialUpdate: typeof userPartialUpdate;
|
|
1299
|
+
declare const sdk_userRetrieve: typeof userRetrieve;
|
|
1300
|
+
declare const sdk_userUpdate: typeof userUpdate;
|
|
1301
|
+
declare const sdk_webhookCreate: typeof webhookCreate;
|
|
1302
|
+
declare namespace sdk {
|
|
1303
|
+
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminCurrenciesList as adminCurrenciesList, sdk_adminCurrenciesPartialUpdate as adminCurrenciesPartialUpdate, sdk_adminCurrenciesRetrieve as adminCurrenciesRetrieve, sdk_adminCurrenciesUpdate as adminCurrenciesUpdate, sdk_adminDocumentTypesCreate as adminDocumentTypesCreate, sdk_adminDocumentTypesDestroy as adminDocumentTypesDestroy, sdk_adminDocumentTypesList as adminDocumentTypesList, sdk_adminDocumentTypesPartialUpdate as adminDocumentTypesPartialUpdate, sdk_adminDocumentTypesRetrieve as adminDocumentTypesRetrieve, sdk_adminDocumentTypesUpdate as adminDocumentTypesUpdate, sdk_adminUserShareCreate as adminUserShareCreate, sdk_adminUsersList as adminUsersList, sdk_adminUsersRetrieve as adminUsersRetrieve, sdk_deactivateCreate as deactivateCreate, sdk_sumsubWebhookCreate as sumsubWebhookCreate, sdk_userAccessTokenCreate as userAccessTokenCreate, sdk_userCompanyRetrieve as userCompanyRetrieve, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userUpdate as userUpdate, sdk_webhookCreate as webhookCreate };
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
type SumsubApi = BoundSdk<typeof sdk>;
|
|
1307
|
+
declare function createSumsubApi(config: ApiFactoryConfig): SumsubApi;
|
|
1308
|
+
|
|
1309
|
+
export { type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCompanyWritable, type AdminCurrenciesListData, type AdminCurrenciesListResponse, type AdminCurrenciesListResponses, type AdminCurrenciesPartialUpdateData, type AdminCurrenciesPartialUpdateResponse, type AdminCurrenciesPartialUpdateResponses, type AdminCurrenciesRetrieveData, type AdminCurrenciesRetrieveResponse, type AdminCurrenciesRetrieveResponses, type AdminCurrenciesUpdateData, type AdminCurrenciesUpdateResponse, type AdminCurrenciesUpdateResponses, type AdminCurrency, type AdminCurrencyResponse, type AdminCurrencyResponseWritable, type AdminDocumentType, type AdminDocumentTypeResponse, type AdminDocumentTypeResponseWritable, type AdminDocumentTypeWritable, type AdminDocumentTypesCreateData, type AdminDocumentTypesCreateResponse, type AdminDocumentTypesCreateResponses, type AdminDocumentTypesDestroyData, type AdminDocumentTypesDestroyResponse, type AdminDocumentTypesDestroyResponses, type AdminDocumentTypesListData, type AdminDocumentTypesListResponse, type AdminDocumentTypesListResponses, type AdminDocumentTypesPartialUpdateData, type AdminDocumentTypesPartialUpdateResponse, type AdminDocumentTypesPartialUpdateResponses, type AdminDocumentTypesRetrieveData, type AdminDocumentTypesRetrieveResponse, type AdminDocumentTypesRetrieveResponses, type AdminDocumentTypesUpdateData, type AdminDocumentTypesUpdateResponse, type AdminDocumentTypesUpdateResponses, type AdminUpdateCompany, type AdminUpdateCompanyWritable, type AdminUser, type AdminUserResponse, type AdminUserResponseWritable, type AdminUserShareCreateData, type AdminUserShareCreateResponse, type AdminUserShareCreateResponses, type AdminUserShareToken, type AdminUserShareTokenResponse, type AdminUsersListData, type AdminUsersListResponse, type AdminUsersListResponses, type AdminUsersRetrieveData, type AdminUsersRetrieveResponse, type AdminUsersRetrieveResponses, type ClientOptions, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type PaginatedAdminCurrencyList, type PaginatedAdminCurrencyListResponse, type PaginatedAdminCurrencyListResponseWritable, type PaginatedAdminCurrencyListWritable, type PaginatedAdminDocumentTypeList, type PaginatedAdminDocumentTypeListResponse, type PaginatedAdminDocumentTypeListResponseWritable, type PaginatedAdminDocumentTypeListWritable, type PaginatedAdminUserList, type PaginatedAdminUserListResponse, type PaginatedAdminUserListResponseWritable, type PaginatedAdminUserListWritable, type PatchedAdminCurrency, type PatchedAdminDocumentType, type PatchedAdminDocumentTypeWritable, type PatchedAdminUpdateCompany, type PatchedAdminUpdateCompanyWritable, type PatchedUser, type SumsubApi, type SumsubWebhook, type SumsubWebhookCreateData, type SumsubWebhookCreateResponse, type SumsubWebhookCreateResponses, type User, type UserAccessToken, type UserAccessTokenCreateData, type UserAccessTokenCreateResponse, type UserAccessTokenCreateResponses, type UserAccessTokenResponse, type UserAccessTokenResponseWritable, type UserCompany, type UserCompanyResponse, type UserCompanyResponseWritable, type UserCompanyRetrieveData, type UserCompanyRetrieveResponse, type UserCompanyRetrieveResponses, type UserCompanyWritable, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserUpdateData, type UserUpdateResponse, type UserUpdateResponses, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createSumsubApi };
|