@cubist-labs/cubesigner-sdk 0.4.254 → 0.4.260

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.
@@ -46,11 +46,32 @@ const AllOperationKinds: Record<OperationKind, true> = {
46
46
  BabylonCovSign: true,
47
47
  BabylonRegistration: true,
48
48
  BabylonStaking: true,
49
- BinanceSign: true,
49
+ BinanceSubToMaster: true,
50
+ BinanceSubToSub: true,
51
+ BinanceUniversalTransfer: true,
52
+ BinanceSubAccountAssets: true,
53
+ BinanceAccountInfo: true,
54
+ BinanceSubAccountTransferHistory: true,
55
+ BinanceUniversalTransferHistory: true,
56
+ BinanceWithdraw: true,
57
+ BinanceWithdrawHistory: true,
58
+ BinanceDeposit: true,
59
+ BinanceDepositHistory: true,
60
+ BinanceListSubAccounts: true,
61
+ BinanceCoinInfo: true,
50
62
  BlobSign: true,
51
63
  BtcMessageSign: true,
52
64
  BtcSign: true,
53
- CoinbaseSign: true,
65
+ BybitQueryUser: true,
66
+ BybitQuerySubMembers: true,
67
+ BybitQueryCoinsBalance: true,
68
+ BybitQueryDepositAddress: true,
69
+ BybitUniversalTransfer: true,
70
+ BybitWithdraw: true,
71
+ BybitWithdrawals: true,
72
+ CoinbaseListAccounts: true,
73
+ CoinbaseListPortfolios: true,
74
+ CoinbaseMoveFunds: true,
54
75
  DiffieHellman: true,
55
76
  PsbtSign: true,
56
77
  TaprootSign: true,
@@ -217,12 +238,14 @@ export type MfaProtectedAction = schemas["MfaProtectedAction"];
217
238
  export type MfaRequired = schemas["MfaRequiredArgs"];
218
239
  export type SignDryRun = schemas["SignDryRunArgs"];
219
240
  export type BinanceDryRun = schemas["BinanceDryRunArgs"];
241
+ export type BybitDryRun = schemas["BybitDryRunArgs"];
220
242
  export type CoinbaseDryRun = schemas["CoinbaseDryRunArgs"];
221
243
  export type EvmTxCmp = schemas["EvmTxCmp"];
222
244
  export type SolanaTxCmp = schemas["SolanaTxCmp"];
223
245
 
224
246
  export type BinanceApiProperties = schemas["BinanceApiPropertiesPatch"];
225
247
  export type CoinbaseApiProperties = schemas["CoinbaseApiPropertiesPatch"];
248
+ export type KeyPropertiesPatch = schemas["KeyPropertiesPatch"];
226
249
 
227
250
  export type CreateOrgRequest = schemas["CreateOrgRequest"];
228
251
  export type OrgMetricName = schemas["MetricName"];
@@ -300,6 +323,11 @@ export type AvaChain = "C" | "X" | "P";
300
323
  /** Key import */
301
324
  export type CreateKeyImportKeyResponse = schemas["CreateKeyImportKeyResponse"];
302
325
  export type ImportKeyRequest = schemas["ImportKeyRequest"];
326
+
327
+ /** Policy import key */
328
+ export type CreatePolicyImportKeyResponse = schemas["CreatePolicyImportKeyResponse"];
329
+ export type KeyImportKey = schemas["KeyImportKey"];
330
+ export type SecretValue = schemas["SecretValue"];
303
331
  export type ImportKeyRequestMaterial = schemas["ImportKeyRequestMaterial"];
304
332
 
305
333
  export type InvitationAcceptRequest = schemas["InvitationAcceptRequest"];
@@ -347,3 +375,4 @@ export type PolicyAction = schemas["PolicyAction"];
347
375
  export type SecretAction = schemas["SecretAction"];
348
376
  export type PolicySecretsInfo = schemas["PolicySecretsInfo"];
349
377
  export type SetPolicySecretRequest = schemas["SetPolicySecretRequest"];
378
+ export type UpdatePolicySecretsRequest = schemas["UpdatePolicySecretsRequest"];
package/src/scopes.ts CHANGED
@@ -33,6 +33,7 @@ export const AllScopes: Record<ExplicitScope, string> =
33
33
  "sign:binance:*" : "Allows access to the Binance sign endpoint, without restrictions",
34
34
  "sign:binance:accountInfo" : "Allows access to the Binance sign endpoint, restricted to the 'AccountInfo' operation",
35
35
  "sign:binance:deposit" : "Allows access to the Binance sign endpoint, restricted to the 'Deposit' method",
36
+ "sign:binance:depositHistory" : "Allows access to the Binance sign endpoint, restricted to the 'DepositHistory' method",
36
37
  "sign:binance:subAccountAssets" : "Allows access to the Binance sign endpoint, restricted to the 'SubAccountAssets' operation",
37
38
  "sign:binance:subAccountTransferHistory" : "Allows access to the Binance sign endpoint, restricted to the 'SubAccountTransferHistory' operation",
38
39
  "sign:binance:subToMaster" : "Allows access to the Binance sign endpoint, restricted to the 'SubToMaster' operation",
@@ -54,6 +55,14 @@ export const AllScopes: Record<ExplicitScope, string> =
54
55
  "sign:babylon:staking:slash" : "Allows access to the signing endpoint for Babylon slashing pre-signatures",
55
56
  "sign:babylon:registration" : "Allows access to the signing endpoint for Babylon registration",
56
57
  "sign:babylon:covenant" : "Allows access to the signing endpoint for Babylon covenant signing",
58
+ "sign:bybit:*" : "Allows access to the typed sign 'bybit' endpoint (signs Bybit RPC requests).",
59
+ "sign:bybit:queryUser" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'QueryUser' operation.",
60
+ "sign:bybit:querySubMembers" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'QuerySubMembers' operation.",
61
+ "sign:bybit:queryCoinsBalance" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'QueryCoinsBalance' operation.",
62
+ "sign:bybit:queryDepositAddress" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'QueryDepositAddress' operation.",
63
+ "sign:bybit:universalTransfer" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'UniversalTransfer' operation.",
64
+ "sign:bybit:withdraw" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'Withdraw' operation.",
65
+ "sign:bybit:withdrawals" : "Allows access to the typed sign 'bybit' endpoint, but only for the 'Withdrawals' operation.",
57
66
  "sign:coinbase:*" : "Allows access to the typed sign 'coinbase' endpoint (signs Coinbase RPC requests).",
58
67
  "sign:coinbase:accounts:list" : "Allows access to the typed sign 'coinbase' endpoint, but only for the 'ListAccounts' operation.",
59
68
  "sign:coinbase:portfolios:list" : "Allows access to the typed sign 'coinbase' endpoint, but only for the 'ListPortfolios' operation.",
@@ -260,12 +269,14 @@ export const AllScopes: Record<ExplicitScope, string> =
260
269
  "orgAccess:*" : "Allows access to certain orgs other than the current session's",
261
270
  "orgAccess:child:*" : "Allows a session to be used for access to orgs transitively parented by the session's org.",
262
271
  "rpc:*" : "Allows access to the RPC API endpoint",
272
+ "rpc:cancelTransaction" : "Allows access to the RPC API endpoint, but only for the 'cs_cancelTransaction' function.",
263
273
  "rpc:createTransaction:*" : "Allows access to the RPC API endpoint, but only for the 'cs_createTransaction' function.",
264
274
  "rpc:createTransaction:evm" : "Allows access to the RPC API endpoint, but only for the 'cs_createTransaction' function with an EVM transaction request.",
265
275
  "rpc:getTransaction" : "Allows access to the RPC API endpoint, but only for the 'cs_getTransaction' function.",
266
276
  "rpc:listTransactions" : "Allows access to the RPC API endpoint, but only for the 'cs_listTransactions' function.",
267
277
  "rpc:retryTransaction" : "Allows access to the RPC API endpoint, but only for the 'cs_retryTransaction' function",
268
278
  "rpc:binance" : "Allows access to the RPC API endpoint, but only for the 'cs_binance*' functions",
279
+ "rpc:bybit" : "Allows access to the RPC API endpoint, but only for the Bybit methods",
269
280
  "rpc:coinbase" : "Allows access to the RPC API endpoint, but only for the 'cs_coinbase*' functions",
270
281
  };
271
282