@deepraxis/cli 0.2.1-dev.cc34a92 → 0.2.1-dev.d412c99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/praxis.js CHANGED
@@ -143,7 +143,7 @@ across all toolsets allowed.`
143
143
  type: "array",
144
144
  itemType: "object",
145
145
  required: false,
146
- description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
146
+ description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
147
147
  },
148
148
  {
149
149
  name: "kind",
@@ -1218,6 +1218,37 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
1218
1218
  }
1219
1219
  ]
1220
1220
  },
1221
+ {
1222
+ resource: "agent.computers.files.convert",
1223
+ method: "create",
1224
+ summary: "Convert a Computer Document to PDF",
1225
+ description: `Convert an Office document (docx, doc, ppt, pptx, rtf, odt; up to 16 MiB) to PDF inside a platform-owned ephemeral document sandbox, whatever machine family the computer itself runs on. Returns base64 PDF bytes.
1226
+
1227
+ Praxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.`,
1228
+ http: "POST",
1229
+ path: "/agent/v1/computers/{computer_id}/files/convert",
1230
+ streaming: "no",
1231
+ pagination: false,
1232
+ pathParams: [
1233
+ {
1234
+ name: "computer_id",
1235
+ sdkName: "computer_id",
1236
+ description: "Computer id (cmp_...), as returned by computers.create or computers.list."
1237
+ }
1238
+ ],
1239
+ query: [],
1240
+ body: {
1241
+ required: true,
1242
+ fields: [
1243
+ {
1244
+ name: "name",
1245
+ type: "string",
1246
+ required: true,
1247
+ description: "Name of the entry or object."
1248
+ }
1249
+ ]
1250
+ }
1251
+ },
1221
1252
  {
1222
1253
  resource: "agent.computers.leases",
1223
1254
  method: "delete",
@@ -6100,7 +6131,7 @@ file at the root of that directory.`
6100
6131
  "allow"
6101
6132
  ],
6102
6133
  required: false,
6103
- description: "skip (default) skips when a previous run is still active; allow permits overlapping runs."
6134
+ description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow."
6104
6135
  },
6105
6136
  {
6106
6137
  name: "catchup_window_seconds",
@@ -6274,7 +6305,7 @@ file at the root of that directory.`
6274
6305
  "allow"
6275
6306
  ],
6276
6307
  required: false,
6277
- description: "skip (default) skips when a previous run is still active; allow permits overlapping runs."
6308
+ description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow."
6278
6309
  },
6279
6310
  {
6280
6311
  name: "catchup_window_seconds",
@@ -9961,8 +9992,8 @@ Execution errors include error.details.prints containing output printed before f
9961
9992
  {
9962
9993
  resource: "cut.projects.analysis",
9963
9994
  method: "create",
9964
- summary: "Analyze project media",
9965
- description: "Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible.",
9995
+ summary: "Analyze project media or measure the project mix",
9996
+ description: "Request silence, filler-word or scene analysis for selected bound assets before editing, or measure the mix the timeline itself renders with kind mix. That kind is a render job, not a read: it answers pending with retry_after_sec and is polled by the id it returned, because the answer only exists once the audio has been rendered and measured. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed. kind mix is separate: it reports the project mix loudness, the loudness of each role and where music masks speech, so an editor can fix the mix rather than guess at it.",
9966
9997
  http: "POST",
9967
9998
  path: "/cut/v1/projects/{project_id}/analysis",
9968
9999
  streaming: "no",
@@ -9992,10 +10023,35 @@ Execution errors include error.details.prints containing output printed before f
9992
10023
  enum: [
9993
10024
  "silence",
9994
10025
  "filler",
9995
- "scenes"
10026
+ "scenes",
10027
+ "mix"
9996
10028
  ],
9997
10029
  required: true,
9998
- description: "Analysis types to request for the selected source assets."
10030
+ description: "Analysis types to request. silence, filler and scenes analyze the selected source assets and are read from the media library; mix measures the project's own rendered mix and is requested on its own."
10031
+ },
10032
+ {
10033
+ name: "from",
10034
+ type: "number",
10035
+ required: false,
10036
+ description: "Range start for kind mix, in seconds on the project clock. Omitted with to, the whole timeline is measured, capped at 120 seconds. Ignored by the asset kinds."
10037
+ },
10038
+ {
10039
+ name: "to",
10040
+ type: "number",
10041
+ required: false,
10042
+ description: "Range end for kind mix, in seconds on the project clock, exclusive. A range longer than 120 seconds is refused; request several ranges instead."
10043
+ },
10044
+ {
10045
+ name: "revision",
10046
+ type: "integer",
10047
+ required: false,
10048
+ description: "Optional committed project revision to measure; omission uses the current revision. Mix only."
10049
+ },
10050
+ {
10051
+ name: "id",
10052
+ type: "string",
10053
+ required: false,
10054
+ description: "Poll one running mix measurement by the id its first call returned. Sending id reads that measurement and renders nothing."
9999
10055
  }
10000
10056
  ]
10001
10057
  }
@@ -10133,6 +10189,18 @@ Execution errors include error.details.prints containing output printed before f
10133
10189
  body: {
10134
10190
  required: true,
10135
10191
  fields: [
10192
+ {
10193
+ name: "folder",
10194
+ type: "string",
10195
+ required: false,
10196
+ description: "Optional destination path within the bound media library; omitted uses its default folder."
10197
+ },
10198
+ {
10199
+ name: "name",
10200
+ type: "string",
10201
+ required: false,
10202
+ description: "Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp."
10203
+ },
10136
10204
  {
10137
10205
  name: "output",
10138
10206
  type: "object",
@@ -10150,6 +10218,18 @@ Execution errors include error.details.prints containing output printed before f
10150
10218
  type: "integer",
10151
10219
  required: false,
10152
10220
  description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
10221
+ },
10222
+ {
10223
+ name: "loudness",
10224
+ type: "object",
10225
+ required: false,
10226
+ description: "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work."
10227
+ },
10228
+ {
10229
+ name: "poster",
10230
+ type: "object",
10231
+ required: false,
10232
+ description: "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export."
10153
10233
  }
10154
10234
  ]
10155
10235
  }
@@ -10158,7 +10238,7 @@ Execution errors include error.details.prints containing output printed before f
10158
10238
  resource: "cut.projects.frames",
10159
10239
  method: "list",
10160
10240
  summary: "Render preview frames",
10161
- description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Fetch the returned image URLs before expires_at; render again when they expire.",
10241
+ description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image's base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.",
10162
10242
  http: "GET",
10163
10243
  path: "/cut/v1/projects/{project_id}/frames",
10164
10244
  streaming: "no",
@@ -10181,7 +10261,7 @@ Execution errors include error.details.prints containing output printed before f
10181
10261
  name: "scale",
10182
10262
  type: "number",
10183
10263
  required: false,
10184
- description: "Positive image size multiplier; 0.5 renders at half the project dimensions."
10264
+ description: "Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height."
10185
10265
  },
10186
10266
  {
10187
10267
  name: "revision",
@@ -10232,6 +10312,57 @@ Execution errors include error.details.prints containing output printed before f
10232
10312
  ]
10233
10313
  }
10234
10314
  },
10315
+ {
10316
+ resource: "cut.projects.renders",
10317
+ method: "create",
10318
+ summary: "Create draft range render",
10319
+ description: "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.",
10320
+ http: "POST",
10321
+ path: "/cut/v1/projects/{project_id}/renders",
10322
+ streaming: "no",
10323
+ pagination: false,
10324
+ pathParams: [
10325
+ {
10326
+ name: "project_id",
10327
+ sdkName: "project_id",
10328
+ description: "Project identifier returned by its create or list operation; use the id, not a display name."
10329
+ }
10330
+ ],
10331
+ query: [],
10332
+ body: {
10333
+ required: true,
10334
+ fields: [
10335
+ {
10336
+ name: "kind",
10337
+ type: "string",
10338
+ enum: [
10339
+ "audio",
10340
+ "video"
10341
+ ],
10342
+ required: true,
10343
+ description: "audio renders the mixed soundtrack alone as an .m4a file for listening; video renders a draft-quality .mp4 with picture and sound for looking at. An audio draft is the cheaper of the two and is what a loudness or mix measurement asks for."
10344
+ },
10345
+ {
10346
+ name: "from",
10347
+ type: "number",
10348
+ required: true,
10349
+ description: "Start of the interval in seconds on the project clock, inclusive. Must be less than to."
10350
+ },
10351
+ {
10352
+ name: "to",
10353
+ type: "number",
10354
+ required: true,
10355
+ description: "End of the interval in seconds on the project clock, exclusive. At most 120 seconds after from, and never beyond the timeline duration; a longer passage is requested as several ranges."
10356
+ },
10357
+ {
10358
+ name: "revision",
10359
+ type: "integer",
10360
+ required: false,
10361
+ description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
10362
+ }
10363
+ ]
10364
+ }
10365
+ },
10235
10366
  {
10236
10367
  resource: "cut.projects",
10237
10368
  method: "retrieveState",
@@ -10373,7 +10504,159 @@ Execution errors include error.details.prints containing output printed before f
10373
10504
  resource: "cut.projects",
10374
10505
  method: "execute",
10375
10506
  summary: "Execute editing script",
10376
- 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. Use AddTrack, Insert, Update, Delete, Split, Trim, Move, RippleDeleteRange, UpdateTrack, DeleteTrack, SetSettings, AddCaptionsFromTranscript and SetMarker for writes; GetTimeline, GetItem, FindItems, GetMedia, GetTranscript and GetAnalysis read editing context; Print emits text and Preview requests frame previews. All script times are seconds; script object fields use camelCase, for example `media: {libraryId, assetId}`. 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:\n\n```js\nconst t = AddTrack("video");\nInsert(t, {type: "color", color: "#123456", start: 0, length: 3});\nPrint(t);\n```',
10507
+ 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);\`
10508
+
10509
+ <!-- cut-reference:start -->
10510
+ ### Script function, field and error reference
10511
+
10512
+ Every script function, clip field and error code has its own section, read one at a time:
10513
+
10514
+ \`\`\`
10515
+ codemode.describe("praxis.cut.script.<Name>") // one function: signature, arguments, return, errors, example
10516
+ codemode.describe("praxis.cut.fields.<name>") // one field: type, unit, range, default, where writable
10517
+ codemode.describe("praxis.cut.errors.<CODE>") // one code: meaning, causes, fix
10518
+ codemode.describe("praxis.cut.script") // names, one page at a time
10519
+ \`\`\`
10520
+
10521
+ Published at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the \`praxis.cut.<kind>.\` prefix.
10522
+
10523
+ #### Script functions (script)
10524
+
10525
+ - \`GetTimeline\` — Duration, tracks, joins; clips are under \`items\`.
10526
+ - \`GetItem\` — One clip's compact view, by id.
10527
+ - \`FindItems\` — Visit every clip with its track; collect results.
10528
+ - \`GetMedia\` — Media metadata; \`durationUs\` is microseconds.
10529
+ - \`GetTranscript\` — Transcript words in source microseconds.
10530
+ - \`GetAnalysis\` — Silence, filler or scene segments.
10531
+ - \`ListTransitions\` — Join transition kinds and parameters.
10532
+ - \`ListEffects\` — Visual-effect catalog and parameters.
10533
+ - \`ListAnimations\` — Animation presets by phase and target.
10534
+ - \`ListFonts\` — Font families, weights and scripts.
10535
+ - \`ListTextStyles\` — Text style presets for \`style.preset\`.
10536
+ - \`ListTextTemplates\` — Multi-layer templates and their slots.
10537
+ - \`Insert\` — Add a clip; a track never overlaps itself.
10538
+ - \`Append\` — Add a clip at the end of a track.
10539
+ - \`Update\` — Change named fields; the rest stay.
10540
+ - \`SetSpeed\` — Change rate, keeping source or duration.
10541
+ - \`Delete\` — Remove a clip. There is no \`Remove\`.
10542
+ - \`Join\` — Overlap clips; followers shift, track shortens.
10543
+ - \`UpdateJoin\` — Change a join's length or effect.
10544
+ - \`DeleteJoin\` — Remove a join; restore the butt cut.
10545
+ - \`Split\` — Cut a clip in two at a time.
10546
+ - \`Trim\` — Move one clip edge by seconds.
10547
+ - \`Move\` — Set a clip's start or track.
10548
+ - \`RippleDeleteRange\` — Cut a time range and close the gap.
10549
+ - \`AddTrack\` — Add a video, audio or caption track.
10550
+ - \`UpdateTrack\` — Change a track's name, lock, gain or role.
10551
+ - \`DeleteTrack\` — Remove a track and its clips.
10552
+ - \`SetSettings\` — Change canvas, frame rate or background.
10553
+ - \`AddCaptionsFromTranscript\` — Captions from a clip's kept words.
10554
+ - \`InsertTemplate\` — Insert a template and fill its slots.
10555
+ - \`AlignCaptions\` — Rebuild captions from text punctuation.
10556
+ - \`ImportCaptions\` — Import SRT or WebVTT onto captions.
10557
+ - \`ExportCaptions\` — Export captions as SRT or WebVTT.
10558
+ - \`SetMarker\` — Label a timeline position.
10559
+ - \`Print\` — Append values to the result's \`prints\`.
10560
+ - \`Preview\` — Up to 8 frames as inline PNG data URLs.
10561
+
10562
+ #### Fields (fields)
10563
+
10564
+ - \`type\` — Clip kind; decides which fields apply.
10565
+ - \`start\` — Clip start in seconds; snaps to frames.
10566
+ - \`length\` — Duration; optional for video and audio.
10567
+ - \`media\` — Source \`{ libraryId, assetId }\`.
10568
+ - \`sourceIn\` — First source second kept; default 0.
10569
+ - \`sourceOut\` — Exclusive source end; read-only.
10570
+ - \`text\` — Text of a text or caption clip.
10571
+ - \`color\` — Solid colour of a color clip.
10572
+ - \`shape\` — Shape clip kind: \`rect\` or \`ellipse\`.
10573
+ - \`width\` — Shape width, a fraction of canvas width.
10574
+ - \`height\` — Shape height, a fraction of canvas height.
10575
+ - \`radius\` — Rect corner rounding, in 1080-height px.
10576
+ - \`fill\` — Shape or text paint: colour or gradient.
10577
+ - \`stroke\` — Shape outline: colour and width.
10578
+ - \`transform\` — Position, scale, rotation, opacity, crop, blur.
10579
+ - \`fit\` — contain, cover, fill or none.
10580
+ - \`blend\` — Layer blend mode; null clears.
10581
+ - \`style\` — Text styling: font, fill, strokes, glow, position.
10582
+ - \`style.position\` — top, middle or bottom; omit it, never null.
10583
+ - \`playback\` — Rate, direction, audio policy, or freeze.
10584
+ - \`volumeDb\` — Audio level in dB; 0 is source level.
10585
+ - \`gain\` — Keyframed audio level in dB.
10586
+ - \`fadeIn\` — Fade-in seconds at the clip's start.
10587
+ - \`fadeOut\` — Fade-out seconds at the clip's end.
10588
+ - \`duck\` — Lower this clip while another track plays.
10589
+ - \`animate\` — Transform keyframes; \`at\` is clip-relative seconds.
10590
+ - \`reveal\` — Per-character, word or line reveal timing.
10591
+ - \`animation\` — Preset slots \`{ in, out, loop }\`; null clears.
10592
+ - \`effects\` — Effect stack, at most 8; null clears.
10593
+ - \`transitionIn\` — Entrance effect: kind plus seconds.
10594
+ - \`transitionOut\` — Exit effect: kind plus seconds.
10595
+ - \`mask\` — Shape, path or track matte.
10596
+ - \`words\` — Caption words with clip-local times.
10597
+
10598
+ #### Error codes (errors)
10599
+
10600
+ - \`JOIN_CONFLICT\` — A join is invalid or blocks this edit.
10601
+ - \`INVALID_TRANSITION\` — Bad transition kind, parameter or length.
10602
+ - \`INVALID_STYLE\` — A style value is out of range.
10603
+ - \`INVALID_MASK\` — A mask definition is malformed.
10604
+ - \`MASK_IN_USE\` — The edit would break a live mask.
10605
+ - \`TOO_MANY_MASKS\` — At most 16 masks per project.
10606
+ - \`RATE_OUT_OF_RANGE\` — A rate is outside 0.25-4.
10607
+ - \`UNSUPPORTED_PLAYBACK\` — Reverse without an explicit mute.
10608
+ - \`INVALID_PLAYBACK\` — A playback object is partial or malformed.
10609
+ - \`UNKNOWN_FONT\` — The family is not in \`ListFonts()\`.
10610
+ - \`UNKNOWN_FIELD\` — The field name is not accepted here.
10611
+ - \`UNKNOWN_TEXT_STYLE\` — \`style.preset\` is not in the catalog.
10612
+ - \`TEXT_STYLE_TARGET_MISMATCH\` — Preset on the wrong clip type.
10613
+ - \`CAPTION_ALIGN_LOW_CONFIDENCE\` — Alignment confidence too low; nothing changed.
10614
+ - \`OVERLAP\` — Two clips on one track would share time.
10615
+ - \`OUT_OF_SOURCE\` — The clip would read past its source.
10616
+ - \`LOCKED_TRACK\` — The edit targets a locked track.
10617
+ - \`UNBOUND_LIBRARY\` — The library is not bound to the project.
10618
+ - \`TRACK_KIND_MISMATCH\` — The clip type does not fit the track.
10619
+ - \`NOT_FOUND\` — The named id is not in this project.
10620
+ - \`TOO_SHORT\` — The result would be under one frame.
10621
+ - \`INVALID_DUCK\` — Bad \`duck\` level or a missing track.
10622
+ - \`UNKNOWN_ANIMATION\` — The preset is not in \`ListAnimations()\`.
10623
+ - \`INVALID_ANIMATION_PARAM\` — Bad slot, parameter or keyframe limit.
10624
+ - \`ANIMATION_TOO_LONG\` — In plus out exceed the clip length.
10625
+ - \`ANIMATION_TARGET_MISMATCH\` — The preset does not match the clip type.
10626
+ - \`ANIMATION_PHASE_MISMATCH\` — The preset is in the wrong slot.
10627
+ - \`UNKNOWN_EFFECT\` — The effect is not in \`ListEffects()\`.
10628
+ - \`INVALID_EFFECT_PARAM\` — Bad effect parameter or keyframe.
10629
+ - \`TOO_MANY_EFFECTS\` — More than 8 effects on one clip.
10630
+ - \`PROJECT_NOT_FOUND\` — No visible project has this id.
10631
+ - \`EXPORT_NOT_FOUND\` — No such export in this project.
10632
+ - \`DRAFT_RENDER_NOT_FOUND\` — No such draft render.
10633
+ - \`VERSION_NOT_FOUND\` — No saved version has this revision.
10634
+ - \`LIBRARY_NOT_FOUND\` — The library is missing or invisible.
10635
+ - \`BINDING_INVALID\` — The binding request is malformed.
10636
+ - \`BINDING_IN_USE\` — Clips still use this library's assets.
10637
+ - \`NOTHING_TO_UNDO\` — No earlier revision to return to.
10638
+ - \`NOTHING_TO_REDO\` — No undone revision is waiting.
10639
+ - \`UNDO_CONFLICT\` — The revision to undo is no longer head.
10640
+ - \`REVISION_CONFLICT\` — The project moved; your revision is stale.
10641
+ - \`CUT_BUSY\` — The project is busy; retry.
10642
+ - \`INVALID_CAPTION_FILE\` — The subtitle file is malformed or too big.
10643
+ - \`SCRIPT_ERROR\` — The script threw or did not parse.
10644
+ - \`SCRIPT_LIMIT\` — An execute budget was exceeded.
10645
+ - \`OPS_REJECTED\` — An op failed; the whole edit rolled back.
10646
+ - \`EDIT_EXPIRED\` — The saved edit id is over ten minutes old.
10647
+ - \`MEDIA_OFFLINE\` — The asset cannot be fetched right now.
10648
+ - \`MEDIA_UNAVAILABLE\` — The asset is not usable for rendering.
10649
+ - \`MEDIA_IMPORT_FAILED\` — Importing media failed.
10650
+ - \`FRAME_OUT_OF_RANGE\` — The preview time is outside the project.
10651
+ - \`PROJECT_TOO_LARGE\` — The project exceeds the size limit.
10652
+ - \`RESPONSE_TOO_LARGE\` — The response would exceed its budget.
10653
+ - \`EXPORT_FAILED\` — The render failed; read \`error.cause\`.
10654
+ - \`INVALID_PARAMS\` — The request is malformed.
10655
+ - \`PERMISSION_DENIED\` — This credential may not do that here.
10656
+ - \`NOT_IMPLEMENTED\` — Not available on this platform yet.
10657
+ - \`INTERNAL\` — Unexpected failure; retry with the request id.
10658
+ <!-- cut-reference:end -->
10659
+ `,
10377
10660
  http: "POST",
10378
10661
  path: "/cut/v1/projects/{project_id}:execute",
10379
10662
  streaming: "no",
@@ -10435,6 +10718,24 @@ Execution errors include error.details.prints containing output printed before f
10435
10718
  ],
10436
10719
  query: []
10437
10720
  },
10721
+ {
10722
+ resource: "cut.renders",
10723
+ method: "retrieve",
10724
+ summary: "Retrieve draft range render",
10725
+ description: "Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.",
10726
+ http: "GET",
10727
+ path: "/cut/v1/renders/{render_id}",
10728
+ streaming: "no",
10729
+ pagination: false,
10730
+ pathParams: [
10731
+ {
10732
+ name: "render_id",
10733
+ sdkName: "render_id",
10734
+ description: "Draft render id (cutr_…) returned by projects.renders.create."
10735
+ }
10736
+ ],
10737
+ query: []
10738
+ },
10438
10739
  {
10439
10740
  resource: "cut.versions",
10440
10741
  method: "restore",
@@ -11407,6 +11708,696 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11407
11708
  ]
11408
11709
  }
11409
11710
  },
