@1claw/sdk 0.59.6 → 0.59.8

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.
@@ -50,7 +50,7 @@ import { EnvVarsResource } from "../resources/env-vars";
50
50
  * import { createClient } from "@1claw/sdk";
51
51
  *
52
52
  * const client = createClient({
53
- * baseUrl: "https://api.1claw.xyz",
53
+ * baseUrl: "https://api.1claw.co",
54
54
  * apiKey: "ocv_...",
55
55
  * });
56
56
  *
@@ -158,20 +158,20 @@ export declare class OneclawClient {
158
158
  * ```ts
159
159
  * // User with API key
160
160
  * const client = createClient({
161
- * baseUrl: "https://api.1claw.xyz",
161
+ * baseUrl: "https://api.1claw.co",
162
162
  * apiKey: "ocv_...",
163
163
  * });
164
164
  *
165
165
  * // Agent with API key
166
166
  * const agent = createClient({
167
- * baseUrl: "https://api.1claw.xyz",
167
+ * baseUrl: "https://api.1claw.co",
168
168
  * apiKey: "ocv_...",
169
169
  * agentId: "agent-uuid",
170
170
  * });
171
171
  *
172
172
  * // Pre-authenticated with JWT
173
173
  * const authed = createClient({
174
- * baseUrl: "https://api.1claw.xyz",
174
+ * baseUrl: "https://api.1claw.co",
175
175
  * token: "eyJ...",
176
176
  * });
177
177
  * ```
@@ -49,7 +49,7 @@ import { EnvVarsResource } from "../resources/env-vars.js";
49
49
  * import { createClient } from "@1claw/sdk";
50
50
  *
51
51
  * const client = createClient({
52
- * baseUrl: "https://api.1claw.xyz",
52
+ * baseUrl: "https://api.1claw.co",
53
53
  * apiKey: "ocv_...",
54
54
  * });
55
55
  *
@@ -138,20 +138,20 @@ export class OneclawClient {
138
138
  * ```ts
139
139
  * // User with API key
140
140
  * const client = createClient({
141
- * baseUrl: "https://api.1claw.xyz",
141
+ * baseUrl: "https://api.1claw.co",
142
142
  * apiKey: "ocv_...",
143
143
  * });
144
144
  *
145
145
  * // Agent with API key
146
146
  * const agent = createClient({
147
- * baseUrl: "https://api.1claw.xyz",
147
+ * baseUrl: "https://api.1claw.co",
148
148
  * apiKey: "ocv_...",
149
149
  * agentId: "agent-uuid",
150
150
  * });
151
151
  *
152
152
  * // Pre-authenticated with JWT
153
153
  * const authed = createClient({
154
- * baseUrl: "https://api.1claw.xyz",
154
+ * baseUrl: "https://api.1claw.co",
155
155
  * token: "eyJ...",
156
156
  * });
157
157
  * ```
@@ -2391,7 +2391,15 @@ export interface paths {
2391
2391
  put?: never;
2392
2392
  /**
2393
2393
  * Provision MCP onboarding bundle
2394
- * @description Creates welcome vault + sample secret, MCP agent, and default ** policy. Returns one-time API key and stdio MCP config.
2394
+ * @description Creates welcome vault + sample secret, MCP agent, and a policy on the
2395
+ * vault. Returns one-time API key and stdio MCP config.
2396
+ *
2397
+ * The grant is `**` only when the welcome vault is newly created. If an
2398
+ * org already has a vault named `default`, it is reused and the agent is
2399
+ * granted `examples/**` instead — enough to read the sample it is asked to
2400
+ * verify with, without exposing secrets already kept there.
2401
+ *
2402
+ * Subject to `agent.create` control-plane consensus; see `approval_id`.
2395
2403
  */
2396
2404
  post: operations["provisionOnboarding"];
2397
2405
  delete?: never;
@@ -5963,9 +5971,12 @@ export interface paths {
5963
5971
  put?: never;
5964
5972
  /**
5965
5973
  * Verify email OTP and get JWT
5966
- * @description Verifies the 6-digit code sent to the user's email. If the user does not
5967
- * exist, a new account is created. Optionally auto-provisions treasury wallets
5968
- * for the specified chains. Returns a JWT for subsequent API calls.
5974
+ * @description Verifies the 6-digit code sent to the user's email. Optionally
5975
+ * auto-provisions treasury wallets for the specified chains. Returns a JWT
5976
+ * for subsequent API calls.
5977
+ *
5978
+ * An unrecognized address is rejected unless the request carries
5979
+ * `platform_app_id` or sets `allow_signup`.
5969
5980
  */
5970
5981
  post: operations["verifyEmailOtp"];
5971
5982
  delete?: never;
@@ -9840,8 +9851,15 @@ export interface components {
9840
9851
  transactions: components["schemas"]["SimulateTransactionRequest"][];
9841
9852
  };
9842
9853
  CreateSigningKeyRequest: {
9843
- /** @enum {string} */
9844
- chain: "ethereum" | "bitcoin" | "solana" | "xrp" | "cardano" | "tron";
9854
+ /**
9855
+ * @description `midnight` is Preprod-only and requires the midnight-signer
9856
+ * sidecar. Note it can be provisioned but not rotated or
9857
+ * imported: derivation happens in the sidecar, so there is no
9858
+ * local keygen and no raw private key to import. Both of
9859
+ * those endpoints refuse it before consuming an approval.
9860
+ * @enum {string}
9861
+ */
9862
+ chain: "ethereum" | "bitcoin" | "solana" | "xrp" | "cardano" | "tron" | "midnight";
9845
9863
  };
9846
9864
  SigningKeyResponse: {
9847
9865
  /** Format: uuid */
@@ -10266,6 +10284,14 @@ export interface components {
10266
10284
  OnboardingProvisionRequest: {
10267
10285
  agent_name?: string;
10268
10286
  client?: string;
10287
+ /**
10288
+ * Format: uuid
10289
+ * @description Approval satisfying an `agent.create` control-plane consensus policy,
10290
+ * if the org has one. Same field and meaning as on `POST /v1/agents`:
10291
+ * the first call returns 202 with the approval to collect, and the
10292
+ * retry passes its id here.
10293
+ */
10294
+ approval_id?: string;
10269
10295
  };
10270
10296
  OnboardingProvisionResponse: {
10271
10297
  /** Format: uuid */
@@ -11204,6 +11230,13 @@ export interface components {
11204
11230
  * @default false
11205
11231
  */
11206
11232
  create_sub_org: boolean;
11233
+ /**
11234
+ * Format: uuid
11235
+ * @description Required only when calling as a user (the dashboard wizard).
11236
+ * A `plt_` key carries its app in the credential; a user does not,
11237
+ * so the app is named here and checked against the caller's org.
11238
+ */
11239
+ app_id?: string;
11207
11240
  };
11208
11241
  PlatformUserResponse: {
11209
11242
  /** Format: uuid */
@@ -14694,6 +14727,14 @@ export interface operations {
14694
14727
  require_passkey_for_vaults?: boolean;
14695
14728
  require_passkey_for_mfa?: boolean;
14696
14729
  passkey_count?: number;
14730
+ /**
14731
+ * @description True while this account carries a passkey requirement
14732
+ * that the 1claw.xyz → 1claw.co move cleared on its
14733
+ * behalf. The two flags above read false, but that was
14734
+ * not the user's choice: registering a passkey on the
14735
+ * canonical domain restores them.
14736
+ */
14737
+ passkey_requirements_downgraded?: boolean;
14697
14738
  };
14698
14739
  };
14699
14740
  };
@@ -21701,6 +21742,16 @@ export interface operations {
21701
21742
  platform_app_id?: string;
21702
21743
  /** @description Chains to auto-generate wallets for (e.g. ["ethereum", "base"]) */
21703
21744
  auto_provision_chains?: string[];
21745
+ /**
21746
+ * @description Opt in to creating an account when the address is not
21747
+ * recognized. Without it an unknown address is rejected
21748
+ * rather than silently given a new user and org — a valid
21749
+ * code proves control of an inbox, not consent to sign up.
21750
+ * Not required when `platform_app_id` is present: creating
21751
+ * the end user on first login is the embedded-wallet flow.
21752
+ * @default false
21753
+ */
21754
+ allow_signup?: boolean;
21704
21755
  };
21705
21756
  };
21706
21757
  };