@deepraxis/sdk 0.2.0-dev.bc5a12b → 0.2.0-dev.bf85cdc

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.
@@ -207,7 +207,7 @@ export const operations = [
207
207
  "type": "array",
208
208
  "itemType": "string",
209
209
  "required": false,
210
- "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
210
+ "description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
211
211
  },
212
212
  {
213
213
  "name": "computers",
@@ -215,6 +215,12 @@ export const operations = [
215
215
  "required": false,
216
216
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
217
217
  },
218
+ {
219
+ "name": "browser",
220
+ "type": "object",
221
+ "required": false,
222
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
223
+ },
218
224
  {
219
225
  "name": "preset",
220
226
  "type": "string",
@@ -435,7 +441,7 @@ export const operations = [
435
441
  "type": "array",
436
442
  "itemType": "string",
437
443
  "required": false,
438
- "description": "Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it."
444
+ "description": "Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it."
439
445
  },
440
446
  {
441
447
  "name": "computers",
@@ -443,6 +449,12 @@ export const operations = [
443
449
  "required": false,
444
450
  "description": "General agents only: the agent's computers, configured like its models. default is the template its Computer starts on; allowed lists the computers resize may switch to, and a resize to anything else is refused with COMPUTER_NOT_CONFIGURED. Omit on create for {default: base, allowed: Small base-small, Base base, Large base-large}; on update, omit to keep it, send an object to replace it as a whole. Service and assume agents return 400 computers is for general agents; service agents use environment_id. /agent/v1 only."
445
451
  },
452
+ {
453
+ "name": "browser",
454
+ "type": "object",
455
+ "required": false,
456
+ "description": "ADR-205: which browser the agent drives. {byob: byb_…} names one of your organization's paired browsers (browser.byob.browsers.list), which the agent then drives through connect() instead of a cloud browser; null or absent is the cloud browser. The browser must belong to your organization (otherwise 400) and must grant this agent before a session can open it. Omit on update to keep it, send an object to replace it, or null to go back to the cloud browser. /agent/v1 only."
457
+ },
446
458
  {
447
459
  "name": "preset",
448
460
  "type": "string",
@@ -776,6 +788,42 @@ export const operations = [
776
788
  ],
777
789
  "query": []
778
790
  },
791
+ {
792
+ "resource": "agent.agents.devices.localSessions",
793
+ "method": "list",
794
+ "summary": "List the Claude Code sessions already on a device",
795
+ "description": "List the Claude Code sessions that already exist on a person's paired machine for a directory bound to this BYOA agent (started in a terminal, not on the platform), newest first, so one can be continued from the platform: pick an id and create a session with runtime.resume_session_id set to it (runtime.type device, the same device_id and cwd). Only the person who paired the device may ask. cwd is required and must be the directory exactly as the device registered it and bound it to this agent. Pass next_cursor back as cursor for the next page; null means the last page.",
796
+ "http": "GET",
797
+ "path": "/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions",
798
+ "streaming": "no",
799
+ "pagination": true,
800
+ "pathParams": [
801
+ {
802
+ "name": "agent_id",
803
+ "sdkName": "agent_id",
804
+ "description": "The BYOA agent: its agent_… id, eight character identity number or handle, from agents.list; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
805
+ },
806
+ {
807
+ "name": "device_id",
808
+ "sdkName": "device_id",
809
+ "description": "The paired desktop device (byd_ and 26 hex characters) whose sessions to list; you must be the person who paired it."
810
+ }
811
+ ],
812
+ "query": [
813
+ {
814
+ "name": "cwd",
815
+ "type": "string",
816
+ "required": true,
817
+ "description": "The absolute directory on the device, exactly as the device registered it and bound it to this agent."
818
+ },
819
+ {
820
+ "name": "cursor",
821
+ "type": "string",
822
+ "required": false,
823
+ "description": "The next_cursor of the previous page; leave it out for the first page."
824
+ }
825
+ ]
826
+ },
779
827
  {
780
828
  "resource": "agent.agents",
781
829
  "method": "retrieveEmbedPolicy",
@@ -1216,7 +1264,7 @@ export const operations = [
1216
1264
  "resource": "agent.computers",
1217
1265
  "method": "update",
1218
1266
  "summary": "Update Computer",
1219
- "description": "Rename a computer.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1267
+ "description": "Rename a computer, declare its environment, or drop that declaration without touching the machine.\n\nPraxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.",
1220
1268
  "http": "POST",
1221
1269
  "path": "/agent/v1/computers/{computer_id}",
1222
1270
  "streaming": "no",
@@ -1235,8 +1283,14 @@ export const operations = [
1235
1283
  {
1236
1284
  "name": "name",
1237
1285
  "type": "string",
1238
- "required": true,
1239
- "description": "Name of the entry or object."
1286
+ "required": false,
1287
+ "description": "New display name, 1 to 255 characters after trimming. Omit to keep the current name."
1288
+ },
1289
+ {
1290
+ "name": "environment_id",
1291
+ "type": "string",
1292
+ "required": false,
1293
+ "description": "Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once."
1240
1294
  }
1241
1295
  ]
1242
1296
  }
@@ -1292,7 +1346,7 @@ export const operations = [
1292
1346
  "resource": "agent.computers",
1293
1347
  "method": "connect",
1294
1348
  "summary": "Connect computer",
1295
- "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus the machine tier the computer is on now (light or heavy) and the lease that keeps it there (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the full machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {} to request light: the lightweight shell, or the heavy instance while it is running. Send {\"need\":\"heavy\"} to request full Linux for interactive programs; files are synchronized before the heavy connection is returned with tier heavy. Renew the lease while using the connection and release it with DELETE when finished.",
1349
+ "description": "Resume the computer and issue a sandbox connection.\n\nOwn-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.\n\nConnect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.",
1296
1350
  "http": "POST",
1297
1351
  "path": "/agent/v1/computers/{computer_id}/connect",
1298
1352
  "streaming": "no",
@@ -1316,7 +1370,7 @@ export const operations = [
1316
1370
  "heavy"
1317
1371
  ],
1318
1372
  "required": false,
1319
- "description": "Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds."
1373
+ "description": "Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it."
1320
1374
  }
1321
1375
  ]
1322
1376
  }
@@ -1683,7 +1737,7 @@ export const operations = [
1683
1737
  "resource": "agent.deployments",
1684
1738
  "method": "create",
1685
1739
  "summary": "Create deployment",
1686
- "description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1740
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1687
1741
  "http": "POST",
1688
1742
  "path": "/agent/v1/deployments",
1689
1743
  "streaming": "no",
@@ -2247,7 +2301,7 @@ export const operations = [
2247
2301
  "resource": "agent.sessions",
2248
2302
  "method": "create",
2249
2303
  "summary": "Create session",
2250
- "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
2304
+ "description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired \"light\" returns 400 naming the two forms that work: \"node22\", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
2251
2305
  "http": "POST",
2252
2306
  "path": "/agent/v1/sessions",
2253
2307
  "streaming": "no",
@@ -2391,7 +2445,7 @@ export const operations = [
2391
2445
  "resource": "agent.sessions",
2392
2446
  "method": "update",
2393
2447
  "summary": "Update session",
2394
- "description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
2448
+ "description": "Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.",
2395
2449
  "http": "POST",
2396
2450
  "path": "/agent/v1/sessions/{session_id}",
2397
2451
  "streaming": "no",
@@ -2430,7 +2484,7 @@ export const operations = [
2430
2484
  "type": "array",
2431
2485
  "itemType": "string",
2432
2486
  "required": false,
2433
- "description": "Vault IDs (`vlt_*`) to attach to the session. Not yet supported;\nrequests setting this field are rejected. Reserved for future use."
2487
+ "description": "The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes."
2434
2488
  },
2435
2489
  {
2436
2490
  "name": "model",
@@ -4609,13 +4663,13 @@ export const operations = [
4609
4663
  "summary": "Get an Action with its current input and output JSON Schemas",
4610
4664
  "description": "Read the Action and its full current implementation, with input and output JSON Schemas at current_revision.input_schema and current_revision.output_schema. To read a built-in Action, use ns=praxis and name=<bare name>, for example name=ocr; invoke it in a script with call(\"ocr\", input) or in a workflow step with call: ocr and with:. Input that breaks the contract returns INPUT_INVALID, with the fields in errors[]. The response ETag is the current revision ID for conditional updates.",
4611
4665
  "http": "GET",
4612
- "path": "/automation/v1/actions/{ns}/{name}",
4666
+ "path": "/automation/v1/actions/{namespace}/{name}",
4613
4667
  "streaming": "no",
4614
4668
  "pagination": false,
4615
4669
  "pathParams": [
4616
4670
  {
4617
- "name": "ns",
4618
- "sdkName": "ns",
4671
+ "name": "namespace",
4672
+ "sdkName": "namespace",
4619
4673
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4620
4674
  },
4621
4675
  {
@@ -4632,13 +4686,13 @@ export const operations = [
4632
4686
  "summary": "Update an action",
4633
4687
  "description": "Update after checking compatibility against the current and five recent revisions. Widening inputs and narrowing outputs are compatible, including length, item count, property count, type (integer/number), and multipleOf (the new input factor divides the old one; the reverse holds for outputs). dry_run=true returns only CompatResult and may omit If-Match; a supplied header is still checked, and * matches any existing representation. Normal updates require If-Match and return ActionDef with ETag; previews return no ETag. Omitted optional fields retain their existing values only for description and labels; when constructing a new revision, errors defaults to [], omitted annotations keys to false, timeout_ms to 300000, and message to null. Incompatible normal updates return 422 SCHEMA_INCOMPATIBLE with issues; unchanged contents retain the existing revision.",
4634
4688
  "http": "PUT",
4635
- "path": "/automation/v1/actions/{ns}/{name}",
4689
+ "path": "/automation/v1/actions/{namespace}/{name}",
4636
4690
  "streaming": "no",
4637
4691
  "pagination": false,
4638
4692
  "pathParams": [
4639
4693
  {
4640
- "name": "ns",
4641
- "sdkName": "ns",
4694
+ "name": "namespace",
4695
+ "sdkName": "namespace",
4642
4696
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4643
4697
  },
4644
4698
  {
@@ -4730,13 +4784,13 @@ export const operations = [
4730
4784
  "summary": "Archive an action",
4731
4785
  "description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
4732
4786
  "http": "POST",
4733
- "path": "/automation/v1/actions/{ns}/{name}/archive",
4787
+ "path": "/automation/v1/actions/{namespace}/{name}/archive",
4734
4788
  "streaming": "no",
4735
4789
  "pagination": false,
4736
4790
  "pathParams": [
4737
4791
  {
4738
- "name": "ns",
4739
- "sdkName": "ns",
4792
+ "name": "namespace",
4793
+ "sdkName": "namespace",
4740
4794
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4741
4795
  },
4742
4796
  {
@@ -4757,13 +4811,13 @@ export const operations = [
4757
4811
  "summary": "List action dependents",
4758
4812
  "description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
4759
4813
  "http": "GET",
4760
- "path": "/automation/v1/actions/{ns}/{name}/dependents",
4814
+ "path": "/automation/v1/actions/{namespace}/{name}/dependents",
4761
4815
  "streaming": "no",
4762
4816
  "pagination": true,
4763
4817
  "pathParams": [
4764
4818
  {
4765
- "name": "ns",
4766
- "sdkName": "ns",
4819
+ "name": "namespace",
4820
+ "sdkName": "namespace",
4767
4821
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4768
4822
  },
4769
4823
  {
@@ -4793,13 +4847,13 @@ export const operations = [
4793
4847
  "summary": "List action invocations",
4794
4848
  "description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
4795
4849
  "http": "GET",
4796
- "path": "/automation/v1/actions/{ns}/{name}/invocations",
4850
+ "path": "/automation/v1/actions/{namespace}/{name}/invocations",
4797
4851
  "streaming": "no",
4798
4852
  "pagination": true,
4799
4853
  "pathParams": [
4800
4854
  {
4801
- "name": "ns",
4802
- "sdkName": "ns",
4855
+ "name": "namespace",
4856
+ "sdkName": "namespace",
4803
4857
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4804
4858
  },
4805
4859
  {
@@ -4870,13 +4924,13 @@ export const operations = [
4870
4924
  "summary": "Restore an action",
4871
4925
  "description": "Restore an archived action to the default list. Its current revision is preserved.",
4872
4926
  "http": "POST",
4873
- "path": "/automation/v1/actions/{ns}/{name}/restore",
4927
+ "path": "/automation/v1/actions/{namespace}/{name}/restore",
4874
4928
  "streaming": "no",
4875
4929
  "pagination": false,
4876
4930
  "pathParams": [
4877
4931
  {
4878
- "name": "ns",
4879
- "sdkName": "ns",
4932
+ "name": "namespace",
4933
+ "sdkName": "namespace",
4880
4934
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4881
4935
  },
4882
4936
  {
@@ -4897,13 +4951,13 @@ export const operations = [
4897
4951
  "summary": "List action revisions",
4898
4952
  "description": "List revisions newest first with rollback eligibility. Results include the current marker and compatibility issues. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
4899
4953
  "http": "GET",
4900
- "path": "/automation/v1/actions/{ns}/{name}/revisions",
4954
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions",
4901
4955
  "streaming": "no",
4902
4956
  "pagination": true,
4903
4957
  "pathParams": [
4904
4958
  {
4905
- "name": "ns",
4906
- "sdkName": "ns",
4959
+ "name": "namespace",
4960
+ "sdkName": "namespace",
4907
4961
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4908
4962
  },
4909
4963
  {
@@ -4942,13 +4996,13 @@ export const operations = [
4942
4996
  "summary": "Get an action revision",
4943
4997
  "description": "Read a specific revision with its full implementation and rollback compatibility result. A missing revision returns VERSION_NOT_FOUND. Details always return full source.",
4944
4998
  "http": "GET",
4945
- "path": "/automation/v1/actions/{ns}/{name}/revisions/{revision}",
4999
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
4946
5000
  "streaming": "no",
4947
5001
  "pagination": false,
4948
5002
  "pathParams": [
4949
5003
  {
4950
- "name": "ns",
4951
- "sdkName": "ns",
5004
+ "name": "namespace",
5005
+ "sdkName": "namespace",
4952
5006
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4953
5007
  },
4954
5008
  {
@@ -4970,13 +5024,13 @@ export const operations = [
4970
5024
  "summary": "Roll back an action",
4971
5025
  "description": "Create a compatible new revision from historical contents. Compatibility is checked against the current and five recent historical revisions. The current pointer does not revert to the old ID. Optional If-Match accepts the current revision or *; * matches any existing representation.",
4972
5026
  "http": "POST",
4973
- "path": "/automation/v1/actions/{ns}/{name}/rollback",
5027
+ "path": "/automation/v1/actions/{namespace}/{name}/rollback",
4974
5028
  "streaming": "no",
4975
5029
  "pagination": false,
4976
5030
  "pathParams": [
4977
5031
  {
4978
- "name": "ns",
4979
- "sdkName": "ns",
5032
+ "name": "namespace",
5033
+ "sdkName": "namespace",
4980
5034
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
4981
5035
  },
4982
5036
  {
@@ -5016,7 +5070,7 @@ export const operations = [
5016
5070
  "resource": "automation.hooks",
5017
5071
  "method": "send",
5018
5072
  "summary": "Receive a webhook",
5019
- "description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
5073
+ "description": "No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{trigger_id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.",
5020
5074
  "http": "POST",
5021
5075
  "path": "/automation/v1/hooks/{trigger_id}/{token}",
5022
5076
  "streaming": "no",
@@ -5107,13 +5161,13 @@ export const operations = [
5107
5161
  "summary": "Retrieve a human task",
5108
5162
  "description": "Read one human task - title, Markdown body, context, actions, form, assignees, mode, due time, responses and outcome - so an assignee can choose an action and fill the form. Read-only; the Console approval page /automation/tasks/{id} reads the same resource.",
5109
5163
  "http": "GET",
5110
- "path": "/automation/v1/human-tasks/{id}",
5164
+ "path": "/automation/v1/human-tasks/{task_id}",
5111
5165
  "streaming": "no",
5112
5166
  "pagination": false,
5113
5167
  "pathParams": [
5114
5168
  {
5115
- "name": "id",
5116
- "sdkName": "id",
5169
+ "name": "task_id",
5170
+ "sdkName": "task_id",
5117
5171
  "description": "Human task ID (htask_), from the list or the run's waits."
5118
5172
  }
5119
5173
  ],
@@ -5125,13 +5179,13 @@ export const operations = [
5125
5179
  "summary": "Cancel a human task",
5126
5180
  "description": "Cancel an open human task; only the person who started the run or an organization API key may cancel. The task becomes cancelled and the waiting workflow step raises a runtime error with code HUMAN_TASK_CANCELLED, which try/catch can catch. Open tasks are cancelled automatically when their run ends, so this call is not needed then.",
5127
5181
  "http": "POST",
5128
- "path": "/automation/v1/human-tasks/{id}/cancel",
5182
+ "path": "/automation/v1/human-tasks/{task_id}/cancel",
5129
5183
  "streaming": "no",
5130
5184
  "pagination": false,
5131
5185
  "pathParams": [
5132
5186
  {
5133
- "name": "id",
5134
- "sdkName": "id",
5187
+ "name": "task_id",
5188
+ "sdkName": "task_id",
5135
5189
  "description": "Human task ID (htask_)."
5136
5190
  }
5137
5191
  ],
@@ -5154,13 +5208,13 @@ export const operations = [
5154
5208
  "summary": "Delegate a human task",
5155
5209
  "description": "An assignee who has not responded hands their place to another user (to_user), replacing their entry in assignees.users in place, so sequential order is kept. The new user cannot already be an assignee, nor the initiator unless self-approval is allowed. The task must still be open.",
5156
5210
  "http": "POST",
5157
- "path": "/automation/v1/human-tasks/{id}/delegate",
5211
+ "path": "/automation/v1/human-tasks/{task_id}/delegate",
5158
5212
  "streaming": "no",
5159
5213
  "pagination": false,
5160
5214
  "pathParams": [
5161
5215
  {
5162
- "name": "id",
5163
- "sdkName": "id",
5216
+ "name": "task_id",
5217
+ "sdkName": "task_id",
5164
5218
  "description": "Human task ID (htask_)."
5165
5219
  }
5166
5220
  ],
@@ -5183,13 +5237,13 @@ export const operations = [
5183
5237
  "summary": "Respond to a human task",
5184
5238
  "description": "Submit an action (action_id), form values (values) and a comment as the calling user. Depending on the task's mode the response either decides it (status becomes completed, outcome is set, and the waiting workflow resumes with outcome as the step output) or is recorded while other assignees are awaited. When two assignees respond at once, exactly one decides and the other gets TASK_CLOSED. An agent may respond only if the workflow set allow_agent_decision. Send an Idempotency-Key to retry safely.",
5185
5239
  "http": "POST",
5186
- "path": "/automation/v1/human-tasks/{id}/respond",
5240
+ "path": "/automation/v1/human-tasks/{task_id}/respond",
5187
5241
  "streaming": "no",
5188
5242
  "pagination": false,
5189
5243
  "pathParams": [
5190
5244
  {
5191
- "name": "id",
5192
- "sdkName": "id",
5245
+ "name": "task_id",
5246
+ "sdkName": "task_id",
5193
5247
  "description": "Human task ID (htask_)."
5194
5248
  }
5195
5249
  ],
@@ -5326,7 +5380,7 @@ export const operations = [
5326
5380
  "trigger"
5327
5381
  ],
5328
5382
  "required": false,
5329
- "description": "Root initiator type: user, api_key, agent or trigger, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
5383
+ "description": "Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value."
5330
5384
  },
5331
5385
  {
5332
5386
  "name": "initiator",
@@ -5416,13 +5470,13 @@ export const operations = [
5416
5470
  "summary": "Get a run",
5417
5471
  "description": "Read status, output and error for the id returned by praxis.automation.runs.create; output needs no expand option. A completed status confirms success; faulted and cancelled are terminal without successful completion. Optionally expand calls, tasks, task groups, logs or source in the same request. Pass wait (seconds, 0–60) to hold the request until the run is terminal or the time is up, instead of polling. Expanded pages hold at most 200 entries; use the ledger endpoints and cursors for subsequent pages. Workflow raise errors preserve the full type URI, status, title and detail; only internal platform exceptions are runtime errors.",
5418
5472
  "http": "GET",
5419
- "path": "/automation/v1/runs/{id}",
5473
+ "path": "/automation/v1/runs/{run_id}",
5420
5474
  "streaming": "no",
5421
5475
  "pagination": false,
5422
5476
  "pathParams": [
5423
5477
  {
5424
- "name": "id",
5425
- "sdkName": "id",
5478
+ "name": "run_id",
5479
+ "sdkName": "run_id",
5426
5480
  "description": "Run ID (run_)."
5427
5481
  }
5428
5482
  ],
@@ -5455,13 +5509,13 @@ export const operations = [
5455
5509
  "summary": "List run artifacts",
5456
5510
  "description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
5457
5511
  "http": "GET",
5458
- "path": "/automation/v1/runs/{id}/artifacts",
5512
+ "path": "/automation/v1/runs/{run_id}/artifacts",
5459
5513
  "streaming": "no",
5460
5514
  "pagination": true,
5461
5515
  "pathParams": [
5462
5516
  {
5463
- "name": "id",
5464
- "sdkName": "id",
5517
+ "name": "run_id",
5518
+ "sdkName": "run_id",
5465
5519
  "description": "Run ID (run_)."
5466
5520
  }
5467
5521
  ],
@@ -5486,13 +5540,13 @@ export const operations = [
5486
5540
  "summary": "List run calls",
5487
5541
  "description": "Page through the call ledger with execution results. Entries follow ledger order and include targets, argument/result previews, statuses and durations. Script runs read the call ledger; a workflow run records its action calls on its tasks, so this lists the action tasks (skipped ones excluded), matching counters.action_calls.",
5488
5542
  "http": "GET",
5489
- "path": "/automation/v1/runs/{id}/calls",
5543
+ "path": "/automation/v1/runs/{run_id}/calls",
5490
5544
  "streaming": "no",
5491
5545
  "pagination": true,
5492
5546
  "pathParams": [
5493
5547
  {
5494
- "name": "id",
5495
- "sdkName": "id",
5548
+ "name": "run_id",
5549
+ "sdkName": "run_id",
5496
5550
  "description": "Run ID (run_)."
5497
5551
  }
5498
5552
  ],
@@ -5517,13 +5571,13 @@ export const operations = [
5517
5571
  "summary": "Cancel a run",
5518
5572
  "description": "Request run cancellation and return 202. Workflows terminate, while scripts receive an abort request followed by forced termination after a grace period. Terminal runs return 409 RUN_INVALID_STATE; cancellation propagates to attached children, not detached children. Optional reason contains 1–500 characters and is stored as Run.cancel_message; cancel_reason remains user.",
5519
5573
  "http": "POST",
5520
- "path": "/automation/v1/runs/{id}/cancel",
5574
+ "path": "/automation/v1/runs/{run_id}/cancel",
5521
5575
  "streaming": "no",
5522
5576
  "pagination": false,
5523
5577
  "pathParams": [
5524
5578
  {
5525
- "name": "id",
5526
- "sdkName": "id",
5579
+ "name": "run_id",
5580
+ "sdkName": "run_id",
5527
5581
  "description": "Run ID (run_)."
5528
5582
  }
5529
5583
  ],
@@ -5546,13 +5600,13 @@ export const operations = [
5546
5600
  "summary": "Read run events",
5547
5601
  "description": "Read the CloudEvents ledger or subscribe to live events. Return a CloudEvents ledger page by default; Accept: text/event-stream opens a live stream with ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed and ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved event names. id is the resume cursor and Last-Event-ID takes precedence over cursor; : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
5548
5602
  "http": "GET",
5549
- "path": "/automation/v1/runs/{id}/events",
5603
+ "path": "/automation/v1/runs/{run_id}/events",
5550
5604
  "streaming": "always",
5551
5605
  "pagination": false,
5552
5606
  "pathParams": [
5553
5607
  {
5554
- "name": "id",
5555
- "sdkName": "id",
5608
+ "name": "run_id",
5609
+ "sdkName": "run_id",
5556
5610
  "description": "Run ID (run_)."
5557
5611
  }
5558
5612
  ],
@@ -5585,13 +5639,13 @@ export const operations = [
5585
5639
  "summary": "Read run logs",
5586
5640
  "description": "Return a log page within the 30-day retention window by default. Accept: text/event-stream opens a live stream using event: log; id is the resume cursor and Last-Event-ID takes precedence over cursor. : ping arrives every 20 seconds and event: end closes the stream after a terminal run.",
5587
5641
  "http": "GET",
5588
- "path": "/automation/v1/runs/{id}/logs",
5642
+ "path": "/automation/v1/runs/{run_id}/logs",
5589
5643
  "streaming": "always",
5590
5644
  "pagination": false,
5591
5645
  "pathParams": [
5592
5646
  {
5593
- "name": "id",
5594
- "sdkName": "id",
5647
+ "name": "run_id",
5648
+ "sdkName": "run_id",
5595
5649
  "description": "Run ID (run_)."
5596
5650
  }
5597
5651
  ],
@@ -5624,13 +5678,13 @@ export const operations = [
5624
5678
  "summary": "Rerun a run",
5625
5679
  "description": "Create a new root run from the original exact version or ad hoc source, retaining labels and setting rerun_of. Override input or omit it to reuse the original input; archived targets and run tokens are rejected.",
5626
5680
  "http": "POST",
5627
- "path": "/automation/v1/runs/{id}/rerun",
5681
+ "path": "/automation/v1/runs/{run_id}/rerun",
5628
5682
  "streaming": "no",
5629
5683
  "pagination": false,
5630
5684
  "pathParams": [
5631
5685
  {
5632
- "name": "id",
5633
- "sdkName": "id",
5686
+ "name": "run_id",
5687
+ "sdkName": "run_id",
5634
5688
  "description": "Run ID (run_)."
5635
5689
  }
5636
5690
  ],
@@ -5653,13 +5707,13 @@ export const operations = [
5653
5707
  "summary": "Resume a run",
5654
5708
  "description": "Resume only a suspended workflow to its prior running or waiting state. It remains suspended if concurrency slots are unavailable; scripts do not support this operation.",
5655
5709
  "http": "POST",
5656
- "path": "/automation/v1/runs/{id}/resume",
5710
+ "path": "/automation/v1/runs/{run_id}/resume",
5657
5711
  "streaming": "no",
5658
5712
  "pagination": false,
5659
5713
  "pathParams": [
5660
5714
  {
5661
- "name": "id",
5662
- "sdkName": "id",
5715
+ "name": "run_id",
5716
+ "sdkName": "run_id",
5663
5717
  "description": "Run ID (run_)."
5664
5718
  }
5665
5719
  ],
@@ -5675,13 +5729,13 @@ export const operations = [
5675
5729
  "summary": "Get run source",
5676
5730
  "description": "Read the source and digest used by the run. Results include the language and SHA-256 digest, for both ad hoc and published-definition runs.",
5677
5731
  "http": "GET",
5678
- "path": "/automation/v1/runs/{id}/source",
5732
+ "path": "/automation/v1/runs/{run_id}/source",
5679
5733
  "streaming": "no",
5680
5734
  "pagination": false,
5681
5735
  "pathParams": [
5682
5736
  {
5683
- "name": "id",
5684
- "sdkName": "id",
5737
+ "name": "run_id",
5738
+ "sdkName": "run_id",
5685
5739
  "description": "Run ID (run_)."
5686
5740
  }
5687
5741
  ],
@@ -5693,13 +5747,13 @@ export const operations = [
5693
5747
  "summary": "Suspend a run",
5694
5748
  "description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
5695
5749
  "http": "POST",
5696
- "path": "/automation/v1/runs/{id}/suspend",
5750
+ "path": "/automation/v1/runs/{run_id}/suspend",
5697
5751
  "streaming": "no",
5698
5752
  "pagination": false,
5699
5753
  "pathParams": [
5700
5754
  {
5701
- "name": "id",
5702
- "sdkName": "id",
5755
+ "name": "run_id",
5756
+ "sdkName": "run_id",
5703
5757
  "description": "Run ID (run_)."
5704
5758
  }
5705
5759
  ],
@@ -5715,13 +5769,13 @@ export const operations = [
5715
5769
  "summary": "List run tasks",
5716
5770
  "description": "Page through the task ledger. include=planned adds unexecuted top-level steps; group_by=reference aggregates count, status and duration by task reference.",
5717
5771
  "http": "GET",
5718
- "path": "/automation/v1/runs/{id}/tasks",
5772
+ "path": "/automation/v1/runs/{run_id}/tasks",
5719
5773
  "streaming": "no",
5720
5774
  "pagination": true,
5721
5775
  "pathParams": [
5722
5776
  {
5723
- "name": "id",
5724
- "sdkName": "id",
5777
+ "name": "run_id",
5778
+ "sdkName": "run_id",
5725
5779
  "description": "Run ID (run_)."
5726
5780
  }
5727
5781
  ],
@@ -5764,13 +5818,13 @@ export const operations = [
5764
5818
  "summary": "List run waits",
5765
5819
  "description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
5766
5820
  "http": "GET",
5767
- "path": "/automation/v1/runs/{id}/waits",
5821
+ "path": "/automation/v1/runs/{run_id}/waits",
5768
5822
  "streaming": "no",
5769
5823
  "pagination": true,
5770
5824
  "pathParams": [
5771
5825
  {
5772
- "name": "id",
5773
- "sdkName": "id",
5826
+ "name": "run_id",
5827
+ "sdkName": "run_id",
5774
5828
  "description": "Run ID (run_)."
5775
5829
  }
5776
5830
  ],
@@ -5795,13 +5849,13 @@ export const operations = [
5795
5849
  "summary": "Complete a run wait",
5796
5850
  "description": "Complete only an event wait with a payload of at most 32 KiB satisfying its filter; timer and child waits cannot be completed manually. Reusing the same id and payload returns replayed=true; other repeats return WAIT_ALREADY_RESOLVED and expired waits return WAIT_EXPIRED.",
5797
5851
  "http": "POST",
5798
- "path": "/automation/v1/runs/{id}/waits/{wait_id}/complete",
5852
+ "path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
5799
5853
  "streaming": "no",
5800
5854
  "pagination": false,
5801
5855
  "pathParams": [
5802
5856
  {
5803
- "name": "id",
5804
- "sdkName": "id",
5857
+ "name": "run_id",
5858
+ "sdkName": "run_id",
5805
5859
  "description": "Run ID (run_)."
5806
5860
  },
5807
5861
  {
@@ -5906,7 +5960,7 @@ export const operations = [
5906
5960
  "resource": "automation.scripts",
5907
5961
  "method": "create",
5908
5962
  "summary": "Create a script",
5909
- "description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, use the returned draft.revision as expected_draft_revision.",
5963
+ "description": "Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: \"Hello, \" + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call(\"write-file\", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, send the returned draft.revision as draft.revision of the publish request.",
5910
5964
  "http": "POST",
5911
5965
  "path": "/automation/v1/scripts",
5912
5966
  "streaming": "no",
@@ -5936,9 +5990,9 @@ export const operations = [
5936
5990
  },
5937
5991
  {
5938
5992
  "name": "draft",
5939
- "type": "string",
5993
+ "type": "object",
5940
5994
  "required": false,
5941
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
5995
+ "description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
5942
5996
  },
5943
5997
  {
5944
5998
  "name": "labels",
@@ -5953,15 +6007,15 @@ export const operations = [
5953
6007
  "resource": "automation.scripts",
5954
6008
  "method": "retrieve",
5955
6009
  "summary": "Get a script",
5956
- "description": "Read script details and draft source. The ETag is the draft revision to use in If-Match for updates.",
6010
+ "description": "Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
5957
6011
  "http": "GET",
5958
- "path": "/automation/v1/scripts/{ns}/{name}",
6012
+ "path": "/automation/v1/scripts/{namespace}/{name}",
5959
6013
  "streaming": "no",
5960
6014
  "pagination": false,
5961
6015
  "pathParams": [
5962
6016
  {
5963
- "name": "ns",
5964
- "sdkName": "ns",
6017
+ "name": "namespace",
6018
+ "sdkName": "namespace",
5965
6019
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
5966
6020
  },
5967
6021
  {
@@ -5976,15 +6030,15 @@ export const operations = [
5976
6030
  "resource": "automation.scripts",
5977
6031
  "method": "update",
5978
6032
  "summary": "Update a script draft",
5979
- "description": "Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.",
6033
+ "description": "Update description, labels or draft with the current draft revision in the body as draft.revision (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call(\"ocr\", input) calls a built-in Action, and invoke(\"namespace/name\", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.",
5980
6034
  "http": "PATCH",
5981
- "path": "/automation/v1/scripts/{ns}/{name}",
6035
+ "path": "/automation/v1/scripts/{namespace}/{name}",
5982
6036
  "streaming": "no",
5983
6037
  "pagination": false,
5984
6038
  "pathParams": [
5985
6039
  {
5986
- "name": "ns",
5987
- "sdkName": "ns",
6040
+ "name": "namespace",
6041
+ "sdkName": "namespace",
5988
6042
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
5989
6043
  },
5990
6044
  {
@@ -5998,8 +6052,8 @@ export const operations = [
5998
6052
  {
5999
6053
  "name": "If-Match",
6000
6054
  "type": "string",
6001
- "required": true,
6002
- "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
6055
+ "required": false,
6056
+ "description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
6003
6057
  }
6004
6058
  ],
6005
6059
  "body": {
@@ -6019,9 +6073,9 @@ export const operations = [
6019
6073
  },
6020
6074
  {
6021
6075
  "name": "draft",
6022
- "type": "string",
6076
+ "type": "object",
6023
6077
  "required": false,
6024
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
6078
+ "description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
6025
6079
  }
6026
6080
  ]
6027
6081
  }
@@ -6032,13 +6086,13 @@ export const operations = [
6032
6086
  "summary": "Archive a script",
6033
6087
  "description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
6034
6088
  "http": "POST",
6035
- "path": "/automation/v1/scripts/{ns}/{name}/archive",
6089
+ "path": "/automation/v1/scripts/{namespace}/{name}/archive",
6036
6090
  "streaming": "no",
6037
6091
  "pagination": false,
6038
6092
  "pathParams": [
6039
6093
  {
6040
- "name": "ns",
6041
- "sdkName": "ns",
6094
+ "name": "namespace",
6095
+ "sdkName": "namespace",
6042
6096
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6043
6097
  },
6044
6098
  {
@@ -6059,13 +6113,13 @@ export const operations = [
6059
6113
  "summary": "List script tags",
6060
6114
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
6061
6115
  "http": "GET",
6062
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags",
6116
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
6063
6117
  "streaming": "no",
6064
6118
  "pagination": false,
6065
6119
  "pathParams": [
6066
6120
  {
6067
- "name": "ns",
6068
- "sdkName": "ns",
6121
+ "name": "namespace",
6122
+ "sdkName": "namespace",
6069
6123
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6070
6124
  },
6071
6125
  {
@@ -6082,13 +6136,13 @@ export const operations = [
6082
6136
  "summary": "Delete a script tag",
6083
6137
  "description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
6084
6138
  "http": "DELETE",
6085
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6139
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6086
6140
  "streaming": "no",
6087
6141
  "pagination": false,
6088
6142
  "pathParams": [
6089
6143
  {
6090
- "name": "ns",
6091
- "sdkName": "ns",
6144
+ "name": "namespace",
6145
+ "sdkName": "namespace",
6092
6146
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6093
6147
  },
6094
6148
  {
@@ -6110,13 +6164,13 @@ export const operations = [
6110
6164
  "summary": "Set a script tag",
6111
6165
  "description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
6112
6166
  "http": "PUT",
6113
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6167
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6114
6168
  "streaming": "no",
6115
6169
  "pagination": false,
6116
6170
  "pathParams": [
6117
6171
  {
6118
- "name": "ns",
6119
- "sdkName": "ns",
6172
+ "name": "namespace",
6173
+ "sdkName": "namespace",
6120
6174
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6121
6175
  },
6122
6176
  {
@@ -6149,13 +6203,13 @@ export const operations = [
6149
6203
  "summary": "Restore a script",
6150
6204
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
6151
6205
  "http": "POST",
6152
- "path": "/automation/v1/scripts/{ns}/{name}/restore",
6206
+ "path": "/automation/v1/scripts/{namespace}/{name}/restore",
6153
6207
  "streaming": "no",
6154
6208
  "pagination": false,
6155
6209
  "pathParams": [
6156
6210
  {
6157
- "name": "ns",
6158
- "sdkName": "ns",
6211
+ "name": "namespace",
6212
+ "sdkName": "namespace",
6159
6213
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6160
6214
  },
6161
6215
  {
@@ -6176,13 +6230,13 @@ export const operations = [
6176
6230
  "summary": "List script vault bindings",
6177
6231
  "description": "Inspect the whole vaults attached to a saved script, including archived definitions, without reading secret values. Obtain ns and name from automation.scripts.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
6178
6232
  "http": "GET",
6179
- "path": "/automation/v1/scripts/{ns}/{name}/vaults",
6233
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults",
6180
6234
  "streaming": "no",
6181
6235
  "pagination": false,
6182
6236
  "pathParams": [
6183
6237
  {
6184
- "name": "ns",
6185
- "sdkName": "ns",
6238
+ "name": "namespace",
6239
+ "sdkName": "namespace",
6186
6240
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6187
6241
  },
6188
6242
  {
@@ -6199,13 +6253,13 @@ export const operations = [
6199
6253
  "summary": "Delete a script vault binding",
6200
6254
  "description": "Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
6201
6255
  "http": "DELETE",
6202
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6256
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6203
6257
  "streaming": "no",
6204
6258
  "pagination": false,
6205
6259
  "pathParams": [
6206
6260
  {
6207
- "name": "ns",
6208
- "sdkName": "ns",
6261
+ "name": "namespace",
6262
+ "sdkName": "namespace",
6209
6263
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6210
6264
  },
6211
6265
  {
@@ -6227,13 +6281,13 @@ export const operations = [
6227
6281
  "summary": "Set a script vault binding",
6228
6282
  "description": "Attach an entire active vault in your organization to a saved script, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
6229
6283
  "http": "PUT",
6230
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6284
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6231
6285
  "streaming": "no",
6232
6286
  "pagination": false,
6233
6287
  "pathParams": [
6234
6288
  {
6235
- "name": "ns",
6236
- "sdkName": "ns",
6289
+ "name": "namespace",
6290
+ "sdkName": "namespace",
6237
6291
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6238
6292
  },
6239
6293
  {
@@ -6266,13 +6320,13 @@ export const operations = [
6266
6320
  "summary": "List script versions",
6267
6321
  "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
6268
6322
  "http": "GET",
6269
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6323
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6270
6324
  "streaming": "no",
6271
6325
  "pagination": true,
6272
6326
  "pathParams": [
6273
6327
  {
6274
- "name": "ns",
6275
- "sdkName": "ns",
6328
+ "name": "namespace",
6329
+ "sdkName": "namespace",
6276
6330
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6277
6331
  },
6278
6332
  {
@@ -6312,15 +6366,15 @@ export const operations = [
6312
6366
  "publish"
6313
6367
  ],
6314
6368
  "summary": "Publish a script version",
6315
- "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.",
6369
+ "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.",
6316
6370
  "http": "POST",
6317
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6371
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6318
6372
  "streaming": "no",
6319
6373
  "pagination": false,
6320
6374
  "pathParams": [
6321
6375
  {
6322
- "name": "ns",
6323
- "sdkName": "ns",
6376
+ "name": "namespace",
6377
+ "sdkName": "namespace",
6324
6378
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6325
6379
  },
6326
6380
  {
@@ -6341,13 +6395,13 @@ export const operations = [
6341
6395
  "summary": "Get a script version",
6342
6396
  "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
6343
6397
  "http": "GET",
6344
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}",
6398
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
6345
6399
  "streaming": "no",
6346
6400
  "pagination": false,
6347
6401
  "pathParams": [
6348
6402
  {
6349
- "name": "ns",
6350
- "sdkName": "ns",
6403
+ "name": "namespace",
6404
+ "sdkName": "namespace",
6351
6405
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6352
6406
  },
6353
6407
  {
@@ -6369,13 +6423,13 @@ export const operations = [
6369
6423
  "summary": "Deprecate a script version",
6370
6424
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
6371
6425
  "http": "POST",
6372
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate",
6426
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
6373
6427
  "streaming": "no",
6374
6428
  "pagination": false,
6375
6429
  "pathParams": [
6376
6430
  {
6377
- "name": "ns",
6378
- "sdkName": "ns",
6431
+ "name": "namespace",
6432
+ "sdkName": "namespace",
6379
6433
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
6380
6434
  },
6381
6435
  {
@@ -6526,7 +6580,7 @@ export const operations = [
6526
6580
  "expired"
6527
6581
  ],
6528
6582
  "required": false,
6529
- "description": "Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6583
+ "description": "Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6530
6584
  },
6531
6585
  {
6532
6586
  "name": "labels",
@@ -6545,6 +6599,18 @@ export const operations = [
6545
6599
  "type": "string",
6546
6600
  "required": false,
6547
6601
  "description": "Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone."
6602
+ },
6603
+ {
6604
+ "name": "status",
6605
+ "type": "array",
6606
+ "itemType": "string",
6607
+ "enum": [
6608
+ "enabled",
6609
+ "paused",
6610
+ "expired"
6611
+ ],
6612
+ "required": false,
6613
+ "description": "Trigger status: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value. Giving it together with a different state returns 400."
6548
6614
  }
6549
6615
  ]
6550
6616
  },
@@ -6694,13 +6760,13 @@ export const operations = [
6694
6760
  "summary": "Delete a trigger",
6695
6761
  "description": "Delete the trigger and its firing history, returning 204. Runs already started are unaffected. Definition-managed triggers return 409 TRIGGER_MANAGED; remove schedule from the workflow and publish it again.",
6696
6762
  "http": "DELETE",
6697
- "path": "/automation/v1/triggers/{id}",
6763
+ "path": "/automation/v1/triggers/{trigger_id}",
6698
6764
  "streaming": "no",
6699
6765
  "pagination": false,
6700
6766
  "pathParams": [
6701
6767
  {
6702
- "name": "id",
6703
- "sdkName": "id",
6768
+ "name": "trigger_id",
6769
+ "sdkName": "trigger_id",
6704
6770
  "description": "Trigger ID (trg_)."
6705
6771
  }
6706
6772
  ],
@@ -6712,13 +6778,13 @@ export const operations = [
6712
6778
  "summary": "Get a trigger",
6713
6779
  "description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
6714
6780
  "http": "GET",
6715
- "path": "/automation/v1/triggers/{id}",
6781
+ "path": "/automation/v1/triggers/{trigger_id}",
6716
6782
  "streaming": "no",
6717
6783
  "pagination": false,
6718
6784
  "pathParams": [
6719
6785
  {
6720
- "name": "id",
6721
- "sdkName": "id",
6786
+ "name": "trigger_id",
6787
+ "sdkName": "trigger_id",
6722
6788
  "description": "Trigger ID (trg_)."
6723
6789
  }
6724
6790
  ],
@@ -6730,13 +6796,13 @@ export const operations = [
6730
6796
  "summary": "Update a trigger",
6731
6797
  "description": "Update configuration with If-Match matching the current ETag, revalidating target input and schedule. kind is immutable and definition-managed triggers reject updates with TRIGGER_MANAGED.",
6732
6798
  "http": "PATCH",
6733
- "path": "/automation/v1/triggers/{id}",
6799
+ "path": "/automation/v1/triggers/{trigger_id}",
6734
6800
  "streaming": "no",
6735
6801
  "pagination": false,
6736
6802
  "pathParams": [
6737
6803
  {
6738
- "name": "id",
6739
- "sdkName": "id",
6804
+ "name": "trigger_id",
6805
+ "sdkName": "trigger_id",
6740
6806
  "description": "Trigger ID (trg_)."
6741
6807
  }
6742
6808
  ],
@@ -6847,13 +6913,13 @@ export const operations = [
6847
6913
  "summary": "Fire a trigger now",
6848
6914
  "description": "Fire once now and return a Firing, subject to current state, catchup window and overlap rules. Run-launch failures are recorded in the firing error.",
6849
6915
  "http": "POST",
6850
- "path": "/automation/v1/triggers/{id}/fire",
6916
+ "path": "/automation/v1/triggers/{trigger_id}/fire",
6851
6917
  "streaming": "no",
6852
6918
  "pagination": false,
6853
6919
  "pathParams": [
6854
6920
  {
6855
- "name": "id",
6856
- "sdkName": "id",
6921
+ "name": "trigger_id",
6922
+ "sdkName": "trigger_id",
6857
6923
  "description": "Trigger ID (trg_)."
6858
6924
  }
6859
6925
  ],
@@ -6865,13 +6931,13 @@ export const operations = [
6865
6931
  "summary": "List trigger firings",
6866
6932
  "description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
6867
6933
  "http": "GET",
6868
- "path": "/automation/v1/triggers/{id}/firings",
6934
+ "path": "/automation/v1/triggers/{trigger_id}/firings",
6869
6935
  "streaming": "no",
6870
6936
  "pagination": true,
6871
6937
  "pathParams": [
6872
6938
  {
6873
- "name": "id",
6874
- "sdkName": "id",
6939
+ "name": "trigger_id",
6940
+ "sdkName": "trigger_id",
6875
6941
  "description": "Trigger ID (trg_)."
6876
6942
  }
6877
6943
  ],
@@ -6917,13 +6983,13 @@ export const operations = [
6917
6983
  "summary": "Pause a trigger",
6918
6984
  "description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
6919
6985
  "http": "POST",
6920
- "path": "/automation/v1/triggers/{id}/pause",
6986
+ "path": "/automation/v1/triggers/{trigger_id}/pause",
6921
6987
  "streaming": "no",
6922
6988
  "pagination": false,
6923
6989
  "pathParams": [
6924
6990
  {
6925
- "name": "id",
6926
- "sdkName": "id",
6991
+ "name": "trigger_id",
6992
+ "sdkName": "trigger_id",
6927
6993
  "description": "Trigger ID (trg_)."
6928
6994
  }
6929
6995
  ],
@@ -6935,13 +7001,13 @@ export const operations = [
6935
7001
  "summary": "Resume a trigger",
6936
7002
  "description": "Resume firings and reset consecutive failures. Triggers past their end time or finished one-time schedules remain expired; a full enabled-trigger quota returns TRIGGER_LIMIT.",
6937
7003
  "http": "POST",
6938
- "path": "/automation/v1/triggers/{id}/resume",
7004
+ "path": "/automation/v1/triggers/{trigger_id}/resume",
6939
7005
  "streaming": "no",
6940
7006
  "pagination": false,
6941
7007
  "pathParams": [
6942
7008
  {
6943
- "name": "id",
6944
- "sdkName": "id",
7009
+ "name": "trigger_id",
7010
+ "sdkName": "trigger_id",
6945
7011
  "description": "Trigger ID (trg_)."
6946
7012
  }
6947
7013
  ],
@@ -6953,13 +7019,13 @@ export const operations = [
6953
7019
  "summary": "Rotate a webhook URL",
6954
7020
  "description": "For webhook triggers only: invalidate the old token immediately and return a new full webhook_url. Later detail reads do not reveal the full URL.",
6955
7021
  "http": "POST",
6956
- "path": "/automation/v1/triggers/{id}/rotate-webhook",
7022
+ "path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
6957
7023
  "streaming": "no",
6958
7024
  "pagination": false,
6959
7025
  "pathParams": [
6960
7026
  {
6961
- "name": "id",
6962
- "sdkName": "id",
7027
+ "name": "trigger_id",
7028
+ "sdkName": "trigger_id",
6963
7029
  "description": "Trigger ID (trg_)."
6964
7030
  }
6965
7031
  ],
@@ -7106,9 +7172,9 @@ export const operations = [
7106
7172
  },
7107
7173
  {
7108
7174
  "name": "draft",
7109
- "type": "string",
7175
+ "type": "object",
7110
7176
  "required": false,
7111
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7177
+ "description": "Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }."
7112
7178
  },
7113
7179
  {
7114
7180
  "name": "labels",
@@ -7123,15 +7189,15 @@ export const operations = [
7123
7189
  "resource": "automation.workflows",
7124
7190
  "method": "retrieve",
7125
7191
  "summary": "Get a workflow",
7126
- "description": "Read workflow details and draft source. The ETag is the draft revision to use in If-Match for updates.",
7192
+ "description": "Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.",
7127
7193
  "http": "GET",
7128
- "path": "/automation/v1/workflows/{ns}/{name}",
7194
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7129
7195
  "streaming": "no",
7130
7196
  "pagination": false,
7131
7197
  "pathParams": [
7132
7198
  {
7133
- "name": "ns",
7134
- "sdkName": "ns",
7199
+ "name": "namespace",
7200
+ "sdkName": "namespace",
7135
7201
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7136
7202
  },
7137
7203
  {
@@ -7146,15 +7212,15 @@ export const operations = [
7146
7212
  "resource": "automation.workflows",
7147
7213
  "method": "update",
7148
7214
  "summary": "Update a workflow draft",
7149
- "description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
7215
+ "description": "Update description, labels or draft with the current draft revision in the body as draft.revision, taken from the get-workflow response (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
7150
7216
  "http": "PATCH",
7151
- "path": "/automation/v1/workflows/{ns}/{name}",
7217
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7152
7218
  "streaming": "no",
7153
7219
  "pagination": false,
7154
7220
  "pathParams": [
7155
7221
  {
7156
- "name": "ns",
7157
- "sdkName": "ns",
7222
+ "name": "namespace",
7223
+ "sdkName": "namespace",
7158
7224
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7159
7225
  },
7160
7226
  {
@@ -7168,8 +7234,8 @@ export const operations = [
7168
7234
  {
7169
7235
  "name": "If-Match",
7170
7236
  "type": "string",
7171
- "required": true,
7172
- "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
7237
+ "required": false,
7238
+ "description": "Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412."
7173
7239
  }
7174
7240
  ],
7175
7241
  "body": {
@@ -7189,9 +7255,9 @@ export const operations = [
7189
7255
  },
7190
7256
  {
7191
7257
  "name": "draft",
7192
- "type": "string",
7258
+ "type": "object",
7193
7259
  "required": false,
7194
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7260
+ "description": "Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match."
7195
7261
  }
7196
7262
  ]
7197
7263
  }
@@ -7202,13 +7268,13 @@ export const operations = [
7202
7268
  "summary": "Archive a workflow",
7203
7269
  "description": "Keep the name, versions and draft while archiving. The default list hides it and new target resolution and run requests reject the archived target.",
7204
7270
  "http": "POST",
7205
- "path": "/automation/v1/workflows/{ns}/{name}/archive",
7271
+ "path": "/automation/v1/workflows/{namespace}/{name}/archive",
7206
7272
  "streaming": "no",
7207
7273
  "pagination": false,
7208
7274
  "pathParams": [
7209
7275
  {
7210
- "name": "ns",
7211
- "sdkName": "ns",
7276
+ "name": "namespace",
7277
+ "sdkName": "namespace",
7212
7278
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7213
7279
  },
7214
7280
  {
@@ -7229,13 +7295,13 @@ export const operations = [
7229
7295
  "summary": "List workflow tags",
7230
7296
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
7231
7297
  "http": "GET",
7232
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags",
7298
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
7233
7299
  "streaming": "no",
7234
7300
  "pagination": false,
7235
7301
  "pathParams": [
7236
7302
  {
7237
- "name": "ns",
7238
- "sdkName": "ns",
7303
+ "name": "namespace",
7304
+ "sdkName": "namespace",
7239
7305
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7240
7306
  },
7241
7307
  {
@@ -7252,13 +7318,13 @@ export const operations = [
7252
7318
  "summary": "Delete a workflow tag",
7253
7319
  "description": "Delete a distribution tag while retaining versions. latest cannot be deleted, versions and ranges are invalid tags, and deleting an absent valid tag is repeatable.",
7254
7320
  "http": "DELETE",
7255
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7321
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7256
7322
  "streaming": "no",
7257
7323
  "pagination": false,
7258
7324
  "pathParams": [
7259
7325
  {
7260
- "name": "ns",
7261
- "sdkName": "ns",
7326
+ "name": "namespace",
7327
+ "sdkName": "namespace",
7262
7328
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7263
7329
  },
7264
7330
  {
@@ -7280,13 +7346,13 @@ export const operations = [
7280
7346
  "summary": "Set a workflow tag",
7281
7347
  "description": "Point a distribution tag at an existing exact version; tags cannot be versions or version ranges. Moving latest can roll back a release and synchronizes workflow schedules.",
7282
7348
  "http": "PUT",
7283
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7349
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7284
7350
  "streaming": "no",
7285
7351
  "pagination": false,
7286
7352
  "pathParams": [
7287
7353
  {
7288
- "name": "ns",
7289
- "sdkName": "ns",
7354
+ "name": "namespace",
7355
+ "sdkName": "namespace",
7290
7356
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7291
7357
  },
7292
7358
  {
@@ -7319,13 +7385,13 @@ export const operations = [
7319
7385
  "summary": "Restore a workflow",
7320
7386
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
7321
7387
  "http": "POST",
7322
- "path": "/automation/v1/workflows/{ns}/{name}/restore",
7388
+ "path": "/automation/v1/workflows/{namespace}/{name}/restore",
7323
7389
  "streaming": "no",
7324
7390
  "pagination": false,
7325
7391
  "pathParams": [
7326
7392
  {
7327
- "name": "ns",
7328
- "sdkName": "ns",
7393
+ "name": "namespace",
7394
+ "sdkName": "namespace",
7329
7395
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7330
7396
  },
7331
7397
  {
@@ -7346,13 +7412,13 @@ export const operations = [
7346
7412
  "summary": "List workflow vault bindings",
7347
7413
  "description": "Inspect the whole vaults attached to a saved workflow, including archived definitions, without reading secret values. Obtain ns and name from automation.workflows.list. Bindings belong to the definition rather than a published version. When vault or secret metadata cannot be read, the binding remains visible with secrets: [] and secrets_unavailable: true.",
7348
7414
  "http": "GET",
7349
- "path": "/automation/v1/workflows/{ns}/{name}/vaults",
7415
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults",
7350
7416
  "streaming": "no",
7351
7417
  "pagination": false,
7352
7418
  "pathParams": [
7353
7419
  {
7354
- "name": "ns",
7355
- "sdkName": "ns",
7420
+ "name": "namespace",
7421
+ "sdkName": "namespace",
7356
7422
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7357
7423
  },
7358
7424
  {
@@ -7369,13 +7435,13 @@ export const operations = [
7369
7435
  "summary": "Delete a workflow vault binding",
7370
7436
  "description": "Remove the vault assignment from this saved workflow without deleting the vault or its secrets. Obtain aliases from automation.workflows.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.",
7371
7437
  "http": "DELETE",
7372
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7438
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7373
7439
  "streaming": "no",
7374
7440
  "pagination": false,
7375
7441
  "pathParams": [
7376
7442
  {
7377
- "name": "ns",
7378
- "sdkName": "ns",
7443
+ "name": "namespace",
7444
+ "sdkName": "namespace",
7379
7445
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7380
7446
  },
7381
7447
  {
@@ -7397,13 +7463,13 @@ export const operations = [
7397
7463
  "summary": "Set a workflow vault binding",
7398
7464
  "description": "Attach an entire active vault in your organization to a saved workflow, or replace the vault at an existing alias. Obtain the vault ID or display name from praxis.vault.vaults.list; ambiguous names require an ID. Bindings are independent of published versions and survive archival. The same vault cannot be assigned to two aliases on one definition. Repeating the same assignment is idempotent. Example body: {\"vault\":\"Production\"}.",
7399
7465
  "http": "PUT",
7400
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7466
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7401
7467
  "streaming": "no",
7402
7468
  "pagination": false,
7403
7469
  "pathParams": [
7404
7470
  {
7405
- "name": "ns",
7406
- "sdkName": "ns",
7471
+ "name": "namespace",
7472
+ "sdkName": "namespace",
7407
7473
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7408
7474
  },
7409
7475
  {
@@ -7436,13 +7502,13 @@ export const operations = [
7436
7502
  "summary": "List workflow versions",
7437
7503
  "description": "Page through immutable schemas and locked dependencies in descending semantic-version order. Lists omit source by default; only expand=source includes full source, and other values return 400. Detail endpoints retain full source.",
7438
7504
  "http": "GET",
7439
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7505
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7440
7506
  "streaming": "no",
7441
7507
  "pagination": true,
7442
7508
  "pathParams": [
7443
7509
  {
7444
- "name": "ns",
7445
- "sdkName": "ns",
7510
+ "name": "namespace",
7511
+ "sdkName": "namespace",
7446
7512
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7447
7513
  },
7448
7514
  {
@@ -7482,15 +7548,15 @@ export const operations = [
7482
7548
  "publish"
7483
7549
  ],
7484
7550
  "summary": "Publish a workflow version",
7485
- "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Use draft.revision from create or retrieve as expected_draft_revision. The draft must match expected_draft_revision; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
7551
+ "description": "Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).",
7486
7552
  "http": "POST",
7487
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7553
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7488
7554
  "streaming": "no",
7489
7555
  "pagination": false,
7490
7556
  "pathParams": [
7491
7557
  {
7492
- "name": "ns",
7493
- "sdkName": "ns",
7558
+ "name": "namespace",
7559
+ "sdkName": "namespace",
7494
7560
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7495
7561
  },
7496
7562
  {
@@ -7511,13 +7577,13 @@ export const operations = [
7511
7577
  "summary": "Get a workflow version",
7512
7578
  "description": "Read source, input/output schemas and deprecation details for an exact version. Missing versions return VERSION_NOT_FOUND. Details always return full source. version accepts an exact version or dist-tag; a range returns 400 with a hint to use /resolve.",
7513
7579
  "http": "GET",
7514
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}",
7580
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
7515
7581
  "streaming": "no",
7516
7582
  "pagination": false,
7517
7583
  "pathParams": [
7518
7584
  {
7519
- "name": "ns",
7520
- "sdkName": "ns",
7585
+ "name": "namespace",
7586
+ "sdkName": "namespace",
7521
7587
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7522
7588
  },
7523
7589
  {
@@ -7539,13 +7605,13 @@ export const operations = [
7539
7605
  "summary": "Deprecate a workflow version",
7540
7606
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
7541
7607
  "http": "POST",
7542
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate",
7608
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
7543
7609
  "streaming": "no",
7544
7610
  "pagination": false,
7545
7611
  "pathParams": [
7546
7612
  {
7547
- "name": "ns",
7548
- "sdkName": "ns",
7613
+ "name": "namespace",
7614
+ "sdkName": "namespace",
7549
7615
  "description": "Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions."
7550
7616
  },
7551
7617
  {
@@ -7584,11 +7650,200 @@ export const operations = [
7584
7650
  "pathParams": [],
7585
7651
  "query": []
7586
7652
  },
7653
+ {
7654
+ "resource": "browser.byob.browsers",
7655
+ "method": "list",
7656
+ "summary": "列出自带浏览器",
7657
+ "description": "分页列出当前组织已配对且未断开的自带浏览器,按 ID 升序。将 nextCursor 原样传入读取下一页,直到其为 null。",
7658
+ "http": "GET",
7659
+ "path": "/browser/v1/byob/browsers",
7660
+ "streaming": "no",
7661
+ "pagination": false,
7662
+ "pathParams": [],
7663
+ "query": [
7664
+ {
7665
+ "name": "cursor",
7666
+ "type": "string",
7667
+ "required": false,
7668
+ "description": "上一页返回的 nextCursor,原样传入;省略时读取第一页。"
7669
+ },
7670
+ {
7671
+ "name": "limit",
7672
+ "type": "integer",
7673
+ "required": false,
7674
+ "description": "每页最多返回的浏览器数量;默认 50,范围 1–100。"
7675
+ }
7676
+ ]
7677
+ },
7678
+ {
7679
+ "resource": "browser.byob.browsers",
7680
+ "method": "retrieve",
7681
+ "summary": "读取自带浏览器",
7682
+ "description": "读取当前组织的指定自带浏览器,包括已断开的(revoked_at 不为 null)。不存在或不属于当前组织时返回 404 BROWSER_NOT_FOUND。",
7683
+ "http": "GET",
7684
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7685
+ "streaming": "no",
7686
+ "pagination": false,
7687
+ "pathParams": [
7688
+ {
7689
+ "name": "browser_id",
7690
+ "sdkName": "browser_id",
7691
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7692
+ }
7693
+ ],
7694
+ "query": []
7695
+ },
7696
+ {
7697
+ "resource": "browser.byob.browsers",
7698
+ "method": "update",
7699
+ "summary": "更新自带浏览器的名称、授权智能体与允许站点",
7700
+ "description": "给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。",
7701
+ "http": "PATCH",
7702
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7703
+ "streaming": "no",
7704
+ "pagination": false,
7705
+ "pathParams": [
7706
+ {
7707
+ "name": "browser_id",
7708
+ "sdkName": "browser_id",
7709
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7710
+ }
7711
+ ],
7712
+ "query": [],
7713
+ "body": {
7714
+ "required": true,
7715
+ "fields": [
7716
+ {
7717
+ "name": "name",
7718
+ "type": "string",
7719
+ "required": false,
7720
+ "description": "新的显示名称,1–80 个字符。"
7721
+ }
7722
+ ]
7723
+ }
7724
+ },
7725
+ {
7726
+ "resource": "browser.byob.browsers.disconnect",
7727
+ "method": "create",
7728
+ "summary": "断开自带浏览器",
7729
+ "description": "断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。",
7730
+ "http": "POST",
7731
+ "path": "/browser/v1/byob/browsers/{browser_id}/disconnect",
7732
+ "streaming": "no",
7733
+ "pagination": false,
7734
+ "pathParams": [
7735
+ {
7736
+ "name": "browser_id",
7737
+ "sdkName": "browser_id",
7738
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7739
+ }
7740
+ ],
7741
+ "query": []
7742
+ },
7743
+ {
7744
+ "resource": "browser.byob.pairings",
7745
+ "method": "create",
7746
+ "summary": "创建浏览器配对码",
7747
+ "description": "为一个要接入的 Chrome 或 Edge 创建 8 位配对码,一次性、10 分钟有效;把它交给用户,由用户在浏览器扩展里输入或由 Console 直接交给扩展,用户点「允许」后配对完成。需要组织已开通 BYOB,否则返回 501 PROVIDER_UNSUPPORTED。",
7748
+ "http": "POST",
7749
+ "path": "/browser/v1/byob/pairings",
7750
+ "streaming": "no",
7751
+ "pagination": false,
7752
+ "pathParams": [],
7753
+ "query": []
7754
+ },
7755
+ {
7756
+ "resource": "browser.byob.pairings",
7757
+ "method": "retrieve",
7758
+ "summary": "读取浏览器配对授权页信息",
7759
+ "description": "扩展的授权页读取配对码对应的组织与发起人,让用户确认后再点「允许」。不需要 API Key,配对码就是凭证;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND,不区分原因。",
7760
+ "http": "GET",
7761
+ "path": "/browser/v1/byob/pairings/{code}",
7762
+ "streaming": "no",
7763
+ "pagination": false,
7764
+ "pathParams": [
7765
+ {
7766
+ "name": "code",
7767
+ "sdkName": "code",
7768
+ "description": "8 位配对码,来自创建配对码的结果。"
7769
+ }
7770
+ ],
7771
+ "query": []
7772
+ },
7773
+ {
7774
+ "resource": "browser.byob.pairings.claim",
7775
+ "method": "create",
7776
+ "summary": "认领浏览器配对码",
7777
+ "description": "用户点「允许」后,扩展用配对码认领一次,登记这个浏览器并取得 browser_id 和要拨入的 link_url。不需要 API Key,配对码就是凭证,只能使用一次;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND。请求体不合格时返回 400 且不消耗配对码。",
7778
+ "http": "POST",
7779
+ "path": "/browser/v1/byob/pairings/{code}/claim",
7780
+ "streaming": "no",
7781
+ "pagination": false,
7782
+ "pathParams": [
7783
+ {
7784
+ "name": "code",
7785
+ "sdkName": "code",
7786
+ "description": "8 位配对码,来自创建配对码的结果。"
7787
+ }
7788
+ ],
7789
+ "query": [],
7790
+ "body": {
7791
+ "required": true,
7792
+ "fields": [
7793
+ {
7794
+ "name": "browser",
7795
+ "type": "string",
7796
+ "enum": [
7797
+ "chrome",
7798
+ "edge"
7799
+ ],
7800
+ "required": true,
7801
+ "description": "要登记的浏览器种类,只支持 Chrome 和 Edge。"
7802
+ },
7803
+ {
7804
+ "name": "version",
7805
+ "type": "string",
7806
+ "required": true,
7807
+ "description": "浏览器版本号,1–64 个字符。"
7808
+ },
7809
+ {
7810
+ "name": "os",
7811
+ "type": "string",
7812
+ "required": true,
7813
+ "description": "操作系统,1–64 个字符。"
7814
+ },
7815
+ {
7816
+ "name": "name",
7817
+ "type": "string",
7818
+ "required": true,
7819
+ "description": "浏览器的显示名称,1–80 个字符。"
7820
+ },
7821
+ {
7822
+ "name": "public_key",
7823
+ "type": "string",
7824
+ "required": true,
7825
+ "description": "扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。"
7826
+ },
7827
+ {
7828
+ "name": "extension_id",
7829
+ "type": "string",
7830
+ "required": true,
7831
+ "description": "扩展 ID,1–64 个字符。"
7832
+ },
7833
+ {
7834
+ "name": "install_key",
7835
+ "type": "string",
7836
+ "required": false,
7837
+ "description": "扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。"
7838
+ }
7839
+ ]
7840
+ }
7841
+ },
7587
7842
  {
7588
7843
  "resource": "browser.connect",
7589
7844
  "method": "retrieve",
7590
7845
  "summary": "连接云端浏览器",
7591
- "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7846
+ "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl(两者都是该会话在 Console 的会话页)。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。",
7592
7847
  "http": "GET",
7593
7848
  "path": "/browser/v1/connect",
7594
7849
  "streaming": "no",
@@ -7713,6 +7968,12 @@ export const operations = [
7713
7968
  "type": "object",
7714
7969
  "required": false,
7715
7970
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。"
7971
+ },
7972
+ {
7973
+ "name": "proxy",
7974
+ "type": "object",
7975
+ "required": false,
7976
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。"
7716
7977
  }
7717
7978
  ]
7718
7979
  }
@@ -7784,6 +8045,12 @@ export const operations = [
7784
8045
  "type": "object",
7785
8046
  "required": false,
7786
8047
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。"
8048
+ },
8049
+ {
8050
+ "name": "proxy",
8051
+ "type": "object",
8052
+ "required": false,
8053
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。"
7787
8054
  }
7788
8055
  ]
7789
8056
  }
@@ -7792,7 +8059,7 @@ export const operations = [
7792
8059
  "resource": "browser.live",
7793
8060
  "method": "retrieve",
7794
8061
  "summary": "打开实时浏览器画面",
7795
- "description": "使用 debug 返回的完整实时观看地址打开浏览器画面,成功后跳转到对应会话或标签页。必须保留地址中的 t 凭证,无需额外 API Key;链接失效时重新调用 debug 获取地址。",
8062
+ "description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
7796
8063
  "http": "GET",
7797
8064
  "path": "/browser/v1/live/{sessionId}/{pageId}",
7798
8065
  "streaming": "no",
@@ -7890,7 +8157,7 @@ export const operations = [
7890
8157
  "resource": "browser.sessions",
7891
8158
  "method": "create",
7892
8159
  "summary": "创建浏览器会话",
7893
- "description": "创建云端 Chrome,返回自带凭证的 connectUrl;它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8160
+ "description": "创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。请求体里不认识的字段返回 400 INVALID_PARAMS 并写明字段名,不会被静默忽略;登录态写在 browserSettings.context({ id, persist }),写在顶层会被拒绝。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
7894
8161
  "http": "POST",
7895
8162
  "path": "/browser/v1/sessions",
7896
8163
  "streaming": "no",
@@ -7914,7 +8181,7 @@ export const operations = [
7914
8181
  "organization"
7915
8182
  ],
7916
8183
  "required": false,
7917
- "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。"
8184
+ "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。"
7918
8185
  },
7919
8186
  {
7920
8187
  "name": "keepAlive",
@@ -7938,7 +8205,13 @@ export const operations = [
7938
8205
  "name": "proxies",
7939
8206
  "type": "object",
7940
8207
  "required": false,
7941
- "description": "仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。"
8208
+ "description": "让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。"
8209
+ },
8210
+ {
8211
+ "name": "source",
8212
+ "type": "object",
8213
+ "required": false,
8214
+ "description": "选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。"
7942
8215
  },
7943
8216
  {
7944
8217
  "name": "region",
@@ -8034,7 +8307,7 @@ export const operations = [
8034
8307
  "resource": "browser.sessions.actions",
8035
8308
  "method": "create",
8036
8309
  "summary": "执行页面动作",
8037
- "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8310
+ "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;网络层用 route、unroute、routes 拦截请求(对标 Playwright 的 context.route 与 CDP Fetch 域):规则挂在会话上,open、reload、新开标签页之后仍然有效,会话结束时清除,多条规则都匹配时后注册的优先;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。",
8038
8311
  "http": "POST",
8039
8312
  "path": "/browser/v1/sessions/{sessionId}/actions",
8040
8313
  "streaming": "no",
@@ -14994,7 +15267,7 @@ export const operations = [
14994
15267
  "resource": "devops.changes",
14995
15268
  "method": "openPullRequest",
14996
15269
  "summary": "Open a change's pull request",
14997
- "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
15270
+ "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
14998
15271
  "http": "POST",
14999
15272
  "path": "/devops/v1/changes/{id}:openPullRequest",
15000
15273
  "streaming": "no",
@@ -15027,6 +15300,12 @@ export const operations = [
15027
15300
  "type": "boolean",
15028
15301
  "required": false,
15029
15302
  "description": "Open it as a draft. Defaults to false."
15303
+ },
15304
+ {
15305
+ "name": "head",
15306
+ "type": "string",
15307
+ "required": false,
15308
+ "description": "The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT."
15030
15309
  }
15031
15310
  ]
15032
15311
  }
@@ -15945,6 +16224,40 @@ export const operations = [
15945
16224
  }
15946
16225
  }
15947
16226
  },
16227
+ {
16228
+ "resource": "devops.changes.slices",
16229
+ "method": "create",
16230
+ "summary": "Open a new slice",
16231
+ "description": "Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.",
16232
+ "http": "POST",
16233
+ "path": "/devops/v1/projects/{project}/changes/{change}/slices",
16234
+ "streaming": "no",
16235
+ "pagination": false,
16236
+ "pathParams": [
16237
+ {
16238
+ "name": "project",
16239
+ "sdkName": "project",
16240
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16241
+ },
16242
+ {
16243
+ "name": "change",
16244
+ "sdkName": "change",
16245
+ "description": "The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves."
16246
+ }
16247
+ ],
16248
+ "query": [],
16249
+ "body": {
16250
+ "required": false,
16251
+ "fields": [
16252
+ {
16253
+ "name": "from",
16254
+ "type": "string",
16255
+ "required": false,
16256
+ "description": "Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges."
16257
+ }
16258
+ ]
16259
+ }
16260
+ },
15948
16261
  {
15949
16262
  "resource": "devops.projects.cleanups",
15950
16263
  "method": "list",
@@ -18544,7 +18857,7 @@ export const operations = [
18544
18857
  "resource": "devops.units",
18545
18858
  "method": "push",
18546
18859
  "summary": "Push a unit's branch",
18547
- "description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, so fetch first when unsure, reconcile, and send the new head. For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
18860
+ "description": "Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.",
18548
18861
  "http": "POST",
18549
18862
  "path": "/devops/v1/units/{id}:push",
18550
18863
  "streaming": "no",
@@ -18611,6 +18924,122 @@ export const operations = [
18611
18924
  ],
18612
18925
  "query": []
18613
18926
  },
18927
+ {
18928
+ "resource": "events.subscriptions",
18929
+ "method": "list",
18930
+ "summary": "List event subscriptions",
18931
+ "description": "See which subscriptions you still have waiting, for example to avoid subscribing twice to the same run or to find an id to delete. Only subscriptions you created, in your organization, that have not expired are listed. The list is one page of at most limit entries: next_cursor is always null today. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter or a limit outside 1 to 100.",
18932
+ "http": "GET",
18933
+ "path": "/events/v1/subscriptions",
18934
+ "streaming": "no",
18935
+ "pagination": false,
18936
+ "pathParams": [],
18937
+ "query": [
18938
+ {
18939
+ "name": "limit",
18940
+ "type": "integer",
18941
+ "required": false,
18942
+ "description": "Maximum subscriptions to return, from 1 to 100; defaults to 50."
18943
+ }
18944
+ ]
18945
+ },
18946
+ {
18947
+ "resource": "events.subscriptions",
18948
+ "method": "create",
18949
+ "summary": "Create event subscription",
18950
+ "description": "Ask to be told, as an inbox letter, when something happens to a resource of your organization. Typical use: an agent that started an automation run subscribes to `automation.run.finished` with `filters: [{ exact: { subject: \"runs/<run id>\" } }]`, then ends its turn; when the run finishes, one letter of kind event arrives in the agent's inbox and wakes it. With codemode: `const run = await praxis.automation.runs.create({ ... }); await praxis.events.subscriptions.create({ types: [\"automation.run.finished\"], filters: [{ exact: { subject: `runs/${run.id}` } }] });` Name 1 to 10 types from events.types.list; filters must all hold, may be empty, and use exact or prefix on subject, actor or a data.<field> the type declares. once defaults to true: the first match writes one letter and the subscription ends. Set once false for a standing subscription, which delivers at most 30 letters an hour, counts the matches it holds back, and never delivers an event whose actor is its own sink. expires_at defaults to 7 days from now and may be at most 30 days; a subscription past it stops matching. The sink is the caller's own inbox; the organization comes from your credential and is not a field. The letter's summary is `<type> · <subject>` and its body is the event, with the type's sensitive fields removed. Errors: 400 UNSUPPORTED_FILTER_DIALECT for any filter form other than exact and prefix; 400 INVALID_PARAMS for a type that is not a tenant type, a filter field the type does not declare, a field not listed here (the organization is never a field), too many types or filters, or an expires_at beyond 30 days; 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read, wait and call again.",
18951
+ "http": "POST",
18952
+ "path": "/events/v1/subscriptions",
18953
+ "streaming": "no",
18954
+ "pagination": false,
18955
+ "pathParams": [],
18956
+ "query": [],
18957
+ "body": {
18958
+ "required": true,
18959
+ "fields": [
18960
+ {
18961
+ "name": "types",
18962
+ "type": "array",
18963
+ "itemType": "string",
18964
+ "required": true,
18965
+ "description": "The tenant event types to hear about, from events.types.list; an event of any one of them can match."
18966
+ },
18967
+ {
18968
+ "name": "filters",
18969
+ "type": "array",
18970
+ "itemType": "object",
18971
+ "required": false,
18972
+ "description": "Conditions that must all hold for an event to match; omit or leave empty to match every event of the types."
18973
+ },
18974
+ {
18975
+ "name": "sink",
18976
+ "type": "string",
18977
+ "required": false,
18978
+ "description": "The inbox address that receives the letters, agent:<id> or human:<id>. Today only the caller's own address is accepted, which is also the default."
18979
+ },
18980
+ {
18981
+ "name": "once",
18982
+ "type": "boolean",
18983
+ "required": false,
18984
+ "description": "True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour."
18985
+ },
18986
+ {
18987
+ "name": "expires_at",
18988
+ "type": "string",
18989
+ "required": false,
18990
+ "description": "When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now."
18991
+ }
18992
+ ]
18993
+ }
18994
+ },
18995
+ {
18996
+ "resource": "events.subscriptions",
18997
+ "method": "delete",
18998
+ "summary": "Delete event subscription",
18999
+ "description": "Stop waiting for an event, for example when the run you were waiting for was canceled by you. The subscription stops matching at once and a letter already written stays in the inbox. A once subscription that has already fired is gone, so deleting it answers 404 SUBSCRIPTION_NOT_FOUND; treat that as done. Take the id from subscriptions.create or subscriptions.list.",
19000
+ "http": "DELETE",
19001
+ "path": "/events/v1/subscriptions/{subscription_id}",
19002
+ "streaming": "no",
19003
+ "pagination": false,
19004
+ "pathParams": [
19005
+ {
19006
+ "name": "subscription_id",
19007
+ "sdkName": "subscription_id",
19008
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19009
+ }
19010
+ ],
19011
+ "query": []
19012
+ },
19013
+ {
19014
+ "resource": "events.subscriptions",
19015
+ "method": "retrieve",
19016
+ "summary": "Retrieve event subscription",
19017
+ "description": "Read one subscription to check its filters, its sink and when it expires. Take the id from subscriptions.create or subscriptions.list. A subscription that does not exist, has expired, belongs to someone else or to another organization answers the same 404 SUBSCRIPTION_NOT_FOUND. Read-only.",
19018
+ "http": "GET",
19019
+ "path": "/events/v1/subscriptions/{subscription_id}",
19020
+ "streaming": "no",
19021
+ "pagination": false,
19022
+ "pathParams": [
19023
+ {
19024
+ "name": "subscription_id",
19025
+ "sdkName": "subscription_id",
19026
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19027
+ }
19028
+ ],
19029
+ "query": []
19030
+ },
19031
+ {
19032
+ "resource": "events.types",
19033
+ "method": "list",
19034
+ "summary": "List event types",
19035
+ "description": "Find which facts about your organization's resources you can subscribe to, and which filters each one allows, before you create a subscription. Each entry is one event type at one schema version: type is what you pass in subscriptions.create types, data_schema describes the event's data, and filterable lists the names a filter may use (subject, actor, and data.<field> for each top-level field of data_schema). Only tenant event types are listed; the list is generated from the platform's event declarations, so a new tenant event appears here without an API change. When a breaking change publishes a new schemaversion, both versions are listed side by side. The list is one page: next_cursor is always null today. Read-only. Errors: 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read right now; wait and call again.",
19036
+ "http": "GET",
19037
+ "path": "/events/v1/types",
19038
+ "streaming": "no",
19039
+ "pagination": false,
19040
+ "pathParams": [],
19041
+ "query": []
19042
+ },
18614
19043
  {
18615
19044
  "resource": "file.files",
18616
19045
  "method": "list",
@@ -18886,7 +19315,7 @@ export const operations = [
18886
19315
  "resource": "file.uploads",
18887
19316
  "method": "createSigned",
18888
19317
  "summary": "Create a one-time upload URL",
18889
- "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid or cross-organization URLs return 404, and so does a link whose upload record no longer exists. A URL that is authentic but names another action returns 403 CAPABILITY_MISMATCH: a status link posted to complete_url answers it, and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
19318
+ "description": "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
18890
19319
  "http": "POST",
18891
19320
  "path": "/file/v1/uploads/signed",
18892
19321
  "streaming": "no",
@@ -20879,6 +21308,42 @@ export const operations = [
20879
21308
  ],
20880
21309
  "query": []
20881
21310
  },
21311
+ {
21312
+ "resource": "media.libraries.assets.works",
21313
+ "method": "list",
21314
+ "summary": "List works using an asset",
21315
+ "description": "List the works whose body names one asset, as work summaries, most recently changed first. Check it before deleting an asset: the delete is never blocked, and those works would then show the asset as missing.",
21316
+ "http": "GET",
21317
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
21318
+ "streaming": "no",
21319
+ "pagination": true,
21320
+ "pathParams": [
21321
+ {
21322
+ "name": "library_id",
21323
+ "sdkName": "library_id",
21324
+ "description": "Library ID returned by creation."
21325
+ },
21326
+ {
21327
+ "name": "asset_id",
21328
+ "sdkName": "asset_id",
21329
+ "description": "32-character asset ID."
21330
+ }
21331
+ ],
21332
+ "query": [
21333
+ {
21334
+ "name": "limit",
21335
+ "type": "integer",
21336
+ "required": false,
21337
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
21338
+ },
21339
+ {
21340
+ "name": "cursor",
21341
+ "type": "string",
21342
+ "required": false,
21343
+ "description": "Cursor from the previous next_cursor."
21344
+ }
21345
+ ]
21346
+ },
20882
21347
  {
20883
21348
  "resource": "media.libraries.assets",
20884
21349
  "method": "batch",
@@ -22148,6 +22613,215 @@ export const operations = [
22148
22613
  ]
22149
22614
  }
22150
22615
  },
22616
+ {
22617
+ "resource": "media.libraries.works",
22618
+ "method": "list",
22619
+ "summary": "List works",
22620
+ "description": "List the works of a library as summaries, most recently changed first: id, kind, title, series, cover_url, item_count, missing_count and updated_at. Filter with kind and series (for example all platform versions of one story), match the title with q, and continue with next_cursor.",
22621
+ "http": "GET",
22622
+ "path": "/media/v1/libraries/{library_id}/works",
22623
+ "streaming": "no",
22624
+ "pagination": true,
22625
+ "pathParams": [
22626
+ {
22627
+ "name": "library_id",
22628
+ "sdkName": "library_id",
22629
+ "description": "Library ID returned by creation."
22630
+ }
22631
+ ],
22632
+ "query": [
22633
+ {
22634
+ "name": "kind",
22635
+ "type": "string",
22636
+ "enum": [
22637
+ "gallery",
22638
+ "article",
22639
+ "product_listing",
22640
+ "blocks"
22641
+ ],
22642
+ "required": false,
22643
+ "description": "Only works of this kind: gallery, article, product_listing or blocks."
22644
+ },
22645
+ {
22646
+ "name": "series",
22647
+ "type": "string",
22648
+ "required": false,
22649
+ "description": "Only works of this series."
22650
+ },
22651
+ {
22652
+ "name": "q",
22653
+ "type": "string",
22654
+ "required": false,
22655
+ "description": "Only works whose title contains this text, at most 100 characters."
22656
+ },
22657
+ {
22658
+ "name": "limit",
22659
+ "type": "integer",
22660
+ "required": false,
22661
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
22662
+ },
22663
+ {
22664
+ "name": "cursor",
22665
+ "type": "string",
22666
+ "required": false,
22667
+ "description": "Cursor from the previous next_cursor."
22668
+ }
22669
+ ]
22670
+ },
22671
+ {
22672
+ "resource": "media.libraries.works",
22673
+ "method": "create",
22674
+ "summary": "Create work",
22675
+ "description": "Create a work in a library: a gallery (图文), an article (长文), a product listing (商品图组) or a general work (blocks, 通用作品, Editor.js saved data whose image blocks name library assets in data.asset_id) that orders references to assets of this same library and adds a title and text. Upload or generate the pictures first, then send kind and body. In an article an inline image is written ![alt](asset:<asset_id>) where it should appear. Every asset the body names must be a live image or sticker of this library (a gallery item may also be a video), or the request is refused naming every bad reference and nothing is saved. Price, stock and other unknown fields are refused. Several platform versions of one story are several works with the same series. A work copies no file and changes no asset; creating one is free. Answers 201 with the work. Example: POST /media/v1/libraries/default/works with {\"kind\":\"gallery\",\"series\":\"ai-diary-01\",\"body\":{\"title\":\"AI 创业第一天就踩坑\",\"items\":[{\"asset_id\":\"<asset id>\"}]}}.",
22676
+ "http": "POST",
22677
+ "path": "/media/v1/libraries/{library_id}/works",
22678
+ "streaming": "no",
22679
+ "pagination": false,
22680
+ "pathParams": [
22681
+ {
22682
+ "name": "library_id",
22683
+ "sdkName": "library_id",
22684
+ "description": "Library ID returned by creation."
22685
+ }
22686
+ ],
22687
+ "query": [],
22688
+ "body": {
22689
+ "required": true,
22690
+ "fields": [
22691
+ {
22692
+ "name": "kind",
22693
+ "type": "string",
22694
+ "enum": [
22695
+ "gallery",
22696
+ "article",
22697
+ "product_listing",
22698
+ "blocks"
22699
+ ],
22700
+ "required": true,
22701
+ "description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
22702
+ },
22703
+ {
22704
+ "name": "body",
22705
+ "type": "object",
22706
+ "required": true
22707
+ },
22708
+ {
22709
+ "name": "series",
22710
+ "type": "string",
22711
+ "required": false,
22712
+ "description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
22713
+ },
22714
+ {
22715
+ "name": "custom",
22716
+ "type": "object",
22717
+ "required": false
22718
+ }
22719
+ ]
22720
+ }
22721
+ },
22722
+ {
22723
+ "resource": "media.libraries.works",
22724
+ "method": "delete",
22725
+ "summary": "Delete work",
22726
+ "description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
22727
+ "http": "DELETE",
22728
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22729
+ "streaming": "no",
22730
+ "pagination": false,
22731
+ "pathParams": [
22732
+ {
22733
+ "name": "library_id",
22734
+ "sdkName": "library_id",
22735
+ "description": "Library ID returned by creation."
22736
+ },
22737
+ {
22738
+ "name": "work_id",
22739
+ "sdkName": "work_id",
22740
+ "description": "Work id (wrk_…) returned by creation or listing."
22741
+ }
22742
+ ],
22743
+ "query": []
22744
+ },
22745
+ {
22746
+ "resource": "media.libraries.works",
22747
+ "method": "retrieve",
22748
+ "summary": "Get work",
22749
+ "description": "Read one work with its body, custom fields, revision and missing (asset ids deleted since; the body keeps them in place). Add expand=assets to receive every referenced asset’s type, short-lived url, thumbnail_url and size in the same answer, which is what a publish script needs to send the work out. Use work_id from creation or listing.",
22750
+ "http": "GET",
22751
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22752
+ "streaming": "no",
22753
+ "pagination": false,
22754
+ "pathParams": [
22755
+ {
22756
+ "name": "library_id",
22757
+ "sdkName": "library_id",
22758
+ "description": "Library ID returned by creation."
22759
+ },
22760
+ {
22761
+ "name": "work_id",
22762
+ "sdkName": "work_id",
22763
+ "description": "Work id (wrk_…) returned by creation or listing."
22764
+ }
22765
+ ],
22766
+ "query": [
22767
+ {
22768
+ "name": "expand",
22769
+ "type": "string",
22770
+ "required": false,
22771
+ "description": "assets returns every referenced asset with its URLs and size."
22772
+ }
22773
+ ]
22774
+ },
22775
+ {
22776
+ "resource": "media.libraries.works",
22777
+ "method": "update",
22778
+ "summary": "Update work",
22779
+ "description": "Change a work. body replaces the whole body and is checked like a new one; series replaces the series and null clears it; custom is a JSON Merge Patch (RFC 7396), so a script writing back its published link and numbers sends only its own keys and never erases keys another script wrote, and null removes a key. Send if_revision with the revision you read to apply the change only if nobody changed the work since; otherwise the answer is 409 REVISION_CONFLICT. Example: PATCH /media/v1/libraries/default/works/<work id> with {\"custom\":{\"published_url\":\"https://…\",\"stats\":{\"likes\":120}}}.",
22780
+ "http": "PATCH",
22781
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
22782
+ "streaming": "no",
22783
+ "pagination": false,
22784
+ "pathParams": [
22785
+ {
22786
+ "name": "library_id",
22787
+ "sdkName": "library_id",
22788
+ "description": "Library ID returned by creation."
22789
+ },
22790
+ {
22791
+ "name": "work_id",
22792
+ "sdkName": "work_id",
22793
+ "description": "Work id (wrk_…) returned by creation or listing."
22794
+ }
22795
+ ],
22796
+ "query": [],
22797
+ "body": {
22798
+ "required": true,
22799
+ "fields": [
22800
+ {
22801
+ "name": "body",
22802
+ "type": "object",
22803
+ "required": false
22804
+ },
22805
+ {
22806
+ "name": "series",
22807
+ "type": "string",
22808
+ "required": false,
22809
+ "description": "A new series, or null to clear it."
22810
+ },
22811
+ {
22812
+ "name": "custom",
22813
+ "type": "object",
22814
+ "required": false
22815
+ },
22816
+ {
22817
+ "name": "if_revision",
22818
+ "type": "number",
22819
+ "required": false,
22820
+ "description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
22821
+ }
22822
+ ]
22823
+ }
22824
+ },
22151
22825
  {
22152
22826
  "resource": "media.pipelines",
22153
22827
  "method": "list",
@@ -22558,7 +23232,7 @@ export const operations = [
22558
23232
  "resource": "media.streams.outputs",
22559
23233
  "method": "list",
22560
23234
  "summary": "List a stream's re-broadcast targets",
22561
- "description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the error of an errored one. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
23235
+ "description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the reason of one that is errored or trying again. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
22562
23236
  "http": "GET",
22563
23237
  "path": "/media/v1/streams/{stream_id}/outputs",
22564
23238
  "streaming": "no",
@@ -22634,7 +23308,7 @@ export const operations = [
22634
23308
  "resource": "media.streams.outputs",
22635
23309
  "method": "retrieve",
22636
23310
  "summary": "Read one re-broadcast target",
22637
- "description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
23311
+ "description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored or trying again, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22638
23312
  "http": "GET",
22639
23313
  "path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
22640
23314
  "streaming": "no",
@@ -25783,7 +26457,7 @@ export const operations = [
25783
26457
  "resource": "organization.costs",
25784
26458
  "method": "list",
25785
26459
  "summary": "List Organization Costs",
25786
- "description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole UTC hour/day periods; a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.\n",
26460
+ "description": "Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole hour or day periods in time_zone (UTC by default); a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.\n",
25787
26461
  "http": "GET",
25788
26462
  "path": "/organization/v1/costs",
25789
26463
  "streaming": "no",
@@ -25816,7 +26490,7 @@ export const operations = [
25816
26490
  "name": "time_zone",
25817
26491
  "type": "string",
25818
26492
  "required": false,
25819
- "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
26493
+ "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.\n"
25820
26494
  },
25821
26495
  {
25822
26496
  "name": "group_by",
@@ -26182,29 +26856,46 @@ export const operations = [
26182
26856
  {
26183
26857
  "resource": "organization.notifications.letters",
26184
26858
  "method": "list",
26185
- "summary": "List the letters addressed to you",
26186
- "description": "The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
26859
+ "summary": "List the letters addressed to you, or the ones you sent",
26860
+ "description": "The letters this person received (or, with direction=sent, wrote) in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.",
26187
26861
  "http": "GET",
26188
26862
  "path": "/organization/v1/notifications/letters",
26189
26863
  "streaming": "no",
26190
26864
  "pagination": false,
26191
26865
  "pathParams": [],
26192
26866
  "query": [
26867
+ {
26868
+ "name": "direction",
26869
+ "type": "string",
26870
+ "enum": [
26871
+ "received",
26872
+ "sent"
26873
+ ],
26874
+ "required": false,
26875
+ "description": "received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for."
26876
+ },
26193
26877
  {
26194
26878
  "name": "status",
26195
26879
  "type": "string",
26196
26880
  "enum": [
26197
26881
  "unread",
26198
- "read"
26882
+ "read",
26883
+ "scheduled"
26199
26884
  ],
26200
26885
  "required": false,
26201
- "description": "Only unread letters, or only read ones; omit for both."
26886
+ "description": "Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state."
26887
+ },
26888
+ {
26889
+ "name": "thread",
26890
+ "type": "string",
26891
+ "required": false,
26892
+ "description": "Only letters of this conversation, for received and sent alike; omit for all."
26202
26893
  },
26203
26894
  {
26204
26895
  "name": "archived",
26205
26896
  "type": "boolean",
26206
26897
  "required": false,
26207
- "description": "false (the default) hides archived letters; true lists only the archived ones."
26898
+ "description": "false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent."
26208
26899
  },
26209
26900
  {
26210
26901
  "name": "limit",
@@ -26220,6 +26911,64 @@ export const operations = [
26220
26911
  }
26221
26912
  ]
26222
26913
  },
26914
+ {
26915
+ "resource": "organization.notifications.letters",
26916
+ "method": "create",
26917
+ "summary": "Send a letter to a person or an agent",
26918
+ "description": "Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.",
26919
+ "http": "POST",
26920
+ "path": "/organization/v1/notifications/letters",
26921
+ "streaming": "no",
26922
+ "pagination": false,
26923
+ "pathParams": [],
26924
+ "query": [],
26925
+ "body": {
26926
+ "required": true,
26927
+ "fields": [
26928
+ {
26929
+ "name": "to",
26930
+ "type": "string",
26931
+ "required": true,
26932
+ "description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
26933
+ },
26934
+ {
26935
+ "name": "body",
26936
+ "type": "string",
26937
+ "required": true,
26938
+ "description": "The whole letter, 1 to 16000 characters."
26939
+ },
26940
+ {
26941
+ "name": "summary",
26942
+ "type": "string",
26943
+ "required": false,
26944
+ "description": "One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer."
26945
+ },
26946
+ {
26947
+ "name": "kind",
26948
+ "type": "string",
26949
+ "enum": [
26950
+ "notice",
26951
+ "mention",
26952
+ "decision"
26953
+ ],
26954
+ "required": false,
26955
+ "description": "The letter's kind; it decides the channels. Defaults to mention."
26956
+ },
26957
+ {
26958
+ "name": "thread",
26959
+ "type": "string",
26960
+ "required": false,
26961
+ "description": "The conversation the letter belongs to, free text; omit for none."
26962
+ },
26963
+ {
26964
+ "name": "deliver_at",
26965
+ "type": "string",
26966
+ "required": false,
26967
+ "description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
26968
+ }
26969
+ ]
26970
+ }
26971
+ },
26223
26972
  {
26224
26973
  "resource": "organization.notifications.letters",
26225
26974
  "method": "retrieve",
@@ -26294,7 +27043,8 @@ export const operations = [
26294
27043
  "enum": [
26295
27044
  "notice",
26296
27045
  "mention",
26297
- "decision"
27046
+ "decision",
27047
+ "event"
26298
27048
  ],
26299
27049
  "required": false,
26300
27050
  "description": "Only letters of this kind; omit for all kinds."
@@ -26302,6 +27052,124 @@ export const operations = [
26302
27052
  ]
26303
27053
  }
26304
27054
  },
27055
+ {
27056
+ "resource": "organization.notifications.messages",
27057
+ "method": "list",
27058
+ "summary": "List your bell messages",
27059
+ "description": "The calling person's bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential's own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.",
27060
+ "http": "GET",
27061
+ "path": "/organization/v1/notifications/messages",
27062
+ "streaming": "no",
27063
+ "pagination": false,
27064
+ "pathParams": [],
27065
+ "query": [
27066
+ {
27067
+ "name": "archived",
27068
+ "type": "string",
27069
+ "enum": [
27070
+ "0",
27071
+ "1"
27072
+ ],
27073
+ "required": false,
27074
+ "description": "0 (the default) lists the inbox tab, 1 lists archived messages."
27075
+ },
27076
+ {
27077
+ "name": "limit",
27078
+ "type": "integer",
27079
+ "required": false,
27080
+ "description": "Messages per page, 1 to 100; defaults to 20."
27081
+ },
27082
+ {
27083
+ "name": "page",
27084
+ "type": "string",
27085
+ "required": false,
27086
+ "description": "Opaque nextPageToken from the previous response; omit for the first page."
27087
+ }
27088
+ ]
27089
+ },
27090
+ {
27091
+ "resource": "organization.notifications.messages",
27092
+ "method": "delete",
27093
+ "summary": "Delete one of your bell messages",
27094
+ "description": "Delete one of the calling person's own bell messages for good. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.",
27095
+ "http": "DELETE",
27096
+ "path": "/organization/v1/notifications/messages/{name}",
27097
+ "streaming": "no",
27098
+ "pagination": false,
27099
+ "pathParams": [
27100
+ {
27101
+ "name": "name",
27102
+ "sdkName": "name",
27103
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27104
+ }
27105
+ ],
27106
+ "query": []
27107
+ },
27108
+ {
27109
+ "resource": "organization.notifications.messages",
27110
+ "method": "retrieve",
27111
+ "summary": "Open one of your bell messages",
27112
+ "description": "One bell message of the calling person by its name. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, without saying which. Read-only; no usage charge.",
27113
+ "http": "GET",
27114
+ "path": "/organization/v1/notifications/messages/{name}",
27115
+ "streaming": "no",
27116
+ "pagination": false,
27117
+ "pathParams": [
27118
+ {
27119
+ "name": "name",
27120
+ "sdkName": "name",
27121
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27122
+ }
27123
+ ],
27124
+ "query": []
27125
+ },
27126
+ {
27127
+ "resource": "organization.notifications.messages",
27128
+ "method": "update",
27129
+ "summary": "Mark one of your bell messages read or archived",
27130
+ "description": "Change the read or archived flag of one of the calling person's own bell messages and return it. Name at least one flag. Reading a message also tells the notification still waiting on it, so it is not emailed later as unread. A message that is not theirs answers 404 like one that does not exist. No usage charge.",
27131
+ "http": "POST",
27132
+ "path": "/organization/v1/notifications/messages/{name}",
27133
+ "streaming": "no",
27134
+ "pagination": false,
27135
+ "pathParams": [
27136
+ {
27137
+ "name": "name",
27138
+ "sdkName": "name",
27139
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27140
+ }
27141
+ ],
27142
+ "query": [],
27143
+ "body": {
27144
+ "required": true,
27145
+ "fields": [
27146
+ {
27147
+ "name": "read",
27148
+ "type": "boolean",
27149
+ "required": false,
27150
+ "description": "Mark the message read (true) or unread (false); omit to leave it."
27151
+ },
27152
+ {
27153
+ "name": "archived",
27154
+ "type": "boolean",
27155
+ "required": false,
27156
+ "description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
27157
+ }
27158
+ ]
27159
+ }
27160
+ },
27161
+ {
27162
+ "resource": "organization.notifications.messages",
27163
+ "method": "readAll",
27164
+ "summary": "Mark all your unread bell messages read",
27165
+ "description": "Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else's is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.",
27166
+ "http": "POST",
27167
+ "path": "/organization/v1/notifications/messages:readAll",
27168
+ "streaming": "no",
27169
+ "pagination": false,
27170
+ "pathParams": [],
27171
+ "query": []
27172
+ },
26305
27173
  {
26306
27174
  "resource": "organization.notifications",
26307
27175
  "method": "retrieveOrganizationDefault",
@@ -26413,7 +27281,7 @@ export const operations = [
26413
27281
  "resource": "organization.usage",
26414
27282
  "method": "list",
26415
27283
  "summary": "List Organization Usage",
26416
- "description": "Consumed quantity per time bucket per group. Buckets are whole UTC hour/day periods covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
27284
+ "description": "Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.\n",
26417
27285
  "http": "GET",
26418
27286
  "path": "/organization/v1/usage",
26419
27287
  "streaming": "no",
@@ -26446,7 +27314,7 @@ export const operations = [
26446
27314
  "name": "time_zone",
26447
27315
  "type": "string",
26448
27316
  "required": false,
26449
- "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.\n"
27317
+ "description": "IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.\n"
26450
27318
  },
26451
27319
  {
26452
27320
  "name": "group_by",
@@ -27455,7 +28323,7 @@ export const operations = [
27455
28323
  "linux"
27456
28324
  ],
27457
28325
  "required": true,
27458
- "description": "The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS."
28326
+ "description": "The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS."
27459
28327
  },
27460
28328
  {
27461
28329
  "name": "name",
@@ -27484,6 +28352,24 @@ export const operations = [
27484
28352
  ]
27485
28353
  }
27486
28354
  },
28355
+ {
28356
+ "resource": "sandbox.byod.pairings",
28357
+ "method": "status",
28358
+ "summary": "Read which device claimed your pairing",
28359
+ "description": "Read one of your organization's own pairings: its code, its deadline and the device that claimed it. Poll it after showing the QR payload to learn that this very code was claimed, instead of guessing from the device list: claimed_device is null until a phone taps Allow, then it is the device that code registered (a phone that was paired before is reused, so it is the same device id). Unlike getByodPairing this call is authenticated and organization-scoped. An unknown code and another organization's code both answer 404, so the answer never reveals that a foreign pairing exists. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS/status returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',claimed_device:null}.",
28360
+ "http": "GET",
28361
+ "path": "/sandbox/v1/byod/pairings/{code}/status",
28362
+ "streaming": "no",
28363
+ "pagination": false,
28364
+ "pathParams": [
28365
+ {
28366
+ "name": "code",
28367
+ "sdkName": "code",
28368
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
28369
+ }
28370
+ ],
28371
+ "query": []
28372
+ },
27487
28373
  {
27488
28374
  "resource": "sandbox.events.sandboxes",
27489
28375
  "method": "retrieve",
@@ -34627,7 +35513,7 @@ export const operations = [
34627
35513
  "resource": "vault.vaults",
34628
35514
  "method": "create",
34629
35515
  "summary": "Create vault",
34630
- "description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
35516
+ "description": "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
34631
35517
  "http": "POST",
34632
35518
  "path": "/vault/v1/vaults",
34633
35519
  "streaming": "no",