11711
+ {
11712
+ resource: "devops.projects.testCases",
11713
+ method: "list",
11714
+ summary: "List test cases",
11715
+ description: "List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.",
11716
+ http: "GET",
11717
+ path: "/devops/v1/projects/{project}/test-cases",
11718
+ streaming: "no",
11719
+ pagination: false,
11720
+ pathParams: [
11721
+ {
11722
+ name: "project",
11723
+ sdkName: "project",
11724
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11725
+ }
11726
+ ],
11727
+ query: [
11728
+ {
11729
+ name: "pageSize",
11730
+ type: "integer",
11731
+ required: false,
11732
+ 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."
11733
+ },
11734
+ {
11735
+ name: "pageToken",
11736
+ type: "string",
11737
+ required: false,
11738
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11739
+ },
11740
+ {
11741
+ name: "filter",
11742
+ type: "string",
11743
+ required: false,
11744
+ description: "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result."
11745
+ },
11746
+ {
11747
+ name: "orderBy",
11748
+ type: "string",
11749
+ required: false,
11750
+ description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
11751
+ }
11752
+ ]
11753
+ },
11754
+ {
11755
+ resource: "devops.projects",
11756
+ method: "retrieveTestCatalog",
11757
+ summary: "Read a commit's test catalog",
11758
+ description: 'Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means "not yet", not "no tests"; wait and read again. Omit commit to read the newest catalog published for the project.',
11759
+ http: "GET",
11760
+ path: "/devops/v1/projects/{project}/test-catalog",
11761
+ streaming: "no",
11762
+ pagination: false,
11763
+ pathParams: [
11764
+ {
11765
+ name: "project",
11766
+ sdkName: "project",
11767
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11768
+ }
11769
+ ],
11770
+ query: [
11771
+ {
11772
+ name: "commit",
11773
+ type: "string",
11774
+ required: false,
11775
+ description: "Full 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project."
11776
+ }
11777
+ ]
11778
+ },
11779
+ {
11780
+ resource: "devops.projects.testPlans",
11781
+ method: "list",
11782
+ summary: "List test plans",
11783
+ description: "List the project's plans — what each one selects, which stage and gate it belongs to, and when it runs next. Read this before creating a plan, so a new plan extends what exists instead of duplicating a selector an existing plan already covers.",
11784
+ http: "GET",
11785
+ path: "/devops/v1/projects/{project}/test-plans",
11786
+ streaming: "no",
11787
+ pagination: false,
11788
+ pathParams: [
11789
+ {
11790
+ name: "project",
11791
+ sdkName: "project",
11792
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11793
+ }
11794
+ ],
11795
+ query: [
11796
+ {
11797
+ name: "pageSize",
11798
+ type: "integer",
11799
+ required: false,
11800
+ 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."
11801
+ },
11802
+ {
11803
+ name: "pageToken",
11804
+ type: "string",
11805
+ required: false,
11806
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11807
+ },
11808
+ {
11809
+ name: "orderBy",
11810
+ type: "string",
11811
+ required: false,
11812
+ description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
11813
+ }
11814
+ ]
11815
+ },
11816
+ {
11817
+ resource: "devops.projects.testPlans",
11818
+ method: "create",
11819
+ summary: "Create a test plan",
11820
+ description: "Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.",
11821
+ http: "POST",
11822
+ path: "/devops/v1/projects/{project}/test-plans",
11823
+ streaming: "no",
11824
+ pagination: false,
11825
+ pathParams: [
11826
+ {
11827
+ name: "project",
11828
+ sdkName: "project",
11829
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11830
+ }
11831
+ ],
11832
+ query: [],
11833
+ body: {
11834
+ required: true,
11835
+ fields: [
11836
+ {
11837
+ name: "key",
11838
+ type: "string",
11839
+ required: true,
11840
+ description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused."
11841
+ },
11842
+ {
11843
+ name: "title",
11844
+ type: "string",
11845
+ required: true,
11846
+ description: "Display title of the plan, shown wherever the plan is listed."
11847
+ },
11848
+ {
11849
+ name: "stage",
11850
+ type: "string",
11851
+ enum: [
11852
+ "dev",
11853
+ "presubmit",
11854
+ "postsubmit",
11855
+ "nightly",
11856
+ "production"
11857
+ ],
11858
+ required: true,
11859
+ description: "Which stage of delivery this plan belongs to, which decides when it is expected to run."
11860
+ },
11861
+ {
11862
+ name: "trigger",
11863
+ type: "object",
11864
+ required: true,
11865
+ description: "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries."
11866
+ },
11867
+ {
11868
+ name: "selector",
11869
+ type: "object",
11870
+ required: true,
11871
+ description: "Which cases a plan or run selects. Every member is optional and they combine as an intersection, so a selector with no member selects every case in the catalog."
11872
+ },
11873
+ {
11874
+ name: "environment",
11875
+ type: "string",
11876
+ required: false,
11877
+ description: "The environment this plan runs against; required by a merge or promotion gate, and refused with PLAN_GATE_ENVIRONMENT_MISMATCH when it disagrees with the gate."
11878
+ },
11879
+ {
11880
+ name: "gate",
11881
+ type: "string",
11882
+ enum: [
11883
+ "merge",
11884
+ "promotion",
11885
+ "observation",
11886
+ "none"
11887
+ ],
11888
+ required: true,
11889
+ description: "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment."
11890
+ },
11891
+ {
11892
+ name: "repeat",
11893
+ type: "integer",
11894
+ required: false,
11895
+ description: "How many times each selected case runs in one run; omit for once. More than one is how a flake is told apart from a real failure."
11896
+ },
11897
+ {
11898
+ name: "timeoutMinutes",
11899
+ type: "integer",
11900
+ required: false,
11901
+ description: "How many minutes a run of this plan may take before it is timed out; omit for the service's default."
11902
+ }
11903
+ ]
11904
+ }
11905
+ },
11906
+ {
11907
+ resource: "devops.projects.testReports",
11908
+ method: "create",
11909
+ summary: "Upload an external test report",
11910
+ description: "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable.",
11911
+ http: "POST",
11912
+ path: "/devops/v1/projects/{project}/test-reports",
11913
+ streaming: "no",
11914
+ pagination: false,
11915
+ pathParams: [
11916
+ {
11917
+ name: "project",
11918
+ sdkName: "project",
11919
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11920
+ }
11921
+ ],
11922
+ query: [],
11923
+ body: {
11924
+ required: true,
11925
+ fields: [
11926
+ {
11927
+ name: "reportId",
11928
+ type: "string",
11929
+ required: true,
11930
+ description: "Your own identifier for this report. Uploading the same id again is idempotent and counts once, so a retry after a timeout is safe."
11931
+ },
11932
+ {
11933
+ name: "format",
11934
+ type: "string",
11935
+ enum: [
11936
+ "ctrf",
11937
+ "junit"
11938
+ ],
11939
+ required: true,
11940
+ description: "Which report format the document is in; it decides how the document is parsed."
11941
+ },
11942
+ {
11943
+ name: "ref",
11944
+ type: "object",
11945
+ required: true,
11946
+ description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
11947
+ },
11948
+ {
11949
+ name: "report",
11950
+ type: "string",
11951
+ required: true,
11952
+ description: "The report document itself, as text — JSON for ctrf, XML for junit. Send the file's contents unchanged; a malformed document is refused with REPORT_INVALID and records nothing."
11953
+ }
11954
+ ]
11955
+ }
11956
+ },
11957
+ {
11958
+ resource: "devops.projects.testRuns",
11959
+ method: "list",
11960
+ summary: "List test runs",
11961
+ description: "List the project's runs newest first, with each run's state, result and counts. Use it to find the run id whose executions you want to read, or to see whether a commit's tests have finished. A run whose result is pending has not reached a verdict yet — read it again rather than treating it as passed. Filter by state or result to watch only the runs still in flight.",
11962
+ http: "GET",
11963
+ path: "/devops/v1/projects/{project}/test-runs",
11964
+ streaming: "no",
11965
+ pagination: false,
11966
+ pathParams: [
11967
+ {
11968
+ name: "project",
11969
+ sdkName: "project",
11970
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
11971
+ }
11972
+ ],
11973
+ query: [
11974
+ {
11975
+ name: "pageSize",
11976
+ type: "integer",
11977
+ required: false,
11978
+ 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."
11979
+ },
11980
+ {
11981
+ name: "pageToken",
11982
+ type: "string",
11983
+ required: false,
11984
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
11985
+ },
11986
+ {
11987
+ name: "filter",
11988
+ type: "string",
11989
+ required: false,
11990
+ description: "AIP-160 equality filter over one declared field, for example state=running or result=failed. An undeclared field is refused with INVALID_ARGUMENT; it is never ignored, so a mistyped filter cannot quietly return everything."
11991
+ },
11992
+ {
11993
+ name: "orderBy",
11994
+ type: "string",
11995
+ required: false,
11996
+ description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
11997
+ }
11998
+ ]
11999
+ },
12000
+ {
12001
+ resource: "devops.projects.testRuns",
12002
+ method: "create",
12003
+ summary: "Create a test run",
12004
+ description: "Start a run of the project's tests at one commit. Name a plan to use its selector, or pass a selector directly for this run alone; the ref says which commit to test and is required, because a run without a commit has nothing to report against. waitUntil decides how far the call waits before answering — queued, the default, returns as soon as the run exists; started waits until the run has begun, except for an external run, which is answered at once because it leaves queued only when your own CI uploads; finished waits for a verdict. The wait is bounded at about 25 seconds, and a wait that reaches that bound returns the run as it stands rather than failing — read state to see whether it finished. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.",
12005
+ http: "POST",
12006
+ path: "/devops/v1/projects/{project}/test-runs",
12007
+ streaming: "no",
12008
+ pagination: false,
12009
+ pathParams: [
12010
+ {
12011
+ name: "project",
12012
+ sdkName: "project",
12013
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
12014
+ }
12015
+ ],
12016
+ query: [],
12017
+ body: {
12018
+ required: true,
12019
+ fields: [
12020
+ {
12021
+ name: "ref",
12022
+ type: "object",
12023
+ required: true,
12024
+ description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against."
12025
+ },
12026
+ {
12027
+ name: "plan",
12028
+ type: "string",
12029
+ required: false,
12030
+ description: "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads."
12031
+ },
12032
+ {
12033
+ name: "selector",
12034
+ type: "object",
12035
+ required: false,
12036
+ description: "An ad-hoc selector for this run alone, used instead of a plan's; it is not saved as a plan, so a run you want to repeat should name a plan."
12037
+ },
12038
+ {
12039
+ name: "environment",
12040
+ type: "string",
12041
+ required: false,
12042
+ description: "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment."
12043
+ },
12044
+ {
12045
+ name: "repeat",
12046
+ type: "integer",
12047
+ required: false,
12048
+ description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once."
12049
+ },
12050
+ {
12051
+ name: "waitUntil",
12052
+ type: "string",
12053
+ enum: [
12054
+ "queued",
12055
+ "started",
12056
+ "finished"
12057
+ ],
12058
+ required: false,
12059
+ description: "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured."
12060
+ },
12061
+ {
12062
+ name: "executor",
12063
+ type: "string",
12064
+ enum: [
12065
+ "cloud",
12066
+ "external"
12067
+ ],
12068
+ required: false,
12069
+ description: "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports."
12070
+ },
12071
+ {
12072
+ name: "requestId",
12073
+ type: "string",
12074
+ required: false,
12075
+ description: "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe."
12076
+ }
12077
+ ]
12078
+ }
12079
+ },
12080
+ {
12081
+ resource: "devops.projects.testSuites",
12082
+ method: "list",
12083
+ summary: "List test suites",
12084
+ description: "List the suites the project's newest catalog discovered — one suite per test file and framework pair, with its size, purposes and question count. Use it to find the suite id a case belongs to, or to see which files make up an area before selecting cases from them. Suites come from the catalog, so a file added in code appears only after its commit's catalog is published. Archived suites are returned too; they carry archived true and no case is ever silently dropped from the list.",
12085
+ http: "GET",
12086
+ path: "/devops/v1/projects/{project}/test-suites",
12087
+ streaming: "no",
12088
+ pagination: false,
12089
+ pathParams: [
12090
+ {
12091
+ name: "project",
12092
+ sdkName: "project",
12093
+ description: "Identifies the project whose data you are reading, from the project list or create answer."
12094
+ }
12095
+ ],
12096
+ query: [
12097
+ {
12098
+ name: "pageSize",
12099
+ type: "integer",
12100
+ required: false,
12101
+ 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."
12102
+ },
12103
+ {
12104
+ name: "pageToken",
12105
+ type: "string",
12106
+ required: false,
12107
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12108
+ },
12109
+ {
12110
+ name: "orderBy",
12111
+ type: "string",
12112
+ required: false,
12113
+ description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
12114
+ }
12115
+ ]
12116
+ },
12117
+ {
12118
+ resource: "devops.testCases",
12119
+ method: "retrieve",
12120
+ summary: "Retrieve a test case",
12121
+ description: "Read one case in full — its steps, tags, declared owners, current state with the policy and ticket behind it, and its rolling 7 or 30 day statistics. Use it before quarantining or fixing a case, to see what the state already is and why. A case that was renamed is reachable by both its current fingerprint id and the ids listed in aliases.",
12122
+ http: "GET",
12123
+ path: "/devops/v1/test-cases/{id}",
12124
+ streaming: "no",
12125
+ pagination: false,
12126
+ pathParams: [
12127
+ {
12128
+ name: "id",
12129
+ sdkName: "id",
12130
+ description: "The case identifier returned by a case list, or an older id listed in that case's aliases."
12131
+ }
12132
+ ],
12133
+ query: []
12134
+ },
12135
+ {
12136
+ resource: "devops.testPlans",
12137
+ method: "delete",
12138
+ summary: "Delete a test plan",
12139
+ description: "Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan's key becomes free for another plan to take.",
12140
+ http: "DELETE",
12141
+ path: "/devops/v1/test-plans/{id}",
12142
+ streaming: "no",
12143
+ pagination: false,
12144
+ pathParams: [
12145
+ {
12146
+ name: "id",
12147
+ sdkName: "id",
12148
+ description: "The plan identifier returned by a plan list or create answer."
12149
+ }
12150
+ ],
12151
+ query: []
12152
+ },
12153
+ {
12154
+ resource: "devops.testPlans",
12155
+ method: "retrieve",
12156
+ summary: "Retrieve a test plan",
12157
+ description: "Read one plan by the id a plan list returned, to see its selector, gate, repeat count, timeout and pause state before updating or deleting it. A paused plan carries the reason, the actor and the time it resumes, so a pause you did not set is explained here rather than guessed at.",
12158
+ http: "GET",
12159
+ path: "/devops/v1/test-plans/{id}",
12160
+ streaming: "no",
12161
+ pagination: false,
12162
+ pathParams: [
12163
+ {
12164
+ name: "id",
12165
+ sdkName: "id",
12166
+ description: "The plan identifier returned by a plan list or create answer."
12167
+ }
12168
+ ],
12169
+ query: []
12170
+ },
12171
+ {
12172
+ resource: "devops.testPlans",
12173
+ method: "update",
12174
+ summary: "Update a test plan",
12175
+ description: "Change a plan's title, trigger, selector, gate, repeat count, timeout or enabled flag. Only the fields present in the body are changed, so a body naming one field leaves the rest exactly as they were. Changing a selector does not create a version — the plan is not a published artefact, and runs already started keep the selection they were created with. Read the plan first to know what you are leaving unchanged.",
12176
+ http: "PATCH",
12177
+ path: "/devops/v1/test-plans/{id}",
12178
+ streaming: "no",
12179
+ pagination: false,
12180
+ pathParams: [
12181
+ {
12182
+ name: "id",
12183
+ sdkName: "id",
12184
+ description: "The plan identifier returned by a plan list or create answer."
12185
+ }
12186
+ ],
12187
+ query: [],
12188
+ body: {
12189
+ required: true,
12190
+ fields: [
12191
+ {
12192
+ name: "plan",
12193
+ type: "object",
12194
+ required: true,
12195
+ description: "The fields to change. Anything absent keeps its current value, so read the plan first if you need to know what you are leaving alone."
12196
+ },
12197
+ {
12198
+ name: "updateMask",
12199
+ type: "string",
12200
+ required: false,
12201
+ description: "Comma-separated names of the plan fields this patch intends to change, for example title,enabled. Omit it to apply every field present in plan; naming fields makes the intent explicit and keeps a concurrent edit from being overwritten by accident."
12202
+ }
12203
+ ]
12204
+ }
12205
+ },
12206
+ {
12207
+ resource: "devops.testPlans",
12208
+ method: "pause",
12209
+ summary: "Pause a test plan",
12210
+ description: "Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.",
12211
+ http: "POST",
12212
+ path: "/devops/v1/test-plans/{id}:pause",
12213
+ streaming: "no",
12214
+ pagination: false,
12215
+ pathParams: [
12216
+ {
12217
+ name: "id",
12218
+ sdkName: "id",
12219
+ description: "The plan identifier returned by a plan list or create answer."
12220
+ }
12221
+ ],
12222
+ query: [],
12223
+ body: {
12224
+ required: true,
12225
+ fields: [
12226
+ {
12227
+ name: "reason",
12228
+ type: "string",
12229
+ required: true,
12230
+ description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped."
12231
+ },
12232
+ {
12233
+ name: "until",
12234
+ type: "string",
12235
+ required: false,
12236
+ description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it."
12237
+ }
12238
+ ]
12239
+ }
12240
+ },
12241
+ {
12242
+ resource: "devops.testPlans",
12243
+ method: "resume",
12244
+ summary: "Resume a test plan",
12245
+ description: "Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.",
12246
+ http: "POST",
12247
+ path: "/devops/v1/test-plans/{id}:resume",
12248
+ streaming: "no",
12249
+ pagination: false,
12250
+ pathParams: [
12251
+ {
12252
+ name: "id",
12253
+ sdkName: "id",
12254
+ description: "The plan identifier returned by a plan list or create answer."
12255
+ }
12256
+ ],
12257
+ query: []
12258
+ },
12259
+ {
12260
+ resource: "devops.testRuns",
12261
+ method: "retrieve",
12262
+ summary: "Retrieve a test run",
12263
+ description: "Read one run's current state, result and counts, and ask for its failed executions inline with expand. Poll this after creating a run whose result was pending. A result is monotonic once it reaches a verdict — a failed run never becomes passed by a later report, so read the run rather than the last report to know where it ended.",
12264
+ http: "GET",
12265
+ path: "/devops/v1/test-runs/{id}",
12266
+ streaming: "no",
12267
+ pagination: false,
12268
+ pathParams: [
12269
+ {
12270
+ name: "id",
12271
+ sdkName: "id",
12272
+ description: "The run identifier returned by a run list or create answer."
12273
+ }
12274
+ ],
12275
+ query: [
12276
+ {
12277
+ name: "expand",
12278
+ type: "array",
12279
+ itemType: "string",
12280
+ enum: [
12281
+ "failedExecutions"
12282
+ ],
12283
+ required: false,
12284
+ description: "Repeatable field to expand inline. failedExecutions returns the non-passed executions with the run, which saves a second call when you only need to see what broke; omit it for the bare run."
12285
+ }
12286
+ ]
12287
+ },
12288
+ {
12289
+ resource: "devops.testRuns",
12290
+ method: "cancel",
12291
+ summary: "Cancel a test run",
12292
+ description: "Stop a run that is still going. A reason is required and is recorded on the run, because a cancelled run is read later as evidence about why a commit was not verified. Cancelling a run that already reached a verdict is refused with RUN_ALREADY_FINISHED: its result is final and cancelling it would erase the verdict. Executions already recorded stay readable.",
12293
+ http: "POST",
12294
+ path: "/devops/v1/test-runs/{id}:cancel",
12295
+ streaming: "no",
12296
+ pagination: false,
12297
+ pathParams: [
12298
+ {
12299
+ name: "id",
12300
+ sdkName: "id",
12301
+ description: "The run identifier returned by a run list or create answer."
12302
+ }
12303
+ ],
12304
+ query: [],
12305
+ body: {
12306
+ required: true,
12307
+ fields: [
12308
+ {
12309
+ name: "reason",
12310
+ type: "string",
12311
+ required: true,
12312
+ description: "Why the run is being cancelled; it is stored on the run and is what a later reader finds instead of a result."
12313
+ }
12314
+ ]
12315
+ }
12316
+ },
12317
+ {
12318
+ resource: "devops.testRuns.executions",
12319
+ method: "list",
12320
+ summary: "List a run's executions",
12321
+ description: "List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.",
12322
+ http: "GET",
12323
+ path: "/devops/v1/test-runs/{run}/executions",
12324
+ streaming: "no",
12325
+ pagination: false,
12326
+ pathParams: [
12327
+ {
12328
+ name: "run",
12329
+ sdkName: "run",
12330
+ description: "The run whose executions you are reading, from a run list or create answer."
12331
+ }
12332
+ ],
12333
+ query: [
12334
+ {
12335
+ name: "pageSize",
12336
+ type: "integer",
12337
+ required: false,
12338
+ 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."
12339
+ },
12340
+ {
12341
+ name: "pageToken",
12342
+ type: "string",
12343
+ required: false,
12344
+ description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page."
12345
+ },
12346
+ {
12347
+ name: "filter",
12348
+ type: "string",
12349
+ required: false,
12350
+ description: "AIP-160 equality filter over one declared field, for example result=failed to read only a run's failures. Fields an execution list does not declare are refused with INVALID_ARGUMENT rather than ignored."
12351
+ },
12352
+ {
12353
+ name: "orderBy",
12354
+ type: "string",
12355
+ required: false,
12356
+ description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order."
12357
+ }
12358
+ ]
12359
+ },
12360
+ {
12361
+ resource: "devops.testRuns.executions",
12362
+ method: "retrieve",
12363
+ summary: "Retrieve one case's execution in a run",
12364
+ description: "Read one case's execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.",
12365
+ http: "GET",
12366
+ path: "/devops/v1/test-runs/{run}/executions/{case}",
12367
+ streaming: "no",
12368
+ pagination: false,
12369
+ pathParams: [
12370
+ {
12371
+ name: "run",
12372
+ sdkName: "run",
12373
+ description: "The run whose executions you are reading, from a run list or create answer."
12374
+ },
12375
+ {
12376
+ name: "case",
12377
+ sdkName: "case",
12378
+ description: "The case to read inside that run, from the run's execution list or the project's case list."
12379
+ }
12380
+ ],
12381
+ query: []
12382
+ },
12383
+ {
12384
+ resource: "devops.testSuites",
12385
+ method: "retrieve",
12386
+ summary: "Retrieve a test suite",
12387
+ description: "Read one suite by the id a suite list returned, to learn its file, framework, size, purposes and how many cases it holds. Use it when a case's suite id needs a name for display, or to confirm which commit's catalog a suite came from. The id is opaque; it comes from the list, never from the file path.",
12388
+ http: "GET",
12389
+ path: "/devops/v1/test-suites/{id}",
12390
+ streaming: "no",
12391
+ pagination: false,
12392
+ pathParams: [
12393
+ {
12394
+ name: "id",
12395
+ sdkName: "id",
12396
+ description: "The suite identifier returned by a suite list, not the file path it was discovered from."
12397
+ }
12398
+ ],
12399
+ query: []
12400
+ },
11410
12401
  {
11411
12402
  resource: "file.files",
11412
12403
  method: "list",
@@ -11465,7 +12456,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11465
12456
  resource: "file.files",
11466
12457
  method: "create",
11467
12458
  summary: "Upload file",
11468
- description: 'Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.',
12459
+ description: 'Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File(["Return within 23 days."], "policy.txt", { type: "text/plain" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.',
11469
12460
  http: "POST",
11470
12461
  path: "/file/v1/files",
11471
12462
  streaming: "no",
@@ -11487,10 +12478,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11487
12478
  type: "string",
11488
12479
  enum: [
11489
12480
  "user_data",
12481
+ "assistants",
11490
12482
  "vision"
11491
12483
  ],
11492
12484
  required: true,
11493
- description: "Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
12485
+ description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data."
11494
12486
  },
11495
12487
  {
11496
12488
  name: "expires_after",
@@ -11559,7 +12551,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11559
12551
  resource: "file.files.contentLinks",
11560
12552
  method: "revoke",
11561
12553
  summary: "Revoke a file content link",
11562
- description: 'Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 30 seconds; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {"token":"<token from /c/>"}.',
12554
+ description: 'Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {"token":"<token from /c/>"}.',
11563
12555
  http: "POST",
11564
12556
  path: "/file/v1/files/{file_id}/content_links:revoke",
11565
12557
  streaming: "no",
@@ -11588,7 +12580,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11588
12580
  resource: "file.files.contentUrl",
11589
12581
  method: "create",
11590
12582
  summary: "Create a download URL",
11591
- description: `Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 3600 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {"ttl_seconds":3600}.`,
12583
+ description: `Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {"ttl_seconds":3600}.`,
11592
12584
  http: "POST",
11593
12585
  path: "/file/v1/files/{file_id}/content_url",
11594
12586
  streaming: "no",
@@ -11608,7 +12600,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11608
12600
  name: "ttl_seconds",
11609
12601
  type: "integer",
11610
12602
  required: false,
11611
- description: "Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry."
12603
+ description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry."
11612
12604
  }
