@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.
- package/dist/package.json +1 -1
- package/dist/src/audit_log.d.ts +4 -4
- package/dist/src/audit_log.js +1 -1
- package/dist/src/client/api_client.d.ts +35 -14
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +63 -29
- package/dist/src/client/base_client.d.ts +7 -0
- package/dist/src/client/base_client.d.ts.map +1 -1
- package/dist/src/client/base_client.js +15 -7
- package/dist/src/client.d.ts +24 -32
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +21 -29
- package/dist/src/fetch.d.ts.map +1 -1
- package/dist/src/fetch.js +2 -3
- package/dist/src/key.d.ts +17 -1
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +17 -1
- package/dist/src/response.d.ts +27 -3
- package/dist/src/response.d.ts.map +1 -1
- package/dist/src/response.js +60 -19
- package/dist/src/schema.d.ts +819 -81
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +10 -1
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +1 -1
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +20 -3
- package/package.json +1 -1
- package/src/audit_log.ts +3 -5
- package/src/client/api_client.ts +80 -18
- package/src/client/base_client.ts +22 -9
- package/src/client.ts +23 -57
- package/src/fetch.ts +1 -2
- package/src/key.ts +24 -0
- package/src/response.ts +67 -17
- package/src/schema.ts +879 -90
- package/src/schema_types.ts +11 -1
- package/src/scopes.ts +19 -2
package/src/schema_types.ts
CHANGED
|
@@ -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["
|
|
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"
|
|
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"
|
|
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
|