@cubist-labs/cubesigner-sdk 0.4.231 → 0.4.236
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/README.md +1 -1
- package/dist/package.json +1 -1
- package/dist/src/client/api_client.d.ts +14 -0
- package/dist/src/client/api_client.d.ts.map +1 -1
- package/dist/src/client/api_client.js +27 -2
- package/dist/src/org.d.ts +11 -0
- package/dist/src/org.d.ts.map +1 -1
- package/dist/src/org.js +17 -1
- package/dist/src/role.d.ts +13 -1
- package/dist/src/role.d.ts.map +1 -1
- package/dist/src/role.js +1 -1
- package/dist/src/schema.d.ts +564 -55
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +1 -0
- 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 +39 -6
- package/package.json +1 -1
- package/src/client/api_client.ts +30 -1
- package/src/org.ts +18 -0
- package/src/role.ts +12 -0
- package/src/schema.ts +893 -307
- package/src/schema_types.ts +1 -0
- package/src/scopes.ts +38 -5
package/src/role.ts
CHANGED
|
@@ -29,6 +29,9 @@ import type { RoleAttestationClaims, RoleAttestationQuery } from "./schema_types
|
|
|
29
29
|
|
|
30
30
|
type NameOrAddressOrNull = string | null;
|
|
31
31
|
|
|
32
|
+
/** Only allow the following operations */
|
|
33
|
+
export type OperationAllowlist = { OperationAllowlist: OperationKind[] };
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Restrict the receiver for EVM transactions.
|
|
34
37
|
*
|
|
@@ -310,6 +313,13 @@ export type BtcSegwitValueLimitWindow = {
|
|
|
310
313
|
*/
|
|
311
314
|
export type SourceIpAllowlist = { SourceIpAllowlist: string[] };
|
|
312
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Disallow signing until the specified Unix timestamp (in seconds since epoch).
|
|
318
|
+
*
|
|
319
|
+
* @example { TimeLock: 1750000000 }
|
|
320
|
+
*/
|
|
321
|
+
export type TimeLock = { TimeLock: number };
|
|
322
|
+
|
|
313
323
|
export type HttpRequestComparer = "Eq" | { EvmTx: EvmTxCmp } | { SolanaTx: SolanaTxCmp };
|
|
314
324
|
|
|
315
325
|
/**
|
|
@@ -476,6 +486,7 @@ export type NamedPolicyReference = {
|
|
|
476
486
|
|
|
477
487
|
/** Key policies that restrict the requests that the signing endpoints accept */
|
|
478
488
|
export type KeyDenyPolicy =
|
|
489
|
+
| OperationAllowlist
|
|
479
490
|
| TxReceiver
|
|
480
491
|
| TxDeposit
|
|
481
492
|
| TxValueLimit
|
|
@@ -487,6 +498,7 @@ export type KeyDenyPolicy =
|
|
|
487
498
|
| SuiTxReceivers
|
|
488
499
|
| BtcTxReceivers
|
|
489
500
|
| SourceIpAllowlist
|
|
501
|
+
| TimeLock
|
|
490
502
|
| SolanaInstructionPolicy
|
|
491
503
|
| BtcSegwitValueLimit
|
|
492
504
|
| RequireMfa
|