11613
12605
  ]
11614
12606
  }
@@ -11617,7 +12609,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11617
12609
  resource: "file.uploads",
11618
12610
  method: "create",
11619
12611
  summary: "Create an upload",
11620
- description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
12612
+ description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 20 GiB (21474836480 bytes) and only user_data, assistants and vision purposes. Send parts of at most 64000000 bytes; an unfinished upload waits for them for 7 days, so a client can create → send parts → query GET /file/v1/uploads/{upload_id} → resend only the missing parts → complete. Optional part_size fixes every part length and makes each numbered part retryable with identical bytes. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.",
11621
12613
  http: "POST",
11622
12614
  path: "/file/v1/uploads",
11623
12615
  streaming: "no",
@@ -11631,7 +12623,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11631
12623
  name: "bytes",
11632
12624
  type: "integer",
11633
12625
  required: true,
11634
- description: "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match."
12626
+ description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match."
11635
12627
  },
11636
12628
  {
11637
12629
  name: "filename",
@@ -11650,10 +12642,11 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11650
12642
  type: "string",
11651
12643
  enum: [
11652
12644
  "user_data",
12645
+ "assistants",
11653
12646
  "vision"
11654
12647
  ],
11655
12648
  required: true,
11656
- description: "Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images."
12649
+ description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images."
11657
12650
  },
11658
12651
  {
11659
12652
  name: "expires_after",
@@ -11674,7 +12667,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11674
12667
  resource: "file.uploads",
11675
12668
  method: "createSigned",
11676
12669
  summary: "Create a one-time upload URL",
11677
- description: "Upload a local file of up to 2 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes), PUT each chunk to its numbered parts[].url in any order, then POST complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 3600 for multipart, at most 604800; all multipart URLs share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
12670
+ description: "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.",
11678
12671
  http: "POST",
11679
12672
  path: "/file/v1/uploads/signed",
11680
12673
  streaming: "no",
@@ -11694,7 +12687,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11694
12687
  name: "bytes",
11695
12688
  type: "integer",
11696
12689
  required: true,
11697
- description: "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length."
12690
+ description: "Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length."
11698
12691
  },
11699
12692
  {
11700
12693
  name: "content_type",
@@ -11707,16 +12700,17 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11707
12700
  type: "string",
11708
12701
  enum: [
11709
12702
  "user_data",
12703
+ "assistants",
11710
12704
  "vision"
11711
12705
  ],
11712
12706
  required: false,
11713
- description: "user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
12707
+ description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data."
11714
12708
  },
11715
12709
  {
11716
12710
  name: "expires_in",
11717
12711
  type: "integer",
11718
12712
  required: false,
11719
- description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime."
12713
+ description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime."
11720
12714
  },
11721
12715
  {
11722
12716
  name: "part_size",
@@ -11727,6 +12721,24 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11727
12721
  ]
11728
12722
  }
11729
12723
  },
12724
+ {
12725
+ resource: "file.uploads",
12726
+ method: "retrieve",
12727
+ summary: "Retrieve an upload",
12728
+ description: "Read the state of an unfinished upload — its status, declared bytes, fixed part_size and the parts it already holds (received_parts, each with part_number, bytes and sha256). After a break or a failed part, call it to resend only the missing numbers, then complete. A cancelled or expired upload is refused; a completed one returns its file. A missing or other-organization upload returns 404.",
12729
+ http: "GET",
12730
+ path: "/file/v1/uploads/{upload_id}",
12731
+ streaming: "no",
12732
+ pagination: false,
12733
+ pathParams: [
12734
+ {
12735
+ name: "upload_id",
12736
+ sdkName: "upload_id",
12737
+ description: "Upload identifier returned by create; the upload must belong to your organization."
12738
+ }
12739
+ ],
12740
+ query: []
12741
+ },
11730
12742
  {
11731
12743
  resource: "file.uploads",
11732
12744
  method: "cancel",
@@ -11749,7 +12761,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11749
12761
  resource: "file.uploads",
11750
12762
  method: "complete",
11751
12763
  summary: "Complete an upload",
11752
- description: "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.",
12764
+ description: "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. When parts were lost, query GET /file/v1/uploads/{upload_id} and resend them before completing. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.",
11753
12765
  http: "POST",
11754
12766
  path: "/file/v1/uploads/{upload_id}/complete",
11755
12767
  streaming: "no",
@@ -11785,7 +12797,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11785
12797
  resource: "file.uploads.parts",
11786
12798
  method: "create",
11787
12799
  summary: "Add an upload part",
11788
- description: "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.",
12800
+ description: "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID, and query GET /file/v1/uploads/{upload_id} to see which numbers already arrived. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.",
11789
12801
  http: "POST",
11790
12802
  path: "/file/v1/uploads/{upload_id}/parts",
11791
12803
  streaming: "no",
@@ -11873,7 +12885,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11873
12885
  resource: "knowledge.vectorStores",
11874
12886
  method: "create",
11875
12887
  summary: "Create knowledge base",
11876
- description: 'Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.',
12888
+ description: 'Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.',
11877
12889
  http: "POST",
11878
12890
  path: "/knowledge/v1/vector_stores",
11879
12891
  streaming: "no",
@@ -11912,7 +12924,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
11912
12924
  name: "chunking_strategy",
11913
12925
  type: "object",
11914
12926
  required: false,
11915
- description: "auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up."
12927
+ description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
11916
12928
  },
11917
12929
  {
11918
12930
  name: "description",
@@ -12259,7 +13271,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12259
13271
  resource: "knowledge.vectorStores.files",
12260
13272
  method: "create",
12261
13273
  summary: "Add file",
12262
- description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.",
13274
+ description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.",
12263
13275
  http: "POST",
12264
13276
  path: "/knowledge/v1/vector_stores/{vector_store_id}/files",
12265
13277
  streaming: "no",
@@ -12291,7 +13303,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12291
13303
  name: "chunking_strategy",
12292
13304
  type: "object",
12293
13305
  required: false,
12294
- description: "auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up."
13306
+ description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy."
12295
13307
  }
12296
13308
  ]
12297
13309
  }
@@ -12598,11 +13610,23 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12598
13610
  ],
12599
13611
  query: []
12600
13612
  },
13613
+ {
13614
+ resource: "media.generation.capabilities",
13615
+ method: "list",
13616
+ summary: "Get generation capabilities",
13617
+ description: "Read supported text-to-video intent, default model, duration and aspect-ratio limits, per-library concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.",
13618
+ http: "GET",
13619
+ path: "/media/v1/generation/capabilities",
13620
+ streaming: "no",
13621
+ pagination: false,
13622
+ pathParams: [],
13623
+ query: []
13624
+ },
12601
13625
  {
12602
13626
  resource: "media.libraries",
12603
13627
  method: "list",
12604
13628
  summary: "List libraries",
12605
- description: "List libraries owned by the caller, newest first. By default, deleting and deleted libraries are excluded; use status=deleting to find libraries awaiting purge. All supplied label pairs must match.",
13629
+ description: "Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.",
12606
13630
  http: "GET",
12607
13631
  path: "/media/v1/libraries",
12608
13632
  streaming: "no",
@@ -12684,7 +13708,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12684
13708
  resource: "media.libraries",
12685
13709
  method: "delete",
12686
13710
  summary: "Delete library",
12687
- description: "Soft-delete an active library, returning its deleting status and purge_at deadline. Asset operations and delivery become unavailable; the library can be restored before purge_at. Repeated deletion while deleting returns the current library.",
13711
+ description: "Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.",
12688
13712
  http: "DELETE",
12689
13713
  path: "/media/v1/libraries/{library_id}",
12690
13714
  streaming: "no",
@@ -12702,7 +13726,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12702
13726
  resource: "media.libraries",
12703
13727
  method: "retrieve",
12704
13728
  summary: "Get library",
12705
- description: "Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.",
13729
+ description: "Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.",
12706
13730
  http: "GET",
12707
13731
  path: "/media/v1/libraries/{library_id}",
12708
13732
  streaming: "no",
@@ -12720,7 +13744,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12720
13744
  resource: "media.libraries",
12721
13745
  method: "update",
12722
13746
  summary: "Update library",
12723
- description: "Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.",
13747
+ description: "Update an active library. Set hotwords for spelling evidence in subsequent transcripts; [] disables inferred vocabulary. Transcript understanding calls the timestamped ASR, optional reference ASR and correction model through the existing metered model path. Reprocess assets to apply new settings to existing transcripts.",
12724
13748
  http: "PATCH",
12725
13749
  path: "/media/v1/libraries/{library_id}",
12726
13750
  streaming: "no",
@@ -12736,6 +13760,13 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12736
13760
  body: {
12737
13761
  required: true,
12738
13762
  fields: [
13763
+ {
13764
+ name: "hotwords",
13765
+ type: "array",
13766
+ itemType: "string",
13767
+ required: false,
13768
+ description: "Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results."
13769
+ },
12739
13770
  {
12740
13771
  name: "models",
12741
13772
  type: "object",
@@ -12767,7 +13798,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12767
13798
  resource: "media.libraries.assets",
12768
13799
  method: "list",
12769
13800
  summary: "List assets",
12770
- description: "List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.",
13801
+ description: "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.",
12771
13802
  http: "GET",
12772
13803
  path: "/media/v1/libraries/{library_id}/assets",
12773
13804
  streaming: "no",
@@ -12815,7 +13846,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12815
13846
  resource: "media.libraries.assets",
12816
13847
  method: "create",
12817
13848
  summary: "Upload asset",
12818
- description: "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.",
13849
+ description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
12819
13850
  http: "POST",
12820
13851
  path: "/media/v1/libraries/{library_id}/assets",
12821
13852
  streaming: "no",
@@ -12860,7 +13891,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12860
13891
  name: "asset_folder",
12861
13892
  type: "string",
12862
13893
  required: false,
12863
- description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
13894
+ description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
12864
13895
  },
12865
13896
  {
12866
13897
  name: "use_filename",
@@ -12939,7 +13970,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12939
13970
  resource: "media.libraries.assets.import",
12940
13971
  method: "create",
12941
13972
  summary: "Import file",
12942
- description: "Copy source content into an active library using upload options and return the full native Asset. The imported asset is independent of the source after copying. Reusing public_id follows overwrite semantics.",
13973
+ description: "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
12943
13974
  http: "POST",
12944
13975
  path: "/media/v1/libraries/{library_id}/assets/import",
12945
13976
  streaming: "no",
@@ -12959,7 +13990,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12959
13990
  name: "file_id",
12960
13991
  type: "string",
12961
13992
  required: true,
12962
- description: "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset."
13993
+ description: "File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset."
12963
13994
  },
12964
13995
  {
12965
13996
  name: "public_id",
@@ -12983,7 +14014,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
12983
14014
  name: "asset_folder",
12984
14015
  type: "string",
12985
14016
  required: false,
12986
- description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
14017
+ description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
12987
14018
  },
12988
14019
  {
12989
14020
  name: "use_filename",
@@ -13062,7 +14093,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13062
14093
  resource: "media.libraries.assets",
13063
14094
  method: "delete",
13064
14095
  summary: "Delete asset",
13065
- description: "Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.",
14096
+ description: "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously.",
13066
14097
  http: "DELETE",
13067
14098
  path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
13068
14099
  streaming: "no",
@@ -13085,7 +14116,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13085
14116
  resource: "media.libraries.assets",
13086
14117
  method: "retrieve",
13087
14118
  summary: "Get asset",
13088
- description: "Read a non-deleted asset by its asset_id in an active library, including content hashes, processing progress and available previews. Missing or deleted assets return ASSET_NOT_FOUND.",
14119
+ description: "Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.",
13089
14120
  http: "GET",
13090
14121
  path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
13091
14122
  streaming: "no",
@@ -13108,7 +14139,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13108
14139
  resource: "media.libraries.assets",
13109
14140
  method: "update",
13110
14141
  summary: "Update asset",
13111
- description: "Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.",
14142
+ description: "Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.",
13112
14143
  http: "PATCH",
13113
14144
  path: "/media/v1/libraries/{library_id}/assets/{asset_id}",
13114
14145
  streaming: "no",
@@ -13139,7 +14170,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13139
14170
  name: "asset_folder",
13140
14171
  type: "string",
13141
14172
  required: false,
13142
- description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
14173
+ description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
13143
14174
  },
13144
14175
  {
13145
14176
  name: "tags",
@@ -13157,11 +14188,57 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13157
14188
  ]
13158
14189
  }
13159
14190
  },
14191
+ {
14192
+ resource: "media.libraries.assets.frames",
14193
+ method: "create",
14194
+ summary: "Create frame URLs",
14195
+ description: 'Media creates JPEG frame URLs for inspecting one or more moments in a video without downloading the original. Obtain library_id from libraries and asset_id plus duration from assets. Send 1–20 integer microsecond timestamps strictly below duration, for example {"at_micros":[0,1000000],"width":640}. Only video assets are supported; audio and images return INVALID_PARAMS. Width defaults to 640 and accepts 160, 320 or 640. This read operation does not store a new asset or rerun understanding. Fetch each returned URL to obtain the frame; delivery usage follows media pricing. Authenticated links expire after 300 seconds; upload links remain public and permanent. Reissue expired links. Foreign libraries and assets return 404 without revealing their existence.',
14196
+ http: "POST",
14197
+ path: "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
14198
+ streaming: "no",
14199
+ pagination: false,
14200
+ pathParams: [
14201
+ {
14202
+ name: "library_id",
14203
+ sdkName: "library_id",
14204
+ description: "Library identifier returned by library creation or listing; must be accessible to the current credential."
14205
+ },
14206
+ {
14207
+ name: "asset_id",
14208
+ sdkName: "asset_id",
14209
+ description: "Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps."
14210
+ }
14211
+ ],
14212
+ query: [],
14213
+ body: {
14214
+ required: true,
14215
+ fields: [
14216
+ {
14217
+ name: "at_micros",
14218
+ type: "array",
14219
+ itemType: "integer",
14220
+ required: true,
14221
+ description: "One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved."
14222
+ },
14223
+ {
14224
+ name: "width",
14225
+ type: "integer",
14226
+ enum: [
14227
+ 160,
14228
+ 320,
14229
+ 640
14230
+ ],
14231
+ required: false,
14232
+ description: "Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable."
14233
+ }
14234
+ ]
14235
+ }
14236
+ },
13160
14237
  {
13161
14238
  resource: "media.libraries.assets.reprocess",
13162
14239
  method: "create",
13163
14240
  summary: "Reprocess asset",
13164
- description: "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks; explicit kinds rerun applicable completed tasks. Replaced understandings become superseded, and processing finishes asynchronously.",
14241
+ description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
13165
14242
  http: "POST",
13166
14243
  path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
13167
14244
  streaming: "no",
@@ -13193,7 +14270,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13193
14270
  "embedding"
13194
14271
  ],
13195
14272
  required: false,
13196
- description: "Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing."
14273
+ description: "Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing."
13197
14274
  }
13198
14275
  ]
13199
14276
  }
@@ -13202,7 +14279,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13202
14279
  resource: "media.libraries.assets.understandings",
13203
14280
  method: "list",
13204
14281
  summary: "List understandings",
13205
- description: "List an asset’s understanding results in creation order. By default only current, non-superseded results are returned; use include_superseded=true for history or kind to select an output type.",
14282
+ description: "List understanding results for an asset, ordered by creation time. Use the cursor to continue; include_superseded also returns replaced records. The optional shots array contains current-version shot boundaries and per-shot captions, scene, location guesses, visible text and confidence flags; it is absent on legacy records. Location guesses and folder mismatch are unverified hints. Correction-enabled transcripts expose text_original, corrected text and a correction audit. Their timed data array remains suitable for subtitles. Reference failure is marked missing; correction failure returns the original verbatim. Model inference uses the existing metered model path.",
13206
14283
  http: "GET",
13207
14284
  path: "/media/v1/libraries/{library_id}/assets/{asset_id}/understandings",
13208
14285
  streaming: "no",
@@ -13234,10 +14311,16 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13234
14311
  "tags",
13235
14312
  "ocr",
13236
14313
  "transcript",
13237
- "frame"
14314
+ "frame",
14315
+ "overview",
14316
+ "audio",
14317
+ "loudness",
14318
+ "beats",
14319
+ "content",
14320
+ "embedding"
13238
14321
  ],
13239
14322
  required: false,
13240
- description: "Filter result kind: caption is a visual description, tags are recognized labels, ocr is recognized image text, transcript is speech text, and frame describes a video segment."
14323
+ description: "Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, loudness is measured loudness, beats is the measured tempo and beat grid, content is the derived speech, music and silence split, and embedding reports a failed embedding step."
13241
14324
  },
13242
14325
  {
13243
14326
  name: "cursor",
@@ -13257,7 +14340,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13257
14340
  resource: "media.libraries.assets",
13258
14341
  method: "batch",
13259
14342
  summary: "Batch assets alias",
13260
- description: "Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.",
14343
+ description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.',
13261
14344
  http: "POST",
13262
14345
  path: "/media/v1/libraries/{library_id}/assets:batch",
13263
14346
  streaming: "no",
@@ -13278,6 +14361,12 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13278
14361
  type: "object",
13279
14362
  required: true,
13280
14363
  description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
14364
+ },
14365
+ {
14366
+ name: "reason",
14367
+ type: "string",
14368
+ required: false,
14369
+ description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
13281
14370
  }
13282
14371
  ]
13283
14372
  }
@@ -13286,7 +14375,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13286
14375
  resource: "media.libraries.batches",
13287
14376
  method: "create",
13288
14377
  summary: "Create batch",
13289
- description: "Create an asynchronous batch for tagging, untagging, replacing context, moving or deleting assets. Select ids or an expression; selection is frozen at creation. Poll the returned job id for completion and per-item failures.",
14378
+ description: 'Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {"action":"reprocess","selector":{"expression":"processing_state=failed AND failure_code=UPSTREAM_FAILED"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.',
13290
14379
  http: "POST",
13291
14380
  path: "/media/v1/libraries/{library_id}/batches",
13292
14381
  streaming: "no",
@@ -13307,6 +14396,12 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13307
14396
  type: "object",
13308
14397
  required: true,
13309
14398
  description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
14399
+ },
14400
+ {
14401
+ name: "reason",
14402
+ type: "string",
14403
+ required: false,
14404
+ description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
13310
14405
  }
13311
14406
  ]
13312
14407
  }
@@ -13315,7 +14410,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13315
14410
  resource: "media.libraries.batches",
13316
14411
  method: "retrieve",
13317
14412
  summary: "Get batch",
13318
- description: "Read a batch job’s status, successful and failed item counts, and a bounded list of failed items. Use the id returned by batch creation; a job outside this library is not found.",
14413
+ description: "Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.",
13319
14414
  http: "GET",
13320
14415
  path: "/media/v1/libraries/{library_id}/batches/{job_id}",
13321
14416
  streaming: "no",
@@ -13338,7 +14433,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13338
14433
  resource: "media.libraries.deliveryTokens",
13339
14434
  method: "create",
13340
14435
  summary: "Create delivery token",
13341
- description: "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 3600 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
14436
+ description: "Issue a time-limited bearer token for originals and transformed authenticated assets in an active library. Use library_id from library creation or listing; read access is sufficient. Append token as the __cld_token__ query parameter on a matching delivery URL. The default ACL covers this library and the default lifetime is 900 seconds; narrow acl and expires_in before sharing. Anyone holding the token can read matching paths until expires_at.",
13342
14437
  http: "POST",
13343
14438
  path: "/media/v1/libraries/{library_id}/delivery_tokens",
13344
14439
  streaming: "no",
@@ -13364,7 +14459,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13364
14459
  name: "expires_in",
13365
14460
  type: "integer",
13366
14461
  required: false,
13367
- description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600."
14462
+ description: "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900."
13368
14463
  }
13369
14464
  ]
13370
14465
  }
@@ -13373,7 +14468,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13373
14468
  resource: "media.libraries.events",
13374
14469
  method: "list",
13375
14470
  summary: "List events",
13376
- description: "Read library events in sequence order, including while the library is deleting. Page forward with asc and after_seq, or backward with desc and before_seq; never combine the two sequence cursors.",
14471
+ description: "Read library events in sequence order for observing asset writes and understanding progress. Obtain library_id from creation or listing; continue with after_seq for asc or before_seq for desc, without combining both. Use next_cursor when supplied. Reads do not start or retry understanding.",
13377
14472
  http: "GET",
13378
14473
  path: "/media/v1/libraries/{library_id}/events",
13379
14474
  streaming: "no",
@@ -13420,7 +14515,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13420
14515
  resource: "media.libraries.folders",
13421
14516
  method: "list",
13422
14517
  summary: "List folders",
13423
- description: "List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.",
14518
+ description: "undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.",
13424
14519
  http: "GET",
13425
14520
  path: "/media/v1/libraries/{library_id}/folders",
13426
14521
  streaming: "no",
@@ -13441,11 +14536,155 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13441
14536
  }
13442
14537
  ]
13443
14538
  },
