@cubist-labs/cubesigner-sdk 0.4.239 → 0.4.244

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.
@@ -193,6 +193,7 @@ export type MmiJrpcMethod =
193
193
  | "custodian_getSignedMessageLink";
194
194
 
195
195
  export type AcceptedResponse = schemas["AcceptedResponse"];
196
+ export type AcceptedValue = schemas["AcceptedValue"];
196
197
  export type ErrorResponse = schemas["ErrorResponse"];
197
198
  export type BtcSignatureKind = schemas["BtcSignatureKind"];
198
199
  export type CsErrCode = schemas["SignerErrorCode"];
@@ -211,10 +212,14 @@ export type MfaPolicy = Omit<schemas["MfaPolicy"], "allowed_mfa_types"> & {
211
212
  export type MfaVote = schemas["MfaVote"];
212
213
  export type MfaRequestInfo = schemas["MfaRequestInfo"];
213
214
  export type MfaProtectedAction = schemas["MfaProtectedAction"];
214
- export type MfaRequired = schemas["AcceptedValue"]["MfaRequired"];
215
+ export type MfaRequired = schemas["MfaRequiredArgs"];
216
+ export type SignDryRun = schemas["SignDryRunArgs"];
217
+ export type BinanceDryRun = schemas["BinanceDryRunArgs"];
215
218
  export type EvmTxCmp = schemas["EvmTxCmp"];
216
219
  export type SolanaTxCmp = schemas["SolanaTxCmp"];
217
220
 
221
+ export type BinanceApiProperties = schemas["BinanceApiPropertiesPatch"];
222
+
218
223
  export type CreateOrgRequest = schemas["CreateOrgRequest"];
219
224
  export type OrgMetricName = schemas["MetricName"];
220
225
  export type QueryMetricsRequest = schemas["QueryMetricsRequest"];
@@ -232,6 +237,11 @@ export type UserExportCompleteRequest = schemas["UserExportCompleteRequest"];
232
237
  export type UserExportCompleteResponse = schemas["UserExportCompleteResponse"];
233
238
  export type UserExportListResponse = schemas["PaginatedUserExportListResponse"];
234
239
  export type UserExportKeyMaterial = schemas["JsonKeyPackage"];
240
+ export type JsonRpcResponse = schemas["JsonRpcResponse"];
241
+ export type JsonRpcRequest = schemas["RpcMethod"] & {
242
+ /** @description Request ID */
243
+ id?: string;
244
+ };
235
245
 
236
246
  export type HistoricalTx = schemas["HistoricalTx"];
237
247
  export type ListHistoricalTxResponse = schemas["PaginatedListHistoricalTxResponse"];
package/src/scopes.ts CHANGED
@@ -91,6 +91,7 @@ export const AllScopes: Record<ExplicitScope, string> =
91
91
  "manage:key:update:policy" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'policy' property",
92
92
  "manage:key:update:enabled" : "Allows access only to the key 'update' endpoint, but restricting updates to the key 'enabled' property",
93
93
  "manage:key:update:metadata" : "Allows access only to the key 'update' endpoint and restricts updates to the key 'metadata' property",
94
+ "manage:key:update:properties" : "Allows access only to the key 'update' endpoint and restricts updates to the key 'properties' property",
94
95
  "manage:key:update:editPolicy" : "Allows access only to the key 'update' endpoint and restricts updates to the 'edit_policy' property",
95
96
  "manage:key:delete" : "Allows access only to the key 'delete' endpoint",
96
97
  "manage:policy:*" : "Allows access to all policy endpoints",
@@ -177,10 +178,16 @@ export const AllScopes: Record<ExplicitScope, string> =
177
178
  "manage:org:invitation:cancel" : "Allows access only to the org endpoint for canceling pending invitations",
178
179
  "manage:org:inviteUser" : "Allows access only to the org endpoint for inviting a new member or org owner to the org",
179
180
  "manage:org:inviteAlien" : "Allows access only to the org endpoint for inviting a new alien user to the org",
180
- "manage:org:updateMembership" : "Allows access only to the org endpoint for updating existing user's org membership",
181
+ "manage:org:updateMembership:*" : "Allows access only to the org endpoint for updating existing user's org membership",
182
+ "manage:org:updateMembership:owner" : "Allows access only to the org endpoint for updating existing org Owner's membership",
183
+ "manage:org:updateMembership:member" : "Allows access only to the org endpoint for updating existing org Member's membership",
184
+ "manage:org:updateMembership:alien" : "Allows access only to the org endpoint for updating existing org Alien's membership",
181
185
  "manage:org:listUsers" : "Allows access only to the org endpoint for listing all org users (members)",
182
186
  "manage:org:user:get" : "Allows access only to the org endpoints for getting users by id or email",
183
- "manage:org:deleteUser" : "Allows access only to the org endpoint for deleting an OIDC user",
187
+ "manage:org:deleteUser:*" : "Allows access only to the org endpoint for deleting an OIDC user",
188
+ "manage:org:deleteUser:owner" : "Allows access only to the org endpoint for deleting a user, only when deleting an existing org Owner",
189
+ "manage:org:deleteUser:member" : "Allows access only to the org endpoint for deleting a user, only when deleting an existing org Member",
190
+ "manage:org:deleteUser:alien" : "Allows access only to the org endpoint for deleting a user, only when deleting an existing org Alien",
184
191
  "manage:org:get" : "Allows access to retrieving organization information",
185
192
  "manage:org:user:resetMfa" : "Allows an owner to initiate an MFA reset for a user",
186
193
  "manage:org:update:*" : "Allows access to all org 'update' actions",
@@ -240,6 +247,16 @@ export const AllScopes: Record<ExplicitScope, string> =
240
247
  "rpc:createTransaction:evm" : "Allows access to the RPC API endpoint, but only for the 'cs_createTransaction' function with an EVM transaction request.",
241
248
  "rpc:getTransaction" : "Allows access to the RPC API endpoint, but only for the 'cs_getTransaction' function.",
242
249
  "rpc:listTransactions" : "Allows access to the RPC API endpoint, but only for the 'cs_listTransactions' function.",
250
+ "rpc:binance:*" : "Allows access to the RPC API endpoint, but only for the Binance methods",
251
+ "rpc:binance:subToMaster" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceSubToMaster' function.",
252
+ "rpc:binance:subToSub" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceSubToSub' function.",
253
+ "rpc:binance:universalTransfer" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceUniversalTransfer' function.",
254
+ "rpc:binance:subAccountAssets" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceSubAccountAssets' function.",
255
+ "rpc:binance:accountInfo" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceAccountInfo' function.",
256
+ "rpc:binance:subAccountTransferHistory" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceSubAccountTransferHistory' function.",
257
+ "rpc:binance:universalTransferHistory" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceUniversalTransferHistory' function.",
258
+ "rpc:binance:withdraw" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceWithdraw' function.",
259
+ "rpc:binance:withdrawHistory" : "Allows access to the RPC API endpoint, but only for the 'cs_binanceWithdrawHistory' function.",
243
260
  };
244
261
 
245
262
  // Const for scope category labels