@deepraxis/sdk 0.1.1-dev.32f52b5 → 0.1.1-dev.339ef7d

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.
@@ -2928,6 +2928,40 @@ export const operations = [
2928
2928
  ]
2929
2929
  }
2930
2930
  },
2931
+ {
2932
+ "resource": "agent.sessions",
2933
+ "method": "retrievePromptRevs",
2934
+ "summary": "Read one turn's platform prompt Revs",
2935
+ "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.",
2936
+ "http": "GET",
2937
+ "path": "/agent/v1/sessions/{session_id}/prompt-revs",
2938
+ "streaming": "no",
2939
+ "pagination": false,
2940
+ "pathParams": [
2941
+ {
2942
+ "name": "session_id",
2943
+ "sdkName": "session_id",
2944
+ "description": "Session id from session creation or listing, or the own face's session name for a main session."
2945
+ }
2946
+ ],
2947
+ "query": [
2948
+ {
2949
+ "name": "run_id",
2950
+ "type": "string",
2951
+ "required": false,
2952
+ "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."
2953
+ },
2954
+ {
2955
+ "name": "acknowledge_wake",
2956
+ "type": "string",
2957
+ "enum": [
2958
+ "true"
2959
+ ],
2960
+ "required": true,
2961
+ "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."
2962
+ }
2963
+ ]
2964
+ },
2931
2965
  {
2932
2966
  "resource": "agent.sessions.requests",
2933
2967
  "method": "list",
@@ -8235,6 +8269,12 @@ export const operations = [
8235
8269
  "type": "string",
8236
8270
  "required": false,
8237
8271
  "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."
8272
+ },
8273
+ {
8274
+ "name": "library",
8275
+ "type": "boolean",
8276
+ "required": false,
8277
+ "description": "Send true to list only canvases that have been published as libraries; omit to list all canvases. Keep the same filter when following next_cursor."
8238
8278
  }
8239
8279
  ]
8240
8280
  },
@@ -8378,6 +8418,114 @@ export const operations = [
8378
8418
  }
8379
8419
  ]
8380
8420
  },
8421
+ {
8422
+ "resource": "canvas.canvases.imports",
8423
+ "method": "create",
8424
+ "summary": "Import canvas library",
8425
+ "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.",
8426
+ "http": "POST",
8427
+ "path": "/canvas/v1/canvases/{canvas_id}/imports",
8428
+ "streaming": "no",
8429
+ "pagination": false,
8430
+ "pathParams": [
8431
+ {
8432
+ "name": "canvas_id",
8433
+ "sdkName": "canvas_id",
8434
+ "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."
8435
+ }
8436
+ ],
8437
+ "query": [],
8438
+ "body": {
8439
+ "required": true,
8440
+ "fields": [
8441
+ {
8442
+ "name": "alias",
8443
+ "type": "string",
8444
+ "required": true,
8445
+ "description": "Alias to import under, 1-32 characters, a lower-case letter then lower-case letters, digits or hyphens."
8446
+ },
8447
+ {
8448
+ "name": "library",
8449
+ "type": "string",
8450
+ "required": true,
8451
+ "description": "Canvas id of the library, from libraries.list; it must belong to your organization and have been published."
8452
+ },
8453
+ {
8454
+ "name": "version",
8455
+ "type": "string",
8456
+ "required": false,
8457
+ "description": "Library version to use, from library_versions; the latest when omitted."
8458
+ },
8459
+ {
8460
+ "name": "expected_version",
8461
+ "type": "string",
8462
+ "required": false,
8463
+ "description": "Current canvas version from retrieve; the import is refused with REVISION_CONFLICT if the canvas has moved on. Omission imports whatever is current."
8464
+ }
8465
+ ]
8466
+ }
8467
+ },
8468
+ {
8469
+ "resource": "canvas.canvases.imports",
8470
+ "method": "delete",
8471
+ "summary": "Remove canvas library import",
8472
+ "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.",
8473
+ "http": "DELETE",
8474
+ "path": "/canvas/v1/canvases/{canvas_id}/imports/{alias}",
8475
+ "streaming": "no",
8476
+ "pagination": false,
8477
+ "pathParams": [
8478
+ {
8479
+ "name": "canvas_id",
8480
+ "sdkName": "canvas_id",
8481
+ "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."
8482
+ },
8483
+ {
8484
+ "name": "alias",
8485
+ "sdkName": "alias",
8486
+ "description": "The alias the library was imported under, as shown in imports of retrieve."
8487
+ }
8488
+ ],
8489
+ "query": [
8490
+ {
8491
+ "name": "expected_version",
8492
+ "type": "string",
8493
+ "required": false,
8494
+ "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."
8495
+ }
8496
+ ]
8497
+ },
8498
+ {
8499
+ "resource": "canvas.canvases.libraryVersions",
8500
+ "method": "list",
8501
+ "summary": "List library versions",
8502
+ "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.",
8503
+ "http": "GET",
8504
+ "path": "/canvas/v1/canvases/{canvas_id}/library_versions",
8505
+ "streaming": "no",
8506
+ "pagination": false,
8507
+ "pathParams": [
8508
+ {
8509
+ "name": "canvas_id",
8510
+ "sdkName": "canvas_id",
8511
+ "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."
8512
+ }
8513
+ ],
8514
+ "query": [
8515
+ {
8516
+ "name": "limit",
8517
+ "type": "integer",
8518
+ "required": false,
8519
+ "description": "Maximum library versions to return, from 1 to 100 inclusive; omission uses 30."
8520
+ },
8521
+ {
8522
+ "name": "cursor",
8523
+ "type": "string",
8524
+ "required": false,
8525
+ "description": "Copy next_cursor from the preceding page to continue toward older library versions; omit for the first page."
8526
+ }
8527
+ ]
8528
+ },
8381
8529
  {
8382
8530
  "resource": "canvas.canvases.nodes",
8383
8531
  "method": "list",
@@ -8494,6 +8642,41 @@ export const operations = [
8494
8642
  ]
8495
8643
  }
