@cubist-labs/cubesigner-sdk 0.4.270 → 0.4.273
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 +40 -3
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +63 -5
- package/dist/src/client.d.ts +9 -0
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +12 -1
- package/dist/src/key.d.ts +11 -1
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +13 -1
- package/dist/src/org.d.ts +11 -1
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +16 -3
- package/dist/src/role.d.ts +7 -1
- package/dist/src/role.d.ts.map +1 -1
- package/dist/src/role.js +5 -1
- package/dist/src/schema.d.ts +410 -45
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +4 -0
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +5 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +6 -2
- package/package.json +1 -1
- package/src/client/api_client.ts +88 -6
- package/src/client.ts +14 -0
- package/src/key.ts +18 -0
- package/src/org.ts +16 -2
- package/src/role.ts +11 -1
- package/src/schema.ts +422 -38
- package/src/schema_types.ts +8 -0
- package/src/scopes.ts +5 -1
package/src/schema.ts
CHANGED
|
@@ -439,6 +439,17 @@ export interface paths {
|
|
|
439
439
|
*/
|
|
440
440
|
post: operations["eip712Sign"];
|
|
441
441
|
};
|
|
442
|
+
"/v0/org/{org_id}/evm/eip7702/sign/{pubkey}": {
|
|
443
|
+
/**
|
|
444
|
+
* Sign an EIP-7702 Authorization
|
|
445
|
+
* @description Sign an EIP-7702 Authorization
|
|
446
|
+
*
|
|
447
|
+
* Signs an EIP-7702 authorization tuple `(chain_id, address, nonce)` with a given
|
|
448
|
+
* Secp256k1 key. The resulting 65-byte signature (`r || s || y_parity`) can be used to
|
|
449
|
+
* assemble a `SignedAuthorization` for an EIP-7702 set-code transaction.
|
|
450
|
+
*/
|
|
451
|
+
post: operations["eip7702Sign"];
|
|
452
|
+
};
|
|
442
453
|
"/v0/org/{org_id}/export/{key_id}": {
|
|
443
454
|
/**
|
|
444
455
|
* Get an Org-Export Ciphertext
|
|
@@ -740,6 +751,9 @@ export interface paths {
|
|
|
740
751
|
* Retrieves and returns all pending MFA requests that are accessible to the current session,
|
|
741
752
|
* i.e., those created by the current session identity plus those in which the current user
|
|
742
753
|
* is listed as an approver
|
|
754
|
+
*
|
|
755
|
+
* NOTE that if pagination is used and a page limit is set, the returned result
|
|
756
|
+
* set may contain either FEWER or MORE elements than the requested page limit.
|
|
743
757
|
*/
|
|
744
758
|
get: operations["mfaList"];
|
|
745
759
|
};
|
|
@@ -2965,6 +2979,7 @@ export interface components {
|
|
|
2965
2979
|
| "InvalidDiffieHellmanRequest"
|
|
2966
2980
|
| "InvalidSolanaSignRequest"
|
|
2967
2981
|
| "InvalidEip712SignRequest"
|
|
2982
|
+
| "InvalidEip7702SignRequest"
|
|
2968
2983
|
| "OnlySpecifyOne"
|
|
2969
2984
|
| "IncompatibleParams"
|
|
2970
2985
|
| "NoOidcDataInProof"
|
|
@@ -3239,6 +3254,7 @@ export interface components {
|
|
|
3239
3254
|
| "TaprootSign"
|
|
3240
3255
|
| "Eip712Sign"
|
|
3241
3256
|
| "Eip191Sign"
|
|
3257
|
+
| "Eip7702Sign"
|
|
3242
3258
|
| "Eth1Sign"
|
|
3243
3259
|
| "Eth2Sign"
|
|
3244
3260
|
| "SolanaSign"
|
|
@@ -3921,6 +3937,41 @@ export interface components {
|
|
|
3921
3937
|
/** @description Total wallet balance for `coin`, as a decimal string. */
|
|
3922
3938
|
walletBalance: string;
|
|
3923
3939
|
};
|
|
3940
|
+
/** @description One entry in [`BybitCoinInfoEntry::chains`]. */
|
|
3941
|
+
BybitCoinInfoChain: {
|
|
3942
|
+
/** @description Short chain code (e.g. `ETH`, `TRX`). */
|
|
3943
|
+
chain: string;
|
|
3944
|
+
/** @description Whether deposits are enabled on this chain: `"0"` off, `"1"` on. */
|
|
3945
|
+
chainDeposit?: string | null;
|
|
3946
|
+
/** @description Human-readable chain name (e.g. `ERC20`). */
|
|
3947
|
+
chainType?: string | null;
|
|
3948
|
+
/** @description Whether withdrawals are enabled on this chain: `"0"` off, `"1"` on. */
|
|
3949
|
+
chainWithdraw?: string | null;
|
|
3950
|
+
/** @description Number of confirmations required for a deposit to be credited. */
|
|
3951
|
+
confirmation?: string | null;
|
|
3952
|
+
/** @description Minimum deposit amount, as a decimal string. */
|
|
3953
|
+
depositMin?: string | null;
|
|
3954
|
+
/** @description Withdrawal fee on this chain, as a decimal string. If empty string, this coin does not support withdrawal. */
|
|
3955
|
+
withdrawFee?: string | null;
|
|
3956
|
+
/** @description Minimum withdrawal amount, as a decimal string. */
|
|
3957
|
+
withdrawMin?: string | null;
|
|
3958
|
+
[key: string]: unknown;
|
|
3959
|
+
};
|
|
3960
|
+
/** @description One entry in [`BybitCoinInfoResponse::rows`]. */
|
|
3961
|
+
BybitCoinInfoEntry: {
|
|
3962
|
+
/** @description Per-chain configuration for this coin. */
|
|
3963
|
+
chains?: components["schemas"]["BybitCoinInfoChain"][];
|
|
3964
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`). */
|
|
3965
|
+
coin: string;
|
|
3966
|
+
/** @description Full coin name (e.g. `Tether`). */
|
|
3967
|
+
name?: string | null;
|
|
3968
|
+
[key: string]: unknown;
|
|
3969
|
+
};
|
|
3970
|
+
/** @description Response of `GET /v5/asset/coin/query-info`. */
|
|
3971
|
+
BybitCoinInfoResponse: {
|
|
3972
|
+
/** @description Per-coin info entries. */
|
|
3973
|
+
rows: components["schemas"]["BybitCoinInfoEntry"][];
|
|
3974
|
+
};
|
|
3924
3975
|
/** @description One entry in [`BybitQueryDepositAddressResponse::chains`]. */
|
|
3925
3976
|
BybitDepositChain: {
|
|
3926
3977
|
/** @description Deposit address on this chain. */
|
|
@@ -3942,6 +3993,93 @@ export interface components {
|
|
|
3942
3993
|
*/
|
|
3943
3994
|
tagDeposit?: string | null;
|
|
3944
3995
|
};
|
|
3996
|
+
/** @description One entry in [`BybitDepositHistoryResponse::rows`]. */
|
|
3997
|
+
BybitDepositEntry: {
|
|
3998
|
+
/** @description Deposit amount as a decimal string. */
|
|
3999
|
+
amount: string;
|
|
4000
|
+
/** @description Short chain code (e.g. `ETH`, `TRX`). */
|
|
4001
|
+
chain: string;
|
|
4002
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`). */
|
|
4003
|
+
coin: string;
|
|
4004
|
+
/** @description Number of confirmations received so far. */
|
|
4005
|
+
confirmations?: string | null;
|
|
4006
|
+
/** @description Deposit fee charged, as a decimal string. */
|
|
4007
|
+
depositFee?: string | null;
|
|
4008
|
+
/**
|
|
4009
|
+
* Format: int32
|
|
4010
|
+
* @description Deposit state (e.g. `3` = deposit success). See the Bybit docs.
|
|
4011
|
+
*/
|
|
4012
|
+
status?: number | null;
|
|
4013
|
+
/** @description Timestamp the deposit succeeded, in milliseconds since epoch (as a string). */
|
|
4014
|
+
successAt?: string | null;
|
|
4015
|
+
/** @description Memo / tag for chains that use one (e.g. XRP, EOS). */
|
|
4016
|
+
tag?: string | null;
|
|
4017
|
+
/** @description Destination deposit address. */
|
|
4018
|
+
toAddress?: string | null;
|
|
4019
|
+
/** @description On-chain transaction hash. */
|
|
4020
|
+
txID?: string | null;
|
|
4021
|
+
[key: string]: unknown;
|
|
4022
|
+
};
|
|
4023
|
+
/**
|
|
4024
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4025
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4026
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4027
|
+
* directly below.)
|
|
4028
|
+
*/
|
|
4029
|
+
BybitDepositHistoryParams: components["schemas"]["BybitDepositHistoryRequest"] & {
|
|
4030
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4031
|
+
keyId: components["schemas"]["Id"];
|
|
4032
|
+
/**
|
|
4033
|
+
* Format: int32
|
|
4034
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4035
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4036
|
+
*/
|
|
4037
|
+
recvWindow?: number | null;
|
|
4038
|
+
};
|
|
4039
|
+
/**
|
|
4040
|
+
* @description Parameters for `GET /v5/asset/deposit/query-record`.
|
|
4041
|
+
*
|
|
4042
|
+
* By default, queries records from the last 30 days; otherwise, `endTime` - `startTime` must be less than 30 days.
|
|
4043
|
+
*/
|
|
4044
|
+
BybitDepositHistoryRequest: {
|
|
4045
|
+
/** @description Filter by coin symbol (uppercase). */
|
|
4046
|
+
coin?: string | null;
|
|
4047
|
+
/** @description Pagination cursor (the `nextPageCursor` from a prior response). */
|
|
4048
|
+
cursor?: string | null;
|
|
4049
|
+
/**
|
|
4050
|
+
* Format: int64
|
|
4051
|
+
* @description End timestamp (ms since epoch).
|
|
4052
|
+
*/
|
|
4053
|
+
endTime?: number | null;
|
|
4054
|
+
/** @description Filter by Bybit-internal deposit id. */
|
|
4055
|
+
id?: string | null;
|
|
4056
|
+
/**
|
|
4057
|
+
* Format: int32
|
|
4058
|
+
* @description Page size, `[1, 50]`. Defaults to 50.
|
|
4059
|
+
*/
|
|
4060
|
+
limit?: number | null;
|
|
4061
|
+
/**
|
|
4062
|
+
* Format: int64
|
|
4063
|
+
* @description Start timestamp (ms since epoch). The span between `start_time` and
|
|
4064
|
+
* `end_time` must not exceed 30 days.
|
|
4065
|
+
*/
|
|
4066
|
+
startTime?: number | null;
|
|
4067
|
+
/**
|
|
4068
|
+
* @description Filter by on-chain transaction id. Data before 2024-01-01 is not
|
|
4069
|
+
* queryable via this field.
|
|
4070
|
+
*/
|
|
4071
|
+
txID?: string | null;
|
|
4072
|
+
};
|
|
4073
|
+
/** @description Response of `GET /v5/asset/deposit/query-record`. */
|
|
4074
|
+
BybitDepositHistoryResponse: {
|
|
4075
|
+
/**
|
|
4076
|
+
* @description Opaque cursor to pass back as `cursor` on the next request; absent on
|
|
4077
|
+
* the last page.
|
|
4078
|
+
*/
|
|
4079
|
+
nextPageCursor?: string | null;
|
|
4080
|
+
/** @description Deposit records matching the query. */
|
|
4081
|
+
rows: components["schemas"]["BybitDepositEntry"][];
|
|
4082
|
+
};
|
|
3945
4083
|
BybitDryRunArgs: {
|
|
3946
4084
|
/** @description The Bybit API method that would have been used */
|
|
3947
4085
|
method: string;
|
|
@@ -3955,6 +4093,30 @@ export interface components {
|
|
|
3955
4093
|
* @enum {string}
|
|
3956
4094
|
*/
|
|
3957
4095
|
BybitDryRunMode: "NO_SIGN" | "NO_SUBMIT";
|
|
4096
|
+
/**
|
|
4097
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4098
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4099
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4100
|
+
* directly below.)
|
|
4101
|
+
*/
|
|
4102
|
+
BybitQueryCoinInfoParams: components["schemas"]["BybitQueryCoinInfoRequest"] & {
|
|
4103
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4104
|
+
keyId: components["schemas"]["Id"];
|
|
4105
|
+
/**
|
|
4106
|
+
* Format: int32
|
|
4107
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4108
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4109
|
+
*/
|
|
4110
|
+
recvWindow?: number | null;
|
|
4111
|
+
};
|
|
4112
|
+
/** @description Parameters for `GET /v5/asset/coin/query-info`. */
|
|
4113
|
+
BybitQueryCoinInfoRequest: {
|
|
4114
|
+
/**
|
|
4115
|
+
* @description Filter by coin symbol (uppercase, e.g. `"BTC"`). Bybit returns info for
|
|
4116
|
+
* all coins when omitted.
|
|
4117
|
+
*/
|
|
4118
|
+
coin?: string | null;
|
|
4119
|
+
};
|
|
3958
4120
|
/**
|
|
3959
4121
|
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
3960
4122
|
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
@@ -4134,6 +4296,21 @@ export interface components {
|
|
|
4134
4296
|
/** @enum {string} */
|
|
4135
4297
|
method: "cs_bybitWithdrawals";
|
|
4136
4298
|
params: components["schemas"]["BybitWithdrawalsParams"];
|
|
4299
|
+
}
|
|
4300
|
+
| {
|
|
4301
|
+
/** @enum {string} */
|
|
4302
|
+
method: "cs_bybitQueryCoinInfo";
|
|
4303
|
+
params: components["schemas"]["BybitQueryCoinInfoParams"];
|
|
4304
|
+
}
|
|
4305
|
+
| {
|
|
4306
|
+
/** @enum {string} */
|
|
4307
|
+
method: "cs_bybitDepositHistory";
|
|
4308
|
+
params: components["schemas"]["BybitDepositHistoryParams"];
|
|
4309
|
+
}
|
|
4310
|
+
| {
|
|
4311
|
+
/** @enum {string} */
|
|
4312
|
+
method: "cs_bybitUniversalTransferHistory";
|
|
4313
|
+
params: components["schemas"]["BybitUniversalTransferHistoryParams"];
|
|
4137
4314
|
};
|
|
4138
4315
|
/** @description Response returned by the typed `bybit_sign` endpoint. */
|
|
4139
4316
|
BybitSignResponse: {
|
|
@@ -4189,6 +4366,94 @@ export interface components {
|
|
|
4189
4366
|
username?: string | null;
|
|
4190
4367
|
[key: string]: unknown;
|
|
4191
4368
|
};
|
|
4369
|
+
/** @description One entry in [`BybitUniversalTransferHistoryResponse::list`]. */
|
|
4370
|
+
BybitTransferEntry: {
|
|
4371
|
+
/** @description Transfer amount as a decimal string. */
|
|
4372
|
+
amount: string;
|
|
4373
|
+
/** @description Coin symbol, uppercase (e.g. `USDT`). */
|
|
4374
|
+
coin: string;
|
|
4375
|
+
/** @description Source wallet type (e.g. `FUND`, `UNIFIED`). */
|
|
4376
|
+
fromAccountType?: string | null;
|
|
4377
|
+
/** @description Source account UID. */
|
|
4378
|
+
fromMemberId?: string | null;
|
|
4379
|
+
/** @description Transfer state: `SUCCESS`, `PENDING`, or `FAILED`. */
|
|
4380
|
+
status?: string | null;
|
|
4381
|
+
/** @description Creation timestamp, in milliseconds since epoch (as a string). */
|
|
4382
|
+
timestamp?: string | null;
|
|
4383
|
+
/** @description Destination wallet type. */
|
|
4384
|
+
toAccountType?: string | null;
|
|
4385
|
+
/** @description Destination account UID. */
|
|
4386
|
+
toMemberId?: string | null;
|
|
4387
|
+
/** @description UUID of the transfer (the caller-supplied `transferId`). */
|
|
4388
|
+
transferId: string;
|
|
4389
|
+
[key: string]: unknown;
|
|
4390
|
+
};
|
|
4391
|
+
/**
|
|
4392
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4393
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4394
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4395
|
+
* directly below.)
|
|
4396
|
+
*/
|
|
4397
|
+
BybitUniversalTransferHistoryParams: components["schemas"]["BybitUniversalTransferHistoryRequest"] & {
|
|
4398
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4399
|
+
keyId: components["schemas"]["Id"];
|
|
4400
|
+
/**
|
|
4401
|
+
* Format: int32
|
|
4402
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4403
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4404
|
+
*/
|
|
4405
|
+
recvWindow?: number | null;
|
|
4406
|
+
};
|
|
4407
|
+
/**
|
|
4408
|
+
* @description Parameters for `GET /v5/asset/transfer/query-universal-transfer-list`.
|
|
4409
|
+
*
|
|
4410
|
+
* If `startTime` and `endTime` are not provided, the API returns data from the past 7 days by default.
|
|
4411
|
+
* If only `startTime` is provided, the API returns records from `startTime` to `startTime` + 7 days.
|
|
4412
|
+
* If only `endTime` is provided, the API returns records from `endTime` - 7 days to `endTime`.
|
|
4413
|
+
* If both are provided, the maximum allowed range is 7 days (`endTime` - `startTime` ≤ 7 days).
|
|
4414
|
+
*/
|
|
4415
|
+
BybitUniversalTransferHistoryRequest: {
|
|
4416
|
+
/** @description Filter by coin symbol (uppercase). */
|
|
4417
|
+
coin?: string | null;
|
|
4418
|
+
/** @description Pagination cursor (the `nextPageCursor` from a prior response). */
|
|
4419
|
+
cursor?: string | null;
|
|
4420
|
+
/**
|
|
4421
|
+
* Format: int64
|
|
4422
|
+
* @description End timestamp (ms since epoch).
|
|
4423
|
+
*/
|
|
4424
|
+
endTime?: number | null;
|
|
4425
|
+
/**
|
|
4426
|
+
* Format: int32
|
|
4427
|
+
* @description Page size, `[1, 50]`. Defaults to 20.
|
|
4428
|
+
*/
|
|
4429
|
+
limit?: number | null;
|
|
4430
|
+
/**
|
|
4431
|
+
* Format: int64
|
|
4432
|
+
* @description Start timestamp (ms since epoch). The span between `start_time` and
|
|
4433
|
+
* `end_time` must not exceed 7 days.
|
|
4434
|
+
*/
|
|
4435
|
+
startTime?: number | null;
|
|
4436
|
+
/** @description Filter by transfer status: `"SUCCESS"`, `"FAILED"`, or `"PENDING"`. */
|
|
4437
|
+
status?: string | null;
|
|
4438
|
+
/**
|
|
4439
|
+
* @description Filter by the transfer's UUID (as supplied to
|
|
4440
|
+
* [`BybitRpc::UniversalTransfer`]).
|
|
4441
|
+
*/
|
|
4442
|
+
transferId?: string | null;
|
|
4443
|
+
};
|
|
4444
|
+
/** @description Response of `GET /v5/asset/transfer/query-universal-transfer-list`. */
|
|
4445
|
+
BybitUniversalTransferHistoryResponse: {
|
|
4446
|
+
/**
|
|
4447
|
+
* @description Universal-transfer records matching the query. (Bybit names this field
|
|
4448
|
+
* `list`, unlike the `rows` used by other history endpoints.)
|
|
4449
|
+
*/
|
|
4450
|
+
list: components["schemas"]["BybitTransferEntry"][];
|
|
4451
|
+
/**
|
|
4452
|
+
* @description Opaque cursor to pass back as `cursor` on the next request; absent on
|
|
4453
|
+
* the last page.
|
|
4454
|
+
*/
|
|
4455
|
+
nextPageCursor?: string | null;
|
|
4456
|
+
};
|
|
4192
4457
|
/**
|
|
4193
4458
|
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4194
4459
|
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
@@ -5657,6 +5922,51 @@ export interface components {
|
|
|
5657
5922
|
tweak?: string | null;
|
|
5658
5923
|
typed_data: components["schemas"]["TypedData"];
|
|
5659
5924
|
};
|
|
5925
|
+
Eip7702SignRequest: {
|
|
5926
|
+
/** @description Do not produce a valid signature, just evaluate attached policies. */
|
|
5927
|
+
dry_run?: boolean;
|
|
5928
|
+
/**
|
|
5929
|
+
* @description Request additional information to be included in the response, explaining
|
|
5930
|
+
* the outcome (i.e., permitted vs. denied vs. MFA required) of the sign request.
|
|
5931
|
+
* Defaults to false.
|
|
5932
|
+
*/
|
|
5933
|
+
explain?: boolean;
|
|
5934
|
+
/**
|
|
5935
|
+
* @description If MFA is required, fail the request instead of returning 202 and creating
|
|
5936
|
+
* pending MFA request. Defaults to false.
|
|
5937
|
+
*/
|
|
5938
|
+
fail_on_mfa?: boolean;
|
|
5939
|
+
/**
|
|
5940
|
+
* @description Optional metadata. Passing additional information as metadata can be used to make reviewing
|
|
5941
|
+
* of pending MFA requests and/or historical key transactions more transparent. It can also be used e.g., to carry additional data to WebHook policies.
|
|
5942
|
+
*/
|
|
5943
|
+
metadata?: unknown;
|
|
5944
|
+
} & {
|
|
5945
|
+
/**
|
|
5946
|
+
* @description The address to delegate to (the target of the authorization), as
|
|
5947
|
+
* hex-encoded bytes. Must be exactly 20 bytes.
|
|
5948
|
+
* @example 0x1100000000000000000000000000000000000011
|
|
5949
|
+
*/
|
|
5950
|
+
address: string;
|
|
5951
|
+
/**
|
|
5952
|
+
* Format: int64
|
|
5953
|
+
* @description The chain id for which this authorization is valid. A value of `0` means
|
|
5954
|
+
* the authorization is valid on any chain that supports EIP-7702.
|
|
5955
|
+
*/
|
|
5956
|
+
chain_id: number;
|
|
5957
|
+
/**
|
|
5958
|
+
* Format: int64
|
|
5959
|
+
* @description The nonce of the authorizing account.
|
|
5960
|
+
*/
|
|
5961
|
+
nonce: number;
|
|
5962
|
+
/**
|
|
5963
|
+
* @description An optional tweak value that will be applied to the secret key before signing.
|
|
5964
|
+
* This field must contain a base-64 string encoding a vector of exactly 32 bytes.
|
|
5965
|
+
* See the CubeSigner documentation for more information on the tweaking procedure.
|
|
5966
|
+
* @example F41HAy2q5Gn8laF2CuMsZbRAQTmD+4Ob3VUMZ7TBGK4=
|
|
5967
|
+
*/
|
|
5968
|
+
tweak?: string | null;
|
|
5969
|
+
};
|
|
5660
5970
|
Email: string;
|
|
5661
5971
|
/** @description An answer to the challenge returned by the `mfa_email_init` endpoint. */
|
|
5662
5972
|
EmailOtpAnswer: {
|
|
@@ -6189,6 +6499,9 @@ export interface components {
|
|
|
6189
6499
|
| "sign:bybit:universalTransfer"
|
|
6190
6500
|
| "sign:bybit:withdraw"
|
|
6191
6501
|
| "sign:bybit:withdrawals"
|
|
6502
|
+
| "sign:bybit:queryCoinInfo"
|
|
6503
|
+
| "sign:bybit:depositHistory"
|
|
6504
|
+
| "sign:bybit:universalTransferHistory"
|
|
6192
6505
|
| "sign:coinbase:*"
|
|
6193
6506
|
| "sign:coinbase:accounts:list"
|
|
6194
6507
|
| "sign:coinbase:portfolios:list"
|
|
@@ -6222,6 +6535,7 @@ export interface components {
|
|
|
6222
6535
|
| "sign:evm:tx"
|
|
6223
6536
|
| "sign:evm:eip191"
|
|
6224
6537
|
| "sign:evm:eip712"
|
|
6538
|
+
| "sign:evm:eip7702"
|
|
6225
6539
|
| "sign:eth2:*"
|
|
6226
6540
|
| "sign:eth2:validate"
|
|
6227
6541
|
| "sign:eth2:stake"
|
|
@@ -6507,6 +6821,7 @@ export interface components {
|
|
|
6507
6821
|
| "SessionForWrongOrg"
|
|
6508
6822
|
| "SelfDelete"
|
|
6509
6823
|
| "SelfDisable"
|
|
6824
|
+
| "SelfMfaReset"
|
|
6510
6825
|
| "InvalidOrgMembershipRoleChange"
|
|
6511
6826
|
| "UserDisabled"
|
|
6512
6827
|
| "OrgDisabled"
|
|
@@ -7138,6 +7453,9 @@ export interface components {
|
|
|
7138
7453
|
| components["schemas"]["BybitUniversalTransferResponse"]
|
|
7139
7454
|
| components["schemas"]["BybitWithdrawResponse"]
|
|
7140
7455
|
| components["schemas"]["BybitWithdrawalsResponse"]
|
|
7456
|
+
| components["schemas"]["BybitCoinInfoResponse"]
|
|
7457
|
+
| components["schemas"]["BybitDepositHistoryResponse"]
|
|
7458
|
+
| components["schemas"]["BybitUniversalTransferHistoryResponse"]
|
|
7141
7459
|
| components["schemas"]["CoinbaseListAccountsResponse"]
|
|
7142
7460
|
| components["schemas"]["CoinbaseListPortfoliosResponse"]
|
|
7143
7461
|
| components["schemas"]["CoinbaseMoveFundsResponse"]
|
|
@@ -7399,10 +7717,6 @@ export interface components {
|
|
|
7399
7717
|
/** @description Pending invitations */
|
|
7400
7718
|
invitations: components["schemas"]["InvitationInfo"][];
|
|
7401
7719
|
};
|
|
7402
|
-
ListMfaResponse: {
|
|
7403
|
-
/** @description All pending MFA requests */
|
|
7404
|
-
mfa_requests: components["schemas"]["MfaRequestInfo"][];
|
|
7405
|
-
};
|
|
7406
7720
|
/** @description All pending MMI requests created by the current user. */
|
|
7407
7721
|
ListPendingMessagesResponse: {
|
|
7408
7722
|
/** @description All pending messages for a user. */
|
|
@@ -7873,6 +8187,9 @@ export interface components {
|
|
|
7873
8187
|
| "BybitUniversalTransfer"
|
|
7874
8188
|
| "BybitWithdraw"
|
|
7875
8189
|
| "BybitWithdrawals"
|
|
8190
|
+
| "BybitQueryCoinInfo"
|
|
8191
|
+
| "BybitDepositHistory"
|
|
8192
|
+
| "BybitUniversalTransferHistory"
|
|
7876
8193
|
| "CoinbaseListAccounts"
|
|
7877
8194
|
| "CoinbaseListPortfolios"
|
|
7878
8195
|
| "CoinbaseMoveFunds"
|
|
@@ -7881,6 +8198,7 @@ export interface components {
|
|
|
7881
8198
|
| "TaprootSign"
|
|
7882
8199
|
| "Eip191Sign"
|
|
7883
8200
|
| "Eip712Sign"
|
|
8201
|
+
| "Eip7702Sign"
|
|
7884
8202
|
| "EotsNonces"
|
|
7885
8203
|
| "EotsSign"
|
|
7886
8204
|
| "Eth1Sign"
|
|
@@ -8332,8 +8650,7 @@ export interface components {
|
|
|
8332
8650
|
* is meaningless for organizations that use org-wide export.)
|
|
8333
8651
|
*/
|
|
8334
8652
|
user_export_window: number;
|
|
8335
|
-
|
|
8336
|
-
webapp_enabled?: boolean;
|
|
8653
|
+
webapp_enabled?: components["schemas"]["WebappEnabled"];
|
|
8337
8654
|
};
|
|
8338
8655
|
/** @description Supported org metrics. */
|
|
8339
8656
|
OrgMetric: OneOf<
|
|
@@ -8531,6 +8848,21 @@ export interface components {
|
|
|
8531
8848
|
*/
|
|
8532
8849
|
last_evaluated_key?: string | null;
|
|
8533
8850
|
};
|
|
8851
|
+
/**
|
|
8852
|
+
* @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
|
|
8853
|
+
* value (which can the user pass back to use as a url query parameter to continue pagination).
|
|
8854
|
+
*/
|
|
8855
|
+
PaginatedListMfaResponse: {
|
|
8856
|
+
/** @description All pending MFA requests */
|
|
8857
|
+
mfa_requests: components["schemas"]["MfaRequestInfo"][];
|
|
8858
|
+
} & {
|
|
8859
|
+
/**
|
|
8860
|
+
* @description If set, the content of `response` does not contain the entire result set.
|
|
8861
|
+
* To fetch the next page of the result set, call the same endpoint
|
|
8862
|
+
* but specify this value as the 'page.start' query parameter.
|
|
8863
|
+
*/
|
|
8864
|
+
last_evaluated_key?: string | null;
|
|
8865
|
+
};
|
|
8534
8866
|
/**
|
|
8535
8867
|
* @description Response type that wraps another type and adds base64url-encoded encrypted `last_evaluated_key`
|
|
8536
8868
|
* value (which can the user pass back to use as a url query parameter to continue pagination).
|
|
@@ -8860,6 +9192,7 @@ export interface components {
|
|
|
8860
9192
|
| "BtcSignatureExceededValue"
|
|
8861
9193
|
| "BtcValueOverflow"
|
|
8862
9194
|
| "BtcSighashTypeDisallowed"
|
|
9195
|
+
| "Eip7702AddressMismatch"
|
|
8863
9196
|
| "EvmTxReceiverMismatch"
|
|
8864
9197
|
| "EvmTxChainIdMismatch"
|
|
8865
9198
|
| "EvmTxSenderMismatch"
|
|
@@ -8900,6 +9233,7 @@ export interface components {
|
|
|
8900
9233
|
| "RequireRoleSessionKeyAccessError"
|
|
8901
9234
|
| "BtcMessageSigningNotAllowed"
|
|
8902
9235
|
| "Eip191SigningNotAllowed"
|
|
9236
|
+
| "Eip7702SigningNotAllowed"
|
|
8903
9237
|
| "TaprootSigningDisallowed"
|
|
8904
9238
|
| "SegwitSigningDisallowed"
|
|
8905
9239
|
| "PsbtSigningDisallowed"
|
|
@@ -9836,7 +10170,7 @@ export interface components {
|
|
|
9836
10170
|
* Can be `None` if the request is creating a secret without ACL or updating an
|
|
9837
10171
|
* existing secret's value.
|
|
9838
10172
|
*/
|
|
9839
|
-
acl?: unknown
|
|
10173
|
+
acl?: unknown;
|
|
9840
10174
|
import_key?: components["schemas"]["KeyImportKey"] | null;
|
|
9841
10175
|
value?: components["schemas"]["SecretValue"] | null;
|
|
9842
10176
|
};
|
|
@@ -11285,26 +11619,8 @@ export interface components {
|
|
|
11285
11619
|
};
|
|
11286
11620
|
/** @description Request body for updating a named policy. */
|
|
11287
11621
|
UpdatePolicyRequest: {
|
|
11288
|
-
/**
|
|
11289
|
-
|
|
11290
|
-
* @example [
|
|
11291
|
-
* {
|
|
11292
|
-
* "action": "attach",
|
|
11293
|
-
* "resources": [
|
|
11294
|
-
* {
|
|
11295
|
-
* "key_id": "*",
|
|
11296
|
-
* "role_id": "Role#e427c28a-9c5b-49cc-a257-878aea58a22c"
|
|
11297
|
-
* }
|
|
11298
|
-
* ],
|
|
11299
|
-
* "subjects": "*"
|
|
11300
|
-
* },
|
|
11301
|
-
* {
|
|
11302
|
-
* "action": "sign",
|
|
11303
|
-
* "subjects": "Role#e427c28a-9c5b-49cc-a257-878aea58a22c"
|
|
11304
|
-
* }
|
|
11305
|
-
* ]
|
|
11306
|
-
*/
|
|
11307
|
-
acl?: unknown[] | null;
|
|
11622
|
+
/** @description New Access-control entries. */
|
|
11623
|
+
acl?: unknown;
|
|
11308
11624
|
edit_policy?: components["schemas"]["EditPolicy"] | null;
|
|
11309
11625
|
/** @description A new metadata. */
|
|
11310
11626
|
metadata?: unknown;
|
|
@@ -11618,6 +11934,8 @@ export interface components {
|
|
|
11618
11934
|
/** @description The Id of the policy this wasm rule belongs to. */
|
|
11619
11935
|
policy_id: string;
|
|
11620
11936
|
};
|
|
11937
|
+
/** @description Whether the official webapp origin is automatically allowed. `"limited"` is treated the same as `true` by the back end, but reported as-is to clients */
|
|
11938
|
+
WebappEnabled: boolean | "limited";
|
|
11621
11939
|
/**
|
|
11622
11940
|
* @description Allowed webhook methods
|
|
11623
11941
|
* @enum {string}
|
|
@@ -12529,14 +12847,6 @@ export interface components {
|
|
|
12529
12847
|
};
|
|
12530
12848
|
};
|
|
12531
12849
|
};
|
|
12532
|
-
ListMfaResponse: {
|
|
12533
|
-
content: {
|
|
12534
|
-
"application/json": {
|
|
12535
|
-
/** @description All pending MFA requests */
|
|
12536
|
-
mfa_requests: components["schemas"]["MfaRequestInfo"][];
|
|
12537
|
-
};
|
|
12538
|
-
};
|
|
12539
|
-
};
|
|
12540
12850
|
/** @description All pending MMI requests created by the current user. */
|
|
12541
12851
|
ListPendingMessagesResponse: {
|
|
12542
12852
|
content: {
|
|
@@ -12751,8 +13061,7 @@ export interface components {
|
|
|
12751
13061
|
* is meaningless for organizations that use org-wide export.)
|
|
12752
13062
|
*/
|
|
12753
13063
|
user_export_window: number;
|
|
12754
|
-
|
|
12755
|
-
webapp_enabled?: boolean;
|
|
13064
|
+
webapp_enabled?: components["schemas"]["WebappEnabled"];
|
|
12756
13065
|
};
|
|
12757
13066
|
};
|
|
12758
13067
|
};
|
|
@@ -12875,6 +13184,21 @@ export interface components {
|
|
|
12875
13184
|
};
|
|
12876
13185
|
};
|
|
12877
13186
|
};
|
|
13187
|
+
PaginatedListMfaResponse: {
|
|
13188
|
+
content: {
|
|
13189
|
+
"application/json": {
|
|
13190
|
+
/** @description All pending MFA requests */
|
|
13191
|
+
mfa_requests: components["schemas"]["MfaRequestInfo"][];
|
|
13192
|
+
} & {
|
|
13193
|
+
/**
|
|
13194
|
+
* @description If set, the content of `response` does not contain the entire result set.
|
|
13195
|
+
* To fetch the next page of the result set, call the same endpoint
|
|
13196
|
+
* but specify this value as the 'page.start' query parameter.
|
|
13197
|
+
*/
|
|
13198
|
+
last_evaluated_key?: string | null;
|
|
13199
|
+
};
|
|
13200
|
+
};
|
|
13201
|
+
};
|
|
12878
13202
|
PaginatedListPoliciesResponse: {
|
|
12879
13203
|
content: {
|
|
12880
13204
|
"application/json": {
|
|
@@ -15128,6 +15452,48 @@ export interface operations {
|
|
|
15128
15452
|
};
|
|
15129
15453
|
};
|
|
15130
15454
|
};
|
|
15455
|
+
/**
|
|
15456
|
+
* Sign an EIP-7702 Authorization
|
|
15457
|
+
* @description Sign an EIP-7702 Authorization
|
|
15458
|
+
*
|
|
15459
|
+
* Signs an EIP-7702 authorization tuple `(chain_id, address, nonce)` with a given
|
|
15460
|
+
* Secp256k1 key. The resulting 65-byte signature (`r || s || y_parity`) can be used to
|
|
15461
|
+
* assemble a `SignedAuthorization` for an EIP-7702 set-code transaction.
|
|
15462
|
+
*/
|
|
15463
|
+
eip7702Sign: {
|
|
15464
|
+
parameters: {
|
|
15465
|
+
path: {
|
|
15466
|
+
/**
|
|
15467
|
+
* @description Name or ID of the desired Org
|
|
15468
|
+
* @example Org#124dfe3e-3bbd-487d-80c0-53c55e8ab87a
|
|
15469
|
+
*/
|
|
15470
|
+
org_id: string;
|
|
15471
|
+
/**
|
|
15472
|
+
* @description Hex-encoded EVM address of the Secp256k1 key
|
|
15473
|
+
* @example 0x49011adbCC3bC9c0307BB07F37Dda1a1a9c69d2E
|
|
15474
|
+
*/
|
|
15475
|
+
pubkey: string;
|
|
15476
|
+
};
|
|
15477
|
+
};
|
|
15478
|
+
requestBody: {
|
|
15479
|
+
content: {
|
|
15480
|
+
"application/json": components["schemas"]["Eip7702SignRequest"];
|
|
15481
|
+
};
|
|
15482
|
+
};
|
|
15483
|
+
responses: {
|
|
15484
|
+
200: components["responses"]["SignResponse"];
|
|
15485
|
+
202: {
|
|
15486
|
+
content: {
|
|
15487
|
+
"application/json": components["schemas"]["AcceptedResponse"];
|
|
15488
|
+
};
|
|
15489
|
+
};
|
|
15490
|
+
default: {
|
|
15491
|
+
content: {
|
|
15492
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
15493
|
+
};
|
|
15494
|
+
};
|
|
15495
|
+
};
|
|
15496
|
+
};
|
|
15131
15497
|
/**
|
|
15132
15498
|
* Get an Org-Export Ciphertext
|
|
15133
15499
|
* @description Get an Org-Export Ciphertext
|
|
@@ -16142,9 +16508,27 @@ export interface operations {
|
|
|
16142
16508
|
* Retrieves and returns all pending MFA requests that are accessible to the current session,
|
|
16143
16509
|
* i.e., those created by the current session identity plus those in which the current user
|
|
16144
16510
|
* is listed as an approver
|
|
16511
|
+
*
|
|
16512
|
+
* NOTE that if pagination is used and a page limit is set, the returned result
|
|
16513
|
+
* set may contain either FEWER or MORE elements than the requested page limit.
|
|
16145
16514
|
*/
|
|
16146
16515
|
mfaList: {
|
|
16147
16516
|
parameters: {
|
|
16517
|
+
query?: {
|
|
16518
|
+
/**
|
|
16519
|
+
* @description Max number of items to return per page.
|
|
16520
|
+
*
|
|
16521
|
+
* If the actual number of returned items may be less that this, even if there exist more
|
|
16522
|
+
* data in the result set. To reliably determine if more data is left in the result set,
|
|
16523
|
+
* inspect the [UnencryptedLastEvalKey] value in the response object.
|
|
16524
|
+
*/
|
|
16525
|
+
"page.size"?: number;
|
|
16526
|
+
/**
|
|
16527
|
+
* @description The start of the page. Omit to start from the beginning; otherwise, only specify a
|
|
16528
|
+
* the exact value previously returned as 'last_evaluated_key' from the same endpoint.
|
|
16529
|
+
*/
|
|
16530
|
+
"page.start"?: string | null;
|
|
16531
|
+
};
|
|
16148
16532
|
path: {
|
|
16149
16533
|
/**
|
|
16150
16534
|
* @description Name or ID of the desired Org
|
|
@@ -16154,7 +16538,7 @@ export interface operations {
|
|
|
16154
16538
|
};
|
|
16155
16539
|
};
|
|
16156
16540
|
responses: {
|
|
16157
|
-
200: components["responses"]["
|
|
16541
|
+
200: components["responses"]["PaginatedListMfaResponse"];
|
|
16158
16542
|
default: {
|
|
16159
16543
|
content: {
|
|
16160
16544
|
"application/json": components["schemas"]["ErrorResponse"];
|