@cubist-labs/cubesigner-sdk 0.4.281 → 0.4.284
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/spec/env/beta.json +4 -4
- package/dist/src/audit_log.d.ts +3 -3
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/mfa.d.ts.map +1 -1
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/role.d.ts.map +1 -1
- package/dist/src/schema.d.ts +538 -56
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +3 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +11 -7
- package/package.json +1 -1
- package/src/schema.ts +592 -59
- package/src/schema_types.ts +2 -0
- package/src/scopes.ts +10 -6
package/src/schema.ts
CHANGED
|
@@ -2367,7 +2367,7 @@ export interface components {
|
|
|
2367
2367
|
};
|
|
2368
2368
|
BabylonCovSignResponse: {
|
|
2369
2369
|
/** @description Optional policy evaluation tree. */
|
|
2370
|
-
policy_eval_tree?:
|
|
2370
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
2371
2371
|
} & {
|
|
2372
2372
|
/**
|
|
2373
2373
|
* @description The slash-unbonding transaction signatures as an array of hex strings with no 0x prefix
|
|
@@ -2516,7 +2516,7 @@ export interface components {
|
|
|
2516
2516
|
};
|
|
2517
2517
|
BabylonRegistrationResponse: {
|
|
2518
2518
|
/** @description Optional policy evaluation tree. */
|
|
2519
|
-
policy_eval_tree?:
|
|
2519
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
2520
2520
|
} & {
|
|
2521
2521
|
/**
|
|
2522
2522
|
* @description The Babylon address that will receive the staking rewards for this deposit.
|
|
@@ -2793,7 +2793,7 @@ export interface components {
|
|
|
2793
2793
|
});
|
|
2794
2794
|
BabylonStakingResponse: {
|
|
2795
2795
|
/** @description Optional policy evaluation tree. */
|
|
2796
|
-
policy_eval_tree?:
|
|
2796
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
2797
2797
|
} & {
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Format: int64
|
|
@@ -2966,7 +2966,6 @@ export interface components {
|
|
|
2966
2966
|
| "MissingBybitApiKey"
|
|
2967
2967
|
| "MissingCoinbaseApiKey"
|
|
2968
2968
|
| "BinanceKeyMasterMismatch"
|
|
2969
|
-
| "BybitAccountMismatch"
|
|
2970
2969
|
| "InvalidKeyMaterial"
|
|
2971
2970
|
| "InvalidHexValue"
|
|
2972
2971
|
| "InvalidBase32Value"
|
|
@@ -3302,6 +3301,7 @@ export interface components {
|
|
|
3302
3301
|
| "rpcBtcListUtxos"
|
|
3303
3302
|
| "rpcRetryTransaction"
|
|
3304
3303
|
| "rpcCancelTransaction"
|
|
3304
|
+
| "rpcDeleteTransaction"
|
|
3305
3305
|
| "rpcBinance"
|
|
3306
3306
|
| "rpcBybit"
|
|
3307
3307
|
| "rpcCoinbase"
|
|
@@ -3483,11 +3483,16 @@ export interface components {
|
|
|
3483
3483
|
/** @enum {string} */
|
|
3484
3484
|
method: "cs_binanceSubAccountDepositAddress";
|
|
3485
3485
|
params: components["schemas"]["BinanceSubAccountDepositAddressParams"];
|
|
3486
|
+
}
|
|
3487
|
+
| {
|
|
3488
|
+
/** @enum {string} */
|
|
3489
|
+
method: "cs_binanceSubAccountDepositHistory";
|
|
3490
|
+
params: components["schemas"]["BinanceSubAccountDepositHistoryParams"];
|
|
3486
3491
|
};
|
|
3487
3492
|
/** @description Response returned by the typed `binance_sign` endpoint. */
|
|
3488
3493
|
BinanceSignResponse: {
|
|
3489
3494
|
/** @description Optional policy evaluation tree. */
|
|
3490
|
-
policy_eval_tree?:
|
|
3495
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
3491
3496
|
} & {
|
|
3492
3497
|
/**
|
|
3493
3498
|
* @description The full signed query string, ready to be submitted to Binance.
|
|
@@ -3520,6 +3525,18 @@ export interface components {
|
|
|
3520
3525
|
recvWindow?: number | null;
|
|
3521
3526
|
};
|
|
3522
3527
|
/** @description Parameters envelope for all Binance RPC methods. */
|
|
3528
|
+
BinanceSubAccountDepositHistoryParams: components["schemas"]["SubAccountDepositHistoryRequest"] & {
|
|
3529
|
+
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
3530
|
+
keyId: components["schemas"]["Id"];
|
|
3531
|
+
/**
|
|
3532
|
+
* Format: float
|
|
3533
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
3534
|
+
* May only be specified in milliseconds, with up to three decimal places of precision.
|
|
3535
|
+
* If omitted, defaults to 10000. Must not be greater than 60000.
|
|
3536
|
+
*/
|
|
3537
|
+
recvWindow?: number | null;
|
|
3538
|
+
};
|
|
3539
|
+
/** @description Parameters envelope for all Binance RPC methods. */
|
|
3523
3540
|
BinanceSubAccountTransferHistoryParams: components["schemas"]["SubAccountTransferHistoryRequest"] & {
|
|
3524
3541
|
dryRun?: components["schemas"]["BinanceDryRunMode"] | null;
|
|
3525
3542
|
keyId: components["schemas"]["Id"];
|
|
@@ -3759,7 +3776,7 @@ export interface components {
|
|
|
3759
3776
|
/** @description BTC message signing response */
|
|
3760
3777
|
BtcMessageSignResponse: {
|
|
3761
3778
|
/** @description Optional policy evaluation tree. */
|
|
3762
|
-
policy_eval_tree?:
|
|
3779
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
3763
3780
|
} & {
|
|
3764
3781
|
/** @description The base64-encoded signature in BIP137 format. */
|
|
3765
3782
|
sig: string;
|
|
@@ -3939,6 +3956,11 @@ export interface components {
|
|
|
3939
3956
|
org_id: components["schemas"]["Id"];
|
|
3940
3957
|
owner: components["schemas"]["Id"];
|
|
3941
3958
|
};
|
|
3959
|
+
/**
|
|
3960
|
+
* @description Different Bybit account kinds.
|
|
3961
|
+
* @enum {string}
|
|
3962
|
+
*/
|
|
3963
|
+
BybitAccountKind: "Main" | "Sub";
|
|
3942
3964
|
/**
|
|
3943
3965
|
* @description Wire-format patch payload for [`KeyProperties::BybitApi`].
|
|
3944
3966
|
*
|
|
@@ -3946,6 +3968,7 @@ export interface components {
|
|
|
3946
3968
|
* leaves the existing value alone, a JSON `null` clears it, and a value sets it.
|
|
3947
3969
|
*/
|
|
3948
3970
|
BybitApiPropertiesPatch: {
|
|
3971
|
+
account_kind?: components["schemas"]["BybitAccountKind"] | null;
|
|
3949
3972
|
/** @description The Bybit-issued API key string. Encrypted server-side before storage. */
|
|
3950
3973
|
api_key?: string | null;
|
|
3951
3974
|
/** @description Arbitrary label. Useful for storing the corresponding API key label on the Bybit side. */
|
|
@@ -4423,6 +4446,11 @@ export interface components {
|
|
|
4423
4446
|
method: "cs_bybitDepositHistory";
|
|
4424
4447
|
params: components["schemas"]["BybitDepositHistoryParams"];
|
|
4425
4448
|
}
|
|
4449
|
+
| {
|
|
4450
|
+
/** @enum {string} */
|
|
4451
|
+
method: "cs_bybitSubDepositHistory";
|
|
4452
|
+
params: components["schemas"]["BybitSubDepositHistoryParams"];
|
|
4453
|
+
}
|
|
4426
4454
|
| {
|
|
4427
4455
|
/** @enum {string} */
|
|
4428
4456
|
method: "cs_bybitUniversalTransferHistory";
|
|
@@ -4441,7 +4469,7 @@ export interface components {
|
|
|
4441
4469
|
/** @description Response returned by the typed `bybit_sign` endpoint. */
|
|
4442
4470
|
BybitSignResponse: {
|
|
4443
4471
|
/** @description Optional policy evaluation tree. */
|
|
4444
|
-
policy_eval_tree?:
|
|
4472
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
4445
4473
|
} & {
|
|
4446
4474
|
/**
|
|
4447
4475
|
* @description The Bybit-bound payload (URL-encoded query for GET, JSON body for
|
|
@@ -4466,6 +4494,67 @@ export interface components {
|
|
|
4466
4494
|
*/
|
|
4467
4495
|
timestamp_ms: number;
|
|
4468
4496
|
};
|
|
4497
|
+
/**
|
|
4498
|
+
* @description Parameters envelope for all Bybit RPC variants whose payload schema is
|
|
4499
|
+
* derived from a `*Request` struct. (`BybitQueryUserParams` and
|
|
4500
|
+
* `BybitQuerySubMembersParams` have no per-variant payload and are defined
|
|
4501
|
+
* directly below.)
|
|
4502
|
+
*/
|
|
4503
|
+
BybitSubDepositHistoryParams: components["schemas"]["BybitSubDepositHistoryRequest"] & {
|
|
4504
|
+
dryRun?: components["schemas"]["BybitDryRunMode"] | null;
|
|
4505
|
+
keyId: components["schemas"]["Id"];
|
|
4506
|
+
/**
|
|
4507
|
+
* Format: int32
|
|
4508
|
+
* @description Optional "receive window", i.e., for how long the request stays valid.
|
|
4509
|
+
* Specified in milliseconds. If omitted, defaults to 10000.
|
|
4510
|
+
*/
|
|
4511
|
+
recvWindow?: number | null;
|
|
4512
|
+
};
|
|
4513
|
+
/**
|
|
4514
|
+
* @description Parameters for `GET /v5/asset/deposit/query-sub-member-record`.
|
|
4515
|
+
*
|
|
4516
|
+
* Master-only: returns the deposit records of the sub-account named by
|
|
4517
|
+
* `sub_member_id`. Bybit exposes these to the parent account's credentials
|
|
4518
|
+
* alone; a sub-account key reads its own deposits through
|
|
4519
|
+
* [`BybitDepositHistoryRequest`] instead.
|
|
4520
|
+
*
|
|
4521
|
+
* By default, queries records from the last 30 days; otherwise, `endTime` -
|
|
4522
|
+
* `startTime` must be less than 30 days.
|
|
4523
|
+
*/
|
|
4524
|
+
BybitSubDepositHistoryRequest: {
|
|
4525
|
+
/** @description Filter by coin symbol (uppercase). */
|
|
4526
|
+
coin?: string | null;
|
|
4527
|
+
/** @description Pagination cursor (the `nextPageCursor` from a prior response). */
|
|
4528
|
+
cursor?: string | null;
|
|
4529
|
+
/**
|
|
4530
|
+
* Format: int64
|
|
4531
|
+
* @description End timestamp (ms since epoch).
|
|
4532
|
+
*/
|
|
4533
|
+
endTime?: number | null;
|
|
4534
|
+
/** @description Filter by Bybit-internal deposit id. */
|
|
4535
|
+
id?: string | null;
|
|
4536
|
+
/**
|
|
4537
|
+
* Format: int32
|
|
4538
|
+
* @description Page size, `[1, 50]`. Defaults to 50.
|
|
4539
|
+
*/
|
|
4540
|
+
limit?: number | null;
|
|
4541
|
+
/**
|
|
4542
|
+
* Format: int64
|
|
4543
|
+
* @description Start timestamp (ms since epoch). The span between `start_time` and
|
|
4544
|
+
* `end_time` must not exceed 30 days.
|
|
4545
|
+
*/
|
|
4546
|
+
startTime?: number | null;
|
|
4547
|
+
/**
|
|
4548
|
+
* @description UID of the sub-account whose deposit history to fetch. Bybit requires
|
|
4549
|
+
* this, so there is no "calling account" fallback on this endpoint.
|
|
4550
|
+
*/
|
|
4551
|
+
subMemberId: string;
|
|
4552
|
+
/**
|
|
4553
|
+
* @description Filter by on-chain transaction id. Data before 2024-01-01 is not
|
|
4554
|
+
* queryable via this field.
|
|
4555
|
+
*/
|
|
4556
|
+
txID?: string | null;
|
|
4557
|
+
};
|
|
4469
4558
|
/** @description One entry in [`BybitQuerySubMembersResponse::sub_members`]. */
|
|
4470
4559
|
BybitSubMember: {
|
|
4471
4560
|
/**
|
|
@@ -4780,20 +4869,51 @@ export interface components {
|
|
|
4780
4869
|
*/
|
|
4781
4870
|
recvWindow?: number | null;
|
|
4782
4871
|
};
|
|
4783
|
-
/**
|
|
4872
|
+
/**
|
|
4873
|
+
* @description Parameters for `GET /v5/asset/withdraw/query-record`.
|
|
4874
|
+
*
|
|
4875
|
+
* Master-only: Bybit answers this endpoint for the master UID's API key
|
|
4876
|
+
* alone, and has no sub-account equivalent, because sub-accounts cannot
|
|
4877
|
+
* withdraw to an external address.
|
|
4878
|
+
*
|
|
4879
|
+
* By default, queries records from the last 30 days; otherwise, `endTime` -
|
|
4880
|
+
* `startTime` must be less than 30 days.
|
|
4881
|
+
*/
|
|
4784
4882
|
BybitWithdrawalsRequest: {
|
|
4785
4883
|
/** @description Filter by coin symbol. */
|
|
4786
4884
|
coin?: string | null;
|
|
4885
|
+
/** @description Pagination cursor (the `nextPageCursor` from a prior response). */
|
|
4886
|
+
cursor?: string | null;
|
|
4887
|
+
/**
|
|
4888
|
+
* Format: int64
|
|
4889
|
+
* @description End timestamp (ms since epoch).
|
|
4890
|
+
*/
|
|
4891
|
+
endTime?: number | null;
|
|
4787
4892
|
/**
|
|
4788
4893
|
* Format: int32
|
|
4789
|
-
* @description Page size.
|
|
4894
|
+
* @description Page size, `[1, 50]`. Defaults to 50.
|
|
4790
4895
|
*/
|
|
4791
4896
|
limit?: number | null;
|
|
4897
|
+
/**
|
|
4898
|
+
* Format: int64
|
|
4899
|
+
* @description Start timestamp (ms since epoch). The span between `start_time` and
|
|
4900
|
+
* `end_time` must not exceed 30 days.
|
|
4901
|
+
*/
|
|
4902
|
+
startTime?: number | null;
|
|
4903
|
+
/** @description Filter by on-chain transaction id. */
|
|
4904
|
+
txID?: string | null;
|
|
4792
4905
|
/**
|
|
4793
4906
|
* @description Filter by Bybit-assigned withdrawal id (the `id` returned by
|
|
4794
4907
|
* [`BybitRpc::Withdraw`]).
|
|
4795
4908
|
*/
|
|
4796
4909
|
withdrawID?: string | null;
|
|
4910
|
+
/**
|
|
4911
|
+
* Format: int32
|
|
4912
|
+
* @description Which kinds of withdrawal to return: `0` on-chain only, `1` off-chain
|
|
4913
|
+
* (internal Bybit-to-Bybit) only, `2` both. Bybit defaults to `0`, so
|
|
4914
|
+
* internal transfers out are invisible unless this is set to `1` or `2`.
|
|
4915
|
+
*/
|
|
4916
|
+
withdrawType?: number | null;
|
|
4797
4917
|
};
|
|
4798
4918
|
/** @description Response of `GET /v5/asset/withdraw/query-record`. */
|
|
4799
4919
|
BybitWithdrawalsResponse: {
|
|
@@ -4805,10 +4925,20 @@ export interface components {
|
|
|
4805
4925
|
/** @description Withdrawal records matching the query. */
|
|
4806
4926
|
rows: components["schemas"]["BybitWithdrawEntry"][];
|
|
4807
4927
|
};
|
|
4928
|
+
/** @description Return type of [proxy::call_webhook] */
|
|
4929
|
+
CallWebhookResult: {
|
|
4930
|
+
/** @description The response body */
|
|
4931
|
+
body: string;
|
|
4932
|
+
/**
|
|
4933
|
+
* Format: int32
|
|
4934
|
+
* @description The HTTP status of the response
|
|
4935
|
+
*/
|
|
4936
|
+
status: number;
|
|
4937
|
+
};
|
|
4808
4938
|
CancelInvitationRequest: {
|
|
4809
4939
|
email: components["schemas"]["Email"];
|
|
4810
4940
|
};
|
|
4811
|
-
/** @description Parameters for the [`
|
|
4941
|
+
/** @description Parameters for the [`cs_transactionCancel`](RpcMethod::CancelTransaction) method. */
|
|
4812
4942
|
CancelTransactionRequest: {
|
|
4813
4943
|
/** @description The transaction id. */
|
|
4814
4944
|
id: string;
|
|
@@ -5130,7 +5260,7 @@ export interface components {
|
|
|
5130
5260
|
/** @description Response returned by the typed `coinbase_sign` endpoint. */
|
|
5131
5261
|
CoinbaseSignResponse: {
|
|
5132
5262
|
/** @description Optional policy evaluation tree. */
|
|
5133
|
-
policy_eval_tree?:
|
|
5263
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
5134
5264
|
} & {
|
|
5135
5265
|
/**
|
|
5136
5266
|
* @description The signed JWT, ready to be sent in `Authorization: Bearer <jwt>` to
|
|
@@ -5196,6 +5326,11 @@ export interface components {
|
|
|
5196
5326
|
[key: string]: number;
|
|
5197
5327
|
};
|
|
5198
5328
|
};
|
|
5329
|
+
/** @description Evaluation of a single if-then-else conditional. */
|
|
5330
|
+
Conditional: {
|
|
5331
|
+
if: components["schemas"]["PolicyEvalTree"];
|
|
5332
|
+
then?: components["schemas"]["PolicyEvalTree"] | null;
|
|
5333
|
+
};
|
|
5199
5334
|
ConfigureEmailRequest: {
|
|
5200
5335
|
auth: {
|
|
5201
5336
|
smtp: string;
|
|
@@ -5529,7 +5664,7 @@ export interface components {
|
|
|
5529
5664
|
*/
|
|
5530
5665
|
scopes?: components["schemas"]["Scope"][] | null;
|
|
5531
5666
|
};
|
|
5532
|
-
/** @description Parameters for the [`
|
|
5667
|
+
/** @description Parameters for the [`cs_transactionCreate`](RpcMethod::CreateTransaction) method. */
|
|
5533
5668
|
CreateTransactionRequest: {
|
|
5534
5669
|
type: "CreateTransactionRequest";
|
|
5535
5670
|
} & Omit<components["schemas"]["CreateEvmTransactionRequest"], "type"> & {
|
|
@@ -5549,27 +5684,32 @@ export interface components {
|
|
|
5549
5684
|
CsRpc:
|
|
5550
5685
|
| {
|
|
5551
5686
|
/** @enum {string} */
|
|
5552
|
-
method: "
|
|
5687
|
+
method: "cs_transactionCreate";
|
|
5553
5688
|
params: components["schemas"]["CreateTransactionRequest"];
|
|
5554
5689
|
}
|
|
5555
5690
|
| {
|
|
5556
5691
|
/** @enum {string} */
|
|
5557
|
-
method: "
|
|
5692
|
+
method: "cs_transactionRetry";
|
|
5558
5693
|
params: components["schemas"]["RetryTransactionRequest"];
|
|
5559
5694
|
}
|
|
5560
5695
|
| {
|
|
5561
5696
|
/** @enum {string} */
|
|
5562
|
-
method: "
|
|
5697
|
+
method: "cs_transactionCancel";
|
|
5563
5698
|
params: components["schemas"]["CancelTransactionRequest"];
|
|
5564
5699
|
}
|
|
5565
5700
|
| {
|
|
5566
5701
|
/** @enum {string} */
|
|
5567
|
-
method: "
|
|
5702
|
+
method: "cs_transactionDelete";
|
|
5703
|
+
params: components["schemas"]["DeleteTransactionRequest"];
|
|
5704
|
+
}
|
|
5705
|
+
| {
|
|
5706
|
+
/** @enum {string} */
|
|
5707
|
+
method: "cs_transactionGet";
|
|
5568
5708
|
params: components["schemas"]["GetTransactionRequest"];
|
|
5569
5709
|
}
|
|
5570
5710
|
| {
|
|
5571
5711
|
/** @enum {string} */
|
|
5572
|
-
method: "
|
|
5712
|
+
method: "cs_transactionList";
|
|
5573
5713
|
params: components["schemas"]["ListTransactionsRequest"];
|
|
5574
5714
|
}
|
|
5575
5715
|
| {
|
|
@@ -5609,6 +5749,22 @@ export interface components {
|
|
|
5609
5749
|
/** @description Custom EVM chains. */
|
|
5610
5750
|
evm: components["schemas"]["EvmCustomChain"][];
|
|
5611
5751
|
};
|
|
5752
|
+
/** @description Parameters for the [`cs_transactionDelete`](RpcMethod::DeleteTransaction) method. */
|
|
5753
|
+
DeleteTransactionRequest: {
|
|
5754
|
+
/**
|
|
5755
|
+
* @description Whether to force the deletion.
|
|
5756
|
+
*
|
|
5757
|
+
* Transactions that are not "submitted" or "canceled" will not be deleted unless
|
|
5758
|
+
* this is true.
|
|
5759
|
+
*
|
|
5760
|
+
* **Note:** force deleting a pending transaction may prevent follow-up transactions
|
|
5761
|
+
* from succeeding, and require manual intervention (e.g. specifying the key nonce).
|
|
5762
|
+
* We strongly advise canceling the transaction first.
|
|
5763
|
+
*/
|
|
5764
|
+
force?: boolean | null;
|
|
5765
|
+
/** @description The transaction id. */
|
|
5766
|
+
id: string;
|
|
5767
|
+
};
|
|
5612
5768
|
/** @description One deposit entry in [`DepositHistoryResponse`]. */
|
|
5613
5769
|
DepositHistoryEntry: {
|
|
5614
5770
|
/** @description Destination address the deposit was sent to. */
|
|
@@ -5907,7 +6063,7 @@ export interface components {
|
|
|
5907
6063
|
}
|
|
5908
6064
|
) & {
|
|
5909
6065
|
/** @description Optional policy evaluation tree. */
|
|
5910
|
-
policy_eval_tree?:
|
|
6066
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
5911
6067
|
} & Record<string, never>;
|
|
5912
6068
|
/**
|
|
5913
6069
|
* @description A policy which governs when and who is allowed to update the entity this policy is
|
|
@@ -6234,7 +6390,7 @@ export interface components {
|
|
|
6234
6390
|
/** @description Response generated when creating EOTS nonces */
|
|
6235
6391
|
EotsCreateNonceResponse: {
|
|
6236
6392
|
/** @description Optional policy evaluation tree. */
|
|
6237
|
-
policy_eval_tree?:
|
|
6393
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
6238
6394
|
} & {
|
|
6239
6395
|
/**
|
|
6240
6396
|
* @description The generated nonces as an array of 0x-prefixed hex strings
|
|
@@ -6312,7 +6468,7 @@ export interface components {
|
|
|
6312
6468
|
/** @description Error message */
|
|
6313
6469
|
message: string;
|
|
6314
6470
|
/** @description Optional policy evaluation tree (included in signer responses, when requested) */
|
|
6315
|
-
policy_eval_tree?:
|
|
6471
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
6316
6472
|
/** @description Optional request identifier */
|
|
6317
6473
|
request_id?: string;
|
|
6318
6474
|
};
|
|
@@ -6380,7 +6536,7 @@ export interface components {
|
|
|
6380
6536
|
};
|
|
6381
6537
|
Eth1SignResponse: {
|
|
6382
6538
|
/** @description Optional policy evaluation tree. */
|
|
6383
|
-
policy_eval_tree?:
|
|
6539
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
6384
6540
|
} & {
|
|
6385
6541
|
/**
|
|
6386
6542
|
* @description Hex-encoded RLP encoding of the transaction and its signature
|
|
@@ -6436,6 +6592,11 @@ export interface components {
|
|
|
6436
6592
|
eth2_sign_request: Record<string, never>;
|
|
6437
6593
|
network: components["schemas"]["Network"];
|
|
6438
6594
|
};
|
|
6595
|
+
/**
|
|
6596
|
+
* @description Auto-generated discriminant enum variants
|
|
6597
|
+
* @enum {string}
|
|
6598
|
+
*/
|
|
6599
|
+
EvalOutcome: "Permitted" | "Inapplicable" | "Denied" | "MfaRequired";
|
|
6439
6600
|
/**
|
|
6440
6601
|
* @description Representation of an event. This type is used to serialize events to CloudWatch Logs and to
|
|
6441
6602
|
* deserialize them when analyzing the logs.
|
|
@@ -6656,6 +6817,7 @@ export interface components {
|
|
|
6656
6817
|
| "sign:binance:listSubAccounts"
|
|
6657
6818
|
| "sign:binance:coinInfo"
|
|
6658
6819
|
| "sign:binance:subAccountDepositAddress"
|
|
6820
|
+
| "sign:binance:subAccountDepositHistory"
|
|
6659
6821
|
| "sign:bybit:*"
|
|
6660
6822
|
| "sign:bybit:queryUser"
|
|
6661
6823
|
| "sign:bybit:querySubMembers"
|
|
@@ -6666,6 +6828,7 @@ export interface components {
|
|
|
6666
6828
|
| "sign:bybit:withdrawals"
|
|
6667
6829
|
| "sign:bybit:queryCoinInfo"
|
|
6668
6830
|
| "sign:bybit:depositHistory"
|
|
6831
|
+
| "sign:bybit:subDepositHistory"
|
|
6669
6832
|
| "sign:bybit:universalTransferHistory"
|
|
6670
6833
|
| "sign:bybit:queryWithdrawAddress"
|
|
6671
6834
|
| "sign:bybit:querySubDepositAddress"
|
|
@@ -6903,12 +7066,14 @@ export interface components {
|
|
|
6903
7066
|
| "orgAccess:*"
|
|
6904
7067
|
| "orgAccess:child:*"
|
|
6905
7068
|
| "rpc:*"
|
|
6906
|
-
| "rpc:
|
|
6907
|
-
| "rpc:
|
|
6908
|
-
| "rpc:
|
|
6909
|
-
| "rpc:
|
|
6910
|
-
| "rpc:
|
|
6911
|
-
| "rpc:
|
|
7069
|
+
| "rpc:transaction:*"
|
|
7070
|
+
| "rpc:transaction:create:*"
|
|
7071
|
+
| "rpc:transaction:create:evm"
|
|
7072
|
+
| "rpc:transaction:retry"
|
|
7073
|
+
| "rpc:transaction:cancel"
|
|
7074
|
+
| "rpc:transaction:delete"
|
|
7075
|
+
| "rpc:transaction:get"
|
|
7076
|
+
| "rpc:transaction:list"
|
|
6912
7077
|
| "rpc:btcListUtxos"
|
|
6913
7078
|
| "rpc:binance"
|
|
6914
7079
|
| "rpc:bybit"
|
|
@@ -7143,7 +7308,7 @@ export interface components {
|
|
|
7143
7308
|
GetKeysInOrgRequest: {
|
|
7144
7309
|
key_type?: components["schemas"]["KeyType"] | null;
|
|
7145
7310
|
};
|
|
7146
|
-
/** @description Parameters for the [`
|
|
7311
|
+
/** @description Parameters for the [`cs_transactionGet`](RpcMethod::GetTransaction) method. */
|
|
7147
7312
|
GetTransactionRequest: {
|
|
7148
7313
|
id: components["schemas"]["Id"];
|
|
7149
7314
|
};
|
|
@@ -7620,7 +7785,7 @@ export interface components {
|
|
|
7620
7785
|
};
|
|
7621
7786
|
/** @description Valid `result` from the JSON-RPC API. */
|
|
7622
7787
|
JsonRpcResult:
|
|
7623
|
-
| components["schemas"]["
|
|
7788
|
+
| components["schemas"]["RpcTransactionInfo"]
|
|
7624
7789
|
| components["schemas"]["ListTransactionsPaginatedResponse"]
|
|
7625
7790
|
| components["schemas"]["SubAccountTransferResponse"]
|
|
7626
7791
|
| components["schemas"]["UniversalTransferResponse"]
|
|
@@ -7894,6 +8059,44 @@ export interface components {
|
|
|
7894
8059
|
* so that they can pass this back to us as a url query parameter.
|
|
7895
8060
|
*/
|
|
7896
8061
|
LastEvalKey: string;
|
|
8062
|
+
/**
|
|
8063
|
+
* @description The base policy evaluation result associated with a [leaf][PolicyEvalTree::Leaf] node.
|
|
8064
|
+
*
|
|
8065
|
+
* This type is very similar to [BasePolicyEvalResult], except that it contains only the
|
|
8066
|
+
* information we want to include in the evaluation tree that we send back to the client.
|
|
8067
|
+
*/
|
|
8068
|
+
LeafNodeResult: OneOf<
|
|
8069
|
+
[
|
|
8070
|
+
{
|
|
8071
|
+
evidence: components["schemas"]["PermitEvidence"];
|
|
8072
|
+
/** @enum {string} */
|
|
8073
|
+
outcome: "Permitted";
|
|
8074
|
+
},
|
|
8075
|
+
{
|
|
8076
|
+
op: components["schemas"]["OperationKind"];
|
|
8077
|
+
/** @enum {string} */
|
|
8078
|
+
outcome: "Inapplicable";
|
|
8079
|
+
},
|
|
8080
|
+
{
|
|
8081
|
+
error_code: components["schemas"]["PolicyErrorCode"];
|
|
8082
|
+
message: string;
|
|
8083
|
+
/** @description Additional structured details about the denial */
|
|
8084
|
+
more_info?: unknown;
|
|
8085
|
+
/** @enum {string} */
|
|
8086
|
+
outcome: "Denied";
|
|
8087
|
+
},
|
|
8088
|
+
{
|
|
8089
|
+
/** @enum {string} */
|
|
8090
|
+
outcome: "MfaRequired";
|
|
8091
|
+
},
|
|
8092
|
+
]
|
|
8093
|
+
>;
|
|
8094
|
+
/** @description Properties of a [PolicyEvalTree::Leaf] node. */
|
|
8095
|
+
LeafProps: components["schemas"]["LeafNodeResult"] & {
|
|
8096
|
+
provenance: components["schemas"]["PolicyAttachedTo"];
|
|
8097
|
+
/** @description The leaf rule that was evaluated */
|
|
8098
|
+
rule: unknown;
|
|
8099
|
+
};
|
|
7897
8100
|
/**
|
|
7898
8101
|
* @description Parameters for `cs_coinbaseListAccounts`.
|
|
7899
8102
|
*
|
|
@@ -7982,7 +8185,7 @@ export interface components {
|
|
|
7982
8185
|
*/
|
|
7983
8186
|
ListTransactionsPaginatedResponse: {
|
|
7984
8187
|
/** @description A list of transaction infos. */
|
|
7985
|
-
transactions: components["schemas"]["
|
|
8188
|
+
transactions: components["schemas"]["RpcTransactionInfo"][];
|
|
7986
8189
|
} & {
|
|
7987
8190
|
/**
|
|
7988
8191
|
* @description If set, the content of `response` does not contain the entire result set.
|
|
@@ -7991,7 +8194,7 @@ export interface components {
|
|
|
7991
8194
|
*/
|
|
7992
8195
|
last_evaluated_key?: string | null;
|
|
7993
8196
|
};
|
|
7994
|
-
/** @description Parameters for the [`
|
|
8197
|
+
/** @description Parameters for the [`cs_transactionList`](RpcMethod::ListTransactions) method. */
|
|
7995
8198
|
ListTransactionsRequest: components["schemas"]["Page"] & {
|
|
7996
8199
|
/**
|
|
7997
8200
|
* @description Optional user or role id.
|
|
@@ -8000,10 +8203,10 @@ export interface components {
|
|
|
8000
8203
|
*/
|
|
8001
8204
|
owner?: string | null;
|
|
8002
8205
|
};
|
|
8003
|
-
/** @description The response to [`
|
|
8206
|
+
/** @description The response to [`cs_transactionList`](super::request::CsRpc::ListTransactions) */
|
|
8004
8207
|
ListTransactionsResponse: {
|
|
8005
8208
|
/** @description A list of transaction infos. */
|
|
8006
|
-
transactions: components["schemas"]["
|
|
8209
|
+
transactions: components["schemas"]["RpcTransactionInfo"][];
|
|
8007
8210
|
};
|
|
8008
8211
|
LoginRequest: components["schemas"]["OidcLoginRequest"];
|
|
8009
8212
|
/**
|
|
@@ -8105,7 +8308,7 @@ export interface components {
|
|
|
8105
8308
|
/** @description Organization id */
|
|
8106
8309
|
org_id: string;
|
|
8107
8310
|
/** @description Optional policy evaluation tree (included in signer responses, when requested) */
|
|
8108
|
-
policy_eval_tree?:
|
|
8311
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
8109
8312
|
session?: components["schemas"]["NewSessionResponse"] | null;
|
|
8110
8313
|
};
|
|
8111
8314
|
/** @description Org-wide MFA requirements. */
|
|
@@ -8386,6 +8589,7 @@ export interface components {
|
|
|
8386
8589
|
| "BinanceListSubAccounts"
|
|
8387
8590
|
| "BinanceCoinInfo"
|
|
8388
8591
|
| "BinanceSubAccountDepositAddress"
|
|
8592
|
+
| "BinanceSubAccountDepositHistory"
|
|
8389
8593
|
| "BlobSign"
|
|
8390
8594
|
| "BtcMessageSign"
|
|
8391
8595
|
| "BtcSign"
|
|
@@ -8398,6 +8602,7 @@ export interface components {
|
|
|
8398
8602
|
| "BybitWithdrawals"
|
|
8399
8603
|
| "BybitQueryCoinInfo"
|
|
8400
8604
|
| "BybitDepositHistory"
|
|
8605
|
+
| "BybitSubDepositHistory"
|
|
8401
8606
|
| "BybitUniversalTransferHistory"
|
|
8402
8607
|
| "BybitQueryWithdrawAddress"
|
|
8403
8608
|
| "BybitQuerySubDepositAddress"
|
|
@@ -9317,6 +9522,192 @@ export interface components {
|
|
|
9317
9522
|
message_tx?: components["schemas"]["TypedTransaction"] | null;
|
|
9318
9523
|
}) &
|
|
9319
9524
|
Record<string, never>;
|
|
9525
|
+
/** @description Different kinds of evidence policy checkers can return to support their decision. */
|
|
9526
|
+
PermitEvidence:
|
|
9527
|
+
| {
|
|
9528
|
+
/** @enum {string} */
|
|
9529
|
+
kind: "ExplicitlyPermitted";
|
|
9530
|
+
/** @description Optional message */
|
|
9531
|
+
message?: string | null;
|
|
9532
|
+
}
|
|
9533
|
+
| {
|
|
9534
|
+
approvals: {
|
|
9535
|
+
[key: string]: {
|
|
9536
|
+
[key: string]: components["schemas"]["ApprovalInfo"];
|
|
9537
|
+
};
|
|
9538
|
+
};
|
|
9539
|
+
/** @enum {string} */
|
|
9540
|
+
kind: "MfaApproved";
|
|
9541
|
+
policy: components["schemas"]["MfaPolicy"];
|
|
9542
|
+
}
|
|
9543
|
+
| {
|
|
9544
|
+
/** @enum {string} */
|
|
9545
|
+
kind: "BabylonStaking";
|
|
9546
|
+
}
|
|
9547
|
+
| {
|
|
9548
|
+
/** @enum {string} */
|
|
9549
|
+
kind: "BtcReceivers";
|
|
9550
|
+
/** @description The actual receivers of a Bitcoin transaction */
|
|
9551
|
+
receivers: string[];
|
|
9552
|
+
}
|
|
9553
|
+
| {
|
|
9554
|
+
/** @enum {string} */
|
|
9555
|
+
kind: "BtcValueLimit";
|
|
9556
|
+
/**
|
|
9557
|
+
* Format: int64
|
|
9558
|
+
* @description The new total (in SAT), including the current transaction
|
|
9559
|
+
*/
|
|
9560
|
+
new_total: number;
|
|
9561
|
+
/**
|
|
9562
|
+
* Format: int64
|
|
9563
|
+
* @description The limit (in SAT) specified by the policy
|
|
9564
|
+
*/
|
|
9565
|
+
policy_limit: number;
|
|
9566
|
+
}
|
|
9567
|
+
| {
|
|
9568
|
+
/**
|
|
9569
|
+
* Format: int64
|
|
9570
|
+
* @description Actual EVM chain
|
|
9571
|
+
*/
|
|
9572
|
+
chain_id: number;
|
|
9573
|
+
/** @enum {string} */
|
|
9574
|
+
kind: "EvmChainDoesNotApply";
|
|
9575
|
+
}
|
|
9576
|
+
| {
|
|
9577
|
+
/** @enum {string} */
|
|
9578
|
+
kind: "EvmTransferOnly";
|
|
9579
|
+
}
|
|
9580
|
+
| {
|
|
9581
|
+
/** @enum {string} */
|
|
9582
|
+
kind: "EvmNotErc20";
|
|
9583
|
+
}
|
|
9584
|
+
| {
|
|
9585
|
+
/** @enum {string} */
|
|
9586
|
+
kind: "EvmErc20";
|
|
9587
|
+
}
|
|
9588
|
+
| {
|
|
9589
|
+
/** @description The address of the contract being called */
|
|
9590
|
+
address?: string | null;
|
|
9591
|
+
/** @description The name of the contract method being called */
|
|
9592
|
+
function: string;
|
|
9593
|
+
/** @enum {string} */
|
|
9594
|
+
kind: "EvmContractCall";
|
|
9595
|
+
}
|
|
9596
|
+
| {
|
|
9597
|
+
/** @description The arguments of the contract method being called */
|
|
9598
|
+
args: string[][];
|
|
9599
|
+
/** @description The name of the contract method being called */
|
|
9600
|
+
function: string;
|
|
9601
|
+
/** @enum {string} */
|
|
9602
|
+
kind: "EvmAbiConstrainedFunction";
|
|
9603
|
+
}
|
|
9604
|
+
| {
|
|
9605
|
+
/** @enum {string} */
|
|
9606
|
+
kind: "EvmGasCostLimit";
|
|
9607
|
+
/** @description The policy gas cost limit (in WEI) */
|
|
9608
|
+
policy_gas_cost_limit: string;
|
|
9609
|
+
/** @description The transaction max gas cost (in WEI) */
|
|
9610
|
+
tx_max_gas_cost: string;
|
|
9611
|
+
}
|
|
9612
|
+
| {
|
|
9613
|
+
/** @enum {string} */
|
|
9614
|
+
kind: "EvmValueLimit";
|
|
9615
|
+
/** @description The new total (in WEI), including the current transaction */
|
|
9616
|
+
new_total: string;
|
|
9617
|
+
/** @description The limit (in WEI) specified by the policy */
|
|
9618
|
+
policy_limit: string;
|
|
9619
|
+
}
|
|
9620
|
+
| {
|
|
9621
|
+
/** @enum {string} */
|
|
9622
|
+
kind: "EvmDeposit";
|
|
9623
|
+
/** @description The details of the deposit transaction */
|
|
9624
|
+
spec: Record<string, never>;
|
|
9625
|
+
}
|
|
9626
|
+
| {
|
|
9627
|
+
/** @enum {string} */
|
|
9628
|
+
kind: "EvmReceiver";
|
|
9629
|
+
/** @description The actual receiver of an EVM transaction */
|
|
9630
|
+
receiver?: string | null;
|
|
9631
|
+
}
|
|
9632
|
+
| {
|
|
9633
|
+
/** @description The actual chain id of an EVM transaction or EIP-7702 authorization request */
|
|
9634
|
+
chain_id: string;
|
|
9635
|
+
/** @enum {string} */
|
|
9636
|
+
kind: "EvmChainId";
|
|
9637
|
+
}
|
|
9638
|
+
| {
|
|
9639
|
+
/** @description The contract address EIP-7702 delegates authorization to */
|
|
9640
|
+
address: string;
|
|
9641
|
+
/** @enum {string} */
|
|
9642
|
+
kind: "Eip7702DelegationTarget";
|
|
9643
|
+
}
|
|
9644
|
+
| {
|
|
9645
|
+
/** @enum {string} */
|
|
9646
|
+
kind: "RoleSession";
|
|
9647
|
+
/** @description The session identity role */
|
|
9648
|
+
role_id: string;
|
|
9649
|
+
}
|
|
9650
|
+
| {
|
|
9651
|
+
/** @enum {string} */
|
|
9652
|
+
kind: "SolanaTx";
|
|
9653
|
+
}
|
|
9654
|
+
| {
|
|
9655
|
+
/** @description Actual Sui receivers */
|
|
9656
|
+
actual_receivers: string[];
|
|
9657
|
+
/** @enum {string} */
|
|
9658
|
+
kind: "SuiReceivers";
|
|
9659
|
+
}
|
|
9660
|
+
| (components["schemas"]["SourceIp"] & {
|
|
9661
|
+
/** @enum {string} */
|
|
9662
|
+
kind: "SourceIpAllowlisted";
|
|
9663
|
+
})
|
|
9664
|
+
| {
|
|
9665
|
+
/** @enum {string} */
|
|
9666
|
+
kind: "CelPolicyMatched";
|
|
9667
|
+
/** @description The CEL program that was evaluated */
|
|
9668
|
+
program: string;
|
|
9669
|
+
}
|
|
9670
|
+
| {
|
|
9671
|
+
/** @enum {string} */
|
|
9672
|
+
kind: "OperationAllowlisted";
|
|
9673
|
+
operation: components["schemas"]["OperationKind"];
|
|
9674
|
+
}
|
|
9675
|
+
| {
|
|
9676
|
+
/** @enum {string} */
|
|
9677
|
+
kind: "TaprootValueLimit";
|
|
9678
|
+
/**
|
|
9679
|
+
* Format: int64
|
|
9680
|
+
* @description The limit (in SAT) specified by the policy
|
|
9681
|
+
*/
|
|
9682
|
+
policy_limit: number;
|
|
9683
|
+
/**
|
|
9684
|
+
* Format: int64
|
|
9685
|
+
* @description The transaction value (in SAT)
|
|
9686
|
+
*/
|
|
9687
|
+
transaction_value: number;
|
|
9688
|
+
}
|
|
9689
|
+
| {
|
|
9690
|
+
/** @description The size (in bytes) of the full stderr */
|
|
9691
|
+
full_stderr_length: number;
|
|
9692
|
+
/** @description The size (in bytes) of the full stdout */
|
|
9693
|
+
full_stdout_length: number;
|
|
9694
|
+
/** @enum {string} */
|
|
9695
|
+
kind: "WasmResult";
|
|
9696
|
+
/** @description Standard error of the wasm policy execution, truncated to 1024 bytes */
|
|
9697
|
+
stderr: string;
|
|
9698
|
+
/** @description Standard output of the wasm policy execution, truncated to 1024 bytes */
|
|
9699
|
+
stdout: string;
|
|
9700
|
+
}
|
|
9701
|
+
| (components["schemas"]["CallWebhookResult"] & {
|
|
9702
|
+
/** @enum {string} */
|
|
9703
|
+
kind: "WebhookResult";
|
|
9704
|
+
})
|
|
9705
|
+
| {
|
|
9706
|
+
current_time: components["schemas"]["EpochDateTime"];
|
|
9707
|
+
/** @enum {string} */
|
|
9708
|
+
kind: "TimeLockExpired";
|
|
9709
|
+
lock_until: components["schemas"]["EpochDateTime"];
|
|
9710
|
+
};
|
|
9320
9711
|
/**
|
|
9321
9712
|
* @description The access-controlled actions that can be performed on a named policy.
|
|
9322
9713
|
* @enum {string}
|
|
@@ -9338,6 +9729,11 @@ export interface components {
|
|
|
9338
9729
|
| "attach"
|
|
9339
9730
|
| "sign"
|
|
9340
9731
|
| "invoke";
|
|
9732
|
+
/**
|
|
9733
|
+
* @description MFA policy provenance
|
|
9734
|
+
* @enum {string}
|
|
9735
|
+
*/
|
|
9736
|
+
PolicyAttachedTo: "Org" | "Key" | "KeyInRole" | "Role" | "User" | "EditPolicy";
|
|
9341
9737
|
/** @description The id for attaching a named policy to a key, role, or key in role. */
|
|
9342
9738
|
PolicyAttachedToId: OneOf<
|
|
9343
9739
|
[
|
|
@@ -9473,6 +9869,51 @@ export interface components {
|
|
|
9473
9869
|
| "DeniedByWebhook"
|
|
9474
9870
|
| "MfaApprovalsNotYetValid"
|
|
9475
9871
|
| "ExplicitlyDenied";
|
|
9872
|
+
/** @description Evaluation tree for a policy rule. */
|
|
9873
|
+
PolicyEvalTree:
|
|
9874
|
+
| {
|
|
9875
|
+
Leaf: components["schemas"]["LeafProps"];
|
|
9876
|
+
}
|
|
9877
|
+
| {
|
|
9878
|
+
/** @description Evaluation of a negation (i.e., [Deny::Not]) */
|
|
9879
|
+
Not: {
|
|
9880
|
+
child: components["schemas"]["PolicyEvalTree"];
|
|
9881
|
+
outcome: components["schemas"]["EvalOutcome"];
|
|
9882
|
+
};
|
|
9883
|
+
}
|
|
9884
|
+
| {
|
|
9885
|
+
/** @description Evaluation of a [Deny::IfThenElse] policy */
|
|
9886
|
+
IfThenElse: {
|
|
9887
|
+
/** @description Evaluated conditionals */
|
|
9888
|
+
children: components["schemas"]["Conditional"][];
|
|
9889
|
+
else?: components["schemas"]["PolicyEvalTree"] | null;
|
|
9890
|
+
outcome: components["schemas"]["EvalOutcome"];
|
|
9891
|
+
};
|
|
9892
|
+
}
|
|
9893
|
+
| {
|
|
9894
|
+
/** @description Evaluation of a list of policy rules */
|
|
9895
|
+
Concat: {
|
|
9896
|
+
/** @description Evaluation trees of each evaluated policy */
|
|
9897
|
+
children: components["schemas"]["PolicyEvalTree"][];
|
|
9898
|
+
outcome: components["schemas"]["EvalOutcome"];
|
|
9899
|
+
};
|
|
9900
|
+
}
|
|
9901
|
+
| {
|
|
9902
|
+
/** @description Evaluation of a conjunction (i.e., [Deny::And]). */
|
|
9903
|
+
And: {
|
|
9904
|
+
/** @description Evaluation trees of each evaluated conjunct */
|
|
9905
|
+
children: components["schemas"]["PolicyEvalTree"][];
|
|
9906
|
+
outcome: components["schemas"]["EvalOutcome"];
|
|
9907
|
+
};
|
|
9908
|
+
}
|
|
9909
|
+
| {
|
|
9910
|
+
/** @description Evaluation of a disjunction (i.e., [Deny::Or]). */
|
|
9911
|
+
Or: {
|
|
9912
|
+
/** @description Evaluation trees of each evaluated disjunct */
|
|
9913
|
+
children: components["schemas"]["PolicyEvalTree"][];
|
|
9914
|
+
outcome: components["schemas"]["EvalOutcome"];
|
|
9915
|
+
};
|
|
9916
|
+
};
|
|
9476
9917
|
/** @description A struct containing all the information about a specific version of a policy. */
|
|
9477
9918
|
PolicyInfo: {
|
|
9478
9919
|
/** @description The access-control entries for the policy. */
|
|
@@ -9634,7 +10075,7 @@ export interface components {
|
|
|
9634
10075
|
/** @description Response to a PSBT signing request */
|
|
9635
10076
|
PsbtSignResponse: {
|
|
9636
10077
|
/** @description Optional policy evaluation tree. */
|
|
9637
|
-
policy_eval_tree?:
|
|
10078
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
9638
10079
|
} & {
|
|
9639
10080
|
/**
|
|
9640
10081
|
* @description The PSBT in standard hex serialization, without leading "0x".
|
|
@@ -10142,7 +10583,7 @@ export interface components {
|
|
|
10142
10583
|
RestrictedActionsMap: {
|
|
10143
10584
|
[key: string]: components["schemas"]["MemberRole"][];
|
|
10144
10585
|
};
|
|
10145
|
-
/** @description Parameters for the [`
|
|
10586
|
+
/** @description Parameters for the [`cs_transactionRetry`](RpcMethod::RetryTransaction) method. */
|
|
10146
10587
|
RetryTransactionRequest: components["schemas"]["EvmTxCustomization"] & {
|
|
10147
10588
|
/** @description The transaction id. */
|
|
10148
10589
|
id: string;
|
|
@@ -10240,6 +10681,44 @@ export interface components {
|
|
|
10240
10681
|
| components["schemas"]["BinanceRpc"]
|
|
10241
10682
|
| components["schemas"]["BybitRpc"]
|
|
10242
10683
|
| components["schemas"]["CoinbaseRpc"];
|
|
10684
|
+
/** @description A transaction created by the RPC API. */
|
|
10685
|
+
RpcTransaction: {
|
|
10686
|
+
status: "RpcTransaction";
|
|
10687
|
+
} & Omit<components["schemas"]["RpcTxStatus"], "status"> &
|
|
10688
|
+
Omit<components["schemas"]["TransactionDetails"], "chain"> &
|
|
10689
|
+
components["schemas"]["VersioningFields"] & {
|
|
10690
|
+
/** @description The session identity that created the transaction. */
|
|
10691
|
+
owner: string;
|
|
10692
|
+
};
|
|
10693
|
+
/** @description Information about an existing transaction created by the RPC API. */
|
|
10694
|
+
RpcTransactionInfo: components["schemas"]["RpcTransaction"] & {
|
|
10695
|
+
/** @description The transaction id. */
|
|
10696
|
+
id: string;
|
|
10697
|
+
};
|
|
10698
|
+
/** @description The status of the transaction. */
|
|
10699
|
+
RpcTxStatus:
|
|
10700
|
+
| {
|
|
10701
|
+
mfa_ids: string[];
|
|
10702
|
+
/** @enum {string} */
|
|
10703
|
+
status: "MfaRequired";
|
|
10704
|
+
}
|
|
10705
|
+
| {
|
|
10706
|
+
/** @enum {string} */
|
|
10707
|
+
status: "Signed";
|
|
10708
|
+
}
|
|
10709
|
+
| {
|
|
10710
|
+
/** @enum {string} */
|
|
10711
|
+
status: "Submitted";
|
|
10712
|
+
}
|
|
10713
|
+
| {
|
|
10714
|
+
/** @enum {string} */
|
|
10715
|
+
status: "Canceled";
|
|
10716
|
+
}
|
|
10717
|
+
| {
|
|
10718
|
+
error: components["schemas"]["ErrorObj"];
|
|
10719
|
+
/** @enum {string} */
|
|
10720
|
+
status: "Failed";
|
|
10721
|
+
};
|
|
10243
10722
|
/** @description All scopes for accessing CubeSigner APIs */
|
|
10244
10723
|
Scope: components["schemas"]["ExplicitScope"] | string;
|
|
10245
10724
|
/** @description A set of scopes. */
|
|
@@ -10412,7 +10891,7 @@ export interface components {
|
|
|
10412
10891
|
/** @description Whether MFA is required */
|
|
10413
10892
|
mfa_requests: components["schemas"]["MfaRequestInfo"][];
|
|
10414
10893
|
/** @description Optional policy evaluation tree, if requested */
|
|
10415
|
-
policy_eval_tree?:
|
|
10894
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
10416
10895
|
};
|
|
10417
10896
|
/**
|
|
10418
10897
|
* @description The structured input to a Sign-In With Solana request (`SolanaSignInInput` in the spec).
|
|
@@ -10447,7 +10926,7 @@ export interface components {
|
|
|
10447
10926
|
};
|
|
10448
10927
|
SignResponse: {
|
|
10449
10928
|
/** @description Optional policy evaluation tree. */
|
|
10450
|
-
policy_eval_tree?:
|
|
10929
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
10451
10930
|
} & {
|
|
10452
10931
|
/** @description The hex-encoded resulting signature. */
|
|
10453
10932
|
signature: string;
|
|
@@ -10714,7 +11193,7 @@ export interface components {
|
|
|
10714
11193
|
};
|
|
10715
11194
|
StakeResponse: ({
|
|
10716
11195
|
/** @description Optional policy evaluation tree. */
|
|
10717
|
-
policy_eval_tree?:
|
|
11196
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
10718
11197
|
} & {
|
|
10719
11198
|
deposit_tx: components["schemas"]["DepositTxn"];
|
|
10720
11199
|
}) & {
|
|
@@ -10846,6 +11325,52 @@ export interface components {
|
|
|
10846
11325
|
/** @description Blockchain explorer URL for `address`. */
|
|
10847
11326
|
url?: string | null;
|
|
10848
11327
|
};
|
|
11328
|
+
/**
|
|
11329
|
+
* @description Parameters for `GET /sapi/v1/capital/deposit/subHisrec`.
|
|
11330
|
+
*
|
|
11331
|
+
* Master-account keys only; use [`DepositHistoryRequest`] for the calling
|
|
11332
|
+
* account's own deposits.
|
|
11333
|
+
*/
|
|
11334
|
+
SubAccountDepositHistoryRequest: {
|
|
11335
|
+
/** @description Filter to a specific asset (e.g. `"USDT"`, `"BTC"`). */
|
|
11336
|
+
coin?: string | null;
|
|
11337
|
+
/**
|
|
11338
|
+
* @description Email of the sub-account whose deposit history to fetch. Binance
|
|
11339
|
+
* requires this, so there is no "calling account" fallback here.
|
|
11340
|
+
*/
|
|
11341
|
+
email: string;
|
|
11342
|
+
/**
|
|
11343
|
+
* Format: int64
|
|
11344
|
+
* @description Window end (ms since epoch).
|
|
11345
|
+
*/
|
|
11346
|
+
endTime?: number | null;
|
|
11347
|
+
/**
|
|
11348
|
+
* Format: int32
|
|
11349
|
+
* @description Page size (Binance max: 200). Note that Binance defaults this to `1`,
|
|
11350
|
+
* not to a full page, so callers should always set it.
|
|
11351
|
+
*/
|
|
11352
|
+
limit?: number | null;
|
|
11353
|
+
/**
|
|
11354
|
+
* Format: int32
|
|
11355
|
+
* @description Pagination offset (Binance default: 0).
|
|
11356
|
+
*/
|
|
11357
|
+
offset?: number | null;
|
|
11358
|
+
/**
|
|
11359
|
+
* Format: int64
|
|
11360
|
+
* @description Window start (ms since epoch). Binance returns the most recent 90 days
|
|
11361
|
+
* when this and `end_time` are both omitted.
|
|
11362
|
+
*/
|
|
11363
|
+
startTime?: number | null;
|
|
11364
|
+
/**
|
|
11365
|
+
* Format: int32
|
|
11366
|
+
* @description Filter by deposit status. Binance values: `0` = pending, `6` = credited
|
|
11367
|
+
* but cannot withdraw, `7` = wrong deposit, `8` = waiting user confirm,
|
|
11368
|
+
* `1` = success. Left as `u8` for forward compatibility.
|
|
11369
|
+
*/
|
|
11370
|
+
status?: number | null;
|
|
11371
|
+
/** @description Look up a specific deposit by its on-chain transaction hash. */
|
|
11372
|
+
txId?: string | null;
|
|
11373
|
+
};
|
|
10849
11374
|
/** @description One sub-account entry in [`ListSubAccountsResponse`]. */
|
|
10850
11375
|
SubAccountInfo: {
|
|
10851
11376
|
/**
|
|
@@ -11224,11 +11749,6 @@ export interface components {
|
|
|
11224
11749
|
/** @enum {string} */
|
|
11225
11750
|
chain: "Evm";
|
|
11226
11751
|
};
|
|
11227
|
-
/** @description Information about an existing transaction created by the RPC API. */
|
|
11228
|
-
TransactionInfo: components["schemas"]["Transaction"] & {
|
|
11229
|
-
/** @description The transaction id. */
|
|
11230
|
-
id: string;
|
|
11231
|
-
};
|
|
11232
11752
|
/**
|
|
11233
11753
|
* @description Supported queries
|
|
11234
11754
|
* @enum {string}
|
|
@@ -11575,7 +12095,7 @@ export interface components {
|
|
|
11575
12095
|
signature: string;
|
|
11576
12096
|
} & {
|
|
11577
12097
|
/** @description Optional policy evaluation tree. */
|
|
11578
|
-
policy_eval_tree?:
|
|
12098
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
11579
12099
|
} & Record<string, never>;
|
|
11580
12100
|
/** @description The information needed to update a bucket. */
|
|
11581
12101
|
UpdateBucketRequest: {
|
|
@@ -12204,6 +12724,19 @@ export interface components {
|
|
|
12204
12724
|
*/
|
|
12205
12725
|
updated_at: number;
|
|
12206
12726
|
};
|
|
12727
|
+
/**
|
|
12728
|
+
* @description Versioning fields (e.g., version number, creation time, and last modified times)
|
|
12729
|
+
* that are common to different types of resources.
|
|
12730
|
+
*/
|
|
12731
|
+
VersioningFields: {
|
|
12732
|
+
created?: components["schemas"]["EpochDateTime"] | null;
|
|
12733
|
+
last_modified?: components["schemas"]["EpochDateTime"] | null;
|
|
12734
|
+
/**
|
|
12735
|
+
* Format: int64
|
|
12736
|
+
* @description Version of this object
|
|
12737
|
+
*/
|
|
12738
|
+
version?: number;
|
|
12739
|
+
};
|
|
12207
12740
|
/**
|
|
12208
12741
|
* @description An exit voluntarily submitted a validator who wishes to withdraw.
|
|
12209
12742
|
* The schema for this message is defined
|
|
@@ -12485,7 +13018,7 @@ export interface components {
|
|
|
12485
13018
|
content: {
|
|
12486
13019
|
"application/json": {
|
|
12487
13020
|
/** @description Optional policy evaluation tree. */
|
|
12488
|
-
policy_eval_tree?:
|
|
13021
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12489
13022
|
} & {
|
|
12490
13023
|
/**
|
|
12491
13024
|
* @description The slash-unbonding transaction signatures as an array of hex strings with no 0x prefix
|
|
@@ -12521,7 +13054,7 @@ export interface components {
|
|
|
12521
13054
|
content: {
|
|
12522
13055
|
"application/json": {
|
|
12523
13056
|
/** @description Optional policy evaluation tree. */
|
|
12524
|
-
policy_eval_tree?:
|
|
13057
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12525
13058
|
} & {
|
|
12526
13059
|
/**
|
|
12527
13060
|
* @description The Babylon address that will receive the staking rewards for this deposit.
|
|
@@ -12571,7 +13104,7 @@ export interface components {
|
|
|
12571
13104
|
content: {
|
|
12572
13105
|
"application/json": {
|
|
12573
13106
|
/** @description Optional policy evaluation tree. */
|
|
12574
|
-
policy_eval_tree?:
|
|
13107
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12575
13108
|
} & {
|
|
12576
13109
|
/**
|
|
12577
13110
|
* Format: int64
|
|
@@ -12592,7 +13125,7 @@ export interface components {
|
|
|
12592
13125
|
content: {
|
|
12593
13126
|
"application/json": {
|
|
12594
13127
|
/** @description Optional policy evaluation tree. */
|
|
12595
|
-
policy_eval_tree?:
|
|
13128
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12596
13129
|
} & {
|
|
12597
13130
|
/**
|
|
12598
13131
|
* @description The full signed query string, ready to be submitted to Binance.
|
|
@@ -12607,7 +13140,7 @@ export interface components {
|
|
|
12607
13140
|
content: {
|
|
12608
13141
|
"application/json": {
|
|
12609
13142
|
/** @description Optional policy evaluation tree. */
|
|
12610
|
-
policy_eval_tree?:
|
|
13143
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12611
13144
|
} & {
|
|
12612
13145
|
/** @description The base64-encoded signature in BIP137 format. */
|
|
12613
13146
|
sig: string;
|
|
@@ -12643,7 +13176,7 @@ export interface components {
|
|
|
12643
13176
|
content: {
|
|
12644
13177
|
"application/json": {
|
|
12645
13178
|
/** @description Optional policy evaluation tree. */
|
|
12646
|
-
policy_eval_tree?:
|
|
13179
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12647
13180
|
} & {
|
|
12648
13181
|
/**
|
|
12649
13182
|
* @description The Bybit-bound payload (URL-encoded query for GET, JSON body for
|
|
@@ -12675,7 +13208,7 @@ export interface components {
|
|
|
12675
13208
|
content: {
|
|
12676
13209
|
"application/json": {
|
|
12677
13210
|
/** @description Optional policy evaluation tree. */
|
|
12678
|
-
policy_eval_tree?:
|
|
13211
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12679
13212
|
} & {
|
|
12680
13213
|
/**
|
|
12681
13214
|
* @description The signed JWT, ready to be sent in `Authorization: Bearer <jwt>` to
|
|
@@ -12814,7 +13347,7 @@ export interface components {
|
|
|
12814
13347
|
}
|
|
12815
13348
|
) & {
|
|
12816
13349
|
/** @description Optional policy evaluation tree. */
|
|
12817
|
-
policy_eval_tree?:
|
|
13350
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12818
13351
|
} & Record<string, never>;
|
|
12819
13352
|
};
|
|
12820
13353
|
};
|
|
@@ -12848,7 +13381,7 @@ export interface components {
|
|
|
12848
13381
|
content: {
|
|
12849
13382
|
"application/json": {
|
|
12850
13383
|
/** @description Optional policy evaluation tree. */
|
|
12851
|
-
policy_eval_tree?:
|
|
13384
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12852
13385
|
} & {
|
|
12853
13386
|
/**
|
|
12854
13387
|
* @description The generated nonces as an array of 0x-prefixed hex strings
|
|
@@ -12871,7 +13404,7 @@ export interface components {
|
|
|
12871
13404
|
content: {
|
|
12872
13405
|
"application/json": {
|
|
12873
13406
|
/** @description Optional policy evaluation tree. */
|
|
12874
|
-
policy_eval_tree?:
|
|
13407
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
12875
13408
|
} & {
|
|
12876
13409
|
/**
|
|
12877
13410
|
* @description Hex-encoded RLP encoding of the transaction and its signature
|
|
@@ -13826,7 +14359,7 @@ export interface components {
|
|
|
13826
14359
|
content: {
|
|
13827
14360
|
"application/json": {
|
|
13828
14361
|
/** @description Optional policy evaluation tree. */
|
|
13829
|
-
policy_eval_tree?:
|
|
14362
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
13830
14363
|
} & {
|
|
13831
14364
|
/**
|
|
13832
14365
|
* @description The PSBT in standard hex serialization, without leading "0x".
|
|
@@ -13997,7 +14530,7 @@ export interface components {
|
|
|
13997
14530
|
content: {
|
|
13998
14531
|
"application/json": {
|
|
13999
14532
|
/** @description Optional policy evaluation tree. */
|
|
14000
|
-
policy_eval_tree?:
|
|
14533
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
14001
14534
|
} & {
|
|
14002
14535
|
/** @description The hex-encoded resulting signature. */
|
|
14003
14536
|
signature: string;
|
|
@@ -14061,7 +14594,7 @@ export interface components {
|
|
|
14061
14594
|
content: {
|
|
14062
14595
|
"application/json": ({
|
|
14063
14596
|
/** @description Optional policy evaluation tree. */
|
|
14064
|
-
policy_eval_tree?:
|
|
14597
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
14065
14598
|
} & {
|
|
14066
14599
|
deposit_tx: components["schemas"]["DepositTxn"];
|
|
14067
14600
|
}) & {
|
|
@@ -14139,7 +14672,7 @@ export interface components {
|
|
|
14139
14672
|
signature: string;
|
|
14140
14673
|
} & {
|
|
14141
14674
|
/** @description Optional policy evaluation tree. */
|
|
14142
|
-
policy_eval_tree?:
|
|
14675
|
+
policy_eval_tree?: components["schemas"]["PolicyEvalTree"] | null;
|
|
14143
14676
|
} & Record<string, never>;
|
|
14144
14677
|
};
|
|
14145
14678
|
};
|