@1claw/sdk 0.41.0 → 0.41.1
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 +22 -0
- package/dist/generated/api-types.d.ts +18 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +53 -53
package/README.md
CHANGED
|
@@ -300,6 +300,28 @@ Key properties:
|
|
|
300
300
|
- **Every transaction is audit-logged** with full calldata
|
|
301
301
|
- **Revocable instantly** — set `intents_api_enabled: false` to cut off access
|
|
302
302
|
|
|
303
|
+
### TEE Enforcement (Pro+)
|
|
304
|
+
|
|
305
|
+
Lock down agents so signing and execution requests **must** route through the hardware enclave (Shroud TEE). Direct Vault API calls are rejected with 403.
|
|
306
|
+
|
|
307
|
+
```typescript
|
|
308
|
+
await client.agents.update(agentId, {
|
|
309
|
+
intents_require_tee: true, // Only signs within the hardware enclave
|
|
310
|
+
execution_require_tee: true, // Only runs within the hardware enclave
|
|
311
|
+
});
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
When `intents_require_tee` is true:
|
|
315
|
+
- Transaction submit/sign requests to `api.1claw.xyz` are rejected (403)
|
|
316
|
+
- Agents must route through `shroud.1claw.xyz` where signing happens inside TEE memory
|
|
317
|
+
|
|
318
|
+
When `execution_require_tee` is true:
|
|
319
|
+
- Execute requests to `api.1claw.xyz` are rejected (403)
|
|
320
|
+
- All direct secret reads by the agent are blocked — forces use of Execution Intent bindings
|
|
321
|
+
- Agents must route through `shroud.1claw.xyz`
|
|
322
|
+
|
|
323
|
+
Both require `intents_api_enabled` / `execution_intents_enabled` to be on first.
|
|
324
|
+
|
|
303
325
|
## OIDC Federation (Anthropic WIF, GCP STS, AWS STS)
|
|
304
326
|
|
|
305
327
|
`https://api.1claw.xyz` is a fully OpenID Connect–compliant issuer. External relying parties — Anthropic Workload Identity Federation, GCP STS, AWS STS, Stytch, etc. — can validate 1claw-issued JWTs by fetching:
|
|
@@ -5012,6 +5012,16 @@ export interface components {
|
|
|
5012
5012
|
execution_guardrails?: {
|
|
5013
5013
|
[key: string]: unknown;
|
|
5014
5014
|
};
|
|
5015
|
+
/**
|
|
5016
|
+
* @description When true, transaction/sign requests must arrive via a TEE host (Pro+ only)
|
|
5017
|
+
* @default false
|
|
5018
|
+
*/
|
|
5019
|
+
intents_require_tee: boolean;
|
|
5020
|
+
/**
|
|
5021
|
+
* @description When true, execute requests must arrive via TEE and all direct secret reads are blocked (Pro+ only)
|
|
5022
|
+
* @default false
|
|
5023
|
+
*/
|
|
5024
|
+
execution_require_tee: boolean;
|
|
5015
5025
|
/** @description Token contract/mint addresses this agent may interact with. Empty = unrestricted. */
|
|
5016
5026
|
tx_token_allowlist?: string[];
|
|
5017
5027
|
/**
|
|
@@ -5069,6 +5079,10 @@ export interface components {
|
|
|
5069
5079
|
execution_guardrails?: {
|
|
5070
5080
|
[key: string]: unknown;
|
|
5071
5081
|
};
|
|
5082
|
+
/** @description When true, transaction/sign requests must arrive via a TEE host (Pro+ only) */
|
|
5083
|
+
intents_require_tee?: boolean;
|
|
5084
|
+
/** @description When true, execute requests must arrive via TEE and all direct secret reads are blocked (Pro+ only) */
|
|
5085
|
+
execution_require_tee?: boolean;
|
|
5072
5086
|
/**
|
|
5073
5087
|
* @description Enable OIDC federation (RFC 8693 token-exchange) for this agent.
|
|
5074
5088
|
* When true, the agent may call POST /v1/auth/federated-token to mint
|
|
@@ -5164,6 +5178,10 @@ export interface components {
|
|
|
5164
5178
|
execution_guardrails?: {
|
|
5165
5179
|
[key: string]: unknown;
|
|
5166
5180
|
};
|
|
5181
|
+
/** @description When true, transaction/sign requests must arrive via a TEE host (Pro+ only) */
|
|
5182
|
+
intents_require_tee?: boolean;
|
|
5183
|
+
/** @description When true, execute requests must arrive via TEE and all direct secret reads are blocked (Pro+ only) */
|
|
5184
|
+
execution_require_tee?: boolean;
|
|
5167
5185
|
/**
|
|
5168
5186
|
* @description Whether this agent may mint OIDC federation tokens via
|
|
5169
5187
|
* POST /v1/auth/federated-token. False by default.
|