@cubist-labs/cubesigner-sdk 0.4.274 → 0.4.276
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/package.json +1 -1
- package/dist/src/audit_log.d.ts +3 -3
- package/dist/src/client/api_client.d.ts +17 -1
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +25 -1
- package/dist/src/org.d.ts +24 -1
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +30 -1
- package/dist/src/schema.d.ts +221 -13
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +3 -0
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +4 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +4 -1
- package/package.json +1 -1
- package/src/client/api_client.ts +38 -1
- package/src/org.ts +33 -0
- package/src/schema.ts +417 -195
- package/src/schema_types.ts +6 -0
- package/src/scopes.ts +3 -0
package/src/schema.ts
CHANGED
|
@@ -613,7 +613,8 @@ export interface paths {
|
|
|
613
613
|
* List pending invitations
|
|
614
614
|
* @description List pending invitations
|
|
615
615
|
*
|
|
616
|
-
* Returns all pending
|
|
616
|
+
* Returns all pending invitations for the organization, i.e., those that have neither
|
|
617
|
+
* been accepted nor canceled, and have not expired.
|
|
617
618
|
*/
|
|
618
619
|
get: operations["listInvitations"];
|
|
619
620
|
/**
|
|
@@ -3084,6 +3085,7 @@ export interface components {
|
|
|
3084
3085
|
| "PolicyVersionInvalid"
|
|
3085
3086
|
| "PolicySecretLimitReached"
|
|
3086
3087
|
| "PolicySecretTooLarge"
|
|
3088
|
+
| "InvalidRandomSecretLength"
|
|
3087
3089
|
| "InvalidImportKey"
|
|
3088
3090
|
| "AlienOwnerInvalid"
|
|
3089
3091
|
| "EmptyUpdateRequest"
|
|
@@ -3102,7 +3104,8 @@ export interface components {
|
|
|
3102
3104
|
| "InputTooShort"
|
|
3103
3105
|
| "InvalidTweakLength"
|
|
3104
3106
|
| "InvalidCustomChains"
|
|
3105
|
-
| "InvalidRpcRequest"
|
|
3107
|
+
| "InvalidRpcRequest"
|
|
3108
|
+
| "InvalidAclEntry";
|
|
3106
3109
|
BillingArgs: {
|
|
3107
3110
|
billing_org: components["schemas"]["Id"];
|
|
3108
3111
|
event_type: components["schemas"]["BillingEvent"];
|
|
@@ -3120,192 +3123,192 @@ export interface components {
|
|
|
3120
3123
|
* @enum {string}
|
|
3121
3124
|
*/
|
|
3122
3125
|
BillingEvent:
|
|
3123
|
-
| "
|
|
3124
|
-
| "
|
|
3125
|
-
| "
|
|
3126
|
-
| "
|
|
3127
|
-
| "
|
|
3128
|
-
| "
|
|
3129
|
-
| "
|
|
3130
|
-
| "
|
|
3131
|
-
| "
|
|
3132
|
-
| "
|
|
3133
|
-
| "
|
|
3134
|
-
| "
|
|
3135
|
-
| "
|
|
3136
|
-
| "
|
|
3137
|
-
| "
|
|
3138
|
-
| "
|
|
3139
|
-
| "
|
|
3140
|
-
| "
|
|
3141
|
-
| "
|
|
3142
|
-
| "
|
|
3143
|
-
| "
|
|
3144
|
-
| "
|
|
3145
|
-
| "
|
|
3146
|
-
| "
|
|
3147
|
-
| "
|
|
3148
|
-
| "
|
|
3149
|
-
| "
|
|
3150
|
-
| "
|
|
3151
|
-
| "
|
|
3152
|
-
| "
|
|
3153
|
-
| "
|
|
3154
|
-
| "
|
|
3155
|
-
| "
|
|
3156
|
-
| "
|
|
3157
|
-
| "
|
|
3158
|
-
| "
|
|
3159
|
-
| "
|
|
3160
|
-
| "
|
|
3161
|
-
| "
|
|
3162
|
-
| "
|
|
3163
|
-
| "
|
|
3164
|
-
| "
|
|
3165
|
-
| "
|
|
3166
|
-
| "
|
|
3167
|
-
| "
|
|
3168
|
-
| "
|
|
3169
|
-
| "
|
|
3170
|
-
| "
|
|
3171
|
-
| "
|
|
3172
|
-
| "
|
|
3173
|
-
| "
|
|
3174
|
-
| "
|
|
3175
|
-
| "
|
|
3176
|
-
| "
|
|
3177
|
-
| "
|
|
3178
|
-
| "
|
|
3179
|
-
| "
|
|
3180
|
-
| "
|
|
3181
|
-
| "
|
|
3182
|
-
| "
|
|
3183
|
-
| "
|
|
3184
|
-
| "
|
|
3185
|
-
| "
|
|
3186
|
-
| "
|
|
3187
|
-
| "
|
|
3188
|
-
| "
|
|
3189
|
-
| "
|
|
3190
|
-
| "
|
|
3191
|
-
| "
|
|
3192
|
-
| "
|
|
3193
|
-
| "
|
|
3194
|
-
| "
|
|
3195
|
-
| "
|
|
3196
|
-
| "
|
|
3197
|
-
| "
|
|
3198
|
-
| "
|
|
3199
|
-
| "
|
|
3200
|
-
| "
|
|
3201
|
-
| "
|
|
3202
|
-
| "
|
|
3203
|
-
| "
|
|
3204
|
-
| "
|
|
3205
|
-
| "
|
|
3206
|
-
| "
|
|
3207
|
-
| "
|
|
3208
|
-
| "
|
|
3209
|
-
| "
|
|
3210
|
-
| "
|
|
3211
|
-
| "
|
|
3212
|
-
| "
|
|
3213
|
-
| "
|
|
3214
|
-
| "
|
|
3215
|
-
| "
|
|
3216
|
-
| "
|
|
3217
|
-
| "
|
|
3218
|
-
| "
|
|
3219
|
-
| "
|
|
3220
|
-
| "
|
|
3221
|
-
| "
|
|
3222
|
-
| "
|
|
3223
|
-
| "
|
|
3224
|
-
| "
|
|
3225
|
-
| "
|
|
3226
|
-
| "
|
|
3227
|
-
| "
|
|
3228
|
-
| "
|
|
3229
|
-
| "
|
|
3230
|
-
| "
|
|
3231
|
-
| "
|
|
3232
|
-
| "
|
|
3233
|
-
| "
|
|
3234
|
-
| "
|
|
3235
|
-
| "
|
|
3236
|
-
| "
|
|
3237
|
-
| "
|
|
3238
|
-
| "
|
|
3239
|
-
| "
|
|
3240
|
-
| "
|
|
3241
|
-
| "
|
|
3242
|
-
| "
|
|
3243
|
-
| "
|
|
3244
|
-
| "
|
|
3245
|
-
| "
|
|
3246
|
-
| "
|
|
3247
|
-
| "
|
|
3248
|
-
| "
|
|
3249
|
-
| "
|
|
3250
|
-
| "
|
|
3251
|
-
| "
|
|
3252
|
-
| "
|
|
3253
|
-
| "
|
|
3254
|
-
| "
|
|
3255
|
-
| "
|
|
3256
|
-
| "
|
|
3257
|
-
| "
|
|
3258
|
-
| "
|
|
3259
|
-
| "
|
|
3260
|
-
| "
|
|
3261
|
-
| "
|
|
3262
|
-
| "
|
|
3263
|
-
| "
|
|
3264
|
-
| "
|
|
3265
|
-
| "
|
|
3266
|
-
| "
|
|
3267
|
-
| "
|
|
3268
|
-
| "
|
|
3269
|
-
| "
|
|
3270
|
-
| "
|
|
3271
|
-
| "
|
|
3272
|
-
| "
|
|
3273
|
-
| "
|
|
3274
|
-
| "
|
|
3275
|
-
| "
|
|
3276
|
-
| "
|
|
3277
|
-
| "
|
|
3278
|
-
| "
|
|
3279
|
-
| "
|
|
3280
|
-
| "
|
|
3281
|
-
| "
|
|
3282
|
-
| "
|
|
3283
|
-
| "
|
|
3284
|
-
| "
|
|
3285
|
-
| "
|
|
3286
|
-
| "
|
|
3287
|
-
| "
|
|
3288
|
-
| "
|
|
3289
|
-
| "
|
|
3290
|
-
| "
|
|
3291
|
-
| "
|
|
3292
|
-
| "
|
|
3293
|
-
| "
|
|
3294
|
-
| "
|
|
3295
|
-
| "
|
|
3296
|
-
| "
|
|
3297
|
-
| "
|
|
3298
|
-
| "
|
|
3299
|
-
| "
|
|
3300
|
-
| "
|
|
3301
|
-
| "
|
|
3302
|
-
| "
|
|
3303
|
-
| "
|
|
3304
|
-
| "
|
|
3305
|
-
| "
|
|
3306
|
-
| "
|
|
3307
|
-
| "
|
|
3308
|
-
| "
|
|
3126
|
+
| "mmi"
|
|
3127
|
+
| "mmiMessageGet"
|
|
3128
|
+
| "mmiMessageList"
|
|
3129
|
+
| "mmiMessageSign"
|
|
3130
|
+
| "mmiMessageReject"
|
|
3131
|
+
| "mmiMessageDelete"
|
|
3132
|
+
| "aboutMe"
|
|
3133
|
+
| "userResetEmailInit"
|
|
3134
|
+
| "userResetEmailComplete"
|
|
3135
|
+
| "userDeleteTotp"
|
|
3136
|
+
| "userResetTotpInit"
|
|
3137
|
+
| "userResetTotpComplete"
|
|
3138
|
+
| "userVerifyTotp"
|
|
3139
|
+
| "userRegisterFidoInit"
|
|
3140
|
+
| "userRegisterFidoComplete"
|
|
3141
|
+
| "userDeleteFido"
|
|
3142
|
+
| "createProofOidc"
|
|
3143
|
+
| "createProofCubeSigner"
|
|
3144
|
+
| "verifyProof"
|
|
3145
|
+
| "addOidcIdentity"
|
|
3146
|
+
| "removeOidcIdentity"
|
|
3147
|
+
| "listOidcIdentities"
|
|
3148
|
+
| "getOrg"
|
|
3149
|
+
| "updateOrg"
|
|
3150
|
+
| "getOrgExport"
|
|
3151
|
+
| "createOrg"
|
|
3152
|
+
| "listKeysInOrg"
|
|
3153
|
+
| "attestKey"
|
|
3154
|
+
| "getKeyInOrg"
|
|
3155
|
+
| "getKeyByMaterialId"
|
|
3156
|
+
| "listKeyRoles"
|
|
3157
|
+
| "updateKey"
|
|
3158
|
+
| "listHistoricalKeyTx"
|
|
3159
|
+
| "invite"
|
|
3160
|
+
| "cancelInvitation"
|
|
3161
|
+
| "listInvitations"
|
|
3162
|
+
| "listUsersInOrg"
|
|
3163
|
+
| "getUserInOrg"
|
|
3164
|
+
| "getUserInOrgByEmail"
|
|
3165
|
+
| "getUserInOrgByOidc"
|
|
3166
|
+
| "updateUserMembership"
|
|
3167
|
+
| "resetMemberMfa"
|
|
3168
|
+
| "completeResetMemberMfa"
|
|
3169
|
+
| "createRole"
|
|
3170
|
+
| "attestRole"
|
|
3171
|
+
| "getRole"
|
|
3172
|
+
| "listTokenKeys"
|
|
3173
|
+
| "listRoles"
|
|
3174
|
+
| "getRoleKey"
|
|
3175
|
+
| "listRoleKeys"
|
|
3176
|
+
| "listRoleUsers"
|
|
3177
|
+
| "updateRole"
|
|
3178
|
+
| "deleteRole"
|
|
3179
|
+
| "configureEmail"
|
|
3180
|
+
| "getEmailConfig"
|
|
3181
|
+
| "deleteEmailConfig"
|
|
3182
|
+
| "listHistoricalRoleTx"
|
|
3183
|
+
| "createPolicy"
|
|
3184
|
+
| "getPolicy"
|
|
3185
|
+
| "listPolicies"
|
|
3186
|
+
| "deletePolicy"
|
|
3187
|
+
| "updatePolicy"
|
|
3188
|
+
| "invokePolicy"
|
|
3189
|
+
| "getPolicyLogs"
|
|
3190
|
+
| "uploadWasmPolicy"
|
|
3191
|
+
| "getPolicySecrets"
|
|
3192
|
+
| "updatePolicySecrets"
|
|
3193
|
+
| "setPolicySecret"
|
|
3194
|
+
| "deletePolicySecret"
|
|
3195
|
+
| "createPolicyImportKey"
|
|
3196
|
+
| "getPolicyBucket"
|
|
3197
|
+
| "listPolicyBuckets"
|
|
3198
|
+
| "updatePolicyBucket"
|
|
3199
|
+
| "userExportDelete"
|
|
3200
|
+
| "userExportList"
|
|
3201
|
+
| "userExportInit"
|
|
3202
|
+
| "userExportComplete"
|
|
3203
|
+
| "addUserToRole"
|
|
3204
|
+
| "removeUserFromRole"
|
|
3205
|
+
| "mfaApproveCs"
|
|
3206
|
+
| "mfaRejectCs"
|
|
3207
|
+
| "mfaGet"
|
|
3208
|
+
| "mfaList"
|
|
3209
|
+
| "addKeysToRole"
|
|
3210
|
+
| "removeKeyFromRole"
|
|
3211
|
+
| "createRoleToken"
|
|
3212
|
+
| "createSession"
|
|
3213
|
+
| "revokeSession"
|
|
3214
|
+
| "revokeCurrentSession"
|
|
3215
|
+
| "revokeSessions"
|
|
3216
|
+
| "listSessions"
|
|
3217
|
+
| "getSession"
|
|
3218
|
+
| "signerSessionRefresh"
|
|
3219
|
+
| "mfaApproveTotp"
|
|
3220
|
+
| "mfaRejectTotp"
|
|
3221
|
+
| "mfaFidoInit"
|
|
3222
|
+
| "mfaApproveFidoComplete"
|
|
3223
|
+
| "mfaRejectFidoComplete"
|
|
3224
|
+
| "mfaEmailInit"
|
|
3225
|
+
| "mfaEmailComplete"
|
|
3226
|
+
| "cube3signerHeartbeat"
|
|
3227
|
+
| "createContact"
|
|
3228
|
+
| "getContact"
|
|
3229
|
+
| "listContacts"
|
|
3230
|
+
| "deleteContact"
|
|
3231
|
+
| "updateContact"
|
|
3232
|
+
| "lookupContactsByAddress"
|
|
3233
|
+
| "queryMetrics"
|
|
3234
|
+
| "queryAuditLog"
|
|
3235
|
+
| "counts"
|
|
3236
|
+
| "createKey"
|
|
3237
|
+
| "importKey"
|
|
3238
|
+
| "createKeyImportKey"
|
|
3239
|
+
| "deriveKey"
|
|
3240
|
+
| "deleteKey"
|
|
3241
|
+
| "avaSign"
|
|
3242
|
+
| "avaSerializedTxSign"
|
|
3243
|
+
| "babylonRegistration"
|
|
3244
|
+
| "babylonStaking"
|
|
3245
|
+
| "babylonCovSign"
|
|
3246
|
+
| "binanceSign"
|
|
3247
|
+
| "bybitSign"
|
|
3248
|
+
| "coinbaseSign"
|
|
3249
|
+
| "blobSign"
|
|
3250
|
+
| "btcMessageSign"
|
|
3251
|
+
| "btcSign"
|
|
3252
|
+
| "diffieHellmanExchange"
|
|
3253
|
+
| "psbtSign"
|
|
3254
|
+
| "psbtLegacyInputSign"
|
|
3255
|
+
| "psbtSegwitInputSign"
|
|
3256
|
+
| "psbtTaprootInputSign"
|
|
3257
|
+
| "btcTaprootSign"
|
|
3258
|
+
| "eip712Sign"
|
|
3259
|
+
| "eip191Sign"
|
|
3260
|
+
| "eip7702Sign"
|
|
3261
|
+
| "eth1Sign"
|
|
3262
|
+
| "eth2Sign"
|
|
3263
|
+
| "solanaSign"
|
|
3264
|
+
| "suiSign"
|
|
3265
|
+
| "tendermintSign"
|
|
3266
|
+
| "stake"
|
|
3267
|
+
| "unstake"
|
|
3268
|
+
| "passkeyAuthInit"
|
|
3269
|
+
| "passkeyAuthComplete"
|
|
3270
|
+
| "oidcAuth"
|
|
3271
|
+
| "oauth2Twitter"
|
|
3272
|
+
| "oauth2TokenRefresh"
|
|
3273
|
+
| "emailOtpAuth"
|
|
3274
|
+
| "siweInit"
|
|
3275
|
+
| "siweComplete"
|
|
3276
|
+
| "siwsInit"
|
|
3277
|
+
| "siwsComplete"
|
|
3278
|
+
| "telegramAuth"
|
|
3279
|
+
| "createOidcUser"
|
|
3280
|
+
| "deleteOidcUser"
|
|
3281
|
+
| "deleteUser"
|
|
3282
|
+
| "createEotsNonces"
|
|
3283
|
+
| "eotsSign"
|
|
3284
|
+
| "authMigrationIdentityAdd"
|
|
3285
|
+
| "authMigrationIdentityRemove"
|
|
3286
|
+
| "authMigrationUserUpdate"
|
|
3287
|
+
| "keyCreated"
|
|
3288
|
+
| "keyImported"
|
|
3289
|
+
| "invitationAccept"
|
|
3290
|
+
| "idpAuthenticate"
|
|
3291
|
+
| "idpPasswordResetRequest"
|
|
3292
|
+
| "idpPasswordResetConfirm"
|
|
3293
|
+
| "rpcApi"
|
|
3294
|
+
| "rpcCreateTransaction"
|
|
3295
|
+
| "rpcGetTransaction"
|
|
3296
|
+
| "rpcListTransactions"
|
|
3297
|
+
| "rpcBtcListUtxos"
|
|
3298
|
+
| "rpcRetryTransaction"
|
|
3299
|
+
| "rpcCancelTransaction"
|
|
3300
|
+
| "rpcBinance"
|
|
3301
|
+
| "rpcBybit"
|
|
3302
|
+
| "rpcCoinbase"
|
|
3303
|
+
| "customChainRpcCall"
|
|
3304
|
+
| "esploraApiCall"
|
|
3305
|
+
| "sentryApiCall"
|
|
3306
|
+
| "sentryApiCallPublic"
|
|
3307
|
+
| "mmiJwkSet"
|
|
3308
|
+
| "attestationJwkSet"
|
|
3309
|
+
| "userOrgs"
|
|
3310
|
+
| "public_org_info"
|
|
3311
|
+
| "email_my_orgs";
|
|
3309
3312
|
/** @description Parameters envelope for all Binance RPC methods. */
|
|
3310
3313
|
BinanceAccountInfoParams: components["schemas"]["AccountInfoRequest"] & {
|
|
3311
3314
|
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
@@ -3470,6 +3473,11 @@ export interface components {
|
|
|
3470
3473
|
/** @enum {string} */
|
|
3471
3474
|
method: "cs_binanceCoinInfo";
|
|
3472
3475
|
params: components["schemas"]["BinanceCoinInfoParams"];
|
|
3476
|
+
}
|
|
3477
|
+
| {
|
|
3478
|
+
/** @enum {string} */
|
|
3479
|
+
method: "cs_binanceSubAccountDepositAddress";
|
|
3480
|
+
params: components["schemas"]["BinanceSubAccountDepositAddressParams"];
|
|
3473
3481
|
};
|
|
3474
3482
|
/** @description Response returned by the typed `binance_sign` endpoint. */
|
|
3475
3483
|
BinanceSignResponse: {
|
|
@@ -3495,6 +3503,18 @@ export interface components {
|
|
|
3495
3503
|
recvWindow?: number | null;
|
|
3496
3504
|
};
|
|
3497
3505
|
/** @description Parameters envelope for all Binance RPC methods. */
|
|
3506
|
+
BinanceSubAccountDepositAddressParams: components["schemas"]["SubAccountDepositAddressRequest"] & {
|
|
3507
|
+
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
3508
|
+
keyId: components["schemas"]["Id"];
|
|
3509
|
+
/**
|
|
3510
|
+
* Format: float
|
|
3511
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3512
|
+
* May only be specified in milliseconds, with up to three decimal places of precision.
|
|
3513
|
+
* If omitted, defaults to 10000. Must not be greater than 60000.
|
|
3514
|
+
*/
|
|
3515
|
+
recvWindow?: number | null;
|
|
3516
|
+
};
|
|
3517
|
+
/** @description Parameters envelope for all Binance RPC methods. */
|
|
3498
3518
|
BinanceSubAccountTransferHistoryParams: components["schemas"]["SubAccountTransferHistoryRequest"] & {
|
|
3499
3519
|
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
3500
3520
|
keyId: components["schemas"]["Id"];
|
|
@@ -4198,6 +4218,47 @@ export interface components {
|
|
|
4198
4218
|
/** @description Coin symbol the deposit addresses are for (e.g. `USDT`). */
|
|
4199
4219
|
coin: string;
|
|
4200
4220
|
};
|
|
4221
|
+
/**
|
|
4222
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4223
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4224
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4225
|
+
* directly below.)
|
|
4226
|
+
*/
|
|
4227
|
+
BybitQuerySubDepositAddressParams: components["schemas"]["BybitQuerySubDepositAddressRequest"] & {
|
|
4228
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4229
|
+
keyId: components["schemas"]["Id"];
|
|
4230
|
+
/**
|
|
4231
|
+
* Format: int32
|
|
4232
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4233
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4234
|
+
*/
|
|
4235
|
+
recvWindow?: number | null;
|
|
4236
|
+
};
|
|
4237
|
+
/** @description Parameters for `GET /v5/asset/deposit/query-sub-member-address`. */
|
|
4238
|
+
BybitQuerySubDepositAddressRequest: {
|
|
4239
|
+
/**
|
|
4240
|
+
* @description Short chain code, as returned in the `chain` field of
|
|
4241
|
+
* [`BybitRpc::QueryCoinInfo`] (e.g. `"ETH"`, `"TRX"`).
|
|
4242
|
+
*/
|
|
4243
|
+
chainType: string;
|
|
4244
|
+
/** @description Coin symbol, uppercase only (e.g. `"USDT"`). */
|
|
4245
|
+
coin: string;
|
|
4246
|
+
/** @description UID of the sub-account whose deposit address to fetch. */
|
|
4247
|
+
subMemberId: string;
|
|
4248
|
+
};
|
|
4249
|
+
/**
|
|
4250
|
+
* @description Response of `GET /v5/asset/deposit/query-sub-member-address`.
|
|
4251
|
+
*
|
|
4252
|
+
* NOTE: unlike the master-account `query-address` endpoint (modelled by
|
|
4253
|
+
* [`BybitQueryDepositAddressResponse`]), Bybit returns `chains` here as a
|
|
4254
|
+
* single object rather than an array — the request pins one `chainType`, so
|
|
4255
|
+
* there is only ever one chain to report.
|
|
4256
|
+
*/
|
|
4257
|
+
BybitQuerySubDepositAddressResponse: {
|
|
4258
|
+
chains: components["schemas"]["BybitDepositChain"];
|
|
4259
|
+
/** @description Coin symbol the deposit address is for (e.g. `USDT`). */
|
|
4260
|
+
coin: string;
|
|
4261
|
+
};
|
|
4201
4262
|
/**
|
|
4202
4263
|
* @description Parameters for [`BybitRpc::QuerySubMembers`].
|
|
4203
4264
|
*
|
|
@@ -4256,6 +4317,56 @@ export interface components {
|
|
|
4256
4317
|
vipLevel?: string | null;
|
|
4257
4318
|
[key: string]: unknown;
|
|
4258
4319
|
};
|
|
4320
|
+
/**
|
|
4321
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4322
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4323
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4324
|
+
* directly below.)
|
|
4325
|
+
*/
|
|
4326
|
+
BybitQueryWithdrawAddressParams: components["schemas"]["BybitQueryWithdrawAddressRequest"] & {
|
|
4327
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4328
|
+
keyId: components["schemas"]["Id"];
|
|
4329
|
+
/**
|
|
4330
|
+
* Format: int32
|
|
4331
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4332
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4333
|
+
*/
|
|
4334
|
+
recvWindow?: number | null;
|
|
4335
|
+
};
|
|
4336
|
+
/** @description Parameters for `GET /v5/asset/withdraw/query-address`. */
|
|
4337
|
+
BybitQueryWithdrawAddressRequest: {
|
|
4338
|
+
/**
|
|
4339
|
+
* Format: int32
|
|
4340
|
+
* @description Filter by address category: `0` on-chain, `1` internal transfer, `2`
|
|
4341
|
+
* both. Bybit returns every category when omitted.
|
|
4342
|
+
*/
|
|
4343
|
+
addressType?: number | null;
|
|
4344
|
+
/** @description Filter by short chain code (e.g. `"ETH"`, `"TRX"`). */
|
|
4345
|
+
chain?: string | null;
|
|
4346
|
+
/**
|
|
4347
|
+
* @description Filter by coin symbol (uppercase). Bybit also accepts the coin's
|
|
4348
|
+
* `baseCoin` here, which matches addresses whitelisted for every chain of
|
|
4349
|
+
* that coin.
|
|
4350
|
+
*/
|
|
4351
|
+
coin?: string | null;
|
|
4352
|
+
/** @description Pagination cursor (the `nextPageCursor` from a prior response). */
|
|
4353
|
+
cursor?: string | null;
|
|
4354
|
+
/**
|
|
4355
|
+
* Format: int32
|
|
4356
|
+
* @description Page size, `[1, 50]`. Defaults to 50.
|
|
4357
|
+
*/
|
|
4358
|
+
limit?: number | null;
|
|
4359
|
+
};
|
|
4360
|
+
/** @description Response of `GET /v5/asset/withdraw/query-address`. */
|
|
4361
|
+
BybitQueryWithdrawAddressResponse: {
|
|
4362
|
+
/**
|
|
4363
|
+
* @description Opaque cursor to pass back as `cursor` on the next request; absent on
|
|
4364
|
+
* the last page.
|
|
4365
|
+
*/
|
|
4366
|
+
nextPageCursor?: string | null;
|
|
4367
|
+
/** @description Whitelisted withdrawal addresses matching the query. */
|
|
4368
|
+
rows: components["schemas"]["BybitWithdrawAddressEntry"][];
|
|
4369
|
+
};
|
|
4259
4370
|
/**
|
|
4260
4371
|
* @description Bybit-family RPC methods. Each variant authenticates as the
|
|
4261
4372
|
* [`KeyType::HmacSha256Bybit`] key in its `params.key_id` (which must carry
|
|
@@ -4311,6 +4422,16 @@ export interface components {
|
|
|
4311
4422
|
/** @enum {string} */
|
|
4312
4423
|
method: "cs_bybitUniversalTransferHistory";
|
|
4313
4424
|
params: components["schemas"]["BybitUniversalTransferHistoryParams"];
|
|
4425
|
+
}
|
|
4426
|
+
| {
|
|
4427
|
+
/** @enum {string} */
|
|
4428
|
+
method: "cs_bybitQueryWithdrawAddress";
|
|
4429
|
+
params: components["schemas"]["BybitQueryWithdrawAddressParams"];
|
|
4430
|
+
}
|
|
4431
|
+
| {
|
|
4432
|
+
/** @enum {string} */
|
|
4433
|
+
method: "cs_bybitQuerySubDepositAddress";
|
|
4434
|
+
params: components["schemas"]["BybitQuerySubDepositAddressParams"];
|
|
4314
4435
|
};
|
|
4315
4436
|
/** @description Response returned by the typed `bybit_sign` endpoint. */
|
|
4316
4437
|
BybitSignResponse: {
|
|
@@ -4514,6 +4635,41 @@ export interface components {
|
|
|
4514
4635
|
*/
|
|
4515
4636
|
transferId: string;
|
|
4516
4637
|
};
|
|
4638
|
+
/** @description One entry in [`BybitQueryWithdrawAddressResponse::rows`]. */
|
|
4639
|
+
BybitWithdrawAddressEntry: {
|
|
4640
|
+
/** @description The whitelisted destination address. */
|
|
4641
|
+
address: string;
|
|
4642
|
+
/**
|
|
4643
|
+
* Format: int32
|
|
4644
|
+
* @description Address category: `0` on-chain, `1` internal transfer, `2` both.
|
|
4645
|
+
*/
|
|
4646
|
+
addressType?: number | null;
|
|
4647
|
+
/** @description Short chain code (e.g. `ETH`, `TRX`). */
|
|
4648
|
+
chain: string;
|
|
4649
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`). */
|
|
4650
|
+
coin: string;
|
|
4651
|
+
/** @description Creation timestamp, in milliseconds since epoch (as a string). */
|
|
4652
|
+
createdAt?: string | null;
|
|
4653
|
+
/** @description User-supplied label for this address-book entry. */
|
|
4654
|
+
remark?: string | null;
|
|
4655
|
+
/**
|
|
4656
|
+
* Format: int32
|
|
4657
|
+
* @description Entry state: `0` normal, `1` newly added (Bybit blocks withdrawals to
|
|
4658
|
+
* it for 24 hours).
|
|
4659
|
+
*/
|
|
4660
|
+
status?: number | null;
|
|
4661
|
+
/**
|
|
4662
|
+
* @description Memo / tag for chains that use one (e.g. XRP, EOS). Empty for chains
|
|
4663
|
+
* that don't.
|
|
4664
|
+
*/
|
|
4665
|
+
tag?: string | null;
|
|
4666
|
+
/**
|
|
4667
|
+
* Format: int32
|
|
4668
|
+
* @description Whether the address has been verified: `0` unverified, `1` verified.
|
|
4669
|
+
*/
|
|
4670
|
+
verified?: number | null;
|
|
4671
|
+
[key: string]: unknown;
|
|
4672
|
+
};
|
|
4517
4673
|
/** @description One entry in [`BybitWithdrawalsResponse::rows`]. */
|
|
4518
4674
|
BybitWithdrawEntry: {
|
|
4519
4675
|
/** @description Withdrawal amount as a decimal string. */
|
|
@@ -5237,8 +5393,6 @@ export interface components {
|
|
|
5237
5393
|
keys: components["schemas"]["KeyInfo"][];
|
|
5238
5394
|
};
|
|
5239
5395
|
CreateOrgRequest: {
|
|
5240
|
-
/** @description Whether to enable metrics for the new organization */
|
|
5241
|
-
metrics_enabled?: boolean;
|
|
5242
5396
|
/**
|
|
5243
5397
|
* @description The human readable name of the new organization
|
|
5244
5398
|
* @example My Cool Org
|
|
@@ -6491,6 +6645,7 @@ export interface components {
|
|
|
6491
6645
|
| "sign:binance:depositHistory"
|
|
6492
6646
|
| "sign:binance:listSubAccounts"
|
|
6493
6647
|
| "sign:binance:coinInfo"
|
|
6648
|
+
| "sign:binance:subAccountDepositAddress"
|
|
6494
6649
|
| "sign:bybit:*"
|
|
6495
6650
|
| "sign:bybit:queryUser"
|
|
6496
6651
|
| "sign:bybit:querySubMembers"
|
|
@@ -6502,6 +6657,8 @@ export interface components {
|
|
|
6502
6657
|
| "sign:bybit:queryCoinInfo"
|
|
6503
6658
|
| "sign:bybit:depositHistory"
|
|
6504
6659
|
| "sign:bybit:universalTransferHistory"
|
|
6660
|
+
| "sign:bybit:queryWithdrawAddress"
|
|
6661
|
+
| "sign:bybit:querySubDepositAddress"
|
|
6505
6662
|
| "sign:coinbase:*"
|
|
6506
6663
|
| "sign:coinbase:accounts:list"
|
|
6507
6664
|
| "sign:coinbase:portfolios:list"
|
|
@@ -7448,6 +7605,7 @@ export interface components {
|
|
|
7448
7605
|
| components["schemas"]["DepositHistoryResponse"]
|
|
7449
7606
|
| components["schemas"]["ListSubAccountsResponse"]
|
|
7450
7607
|
| components["schemas"]["CoinInfoResponse"]
|
|
7608
|
+
| components["schemas"]["SubAccountDepositAddressResponse"]
|
|
7451
7609
|
| components["schemas"]["BybitQueryUserResponse"]
|
|
7452
7610
|
| components["schemas"]["BybitQuerySubMembersResponse"]
|
|
7453
7611
|
| components["schemas"]["BybitQueryCoinsBalanceResponse"]
|
|
@@ -7458,6 +7616,8 @@ export interface components {
|
|
|
7458
7616
|
| components["schemas"]["BybitCoinInfoResponse"]
|
|
7459
7617
|
| components["schemas"]["BybitDepositHistoryResponse"]
|
|
7460
7618
|
| components["schemas"]["BybitUniversalTransferHistoryResponse"]
|
|
7619
|
+
| components["schemas"]["BybitQueryWithdrawAddressResponse"]
|
|
7620
|
+
| components["schemas"]["BybitQuerySubDepositAddressResponse"]
|
|
7461
7621
|
| components["schemas"]["CoinbaseListAccountsResponse"]
|
|
7462
7622
|
| components["schemas"]["CoinbaseListPortfoliosResponse"]
|
|
7463
7623
|
| components["schemas"]["CoinbaseMoveFundsResponse"]
|
|
@@ -8179,6 +8339,7 @@ export interface components {
|
|
|
8179
8339
|
| "BinanceDepositHistory"
|
|
8180
8340
|
| "BinanceListSubAccounts"
|
|
8181
8341
|
| "BinanceCoinInfo"
|
|
8342
|
+
| "BinanceSubAccountDepositAddress"
|
|
8182
8343
|
| "BlobSign"
|
|
8183
8344
|
| "BtcMessageSign"
|
|
8184
8345
|
| "BtcSign"
|
|
@@ -8192,6 +8353,8 @@ export interface components {
|
|
|
8192
8353
|
| "BybitQueryCoinInfo"
|
|
8193
8354
|
| "BybitDepositHistory"
|
|
8194
8355
|
| "BybitUniversalTransferHistory"
|
|
8356
|
+
| "BybitQueryWithdrawAddress"
|
|
8357
|
+
| "BybitQuerySubDepositAddress"
|
|
8195
8358
|
| "CoinbaseListAccounts"
|
|
8196
8359
|
| "CoinbaseListPortfolios"
|
|
8197
8360
|
| "CoinbaseMoveFunds"
|
|
@@ -8567,8 +8730,6 @@ export interface components {
|
|
|
8567
8730
|
* @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
|
|
8568
8731
|
*/
|
|
8569
8732
|
last_unstake_day_count: number;
|
|
8570
|
-
/** @description Whether metrics are collected for this org */
|
|
8571
|
-
metrics_enabled?: boolean;
|
|
8572
8733
|
/**
|
|
8573
8734
|
* @description The human-readable name for the org
|
|
8574
8735
|
* @example my_org_name
|
|
@@ -10079,7 +10240,13 @@ export interface components {
|
|
|
10079
10240
|
acl?: unknown[] | null;
|
|
10080
10241
|
/** @description The name of the secret. */
|
|
10081
10242
|
name: string;
|
|
10243
|
+
provenance: components["schemas"]["SecretProvenance"];
|
|
10082
10244
|
};
|
|
10245
|
+
/**
|
|
10246
|
+
* @description Where a policy secret's value came from.
|
|
10247
|
+
* @enum {string}
|
|
10248
|
+
*/
|
|
10249
|
+
SecretProvenance: "Imported" | "Generated";
|
|
10083
10250
|
/** @description The value of a policy secret. */
|
|
10084
10251
|
SecretValue: OneOf<
|
|
10085
10252
|
[
|
|
@@ -10101,6 +10268,17 @@ export interface components {
|
|
|
10101
10268
|
*/
|
|
10102
10269
|
salt: string;
|
|
10103
10270
|
},
|
|
10271
|
+
{
|
|
10272
|
+
/**
|
|
10273
|
+
* @description The number of random bytes to generate.
|
|
10274
|
+
* The secret value is the base64 encoding of those bytes, so it is
|
|
10275
|
+
* `4 * ceil(generate_random_bytes / 3)` characters long.
|
|
10276
|
+
*
|
|
10277
|
+
* Must be between 1 and
|
|
10278
|
+
* [MAX_RANDOM_SECRET_BYTES](secrets::MAX_RANDOM_SECRET_BYTES).
|
|
10279
|
+
*/
|
|
10280
|
+
generate_random_bytes: number;
|
|
10281
|
+
},
|
|
10104
10282
|
]
|
|
10105
10283
|
>;
|
|
10106
10284
|
SessionInfo: components["schemas"]["SessionMetadata"] & {
|
|
@@ -10557,6 +10735,51 @@ export interface components {
|
|
|
10557
10735
|
*/
|
|
10558
10736
|
balances: components["schemas"]["SubAccountAsset"][];
|
|
10559
10737
|
};
|
|
10738
|
+
/**
|
|
10739
|
+
* @description Parameters for `GET /sapi/v1/capital/deposit/subAddress`.
|
|
10740
|
+
*
|
|
10741
|
+
* Fetches the deposit address for `coin` on the sub-account identified by
|
|
10742
|
+
* `email`. Master-account keys only; use [`DepositRequest`] for the calling
|
|
10743
|
+
* account's own address.
|
|
10744
|
+
*/
|
|
10745
|
+
SubAccountDepositAddressRequest: {
|
|
10746
|
+
/**
|
|
10747
|
+
* @description Required only when `network` is `"LIGHTNING"`: the deposit amount that
|
|
10748
|
+
* the returned invoice should encode, as a decimal string.
|
|
10749
|
+
*/
|
|
10750
|
+
amount?: string | null;
|
|
10751
|
+
/** @description The asset symbol whose deposit address to fetch (e.g. `"USDT"`, `"BTC"`). */
|
|
10752
|
+
coin: string;
|
|
10753
|
+
/** @description Email of the sub-account whose deposit address to fetch. */
|
|
10754
|
+
email: string;
|
|
10755
|
+
/**
|
|
10756
|
+
* @description Network identifier (e.g. `"BSC"`, `"ETH"`). If omitted, Binance returns
|
|
10757
|
+
* the address on the asset's default network. Valid values are the
|
|
10758
|
+
* networks listed by [`BinanceRpc::CoinInfo`].
|
|
10759
|
+
*/
|
|
10760
|
+
network?: string | null;
|
|
10761
|
+
};
|
|
10762
|
+
/**
|
|
10763
|
+
* @description Response returned by `cs_binanceSubAccountDepositAddress`.
|
|
10764
|
+
*
|
|
10765
|
+
* Same shape as [`DepositResponse`], but kept as a distinct type: `tag`/`url`
|
|
10766
|
+
* are modelled as optional here, and [`crate::response::JsonRpcResult`] is
|
|
10767
|
+
* `untagged` + `derive_more::From`, so two variants cannot share a payload
|
|
10768
|
+
* type.
|
|
10769
|
+
*/
|
|
10770
|
+
SubAccountDepositAddressResponse: {
|
|
10771
|
+
/** @description The sub-account's deposit address. */
|
|
10772
|
+
address: string;
|
|
10773
|
+
/** @description Asset symbol (echoes the request's `coin` field). */
|
|
10774
|
+
coin: string;
|
|
10775
|
+
/**
|
|
10776
|
+
* @description Secondary address identifier required by some assets (e.g. memo for
|
|
10777
|
+
* XRP, tag for XLM). Empty string when the asset does not use one.
|
|
10778
|
+
*/
|
|
10779
|
+
tag?: string | null;
|
|
10780
|
+
/** @description Blockchain explorer URL for `address`. */
|
|
10781
|
+
url?: string | null;
|
|
10782
|
+
};
|
|
10560
10783
|
/** @description One sub-account entry in [`ListSubAccountsResponse`]. */
|
|
10561
10784
|
SubAccountInfo: {
|
|
10562
10785
|
/**
|
|
@@ -12978,8 +13201,6 @@ export interface components {
|
|
|
12978
13201
|
* @description How many 'unstake' calls happened on the day when `last_unstake` was performed.
|
|
12979
13202
|
*/
|
|
12980
13203
|
last_unstake_day_count: number;
|
|
12981
|
-
/** @description Whether metrics are collected for this org */
|
|
12982
|
-
metrics_enabled?: boolean;
|
|
12983
13204
|
/**
|
|
12984
13205
|
* @description The human-readable name for the org
|
|
12985
13206
|
* @example my_org_name
|
|
@@ -15989,7 +16210,8 @@ export interface operations {
|
|
|
15989
16210
|
* List pending invitations
|
|
15990
16211
|
* @description List pending invitations
|
|
15991
16212
|
*
|
|
15992
|
-
* Returns all pending
|
|
16213
|
+
* Returns all pending invitations for the organization, i.e., those that have neither
|
|
16214
|
+
* been accepted nor canceled, and have not expired.
|
|
15993
16215
|
*/
|
|
15994
16216
|
listInvitations: {
|
|
15995
16217
|
parameters: {
|