@1claw/sdk 0.24.0 → 0.25.0

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 CHANGED
@@ -79,7 +79,7 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
79
79
  | `client.vault` | `create`, `get`, `list`, `delete`, `enableMpc`, `disableMpc` |
80
80
  | `client.secrets` | `set`, `get`, `delete`, `list`, `rotate` |
81
81
  | `client.access` | `grantHuman`, `grantAgent`, `update`, `revoke`, `listGrants` |
82
- | `client.agents` | `enroll` (also `AgentsResource.enroll(baseUrl, …)` static), `create`, `getSelf`, `get`, `list`, `update`, `delete`, `rotateKey`, `rotateIdentityKeys`, `submitTransaction`, `signTransaction`, `getTransaction`, `listTransactions`, `simulateTransaction`, `simulateBundle`, `sign` |
82
+ | `client.agents` | `enroll` (also `AgentsResource.enroll(baseUrl, …)` static), `create`, `getSelf`, `get`, `list`, `update`, `delete`, `rotateKey`, `submitTransaction`, `signTransaction`, `getTransaction`, `listTransactions`, `simulateTransaction`, `simulateBundle`, `sign` |
83
83
  | `client.chains` | `list`, `get`, `adminList`, `create`, `update`, `delete` |
84
84
  | `client.sharing` | `create`, `access`, `listOutbound`, `listInbound`, `accept`, `decline`, `revoke` |
85
85
  | `client.approvals` | `request`, `list`, `approve`, `deny`, `check`, `subscribe` |
@@ -91,7 +91,9 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
91
91
  | `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess` |
92
92
  | `client.treasuryWallets` | `generateWallets`, `listWallets`, `getWallet`, `exportWallet`, `rotateWallet`, `deactivateWallet` |
93
93
  | `client.signingKeys` | `create`, `list`, `rotate`, `deactivate`, `export` |
94
- | `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `createTemplate`, `listTemplates`, `upsertUser`, `bootstrapUser`, `listConnectedApps` |
94
+ | `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `createTemplate`, `listTemplates`, `upsertUser`, `listUsers`, `bootstrapUser`, `claimPreview`, `claimRedeem`, `listConnectedApps`, `disconnectApp` |
95
+
96
+ **Platform bootstrap response:** `bootstrapUser()` returns a `summary` object containing `agent_api_key` (one-time, not retrievable later) and `signing_keys[]` (with chain, address, and public_key for each provisioned key).
95
97
  | `client.x402` | `getPaymentRequirement`, `pay`, `verifyReceipt`, `withPayment` |
96
98
 
97
99
  **Agent create response:** `agents.create()` returns `{ agent: AgentResponse, api_key?: string }`. The `api_key` is only present for `auth_method: "api_key"` and is shown once — use `data.agent.id` and `data.api_key` from the response.
@@ -148,7 +150,7 @@ Toggle `intents_api_enabled` when creating or updating an agent:
148
150
  const { data } = await client.agents.create({
149
151
  name: "defi-bot",
150
152
  auth_method: "api_key", // "api_key" | "mtls" | "oidc_client_credentials"
151
- scopes: ["vault:read", "tx:sign"],
153
+ scopes: ["keys/*", "api-keys/*"],
152
154
  intents_api_enabled: true,
153
155
  });
154
156
  // data.api_key is only returned for auth_method: "api_key"
@@ -249,7 +251,7 @@ const oidcJwt = tokenRes.data?.access_token; // RS256-signed; ~15 min default TT
249
251
 
250
252
  The acting agent must have `federation_enabled: true` and the `audience` must be on its `federation_audiences` allowlist (set via dashboard or `client.agents.update`). Every active KMS key version is published in JWKS, so verifiers reject unknown `kid`s automatically when 1claw rotates keys.
251
253
 