8496
8644
  },
8645
+ {
8646
+ "resource": "canvas.canvases",
8647
+ "method": "publish",
8648
+ "summary": "Publish canvas library",
8649
+ "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.",
8650
+ "http": "POST",
8651
+ "path": "/canvas/v1/canvases/{canvas_id}:publish",
8652
+ "streaming": "no",
8653
+ "pagination": false,
8654
+ "pathParams": [
8655
+ {
8656
+ "name": "canvas_id",
8657
+ "sdkName": "canvas_id",
8658
+ "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."
8659
+ }
8660
+ ],
8661
+ "query": [],
8662
+ "body": {
8663
+ "required": false,
8664
+ "fields": [
8665
+ {
8666
+ "name": "description",
8667
+ "type": "string",
8668
+ "required": false,
8669
+ "description": "Release note shown in library_versions, at most 2000 characters; empty when omitted."
8670
+ },
8671
+ {
8672
+ "name": "expected_version",
8673
+ "type": "string",
8674
+ "required": false,
8675
+ "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."
8676
+ }
8677
+ ]
8678
+ }
8679
+ },
8497
8680
  {
8498
8681
  "resource": "canvas.canvases",
8499
8682
  "method": "restore",
@@ -8629,6 +8812,37 @@ export const operations = [
8629
8812
  ]
8630
8813
  }
8631
8814
  },
8815
+ {
8816
+ "resource": "canvas.libraries",
8817
+ "method": "list",
8818
+ "summary": "List libraries",
8819
+ "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.",
8820
+ "http": "GET",
8821
+ "path": "/canvas/v1/libraries",
8822
+ "streaming": "no",
8823
+ "pagination": true,
8824
+ "pathParams": [],
8825
+ "query": [
8826
+ {
8827
+ "name": "query",
8828
+ "type": "string",
8829
+ "required": false,
8830
+ "description": "Keep only libraries whose name contains this text, ignoring case; omit to list every library."
8831
+ },
8832
+ {
8833
+ "name": "limit",
8834
+ "type": "integer",
8835
+ "required": false,
8836
+ "description": "Maximum libraries to return per page, from 1 to 100; defaults to 50 when omitted."
8837
+ },
8838
+ {
8839
+ "name": "cursor",
8840
+ "type": "string",
8841
+ "required": false,
8842
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
8843
+ }
8844
+ ]
8845
+ },
8632
8846
  {
8633
8847
  "resource": "content.contents",
8634
8848
  "method": "list",
@@ -10638,7 +10852,7 @@ export const operations = [
10638
10852
  "resource": "customer.accessTokens",
10639
10853
  "method": "create",
10640
10854
  "summary": "Exchange a grant code or publishable key",
10641
- "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.",
10855
+ "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.",
10642
10856
  "http": "POST",
10643
10857
  "path": "/customer/v1/access_tokens",
10644
10858
  "streaming": "no",
@@ -10995,7 +11209,7 @@ export const operations = [
10995
11209
  "resource": "customer.publishableKeys",
10996
11210
  "method": "create",
10997
11211
  "summary": "Create a publishable key",
10998
- "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.",
11212
+ "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 and daily_session_cap are optional limits of the key itself, both 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); change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.",
10999
11213
  "http": "POST",
11000
11214
  "path": "/customer/v1/publishable_keys",
11001
11215
  "streaming": "no",
@@ -11017,6 +11231,18 @@ export const operations = [
11017
11231
  "itemType": "object",
11018
11232
  "required": true,
11019
11233
  "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."
11234
+ },
11235
+ {
11236
+ "name": "anon_rate_per_min",
11237
+ "type": "integer",
11238
+ "required": false,
11239
+ "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."
11240
+ },
11241
+ {
11242
+ "name": "daily_session_cap",
11243
+ "type": "integer",
11244
+ "required": false,
11245
+ "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."
11020
11246
  }
11021
11247
  ]
11022
11248
  }
@@ -11039,6 +11265,47 @@ export const operations = [
11039
11265
  ],
11040
11266
  "query": []
11041
11267
  },
