@deepraxis/sdk 0.1.1-dev.e2643d3 → 0.1.1-dev.e2d177f

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.
@@ -2712,7 +2712,7 @@ export const operations = [
2712
2712
  "resource": "agent.sessions.dictations",
2713
2713
  "method": "create",
2714
2714
  "summary": "Create Session Dictation Stream (Extension)",
2715
- "description": "Open a dictation stream for a session and get the address to push microphone audio to.\n\nOwn-face extension. The body is optional: hotwords (at most 50 words the recogniser should favour). Returns 201 { id, push_url, expires_at }: id is the stream id (mst_...), push_url a wss address, expires_at when the address stops accepting a new connection. The speech-to-text model is the agent's dictation_model, or the platform default when it names none. Once connected to push_url, send one text frame {\"type\":\"start\",\"format\":\"pcm_s16le\",\"sample_rate\":16000,\"channels\":1}, then binary PCM frames of at most 64 KiB, then {\"type\":\"stop\"}; the text frames you receive are partial, final, done (with audio_seconds and cost_usd) and error. push_url carries a short-lived capability: treat it as a secret and do not store or log it. A session that is missing or not yours returns 404; a model that cannot transcribe a live stream returns 409 DICTATION_UNCONFIGURED; dictation not available in this environment returns 503 DICTATION_UNAVAILABLE; more than 50 hotwords or an unsupported field returns 400.",
2715
+ "description": "Open a dictation stream for a session and get the address to push microphone audio to.\n\nOwn-face extension. The body is optional: hotwords (at most 50 words the recogniser should favour). Returns 201 { id, push_url, expires_at }: id is the stream id (mst_...), push_url a wss address, expires_at when the address stops accepting a new connection. The speech-to-text model is the agent's dictation_model, or the platform default when it names none. Once connected to push_url, send one text frame {\"type\":\"start\",\"format\":\"pcm_s16le\",\"sample_rate\":16000,\"channels\":1}, then binary PCM frames of at most 64 KiB, then {\"type\":\"stop\"}; the text frames you receive are partial, final, done (with audio_seconds and cost_usd) and error. Each final carries end_ms, where that sentence ends in the audio you sent: if the connection drops, send what comes after the last end_ms to a new dictation. You may connect ahead of time: the stream waits up to 5 minutes for start; after start it closes after 30 s without a frame, and it carries at most 10 minutes of audio. push_url carries a short-lived capability: treat it as a secret and do not store or log it. A session that is missing or not yours returns 404; a model that cannot transcribe a live stream returns 409 DICTATION_UNCONFIGURED; dictation not available in this environment returns 503 DICTATION_UNAVAILABLE; more than 50 hotwords or an unsupported field returns 400.",
2716
2716
  "http": "POST",
2717
2717
  "path": "/agent/v1/sessions/{session_id}/dictations",
2718
2718
  "streaming": "no",
@@ -7542,7 +7542,7 @@ export const operations = [
7542
7542
  "resource": "browser.connect",
7543
7543
  "method": "retrieve",
7544
7544
  "summary": "连接云端浏览器",
7545
- "description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl。",
7545
+ "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。",
7546
7546
  "http": "GET",
7547
7547
  "path": "/browser/v1/connect",
7548
7548
  "streaming": "no",
@@ -7844,7 +7844,7 @@ export const operations = [
7844
7844
  "resource": "browser.sessions",
7845
7845
  "method": "create",
7846
7846
  "summary": "创建浏览器会话",
7847
- "description": "创建云端 Chrome,返回自带凭证的 connectUrl。API 会话默认断开后结束;最长 6 小时。",
7847
+ "description": "创建云端 Chrome,返回自带凭证的 connectUrl;它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
7848
7848
  "http": "POST",
7849
7849
  "path": "/browser/v1/sessions",
7850
7850
  "streaming": "no",
@@ -7874,7 +7874,7 @@ export const operations = [
7874
7874
  "name": "keepAlive",
7875
7875
  "type": "boolean",
7876
7876
  "required": false,
7877
- "description": "false 时最后一个客户端断开且无人观看后结束会话;true 时保留至关闭或超时。"
7877
+ "description": "false 时最后一个客户端断开且无人观看后结束会话;true 时保留至关闭或超时。两种情况都仍受健康检查约束:浏览器连续 2 次健康检查失败时结束会话(closeReason=watchdog)。"
7878
7878
  },
7879
7879
  {
7880
7880
  "name": "timeout",
@@ -7988,7 +7988,7 @@ export const operations = [
7988
7988
  "resource": "browser.sessions.actions",
7989
7989
  "method": "create",
7990
7990
  "summary": "执行页面动作",
7991
- "description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。",
7991
+ "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 命令。",
7992
7992
  "http": "POST",
7993
7993
  "path": "/browser/v1/sessions/{sessionId}/actions",
7994
7994
  "streaming": "no",
@@ -8010,7 +8010,7 @@ export const operations = [
8010
8010
  "resource": "browser.sessions",
8011
8011
  "method": "retrieveDebug",
8012
8012
  "summary": "读取调试地址",
8013
- "description": "读取当前会话及各标签页的实时观看地址和 CDP 连接地址。直接使用返回的完整链接,保留查询凭证;会话不在运行状态时 pages 为空,返回地址不代表会话仍可连接。",
8013
+ "description": "读取当前会话及各标签页的实时观看地址和 CDP 连接地址。直接使用返回的完整链接,保留查询凭证;会话不在运行状态时 pages 为空,返回地址不代表会话仍可连接——会话结束后(进入释放或已释放),用返回的 wsUrl 建立 CDP 连接会得到 409 SESSION_ENDED。",
8014
8014
  "http": "GET",
8015
8015
  "path": "/browser/v1/sessions/{sessionId}/debug",
8016
8016
  "streaming": "no",
@@ -8235,6 +8235,12 @@ export const operations = [
8235
8235
  "type": "string",
8236
8236
  "required": false,
8237
8237
  "description": "Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor."
8238
+ },
8239
+ {
8240
+ "name": "library",
8241
+ "type": "boolean",
8242
+ "required": false,
8243
+ "description": "Send true to list only canvases that have been published as libraries; omit to list all canvases. Keep the same filter when following next_cursor."
8238
8244
  }
8239
8245
  ]
8240
8246
  },
@@ -8378,6 +8384,114 @@ export const operations = [
8378
8384
  }
8379
8385
  ]
8380
8386
  },
8387
+ {
8388
+ "resource": "canvas.canvases.imports",
8389
+ "method": "create",
8390
+ "summary": "Import canvas library",
8391
+ "description": "Make a published library's components usable in this canvas under an alias, or move an existing alias to another library version. Supply this canvas's canvas_id and the library's canvas id from libraries.list; the library must have been published at least once, and a library cannot itself import another library. After importing, reference a component as alias:component_id (for example ref ui:btn in a script) and a library variable as $alias:name; library nodes are read-only here. Moving an alias to a newer version keeps every instance and its overrides. The import is one new canvas version, so restoring an earlier version also restores the library versions it used. Importing the same alias and version again changes nothing. Component libraries are available only to organizations where the canvas-libraries feature is enabled.",
8392
+ "http": "POST",
8393
+ "path": "/canvas/v1/canvases/{canvas_id}/imports",
8394
+ "streaming": "no",
8395
+ "pagination": false,
8396
+ "pathParams": [
8397
+ {
8398
+ "name": "canvas_id",
8399
+ "sdkName": "canvas_id",
8400
+ "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."
8401
+ }
8402
+ ],
8403
+ "query": [],
8404
+ "body": {
8405
+ "required": true,
8406
+ "fields": [
8407
+ {
8408
+ "name": "alias",
8409
+ "type": "string",
8410
+ "required": true,
8411
+ "description": "Alias to import under, 1-32 characters, a lower-case letter then lower-case letters, digits or hyphens."
8412
+ },
8413
+ {
8414
+ "name": "library",
8415
+ "type": "string",
8416
+ "required": true,
8417
+ "description": "Canvas id of the library, from libraries.list; it must belong to your organization and have been published."
8418
+ },
8419
+ {
8420
+ "name": "version",
8421
+ "type": "string",
8422
+ "required": false,
8423
+ "description": "Library version to use, from library_versions; the latest when omitted."
8424
+ },
8425
+ {
8426
+ "name": "expected_version",
8427
+ "type": "string",
8428
+ "required": false,
8429
+ "description": "Current canvas version from retrieve; the import is refused with REVISION_CONFLICT if the canvas has moved on. Omission imports whatever is current."
8430
+ }
8431
+ ]
8432
+ }
8433
+ },
8434
+ {
8435
+ "resource": "canvas.canvases.imports",
8436
+ "method": "delete",
8437
+ "summary": "Remove canvas library import",
8438
+ "description": "Stop using an imported library in this canvas. Supply this canvas's canvas_id and the alias it was imported under, as listed in imports of retrieve. The import is refused while any node still instantiates one of the library's components (the count is in error.details.instances, and retrieve lists them per component), so delete or replace those nodes first. The removal is one new canvas version. Component libraries are available only to organizations where the canvas-libraries feature is enabled.",
8439
+ "http": "DELETE",
8440
+ "path": "/canvas/v1/canvases/{canvas_id}/imports/{alias}",
8441
+ "streaming": "no",
8442
+ "pagination": false,
8443
+ "pathParams": [
8444
+ {
8445
+ "name": "canvas_id",
8446
+ "sdkName": "canvas_id",
8447
+ "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."
8448
+ },
8449
+ {
8450
+ "name": "alias",
8451
+ "sdkName": "alias",
8452
+ "description": "The alias the library was imported under, as shown in imports of retrieve."
8453
+ }
8454
+ ],
8455
+ "query": [
8456
+ {
8457
+ "name": "expected_version",
8458
+ "type": "string",
8459
+ "required": false,
8460
+ "description": "Current canvas version from retrieve; the removal is refused with REVISION_CONFLICT if the canvas has moved on. Omission removes the import whatever the current version is."
8461
+ }
8462
+ ]
8463
+ },
8464
+ {
8465
+ "resource": "canvas.canvases.libraryVersions",
8466
+ "method": "list",
8467
+ "summary": "List library versions",
8468
+ "description": "Read the release history of a library canvas, newest first, including each version's description and what it added, changed or removed. Supply a canvas_id of a canvas that has been published at least once; a canvas that never was answers NOT_A_LIBRARY. limit is 1–100 and defaults to 30; pass next_cursor as cursor until it is null. Library versions are never pruned. Listing does not change the canvas. Available only to organizations where the canvas-libraries feature is enabled.",
8469
+ "http": "GET",
8470
+ "path": "/canvas/v1/canvases/{canvas_id}/library_versions",
8471
+ "streaming": "no",
8472
+ "pagination": false,
8473
+ "pathParams": [
8474
+ {
8475
+ "name": "canvas_id",
8476
+ "sdkName": "canvas_id",
8477
+ "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."
8478
+ }
8479
+ ],
8480
+ "query": [
8481
+ {
8482
+ "name": "limit",
8483
+ "type": "integer",
8484
+ "required": false,
8485
+ "description": "Maximum library versions to return, from 1 to 100 inclusive; omission uses 30."
8486
+ },
8487
+ {
8488
+ "name": "cursor",
8489
+ "type": "string",
8490
+ "required": false,
8491
+ "description": "Copy next_cursor from the preceding page to continue toward older library versions; omit for the first page."
8492
+ }
8493
+ ]
8494
+ },
8381
8495
  {
8382
8496
  "resource": "canvas.canvases.nodes",
8383
8497
  "method": "list",
@@ -8494,6 +8608,41 @@ export const operations = [
8494
8608
  ]
8495
8609
  }
8496
8610
  },
8611
+ {
8612
+ "resource": "canvas.canvases",
8613
+ "method": "publish",
8614
+ "summary": "Publish canvas library",
8615
+ "description": "Freeze the reusable components of a canvas as the next numbered library version, so other canvases can use them; the first publish turns the canvas into a library. Supply a canvas_id from canvases.list or create after marking frames as components. The result lists which components were added, changed (compared by content) or removed since the previous version, and whether variables or themes changed. A removed component stays readable in the new version, marked removed. Publishing is not an edit, so the canvas version does not change. Component libraries are available only to organizations where the canvas-libraries feature is enabled; others receive FEATURE_DISABLED.",
8616
+ "http": "POST",
8617
+ "path": "/canvas/v1/canvases/{canvas_id}:publish",
8618
+ "streaming": "no",
8619
+ "pagination": false,
8620
+ "pathParams": [
8621
+ {
8622
+ "name": "canvas_id",
8623
+ "sdkName": "canvas_id",
8624
+ "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."
8625
+ }
8626
+ ],
8627
+ "query": [],
8628
+ "body": {
8629
+ "required": false,
8630
+ "fields": [
8631
+ {
8632
+ "name": "description",
8633
+ "type": "string",
8634
+ "required": false,
8635
+ "description": "Release note shown in library_versions, at most 2000 characters; empty when omitted."
8636
+ },
8637
+ {
8638
+ "name": "expected_version",
8639
+ "type": "string",
8640
+ "required": false,
8641
+ "description": "Current canvas version from retrieve or nodes.list; the publish is refused with REVISION_CONFLICT if the canvas has moved on. Omission publishes whatever is current."
8642
+ }
8643
+ ]
8644
+ }
8645
+ },
8497
8646
  {
8498
8647
  "resource": "canvas.canvases",
8499
8648
  "method": "restore",
@@ -8629,6 +8778,37 @@ export const operations = [
8629
8778
  ]
8630
8779
  }
8631
8780
  },
