@deepraxis/sdk 0.1.1-dev.680e69b → 0.1.1-dev.68987ec
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.
- package/METHODS.md +107 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +242 -22
- package/dist/generated/sdk.gen.js +661 -25
- package/dist/generated/types.gen.d.ts +6332 -534
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +8 -0
- package/dist/operations.generated.js +1060 -50
- package/dist/resources.generated.d.ts +648 -1
- package/dist/resources.generated.js +68 -1
- package/package.json +1 -1
|
@@ -982,7 +982,7 @@ export const operations = [
|
|
|
982
982
|
{
|
|
983
983
|
"resource": "agent.agents.inbox.letters",
|
|
984
984
|
"method": "list",
|
|
985
|
-
"summary": "List
|
|
985
|
+
"summary": "List a BYOA agent's waiting letters",
|
|
986
986
|
"description": "Check whether mail waits for an assume agent without taking it: answers unread, the count of delivered letters the agent has not read, and letters, the newest unread ones (id, sender address, summary, thread, create_time; never the body). Nothing is marked read, so calling it again answers the same until the agent reads its mail with its own inbox tool (praxis_assume_inbox, action \"read\"). Use it when something outside the agent has to learn that mail arrived: the local `praxis agent events wait` reads it once on start and after every reconnect to its agent's event stream, so no letter that arrived while nothing listened is missed. {agent_id} takes the agent_… id, the eight character identity number or the handle of an assume agent in your organization; any other kind answers 400 ASSUME_AGENT_REQUIRED. To read or answer the letters, use the agent's inbox tool, not this read. Example: GET /agent/v1/agents/R1M9TQ2X/inbox/letters?unread=true&limit=5.",
|
|
987
987
|
"http": "GET",
|
|
988
988
|
"path": "/agent/v1/agents/{agent_id}/inbox/letters",
|
|
@@ -1683,7 +1683,7 @@ export const operations = [
|
|
|
1683
1683
|
"resource": "agent.deployments",
|
|
1684
1684
|
"method": "create",
|
|
1685
1685
|
"summary": "Create deployment",
|
|
1686
|
-
"description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. 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\"}}.",
|
|
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\"}}.",
|
|
1687
1687
|
"http": "POST",
|
|
1688
1688
|
"path": "/agent/v1/deployments",
|
|
1689
1689
|
"streaming": "no",
|
|
@@ -1787,7 +1787,7 @@ export const operations = [
|
|
|
1787
1787
|
"resource": "agent.deployments",
|
|
1788
1788
|
"method": "update",
|
|
1789
1789
|
"summary": "Update deployment",
|
|
1790
|
-
"description": "Partially update a deployment. Omitted fields keep their values
|
|
1790
|
+
"description": "Partially update a deployment. Omitted fields keep their values. An agent reference with only an id makes the deployment follow the agent's active version from now on, so later agent saves carry through; name a version to pin it instead, and only a version that is applied (not one saved with apply false) may be pinned. Metadata merges string values and deletes keys set to null. Null clears schedule, resources and description; name, environment_id and initial_events cannot be cleared. Archived deployments return 409. Overrides apply to new sessions; updating a schedule recalculates its next occurrence.",
|
|
1791
1791
|
"http": "POST",
|
|
1792
1792
|
"path": "/agent/v1/deployments/{deployment_id}",
|
|
1793
1793
|
"streaming": "no",
|
|
@@ -2106,6 +2106,18 @@ export const operations = [
|
|
|
2106
2106
|
],
|
|
2107
2107
|
"query": []
|
|
2108
2108
|
},
|
|
2109
|
+
{
|
|
2110
|
+
"resource": "agent.loginIntents",
|
|
2111
|
+
"method": "create",
|
|
2112
|
+
"summary": "Create a login intent for the calling agent",
|
|
2113
|
+
"description": "Create a one-time login code for yourself from your own non-cli session, then redeem it on your own computer as a cli login.\n\nOnly for yourself, and only for your own computer: the agent, its organization and its platform computer all come from the credential and the agent's record, and the request body accepts no field at all (place included), so this call can be aimed neither at another agent nor at somebody else's computer. The member driving the session must be that agent's sponsor: the code becomes a thirty-day cli login for the agent, so only the sponsor may open one, and a session that names no member (a terminal customer's session) is refused. A cli session is refused (a login token cannot mint another login). The code lives five minutes and is redeemed once, at the gateway, where the redeem credential rides in Authorization.",
|
|
2114
|
+
"http": "POST",
|
|
2115
|
+
"path": "/agent/v1/login_intents",
|
|
2116
|
+
"streaming": "no",
|
|
2117
|
+
"pagination": false,
|
|
2118
|
+
"pathParams": [],
|
|
2119
|
+
"query": []
|
|
2120
|
+
},
|
|
2109
2121
|
{
|
|
2110
2122
|
"resource": "agent.sessions",
|
|
2111
2123
|
"method": "list",
|
|
@@ -2708,6 +2720,36 @@ export const operations = [
|
|
|
2708
2720
|
],
|
|
2709
2721
|
"query": []
|
|
2710
2722
|
},
|
|
2723
|
+
{
|
|
2724
|
+
"resource": "agent.sessions.dictations",
|
|
2725
|
+
"method": "create",
|
|
2726
|
+
"summary": "Create Session Dictation Stream (Extension)",
|
|
2727
|
+
"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.",
|
|
2728
|
+
"http": "POST",
|
|
2729
|
+
"path": "/agent/v1/sessions/{session_id}/dictations",
|
|
2730
|
+
"streaming": "no",
|
|
2731
|
+
"pagination": false,
|
|
2732
|
+
"pathParams": [
|
|
2733
|
+
{
|
|
2734
|
+
"name": "session_id",
|
|
2735
|
+
"sdkName": "session_id",
|
|
2736
|
+
"description": "Session id from session creation or listing."
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
"query": [],
|
|
2740
|
+
"body": {
|
|
2741
|
+
"required": false,
|
|
2742
|
+
"fields": [
|
|
2743
|
+
{
|
|
2744
|
+
"name": "hotwords",
|
|
2745
|
+
"type": "array",
|
|
2746
|
+
"itemType": "string",
|
|
2747
|
+
"required": false,
|
|
2748
|
+
"description": "Words the recogniser should favour, at most 50."
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2711
2753
|
{
|
|
2712
2754
|
"resource": "agent.sessions.events",
|
|
2713
2755
|
"method": "list",
|
|
@@ -2898,6 +2940,40 @@ export const operations = [
|
|
|
2898
2940
|
]
|
|
2899
2941
|
}
|
|
2900
2942
|
},
|
|
2943
|
+
{
|
|
2944
|
+
"resource": "agent.sessions",
|
|
2945
|
+
"method": "retrievePromptRevs",
|
|
2946
|
+
"summary": "Read one turn's platform prompt Revs",
|
|
2947
|
+
"description": "Read back which platform prompt inputs one turn ran on, from the session's own ledger.\n\nThe answer carries the configuration revision the turn pinned, that revision's version number, one 8-hex content Rev per platform input and when the record was taken. The platform inputs are ONE map keyed by each input's own name — `section:<name>` for a prompt section, plus `catalog` and `tools` — because catalog and tools are ordinary entries of that map, not layers of their own. Revs are content hashes: no prompt text, no tool description and no catalog content is ever in the answer, so the body can be compared across turns and releases without exposing what it names.\n\nWith `run_id` you read that run's own record; without it you read the LAST record written. The last record is rewritten when the Rev set moves, not once per turn, so it may be several turns older than this call — which is why the answer's `run_id` is null in that case rather than naming a turn the record does not belong to, and why `at` is there: it is how you see how old the answer is. `at` never takes part in a comparison.\n\n**This read constructs the session object once.** A Durable Object cannot be read without being entered, so the call runs the object's startup, which may settle an interrupted turn; `acknowledge_wake=true` is required for exactly that reason, and the answer reports `reaped_turns` — how many interrupted turns this call's own arrival settled, `0` when it settled none. Only a value above 0 is evidence about this call. The read writes no row and does not refresh the eviction ordering key of the session's cached context parts.\n\n**What this method does not tell you:** whether the object was a new instance or a rebuilt first probe. That distinction is not in the contract yet; when `agent.sessions.tablesInfo`'s contract face carries `start_phase`, the two read methods move to it together. Do not infer it from this answer.\n\nA run that was never recorded, or a session that has recorded nothing yet, answers 404 with `reason: unknown_run`; a session that is absent or unreadable answers 404 with `reason: unknown_session`. Neither 404 body carries a record field — not even `run_id: null` — because \"no record\" and \"an empty record\" must not look the same. Own face only: the compatible face's vocabulary is the vendor's.",
|
|
2948
|
+
"http": "GET",
|
|
2949
|
+
"path": "/agent/v1/sessions/{session_id}/prompt-revs",
|
|
2950
|
+
"streaming": "no",
|
|
2951
|
+
"pagination": false,
|
|
2952
|
+
"pathParams": [
|
|
2953
|
+
{
|
|
2954
|
+
"name": "session_id",
|
|
2955
|
+
"sdkName": "session_id",
|
|
2956
|
+
"description": "Session id from session creation or listing, or the own face's session name for a main session."
|
|
2957
|
+
}
|
|
2958
|
+
],
|
|
2959
|
+
"query": [
|
|
2960
|
+
{
|
|
2961
|
+
"name": "run_id",
|
|
2962
|
+
"type": "string",
|
|
2963
|
+
"required": false,
|
|
2964
|
+
"description": "Read this run's own record. Omit it to read the last record written, which moves only when the Rev set changes and may be several turns older than this call."
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"name": "acknowledge_wake",
|
|
2968
|
+
"type": "string",
|
|
2969
|
+
"enum": [
|
|
2970
|
+
"true"
|
|
2971
|
+
],
|
|
2972
|
+
"required": true,
|
|
2973
|
+
"description": "Must be `true`. Says you know this read constructs the session object once and that its startup may settle an interrupted turn. Anything else is 400 INVALID_PARAMS, refused before the session is touched."
|
|
2974
|
+
}
|
|
2975
|
+
]
|
|
2976
|
+
},
|
|
2901
2977
|
{
|
|
2902
2978
|
"resource": "agent.sessions.requests",
|
|
2903
2979
|
"method": "list",
|
|
@@ -7512,7 +7588,7 @@ export const operations = [
|
|
|
7512
7588
|
"resource": "browser.connect",
|
|
7513
7589
|
"method": "retrieve",
|
|
7514
7590
|
"summary": "连接云端浏览器",
|
|
7515
|
-
"description": "CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl。",
|
|
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。",
|
|
7516
7592
|
"http": "GET",
|
|
7517
7593
|
"path": "/browser/v1/connect",
|
|
7518
7594
|
"streaming": "no",
|
|
@@ -7814,7 +7890,7 @@ export const operations = [
|
|
|
7814
7890
|
"resource": "browser.sessions",
|
|
7815
7891
|
"method": "create",
|
|
7816
7892
|
"summary": "创建浏览器会话",
|
|
7817
|
-
"description": "创建云端 Chrome,返回自带凭证的 connectUrl
|
|
7893
|
+
"description": "创建云端 Chrome,返回自带凭证的 connectUrl;它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。",
|
|
7818
7894
|
"http": "POST",
|
|
7819
7895
|
"path": "/browser/v1/sessions",
|
|
7820
7896
|
"streaming": "no",
|
|
@@ -7844,7 +7920,7 @@ export const operations = [
|
|
|
7844
7920
|
"name": "keepAlive",
|
|
7845
7921
|
"type": "boolean",
|
|
7846
7922
|
"required": false,
|
|
7847
|
-
"description": "false 时最后一个客户端断开且无人观看后结束会话;true
|
|
7923
|
+
"description": "false 时最后一个客户端断开且无人观看后结束会话;true 时保留至关闭或超时。两种情况都仍受健康检查约束:浏览器连续 2 次健康检查失败时结束会话(closeReason=watchdog)。"
|
|
7848
7924
|
},
|
|
7849
7925
|
{
|
|
7850
7926
|
"name": "timeout",
|
|
@@ -7958,7 +8034,7 @@ export const operations = [
|
|
|
7958
8034
|
"resource": "browser.sessions.actions",
|
|
7959
8035
|
"method": "create",
|
|
7960
8036
|
"summary": "执行页面动作",
|
|
7961
|
-
"description": "在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab
|
|
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 命令。",
|
|
7962
8038
|
"http": "POST",
|
|
7963
8039
|
"path": "/browser/v1/sessions/{sessionId}/actions",
|
|
7964
8040
|
"streaming": "no",
|
|
@@ -7980,7 +8056,7 @@ export const operations = [
|
|
|
7980
8056
|
"resource": "browser.sessions",
|
|
7981
8057
|
"method": "retrieveDebug",
|
|
7982
8058
|
"summary": "读取调试地址",
|
|
7983
|
-
"description": "读取当前会话及各标签页的实时观看地址和 CDP 连接地址。直接使用返回的完整链接,保留查询凭证;会话不在运行状态时 pages
|
|
8059
|
+
"description": "读取当前会话及各标签页的实时观看地址和 CDP 连接地址。直接使用返回的完整链接,保留查询凭证;会话不在运行状态时 pages 为空,返回地址不代表会话仍可连接——会话结束后(进入释放或已释放),用返回的 wsUrl 建立 CDP 连接会得到 409 SESSION_ENDED。",
|
|
7984
8060
|
"http": "GET",
|
|
7985
8061
|
"path": "/browser/v1/sessions/{sessionId}/debug",
|
|
7986
8062
|
"streaming": "no",
|
|
@@ -8205,6 +8281,12 @@ export const operations = [
|
|
|
8205
8281
|
"type": "string",
|
|
8206
8282
|
"required": false,
|
|
8207
8283
|
"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."
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
"name": "library",
|
|
8287
|
+
"type": "boolean",
|
|
8288
|
+
"required": false,
|
|
8289
|
+
"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."
|
|
8208
8290
|
}
|
|
8209
8291
|
]
|
|
8210
8292
|
},
|
|
@@ -8348,6 +8430,114 @@ export const operations = [
|
|
|
8348
8430
|
}
|
|
8349
8431
|
]
|
|
8350
8432
|
},
|
|
8433
|
+
{
|
|
8434
|
+
"resource": "canvas.canvases.imports",
|
|
8435
|
+
"method": "create",
|
|
8436
|
+
"summary": "Import canvas library",
|
|
8437
|
+
"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.",
|
|
8438
|
+
"http": "POST",
|
|
8439
|
+
"path": "/canvas/v1/canvases/{canvas_id}/imports",
|
|
8440
|
+
"streaming": "no",
|
|
8441
|
+
"pagination": false,
|
|
8442
|
+
"pathParams": [
|
|
8443
|
+
{
|
|
8444
|
+
"name": "canvas_id",
|
|
8445
|
+
"sdkName": "canvas_id",
|
|
8446
|
+
"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."
|
|
8447
|
+
}
|
|
8448
|
+
],
|
|
8449
|
+
"query": [],
|
|
8450
|
+
"body": {
|
|
8451
|
+
"required": true,
|
|
8452
|
+
"fields": [
|
|
8453
|
+
{
|
|
8454
|
+
"name": "alias",
|
|
8455
|
+
"type": "string",
|
|
8456
|
+
"required": true,
|
|
8457
|
+
"description": "Alias to import under, 1-32 characters, a lower-case letter then lower-case letters, digits or hyphens."
|
|
8458
|
+
},
|
|
8459
|
+
{
|
|
8460
|
+
"name": "library",
|
|
8461
|
+
"type": "string",
|
|
8462
|
+
"required": true,
|
|
8463
|
+
"description": "Canvas id of the library, from libraries.list; it must belong to your organization and have been published."
|
|
8464
|
+
},
|
|
8465
|
+
{
|
|
8466
|
+
"name": "version",
|
|
8467
|
+
"type": "string",
|
|
8468
|
+
"required": false,
|
|
8469
|
+
"description": "Library version to use, from library_versions; the latest when omitted."
|
|
8470
|
+
},
|
|
8471
|
+
{
|
|
8472
|
+
"name": "expected_version",
|
|
8473
|
+
"type": "string",
|
|
8474
|
+
"required": false,
|
|
8475
|
+
"description": "Current canvas version from retrieve; the import is refused with REVISION_CONFLICT if the canvas has moved on. Omission imports whatever is current."
|
|
8476
|
+
}
|
|
8477
|
+
]
|
|
8478
|
+
}
|
|
8479
|
+
},
|
|
8480
|
+
{
|
|
8481
|
+
"resource": "canvas.canvases.imports",
|
|
8482
|
+
"method": "delete",
|
|
8483
|
+
"summary": "Remove canvas library import",
|
|
8484
|
+
"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.",
|
|
8485
|
+
"http": "DELETE",
|
|
8486
|
+
"path": "/canvas/v1/canvases/{canvas_id}/imports/{alias}",
|
|
8487
|
+
"streaming": "no",
|
|
8488
|
+
"pagination": false,
|
|
8489
|
+
"pathParams": [
|
|
8490
|
+
{
|
|
8491
|
+
"name": "canvas_id",
|
|
8492
|
+
"sdkName": "canvas_id",
|
|
8493
|
+
"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."
|
|
8494
|
+
},
|
|
8495
|
+
{
|
|
8496
|
+
"name": "alias",
|
|
8497
|
+
"sdkName": "alias",
|
|
8498
|
+
"description": "The alias the library was imported under, as shown in imports of retrieve."
|
|
8499
|
+
}
|
|
8500
|
+
],
|
|
8501
|
+
"query": [
|
|
8502
|
+
{
|
|
8503
|
+
"name": "expected_version",
|
|
8504
|
+
"type": "string",
|
|
8505
|
+
"required": false,
|
|
8506
|
+
"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."
|
|
8507
|
+
}
|
|
8508
|
+
]
|
|
8509
|
+
},
|
|
8510
|
+
{
|
|
8511
|
+
"resource": "canvas.canvases.libraryVersions",
|
|
8512
|
+
"method": "list",
|
|
8513
|
+
"summary": "List library versions",
|
|
8514
|
+
"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.",
|
|
8515
|
+
"http": "GET",
|
|
8516
|
+
"path": "/canvas/v1/canvases/{canvas_id}/library_versions",
|
|
8517
|
+
"streaming": "no",
|
|
8518
|
+
"pagination": false,
|
|
8519
|
+
"pathParams": [
|
|
8520
|
+
{
|
|
8521
|
+
"name": "canvas_id",
|
|
8522
|
+
"sdkName": "canvas_id",
|
|
8523
|
+
"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."
|
|
8524
|
+
}
|
|
8525
|
+
],
|
|
8526
|
+
"query": [
|
|
8527
|
+
{
|
|
8528
|
+
"name": "limit",
|
|
8529
|
+
"type": "integer",
|
|
8530
|
+
"required": false,
|
|
8531
|
+
"description": "Maximum library versions to return, from 1 to 100 inclusive; omission uses 30."
|
|
8532
|
+
},
|
|
8533
|
+
{
|
|
8534
|
+
"name": "cursor",
|
|
8535
|
+
"type": "string",
|
|
8536
|
+
"required": false,
|
|
8537
|
+
"description": "Copy next_cursor from the preceding page to continue toward older library versions; omit for the first page."
|
|
8538
|
+
}
|
|
8539
|
+
]
|
|
8540
|
+
},
|
|
8351
8541
|
{
|
|
8352
8542
|
"resource": "canvas.canvases.nodes",
|
|
8353
8543
|
"method": "list",
|
|
@@ -8464,6 +8654,41 @@ export const operations = [
|
|
|
8464
8654
|
]
|
|
8465
8655
|
}
|
|
8466
8656
|
},
|
|
8657
|
+
{
|
|
8658
|
+
"resource": "canvas.canvases",
|
|
8659
|
+
"method": "publish",
|
|
8660
|
+
"summary": "Publish canvas library",
|
|
8661
|
+
"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.",
|
|
8662
|
+
"http": "POST",
|
|
8663
|
+
"path": "/canvas/v1/canvases/{canvas_id}:publish",
|
|
8664
|
+
"streaming": "no",
|
|
8665
|
+
"pagination": false,
|
|
8666
|
+
"pathParams": [
|
|
8667
|
+
{
|
|
8668
|
+
"name": "canvas_id",
|
|
8669
|
+
"sdkName": "canvas_id",
|
|
8670
|
+
"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."
|
|
8671
|
+
}
|
|
8672
|
+
],
|
|
8673
|
+
"query": [],
|
|
8674
|
+
"body": {
|
|
8675
|
+
"required": false,
|
|
8676
|
+
"fields": [
|
|
8677
|
+
{
|
|
8678
|
+
"name": "description",
|
|
8679
|
+
"type": "string",
|
|
8680
|
+
"required": false,
|
|
8681
|
+
"description": "Release note shown in library_versions, at most 2000 characters; empty when omitted."
|
|
8682
|
+
},
|
|
8683
|
+
{
|
|
8684
|
+
"name": "expected_version",
|
|
8685
|
+
"type": "string",
|
|
8686
|
+
"required": false,
|
|
8687
|
+
"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."
|
|
8688
|
+
}
|
|
8689
|
+
]
|
|
8690
|
+
}
|
|
8691
|
+
},
|
|
8467
8692
|
{
|
|
8468
8693
|
"resource": "canvas.canvases",
|
|
8469
8694
|
"method": "restore",
|
|
@@ -8599,6 +8824,37 @@ export const operations = [
|
|
|
8599
8824
|
]
|
|
8600
8825
|
}
|
|
8601
8826
|
},
|
|
8827
|
+
{
|
|
8828
|
+
"resource": "canvas.libraries",
|
|
8829
|
+
"method": "list",
|
|
8830
|
+
"summary": "List libraries",
|
|
8831
|
+
"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.",
|
|
8832
|
+
"http": "GET",
|
|
8833
|
+
"path": "/canvas/v1/libraries",
|
|
8834
|
+
"streaming": "no",
|
|
8835
|
+
"pagination": true,
|
|
8836
|
+
"pathParams": [],
|
|
8837
|
+
"query": [
|
|
8838
|
+
{
|
|
8839
|
+
"name": "query",
|
|
8840
|
+
"type": "string",
|
|
8841
|
+
"required": false,
|
|
8842
|
+
"description": "Keep only libraries whose name contains this text, ignoring case; omit to list every library."
|
|
8843
|
+
},
|
|
8844
|
+
{
|
|
8845
|
+
"name": "limit",
|
|
8846
|
+
"type": "integer",
|
|
8847
|
+
"required": false,
|
|
8848
|
+
"description": "Maximum libraries to return per page, from 1 to 100; defaults to 50 when omitted."
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
"name": "cursor",
|
|
8852
|
+
"type": "string",
|
|
8853
|
+
"required": false,
|
|
8854
|
+
"description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
8855
|
+
}
|
|
8856
|
+
]
|
|
8857
|
+
},
|
|
8602
8858
|
{
|
|
8603
8859
|
"resource": "content.contents",
|
|
8604
8860
|
"method": "list",
|
|
@@ -10608,7 +10864,7 @@ export const operations = [
|
|
|
10608
10864
|
"resource": "customer.accessTokens",
|
|
10609
10865
|
"method": "create",
|
|
10610
10866
|
"summary": "Exchange a grant code or publishable key",
|
|
10611
|
-
"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.",
|
|
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.",
|
|
10612
10868
|
"http": "POST",
|
|
10613
10869
|
"path": "/customer/v1/access_tokens",
|
|
10614
10870
|
"streaming": "no",
|
|
@@ -10636,7 +10892,13 @@ export const operations = [
|
|
|
10636
10892
|
"name": "publishable_key",
|
|
10637
10893
|
"type": "string",
|
|
10638
10894
|
"required": false,
|
|
10639
|
-
"description": "A publishable key (pk_…) for an anonymous visitor; the exchange creates a new anonymous end user bound to the request Origin."
|
|
10895
|
+
"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."
|
|
10896
|
+
},
|
|
10897
|
+
{
|
|
10898
|
+
"name": "continuation_token",
|
|
10899
|
+
"type": "string",
|
|
10900
|
+
"required": false,
|
|
10901
|
+
"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."
|
|
10640
10902
|
}
|
|
10641
10903
|
]
|
|
10642
10904
|
}
|
|
@@ -10959,7 +11221,7 @@ export const operations = [
|
|
|
10959
11221
|
"resource": "customer.publishableKeys",
|
|
10960
11222
|
"method": "create",
|
|
10961
11223
|
"summary": "Create a publishable key",
|
|
10962
|
-
"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. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with 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.",
|
|
10963
11225
|
"http": "POST",
|
|
10964
11226
|
"path": "/customer/v1/publishable_keys",
|
|
10965
11227
|
"streaming": "no",
|
|
@@ -10981,6 +11243,24 @@ export const operations = [
|
|
|
10981
11243
|
"itemType": "object",
|
|
10982
11244
|
"required": true,
|
|
10983
11245
|
"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."
|
|
11246
|
+
},
|
|
11247
|
+
{
|
|
11248
|
+
"name": "anon_rate_per_min",
|
|
11249
|
+
"type": "integer",
|
|
11250
|
+
"required": false,
|
|
11251
|
+
"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."
|
|
11252
|
+
},
|
|
11253
|
+
{
|
|
11254
|
+
"name": "daily_session_cap",
|
|
11255
|
+
"type": "integer",
|
|
11256
|
+
"required": false,
|
|
11257
|
+
"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."
|
|
11258
|
+
},
|
|
11259
|
+
{
|
|
11260
|
+
"name": "daily_spend_cap",
|
|
11261
|
+
"type": "object",
|
|
11262
|
+
"required": false,
|
|
11263
|
+
"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."
|
|
10984
11264
|
}
|
|
10985
11265
|
]
|
|
10986
11266
|
}
|
|
@@ -11003,6 +11283,53 @@ export const operations = [
|
|
|
11003
11283
|
],
|
|
11004
11284
|
"query": []
|
|
11005
11285
|
},
|
|
11286
|
+
{
|
|
11287
|
+
"resource": "customer.publishableKeys",
|
|
11288
|
+
"method": "update",
|
|
11289
|
+
"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.",
|
|
11291
|
+
"http": "PATCH",
|
|
11292
|
+
"path": "/customer/v1/publishable_keys/{key_id}",
|
|
11293
|
+
"streaming": "no",
|
|
11294
|
+
"pagination": false,
|
|
11295
|
+
"pathParams": [
|
|
11296
|
+
{
|
|
11297
|
+
"name": "key_id",
|
|
11298
|
+
"sdkName": "key_id",
|
|
11299
|
+
"description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
|
|
11300
|
+
}
|
|
11301
|
+
],
|
|
11302
|
+
"query": [],
|
|
11303
|
+
"body": {
|
|
11304
|
+
"required": true,
|
|
11305
|
+
"fields": [
|
|
11306
|
+
{
|
|
11307
|
+
"name": "name",
|
|
11308
|
+
"type": "string",
|
|
11309
|
+
"required": false,
|
|
11310
|
+
"description": "New label for the key, 1 to 64 characters."
|
|
11311
|
+
},
|
|
11312
|
+
{
|
|
11313
|
+
"name": "anon_rate_per_min",
|
|
11314
|
+
"type": "integer",
|
|
11315
|
+
"required": false,
|
|
11316
|
+
"description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
|
|
11317
|
+
},
|
|
11318
|
+
{
|
|
11319
|
+
"name": "daily_session_cap",
|
|
11320
|
+
"type": "integer",
|
|
11321
|
+
"required": false,
|
|
11322
|
+
"description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
|
|
11323
|
+
},
|
|
11324
|
+
{
|
|
11325
|
+
"name": "daily_spend_cap",
|
|
11326
|
+
"type": "object",
|
|
11327
|
+
"required": false,
|
|
11328
|
+
"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."
|
|
11329
|
+
}
|
|
11330
|
+
]
|
|
11331
|
+
}
|
|
11332
|
+
},
|
|
11006
11333
|
{
|
|
11007
11334
|
"resource": "cut.exports",
|
|
11008
11335
|
"method": "retrieve",
|
|
@@ -14953,6 +15280,12 @@ export const operations = [
|
|
|
14953
15280
|
"type": "boolean",
|
|
14954
15281
|
"required": false,
|
|
14955
15282
|
"description": "True answers the rollback that would be created without creating it."
|
|
15283
|
+
},
|
|
15284
|
+
{
|
|
15285
|
+
"name": "culprit",
|
|
15286
|
+
"type": "string",
|
|
15287
|
+
"required": false,
|
|
15288
|
+
"description": "The Change (chg_...) this rollback takes out, when it is known. It is recorded on the rollback promotion, and a release environment then refuses new promotions carrying that Change until it merges a new slice (#181)."
|
|
14956
15289
|
}
|
|
14957
15290
|
]
|
|
14958
15291
|
}
|
|
@@ -17267,7 +17600,7 @@ export const operations = [
|
|
|
17267
17600
|
"resource": "devops.promotions",
|
|
17268
17601
|
"method": "approve",
|
|
17269
17602
|
"summary": "Approve or reject a promotion",
|
|
17270
|
-
"description": "
|
|
17603
|
+
"description": "Not supported yet (Sean 2026-11-27: approvals return as a step of the workflow engine): every call answers 409 ENGINE_UNSUPPORTED, and an environment that requires approval is refused when a promotion into it is created, so no promotion waits for an answer.",
|
|
17271
17604
|
"http": "POST",
|
|
17272
17605
|
"path": "/devops/v1/promotions/{id}:approve",
|
|
17273
17606
|
"streaming": "no",
|
|
@@ -17349,7 +17682,7 @@ export const operations = [
|
|
|
17349
17682
|
"resource": "devops.promotions",
|
|
17350
17683
|
"method": "conclude",
|
|
17351
17684
|
"summary": "Conclude an observation",
|
|
17352
|
-
"description": "
|
|
17685
|
+
"description": "Retired with the observation window (ticket-4240): a promotion ends when its deploy ends, so no promotion is ever observing and every call answers 409 PROMOTION_NOT_OBSERVING. Watching production after a release is its author's own work; to undo a release use environments.rollback, which also takes the culprit Change this call used to record.",
|
|
17353
17686
|
"http": "POST",
|
|
17354
17687
|
"path": "/devops/v1/promotions/{id}:conclude",
|
|
17355
17688
|
"streaming": "no",
|
|
@@ -18152,7 +18485,7 @@ export const operations = [
|
|
|
18152
18485
|
"resource": "devops.units",
|
|
18153
18486
|
"method": "exec",
|
|
18154
18487
|
"summary": "Run a command inside a unit",
|
|
18155
|
-
"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.",
|
|
18488
|
+
"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.",
|
|
18156
18489
|
"http": "POST",
|
|
18157
18490
|
"path": "/devops/v1/units/{id}:exec",
|
|
18158
18491
|
"streaming": "no",
|
|
@@ -18184,7 +18517,7 @@ export const operations = [
|
|
|
18184
18517
|
"name": "timeoutMs",
|
|
18185
18518
|
"type": "integer",
|
|
18186
18519
|
"required": false,
|
|
18187
|
-
"description": "How long the command may run, in milliseconds
|
|
18520
|
+
"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."
|
|
18188
18521
|
}
|
|
18189
18522
|
]
|
|
18190
18523
|
}
|
|
@@ -19796,6 +20129,12 @@ export const operations = [
|
|
|
19796
20129
|
"required": false,
|
|
19797
20130
|
"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."
|
|
19798
20131
|
},
|
|
20132
|
+
{
|
|
20133
|
+
"name": "live_stream_id",
|
|
20134
|
+
"type": "string",
|
|
20135
|
+
"required": false,
|
|
20136
|
+
"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."
|
|
20137
|
+
},
|
|
19799
20138
|
{
|
|
19800
20139
|
"name": "stack",
|
|
19801
20140
|
"type": "boolean",
|
|
@@ -19873,7 +20212,7 @@ export const operations = [
|
|
|
19873
20212
|
"name": "display_name",
|
|
19874
20213
|
"type": "string",
|
|
19875
20214
|
"required": false,
|
|
19876
|
-
"description": "Asset display name. Defaults to the final public_id path segment
|
|
20215
|
+
"description": "Asset display name. Defaults to the source filename without its directory and extension; a source with no usable filename falls back to the final public_id path segment."
|
|
19877
20216
|
},
|
|
19878
20217
|
{
|
|
19879
20218
|
"name": "asset_folder",
|
|
@@ -19897,7 +20236,7 @@ export const operations = [
|
|
|
19897
20236
|
"name": "use_filename_as_display_name",
|
|
19898
20237
|
"type": "boolean",
|
|
19899
20238
|
"required": false,
|
|
19900
|
-
"description": "
|
|
20239
|
+
"description": "Accepted for compatibility: the source filename without its extension is already the default display_name, and an explicit display_name takes precedence."
|
|
19901
20240
|
},
|
|
19902
20241
|
{
|
|
19903
20242
|
"name": "filename_override",
|
|
@@ -19984,7 +20323,7 @@ export const operations = [
|
|
|
19984
20323
|
"name": "display_name",
|
|
19985
20324
|
"type": "string",
|
|
19986
20325
|
"required": false,
|
|
19987
|
-
"description": "Asset display name. Defaults to the final public_id path segment
|
|
20326
|
+
"description": "Asset display name. Defaults to the source filename without its directory and extension; a source with no usable filename falls back to the final public_id path segment."
|
|
19988
20327
|
},
|
|
19989
20328
|
{
|
|
19990
20329
|
"name": "asset_folder",
|
|
@@ -20008,7 +20347,7 @@ export const operations = [
|
|
|
20008
20347
|
"name": "use_filename_as_display_name",
|
|
20009
20348
|
"type": "boolean",
|
|
20010
20349
|
"required": false,
|
|
20011
|
-
"description": "
|
|
20350
|
+
"description": "Accepted for compatibility: the source filename without its extension is already the default display_name, and an explicit display_name takes precedence."
|
|
20012
20351
|
},
|
|
20013
20352
|
{
|
|
20014
20353
|
"name": "filename_override",
|
|
@@ -20601,6 +20940,12 @@ export const operations = [
|
|
|
20601
20940
|
"required": true,
|
|
20602
20941
|
"description": "Text to synthesize; long text is synthesized paragraph by paragraph."
|
|
20603
20942
|
},
|
|
20943
|
+
{
|
|
20944
|
+
"name": "display_name",
|
|
20945
|
+
"type": "string",
|
|
20946
|
+
"required": false,
|
|
20947
|
+
"description": "Name the recording carries in the library. Omit it and the recording is named by the opening of the text."
|
|
20948
|
+
},
|
|
20604
20949
|
{
|
|
20605
20950
|
"name": "voice",
|
|
20606
20951
|
"type": "string",
|
|
@@ -20856,6 +21201,12 @@ export const operations = [
|
|
|
20856
21201
|
"required": false,
|
|
20857
21202
|
"description": "What the image must not contain. Models without a negative-prompt control ignore it."
|
|
20858
21203
|
},
|
|
21204
|
+
{
|
|
21205
|
+
"name": "display_name",
|
|
21206
|
+
"type": "string",
|
|
21207
|
+
"required": false,
|
|
21208
|
+
"description": "Name the produced pictures carry in the library; when n is above 1 the second and later get \" 2\", \" 3\" and so on. Omit it and each picture is named from its own description once the library has read it, with a number added when that name is already taken."
|
|
21209
|
+
},
|
|
20859
21210
|
{
|
|
20860
21211
|
"name": "n",
|
|
20861
21212
|
"type": "integer",
|
|
@@ -20939,7 +21290,7 @@ export const operations = [
|
|
|
20939
21290
|
"name": "asset_folder",
|
|
20940
21291
|
"type": "string",
|
|
20941
21292
|
"required": false,
|
|
20942
|
-
"description": "Folder the produced asset is filed under;
|
|
21293
|
+
"description": "Folder the produced asset is filed under; when omitted it is 生成/YYYY-MM-DD, the UTC date the job was created. Send an empty string to file it in the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
20943
21294
|
},
|
|
20944
21295
|
{
|
|
20945
21296
|
"name": "understanding",
|
|
@@ -21316,14 +21667,14 @@ export const operations = [
|
|
|
21316
21667
|
"name": "expression",
|
|
21317
21668
|
"type": "string",
|
|
21318
21669
|
"required": false,
|
|
21319
|
-
"description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context. color:\"#c0392b\" matches an analysed image with a dominant colour within RGB distance 60 of the named colour covering at least a tenth of it; duplicate:true matches assets another live asset shares the same bytes with. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. audio_role:music selects audio materials by what they are used for (voice, music or sfx), and it exists only on audio materials, so an asset without a role matches no role. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial."
|
|
21670
|
+
"description": "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context. context.<key> also takes > < >= <= against a plain number such as context.likes>1000: the stored value is read as a number when it is plain decimal digits with at most one decimal point and an optional leading minus, and a value that is not a number (or a missing key) matches no comparison; = and : stay exact text matches. color:\"#c0392b\" matches an analysed image with a dominant colour within RGB distance 60 of the named colour covering at least a tenth of it; duplicate:true matches assets another live asset shares the same bytes with. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. audio_role:music selects audio materials by what they are used for (voice, music or sfx), and it exists only on audio materials, so an asset without a role matches no role. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial."
|
|
21320
21671
|
},
|
|
21321
21672
|
{
|
|
21322
21673
|
"name": "sort_by",
|
|
21323
21674
|
"type": "array",
|
|
21324
21675
|
"itemType": "object",
|
|
21325
21676
|
"required": false,
|
|
21326
|
-
"description": "Ordered list of single-field sort objects. Allowed fields are created_at, public_id, display_name, bytes and
|
|
21677
|
+
"description": "Ordered list of single-field sort objects, at most 8. Allowed fields are created_at, public_id, display_name, bytes, uploaded_at and context.<key>; directions are asc or desc. Fields cannot repeat. A context.<key> sort orders by the number stored under that key: a value counts as a number when it is plain decimal digits with at most one decimal point and an optional leading minus, and an asset whose value is missing or not a number comes after every number in both directions. Sorting by a context key reads every matching asset, so narrow the expression first; a library too large to scan within the request budget answers LIMIT_EXCEEDED. Defaults to created_at descending."
|
|
21327
21678
|
},
|
|
21328
21679
|
{
|
|
21329
21680
|
"name": "max_results",
|
|
@@ -21586,6 +21937,12 @@ export const operations = [
|
|
|
21586
21937
|
"required": false,
|
|
21587
21938
|
"description": "What the video must not contain. Models without a negative-prompt control ignore it."
|
|
21588
21939
|
},
|
|
21940
|
+
{
|
|
21941
|
+
"name": "display_name",
|
|
21942
|
+
"type": "string",
|
|
21943
|
+
"required": false,
|
|
21944
|
+
"description": "Name the produced videos carry in the library; when n is above 1 the second and later get \" 2\", \" 3\" and so on. Omit it and each video is named from its own description once the library has read it, with a number added when that name is already taken."
|
|
21945
|
+
},
|
|
21589
21946
|
{
|
|
21590
21947
|
"name": "mode",
|
|
21591
21948
|
"type": "string",
|
|
@@ -21697,7 +22054,7 @@ export const operations = [
|
|
|
21697
22054
|
"name": "asset_folder",
|
|
21698
22055
|
"type": "string",
|
|
21699
22056
|
"required": false,
|
|
21700
|
-
"description": "Folder the produced asset is filed under;
|
|
22057
|
+
"description": "Folder the produced asset is filed under; when omitted it is 生成/YYYY-MM-DD, the UTC date the job was created. Send an empty string to file it in the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
|
|
21701
22058
|
},
|
|
21702
22059
|
{
|
|
21703
22060
|
"name": "understanding",
|
|
@@ -21791,6 +22148,605 @@ export const operations = [
|
|
|
21791
22148
|
]
|
|
21792
22149
|
}
|
|
21793
22150
|
},
|
|
22151
|
+
{
|
|
22152
|
+
"resource": "media.pipelines",
|
|
22153
|
+
"method": "list",
|
|
22154
|
+
"summary": "List pipelines",
|
|
22155
|
+
"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.",
|
|
22156
|
+
"http": "GET",
|
|
22157
|
+
"path": "/media/v1/pipelines",
|
|
22158
|
+
"streaming": "no",
|
|
22159
|
+
"pagination": false,
|
|
22160
|
+
"pathParams": [],
|
|
22161
|
+
"query": [
|
|
22162
|
+
{
|
|
22163
|
+
"name": "limit",
|
|
22164
|
+
"type": "integer",
|
|
22165
|
+
"required": false,
|
|
22166
|
+
"description": "How many pipelines one page holds, 1 to 100; default 20."
|
|
22167
|
+
},
|
|
22168
|
+
{
|
|
22169
|
+
"name": "starting_after",
|
|
22170
|
+
"type": "string",
|
|
22171
|
+
"required": false,
|
|
22172
|
+
"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."
|
|
22173
|
+
}
|
|
22174
|
+
]
|
|
22175
|
+
},
|
|
22176
|
+
{
|
|
22177
|
+
"resource": "media.pipelines",
|
|
22178
|
+
"method": "create",
|
|
22179
|
+
"summary": "Create a pipeline",
|
|
22180
|
+
"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} raises an alert event when a final sentence of the transcript holds one of the words, as a keyword_match alert rule does; the sinks send the results on: webhook {url} posts every event of the stream to your server, signed as Standard Webhooks (the secret whsec_ is shown once, in the response that adds the webhook), and agent {session_id} sends them to an agent session; 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}]}.",
|
|
22181
|
+
"http": "POST",
|
|
22182
|
+
"path": "/media/v1/pipelines",
|
|
22183
|
+
"streaming": "no",
|
|
22184
|
+
"pagination": false,
|
|
22185
|
+
"pathParams": [],
|
|
22186
|
+
"query": [],
|
|
22187
|
+
"body": {
|
|
22188
|
+
"required": true,
|
|
22189
|
+
"fields": [
|
|
22190
|
+
{
|
|
22191
|
+
"name": "name",
|
|
22192
|
+
"type": "string",
|
|
22193
|
+
"required": true,
|
|
22194
|
+
"description": "The pipeline's name."
|
|
22195
|
+
},
|
|
22196
|
+
{
|
|
22197
|
+
"name": "elements",
|
|
22198
|
+
"type": "array",
|
|
22199
|
+
"itemType": "object",
|
|
22200
|
+
"required": false,
|
|
22201
|
+
"description": "The ordered processors and sinks; empty by default."
|
|
22202
|
+
},
|
|
22203
|
+
{
|
|
22204
|
+
"name": "alert_rules",
|
|
22205
|
+
"type": "array",
|
|
22206
|
+
"itemType": "object",
|
|
22207
|
+
"required": false,
|
|
22208
|
+
"description": "The alert rules; empty by default."
|
|
22209
|
+
}
|
|
22210
|
+
]
|
|
22211
|
+
}
|
|
22212
|
+
},
|
|
22213
|
+
{
|
|
22214
|
+
"resource": "media.pipelines",
|
|
22215
|
+
"method": "delete",
|
|
22216
|
+
"summary": "Delete a pipeline",
|
|
22217
|
+
"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.",
|
|
22218
|
+
"http": "DELETE",
|
|
22219
|
+
"path": "/media/v1/pipelines/{pipeline_id}",
|
|
22220
|
+
"streaming": "no",
|
|
22221
|
+
"pagination": false,
|
|
22222
|
+
"pathParams": [
|
|
22223
|
+
{
|
|
22224
|
+
"name": "pipeline_id",
|
|
22225
|
+
"sdkName": "pipeline_id",
|
|
22226
|
+
"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."
|
|
22227
|
+
}
|
|
22228
|
+
],
|
|
22229
|
+
"query": []
|
|
22230
|
+
},
|
|
22231
|
+
{
|
|
22232
|
+
"resource": "media.pipelines",
|
|
22233
|
+
"method": "retrieve",
|
|
22234
|
+
"summary": "Retrieve a pipeline",
|
|
22235
|
+
"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.",
|
|
22236
|
+
"http": "GET",
|
|
22237
|
+
"path": "/media/v1/pipelines/{pipeline_id}",
|
|
22238
|
+
"streaming": "no",
|
|
22239
|
+
"pagination": false,
|
|
22240
|
+
"pathParams": [
|
|
22241
|
+
{
|
|
22242
|
+
"name": "pipeline_id",
|
|
22243
|
+
"sdkName": "pipeline_id",
|
|
22244
|
+
"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."
|
|
22245
|
+
}
|
|
22246
|
+
],
|
|
22247
|
+
"query": []
|
|
22248
|
+
},
|
|
22249
|
+
{
|
|
22250
|
+
"resource": "media.pipelines",
|
|
22251
|
+
"method": "update",
|
|
22252
|
+
"summary": "Update a pipeline",
|
|
22253
|
+
"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\"}]}.",
|
|
22254
|
+
"http": "PATCH",
|
|
22255
|
+
"path": "/media/v1/pipelines/{pipeline_id}",
|
|
22256
|
+
"streaming": "no",
|
|
22257
|
+
"pagination": false,
|
|
22258
|
+
"pathParams": [
|
|
22259
|
+
{
|
|
22260
|
+
"name": "pipeline_id",
|
|
22261
|
+
"sdkName": "pipeline_id",
|
|
22262
|
+
"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."
|
|
22263
|
+
}
|
|
22264
|
+
],
|
|
22265
|
+
"query": [],
|
|
22266
|
+
"body": {
|
|
22267
|
+
"required": true,
|
|
22268
|
+
"fields": [
|
|
22269
|
+
{
|
|
22270
|
+
"name": "name",
|
|
22271
|
+
"type": "string",
|
|
22272
|
+
"required": false,
|
|
22273
|
+
"description": "The new name."
|
|
22274
|
+
},
|
|
22275
|
+
{
|
|
22276
|
+
"name": "elements",
|
|
22277
|
+
"type": "array",
|
|
22278
|
+
"itemType": "object",
|
|
22279
|
+
"required": false,
|
|
22280
|
+
"description": "The new element list"
|
|
22281
|
+
},
|
|
22282
|
+
{
|
|
22283
|
+
"name": "alert_rules",
|
|
22284
|
+
"type": "array",
|
|
22285
|
+
"itemType": "object",
|
|
22286
|
+
"required": false,
|
|
22287
|
+
"description": "The new rules"
|
|
22288
|
+
}
|
|
22289
|
+
]
|
|
22290
|
+
}
|
|
22291
|
+
},
|
|
22292
|
+
{
|
|
22293
|
+
"resource": "media.streams",
|
|
22294
|
+
"method": "list",
|
|
22295
|
+
"summary": "List streams",
|
|
22296
|
+
"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.",
|
|
22297
|
+
"http": "GET",
|
|
22298
|
+
"path": "/media/v1/streams",
|
|
22299
|
+
"streaming": "no",
|
|
22300
|
+
"pagination": false,
|
|
22301
|
+
"pathParams": [],
|
|
22302
|
+
"query": [
|
|
22303
|
+
{
|
|
22304
|
+
"name": "limit",
|
|
22305
|
+
"type": "integer",
|
|
22306
|
+
"required": false,
|
|
22307
|
+
"description": "How many streams one page holds, 1 to 100; default 20."
|
|
22308
|
+
},
|
|
22309
|
+
{
|
|
22310
|
+
"name": "starting_after",
|
|
22311
|
+
"type": "string",
|
|
22312
|
+
"required": false,
|
|
22313
|
+
"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."
|
|
22314
|
+
}
|
|
22315
|
+
]
|
|
22316
|
+
},
|
|
22317
|
+
{
|
|
22318
|
+
"resource": "media.streams",
|
|
22319
|
+
"method": "create",
|
|
22320
|
+
"summary": "Create a stream",
|
|
22321
|
+
"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 answer shows the stream idle. A pull stream starts pulling as soon as it is created, so a read a few seconds later shows waiting or active; a push stream stays idle until a source connects. Nothing is 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\"}}.",
|
|
22322
|
+
"http": "POST",
|
|
22323
|
+
"path": "/media/v1/streams",
|
|
22324
|
+
"streaming": "no",
|
|
22325
|
+
"pagination": false,
|
|
22326
|
+
"pathParams": [],
|
|
22327
|
+
"query": [],
|
|
22328
|
+
"body": {
|
|
22329
|
+
"required": true,
|
|
22330
|
+
"fields": [
|
|
22331
|
+
{
|
|
22332
|
+
"name": "input",
|
|
22333
|
+
"type": "object",
|
|
22334
|
+
"required": true,
|
|
22335
|
+
"description": "Where the stream's media comes from."
|
|
22336
|
+
},
|
|
22337
|
+
{
|
|
22338
|
+
"name": "reconnect_window_s",
|
|
22339
|
+
"type": "integer",
|
|
22340
|
+
"required": false,
|
|
22341
|
+
"description": "How many seconds a dropped source may take to come back and continue the same broadcast and recording; default 60."
|
|
22342
|
+
},
|
|
22343
|
+
{
|
|
22344
|
+
"name": "max_continuous_duration_s",
|
|
22345
|
+
"type": "integer",
|
|
22346
|
+
"required": false,
|
|
22347
|
+
"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)."
|
|
22348
|
+
},
|
|
22349
|
+
{
|
|
22350
|
+
"name": "recording",
|
|
22351
|
+
"type": "object",
|
|
22352
|
+
"required": false,
|
|
22353
|
+
"description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
|
|
22354
|
+
},
|
|
22355
|
+
{
|
|
22356
|
+
"name": "playback",
|
|
22357
|
+
"type": "object",
|
|
22358
|
+
"required": false,
|
|
22359
|
+
"description": "Whether the live broadcast can be played in a browser. Turn it on and mint an address with streams.playbackToken; a stream that records automatically can be played without it."
|
|
22360
|
+
},
|
|
22361
|
+
{
|
|
22362
|
+
"name": "pipeline_id",
|
|
22363
|
+
"type": "string",
|
|
22364
|
+
"required": false,
|
|
22365
|
+
"description": "The id of the processing to run while the stream is active; the id of a pipeline of your organization (msp_ followed by 26 characters); an unknown one answers PIPELINE_NOT_FOUND. Omit for none."
|
|
22366
|
+
}
|
|
22367
|
+
]
|
|
22368
|
+
}
|
|
22369
|
+
},
|
|
22370
|
+
{
|
|
22371
|
+
"resource": "media.streams",
|
|
22372
|
+
"method": "delete",
|
|
22373
|
+
"summary": "Delete a stream",
|
|
22374
|
+
"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.",
|
|
22375
|
+
"http": "DELETE",
|
|
22376
|
+
"path": "/media/v1/streams/{stream_id}",
|
|
22377
|
+
"streaming": "no",
|
|
22378
|
+
"pagination": false,
|
|
22379
|
+
"pathParams": [
|
|
22380
|
+
{
|
|
22381
|
+
"name": "stream_id",
|
|
22382
|
+
"sdkName": "stream_id",
|
|
22383
|
+
"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."
|
|
22384
|
+
}
|
|
22385
|
+
],
|
|
22386
|
+
"query": []
|
|
22387
|
+
},
|
|
22388
|
+
{
|
|
22389
|
+
"resource": "media.streams",
|
|
22390
|
+
"method": "retrieve",
|
|
22391
|
+
"summary": "Retrieve a stream",
|
|
22392
|
+
"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.",
|
|
22393
|
+
"http": "GET",
|
|
22394
|
+
"path": "/media/v1/streams/{stream_id}",
|
|
22395
|
+
"streaming": "no",
|
|
22396
|
+
"pagination": false,
|
|
22397
|
+
"pathParams": [
|
|
22398
|
+
{
|
|
22399
|
+
"name": "stream_id",
|
|
22400
|
+
"sdkName": "stream_id",
|
|
22401
|
+
"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."
|
|
22402
|
+
}
|
|
22403
|
+
],
|
|
22404
|
+
"query": []
|
|
22405
|
+
},
|
|
22406
|
+
{
|
|
22407
|
+
"resource": "media.streams",
|
|
22408
|
+
"method": "update",
|
|
22409
|
+
"summary": "Update a stream",
|
|
22410
|
+
"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\"}}.",
|
|
22411
|
+
"http": "PATCH",
|
|
22412
|
+
"path": "/media/v1/streams/{stream_id}",
|
|
22413
|
+
"streaming": "no",
|
|
22414
|
+
"pagination": false,
|
|
22415
|
+
"pathParams": [
|
|
22416
|
+
{
|
|
22417
|
+
"name": "stream_id",
|
|
22418
|
+
"sdkName": "stream_id",
|
|
22419
|
+
"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."
|
|
22420
|
+
}
|
|
22421
|
+
],
|
|
22422
|
+
"query": [],
|
|
22423
|
+
"body": {
|
|
22424
|
+
"required": true,
|
|
22425
|
+
"fields": [
|
|
22426
|
+
{
|
|
22427
|
+
"name": "input",
|
|
22428
|
+
"type": "object",
|
|
22429
|
+
"required": false,
|
|
22430
|
+
"description": "Where the stream's media comes from."
|
|
22431
|
+
},
|
|
22432
|
+
{
|
|
22433
|
+
"name": "reconnect_window_s",
|
|
22434
|
+
"type": "integer",
|
|
22435
|
+
"required": false,
|
|
22436
|
+
"description": "The new reconnect window in seconds, 0 to 1800."
|
|
22437
|
+
},
|
|
22438
|
+
{
|
|
22439
|
+
"name": "max_continuous_duration_s",
|
|
22440
|
+
"type": "integer",
|
|
22441
|
+
"required": false,
|
|
22442
|
+
"description": "The new maximum continuous duration in seconds, 60 to 43200."
|
|
22443
|
+
},
|
|
22444
|
+
{
|
|
22445
|
+
"name": "recording",
|
|
22446
|
+
"type": "object",
|
|
22447
|
+
"required": false,
|
|
22448
|
+
"description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
|
|
22449
|
+
},
|
|
22450
|
+
{
|
|
22451
|
+
"name": "playback",
|
|
22452
|
+
"type": "object",
|
|
22453
|
+
"required": false,
|
|
22454
|
+
"description": "Whether the live broadcast can be played in a browser. Turn it on and mint an address with streams.playbackToken; a stream that records automatically can be played without it."
|
|
22455
|
+
},
|
|
22456
|
+
{
|
|
22457
|
+
"name": "pipeline_id",
|
|
22458
|
+
"type": "string",
|
|
22459
|
+
"required": false,
|
|
22460
|
+
"description": "The new pipeline id, or null to detach the pipeline."
|
|
22461
|
+
}
|
|
22462
|
+
]
|
|
22463
|
+
}
|
|
22464
|
+
},
|
|
22465
|
+
{
|
|
22466
|
+
"resource": "media.streams.disable",
|
|
22467
|
+
"method": "create",
|
|
22468
|
+
"summary": "Disable a stream",
|
|
22469
|
+
"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.",
|
|
22470
|
+
"http": "POST",
|
|
22471
|
+
"path": "/media/v1/streams/{stream_id}/disable",
|
|
22472
|
+
"streaming": "no",
|
|
22473
|
+
"pagination": false,
|
|
22474
|
+
"pathParams": [
|
|
22475
|
+
{
|
|
22476
|
+
"name": "stream_id",
|
|
22477
|
+
"sdkName": "stream_id",
|
|
22478
|
+
"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."
|
|
22479
|
+
}
|
|
22480
|
+
],
|
|
22481
|
+
"query": []
|
|
22482
|
+
},
|
|
22483
|
+
{
|
|
22484
|
+
"resource": "media.streams.enable",
|
|
22485
|
+
"method": "create",
|
|
22486
|
+
"summary": "Enable a stream",
|
|
22487
|
+
"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.",
|
|
22488
|
+
"http": "POST",
|
|
22489
|
+
"path": "/media/v1/streams/{stream_id}/enable",
|
|
22490
|
+
"streaming": "no",
|
|
22491
|
+
"pagination": false,
|
|
22492
|
+
"pathParams": [
|
|
22493
|
+
{
|
|
22494
|
+
"name": "stream_id",
|
|
22495
|
+
"sdkName": "stream_id",
|
|
22496
|
+
"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."
|
|
22497
|
+
}
|
|
22498
|
+
],
|
|
22499
|
+
"query": []
|
|
22500
|
+
},
|
|
22501
|
+
{
|
|
22502
|
+
"resource": "media.streams.events",
|
|
22503
|
+
"method": "list",
|
|
22504
|
+
"summary": "List the events of a stream",
|
|
22505
|
+
"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 the life cycle of the stream (stream.waiting, stream.connected, stream.active, stream.disconnected, stream.idle), recording.ready and recording.failed, output.status, and the results of its pipeline (transcript.partial, transcript.final, frame.described, alert, pipeline.unsupported_audio, pipeline.describe_failed). 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.",
|
|
22506
|
+
"http": "GET",
|
|
22507
|
+
"path": "/media/v1/streams/{stream_id}/events",
|
|
22508
|
+
"streaming": "no",
|
|
22509
|
+
"pagination": false,
|
|
22510
|
+
"pathParams": [
|
|
22511
|
+
{
|
|
22512
|
+
"name": "stream_id",
|
|
22513
|
+
"sdkName": "stream_id",
|
|
22514
|
+
"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."
|
|
22515
|
+
}
|
|
22516
|
+
],
|
|
22517
|
+
"query": [
|
|
22518
|
+
{
|
|
22519
|
+
"name": "after",
|
|
22520
|
+
"type": "integer",
|
|
22521
|
+
"required": false,
|
|
22522
|
+
"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."
|
|
22523
|
+
},
|
|
22524
|
+
{
|
|
22525
|
+
"name": "limit",
|
|
22526
|
+
"type": "integer",
|
|
22527
|
+
"required": false,
|
|
22528
|
+
"description": "How many events one page holds, 1 to 100; default 100."
|
|
22529
|
+
}
|
|
22530
|
+
]
|
|
22531
|
+
},
|
|
22532
|
+
{
|
|
22533
|
+
"resource": "media.streams",
|
|
22534
|
+
"method": "retrievePlaylist",
|
|
22535
|
+
"summary": "Read the live HLS playlist of a stream",
|
|
22536
|
+
"description": "The live HLS playlist of the broadcast in progress: a sliding window of the newest six segments, each with EXT-X-PROGRAM-DATE-TIME (the wall clock of its first frame) and the address of its media, signed for ten minutes. Players read it again every few seconds. It carries no media itself and takes no API key: the token in the address (minted by streams.playbackToken) is the credential, and the answer is open to any browser origin. Use the address as given; do not build it by hand. The playlist ends with EXT-X-ENDLIST once the stream is idle or disabled. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/live.m3u8?token=Qm9v.",
|
|
22537
|
+
"http": "GET",
|
|
22538
|
+
"path": "/media/v1/streams/{stream_id}/live.m3u8",
|
|
22539
|
+
"streaming": "no",
|
|
22540
|
+
"pagination": false,
|
|
22541
|
+
"pathParams": [
|
|
22542
|
+
{
|
|
22543
|
+
"name": "stream_id",
|
|
22544
|
+
"sdkName": "stream_id",
|
|
22545
|
+
"description": "The stream's id, as in the address streams.playbackToken returned."
|
|
22546
|
+
}
|
|
22547
|
+
],
|
|
22548
|
+
"query": [
|
|
22549
|
+
{
|
|
22550
|
+
"name": "token",
|
|
22551
|
+
"type": "string",
|
|
22552
|
+
"required": true,
|
|
22553
|
+
"description": "The playback token from the address streams.playbackToken returned; an hour of life."
|
|
22554
|
+
}
|
|
22555
|
+
]
|
|
22556
|
+
},
|
|
22557
|
+
{
|
|
22558
|
+
"resource": "media.streams.outputs",
|
|
22559
|
+
"method": "list",
|
|
22560
|
+
"summary": "List a stream's re-broadcast targets",
|
|
22561
|
+
"description": "List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the error of an errored one. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.",
|
|
22562
|
+
"http": "GET",
|
|
22563
|
+
"path": "/media/v1/streams/{stream_id}/outputs",
|
|
22564
|
+
"streaming": "no",
|
|
22565
|
+
"pagination": false,
|
|
22566
|
+
"pathParams": [
|
|
22567
|
+
{
|
|
22568
|
+
"name": "stream_id",
|
|
22569
|
+
"sdkName": "stream_id",
|
|
22570
|
+
"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."
|
|
22571
|
+
}
|
|
22572
|
+
],
|
|
22573
|
+
"query": []
|
|
22574
|
+
},
|
|
22575
|
+
{
|
|
22576
|
+
"resource": "media.streams.outputs",
|
|
22577
|
+
"method": "create",
|
|
22578
|
+
"summary": "Add a re-broadcast target to a stream",
|
|
22579
|
+
"description": "Re-broadcast a live stream to another service (simulcast): give the target's RTMP address in url and its stream key in stream_key, and every broadcast of this stream is also sent there, without transcoding, while the stream is active. Use it to feed YouTube, Twitch or your own RTMP server from one source; to follow what the target does read streams.events.list for output.status events, and use streams.outputs.retrieve for its current status. url must be rtmp:// or rtmps:// on a public host and name the application (rtmp://a.rtmp.youtube.com/live2); the key is write-only, it is never returned, a read only says stream_key_set is true. A stream has at most 5 outputs. A new output is idle and starts with the next broadcast, or at once when the stream is active. One output that is slow or down never affects the others, the recording or the pipeline. Example: {\"url\":\"rtmps://live.example.com:443/app\",\"stream_key\":\"live_abc123\"}.",
|
|
22580
|
+
"http": "POST",
|
|
22581
|
+
"path": "/media/v1/streams/{stream_id}/outputs",
|
|
22582
|
+
"streaming": "no",
|
|
22583
|
+
"pagination": false,
|
|
22584
|
+
"pathParams": [
|
|
22585
|
+
{
|
|
22586
|
+
"name": "stream_id",
|
|
22587
|
+
"sdkName": "stream_id",
|
|
22588
|
+
"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."
|
|
22589
|
+
}
|
|
22590
|
+
],
|
|
22591
|
+
"query": [],
|
|
22592
|
+
"body": {
|
|
22593
|
+
"required": true,
|
|
22594
|
+
"fields": [
|
|
22595
|
+
{
|
|
22596
|
+
"name": "url",
|
|
22597
|
+
"type": "string",
|
|
22598
|
+
"required": true,
|
|
22599
|
+
"description": "The target's RTMP address with its application: rtmp:// or rtmps://, a public host, no user or password."
|
|
22600
|
+
},
|
|
22601
|
+
{
|
|
22602
|
+
"name": "stream_key",
|
|
22603
|
+
"type": "string",
|
|
22604
|
+
"required": true,
|
|
22605
|
+
"description": "The key the target gave you for this stream, at most 512 characters without spaces; it is stored and never returned."
|
|
22606
|
+
}
|
|
22607
|
+
]
|
|
22608
|
+
}
|
|
22609
|
+
},
|
|
22610
|
+
{
|
|
22611
|
+
"resource": "media.streams.outputs",
|
|
22612
|
+
"method": "delete",
|
|
22613
|
+
"summary": "Remove a re-broadcast target",
|
|
22614
|
+
"description": "Stop re-broadcasting to a target and forget it: its connection is closed at once and its key is deleted. The stream, its recording and its other outputs are not touched. Deleting is not undone and the id is not reused; to send there again create a new output. Example: DELETE /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
|
|
22615
|
+
"http": "DELETE",
|
|
22616
|
+
"path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
|
|
22617
|
+
"streaming": "no",
|
|
22618
|
+
"pagination": false,
|
|
22619
|
+
"pathParams": [
|
|
22620
|
+
{
|
|
22621
|
+
"name": "stream_id",
|
|
22622
|
+
"sdkName": "stream_id",
|
|
22623
|
+
"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."
|
|
22624
|
+
},
|
|
22625
|
+
{
|
|
22626
|
+
"name": "output_id",
|
|
22627
|
+
"sdkName": "output_id",
|
|
22628
|
+
"description": "The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404."
|
|
22629
|
+
}
|
|
22630
|
+
],
|
|
22631
|
+
"query": []
|
|
22632
|
+
},
|
|
22633
|
+
{
|
|
22634
|
+
"resource": "media.streams.outputs",
|
|
22635
|
+
"method": "retrieve",
|
|
22636
|
+
"summary": "Read one re-broadcast target",
|
|
22637
|
+
"description": "Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.",
|
|
22638
|
+
"http": "GET",
|
|
22639
|
+
"path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
|
|
22640
|
+
"streaming": "no",
|
|
22641
|
+
"pagination": false,
|
|
22642
|
+
"pathParams": [
|
|
22643
|
+
{
|
|
22644
|
+
"name": "stream_id",
|
|
22645
|
+
"sdkName": "stream_id",
|
|
22646
|
+
"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."
|
|
22647
|
+
},
|
|
22648
|
+
{
|
|
22649
|
+
"name": "output_id",
|
|
22650
|
+
"sdkName": "output_id",
|
|
22651
|
+
"description": "The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404."
|
|
22652
|
+
}
|
|
22653
|
+
],
|
|
22654
|
+
"query": []
|
|
22655
|
+
},
|
|
22656
|
+
{
|
|
22657
|
+
"resource": "media.streams.outputs",
|
|
22658
|
+
"method": "update",
|
|
22659
|
+
"summary": "Change a re-broadcast target",
|
|
22660
|
+
"description": "Change the address or the key of an output, for example after the target gave you a new key or an errored output was refused for a bad one; send at least one of url and stream_key. An output that is running starts over with the new values: its connection is closed and opened again, and its status goes through starting again. Use streams.outputs.delete to stop sending to a target for good. Example: {\"stream_key\":\"live_new456\"}.",
|
|
22661
|
+
"http": "PATCH",
|
|
22662
|
+
"path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
|
|
22663
|
+
"streaming": "no",
|
|
22664
|
+
"pagination": false,
|
|
22665
|
+
"pathParams": [
|
|
22666
|
+
{
|
|
22667
|
+
"name": "stream_id",
|
|
22668
|
+
"sdkName": "stream_id",
|
|
22669
|
+
"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."
|
|
22670
|
+
},
|
|
22671
|
+
{
|
|
22672
|
+
"name": "output_id",
|
|
22673
|
+
"sdkName": "output_id",
|
|
22674
|
+
"description": "The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404."
|
|
22675
|
+
}
|
|
22676
|
+
],
|
|
22677
|
+
"query": [],
|
|
22678
|
+
"body": {
|
|
22679
|
+
"required": true,
|
|
22680
|
+
"fields": [
|
|
22681
|
+
{
|
|
22682
|
+
"name": "url",
|
|
22683
|
+
"type": "string",
|
|
22684
|
+
"required": false,
|
|
22685
|
+
"description": "The new RTMP address with its application."
|
|
22686
|
+
},
|
|
22687
|
+
{
|
|
22688
|
+
"name": "stream_key",
|
|
22689
|
+
"type": "string",
|
|
22690
|
+
"required": false,
|
|
22691
|
+
"description": "The new stream key; stored and never returned."
|
|
22692
|
+
}
|
|
22693
|
+
]
|
|
22694
|
+
}
|
|
22695
|
+
},
|
|
22696
|
+
{
|
|
22697
|
+
"resource": "media.streams.playbackToken",
|
|
22698
|
+
"method": "create",
|
|
22699
|
+
"summary": "Get the address and capability to play a stream live",
|
|
22700
|
+
"description": "Mint a playback capability for the stream: an address of its live HLS playlist that a browser player can open with no API key. Call it from your own server and hand the address to the page, so the API key never reaches the browser; the Praxis Kit LiveStreamPlayer takes it as playbackUrl. The stream must have playback.enabled set (or record automatically), otherwise nothing is kept to play and the answer is 409. The response carries {url, expires_at}: the token is valid for one hour, any number can be held at once, and it opens this stream's playlist and nothing else. The playlist shows the newest six segments of the broadcast in progress with PROGRAM-DATE-TIME on each, and ends (EXT-X-ENDLIST) when the stream is idle or disabled. Example: POST /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/playback-token with no body.",
|
|
22701
|
+
"http": "POST",
|
|
22702
|
+
"path": "/media/v1/streams/{stream_id}/playback-token",
|
|
22703
|
+
"streaming": "no",
|
|
22704
|
+
"pagination": false,
|
|
22705
|
+
"pathParams": [
|
|
22706
|
+
{
|
|
22707
|
+
"name": "stream_id",
|
|
22708
|
+
"sdkName": "stream_id",
|
|
22709
|
+
"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."
|
|
22710
|
+
}
|
|
22711
|
+
],
|
|
22712
|
+
"query": []
|
|
22713
|
+
},
|
|
22714
|
+
{
|
|
22715
|
+
"resource": "media.streams.resetToken",
|
|
22716
|
+
"method": "create",
|
|
22717
|
+
"summary": "Reset the push token of a stream",
|
|
22718
|
+
"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.",
|
|
22719
|
+
"http": "POST",
|
|
22720
|
+
"path": "/media/v1/streams/{stream_id}/reset-token",
|
|
22721
|
+
"streaming": "no",
|
|
22722
|
+
"pagination": false,
|
|
22723
|
+
"pathParams": [
|
|
22724
|
+
{
|
|
22725
|
+
"name": "stream_id",
|
|
22726
|
+
"sdkName": "stream_id",
|
|
22727
|
+
"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."
|
|
22728
|
+
}
|
|
22729
|
+
],
|
|
22730
|
+
"query": []
|
|
22731
|
+
},
|
|
22732
|
+
{
|
|
22733
|
+
"resource": "media.streams.subscribeToken",
|
|
22734
|
+
"method": "create",
|
|
22735
|
+
"summary": "Get the address and capability to subscribe to a stream's events",
|
|
22736
|
+
"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.",
|
|
22737
|
+
"http": "POST",
|
|
22738
|
+
"path": "/media/v1/streams/{stream_id}/subscribe-token",
|
|
22739
|
+
"streaming": "no",
|
|
22740
|
+
"pagination": false,
|
|
22741
|
+
"pathParams": [
|
|
22742
|
+
{
|
|
22743
|
+
"name": "stream_id",
|
|
22744
|
+
"sdkName": "stream_id",
|
|
22745
|
+
"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."
|
|
22746
|
+
}
|
|
22747
|
+
],
|
|
22748
|
+
"query": []
|
|
22749
|
+
},
|
|
21794
22750
|
{
|
|
21795
22751
|
"resource": "meta.docs",
|
|
21796
22752
|
"method": "search",
|
|
@@ -23264,6 +24220,7 @@ export const operations = [
|
|
|
23264
24220
|
"openai.responses",
|
|
23265
24221
|
"openai.videos",
|
|
23266
24222
|
"praxis.media.process",
|
|
24223
|
+
"praxis.transcriptions.stream",
|
|
23267
24224
|
"praxis.video.matting",
|
|
23268
24225
|
"typesafe.systemone",
|
|
23269
24226
|
"volcengine.music",
|
|
@@ -25226,7 +26183,7 @@ export const operations = [
|
|
|
25226
26183
|
"resource": "organization.notifications.letters",
|
|
25227
26184
|
"method": "list",
|
|
25228
26185
|
"summary": "List the letters addressed to you",
|
|
25229
|
-
"description": "The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5): the sender's display name
|
|
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.",
|
|
25230
26187
|
"http": "GET",
|
|
25231
26188
|
"path": "/organization/v1/notifications/letters",
|
|
25232
26189
|
"streaming": "no",
|
|
@@ -25243,6 +26200,12 @@ export const operations = [
|
|
|
25243
26200
|
"required": false,
|
|
25244
26201
|
"description": "Only unread letters, or only read ones; omit for both."
|
|
25245
26202
|
},
|
|
26203
|
+
{
|
|
26204
|
+
"name": "archived",
|
|
26205
|
+
"type": "boolean",
|
|
26206
|
+
"required": false,
|
|
26207
|
+
"description": "false (the default) hides archived letters; true lists only the archived ones."
|
|
26208
|
+
},
|
|
25246
26209
|
{
|
|
25247
26210
|
"name": "limit",
|
|
25248
26211
|
"type": "integer",
|
|
@@ -25257,6 +26220,70 @@ export const operations = [
|
|
|
25257
26220
|
}
|
|
25258
26221
|
]
|
|
25259
26222
|
},
|
|
26223
|
+
{
|
|
26224
|
+
"resource": "organization.notifications.letters",
|
|
26225
|
+
"method": "archive",
|
|
26226
|
+
"summary": "Archive one of your letters",
|
|
26227
|
+
"description": "Archive one letter addressed to you: it leaves the default letters list (ask for archived=true to see archived ones) and is marked read, with its bell notice. Repeating the call changes nothing and keeps the first archive time. A letter that is not in your mailbox in this organization, or does not exist, answers 404 the same way. Returns how many delivered letters you still have unread. No usage charge.",
|
|
26228
|
+
"http": "POST",
|
|
26229
|
+
"path": "/organization/v1/notifications/letters/{id}:archive",
|
|
26230
|
+
"streaming": "no",
|
|
26231
|
+
"pagination": false,
|
|
26232
|
+
"pathParams": [
|
|
26233
|
+
{
|
|
26234
|
+
"name": "id",
|
|
26235
|
+
"sdkName": "id",
|
|
26236
|
+
"description": "The letter's id, from the letters list."
|
|
26237
|
+
}
|
|
26238
|
+
],
|
|
26239
|
+
"query": []
|
|
26240
|
+
},
|
|
26241
|
+
{
|
|
26242
|
+
"resource": "organization.notifications.letters",
|
|
26243
|
+
"method": "read",
|
|
26244
|
+
"summary": "Mark one of your letters read",
|
|
26245
|
+
"description": "Mark one letter addressed to you as read, together with the bell notice it wrote, so the platform does not email it later as unread. The mailbox is the credential's own — an agent credential reads its own agent mailbox, never its owner's — and the request names only the letter. Repeating the call changes nothing and keeps the first read time. A letter that is not in your mailbox in this organization, or does not exist, answers 404 the same way. Returns how many delivered letters you still have unread. No usage charge.",
|
|
26246
|
+
"http": "POST",
|
|
26247
|
+
"path": "/organization/v1/notifications/letters/{id}:read",
|
|
26248
|
+
"streaming": "no",
|
|
26249
|
+
"pagination": false,
|
|
26250
|
+
"pathParams": [
|
|
26251
|
+
{
|
|
26252
|
+
"name": "id",
|
|
26253
|
+
"sdkName": "id",
|
|
26254
|
+
"description": "The letter's id, from the letters list."
|
|
26255
|
+
}
|
|
26256
|
+
],
|
|
26257
|
+
"query": []
|
|
26258
|
+
},
|
|
26259
|
+
{
|
|
26260
|
+
"resource": "organization.notifications.letters",
|
|
26261
|
+
"method": "readAll",
|
|
26262
|
+
"summary": "Mark all your letters read",
|
|
26263
|
+
"description": "Mark every delivered letter in your own mailbox in this organization as read, with their bell notices; give kind to read only letters of that kind. Nothing in another mailbox is touched. Letters still scheduled are not delivered yet and stay as they are. Returns how many delivered letters you still have unread. No usage charge.",
|
|
26264
|
+
"http": "POST",
|
|
26265
|
+
"path": "/organization/v1/notifications/letters:readAll",
|
|
26266
|
+
"streaming": "no",
|
|
26267
|
+
"pagination": false,
|
|
26268
|
+
"pathParams": [],
|
|
26269
|
+
"query": [],
|
|
26270
|
+
"body": {
|
|
26271
|
+
"required": false,
|
|
26272
|
+
"fields": [
|
|
26273
|
+
{
|
|
26274
|
+
"name": "kind",
|
|
26275
|
+
"type": "string",
|
|
26276
|
+
"enum": [
|
|
26277
|
+
"notice",
|
|
26278
|
+
"mention",
|
|
26279
|
+
"decision"
|
|
26280
|
+
],
|
|
26281
|
+
"required": false,
|
|
26282
|
+
"description": "Only letters of this kind; omit for all kinds."
|
|
26283
|
+
}
|
|
26284
|
+
]
|
|
26285
|
+
}
|
|
26286
|
+
},
|
|
25260
26287
|
{
|
|
25261
26288
|
"resource": "organization.notifications",
|
|
25262
26289
|
"method": "retrieveOrganizationDefault",
|
|
@@ -25321,7 +26348,7 @@ export const operations = [
|
|
|
25321
26348
|
"resource": "organization.notifications.preferences",
|
|
25322
26349
|
"method": "list",
|
|
25323
26350
|
"summary": "Your notification switches, and what they resolve to",
|
|
25324
|
-
"description": "This person's notification preferences in the organization behind the credential: their own per-category switches, the channels they unsubscribed from everywhere, the organization's layer (defaults, blocked channels, whether members may change their own switches, hidden categories), and for every offered channel the answer the five layers produce — which layer decided it (platform_mandatory, channel_opt_out, person, organization_default, platform_default).
|
|
26351
|
+
"description": "This person's notification preferences in the organization behind the credential: their own per-category switches, the channels they unsubscribed from everywhere, the organization's layer (defaults, blocked channels, whether members may change their own switches, hidden categories), and for every offered channel the answer the five layers produce — which layer decided it (platform_mandatory, channel_opt_out, person, organization_default, platform_default). Each catalog row also carries its severity (high/medium/low/none): it shapes the display only and never decides delivery (#4107). Read-only; no usage charge.",
|
|
25325
26352
|
"http": "GET",
|
|
25326
26353
|
"path": "/organization/v1/notifications/preferences",
|
|
25327
26354
|
"streaming": "no",
|
|
@@ -34129,7 +35156,7 @@ export const operations = [
|
|
|
34129
35156
|
"resource": "workforce.actors",
|
|
34130
35157
|
"method": "retrieve",
|
|
34131
35158
|
"summary": "Get the position chain of an actor",
|
|
34132
|
-
"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
|
|
35159
|
+
"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.",
|
|
34133
35160
|
"http": "GET",
|
|
34134
35161
|
"path": "/workforce/v1/actors/{actor}",
|
|
34135
35162
|
"streaming": "no",
|
|
@@ -34331,7 +35358,7 @@ export const operations = [
|
|
|
34331
35358
|
"resource": "workforce.departments",
|
|
34332
35359
|
"method": "create",
|
|
34333
35360
|
"summary": "Establish a department",
|
|
34334
|
-
"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
|
|
35361
|
+
"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\"}.",
|
|
34335
35362
|
"http": "POST",
|
|
34336
35363
|
"path": "/workforce/v1/departments",
|
|
34337
35364
|
"streaming": "no",
|
|
@@ -34366,7 +35393,7 @@ export const operations = [
|
|
|
34366
35393
|
"resource": "workforce.departments",
|
|
34367
35394
|
"method": "retrieve",
|
|
34368
35395
|
"summary": "Get a department",
|
|
34369
|
-
"description": "Reads one department with its head position id
|
|
35396
|
+
"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.",
|
|
34370
35397
|
"http": "GET",
|
|
34371
35398
|
"path": "/workforce/v1/departments/{id}",
|
|
34372
35399
|
"streaming": "no",
|
|
@@ -34424,8 +35451,8 @@ export const operations = [
|
|
|
34424
35451
|
{
|
|
34425
35452
|
"resource": "workforce.departments",
|
|
34426
35453
|
"method": "updateCharter",
|
|
34427
|
-
"summary": "Amend a department charter",
|
|
34428
|
-
"description": "
|
|
35454
|
+
"summary": "Amend a department charter (gone)",
|
|
35455
|
+
"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.",
|
|
34429
35456
|
"http": "PUT",
|
|
34430
35457
|
"path": "/workforce/v1/departments/{id}/charter",
|
|
34431
35458
|
"streaming": "no",
|
|
@@ -34434,27 +35461,10 @@ export const operations = [
|
|
|
34434
35461
|
{
|
|
34435
35462
|
"name": "id",
|
|
34436
35463
|
"sdkName": "id",
|
|
34437
|
-
"description": "Department id (dept_...) whose charter
|
|
35464
|
+
"description": "Department id (dept_...) whose charter used to change here."
|
|
34438
35465
|
}
|
|
34439
35466
|
],
|
|
34440
|
-
"query": []
|
|
34441
|
-
"body": {
|
|
34442
|
-
"required": true,
|
|
34443
|
-
"fields": [
|
|
34444
|
-
{
|
|
34445
|
-
"name": "text",
|
|
34446
|
-
"type": "string",
|
|
34447
|
-
"required": true,
|
|
34448
|
-
"description": "The full new charter text, at most 2000 characters; it replaces the old text."
|
|
34449
|
-
},
|
|
34450
|
-
{
|
|
34451
|
-
"name": "expected_revision",
|
|
34452
|
-
"type": "integer",
|
|
34453
|
-
"required": true,
|
|
34454
|
-
"description": "The charter.revision you last read, or 0 when the department has no charter yet; a mismatch returns REVISION_CONFLICT."
|
|
34455
|
-
}
|
|
34456
|
-
]
|
|
34457
|
-
}
|
|
35467
|
+
"query": []
|
|
34458
35468
|
},
|
|
34459
35469
|
{
|
|
34460
35470
|
"resource": "workforce.departments.dissolve",
|
|
@@ -35794,7 +36804,7 @@ export const operations = [
|
|
|
35794
36804
|
"resource": "workforce.reconcile.status",
|
|
35795
36805
|
"method": "list",
|
|
35796
36806
|
"summary": "Read reconcile status",
|
|
35797
|
-
"description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human or
|
|
36807
|
+
"description": "Reads the reconciler's last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block's state (ready, pending, failed, waiting_human, paused or not_applicable), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /workforce/v1/reconcile/status?actor=agent:agent_123.",
|
|
35798
36808
|
"http": "GET",
|
|
35799
36809
|
"path": "/workforce/v1/reconcile/status",
|
|
35800
36810
|
"streaming": "no",
|