14539
+ {
14540
+ resource: "media.libraries.generations",
14541
+ method: "create",
14542
+ summary: "Create video generation",
14543
+ description: "Create a video.generate job. Generation is charged per second. The response is 202 with a queued Job; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until terminal, then save successful outputs. Unsaved candidate Files expire after 7 days.",
14544
+ http: "POST",
14545
+ path: "/media/v1/libraries/{library_id}/generations",
14546
+ streaming: "no",
14547
+ pagination: false,
14548
+ pathParams: [
14549
+ {
14550
+ name: "library_id",
14551
+ sdkName: "library_id",
14552
+ description: "Library ID returned by creation."
14553
+ }
14554
+ ],
14555
+ query: [],
14556
+ body: {
14557
+ required: true,
14558
+ fields: [
14559
+ {
14560
+ name: "intent",
14561
+ type: "string",
14562
+ required: true,
14563
+ description: "Generation operation; v1 accepts only video.generate text-to-video requests."
14564
+ },
14565
+ {
14566
+ name: "prompt",
14567
+ type: "string",
14568
+ required: true,
14569
+ description: "Text prompt describing the video to generate."
14570
+ },
14571
+ {
14572
+ name: "count",
14573
+ type: "integer",
14574
+ required: false,
14575
+ description: "Number of videos to generate; defaults to 1 and must be from 1 to 4."
14576
+ },
14577
+ {
14578
+ name: "duration_seconds",
14579
+ type: "integer",
14580
+ required: false,
14581
+ description: "Requested video duration in seconds; Router validates the model-specific supported durations."
14582
+ },
14583
+ {
14584
+ name: "aspect_ratio",
14585
+ type: "string",
14586
+ required: false,
14587
+ description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
14588
+ },
14589
+ {
14590
+ name: "model",
14591
+ type: "string",
14592
+ required: false,
14593
+ description: "Router model with video_generation capability; defaults to wan2.7-t2v."
14594
+ },
14595
+ {
14596
+ name: "save",
14597
+ type: "string",
14598
+ enum: [
14599
+ "candidate",
14600
+ "library"
14601
+ ],
14602
+ required: false,
14603
+ description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
14604
+ },
14605
+ {
14606
+ name: "asset_folder",
14607
+ type: "string",
14608
+ required: false,
14609
+ description: "Folder for assets saved automatically or by later save calls; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
14610
+ },
14611
+ {
14612
+ name: "tags",
14613
+ type: "array",
14614
+ itemType: "string",
14615
+ required: false,
14616
+ description: "Tags applied when an output becomes a library asset."
14617
+ },
14618
+ {
14619
+ name: "understanding",
14620
+ type: "string",
14621
+ enum: [
14622
+ "auto",
14623
+ "skip"
14624
+ ],
14625
+ required: false,
14626
+ description: "Understanding behavior when a candidate is saved as an asset; defaults to auto."
14627
+ },
14628
+ {
14629
+ name: "references",
14630
+ type: "array",
14631
+ itemType: "object",
14632
+ required: false,
14633
+ description: "Not supported in v1; omit this field. Only text-to-video is currently available."
14634
+ }
14635
+ ]
14636
+ }
14637
+ },
14638
+ {
14639
+ resource: "media.libraries.jobs",
14640
+ method: "list",
14641
+ summary: "List jobs",
14642
+ description: "List batch and video-generation jobs in a library. Filter by status and continue with next_cursor. Poll a generation Job until terminal, then save successful candidate outputs before they expire after 7 days.",
14643
+ http: "GET",
14644
+ path: "/media/v1/libraries/{library_id}/jobs",
14645
+ streaming: "no",
14646
+ pagination: true,
14647
+ pathParams: [
14648
+ {
14649
+ name: "library_id",
14650
+ sdkName: "library_id",
14651
+ description: "Library ID returned by creation."
14652
+ }
14653
+ ],
14654
+ query: [
14655
+ {
14656
+ name: "status",
14657
+ type: "string",
14658
+ enum: [
14659
+ "queued",
14660
+ "running",
14661
+ "completed",
14662
+ "completed_with_errors",
14663
+ "failed",
14664
+ "cancelled"
14665
+ ],
14666
+ required: false,
14667
+ description: "Filter jobs by their current status."
14668
+ },
14669
+ {
14670
+ name: "limit",
14671
+ type: "integer",
14672
+ required: false,
14673
+ description: "Maximum entries in this page, from 1 through 100; defaults to 100."
14674
+ },
14675
+ {
14676
+ name: "cursor",
14677
+ type: "string",
14678
+ required: false,
14679
+ description: "Job id from the previous page’s next_cursor; omit for the first page."
14680
+ }
14681
+ ]
14682
+ },
13444
14683
  {
13445
14684
  resource: "media.libraries.jobs",
13446
14685
  method: "retrieve",
13447
- summary: "Get job alias",
13448
- description: "Alias of batch retrieval. Read the job returned by a batch request, including terminal status, successful and failed counts, and individual failure codes.",
14686
+ summary: "Get job",
14687
+ description: "Read the current batch or video-generation Job status and progress. For generation, inspect outputs and failures, then save successful candidates before their preview and save window expires after 7 days.",
13449
14688
  http: "GET",
13450
14689
  path: "/media/v1/libraries/{library_id}/jobs/{job_id}",
13451
14690
  streaming: "no",
@@ -13459,16 +14698,101 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13459
14698
  {
13460
14699
  name: "job_id",
13461
14700
  sdkName: "job_id",
13462
- description: "Batch identifier returned by createBatch or batchAssets; resolved within this library."
14701
+ description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library."
14702
+ }
14703
+ ],
14704
+ query: []
14705
+ },
14706
+ {
14707
+ resource: "media.libraries.jobs",
14708
+ method: "cancel",
14709
+ summary: "Cancel job",
14710
+ description: "Cancel a queued or running generation job. Already completed outputs remain available to save; poll or read the returned Job to confirm its status.",
14711
+ http: "POST",
14712
+ path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
14713
+ streaming: "no",
14714
+ pagination: false,
14715
+ pathParams: [
14716
+ {
14717
+ name: "library_id",
14718
+ sdkName: "library_id",
14719
+ description: "Library ID returned by creation."
14720
+ },
14721
+ {
14722
+ name: "job_id",
14723
+ sdkName: "job_id",
14724
+ description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
13463
14725
  }
13464
14726
  ],
13465
14727
  query: []
13466
14728
  },
14729
+ {
14730
+ resource: "media.libraries.jobs.outputs.save",
14731
+ method: "create",
14732
+ summary: "Save generation output",
14733
+ description: "Save a successful candidate as a library asset. Candidate outputs expire after 7 days; save before expiry. Generation is charged per second when the job runs, not when an output is saved.",
14734
+ http: "POST",
14735
+ path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
14736
+ streaming: "no",
14737
+ pagination: false,
14738
+ pathParams: [
14739
+ {
14740
+ name: "library_id",
14741
+ sdkName: "library_id",
14742
+ description: "Library ID returned by creation."
14743
+ },
14744
+ {
14745
+ name: "job_id",
14746
+ sdkName: "job_id",
14747
+ description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
14748
+ },
14749
+ {
14750
+ name: "index",
14751
+ sdkName: "index",
14752
+ description: "Zero-based position of the candidate in the Job outputs array."
14753
+ }
14754
+ ],
14755
+ query: [],
14756
+ body: {
14757
+ required: false,
14758
+ fields: [
14759
+ {
14760
+ name: "public_id",
14761
+ type: "string",
14762
+ required: false,
14763
+ description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent."
14764
+ },
14765
+ {
14766
+ name: "asset_folder",
14767
+ type: "string",
14768
+ required: false,
14769
+ description: "Destination folder for the saved asset; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out."
14770
+ },
14771
+ {
14772
+ name: "tags",
14773
+ type: "array",
14774
+ itemType: "string",
14775
+ required: false,
14776
+ description: "Tags to apply to the saved asset."
14777
+ },
14778
+ {
14779
+ name: "understanding",
14780
+ type: "string",
14781
+ enum: [
14782
+ "auto",
14783
+ "skip"
14784
+ ],
14785
+ required: false,
14786
+ description: "Understanding behavior for the saved asset; defaults to auto."
14787
+ }
14788
+ ]
14789
+ }
14790
+ },
13467
14791
  {
13468
14792
  resource: "media.libraries.purge",
13469
14793
  method: "create",
13470
14794
  summary: "Purge library",
13471
- description: "Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.",
14795
+ description: "List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.",
13472
14796
  http: "POST",
13473
14797
  path: "/media/v1/libraries/{library_id}/purge",
13474
14798
  streaming: "no",
@@ -13486,7 +14810,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13486
14810
  resource: "media.libraries",
13487
14811
  method: "restore",
13488
14812
  summary: "Restore library",
13489
- description: "Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.",
14813
+ description: "Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.",
13490
14814
  http: "POST",
13491
14815
  path: "/media/v1/libraries/{library_id}/restore",
13492
14816
  streaming: "no",
@@ -13504,7 +14828,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13504
14828
  resource: "media.libraries.search",
13505
14829
  method: "create",
13506
14830
  summary: "Semantic search alias",
13507
- description: "Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.",
14831
+ description: "List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.",
13508
14832
  http: "POST",
13509
14833
  path: "/media/v1/libraries/{library_id}/search",
13510
14834
  streaming: "no",
@@ -13555,7 +14879,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13555
14879
  resource: "media.libraries.search.expression",
13556
14880
  method: "create",
13557
14881
  summary: "Expression search",
13558
- description: "Search active assets using the supported filter-expression syntax, sorting and cursor pagination. Empty expression matches all assets. Tags and context require with_field; inspect the exactness flags before treating counts as complete.",
14882
+ description: "Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.",
13559
14883
  http: "POST",
13560
14884
  path: "/media/v1/libraries/{library_id}/search/expression",
13561
14885
  streaming: "no",
@@ -13575,7 +14899,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13575
14899
  name: "expression",
13576
14900
  type: "string",
13577
14901
  required: false,
13578
- description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.'
14902
+ description: 'Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.'
13579
14903
  },
13580
14904
  {
13581
14905
  name: "sort_by",
@@ -13627,7 +14951,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13627
14951
  resource: "media.libraries.search.semantic",
13628
14952
  method: "create",
13629
14953
  summary: "Semantic search",
13630
- description: "Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.",
14954
+ description: "Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.",
13631
14955
  http: "POST",
13632
14956
  path: "/media/v1/libraries/{library_id}/search/semantic",
13633
14957
  streaming: "no",
@@ -13678,7 +15002,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13678
15002
  resource: "media.libraries.search.visual",
13679
15003
  method: "create",
13680
15004
  summary: "Visual search",
13681
- description: "Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.",
15005
+ description: "Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.",
13682
15006
  http: "POST",
13683
15007
  path: "/media/v1/libraries/{library_id}/search/visual",
13684
15008
  streaming: "no",
@@ -13721,6 +15045,67 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
13721
15045
  ]
13722
15046
  }
13723
15047
  },
15048
+ {
15049
+ resource: "media.libraries.understandings",
15050
+ method: "list",
15051
+ summary: "List understanding results across a library",
15052
+ description: "Read current understanding entries across one library without fetching every asset separately. Use library_id from creation or listing. folder includes descendants; kinds is a comma-separated list of output kinds. Entries are ordered by asset_id and then understanding id. Continue with next_cursor and the same folder and kinds; limit defaults to 100 and cannot exceed 100. Superseded, deleted and old-version entries are excluded. During historical backfill, this method returns 503 CAPACITY rather than incomplete pages; poll failureSummary until counts_complete is true, then start pagination. Example: GET /media/v1/libraries/lib_example/understandings?folder=travel&kinds=caption,transcript&limit=100.",
15053
+ http: "GET",
15054
+ path: "/media/v1/libraries/{library_id}/understandings",
15055
+ streaming: "no",
15056
+ pagination: true,
15057
+ pathParams: [
15058
+ {
15059
+ name: "library_id",
15060
+ sdkName: "library_id",
15061
+ description: "Library ID returned by creation."
15062
+ }
15063
+ ],
15064
+ query: [
15065
+ {
15066
+ name: "folder",
15067
+ type: "string",
15068
+ required: false,
15069
+ description: "Folder path including all descendants; omitted or empty selects the entire library."
15070
+ },
15071
+ {
15072
+ name: "kinds",
15073
+ type: "string",
15074
+ required: false,
15075
+ description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind."
15076
+ },
15077
+ {
15078
+ name: "cursor",
15079
+ type: "string",
15080
+ required: false,
15081
+ description: "Cursor from the previous next_cursor."
15082
+ },
15083
+ {
15084
+ name: "limit",
15085
+ type: "integer",
15086
+ required: false,
15087
+ description: "Maximum entries in this page, from 1 through 100; defaults to 100."
15088
+ }
15089
+ ]
15090
+ },
15091
+ {
15092
+ resource: "media.libraries.understandings",
15093
+ method: "retrieveFailureSummary",
15094
+ summary: "Summarize understanding failures",
15095
+ description: "Inspect current understanding failures before retrying. Use library_id from library creation or listing. Groups include code, output kind, actual producer model, retryability and up to five sample asset IDs. At most 1024 detailed groups plus two overflow groups are returned; overflow groups separate retryable and unrecoverable entries and mark overflow=true. Unknown failure codes remain retryable. Historical counts are provisional while counts_complete is false. Example: GET /media/v1/libraries/lib_example/understandings/failure_summary.",
15096
+ http: "GET",
15097
+ path: "/media/v1/libraries/{library_id}/understandings/failure_summary",
15098
+ streaming: "no",
15099
+ pagination: false,
15100
+ pathParams: [
15101
+ {
15102
+ name: "library_id",
15103
+ sdkName: "library_id",
15104
+ description: "Library ID returned by creation."
15105
+ }
15106
+ ],
15107
+ query: []
15108
+ },
13724
15109
  {
13725
15110
  resource: "meta.docs",
13726
15111
  method: "search",
@@ -14008,25 +15393,25 @@ services (model, agent, automation…); call the operation you need and read its
14008
15393
  name: "model",
14009
15394
  type: "string",
14010
15395
  required: true,
14011
- description: "Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect."
15396
+ description: "Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix."
14012
15397
  },
14013
15398
  {
14014
15399
  name: "file",
14015
15400
  type: "string",
14016
15401
  required: true,
14017
- description: "Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect."
15402
+ description: "Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model."
14018
15403
  },
14019
15404
  {
14020
15405
  name: "language",
14021
15406
  type: "string",
14022
15407
  required: false,
14023
- description: "Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502."
15408
+ description: "Source language code when known; omit to let the model detect the language."
14024
15409
  },
14025
15410
  {
14026
15411
  name: "prompt",
14027
15412
  type: "string",
14028
15413
  required: false,
14029
- description: "Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400."
15414
+ description: "Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model."
14030
15415
  },
14031
15416
  {
14032
15417
  name: "response_format",
@@ -14034,20 +15419,22 @@ services (model, agent, automation…); call the operation you need and read its
14034
15419
  enum: [
14035
15420
  "json",
14036
15421
  "text",
14037
- "verbose_json"
15422
+ "verbose_json",
15423
+ "diarized_json"
14038
15424
  ],
14039
15425
  required: false,
14040
- description: "Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400."
15426
+ description: "Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json."
14041
15427
  },
14042
15428
  {
14043
15429
  name: "timestamp_granularities[]",
14044
15430
  type: "array",
14045
15431
  itemType: "string",
14046
15432
  enum: [
15433
+ "word",
14047
15434
  "segment"
14048
15435
  ],
14049
15436
  required: false,
14050
- description: "Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps."
15437
+ description: "Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models."
14051
15438
  },