11268
+ {
11269
+ "resource": "customer.publishableKeys",
11270
+ "method": "update",
11271
+ "summary": "Update a publishable key",
11272
+ "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 or daily_session_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), and daily_session_cap caps the new anonymous visitors it admits per UTC day; 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.",
11273
+ "http": "PATCH",
11274
+ "path": "/customer/v1/publishable_keys/{key_id}",
11275
+ "streaming": "no",
11276
+ "pagination": false,
11277
+ "pathParams": [
11278
+ {
11279
+ "name": "key_id",
11280
+ "sdkName": "key_id",
11281
+ "description": "Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value."
11282
+ }
11283
+ ],
11284
+ "query": [],
11285
+ "body": {
11286
+ "required": true,
11287
+ "fields": [
11288
+ {
11289
+ "name": "name",
11290
+ "type": "string",
11291
+ "required": false,
11292
+ "description": "New label for the key, 1 to 64 characters."
11293
+ },
11294
+ {
11295
+ "name": "anon_rate_per_min",
11296
+ "type": "integer",
11297
+ "required": false,
11298
+ "description": "Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit."
11299
+ },
11300
+ {
11301
+ "name": "daily_session_cap",
11302
+ "type": "integer",
11303
+ "required": false,
11304
+ "description": "Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit."
11305
+ }
11306
+ ]
11307
+ }
11308
+ },
11042
11309
  {
11043
11310
  "resource": "cut.exports",
11044
11311
  "method": "retrieve",
@@ -19838,6 +20105,12 @@ export const operations = [
19838
20105
  "required": false,
19839
20106
  "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."
19840
20107
  },
20108
+ {
20109
+ "name": "live_stream_id",
20110
+ "type": "string",
20111
+ "required": false,
20112
+ "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."
20113
+ },
19841
20114
  {
19842
20115
  "name": "stack",
19843
20116
  "type": "boolean",
@@ -21852,59 +22125,658 @@ export const operations = [
21852
22125
  }
21853
22126
  },
21854
22127
  {
21855
- "resource": "meta.docs",
21856
- "method": "search",
21857
- "summary": "Search platform documentation",
21858
- "description": "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.",
22128
+ "resource": "media.pipelines",
22129
+ "method": "list",
22130
+ "summary": "List pipelines",
22131
+ "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.",
21859
22132
  "http": "GET",
21860
- "path": "/meta/v1/docs/search",
22133
+ "path": "/media/v1/pipelines",
21861
22134
  "streaming": "no",
21862
22135
  "pagination": false,
21863
22136
  "pathParams": [],
21864
22137
  "query": [
21865
- {
21866
- "name": "q",
21867
- "type": "string",
21868
- "required": true,
21869
- "description": "Keywords describing the syntax or guide needed, for example export or workflow."
21870
- },
21871
22138
  {
21872
22139
  "name": "limit",
21873
22140
  "type": "integer",
21874
22141
  "required": false,
21875
- "description": "Maximum number of matching pages returned; integer 1–50, default 20."
22142
+ "description": "How many pipelines one page holds, 1 to 100; default 20."
21876
22143
  },
21877
22144
  {
21878
- "name": "lang",
22145
+ "name": "starting_after",
21879
22146
  "type": "string",
21880
- "enum": [
21881
- "zh",
21882
- "en"
21883
- ],
21884
22147
  "required": false,
21885
- "description": "Documentation language: zh for Chinese (default), en for English."
22148
+ "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."
21886
22149
  }
21887
22150
  ]
21888
22151
  },
21889
22152
  {
21890
- "resource": "meta.docs",
21891
- "method": "retrieve",
21892
- "summary": "Read documentation Markdown",
21893
- "description": "Read a platform guide or reference before implementing an unfamiliar capability. Public; no API key required. Take path from praxis.meta.docs.search, or use developers/automation/guides/write-workflow. Append #heading-id to path to read only that section, including its subsections. Encode the hash as %23 over HTTP; SDK callers pass it in the path string. lang defaults to zh; en selects the English page. Unknown pages or anchors return DOC_NOT_FOUND; search again for a valid path.",
21894
- "http": "GET",
21895
- "path": "/meta/v1/docs/{path}",
22153
+ "resource": "media.pipelines",
22154
+ "method": "create",
22155
+ "summary": "Create a pipeline",
22156
+ "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}]}.",
22157
+ "http": "POST",
22158
+ "path": "/media/v1/pipelines",
21896
22159
  "streaming": "no",
21897
22160
  "pagination": false,
21898
- "pathParams": [
21899
- {
21900
- "name": "path",
21901
- "sdkName": "path",
21902
- "description": "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section."
21903
- }
21904
- ],
21905
- "query": [
21906
- {
21907
- "name": "lang",
22161
+ "pathParams": [],
22162
+ "query": [],
22163
+ "body": {
22164
+ "required": true,
22165
+ "fields": [
22166
+ {
22167
+ "name": "name",
22168
+ "type": "string",
22169
+ "required": true,
22170
+ "description": "The pipeline's name."
22171
+ },
22172
+ {
22173
+ "name": "elements",
22174
+ "type": "array",
22175
+ "itemType": "object",
22176
+ "required": false,
22177
+ "description": "The ordered processors and sinks; empty by default."
22178
+ },
22179
+ {
22180
+ "name": "alert_rules",
22181
+ "type": "array",
22182
+ "itemType": "object",
22183
+ "required": false,
22184
+ "description": "The alert rules; empty by default."
22185
+ }
22186
+ ]
22187
+ }
22188
+ },
22189
+ {
22190
+ "resource": "media.pipelines",
22191
+ "method": "delete",
22192
+ "summary": "Delete a pipeline",
22193
+ "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.",
22194
+ "http": "DELETE",
22195
+ "path": "/media/v1/pipelines/{pipeline_id}",
22196
+ "streaming": "no",
22197
+ "pagination": false,
22198
+ "pathParams": [
22199
+ {
22200
+ "name": "pipeline_id",
22201
+ "sdkName": "pipeline_id",
22202
+ "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."
22203
+ }
22204
+ ],
22205
+ "query": []
22206
+ },
22207
+ {
22208
+ "resource": "media.pipelines",
22209
+ "method": "retrieve",
22210
+ "summary": "Retrieve a pipeline",
22211
+ "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.",
22212
+ "http": "GET",
22213
+ "path": "/media/v1/pipelines/{pipeline_id}",
22214
+ "streaming": "no",
22215
+ "pagination": false,
22216
+ "pathParams": [
22217
+ {
22218
+ "name": "pipeline_id",
22219
+ "sdkName": "pipeline_id",
22220
+ "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."
22221
+ }
22222
+ ],
22223
+ "query": []
22224
+ },
22225
+ {
22226
+ "resource": "media.pipelines",
22227
+ "method": "update",
22228
+ "summary": "Update a pipeline",
22229
+ "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\"}]}.",
22230
+ "http": "PATCH",
22231
+ "path": "/media/v1/pipelines/{pipeline_id}",
22232
+ "streaming": "no",
22233
+ "pagination": false,
22234
+ "pathParams": [
22235
+ {
22236
+ "name": "pipeline_id",
22237
+ "sdkName": "pipeline_id",
22238
+ "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."
22239
+ }
22240
+ ],
22241
+ "query": [],
22242
+ "body": {
22243
+ "required": true,
22244
+ "fields": [
22245
+ {
22246
+ "name": "name",
22247
+ "type": "string",
22248
+ "required": false,
22249
+ "description": "The new name."
22250
+ },
22251
+ {
22252
+ "name": "elements",
22253
+ "type": "array",
22254
+ "itemType": "object",
22255
+ "required": false,
22256
+ "description": "The new element list"
22257
+ },
22258
+ {
22259
+ "name": "alert_rules",
22260
+ "type": "array",
22261
+ "itemType": "object",
22262
+ "required": false,
22263
+ "description": "The new rules"
22264
+ }
22265
+ ]
22266
+ }
22267
+ },
22268
+ {
22269
+ "resource": "media.streams",
22270
+ "method": "list",
22271
+ "summary": "List streams",
22272
+ "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.",
22273
+ "http": "GET",
22274
+ "path": "/media/v1/streams",
22275
+ "streaming": "no",
22276
+ "pagination": false,
22277
+ "pathParams": [],
22278
+ "query": [
22279
+ {
22280
+ "name": "limit",
22281
+ "type": "integer",
22282
+ "required": false,
22283
+ "description": "How many streams one page holds, 1 to 100; default 20."
22284
+ },
22285
+ {
22286
+ "name": "starting_after",
22287
+ "type": "string",
22288
+ "required": false,
22289
+ "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."
22290
+ }
22291
+ ]
22292
+ },
22293
+ {
22294
+ "resource": "media.streams",
22295
+ "method": "create",
22296
+ "summary": "Create a stream",
22297
+ "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\"}}.",
22298
+ "http": "POST",
22299
+ "path": "/media/v1/streams",
22300
+ "streaming": "no",
22301
+ "pagination": false,
22302
+ "pathParams": [],
22303
+ "query": [],
22304
+ "body": {
22305
+ "required": true,
22306
+ "fields": [
22307
+ {
22308
+ "name": "input",
22309
+ "type": "object",
22310
+ "required": true,
22311
+ "description": "Where the stream's media comes from."
22312
+ },
22313
+ {
22314
+ "name": "reconnect_window_s",
22315
+ "type": "integer",
22316
+ "required": false,
22317
+ "description": "How many seconds a dropped source may take to come back and continue the same broadcast and recording; default 60."
22318
+ },
22319
+ {
22320
+ "name": "max_continuous_duration_s",
22321
+ "type": "integer",
22322
+ "required": false,
22323
+ "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)."
22324
+ },
22325
+ {
22326
+ "name": "recording",
22327
+ "type": "object",
22328
+ "required": false,
22329
+ "description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
22330
+ },
22331
+ {
22332
+ "name": "playback",
22333
+ "type": "object",
22334
+ "required": false,
22335
+ "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."
22336
+ },
22337
+ {
22338
+ "name": "pipeline_id",
22339
+ "type": "string",
22340
+ "required": false,
22341
+ "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."
22342
+ }
22343
+ ]
22344
+ }
22345
+ },
22346
+ {
22347
+ "resource": "media.streams",
22348
+ "method": "delete",
22349
+ "summary": "Delete a stream",
22350
+ "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.",
22351
+ "http": "DELETE",
22352
+ "path": "/media/v1/streams/{stream_id}",
22353
+ "streaming": "no",
22354
+ "pagination": false,
22355
+ "pathParams": [
22356
+ {
22357
+ "name": "stream_id",
22358
+ "sdkName": "stream_id",
22359
+ "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."
22360
+ }
22361
+ ],
22362
+ "query": []
22363
+ },
22364
+ {
22365
+ "resource": "media.streams",
22366
+ "method": "retrieve",
22367
+ "summary": "Retrieve a stream",
22368
+ "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.",
22369
+ "http": "GET",
22370
+ "path": "/media/v1/streams/{stream_id}",
22371
+ "streaming": "no",
22372
+ "pagination": false,
22373
+ "pathParams": [
22374
+ {
22375
+ "name": "stream_id",
22376
+ "sdkName": "stream_id",
22377
+ "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."
22378
+ }
22379
+ ],
22380
+ "query": []
22381
+ },
22382
+ {
22383
+ "resource": "media.streams",
22384
+ "method": "update",
22385
+ "summary": "Update a stream",
22386
+ "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\"}}.",
22387
+ "http": "PATCH",
22388
+ "path": "/media/v1/streams/{stream_id}",
22389
+ "streaming": "no",
22390
+ "pagination": false,
22391
+ "pathParams": [
22392
+ {
22393
+ "name": "stream_id",
22394
+ "sdkName": "stream_id",
22395
+ "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."
22396
+ }
22397
+ ],
22398
+ "query": [],
22399
+ "body": {
22400
+ "required": true,
22401
+ "fields": [
22402
+ {
22403
+ "name": "input",
22404
+ "type": "object",
22405
+ "required": false,
22406
+ "description": "Where the stream's media comes from."
22407
+ },
22408
+ {
22409
+ "name": "reconnect_window_s",
22410
+ "type": "integer",
22411
+ "required": false,
22412
+ "description": "The new reconnect window in seconds, 0 to 1800."
22413
+ },
22414
+ {
22415
+ "name": "max_continuous_duration_s",
22416
+ "type": "integer",
22417
+ "required": false,
22418
+ "description": "The new maximum continuous duration in seconds, 60 to 43200."
22419
+ },
22420
+ {
22421
+ "name": "recording",
22422
+ "type": "object",
22423
+ "required": false,
22424
+ "description": "What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast."
22425
+ },
22426
+ {
22427
+ "name": "playback",
22428
+ "type": "object",
22429
+ "required": false,
22430
+ "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."
22431
+ },
22432
+ {
22433
+ "name": "pipeline_id",
22434
+ "type": "string",
22435
+ "required": false,
22436
+ "description": "The new pipeline id, or null to detach the pipeline."
22437
+ }
22438
+ ]
22439
+ }
22440
+ },
22441
+ {
22442
+ "resource": "media.streams.disable",
22443
+ "method": "create",
22444
+ "summary": "Disable a stream",
22445
+ "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.",
22446
+ "http": "POST",
22447
+ "path": "/media/v1/streams/{stream_id}/disable",
22448
+ "streaming": "no",
22449
+ "pagination": false,
22450
+ "pathParams": [
22451
+ {
22452
+ "name": "stream_id",
22453
+ "sdkName": "stream_id",
22454
+ "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."
22455
+ }
22456
+ ],
22457
+ "query": []
22458
+ },
22459
+ {
22460
+ "resource": "media.streams.enable",
22461
+ "method": "create",
22462
+ "summary": "Enable a stream",
22463
+ "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.",
22464
+ "http": "POST",
22465
+ "path": "/media/v1/streams/{stream_id}/enable",
22466
+ "streaming": "no",
22467
+ "pagination": false,
22468
+ "pathParams": [
22469
+ {
22470
+ "name": "stream_id",
22471
+ "sdkName": "stream_id",
22472
+ "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."
22473
+ }
22474
+ ],
22475
+ "query": []
22476
+ },
22477
+ {
22478
+ "resource": "media.streams.events",
22479
+ "method": "list",
22480
+ "summary": "List the events of a stream",
22481
+ "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.",
22482
+ "http": "GET",
22483
+ "path": "/media/v1/streams/{stream_id}/events",
22484
+ "streaming": "no",
22485
+ "pagination": false,
22486
+ "pathParams": [
22487
+ {
22488
+ "name": "stream_id",
22489
+ "sdkName": "stream_id",
22490
+ "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."
22491
+ }
22492
+ ],
22493
+ "query": [
22494
+ {
22495
+ "name": "after",
22496
+ "type": "integer",
22497
+ "required": false,
22498
+ "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."
22499
+ },
22500
+ {
22501
+ "name": "limit",
22502
+ "type": "integer",
22503
+ "required": false,
22504
+ "description": "How many events one page holds, 1 to 100; default 100."
22505
+ }
22506
+ ]
22507
+ },
22508
+ {
22509
+ "resource": "media.streams",
22510
+ "method": "retrievePlaylist",
22511
+ "summary": "Read the live HLS playlist of a stream",
22512
+ "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.",
22513
+ "http": "GET",
22514
+ "path": "/media/v1/streams/{stream_id}/live.m3u8",
22515
+ "streaming": "no",
22516
+ "pagination": false,
22517
+ "pathParams": [
22518
+ {
22519
+ "name": "stream_id",
22520
+ "sdkName": "stream_id",
22521
+ "description": "The stream's id, as in the address streams.playbackToken returned."
22522
+ }
22523
+ ],
22524
+ "query": [
22525
+ {
22526
+ "name": "token",
22527
+ "type": "string",
22528
+ "required": true,
22529
+ "description": "The playback token from the address streams.playbackToken returned; an hour of life."
22530
+ }
22531
+ ]
22532
+ },
22533
+ {
22534
+ "resource": "media.streams.outputs",
22535
+ "method": "list",
22536
+ "summary": "List a stream's re-broadcast targets",
22537
+ "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.",
22538
+ "http": "GET",
22539
+ "path": "/media/v1/streams/{stream_id}/outputs",
22540
+ "streaming": "no",
22541
+ "pagination": false,
22542
+ "pathParams": [
22543
+ {
22544
+ "name": "stream_id",
22545
+ "sdkName": "stream_id",
22546
+ "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."
22547
+ }
22548
+ ],
22549
+ "query": []
22550
+ },
22551
+ {
22552
+ "resource": "media.streams.outputs",
22553
+ "method": "create",
22554
+ "summary": "Add a re-broadcast target to a stream",
22555
+ "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\"}.",
22556
+ "http": "POST",
22557
+ "path": "/media/v1/streams/{stream_id}/outputs",
22558
+ "streaming": "no",
22559
+ "pagination": false,
22560
+ "pathParams": [
22561
+ {
22562
+ "name": "stream_id",
22563
+ "sdkName": "stream_id",
22564
+ "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."
22565
+ }
22566
+ ],
22567
+ "query": [],
22568
+ "body": {
22569
+ "required": true,
22570
+ "fields": [
22571
+ {
22572
+ "name": "url",
22573
+ "type": "string",
22574
+ "required": true,
22575
+ "description": "The target's RTMP address with its application: rtmp:// or rtmps://, a public host, no user or password."
22576
+ },
22577
+ {
22578
+ "name": "stream_key",
22579
+ "type": "string",
22580
+ "required": true,
22581
+ "description": "The key the target gave you for this stream, at most 512 characters without spaces; it is stored and never returned."
22582
+ }
22583
+ ]
22584
+ }
22585
+ },
22586
+ {
22587
+ "resource": "media.streams.outputs",
22588
+ "method": "delete",
22589
+ "summary": "Remove a re-broadcast target",
22590
+ "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.",
22591
+ "http": "DELETE",
22592
+ "path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
22593
+ "streaming": "no",
22594
+ "pagination": false,
22595
+ "pathParams": [
22596
+ {
22597
+ "name": "stream_id",
22598
+ "sdkName": "stream_id",
22599
+ "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."
22600
+ },
22601
+ {
22602
+ "name": "output_id",
22603
+ "sdkName": "output_id",
22604
+ "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."
22605
+ }
22606
+ ],
22607
+ "query": []
22608
+ },
22609
+ {
22610
+ "resource": "media.streams.outputs",
22611
+ "method": "retrieve",
22612
+ "summary": "Read one re-broadcast target",
22613
+ "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.",
22614
+ "http": "GET",
22615
+ "path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
22616
+ "streaming": "no",
22617
+ "pagination": false,
22618
+ "pathParams": [
22619
+ {
22620
+ "name": "stream_id",
22621
+ "sdkName": "stream_id",
22622
+ "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."
22623
+ },
22624
+ {
22625
+ "name": "output_id",
22626
+ "sdkName": "output_id",
22627
+ "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."
22628
+ }
22629
+ ],
22630
+ "query": []
22631
+ },
22632
+ {
22633
+ "resource": "media.streams.outputs",
22634
+ "method": "update",
22635
+ "summary": "Change a re-broadcast target",
22636
+ "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\"}.",
22637
+ "http": "PATCH",
22638
+ "path": "/media/v1/streams/{stream_id}/outputs/{output_id}",
22639
+ "streaming": "no",
22640
+ "pagination": false,
22641
+ "pathParams": [
22642
+ {
22643
+ "name": "stream_id",
22644
+ "sdkName": "stream_id",
22645
+ "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."
22646
+ },
22647
+ {
22648
+ "name": "output_id",
22649
+ "sdkName": "output_id",
22650
+ "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."
22651
+ }
22652
+ ],
22653
+ "query": [],
22654
+ "body": {
22655
+ "required": true,
22656
+ "fields": [
22657
+ {
22658
+ "name": "url",
22659
+ "type": "string",
22660
+ "required": false,
22661
+ "description": "The new RTMP address with its application."
22662
+ },
22663
+ {
22664
+ "name": "stream_key",
22665
+ "type": "string",
22666
+ "required": false,
22667
+ "description": "The new stream key; stored and never returned."
22668
+ }
22669
+ ]
22670
+ }
22671
+ },
22672
+ {
22673
+ "resource": "media.streams.playbackToken",
22674
+ "method": "create",
22675
+ "summary": "Get the address and capability to play a stream live",
22676
+ "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.",
22677
+ "http": "POST",
22678
+ "path": "/media/v1/streams/{stream_id}/playback-token",
22679
+ "streaming": "no",
22680
+ "pagination": false,
22681
+ "pathParams": [
22682
+ {
22683
+ "name": "stream_id",
22684
+ "sdkName": "stream_id",
22685
+ "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."
22686
+ }
22687
+ ],
22688
+ "query": []
22689
+ },
22690
+ {
22691
+ "resource": "media.streams.resetToken",
22692
+ "method": "create",
22693
+ "summary": "Reset the push token of a stream",
22694
+ "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.",
22695
+ "http": "POST",
22696
+ "path": "/media/v1/streams/{stream_id}/reset-token",
22697
+ "streaming": "no",
22698
+ "pagination": false,
22699
+ "pathParams": [
22700
+ {
22701
+ "name": "stream_id",
22702
+ "sdkName": "stream_id",
22703
+ "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."
22704
+ }
22705
+ ],
22706
+ "query": []
22707
+ },
22708
+ {
22709
+ "resource": "media.streams.subscribeToken",
22710
+ "method": "create",
22711
+ "summary": "Get the address and capability to subscribe to a stream's events",
22712
+ "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.",
22713
+ "http": "POST",
22714
+ "path": "/media/v1/streams/{stream_id}/subscribe-token",
22715
+ "streaming": "no",
22716
+ "pagination": false,
22717
+ "pathParams": [
22718
+ {
22719
+ "name": "stream_id",
22720
+ "sdkName": "stream_id",
22721
+ "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."
22722
+ }
22723
+ ],
22724
+ "query": []
22725
+ },
22726
+ {
22727
+ "resource": "meta.docs",
22728
+ "method": "search",
22729
+ "summary": "Search platform documentation",
22730
+ "description": "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.",
22731
+ "http": "GET",
22732
+ "path": "/meta/v1/docs/search",
22733
+ "streaming": "no",
22734
+ "pagination": false,
22735
+ "pathParams": [],
22736
+ "query": [
22737
+ {
22738
+ "name": "q",
22739
+ "type": "string",
22740
+ "required": true,
22741
+ "description": "Keywords describing the syntax or guide needed, for example export or workflow."
22742
+ },
22743
+ {
22744
+ "name": "limit",
22745
+ "type": "integer",
22746
+ "required": false,
22747
+ "description": "Maximum number of matching pages returned; integer 1–50, default 20."
22748
+ },
22749
+ {
22750
+ "name": "lang",
22751
+ "type": "string",
22752
+ "enum": [
22753
+ "zh",
22754
+ "en"
22755
+ ],
22756
+ "required": false,
22757
+ "description": "Documentation language: zh for Chinese (default), en for English."
22758
+ }
22759
+ ]
22760
+ },
22761
+ {
22762
+ "resource": "meta.docs",
22763
+ "method": "retrieve",
22764
+ "summary": "Read documentation Markdown",
22765
+ "description": "Read a platform guide or reference before implementing an unfamiliar capability. Public; no API key required. Take path from praxis.meta.docs.search, or use developers/automation/guides/write-workflow. Append #heading-id to path to read only that section, including its subsections. Encode the hash as %23 over HTTP; SDK callers pass it in the path string. lang defaults to zh; en selects the English page. Unknown pages or anchors return DOC_NOT_FOUND; search again for a valid path.",
22766
+ "http": "GET",
22767
+ "path": "/meta/v1/docs/{path}",
22768
+ "streaming": "no",
22769
+ "pagination": false,
22770
+ "pathParams": [
22771
+ {
22772
+ "name": "path",
22773
+ "sdkName": "path",
22774
+ "description": "Slash-separated documentation path from docs.search; optionally append #heading-id to select a section."
22775
+ }
22776
+ ],
22777
+ "query": [
22778
+ {
22779
+ "name": "lang",
21908
22780
  "type": "string",
21909
22781
  "enum": [
21910
22782
  "zh",
@@ -34260,7 +35132,7 @@ export const operations = [
34260
35132
  "resource": "workforce.actors",
34261
35133
  "method": "retrieve",
34262
35134
  "summary": "Get the position chain of an actor",
34263
- "description": "Reads where an actor, person or agent, sits in the organization: its primary position and its concurrent positions, each with the department path from the root down with every level's charter, the job, title and level name, the manager (the first filled position up the reporting line), the position's own duties and methods, and objectives. Use it to answer who this actor is and what it is responsible for. An actor that holds no position is not an error: primary is null and concurrent is empty. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
35135
+ "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.",
34264
35136
  "http": "GET",
34265
35137
  "path": "/workforce/v1/actors/{actor}",
34266
35138
  "streaming": "no",
@@ -34462,7 +35334,7 @@ export const operations = [
34462
35334
  "resource": "workforce.departments",
34463
35335
  "method": "create",
34464
35336
  "summary": "Establish a department",
34465
- "description": "Creates a department under an existing active parent department; use it to grow the tree, and use reorganize to rename or move one that already exists. order defaults to one after the last active sibling. The new department has no head position and no charter: open a position in it, then designate that position as head. Requires an organization owner or admin, or the head of the parent department or of a department above it. Errors: 400 INVALID_PARAMS for a missing or empty name, a name over 100 characters, an unknown body field or an active sibling with the same name; 403 PERMISSION_DENIED; 404 DEPARTMENT_NOT_FOUND when the parent does not exist; 409 DEPARTMENT_DISSOLVED when the parent is dissolved. Example body: {\"parent_id\":\"dept_123\",\"name\":\"Support\"}.",
35337
+ "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\"}.",
34466
35338
  "http": "POST",
34467
35339
  "path": "/workforce/v1/departments",
34468
35340
  "streaming": "no",
@@ -34497,7 +35369,7 @@ export const operations = [
34497
35369
  "resource": "workforce.departments",
34498
35370
  "method": "retrieve",
34499
35371
  "summary": "Get a department",
34500
- "description": "Reads one department with its head position id and its charter, including the charter revision you need before amending the charter. Read-only. Errors: 404 DEPARTMENT_NOT_FOUND when the id is not a department of your organization; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.",
35372
+ "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.",
34501
35373
  "http": "GET",
34502
35374
  "path": "/workforce/v1/departments/{id}",
34503
35375
  "streaming": "no",
@@ -34555,8 +35427,8 @@ export const operations = [
34555
35427
  {
34556
35428
  "resource": "workforce.departments",
34557
35429
  "method": "updateCharter",
34558
- "summary": "Amend a department charter",
34559
- "description": "Replaces the charter of a department: free-text rules that apply to the department and are inherited by every department below it. Send the charter.revision you last read as expected_revision (0 when the department has no charter yet); each successful amendment raises the revision by one. Requires an organization owner or admin, or the head of the department or of a department above it. Errors: 400 INVALID_PARAMS for text over 2000 characters or a non-integer expected_revision; 403 PERMISSION_DENIED; 404 DEPARTMENT_NOT_FOUND; 409 DEPARTMENT_DISSOLVED; 409 REVISION_CONFLICT when the charter moved on, so get the department again, merge your change and retry with its revision.",
35430
+ "summary": "Amend a department charter (gone)",
35431
+ "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.",
34560
35432
  "http": "PUT",
34561
35433
  "path": "/workforce/v1/departments/{id}/charter",
34562
35434
  "streaming": "no",
@@ -34565,27 +35437,10 @@ export const operations = [
34565
35437
  {
34566
35438
  "name": "id",
34567
35439
  "sdkName": "id",
34568
- "description": "Department id (dept_...) whose charter changes, from the departments list."
35440
+ "description": "Department id (dept_...) whose charter used to change here."
34569
35441
  }
34570
35442
  ],
34571
- "query": [],
34572
- "body": {
34573
- "required": true,
34574
- "fields": [
34575
- {
34576
- "name": "text",
34577
- "type": "string",
34578
- "required": true,
34579
- "description": "The full new charter text, at most 2000 characters; it replaces the old text."
34580
- },
34581
- {
34582
- "name": "expected_revision",
34583
- "type": "integer",
34584
- "required": true,
34585
- "description": "The charter.revision you last read, or 0 when the department has no charter yet; a mismatch returns REVISION_CONFLICT."
34586
- }
34587
- ]
34588
- }
35443
+ "query": []
34589
35444
  },
34590
35445
  {
34591
35446
  "resource": "workforce.departments.dissolve",