@1claw/sdk 0.43.0 → 0.43.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.
@@ -4872,6 +4872,53 @@ export interface paths {
4872
4872
  patch?: never;
4873
4873
  trace?: never;
4874
4874
  };
4875
+ "/v1/runtimes/{runtimeId}/shell/session": {
4876
+ parameters: {
4877
+ query?: never;
4878
+ header?: never;
4879
+ path?: never;
4880
+ cookie?: never;
4881
+ };
4882
+ get?: never;
4883
+ put?: never;
4884
+ /**
4885
+ * Create interactive shell session
4886
+ * @description Human-only. Creates a short-lived WebSocket session token for the
4887
+ * runtime's PTY terminal. Requires step-up auth via `password`,
4888
+ * `totp_code`, `passkey_credential`, or `reauth_token` (from
4889
+ * `POST /v1/auth/reauth` with purpose `runtime_shell`).
4890
+ * Runtime must have `shell_access_enabled` and be running.
4891
+ * Enabling shell on a running runtime may require stop/start, or
4892
+ * the server may auto-reconcile the sidecar on connect.
4893
+ */
4894
+ post: operations["createShellSession"];
4895
+ delete?: never;
4896
+ options?: never;
4897
+ head?: never;
4898
+ patch?: never;
4899
+ trace?: never;
4900
+ };
4901
+ "/v1/runtimes/{runtimeId}/shell/passkey/begin": {
4902
+ parameters: {
4903
+ query?: never;
4904
+ header?: never;
4905
+ path?: never;
4906
+ cookie?: never;
4907
+ };
4908
+ get?: never;
4909
+ put?: never;
4910
+ /**
4911
+ * Begin shell passkey assertion
4912
+ * @description Human-only. Starts a WebAuthn assertion ceremony for shell
4913
+ * step-up auth (social/Google users without a password).
4914
+ */
4915
+ post: operations["beginShellPasskey"];
4916
+ delete?: never;
4917
+ options?: never;
4918
+ head?: never;
4919
+ patch?: never;
4920
+ trace?: never;
4921
+ };
4875
4922
  "/v1/agents/{agent_id}/memory": {
4876
4923
  parameters: {
4877
4924
  query?: never;
@@ -8292,35 +8339,54 @@ export interface components {
8292
8339
  /** Format: date-time */
8293
8340
  created_at: string;
8294
8341
  };
8342
+ /**
8343
+ * @description Create an automation. `workflow_spec` is required and must be either
8344
+ * a JSON array of steps or `{ "steps": [...] }`. Dashboard `schedule`
8345
+ * trigger_type is accepted and normalized to `cron`. For cron triggers,
8346
+ * `cron_expr` is required.
8347
+ */
8295
8348
  CreateAutomationRequest: {
8296
8349
  name: string;
8297
- description?: string;
8298
8350
  /** Format: uuid */
8299
- agent_id?: string;
8300
- /** @enum {string} */
8301
- trigger_type?: "schedule" | "webhook" | "event" | "manual";
8302
- trigger_config?: {
8351
+ agent_id: string;
8352
+ /**
8353
+ * @description cron | event | webhook | manual (alias schedule → cron)
8354
+ * @enum {string}
8355
+ */
8356
+ trigger_type: "cron" | "event" | "webhook" | "manual" | "schedule";
8357
+ /**
8358
+ * @description Required when trigger_type is cron (or schedule)
8359
+ * @example 0 *\/6 * * *
8360
+ */
8361
+ cron_expr?: string;
8362
+ /**
8363
+ * @default UTC
8364
+ * @example UTC
8365
+ */
8366
+ timezone: string;
8367
+ event_filter?: {
8303
8368
  [key: string]: unknown;
8304
- };
8305
- action_type?: string;
8306
- action_config?: {
8369
+ } | null;
8370
+ /**
8371
+ * @description Workflow steps. Accepts a bare array `[...]` or
8372
+ * `{ "steps": [...] }` (dashboard / preset shape).
8373
+ */
8374
+ workflow_spec: {
8375
+ [key: string]: unknown;
8376
+ }[] | {
8307
8377
  [key: string]: unknown;
8308
8378
  };
8309
- /** @default true */
8310
- is_active: boolean;
8311
8379
  };
8312
8380
  UpdateAutomationRequest: {
8313
8381
  name?: string;
8314
- description?: string;
8315
- /** Format: uuid */
8316
- agent_id?: string;
8317
- /** @enum {string} */
8318
- trigger_type?: "schedule" | "webhook" | "event" | "manual";
8319
- trigger_config?: {
8382
+ cron_expr?: string | null;
8383
+ timezone?: string;
8384
+ event_filter?: {
8320
8385
  [key: string]: unknown;
8321
- };
8322
- action_type?: string;
8323
- action_config?: {
8386
+ } | null;
8387
+ workflow_spec?: {
8388
+ [key: string]: unknown;
8389
+ }[] | {
8324
8390
  [key: string]: unknown;
8325
8391
  };
8326
8392
  is_active?: boolean;
@@ -8328,27 +8394,27 @@ export interface components {
8328
8394
  AutomationResponse: {
8329
8395
  /** Format: uuid */
8330
8396
  id: string;
8331
- name: string;
8332
- description?: string | null;
8333
8397
  /** Format: uuid */
8334
- agent_id?: string | null;
8398
+ agent_id: string;
8399
+ name: string;
8335
8400
  /** @enum {string} */
8336
- trigger_type: "schedule" | "webhook" | "event" | "manual";
8337
- trigger_config?: {
8401
+ trigger_type: "cron" | "event" | "webhook" | "manual";
8402
+ cron_expr?: string | null;
8403
+ timezone: string;
8404
+ event_filter?: {
8338
8405
  [key: string]: unknown;
8339
8406
  } | null;
8340
- action_type?: string | null;
8341
- action_config?: {
8407
+ workflow_spec: {
8342
8408
  [key: string]: unknown;
8343
- } | null;
8409
+ }[] | {
8410
+ [key: string]: unknown;
8411
+ };
8344
8412
  is_active: boolean;
8345
- webhook_url?: string | null;
8346
- schedule_expression?: string | null;
8347
- /** Format: date-time */
8348
- next_run_at?: string | null;
8349
8413
  /** Format: date-time */
8350
8414
  last_run_at?: string | null;
8351
8415
  /** Format: date-time */
8416
+ next_run_at?: string | null;
8417
+ /** Format: date-time */
8352
8418
  created_at: string;
8353
8419
  /** Format: date-time */
8354
8420
  updated_at: string;
@@ -8361,16 +8427,19 @@ export interface components {
8361
8427
  id: string;
8362
8428
  /** Format: uuid */
8363
8429
  automation_id: string;
8430
+ /** Format: uuid */
8431
+ agent_id: string;
8364
8432
  /** @enum {string} */
8365
- status: "pending" | "running" | "completed" | "failed";
8433
+ status: "pending" | "running" | "completed" | "failed" | "denied";
8434
+ step_results?: unknown;
8435
+ error?: string | null;
8436
+ trigger_source?: string | null;
8366
8437
  /** Format: date-time */
8367
8438
  started_at: string;
8368
8439
  /** Format: date-time */
8369
- completed_at?: string | null;
8370
- result?: {
8371
- [key: string]: unknown;
8372
- } | null;
8373
- error?: string | null;
8440
+ finished_at?: string | null;
8441
+ tokens_used: number;
8442
+ cost_cents: number;
8374
8443
  };
8375
8444
  AutomationRunListResponse: {
8376
8445
  runs: components["schemas"]["AutomationRunResponse"][];
@@ -8392,6 +8461,11 @@ export interface components {
8392
8461
  slug?: string;
8393
8462
  /** @enum {string} */
8394
8463
  inbound_auth?: "api_key" | "jwt" | "public";
8464
+ /** @default false */
8465
+ shell_access_enabled: boolean;
8466
+ /** @description Step-up auth policy for shell (e.g. password, passkey, totp) */
8467
+ shell_auth_policy?: string;
8468
+ shell_max_session_minutes?: number;
8395
8469
  };
8396
8470
  UpdateRuntimeRequest: {
8397
8471
  name?: string;
@@ -8407,6 +8481,9 @@ export interface components {
8407
8481
  slug?: string;
8408
8482
  /** @enum {string} */
8409
8483
  inbound_auth?: "api_key" | "jwt" | "public";
8484
+ shell_access_enabled?: boolean;
8485
+ shell_auth_policy?: string;
8486
+ shell_max_session_minutes?: number;
8410
8487
  };
8411
8488
  RuntimeResponse: {
8412
8489
  /** Format: uuid */
@@ -8430,6 +8507,9 @@ export interface components {
8430
8507
  http_port?: number | null;
8431
8508
  /** @enum {string|null} */
8432
8509
  inbound_auth?: "api_key" | "jwt" | "public" | null;
8510
+ shell_access_enabled?: boolean;
8511
+ shell_auth_policy?: string;
8512
+ shell_max_session_minutes?: number;
8433
8513
  monthly_hours_used?: number | null;
8434
8514
  /** Format: date-time */
8435
8515
  created_at: string;
@@ -8444,6 +8524,29 @@ export interface components {
8444
8524
  slug: string;
8445
8525
  reason?: string | null;
8446
8526
  };
8527
+ /**
8528
+ * @description Step-up credentials for an interactive shell session.
8529
+ * Provide one of password, totp_code, passkey_credential, or reauth_token.
8530
+ */
8531
+ ShellSessionRequest: {
8532
+ password?: string;
8533
+ totp_code?: string;
8534
+ passkey_credential?: {
8535
+ [key: string]: unknown;
8536
+ };
8537
+ /** @description Single-use `rat_` token from POST /v1/auth/reauth (purpose runtime_shell) */
8538
+ reauth_token?: string;
8539
+ };
8540
+ ShellSessionResponse: {
8541
+ session_token: string;
8542
+ /** @description WebSocket URL for the PTY terminal */
8543
+ ws_url: string;
8544
+ /** Format: int64 */
8545
+ expires_in: number;
8546
+ /** Format: uuid */
8547
+ runtime_id: string;
8548
+ max_session_minutes: number;
8549
+ };
8447
8550
  MemoryEntry: {
8448
8551
  /** Format: uuid */
8449
8552
  id: string;
@@ -15128,6 +15231,63 @@ export interface operations {
15128
15231
  401: components["responses"]["Unauthorized"];
15129
15232
  };
15130
15233
  };
15234
+ createShellSession: {
15235
+ parameters: {
15236
+ query?: never;
15237
+ header?: never;
15238
+ path: {
15239
+ runtimeId: string;
15240
+ };
15241
+ cookie?: never;
15242
+ };
15243
+ requestBody: {
15244
+ content: {
15245
+ "application/json": components["schemas"]["ShellSessionRequest"];
15246
+ };
15247
+ };
15248
+ responses: {
15249
+ /** @description Shell session created */
15250
+ 200: {
15251
+ headers: {
15252
+ [name: string]: unknown;
15253
+ };
15254
+ content: {
15255
+ "application/json": components["schemas"]["ShellSessionResponse"];
15256
+ };
15257
+ };
15258
+ 400: components["responses"]["BadRequest"];
15259
+ 401: components["responses"]["Unauthorized"];
15260
+ 403: components["responses"]["Forbidden"];
15261
+ 404: components["responses"]["NotFound"];
15262
+ };
15263
+ };
15264
+ beginShellPasskey: {
15265
+ parameters: {
15266
+ query?: never;
15267
+ header?: never;
15268
+ path: {
15269
+ runtimeId: string;
15270
+ };
15271
+ cookie?: never;
15272
+ };
15273
+ requestBody?: never;
15274
+ responses: {
15275
+ /** @description Passkey challenge for shell session */
15276
+ 200: {
15277
+ headers: {
15278
+ [name: string]: unknown;
15279
+ };
15280
+ content: {
15281
+ "application/json": {
15282
+ [key: string]: unknown;
15283
+ };
15284
+ };
15285
+ };
15286
+ 401: components["responses"]["Unauthorized"];
15287
+ 403: components["responses"]["Forbidden"];
15288
+ 404: components["responses"]["NotFound"];
15289
+ };
15290
+ };
15131
15291
  listMemoryNamespaces: {
15132
15292
  parameters: {
15133
15293
  query?: never;