14052
15439
  {
14053
15440
  name: "temperature",
@@ -15940,263 +17327,796 @@ for more details.`
15940
17327
  path: "/model/v1/systemone",
15941
17328
  streaming: "no",
15942
17329
  pagination: false,
15943
- pathParams: [],
17330
+ pathParams: [],
17331
+ query: [],
17332
+ body: {
17333
+ required: true,
17334
+ fields: [
17335
+ {
17336
+ name: "model",
17337
+ type: "string",
17338
+ required: true,
17339
+ description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
17340
+ },
17341
+ {
17342
+ name: "state",
17343
+ type: "object",
17344
+ required: true,
17345
+ description: "Shared content evaluated by every question, supplied as text, a JSON object or an array."
17346
+ },
17347
+ {
17348
+ name: "questions",
17349
+ type: "object",
17350
+ required: true,
17351
+ description: "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported."
17352
+ },
17353
+ {
17354
+ name: "assets",
17355
+ type: "object",
17356
+ required: false,
17357
+ description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
17358
+ }
17359
+ ]
17360
+ }
17361
+ },
17362
+ {
17363
+ resource: "model.videos",
17364
+ method: "list",
17365
+ summary: "List videos",
17366
+ description: "OpenAI video API with OpenRouter request and response extensions.",
17367
+ http: "GET",
17368
+ path: "/model/v1/videos",
17369
+ streaming: "no",
17370
+ pagination: false,
17371
+ pathParams: [],
17372
+ query: [
17373
+ {
17374
+ name: "after",
17375
+ type: "string",
17376
+ required: false,
17377
+ description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails."
17378
+ },
17379
+ {
17380
+ name: "limit",
17381
+ type: "integer",
17382
+ required: false,
17383
+ description: "Maximum number of jobs per page, from 1 to 100; defaults to 20."
17384
+ },
17385
+ {
17386
+ name: "order",
17387
+ type: "string",
17388
+ enum: [
17389
+ "asc",
17390
+ "desc"
17391
+ ],
17392
+ required: false,
17393
+ description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first."
17394
+ }
17395
+ ]
17396
+ },
17397
+ {
17398
+ resource: "model.videos",
17399
+ method: "create",
17400
+ summary: "Create video",
17401
+ description: "OpenAI video API with OpenRouter request and response extensions.",
17402
+ http: "POST",
17403
+ path: "/model/v1/videos",
17404
+ streaming: "no",
17405
+ pagination: false,
17406
+ multipart: true,
17407
+ pathParams: [],
17408
+ query: [],
17409
+ body: {
17410
+ required: true,
17411
+ fields: [
17412
+ {
17413
+ name: "model",
17414
+ type: "string",
17415
+ required: false,
17416
+ description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation."
17417
+ },
17418
+ {
17419
+ name: "prompt",
17420
+ type: "string",
17421
+ required: true,
17422
+ description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400."
17423
+ },
17424
+ {
17425
+ name: "seconds",
17426
+ type: "object",
17427
+ required: false,
17428
+ description: "Takes precedence over duration."
17429
+ },
17430
+ {
17431
+ name: "duration",
17432
+ type: "integer",
17433
+ required: false,
17434
+ description: "Length of the video in whole seconds. `seconds` takes precedence when both are given."
17435
+ },
17436
+ {
17437
+ name: "size",
17438
+ type: "string",
17439
+ required: false,
17440
+ description: "Output resolution as `WIDTHxHEIGHT`, for example `1280x720`. Router support (partial): Subject to model capability preflight. Earlier wan2.7-t2v samples always produced 1280x720; accepted sizes are not guaranteed pixel-for-pixel."
17441
+ },
17442
+ {
17443
+ name: "input_reference",
17444
+ type: "object",
17445
+ required: false,
17446
+ description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB)."
17447
+ },
17448
+ {
17449
+ name: "input_references",
17450
+ type: "array",
17451
+ itemType: "object",
17452
+ required: false,
17453
+ description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
17454
+ },
17455
+ {
17456
+ name: "frame_images",
17457
+ type: "array",
17458
+ itemType: "object",
17459
+ required: false,
17460
+ description: "Images that pin the first and last frame; at most 2 entries."
17461
+ },
17462
+ {
17463
+ name: "resolution",
17464
+ type: "string",
17465
+ required: false,
17466
+ description: "Output resolution label such as `720p`, for models that take a label instead of `size`."
17467
+ },
17468
+ {
17469
+ name: "aspect_ratio",
17470
+ type: "string",
17471
+ required: false,
17472
+ description: "Aspect ratio of the video such as `16:9`."
17473
+ },
17474
+ {
17475
+ name: "generate_audio",
17476
+ type: "boolean",
17477
+ required: false,
17478
+ description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio."
17479
+ },
17480
+ {
17481
+ name: "seed",
17482
+ type: "integer",
17483
+ required: false,
17484
+ description: "Seed for reproducible generation, on models that support it."
17485
+ },
17486
+ {
17487
+ name: "callback_url",
17488
+ type: "string",
17489
+ required: false,
17490
+ description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks."
17491
+ },
17492
+ {
17493
+ name: "quality",
17494
+ type: "string",
17495
+ required: false,
17496
+ description: "Provider-specific quality setting."
17497
+ }
17498
+ ]
17499
+ }
17500
+ },
17501
+ {
17502
+ resource: "model.videos",
17503
+ method: "delete",
17504
+ summary: "Delete video",
17505
+ description: "OpenAI video API with OpenRouter request and response extensions.",
17506
+ http: "DELETE",
17507
+ path: "/model/v1/videos/{video_id}",
17508
+ streaming: "no",
17509
+ pagination: false,
17510
+ pathParams: [
17511
+ {
17512
+ name: "video_id",
17513
+ sdkName: "video_id",
17514
+ description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
17515
+ }
17516
+ ],
17517
+ query: []
17518
+ },
17519
+ {
17520
+ resource: "model.videos",
17521
+ method: "retrieve",
17522
+ summary: "Retrieve video",
17523
+ description: "OpenAI video API with OpenRouter request and response extensions.",
17524
+ http: "GET",
17525
+ path: "/model/v1/videos/{video_id}",
17526
+ streaming: "no",
17527
+ pagination: false,
17528
+ pathParams: [
17529
+ {
17530
+ name: "video_id",
17531
+ sdkName: "video_id",
17532
+ description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
17533
+ }
17534
+ ],
17535
+ query: []
17536
+ },
17537
+ {
17538
+ resource: "model.videos",
17539
+ method: "retrieveContent",
17540
+ summary: "Download video",
17541
+ description: "OpenAI video API with OpenRouter request and response extensions.",
17542
+ http: "GET",
17543
+ path: "/model/v1/videos/{video_id}/content",
17544
+ streaming: "no",
17545
+ pagination: false,
17546
+ pathParams: [
17547
+ {
17548
+ name: "video_id",
17549
+ sdkName: "video_id",
17550
+ description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
17551
+ }
17552
+ ],
17553
+ query: [
17554
+ {
17555
+ name: "variant",
17556
+ type: "string",
17557
+ enum: [
17558
+ "video",
17559
+ "thumbnail",
17560
+ "spritesheet"
17561
+ ],
17562
+ required: false,
17563
+ description: "Spritesheet is not available in this release (400)."
17564
+ },
17565
+ {
17566
+ name: "index",
17567
+ type: "integer",
17568
+ required: false,
17569
+ description: "Output index; this release produces index 0. variant takes precedence."
17570
+ }
17571
+ ]
17572
+ },
17573
+ {
17574
+ resource: "model.videos",
17575
+ method: "remix",
17576
+ summary: "Remix video",
17577
+ description: "Not supported in this release; always returns 400.",
17578
+ http: "POST",
17579
+ path: "/model/v1/videos/{video_id}/remix",
17580
+ streaming: "no",
17581
+ pagination: false,
17582
+ pathParams: [
17583
+ {
17584
+ name: "video_id",
17585
+ sdkName: "video_id",
17586
+ description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
17587
+ }
17588
+ ],
17589
+ query: []
17590
+ },
17591
+ {
17592
+ resource: "ontology.changesets",
17593
+ method: "create",
17594
+ summary: "Apply changeset",
17595
+ description: "Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.",
17596
+ http: "POST",
17597
+ path: "/ontology/v1/changesets",
17598
+ streaming: "no",
17599
+ pagination: false,
17600
+ pathParams: [],
17601
+ query: [],
17602
+ body: {
17603
+ required: true,
17604
+ fields: [
17605
+ {
17606
+ name: "at",
17607
+ type: "string",
17608
+ required: true,
17609
+ description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it."
17610
+ },
17611
+ {
17612
+ name: "scope",
17613
+ type: "string",
17614
+ required: false,
17615
+ description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading."
17616
+ },
17617
+ {
17618
+ name: "ops",
17619
+ type: "array",
17620
+ itemType: "object",
17621
+ required: true,
17622
+ description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires."
17623
+ }
17624
+ ]
17625
+ }
17626
+ },
17627
+ {
17628
+ resource: "ontology.nodes",
17629
+ method: "list",
17630
+ summary: "List nodes",
17631
+ description: "Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.",
17632
+ http: "GET",
17633
+ path: "/ontology/v1/nodes",
17634
+ streaming: "no",
17635
+ pagination: true,
17636
+ pathParams: [],
17637
+ query: [
17638
+ {
17639
+ name: "type",
17640
+ type: "array",
17641
+ itemType: "string",
17642
+ required: false,
17643
+ description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type."
17644
+ },
17645
+ {
17646
+ name: "q",
17647
+ type: "string",
17648
+ required: false,
17649
+ description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter."
17650
+ },
17651
+ {
17652
+ name: "owner",
17653
+ type: "string",
17654
+ required: false,
17655
+ description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner."
17656
+ },
17657
+ {
17658
+ name: "as_of",
17659
+ type: "string",
17660
+ required: false,
17661
+ description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state."
17662
+ },
17663
+ {
17664
+ name: "limit",
17665
+ type: "integer",
17666
+ required: false,
17667
+ description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
17668
+ },
17669
+ {
17670
+ name: "cursor",
17671
+ type: "string",
17672
+ required: false,
17673
+ description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
17674
+ }
17675
+ ]
17676
+ },
17677
+ {
17678
+ resource: "ontology.nodes",
17679
+ method: "create",
17680
+ summary: "Create node",
17681
+ description: "Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
17682
+ http: "POST",
17683
+ path: "/ontology/v1/nodes",
17684
+ streaming: "no",
17685
+ pagination: false,
17686
+ pathParams: [],
17687
+ query: [],
17688
+ body: {
17689
+ required: true,
17690
+ fields: [
17691
+ {
17692
+ name: "type",
17693
+ type: "string",
17694
+ required: true,
17695
+ description: "Registered node type name from types.list; an unregistered name is refused and nothing is written."
17696
+ },
17697
+ {
17698
+ name: "ref",
17699
+ type: "string",
17700
+ required: false,
17701
+ description: "Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record."
17702
+ },
17703
+ {
17704
+ name: "name",
17705
+ type: "string",
17706
+ required: true,
17707
+ description: "Display name of the entity, at most 200 characters."
17708
+ },
17709
+ {
17710
+ name: "aliases",
17711
+ type: "array",
17712
+ itemType: "string",
17713
+ required: false,
17714
+ description: "Other names this entity is known by; they are matched by search alongside the name."
17715
+ },
17716
+ {
17717
+ name: "description",
17718
+ type: "string",
17719
+ required: false,
17720
+ description: "Profile of the entity, at most 500 characters; omit or null for none."
17721
+ },
17722
+ {
17723
+ name: "owner",
17724
+ type: "string",
17725
+ required: false,
17726
+ description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide."
17727
+ }
17728
+ ]
17729
+ }
17730
+ },
17731
+ {
17732
+ resource: "ontology.nodes",
17733
+ method: "retrieve",
17734
+ summary: "Retrieve node",
17735
+ description: "Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.",
17736
+ http: "GET",
17737
+ path: "/ontology/v1/nodes/{node_id}",
17738
+ streaming: "no",
17739
+ pagination: false,
17740
+ pathParams: [
17741
+ {
17742
+ name: "node_id",
17743
+ sdkName: "node_id",
17744
+ description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
17745
+ }
17746
+ ],
17747
+ query: [
17748
+ {
17749
+ name: "expand",
17750
+ type: "string",
17751
+ enum: [
17752
+ "relations"
17753
+ ],
17754
+ required: false,
17755
+ description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone."
17756
+ },
17757
+ {
17758
+ name: "as_of",
17759
+ type: "string",
17760
+ required: false,
17761
+ description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state."
17762
+ }
17763
+ ]
17764
+ },
17765
+ {
17766
+ resource: "ontology.nodes",
17767
+ method: "update",
17768
+ summary: "Update node",
17769
+ description: "Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.",
17770
+ http: "PATCH",
17771
+ path: "/ontology/v1/nodes/{node_id}",
17772
+ streaming: "no",
17773
+ pagination: false,
17774
+ pathParams: [
17775
+ {
17776
+ name: "node_id",
17777
+ sdkName: "node_id",
17778
+ description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
17779
+ }
17780
+ ],
17781
+ query: [],
17782
+ body: {
17783
+ required: true,
17784
+ fields: [
17785
+ {
17786
+ name: "name",
17787
+ type: "string",
17788
+ required: false,
17789
+ description: "New display name, at most 200 characters; omit to keep the current name."
17790
+ },
17791
+ {
17792
+ name: "aliases",
17793
+ type: "array",
17794
+ itemType: "string",
17795
+ required: false,
17796
+ description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them."
17797
+ },
17798
+ {
17799
+ name: "description",
17800
+ type: "string",
17801
+ required: false,
17802
+ description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it."
17803
+ }
17804
+ ]
17805
+ }
17806
+ },
17807
+ {
17808
+ resource: "ontology.nodes.merge",
17809
+ method: "create",
17810
+ summary: "Merge node",
17811
+ description: "Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.",
17812
+ http: "POST",
17813
+ path: "/ontology/v1/nodes/{node_id}/merge",
17814
+ streaming: "no",
17815
+ pagination: false,
17816
+ pathParams: [
17817
+ {
17818
+ name: "node_id",
17819
+ sdkName: "node_id",
17820
+ description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted."
17821
+ }
17822
+ ],
15944
17823
  query: [],
15945
17824
  body: {
15946
17825
  required: true,
15947
17826
  fields: [
15948
17827
  {
15949
- name: "model",
17828
+ name: "into",
15950
17829
  type: "string",
15951
17830
  required: true,
15952
- description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
15953
- },
15954
- {
15955
- name: "state",
15956
- type: "object",
15957
- required: true,
15958
- description: "Shared content evaluated by every question, supplied as text, a JSON object or an array."
15959
- },
15960
- {
15961
- name: "questions",
15962
- type: "object",
15963
- required: true,
15964
- description: "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported."
15965
- },
15966
- {
15967
- name: "assets",
15968
- type: "object",
15969
- required: false,
15970
- description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
17831
+ description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it."
15971
17832
  }
15972
17833
  ]
15973
17834
  }
15974
17835
  },
15975
17836
  {
15976
- resource: "model.videos",
17837
+ resource: "ontology.relations",
15977
17838
  method: "list",
15978
- summary: "List videos",
15979
- description: "OpenAI video API with OpenRouter request and response extensions.",
17839
+ summary: "List relations",
17840
+ description: "Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.",
15980
17841
  http: "GET",
15981
- path: "/model/v1/videos",
17842
+ path: "/ontology/v1/relations",
15982
17843
  streaming: "no",
15983
- pagination: false,
17844
+ pagination: true,
15984
17845
  pathParams: [],
15985
17846
  query: [
15986
17847
  {
15987
- name: "after",
17848
+ name: "node",
15988
17849
  type: "string",
15989
17850
  required: false,
15990
- description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails."
17851
+ description: "A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node."
15991
17852
  },
15992
17853
  {
15993
- name: "limit",
15994
- type: "integer",
17854
+ name: "type",
17855
+ type: "array",
17856
+ itemType: "string",
15995
17857
  required: false,
15996
- description: "Maximum number of jobs per page, from 1 to 100; defaults to 20."
17858
+ description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type."
15997
17859
  },
15998
17860
  {
15999
- name: "order",
17861
+ name: "direction",
16000
17862
  type: "string",
16001
17863
  enum: [
16002
- "asc",
16003
- "desc"
17864
+ "out",
17865
+ "in",
17866
+ "both"
16004
17867
  ],
16005
17868
  required: false,
16006
- description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first."
17869
+ description: "Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node."
17870
+ },
17871
+ {
17872
+ name: "as_of",
17873
+ type: "string",
17874
+ required: false,
17875
+ description: "ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state."
17876
+ },
17877
+ {
17878
+ name: "include_invalid",
17879
+ type: "boolean",
17880
+ required: false,
17881
+ description: "Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only."
17882
+ },
17883
+ {
17884
+ name: "limit",
17885
+ type: "integer",
17886
+ required: false,
17887
+ description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
17888
+ },
17889
+ {
17890
+ name: "cursor",
17891
+ type: "string",
17892
+ required: false,
17893
+ description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
16007
17894
  }
16008
17895
  ]
16009
17896
  },
16010
17897
  {
16011
- resource: "model.videos",
17898
+ resource: "ontology.relations",
16012
17899
  method: "create",
16013
- summary: "Create video",
16014
- description: "OpenAI video API with OpenRouter request and response extensions.",
17900
+ summary: "Create relation",
17901
+ description: "Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.",
16015
17902
  http: "POST",
16016
- path: "/model/v1/videos",
17903
+ path: "/ontology/v1/relations",
16017
17904
  streaming: "no",
16018
17905
  pagination: false,
16019
- multipart: true,
16020
17906
  pathParams: [],
16021
17907
  query: [],
16022
17908
  body: {
16023
17909
  required: true,
16024
17910
  fields: [
16025
17911
  {
16026
- name: "model",
17912
+ name: "type",
16027
17913
  type: "string",
16028
- required: false,
16029
- description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation."
17914
+ required: true,
17915
+ description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused."
16030
17916
  },
16031
17917
  {
16032
- name: "prompt",
17918
+ name: "source",
16033
17919
  type: "string",
16034
17920
  required: true,
16035
- description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400."
16036
- },
16037
- {
16038
- name: "seconds",
16039
- type: "object",
16040
- required: false,
16041
- description: "Takes precedence over duration."
17921
+ description: "Node id the fact starts from, from nodes.list or nodes.create."
16042
17922
  },
16043
17923
  {
16044
- name: "duration",
16045
- type: "integer",
16046
- required: false,
16047
- description: "Length of the video in whole seconds. `seconds` takes precedence when both are given."
17924
+ name: "target",
17925
+ type: "string",
17926
+ required: true,
17927
+ description: "Node id the fact points at, from nodes.list or nodes.create."
16048
17928
  },
16049
17929
  {
16050
- name: "size",
17930
+ name: "fact",
16051
17931
  type: "string",
16052
- required: false,
16053
- description: "Output resolution as `WIDTHxHEIGHT`, for example `1280x720`. Router support (partial): Subject to model capability preflight. Earlier wan2.7-t2v samples always produced 1280x720; accepted sizes are not guaranteed pixel-for-pixel."
17932
+ required: true,
17933
+ description: "The relationship in one sentence, at most 280 characters, written to read back on its own."
16054
17934
  },
16055
17935
  {
16056
- name: "input_reference",
16057
- type: "object",
17936
+ name: "valid_at",
17937
+ type: "string",
16058
17938
  required: false,
16059
- description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB)."
17939
+ description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated."
16060
17940
  },
16061
17941
  {
16062
- name: "input_references",
16063
- type: "array",
16064
- itemType: "object",
17942
+ name: "owner",
17943
+ type: "string",
16065
17944
  required: false,
16066
- description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`."
16067
- },
17945
+ description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide."
17946
+ }
17947
+ ]
17948
+ }
17949
+ },
17950
+ {
17951
+ resource: "ontology.relations",
17952
+ method: "retrieve",
17953
+ summary: "Retrieve relation",
17954
+ description: "Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.",
17955
+ http: "GET",
17956
+ path: "/ontology/v1/relations/{relation_id}",
17957
+ streaming: "no",
17958
+ pagination: false,
17959
+ pathParams: [
17960
+ {
17961
+ name: "relation_id",
17962
+ sdkName: "relation_id",
17963
+ description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
17964
+ }
17965
+ ],
17966
+ query: []
17967
+ },
17968
+ {
17969
+ resource: "ontology.relations.invalidate",
17970
+ method: "create",
17971
+ summary: "Invalidate relation",
17972
+ description: "Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.",
17973
+ http: "POST",
17974
+ path: "/ontology/v1/relations/{relation_id}/invalidate",
17975
+ streaming: "no",
17976
+ pagination: false,
17977
+ pathParams: [
17978
+ {
17979
+ name: "relation_id",
17980
+ sdkName: "relation_id",
17981
+ description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted."
17982
+ }
17983
+ ],
17984
+ query: [],
17985
+ body: {
17986
+ required: true,
17987
+ fields: [
16068
17988
  {
16069
- name: "frame_images",
16070
- type: "array",
16071
- itemType: "object",
16072
- required: false,
16073
- description: "Images that pin the first and last frame; at most 2 entries."
17989
+ name: "invalid_at",
17990
+ type: "string",
17991
+ required: true,
17992
+ description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation."
16074
17993
  },
16075
17994
  {
16076
- name: "resolution",
17995
+ name: "superseded_by",
16077
17996
  type: "string",
16078
17997
  required: false,
16079
- description: "Output resolution label such as `720p`, for models that take a label instead of `size`."
17998
+ description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it."
16080
17999
  },
16081
18000
  {
16082
- name: "aspect_ratio",
18001
+ name: "reason",
16083
18002
  type: "string",
16084
18003
  required: false,
16085
- description: "Aspect ratio of the video such as `16:9`."
16086
- },
18004
+ description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit."
18005
+ }
18006
+ ]
18007
+ }
18008
+ },
18009
+ {
18010
+ resource: "ontology.search",
18011
+ method: "create",
18012
+ summary: "Search nodes",
18013
+ description: "Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.",
18014
+ http: "POST",
18015
+ path: "/ontology/v1/search",
18016
+ streaming: "no",
18017
+ pagination: false,
18018
+ pathParams: [],
18019
+ query: [],
18020
+ body: {
18021
+ required: true,
18022
+ fields: [
16087
18023
  {
16088
- name: "generate_audio",
16089
- type: "boolean",
16090
- required: false,
16091
- description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio."
18024
+ name: "text",
18025
+ type: "string",
18026
+ required: true,
18027
+ description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused."
16092
18028
  },
16093
18029
  {
16094
- name: "seed",
16095
- type: "integer",
18030
+ name: "types",
18031
+ type: "array",
18032
+ itemType: "string",
16096
18033
  required: false,
16097
- description: "Seed for reproducible generation, on models that support it."
18034
+ description: "Registered node type names to search within; omit to search every type."
16098
18035
  },
16099
18036
  {
16100
- name: "callback_url",
16101
- type: "string",
18037
+ name: "window",
18038
+ type: "object",
16102
18039
  required: false,
16103
- description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks."
18040
+ description: "Restrict matches to facts recorded within a period; omit to search all time."
16104
18041
  },
16105
18042
  {
16106
- name: "quality",
16107
- type: "string",
18043
+ name: "limit",
18044
+ type: "integer",
16108
18045
  required: false,
16109
- description: "Provider-specific quality setting."
18046
+ description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted."
16110
18047
  }
16111
18048
  ]
16112
18049
  }
16113
18050
  },
16114
18051
  {
16115
- resource: "model.videos",
16116
- method: "delete",
16117
- summary: "Delete video",
16118
- description: "OpenAI video API with OpenRouter request and response extensions.",
16119
- http: "DELETE",
16120
- path: "/model/v1/videos/{video_id}",
16121
- streaming: "no",
16122
- pagination: false,
16123
- pathParams: [
16124
- {
16125
- name: "video_id",
16126
- sdkName: "video_id",
16127
- description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
16128
- }
16129
- ],
16130
- query: []
16131
- },
16132
- {
16133
- resource: "model.videos",
16134
- method: "retrieve",
16135
- summary: "Retrieve video",
16136
- description: "OpenAI video API with OpenRouter request and response extensions.",
18052
+ resource: "ontology.types",
18053
+ method: "list",
18054
+ summary: "List types",
18055
+ description: "Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.",
16137
18056
  http: "GET",
16138
- path: "/model/v1/videos/{video_id}",
18057
+ path: "/ontology/v1/types",
16139
18058
  streaming: "no",
16140
18059
  pagination: false,
16141
- pathParams: [
16142
- {
16143
- name: "video_id",
16144
- sdkName: "video_id",
16145
- description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
16146
- }
16147
- ],
18060
+ pathParams: [],
16148
18061
  query: []
16149
18062
  },
16150
18063
  {
16151
- resource: "model.videos",
16152
- method: "retrieveContent",
16153
- summary: "Download video",
16154
- description: "OpenAI video API with OpenRouter request and response extensions.",
16155
- http: "GET",
16156
- path: "/model/v1/videos/{video_id}/content",
18064
+ resource: "ontology.types",
18065
+ method: "create",
18066
+ summary: "Register type",
18067
+ description: "Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.",
18068
+ http: "POST",
18069
+ path: "/ontology/v1/types",
16157
18070
  streaming: "no",
16158
18071
  pagination: false,
16159
- pathParams: [
16160
- {
16161
- name: "video_id",
16162
- sdkName: "video_id",
16163
- description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
16164
- }
16165
- ],
16166
- query: [
16167
- {
16168
- name: "variant",
16169
- type: "string",
16170
- enum: [
16171
- "video",
16172
- "thumbnail",
16173
- "spritesheet"
16174
- ],
16175
- required: false,
16176
- description: "Spritesheet is not available in this release (400)."
16177
- },
16178
- {
16179
- name: "index",
16180
- type: "integer",
16181
- required: false,
16182
- description: "Output index; this release produces index 0. variant takes precedence."
16183
- }
16184
- ]
18072
+ pathParams: [],
18073
+ query: [],
18074
+ body: {
18075
+ required: true,
18076
+ fields: [
18077
+ {
18078
+ name: "owner",
18079
+ type: "string",
18080
+ required: true,
18081
+ description: "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against."
18082
+ },
18083
+ {
18084
+ name: "version",
18085
+ type: "integer",
18086
+ required: true,
18087
+ description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything."
18088
+ },
18089
+ {
18090
+ name: "nodes",
18091
+ type: "array",
18092
+ itemType: "object",
18093
+ required: true,
18094
+ description: "Node types this owner registers."
18095
+ },
18096
+ {
18097
+ name: "edges",
18098
+ type: "array",
18099
+ itemType: "object",
18100
+ required: true,
18101
+ description: "Relation types this owner registers."
18102
+ }
18103
+ ]
18104
+ }
16185
18105
  },
16186
18106
  {
16187
- resource: "model.videos",
16188
- method: "remix",
16189
- summary: "Remix video",
16190
- description: "Not supported in this release; always returns 400.",
16191
- http: "POST",
16192
- path: "/model/v1/videos/{video_id}/remix",
18107
+ resource: "ontology.types",
18108
+ method: "retrieve",
18109
+ summary: "Retrieve type",
18110
+ description: "Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.",
18111
+ http: "GET",
18112
+ path: "/ontology/v1/types/{name}",
16193
18113
  streaming: "no",
16194
18114
  pagination: false,
16195
18115
  pathParams: [
16196
18116
  {
16197
- name: "video_id",
16198
- sdkName: "video_id",
16199
- description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400."
18117
+ name: "name",
18118
+ sdkName: "name",
18119
+ description: "A type name from types.list, with its dots preserved — a display label is not accepted."
16200
18120
  }
16201
18121
  ],
16202
18122
  query: []
@@ -16569,6 +18489,31 @@ for more details.`
16569
18489
  ]
16570
18490
  }
16571
18491
  },
18492
+ {
18493
+ resource: "organization.members",
18494
+ method: "list",
18495
+ summary: "List organization members",
18496
+ description: "Concepts follow GitHub org members: find a person's user id, for example to assign an approver to an approval task. Lists only members of the organization behind your API key or runtime token, ordered by joined_at ascending (membership id breaks ties). Ask the user who should approve, then use that member's id. Emails are visible only within this organization. The request cannot select another organization. Pass next_page unchanged as page; null means the end. Read-only; no usage charge. Example: GET /organization/v1/members?limit=20.",
18497
+ http: "GET",
18498
+ path: "/organization/v1/members",
18499
+ streaming: "no",
18500
+ pagination: false,
18501
+ pathParams: [],
18502
+ query: [
18503
+ {
18504
+ name: "limit",
18505
+ type: "integer",
18506
+ required: false,
18507
+ description: "Maximum members per page, from 1 to 100; defaults to 20."
18508
+ },
18509
+ {
18510
+ name: "page",
18511
+ type: "string",
18512
+ required: false,
18513
+ description: "Opaque next_page cursor returned by the previous response; omit for the first page."
18514
+ }
18515
+ ]
18516
+ },
16572
18517
  {
16573
18518
  resource: "organization.usage",
16574
18519
  method: "list",
@@ -18899,7 +20844,7 @@ for more details.`
18899
20844
  resource: "ticket.labels",
18900
20845
  method: "create",
18901
20846
  summary: "Create or add labels",
18902
- description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
20847
+ description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
18903
20848
  http: "POST",
18904
20849
  path: "/ticket/v1/labels",
18905
20850
  streaming: "no",
@@ -18941,7 +20886,7 @@ for more details.`
18941
20886
  resource: "ticket.labels",
18942
20887
  method: "delete",
18943
20888
  summary: "Remove labels",
18944
- description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
20889
+ description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
18945
20890
  http: "DELETE",
18946
20891
  path: "/ticket/v1/labels/{name}",
18947
20892
  streaming: "no",
@@ -18966,7 +20911,7 @@ for more details.`
18966
20911
  resource: "ticket.labels",
18967
20912
  method: "update",
18968
20913
  summary: "Update labels",
18969
- description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.",
20914
+ description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.",
18970
20915
  http: "PATCH",
18971
20916
  path: "/ticket/v1/labels/{name}",
18972
20917
  streaming: "no",
@@ -19262,7 +21207,7 @@ for more details.`
19262
21207
  name: "filter",
19263
21208
  type: "string",
19264
21209
  required: false,
19265
- description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
21210
+ description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
19266
21211
  }
19267
21212
  ]
19268
21213
  },
@@ -20368,7 +22313,7 @@ for more details.`
20368
22313
  resource: "vault.vaults",
20369
22314
  method: "create",
20370
22315
  summary: "Create vault",
20371
- description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Unlike Anthropic, Agent sessions do not accept nonempty vault_ids; storing a credential or adding its ID to metadata does not enable vault-backed MCP authentication. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
22316
+ description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.",
20372
22317
  http: "POST",
20373
22318
  path: "/vault/v1/vaults",
20374
22319
  streaming: "no",
@@ -20901,6 +22846,8 @@ function problemFrom(status, headers, body, statusText) {
20901
22846
  param: typeof param === "string" ? param : param === null || nested.param === null ? null : undefined,
20902
22847
  errors: Array.isArray(value.errors) ? value.errors : [],
20903
22848
  requestId: headers.get("x-request-id") ?? string(value.requestId) ?? string(value.request_id),
22849
+ docUrl: string(nested.doc_url) ?? string(value.doc_url) ?? string(nested.docUrl) ?? string(value.docUrl),
22850
+ describe: string(nested.describe) ?? string(value.describe),
20904
22851
  raw: body
20905
22852
  };
20906
22853
  }
