@deepraxis/sdk 0.2.0-dev.ed8a023 → 0.2.0-dev.f0a92dd

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",
@@ -4184,6 +4238,206 @@ export const operations = [
4184
4238
  ],
4185
4239
  "query": []
4186
4240
  },
4241
+ {
4242
+ "resource": "application.workers.logs",
4243
+ "method": "keys",
4244
+ "summary": "List log fields",
4245
+ "description": "List the fields present in this application's request logs (key, type, last seen), to build filters for logs:query or values for logs:values. Scoped to this application exactly like logs:query. Cloudflare's telemetry keys body and answer, unchanged.",
4246
+ "http": "POST",
4247
+ "path": "/application/v1/workers/{worker_id}/logs:keys",
4248
+ "streaming": "no",
4249
+ "pagination": false,
4250
+ "pathParams": [
4251
+ {
4252
+ "name": "worker_id",
4253
+ "sdkName": "worker_id",
4254
+ "description": "Worker ID (wkr_…)."
4255
+ }
4256
+ ],
4257
+ "query": [],
4258
+ "body": {
4259
+ "required": true,
4260
+ "fields": [
4261
+ {
4262
+ "name": "filters",
4263
+ "type": "array",
4264
+ "itemType": "object",
4265
+ "required": false,
4266
+ "description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
4267
+ },
4268
+ {
4269
+ "name": "from",
4270
+ "type": "integer",
4271
+ "required": false,
4272
+ "description": "Window start, epoch milliseconds."
4273
+ },
4274
+ {
4275
+ "name": "to",
4276
+ "type": "integer",
4277
+ "required": false,
4278
+ "description": "Window end, epoch milliseconds."
4279
+ },
4280
+ {
4281
+ "name": "limit",
4282
+ "type": "integer",
4283
+ "required": false,
4284
+ "description": "Maximum keys; values above 2000 are clamped."
4285
+ },
4286
+ {
4287
+ "name": "needle",
4288
+ "type": "object",
4289
+ "required": false,
4290
+ "description": "Full-text search across events; Cloudflare's shape."
4291
+ }
4292
+ ]
4293
+ }
4294
+ },
4295
+ {
4296
+ "resource": "application.workers.logs",
4297
+ "method": "query",
4298
+ "summary": "Query Worker logs",
4299
+ "description": "Read this application's request logs for a time window: individual log lines (view events) or aggregates (calculations), with Cloudflare's filters, group-bys and pagination. The body is Cloudflare's Workers Observability query body and the answer its result, field for field, so examples from Cloudflare's documentation work as they are. The server scopes every read to this application: it adds the application's script name as a filter, forces the dataset to cloudflare-workers and drops any caller filter on the script or dataset, so one application never reads another's logs. Logs are kept 7 days and start once the next deployment runs with observability on (on by default). Use logs:keys and logs:values to discover the fields to filter on, and the Worker's events (ListEvents) for lifecycle rather than request logs.",
4300
+ "http": "POST",
4301
+ "path": "/application/v1/workers/{worker_id}/logs:query",
4302
+ "streaming": "no",
4303
+ "pagination": false,
4304
+ "pathParams": [
4305
+ {
4306
+ "name": "worker_id",
4307
+ "sdkName": "worker_id",
4308
+ "description": "Worker ID (wkr_…)."
4309
+ }
4310
+ ],
4311
+ "query": [],
4312
+ "body": {
4313
+ "required": true,
4314
+ "fields": [
4315
+ {
4316
+ "name": "timeframe",
4317
+ "type": "object",
4318
+ "required": true,
4319
+ "description": "The window to read; required, at most 7 days (the retention), from earlier than to."
4320
+ },
4321
+ {
4322
+ "name": "view",
4323
+ "type": "string",
4324
+ "enum": [
4325
+ "events",
4326
+ "calculations"
4327
+ ],
4328
+ "required": false,
4329
+ "description": "What the query returns: events (individual log lines, the default) or calculations (aggregates)."
4330
+ },
4331
+ {
4332
+ "name": "limit",
4333
+ "type": "integer",
4334
+ "required": false,
4335
+ "description": "Events per page (or group-by rows for calculations); values above 2000 are clamped to 2000."
4336
+ },
4337
+ {
4338
+ "name": "offset",
4339
+ "type": "string",
4340
+ "required": false,
4341
+ "description": "Cursor to the next page: the $metadata.id of the last event of the previous page."
4342
+ },
4343
+ {
4344
+ "name": "compare",
4345
+ "type": "boolean",
4346
+ "required": false,
4347
+ "description": "Include a comparison dataset from the previous window of equal length."
4348
+ },
4349
+ {
4350
+ "name": "dry",
4351
+ "type": "boolean",
4352
+ "required": false,
4353
+ "description": "Validate and run without persisting the query."
4354
+ },
4355
+ {
4356
+ "name": "granularity",
4357
+ "type": "integer",
4358
+ "required": false,
4359
+ "description": "Number of time-series buckets for calculations; omitting lets Cloudflare decide."
4360
+ },
4361
+ {
4362
+ "name": "chart",
4363
+ "type": "boolean",
4364
+ "required": false,
4365
+ "description": "Include time-series data in the response."
4366
+ },
4367
+ {
4368
+ "name": "parameters",
4369
+ "type": "object",
4370
+ "required": false,
4371
+ "description": "Cloudflare's parameters object, passed through: filters, filterCombination, calculations, groupBys, havings, orderBy, needle and datasets are Cloudflare's own fields. The server forces datasets to cloudflare-workers, adds the Worker's script as a filter, forces filterCombination to and, and drops any caller filter on $metadata.service, $workers.scriptName or dataset, so a query can never read another application's events."
4372
+ }
4373
+ ]
4374
+ }
4375
+ },
4376
+ {
4377
+ "resource": "application.workers.logs",
4378
+ "method": "values",
4379
+ "summary": "List log field values",
4380
+ "description": "List the distinct values a field takes in this application's request logs within a window, to build filters whose values actually match (for example the levels that occur). Scoped to this application exactly like logs:query. Cloudflare's telemetry values body and answer, unchanged.",
4381
+ "http": "POST",
4382
+ "path": "/application/v1/workers/{worker_id}/logs:values",
4383
+ "streaming": "no",
4384
+ "pagination": false,
4385
+ "pathParams": [
4386
+ {
4387
+ "name": "worker_id",
4388
+ "sdkName": "worker_id",
4389
+ "description": "Worker ID (wkr_…)."
4390
+ }
4391
+ ],
4392
+ "query": [],
4393
+ "body": {
4394
+ "required": true,
4395
+ "fields": [
4396
+ {
4397
+ "name": "key",
4398
+ "type": "string",
4399
+ "required": true,
4400
+ "description": "The field whose values to list, e.g. $metadata.level; discover fields with logs:keys."
4401
+ },
4402
+ {
4403
+ "name": "type",
4404
+ "type": "string",
4405
+ "enum": [
4406
+ "string",
4407
+ "number",
4408
+ "boolean"
4409
+ ],
4410
+ "required": true,
4411
+ "description": "Type of the field, as keys reports it."
4412
+ },
4413
+ {
4414
+ "name": "timeframe",
4415
+ "type": "object",
4416
+ "required": true,
4417
+ "description": "The window to read; required, at most 7 days."
4418
+ },
4419
+ {
4420
+ "name": "filters",
4421
+ "type": "array",
4422
+ "itemType": "object",
4423
+ "required": false,
4424
+ "description": "Cloudflare filters, narrowed by the server to this Worker; filters on $metadata.service, $workers.scriptName or dataset are dropped."
4425
+ },
4426
+ {
4427
+ "name": "limit",
4428
+ "type": "integer",
4429
+ "required": false,
4430
+ "description": "Maximum values; values above 2000 are clamped."
4431
+ },
4432
+ {
4433
+ "name": "needle",
4434
+ "type": "object",
4435
+ "required": false,
4436
+ "description": "Full-text search across events; Cloudflare's shape."
4437
+ }
4438
+ ]
4439
+ }
4440
+ },
4187
4441
  {
4188
4442
  "resource": "application.workers",
4189
4443
  "method": "restore",
@@ -4609,13 +4863,13 @@ export const operations = [
4609
4863
  "summary": "Get an Action with its current input and output JSON Schemas",
4610
4864
  "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
4865
  "http": "GET",
4612
- "path": "/automation/v1/actions/{ns}/{name}",
4866
+ "path": "/automation/v1/actions/{namespace}/{name}",
4613
4867
  "streaming": "no",
4614
4868
  "pagination": false,
4615
4869
  "pathParams": [
4616
4870
  {
4617
- "name": "ns",
4618
- "sdkName": "ns",
4871
+ "name": "namespace",
4872
+ "sdkName": "namespace",
4619
4873
  "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
4874
  },
4621
4875
  {
@@ -4632,13 +4886,13 @@ export const operations = [
4632
4886
  "summary": "Update an action",
4633
4887
  "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
4888
  "http": "PUT",
4635
- "path": "/automation/v1/actions/{ns}/{name}",
4889
+ "path": "/automation/v1/actions/{namespace}/{name}",
4636
4890
  "streaming": "no",
4637
4891
  "pagination": false,
4638
4892
  "pathParams": [
4639
4893
  {
4640
- "name": "ns",
4641
- "sdkName": "ns",
4894
+ "name": "namespace",
4895
+ "sdkName": "namespace",
4642
4896
  "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
4897
  },
4644
4898
  {
@@ -4730,13 +4984,13 @@ export const operations = [
4730
4984
  "summary": "Archive an action",
4731
4985
  "description": "Archive the action while retaining its name and history, hiding it from the default list. The response includes dependents_count.",
4732
4986
  "http": "POST",
4733
- "path": "/automation/v1/actions/{ns}/{name}/archive",
4987
+ "path": "/automation/v1/actions/{namespace}/{name}/archive",
4734
4988
  "streaming": "no",
4735
4989
  "pagination": false,
4736
4990
  "pathParams": [
4737
4991
  {
4738
- "name": "ns",
4739
- "sdkName": "ns",
4992
+ "name": "namespace",
4993
+ "sdkName": "namespace",
4740
4994
  "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
4995
  },
4742
4996
  {
@@ -4757,13 +5011,13 @@ export const operations = [
4757
5011
  "summary": "List action dependents",
4758
5012
  "description": "List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.",
4759
5013
  "http": "GET",
4760
- "path": "/automation/v1/actions/{ns}/{name}/dependents",
5014
+ "path": "/automation/v1/actions/{namespace}/{name}/dependents",
4761
5015
  "streaming": "no",
4762
5016
  "pagination": true,
4763
5017
  "pathParams": [
4764
5018
  {
4765
- "name": "ns",
4766
- "sdkName": "ns",
5019
+ "name": "namespace",
5020
+ "sdkName": "namespace",
4767
5021
  "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
5022
  },
4769
5023
  {
@@ -4793,13 +5047,13 @@ export const operations = [
4793
5047
  "summary": "List action invocations",
4794
5048
  "description": "List this action’s invocations, filtering by status, revision, calling definition and time. Results identify the run and call site.",
4795
5049
  "http": "GET",
4796
- "path": "/automation/v1/actions/{ns}/{name}/invocations",
5050
+ "path": "/automation/v1/actions/{namespace}/{name}/invocations",
4797
5051
  "streaming": "no",
4798
5052
  "pagination": true,
4799
5053
  "pathParams": [
4800
5054
  {
4801
- "name": "ns",
4802
- "sdkName": "ns",
5055
+ "name": "namespace",
5056
+ "sdkName": "namespace",
4803
5057
  "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
5058
  },
4805
5059
  {
@@ -4870,13 +5124,13 @@ export const operations = [
4870
5124
  "summary": "Restore an action",
4871
5125
  "description": "Restore an archived action to the default list. Its current revision is preserved.",
4872
5126
  "http": "POST",
4873
- "path": "/automation/v1/actions/{ns}/{name}/restore",
5127
+ "path": "/automation/v1/actions/{namespace}/{name}/restore",
4874
5128
  "streaming": "no",
4875
5129
  "pagination": false,
4876
5130
  "pathParams": [
4877
5131
  {
4878
- "name": "ns",
4879
- "sdkName": "ns",
5132
+ "name": "namespace",
5133
+ "sdkName": "namespace",
4880
5134
  "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
5135
  },
4882
5136
  {
@@ -4897,13 +5151,13 @@ export const operations = [
4897
5151
  "summary": "List action revisions",
4898
5152
  "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
5153
  "http": "GET",
4900
- "path": "/automation/v1/actions/{ns}/{name}/revisions",
5154
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions",
4901
5155
  "streaming": "no",
4902
5156
  "pagination": true,
4903
5157
  "pathParams": [
4904
5158
  {
4905
- "name": "ns",
4906
- "sdkName": "ns",
5159
+ "name": "namespace",
5160
+ "sdkName": "namespace",
4907
5161
  "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
5162
  },
4909
5163
  {
@@ -4942,13 +5196,13 @@ export const operations = [
4942
5196
  "summary": "Get an action revision",
4943
5197
  "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
5198
  "http": "GET",
4945
- "path": "/automation/v1/actions/{ns}/{name}/revisions/{revision}",
5199
+ "path": "/automation/v1/actions/{namespace}/{name}/revisions/{revision}",
4946
5200
  "streaming": "no",
4947
5201
  "pagination": false,
4948
5202
  "pathParams": [
4949
5203
  {
4950
- "name": "ns",
4951
- "sdkName": "ns",
5204
+ "name": "namespace",
5205
+ "sdkName": "namespace",
4952
5206
  "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
5207
  },
4954
5208
  {
@@ -4970,13 +5224,13 @@ export const operations = [
4970
5224
  "summary": "Roll back an action",
4971
5225
  "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
5226
  "http": "POST",
4973
- "path": "/automation/v1/actions/{ns}/{name}/rollback",
5227
+ "path": "/automation/v1/actions/{namespace}/{name}/rollback",
4974
5228
  "streaming": "no",
4975
5229
  "pagination": false,
4976
5230
  "pathParams": [
4977
5231
  {
4978
- "name": "ns",
4979
- "sdkName": "ns",
5232
+ "name": "namespace",
5233
+ "sdkName": "namespace",
4980
5234
  "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
5235
  },
4982
5236
  {
@@ -5016,7 +5270,7 @@ export const operations = [
5016
5270
  "resource": "automation.hooks",
5017
5271
  "method": "send",
5018
5272
  "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.",
5273
+ "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
5274
  "http": "POST",
5021
5275
  "path": "/automation/v1/hooks/{trigger_id}/{token}",
5022
5276
  "streaming": "no",
@@ -5107,13 +5361,13 @@ export const operations = [
5107
5361
  "summary": "Retrieve a human task",
5108
5362
  "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
5363
  "http": "GET",
5110
- "path": "/automation/v1/human-tasks/{id}",
5364
+ "path": "/automation/v1/human-tasks/{task_id}",
5111
5365
  "streaming": "no",
5112
5366
  "pagination": false,
5113
5367
  "pathParams": [
5114
5368
  {
5115
- "name": "id",
5116
- "sdkName": "id",
5369
+ "name": "task_id",
5370
+ "sdkName": "task_id",
5117
5371
  "description": "Human task ID (htask_), from the list or the run's waits."
5118
5372
  }
5119
5373
  ],
@@ -5125,13 +5379,13 @@ export const operations = [
5125
5379
  "summary": "Cancel a human task",
5126
5380
  "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
5381
  "http": "POST",
5128
- "path": "/automation/v1/human-tasks/{id}/cancel",
5382
+ "path": "/automation/v1/human-tasks/{task_id}/cancel",
5129
5383
  "streaming": "no",
5130
5384
  "pagination": false,
5131
5385
  "pathParams": [
5132
5386
  {
5133
- "name": "id",
5134
- "sdkName": "id",
5387
+ "name": "task_id",
5388
+ "sdkName": "task_id",
5135
5389
  "description": "Human task ID (htask_)."
5136
5390
  }
5137
5391
  ],
@@ -5154,13 +5408,13 @@ export const operations = [
5154
5408
  "summary": "Delegate a human task",
5155
5409
  "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
5410
  "http": "POST",
5157
- "path": "/automation/v1/human-tasks/{id}/delegate",
5411
+ "path": "/automation/v1/human-tasks/{task_id}/delegate",
5158
5412
  "streaming": "no",
5159
5413
  "pagination": false,
5160
5414
  "pathParams": [
5161
5415
  {
5162
- "name": "id",
5163
- "sdkName": "id",
5416
+ "name": "task_id",
5417
+ "sdkName": "task_id",
5164
5418
  "description": "Human task ID (htask_)."
5165
5419
  }
5166
5420
  ],
@@ -5183,13 +5437,13 @@ export const operations = [
5183
5437
  "summary": "Respond to a human task",
5184
5438
  "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
5439
  "http": "POST",
5186
- "path": "/automation/v1/human-tasks/{id}/respond",
5440
+ "path": "/automation/v1/human-tasks/{task_id}/respond",
5187
5441
  "streaming": "no",
5188
5442
  "pagination": false,
5189
5443
  "pathParams": [
5190
5444
  {
5191
- "name": "id",
5192
- "sdkName": "id",
5445
+ "name": "task_id",
5446
+ "sdkName": "task_id",
5193
5447
  "description": "Human task ID (htask_)."
5194
5448
  }
5195
5449
  ],
@@ -5326,7 +5580,7 @@ export const operations = [
5326
5580
  "trigger"
5327
5581
  ],
5328
5582
  "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."
5583
+ "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
5584
  },
5331
5585
  {
5332
5586
  "name": "initiator",
@@ -5416,13 +5670,13 @@ export const operations = [
5416
5670
  "summary": "Get a run",
5417
5671
  "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
5672
  "http": "GET",
5419
- "path": "/automation/v1/runs/{id}",
5673
+ "path": "/automation/v1/runs/{run_id}",
5420
5674
  "streaming": "no",
5421
5675
  "pagination": false,
5422
5676
  "pathParams": [
5423
5677
  {
5424
- "name": "id",
5425
- "sdkName": "id",
5678
+ "name": "run_id",
5679
+ "sdkName": "run_id",
5426
5680
  "description": "Run ID (run_)."
5427
5681
  }
5428
5682
  ],
@@ -5455,13 +5709,13 @@ export const operations = [
5455
5709
  "summary": "List run artifacts",
5456
5710
  "description": "Read run artifacts and their file references. Entries follow ledger order and include content types, sizes and associated steps.",
5457
5711
  "http": "GET",
5458
- "path": "/automation/v1/runs/{id}/artifacts",
5712
+ "path": "/automation/v1/runs/{run_id}/artifacts",
5459
5713
  "streaming": "no",
5460
5714
  "pagination": true,
5461
5715
  "pathParams": [
5462
5716
  {
5463
- "name": "id",
5464
- "sdkName": "id",
5717
+ "name": "run_id",
5718
+ "sdkName": "run_id",
5465
5719
  "description": "Run ID (run_)."
5466
5720
  }
5467
5721
  ],
@@ -5486,13 +5740,13 @@ export const operations = [
5486
5740
  "summary": "List run calls",
5487
5741
  "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
5742
  "http": "GET",
5489
- "path": "/automation/v1/runs/{id}/calls",
5743
+ "path": "/automation/v1/runs/{run_id}/calls",
5490
5744
  "streaming": "no",
5491
5745
  "pagination": true,
5492
5746
  "pathParams": [
5493
5747
  {
5494
- "name": "id",
5495
- "sdkName": "id",
5748
+ "name": "run_id",
5749
+ "sdkName": "run_id",
5496
5750
  "description": "Run ID (run_)."
5497
5751
  }
5498
5752
  ],
@@ -5517,13 +5771,13 @@ export const operations = [
5517
5771
  "summary": "Cancel a run",
5518
5772
  "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
5773
  "http": "POST",
5520
- "path": "/automation/v1/runs/{id}/cancel",
5774
+ "path": "/automation/v1/runs/{run_id}/cancel",
5521
5775
  "streaming": "no",
5522
5776
  "pagination": false,
5523
5777
  "pathParams": [
5524
5778
  {
5525
- "name": "id",
5526
- "sdkName": "id",
5779
+ "name": "run_id",
5780
+ "sdkName": "run_id",
5527
5781
  "description": "Run ID (run_)."
5528
5782
  }
5529
5783
  ],
@@ -5546,13 +5800,13 @@ export const operations = [
5546
5800
  "summary": "Read run events",
5547
5801
  "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
5802
  "http": "GET",
5549
- "path": "/automation/v1/runs/{id}/events",
5803
+ "path": "/automation/v1/runs/{run_id}/events",
5550
5804
  "streaming": "always",
5551
5805
  "pagination": false,
5552
5806
  "pathParams": [
5553
5807
  {
5554
- "name": "id",
5555
- "sdkName": "id",
5808
+ "name": "run_id",
5809
+ "sdkName": "run_id",
5556
5810
  "description": "Run ID (run_)."
5557
5811
  }
5558
5812
  ],
@@ -5585,13 +5839,13 @@ export const operations = [
5585
5839
  "summary": "Read run logs",
5586
5840
  "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
5841
  "http": "GET",
5588
- "path": "/automation/v1/runs/{id}/logs",
5842
+ "path": "/automation/v1/runs/{run_id}/logs",
5589
5843
  "streaming": "always",
5590
5844
  "pagination": false,
5591
5845
  "pathParams": [
5592
5846
  {
5593
- "name": "id",
5594
- "sdkName": "id",
5847
+ "name": "run_id",
5848
+ "sdkName": "run_id",
5595
5849
  "description": "Run ID (run_)."
5596
5850
  }
5597
5851
  ],
@@ -5624,13 +5878,13 @@ export const operations = [
5624
5878
  "summary": "Rerun a run",
5625
5879
  "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
5880
  "http": "POST",
5627
- "path": "/automation/v1/runs/{id}/rerun",
5881
+ "path": "/automation/v1/runs/{run_id}/rerun",
5628
5882
  "streaming": "no",
5629
5883
  "pagination": false,
5630
5884
  "pathParams": [
5631
5885
  {
5632
- "name": "id",
5633
- "sdkName": "id",
5886
+ "name": "run_id",
5887
+ "sdkName": "run_id",
5634
5888
  "description": "Run ID (run_)."
5635
5889
  }
5636
5890
  ],
@@ -5653,13 +5907,13 @@ export const operations = [
5653
5907
  "summary": "Resume a run",
5654
5908
  "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
5909
  "http": "POST",
5656
- "path": "/automation/v1/runs/{id}/resume",
5910
+ "path": "/automation/v1/runs/{run_id}/resume",
5657
5911
  "streaming": "no",
5658
5912
  "pagination": false,
5659
5913
  "pathParams": [
5660
5914
  {
5661
- "name": "id",
5662
- "sdkName": "id",
5915
+ "name": "run_id",
5916
+ "sdkName": "run_id",
5663
5917
  "description": "Run ID (run_)."
5664
5918
  }
5665
5919
  ],
@@ -5675,13 +5929,13 @@ export const operations = [
5675
5929
  "summary": "Get run source",
5676
5930
  "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
5931
  "http": "GET",
5678
- "path": "/automation/v1/runs/{id}/source",
5932
+ "path": "/automation/v1/runs/{run_id}/source",
5679
5933
  "streaming": "no",
5680
5934
  "pagination": false,
5681
5935
  "pathParams": [
5682
5936
  {
5683
- "name": "id",
5684
- "sdkName": "id",
5937
+ "name": "run_id",
5938
+ "sdkName": "run_id",
5685
5939
  "description": "Run ID (run_)."
5686
5940
  }
5687
5941
  ],
@@ -5693,13 +5947,13 @@ export const operations = [
5693
5947
  "summary": "Suspend a run",
5694
5948
  "description": "Suspend only a running or waiting workflow. Scripts return OPERATION_NOT_SUPPORTED; other states return RUN_INVALID_STATE.",
5695
5949
  "http": "POST",
5696
- "path": "/automation/v1/runs/{id}/suspend",
5950
+ "path": "/automation/v1/runs/{run_id}/suspend",
5697
5951
  "streaming": "no",
5698
5952
  "pagination": false,
5699
5953
  "pathParams": [
5700
5954
  {
5701
- "name": "id",
5702
- "sdkName": "id",
5955
+ "name": "run_id",
5956
+ "sdkName": "run_id",
5703
5957
  "description": "Run ID (run_)."
5704
5958
  }
5705
5959
  ],
@@ -5715,13 +5969,13 @@ export const operations = [
5715
5969
  "summary": "List run tasks",
5716
5970
  "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
5971
  "http": "GET",
5718
- "path": "/automation/v1/runs/{id}/tasks",
5972
+ "path": "/automation/v1/runs/{run_id}/tasks",
5719
5973
  "streaming": "no",
5720
5974
  "pagination": true,
5721
5975
  "pathParams": [
5722
5976
  {
5723
- "name": "id",
5724
- "sdkName": "id",
5977
+ "name": "run_id",
5978
+ "sdkName": "run_id",
5725
5979
  "description": "Run ID (run_)."
5726
5980
  }
5727
5981
  ],
@@ -5764,13 +6018,13 @@ export const operations = [
5764
6018
  "summary": "List run waits",
5765
6019
  "description": "List current and historical waits in ledger order. Wait types include event, timer and child.",
5766
6020
  "http": "GET",
5767
- "path": "/automation/v1/runs/{id}/waits",
6021
+ "path": "/automation/v1/runs/{run_id}/waits",
5768
6022
  "streaming": "no",
5769
6023
  "pagination": true,
5770
6024
  "pathParams": [
5771
6025
  {
5772
- "name": "id",
5773
- "sdkName": "id",
6026
+ "name": "run_id",
6027
+ "sdkName": "run_id",
5774
6028
  "description": "Run ID (run_)."
5775
6029
  }
5776
6030
  ],
@@ -5795,13 +6049,13 @@ export const operations = [
5795
6049
  "summary": "Complete a run wait",
5796
6050
  "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
6051
  "http": "POST",
5798
- "path": "/automation/v1/runs/{id}/waits/{wait_id}/complete",
6052
+ "path": "/automation/v1/runs/{run_id}/waits/{wait_id}/complete",
5799
6053
  "streaming": "no",
5800
6054
  "pagination": false,
5801
6055
  "pathParams": [
5802
6056
  {
5803
- "name": "id",
5804
- "sdkName": "id",
6057
+ "name": "run_id",
6058
+ "sdkName": "run_id",
5805
6059
  "description": "Run ID (run_)."
5806
6060
  },
5807
6061
  {
@@ -5906,7 +6160,7 @@ export const operations = [
5906
6160
  "resource": "automation.scripts",
5907
6161
  "method": "create",
5908
6162
  "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.",
6163
+ "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
6164
  "http": "POST",
5911
6165
  "path": "/automation/v1/scripts",
5912
6166
  "streaming": "no",
@@ -5936,9 +6190,9 @@ export const operations = [
5936
6190
  },
5937
6191
  {
5938
6192
  "name": "draft",
5939
- "type": "string",
6193
+ "type": "object",
5940
6194
  "required": false,
5941
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
6195
+ "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
6196
  },
5943
6197
  {
5944
6198
  "name": "labels",
@@ -5953,15 +6207,15 @@ export const operations = [
5953
6207
  "resource": "automation.scripts",
5954
6208
  "method": "retrieve",
5955
6209
  "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.",
6210
+ "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
6211
  "http": "GET",
5958
- "path": "/automation/v1/scripts/{ns}/{name}",
6212
+ "path": "/automation/v1/scripts/{namespace}/{name}",
5959
6213
  "streaming": "no",
5960
6214
  "pagination": false,
5961
6215
  "pathParams": [
5962
6216
  {
5963
- "name": "ns",
5964
- "sdkName": "ns",
6217
+ "name": "namespace",
6218
+ "sdkName": "namespace",
5965
6219
  "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
6220
  },
5967
6221
  {
@@ -5976,15 +6230,15 @@ export const operations = [
5976
6230
  "resource": "automation.scripts",
5977
6231
  "method": "update",
5978
6232
  "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.",
6233
+ "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
6234
  "http": "PATCH",
5981
- "path": "/automation/v1/scripts/{ns}/{name}",
6235
+ "path": "/automation/v1/scripts/{namespace}/{name}",
5982
6236
  "streaming": "no",
5983
6237
  "pagination": false,
5984
6238
  "pathParams": [
5985
6239
  {
5986
- "name": "ns",
5987
- "sdkName": "ns",
6240
+ "name": "namespace",
6241
+ "sdkName": "namespace",
5988
6242
  "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
6243
  },
5990
6244
  {
@@ -5998,8 +6252,8 @@ export const operations = [
5998
6252
  {
5999
6253
  "name": "If-Match",
6000
6254
  "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."
6255
+ "required": false,
6256
+ "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
6257
  }
6004
6258
  ],
6005
6259
  "body": {
@@ -6019,9 +6273,9 @@ export const operations = [
6019
6273
  },
6020
6274
  {
6021
6275
  "name": "draft",
6022
- "type": "string",
6276
+ "type": "object",
6023
6277
  "required": false,
6024
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
6278
+ "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
6279
  }
6026
6280
  ]
6027
6281
  }
@@ -6032,13 +6286,13 @@ export const operations = [
6032
6286
  "summary": "Archive a script",
6033
6287
  "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
6288
  "http": "POST",
6035
- "path": "/automation/v1/scripts/{ns}/{name}/archive",
6289
+ "path": "/automation/v1/scripts/{namespace}/{name}/archive",
6036
6290
  "streaming": "no",
6037
6291
  "pagination": false,
6038
6292
  "pathParams": [
6039
6293
  {
6040
- "name": "ns",
6041
- "sdkName": "ns",
6294
+ "name": "namespace",
6295
+ "sdkName": "namespace",
6042
6296
  "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
6297
  },
6044
6298
  {
@@ -6059,13 +6313,13 @@ export const operations = [
6059
6313
  "summary": "List script tags",
6060
6314
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
6061
6315
  "http": "GET",
6062
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags",
6316
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags",
6063
6317
  "streaming": "no",
6064
6318
  "pagination": false,
6065
6319
  "pathParams": [
6066
6320
  {
6067
- "name": "ns",
6068
- "sdkName": "ns",
6321
+ "name": "namespace",
6322
+ "sdkName": "namespace",
6069
6323
  "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
6324
  },
6071
6325
  {
@@ -6082,13 +6336,13 @@ export const operations = [
6082
6336
  "summary": "Delete a script tag",
6083
6337
  "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
6338
  "http": "DELETE",
6085
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6339
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6086
6340
  "streaming": "no",
6087
6341
  "pagination": false,
6088
6342
  "pathParams": [
6089
6343
  {
6090
- "name": "ns",
6091
- "sdkName": "ns",
6344
+ "name": "namespace",
6345
+ "sdkName": "namespace",
6092
6346
  "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
6347
  },
6094
6348
  {
@@ -6110,13 +6364,13 @@ export const operations = [
6110
6364
  "summary": "Set a script tag",
6111
6365
  "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
6366
  "http": "PUT",
6113
- "path": "/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}",
6367
+ "path": "/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}",
6114
6368
  "streaming": "no",
6115
6369
  "pagination": false,
6116
6370
  "pathParams": [
6117
6371
  {
6118
- "name": "ns",
6119
- "sdkName": "ns",
6372
+ "name": "namespace",
6373
+ "sdkName": "namespace",
6120
6374
  "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
6375
  },
6122
6376
  {
@@ -6149,13 +6403,13 @@ export const operations = [
6149
6403
  "summary": "Restore a script",
6150
6404
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
6151
6405
  "http": "POST",
6152
- "path": "/automation/v1/scripts/{ns}/{name}/restore",
6406
+ "path": "/automation/v1/scripts/{namespace}/{name}/restore",
6153
6407
  "streaming": "no",
6154
6408
  "pagination": false,
6155
6409
  "pathParams": [
6156
6410
  {
6157
- "name": "ns",
6158
- "sdkName": "ns",
6411
+ "name": "namespace",
6412
+ "sdkName": "namespace",
6159
6413
  "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
6414
  },
6161
6415
  {
@@ -6176,13 +6430,13 @@ export const operations = [
6176
6430
  "summary": "List script vault bindings",
6177
6431
  "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
6432
  "http": "GET",
6179
- "path": "/automation/v1/scripts/{ns}/{name}/vaults",
6433
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults",
6180
6434
  "streaming": "no",
6181
6435
  "pagination": false,
6182
6436
  "pathParams": [
6183
6437
  {
6184
- "name": "ns",
6185
- "sdkName": "ns",
6438
+ "name": "namespace",
6439
+ "sdkName": "namespace",
6186
6440
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6187
6441
  },
6188
6442
  {
@@ -6199,13 +6453,13 @@ export const operations = [
6199
6453
  "summary": "Delete a script vault binding",
6200
6454
  "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
6455
  "http": "DELETE",
6202
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6456
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6203
6457
  "streaming": "no",
6204
6458
  "pagination": false,
6205
6459
  "pathParams": [
6206
6460
  {
6207
- "name": "ns",
6208
- "sdkName": "ns",
6461
+ "name": "namespace",
6462
+ "sdkName": "namespace",
6209
6463
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6210
6464
  },
6211
6465
  {
@@ -6227,13 +6481,13 @@ export const operations = [
6227
6481
  "summary": "Set a script vault binding",
6228
6482
  "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
6483
  "http": "PUT",
6230
- "path": "/automation/v1/scripts/{ns}/{name}/vaults/{alias}",
6484
+ "path": "/automation/v1/scripts/{namespace}/{name}/vaults/{alias}",
6231
6485
  "streaming": "no",
6232
6486
  "pagination": false,
6233
6487
  "pathParams": [
6234
6488
  {
6235
- "name": "ns",
6236
- "sdkName": "ns",
6489
+ "name": "namespace",
6490
+ "sdkName": "namespace",
6237
6491
  "description": "Namespace from automation.scripts.list or create; identifies the saved script, independently of versions."
6238
6492
  },
6239
6493
  {
@@ -6266,13 +6520,13 @@ export const operations = [
6266
6520
  "summary": "List script versions",
6267
6521
  "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
6522
  "http": "GET",
6269
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6523
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6270
6524
  "streaming": "no",
6271
6525
  "pagination": true,
6272
6526
  "pathParams": [
6273
6527
  {
6274
- "name": "ns",
6275
- "sdkName": "ns",
6528
+ "name": "namespace",
6529
+ "sdkName": "namespace",
6276
6530
  "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
6531
  },
6278
6532
  {
@@ -6312,15 +6566,15 @@ export const operations = [
6312
6566
  "publish"
6313
6567
  ],
6314
6568
  "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.",
6569
+ "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
6570
  "http": "POST",
6317
- "path": "/automation/v1/scripts/{ns}/{name}/versions",
6571
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions",
6318
6572
  "streaming": "no",
6319
6573
  "pagination": false,
6320
6574
  "pathParams": [
6321
6575
  {
6322
- "name": "ns",
6323
- "sdkName": "ns",
6576
+ "name": "namespace",
6577
+ "sdkName": "namespace",
6324
6578
  "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
6579
  },
6326
6580
  {
@@ -6341,13 +6595,13 @@ export const operations = [
6341
6595
  "summary": "Get a script version",
6342
6596
  "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
6597
  "http": "GET",
6344
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}",
6598
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}",
6345
6599
  "streaming": "no",
6346
6600
  "pagination": false,
6347
6601
  "pathParams": [
6348
6602
  {
6349
- "name": "ns",
6350
- "sdkName": "ns",
6603
+ "name": "namespace",
6604
+ "sdkName": "namespace",
6351
6605
  "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
6606
  },
6353
6607
  {
@@ -6369,13 +6623,13 @@ export const operations = [
6369
6623
  "summary": "Deprecate a script version",
6370
6624
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
6371
6625
  "http": "POST",
6372
- "path": "/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate",
6626
+ "path": "/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate",
6373
6627
  "streaming": "no",
6374
6628
  "pagination": false,
6375
6629
  "pathParams": [
6376
6630
  {
6377
- "name": "ns",
6378
- "sdkName": "ns",
6631
+ "name": "namespace",
6632
+ "sdkName": "namespace",
6379
6633
  "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
6634
  },
6381
6635
  {
@@ -6526,7 +6780,7 @@ export const operations = [
6526
6780
  "expired"
6527
6781
  ],
6528
6782
  "required": false,
6529
- "description": "Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6783
+ "description": "Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value."
6530
6784
  },
6531
6785
  {
6532
6786
  "name": "labels",
@@ -6545,6 +6799,18 @@ export const operations = [
6545
6799
  "type": "string",
6546
6800
  "required": false,
6547
6801
  "description": "Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone."
6802
+ },
6803
+ {
6804
+ "name": "status",
6805
+ "type": "array",
6806
+ "itemType": "string",
6807
+ "enum": [
6808
+ "enabled",
6809
+ "paused",
6810
+ "expired"
6811
+ ],
6812
+ "required": false,
6813
+ "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
6814
  }
6549
6815
  ]
6550
6816
  },
@@ -6694,13 +6960,13 @@ export const operations = [
6694
6960
  "summary": "Delete a trigger",
6695
6961
  "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
6962
  "http": "DELETE",
6697
- "path": "/automation/v1/triggers/{id}",
6963
+ "path": "/automation/v1/triggers/{trigger_id}",
6698
6964
  "streaming": "no",
6699
6965
  "pagination": false,
6700
6966
  "pathParams": [
6701
6967
  {
6702
- "name": "id",
6703
- "sdkName": "id",
6968
+ "name": "trigger_id",
6969
+ "sdkName": "trigger_id",
6704
6970
  "description": "Trigger ID (trg_)."
6705
6971
  }
6706
6972
  ],
@@ -6712,13 +6978,13 @@ export const operations = [
6712
6978
  "summary": "Get a trigger",
6713
6979
  "description": "Read schedule, state, upcoming times and latest firing. Use the ETag to update; the full webhook URL is not returned again.",
6714
6980
  "http": "GET",
6715
- "path": "/automation/v1/triggers/{id}",
6981
+ "path": "/automation/v1/triggers/{trigger_id}",
6716
6982
  "streaming": "no",
6717
6983
  "pagination": false,
6718
6984
  "pathParams": [
6719
6985
  {
6720
- "name": "id",
6721
- "sdkName": "id",
6986
+ "name": "trigger_id",
6987
+ "sdkName": "trigger_id",
6722
6988
  "description": "Trigger ID (trg_)."
6723
6989
  }
6724
6990
  ],
@@ -6730,13 +6996,13 @@ export const operations = [
6730
6996
  "summary": "Update a trigger",
6731
6997
  "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
6998
  "http": "PATCH",
6733
- "path": "/automation/v1/triggers/{id}",
6999
+ "path": "/automation/v1/triggers/{trigger_id}",
6734
7000
  "streaming": "no",
6735
7001
  "pagination": false,
6736
7002
  "pathParams": [
6737
7003
  {
6738
- "name": "id",
6739
- "sdkName": "id",
7004
+ "name": "trigger_id",
7005
+ "sdkName": "trigger_id",
6740
7006
  "description": "Trigger ID (trg_)."
6741
7007
  }
6742
7008
  ],
@@ -6847,13 +7113,13 @@ export const operations = [
6847
7113
  "summary": "Fire a trigger now",
6848
7114
  "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
7115
  "http": "POST",
6850
- "path": "/automation/v1/triggers/{id}/fire",
7116
+ "path": "/automation/v1/triggers/{trigger_id}/fire",
6851
7117
  "streaming": "no",
6852
7118
  "pagination": false,
6853
7119
  "pathParams": [
6854
7120
  {
6855
- "name": "id",
6856
- "sdkName": "id",
7121
+ "name": "trigger_id",
7122
+ "sdkName": "trigger_id",
6857
7123
  "description": "Trigger ID (trg_)."
6858
7124
  }
6859
7125
  ],
@@ -6865,13 +7131,13 @@ export const operations = [
6865
7131
  "summary": "List trigger firings",
6866
7132
  "description": "Read the last 30 days of firings newest first. Results include resolved versions, run IDs and failure details.",
6867
7133
  "http": "GET",
6868
- "path": "/automation/v1/triggers/{id}/firings",
7134
+ "path": "/automation/v1/triggers/{trigger_id}/firings",
6869
7135
  "streaming": "no",
6870
7136
  "pagination": true,
6871
7137
  "pathParams": [
6872
7138
  {
6873
- "name": "id",
6874
- "sdkName": "id",
7139
+ "name": "trigger_id",
7140
+ "sdkName": "trigger_id",
6875
7141
  "description": "Trigger ID (trg_)."
6876
7142
  }
6877
7143
  ],
@@ -6917,13 +7183,13 @@ export const operations = [
6917
7183
  "summary": "Pause a trigger",
6918
7184
  "description": "Pause new firings without terminating existing runs. Definition-managed triggers can also be paused.",
6919
7185
  "http": "POST",
6920
- "path": "/automation/v1/triggers/{id}/pause",
7186
+ "path": "/automation/v1/triggers/{trigger_id}/pause",
6921
7187
  "streaming": "no",
6922
7188
  "pagination": false,
6923
7189
  "pathParams": [
6924
7190
  {
6925
- "name": "id",
6926
- "sdkName": "id",
7191
+ "name": "trigger_id",
7192
+ "sdkName": "trigger_id",
6927
7193
  "description": "Trigger ID (trg_)."
6928
7194
  }
6929
7195
  ],
@@ -6935,13 +7201,13 @@ export const operations = [
6935
7201
  "summary": "Resume a trigger",
6936
7202
  "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
7203
  "http": "POST",
6938
- "path": "/automation/v1/triggers/{id}/resume",
7204
+ "path": "/automation/v1/triggers/{trigger_id}/resume",
6939
7205
  "streaming": "no",
6940
7206
  "pagination": false,
6941
7207
  "pathParams": [
6942
7208
  {
6943
- "name": "id",
6944
- "sdkName": "id",
7209
+ "name": "trigger_id",
7210
+ "sdkName": "trigger_id",
6945
7211
  "description": "Trigger ID (trg_)."
6946
7212
  }
6947
7213
  ],
@@ -6953,13 +7219,13 @@ export const operations = [
6953
7219
  "summary": "Rotate a webhook URL",
6954
7220
  "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
7221
  "http": "POST",
6956
- "path": "/automation/v1/triggers/{id}/rotate-webhook",
7222
+ "path": "/automation/v1/triggers/{trigger_id}/rotate-webhook",
6957
7223
  "streaming": "no",
6958
7224
  "pagination": false,
6959
7225
  "pathParams": [
6960
7226
  {
6961
- "name": "id",
6962
- "sdkName": "id",
7227
+ "name": "trigger_id",
7228
+ "sdkName": "trigger_id",
6963
7229
  "description": "Trigger ID (trg_)."
6964
7230
  }
6965
7231
  ],
@@ -7106,9 +7372,9 @@ export const operations = [
7106
7372
  },
7107
7373
  {
7108
7374
  "name": "draft",
7109
- "type": "string",
7375
+ "type": "object",
7110
7376
  "required": false,
7111
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7377
+ "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
7378
  },
7113
7379
  {
7114
7380
  "name": "labels",
@@ -7123,15 +7389,15 @@ export const operations = [
7123
7389
  "resource": "automation.workflows",
7124
7390
  "method": "retrieve",
7125
7391
  "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.",
7392
+ "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
7393
  "http": "GET",
7128
- "path": "/automation/v1/workflows/{ns}/{name}",
7394
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7129
7395
  "streaming": "no",
7130
7396
  "pagination": false,
7131
7397
  "pathParams": [
7132
7398
  {
7133
- "name": "ns",
7134
- "sdkName": "ns",
7399
+ "name": "namespace",
7400
+ "sdkName": "namespace",
7135
7401
  "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
7402
  },
7137
7403
  {
@@ -7146,15 +7412,15 @@ export const operations = [
7146
7412
  "resource": "automation.workflows",
7147
7413
  "method": "update",
7148
7414
  "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.",
7415
+ "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
7416
  "http": "PATCH",
7151
- "path": "/automation/v1/workflows/{ns}/{name}",
7417
+ "path": "/automation/v1/workflows/{namespace}/{name}",
7152
7418
  "streaming": "no",
7153
7419
  "pagination": false,
7154
7420
  "pathParams": [
7155
7421
  {
7156
- "name": "ns",
7157
- "sdkName": "ns",
7422
+ "name": "namespace",
7423
+ "sdkName": "namespace",
7158
7424
  "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
7425
  },
7160
7426
  {
@@ -7168,8 +7434,8 @@ export const operations = [
7168
7434
  {
7169
7435
  "name": "If-Match",
7170
7436
  "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."
7437
+ "required": false,
7438
+ "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
7439
  }
7174
7440
  ],
7175
7441
  "body": {
@@ -7189,9 +7455,9 @@ export const operations = [
7189
7455
  },
7190
7456
  {
7191
7457
  "name": "draft",
7192
- "type": "string",
7458
+ "type": "object",
7193
7459
  "required": false,
7194
- "description": "Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation."
7460
+ "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
7461
  }
7196
7462
  ]
7197
7463
  }
@@ -7202,13 +7468,13 @@ export const operations = [
7202
7468
  "summary": "Archive a workflow",
7203
7469
  "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
7470
  "http": "POST",
7205
- "path": "/automation/v1/workflows/{ns}/{name}/archive",
7471
+ "path": "/automation/v1/workflows/{namespace}/{name}/archive",
7206
7472
  "streaming": "no",
7207
7473
  "pagination": false,
7208
7474
  "pathParams": [
7209
7475
  {
7210
- "name": "ns",
7211
- "sdkName": "ns",
7476
+ "name": "namespace",
7477
+ "sdkName": "namespace",
7212
7478
  "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
7479
  },
7214
7480
  {
@@ -7229,13 +7495,13 @@ export const operations = [
7229
7495
  "summary": "List workflow tags",
7230
7496
  "description": "Read the exact version for each distribution tag. Results include the update time and updater.",
7231
7497
  "http": "GET",
7232
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags",
7498
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags",
7233
7499
  "streaming": "no",
7234
7500
  "pagination": false,
7235
7501
  "pathParams": [
7236
7502
  {
7237
- "name": "ns",
7238
- "sdkName": "ns",
7503
+ "name": "namespace",
7504
+ "sdkName": "namespace",
7239
7505
  "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
7506
  },
7241
7507
  {
@@ -7252,13 +7518,13 @@ export const operations = [
7252
7518
  "summary": "Delete a workflow tag",
7253
7519
  "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
7520
  "http": "DELETE",
7255
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7521
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7256
7522
  "streaming": "no",
7257
7523
  "pagination": false,
7258
7524
  "pathParams": [
7259
7525
  {
7260
- "name": "ns",
7261
- "sdkName": "ns",
7526
+ "name": "namespace",
7527
+ "sdkName": "namespace",
7262
7528
  "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
7529
  },
7264
7530
  {
@@ -7280,13 +7546,13 @@ export const operations = [
7280
7546
  "summary": "Set a workflow tag",
7281
7547
  "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
7548
  "http": "PUT",
7283
- "path": "/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}",
7549
+ "path": "/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}",
7284
7550
  "streaming": "no",
7285
7551
  "pagination": false,
7286
7552
  "pathParams": [
7287
7553
  {
7288
- "name": "ns",
7289
- "sdkName": "ns",
7554
+ "name": "namespace",
7555
+ "sdkName": "namespace",
7290
7556
  "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
7557
  },
7292
7558
  {
@@ -7319,13 +7585,13 @@ export const operations = [
7319
7585
  "summary": "Restore a workflow",
7320
7586
  "description": "Restore an archived definition with its versions and tags. The name is retained.",
7321
7587
  "http": "POST",
7322
- "path": "/automation/v1/workflows/{ns}/{name}/restore",
7588
+ "path": "/automation/v1/workflows/{namespace}/{name}/restore",
7323
7589
  "streaming": "no",
7324
7590
  "pagination": false,
7325
7591
  "pathParams": [
7326
7592
  {
7327
- "name": "ns",
7328
- "sdkName": "ns",
7593
+ "name": "namespace",
7594
+ "sdkName": "namespace",
7329
7595
  "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
7596
  },
7331
7597
  {
@@ -7346,13 +7612,13 @@ export const operations = [
7346
7612
  "summary": "List workflow vault bindings",
7347
7613
  "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
7614
  "http": "GET",
7349
- "path": "/automation/v1/workflows/{ns}/{name}/vaults",
7615
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults",
7350
7616
  "streaming": "no",
7351
7617
  "pagination": false,
7352
7618
  "pathParams": [
7353
7619
  {
7354
- "name": "ns",
7355
- "sdkName": "ns",
7620
+ "name": "namespace",
7621
+ "sdkName": "namespace",
7356
7622
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7357
7623
  },
7358
7624
  {
@@ -7369,13 +7635,13 @@ export const operations = [
7369
7635
  "summary": "Delete a workflow vault binding",
7370
7636
  "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
7637
  "http": "DELETE",
7372
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7638
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7373
7639
  "streaming": "no",
7374
7640
  "pagination": false,
7375
7641
  "pathParams": [
7376
7642
  {
7377
- "name": "ns",
7378
- "sdkName": "ns",
7643
+ "name": "namespace",
7644
+ "sdkName": "namespace",
7379
7645
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7380
7646
  },
7381
7647
  {
@@ -7397,13 +7663,13 @@ export const operations = [
7397
7663
  "summary": "Set a workflow vault binding",
7398
7664
  "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
7665
  "http": "PUT",
7400
- "path": "/automation/v1/workflows/{ns}/{name}/vaults/{alias}",
7666
+ "path": "/automation/v1/workflows/{namespace}/{name}/vaults/{alias}",
7401
7667
  "streaming": "no",
7402
7668
  "pagination": false,
7403
7669
  "pathParams": [
7404
7670
  {
7405
- "name": "ns",
7406
- "sdkName": "ns",
7671
+ "name": "namespace",
7672
+ "sdkName": "namespace",
7407
7673
  "description": "Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions."
7408
7674
  },
7409
7675
  {
@@ -7436,13 +7702,13 @@ export const operations = [
7436
7702
  "summary": "List workflow versions",
7437
7703
  "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
7704
  "http": "GET",
7439
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7705
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7440
7706
  "streaming": "no",
7441
7707
  "pagination": true,
7442
7708
  "pathParams": [
7443
7709
  {
7444
- "name": "ns",
7445
- "sdkName": "ns",
7710
+ "name": "namespace",
7711
+ "sdkName": "namespace",
7446
7712
  "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
7713
  },
7448
7714
  {
@@ -7482,15 +7748,15 @@ export const operations = [
7482
7748
  "publish"
7483
7749
  ],
7484
7750
  "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).",
7751
+ "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
7752
  "http": "POST",
7487
- "path": "/automation/v1/workflows/{ns}/{name}/versions",
7753
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions",
7488
7754
  "streaming": "no",
7489
7755
  "pagination": false,
7490
7756
  "pathParams": [
7491
7757
  {
7492
- "name": "ns",
7493
- "sdkName": "ns",
7758
+ "name": "namespace",
7759
+ "sdkName": "namespace",
7494
7760
  "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
7761
  },
7496
7762
  {
@@ -7511,13 +7777,13 @@ export const operations = [
7511
7777
  "summary": "Get a workflow version",
7512
7778
  "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
7779
  "http": "GET",
7514
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}",
7780
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}",
7515
7781
  "streaming": "no",
7516
7782
  "pagination": false,
7517
7783
  "pathParams": [
7518
7784
  {
7519
- "name": "ns",
7520
- "sdkName": "ns",
7785
+ "name": "namespace",
7786
+ "sdkName": "namespace",
7521
7787
  "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
7788
  },
7523
7789
  {
@@ -7539,13 +7805,13 @@ export const operations = [
7539
7805
  "summary": "Deprecate a workflow version",
7540
7806
  "description": "Record a deprecation message; an empty message removes deprecation without changing the version source.",
7541
7807
  "http": "POST",
7542
- "path": "/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate",
7808
+ "path": "/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate",
7543
7809
  "streaming": "no",
7544
7810
  "pagination": false,
7545
7811
  "pathParams": [
7546
7812
  {
7547
- "name": "ns",
7548
- "sdkName": "ns",
7813
+ "name": "namespace",
7814
+ "sdkName": "namespace",
7549
7815
  "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
7816
  },
7551
7817
  {
@@ -7584,11 +7850,200 @@ export const operations = [
7584
7850
  "pathParams": [],
7585
7851
  "query": []
7586
7852
  },
7853
+ {
7854
+ "resource": "browser.byob.browsers",
7855
+ "method": "list",
7856
+ "summary": "列出自带浏览器",
7857
+ "description": "分页列出当前组织已配对且未断开的自带浏览器,按 ID 升序。将 nextCursor 原样传入读取下一页,直到其为 null。",
7858
+ "http": "GET",
7859
+ "path": "/browser/v1/byob/browsers",
7860
+ "streaming": "no",
7861
+ "pagination": false,
7862
+ "pathParams": [],
7863
+ "query": [
7864
+ {
7865
+ "name": "cursor",
7866
+ "type": "string",
7867
+ "required": false,
7868
+ "description": "上一页返回的 nextCursor,原样传入;省略时读取第一页。"
7869
+ },
7870
+ {
7871
+ "name": "limit",
7872
+ "type": "integer",
7873
+ "required": false,
7874
+ "description": "每页最多返回的浏览器数量;默认 50,范围 1–100。"
7875
+ }
7876
+ ]
7877
+ },
7878
+ {
7879
+ "resource": "browser.byob.browsers",
7880
+ "method": "retrieve",
7881
+ "summary": "读取自带浏览器",
7882
+ "description": "读取当前组织的指定自带浏览器,包括已断开的(revoked_at 不为 null)。不存在或不属于当前组织时返回 404 BROWSER_NOT_FOUND。",
7883
+ "http": "GET",
7884
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7885
+ "streaming": "no",
7886
+ "pagination": false,
7887
+ "pathParams": [
7888
+ {
7889
+ "name": "browser_id",
7890
+ "sdkName": "browser_id",
7891
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7892
+ }
7893
+ ],
7894
+ "query": []
7895
+ },
7896
+ {
7897
+ "resource": "browser.byob.browsers",
7898
+ "method": "update",
7899
+ "summary": "更新自带浏览器的名称、授权智能体与允许站点",
7900
+ "description": "给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。",
7901
+ "http": "PATCH",
7902
+ "path": "/browser/v1/byob/browsers/{browser_id}",
7903
+ "streaming": "no",
7904
+ "pagination": false,
7905
+ "pathParams": [
7906
+ {
7907
+ "name": "browser_id",
7908
+ "sdkName": "browser_id",
7909
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7910
+ }
7911
+ ],
7912
+ "query": [],
7913
+ "body": {
7914
+ "required": true,
7915
+ "fields": [
7916
+ {
7917
+ "name": "name",
7918
+ "type": "string",
7919
+ "required": false,
7920
+ "description": "新的显示名称,1–80 个字符。"
7921
+ }
7922
+ ]
7923
+ }
7924
+ },
7925
+ {
7926
+ "resource": "browser.byob.browsers.disconnect",
7927
+ "method": "create",
7928
+ "summary": "断开自带浏览器",
7929
+ "description": "断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。",
7930
+ "http": "POST",
7931
+ "path": "/browser/v1/byob/browsers/{browser_id}/disconnect",
7932
+ "streaming": "no",
7933
+ "pagination": false,
7934
+ "pathParams": [
7935
+ {
7936
+ "name": "browser_id",
7937
+ "sdkName": "browser_id",
7938
+ "description": "自带浏览器 ID,以 byb_ 开头;使用配对认领或列出自带浏览器返回的 id。"
7939
+ }
7940
+ ],
7941
+ "query": []
7942
+ },
7943
+ {
7944
+ "resource": "browser.byob.pairings",
7945
+ "method": "create",
7946
+ "summary": "创建浏览器配对码",
7947
+ "description": "为一个要接入的 Chrome 或 Edge 创建 8 位配对码,一次性、10 分钟有效;把它交给用户,由用户在浏览器扩展里输入或由 Console 直接交给扩展,用户点「允许」后配对完成。需要组织已开通 BYOB,否则返回 501 PROVIDER_UNSUPPORTED。",
7948
+ "http": "POST",
7949
+ "path": "/browser/v1/byob/pairings",
7950
+ "streaming": "no",
7951
+ "pagination": false,
7952
+ "pathParams": [],
7953
+ "query": []
7954
+ },
7955
+ {
7956
+ "resource": "browser.byob.pairings",
7957
+ "method": "retrieve",
7958
+ "summary": "读取浏览器配对授权页信息",
7959
+ "description": "扩展的授权页读取配对码对应的组织与发起人,让用户确认后再点「允许」。不需要 API Key,配对码就是凭证;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND,不区分原因。",
7960
+ "http": "GET",
7961
+ "path": "/browser/v1/byob/pairings/{code}",
7962
+ "streaming": "no",
7963
+ "pagination": false,
7964
+ "pathParams": [
7965
+ {
7966
+ "name": "code",
7967
+ "sdkName": "code",
7968
+ "description": "8 位配对码,来自创建配对码的结果。"
7969
+ }
7970
+ ],
7971
+ "query": []
7972
+ },
7973
+ {
7974
+ "resource": "browser.byob.pairings.claim",
7975
+ "method": "create",
7976
+ "summary": "认领浏览器配对码",
7977
+ "description": "用户点「允许」后,扩展用配对码认领一次,登记这个浏览器并取得 browser_id 和要拨入的 link_url。不需要 API Key,配对码就是凭证,只能使用一次;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND。请求体不合格时返回 400 且不消耗配对码。",
7978
+ "http": "POST",
7979
+ "path": "/browser/v1/byob/pairings/{code}/claim",
7980
+ "streaming": "no",
7981
+ "pagination": false,
7982
+ "pathParams": [
7983
+ {
7984
+ "name": "code",
7985
+ "sdkName": "code",
7986
+ "description": "8 位配对码,来自创建配对码的结果。"
7987
+ }
7988
+ ],
7989
+ "query": [],
7990
+ "body": {
7991
+ "required": true,
7992
+ "fields": [
7993
+ {
7994
+ "name": "browser",
7995
+ "type": "string",
7996
+ "enum": [
7997
+ "chrome",
7998
+ "edge"
7999
+ ],
8000
+ "required": true,
8001
+ "description": "要登记的浏览器种类,只支持 Chrome 和 Edge。"
8002
+ },
8003
+ {
8004
+ "name": "version",
8005
+ "type": "string",
8006
+ "required": true,
8007
+ "description": "浏览器版本号,1–64 个字符。"
8008
+ },
8009
+ {
8010
+ "name": "os",
8011
+ "type": "string",
8012
+ "required": true,
8013
+ "description": "操作系统,1–64 个字符。"
8014
+ },
8015
+ {
8016
+ "name": "name",
8017
+ "type": "string",
8018
+ "required": true,
8019
+ "description": "浏览器的显示名称,1–80 个字符。"
8020
+ },
8021
+ {
8022
+ "name": "public_key",
8023
+ "type": "string",
8024
+ "required": true,
8025
+ "description": "扩展用 WebCrypto 生成的不可导出 ECDSA P-256 密钥对的公钥;平台只保存公钥。"
8026
+ },
8027
+ {
8028
+ "name": "extension_id",
8029
+ "type": "string",
8030
+ "required": true,
8031
+ "description": "扩展 ID,1–64 个字符。"
8032
+ },
8033
+ {
8034
+ "name": "install_key",
8035
+ "type": "string",
8036
+ "required": false,
8037
+ "description": "扩展保存的随机安装密钥,8–128 个字母、数字、_ 或 -;同一个 profile 带同一密钥重新配对会复用原来的浏览器,平台只保存它的哈希。省略则每次认领都是新浏览器。"
8038
+ }
8039
+ ]
8040
+ }
8041
+ },
7587
8042
  {
7588
8043
  "resource": "browser.connect",
7589
8044
  "method": "retrieve",
7590
8045
  "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。",
8046
+ "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
8047
  "http": "GET",
7593
8048
  "path": "/browser/v1/connect",
7594
8049
  "streaming": "no",
@@ -7713,6 +8168,12 @@ export const operations = [
7713
8168
  "type": "object",
7714
8169
  "required": false,
7715
8170
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。"
8171
+ },
8172
+ {
8173
+ "name": "proxy",
8174
+ "type": "object",
8175
+ "required": false,
8176
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。"
7716
8177
  }
7717
8178
  ]
7718
8179
  }
@@ -7784,6 +8245,12 @@ export const operations = [
7784
8245
  "type": "object",
7785
8246
  "required": false,
7786
8247
  "description": "自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。"
8248
+ },
8249
+ {
8250
+ "name": "proxy",
8251
+ "type": "object",
8252
+ "required": false,
8253
+ "description": "给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。"
7787
8254
  }
7788
8255
  ]
7789
8256
  }
@@ -7792,7 +8259,7 @@ export const operations = [
7792
8259
  "resource": "browser.live",
7793
8260
  "method": "retrieve",
7794
8261
  "summary": "打开实时浏览器画面",
7795
- "description": "使用 debug 返回的完整实时观看地址打开浏览器画面,成功后跳转到对应会话或标签页。必须保留地址中的 t 凭证,无需额外 API Key;链接失效时重新调用 debug 获取地址。",
8262
+ "description": "旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。",
7796
8263
  "http": "GET",
7797
8264
  "path": "/browser/v1/live/{sessionId}/{pageId}",
7798
8265
  "streaming": "no",
@@ -7890,7 +8357,7 @@ export const operations = [
7890
8357
  "resource": "browser.sessions",
7891
8358
  "method": "create",
7892
8359
  "summary": "创建浏览器会话",
7893
- "description": "创建云端 Chrome,返回自带凭证的 connectUrl;它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
8360
+ "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
8361
  "http": "POST",
7895
8362
  "path": "/browser/v1/sessions",
7896
8363
  "streaming": "no",
@@ -7914,7 +8381,7 @@ export const operations = [
7914
8381
  "organization"
7915
8382
  ],
7916
8383
  "required": false,
7917
- "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。"
8384
+ "description": "谁能看到这个新会话:默认 private 只有创建者;organization 允许同组织其他成员只读观看画面。自带浏览器(source.type 为 byob)的会话一律是 organization,传 private 也会被改成 organization,不报错。"
7918
8385
  },
7919
8386
  {
7920
8387
  "name": "keepAlive",
@@ -7938,7 +8405,13 @@ export const operations = [
7938
8405
  "name": "proxies",
7939
8406
  "type": "object",
7940
8407
  "required": false,
7941
- "description": "仅省略、false 或 [{type: 'none'}] 可用;其它代理配置返回 501。"
8408
+ "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),不必每次会话重复传。"
8409
+ },
8410
+ {
8411
+ "name": "source",
8412
+ "type": "object",
8413
+ "required": false,
8414
+ "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
8415
  },
7943
8416
  {
7944
8417
  "name": "region",
@@ -8034,7 +8507,7 @@ export const operations = [
8034
8507
  "resource": "browser.sessions.actions",
8035
8508
  "method": "create",
8036
8509
  "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 命令。",
8510
+ "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
8511
  "http": "POST",
8039
8512
  "path": "/browser/v1/sessions/{sessionId}/actions",
8040
8513
  "streaming": "no",
@@ -8575,6 +9048,41 @@ export const operations = [
8575
9048
  }
8576
9049
  ]
8577
9050
  },
9051
+ {
9052
+ "resource": "canvas.canvases.processes.steps",
9053
+ "method": "retrieveBrief",
9054
+ "summary": "Read a process step brief",
9055
+ "description": "Read everything needed to fill one step of a canvas process, in one call, before writing its output. A process is a frame whose steps are requirement blocks; this read returns the step's requirement and derived state (waiting, ready or filled), its linked materials resolved to content, the process's shared context, the outputs of the steps it needs, and its own current outputs. Supply process_id from canvases.state or nodes.list (the process frame, or the instance of a library process that is this production) and the step key from a requirement. To fill the step, create the output element and write metadata.output through canvases.execute; this read stores nothing. A platform object linked as an embed node comes back as its reference only; read it from its own domain. Links that point at deleted nodes are dropped from the lists and named in issues.",
9056
+ "http": "GET",
9057
+ "path": "/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief",
9058
+ "streaming": "no",
9059
+ "pagination": false,
9060
+ "pathParams": [
9061
+ {
9062
+ "name": "canvas_id",
9063
+ "sdkName": "canvas_id",
9064
+ "description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
9065
+ },
9066
+ {
9067
+ "name": "process_id",
9068
+ "sdkName": "process_id",
9069
+ "description": "Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id."
9070
+ },
9071
+ {
9072
+ "name": "step_id",
9073
+ "sdkName": "step_id",
9074
+ "description": "Step key from the requirement block, such as 1 or 9a; not the node id of the step frame."
9075
+ }
9076
+ ],
9077
+ "query": [
9078
+ {
9079
+ "name": "version",
9080
+ "type": "string",
9081
+ "required": false,
9082
+ "description": "Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND."
9083
+ }
9084
+ ]
9085
+ },
8578
9086
  {
8579
9087
  "resource": "canvas.canvases.versions",
8580
9088
  "method": "list",
@@ -9122,7 +9630,7 @@ export const operations = [
9122
9630
  "resource": "content.playbackSessions",
9123
9631
  "method": "create",
9124
9632
  "summary": "Open a playback session",
9125
- "description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
9633
+ "description": "Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (its host depends on the viewer's region, https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8 or a mainland edge address such as https://media-hk.deepractice.cn/play/{content_id}/{capability}/master.m3u8; pass it to the player exactly as returned), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.",
9126
9634
  "http": "POST",
9127
9635
  "path": "/content/v1/playback/sessions",
9128
9636
  "streaming": "no",
@@ -10212,7 +10720,7 @@ export const operations = [
10212
10720
  "resource": "crm.properties",
10213
10721
  "method": "list",
10214
10722
  "summary": "List properties",
10215
- "description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.",
10723
+ "description": "Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false. Every organization starts with preset definitions. For contacts these are the HubSpot default contact properties that a person or the API can write - salutation, firstname, lastname, email, phone, mobilephone, fax, company, jobtitle, website, address, city, state, zip, country, industry, numemployees, annualrevenue and message - plus hubspot_owner_id, lifecyclestage (HubSpot's default stages) and hs_lead_status (HubSpot's default statuses). All of them sit in the contactinformation group and are writable; industry is free text here where HubSpot presents a fixed dropdown, and fax uses the phone-number format. The remaining HubSpot default contact properties are deliberately not provided, because the HubSpot feature behind each one is not part of Praxis - values HubSpot computes and keeps read-only (create and last-modified dates, created-by and updated-by user ids, owner-assigned date, email domain, record id and record source, country and state codes, contact unworked), activity, sequence, meeting and NPS dates and counters and predictive scores, form and conversion tracking (first and recent conversion, form submission counts, ad click ids, IP location, original and latest traffic source, page views and sessions), marketing email state (opt-outs, bounces, quarantine, delivered, opened and clicked counts and dates, marketing contact status), deal rollups (associated deals, revenue, close and first deal dates, days to close), lifecycle-stage timing, the ads form fields (date of birth, gender, marital status, education), private content membership, social profile handles, follower counts and photo, and account-level fields HubSpot maintains from its own settings (persona, preferred language, time zone, legal basis, brands, shared teams and users, team and merged ids). Create one as a custom property when a workflow needs it.",
10216
10724
  "http": "GET",
10217
10725
  "path": "/crm/v1/properties/{objectType}",
10218
10726
  "streaming": "no",
@@ -10864,7 +11372,7 @@ export const operations = [
10864
11372
  "resource": "customer.accessTokens",
10865
11373
  "method": "create",
10866
11374
  "summary": "Exchange a grant code or publishable key",
10867
- "description": "Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.",
11375
+ "description": "Deprecated: use POST /end/v1/access_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nTurn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.",
10868
11376
  "http": "POST",
10869
11377
  "path": "/customer/v1/access_tokens",
10870
11378
  "streaming": "no",
@@ -10907,7 +11415,7 @@ export const operations = [
10907
11415
  "resource": "customer.accessTokens",
10908
11416
  "method": "revoke",
10909
11417
  "summary": "Sign out the current token",
10910
- "description": "Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
11418
+ "description": "Deprecated: use DELETE /end/v1/access_tokens/current instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nSign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
10911
11419
  "http": "DELETE",
10912
11420
  "path": "/customer/v1/access_tokens/current",
10913
11421
  "streaming": "no",
@@ -10919,7 +11427,7 @@ export const operations = [
10919
11427
  "resource": "customer.accessTokens",
10920
11428
  "method": "renew",
10921
11429
  "summary": "Renew an access token",
10922
- "description": "Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
11430
+ "description": "Deprecated: use POST /end/v1/access_tokens/renew instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nReplace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
10923
11431
  "http": "POST",
10924
11432
  "path": "/customer/v1/access_tokens/renew",
10925
11433
  "streaming": "no",
@@ -10931,7 +11439,7 @@ export const operations = [
10931
11439
  "resource": "customer.customers",
10932
11440
  "method": "list",
10933
11441
  "summary": "List end users",
10934
- "description": "Read the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
11442
+ "description": "Deprecated: use GET /end/v1/users instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
10935
11443
  "http": "GET",
10936
11444
  "path": "/customer/v1/customers",
10937
11445
  "streaming": "no",
@@ -10984,7 +11492,7 @@ export const operations = [
10984
11492
  "resource": "customer.customers",
10985
11493
  "method": "delete",
10986
11494
  "summary": "Delete an end user",
10987
- "description": "Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11495
+ "description": "Deprecated: use DELETE /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nDelete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
10988
11496
  "http": "DELETE",
10989
11497
  "path": "/customer/v1/customers/{customer_id}",
10990
11498
  "streaming": "no",
@@ -11009,7 +11517,7 @@ export const operations = [
11009
11517
  "resource": "customer.customers",
11010
11518
  "method": "retrieve",
11011
11519
  "summary": "Get an end user",
11012
- "description": "Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.",
11520
+ "description": "Deprecated: use GET /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.",
11013
11521
  "http": "GET",
11014
11522
  "path": "/customer/v1/customers/{customer_id}",
11015
11523
  "streaming": "no",
@@ -11034,7 +11542,7 @@ export const operations = [
11034
11542
  "resource": "customer.customers",
11035
11543
  "method": "block",
11036
11544
  "summary": "Block an end user",
11037
- "description": "Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11545
+ "description": "Deprecated: use POST /end/v1/users/{end_user_id}/block instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nBlock one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11038
11546
  "http": "POST",
11039
11547
  "path": "/customer/v1/customers/{customer_id}/block",
11040
11548
  "streaming": "no",
@@ -11063,7 +11571,7 @@ export const operations = [
11063
11571
  "resource": "customer.customers",
11064
11572
  "method": "revokeTokens",
11065
11573
  "summary": "Revoke every token of an end user",
11066
- "description": "End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11574
+ "description": "Deprecated: use POST /end/v1/users/{end_user_id}/revoke_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nEnd every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11067
11575
  "http": "POST",
11068
11576
  "path": "/customer/v1/customers/{customer_id}/revoke_tokens",
11069
11577
  "streaming": "no",
@@ -11081,7 +11589,7 @@ export const operations = [
11081
11589
  "resource": "customer.customers",
11082
11590
  "method": "unblock",
11083
11591
  "summary": "Unblock an end user",
11084
- "description": "Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11592
+ "description": "Deprecated: use POST /end/v1/users/{end_user_id}/unblock instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nLift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11085
11593
  "http": "POST",
11086
11594
  "path": "/customer/v1/customers/{customer_id}/unblock",
11087
11595
  "streaming": "no",
@@ -11099,7 +11607,7 @@ export const operations = [
11099
11607
  "resource": "customer.usage",
11100
11608
  "method": "retrieve",
11101
11609
  "summary": "Read end-user usage",
11102
- "description": "Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.",
11610
+ "description": "Deprecated: use GET /end/v1/users/{end_user_id}/usage instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nRead what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.",
11103
11611
  "http": "GET",
11104
11612
  "path": "/customer/v1/customers/{customer_id}/usage",
11105
11613
  "streaming": "no",
@@ -11130,7 +11638,7 @@ export const operations = [
11130
11638
  "resource": "customer.grantCodes",
11131
11639
  "method": "create",
11132
11640
  "summary": "Create a grant code",
11133
- "description": "Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
11641
+ "description": "Deprecated: use POST /end/v1/grant_codes instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nSign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
11134
11642
  "http": "POST",
11135
11643
  "path": "/customer/v1/grant_codes",
11136
11644
  "streaming": "no",
@@ -11196,7 +11704,7 @@ export const operations = [
11196
11704
  "resource": "customer.publishableKeys",
11197
11705
  "method": "list",
11198
11706
  "summary": "List publishable keys",
11199
- "description": "List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
11707
+ "description": "Deprecated: use GET /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nList the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
11200
11708
  "http": "GET",
11201
11709
  "path": "/customer/v1/publishable_keys",
11202
11710
  "streaming": "no",
@@ -11221,7 +11729,7 @@ export const operations = [
11221
11729
  "resource": "customer.publishableKeys",
11222
11730
  "method": "create",
11223
11731
  "summary": "Create a publishable key",
11224
- "description": "Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {\"amount\": \"5.00\", \"currency\": \"USD\"} (at most 2 decimals), read from the key's usage events; change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.",
11732
+ "description": "Deprecated: use POST /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nMint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {\"amount\": \"5.00\", \"currency\": \"USD\"} (at most 2 decimals), read from the key's usage events; change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.",
11225
11733
  "http": "POST",
11226
11734
  "path": "/customer/v1/publishable_keys",
11227
11735
  "streaming": "no",
@@ -11269,7 +11777,7 @@ export const operations = [
11269
11777
  "resource": "customer.publishableKeys",
11270
11778
  "method": "delete",
11271
11779
  "summary": "Delete a publishable key",
11272
- "description": "Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11780
+ "description": "Deprecated: use DELETE /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nDelete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.",
11273
11781
  "http": "DELETE",
11274
11782
  "path": "/customer/v1/publishable_keys/{key_id}",
11275
11783
  "streaming": "no",
@@ -11287,7 +11795,7 @@ export const operations = [
11287
11795
  "resource": "customer.publishableKeys",
11288
11796
  "method": "update",
11289
11797
  "summary": "Update a publishable key",
11290
- "description": "Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.",
11798
+ "description": "Deprecated: use PATCH /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).\nChange the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.",
11291
11799
  "http": "PATCH",
11292
11800
  "path": "/customer/v1/publishable_keys/{key_id}",
11293
11801
  "streaming": "no",
@@ -11719,7 +12227,7 @@ export const operations = [
11719
12227
  "resource": "cut.projects.exports",
11720
12228
  "method": "create",
11721
12229
  "summary": "Create video export",
11722
- "description": "Start an asynchronous video export from the project into a writable bound media library. Choose binding from bindings.list or omit it for default_upload, and optionally select revision and output settings. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. On done, asset identifies the video written back to praxis.media. Each call starts a job, so retrieve a known job before retrying a submission.",
12230
+ "description": "Start an asynchronous video export from the project, and optionally select revision and output settings. Omit both binding and folder and the export only produces a file: no library receives it, and on done file.url downloads it (the link is valid for one hour and is minted on every read). Name a binding from bindings.list (a writable one), or a folder, and the finished video is also imported into that media library, and on done asset identifies it in praxis.media. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. Each call starts a job, so retrieve a known job before retrying a submission.",
11723
12231
  "http": "POST",
11724
12232
  "path": "/cut/v1/projects/{project_id}/exports",
11725
12233
  "streaming": "no",
@@ -11757,7 +12265,7 @@ export const operations = [
11757
12265
  "name": "binding",
11758
12266
  "type": "string",
11759
12267
  "required": false,
11760
- "description": "Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it."
12268
+ "description": "Writable binding name the finished video is imported into; the response then carries asset. Omit binding and folder and nothing is imported (default_upload is not used here): the export is a file only, read file.url to download it within one hour."
11761
12269
  },
11762
12270
  {
11763
12271
  "name": "revision",
@@ -14994,7 +15502,7 @@ export const operations = [
14994
15502
  "resource": "devops.changes",
14995
15503
  "method": "openPullRequest",
14996
15504
  "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.",
15505
+ "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
15506
  "http": "POST",
14999
15507
  "path": "/devops/v1/changes/{id}:openPullRequest",
15000
15508
  "streaming": "no",
@@ -15027,6 +15535,12 @@ export const operations = [
15027
15535
  "type": "boolean",
15028
15536
  "required": false,
15029
15537
  "description": "Open it as a draft. Defaults to false."
15538
+ },
15539
+ {
15540
+ "name": "head",
15541
+ "type": "string",
15542
+ "required": false,
15543
+ "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
15544
  }
15031
15545
  ]
15032
15546
  }
@@ -15946,252 +16460,12 @@ export const operations = [
15946
16460
  }
15947
16461
  },
15948
16462
  {
15949
- "resource": "devops.projects.cleanups",
15950
- "method": "list",
15951
- "summary": "List a project's cleanup ledger",
15952
- "description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
15953
- "http": "GET",
15954
- "path": "/devops/v1/projects/{project}/cleanups",
15955
- "streaming": "no",
15956
- "pagination": false,
15957
- "pathParams": [
15958
- {
15959
- "name": "project",
15960
- "sdkName": "project",
15961
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
15962
- }
15963
- ],
15964
- "query": [
15965
- {
15966
- "name": "pageSize",
15967
- "type": "integer",
15968
- "required": false,
15969
- "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
15970
- },
15971
- {
15972
- "name": "pageToken",
15973
- "type": "string",
15974
- "required": false,
15975
- "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
15976
- }
15977
- ]
15978
- },
15979
- {
15980
- "resource": "devops.projects.environments",
15981
- "method": "list",
15982
- "summary": "List environments",
15983
- "description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
15984
- "http": "GET",
15985
- "path": "/devops/v1/projects/{project}/environments",
15986
- "streaming": "no",
15987
- "pagination": false,
15988
- "pathParams": [
15989
- {
15990
- "name": "project",
15991
- "sdkName": "project",
15992
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
15993
- }
15994
- ],
15995
- "query": []
15996
- },
15997
- {
15998
- "resource": "devops.projects.environments.targets",
15999
- "method": "deleteState",
16000
- "summary": "Delete a target's OpenTofu state",
16001
- "description": "Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.",
16002
- "http": "DELETE",
16003
- "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16004
- "streaming": "no",
16005
- "pagination": false,
16006
- "pathParams": [
16007
- {
16008
- "name": "project",
16009
- "sdkName": "project",
16010
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
16011
- },
16012
- {
16013
- "name": "environment",
16014
- "sdkName": "environment",
16015
- "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16016
- },
16017
- {
16018
- "name": "target",
16019
- "sdkName": "target",
16020
- "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16021
- }
16022
- ],
16023
- "query": [
16024
- {
16025
- "name": "ID",
16026
- "type": "string",
16027
- "required": false,
16028
- "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16029
- }
16030
- ]
16031
- },
16032
- {
16033
- "resource": "devops.projects.environments.targets",
16034
- "method": "retrieveState",
16035
- "summary": "Read a target's OpenTofu state",
16036
- "description": "Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.",
16037
- "http": "GET",
16038
- "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16039
- "streaming": "no",
16040
- "pagination": false,
16041
- "pathParams": [
16042
- {
16043
- "name": "project",
16044
- "sdkName": "project",
16045
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
16046
- },
16047
- {
16048
- "name": "environment",
16049
- "sdkName": "environment",
16050
- "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16051
- },
16052
- {
16053
- "name": "target",
16054
- "sdkName": "target",
16055
- "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16056
- }
16057
- ],
16058
- "query": []
16059
- },
16060
- {
16061
- "resource": "devops.projects.environments.targets.state",
16062
- "method": "create",
16063
- "summary": "Write a target's OpenTofu state",
16064
- "description": "Store a new OpenTofu state for one deploy target. OpenTofu calls this after every apply, passing the lock ID it holds as ID. Each accepted write also keeps an immutable version of that state (the latest 50 per target are kept), so a rollout's state change can be audited. A state document is at most 1 MiB. A write whose serial is lower than the stored serial of the same lineage is a stale write and answers 409 STALE_SERIAL; re-run so OpenTofu reads the newer state first.",
16065
- "http": "POST",
16066
- "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16067
- "streaming": "no",
16068
- "pagination": false,
16069
- "pathParams": [
16070
- {
16071
- "name": "project",
16072
- "sdkName": "project",
16073
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
16074
- },
16075
- {
16076
- "name": "environment",
16077
- "sdkName": "environment",
16078
- "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16079
- },
16080
- {
16081
- "name": "target",
16082
- "sdkName": "target",
16083
- "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16084
- }
16085
- ],
16086
- "query": [
16087
- {
16088
- "name": "ID",
16089
- "type": "string",
16090
- "required": false,
16091
- "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16092
- }
16093
- ],
16094
- "body": {
16095
- "required": true,
16096
- "fields": [
16097
- {
16098
- "name": "version",
16099
- "type": "integer",
16100
- "required": false,
16101
- "description": "The state format version OpenTofu wrote."
16102
- },
16103
- {
16104
- "name": "serial",
16105
- "type": "integer",
16106
- "required": true,
16107
- "description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
16108
- },
16109
- {
16110
- "name": "lineage",
16111
- "type": "string",
16112
- "required": true,
16113
- "description": "Identifies one state history; it does not change across writes."
16114
- }
16115
- ]
16116
- }
16117
- },
16118
- {
16119
- "resource": "devops.projects.environments.targets.state",
16120
- "method": "deleteLock",
16121
- "summary": "Unlock a target's OpenTofu state",
16122
- "description": "Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.",
16123
- "http": "DELETE",
16124
- "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
16125
- "streaming": "no",
16126
- "pagination": false,
16127
- "pathParams": [
16128
- {
16129
- "name": "project",
16130
- "sdkName": "project",
16131
- "description": "Identifies the project whose data you are reading, from the project list or create answer."
16132
- },
16133
- {
16134
- "name": "environment",
16135
- "sdkName": "environment",
16136
- "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16137
- },
16138
- {
16139
- "name": "target",
16140
- "sdkName": "target",
16141
- "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16142
- }
16143
- ],
16144
- "query": [
16145
- {
16146
- "name": "ID",
16147
- "type": "string",
16148
- "required": false,
16149
- "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16150
- }
16151
- ],
16152
- "body": {
16153
- "required": false,
16154
- "fields": [
16155
- {
16156
- "name": "ID",
16157
- "type": "string",
16158
- "required": true,
16159
- "description": "Identifies the lock; every write and the unlock must carry it."
16160
- },
16161
- {
16162
- "name": "Operation",
16163
- "type": "string",
16164
- "required": false,
16165
- "description": "What the holder is doing, such as OperationTypeApply."
16166
- },
16167
- {
16168
- "name": "Who",
16169
- "type": "string",
16170
- "required": false,
16171
- "description": "The holder, user@host, shown to the caller that finds the lock held."
16172
- },
16173
- {
16174
- "name": "Created",
16175
- "type": "string",
16176
- "required": false,
16177
- "description": "When the holder took the lock, RFC 3339."
16178
- },
16179
- {
16180
- "name": "Path",
16181
- "type": "string",
16182
- "required": false,
16183
- "description": "Where the holder keeps its working state, informational."
16184
- }
16185
- ]
16186
- }
16187
- },
16188
- {
16189
- "resource": "devops.projects.environments.targets.state.lock",
16463
+ "resource": "devops.changes.slices",
16190
16464
  "method": "create",
16191
- "summary": "Lock a target's OpenTofu state",
16192
- "description": "Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.",
16465
+ "summary": "Open a new slice",
16466
+ "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>`.",
16193
16467
  "http": "POST",
16194
- "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
16468
+ "path": "/devops/v1/projects/{project}/changes/{change}/slices",
16195
16469
  "streaming": "no",
16196
16470
  "pagination": false,
16197
16471
  "pathParams": [
@@ -16201,60 +16475,334 @@ export const operations = [
16201
16475
  "description": "Identifies the project whose data you are reading, from the project list or create answer."
16202
16476
  },
16203
16477
  {
16204
- "name": "environment",
16205
- "sdkName": "environment",
16206
- "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16207
- },
16208
- {
16209
- "name": "target",
16210
- "sdkName": "target",
16211
- "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16478
+ "name": "change",
16479
+ "sdkName": "change",
16480
+ "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."
16212
16481
  }
16213
16482
  ],
16214
16483
  "query": [],
16215
16484
  "body": {
16216
- "required": true,
16485
+ "required": false,
16217
16486
  "fields": [
16218
16487
  {
16219
- "name": "ID",
16220
- "type": "string",
16221
- "required": true,
16222
- "description": "Identifies the lock; every write and the unlock must carry it."
16223
- },
16224
- {
16225
- "name": "Operation",
16226
- "type": "string",
16227
- "required": false,
16228
- "description": "What the holder is doing, such as OperationTypeApply."
16229
- },
16230
- {
16231
- "name": "Who",
16232
- "type": "string",
16233
- "required": false,
16234
- "description": "The holder, user@host, shown to the caller that finds the lock held."
16235
- },
16236
- {
16237
- "name": "Created",
16238
- "type": "string",
16239
- "required": false,
16240
- "description": "When the holder took the lock, RFC 3339."
16241
- },
16242
- {
16243
- "name": "Path",
16488
+ "name": "from",
16244
16489
  "type": "string",
16245
16490
  "required": false,
16246
- "description": "Where the holder keeps its working state, informational."
16491
+ "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."
16247
16492
  }
16248
16493
  ]
16249
16494
  }
16250
16495
  },
16251
16496
  {
16252
- "resource": "devops.projects.flags",
16497
+ "resource": "devops.projects.cleanups",
16253
16498
  "method": "list",
16254
- "summary": "List flags",
16255
- "description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
16499
+ "summary": "List a project's cleanup ledger",
16500
+ "description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
16256
16501
  "http": "GET",
16257
- "path": "/devops/v1/projects/{project}/flags",
16502
+ "path": "/devops/v1/projects/{project}/cleanups",
16503
+ "streaming": "no",
16504
+ "pagination": false,
16505
+ "pathParams": [
16506
+ {
16507
+ "name": "project",
16508
+ "sdkName": "project",
16509
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16510
+ }
16511
+ ],
16512
+ "query": [
16513
+ {
16514
+ "name": "pageSize",
16515
+ "type": "integer",
16516
+ "required": false,
16517
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
16518
+ },
16519
+ {
16520
+ "name": "pageToken",
16521
+ "type": "string",
16522
+ "required": false,
16523
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
16524
+ }
16525
+ ]
16526
+ },
16527
+ {
16528
+ "resource": "devops.projects.environments",
16529
+ "method": "list",
16530
+ "summary": "List environments",
16531
+ "description": "List the project's environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.",
16532
+ "http": "GET",
16533
+ "path": "/devops/v1/projects/{project}/environments",
16534
+ "streaming": "no",
16535
+ "pagination": false,
16536
+ "pathParams": [
16537
+ {
16538
+ "name": "project",
16539
+ "sdkName": "project",
16540
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16541
+ }
16542
+ ],
16543
+ "query": []
16544
+ },
16545
+ {
16546
+ "resource": "devops.projects.environments.targets",
16547
+ "method": "deleteState",
16548
+ "summary": "Delete a target's OpenTofu state",
16549
+ "description": "Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.",
16550
+ "http": "DELETE",
16551
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16552
+ "streaming": "no",
16553
+ "pagination": false,
16554
+ "pathParams": [
16555
+ {
16556
+ "name": "project",
16557
+ "sdkName": "project",
16558
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16559
+ },
16560
+ {
16561
+ "name": "environment",
16562
+ "sdkName": "environment",
16563
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16564
+ },
16565
+ {
16566
+ "name": "target",
16567
+ "sdkName": "target",
16568
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16569
+ }
16570
+ ],
16571
+ "query": [
16572
+ {
16573
+ "name": "ID",
16574
+ "type": "string",
16575
+ "required": false,
16576
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16577
+ }
16578
+ ]
16579
+ },
16580
+ {
16581
+ "resource": "devops.projects.environments.targets",
16582
+ "method": "retrieveState",
16583
+ "summary": "Read a target's OpenTofu state",
16584
+ "description": "Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.",
16585
+ "http": "GET",
16586
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16587
+ "streaming": "no",
16588
+ "pagination": false,
16589
+ "pathParams": [
16590
+ {
16591
+ "name": "project",
16592
+ "sdkName": "project",
16593
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16594
+ },
16595
+ {
16596
+ "name": "environment",
16597
+ "sdkName": "environment",
16598
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16599
+ },
16600
+ {
16601
+ "name": "target",
16602
+ "sdkName": "target",
16603
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16604
+ }
16605
+ ],
16606
+ "query": []
16607
+ },
16608
+ {
16609
+ "resource": "devops.projects.environments.targets.state",
16610
+ "method": "create",
16611
+ "summary": "Write a target's OpenTofu state",
16612
+ "description": "Store a new OpenTofu state for one deploy target. OpenTofu calls this after every apply, passing the lock ID it holds as ID. Each accepted write also keeps an immutable version of that state (the latest 50 per target are kept), so a rollout's state change can be audited. A state document is at most 1 MiB. A write whose serial is lower than the stored serial of the same lineage is a stale write and answers 409 STALE_SERIAL; re-run so OpenTofu reads the newer state first.",
16613
+ "http": "POST",
16614
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
16615
+ "streaming": "no",
16616
+ "pagination": false,
16617
+ "pathParams": [
16618
+ {
16619
+ "name": "project",
16620
+ "sdkName": "project",
16621
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16622
+ },
16623
+ {
16624
+ "name": "environment",
16625
+ "sdkName": "environment",
16626
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16627
+ },
16628
+ {
16629
+ "name": "target",
16630
+ "sdkName": "target",
16631
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16632
+ }
16633
+ ],
16634
+ "query": [
16635
+ {
16636
+ "name": "ID",
16637
+ "type": "string",
16638
+ "required": false,
16639
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16640
+ }
16641
+ ],
16642
+ "body": {
16643
+ "required": true,
16644
+ "fields": [
16645
+ {
16646
+ "name": "version",
16647
+ "type": "integer",
16648
+ "required": false,
16649
+ "description": "The state format version OpenTofu wrote."
16650
+ },
16651
+ {
16652
+ "name": "serial",
16653
+ "type": "integer",
16654
+ "required": true,
16655
+ "description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
16656
+ },
16657
+ {
16658
+ "name": "lineage",
16659
+ "type": "string",
16660
+ "required": true,
16661
+ "description": "Identifies one state history; it does not change across writes."
16662
+ }
16663
+ ]
16664
+ }
16665
+ },
16666
+ {
16667
+ "resource": "devops.projects.environments.targets.state",
16668
+ "method": "deleteLock",
16669
+ "summary": "Unlock a target's OpenTofu state",
16670
+ "description": "Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.",
16671
+ "http": "DELETE",
16672
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
16673
+ "streaming": "no",
16674
+ "pagination": false,
16675
+ "pathParams": [
16676
+ {
16677
+ "name": "project",
16678
+ "sdkName": "project",
16679
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16680
+ },
16681
+ {
16682
+ "name": "environment",
16683
+ "sdkName": "environment",
16684
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16685
+ },
16686
+ {
16687
+ "name": "target",
16688
+ "sdkName": "target",
16689
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16690
+ }
16691
+ ],
16692
+ "query": [
16693
+ {
16694
+ "name": "ID",
16695
+ "type": "string",
16696
+ "required": false,
16697
+ "description": "The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT."
16698
+ }
16699
+ ],
16700
+ "body": {
16701
+ "required": false,
16702
+ "fields": [
16703
+ {
16704
+ "name": "ID",
16705
+ "type": "string",
16706
+ "required": true,
16707
+ "description": "Identifies the lock; every write and the unlock must carry it."
16708
+ },
16709
+ {
16710
+ "name": "Operation",
16711
+ "type": "string",
16712
+ "required": false,
16713
+ "description": "What the holder is doing, such as OperationTypeApply."
16714
+ },
16715
+ {
16716
+ "name": "Who",
16717
+ "type": "string",
16718
+ "required": false,
16719
+ "description": "The holder, user@host, shown to the caller that finds the lock held."
16720
+ },
16721
+ {
16722
+ "name": "Created",
16723
+ "type": "string",
16724
+ "required": false,
16725
+ "description": "When the holder took the lock, RFC 3339."
16726
+ },
16727
+ {
16728
+ "name": "Path",
16729
+ "type": "string",
16730
+ "required": false,
16731
+ "description": "Where the holder keeps its working state, informational."
16732
+ }
16733
+ ]
16734
+ }
16735
+ },
16736
+ {
16737
+ "resource": "devops.projects.environments.targets.state.lock",
16738
+ "method": "create",
16739
+ "summary": "Lock a target's OpenTofu state",
16740
+ "description": "Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.",
16741
+ "http": "POST",
16742
+ "path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
16743
+ "streaming": "no",
16744
+ "pagination": false,
16745
+ "pathParams": [
16746
+ {
16747
+ "name": "project",
16748
+ "sdkName": "project",
16749
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
16750
+ },
16751
+ {
16752
+ "name": "environment",
16753
+ "sdkName": "environment",
16754
+ "description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
16755
+ },
16756
+ {
16757
+ "name": "target",
16758
+ "sdkName": "target",
16759
+ "description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
16760
+ }
16761
+ ],
16762
+ "query": [],
16763
+ "body": {
16764
+ "required": true,
16765
+ "fields": [
16766
+ {
16767
+ "name": "ID",
16768
+ "type": "string",
16769
+ "required": true,
16770
+ "description": "Identifies the lock; every write and the unlock must carry it."
16771
+ },
16772
+ {
16773
+ "name": "Operation",
16774
+ "type": "string",
16775
+ "required": false,
16776
+ "description": "What the holder is doing, such as OperationTypeApply."
16777
+ },
16778
+ {
16779
+ "name": "Who",
16780
+ "type": "string",
16781
+ "required": false,
16782
+ "description": "The holder, user@host, shown to the caller that finds the lock held."
16783
+ },
16784
+ {
16785
+ "name": "Created",
16786
+ "type": "string",
16787
+ "required": false,
16788
+ "description": "When the holder took the lock, RFC 3339."
16789
+ },
16790
+ {
16791
+ "name": "Path",
16792
+ "type": "string",
16793
+ "required": false,
16794
+ "description": "Where the holder keeps its working state, informational."
16795
+ }
16796
+ ]
16797
+ }
16798
+ },
16799
+ {
16800
+ "resource": "devops.projects.flags",
16801
+ "method": "list",
16802
+ "summary": "List flags",
16803
+ "description": "List the project's flags with their per-environment configuration, newest first. Use it to find a flag by key when code names one, and to review the flags of a project — the entries carry lifecycle, staleness, the observation deadline and the removal ticket, which is what an expiry review reads. filter accepts exactly one term, lifecycle=archived, to list the archived flags instead of the live ones; any other filter or orderBy is refused rather than ignored. totalSize is answered on the first page only.",
16804
+ "http": "GET",
16805
+ "path": "/devops/v1/projects/{project}/flags",
16258
16806
  "streaming": "no",
16259
16807
  "pagination": false,
16260
16808
  "pathParams": [
@@ -17906,6 +18454,60 @@ export const operations = [
17906
18454
  ]
17907
18455
  }
17908
18456
  },
18457
+ {
18458
+ "resource": "devops.pullRequests",
18459
+ "method": "overrideGate",
18460
+ "summary": "Record a listed position's exception to the merge gate",
18461
+ "description": "Record the one exception to the fail-closed merge gate: the written authorization of a holder of a position listed in practice-config (today CEO, CTO, COO), for named checks, at the pull request's current head. Use it only when the authorization is already written on a ticket and the platform cannot answer a check in time; to restart a check the platform failed, use rerunGate first. headSha must be the current head (HEAD_MOVED otherwise), and a new push voids the override, because the gate reads only the overrides of its own head. authorizedBy must be the address (agent:<id> or human:<id>) of an actor holding an active workforce assignment to one of the positions listed in practice-config (today CEO, CTO, COO), otherwise GATE_OVERRIDE_NOT_AUTHORIZED (403) and nothing is written; when the position list or the workforce assignments cannot be read, or the list is empty, the call is refused too (fail-closed). The override is written once and never changed: the checks keep their real result, stop counting, and carry overriddenBy; the gate is decided again and its summary lists them on their own line, and the event devops.gate.overridden is published. A pull request that is not open is refused with PULL_REQUEST_NOT_OPEN. Example body: {\"headSha\":\"4f2a9c1…\",\"checks\":[\"repo-lint\"],\"ticket\":\"#5273\",\"reason\":\"build machines down, fix in #6801\",\"authorizedBy\":\"agent:agent_praxisfour\"}.",
18462
+ "http": "POST",
18463
+ "path": "/devops/v1/pull-requests/{id}:overrideGate",
18464
+ "streaming": "no",
18465
+ "pagination": false,
18466
+ "pathParams": [
18467
+ {
18468
+ "name": "id",
18469
+ "sdkName": "id",
18470
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
18471
+ }
18472
+ ],
18473
+ "query": [],
18474
+ "body": {
18475
+ "required": true,
18476
+ "fields": [
18477
+ {
18478
+ "name": "headSha",
18479
+ "type": "string",
18480
+ "required": true,
18481
+ "description": "The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED."
18482
+ },
18483
+ {
18484
+ "name": "checks",
18485
+ "type": "array",
18486
+ "itemType": "string",
18487
+ "required": true,
18488
+ "description": "The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT."
18489
+ },
18490
+ {
18491
+ "name": "ticket",
18492
+ "type": "string",
18493
+ "required": true,
18494
+ "description": "The ticket the authorization is written on, as #<number> or its URL."
18495
+ },
18496
+ {
18497
+ "name": "reason",
18498
+ "type": "string",
18499
+ "required": true,
18500
+ "description": "Why the check is let through at this head, in one sentence a later reader can audit."
18501
+ },
18502
+ {
18503
+ "name": "authorizedBy",
18504
+ "type": "string",
18505
+ "required": true,
18506
+ "description": "The holder of a listed position who authorized it, as agent:<id> or human:<id>; must hold an active assignment to one of the positions listed in practice-config (today CEO, CTO, COO)."
18507
+ }
18508
+ ]
18509
+ }
18510
+ },
17909
18511
  {
17910
18512
  "resource": "devops.pullRequests",
17911
18513
  "method": "recordVerdict",
@@ -17961,7 +18563,7 @@ export const operations = [
17961
18563
  "resource": "devops.pullRequests",
17962
18564
  "method": "rerunGate",
17963
18565
  "summary": "Decide a pull request's merge gate again",
17964
- "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run. Use it when a fact the gate reads has changed without a new push — a flag was registered, or a check that had no evidence now has some (test evidence uploaded for the head already decides the gate again by itself) — so nobody has to push an empty commit to make the check move. The answer is the pull request with the gate it now reaches. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one; while the same head is still deciding, the run it already owns is updated in place. Nothing else on the pull request changes, and repeating the call is safe: the same facts decide the same gate.",
18566
+ "description": "Decide the merge gate again at the pull request's current head and report the result on GitHub as the \"Praxis DevOps / gate\" check run; use it when a check says 平台故障,不是代码问题 (cause infrastructure) or when a fact the gate reads changed without a new push. First it restarts the checks the platform could not answer at this head — repo-lint or lockfile reading unavailable with cause infrastructure, or not_run — by clearing their unanswered records and starting the check machine again; a passed or failed result is never reopened. Restarting is limited to 3 times per head per hour, and a fourth is refused with GATE_RERUN_LIMITED (429): an outage that is not fixed only fails again, so report it to 运维部 instead. A call with nothing to restart only decides again and is never limited — for example after a flag was registered (test evidence uploaded for the head already decides the gate again by itself). The answer is the pull request with the gate it now reaches; a restarted check reads pending until the machine answers. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one.",
17965
18567
  "http": "POST",
17966
18568
  "path": "/devops/v1/pull-requests/{id}:rerunGate",
17967
18569
  "streaming": "no",
@@ -18544,7 +19146,7 @@ export const operations = [
18544
19146
  "resource": "devops.units",
18545
19147
  "method": "push",
18546
19148
  "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.",
19149
+ "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
19150
  "http": "POST",
18549
19151
  "path": "/devops/v1/units/{id}:push",
18550
19152
  "streaming": "no",
@@ -18611,6 +19213,592 @@ export const operations = [
18611
19213
  ],
18612
19214
  "query": []
18613
19215
  },
19216
+ {
19217
+ "resource": "end.accessTokens",
19218
+ "method": "create",
19219
+ "summary": "Exchange a grant code or publishable key",
19220
+ "description": "Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis end user access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous end user (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 END_USER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.end.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.",
19221
+ "http": "POST",
19222
+ "path": "/end/v1/access_tokens",
19223
+ "streaming": "no",
19224
+ "pagination": false,
19225
+ "pathParams": [],
19226
+ "query": [],
19227
+ "headers": [
19228
+ {
19229
+ "name": "Origin",
19230
+ "type": "string",
19231
+ "required": false,
19232
+ "description": "Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch."
19233
+ }
19234
+ ],
19235
+ "body": {
19236
+ "required": true,
19237
+ "fields": [
19238
+ {
19239
+ "name": "grant_code",
19240
+ "type": "string",
19241
+ "required": false,
19242
+ "description": "A grant code (cgc_…) from grant_codes, for an end user you signed in from your backend; it works once."
19243
+ },
19244
+ {
19245
+ "name": "publishable_key",
19246
+ "type": "string",
19247
+ "required": false,
19248
+ "description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin, unless continuation_token continues an earlier visitor of this key's organization."
19249
+ },
19250
+ {
19251
+ "name": "continuation_token",
19252
+ "type": "string",
19253
+ "required": false,
19254
+ "description": "The continuation_token of an earlier anonymous answer, kept by the page's own storage. A live one continues that anonymous end user (a new sign-in of seven days, with a rotated token); an unknown, expired, revoked, merged, blocked or foreign-organization one is treated as absent, so the answer never reveals whether it exists. It also continues the visitor when the page presents another publishable key of the same organization, but the resources it may reach are only those of the key presented now. Only accepted with publishable_key."
19255
+ }
19256
+ ]
19257
+ }
19258
+ },
19259
+ {
19260
+ "resource": "end.accessTokens",
19261
+ "method": "revoke",
19262
+ "summary": "Sign out the current token",
19263
+ "description": "Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.end.users.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
19264
+ "http": "DELETE",
19265
+ "path": "/end/v1/access_tokens/current",
19266
+ "streaming": "no",
19267
+ "pagination": false,
19268
+ "pathParams": [],
19269
+ "query": []
19270
+ },
19271
+ {
19272
+ "resource": "end.accessTokens",
19273
+ "method": "renew",
19274
+ "summary": "Renew an access token",
19275
+ "description": "Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.end.accessTokens.create. A blocked end user answers 403 END_USER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.",
19276
+ "http": "POST",
19277
+ "path": "/end/v1/access_tokens/renew",
19278
+ "streaming": "no",
19279
+ "pagination": false,
19280
+ "pathParams": [],
19281
+ "query": []
19282
+ },
19283
+ {
19284
+ "resource": "end.grantCodes",
19285
+ "method": "create",
19286
+ "summary": "Create a grant code",
19287
+ "description": "Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. end_user_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_end_user_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_end_user_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.",
19288
+ "http": "POST",
19289
+ "path": "/end/v1/grant_codes",
19290
+ "streaming": "no",
19291
+ "pagination": false,
19292
+ "pathParams": [],
19293
+ "query": [],
19294
+ "body": {
19295
+ "required": true,
19296
+ "fields": [
19297
+ {
19298
+ "name": "end_user_id",
19299
+ "type": "string",
19300
+ "required": true,
19301
+ "description": "Your own identifier for the end user, a non-empty string; do not use an email address or phone number, and a value starting with anon_ is reserved for visitors."
19302
+ },
19303
+ {
19304
+ "name": "metadata",
19305
+ "type": "object",
19306
+ "required": false,
19307
+ "description": "Product metadata to record with the end user, as string key to string value; it is merged over what is already stored."
19308
+ },
19309
+ {
19310
+ "name": "resources",
19311
+ "type": "array",
19312
+ "itemType": "object",
19313
+ "required": true,
19314
+ "description": "Resource scopes the sign-in may reach, at least one, each a scope string or an object with scope and params."
19315
+ },
19316
+ {
19317
+ "name": "origin",
19318
+ "type": "string",
19319
+ "required": false,
19320
+ "description": "Page origin this sign-in is bound to, for example https://school.example.com; a later exchange with another Origin is refused."
19321
+ },
19322
+ {
19323
+ "name": "expires_in",
19324
+ "type": "integer",
19325
+ "required": false,
19326
+ "description": "Lifetime of the code in seconds; omit for the fifteen-minute default, and send a smaller number to shorten it."
19327
+ },
19328
+ {
19329
+ "name": "max_session_seconds",
19330
+ "type": "integer",
19331
+ "required": false,
19332
+ "description": "Lifetime of the sign-in the code starts, in seconds; omit for the seven-day default."
19333
+ },
19334
+ {
19335
+ "name": "merge_end_user_id",
19336
+ "type": "string",
19337
+ "required": false,
19338
+ "description": "An existing anonymous end user (anon_…) whose record joins this person when the code is exchanged."
19339
+ },
19340
+ {
19341
+ "name": "anonymous_access_token",
19342
+ "type": "string",
19343
+ "required": false,
19344
+ "description": "The visitor's own Praxis end user access token, when the browser holds one, so this sign-in keeps that anonymous visitor instead of creating a new person; it is the access_token from a previous exchange, sent from your backend and never from the browser. It must be a live anonymous (anon_…) end user of this organization. It may not be combined with merge_end_user_id, and an expired, forged or foreign token answers 400 INVALID_PARAMS."
19345
+ }
19346
+ ]
19347
+ }
19348
+ },
19349
+ {
19350
+ "resource": "end.publishableKeys",
19351
+ "method": "list",
19352
+ "summary": "List publishable keys",
19353
+ "description": "List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.",
19354
+ "http": "GET",
19355
+ "path": "/end/v1/publishable_keys",
19356
+ "streaming": "no",
19357
+ "pagination": false,
19358
+ "pathParams": [],
19359
+ "query": [
19360
+ {
19361
+ "name": "page_size",
19362
+ "type": "integer",
19363
+ "required": false,
19364
+ "description": "Maximum keys in one page, from 1 to 100; defaults to 50."
19365
+ },
19366
+ {
19367
+ "name": "page_token",
19368
+ "type": "string",
19369
+ "required": false,
19370
+ "description": "next_page from the preceding key list response; omit for the first page."
19371
+ }
19372
+ ]
19373
+ },
19374
+ {
19375
+ "resource": "end.publishableKeys",
19376
+ "method": "create",
19377
+ "summary": "Create a publishable key",
19378
+ "description": "Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {\"amount\": \"5.00\", \"currency\": \"USD\"} (at most 2 decimals), read from the key's usage events; change them later with praxis.end.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.end.accessTokens.create with publishable_key.",
19379
+ "http": "POST",
19380
+ "path": "/end/v1/publishable_keys",
19381
+ "streaming": "no",
19382
+ "pagination": false,
19383
+ "pathParams": [],
19384
+ "query": [],
19385
+ "body": {
19386
+ "required": true,
19387
+ "fields": [
19388
+ {
19389
+ "name": "name",
19390
+ "type": "string",
19391
+ "required": true,
19392
+ "description": "Label for the key, shown in the console and the key list, for example Storefront."
19393
+ },
19394
+ {
19395
+ "name": "resources",
19396
+ "type": "array",
19397
+ "itemType": "object",
19398
+ "required": true,
19399
+ "description": "Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs."
19400
+ },
19401
+ {
19402
+ "name": "anon_rate_per_min",
19403
+ "type": "integer",
19404
+ "required": false,
19405
+ "description": "Most exchanges of this key per UTC minute, from 1 to 100000, counting every visitor together; omit or send null for no per-key limit."
19406
+ },
19407
+ {
19408
+ "name": "daily_session_cap",
19409
+ "type": "integer",
19410
+ "required": false,
19411
+ "description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; returning visitors are not counted. Omit or send null for no limit."
19412
+ },
19413
+ {
19414
+ "name": "daily_spend_cap",
19415
+ "type": "object",
19416
+ "required": false,
19417
+ "description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; 0.00 closes the key. Omit or send null for no spend cap."
19418
+ }
19419
+ ]
19420
+ }
19421
+ },
19422
+ {
19423
+ "resource": "end.publishableKeys",
19424
+ "method": "delete",
19425
+ "summary": "Delete a publishable key",
19426
+ "description": "Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
19427
+ "http": "DELETE",
19428
+ "path": "/end/v1/publishable_keys/{key_id}",
19429
+ "streaming": "no",
19430
+ "pagination": false,
19431
+ "pathParams": [
19432
+ {
19433
+ "name": "key_id",
19434
+ "sdkName": "key_id",
19435
+ "description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
19436
+ }
19437
+ ],
19438
+ "query": []
19439
+ },
19440
+ {
19441
+ "resource": "end.publishableKeys",
19442
+ "method": "update",
19443
+ "summary": "Update a publishable key",
19444
+ "description": "Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.",
19445
+ "http": "PATCH",
19446
+ "path": "/end/v1/publishable_keys/{key_id}",
19447
+ "streaming": "no",
19448
+ "pagination": false,
19449
+ "pathParams": [
19450
+ {
19451
+ "name": "key_id",
19452
+ "sdkName": "key_id",
19453
+ "description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
19454
+ }
19455
+ ],
19456
+ "query": [],
19457
+ "body": {
19458
+ "required": true,
19459
+ "fields": [
19460
+ {
19461
+ "name": "name",
19462
+ "type": "string",
19463
+ "required": false,
19464
+ "description": "New label for the key, 1 to 64 characters."
19465
+ },
19466
+ {
19467
+ "name": "anon_rate_per_min",
19468
+ "type": "integer",
19469
+ "required": false,
19470
+ "description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
19471
+ },
19472
+ {
19473
+ "name": "daily_session_cap",
19474
+ "type": "integer",
19475
+ "required": false,
19476
+ "description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
19477
+ },
19478
+ {
19479
+ "name": "daily_spend_cap",
19480
+ "type": "object",
19481
+ "required": false,
19482
+ "description": "The most the usage events of this key may cost in one UTC day, for example five dollars as amount 5.00 with currency USD; null removes the cap."
19483
+ }
19484
+ ]
19485
+ }
19486
+ },
19487
+ {
19488
+ "resource": "end.users",
19489
+ "method": "list",
19490
+ "summary": "List end users",
19491
+ "description": "Read the organization's end-user directory and obtain the end_user_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the end user id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.",
19492
+ "http": "GET",
19493
+ "path": "/end/v1/users",
19494
+ "streaming": "no",
19495
+ "pagination": false,
19496
+ "pathParams": [],
19497
+ "query": [
19498
+ {
19499
+ "name": "page_size",
19500
+ "type": "integer",
19501
+ "required": false,
19502
+ "description": "Maximum end users in one page, from 1 to 100; defaults to 50."
19503
+ },
19504
+ {
19505
+ "name": "page_token",
19506
+ "type": "string",
19507
+ "required": false,
19508
+ "description": "next_page from the preceding list response with the same filters; omit for the first page."
19509
+ },
19510
+ {
19511
+ "name": "type",
19512
+ "type": "string",
19513
+ "enum": [
19514
+ "identified",
19515
+ "anonymous"
19516
+ ],
19517
+ "required": false,
19518
+ "description": "Only end users of this kind; identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key. Omit for both."
19519
+ },
19520
+ {
19521
+ "name": "blocked",
19522
+ "type": "boolean",
19523
+ "required": false,
19524
+ "description": "true for blocked end users only, false for end users who are not blocked; omit for both."
19525
+ },
19526
+ {
19527
+ "name": "resource",
19528
+ "type": "string",
19529
+ "required": false,
19530
+ "description": "Only end users of one product, as <type>:<id>, for example content:cnt_0123456789abcdef, agent:agent_123 or application:app_456."
19531
+ },
19532
+ {
19533
+ "name": "q",
19534
+ "type": "string",
19535
+ "required": false,
19536
+ "description": "Only end users whose end user id starts with this prefix, for example cus_; omit for every id."
19537
+ }
19538
+ ]
19539
+ },
19540
+ {
19541
+ "resource": "end.users",
19542
+ "method": "delete",
19543
+ "summary": "Delete an end user",
19544
+ "description": "Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's end_user_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
19545
+ "http": "DELETE",
19546
+ "path": "/end/v1/users/{end_user_id}",
19547
+ "streaming": "no",
19548
+ "pagination": false,
19549
+ "pathParams": [
19550
+ {
19551
+ "name": "end_user_id",
19552
+ "sdkName": "end_user_id",
19553
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19554
+ }
19555
+ ],
19556
+ "query": [
19557
+ {
19558
+ "name": "confirm",
19559
+ "type": "string",
19560
+ "required": true,
19561
+ "description": "The end_user_id being deleted, repeated exactly; the service compares it with the path and refuses a mismatch with 400."
19562
+ }
19563
+ ]
19564
+ },
19565
+ {
19566
+ "resource": "end.users",
19567
+ "method": "retrieve",
19568
+ "summary": "Get an end user",
19569
+ "description": "Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 END_USER_NOT_FOUND.",
19570
+ "http": "GET",
19571
+ "path": "/end/v1/users/{end_user_id}",
19572
+ "streaming": "no",
19573
+ "pagination": false,
19574
+ "pathParams": [
19575
+ {
19576
+ "name": "end_user_id",
19577
+ "sdkName": "end_user_id",
19578
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19579
+ }
19580
+ ],
19581
+ "query": [
19582
+ {
19583
+ "name": "expand",
19584
+ "type": "string",
19585
+ "required": false,
19586
+ "description": "Comma-separated extras to include; products for the products this end user has used, sign_ins for its sign-ins, usage for its recorded usage. Omit to get only the directory record."
19587
+ }
19588
+ ]
19589
+ },
19590
+ {
19591
+ "resource": "end.users",
19592
+ "method": "block",
19593
+ "summary": "Block an end user",
19594
+ "description": "Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
19595
+ "http": "POST",
19596
+ "path": "/end/v1/users/{end_user_id}/block",
19597
+ "streaming": "no",
19598
+ "pagination": false,
19599
+ "pathParams": [
19600
+ {
19601
+ "name": "end_user_id",
19602
+ "sdkName": "end_user_id",
19603
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19604
+ }
19605
+ ],
19606
+ "query": [],
19607
+ "body": {
19608
+ "required": false,
19609
+ "fields": [
19610
+ {
19611
+ "name": "reason",
19612
+ "type": "string",
19613
+ "required": false,
19614
+ "description": "Why the end user is blocked, recorded with the block fact; omit for none."
19615
+ }
19616
+ ]
19617
+ }
19618
+ },
19619
+ {
19620
+ "resource": "end.users",
19621
+ "method": "revokeTokens",
19622
+ "summary": "Revoke every token of an end user",
19623
+ "description": "End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.end.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
19624
+ "http": "POST",
19625
+ "path": "/end/v1/users/{end_user_id}/revoke_tokens",
19626
+ "streaming": "no",
19627
+ "pagination": false,
19628
+ "pathParams": [
19629
+ {
19630
+ "name": "end_user_id",
19631
+ "sdkName": "end_user_id",
19632
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19633
+ }
19634
+ ],
19635
+ "query": []
19636
+ },
19637
+ {
19638
+ "resource": "end.users",
19639
+ "method": "unblock",
19640
+ "summary": "Unblock an end user",
19641
+ "description": "Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 END_USER_NOT_FOUND.",
19642
+ "http": "POST",
19643
+ "path": "/end/v1/users/{end_user_id}/unblock",
19644
+ "streaming": "no",
19645
+ "pagination": false,
19646
+ "pathParams": [
19647
+ {
19648
+ "name": "end_user_id",
19649
+ "sdkName": "end_user_id",
19650
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19651
+ }
19652
+ ],
19653
+ "query": []
19654
+ },
19655
+ {
19656
+ "resource": "end.usage",
19657
+ "method": "retrieve",
19658
+ "summary": "Read end-user usage",
19659
+ "description": "Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the endId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 END_USER_NOT_FOUND.",
19660
+ "http": "GET",
19661
+ "path": "/end/v1/users/{end_user_id}/usage",
19662
+ "streaming": "no",
19663
+ "pagination": false,
19664
+ "pathParams": [
19665
+ {
19666
+ "name": "end_user_id",
19667
+ "sdkName": "end_user_id",
19668
+ "description": "End-user id from users.list or users.get; an id of another organization answers END_USER_NOT_FOUND."
19669
+ }
19670
+ ],
19671
+ "query": [
19672
+ {
19673
+ "name": "from",
19674
+ "type": "string",
19675
+ "required": false,
19676
+ "description": "Start of the window as an RFC 3339 time, inclusive; omit for the beginning of the record."
19677
+ },
19678
+ {
19679
+ "name": "to",
19680
+ "type": "string",
19681
+ "required": false,
19682
+ "description": "End of the window as an RFC 3339 time, exclusive; omit for now."
19683
+ }
19684
+ ]
19685
+ },
19686
+ {
19687
+ "resource": "events.subscriptions",
19688
+ "method": "list",
19689
+ "summary": "List event subscriptions",
19690
+ "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.",
19691
+ "http": "GET",
19692
+ "path": "/events/v1/subscriptions",
19693
+ "streaming": "no",
19694
+ "pagination": false,
19695
+ "pathParams": [],
19696
+ "query": [
19697
+ {
19698
+ "name": "limit",
19699
+ "type": "integer",
19700
+ "required": false,
19701
+ "description": "Maximum subscriptions to return, from 1 to 100; defaults to 50."
19702
+ }
19703
+ ]
19704
+ },
19705
+ {
19706
+ "resource": "events.subscriptions",
19707
+ "method": "create",
19708
+ "summary": "Create event subscription",
19709
+ "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.",
19710
+ "http": "POST",
19711
+ "path": "/events/v1/subscriptions",
19712
+ "streaming": "no",
19713
+ "pagination": false,
19714
+ "pathParams": [],
19715
+ "query": [],
19716
+ "body": {
19717
+ "required": true,
19718
+ "fields": [
19719
+ {
19720
+ "name": "types",
19721
+ "type": "array",
19722
+ "itemType": "string",
19723
+ "required": true,
19724
+ "description": "The tenant event types to hear about, from events.types.list; an event of any one of them can match."
19725
+ },
19726
+ {
19727
+ "name": "filters",
19728
+ "type": "array",
19729
+ "itemType": "object",
19730
+ "required": false,
19731
+ "description": "Conditions that must all hold for an event to match; omit or leave empty to match every event of the types."
19732
+ },
19733
+ {
19734
+ "name": "sink",
19735
+ "type": "string",
19736
+ "required": false,
19737
+ "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."
19738
+ },
19739
+ {
19740
+ "name": "once",
19741
+ "type": "boolean",
19742
+ "required": false,
19743
+ "description": "True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour."
19744
+ },
19745
+ {
19746
+ "name": "expires_at",
19747
+ "type": "string",
19748
+ "required": false,
19749
+ "description": "When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now."
19750
+ }
19751
+ ]
19752
+ }
19753
+ },
19754
+ {
19755
+ "resource": "events.subscriptions",
19756
+ "method": "delete",
19757
+ "summary": "Delete event subscription",
19758
+ "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.",
19759
+ "http": "DELETE",
19760
+ "path": "/events/v1/subscriptions/{subscription_id}",
19761
+ "streaming": "no",
19762
+ "pagination": false,
19763
+ "pathParams": [
19764
+ {
19765
+ "name": "subscription_id",
19766
+ "sdkName": "subscription_id",
19767
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19768
+ }
19769
+ ],
19770
+ "query": []
19771
+ },
19772
+ {
19773
+ "resource": "events.subscriptions",
19774
+ "method": "retrieve",
19775
+ "summary": "Retrieve event subscription",
19776
+ "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.",
19777
+ "http": "GET",
19778
+ "path": "/events/v1/subscriptions/{subscription_id}",
19779
+ "streaming": "no",
19780
+ "pagination": false,
19781
+ "pathParams": [
19782
+ {
19783
+ "name": "subscription_id",
19784
+ "sdkName": "subscription_id",
19785
+ "description": "Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits."
19786
+ }
19787
+ ],
19788
+ "query": []
19789
+ },
19790
+ {
19791
+ "resource": "events.types",
19792
+ "method": "list",
19793
+ "summary": "List event types",
19794
+ "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.",
19795
+ "http": "GET",
19796
+ "path": "/events/v1/types",
19797
+ "streaming": "no",
19798
+ "pagination": false,
19799
+ "pathParams": [],
19800
+ "query": []
19801
+ },
18614
19802
  {
18615
19803
  "resource": "file.files",
18616
19804
  "method": "list",
@@ -20879,6 +22067,42 @@ export const operations = [
20879
22067
  ],
20880
22068
  "query": []
20881
22069
  },
22070
+ {
22071
+ "resource": "media.libraries.assets.works",
22072
+ "method": "list",
22073
+ "summary": "List works using an asset",
22074
+ "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.",
22075
+ "http": "GET",
22076
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/works",
22077
+ "streaming": "no",
22078
+ "pagination": true,
22079
+ "pathParams": [
22080
+ {
22081
+ "name": "library_id",
22082
+ "sdkName": "library_id",
22083
+ "description": "Library ID returned by creation."
22084
+ },
22085
+ {
22086
+ "name": "asset_id",
22087
+ "sdkName": "asset_id",
22088
+ "description": "32-character asset ID."
22089
+ }
22090
+ ],
22091
+ "query": [
22092
+ {
22093
+ "name": "limit",
22094
+ "type": "integer",
22095
+ "required": false,
22096
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
22097
+ },
22098
+ {
22099
+ "name": "cursor",
22100
+ "type": "string",
22101
+ "required": false,
22102
+ "description": "Cursor from the previous next_cursor."
22103
+ }
22104
+ ]
22105
+ },
20882
22106
  {
20883
22107
  "resource": "media.libraries.assets",
20884
22108
  "method": "batch",
@@ -22148,6 +23372,215 @@ export const operations = [
22148
23372
  ]
22149
23373
  }
22150
23374
  },
23375
+ {
23376
+ "resource": "media.libraries.works",
23377
+ "method": "list",
23378
+ "summary": "List works",
23379
+ "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.",
23380
+ "http": "GET",
23381
+ "path": "/media/v1/libraries/{library_id}/works",
23382
+ "streaming": "no",
23383
+ "pagination": true,
23384
+ "pathParams": [
23385
+ {
23386
+ "name": "library_id",
23387
+ "sdkName": "library_id",
23388
+ "description": "Library ID returned by creation."
23389
+ }
23390
+ ],
23391
+ "query": [
23392
+ {
23393
+ "name": "kind",
23394
+ "type": "string",
23395
+ "enum": [
23396
+ "gallery",
23397
+ "article",
23398
+ "product_listing",
23399
+ "blocks"
23400
+ ],
23401
+ "required": false,
23402
+ "description": "Only works of this kind: gallery, article, product_listing or blocks."
23403
+ },
23404
+ {
23405
+ "name": "series",
23406
+ "type": "string",
23407
+ "required": false,
23408
+ "description": "Only works of this series."
23409
+ },
23410
+ {
23411
+ "name": "q",
23412
+ "type": "string",
23413
+ "required": false,
23414
+ "description": "Only works whose title contains this text, at most 100 characters."
23415
+ },
23416
+ {
23417
+ "name": "limit",
23418
+ "type": "integer",
23419
+ "required": false,
23420
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
23421
+ },
23422
+ {
23423
+ "name": "cursor",
23424
+ "type": "string",
23425
+ "required": false,
23426
+ "description": "Cursor from the previous next_cursor."
23427
+ }
23428
+ ]
23429
+ },
23430
+ {
23431
+ "resource": "media.libraries.works",
23432
+ "method": "create",
23433
+ "summary": "Create work",
23434
+ "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>\"}]}}.",
23435
+ "http": "POST",
23436
+ "path": "/media/v1/libraries/{library_id}/works",
23437
+ "streaming": "no",
23438
+ "pagination": false,
23439
+ "pathParams": [
23440
+ {
23441
+ "name": "library_id",
23442
+ "sdkName": "library_id",
23443
+ "description": "Library ID returned by creation."
23444
+ }
23445
+ ],
23446
+ "query": [],
23447
+ "body": {
23448
+ "required": true,
23449
+ "fields": [
23450
+ {
23451
+ "name": "kind",
23452
+ "type": "string",
23453
+ "enum": [
23454
+ "gallery",
23455
+ "article",
23456
+ "product_listing",
23457
+ "blocks"
23458
+ ],
23459
+ "required": true,
23460
+ "description": "Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved."
23461
+ },
23462
+ {
23463
+ "name": "body",
23464
+ "type": "object",
23465
+ "required": true
23466
+ },
23467
+ {
23468
+ "name": "series",
23469
+ "type": "string",
23470
+ "required": false,
23471
+ "description": "Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -."
23472
+ },
23473
+ {
23474
+ "name": "custom",
23475
+ "type": "object",
23476
+ "required": false
23477
+ }
23478
+ ]
23479
+ }
23480
+ },
23481
+ {
23482
+ "resource": "media.libraries.works",
23483
+ "method": "delete",
23484
+ "summary": "Delete work",
23485
+ "description": "Delete a work. Only the work goes: every asset it named stays in the library unchanged.",
23486
+ "http": "DELETE",
23487
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
23488
+ "streaming": "no",
23489
+ "pagination": false,
23490
+ "pathParams": [
23491
+ {
23492
+ "name": "library_id",
23493
+ "sdkName": "library_id",
23494
+ "description": "Library ID returned by creation."
23495
+ },
23496
+ {
23497
+ "name": "work_id",
23498
+ "sdkName": "work_id",
23499
+ "description": "Work id (wrk_…) returned by creation or listing."
23500
+ }
23501
+ ],
23502
+ "query": []
23503
+ },
23504
+ {
23505
+ "resource": "media.libraries.works",
23506
+ "method": "retrieve",
23507
+ "summary": "Get work",
23508
+ "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.",
23509
+ "http": "GET",
23510
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
23511
+ "streaming": "no",
23512
+ "pagination": false,
23513
+ "pathParams": [
23514
+ {
23515
+ "name": "library_id",
23516
+ "sdkName": "library_id",
23517
+ "description": "Library ID returned by creation."
23518
+ },
23519
+ {
23520
+ "name": "work_id",
23521
+ "sdkName": "work_id",
23522
+ "description": "Work id (wrk_…) returned by creation or listing."
23523
+ }
23524
+ ],
23525
+ "query": [
23526
+ {
23527
+ "name": "expand",
23528
+ "type": "string",
23529
+ "required": false,
23530
+ "description": "assets returns every referenced asset with its URLs and size."
23531
+ }
23532
+ ]
23533
+ },
23534
+ {
23535
+ "resource": "media.libraries.works",
23536
+ "method": "update",
23537
+ "summary": "Update work",
23538
+ "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}}}.",
23539
+ "http": "PATCH",
23540
+ "path": "/media/v1/libraries/{library_id}/works/{work_id}",
23541
+ "streaming": "no",
23542
+ "pagination": false,
23543
+ "pathParams": [
23544
+ {
23545
+ "name": "library_id",
23546
+ "sdkName": "library_id",
23547
+ "description": "Library ID returned by creation."
23548
+ },
23549
+ {
23550
+ "name": "work_id",
23551
+ "sdkName": "work_id",
23552
+ "description": "Work id (wrk_…) returned by creation or listing."
23553
+ }
23554
+ ],
23555
+ "query": [],
23556
+ "body": {
23557
+ "required": true,
23558
+ "fields": [
23559
+ {
23560
+ "name": "body",
23561
+ "type": "object",
23562
+ "required": false
23563
+ },
23564
+ {
23565
+ "name": "series",
23566
+ "type": "string",
23567
+ "required": false,
23568
+ "description": "A new series, or null to clear it."
23569
+ },
23570
+ {
23571
+ "name": "custom",
23572
+ "type": "object",
23573
+ "required": false
23574
+ },
23575
+ {
23576
+ "name": "if_revision",
23577
+ "type": "number",
23578
+ "required": false,
23579
+ "description": "Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision."
23580
+ }
23581
+ ]
23582
+ }
23583
+ },
22151
23584
  {
22152
23585
  "resource": "media.pipelines",
22153
23586
  "method": "list",
@@ -22876,7 +24309,7 @@ export const operations = [
22876
24309
  "resource": "model.audio.speech",
22877
24310
  "method": "create",
22878
24311
  "summary": "Generate speech",
22879
- "description": "Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as melotts or aura-2-en (list them with listModels?type=speech). MeloTTS supports response_format wav only and takes lang (en default, fr, es, zh; ja and ko currently error) and no voice; Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {\"model\":\"melotts\",\"input\":\"Hello\",\"lang\":\"en\",\"response_format\":\"wav\"}.",
24312
+ "description": "Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as aura-2-en (list them with listModels?type=speech). Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). lang is not read by any speech model offered today: Aura rejects it with 400 input_not_representable. Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {\"model\":\"aura-2-en\",\"input\":\"Hello\",\"response_format\":\"mp3\"}.",
22880
24313
  "http": "POST",
22881
24314
  "path": "/model/v1/audio/speech",
22882
24315
  "streaming": "no",
@@ -22890,19 +24323,19 @@ export const operations = [
22890
24323
  "name": "model",
22891
24324
  "type": "string",
22892
24325
  "required": true,
22893
- "description": "Speech model id, for example `melotts` or `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect."
24326
+ "description": "Speech model id, for example `aura-2-en`; list candidates with listModels?type=speech. Router support (supported): Verified to take effect."
22894
24327
  },
22895
24328
  {
22896
24329
  "name": "input",
22897
24330
  "type": "string",
22898
24331
  "required": false,
22899
- "description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): melotts supports input, lang and response_format=wav; text/prompt aliases also work."
24332
+ "description": "Text to synthesize, 1 to 4096 characters. `text` and `prompt` are aliases; when several are given, `input` wins. Router support (supported): input is supported; text/prompt aliases also work."
22900
24333
  },
22901
24334
  {
22902
24335
  "name": "voice",
22903
24336
  "type": "object",
22904
24337
  "required": false,
22905
- "description": "Aura speaker name; custom voice objects are rejected by Aura. MeloTTS ignores voice with a warning unless provider.require_parameters is true, in which case it returns 400."
24338
+ "description": "Aura speaker name; custom voice objects are rejected by Aura."
22906
24339
  },
22907
24340
  {
22908
24341
  "name": "instructions",
@@ -22921,7 +24354,7 @@ export const operations = [
22921
24354
  "pcm"
22922
24355
  ],
22923
24356
  "required": false,
22924
- "description": "MeloTTS supports only wav (default); all other explicit formats return 400. When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
24357
+ "description": "When omitted the actual upstream format is returned. Aura defaults to mp3; aac returns 400."
22925
24358
  },
22926
24359
  {
22927
24360
  "name": "speed",
@@ -22948,7 +24381,7 @@ export const operations = [
22948
24381
  "name": "prompt",
22949
24382
  "type": "string",
22950
24383
  "required": false,
22951
- "description": "MeloTTS alias for input; input then text take precedence."
24384
+ "description": "Alias for input; input then text take precedence."
22952
24385
  },
22953
24386
  {
22954
24387
  "name": "speaker",
@@ -22968,7 +24401,7 @@ export const operations = [
22968
24401
  "ko"
22969
24402
  ],
22970
24403
  "required": false,
22971
- "description": "MeloTTS language; defaults to en. Use this field to select language; voice is not supported by MeloTTS."
24404
+ "description": "Language code. No speech model currently offered reads it. Aura rejects lang with 400 input_not_representable so omit it."
22972
24405
  },
22973
24406
  {
22974
24407
  "name": "encoding",
@@ -25783,7 +27216,7 @@ export const operations = [
25783
27216
  "resource": "organization.costs",
25784
27217
  "method": "list",
25785
27218
  "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",
27219
+ "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
27220
  "http": "GET",
25788
27221
  "path": "/organization/v1/costs",
25789
27222
  "streaming": "no",
@@ -25816,7 +27249,7 @@ export const operations = [
25816
27249
  "name": "time_zone",
25817
27250
  "type": "string",
25818
27251
  "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"
27252
+ "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
27253
  },
25821
27254
  {
25822
27255
  "name": "group_by",
@@ -25826,10 +27259,14 @@ export const operations = [
25826
27259
  "ServiceName",
25827
27260
  "ServiceCategory",
25828
27261
  "ResourceId",
25829
- "ConsumedUnit"
27262
+ "ConsumedUnit",
27263
+ "SessionId",
27264
+ "AgentId",
27265
+ "ApiKeyId",
27266
+ "RunId"
25830
27267
  ],
25831
27268
  "required": false,
25832
- "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
27269
+ "description": "Columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.\n"
25833
27270
  },
25834
27271
  {
25835
27272
  "name": "page",
@@ -26182,29 +27619,46 @@ export const operations = [
26182
27619
  {
26183
27620
  "resource": "organization.notifications.letters",
26184
27621
  "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.",
27622
+ "summary": "List the letters addressed to you, or the ones you sent",
27623
+ "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
27624
  "http": "GET",
26188
27625
  "path": "/organization/v1/notifications/letters",
26189
27626
  "streaming": "no",
26190
27627
  "pagination": false,
26191
27628
  "pathParams": [],
26192
27629
  "query": [
27630
+ {
27631
+ "name": "direction",
27632
+ "type": "string",
27633
+ "enum": [
27634
+ "received",
27635
+ "sent"
27636
+ ],
27637
+ "required": false,
27638
+ "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."
27639
+ },
26193
27640
  {
26194
27641
  "name": "status",
26195
27642
  "type": "string",
26196
27643
  "enum": [
26197
27644
  "unread",
26198
- "read"
27645
+ "read",
27646
+ "scheduled"
26199
27647
  ],
26200
27648
  "required": false,
26201
- "description": "Only unread letters, or only read ones; omit for both."
27649
+ "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."
27650
+ },
27651
+ {
27652
+ "name": "thread",
27653
+ "type": "string",
27654
+ "required": false,
27655
+ "description": "Only letters of this conversation, for received and sent alike; omit for all."
26202
27656
  },
26203
27657
  {
26204
27658
  "name": "archived",
26205
27659
  "type": "boolean",
26206
27660
  "required": false,
26207
- "description": "false (the default) hides archived letters; true lists only the archived ones."
27661
+ "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
27662
  },
26209
27663
  {
26210
27664
  "name": "limit",
@@ -26220,6 +27674,64 @@ export const operations = [
26220
27674
  }
26221
27675
  ]
26222
27676
  },
27677
+ {
27678
+ "resource": "organization.notifications.letters",
27679
+ "method": "create",
27680
+ "summary": "Send a letter to a person or an agent",
27681
+ "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.",
27682
+ "http": "POST",
27683
+ "path": "/organization/v1/notifications/letters",
27684
+ "streaming": "no",
27685
+ "pagination": false,
27686
+ "pathParams": [],
27687
+ "query": [],
27688
+ "body": {
27689
+ "required": true,
27690
+ "fields": [
27691
+ {
27692
+ "name": "to",
27693
+ "type": "string",
27694
+ "required": true,
27695
+ "description": "The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization."
27696
+ },
27697
+ {
27698
+ "name": "body",
27699
+ "type": "string",
27700
+ "required": true,
27701
+ "description": "The whole letter, 1 to 16000 characters."
27702
+ },
27703
+ {
27704
+ "name": "summary",
27705
+ "type": "string",
27706
+ "required": false,
27707
+ "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."
27708
+ },
27709
+ {
27710
+ "name": "kind",
27711
+ "type": "string",
27712
+ "enum": [
27713
+ "notice",
27714
+ "mention",
27715
+ "decision"
27716
+ ],
27717
+ "required": false,
27718
+ "description": "The letter's kind; it decides the channels. Defaults to mention."
27719
+ },
27720
+ {
27721
+ "name": "thread",
27722
+ "type": "string",
27723
+ "required": false,
27724
+ "description": "The conversation the letter belongs to, free text; omit for none."
27725
+ },
27726
+ {
27727
+ "name": "deliver_at",
27728
+ "type": "string",
27729
+ "required": false,
27730
+ "description": "When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now."
27731
+ }
27732
+ ]
27733
+ }
27734
+ },
26223
27735
  {
26224
27736
  "resource": "organization.notifications.letters",
26225
27737
  "method": "retrieve",
@@ -26294,7 +27806,8 @@ export const operations = [
26294
27806
  "enum": [
26295
27807
  "notice",
26296
27808
  "mention",
26297
- "decision"
27809
+ "decision",
27810
+ "event"
26298
27811
  ],
26299
27812
  "required": false,
26300
27813
  "description": "Only letters of this kind; omit for all kinds."
@@ -26302,6 +27815,124 @@ export const operations = [
26302
27815
  ]
26303
27816
  }
26304
27817
  },
27818
+ {
27819
+ "resource": "organization.notifications.messages",
27820
+ "method": "list",
27821
+ "summary": "List your bell messages",
27822
+ "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.",
27823
+ "http": "GET",
27824
+ "path": "/organization/v1/notifications/messages",
27825
+ "streaming": "no",
27826
+ "pagination": false,
27827
+ "pathParams": [],
27828
+ "query": [
27829
+ {
27830
+ "name": "archived",
27831
+ "type": "string",
27832
+ "enum": [
27833
+ "0",
27834
+ "1"
27835
+ ],
27836
+ "required": false,
27837
+ "description": "0 (the default) lists the inbox tab, 1 lists archived messages."
27838
+ },
27839
+ {
27840
+ "name": "limit",
27841
+ "type": "integer",
27842
+ "required": false,
27843
+ "description": "Messages per page, 1 to 100; defaults to 20."
27844
+ },
27845
+ {
27846
+ "name": "page",
27847
+ "type": "string",
27848
+ "required": false,
27849
+ "description": "Opaque nextPageToken from the previous response; omit for the first page."
27850
+ }
27851
+ ]
27852
+ },
27853
+ {
27854
+ "resource": "organization.notifications.messages",
27855
+ "method": "delete",
27856
+ "summary": "Delete one of your bell messages",
27857
+ "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.",
27858
+ "http": "DELETE",
27859
+ "path": "/organization/v1/notifications/messages/{name}",
27860
+ "streaming": "no",
27861
+ "pagination": false,
27862
+ "pathParams": [
27863
+ {
27864
+ "name": "name",
27865
+ "sdkName": "name",
27866
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27867
+ }
27868
+ ],
27869
+ "query": []
27870
+ },
27871
+ {
27872
+ "resource": "organization.notifications.messages",
27873
+ "method": "retrieve",
27874
+ "summary": "Open one of your bell messages",
27875
+ "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.",
27876
+ "http": "GET",
27877
+ "path": "/organization/v1/notifications/messages/{name}",
27878
+ "streaming": "no",
27879
+ "pagination": false,
27880
+ "pathParams": [
27881
+ {
27882
+ "name": "name",
27883
+ "sdkName": "name",
27884
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27885
+ }
27886
+ ],
27887
+ "query": []
27888
+ },
27889
+ {
27890
+ "resource": "organization.notifications.messages",
27891
+ "method": "update",
27892
+ "summary": "Mark one of your bell messages read or archived",
27893
+ "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.",
27894
+ "http": "POST",
27895
+ "path": "/organization/v1/notifications/messages/{name}",
27896
+ "streaming": "no",
27897
+ "pagination": false,
27898
+ "pathParams": [
27899
+ {
27900
+ "name": "name",
27901
+ "sdkName": "name",
27902
+ "description": "The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded."
27903
+ }
27904
+ ],
27905
+ "query": [],
27906
+ "body": {
27907
+ "required": true,
27908
+ "fields": [
27909
+ {
27910
+ "name": "read",
27911
+ "type": "boolean",
27912
+ "required": false,
27913
+ "description": "Mark the message read (true) or unread (false); omit to leave it."
27914
+ },
27915
+ {
27916
+ "name": "archived",
27917
+ "type": "boolean",
27918
+ "required": false,
27919
+ "description": "Archive the message (true) or move it back to the inbox (false); omit to leave it."
27920
+ }
27921
+ ]
27922
+ }
27923
+ },
27924
+ {
27925
+ "resource": "organization.notifications.messages",
27926
+ "method": "readAll",
27927
+ "summary": "Mark all your unread bell messages read",
27928
+ "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.",
27929
+ "http": "POST",
27930
+ "path": "/organization/v1/notifications/messages:readAll",
27931
+ "streaming": "no",
27932
+ "pagination": false,
27933
+ "pathParams": [],
27934
+ "query": []
27935
+ },
26305
27936
  {
26306
27937
  "resource": "organization.notifications",
26307
27938
  "method": "retrieveOrganizationDefault",
@@ -26413,7 +28044,7 @@ export const operations = [
26413
28044
  "resource": "organization.usage",
26414
28045
  "method": "list",
26415
28046
  "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",
28047
+ "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
28048
  "http": "GET",
26418
28049
  "path": "/organization/v1/usage",
26419
28050
  "streaming": "no",
@@ -26446,7 +28077,7 @@ export const operations = [
26446
28077
  "name": "time_zone",
26447
28078
  "type": "string",
26448
28079
  "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"
28080
+ "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
28081
  },
26451
28082
  {
26452
28083
  "name": "group_by",
@@ -26456,10 +28087,14 @@ export const operations = [
26456
28087
  "ServiceName",
26457
28088
  "ServiceCategory",
26458
28089
  "ResourceId",
26459
- "ConsumedUnit"
28090
+ "ConsumedUnit",
28091
+ "SessionId",
28092
+ "AgentId",
28093
+ "ApiKeyId",
28094
+ "RunId"
26460
28095
  ],
26461
28096
  "required": false,
26462
- "description": "FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).\n"
28097
+ "description": "Columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.\n"
26463
28098
  },
26464
28099
  {
26465
28100
  "name": "page",
@@ -27455,7 +29090,7 @@ export const operations = [
27455
29090
  "linux"
27456
29091
  ],
27457
29092
  "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."
29093
+ "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
29094
  },
27460
29095
  {
27461
29096
  "name": "name",
@@ -27484,6 +29119,24 @@ export const operations = [
27484
29119
  ]
27485
29120
  }
27486
29121
  },
29122
+ {
29123
+ "resource": "sandbox.byod.pairings",
29124
+ "method": "status",
29125
+ "summary": "Read which device claimed your pairing",
29126
+ "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}.",
29127
+ "http": "GET",
29128
+ "path": "/sandbox/v1/byod/pairings/{code}/status",
29129
+ "streaming": "no",
29130
+ "pagination": false,
29131
+ "pathParams": [
29132
+ {
29133
+ "name": "code",
29134
+ "sdkName": "code",
29135
+ "description": "The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404."
29136
+ }
29137
+ ],
29138
+ "query": []
29139
+ },
27487
29140
  {
27488
29141
  "resource": "sandbox.events.sandboxes",
27489
29142
  "method": "retrieve",
@@ -27602,7 +29255,7 @@ export const operations = [
27602
29255
  "resource": "sandbox.sandboxes",
27603
29256
  "method": "create",
27604
29257
  "summary": "Create sandbox (v2)",
27605
- "description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, mounts volumes, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention and volumes belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
29258
+ "description": "Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.",
27606
29259
  "http": "POST",
27607
29260
  "path": "/sandbox/v1/sandboxes",
27608
29261
  "streaming": "no",
@@ -27646,7 +29299,7 @@ export const operations = [
27646
29299
  "name": "allow_internet_access",
27647
29300
  "type": "boolean",
27648
29301
  "required": false,
27649
- "description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
29302
+ "description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config. Not available yet: egress control is not implemented, so any value answers 501 PROVIDER_UNSUPPORTED; omit it (internet access is on by default)."
27650
29303
  },
27651
29304
  {
27652
29305
  "name": "network",
@@ -27683,13 +29336,13 @@ export const operations = [
27683
29336
  "type": "array",
27684
29337
  "itemType": "object",
27685
29338
  "required": false,
27686
- "description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox."
29339
+ "description": "Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox. Not available yet: volumes are not implemented, so omit this field or send an empty array; any volume answers 501 PROVIDER_UNSUPPORTED."
27687
29340
  },
27688
29341
  {
27689
29342
  "name": "ephemeral",
27690
29343
  "type": "boolean",
27691
29344
  "required": false,
27692
- "description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS."
29345
+ "description": "Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots). Leaving it out returns INVALID_PARAMS."
27693
29346
  },
27694
29347
  {
27695
29348
  "name": "size",
@@ -28061,61 +29714,6 @@ export const operations = [
28061
29714
  }
28062
29715
  ]
28063
29716
  },
28064
- {
28065
- "resource": "sandbox.sandboxes",
28066
- "method": "updateNetwork",
28067
- "summary": "Update sandbox network",
28068
- "description": "Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.",
28069
- "http": "PUT",
28070
- "path": "/sandbox/v1/sandboxes/{sandboxID}/network",
28071
- "streaming": "no",
28072
- "pagination": false,
28073
- "pathParams": [
28074
- {
28075
- "name": "sandboxID",
28076
- "sdkName": "sandboxID",
28077
- "description": "Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404."
28078
- }
28079
- ],
28080
- "query": [],
28081
- "body": {
28082
- "required": true,
28083
- "fields": [
28084
- {
28085
- "name": "allowOut",
28086
- "type": "array",
28087
- "itemType": "string",
28088
- "required": false,
28089
- "description": "List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. \"8.8.8.8/32\"), a bare IP address (e.g. \"8.8.8.8\"), or a domain name (e.g. \"example.com\", \"*.example.com\"). Allowed entries always take precedence over denied entries."
28090
- },
28091
- {
28092
- "name": "denyOut",
28093
- "type": "array",
28094
- "itemType": "string",
28095
- "required": false,
28096
- "description": "List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules."
28097
- },
28098
- {
28099
- "name": "egressProxy",
28100
- "type": "object",
28101
- "required": false,
28102
- "description": "SOCKS5 proxy for sandbox egress. Outbound TCP is tunneled through the proxy after allow/deny filtering; the sandbox is unaware. Domain-matched flows use remote DNS (ATYP=domain)."
28103
- },
28104
- {
28105
- "name": "rules",
28106
- "type": "object",
28107
- "required": false,
28108
- "description": "Per-domain transform rules applied to matching outbound HTTPS requests. Replaces all existing rules when provided. Keys may be exact DNS names or a single leading wildcard (for example, \"*.example.com\"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare \"*\" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as \"*.com\" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.\n"
28109
- },
28110
- {
28111
- "name": "allow_internet_access",
28112
- "type": "boolean",
28113
- "required": false,
28114
- "description": "Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config."
28115
- }
28116
- ]
28117
- }
28118
- },
28119
29717
  {
28120
29718
  "resource": "sandbox.sandboxes",
28121
29719
  "method": "pause",
@@ -28991,77 +30589,6 @@ export const operations = [
28991
30589
  ],
28992
30590
  "query": []
28993
30591
  },
28994
- {
28995
- "resource": "sandbox.volumes",
28996
- "method": "list",
28997
- "summary": "List team volumes",
28998
- "description": "List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.",
28999
- "http": "GET",
29000
- "path": "/sandbox/v1/volumes",
29001
- "streaming": "no",
29002
- "pagination": false,
29003
- "pathParams": [],
29004
- "query": []
29005
- },
29006
- {
29007
- "resource": "sandbox.volumes",
29008
- "method": "create",
29009
- "summary": "Create team volume",
29010
- "description": "Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.",
29011
- "http": "POST",
29012
- "path": "/sandbox/v1/volumes",
29013
- "streaming": "no",
29014
- "pagination": false,
29015
- "pathParams": [],
29016
- "query": [],
29017
- "body": {
29018
- "required": true,
29019
- "fields": [
29020
- {
29021
- "name": "name",
29022
- "type": "string",
29023
- "required": true,
29024
- "description": "Volume name, unique within your team. Use one or more ASCII letters, digits, underscores or hyphens."
29025
- }
29026
- ]
29027
- }
29028
- },
29029
- {
29030
- "resource": "sandbox.volumes",
29031
- "method": "delete",
29032
- "summary": "Delete team volume",
29033
- "description": "Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.",
29034
- "http": "DELETE",
29035
- "path": "/sandbox/v1/volumes/{volumeID}",
29036
- "streaming": "no",
29037
- "pagination": false,
29038
- "pathParams": [
29039
- {
29040
- "name": "volumeID",
29041
- "sdkName": "volumeID",
29042
- "description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
29043
- }
29044
- ],
29045
- "query": []
29046
- },
29047
- {
29048
- "resource": "sandbox.volumes",
29049
- "method": "retrieve",
29050
- "summary": "Team volume",
29051
- "description": "Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.",
29052
- "http": "GET",
29053
- "path": "/sandbox/v1/volumes/{volumeID}",
29054
- "streaming": "no",
29055
- "pagination": false,
29056
- "pathParams": [
29057
- {
29058
- "name": "volumeID",
29059
- "sdkName": "volumeID",
29060
- "description": "Id of the team volume, the `volumeID` returned by createVolume or listVolumes."
29061
- }
29062
- ],
29063
- "query": []
29064
- },
29065
30592
  {
29066
30593
  "resource": "search.crawl",
29067
30594
  "method": "create",
@@ -34627,7 +36154,7 @@ export const operations = [
34627
36154
  "resource": "vault.vaults",
34628
36155
  "method": "create",
34629
36156
  "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.",
36157
+ "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
36158
  "http": "POST",
34632
36159
  "path": "/vault/v1/vaults",
34633
36160
  "streaming": "no",