@cubist-labs/cubesigner-sdk 0.4.247 → 0.4.252
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 +5 -5
- package/dist/src/client/api_client.d.ts +1 -1
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +3 -2
- package/dist/src/key.d.ts +6 -3
- package/dist/src/key.d.ts.map +1 -1
- package/dist/src/key.js +4 -1
- package/dist/src/org.d.ts +12 -1
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +23 -1
- package/dist/src/passkey.d.ts +2 -2
- package/dist/src/passkey.d.ts.map +1 -1
- package/dist/src/passkey.js +1 -1
- package/dist/src/schema.d.ts +443 -69
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +2 -0
- package/dist/src/schema_types.d.ts.map +1 -1
- package/dist/src/schema_types.js +2 -1
- package/dist/src/scopes.d.ts +8 -0
- package/dist/src/scopes.d.ts.map +1 -1
- package/dist/src/scopes.js +11 -1
- package/package.json +1 -1
- package/src/client/api_client.ts +3 -2
- package/src/key.ts +7 -1
- package/src/org.ts +30 -0
- package/src/passkey.ts +3 -2
- package/src/schema.ts +484 -68
- package/src/schema_types.ts +3 -0
- package/src/scopes.ts +10 -0
package/src/schema_types.ts
CHANGED
|
@@ -50,6 +50,7 @@ const AllOperationKinds: Record<OperationKind, true> = {
|
|
|
50
50
|
BlobSign: true,
|
|
51
51
|
BtcMessageSign: true,
|
|
52
52
|
BtcSign: true,
|
|
53
|
+
CoinbaseSign: true,
|
|
53
54
|
DiffieHellman: true,
|
|
54
55
|
PsbtSign: true,
|
|
55
56
|
TaprootSign: true,
|
|
@@ -216,10 +217,12 @@ export type MfaProtectedAction = schemas["MfaProtectedAction"];
|
|
|
216
217
|
export type MfaRequired = schemas["MfaRequiredArgs"];
|
|
217
218
|
export type SignDryRun = schemas["SignDryRunArgs"];
|
|
218
219
|
export type BinanceDryRun = schemas["BinanceDryRunArgs"];
|
|
220
|
+
export type CoinbaseDryRun = schemas["CoinbaseDryRunArgs"];
|
|
219
221
|
export type EvmTxCmp = schemas["EvmTxCmp"];
|
|
220
222
|
export type SolanaTxCmp = schemas["SolanaTxCmp"];
|
|
221
223
|
|
|
222
224
|
export type BinanceApiProperties = schemas["BinanceApiPropertiesPatch"];
|
|
225
|
+
export type CoinbaseApiProperties = schemas["CoinbaseApiPropertiesPatch"];
|
|
223
226
|
|
|
224
227
|
export type CreateOrgRequest = schemas["CreateOrgRequest"];
|
|
225
228
|
export type OrgMetricName = schemas["MetricName"];
|
package/src/scopes.ts
CHANGED
|
@@ -41,6 +41,8 @@ export const AllScopes: Record<ExplicitScope, string> =
|
|
|
41
41
|
"sign:binance:universalTransferHistory" : "Allows access to the Binance sign endpoint, restricted to the 'UniversalTransferHistory' operation",
|
|
42
42
|
"sign:binance:withdraw" : "Allows access to the Binance sign endpoint, restricted to the 'Withdraw' operation",
|
|
43
43
|
"sign:binance:withdrawHistory" : "Allows access to the Binance sign endpoint, restricted to the 'WithdrawHistory' operation",
|
|
44
|
+
"sign:binance:listSubAccounts" : "Allows access to the typed sign 'binance' endpoint, but only for the 'ListSubAccounts' operation.",
|
|
45
|
+
"sign:binance:coinInfo" : "Allows access to the typed sign 'binance' endpoint, but only for the 'CoinInfo' operation.",
|
|
44
46
|
"sign:babylon:*" : "Allows access to all Babylon endpoints",
|
|
45
47
|
"sign:babylon:eots:*" : "Allows access to all Babylon EOTS endpoints",
|
|
46
48
|
"sign:babylon:eots:nonces" : "Allows access to the EOTS nonce generation endpoint",
|
|
@@ -52,6 +54,10 @@ export const AllScopes: Record<ExplicitScope, string> =
|
|
|
52
54
|
"sign:babylon:staking:slash" : "Allows access to the signing endpoint for Babylon slashing pre-signatures",
|
|
53
55
|
"sign:babylon:registration" : "Allows access to the signing endpoint for Babylon registration",
|
|
54
56
|
"sign:babylon:covenant" : "Allows access to the signing endpoint for Babylon covenant signing",
|
|
57
|
+
"sign:coinbase:*" : "Allows access to the typed sign 'coinbase' endpoint (signs Coinbase RPC requests).",
|
|
58
|
+
"sign:coinbase:accounts:list" : "Allows access to the typed sign 'coinbase' endpoint, but only for the 'ListAccounts' operation.",
|
|
59
|
+
"sign:coinbase:portfolios:list" : "Allows access to the typed sign 'coinbase' endpoint, but only for the 'ListPortfolios' operation.",
|
|
60
|
+
"sign:coinbase:funds:move" : "Allows access to the typed sign 'coinbase' endpoint, but only for the 'MoveFunds' operation.",
|
|
55
61
|
"sign:evm:*" : "Allows access to all sign 'evm' endpoints",
|
|
56
62
|
"sign:evm:tx" : "Allows access to the signing endpoint for evm transactions",
|
|
57
63
|
"sign:evm:eip191" : "Allows access to the signing endpoint for EIP-191 personal_message data",
|
|
@@ -260,6 +266,7 @@ export const AllScopes: Record<ExplicitScope, string> =
|
|
|
260
266
|
"rpc:listTransactions" : "Allows access to the RPC API endpoint, but only for the 'cs_listTransactions' function.",
|
|
261
267
|
"rpc:retryTransaction" : "Allows access to the RPC API endpoint, but only for the 'cs_retryTransaction' function",
|
|
262
268
|
"rpc:binance" : "Allows access to the RPC API endpoint, but only for the 'cs_binance*' functions",
|
|
269
|
+
"rpc:coinbase" : "Allows access to the RPC API endpoint, but only for the 'cs_coinbase*' functions",
|
|
263
270
|
};
|
|
264
271
|
|
|
265
272
|
// Const for scope category labels
|
|
@@ -269,6 +276,7 @@ const CATEGORY_LABELS: Record<string, string> = {
|
|
|
269
276
|
export: "Export",
|
|
270
277
|
mmi: "MMI",
|
|
271
278
|
orgAccess: "Org Access",
|
|
279
|
+
rpc: "RPC",
|
|
272
280
|
};
|
|
273
281
|
|
|
274
282
|
/**
|
|
@@ -381,6 +389,7 @@ export const allScopesDictionary: ScopesDictionary = computeScopesDictionary();
|
|
|
381
389
|
export const roleScopesDictionary = {
|
|
382
390
|
sign: allScopesDictionary.sign,
|
|
383
391
|
mmi: allScopesDictionary.mmi,
|
|
392
|
+
rpc: allScopesDictionary.rpc,
|
|
384
393
|
manage: {
|
|
385
394
|
label: "Manage",
|
|
386
395
|
scopes: [
|
|
@@ -415,4 +424,5 @@ export const userScopesDictionary = {
|
|
|
415
424
|
manage: allScopesDictionary.manage,
|
|
416
425
|
sign: allScopesDictionary.sign,
|
|
417
426
|
mmi: allScopesDictionary.mmi,
|
|
427
|
+
rpc: allScopesDictionary.rpc,
|
|
418
428
|
};
|