8781
+ {
8782
+ "resource": "canvas.libraries",
8783
+ "method": "list",
8784
+ "summary": "List libraries",
8785
+ "description": "Discover the component libraries of the API key's organization, most recently published first. A library is a canvas that has been published at least once; each item gives its latest version, component count and how many live canvases use it. query keeps only libraries whose name contains the text, ignoring case. limit is 1–100 and defaults to 50; pass next_cursor as cursor until it is null. Deleted canvases are not listed. Available only to organizations where the canvas-libraries feature is enabled.",
8786
+ "http": "GET",
8787
+ "path": "/canvas/v1/libraries",
8788
+ "streaming": "no",
8789
+ "pagination": true,
8790
+ "pathParams": [],
8791
+ "query": [
8792
+ {
8793
+ "name": "query",
8794
+ "type": "string",
8795
+ "required": false,
8796
+ "description": "Keep only libraries whose name contains this text, ignoring case; omit to list every library."
8797
+ },
8798
+ {
8799
+ "name": "limit",
8800
+ "type": "integer",
8801
+ "required": false,
8802
+ "description": "Maximum libraries to return per page, from 1 to 100; defaults to 50 when omitted."
8803
+ },
8804
+ {
8805
+ "name": "cursor",
8806
+ "type": "string",
8807
+ "required": false,
8808
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
8809
+ }
8810
+ ]
8811
+ },
8632
8812
  {
8633
8813
  "resource": "content.contents",
8634
8814
  "method": "list",
@@ -10666,7 +10846,13 @@ export const operations = [
10666
10846
  "name": "publishable_key",
10667
10847
  "type": "string",
10668
10848
  "required": false,
10669
- "description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
10849
+ "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."
10850
+ },
10851
+ {
10852
+ "name": "continuation_token",
10853
+ "type": "string",
10854
+ "required": false,
10855
+ "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."
10670
10856
  }
10671
10857
  ]