252
- End-to-end Anthropic WIF demo: [`examples/anthropic-wif`](https://github.com/1clawAI/1claw-examples/tree/main/anthropic-wif).
254
+ End-to-end Anthropic WIF demo: see the [`examples/anthropic-wif`](https://github.com/1clawAI/1claw-examples/tree/main/anthropic-wif) repo and [`internal-docs/runbooks/oidc-federation.md`](../../internal-docs/runbooks/oidc-federation.md).
253
255
 
254
256
  ## Customer-Managed Encryption Keys (CMEK)
255
257
 
@@ -16,6 +16,8 @@ import { TreasuryResource } from "../resources/treasury";
16
16
  import { SigningKeysResource } from "../resources/signing-keys";
17
17
  import { TreasuryWalletsResource } from "../resources/treasury-wallets";
18
18
  import { PlatformResource } from "../resources/platform";
19
+ import { DevicesResource } from "../resources/devices";
20
+ import { PasskeysResource } from "../resources/passkeys";
19
21
  /**
20
22
  * The main 1Claw SDK client. All API resources are exposed as
21
23
  * namespaced properties for discoverability and tree-shaking.
@@ -73,6 +75,10 @@ export declare class OneclawClient {
73
75
  readonly treasuryWallets: TreasuryWalletsResource;
74
76
  /** Platform API — build multi-tenant apps on top of 1Claw. */
75
77
  readonly platform: PlatformResource;
78
+ /** Mobile device attestation — register devices, step-up auth. */
79
+ readonly devices: DevicesResource;
80
+ /** WebAuthn passkeys — register and assert FIDO2 credentials. */
81
+ readonly passkeys: PasskeysResource;
76
82
  constructor(config: OneclawClientConfig);
77
83
  private autoAuthenticateUserKey;
78
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;A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E,QAAQ,CAAC,eAAe,EAAE,uBAAuB,CAAC;IAClD,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAExB,MAAM,EAAE,mBAAmB;IAgCvC,OAAO,CAAC,uBAAuB;CAclC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,aAAa,CAEvE"}
@@ -16,6 +16,8 @@ import { TreasuryResource } from "../resources/treasury";
16
16
  import { SigningKeysResource } from "../resources/signing-keys";
17
17
  import { TreasuryWalletsResource } from "../resources/treasury-wallets";
18
18
  import { PlatformResource } from "../resources/platform";
19
+ import { DevicesResource } from "../resources/devices";
20
+ import { PasskeysResource } from "../resources/passkeys";
19
21
  /**
20
22
  * The main 1Claw SDK client. All API resources are exposed as
21
23
  * namespaced properties for discoverability and tree-shaking.
@@ -64,6 +66,8 @@ export class OneclawClient {
64
66
  this.signingKeys = new SigningKeysResource(this.http);
65
67
  this.treasuryWallets = new TreasuryWalletsResource(this.http);
66
68
  this.platform = new PlatformResource(this.http);
69
+ this.devices = new DevicesResource(this.http);
70
+ this.passkeys = new PasskeysResource(this.http);
67
71
  }
68
72
  autoAuthenticateUserKey(config) {
69
73
  const authPromise = this.http
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,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,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAEO,uBAAuB,CAAC,MAA2B;QACvD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI;aACxB,OAAO,CAA2B,MAAM,EAAE,wBAAwB,EAAE;YACjE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;SACnC,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACV,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY;gBACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEP,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE;YACnB,mDAAmD;QACvD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CAAC,MAA2B;IACpD,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
@@ -2779,6 +2779,104 @@ export interface paths {
2779
2779
  patch?: never;
2780
2780
  trace?: never;
2781
2781
  };
2782
+ "/v1/platform/claim/{token}": {
2783
+ parameters: {
2784
+ query?: never;
2785
+ header?: never;
2786
+ path?: never;
2787
+ cookie?: never;
2788
+ };
2789
+ /**
2790
+ * Preview a claim token
2791
+ * @description Verify a claim token and preview what was provisioned (app name, vaults, agents, policies).
2792
+ * Public endpoint — the token itself is the authentication.
2793
+ */
2794
+ get: {
2795
+ parameters: {
2796
+ query?: never;
2797
+ header?: never;
2798
+ path: {
2799
+ /** @description The `ct_` prefixed claim token from the bootstrap response */
2800
+ token: string;
2801
+ };
2802
+ cookie?: never;
2803
+ };
2804
+ requestBody?: never;
2805
+ responses: {
2806
+ /** @description Claim preview */
2807
+ 200: {
2808
+ headers: {
2809
+ [name: string]: unknown;
2810
+ };
2811
+ content: {
2812
+ "application/json": components["schemas"]["ClaimPreviewResponse"];
2813
+ };
2814
+ };
2815
+ /** @description Invalid or expired claim token */
2816
+ 404: {
2817
+ headers: {
2818
+ [name: string]: unknown;
2819
+ };
2820
+ content?: never;
2821
+ };
2822
+ };
2823
+ };
2824
+ put?: never;
2825
+ /**
2826
+ * Redeem a claim token
2827
+ * @description Redeem a one-time claim token, marking the connection as claimed.
2828
+ * Public endpoint — the token itself is the authentication. Returns 409 if already claimed, 410 if expired.
2829
+ */
2830
+ post: {
2831
+ parameters: {
2832
+ query?: never;
2833
+ header?: never;
2834
+ path: {
2835
+ /** @description The `ct_` prefixed claim token from the bootstrap response */
2836
+ token: string;
2837
+ };
2838
+ cookie?: never;
2839
+ };
2840
+ requestBody?: never;
2841
+ responses: {
2842
+ /** @description Claim redeemed */
2843
+ 200: {
2844
+ headers: {
2845
+ [name: string]: unknown;
2846
+ };
2847
+ content: {
2848
+ "application/json": components["schemas"]["ClaimRedeemResponse"];
2849
+ };
2850
+ };
2851
+ /** @description Invalid claim token */
2852
+ 404: {
2853
+ headers: {
2854
+ [name: string]: unknown;
2855
+ };
2856
+ content?: never;
2857
+ };
2858
+ /** @description Claim token already used */
2859
+ 409: {
2860
+ headers: {
2861
+ [name: string]: unknown;
2862
+ };
2863
+ content?: never;
2864
+ };
2865
+ /** @description Claim token has expired */
2866
+ 410: {
2867
+ headers: {
2868
+ [name: string]: unknown;
2869
+ };
2870
+ content?: never;
2871
+ };
2872
+ };
2873
+ };
2874
+ delete?: never;
2875
+ options?: never;
2876
+ head?: never;
2877
+ patch?: never;
2878
+ trace?: never;
2879
+ };
2782
2880
  }