@@ -20914,6 +22861,8 @@ class PraxisError extends Error {
20914
22861
  errors;
20915
22862
  requestId;
20916
22863
  param;
22864
+ docUrl;
22865
+ describe;
20917
22866
  raw;
20918
22867
  constructor(problem = {}, options) {
20919
22868
  super(problem.message ?? problem.detail ?? problem.title ?? `Praxis request failed${problem.status ? ` (${problem.status})` : ""}`, options);
@@ -20926,6 +22875,8 @@ class PraxisError extends Error {
20926
22875
  this.errors = problem.errors ?? [];
20927
22876
  this.requestId = problem.requestId;
20928
22877
  this.param = problem.param;
22878
+ this.docUrl = problem.docUrl;
22879
+ this.describe = problem.describe;
20929
22880
  this.raw = problem.raw;
20930
22881
  }
20931
22882
  static fromResponse(response, body) {
@@ -22330,6 +24281,23 @@ var computersFilesContent = (options) => (options.client ?? client).get({
22330
24281
  url: "/agent/v1/computers/{computer_id}/files/content",
22331
24282
  ...options
22332
24283
  });
24284
+ var computersFilesConvert = (options) => (options.client ?? client).post({
24285
+ security: [{
24286
+ key: "BearerAuth",
24287
+ scheme: "bearer",
24288
+ type: "http"
24289
+ }, {
24290
+ key: "ApiKeyAuth",
24291
+ name: "X-API-Key",
24292
+ type: "apiKey"
24293
+ }],
24294
+ url: "/agent/v1/computers/{computer_id}/files/convert",
24295
+ ...options,
24296
+ headers: {
24297
+ "Content-Type": "application/json",
24298
+ ...options.headers
24299
+ }
24300
+ });
22333
24301
  var connectComputer = (options) => (options.client ?? client).post({
22334
24302
  security: [{
22335
24303
  key: "BearerAuth",
@@ -22828,6 +24796,15 @@ var fileCancelUpload = (options) => (options.client ?? client).post({
22828
24796
  url: "/file/v1/uploads/{upload_id}/cancel",
22829
24797
  ...options
22830
24798
  });
24799
+ var fileRetrieveUpload = (options) => (options.client ?? client).get({
24800
+ security: [{
24801
+ key: "BearerAuth",
24802
+ scheme: "bearer",
24803
+ type: "http"
24804
+ }],
24805
+ url: "/file/v1/uploads/{upload_id}",
24806
+ ...options
24807
+ });
22831
24808
  var fileCreateSignedUpload = (options) => (options.client ?? client).post({
22832
24809
  security: [{
22833
24810
  key: "BearerAuth",
@@ -23355,6 +25332,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
23355
25332
  ...options.headers
23356
25333
  }
23357
25334
  });
25335
+ var listOrganizationMembers = (options) => (options?.client ?? client).get({
25336
+ security: [{
25337
+ key: "BearerAuth",
25338
+ scheme: "bearer",
25339
+ type: "http"
25340
+ }, {
25341
+ key: "ApiKeyAuth",
25342
+ name: "X-API-Key",
25343
+ type: "apiKey"
25344
+ }],
25345
+ url: "/organization/v1/members",
25346
+ ...options
25347
+ });
23358
25348
  var listOrganizationFeedback = (options) => (options?.client ?? client).get({
23359
25349
  security: [{
23360
25350
  key: "BearerAuth",
@@ -26691,6 +28681,36 @@ var cutCreateExport = (options) => (options.client ?? client).post({
26691
28681
  ...options.headers
26692
28682
  }
26693
28683
  });
28684
+ var cutCreateRender = (options) => (options.client ?? client).post({
28685
+ security: [{
28686
+ key: "BearerAuth",
28687
+ scheme: "bearer",
28688
+ type: "http"
28689
+ }, {
28690
+ key: "ApiKeyAuth",
28691
+ name: "X-API-Key",
28692
+ type: "apiKey"
28693
+ }],
28694
+ url: "/cut/v1/projects/{project_id}/renders",
28695
+ ...options,
28696
+ headers: {
28697
+ "Content-Type": "application/json",
28698
+ ...options.headers
28699
+ }
28700
+ });
28701
+ var cutRetrieveRender = (options) => (options.client ?? client).get({
28702
+ security: [{
28703
+ key: "BearerAuth",
28704
+ scheme: "bearer",
28705
+ type: "http"
28706
+ }, {
28707
+ key: "ApiKeyAuth",
28708
+ name: "X-API-Key",
28709
+ type: "apiKey"
28710
+ }],
28711
+ url: "/cut/v1/renders/{render_id}",
28712
+ ...options
28713
+ });
26694
28714
  var cutRetrieveExport = (options) => (options.client ?? client).get({
26695
28715
  security: [{
26696
28716
  key: "BearerAuth",
@@ -26981,6 +29001,201 @@ var databaseInsert = (options) => (options.client ?? client).post({
26981
29001
  ...options.headers
26982
29002
  }
26983
29003
  });
29004
+ var devopsTestCatalogGet = (options) => (options.client ?? client).get({
29005
+ security: [{
29006
+ key: "devops-bearerAuth",
29007
+ scheme: "bearer",
29008
+ type: "http"
29009
+ }],
29010
+ url: "/devops/v1/projects/{project}/test-catalog",
29011
+ ...options
29012
+ });
29013
+ var devopsTestSuitesList = (options) => (options.client ?? client).get({
29014
+ security: [{
29015
+ key: "devops-bearerAuth",
29016
+ scheme: "bearer",
29017
+ type: "http"
29018
+ }],
29019
+ url: "/devops/v1/projects/{project}/test-suites",
29020
+ ...options
29021
+ });
29022
+ var devopsTestSuitesGet = (options) => (options.client ?? client).get({
29023
+ security: [{
29024
+ key: "devops-bearerAuth",
29025
+ scheme: "bearer",
29026
+ type: "http"
29027
+ }],
29028
+ url: "/devops/v1/test-suites/{id}",
29029
+ ...options
29030
+ });
29031
+ var devopsTestCasesList = (options) => (options.client ?? client).get({
29032
+ security: [{
29033
+ key: "devops-bearerAuth",
29034
+ scheme: "bearer",
29035
+ type: "http"
29036
+ }],
29037
+ url: "/devops/v1/projects/{project}/test-cases",
29038
+ ...options
29039
+ });
29040
+ var devopsTestCasesGet = (options) => (options.client ?? client).get({
29041
+ security: [{
29042
+ key: "devops-bearerAuth",
29043
+ scheme: "bearer",
29044
+ type: "http"
29045
+ }],
29046
+ url: "/devops/v1/test-cases/{id}",
29047
+ ...options
29048
+ });
29049
+ var devopsTestPlansList = (options) => (options.client ?? client).get({
29050
+ security: [{
29051
+ key: "devops-bearerAuth",
29052
+ scheme: "bearer",
29053
+ type: "http"
29054
+ }],
29055
+ url: "/devops/v1/projects/{project}/test-plans",
29056
+ ...options
29057
+ });
29058
+ var devopsTestPlansCreate = (options) => (options.client ?? client).post({
29059
+ security: [{
29060
+ key: "devops-bearerAuth",
29061
+ scheme: "bearer",
29062
+ type: "http"
29063
+ }],
29064
+ url: "/devops/v1/projects/{project}/test-plans",
29065
+ ...options,
29066
+ headers: {
29067
+ "Content-Type": "application/json",
29068
+ ...options.headers
29069
+ }
29070
+ });
29071
+ var devopsTestPlansDelete = (options) => (options.client ?? client).delete({
29072
+ security: [{
29073
+ key: "devops-bearerAuth",
29074
+ scheme: "bearer",
29075
+ type: "http"
29076
+ }],
29077
+ url: "/devops/v1/test-plans/{id}",
29078
+ ...options
29079
+ });
29080
+ var devopsTestPlansGet = (options) => (options.client ?? client).get({
29081
+ security: [{
29082
+ key: "devops-bearerAuth",
29083
+ scheme: "bearer",
29084
+ type: "http"
29085
+ }],
29086
+ url: "/devops/v1/test-plans/{id}",
29087
+ ...options
29088
+ });
29089
+ var devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
29090
+ security: [{
29091
+ key: "devops-bearerAuth",
29092
+ scheme: "bearer",
29093
+ type: "http"
29094
+ }],
29095
+ url: "/devops/v1/test-plans/{id}",
29096
+ ...options,
29097
+ headers: {
29098
+ "Content-Type": "application/json",
29099
+ ...options.headers
29100
+ }
29101
+ });
29102
+ var devopsTestPlansPause = (options) => (options.client ?? client).post({
29103
+ security: [{
29104
+ key: "devops-bearerAuth",
29105
+ scheme: "bearer",
29106
+ type: "http"
29107
+ }],
29108
+ url: "/devops/v1/test-plans/{id}:pause",
29109
+ ...options,
29110
+ headers: {
29111
+ "Content-Type": "application/json",
29112
+ ...options.headers
29113
+ }
29114
+ });
29115
+ var devopsTestPlansResume = (options) => (options.client ?? client).post({
29116
+ security: [{
29117
+ key: "devops-bearerAuth",
29118
+ scheme: "bearer",
29119
+ type: "http"
29120
+ }],
29121
+ url: "/devops/v1/test-plans/{id}:resume",
29122
+ ...options
29123
+ });
29124
+ var devopsTestRunsList = (options) => (options.client ?? client).get({
29125
+ security: [{
29126
+ key: "devops-bearerAuth",
29127
+ scheme: "bearer",
29128
+ type: "http"
29129
+ }],
29130
+ url: "/devops/v1/projects/{project}/test-runs",
29131
+ ...options
29132
+ });
29133
+ var devopsTestRunsCreate = (options) => (options.client ?? client).post({
29134
+ security: [{
29135
+ key: "devops-bearerAuth",
29136
+ scheme: "bearer",
29137
+ type: "http"
29138
+ }],
29139
+ url: "/devops/v1/projects/{project}/test-runs",
29140
+ ...options,
29141
+ headers: {
29142
+ "Content-Type": "application/json",
29143
+ ...options.headers
29144
+ }
29145
+ });
29146
+ var devopsTestRunsGet = (options) => (options.client ?? client).get({
29147
+ security: [{
29148
+ key: "devops-bearerAuth",
29149
+ scheme: "bearer",
29150
+ type: "http"
29151
+ }],
29152
+ url: "/devops/v1/test-runs/{id}",
29153
+ ...options
29154
+ });
29155
+ var devopsTestRunsCancel = (options) => (options.client ?? client).post({
29156
+ security: [{
29157
+ key: "devops-bearerAuth",
29158
+ scheme: "bearer",
29159
+ type: "http"
29160
+ }],
29161
+ url: "/devops/v1/test-runs/{id}:cancel",
29162
+ ...options,
29163
+ headers: {
29164
+ "Content-Type": "application/json",
29165
+ ...options.headers
29166
+ }
29167
+ });
29168
+ var devopsTestExecutionsList = (options) => (options.client ?? client).get({
29169
+ security: [{
29170
+ key: "devops-bearerAuth",
29171
+ scheme: "bearer",
29172
+ type: "http"
29173
+ }],
29174
+ url: "/devops/v1/test-runs/{run}/executions",
29175
+ ...options
29176
+ });
29177
+ var devopsTestExecutionsGet = (options) => (options.client ?? client).get({
29178
+ security: [{
29179
+ key: "devops-bearerAuth",
29180
+ scheme: "bearer",
29181
+ type: "http"
29182
+ }],
29183
+ url: "/devops/v1/test-runs/{run}/executions/{case}",
29184
+ ...options
29185
+ });
29186
+ var devopsTestReportsUpload = (options) => (options.client ?? client).post({
29187
+ security: [{
29188
+ key: "devops-bearerAuth",
29189
+ scheme: "bearer",
29190
+ type: "http"
29191
+ }],
29192
+ url: "/devops/v1/projects/{project}/test-reports",
29193
+ ...options,
29194
+ headers: {
29195
+ "Content-Type": "application/json",
29196
+ ...options.headers
29197
+ }
29198
+ });
26984
29199
  var knowledgeListVectorStores = (options) => (options?.client ?? client).get({
26985
29200
  security: [{
26986
29201
  key: "knowledge-bearerAuth",
@@ -27225,6 +29440,19 @@ var mediaCreateLibrary = (options) => (options.client ?? client).post({
27225
29440
  ...options.headers
27226
29441
  }
27227
29442
  });
29443
+ var mediaCreateFrameUrls = (options) => (options.client ?? client).post({
29444
+ security: [{
29445
+ key: "media-BearerAuth",
29446
+ scheme: "bearer",
29447
+ type: "http"
29448
+ }],
29449
+ url: "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
29450
+ ...options,
29451
+ headers: {
29452
+ "Content-Type": "application/json",
29453
+ ...options.headers
29454
+ }
29455
+ });
27228
29456
  var mediaDeleteLibrary = (options) => (options.client ?? client).delete({
27229
29457
  security: [{
27230
29458
  key: "media-BearerAuth",
@@ -27489,6 +29717,235 @@ var mediaCreateDeliveryToken = (options) => (options.client ?? client).post({
27489
29717
  ...options.headers
27490
29718
  }
27491
29719
  });
29720
+ var mediaUnderstandingFailureSummary = (options) => (options.client ?? client).get({
29721
+ security: [{
29722
+ key: "media-BearerAuth",
29723
+ scheme: "bearer",
29724
+ type: "http"
29725
+ }],
29726
+ url: "/media/v1/libraries/{library_id}/understandings/failure_summary",
29727
+ ...options
29728
+ });
29729
+ var mediaListUnderstandingsByLibrary = (options) => (options.client ?? client).get({
29730
+ security: [{
29731
+ key: "media-BearerAuth",
29732
+ scheme: "bearer",
29733
+ type: "http"
29734
+ }],
29735
+ url: "/media/v1/libraries/{library_id}/understandings",
29736
+ ...options
29737
+ });
29738
+ var mediaCreateGeneration = (options) => (options.client ?? client).post({
29739
+ security: [{
29740
+ key: "media-BearerAuth",
29741
+ scheme: "bearer",
29742
+ type: "http"
29743
+ }],
29744
+ url: "/media/v1/libraries/{library_id}/generations",
29745
+ ...options,
29746
+ headers: {
29747
+ "Content-Type": "application/json",
29748
+ ...options.headers
29749
+ }
29750
+ });
29751
+ var mediaListJobs = (options) => (options.client ?? client).get({
29752
+ security: [{
29753
+ key: "media-BearerAuth",
29754
+ scheme: "bearer",
29755
+ type: "http"
29756
+ }],
29757
+ url: "/media/v1/libraries/{library_id}/jobs",
29758
+ ...options
29759
+ });
29760
+ var mediaCancelJob = (options) => (options.client ?? client).post({
29761
+ security: [{
29762
+ key: "media-BearerAuth",
29763
+ scheme: "bearer",
29764
+ type: "http"
29765
+ }],
29766
+ url: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
29767
+ ...options
29768
+ });
29769
+ var mediaSaveGenerationOutput = (options) => (options.client ?? client).post({
29770
+ security: [{
29771
+ key: "media-BearerAuth",
29772
+ scheme: "bearer",
29773
+ type: "http"
29774
+ }],
29775
+ url: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
29776
+ ...options,
29777
+ headers: {
29778
+ "Content-Type": "application/json",
29779
+ ...options.headers
29780
+ }
29781
+ });
29782
+ var mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
29783
+ security: [{
29784
+ key: "media-BearerAuth",
29785
+ scheme: "bearer",
29786
+ type: "http"
29787
+ }],
29788
+ url: "/media/v1/generation/capabilities",
29789
+ ...options
29790
+ });
29791
+ var ontologyListTypes = (options) => (options?.client ?? client).get({
29792
+ security: [{
29793
+ key: "ontology-bearerAuth",
29794
+ scheme: "bearer",
29795
+ type: "http"
29796
+ }],
29797
+ url: "/ontology/v1/types",
29798
+ ...options
29799
+ });
29800
+ var ontologyRegisterType = (options) => (options.client ?? client).post({
29801
+ security: [{
29802
+ key: "ontology-bearerAuth",
29803
+ scheme: "bearer",
29804
+ type: "http"
29805
+ }],
29806
+ url: "/ontology/v1/types",
29807
+ ...options,
29808
+ headers: {
29809
+ "Content-Type": "application/json",
29810
+ ...options.headers
29811
+ }
29812
+ });
29813
+ var ontologyRetrieveType = (options) => (options.client ?? client).get({
29814
+ security: [{
29815
+ key: "ontology-bearerAuth",
29816
+ scheme: "bearer",
29817
+ type: "http"
29818
+ }],
29819
+ url: "/ontology/v1/types/{name}",
29820
+ ...options
29821
+ });
29822
+ var ontologyListNodes = (options) => (options?.client ?? client).get({
29823
+ security: [{
29824
+ key: "ontology-bearerAuth",
29825
+ scheme: "bearer",
29826
+ type: "http"
29827
+ }],
29828
+ url: "/ontology/v1/nodes",
29829
+ ...options
29830
+ });
29831
+ var ontologyCreateNode = (options) => (options.client ?? client).post({
29832
+ security: [{
29833
+ key: "ontology-bearerAuth",
29834
+ scheme: "bearer",
29835
+ type: "http"
29836
+ }],
29837
+ url: "/ontology/v1/nodes",
29838
+ ...options,
29839
+ headers: {
29840
+ "Content-Type": "application/json",
29841
+ ...options.headers
29842
+ }
29843
+ });
29844
+ var ontologyRetrieveNode = (options) => (options.client ?? client).get({
29845
+ security: [{
29846
+ key: "ontology-bearerAuth",
29847
+ scheme: "bearer",
29848
+ type: "http"
29849
+ }],
29850
+ url: "/ontology/v1/nodes/{node_id}",
29851
+ ...options
29852
+ });
29853
+ var ontologyUpdateNode = (options) => (options.client ?? client).patch({
29854
+ security: [{
29855
+ key: "ontology-bearerAuth",
29856
+ scheme: "bearer",
29857
+ type: "http"
29858
+ }],
29859
+ url: "/ontology/v1/nodes/{node_id}",
29860
+ ...options,
29861
+ headers: {
29862
+ "Content-Type": "application/json",
29863
+ ...options.headers
29864
+ }
29865
+ });
29866
+ var ontologyMergeNode = (options) => (options.client ?? client).post({
29867
+ security: [{
29868
+ key: "ontology-bearerAuth",
29869
+ scheme: "bearer",
29870
+ type: "http"
29871
+ }],
29872
+ url: "/ontology/v1/nodes/{node_id}/merge",
29873
+ ...options,
29874
+ headers: {
29875
+ "Content-Type": "application/json",
29876
+ ...options.headers
29877
+ }
29878
+ });
29879
+ var ontologyListRelations = (options) => (options?.client ?? client).get({
29880
+ security: [{
29881
+ key: "ontology-bearerAuth",
29882
+ scheme: "bearer",
29883
+ type: "http"
29884
+ }],
29885
+ url: "/ontology/v1/relations",
29886
+ ...options
29887
+ });
29888
+ var ontologyCreateRelation = (options) => (options.client ?? client).post({
29889
+ security: [{
29890
+ key: "ontology-bearerAuth",
29891
+ scheme: "bearer",
29892
+ type: "http"
29893
+ }],
29894
+ url: "/ontology/v1/relations",
29895
+ ...options,
29896
+ headers: {
29897
+ "Content-Type": "application/json",
29898
+ ...options.headers
29899
+ }
29900
+ });
29901
+ var ontologyRetrieveRelation = (options) => (options.client ?? client).get({
29902
+ security: [{
29903
+ key: "ontology-bearerAuth",
29904
+ scheme: "bearer",
29905
+ type: "http"
29906
+ }],
29907
+ url: "/ontology/v1/relations/{relation_id}",
29908
+ ...options
29909
+ });
29910
+ var ontologyInvalidateRelation = (options) => (options.client ?? client).post({
29911
+ security: [{
29912
+ key: "ontology-bearerAuth",
29913
+ scheme: "bearer",
29914
+ type: "http"
29915
+ }],
29916
+ url: "/ontology/v1/relations/{relation_id}/invalidate",
29917
+ ...options,
29918
+ headers: {
29919
+ "Content-Type": "application/json",
29920
+ ...options.headers
29921
+ }
29922
+ });
29923
+ var ontologyApplyChangeset = (options) => (options.client ?? client).post({
29924
+ security: [{
29925
+ key: "ontology-bearerAuth",
29926
+ scheme: "bearer",
29927
+ type: "http"
29928
+ }],
29929
+ url: "/ontology/v1/changesets",
29930
+ ...options,
29931
+ headers: {
29932
+ "Content-Type": "application/json",
29933
+ ...options.headers
29934
+ }
29935
+ });
29936
+ var ontologySearch = (options) => (options.client ?? client).post({
29937
+ security: [{
29938
+ key: "ontology-bearerAuth",
29939
+ scheme: "bearer",
29940
+ type: "http"
29941
+ }],
29942
+ url: "/ontology/v1/search",
29943
+ ...options,
29944
+ headers: {
29945
+ "Content-Type": "application/json",
29946
+ ...options.headers
29947
+ }
29948
+ });
27492
29949
  var getSandboxV1Sandboxes = (options) => (options?.client ?? client).get({
27493
29950
  querySerializer: { parameters: { state: { array: { explode: false } } } },
27494
29951
  security: [
@@ -29366,6 +31823,9 @@ function createAgent(transport) {
29366
31823
  create: bind(transport, computersCreate),
29367
31824
  delete: bind(transport, computersDelete),
29368
31825
  files: {
31826
+ convert: {
31827
+ create: bind(transport, computersFilesConvert)
31828
+ },
29369
31829
  list: bind(transport, computersFilesList),
29370
31830
  retrieveContent: bind(transport, computersFilesContent)
29371
31831
  },
@@ -29813,6 +32273,9 @@ function createCut(transport) {
29813
32273
  media: {
29814
32274
  import: bind(transport, cutImportMedia)
29815
32275
  },
32276
+ renders: {
32277
+ create: bind(transport, cutCreateRender)
32278
+ },
29816
32279
  retrieve: bind(transport, cutRetrieveProject),
29817
32280
  retrieveState: bind(transport, cutRetrieveState),
29818
32281
  retrieveTimeline: bind(transport, cutRetrieveTimeline),
@@ -29823,6 +32286,9 @@ function createCut(transport) {
29823
32286
  list: bind(transport, cutListVersions)
29824
32287
  }
29825
32288
  },
32289
+ renders: {
32290
+ retrieve: bind(transport, cutRetrieveRender)
32291
+ },
29826
32292
  versions: {
29827
32293
  restore: bind(transport, cutRestoreVersion)
29828
32294
  }
@@ -29865,6 +32331,51 @@ function createDatabase(transport) {
29865
32331
  }
29866
32332
  };
29867
32333
  }
32334
+ function createDevops(transport) {
32335
+ return {
32336
+ projects: {
32337
+ retrieveTestCatalog: bind(transport, devopsTestCatalogGet),
32338
+ testCases: {
32339
+ list: bind(transport, devopsTestCasesList)
32340
+ },
32341
+ testPlans: {
32342
+ create: bind(transport, devopsTestPlansCreate),
32343
+ list: bind(transport, devopsTestPlansList)
32344
+ },
32345
+ testReports: {
32346
+ create: bind(transport, devopsTestReportsUpload)
32347
+ },
32348
+ testRuns: {
32349
+ create: bind(transport, devopsTestRunsCreate),
32350
+ list: bind(transport, devopsTestRunsList)
32351
+ },
32352
+ testSuites: {
32353
+ list: bind(transport, devopsTestSuitesList)
32354
+ }
32355
+ },
32356
+ testCases: {
32357
+ retrieve: bind(transport, devopsTestCasesGet)
32358
+ },
32359
+ testPlans: {
32360
+ delete: bind(transport, devopsTestPlansDelete),
32361
+ pause: bind(transport, devopsTestPlansPause),
32362
+ resume: bind(transport, devopsTestPlansResume),
32363
+ retrieve: bind(transport, devopsTestPlansGet),
32364
+ update: bind(transport, devopsTestPlansUpdate)
32365
+ },
32366
+ testRuns: {
32367
+ cancel: bind(transport, devopsTestRunsCancel),
32368
+ executions: {
32369
+ list: bind(transport, devopsTestExecutionsList),
32370
+ retrieve: bind(transport, devopsTestExecutionsGet)
32371
+ },
32372
+ retrieve: bind(transport, devopsTestRunsGet)
32373
+ },
32374
+ testSuites: {
32375
+ retrieve: bind(transport, devopsTestSuitesGet)
32376
+ }
32377
+ };
32378
+ }
29868
32379
  function createFile(transport) {
29869
32380
  return {
29870
32381
  files: {
@@ -29887,7 +32398,8 @@ function createFile(transport) {
29887
32398
  createSigned: bind(transport, fileCreateSignedUpload),
29888
32399
  parts: {
29889
32400
  create: bind(transport, (options) => fileAddUploadPart({ ...options, bodySerializer: multipartBodySerializer, headers: { "Content-Type": null, ...options.headers } }))
29890
- }
32401
+ },
32402
+ retrieve: bind(transport, fileRetrieveUpload)
29891
32403
  }
29892
32404
  };
29893
32405
  }
@@ -29939,11 +32451,19 @@ function createKnowledge(transport) {
29939
32451
  }
29940
32452
  function createMedia(transport) {
29941
32453
  return {
32454
+ generation: {
32455
+ capabilities: {
32456
+ list: bind(transport, mediaGetGenerationCapabilities)
32457
+ }
32458
+ },
29942
32459
  libraries: {
29943
32460
  assets: {
29944
32461
  batch: bind(transport, mediaBatchAssets),
29945
32462
  create: bind(transport, (options) => mediaUploadAsset({ ...options, bodySerializer: multipartBodySerializer, headers: { "Content-Type": null, ...options.headers } })),
29946
32463
  delete: bind(transport, mediaDeleteAsset),
32464
+ frames: {
32465
+ create: bind(transport, mediaCreateFrameUrls)
32466
+ },
29947
32467
  import: {
29948
32468
  create: bind(transport, mediaImportAsset)
29949
32469
  },
@@ -29972,7 +32492,17 @@ function createMedia(transport) {
29972
32492
  folders: {
29973
32493
  list: bind(transport, mediaListFolders)
29974
32494
  },
32495
+ generations: {
32496
+ create: bind(transport, mediaCreateGeneration)
32497
+ },
29975
32498
  jobs: {
32499
+ cancel: bind(transport, mediaCancelJob),
32500
+ list: bindPage(transport, mediaListJobs),
32501
+ outputs: {
32502
+ save: {
32503
+ create: bind(transport, mediaSaveGenerationOutput)
32504
+ }
32505
+ },
29976
32506
  retrieve: bind(transport, mediaGetJob)
29977
32507
  },
29978
32508
  list: bindPage(transport, mediaListLibraries),
@@ -29993,6 +32523,10 @@ function createMedia(transport) {
29993
32523
  create: bind(transport, mediaVisualSearch)
29994
32524
  }
29995
32525
  },
32526
+ understandings: {
32527
+ list: bindPage(transport, mediaListUnderstandingsByLibrary),
32528
+ retrieveFailureSummary: bind(transport, mediaUnderstandingFailureSummary)
32529
+ },
29996
32530
  update: bind(transport, mediaUpdateLibrary)
29997
32531
  }
29998
32532
  };
@@ -30093,6 +32627,38 @@ function createModel(transport) {
30093
32627
  }
30094
32628
  };
30095
32629
  }
32630
+ function createOntology(transport) {
32631
+ return {
32632
+ changesets: {
32633
+ create: bind(transport, ontologyApplyChangeset)
32634
+ },
32635
+ nodes: {
32636
+ create: bind(transport, ontologyCreateNode),
32637
+ list: bindPage(transport, ontologyListNodes),
32638
+ merge: {
32639
+ create: bind(transport, ontologyMergeNode)
32640
+ },
32641
+ retrieve: bind(transport, ontologyRetrieveNode),
32642
+ update: bind(transport, ontologyUpdateNode)
32643
+ },
32644
+ relations: {
32645
+ create: bind(transport, ontologyCreateRelation),
32646
+ invalidate: {
32647
+ create: bind(transport, ontologyInvalidateRelation)
32648
+ },
32649
+ list: bindPage(transport, ontologyListRelations),
32650
+ retrieve: bind(transport, ontologyRetrieveRelation)
32651
+ },
32652
+ search: {
32653
+ create: bind(transport, ontologySearch)
32654
+ },
32655
+ types: {
32656
+ create: bind(transport, ontologyRegisterType),
32657
+ list: bind(transport, ontologyListTypes),
32658
+ retrieve: bind(transport, ontologyRetrieveType)
32659
+ }
32660
+ };
32661
+ }
30096
32662
  function createOrganization(transport) {
30097
32663
  return {
30098
32664
  charges: {
@@ -30117,6 +32683,9 @@ function createOrganization(transport) {
30117
32683
  },
30118
32684
  retrieve: bind(transport, getOrganizationFeedback)
30119
32685
  },
32686
+ members: {
32687
+ list: bind(transport, listOrganizationMembers)
32688
+ },
30120
32689
  usage: {
30121
32690
  list: bind(transport, listOrganizationUsage)
30122
32691
  }
@@ -30351,11 +32920,13 @@ var resourceFactories = {
30351
32920
  crm: createCrm,
30352
32921
  cut: createCut,
30353
32922
  database: createDatabase,
32923
+ devops: createDevops,
30354
32924
  file: createFile,
30355
32925
  knowledge: createKnowledge,
30356
32926
  media: createMedia,
30357
32927
  meta: createMeta,
30358
32928
  model: createModel,
32929
+ ontology: createOntology,
30359
32930
  organization: createOrganization,
30360
32931
  sandbox: createSandbox,
30361
32932
  search: createSearch,
@@ -31429,6 +34000,26 @@ async function prepareMultipart(op, opts) {
31429
34000
  opts.body = body;
31430
34001
  }
31431
34002
 
34003
+ // src/core/pagination.ts
34004
+ var PAGE_TOKENS = /^(page_?token|next_?page_?token)$/i;
34005
+ function pageTokenField(op) {
34006
+ return op.query.find((field) => PAGE_TOKENS.test(field.name));
34007
+ }
34008
+ function nextPageToken(result) {
34009
+ const value = result;
34010
+ const token = value?.next_page_token ?? value?.nextPageToken ?? value?.next_cursor;
34011
+ return typeof token === "string" && token ? token : undefined;
34012
+ }
34013
+ function pageOf(result) {
34014
+ const value = result;
34015
+ const arrays = value && typeof value === "object" ? Object.values(value).filter(Array.isArray) : [];
34016
+ const data = Array.isArray(value?.data) ? value.data : Array.isArray(value?.items) ? value.items : arrays.length === 1 ? arrays[0] : undefined;
34017
+ if (!Array.isArray(data))
34018
+ return;
34019
+ const token = nextPageToken(result);
34020
+ return { items: data, ...token ? { token } : {} };
34021
+ }
34022
+
31432
34023
  // src/core/bind-args.ts
31433
34024
  var globalOptions = [
31434
34025
  { name: "org", type: "string" },
@@ -31644,7 +34235,7 @@ function bindArgs(parsed, op, data) {
31644
34235
  (opts.query ??= {})[key] ??= convert(String(globals[name]), { name, type: field.type, enum: field.enum });
31645
34236
  }
31646
34237
  }
31647
- if (globals.all && !op.pagination)
34238
+ if (globals.all && !op.pagination && !pageTokenField(op))
31648
34239
  throw new UsageError("--all requires a paginated operation");
31649
34240
  for (const p of op.pathParams)
31650
34241
  if (p !== target && opts.path?.[p.sdkName] === undefined)
@@ -31670,8 +34261,8 @@ function bindArgs(parsed, op, data) {
31670
34261
  }
31671
34262
 
31672
34263
  // src/core/help.ts
31673
- function describeOption(s) {
31674
- return `--${s.name}${s.type === "boolean" ? " [true|false]" : ` <${s.type}>`}${s.repeated ? " (repeatable)" : ""}${s.required ? " (required)" : ""}${s.enum ? ` [${s.enum.join(" | ")}]` : ""}${s.description ? ` — ${s.description.replace(/\s+/g, " ")}` : ""}`;
34264
+ function describeOption(s, required = s.required) {
34265
+ return `--${s.name}${s.type === "boolean" ? " [true|false]" : ` <${s.type}>`}${s.repeated ? " (repeatable)" : ""}${required ? " (required)" : ""}${s.enum ? ` [${s.enum.join(" | ")}]` : ""}${s.description ? ` — ${s.description.replace(/\s+/g, " ")}` : ""}`;
31675
34266
  }
31676
34267
  function example(command) {
31677
34268
  const target = targetParam(command.op);
@@ -31687,18 +34278,22 @@ function example(command) {
31687
34278
  args.push("--yes");
31688
34279
  return args.join(" ");
31689
34280
  }
34281
+ function fieldRequired(op, field, location) {
34282
+ return Boolean(field.required) && (location === "path" || location === "query" || Boolean(op.body?.required));
34283
+ }
31690
34284
  function help(commands, prefix, command) {
31691
34285
  if (command) {
31692
34286
  const target = targetParam(command.op);
34287
+ const parents = operationOptions(command.op).filter((s) => s.location === "path" && s.required).map((s) => ` --${s.name} <${s.field?.name ?? s.sdkName}>`).join("");
31693
34288
  return [
31694
- `praxis ${command.words.join(" ")}${target ? ` <${target.sdkName}>` : ""} [options]`,
34289
+ `praxis ${command.words.join(" ")}${parents}${target ? ` <${target.sdkName}>` : ""} [options]`,
31695
34290
  `SDK: ${command.op.resource}.${command.alias ?? command.op.method}`,
31696
34291
  `${command.op.http} ${command.op.path}`,
31697
34292
  ...target ? [`Position: <${target.sdkName}>${target.type ? ` <${target.type}>` : ""} (required target ID)`] : [],
31698
34293
  "",
31699
34294
  "Options:",
31700
34295
  ...target?.description ? [` <${target.sdkName}> — ${target.description.replace(/\s+/g, " ")}`] : [],
31701
- ...[...operationOptions(command.op), ...bodyDataOption(command.op), ...globalOptions].map((s) => ` ${describeOption(s)}`),
34296
+ ...[...operationOptions(command.op), ...bodyDataOption(command.op), ...globalOptions].map((s) => ` ${describeOption(s, s.required && fieldRequired(command.op, s, s.location ?? "query"))}`),
31702
34297
  ...command.op.body?.fields.filter((f) => !operationOptions(command.op).some((s) => s.location === "body" && s.field === f) && (f.type === "object" || f.type === "array" && !["string", "number", "integer", "boolean"].includes(f.itemType ?? ""))).map((f) => ` --data: ${f.name} (${f.type}${f.required ? ", required" : ""})`) ?? [],
31703
34298
  " -h is an alias of --help",
31704
34299
  "PRAXIS_ENV=develop|production (default: develop); no --env option.",
@@ -31766,6 +34361,7 @@ var workflows = [
31766
34361
  { words: ["app", "create"], usage: "app create <name> [--dir <path>] [--template <dir>] [--no-install]", summary: "Create an application project from the standard template and install its dependencies.", example: "praxis app create my-app" },
31767
34362
  { words: ["app", "deploy"], usage: "app deploy [--dir <path>] [--no-build]", summary: "Build the project, publish it, create declared secrets, run the health check and print the URL.", example: "praxis app deploy --dir ./my-app" },
31768
34363
  { words: ["app", "rollback"], usage: "app rollback [--dir <path>] [--to <version_id>]", summary: "Deploy the previous version again (or --to a given version) and wait until it is active.", example: "praxis app rollback --to <version_id>" },
34364
+ { words: ["devops", "test", "run"], usage: "devops test run --remote [--project <dvp_…>] [--no-wait] [--repeat <n>] [--select <kind:value>]", summary: "Run the DevOps test selection for the pushed HEAD on the Praxis cloud, wait for the verdict and list the failed cases.", example: "praxis devops test run --remote --select smoke" },
31769
34365
  { words: ["skill"], usage: "skill [--install <dir>]", summary: "Print the AI skill, or write <dir>/praxis-cli/SKILL.md." }
31770
34366
  ];
31771
34367
  var workflowNouns = [...new Set(workflows.filter((w) => w.words.length > 1).map((w) => w.words[0]))];
@@ -31996,21 +34592,90 @@ function toStored(tokens, now, previous) {
31996
34592
  return { ...previous?.organization_id ? { organization_id: previous.organization_id } : {}, access_token: tokens.access_token, ...refresh ? { refresh_token: refresh } : {}, expires_at: now + (tokens.expires_in ?? 900) * 1000 };
31997
34593
  }
31998
34594
  var REFRESH_SKEW_MS = 30000;
31999
- async function refreshTokens(stored, accountUrl, fetchImpl, now) {
32000
- if (!stored.refresh_token)
32001
- return null;
32002
- const res = await fetchImpl(`${accountUrl}/api/auth/oauth2/token`, {
32003
- method: "POST",
32004
- headers: { "content-type": "application/x-www-form-urlencoded" },
32005
- body: new URLSearchParams({ grant_type: "refresh_token", refresh_token: stored.refresh_token, client_id: CLIENT_ID }).toString()
34595
+ var ATTEMPT_TIMEOUT_MS = 8000;
34596
+ var RETRY_DELAYS_MS = [1000, 3000];
34597
+ var RETRY_DEADLINE_MS = 20000;
34598
+ var REFRESH_UNKNOWN_SAFE_MS = 25000;
34599
+ var defaultSleep = (ms, signal) => new Promise((resolve) => {
34600
+ if (signal?.aborted) {
34601
+ resolve();
34602
+ return;
34603
+ }
34604
+ const timer = setTimeout(finish, ms);
34605
+ function finish() {
34606
+ clearTimeout(timer);
34607
+ signal?.removeEventListener("abort", finish);
34608
+ resolve();
34609
+ }
34610
+ signal?.addEventListener("abort", finish, { once: true });
34611
+ });
34612
+ var defaultSchedule = (ms, fire) => {
34613
+ const timer = setTimeout(fire, ms);
34614
+ return () => clearTimeout(timer);
34615
+ };
34616
+ var TRANSIENT_STATUSES = new Set([408, 425, 429]);
34617
+ async function attemptRefresh(stored, accountUrl, fetchImpl, now, schedule) {
34618
+ const controller = new AbortController;
34619
+ let timedOut = false;
34620
+ const cancel = schedule(ATTEMPT_TIMEOUT_MS, () => {
34621
+ timedOut = true;
34622
+ controller.abort();
32006
34623
  });
32007
- const body = await res.json().catch(() => ({}));
32008
- if (!res.ok || typeof body.access_token !== "string")
32009
- return null;
32010
- return toStored(body, now, stored);
34624
+ let response;
34625
+ try {
34626
+ response = await fetchImpl(`${accountUrl}/api/auth/oauth2/token`, {
34627
+ method: "POST",
34628
+ headers: { "content-type": "application/x-www-form-urlencoded" },
34629
+ body: new URLSearchParams({ grant_type: "refresh_token", refresh_token: stored.refresh_token, client_id: CLIENT_ID }).toString(),
34630
+ signal: controller.signal
34631
+ });
34632
+ } catch (error2) {
34633
+ const name = error2?.name;
34634
+ return { kind: "transient", reason: timedOut || name === "AbortError" || name === "TimeoutError" ? "timeout" : "network" };
34635
+ } finally {
34636
+ cancel();
34637
+ }
34638
+ let body;
34639
+ try {
34640
+ body = await response.json();
34641
+ } catch {
34642
+ return { kind: "transient", reason: response.ok ? "unparseable" : `http ${response.status}` };
34643
+ }
34644
+ const error = body.error;
34645
+ if (response.ok) {
34646
+ if (typeof body.access_token !== "string")
34647
+ return { kind: "transient", reason: "unparseable" };
34648
+ return { kind: "ok", tokens: toStored(body, now, stored) };
34649
+ }
34650
+ if (response.status === 400 && error === "invalid_grant")
34651
+ return { kind: "rejected" };
34652
+ if (response.status === 401)
34653
+ return { kind: "rejected" };
34654
+ if (response.status >= 500 || TRANSIENT_STATUSES.has(response.status))
34655
+ return { kind: "transient", reason: `http ${response.status}` };
34656
+ return { kind: "rejected" };
34657
+ }
34658
+ async function refreshWithRetry(stored, accountUrl, fetchImpl, now, sleep2, schedule) {
34659
+ const startedAt = now();
34660
+ let outcome = { kind: "transient", reason: "no attempt made" };
34661
+ for (let attempt = 0;attempt <= RETRY_DELAYS_MS.length; attempt += 1) {
34662
+ if (attempt > 0) {
34663
+ if (now() + RETRY_DELAYS_MS[attempt - 1] - startedAt > RETRY_DEADLINE_MS)
34664
+ break;
34665
+ await sleep2(RETRY_DELAYS_MS[attempt - 1]);
34666
+ }
34667
+ if (now() - startedAt > RETRY_DEADLINE_MS)
34668
+ break;
34669
+ outcome = await attemptRefresh(stored, accountUrl, fetchImpl, now(), schedule);
34670
+ if (outcome.kind !== "transient")
34671
+ return outcome;
34672
+ }
34673
+ return outcome;
32011
34674
  }
32012
34675
  async function currentAccessToken(options) {
32013
34676
  const now = options.now ?? Date.now;
34677
+ const sleep2 = options.sleep ?? defaultSleep;
34678
+ const schedule = options.schedule ?? defaultSchedule;
32014
34679
  const path = options.path ?? tokenPath(options.env);
32015
34680
  const fresh = (t) => t !== null && t.expires_at - REFRESH_SKEW_MS > now();
32016
34681
  const store = options.store ?? createTokenStore(options.env, path, options.secretStore);
@@ -32020,17 +34685,41 @@ async function currentAccessToken(options) {
32020
34685
  return null;
32021
34686
  if (fresh(current))
32022
34687
  return current.access_token;
32023
- const refreshed = await refreshTokens(current, options.accountUrl, options.fetch, now());
32024
- if (!refreshed)
34688
+ const unknownSince = current.rotation_unknown_since;
34689
+ if (unknownSince !== undefined && now() - unknownSince >= REFRESH_UNKNOWN_SAFE_MS) {
34690
+ await session.delete();
32025
34691
  return null;
32026
- await session.save(refreshed);
32027
- return refreshed.access_token;
34692
+ }
34693
+ const firstAttempt = now();
34694
+ await session.save({ ...current, rotation_unknown_since: unknownSince ?? firstAttempt });
34695
+ const outcome = await refreshWithRetry(current, options.accountUrl, options.fetch, () => now(), sleep2, schedule);
34696
+ switch (outcome.kind) {
34697
+ case "ok":
34698
+ await session.save(outcome.tokens);
34699
+ return outcome.tokens.access_token;
34700
+ case "rejected":
34701
+ await session.delete();
34702
+ return null;
34703
+ case "transient":
34704
+ throw new PraxisError({ code: "AUTH_REFRESH_UNAVAILABLE", message: `The token service is temporarily unavailable (${outcome.reason}); the login is kept, retry shortly.` });
34705
+ }
32028
34706
  });
32029
34707
  }
32030
- var LOCK_STALE_MS = 15000;
32031
- async function withLock(lockPath, run) {
34708
+ var REFRESH_MAX_HOLD_MS = RETRY_DEADLINE_MS + ATTEMPT_TIMEOUT_MS;
34709
+ var LOCK_STALE_MS = REFRESH_MAX_HOLD_MS + 1e4;
34710
+ function isLockStale(ageMs, waitedMs) {
34711
+ return ageMs > LOCK_STALE_MS || waitedMs > LOCK_STALE_MS;
34712
+ }
34713
+ var fileLockAge = (lockPath) => Date.now() - statSync(lockPath).mtimeMs;
34714
+ async function withLock(lockPath, run, ports = {}) {
34715
+ const now = ports.now ?? Date.now;
34716
+ const wait = ports.wait ?? ((ms) => new Promise((resolve) => {
34717
+ setTimeout(resolve, ms);
34718
+ }));
34719
+ const lockAge = ports.lockAge ?? fileLockAge;
32032
34720
  mkdirSync(join(lockPath, ".."), { recursive: true, mode: 448 });
32033
- for (let waited = 0;; waited += 50) {
34721
+ const startedAt = now();
34722
+ for (;; ) {
32034
34723
  try {
32035
34724
  closeSync(openSync(lockPath, "wx", 384));
32036
34725
  break;
@@ -32039,15 +34728,15 @@ async function withLock(lockPath, run) {
32039
34728
  throw error;
32040
34729
  let age = 0;
32041
34730
  try {
32042
- age = Date.now() - statSync(lockPath).mtimeMs;
34731
+ age = lockAge(lockPath);
32043
34732
  } catch {
32044
34733
  continue;
32045
34734
  }
32046
- if (age > LOCK_STALE_MS || waited > LOCK_STALE_MS) {
34735
+ if (isLockStale(age, now() - startedAt)) {
32047
34736
  rmSync(lockPath, { force: true });
32048
34737
  continue;
32049
34738
  }
32050
- await new Promise((resolve) => setTimeout(resolve, 50));
34739
+ await wait(50);
32051
34740
  }
32052
34741
  }
32053
34742
  try {
@@ -32113,7 +34802,7 @@ function credentials(config, vars, ports) {
32113
34802
  if (stored.refresh_token)
32114
34803
  remember(stored.refresh_token);
32115
34804
  }
32116
- const opaque = await currentAccessToken({ env: config.env, accountUrl: config.accountUrl, path, store, now: ports.now, fetch: (url, init) => ports.fetch(url, { ...init, signal: AbortSignal.timeout(1e4), redirect: "error" }) });
34805
+ const opaque = await currentAccessToken({ env: config.env, accountUrl: config.accountUrl, path, store, now: ports.now, fetch: (url, init) => ports.fetch(url, { ...init, redirect: "error" }) });
32117
34806
  if (!opaque)
32118
34807
  throw new PraxisError({ code: "NOT_LOGGED_IN", message: "Not logged in or login has expired." });
32119
34808
  remember(opaque);
@@ -32222,7 +34911,18 @@ function skillDocument(commands) {
32222
34911
  "## Account and CLI",
32223
34912
  "",
32224
34913
  ...workflows.map((w) => `praxis ${w.usage} — ${w.summary.replace("Print the AI skill, or write", "Print this skill; use --install <dir> to write")}`),
32225
- "praxis api <METHOD> <path> — Call an API path directly. (--data for a request body)"
34914
+ "praxis api <METHOD> <path> — Call an API path directly. (--data for a request body)",
34915
+ "",
34916
+ "## devops test run (workflow)",
34917
+ "",
34918
+ "Run the project's tests at the commit HEAD is on, on the Praxis cloud executor, and wait for the verdict:",
34919
+ "",
34920
+ "- Only the pushed commit is tested. HEAD must be on a remote branch (`git push` first); this command never pushes for you. Uncommitted changes are a warning only — the working tree is not what runs.",
34921
+ "- The project comes from `--project dvp_…`, or from `devops.project` in the current directory's praxis.jsonc. Neither present is a usage error, exit code 2.",
34922
+ "- `--select` narrows the run: `tag:<tag>` (a bare word reads as a tag), `package:<path>`, `suite:<path>`, `file:<path>`. `--repeat N` runs each selected case N times (a flake then shows up as flaky, not as a failure).",
34923
+ "- The run waits by default and polls every 5s; `--no-wait` returns as soon as the run exists, with `result` still `pending`.",
34924
+ "- Exit code 0 means the verdict passed (or is still pending); 1 means failed, errored, cancelled or timed out — the failed cases are listed, up to 20, with the run URL for the rest; 2 is a usage error.",
34925
+ "- The run URL is on the Console of the environment the CLI talks to; the run id is also on stdout with `--json`."
32226
34926
  ];
32227
34927
  let domain;
32228
34928
  for (const command of commands) {
@@ -32768,6 +35468,191 @@ async function appRollback(args, client2, ports) {
32768
35468
  ports.emit({ kind: "object", data: { url: worker.subdomain?.url ?? null, worker_id: worker.id, from_version: from, to_version: to, deployment_id: done.id } });
32769
35469
  }
32770
35470
 
35471
+ // src/commands/devops.ts
35472
+ import { join as join4 } from "node:path";
35473
+
35474
+ // src/devops/pure.ts
35475
+ import { createHash as createHash2 } from "node:crypto";
35476
+ var PROJECT_ID = /^dvp_[a-z0-9]+$/;
35477
+ var POLL_MS = 5000;
35478
+ var FAILURE_LIMIT = 20;
35479
+ var hint = 'Pass --project dvp_…, or add "devops": { "project": "dvp_…" } to praxis.jsonc in the current directory.';
35480
+ function checkProject(value, hintText = hint) {
35481
+ if (typeof value !== "string" || !value.trim())
35482
+ throw new UsageError("A DevOps project id must be a non-empty string", hintText);
35483
+ if (!PROJECT_ID.test(value.trim()))
35484
+ throw new UsageError(`Not a DevOps project id: ${value}`, "A project id starts with dvp_ and comes from the project list. " + hintText);
35485
+ return value.trim();
35486
+ }
35487
+ function parseDevopsProject(value) {
35488
+ if (value === null || value === undefined || typeof value !== "object" || Array.isArray(value))
35489
+ return;
35490
+ const devops = value.devops;
35491
+ if (devops === undefined)
35492
+ return;
35493
+ if (devops === null || typeof devops !== "object" || Array.isArray(devops))
35494
+ throw new UsageError("praxis.jsonc devops must be an object", 'Write {"devops":{"project":"dvp_…"}}. ' + hint);
35495
+ const project = devops.project;
35496
+ if (project === undefined)
35497
+ return;
35498
+ return checkProject(project);
35499
+ }
35500
+ function resolveProject(flag, projectFile) {
35501
+ if (flag !== undefined)
35502
+ return checkProject(flag);
35503
+ const fromFile = parseDevopsProject(projectFile);
35504
+ if (fromFile !== undefined)
35505
+ return fromFile;
35506
+ throw new UsageError("No DevOps project named for this run", hint);
35507
+ }
35508
+ var sorted = (values) => [...values].sort();
35509
+ var SELECT_KINDS = { tag: "anyTags", package: "packages", suite: "packages", file: "packages" };
35510
+ function parseSelect(values) {
35511
+ if (!values.length)
35512
+ return;
35513
+ const tags = [], packages = [];
35514
+ for (const raw of values) {
35515
+ const at = raw.indexOf(":");
35516
+ const kind = at < 0 ? "tag" : raw.slice(0, at).trim().toLowerCase();
35517
+ const value = (at < 0 ? raw : raw.slice(at + 1)).trim();
35518
+ const kinds = Object.keys(SELECT_KINDS).join(", ");
35519
+ if (!value)
35520
+ throw new UsageError(`--select ${raw} names no value`, `Use --select <kind>:<value>, or a bare tag name; kinds are ${kinds}.`);
35521
+ if (!Object.hasOwn(SELECT_KINDS, kind))
35522
+ throw new UsageError(`--select ${raw}: unknown kind "${kind}"`, `Use one of: ${kinds}.`);
35523
+ (SELECT_KINDS[kind] === "anyTags" ? tags : packages).push(value);
35524
+ }
35525
+ return { ...tags.length ? { anyTags: sorted(tags) } : {}, ...packages.length ? { packages: sorted(packages) } : {} };
35526
+ }
35527
+ function parseRepeat(value) {
35528
+ if (value === undefined)
35529
+ return 1;
35530
+ const n = typeof value === "string" && value.trim() ? Number(value) : NaN;
35531
+ if (!Number.isSafeInteger(n) || n < 1)
35532
+ throw new UsageError("--repeat must be an integer of at least 1");
35533
+ return n;
35534
+ }
35535
+ function requireRemote(remote) {
35536
+ if (!remote)
35537
+ throw new UsageError("Only remote test runs are available", "Add --remote to run the selected cases on the Praxis cloud executor.");
35538
+ }
35539
+ function requestIdFor(input) {
35540
+ const selector = input.selector === undefined ? null : {
35541
+ sizes: sorted(input.selector.sizes ?? []),
35542
+ anyTags: sorted(input.selector.anyTags ?? []),
35543
+ packages: sorted(input.selector.packages ?? []),
35544
+ cases: sorted(input.selector.cases ?? [])
35545
+ };
35546
+ const material = JSON.stringify(["devops-test-run", input.project, input.commit, input.repeat, selector]);
35547
+ return `req_${createHash2("sha256").update(material).digest("hex").slice(0, 32)}`;
35548
+ }
35549
+ var isTerminal = (state) => state === "finished";
35550
+ function shortSha(commit) {
35551
+ return commit.slice(0, 7);
35552
+ }
35553
+ function headBranch(output) {
35554
+ const name = output.trim();
35555
+ return !name || name === "HEAD" ? undefined : name;
35556
+ }
35557
+ function requirePushed(remoteContains, commit, branch) {
35558
+ if (remoteContains.trim())
35559
+ return;
35560
+ throw new UsageError(`Commit ${shortSha(commit)}${branch ? ` on ${branch}` : ""} is not on any remote branch`, `Push it first (git push${branch ? ` origin ${branch}` : ""}); the run tests the pushed commit, and this command never pushes for you.`);
35561
+ }
35562
+ function dirtyNotice(status, commit) {
35563
+ const files = status.split(`
35564
+ `).filter((line) => line.trim()).length;
35565
+ if (files === 0)
35566
+ return;
35567
+ return `Warning: ${files} uncommitted change${files === 1 ? "" : "s"}; the run tests the pushed commit ${shortSha(commit)}, not this working tree.`;
35568
+ }
35569
+ function exitCodeFor(result) {
35570
+ return result === "passed" || result === "pending" ? 0 : 1;
35571
+ }
35572
+ var wantsFailures = (result) => result !== "passed" && result !== "pending";
35573
+ function failedList(items, nextPageToken2, url) {
35574
+ const shown = items.slice(0, FAILURE_LIMIT);
35575
+ if (items.length <= FAILURE_LIMIT && !nextPageToken2)
35576
+ return { shown };
35577
+ return { shown, hint: `Showing ${FAILURE_LIMIT} of the failed cases; the run page lists them all: ${url}` };
35578
+ }
35579
+ var CONSOLE = { develop: "https://console-develop.deepraxis.com", production: "https://console.deepraxis.com" };
35580
+ function runUrl(env, project, id, viewerUrl) {
35581
+ return viewerUrl?.trim() || `${CONSOLE[env]}/devops/projects/${project}/test-runs/${id}`;
35582
+ }
35583
+
35584
+ // src/commands/devops.ts
35585
+ async function projectFile(cwd, ports) {
35586
+ let text;
35587
+ try {
35588
+ text = await ports.readFile(join4(cwd, "praxis.jsonc"));
35589
+ } catch (error) {
35590
+ if (error.code === "ENOENT")
35591
+ return;
35592
+ throw error;
35593
+ }
35594
+ try {
35595
+ return parseJsonc(text);
35596
+ } catch (error) {
35597
+ throw new UsageError(`praxis.jsonc is not valid JSONC: ${error.message}`);
35598
+ }
35599
+ }
35600
+ var COUNT_ORDER = ["passed", "failed", "flaky", "skipped", "pending", "other"];
35601
+ var countLine = (counts) => COUNT_ORDER.filter((key) => counts?.[key]).map((key) => `${counts[key]} ${key}`).join(", ") || "no counts reported";
35602
+ async function devopsTestRun(args, connect, env, ports) {
35603
+ requireRemote(args.remote);
35604
+ const project = resolveProject(args.project, await projectFile(ports.cwd, ports));
35605
+ const selector = parseSelect(args.select ?? []);
35606
+ const repeat = parseRepeat(args.repeat);
35607
+ const git = async (gitArgs) => (await ports.git(gitArgs, ports.cwd)).output;
35608
+ const commit = (await git(["rev-parse", "HEAD"])).trim();
35609
+ if (!commit)
35610
+ throw new UsageError("git rev-parse HEAD answered no commit", "Run this command inside a git repository.");
35611
+ const branch = headBranch(await git(["rev-parse", "--abbrev-ref", "HEAD"]));
35612
+ requirePushed(await git(["branch", "-r", "--contains", "HEAD"]), commit, branch);
35613
+ const notice = dirtyNotice(await git(["status", "--porcelain"]), commit);
35614
+ if (notice)
35615
+ ports.emit({ kind: "message", channel: "stderr", text: notice });
35616
+ const client2 = await connect();
35617
+ const requestId = requestIdFor({ project, commit, selector, repeat });
35618
+ let run = await client2.devops.projects.testRuns.create({ path: { project }, body: { ref: { ...branch ? { branch } : {}, commit }, ...selector ? { selector } : {}, repeat, executor: "cloud", requestId } });
35619
+ while (args.wait && !isTerminal(run.state)) {
35620
+ await ports.wait(POLL_MS);
35621
+ run = await client2.devops.testRuns.retrieve({ path: { id: run.id } });
35622
+ }
35623
+ const url = runUrl(env, project, run.id, run.viewerUrl);
35624
+ let failures = [], failureHint;
35625
+ if (wantsFailures(run.result)) {
35626
+ const page = await client2.devops.testRuns.executions.list({ path: { run: run.id }, query: { pageSize: FAILURE_LIMIT, filter: "result=failed" } });
35627
+ ({ shown: failures, hint: failureHint } = failedList(page.items, page.nextPageToken, url));
35628
+ }
35629
+ const data = {
35630
+ id: run.id,
35631
+ url,
35632
+ project,
35633
+ state: run.state,
35634
+ result: run.result,
35635
+ repeat,
35636
+ commit,
35637
+ ...branch ? { branch } : {},
35638
+ selected: run.selection?.selectedCount ?? null,
35639
+ counts: run.counts ?? null,
35640
+ request_id: requestId,
35641
+ failures: failures.map((execution) => ({ case: execution.case, title: execution.title, package: execution.package ?? null, status: execution.status })),
35642
+ ...failureHint ? { failures_hint: failureHint } : {}
35643
+ };
35644
+ ports.emit({ kind: "object", data });
35645
+ ports.human([
35646
+ `${run.result} — ${project} @ ${commit.slice(0, 7)}${branch ? ` (${branch})` : ""}`,
35647
+ `state ${run.state}, ${countLine(run.counts)}`,
35648
+ url,
35649
+ ...failures.map((execution) => ` failed ${execution.title}`),
35650
+ ...failureHint ? [failureHint] : []
35651
+ ].join(`
35652
+ `));
35653
+ return exitCodeFor(run.result);
35654
+ }
35655
+
32771
35656
  // src/main.ts
32772
35657
  import { spawnSync } from "node:child_process";
32773
35658
 
@@ -33066,9 +35951,11 @@ function renderHuman(result, ctx) {
33066
35951
  const details = result.details !== undefined ? JSON.stringify(result.details) : undefined;
33067
35952
  const detailsLine = details !== undefined ? ` details ${details.length > 2000 ? details.slice(0, 1999) + "…" : details}
33068
35953
  ` : "";
35954
+ const problemLine = problemLines(result.problem).map((line) => ` ${plain(line)}
35955
+ `).join("");
33069
35956
  return { stderr: err.red(`✗ ${plain(result.message)}`) + `
33070
35957
  ` + err.dim(` code ${plain(result.code)}${result.status !== undefined ? ` · ${result.status}` : ""} · env ${plain(result.env)}${result.request_id ? ` · request ${plain(result.request_id)}` : ""}`) + `
33071
- ` + detailsLine + (result.hint ? ` → ${plain(result.hint)}
35958
+ ` + detailsLine + problemLine + (result.hint ? ` → ${plain(result.hint)}
33072
35959
  ` : "") };
33073
35960
  }
33074
35961
  case "list":
@@ -33156,8 +36043,33 @@ ${usage ? `usage: ${JSON.stringify(usage)}
33156
36043
  }
33157
36044
 
33158
36045
  // src/output/render.ts
36046
+ var PROBLEM_HINTS = ["hint", "errors", "violations", "title", "type"];
36047
+ function serverProblem(raw) {
36048
+ const value = record(raw);
36049
+ const problem = {};
36050
+ for (const member of ["code", "detail", ...PROBLEM_HINTS, "status"]) {
36051
+ const entry = value[member];
36052
+ if (entry !== undefined && entry !== null)
36053
+ problem[member] = entry;
36054
+ }
36055
+ const adds = PROBLEM_HINTS.some((member) => Array.isArray(problem[member]) ? problem[member].length > 0 : problem[member] !== undefined);
36056
+ return adds ? problem : undefined;
36057
+ }
36058
+ function problemLines(problem) {
36059
+ const lines = [];
36060
+ for (const group of [problem?.errors, problem?.violations]) {
36061
+ for (const item of Array.isArray(group) ? group : []) {
36062
+ const entry = record(item);
36063
+ const where = scalar(entry.pointer ?? entry.field);
36064
+ const detail = scalar(entry.detail ?? entry.message ?? entry.reason);
36065
+ if (where || detail)
36066
+ lines.push(`${where ? `${where}: ` : ""}${detail}`);
36067
+ }
36068
+ }
36069
+ return lines;
36070
+ }
33159
36071
  function errorJSON(result, ctx) {
33160
- return JSON.stringify({ error: { code: result.code, ...result.details !== undefined ? { details: result.details } : {}, message: result.message, hint: result.hint ?? null, env: result.env, command: ctx.command ?? null, status: result.status ?? null, request_id: result.request_id ?? null, ...result.credential_source ? { credential_source: result.credential_source } : {} } }) + `
36072
+ return JSON.stringify({ error: { code: result.code, ...result.details !== undefined ? { details: result.details } : {}, message: result.message, hint: result.hint ?? null, env: result.env, command: ctx.command ?? null, status: result.status ?? null, request_id: result.request_id ?? null, ...result.problem !== undefined ? { problem: result.problem } : {}, ...result.credential_source ? { credential_source: result.credential_source } : {} } }) + `
33161
36073
  `;
33162
36074
  }
33163
36075
  function render(result, ctx) {
@@ -33313,6 +36225,8 @@ function errorInput(error, ctx) {
33313
36225
  const raw = record(sdk?.raw), nested = record(raw.error);
33314
36226
  const candidate = nested.details ?? raw.details;
33315
36227
  const details = candidate !== null && typeof candidate === "object" && !Array.isArray(candidate) ? candidate : undefined;
36228
+ const problem = serverProblem(Object.keys(nested).length ? nested : raw);
36229
+ const serverText = (value) => typeof value === "string" && value.trim() ? value : undefined;
33316
36230
  let message = error instanceof Error ? error.message : "Unexpected error";
33317
36231
  const prefix = message.match(/^([A-Z][A-Z0-9_]+):\s*/)?.[1];
33318
36232
  const code = error instanceof UsageError ? error.code : businessCode(raw.code) ?? businessCode(nested.code) ?? businessCode(raw.error_code) ?? prefix ?? businessCode(sdk?.code) ?? (sdk?.status ? `HTTP_${sdk.status}` : sdk ? "API_ERROR" : "RUNTIME_ERROR");
@@ -33324,22 +36238,25 @@ function errorInput(error, ctx) {
33324
36238
  if (stripped)
33325
36239
  message = `${humanize(code)}${message ? `: ${message}` : ""}`;
33326
36240
  const status = sdk?.status, request_id = sdk?.requestId;
36241
+ message = serverText(problem?.detail) ?? serverText(problem?.title) ?? message;
33327
36242
  const authFailure = status === 401 || ["NOT_LOGGED_IN", "UNAUTHENTICATED", "TOKEN_REVOKED", "LOGIN_FAILED"].includes(code);
33328
36243
  const source = ctx.credentialSource ?? "login";
33329
- let hint = genericHint;
36244
+ let hint2 = genericHint;
33330
36245
  if (error instanceof UsageError)
33331
- hint = error.hint;
36246
+ hint2 = error.hint;
36247
+ else if (serverText(problem?.hint))
36248
+ hint2 = serverText(problem?.hint);
33332
36249
  else if (authFailure)
33333
- hint = authHint(source);
36250
+ hint2 = authHint(source);
33334
36251
  else if (status === 404)
33335
- hint = ctx.listCommand ? `Check the id; list existing ones with \`${ctx.listCommand}\`` : "Check the id.";
36252
+ hint2 = ctx.listCommand ? `Check the id; list existing ones with \`${ctx.listCommand}\`` : "Check the id.";
33336
36253
  else if (status === 403)
33337
- hint = "Check that your account or API key has permission to access this resource.";
36254
+ hint2 = "Check that your account or API key has permission to access this resource.";
33338
36255
  else if (status === 429)
33339
- hint = "Rate limited; retry later.";
36256
+ hint2 = "Rate limited; retry later.";
33340
36257
  else if (status !== undefined && status >= 500)
33341
- hint = `Server error; retry later.${request_id ? ` Request id: ${request_id}.` : ""}`;
33342
- return { kind: "error", code, message, hint, ...details !== undefined ? { details } : {}, env: ctx.env, ...authFailure ? { credential_source: source } : {}, ...status !== undefined ? { status } : {}, ...request_id ? { request_id } : {} };
36258
+ hint2 = `Server error; retry later.${request_id ? ` Request id: ${request_id}.` : ""}`;
36259
+ return { kind: "error", code, message, hint: hint2, ...details !== undefined ? { details } : {}, ...problem !== undefined ? { problem } : {}, env: ctx.env, ...authFailure ? { credential_source: source } : {}, ...status !== undefined ? { status } : {}, ...request_id ? { request_id } : {} };
33343
36260
  }
33344
36261
 
33345
36262
  // src/output/progress.ts
@@ -33369,7 +36286,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
33369
36286
  }
33370
36287
 
33371
36288
  // src/main.ts
33372
- var version = "0.2.1-dev.cc34a92";
36289
+ var version = "0.2.1-dev.d412c99";
33373
36290
  var commands = commandTree(operations);
33374
36291
  var manual = [...workflows.map((w) => w.words), [API_WORD]];
33375
36292
  function route(argv) {
@@ -33454,7 +36371,14 @@ var defaults = {
33454
36371
  var appOptions = {
33455
36372
  "app create": [{ name: "dir", type: "string", description: "Directory to create the project in (default: ./<name>)." }, { name: "template", type: "string", description: "Copy a local template directory instead of downloading the standard template." }, { name: "no-install", type: "boolean", description: "Skip installing dependencies." }],
33456
36373
  "app deploy": [{ name: "dir", type: "string", description: "Project directory (default: the nearest parent containing praxis.jsonc)." }, { name: "no-build", type: "boolean", description: "Publish the existing dist/ output without building." }],
33457
- "app rollback": [{ name: "dir", type: "string", description: "Project directory (default: the nearest parent containing praxis.jsonc)." }, { name: "to", type: "string", description: "Version id to deploy (default: the previous version)." }]
36374
+ "app rollback": [{ name: "dir", type: "string", description: "Project directory (default: the nearest parent containing praxis.jsonc)." }, { name: "to", type: "string", description: "Version id to deploy (default: the previous version)." }],
36375
+ "devops test run": [
36376
+ { name: "project", type: "string", description: "DevOps project id (dvp_…); default: the devops.project field of praxis.jsonc in the current directory." },
36377
+ { name: "remote", type: "boolean", description: "Run the cases on the Praxis cloud executor. Required; local execution does not exist yet." },
36378
+ { name: "no-wait", type: "boolean", description: "Return as soon as the run exists instead of waiting for a verdict." },
36379
+ { name: "repeat", type: "string", description: "How many times each selected case runs (default: 1)." },
36380
+ { name: "select", type: "string", repeated: true, description: "Narrow the selection; repeatable. tag:<tag> (a bare word reads as a tag), package:<path>, suite:<path> or file:<path>." }
36381
+ ]
33458
36382
  };
33459
36383
  async function main(argv, injected = {}) {
33460
36384
  const ports = { ...defaults, ...injected };
@@ -33587,7 +36511,7 @@ Examples:
33587
36511
  let owner = client2;
33588
36512
  for (const part of op.resource.split("."))
33589
36513
  owner = owner[part];
33590
- const result = await owner[op.method](opts);
36514
+ let result = await owner[op.method](opts);
33591
36515
  const name2 = `${op.resource}.${op.method}`;
33592
36516
  const list = (items) => {
33593
36517
  const view = clientList(items, op, flags.limit, ctx.mode);
@@ -33601,7 +36525,21 @@ Examples:
33601
36525
  const cursor = result instanceof Page ? result.next_cursor : record(result).next_cursor ?? record(result).nextToken;
33602
36526
  if (typeof cursor === "string" && cursor)
33603
36527
  ctx.nextCommand = nextPageCommand(selected.command, parsed, cursor);
33604
- if (result instanceof Page) {
36528
+ const pageToken = pageTokenField(op), token = pageToken?.sdkName ?? pageToken?.name;
36529
+ const firstPage = flags.all && !(result instanceof Page) && token ? pageOf(result) : undefined;
36530
+ if (flags.all && !(result instanceof Page) && token && !firstPage)
36531
+ throw new UsageError(`--all cannot find the list in ${op.resource}.${op.method}'s response; page with --${token.replace(/_/g, "-")} instead`);
36532
+ if (firstPage) {
36533
+ const items = [...firstPage.items];
36534
+ const seen = new Set;
36535
+ for (let next = firstPage.token;next && !seen.has(next); next = pageOf(result)?.token) {
36536
+ seen.add(next);
36537
+ result = await owner[op.method]({ ...opts, query: { ...opts.query, [token]: next } });
36538
+ items.push(...pageOf(result)?.items ?? []);
36539
+ }
36540
+ ctx.nextCommand = undefined;
36541
+ emit({ kind: "list", ...list(items), ...ctx.mode === "json" ? { raw: { data: items, next_page_token: null } } : {}, nextCursor: null, op: name2 });
36542
+ } else if (result instanceof Page) {
33605
36543
  if (flags.all) {
33606
36544
  const items = [];
33607
36545
  for await (const item of result)
@@ -33675,6 +36613,26 @@ Examples:
33675
36613
  await appRollback({ dir, to: parsed.flags.to?.[0] }, client2, appPorts);
33676
36614
  break;
33677
36615
  }
36616
+ case "devops test run": {
36617
+ return await devopsTestRun({
36618
+ project: parsed.flags.project?.[0],
36619
+ remote: Boolean(parsed.flags.remote),
36620
+ wait: !parsed.flags["no-wait"],
36621
+ repeat: parsed.flags.repeat?.[0],
36622
+ select: parsed.flags.select
36623
+ }, async () => await auth.client(org), config.env, {
36624
+ git: (args, cwd) => ports.spawnCapture("git", args, { cwd }),
36625
+ readFile: ports.readFile,
36626
+ wait: ports.wait,
36627
+ mode: ctx.mode,
36628
+ emit,
36629
+ human: (text) => {
36630
+ if (ctx.mode === "human")
36631
+ emit({ kind: "message", channel: "stdout", text });
36632
+ },
36633
+ cwd: ports.cwd
36634
+ });
36635
+ }
33678
36636
  case "api": {
33679
36637
  const method = parsed.positional[0];
33680
36638
  if (!HTTP_METHOD.test(method))
@@ -33697,7 +36655,7 @@ Examples:
33697
36655
  }
33698
36656
  }
33699
36657
  if (true)
33700
- process.exit(await main(process.argv.slice(2)));
36658
+ process.exitCode = await main(process.argv.slice(2));
33701
36659
  export {
33702
36660
  main
33703
36661
  };