10672
10858
  }
@@ -18188,7 +18374,7 @@ export const operations = [
18188
18374
  "resource": "devops.units",
18189
18375
  "method": "exec",
18190
18376
  "summary": "Run a command inside a unit",
18191
- "description": "Run one command inside the unit's own machine, and answer what it printed: exitCode, stdout and stderr, verbatim (the sandbox already caps their length). This is the door for a caller that holds no reach of the machine on its own — an agent whose credential opens development units — and it goes through the unit, the way `gh codespace ssh` goes through the codespace rather than the VM underneath. The command's environment carries the caller's signature — GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL are the caller's principal id and its noreply address — so a commit made here is signed by whoever ran it, and a checkout that has no user.email of its own is configured with the change's initiator when the unit is created. cwd defaults to the unit's repository directory. timeoutMs defaults to 120000 milliseconds and may not exceed 600000. A non-zero exit code is a result, not an error: it comes back in exitCode and is recorded on the unit's transitions as EXIT_<code> with the first line of stderr. The unit must be available with a machine, or the call answers 409 UNIT_INVALID_STATE — start it first; a unit of another organization answers 404 UNIT_NOT_FOUND, exactly as an unknown id does. The machine holds no git credential, so a commit made here still reaches the remote through devops.units.push; a command that fails to run at all answers 500 EXECUTION_FAILED and the machine's own words are in the unit's transitions.",
18377
+ "description": "Run one command inside the unit's own machine, and answer what it printed: exitCode, stdout and stderr, verbatim (the sandbox already caps their length). This is the door for a caller that holds no reach of the machine on its own — an agent whose credential opens development units — and it goes through the unit, the way `gh codespace ssh` goes through the codespace rather than the VM underneath. The command's environment carries the caller's signature — GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL are the caller's principal id and its noreply address — so a commit made here is signed by whoever ran it, and a checkout that has no user.email of its own is configured with the change's initiator when the unit is created. cwd defaults to the unit's repository directory. timeoutMs defaults to 120000 milliseconds and may not exceed 600000, and that 600000 ceiling is fixed: a task that needs longer than 240 seconds is not run by raising it — start it in the background and poll for its result, because a foreground call that long outlives the caller's own patience, and when the caller disconnects the command used to keep running on the machine with nobody collecting it (the reclaimer that ends that is #4404). When a command is stopped at its budget the answer is exitCode 124 with whatever it had already printed in stdout and stderr, so a stopped command shows its output instead of an empty result. A non-zero exit code is a result, not an error: it comes back in exitCode and is recorded on the unit's transitions as EXIT_<code> with the first line of stderr. The unit must be available with a machine, or the call answers 409 UNIT_INVALID_STATE — start it first; a unit of another organization answers 404 UNIT_NOT_FOUND, exactly as an unknown id does. The machine holds no git credential, so a commit made here still reaches the remote through devops.units.push; a command that fails to run at all answers 500 EXECUTION_FAILED and the machine's own words are in the unit's transitions.",
18192
18378
  "http": "POST",
18193
18379
  "path": "/devops/v1/units/{id}:exec",
18194
18380
  "streaming": "no",
@@ -18220,7 +18406,7 @@ export const operations = [
18220
18406
  "name": "timeoutMs",
18221
18407
  "type": "integer",
18222
18408
  "required": false,
18223
- "description": "How long the command may run, in milliseconds. Defaults to 120000; values above 600000 are refused with 400."
18409
+ "description": "How long the command may run, in milliseconds; defaults to 120000 and values above 600000 are refused with 400, and that ceiling does not rise — a task longer than 240 seconds belongs in the background, polled for its result, not in one long foreground call."
18224
18410
  }
18225
18411
  ]