2783
2881
  export type webhooks = Record<string, never>;
2784
2882
  export interface components {
@@ -4663,6 +4761,17 @@ export interface components {
4663
4761
  /** Format: uuid */
4664
4762
  agent_id?: string | null;
4665
4763
  policy_ids?: string[];
4764
+ /** @description Chains with provisioned signing keys */
4765
+ signing_key_chains?: string[];
4766
+ /** @description One-time agent API key (ocv_ prefix). Store securely — not retrievable later. */
4767
+ agent_api_key?: string | null;
4768
+ /** @description Provisioned signing key details (chain, address, public key) */
4769
+ signing_keys?: {
4770
+ chain?: string;
4771
+ curve?: string;
4772
+ public_key?: string;
4773
+ address?: string;
4774
+ }[];
4666
4775
  };
4667
4776
  };
4668
4777
  ConnectedAppResponse: {
@@ -4676,6 +4785,28 @@ export interface components {
4676
4785
  /** Format: date-time */
4677
4786
  created_at?: string;
4678
4787
  };
4788
+ ClaimPreviewResponse: {
4789
+ app_name?: string;
4790
+ app_slug?: string;
4791
+ app_logo_url?: string | null;
4792
+ auth_mode?: string;
4793
+ vault_ids?: string[];
4794
+ agent_ids?: string[];
4795
+ policy_count?: number;
4796
+ status?: string;
4797
+ already_claimed?: boolean;
4798
+ expired?: boolean;
4799
+ return_to?: string | null;
4800
+ };
4801
+ ClaimRedeemResponse: {
4802
+ status?: string;
4803
+ /** Format: uuid */
4804
+ connection_id?: string;
4805
+ vault_ids?: string[];
4806
+ agent_ids?: string[];
4807
+ return_to?: string | null;
4808
+ dashboard_url?: string;
4809
+ };
4679
4810
  };
4680
4811
  responses: {
4681
4812
  /** @description Invalid request */