@deepraxis/sdk 0.1.1-dev.1571058 → 0.1.1-dev.161a576

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.
@@ -1371,6 +1371,43 @@ export const operations = [
1371
1371
  }
1372
1372
  ]
1373
1373
  },
1374
+ {
1375
+ "resource": "agent.computers.files",
1376
+ "method": "updateContent",
1377
+ "summary": "Write computer file content",
1378
+ "description": "Write the bytes of one existing file on a computer, only if the file is still the version you read.\n\nSend the raw bytes as the body (at most 16 MiB) and the version you edited in `If-Match`: the `version` field of the file listing (`<size>-<mtimeMs>`). The file must already exist; the write replaces it whole and keeps its permissions. A request without `If-Match` answers 428 FILE_VERSION_REQUIRED and nothing is written. When the file has changed since that version, the answer is 412 FILE_VERSION_MISMATCH with `error.current_version`, and nothing is written: read the file again, redo the edit and write with the new version. The version is checked against the file's current size and modification time, then the content digest is bound into the write itself, so a change that lands while the bytes are being written is refused instead of overwritten. Paths under /attachments and /skills are read-only (403 READ_ONLY). A successful write answers the new path, size, mtime and version; use that version for the next write.",
1379
+ "http": "PUT",
1380
+ "path": "/agent/v1/computers/{computer_id}/files/content",
1381
+ "streaming": "no",
1382
+ "pagination": false,
1383
+ "pathParams": [
1384
+ {
1385
+ "name": "computer_id",
1386
+ "sdkName": "computer_id",
1387
+ "description": "Computer id from computer creation or listing; a computer another tenant owns is not found."
1388
+ }
1389
+ ],
1390
+ "query": [
1391
+ {
1392
+ "name": "path",
1393
+ "type": "string",
1394
+ "required": true,
1395
+ "description": "Absolute path of the existing file on the computer, or a /workspace/ relative path."
1396
+ }
1397
+ ],
1398
+ "headers": [
1399
+ {
1400
+ "name": "If-Match",
1401
+ "type": "string",
1402
+ "required": true,
1403
+ "description": "The file version you edited, as the file listing gives it (<size>-<mtimeMs>); a quoted value is accepted."
1404
+ }
1405
+ ],
1406
+ "body": {
1407
+ "required": true,
1408
+ "fields": []
1409
+ }
1410
+ },
1374
1411
  {
1375
1412
  "resource": "agent.computers.files.convert",
1376
1413
  "method": "create",
@@ -4007,7 +4044,7 @@ export const operations = [
4007
4044
  "resource": "application.workers.grants",
4008
4045
  "method": "create",
4009
4046
  "summary": "Create grant",
4010
- "description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
4047
+ "description": "Record access to an organization-owned database, knowledge base, file, media library, workflow, script, agent or another Worker, to models (id *, read only), or to a whole service (search, browser, ticket, crm, canvas, cut, studio, ontology, workspace: id *, read_write; feedback: read), or to full authority (organization: id *, read_write), which excludes every other grant. The types are the ones a service agent can bind. The retired files type is refused; grant one file by its file-… id. A Worker's platform calls reach only what its grants name, and nothing with no grant; an agent grant at read_write is what lets it issue that agent's customer grant codes. Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
4011
4048
  "http": "POST",
4012
4049
  "path": "/application/v1/workers/{worker_id}/grants",
4013
4050
  "streaming": "no",
@@ -4542,6 +4579,14 @@ export const operations = [
4542
4579
  "description": "true checks compatibility without persisting and may omit If-Match; omitted or false performs a normal update."
4543
4580
  }
4544
4581
  ],
4582
+ "headers": [
4583
+ {
4584
+ "name": "If-Match",
4585
+ "type": "string",
4586
+ "required": false,
4587
+ "description": "Required for normal updates; optional for dry_run=true but still validated when supplied. * matches any existing representation; otherwise supply the current revision ETag."
4588
+ }
4589
+ ],
4545
4590
  "body": {
4546
4591
  "required": true,
4547
4592
  "fields": [
@@ -4865,6 +4910,14 @@ export const operations = [
4865
4910
  }
4866
4911
  ],
4867
4912
  "query": [],
4913
+ "headers": [
4914
+ {
4915
+ "name": "If-Match",
4916
+ "type": "string",
4917
+ "required": false,
4918
+ "description": "Optional current revision or *; checked when supplied, with * matching any existing representation."
4919
+ }
4920
+ ],
4868
4921
  "body": {
4869
4922
  "required": true,
4870
4923
  "fields": [
@@ -4905,6 +4958,14 @@ export const operations = [
4905
4958
  }
4906
4959
  ],
4907
4960
  "query": [],
4961
+ "headers": [
4962
+ {
4963
+ "name": "webhook-id",
4964
+ "type": "string",
4965
+ "required": false,
4966
+ "description": "Optional deduplication identifier, retained for 24 hours within this trigger."
4967
+ }
4968
+ ],
4908
4969
  "body": {
4909
4970
  "required": false,
4910
4971
  "fields": []
@@ -5432,6 +5493,14 @@ export const operations = [
5432
5493
  "required": false,
5433
5494
  "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5434
5495
  }
5496
+ ],
5497
+ "headers": [
5498
+ {
5499
+ "name": "Last-Event-ID",
5500
+ "type": "string",
5501
+ "required": false,
5502
+ "description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
5503
+ }
5435
5504
  ]
5436
5505
  },
5437
5506
  {
@@ -5463,6 +5532,14 @@ export const operations = [
5463
5532
  "required": false,
5464
5533
  "description": "Opaque next_cursor from the previous page; keep the original filters when paging."
5465
5534
  }
5535
+ ],
5536
+ "headers": [
5537
+ {
5538
+ "name": "Last-Event-ID",
5539
+ "type": "string",
5540
+ "required": false,
5541
+ "description": "SSE resume cursor; read entries after this event. Takes precedence over cursor and applies only to streams."
5542
+ }
5466
5543
  ]
5467
5544
  },
5468
5545
  {
@@ -5841,6 +5918,14 @@ export const operations = [
5841
5918
  }
5842
5919
  ],
5843
5920
  "query": [],
5921
+ "headers": [
5922
+ {
5923
+ "name": "If-Match",
5924
+ "type": "string",
5925
+ "required": true,
5926
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
5927
+ }
5928
+ ],
5844
5929
  "body": {
5845
5930
  "required": true,
5846
5931
  "fields": [
@@ -6501,6 +6586,14 @@ export const operations = [
6501
6586
  "pagination": false,
6502
6587
  "pathParams": [],
6503
6588
  "query": [],
6589
+ "headers": [
6590
+ {
6591
+ "name": "Accept-Language",
6592
+ "type": "string",
6593
+ "required": false,
6594
+ "description": "Language for the readable description; supports Chinese (default) and English by language quality preference."
6595
+ }
6596
+ ],
6504
6597
  "body": {
6505
6598
  "required": true,
6506
6599
  "fields": [
@@ -6572,6 +6665,14 @@ export const operations = [
6572
6665
  }
6573
6666
  ],
6574
6667
  "query": [],
6668
+ "headers": [
6669
+ {
6670
+ "name": "If-Match",
6671
+ "type": "string",
6672
+ "required": true,
6673
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
6674
+ }
6675
+ ],
6575
6676
  "body": {
6576
6677
  "required": true,
6577
6678
  "fields": [
@@ -6792,7 +6893,7 @@ export const operations = [
6792
6893
  "resource": "automation.validate",
6793
6894
  "method": "create",
6794
6895
  "summary": "Validate a definition",
6795
- "description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.",
6896
+ "description": "Check source without executing it when you need diagnostics, inferred schemas or references. This is optional before praxis.automation.runs.create, which also validates source before execution. Actions, scripts and workflows are supported; results include validity without saving. Invalid source is reported with valid=false. Script/action output schemas are inferred from return types: Promise unwrapping, Record, intersections and Date. Unknown types yield an empty schema and a warning in warnings. Source diagnostics use /source or /implementation/source with 1-based line/column. For kind=action the same admission checks as action creation apply (no external imports, platform operations only as direct call(praxis/<api>.<op>, input) calls, no agent or automation calls), so source that validates is not rejected at creation. For kind=workflow the YAML needs document (dsl, namespace, name, version) and do; each problem is one entry in errors[] (pointer, detail, hint), so read the first one. A listen outside the supported subset (to.all, inside a fork) and emit are not reported here and fail with DEFINITION_INVALID only when a run is created. Workflow syntax reference: https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
6796
6897
  "http": "POST",
6797
6898
  "path": "/automation/v1/validate",
6798
6899
  "streaming": "no",
@@ -6899,7 +7000,7 @@ export const operations = [
6899
7000
  "resource": "automation.workflows",
6900
7001
  "method": "create",
6901
7002
  "summary": "Create a workflow",
6902
- "description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 5 min (run-sandbox 6 h), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
7003
+ "description": "Workflow syntax reference: https://docs.deepraxis.com/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 5 min (run-sandbox 6 h), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /developers/automation/guides/approvals Guide: /developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
6903
7004
  "http": "POST",
6904
7005
  "path": "/automation/v1/workflows",
6905
7006
  "streaming": "no",
@@ -6969,7 +7070,7 @@ export const operations = [
6969
7070
  "resource": "automation.workflows",
6970
7071
  "method": "update",
6971
7072
  "summary": "Update a workflow draft",
6972
- "description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://deepraxis.com/docs/developers/automation/reference/workflow-syntax.",
7073
+ "description": "Update description, labels or draft with the current draft revision in If-Match, taken from draft.revision in the get-workflow response. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.",
6973
7074
  "http": "PATCH",
6974
7075
  "path": "/automation/v1/workflows/{ns}/{name}",
6975
7076
  "streaming": "no",
@@ -6987,6 +7088,14 @@ export const operations = [
6987
7088
  }
6988
7089
  ],
6989
7090
  "query": [],
7091
+ "headers": [
7092
+ {
7093
+ "name": "If-Match",
7094
+ "type": "string",
7095
+ "required": true,
7096
+ "description": "Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/\"…\" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412."
7097
+ }
7098
+ ],
6990
7099
  "body": {
6991
7100
  "required": true,
6992
7101
  "fields": [
@@ -8764,6 +8873,14 @@ export const operations = [
8764
8873
  "pagination": false,
8765
8874
  "pathParams": [],
8766
8875
  "query": [],
8876
+ "headers": [
8877
+ {
8878
+ "name": "Origin",
8879
+ "type": "string",
8880
+ "required": false,
8881
+ "description": "Browser page origin the playback is opened from, for example https://school.example.com. Required when the content's allowed_origins is not empty; it must then match one of its entries exactly."
8882
+ }
8883
+ ],
8767
8884
  "body": {
8768
8885
  "required": true,
8769
8886
  "fields": [
@@ -10498,6 +10615,14 @@ export const operations = [
10498
10615
  "pagination": false,
10499
10616
  "pathParams": [],
10500
10617
  "query": [],
10618
+ "headers": [
10619
+ {
10620
+ "name": "Origin",
10621
+ "type": "string",
10622
+ "required": false,
10623
+ "description": "Browser page origin the exchange is made from, for example https://school.example.com. Send it when the sign-in is bound to one; the service compares it with the binding and refuses a mismatch."
10624
+ }
10625
+ ],
10501
10626
  "body": {
10502
10627
  "required": true,
10503
10628
  "fields": [
@@ -11598,7 +11723,7 @@ export const operations = [
11598
11723
  "resource": "cut.projects",
11599
11724
  "method": "execute",
11600
11725
  "summary": "Execute editing script",
11601
- "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, border, align, per-word animation.\n- `style.align.vertical` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.\n- `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
11726
+ "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, border, align, per-word animation.\n- `style.align.vertical` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.\n- `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
11602
11727
  "http": "POST",
11603
11728
  "path": "/cut/v1/projects/{project_id}:execute",
11604
11729
  "streaming": "no",
@@ -11990,6 +12115,20 @@ export const operations = [
11990
12115
  "required": false,
11991
12116
  "description": "Comma-separated input columns; keys outside this set are ignored."
11992
12117
  }
12118
+ ],
12119
+ "headers": [
12120
+ {
12121
+ "name": "Range-Unit",
12122
+ "type": "string",
12123
+ "required": false,
12124
+ "description": "items; other units cause Range to be ignored."
12125
+ },
12126
+ {
12127
+ "name": "Prefer",
12128
+ "type": "string",
12129
+ "required": false,
12130
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12131
+ }
11993
12132
  ]
11994
12133
  },
11995
12134
  {
@@ -12080,6 +12219,20 @@ export const operations = [
12080
12219
  "required": false,
12081
12220
  "description": "Comma-separated input columns; keys outside this set are ignored."
12082
12221
  }
12222
+ ],
12223
+ "headers": [
12224
+ {
12225
+ "name": "Range-Unit",
12226
+ "type": "string",
12227
+ "required": false,
12228
+ "description": "items; other units cause Range to be ignored."
12229
+ },
12230
+ {
12231
+ "name": "Prefer",
12232
+ "type": "string",
12233
+ "required": false,
12234
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12235
+ }
12083
12236
  ]
12084
12237
  },
12085
12238
  {
@@ -12170,6 +12323,20 @@ export const operations = [
12170
12323
  "required": false,
12171
12324
  "description": "Comma-separated input columns; keys outside this set are ignored."
12172
12325
  }
12326
+ ],
12327
+ "headers": [
12328
+ {
12329
+ "name": "Range-Unit",
12330
+ "type": "string",
12331
+ "required": false,
12332
+ "description": "items; other units cause Range to be ignored."
12333
+ },
12334
+ {
12335
+ "name": "Prefer",
12336
+ "type": "string",
12337
+ "required": false,
12338
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12339
+ }
12173
12340
  ]
12174
12341
  },
12175
12342
  {
@@ -12261,6 +12428,20 @@ export const operations = [
12261
12428
  "description": "Comma-separated input columns; keys outside this set are ignored."
12262
12429
  }
12263
12430
  ],
12431
+ "headers": [
12432
+ {
12433
+ "name": "Range-Unit",
12434
+ "type": "string",
12435
+ "required": false,
12436
+ "description": "items; other units cause Range to be ignored."
12437
+ },
12438
+ {
12439
+ "name": "Prefer",
12440
+ "type": "string",
12441
+ "required": false,
12442
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12443
+ }
12444
+ ],
12264
12445
  "body": {
12265
12446
  "required": true,
12266
12447
  "fields": []
@@ -12355,6 +12536,20 @@ export const operations = [
12355
12536
  "description": "Comma-separated input columns; keys outside this set are ignored."
12356
12537
  }
12357
12538
  ],
12539
+ "headers": [
12540
+ {
12541
+ "name": "Range-Unit",
12542
+ "type": "string",
12543
+ "required": false,
12544
+ "description": "items; other units cause Range to be ignored."
12545
+ },
12546
+ {
12547
+ "name": "Prefer",
12548
+ "type": "string",
12549
+ "required": false,
12550
+ "description": "Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122)."
12551
+ }
12552
+ ],
12358
12553
  "body": {
12359
12554
  "required": true,
12360
12555
  "fields": []
@@ -12959,7 +13154,7 @@ export const operations = [
12959
13154
  "type": "array",
12960
13155
  "itemType": "string",
12961
13156
  "required": false,
12962
- "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries."
13157
+ "description": "Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix, stage. Omit it to write every field the environment object carries."
12963
13158
  }
12964
13159
  ]
12965
13160
  }
@@ -12986,7 +13181,7 @@ export const operations = [
12986
13181
  "resource": "devops.environments",
12987
13182
  "method": "rollback",
12988
13183
  "summary": "Roll an environment back",
12989
- "description": "Put targets of an environment back on the versions they ran before, the way Cloud Deploy rolls a target back: the earlier release is deployed again, and the live version and the deployment state move back together, so the next promotion does not quietly undo it. With no targets it undoes the environment's latest successful promotion, every target that promotion deployed; targets narrows that to some of them, by target id or workspace path such as services/agent. Each target returns to the version it ran just before that promotion; toRelease names an older release instead, which must be one every target has already run in this environment. Callers go back before their callees, and a caller that the undone promotion deployed together with a callee you roll back is brought along (listed in plan.addedDependencies). The request is the approval: reason is recorded as the approval comment, so the rollback does not wait in awaiting_approval, and a promotion still in its observation window is concluded as rolled back. Database migrations are not reversed. Send validateOnly true to see the plan without creating anything. Refusals: ROLLBACK_NOTHING_TO_ROLL_BACK when no promotion has succeeded here, ROLLBACK_NO_PREVIOUS when a target has no earlier version, ROLLBACK_AMBIGUOUS when the targets ran different earlier releases (roll them back separately or name toRelease), ROLLBACK_NOT_RUN_HERE when toRelease carries a version a target never ran here.",
13184
+ "description": "Put targets of an environment back on the versions they ran before, the way Cloud Deploy rolls a target back: the earlier release is deployed again, and the live version and the deployment state move back together, so the next promotion does not quietly undo it. With no targets it undoes the environment's latest successful promotion, every target that promotion deployed; targets narrows that to some of them, by target id or workspace path such as services/agent. Each target returns to the version it ran just before that promotion; toRelease names an older release instead, which must be one every target has already run in this environment. Callers go back before their callees, and a caller that the undone promotion deployed together with a callee you roll back is brought along (listed in plan.addedDependencies). The request is the approval: reason is recorded as the approval comment, so the rollback does not wait in awaiting_approval, and a promotion still in its observation window is concluded as rolled back. Database migrations are not reversed. Send validateOnly true to see the plan without creating anything; the answer then carries validateOnly true and the placeholder id prm_validate_only, because no promotion was stored. This is the way to create a rollback; promotions.create does not take path rollback. Refusals: ROLLBACK_NOTHING_TO_ROLL_BACK when no promotion has succeeded here, ROLLBACK_NO_PREVIOUS when a target has no earlier version, ROLLBACK_AMBIGUOUS when the targets ran different earlier releases (roll them back separately or name toRelease), ROLLBACK_NOT_RUN_HERE when toRelease carries a version a target never ran here.",
12990
13185
  "http": "POST",
12991
13186
  "path": "/devops/v1/environments/{id}:rollback",
12992
13187
  "streaming": "no",
@@ -13402,6 +13597,81 @@ export const operations = [
13402
13597
  }
13403
13598
  ]
13404
13599
  },
13600
+ {
13601
+ "resource": "devops.projects",
13602
+ "method": "create",
13603
+ "summary": "Create a project",
13604
+ "description": "Create a delivery project and its two default environments (develop, production). The code lives in one of two places. Our own Git: pass provider platform and package, the id (pkg_...) of a git package in your organization's registry (the registry domain lists packages and creates git libraries); there is no install flow and no connection, the project records the provider, the package and the package's default branch, and from then on pull requests, the merge gate, changes and cloud workspaces use that package and DevOps merges a pull request itself. A package backs at most one project (REPOSITORY_ALREADY_BOUND) and a package that is not a git package of your organization is INVALID_ARGUMENT. If the package has no default branch yet, which is usual for a library imported from elsewhere, pass initialRef, an existing branch such as import: the default branch is created at its head while the project is created, and no change can be opened before it exists. If the default branch already exists the call is refused with DEFAULT_BRANCH_EXISTS, and a missing initialRef branch with REF_NOT_FOUND; neither leaves a project behind. For a package whose project already exists, use devops.projects.initializeDefaultBranch instead. GitHub (the default): pass the connection of a completed GitHub App install and the repository (owner/name) it can see; leave both out to create a project with no repository yet. A name must be kebab-case and unused in the organization (PROJECT_NAME_TAKEN).",
13605
+ "http": "POST",
13606
+ "path": "/devops/v1/projects",
13607
+ "streaming": "no",
13608
+ "pagination": false,
13609
+ "pathParams": [],
13610
+ "query": [],
13611
+ "body": {
13612
+ "required": true,
13613
+ "fields": [
13614
+ {
13615
+ "name": "name",
13616
+ "type": "string",
13617
+ "required": true,
13618
+ "description": "Kebab-case name, unique within the organization."
13619
+ },
13620
+ {
13621
+ "name": "description",
13622
+ "type": "string",
13623
+ "required": false,
13624
+ "description": "What the project is for, in your own words."
13625
+ },
13626
+ {
13627
+ "name": "provider",
13628
+ "type": "string",
13629
+ "enum": [
13630
+ "github",
13631
+ "platform"
13632
+ ],
13633
+ "required": false,
13634
+ "description": "Where the code lives: github (the default) or platform, a git package of our own Git."
13635
+ },
13636
+ {
13637
+ "name": "package",
13638
+ "type": "string",
13639
+ "required": false,
13640
+ "description": "provider platform only: the id of a git package of your organization's registry. Not valid with connection or repository."
13641
+ },
13642
+ {
13643
+ "name": "initialRef",
13644
+ "type": "string",
13645
+ "required": false,
13646
+ "description": "provider platform only: an existing branch (for example import) to create the default branch from, when the package has none yet. Refused with DEFAULT_BRANCH_EXISTS if the default branch exists, REF_NOT_FOUND if this branch does not; no project is created then."
13647
+ },
13648
+ {
13649
+ "name": "connection",
13650
+ "type": "string",
13651
+ "required": false,
13652
+ "description": "provider github only: the connection of a completed GitHub App install that can see the repository."
13653
+ },
13654
+ {
13655
+ "name": "repository",
13656
+ "type": "string",
13657
+ "required": false,
13658
+ "description": "provider github only: the repository as owner/name."
13659
+ },
13660
+ {
13661
+ "name": "settings",
13662
+ "type": "object",
13663
+ "required": false,
13664
+ "description": "Delivery settings; keys you leave out take their defaults."
13665
+ },
13666
+ {
13667
+ "name": "requestId",
13668
+ "type": "string",
13669
+ "required": false,
13670
+ "description": "Idempotency key: repeat the call with the same value to be given the same answer."
13671
+ }
13672
+ ]
13673
+ }
13674
+ },
13405
13675
  {
13406
13676
  "resource": "devops.projects",
13407
13677
  "method": "retrieve",
@@ -13456,6 +13726,35 @@ export const operations = [
13456
13726
  ]
13457
13727
  }
13458
13728
  },
13729
+ {
13730
+ "resource": "devops.projects.defaultBranch",
13731
+ "method": "initialize",
13732
+ "summary": "Create a project's default branch",
13733
+ "description": "Create the default branch of a project on our own Git, once. A git package imported from elsewhere can hold branches and no default branch, and every change is cut from the default branch, so until it exists no change can be opened. The default branch is protected and only DevOps holds the credential that may write it, so this call is the one way to create it: it points the default branch at the head of the existing branch named in from (for example import). It only creates: a default branch that already exists is refused with DEFAULT_BRANCH_EXISTS and is never moved, a from that is not a branch of the repository is REF_NOT_FOUND, and a GitHub project is INVALID_ARGUMENT because GitHub's branches are GitHub's. The push reaches the project like any other push to its default branch. Read the project first (devops.projects.retrieve) for the package's default branch name.",
13734
+ "http": "POST",
13735
+ "path": "/devops/v1/projects/{id}/default-branch:initialize",
13736
+ "streaming": "no",
13737
+ "pagination": false,
13738
+ "pathParams": [
13739
+ {
13740
+ "name": "id",
13741
+ "sdkName": "id",
13742
+ "description": "The project identifier returned by the project list, not the project's display name or its repository name."
13743
+ }
13744
+ ],
13745
+ "query": [],
13746
+ "body": {
13747
+ "required": true,
13748
+ "fields": [
13749
+ {
13750
+ "name": "from",
13751
+ "type": "string",
13752
+ "required": true,
13753
+ "description": "An existing branch of the repository, for example import. The default branch is created at its head."
13754
+ }
13755
+ ]
13756
+ }
13757
+ },
13459
13758
  {
13460
13759
  "resource": "devops.projects.changes",
13461
13760
  "method": "list",
@@ -13587,6 +13886,37 @@ export const operations = [
13587
13886
  }
13588
13887
  }
13589
13888
  },
13889
+ {
13890
+ "resource": "devops.projects.cleanups",
13891
+ "method": "list",
13892
+ "summary": "List a project's cleanup ledger",
13893
+ "description": "List what the daily cleanup job removed or archived for the project, newest decision first: merged branches deleted when their pull request merged, stopped units deleted after the project's window, test evidence past its age, and prebuilds beyond the kept versions. Each row names the kind of thing, which one, whether it was archived (the record stays, the heavy content goes) or deleted, the reason and when it was decided and done; error is set while the last attempt failed and the job will try again. The ledger is read-only: the job is its only writer, and a project changes what is kept through settings.retention on devops.projects.update. A project with no row has had nothing cleaned.",
13894
+ "http": "GET",
13895
+ "path": "/devops/v1/projects/{project}/cleanups",
13896
+ "streaming": "no",
13897
+ "pagination": false,
13898
+ "pathParams": [
13899
+ {
13900
+ "name": "project",
13901
+ "sdkName": "project",
13902
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
13903
+ }
13904
+ ],
13905
+ "query": [
13906
+ {
13907
+ "name": "pageSize",
13908
+ "type": "integer",
13909
+ "required": false,
13910
+ "description": "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone."
13911
+ },
13912
+ {
13913
+ "name": "pageToken",
13914
+ "type": "string",
13915
+ "required": false,
13916
+ "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
13917
+ }
13918
+ ]
13919
+ },
13590
13920
  {
13591
13921
  "resource": "devops.projects.environments",
13592
13922
  "method": "list",
@@ -14073,7 +14403,7 @@ export const operations = [
14073
14403
  "resource": "devops.projects.promotions",
14074
14404
  "method": "list",
14075
14405
  "summary": "List promotions",
14076
- "description": "List the project's promotions, newest first, across every environment. Use it to see what is queued, what is observing, and what finished recently, without reading each environment separately. A promotion in a terminal state stays in this list, which is how a caller tells \"never promoted\" apart from \"promoted and then rolled back\". Neither filter nor orderBy is accepted yet, so page through with pageToken instead of narrowing the query.",
14406
+ "description": "List the project's promotions, newest first, across every environment. Use it to see what is queued, what is observing, and what finished recently, without reading each environment separately. A promotion in a terminal state stays in this list, which is how a caller tells \"never promoted\" apart from \"promoted and then rolled back\". The one filter is the forced query parameter (true or false, sent as text in the query string); a filter expression and orderBy are not accepted yet, so page through with pageToken instead of narrowing further.",
14077
14407
  "http": "GET",
14078
14408
  "path": "/devops/v1/projects/{project}/promotions",
14079
14409
  "streaming": "no",
@@ -14097,6 +14427,12 @@ export const operations = [
14097
14427
  "type": "string",
14098
14428
  "required": false,
14099
14429
  "description": "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
14430
+ },
14431
+ {
14432
+ "name": "forced",
14433
+ "type": "boolean",
14434
+ "required": false,
14435
+ "description": "true lists only the forced expresses (promotions created with dependencies skip), which is how a reviewer finds them after the fact; false lists only the others; omit it for every promotion."
14100
14436
  }
14101
14437
  ]
14102
14438
  },
@@ -14146,6 +14482,12 @@ export const operations = [
14146
14482
  "type": "string",
14147
14483
  "required": false,
14148
14484
  "description": "A GitHub login to build the \"waiting on me\" list: only pull requests where that person is a requested reviewer and has not answered yet are returned. Somebody who already approved, requested changes or commented is no longer waiting on, so they do not appear."
14485
+ },
14486
+ {
14487
+ "name": "reviewed",
14488
+ "type": "boolean",
14489
+ "required": false,
14490
+ "description": "Review is after-the-fact sampling (Sean 2026-11-24). false lists the pull requests nobody has recorded a review verdict for — send it with filter state=merged to get the merged pull requests still waiting for a sample; true lists the ones that have a review. Omit it to ignore reviews."
14149
14491
  }
14150
14492
  ]
14151
14493
  },
@@ -14512,6 +14854,16 @@ export const operations = [
14512
14854
  "type": "string",
14513
14855
  "required": false,
14514
14856
  "description": "What the diff is measured against: a commit id or a branch name. Defaults to the project's default branch. A base that is neither a branch of the project's repository nor a readable commit is refused as COMMIT_NOT_FOUND, so a typo cannot silently plan against the whole repository."
14857
+ },
14858
+ {
14859
+ "name": "view",
14860
+ "type": "string",
14861
+ "enum": [
14862
+ "full",
14863
+ "summary"
14864
+ ],
14865
+ "required": false,
14866
+ "description": "How much of the plan to return: full lists every feature scenario of the affected packages, summary returns per package only the counts (caseCounts) and lists only the cases this diff requires. A change that touches no tested code (a README) answers tens of kilobytes in the full view, because every case is listed as unaffected; ask for the summary first and use the full view only to explain one case."
14515
14867
  }
14516
14868
  ]
14517
14869
  },
@@ -14919,7 +15271,7 @@ export const operations = [
14919
15271
  "enum": [
14920
15272
  "development",
14921
15273
  "integration",
14922
- "runtime"
15274
+ "release"
14923
15275
  ],
14924
15276
  "required": false,
14925
15277
  "description": "Return only units of this stage; omit it to return every stage."
@@ -14987,7 +15339,7 @@ export const operations = [
14987
15339
  "resource": "devops.projects.workspaces",
14988
15340
  "method": "list",
14989
15341
  "summary": "List a project's stage workspaces",
14990
- "description": "List the project's three stage workspaces — development, integration and runtime — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
15342
+ "description": "List the project's three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.",
14991
15343
  "http": "GET",
14992
15344
  "path": "/devops/v1/projects/{project}/workspaces",
14993
15345
  "streaming": "no",
@@ -15019,7 +15371,7 @@ export const operations = [
15019
15371
  {
15020
15372
  "name": "stage",
15021
15373
  "sdkName": "stage",
15022
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15374
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
15023
15375
  }
15024
15376
  ],
15025
15377
  "query": []
@@ -15042,7 +15394,7 @@ export const operations = [
15042
15394
  {
15043
15395
  "name": "stage",
15044
15396
  "sdkName": "stage",
15045
- "description": "The stage whose workspace you address: development, integration or runtime. development is the persistent stage that carries changes; integration and runtime hold one-off units."
15397
+ "description": "The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units."
15046
15398
  }
15047
15399
  ],
15048
15400
  "query": [],
@@ -15069,7 +15421,7 @@ export const operations = [
15069
15421
  "resource": "devops.promotions",
15070
15422
  "method": "create",
15071
15423
  "summary": "Create a promotion",
15072
- "description": "Promote a release into one environment: this is the operation that actually schedules a deployment. Name the release and the environment; path is regular for an ordinary promotion, targeted to deploy only the targets you list, patch to carry a patch release, and rollback to return the environment to an earlier release. A regular promotion promotes EVERY target the release changed in that environment and refuses a targets list (to promote a subset use path targeted, so a narrowing is never silently ignored). A targeted promotion requires targets: each item is a target id from the target list or the workspace path the console shows (services/devops), and the call resolves the path to the id. A target the release does not carry is refused with the targets the release does deploy; so is a target this environment never runs. Naming a target also deploys the targets it depends on, which come first and are reported in plan.addedDependencies. The targets that changed but were not named are listed in plan.skipped with reason not_requested, so a reader sees what the promotion left behind. Callees upgrade first by default: naming a target brings the targets it depends on, because a caller cannot run on a callee it did not deploy. To leave one of those callees behind, pass withoutCallees, a list of { target, reason } on a targeted promotion. Each entry names a callee the named targets depend on — by target id or workspace path, as in targets — and carries a required, non-empty reason, because an exception nobody can justify afterwards is indistinguishable from a mistake. An excluded callee is subtracted rather than deferred: it is not deployed, and a target that entered the plan only through it leaves the plan too, so nothing is deployed that would have needed it. The exclusion is visible in the plan (plan.skipped with reason callee_excluded, carrying the reason in message) and on the promotion (withoutCallees), and a retry repeats it. Excluding a target you named is refused (take it out of targets instead), as is excluding a target the named ones do not depend on; a regular promotion refuses withoutCallees the same way it refuses targets. A targeted promotion's success verifies only the targets it deployed, not the whole release, so the upstream gate still requires the untouched targets before a later environment may take them. The service reads the environment's promotion order and refuses when an upstream environment has not verified this release yet, unless a bypass carries the authorization for that gate. An environment takes one promotion at a time, so a create while another is running is queued behind it rather than refused; only a regular promotion supersedes waiting regular ones, and a targeted promotion neither overtakes another ride nor is overtaken. Set validateOnly to read the plan and its refusals — layers, skipped targets, pending migrations, missing configuration keys — without scheduling anything, which is the safe way to find out what a promotion will do; the same plan is on the promotion this call answers and on `praxis api devops promotion get`, which reads it again with the promotion's progress as the rollout advances. patch and rollback are not creatable here yet and are refused with NOT_IMPLEMENTED. The answer is the promotion: the plan it will execute is in its plan field (layers, skipped, refusals, pending migrations) and its progress is in state; `praxis api devops promotion get <id>` shows both again at any time. With an environment that requires approval the promotion waits in awaiting_approval until `praxis api devops promotion approve`.",
15424
+ "description": "Promote a release into one environment: this is the operation that actually schedules a deployment. Name the release and the environment; path is regular for an ordinary promotion, targeted to deploy only the targets you list, patch to carry a patch release, and rollback to return the environment to an earlier release. A regular promotion promotes EVERY target the release changed in that environment and refuses a targets list (to promote a subset use path targeted, so a narrowing is never silently ignored). A targeted promotion requires targets: each item is a target id from the target list or the workspace path the console shows (services/devops), and the call resolves the path to the id. A target the release does not carry is refused with the targets the release does deploy; so is a target this environment never runs. Naming a target also deploys the targets it depends on, which come first and are reported in plan.addedDependencies. The targets that changed but were not named are listed in plan.skipped with reason not_requested, so a reader sees what the promotion left behind. Callees upgrade first by default: naming a target brings the targets it depends on, because a caller cannot run on a callee it did not deploy. To skip that on purpose, pass dependencies skip, a forced express that deploys only the named targets and records that it did so (see dependencies). Every promotion runs one version of the deploy engine, resolved from the project's settings.deploy.engine when the promotion is created and recorded as engineVersion; a request that engine version cannot serve is refused with ENGINE_TOO_OLD, which names the option and the first version that has it. To leave one of those callees behind, pass withoutCallees, a list of { target, reason } on a targeted promotion. Each entry names a callee the named targets depend on — by target id or workspace path, as in targets — and carries a required, non-empty reason, because an exception nobody can justify afterwards is indistinguishable from a mistake. An excluded callee is subtracted rather than deferred: it is not deployed, and a target that entered the plan only through it leaves the plan too, so nothing is deployed that would have needed it. The exclusion is visible in the plan (plan.skipped with reason callee_excluded, carrying the reason in message) and on the promotion (withoutCallees), and a retry repeats it. Excluding a target you named is refused (take it out of targets instead), as is excluding a target the named ones do not depend on; a regular promotion refuses withoutCallees the same way it refuses targets. A targeted promotion's success verifies only the targets it deployed, not the whole release, so the upstream gate still requires the untouched targets before a later environment may take them. The service reads the environment's promotion order and refuses when an upstream environment has not verified this release yet, unless a bypass carries the authorization for that gate. An environment takes one promotion at a time, so a create while another is running is queued behind it rather than refused; only a regular promotion supersedes waiting regular ones, and a targeted promotion neither overtakes another ride nor is overtaken. Set validateOnly to read the plan and its refusals — layers, skipped targets, pending migrations, missing configuration keys — without scheduling anything, which is the safe way to find out what a promotion will do; the answer then carries validateOnly true and the placeholder id prm_validate_only, because nothing was stored and there is no promotion to read again; the same plan is on the promotion a real call answers and on `praxis api devops promotion get`, which reads it again with the promotion's progress as the rollout advances. patch and rollback are not creatable here yet and are refused with NOT_IMPLEMENTED: a rollback is created with environments.rollback, not with path rollback on this call. An environment whose blocksLater is true stays held during its observation window: a promotion created for it waits queued (its stateDescription names the promotion it waits for) until promotions.conclude ends the window, and the environment list shows the queue as busy with that promotion as active. A promotion in which every rollout was skipped as artifact_identical (the change did not alter the built artifact, such as a comment) succeeds and moves the checkpoints but deploys nothing; promotions.retrieve counts it in summary.identical. The answer is the promotion: the plan it will execute is in its plan field (layers, skipped, refusals, pending migrations) and its progress is in state; `praxis api devops promotion get <id>` shows both again at any time. With an environment that requires approval the promotion waits in awaiting_approval until `praxis api devops promotion approve`.",
15073
15425
  "http": "POST",
15074
15426
  "path": "/devops/v1/promotions",
15075
15427
  "streaming": "no",
@@ -15117,6 +15469,16 @@ export const operations = [
15117
15469
  "required": false,
15118
15470
  "description": "Targeted only. Callees the named targets depend on that must NOT travel with them, each with the reason it is being held back. Refused for path regular, which brings every changed target with the callees it needs. An excluded callee is not deployed, and neither is anything that entered the plan only through it; the plan reports it as skipped with reason callee_excluded and the reason in message."
15119
15471
  },
15472
+ {
15473
+ "name": "dependencies",
15474
+ "type": "string",
15475
+ "enum": [
15476
+ "include",
15477
+ "skip"
15478
+ ],
15479
+ "required": false,
15480
+ "description": "Targeted only. include (the default) is the ordinary dependency order: naming a target also deploys the callees it needs, first. skip is a FORCED EXPRESS: only the targets you name deploy, nothing is added, and the callees stay at whatever the environment runs. Use it when the closure would carry other people's unreleased changes (a targeted promotion of one service can plan dozens of targets whose checkpoints lag). It is recorded for after-the-fact review: the promotion answers dependencies skip and skippedDependencies (what include would have added), and the project's promotion list filters on forced. The one refusal is DEPENDENCY_NOT_LIVE (FAILED_PRECONDITION): a named target bound to a callee that has never been deployed to this environment, which names the target and the callee. Release facts record who calls whom but not which entrypoint a binding names, so liveness is decided per callee, not per entrypoint. skip is refused with INVALID_ARGUMENT for any path but targeted, and together with withoutCallees (it already leaves every callee behind). A named async target still goes to its own async promotion."
15481
+ },
15120
15482
  {
15121
15483
  "name": "bypass",
15122
15484
  "type": "array",
@@ -15151,7 +15513,7 @@ export const operations = [
15151
15513
  "resource": "devops.promotions",
15152
15514
  "method": "retrieve",
15153
15515
  "summary": "Retrieve a promotion",
15154
- "description": "Read one promotion: its state, its approval, its plan, and the failure that stopped it when there is one. Poll this after creating a promotion to follow it to a terminal state, or read it to find out why a deployment stopped — failure.cause tells plan refusal apart from a failed deploy, and executor names the runs involved. Pass expand=rollouts to receive the per-target rollouts in the same answer instead of listing them separately. state observing means the environment is deployed and the observation window is running, so the promotion is not finished and conclude is still to come. The plan is in the plan field of the answer (null until one is made) and the promotion's state is in state, so this is where to read both before approve (needs awaiting_approval) or conclude (needs observing).",
15516
+ "description": "Read one promotion: its state, its approval, its plan, and the failure that stopped it when there is one. Poll this after creating a promotion to follow it to a terminal state, or read it to find out why a deployment stopped — failure.cause tells plan refusal apart from a failed deploy, and executor names the runs involved. Pass expand=rollouts to receive the per-target rollouts in the same answer instead of listing them separately. state observing means the environment is deployed and the observation window is running, so the promotion is not finished and conclude is still to come; the window holds the environment, so a promotion queued behind it waits until conclude. Once a rollout has ended, summary says how many targets were really deployed (deployed), how many were skipped as artifact_identical (identical: the change did not alter the built artifact, such as a comment, so nothing was deployed although the promotion succeeds and its checkpoints advance) and how many ended any other way (other). The plan is in the plan field of the answer (null until one is made) and the promotion's state is in state, so this is where to read both before approve (needs awaiting_approval) or conclude (needs observing).",
15155
15517
  "http": "GET",
15156
15518
  "path": "/devops/v1/promotions/{id}",
15157
15519
  "streaming": "no",
@@ -15239,6 +15601,24 @@ export const operations = [
15239
15601
  ]
15240
15602
  }
15241
15603
  },
15604
+ {
15605
+ "resource": "devops.promotions",
15606
+ "method": "checkoutCredential",
15607
+ "summary": "Get the checkout credential of a running promotion",
15608
+ "description": "Issue the credential the deploy machine fetches a platform-Git project's code with. The caller is the deploy machine itself, during a run: its `devops/prepare` step sends the API key it already holds and receives the clone URL of the project's repository plus a pull-only credential for exactly that one repository. The credential lives 15 minutes and is issued again on every request, so it never sits in the run's stored input or log, and a leaked copy is useless almost at once. A run that needs the code later, such as an engine checkout after a long install, asks again. It answers only while the promotion is deploying (a rollback is a promotion and deploys too) or halted; a promotion that is queued, waiting for approval, observing or finished is refused with PROMOTION_NOT_RUNNING, because no machine should be fetching code for it. A project whose code is on GitHub is refused with SOURCE_NOT_PLATFORM: its checkout uses the GitHub App token, not this. The key must belong to the promotion's organization, the same check as reading the promotion with `praxis api devops promotion get <id>`. People do not need this call: to read a platform project's code use the code browser calls instead.",
15609
+ "http": "POST",
15610
+ "path": "/devops/v1/promotions/{id}:checkoutCredential",
15611
+ "streaming": "no",
15612
+ "pagination": false,
15613
+ "pathParams": [
15614
+ {
15615
+ "name": "id",
15616
+ "sdkName": "id",
15617
+ "description": "The promotion identifier returned by a promotion list or create answer."
15618
+ }
15619
+ ],
15620
+ "query": []
15621
+ },
15242
15622
  {
15243
15623
  "resource": "devops.promotions",
15244
15624
  "method": "conclude",
@@ -15352,6 +15732,46 @@ export const operations = [
15352
15732
  }
15353
15733
  ]
15354
15734
  },
15735
+ {
15736
+ "resource": "devops.pullRequests.reviews",
15737
+ "method": "create",
15738
+ "summary": "Review a pull request on our own Git",
15739
+ "description": "Give your verdict on a pull request whose project keeps its code on the platform's own Git, where there is no GitHub to hold reviews. The reviewer is you — the user or agent the credential names, never a name in the body — and the platform stores your verdict on the pull request's reviewers under your id, so an ownership rule that lists principal ids reads it. Send approved to approve, changes_requested to hold it with changes you want, or commented to say something without a verdict. A second review from you replaces your first, and the gate is decided again so a rule that reads reviews sees it at once. Only an open pull request is reviewed: a merged or closed one is refused with PULL_REQUEST_NOT_OPEN. A project connected to GitHub is refused with INVALID_ARGUMENT, because its reviews belong to GitHub and the platform projects them from there, so a verdict is never recorded in two places that can disagree.",
15740
+ "http": "POST",
15741
+ "path": "/devops/v1/pull-requests/{id}/reviews",
15742
+ "streaming": "no",
15743
+ "pagination": false,
15744
+ "pathParams": [
15745
+ {
15746
+ "name": "id",
15747
+ "sdkName": "id",
15748
+ "description": "The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it."
15749
+ }
15750
+ ],
15751
+ "query": [],
15752
+ "body": {
15753
+ "required": true,
15754
+ "fields": [
15755
+ {
15756
+ "name": "state",
15757
+ "type": "string",
15758
+ "enum": [
15759
+ "approved",
15760
+ "changes_requested",
15761
+ "commented"
15762
+ ],
15763
+ "required": true,
15764
+ "description": "The verdict. A value outside this set is refused with INVALID_ARGUMENT."
15765
+ },
15766
+ {
15767
+ "name": "body",
15768
+ "type": "string",
15769
+ "required": false,
15770
+ "description": "The words that go with the verdict. Accepted now and not stored yet: DevOps keeps no review thread, so say what must change on the change's own ticket as well."
15771
+ }
15772
+ ]
15773
+ }
15774
+ },
15355
15775
  {
15356
15776
  "resource": "devops.pullRequests",
15357
15777
  "method": "close",
@@ -15385,7 +15805,7 @@ export const operations = [
15385
15805
  "resource": "devops.pullRequests",
15386
15806
  "method": "merge",
15387
15807
  "summary": "Merge a pull request through its gate",
15388
- "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape and defaults to merge. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15808
+ "description": "Land a pull request by having DevOps call GitHub, so the merge goes through the platform's own merge gate instead of around it. The gate is the permission: while the gate is pending or failed the merge is refused with GATE_NOT_PASSED, and a pull request that is already merged or closed is refused with PULL_REQUEST_NOT_OPEN. Only the commit the gate decided on may land — that commit is sent to GitHub as the merge sha, so a head that moved underneath is refused with HEAD_MOVED rather than merged untested — and GitHub's own refusal, such as a conflict, comes back as MERGE_REFUSED carrying its words. method picks the merge shape; on GitHub it defaults to rebase. A project on our own Git (provider platform) merges by squash only: no method means squash, and rebase or merge is refused with INVALID_ARGUMENT naming squash. queue true does not merge now: it puts the pull request into its (project, base) merge queue, where the commit that eventually lands is one GitHub built from the current base and a test run proved. Send requestId to make a retry safe — a retry that reaches a pull request DevOps itself already merged answers that merge without calling GitHub again; it does not make the merge wait. Merging something already merged by somebody else stays a refusal rather than a replay.",
15389
15809
  "http": "POST",
15390
15810
  "path": "/devops/v1/pull-requests/{id}:merge",
15391
15811
  "streaming": "no",
@@ -15430,8 +15850,8 @@ export const operations = [
15430
15850
  {
15431
15851
  "resource": "devops.pullRequests",
15432
15852
  "method": "recordVerdict",
15433
- "summary": "Record a gatekeeper's verdict on a direct change",
15434
- "description": "A gatekeeper's judgement of a change declared direct — the one gate check a person answers, because a direct change has no flag to hold it back. Send result passed to let it through, or failed to hold it, with reason saying in a sentence a reviewer can act on why; the reason becomes the message of the gate's exposure-judged check. The verdict is about ONE commit: headSha must be the pull request's current head, and a verdict for any other commit is refused with INVALID_ARGUMENT rather than applied, because a judgement of a version nobody reviewed must never pass the version that is there now — so a recorded verdict stops applying the moment the head moves, and the new head must be judged on its own. Recording it decides the gate again, so a passed verdict makes the gate passed once every other check has too, and the answer is the pull request with the gate it now reaches. A passed verdict for a change whose tests have not run leaves the gate pending: a person's judgement never outvotes a missing test.",
15853
+ "summary": "Record a review verdict on a pull request",
15854
+ "description": "Record a reviewer's verdict on a pull request, after the fact (Sean 2026-11-24). The merge gate no longer waits for it: exposure-judged is decided by machine from the declaration for every kind of exposure, so a pull request merges without any verdict. This call is the review record — send result passed or failed with reason saying in a sentence a reviewer can act on why. It is stored on the pull request as review and announced with the event devops.pullRequest.reviewed. A failed verdict on an already merged pull request is a finding for follow-up (the event says finding true): the merge stands, nothing is un-merged, and a rollback or a fix is asked for on the ticket. headSha must be the pull request's head, and a verdict for another commit is refused with INVALID_ARGUMENT. List the merged pull requests nobody reviewed with pullRequests.list reviewed=false.",
15435
15855
  "http": "POST",
15436
15856
  "path": "/devops/v1/pull-requests/{id}:recordVerdict",
15437
15857
  "streaming": "no",
@@ -17688,6 +18108,20 @@ export const operations = [
17688
18108
  }
17689
18109
  ],
17690
18110
  "query": [],
18111
+ "headers": [
18112
+ {
18113
+ "name": "X-Unique-Upload-Id",
18114
+ "type": "string",
18115
+ "required": false,
18116
+ "description": "Stable identifier shared by every chunk of this upload."
18117
+ },
18118
+ {
18119
+ "name": "Content-Range",
18120
+ "type": "string",
18121
+ "required": false,
18122
+ "description": "Chunk byte range: bytes start-end/total; total may be -1 until the final chunk."
18123
+ }
18124
+ ],
17691
18125
  "body": {
17692
18126
  "required": true,
17693
18127
  "fields": [
@@ -19977,6 +20411,14 @@ export const operations = [
19977
20411
  "pagination": false,
19978
20412
  "pathParams": [],
19979
20413
  "query": [],
20414
+ "headers": [
20415
+ {
20416
+ "name": "X-OpenRouter-Metadata",
20417
+ "type": "string",
20418
+ "required": false,
20419
+ "description": "OpenRouter-style request header that asks for routing metadata in the response. It is accepted for compatibility and has no effect: the routing metadata is not returned."
20420
+ }
20421
+ ],
19980
20422
  "body": {
19981
20423
  "required": true,
19982
20424
  "fields": [
@@ -23294,10 +23736,11 @@ export const operations = [
23294
23736
  "type": "string",
23295
23737
  "enum": [
23296
23738
  "console",
23297
- "api"
23739
+ "api",
23740
+ "codemode"
23298
23741
  ],
23299
23742
  "required": false,
23300
- "description": "Use console for Console reports or api for API callers (default); machine tokens always store codemode regardless of this value."
23743
+ "description": "Use console for Console reports or api for API callers (default). Machine tokens always store codemode regardless of this value and may send codemode; any other caller that sends codemode is refused."
23301
23744
  },
23302
23745
  {
23303
23746
  "name": "attachments",
@@ -24731,11 +25174,23 @@ export const operations = [
24731
25174
  }
24732
25175
  ]
24733
25176
  },
25177
+ {
25178
+ "resource": "organization.specSchema",
25179
+ "method": "retrieve",
25180
+ "summary": "Read the spec schema",
25181
+ "description": "Returns the JSON Schema (draft 2020-12) of a spec body, generated from the block registry: document, provision, every block and field under provision, and remove. Each field carries x-praxis-merge (single, set, keyed or layered), x-praxis-merge-key for a set, x-praxis-holders on a block (agent, human), and x-praxis-applied (whether reconcile applies it today), plus a Chinese title and an English description. Read it before writing a spec so a block or field is never guessed. The body is the schema itself, returned without any key renamed. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/spec_schema.",
25182
+ "http": "GET",
25183
+ "path": "/organization/v1/spec_schema",
25184
+ "streaming": "no",
25185
+ "pagination": false,
25186
+ "pathParams": [],
25187
+ "query": []
25188
+ },
24734
25189
  {
24735
25190
  "resource": "organization.specs",
24736
25191
  "method": "list",
24737
25192
  "summary": "List specs",
24738
- "description": "Lists the specs (规定) of the organization, most recently updated first; use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
25193
+ "description": "Lists the specs (规定) of the organization in the organization/v1 envelope (api_version, kind, metadata, spec; status is null in a list); use it to find which subject already has a spec before reading or revising one. Narrow it with kind. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, an unknown kind, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /organization/v1/specs?kind=job.",
24739
25194
  "http": "GET",
24740
25195
  "path": "/organization/v1/specs",
24741
25196
  "streaming": "no",
@@ -24774,7 +25229,7 @@ export const operations = [
24774
25229
  "resource": "organization.specs",
24775
25230
  "method": "retrieve",
24776
25231
  "summary": "Get a spec",
24777
- "description": "Reads one subject's live spec, or one historical revision with revision; a subject never written answers revision 0 with an empty spec, so a first revise sends expected_revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
25232
+ "description": "Reads one subject's spec in the organization/v1 envelope: metadata (id, name, revision, labels, annotations, change_note, update_time, updated_by), spec ({ document, provision }) and status (how many holders last reconciled on it, how many are ready and how many have a failed block). revision reads one historical revision instead, with status null. A subject never written answers revision 0 with an empty spec, so a first revise sends metadata.revision 0. Read-only. Errors: 400 INVALID_PARAMS for a non-integer revision; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent; 404 when the subject, or the named SPEC_REVISION_NOT_FOUND, does not exist. Example: GET /organization/v1/specs/job/jpr_123?revision=2.",
24778
25233
  "http": "GET",
24779
25234
  "path": "/organization/v1/specs/{kind}/{id}",
24780
25235
  "streaming": "no",
@@ -24804,7 +25259,7 @@ export const operations = [
24804
25259
  "resource": "organization.specs",
24805
25260
  "method": "update",
24806
25261
  "summary": "Revise a spec",
24807
- "description": "Replaces the whole spec of a subject: expected_revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec body is stored and returned verbatim; its blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove, and it is validated against the block registry. Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or expected_revision, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"expected_revision\":0,\"spec\":{\"document\":\"Deliver reliably.\"}}.",
25262
+ "description": "Replaces the whole spec of a subject: metadata.revision is the revision you last read (0 when none was written) and each success raises it by one, so a mismatch returns REVISION_CONFLICT and you must read again, merge and retry. The spec is { document, provision }: document is Markdown text injected into the holder's memory and never merged, provision holds the capability blocks and remove; GET /organization/v1/spec_schema returns the JSON Schema of every block, and a block outside it is refused with its path. labels and annotations carry over from the previous revision when omitted; change_note belongs to this revision only. Other metadata fields you read back (id, name, update_time, updated_by) are accepted and ignored. dry_run=true checks everything and writes nothing: it answers the spec that would be written, the changes against the live one and the reconcile plan of every affected holder in office (at most 50, plans_truncated says more exist). Requires an organization owner or admin, or the head of the subject's department. Errors: 400 INVALID_PARAMS for a missing spec or metadata.revision, an api_version other than organization/v1, labels or annotations over their limits, a block outside the registry or an unknown body field; 403 PERMISSION_DENIED; 404 when the subject does not exist; 409 REVISION_CONFLICT. Example body: {\"metadata\":{\"revision\":0,\"change_note\":\"first charter\"},\"spec\":{\"document\":\"Deliver reliably.\",\"provision\":{\"computer\":{\"template\":\"base\"}}}}.",
24808
25263
  "http": "PUT",
24809
25264
  "path": "/organization/v1/specs/{kind}/{id}",
24810
25265
  "streaming": "no",
@@ -24821,21 +25276,37 @@ export const operations = [
24821
25276
  "description": "The subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... or asg_...)."
24822
25277
  }
24823
25278
  ],
24824
- "query": [],
25279
+ "query": [
25280
+ {
25281
+ "name": "dry_run",
25282
+ "type": "boolean",
25283
+ "required": false,
25284
+ "description": "true checks everything and writes nothing, answering the preview; false or omitted writes."
25285
+ }
25286
+ ],
24825
25287
  "body": {
24826
25288
  "required": true,
24827
25289
  "fields": [
24828
25290
  {
24829
- "name": "expected_revision",
24830
- "type": "integer",
25291
+ "name": "api_version",
25292
+ "type": "string",
25293
+ "enum": [
25294
+ "organization/v1"
25295
+ ],
25296
+ "required": false,
25297
+ "description": "The language of the envelope; omit it or send organization/v1, anything else is refused."
25298
+ },
25299
+ {
25300
+ "name": "metadata",
25301
+ "type": "object",
24831
25302
  "required": true,
24832
- "description": "The revision you last read, or 0 when the subject has no spec yet; the write is refused with REVISION_CONFLICT unless it is still the live one."
25303
+ "description": "The revision you read and the labels, annotations and note of this revision. Other fields of a read metadata (id, name, update_time, updated_by) may be sent back and are ignored."
24833
25304
  },
24834
25305
  {
24835
25306
  "name": "spec",
24836
25307
  "type": "object",
24837
25308
  "required": true,
24838
- "description": "The whole spec body, replacing the previous one: a map from block name to block value, sent through verbatim. Registered blocks are document, agent, computer, phone, roles, grants, repositories, schedules, browser and remove."
25309
+ "description": "What a unit says. Only document and provision are accepted; everything else is refused with its path."
24839
25310
  }
24840
25311
  ]
24841
25312
  }
@@ -25041,7 +25512,7 @@ export const operations = [
25041
25512
  "resource": "registry.packages.gitCredential",
25042
25513
  "method": "create",
25043
25514
  "summary": "Create a git credential",
25044
- "description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支);一个 push 凭据只能推,克隆要另取 pull 凭据。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
25515
+ "description": "给一个 git 包换一个短期的 git 凭据,用来 git clone / git push。access 选 pull(只读,用来克隆和拉取)或 push(推分支,同时可以克隆和拉取)。push-protected(更新受保护分支)暂不发放,请推到别的分支再合并,请求它返回 400。ttl_seconds 是有效秒数,1-3600,默认 3600;到期后重新调用本接口,不要缓存过期的凭据。返回的 password 是敏感信息,只出现这一次,不要写进日志或提交。用法:git clone https://x-access-token:$PASSWORD@host/git/组织/库/包.git,或把 url 里的地址配上 http.extraHeader。组织未开放 git 功能返回 409;另一个组织的包、已被删除的包和 oci 包都返回 404。同一个 package_id 可以多次取,每次是一个新凭据,互不影响。",
25045
25516
  "http": "POST",
25046
25517
  "path": "/registry/v1/packages/{package_id}/git-credential",
25047
25518
  "streaming": "no",
@@ -25081,7 +25552,7 @@ export const operations = [
25081
25552
  "resource": "registry.packages.git.commits",
25082
25553
  "method": "retrieve",
25083
25554
  "summary": "Read a commit",
25084
- "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交。仓库里没有这个对象返回 404。",
25555
+ "description": "按对象 id 读一个提交(完整 sha,不解析缩写)。返回提交信息、作者、提交时间与父提交;changed_files=true 时再返回它相对第一个父提交改了哪些文件(根提交的全部文件算新增),文件列表被上限截断时 changed_files_truncated 为 true。仓库里没有这个对象返回 404。",
25085
25556
  "http": "GET",
25086
25557
  "path": "/registry/v1/packages/{package_id}/git/commits/{sha}",
25087
25558
  "streaming": "no",
@@ -25098,7 +25569,45 @@ export const operations = [
25098
25569
  "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
25099
25570
  }
25100
25571
  ],
25101
- "query": []
25572
+ "query": [
25573
+ {
25574
+ "name": "changed_files",
25575
+ "type": "boolean",
25576
+ "required": false,
25577
+ "description": "为 true 时同时返回这个提交相对第一个父提交改了哪些文件;默认 false,不多读树。"
25578
+ }
25579
+ ]
25580
+ },
25581
+ {
25582
+ "resource": "registry.packages.git",
25583
+ "method": "retrieveCompare",
25584
+ "summary": "Compare two refs",
25585
+ "description": "比较 base 与 head(引用名或完整对象 id):status 是 identical、ahead(head 在 base 之上有新提交)、behind(head 已包含在 base 里)或 diverged(两边各有提交);merge_base 是找到的最近共同祖先;files 是 head 相对 merge_base 改了哪些文件(added、modified、removed、renamed,renamed 带 previous_path),commits 是 head 比 base 多出的提交,最新的在前。Artifacts 无法低成本回答祖先关系,所以这里只沿两边的第一父链各走最多 300 个提交,并在有界读取下比对树:找不到共同祖先时返回 diverged、merge_base 为 null;files 被上限(3000 个文件、1000 次树读取)截断时 truncated 为 true;commits 被截断、或合并提交藏起了被合并分支上的提交时 commits_truncated 为 true。truncated 或 commits_truncated 为 true 时不要把列表当作完整结果。引用不存在返回 404。只读。",
25586
+ "http": "GET",
25587
+ "path": "/registry/v1/packages/{package_id}/git/compare",
25588
+ "streaming": "no",
25589
+ "pagination": false,
25590
+ "pathParams": [
25591
+ {
25592
+ "name": "package_id",
25593
+ "sdkName": "package_id",
25594
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25595
+ }
25596
+ ],
25597
+ "query": [
25598
+ {
25599
+ "name": "base",
25600
+ "type": "string",
25601
+ "required": true,
25602
+ "description": "比较的起点:分支名、标签名、refs/… 全名或完整对象 id;status 与 files 都是 head 相对它的结果。"
25603
+ },
25604
+ {
25605
+ "name": "head",
25606
+ "type": "string",
25607
+ "required": true,
25608
+ "description": "比较的终点:分支名、标签名、refs/… 全名或完整对象 id。"
25609
+ }
25610
+ ]
25102
25611
  },
25103
25612
  {
25104
25613
  "resource": "registry.packages.git.files",
@@ -25167,6 +25676,72 @@ export const operations = [
25167
25676
  }
25168
25677
  ]
25169
25678
  },
25679
+ {
25680
+ "resource": "registry.packages.git.refs",
25681
+ "method": "list",
25682
+ "summary": "List branches and tags",
25683
+ "description": "列出一个 git 包的分支和标签,按名字排序;prefix 只取 refs/heads/(分支)或 refs/tags/(标签),不给就两者都列。page 从 1 起,size 1 到 500,默认 100;has_more 为 true 表示还有下一页。带注解的标签返回它指向的提交 id,不是标签对象的 id。想把一个名字换成提交 id 用 git/resolve,不要自己在这个列表里找。只读;OCI 包返回 404。",
25684
+ "http": "GET",
25685
+ "path": "/registry/v1/packages/{package_id}/git/refs",
25686
+ "streaming": "no",
25687
+ "pagination": false,
25688
+ "pathParams": [
25689
+ {
25690
+ "name": "package_id",
25691
+ "sdkName": "package_id",
25692
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25693
+ }
25694
+ ],
25695
+ "query": [
25696
+ {
25697
+ "name": "prefix",
25698
+ "type": "string",
25699
+ "enum": [
25700
+ "refs/heads/",
25701
+ "refs/tags/"
25702
+ ],
25703
+ "required": false,
25704
+ "description": "只列一种引用:refs/heads/(分支)或 refs/tags/(标签);不给就两者都列。"
25705
+ },
25706
+ {
25707
+ "name": "page",
25708
+ "type": "integer",
25709
+ "required": false,
25710
+ "description": "页码,从 1 起,默认 1。"
25711
+ },
25712
+ {
25713
+ "name": "size",
25714
+ "type": "integer",
25715
+ "required": false,
25716
+ "description": "这一页最多返回多少个引用,1 到 500,默认 100。"
25717
+ }
25718
+ ]
25719
+ },
25720
+ {
25721
+ "resource": "registry.packages.git",
25722
+ "method": "retrieveResolve",
25723
+ "summary": "Resolve a ref",
25724
+ "description": "把一个引用换成它指向的提交 id:ref 可以是分支名、标签名、refs/… 全名、HEAD 或完整对象 id(40 或 64 位十六进制,缩写不解析)。名字既是标签又是分支时取标签。完整对象 id 只在仓库里真有这个提交时才返回。仓库没有这个引用或提交返回 404(GIT_OBJECT_NOT_FOUND),不会返回空值。要比较两个引用用 git/compare。",
25725
+ "http": "GET",
25726
+ "path": "/registry/v1/packages/{package_id}/git/resolve",
25727
+ "streaming": "no",
25728
+ "pagination": false,
25729
+ "pathParams": [
25730
+ {
25731
+ "name": "package_id",
25732
+ "sdkName": "package_id",
25733
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25734
+ }
25735
+ ],
25736
+ "query": [
25737
+ {
25738
+ "name": "ref",
25739
+ "type": "string",
25740
+ "required": true,
25741
+ "description": "要换成提交 id 的引用:分支名、标签名、refs/… 全名、HEAD 或完整对象 id。"
25742
+ }
25743
+ ]
25744
+ },
25170
25745
  {
25171
25746
  "resource": "registry.packages.git.trees",
25172
25747
  "method": "retrieve",
@@ -25190,6 +25765,29 @@ export const operations = [
25190
25765
  ],
25191
25766
  "query": []
25192
25767
  },
25768
+ {
25769
+ "resource": "registry.packages.git.trees",
25770
+ "method": "retrieveRecursive",
25771
+ "summary": "List a tree recursively",
25772
+ "description": "读一个提交(或树对象)下的全部条目,递归,每个条目用相对根的完整路径命名,目录和子模块也是条目(子模块不展开)。适合要拿到整个仓库文件清单的场景(例如 DevOps 的构建判断);只想看一个目录用 git/trees/{sha}。相同的子树只读一次。条目上限 20000、树读取上限 1000 次,撞到上限时 truncated 为 true、entries 只是前一部分,不要当作全部。sha 通常来自 git/resolve。仓库里没有这个对象返回 404。只读。",
25773
+ "http": "GET",
25774
+ "path": "/registry/v1/packages/{package_id}/git/trees/{sha}/recursive",
25775
+ "streaming": "no",
25776
+ "pagination": false,
25777
+ "pathParams": [
25778
+ {
25779
+ "name": "package_id",
25780
+ "sdkName": "package_id",
25781
+ "description": "包的标识,来自 repositories.packages.list 或 repositories.packages.create 返回的 id;不要传包名。"
25782
+ },
25783
+ {
25784
+ "name": "sha",
25785
+ "sdkName": "sha",
25786
+ "description": "完整的 git 对象 id(40 或 64 位十六进制),不接受缩写。"
25787
+ }
25788
+ ],
25789
+ "query": []
25790
+ },
25193
25791
  {
25194
25792
  "resource": "registry.packages.installations",
25195
25793
  "method": "list",
@@ -25806,7 +26404,7 @@ export const operations = [
25806
26404
  "resource": "sandbox.byod.pairings.claim",
25807
26405
  "method": "create",
25808
26406
  "summary": "Claim a pairing and register the phone",
25809
- "description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno--sbx-develop.praxisusercontent.com/'}.",
26407
+ "description": "The phone's own final step after the owner taps Allow: it registers the device and answers the device id, a one-time credential and the control socket url the app dials. This path carries no Praxis credential — the one-time code is what it is addressed by — so do not send an API key and never call it from server code. The claim is single use: the first successful call spends the code and a second call answers 404, as does an unknown or expired code, so the app must store the credential the moment it arrives because it is never shown again. Connect to socket_url with Authorization: Bearer <credential>; the socket speaks the phone channel (hello, ping/pong, act, result/error) and the device's one connection is replaced if the app reconnects. Example: POST /sandbox/v1/byod/pairings/K7M4PQRS/claim with {platform:'android',name:'Shelf phone',model:'23127PN0CC',os_version:'16'} returns {device_id:'byd_0123456789abcdefghijklmno',credential:'…',socket_url:'wss://49982-byd0123456789abcdefghijklmno.sandbox.praxisusercontent.com/'}.",
25810
26408
  "http": "POST",
25811
26409
  "path": "/sandbox/v1/byod/pairings/{code}/claim",
25812
26410
  "streaming": "no",
@@ -25850,6 +26448,12 @@ export const operations = [
25850
26448
  "type": "string",
25851
26449
  "required": false,
25852
26450
  "description": "The operating-system version the app reports, at most 64 characters; it is display only and can be omitted."
26451
+ },
26452
+ {
26453
+ "name": "device_key",
26454
+ "type": "string",
26455
+ "required": false,
26456
+ "description": "A stable key the app reads from the phone itself (Android: ANDROID_ID), 8 to 128 characters of letters, digits, underscore and hyphen; any other value answers INVALID_PARAMS. The service keeps only a hash scoped to the organization and platform. When the same organization already has a device with this key, even a disconnected one, the claim reuses that device: the same device_id comes back with a new credential, the old connection is closed, and its name is kept. Omit it and every claim registers a new device."
25853
26457
  }
25854
26458
  ]
25855
26459
  }
@@ -32777,7 +33381,7 @@ export const operations = [
32777
33381
  "resource": "vault.authorizations",
32778
33382
  "method": "create",
32779
33383
  "summary": "Create authorization",
32780
- "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. This stores a credential but does not enable vault-backed MCP authentication in Agent sessions.",
33384
+ "description": "Connect an OAuth service to an active vault using either an OAuth template or a resource URL. Unlike Anthropic mcp_oauth credential creation, this flow obtains tokens through user consent rather than accepting an auth token bundle; compatible mcp_oauth creation and updates return 501. Open connect_url, then poll praxis.vault.authorizations.retrieve until completed, failed or expired; only completed supplies the resulting secret_id. The resulting oauth secret serves vault-backed MCP authentication — an Agent session or deployment whose vault_ids include this vault sends it to the MCP server whose URL equals this authorization's resource URL (normalized), and the platform refreshes the token once when that server answers 401.",
32781
33385
  "http": "POST",
32782
33386
  "path": "/vault/v1/authorizations",
32783
33387
  "streaming": "no",