18226
18412
  }
@@ -19832,6 +20018,12 @@ export const operations = [
19832
20018
  "required": false,
19833
20019
  "description": "Filter assets to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to list every material type."
19834
20020
  },
20021
+ {
20022
+ "name": "live_stream_id",
20023
+ "type": "string",
20024
+ "required": false,
20025
+ "description": "Filter assets to the recordings of one live stream, by the stream id (mst_…) a live stream resource carries. Each broadcast of the stream is its own video asset, and its provenance names the stream and the broadcast’s start and end. Omit to list every asset."
20026
+ },
19835
20027
  {
19836
20028
  "name": "stack",
19837
20029
  "type": "boolean",
@@ -21845,6 +22037,411 @@ export const operations = [
21845
22037
  ]
21846
22038
  }
21847
22039
  },
22040
+ {
22041
+ "resource": "media.pipelines",
22042
+ "method": "list",
22043
+ "summary": "List pipelines",
22044
+ "description": "List the pipelines of your organization, newest first, to find a pipeline id; to read one use pipelines.retrieve. Pages hold limit pipelines (1 to 100, default 20); when has_more is true pass the id of the last pipeline you received as starting_after to get the next page. Example: GET /media/v1/pipelines?limit=20.",
22045
+ "http": "GET",
22046
+ "path": "/media/v1/pipelines",
22047
+ "streaming": "no",
22048
+ "pagination": false,
22049
+ "pathParams": [],
22050
+ "query": [
22051
+ {
22052
+ "name": "limit",
22053
+ "type": "integer",
22054
+ "required": false,
22055
+ "description": "How many pipelines one page holds, 1 to 100; default 20."
22056
+ },
22057
+ {
22058
+ "name": "starting_after",
22059
+ "type": "string",
22060
+ "required": false,
22061
+ "description": "The id of the last pipeline of the previous page, taken from that page's data; omit it for the first page. An id that is not a pipeline of your organization answers 400."
22062
+ }
22063
+ ]
22064
+ },
22065
+ {
22066
+ "resource": "media.pipelines",
22067
+ "method": "create",
22068
+ "summary": "Create a pipeline",
22069
+ "description": "Describe what to run while a stream is live, once, and attach it to as many streams as you like with pipeline_id. A pipeline is an ordered list of elements: processors that read the broadcast and sinks that receive the results. transcribe {language?, hot_words?} turns the speech into transcript.partial and transcript.final events (each carries offset_ms in the stream, end_ms and the wall-clock time at, which is the source's own PROGRAM-DATE-TIME when it has one and the time received otherwise). describe_frames {interval_s 5 to 300 default 10, prompt?, model?} describes one keyframe every interval_s as a frame.described event; a slow description skips the frames in between, it never queues them. match_keywords {keywords} and the sinks webhook {url} and agent {session_id} are stored and checked here and delivered by the alerting side; the events sink is always on. A processor appears once; webhook and agent sinks up to five each. alert_rules holds keyword_match {keywords} and model_judgment {prompt}. A stream runs the pipeline as it was when the broadcast began: editing it changes the next broadcast, not the one on air. Example: {\"name\":\"jewellery room\",\"elements\":[{\"type\":\"transcribe\",\"language\":\"zh\"},{\"type\":\"describe_frames\",\"interval_s\":20}]}.",
22070
+ "http": "POST",
22071
+ "path": "/media/v1/pipelines",
22072
+ "streaming": "no",
22073
+ "pagination": false,
22074
+ "pathParams": [],
22075
+ "query": [],
22076
+ "body": {
22077
+ "required": true,
22078
+ "fields": [
22079
+ {
22080
+ "name": "name",
22081
+ "type": "string",
22082
+ "required": true,
22083
+ "description": "The pipeline's name."
22084
+ },
22085
+ {
22086
+ "name": "elements",
22087
+ "type": "array",
22088
+ "itemType": "object",
22089
+ "required": false,
22090
+ "description": "The ordered processors and sinks; empty by default."
22091
+ },
22092
+ {
22093
+ "name": "alert_rules",
22094
+ "type": "array",
22095
+ "itemType": "object",
22096
+ "required": false,
22097
+ "description": "The alert rules; empty by default."
22098
+ }
22099
+ ]
22100
+ }
22101
+ },
22102
+ {
22103
+ "resource": "media.pipelines",
22104
+ "method": "delete",
22105
+ "summary": "Delete a pipeline",
22106
+ "description": "Delete a pipeline that no stream names. A stream that still has it as its pipeline_id keeps the deletion from happening, so detach it first with streams.update (pipeline_id: null) or delete the stream. Deleting is not undone and the id is not reused. Example: DELETE /media/v1/pipelines/msp_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22107
+ "http": "DELETE",
22108
+ "path": "/media/v1/pipelines/{pipeline_id}",
22109
+ "streaming": "no",
22110
+ "pagination": false,
22111
+ "pathParams": [
22112
+ {
22113
+ "name": "pipeline_id",
22114
+ "sdkName": "pipeline_id",
22115
+ "description": "The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404."
22116
+ }
22117
+ ],
22118
+ "query": []
22119
+ },
22120
+ {
22121
+ "resource": "media.pipelines",
22122
+ "method": "retrieve",
22123
+ "summary": "Retrieve a pipeline",
22124
+ "description": "Read one pipeline: its name, elements and alert rules, as a stream that names it will run them. Example: GET /media/v1/pipelines/msp_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22125
+ "http": "GET",
22126
+ "path": "/media/v1/pipelines/{pipeline_id}",
22127
+ "streaming": "no",
22128
+ "pagination": false,
22129
+ "pathParams": [
22130
+ {
22131
+ "name": "pipeline_id",
22132
+ "sdkName": "pipeline_id",
22133
+ "description": "The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404."
22134
+ }
22135
+ ],
22136
+ "query": []
22137
+ },
22138
+ {
22139
+ "resource": "media.pipelines",
22140
+ "method": "update",
22141
+ "summary": "Update a pipeline",
22142
+ "description": "Change a pipeline's name, elements or alert_rules; each field you send replaces the whole of that field (elements is a list, not a merge) and a field you leave out stays. A stream that is live keeps the pipeline it began its broadcast with; the change takes effect from its next broadcast. An empty body answers 400. Example: {\"elements\":[{\"type\":\"transcribe\"}]}.",
22143
+ "http": "PATCH",
22144
+ "path": "/media/v1/pipelines/{pipeline_id}",
22145
+ "streaming": "no",
22146
+ "pagination": false,
22147
+ "pathParams": [
22148
+ {
22149
+ "name": "pipeline_id",
22150
+ "sdkName": "pipeline_id",
22151
+ "description": "The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404."
22152
+ }
22153
+ ],
22154
+ "query": [],
22155
+ "body": {
22156
+ "required": true,
22157
+ "fields": [
22158
+ {
22159
+ "name": "name",
22160
+ "type": "string",
22161
+ "required": false,
22162
+ "description": "The new name."
22163
+ },
22164
+ {
22165
+ "name": "elements",
22166
+ "type": "array",
22167
+ "itemType": "object",
22168
+ "required": false,
22169
+ "description": "The new element list"
22170
+ },
22171
+ {
22172
+ "name": "alert_rules",
22173
+ "type": "array",
22174
+ "itemType": "object",
22175
+ "required": false,
22176
+ "description": "The new rules"
22177
+ }
22178
+ ]
22179
+ }
22180
+ },
22181
+ {
22182
+ "resource": "media.streams",
22183
+ "method": "list",
22184
+ "summary": "List streams",
22185
+ "description": "List the streams of your organization, newest first, to find a stream id or to see which are active; to read one stream use streams.retrieve. Pages hold limit streams (1 to 100, default 20); when has_more is true pass the id of the last stream you received as starting_after to get the next page. A stream that is deleted leaves the list at once. The list never shows another organization's streams. Example: GET /media/v1/streams?limit=20.",
22186
+ "http": "GET",
22187
+ "path": "/media/v1/streams",
22188
+ "streaming": "no",
22189
+ "pagination": false,
22190
+ "pathParams": [],
22191
+ "query": [
22192
+ {
22193
+ "name": "limit",
22194
+ "type": "integer",
22195
+ "required": false,
22196
+ "description": "How many streams one page holds, 1 to 100; default 20."
22197
+ },
22198
+ {
22199
+ "name": "starting_after",
22200
+ "type": "string",
22201
+ "required": false,
22202
+ "description": "The id of the last stream of the previous page, taken from that page's data; omit it for the first page. An id that is not a stream of your organization answers 400."
22203
+ }
22204
+ ]
22205
+ },
22206
+ {
22207
+ "resource": "media.streams",
22208
+ "method": "create",
22209
+ "summary": "Create a stream",
22210
+ "description": "Register one live source and get its id; use it before anything else on this face, and use streams.update instead to change a stream you already have. Send input as {kind: pull, url} to have Praxis pull an https, http, rtmp or rtmps address (an HLS .m3u8 or HTTP-FLV playlist, or an RTMP URL; SRT is not supported and answers 400), or as {kind: push} to receive a push address: the response then carries push {url, token, expires_at}, and the token is shown only in this response and in streams.resetToken.create because only its hash is kept. The new stream is idle; nothing is pulled or charged until a source goes active. reconnect_window_s (0 to 1800, default 60) is how long a source that drops may come back and continue the same broadcast; max_continuous_duration_s (60 to 43200, default 43200) ends a broadcast that runs that long. recording defaults to off. The owner is your organization (and the agent and session when a session token calls); the body cannot set it and unknown fields answer 400. Example: {\"input\":{\"kind\":\"pull\",\"url\":\"https://live.example.com/room/index.m3u8\"},\"recording\":{\"mode\":\"automatic\",\"rendition\":\"source\"}}.",
22211
+ "http": "POST",
22212
+ "path": "/media/v1/streams",
22213
+ "streaming": "no",
22214
+ "pagination": false,
22215
+ "pathParams": [],
22216
+ "query": [],
22217
+ "body": {
22218
+ "required": true,
22219
+ "fields": [
22220
+ {
22221
+ "name": "input",
22222
+ "type": "object",
22223
+ "required": true,
22224
+ "description": "Where the stream's media comes from."
22225
+ },
22226
+ {
22227
+ "name": "reconnect_window_s",
22228
+ "type": "integer",
22229
+ "required": false,
22230
+ "description": "How many seconds a dropped source may take to come back and continue the same broadcast and recording; default 60."
22231
+ },
22232
+ {
22233
+ "name": "max_continuous_duration_s",
22234
+ "type": "integer",
22235
+ "required": false,
22236
+ "description": "How many seconds one broadcast may run before it ends as if the source had stopped (a source still live then starts the next broadcast); default and maximum 43200 (12 hours)."
22237
+ },
22238
+ {
22239
+ "name": "recording",
22240
+ "type": "object",
22241
+ "required": false,
22242
+ "description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
22243
+ },
22244
+ {
22245
+ "name": "pipeline_id",
22246
+ "type": "string",
22247
+ "required": false,
22248
+ "description": "The id of the processing to run while the stream is active; stored as given and not checked yet. Omit for none."
22249
+ }
22250
+ ]
22251
+ }
22252
+ },
22253
+ {
22254
+ "resource": "media.streams",
22255
+ "method": "delete",
22256
+ "summary": "Delete a stream",
22257
+ "description": "Delete a stream and its event log for good; only an idle or disabled stream can be deleted, so stop a live one first with streams.disable.create. The stream leaves the list at once and gives back any slot it held. Recordings it already made are Media assets and stay. Deleting is not undone and the id is not reused. Example: DELETE /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22258
+ "http": "DELETE",
22259
+ "path": "/media/v1/streams/{stream_id}",
22260
+ "streaming": "no",
22261
+ "pagination": false,
22262
+ "pathParams": [
22263
+ {
22264
+ "name": "stream_id",
22265
+ "sdkName": "stream_id",
22266
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22267
+ }
22268
+ ],
22269
+ "query": []
22270
+ },
22271
+ {
22272
+ "resource": "media.streams",
22273
+ "method": "retrieve",
22274
+ "summary": "Retrieve a stream",
22275
+ "description": "Read one stream: its status, input, reconnect and duration limits, recording settings, pipeline, the asset of the current broadcast and the recent ones. Use it to check whether a stream is idle, waiting, active or disabled; to follow what happened to it read streams.events.list instead. The push token is never returned here, only in the create and reset-token responses. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
22276
+ "http": "GET",
22277
+ "path": "/media/v1/streams/{stream_id}",
22278
+ "streaming": "no",
22279
+ "pagination": false,
22280
+ "pathParams": [
22281
+ {
22282
+ "name": "stream_id",
22283
+ "sdkName": "stream_id",
22284
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22285
+ }
22286
+ ],
22287
+ "query": []
22288
+ },
22289
+ {
22290
+ "resource": "media.streams",
22291
+ "method": "update",
22292
+ "summary": "Update a stream",
22293
+ "description": "Change the settings of a stream you own; send only the fields to change. reconnect_window_s and max_continuous_duration_s take the same ranges as on create. recording is merged onto the current settings (send {rendition: sd} to change only the rendition; a null optional field such as library_id clears it). pipeline_id is stored as given (null clears it). input can change only the url of a pull stream and only while it is idle or disabled; a push stream has no address to change and a live pull stream answers 409. An empty patch, an unknown field or an invalid value answers 400. Example: {\"reconnect_window_s\":120,\"recording\":{\"mode\":\"automatic\"}}.",
22294
+ "http": "PATCH",
22295
+ "path": "/media/v1/streams/{stream_id}",
22296
+ "streaming": "no",
22297
+ "pagination": false,
22298
+ "pathParams": [
22299
+ {
22300
+ "name": "stream_id",
22301
+ "sdkName": "stream_id",
22302
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22303
+ }
22304
+ ],
22305
+ "query": [],
22306
+ "body": {
22307
+ "required": true,
22308
+ "fields": [
22309
+ {
22310
+ "name": "input",
22311
+ "type": "object",
22312
+ "required": false,
22313
+ "description": "Where the stream's media comes from."
22314
+ },
22315
+ {
22316
+ "name": "reconnect_window_s",
22317
+ "type": "integer",
22318
+ "required": false,
22319
+ "description": "The new reconnect window in seconds, 0 to 1800."
22320
+ },
22321
+ {
22322
+ "name": "max_continuous_duration_s",
22323
+ "type": "integer",
22324
+ "required": false,
22325
+ "description": "The new maximum continuous duration in seconds, 60 to 43200."
22326
+ },
22327
+ {
22328
+ "name": "recording",
22329
+ "type": "object",
22330
+ "required": false,
22331
+ "description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
22332
+ },
22333
+ {
22334
+ "name": "pipeline_id",
22335
+ "type": "string",
22336
+ "required": false,
22337
+ "description": "The new pipeline id, or null to detach the pipeline."
22338
+ }
22339
+ ]
22340
+ }
22341
+ },
22342
+ {
22343
+ "resource": "media.streams.disable",
22344
+ "method": "create",
22345
+ "summary": "Disable a stream",
22346
+ "description": "Stop a stream from any status: a live stream is closed out (its log records stream.disconnected and stream.idle), it gives back its active slot, and a source can no longer drive it until streams.enable.create. Disabling a disabled stream changes nothing and answers 200. Use it before deleting a live stream or to switch a source off without losing the stream. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/disable with no body.",
22347
+ "http": "POST",
22348
+ "path": "/media/v1/streams/{stream_id}/disable",
22349
+ "streaming": "no",
22350
+ "pagination": false,
22351
+ "pathParams": [
22352
+ {
22353
+ "name": "stream_id",
22354
+ "sdkName": "stream_id",
22355
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22356
+ }
22357
+ ],
22358
+ "query": []
22359
+ },
22360
+ {
22361
+ "resource": "media.streams.enable",
22362
+ "method": "create",
22363
+ "summary": "Enable a stream",
22364
+ "description": "Bring a disabled stream back to idle so a source may drive it again; it does not start anything by itself. Only a disabled stream can be enabled; an idle, waiting or active stream answers 409. Use streams.disable.create to stop a stream. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/enable with no body.",
22365
+ "http": "POST",
22366
+ "path": "/media/v1/streams/{stream_id}/enable",
22367
+ "streaming": "no",
22368
+ "pagination": false,
22369
+ "pathParams": [
22370
+ {
22371
+ "name": "stream_id",
22372
+ "sdkName": "stream_id",
22373
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22374
+ }
22375
+ ],
22376
+ "query": []
22377
+ },
22378
+ {
22379
+ "resource": "media.streams.events",
22380
+ "method": "list",
22381
+ "summary": "List the events of a stream",
22382
+ "description": "Read the stream's event log in order, to follow what the stream did or to catch up after a disconnect: pass after set to the highest seq you have seen and you receive every later event, oldest first, up to limit (1 to 100, default 100). Events are delivered at least once and each has a stable id, so a repeat is the same event. Kinds are stream.waiting, stream.connected, stream.active, stream.disconnected and stream.idle (recording.ready follows with recordings). at is wall-clock time and at_source says whether it came from the source (program_date_time) or was the time Praxis received it; offset_ms is the position inside the stream when known. Events are kept at least 24 hours. When has_more is false next_after is the seq to pass next time. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/events?after=12&limit=50.",
22383
+ "http": "GET",
22384
+ "path": "/media/v1/streams/{stream_id}/events",
22385
+ "streaming": "no",
22386
+ "pagination": false,
22387
+ "pathParams": [
22388
+ {
22389
+ "name": "stream_id",
22390
+ "sdkName": "stream_id",
22391
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22392
+ }
22393
+ ],
22394
+ "query": [
22395
+ {
22396
+ "name": "after",
22397
+ "type": "integer",
22398
+ "required": false,
22399
+ "description": "The highest seq you already have; you receive events with a greater seq. Omit or 0 to read from the start of the retained log."
22400
+ },
22401
+ {
22402
+ "name": "limit",
22403
+ "type": "integer",
22404
+ "required": false,
22405
+ "description": "How many events one page holds, 1 to 100; default 100."
22406
+ }
22407
+ ]
22408
+ },
22409
+ {
22410
+ "resource": "media.streams.resetToken",
22411
+ "method": "create",
22412
+ "summary": "Reset the push token of a stream",
22413
+ "description": "Mint a new push token for a push stream and invalidate the old one, for example when the token leaked or has expired (a token is valid for 24 hours). The response carries the new push {url, token, expires_at}; the token is shown only here. A pull stream has no token and answers 409. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/reset-token with no body.",
22414
+ "http": "POST",
22415
+ "path": "/media/v1/streams/{stream_id}/reset-token",
22416
+ "streaming": "no",
22417
+ "pagination": false,
22418
+ "pathParams": [
22419
+ {
22420
+ "name": "stream_id",
22421
+ "sdkName": "stream_id",
22422
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22423
+ }
22424
+ ],
22425
+ "query": []
22426
+ },
22427
+ {
22428
+ "resource": "media.streams.subscribeToken",
22429
+ "method": "create",
22430
+ "summary": "Get the address and capability to subscribe to a stream's events",
22431
+ "description": "Mint a subscribe capability for the stream's event socket: a WebSocket that sends every event after a sequence number, then each new event as it is written. Use it for live delivery to an app or a dashboard; to read the log in pages without holding a socket use streams.events.list, and to receive events at your server use a webhook element of a pipeline. The response carries {url, token, expires_at}: open the url as a WebSocket and append &after=<seq> with the highest seq you have already seen (omit it, or use 0, to read from the start). A subscriber that was away comes back with its last seq and is sent every event it missed, then the live ones; the same event can arrive again, so de-duplicate on the event id. The token opens the socket and nothing else, is valid for one hour, may be held by any number of subscribers at once and is shown only in this response; mint a new one to reconnect after it expires. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/subscribe-token with no body.",
22432
+ "http": "POST",
22433
+ "path": "/media/v1/streams/{stream_id}/subscribe-token",
22434
+ "streaming": "no",
22435
+ "pagination": false,
22436
+ "pathParams": [
22437
+ {
22438
+ "name": "stream_id",
22439
+ "sdkName": "stream_id",
22440
+ "description": "The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404."
22441
+ }
22442
+ ],
22443
+ "query": []
22444
+ },
21848
22445
  {
21849
22446
  "resource": "meta.docs",
21850
22447
  "method": "search",
@@ -34254,7 +34851,7 @@ export const operations = [
34254
34851
  "resource": "workforce.actors",
34255
34852
  "method": "retrieve",
34256
34853
  "summary": "Get the position chain of an actor",
34257
- "description": "Reads where an actor, person or agent, sits in the organization: its primary position and its concurrent positions, each with the department path from the root down with every level's charter, the job, title and level name, the manager (the first filled position up the reporting line), the position's own duties and methods, and objectives. Use it to answer who this actor is and what it is responsible for. An actor that holds no position is not an error: primary is null and concurrent is empty. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
34854
+ "description": "Reads where an actor, person or agent, sits in the organization: its primary position and its concurrent positions, each with the department path from the root down (ids and names; a department's charter is its spec's document, read through /workforce/v1/specs), the job, title and level name, the manager (the first filled position up the reporting line), the position's own duties and methods, and objectives. Use it to answer who this actor is and what it is responsible for. An actor that holds no position is not an error: primary is null and concurrent is empty. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
34258
34855
  "http": "GET",
34259
34856
  "path": "/workforce/v1/actors/{actor}",
34260
34857
  "streaming": "no",
@@ -34456,7 +35053,7 @@ export const operations = [
34456
35053
  "resource": "workforce.departments",
34457
35054
  "method": "create",
34458
35055
  "summary": "Establish a department",
34459
- "description": "Creates a department under an existing active parent department; use it to grow the tree, and use reorganize to rename or move one that already exists. order defaults to one after the last active sibling. The new department has no head position and no charter: open a position in it, then designate that position as head. Requires an organization owner or admin, or the head of the parent department or of a department above it. Errors: 400 INVALID_PARAMS for a missing or empty name, a name over 100 characters, an unknown body field or an active sibling with the same name; 403 PERMISSION_DENIED; 404 DEPARTMENT_NOT_FOUND when the parent does not exist; 409 DEPARTMENT_DISSOLVED when the parent is dissolved. Example body: {\"parent_id\":\"dept_123\",\"name\":\"Support\"}.",
35056
+ "description": "Creates a department under an existing active parent department; use it to grow the tree, and use reorganize to rename or move one that already exists. order defaults to one after the last active sibling. The new department has no head position: open a position in it, then designate that position as head. Requires an organization owner or admin, or the head of the parent department or of a department above it. Errors: 400 INVALID_PARAMS for a missing or empty name, a name over 100 characters, an unknown body field or an active sibling with the same name; 403 PERMISSION_DENIED; 404 DEPARTMENT_NOT_FOUND when the parent does not exist; 409 DEPARTMENT_DISSOLVED when the parent is dissolved. Example body: {\"parent_id\":\"dept_123\",\"name\":\"Support\"}.",
34460
35057
  "http": "POST",
34461
35058
  "path": "/workforce/v1/departments",
34462
35059
  "streaming": "no",
@@ -34491,7 +35088,7 @@ export const operations = [
34491
35088
  "resource": "workforce.departments",
34492
35089
  "method": "retrieve",
34493
35090
  "summary": "Get a department",
34494
- "description": "Reads one department with its head position id and its charter, including the charter revision you need before amending the charter. Read-only. Errors: 404 DEPARTMENT_NOT_FOUND when the id is not a department of your organization; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
35091
+ "description": "Reads one department with its head position id. A department's charter is the document of its spec (GET /workforce/v1/specs/department/{id}), not a field of the department. Read-only. Errors: 404 DEPARTMENT_NOT_FOUND when the id is not a department of your organization; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
34495
35092
  "http": "GET",
34496
35093
  "path": "/workforce/v1/departments/{id}",
34497
35094
  "streaming": "no",
@@ -34549,8 +35146,8 @@ export const operations = [
34549
35146
  {
34550
35147
  "resource": "workforce.departments",
34551
35148
  "method": "updateCharter",
34552
- "summary": "Amend a department charter",
34553
- "description": "Replaces the charter of a department: free-text rules that apply to the department and are inherited by every department below it. Send the charter.revision you last read as expected_revision (0 when the department has no charter yet); each successful amendment raises the revision by one. Requires an organization owner or admin, or the head of the department or of a department above it. Errors: 400 INVALID_PARAMS for text over 2000 characters or a non-integer expected_revision; 403 PERMISSION_DENIED; 404 DEPARTMENT_NOT_FOUND; 409 DEPARTMENT_DISSOLVED; 409 REVISION_CONFLICT when the charter moved on, so get the department again, merge your change and retry with its revision.",
35149
+ "summary": "Amend a department charter (gone)",
35150
+ "description": "Deprecated: use PUT /workforce/v1/specs/department/{id} instead; this path stops working on 2026-11-28. A department's charter is now the `document` of its spec, not a field of the department: read it at GET /workforce/v1/specs/department/{id} and replace it with PUT /workforce/v1/specs/department/{id} sending metadata.revision and spec.document. The root department's charter is the organization's own spec at /workforce/v1/specs/organization/{organization_id}. Until then this path answers 410 with code DEPARTMENT_CHARTER_GONE and the same instruction.",
34554
35151
  "http": "PUT",
34555
35152
  "path": "/workforce/v1/departments/{id}/charter",
34556
35153
  "streaming": "no",
@@ -34559,27 +35156,10 @@ export const operations = [
34559
35156
  {
34560
35157
  "name": "id",
34561
35158
  "sdkName": "id",
34562
- "description": "Department id (dept_...) whose charter changes, from the departments list."
35159
+ "description": "Department id (dept_...) whose charter used to change here."
34563
35160
  }
34564
35161
  ],
34565
- "query": [],
34566
- "body": {
34567
- "required": true,
34568
- "fields": [
34569
- {
34570
- "name": "text",
34571
- "type": "string",
34572
- "required": true,
34573
- "description": "The full new charter text, at most 2000 characters; it replaces the old text."
34574
- },
34575
- {
34576
- "name": "expected_revision",
34577
- "type": "integer",
34578
- "required": true,
34579
- "description": "The charter.revision you last read, or 0 when the department has no charter yet; a mismatch returns REVISION_CONFLICT."
34580
- }
34581
- ]
34582
- }
35162
+ "query": []
34583
35163
  },
34584
35164
  {
34585
35165
  "resource": "workforce.departments.dissolve",