@1claw/sdk 0.53.1 → 0.53.2

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.
@@ -6652,7 +6652,7 @@ export interface paths {
6652
6652
  patch?: never;
6653
6653
  trace?: never;
6654
6654
  };
6655
- "/v1/wallets/access-policies": {
6655
+ "/v1/treasury/wallets/access-policies": {
6656
6656
  parameters: {
6657
6657
  query?: never;
6658
6658
  header?: never;
@@ -6664,8 +6664,9 @@ export interface paths {
6664
6664
  put?: never;
6665
6665
  /**
6666
6666
  * Create a wallet access policy
6667
- * @description Create a role-based wallet access policy granting an agent or user
6668
- * specific permissions (send, swap, receive) on a treasury wallet chain.
6667
+ * @description Create a role-based wallet access policy granting an agent, user, role,
6668
+ * or platform app specific permissions on treasury wallets within a scope
6669
+ * (org-wide, platform app, or single wallet). Requires Pro+ tier.
6669
6670
  */
6670
6671
  post: operations["createWalletAccessPolicy"];
6671
6672
  delete?: never;
@@ -6674,7 +6675,7 @@ export interface paths {
6674
6675
  patch?: never;
6675
6676
  trace?: never;
6676
6677
  };
6677
- "/v1/wallets/access-policies/{id}": {
6678
+ "/v1/treasury/wallets/access-policies/{id}": {
6678
6679
  parameters: {
6679
6680
  query?: never;
6680
6681
  header?: never;
@@ -9010,12 +9011,25 @@ export interface components {
9010
9011
  };
9011
9012
  };
9012
9013
  ShroudAttestationResponse: {
9013
- /** @description Whether TEE attestation was successfully fetched */
9014
+ /**
9015
+ * @description Whether at least an identity token was obtained (true for identity,
9016
+ * confidential, or sev_snp levels). Backward-compatible boolean; prefer
9017
+ * attestation_level for granularity.
9018
+ */
9014
9019
  attested: boolean;
9020
+ /**
9021
+ * @description Granularity of TEE attestation achieved. `none` = dev/non-GCE;
9022
+ * `identity` = GCE metadata JWT only; `confidential` = CC claims present;
9023
+ * `sev_snp` = full SEV-SNP measurement verified against image digest.
9024
+ * @enum {string}
9025
+ */
9026
+ attestation_level: "none" | "identity" | "confidential" | "sev_snp";
9015
9027
  /** @description Confidential VM image hash (compare against published Docker digest) */
9016
9028
  image_hash: string;
9017
9029
  /** @description GCE metadata identity JWT (verify against Google public keys) */
9018
9030
  identity_token: string;
9031
+ /** @description Confidential Computing claims extracted from the identity JWT */
9032
+ confidential_claims?: components["schemas"]["ConfidentialClaims"];
9019
9033
  verification: {
9020
9034
  steps?: string[];
9021
9035
  /** Format: uri */
@@ -9023,6 +9037,16 @@ export interface components {
9023
9037
  expected_audience?: string;
9024
9038
  };
9025
9039
  };
9040
+ ConfidentialClaims: {
9041
+ /** @description Whether secure boot was enabled */
9042
+ secboot?: boolean;
9043
+ /** @description Hardware model string (e.g. GCP_AMD_SEV) */
9044
+ hwmodel?: string;
9045
+ /** @description Instance confidentiality level from google.compute_engine */
9046
+ instance_confidentiality?: string;
9047
+ /** @description Software name claim (swname or sw_name) */
9048
+ sw_name?: string;
9049
+ } | null;
9026
9050
  AuditEvent: {
9027
9051
  /** Format: uuid */
9028
9052
  id?: string;
@@ -11536,27 +11560,41 @@ export interface components {
11536
11560
  comment?: string;
11537
11561
  };
11538
11562
  CreateWalletAccessPolicyRequest: {
11539
- /** @description Chain for which the policy applies (e.g. ethereum, solana) */
11540
- wallet_chain: string;
11541
11563
  /**
11542
- * Format: uuid
11543
- * @description Agent granted access (mutually exclusive with target_user_id)
11564
+ * @description Policy scope — org-wide, platform app, or single wallet
11565
+ * @enum {string}
11544
11566
  */
11545
- target_agent_id?: string;
11567
+ scope_type: "wallet" | "platform_app" | "org";
11546
11568
  /**
11547
11569
  * Format: uuid
11548
- * @description User granted access (mutually exclusive with target_agent_id)
11570
+ * @description Wallet or platform app UUID when scope_type is not org
11549
11571
  */
11550
- target_user_id?: string;
11551
- permissions: ("send" | "swap" | "receive")[];
11552
- conditions?: {
11553
- /** @description Max value per transaction in ETH */
11554
- max_value_per_tx_eth?: string;
11555
- /** @description Daily spend limit in ETH */
11556
- daily_limit_eth?: string;
11557
- allowed_chains?: string[];
11558
- allowed_tokens?: string[];
11559
- };
11572
+ scope_id?: string | null;
11573
+ /**
11574
+ * @description Who receives the grant
11575
+ * @enum {string}
11576
+ */
11577
+ principal_type: "user" | "agent" | "role" | "platform_app";
11578
+ /** @description User/agent UUID, role name, or platform app UUID */
11579
+ principal_id: string;
11580
+ /** @default false */
11581
+ can_sign: boolean;
11582
+ /** @default true */
11583
+ can_view_balance: boolean;
11584
+ /** @default false */
11585
+ can_export: boolean;
11586
+ /** @default false */
11587
+ can_send: boolean;
11588
+ /** @default false */
11589
+ can_swap: boolean;
11590
+ /** @description Chains this policy applies to (empty = all) */
11591
+ allowed_chains?: string[];
11592
+ /** @description Max value per transaction in ETH */
11593
+ max_value_per_tx_eth?: string;
11594
+ /** @description Daily spend limit in ETH */
11595
+ daily_limit_eth?: string;
11596
+ /** @description Additional JSON conditions (reserved for future enforcement) */
11597
+ conditions?: Record<string, never>;
11560
11598
  /** Format: date-time */
11561
11599
  expires_at?: string;
11562
11600
  };
@@ -11565,22 +11603,29 @@ export interface components {
11565
11603
  id?: string;
11566
11604
  /** Format: uuid */
11567
11605
  org_id?: string;
11568
- wallet_chain?: string;
11569
- /** Format: uuid */
11570
- target_agent_id?: string | null;
11606
+ scope_type?: string;
11571
11607
  /** Format: uuid */
11572
- target_user_id?: string | null;
11573
- permissions?: ("send" | "swap" | "receive")[];
11574
- conditions?: {
11575
- max_value_per_tx_eth?: string | null;
11576
- daily_limit_eth?: string | null;
11577
- allowed_chains?: string[] | null;
11578
- allowed_tokens?: string[] | null;
11579
- } | null;
11608
+ scope_id?: string | null;
11609
+ principal_type?: string;
11610
+ principal_id?: string;
11611
+ can_sign?: boolean;
11612
+ can_view_balance?: boolean;
11613
+ can_export?: boolean;
11614
+ can_send?: boolean;
11615
+ can_swap?: boolean;
11616
+ allowed_chains?: string[];
11617
+ max_value_per_tx_eth?: string | null;
11618
+ daily_limit_eth?: string | null;
11619
+ conditions?: Record<string, never>;
11620
+ is_active?: boolean;
11580
11621
  /** Format: date-time */
11581
11622
  expires_at?: string | null;
11623
+ /** Format: uuid */
11624
+ created_by?: string;
11582
11625
  /** Format: date-time */
11583
11626
  created_at?: string;
11627
+ /** Format: date-time */
11628
+ updated_at?: string;
11584
11629
  };
11585
11630
  WalletAccessPolicyListResponse: {
11586
11631
  policies?: components["schemas"]["WalletAccessPolicyResponse"][];
@@ -21176,10 +21221,10 @@ export interface operations {
21176
21221
  listWalletAccessPolicies: {
21177
21222
  parameters: {
21178
21223
  query?: {
21179
- /** @description Filter by chain (e.g. ethereum, solana) */
21180
- wallet_chain?: string;
21181
- /** @description Filter by target agent */
21182
- target_agent_id?: string;
21224
+ /** @description Filter by scope type */
21225
+ scope_type?: "wallet" | "platform_app" | "org";
21226
+ /** @description Filter by scope ID (wallet or platform app UUID) */
21227
+ scope_id?: string;
21183
21228
  };
21184
21229
  header?: never;
21185
21230
  path?: never;