@deepraxis/sdk 0.1.1-dev.463d5b5 → 0.1.1-dev.4786c3d

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.
@@ -135,7 +135,7 @@ export const operations = [
135
135
  "type": "array",
136
136
  "itemType": "object",
137
137
  "required": false,
138
- "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."
138
+ "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."
139
139
  },
140
140
  {
141
141
  "name": "kind",
@@ -1160,6 +1160,35 @@ export const operations = [
1160
1160
  }
1161
1161
  ]
1162
1162
  },
1163
+ {
1164
+ "resource": "agent.computers.files.convert",
1165
+ "method": "create",
1166
+ "summary": "Convert a Computer Document to PDF",
1167
+ "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.\n\nPraxis 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.",
1168
+ "http": "POST",
1169
+ "path": "/agent/v1/computers/{computer_id}/files/convert",
1170
+ "streaming": "no",
1171
+ "pagination": false,
1172
+ "pathParams": [
1173
+ {
1174
+ "name": "computer_id",
1175
+ "sdkName": "computer_id",
1176
+ "description": "Computer id (cmp_...), as returned by computers.create or computers.list."
1177
+ }
1178
+ ],
1179
+ "query": [],
1180
+ "body": {
1181
+ "required": true,
1182
+ "fields": [
1183
+ {
1184
+ "name": "name",
1185
+ "type": "string",
1186
+ "required": true,
1187
+ "description": "Name of the entry or object."
1188
+ }
1189
+ ]
1190
+ }
1191
+ },
1163
1192
  {
1164
1193
  "resource": "agent.computers.leases",
1165
1194
  "method": "delete",
@@ -5987,7 +6016,7 @@ export const operations = [
5987
6016
  "allow"
5988
6017
  ],
5989
6018
  "required": false,
5990
- "description": "skip (default) skips when a previous run is still active; allow permits overlapping runs."
6019
+ "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."
5991
6020
  },
5992
6021
  {
5993
6022
  "name": "catchup_window_seconds",
@@ -6161,7 +6190,7 @@ export const operations = [
6161
6190
  "allow"
6162
6191
  ],
6163
6192
  "required": false,
6164
- "description": "skip (default) skips when a previous run is still active; allow permits overlapping runs."
6193
+ "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."
6165
6194
  },
6166
6195
  {
6167
6196
  "name": "catchup_window_seconds",
@@ -9827,7 +9856,7 @@ export const operations = [
9827
9856
  "resource": "cut.projects.analysis",
9828
9857
  "method": "create",
9829
9858
  "summary": "Analyze project media",
9830
- "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.",
9859
+ "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. 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.",
9831
9860
  "http": "POST",
9832
9861
  "path": "/cut/v1/projects/{project_id}/analysis",
9833
9862
  "streaming": "no",
@@ -9998,6 +10027,18 @@ export const operations = [
9998
10027
  "body": {
9999
10028
  "required": true,
10000
10029
  "fields": [
10030
+ {
10031
+ "name": "folder",
10032
+ "type": "string",
10033
+ "required": false,
10034
+ "description": "Optional destination path within the bound media library; omitted uses its default folder."
10035
+ },
10036
+ {
10037
+ "name": "name",
10038
+ "type": "string",
10039
+ "required": false,
10040
+ "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."
10041
+ },
10001
10042
  {
10002
10043
  "name": "output",
10003
10044
  "type": "object",
@@ -10015,6 +10056,12 @@ export const operations = [
10015
10056
  "type": "integer",
10016
10057
  "required": false,
10017
10058
  "description": "Committed project revision from retrieve, state, timeline or execute; increases after each successful write."
10059
+ },
10060
+ {
10061
+ "name": "loudness",
10062
+ "type": "object",
10063
+ "required": false,
10064
+ "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."
10018
10065
  }
10019
10066
  ]
10020
10067
  }
@@ -10023,7 +10070,7 @@ export const operations = [
10023
10070
  "resource": "cut.projects.frames",
10024
10071
  "method": "list",
10025
10072
  "summary": "Render preview frames",
10026
- "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. Decode its base64 payload to save the image. Codemode returns at most four images per call, so request at most four times when reviewing there.",
10073
+ "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.",
10027
10074
  "http": "GET",
10028
10075
  "path": "/cut/v1/projects/{project_id}/frames",
10029
10076
  "streaming": "no",
@@ -10046,7 +10093,7 @@ export const operations = [
10046
10093
  "name": "scale",
10047
10094
  "type": "number",
10048
10095
  "required": false,
10049
- "description": "Positive image size multiplier; 0.5 renders at half the project dimensions."
10096
+ "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."
10050
10097
  },
10051
10098
  {
10052
10099
  "name": "revision",
@@ -10238,7 +10285,7 @@ export const operations = [
10238
10285
  "resource": "cut.projects",
10239
10286
  "method": "execute",
10240
10287
  "summary": "Execute editing script",
10241
- "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n### Script function reference\n\nFunctions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. Reads see earlier writes in the same script.\n\n```ts\nGetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;\nGetItem(id: ClipId): ItemView;\nFindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];\nGetMedia(ref: MediaRef): MediaInfo;\nGetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];\nGetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];\nInsert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;\nUpdate(id: ClipId, patch: ItemPatchView): void;\nDelete(id: ClipId, o?: { ripple?: boolean }): void;\nSplit(id: ClipId, at: number): ClipId;\nTrim(id: ClipId, edge: \"in\" | \"out\", delta: number, o?: { ripple?: boolean }): void;\nMove(id: ClipId, start: number, track?: TrackId): void;\nRippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;\nAddTrack(kind: \"video\" | \"audio\" | \"caption\", init?: { name?: string }, index?: number): TrackId;\nUpdateTrack(id: TrackId, patch: TrackPatch): void;\nDeleteTrack(id: TrackId): void;\nSetSettings(patch: Partial<ProjectSettingsView>): void;\nAddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];\nSetMarker(at: number, label: string): string;\nPrint(...values: unknown[]): void;\nPreview(at: number[]): void;\n```\n\n| Functions | Behavior and arguments |\n| --- | --- |\n| GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration and tracks (id, kind, name, index, locked, items); from/to and tracks narrow the read. |\n| FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |\n| GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |\n| GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |\n| Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |\n| Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |\n| RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |\n| AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |\n| SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |\n| AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |\n| SetMarker | Add a label at a timeline time and return its ID. |\n| Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |\n\n#### Insert fields (ItemInit)\n\nEvery item requires `type` and `start`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.\n\n| type | Required fields beyond type/start | Optional fields |\n| --- | --- | --- |\n| video | media | length, sourceIn, volumeDb, transform, fit, animate, transitionIn, transitionOut |\n| image | media, length | transform, fit, animate, transitionIn, transitionOut |\n| text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |\n| color | color, length | transform, fill, animate, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |\n| audio | media | length, sourceIn, volumeDb, fadeIn, fadeOut, transitionIn, transitionOut |\n| caption | text, length | — |\n\nVideo tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.\n\n| Field | Value |\n| --- | --- |\n| transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |\n| style | Partial `{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth}`. fontFamily: Geist or Noto Sans SC (default); fontSize defaults to 48; fontWeight: 400 (default), 500 or 700; color defaults to #FFFFFF; align: left, center (default), right; maxWidth is a fraction of canvas width (default 0.9). stroke is `{color,width}`. Caption style additionally supports position (top/middle/bottom), margin (0–0.4 of canvas height), highlightColor and maxLines: 2. |\n| animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |\n| Ease | linear, in, out, inOut, `{bezier: [x1,y1,x2,y2]}` or `{spring: {stiffness, damping, mass?}}`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |\n| reveal | `{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |\n| fill | A color string (#RRGGBB or #RRGGBBAA), `{linear: {angle, stops: [{at,color}, ...]}}` or `{radial: {stops: [{at,color}, ...]}}`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |\n| shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is `{color: string, width: number}`. |\n| transitionIn, transitionOut | `{kind, length: number}` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |\n\n#### Update fields (ItemPatchView)\n\nAll fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, animate, reveal, fill, stroke, shape, width, height, radius, transitionIn, transitionOut. Values and units match Insert. Set animate, reveal, fill, stroke, transitionIn or transitionOut to null to remove that effect; omitting a field preserves it. For example: `Update(id, {volumeDb: -12})` or `Update(id, {transitionIn: null})`.\n\n#### Script names versus HTTP response names\n\nUse camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.\n\nUnrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.\n",
10288
+ "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `durationUs` is microseconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler or scene segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `AddTrack` — Add a video, audio or caption track.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; optional for video and audio.\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
10242
10289
  "http": "POST",
10243
10290
  "path": "/cut/v1/projects/{project_id}:execute",
10244
10291
  "streaming": "no",
@@ -11422,7 +11469,7 @@ export const operations = [
11422
11469
  "resource": "file.files.contentLinks",
11423
11470
  "method": "revoke",
11424
11471
  "summary": "Revoke a file content link",
11425
- "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/>\"}.",
11472
+ "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/>\"}.",
11426
11473
  "http": "POST",
11427
11474
  "path": "/file/v1/files/{file_id}/content_links:revoke",
11428
11475
  "streaming": "no",
@@ -11451,7 +11498,7 @@ export const operations = [
11451
11498
  "resource": "file.files.contentUrl",
11452
11499
  "method": "create",
11453
11500
  "summary": "Create a download URL",
11454
- "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}.",
11501
+ "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}.",
11455
11502
  "http": "POST",
11456
11503
  "path": "/file/v1/files/{file_id}/content_url",
11457
11504
  "streaming": "no",
@@ -11471,7 +11518,7 @@ export const operations = [
11471
11518
  "name": "ttl_seconds",
11472
11519
  "type": "integer",
11473
11520
  "required": false,
11474
- "description": "Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry."
11521
+ "description": "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry."
11475
11522
  }
11476
11523
  ]
11477
11524
  }
@@ -11480,7 +11527,7 @@ export const operations = [
11480
11527
  "resource": "file.uploads",
11481
11528
  "method": "create",
11482
11529
  "summary": "Create an upload",
11483
- "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, assistants 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.",
11530
+ "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.",
11484
11531
  "http": "POST",
11485
11532
  "path": "/file/v1/uploads",
11486
11533
  "streaming": "no",
@@ -11494,7 +11541,7 @@ export const operations = [
11494
11541
  "name": "bytes",
11495
11542
  "type": "integer",
11496
11543
  "required": true,
11497
- "description": "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match."
11544
+ "description": "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match."
11498
11545
  },
11499
11546
  {
11500
11547
  "name": "filename",
@@ -11538,7 +11585,7 @@ export const operations = [
11538
11585
  "resource": "file.uploads",
11539
11586
  "method": "createSigned",
11540
11587
  "summary": "Create a one-time upload URL",
11541
- "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\"}.",
11588
+ "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\"}.",
11542
11589
  "http": "POST",
11543
11590
  "path": "/file/v1/uploads/signed",
11544
11591
  "streaming": "no",
@@ -11558,7 +11605,7 @@ export const operations = [
11558
11605
  "name": "bytes",
11559
11606
  "type": "integer",
11560
11607
  "required": true,
11561
- "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."
11608
+ "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."
11562
11609
  },
11563
11610
  {
11564
11611
  "name": "content_type",
@@ -11581,7 +11628,7 @@ export const operations = [
11581
11628
  "name": "expires_in",
11582
11629
  "type": "integer",
11583
11630
  "required": false,
11584
- "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."
11631
+ "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."
11585
11632
  },
11586
11633
  {
11587
11634
  "name": "part_size",
@@ -11592,6 +11639,24 @@ export const operations = [
11592
11639
  ]
11593
11640
  }
11594
11641
  },
11642
+ {
11643
+ "resource": "file.uploads",
11644
+ "method": "retrieve",
11645
+ "summary": "Retrieve an upload",
11646
+ "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.",
11647
+ "http": "GET",
11648
+ "path": "/file/v1/uploads/{upload_id}",
11649
+ "streaming": "no",
11650
+ "pagination": false,
11651
+ "pathParams": [
11652
+ {
11653
+ "name": "upload_id",
11654
+ "sdkName": "upload_id",
11655
+ "description": "Upload identifier returned by create; the upload must belong to your organization."
11656
+ }
11657
+ ],
11658
+ "query": []
11659
+ },
11595
11660
  {
11596
11661
  "resource": "file.uploads",
11597
11662
  "method": "cancel",
@@ -11614,7 +11679,7 @@ export const operations = [
11614
11679
  "resource": "file.uploads",
11615
11680
  "method": "complete",
11616
11681
  "summary": "Complete an upload",
11617
- "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.",
11682
+ "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.",
11618
11683
  "http": "POST",
11619
11684
  "path": "/file/v1/uploads/{upload_id}/complete",
11620
11685
  "streaming": "no",
@@ -11650,7 +11715,7 @@ export const operations = [
11650
11715
  "resource": "file.uploads.parts",
11651
11716
  "method": "create",
11652
11717
  "summary": "Add an upload part",
11653
- "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.",
11718
+ "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.",
11654
11719
  "http": "POST",
11655
11720
  "path": "/file/v1/uploads/{upload_id}/parts",
11656
11721
  "streaming": "no",
@@ -11738,7 +11803,7 @@ export const operations = [
11738
11803
  "resource": "knowledge.vectorStores",
11739
11804
  "method": "create",
11740
11805
  "summary": "Create knowledge base",
11741
- "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\"}.",
11806
+ "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\"}.",
11742
11807
  "http": "POST",
11743
11808
  "path": "/knowledge/v1/vector_stores",
11744
11809
  "streaming": "no",
@@ -11777,7 +11842,7 @@ export const operations = [
11777
11842
  "name": "chunking_strategy",
11778
11843
  "type": "object",
11779
11844
  "required": false,
11780
- "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."
11845
+ "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."
11781
11846
  },
11782
11847
  {
11783
11848
  "name": "description",
@@ -12124,7 +12189,7 @@ export const operations = [
12124
12189
  "resource": "knowledge.vectorStores.files",
12125
12190
  "method": "create",
12126
12191
  "summary": "Add file",
12127
- "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.",
12192
+ "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.",
12128
12193
  "http": "POST",
12129
12194
  "path": "/knowledge/v1/vector_stores/{vector_store_id}/files",
12130
12195
  "streaming": "no",
@@ -12156,7 +12221,7 @@ export const operations = [
12156
12221
  "name": "chunking_strategy",
12157
12222
  "type": "object",
12158
12223
  "required": false,
12159
- "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."
12224
+ "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."
12160
12225
  }
12161
12226
  ]
12162
12227
  }
@@ -12463,11 +12528,23 @@ export const operations = [
12463
12528
  ],
12464
12529
  "query": []
12465
12530
  },
12531
+ {
12532
+ "resource": "media.generation.capabilities",
12533
+ "method": "list",
12534
+ "summary": "Get generation capabilities",
12535
+ "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.",
12536
+ "http": "GET",
12537
+ "path": "/media/v1/generation/capabilities",
12538
+ "streaming": "no",
12539
+ "pagination": false,
12540
+ "pathParams": [],
12541
+ "query": []
12542
+ },
12466
12543
  {
12467
12544
  "resource": "media.libraries",
12468
12545
  "method": "list",
12469
12546
  "summary": "List libraries",
12470
- "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.",
12547
+ "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.",
12471
12548
  "http": "GET",
12472
12549
  "path": "/media/v1/libraries",
12473
12550
  "streaming": "no",
@@ -12549,7 +12626,7 @@ export const operations = [
12549
12626
  "resource": "media.libraries",
12550
12627
  "method": "delete",
12551
12628
  "summary": "Delete library",
12552
- "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.",
12629
+ "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.",
12553
12630
  "http": "DELETE",
12554
12631
  "path": "/media/v1/libraries/{library_id}",
12555
12632
  "streaming": "no",
@@ -12567,7 +12644,7 @@ export const operations = [
12567
12644
  "resource": "media.libraries",
12568
12645
  "method": "retrieve",
12569
12646
  "summary": "Get library",
12570
- "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.",
12647
+ "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.",
12571
12648
  "http": "GET",
12572
12649
  "path": "/media/v1/libraries/{library_id}",
12573
12650
  "streaming": "no",
@@ -12585,7 +12662,7 @@ export const operations = [
12585
12662
  "resource": "media.libraries",
12586
12663
  "method": "update",
12587
12664
  "summary": "Update library",
12588
- "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.",
12665
+ "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.",
12589
12666
  "http": "PATCH",
12590
12667
  "path": "/media/v1/libraries/{library_id}",
12591
12668
  "streaming": "no",
@@ -12601,6 +12678,13 @@ export const operations = [
12601
12678
  "body": {
12602
12679
  "required": true,
12603
12680
  "fields": [
12681
+ {
12682
+ "name": "hotwords",
12683
+ "type": "array",
12684
+ "itemType": "string",
12685
+ "required": false,
12686
+ "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."
12687
+ },
12604
12688
  {
12605
12689
  "name": "models",
12606
12690
  "type": "object",
@@ -12632,7 +12716,7 @@ export const operations = [
12632
12716
  "resource": "media.libraries.assets",
12633
12717
  "method": "list",
12634
12718
  "summary": "List assets",
12635
- "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.",
12719
+ "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.",
12636
12720
  "http": "GET",
12637
12721
  "path": "/media/v1/libraries/{library_id}/assets",
12638
12722
  "streaming": "no",
@@ -12680,7 +12764,7 @@ export const operations = [
12680
12764
  "resource": "media.libraries.assets",
12681
12765
  "method": "create",
12682
12766
  "summary": "Upload asset",
12683
- "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.",
12767
+ "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.",
12684
12768
  "http": "POST",
12685
12769
  "path": "/media/v1/libraries/{library_id}/assets",
12686
12770
  "streaming": "no",
@@ -12725,7 +12809,7 @@ export const operations = [
12725
12809
  "name": "asset_folder",
12726
12810
  "type": "string",
12727
12811
  "required": false,
12728
- "description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
12812
+ "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."
12729
12813
  },
12730
12814
  {
12731
12815
  "name": "use_filename",
@@ -12804,7 +12888,7 @@ export const operations = [
12804
12888
  "resource": "media.libraries.assets.import",
12805
12889
  "method": "create",
12806
12890
  "summary": "Import file",
12807
- "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.",
12891
+ "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.",
12808
12892
  "http": "POST",
12809
12893
  "path": "/media/v1/libraries/{library_id}/assets/import",
12810
12894
  "streaming": "no",
@@ -12824,7 +12908,7 @@ export const operations = [
12824
12908
  "name": "file_id",
12825
12909
  "type": "string",
12826
12910
  "required": true,
12827
- "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."
12911
+ "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."
12828
12912
  },
12829
12913
  {
12830
12914
  "name": "public_id",
@@ -12848,7 +12932,7 @@ export const operations = [
12848
12932
  "name": "asset_folder",
12849
12933
  "type": "string",
12850
12934
  "required": false,
12851
- "description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
12935
+ "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."
12852
12936
  },
12853
12937
  {
12854
12938
  "name": "use_filename",
@@ -12927,7 +13011,7 @@ export const operations = [
12927
13011
  "resource": "media.libraries.assets",
12928
13012
  "method": "delete",
12929
13013
  "summary": "Delete asset",
12930
- "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.",
13014
+ "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.",
12931
13015
  "http": "DELETE",
12932
13016
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
12933
13017
  "streaming": "no",
@@ -12950,7 +13034,7 @@ export const operations = [
12950
13034
  "resource": "media.libraries.assets",
12951
13035
  "method": "retrieve",
12952
13036
  "summary": "Get asset",
12953
- "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.",
13037
+ "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.",
12954
13038
  "http": "GET",
12955
13039
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
12956
13040
  "streaming": "no",
@@ -12973,7 +13057,7 @@ export const operations = [
12973
13057
  "resource": "media.libraries.assets",
12974
13058
  "method": "update",
12975
13059
  "summary": "Update asset",
12976
- "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.",
13060
+ "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.",
12977
13061
  "http": "PATCH",
12978
13062
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}",
12979
13063
  "streaming": "no",
@@ -13004,7 +13088,7 @@ export const operations = [
13004
13088
  "name": "asset_folder",
13005
13089
  "type": "string",
13006
13090
  "required": false,
13007
- "description": "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected."
13091
+ "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."
13008
13092
  },
13009
13093
  {
13010
13094
  "name": "tags",
@@ -13022,11 +13106,57 @@ export const operations = [
13022
13106
  ]
13023
13107
  }
13024
13108
  },
13109
+ {
13110
+ "resource": "media.libraries.assets.frames",
13111
+ "method": "create",
13112
+ "summary": "Create frame URLs",
13113
+ "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.",
13114
+ "http": "POST",
13115
+ "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/frames",
13116
+ "streaming": "no",
13117
+ "pagination": false,
13118
+ "pathParams": [
13119
+ {
13120
+ "name": "library_id",
13121
+ "sdkName": "library_id",
13122
+ "description": "Library identifier returned by library creation or listing; must be accessible to the current credential."
13123
+ },
13124
+ {
13125
+ "name": "asset_id",
13126
+ "sdkName": "asset_id",
13127
+ "description": "Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps."
13128
+ }
13129
+ ],
13130
+ "query": [],
13131
+ "body": {
13132
+ "required": true,
13133
+ "fields": [
13134
+ {
13135
+ "name": "at_micros",
13136
+ "type": "array",
13137
+ "itemType": "integer",
13138
+ "required": true,
13139
+ "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."
13140
+ },
13141
+ {
13142
+ "name": "width",
13143
+ "type": "integer",
13144
+ "enum": [
13145
+ 160,
13146
+ 320,
13147
+ 640
13148
+ ],
13149
+ "required": false,
13150
+ "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."
13151
+ }
13152
+ ]
13153
+ }
13154
+ },
13025
13155
  {
13026
13156
  "resource": "media.libraries.assets.reprocess",
13027
13157
  "method": "create",
13028
13158
  "summary": "Reprocess asset",
13029
- "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.",
13159
+ "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.",
13030
13160
  "http": "POST",
13031
13161
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
13032
13162
  "streaming": "no",
@@ -13058,7 +13188,7 @@ export const operations = [
13058
13188
  "embedding"
13059
13189
  ],
13060
13190
  "required": false,
13061
- "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."
13191
+ "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."
13062
13192
  }
13063
13193
  ]
13064
13194
  }
@@ -13067,7 +13197,7 @@ export const operations = [
13067
13197
  "resource": "media.libraries.assets.understandings",
13068
13198
  "method": "list",
13069
13199
  "summary": "List understandings",
13070
- "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.",
13200
+ "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.",
13071
13201
  "http": "GET",
13072
13202
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/understandings",
13073
13203
  "streaming": "no",
@@ -13099,10 +13229,13 @@ export const operations = [
13099
13229
  "tags",
13100
13230
  "ocr",
13101
13231
  "transcript",
13102
- "frame"
13232
+ "frame",
13233
+ "overview",
13234
+ "audio",
13235
+ "embedding"
13103
13236
  ],
13104
13237
  "required": false,
13105
- "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."
13238
+ "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, and embedding reports a failed embedding step."
13106
13239
  },
13107
13240
  {
13108
13241
  "name": "cursor",
@@ -13122,7 +13255,7 @@ export const operations = [
13122
13255
  "resource": "media.libraries.assets",
13123
13256
  "method": "batch",
13124
13257
  "summary": "Batch assets alias",
13125
- "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.",
13258
+ "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.",
13126
13259
  "http": "POST",
13127
13260
  "path": "/media/v1/libraries/{library_id}/assets:batch",
13128
13261
  "streaming": "no",
@@ -13143,6 +13276,12 @@ export const operations = [
13143
13276
  "type": "object",
13144
13277
  "required": true,
13145
13278
  "description": "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
13279
+ },
13280
+ {
13281
+ "name": "reason",
13282
+ "type": "string",
13283
+ "required": false,
13284
+ "description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
13146
13285
  }
13147
13286
  ]
13148
13287
  }
@@ -13151,7 +13290,7 @@ export const operations = [
13151
13290
  "resource": "media.libraries.batches",
13152
13291
  "method": "create",
13153
13292
  "summary": "Create batch",
13154
- "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.",
13293
+ "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.",
13155
13294
  "http": "POST",
13156
13295
  "path": "/media/v1/libraries/{library_id}/batches",
13157
13296
  "streaming": "no",
@@ -13172,6 +13311,12 @@ export const operations = [
13172
13311
  "type": "object",
13173
13312
  "required": true,
13174
13313
  "description": "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created."
13314
+ },
13315
+ {
13316
+ "name": "reason",
13317
+ "type": "string",
13318
+ "required": false,
13319
+ "description": "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters."
13175
13320
  }
13176
13321
  ]
13177
13322
  }
@@ -13180,7 +13325,7 @@ export const operations = [
13180
13325
  "resource": "media.libraries.batches",
13181
13326
  "method": "retrieve",
13182
13327
  "summary": "Get batch",
13183
- "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.",
13328
+ "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.",
13184
13329
  "http": "GET",
13185
13330
  "path": "/media/v1/libraries/{library_id}/batches/{job_id}",
13186
13331
  "streaming": "no",
@@ -13203,7 +13348,7 @@ export const operations = [
13203
13348
  "resource": "media.libraries.deliveryTokens",
13204
13349
  "method": "create",
13205
13350
  "summary": "Create delivery token",
13206
- "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.",
13351
+ "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.",
13207
13352
  "http": "POST",
13208
13353
  "path": "/media/v1/libraries/{library_id}/delivery_tokens",
13209
13354
  "streaming": "no",
@@ -13229,7 +13374,7 @@ export const operations = [
13229
13374
  "name": "expires_in",
13230
13375
  "type": "integer",
13231
13376
  "required": false,
13232
- "description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600."
13377
+ "description": "Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900."
13233
13378
  }
13234
13379
  ]
13235
13380
  }
@@ -13238,7 +13383,7 @@ export const operations = [
13238
13383
  "resource": "media.libraries.events",
13239
13384
  "method": "list",
13240
13385
  "summary": "List events",
13241
- "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.",
13386
+ "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.",
13242
13387
  "http": "GET",
13243
13388
  "path": "/media/v1/libraries/{library_id}/events",
13244
13389
  "streaming": "no",
@@ -13285,7 +13430,7 @@ export const operations = [
13285
13430
  "resource": "media.libraries.folders",
13286
13431
  "method": "list",
13287
13432
  "summary": "List folders",
13288
- "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.",
13433
+ "description": "undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.",
13289
13434
  "http": "GET",
13290
13435
  "path": "/media/v1/libraries/{library_id}/folders",
13291
13436
  "streaming": "no",
@@ -13307,71 +13452,12 @@ export const operations = [
13307
13452
  ]
13308
13453
  },
13309
13454
  {
13310
- "resource": "media.libraries.jobs",
13311
- "method": "retrieve",
13312
- "summary": "Get job alias",
13313
- "description": "Alias of batch retrieval. Read the job returned by a batch request, including terminal status, successful and failed counts, and individual failure codes.",
13314
- "http": "GET",
13315
- "path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
13316
- "streaming": "no",
13317
- "pagination": false,
13318
- "pathParams": [
13319
- {
13320
- "name": "library_id",
13321
- "sdkName": "library_id",
13322
- "description": "Library ID returned by creation."
13323
- },
13324
- {
13325
- "name": "job_id",
13326
- "sdkName": "job_id",
13327
- "description": "Batch identifier returned by createBatch or batchAssets; resolved within this library."
13328
- }
13329
- ],
13330
- "query": []
13331
- },
13332
- {
13333
- "resource": "media.libraries.purge",
13334
- "method": "create",
13335
- "summary": "Purge library",
13336
- "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.",
13337
- "http": "POST",
13338
- "path": "/media/v1/libraries/{library_id}/purge",
13339
- "streaming": "no",
13340
- "pagination": false,
13341
- "pathParams": [
13342
- {
13343
- "name": "library_id",
13344
- "sdkName": "library_id",
13345
- "description": "Library ID returned by creation."
13346
- }
13347
- ],
13348
- "query": []
13349
- },
13350
- {
13351
- "resource": "media.libraries",
13352
- "method": "restore",
13353
- "summary": "Restore library",
13354
- "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.",
13355
- "http": "POST",
13356
- "path": "/media/v1/libraries/{library_id}/restore",
13357
- "streaming": "no",
13358
- "pagination": false,
13359
- "pathParams": [
13360
- {
13361
- "name": "library_id",
13362
- "sdkName": "library_id",
13363
- "description": "Library ID returned by creation."
13364
- }
13365
- ],
13366
- "query": []
13367
- },
13368
- {
13369
- "resource": "media.libraries.search",
13455
+ "resource": "media.libraries.generations",
13370
13456
  "method": "create",
13371
- "summary": "Semantic search alias",
13372
- "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.",
13457
+ "summary": "Create video generation",
13458
+ "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.",
13373
13459
  "http": "POST",
13374
- "path": "/media/v1/libraries/{library_id}/search",
13460
+ "path": "/media/v1/libraries/{library_id}/generations",
13375
13461
  "streaming": "no",
13376
13462
  "pagination": false,
13377
13463
  "pathParams": [
@@ -13386,115 +13472,280 @@ export const operations = [
13386
13472
  "required": true,
13387
13473
  "fields": [
13388
13474
  {
13389
- "name": "query",
13475
+ "name": "intent",
13390
13476
  "type": "string",
13391
13477
  "required": true,
13392
- "description": "Nonblank text to search against asset content and metadata."
13478
+ "description": "Generation operation; v1 accepts only video.generate text-to-video requests."
13393
13479
  },
13394
13480
  {
13395
- "name": "filter",
13481
+ "name": "prompt",
13396
13482
  "type": "string",
13397
- "required": false,
13398
- "description": "Optional expression filter restricting eligible assets; uses the expression-search syntax."
13483
+ "required": true,
13484
+ "description": "Text prompt describing the video to generate."
13399
13485
  },
13400
13486
  {
13401
- "name": "top_k",
13487
+ "name": "count",
13402
13488
  "type": "integer",
13403
13489
  "required": false,
13404
- "description": "Maximum search hits, from 1 to 50; defaults to 20."
13490
+ "description": "Number of videos to generate; defaults to 1 and must be from 1 to 4."
13405
13491
  },
13406
13492
  {
13407
- "name": "mode",
13408
- "type": "string",
13409
- "enum": [
13410
- "hybrid",
13411
- "semantic"
13412
- ],
13493
+ "name": "duration_seconds",
13494
+ "type": "integer",
13413
13495
  "required": false,
13414
- "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
13415
- }
13416
- ]
13417
- }
13418
- },
13419
- {
13420
- "resource": "media.libraries.search.expression",
13421
- "method": "create",
13422
- "summary": "Expression search",
13423
- "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.",
13424
- "http": "POST",
13425
- "path": "/media/v1/libraries/{library_id}/search/expression",
13426
- "streaming": "no",
13427
- "pagination": false,
13428
- "pathParams": [
13429
- {
13430
- "name": "library_id",
13431
- "sdkName": "library_id",
13432
- "description": "Library ID returned by creation."
13433
- }
13434
- ],
13435
- "query": [],
13436
- "body": {
13437
- "required": true,
13438
- "fields": [
13496
+ "description": "Requested video duration in seconds; Router validates the model-specific supported durations."
13497
+ },
13439
13498
  {
13440
- "name": "expression",
13499
+ "name": "aspect_ratio",
13441
13500
  "type": "string",
13442
13501
  "required": false,
13443
- "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."
13502
+ "description": "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
13444
13503
  },
13445
13504
  {
13446
- "name": "sort_by",
13447
- "type": "array",
13448
- "itemType": "object",
13505
+ "name": "model",
13506
+ "type": "string",
13449
13507
  "required": false,
13450
- "description": "Ordered list of single-field sort objects. Allowed fields are created_at, public_id, display_name, bytes and uploaded_at; directions are asc or desc. Fields cannot repeat. Defaults to created_at descending."
13508
+ "description": "Router model with video_generation capability; defaults to wan2.7-t2v."
13451
13509
  },
13452
13510
  {
13453
- "name": "max_results",
13454
- "type": "integer",
13511
+ "name": "save",
13512
+ "type": "string",
13513
+ "enum": [
13514
+ "candidate",
13515
+ "library"
13516
+ ],
13455
13517
  "required": false,
13456
- "description": "Maximum assets per page, from 1 to 500; defaults to 100."
13518
+ "description": "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
13457
13519
  },
13458
13520
  {
13459
- "name": "next_cursor",
13521
+ "name": "asset_folder",
13460
13522
  "type": "string",
13461
13523
  "required": false,
13462
- "description": "Continuation token returned by the previous expression-search page. Keep sort_by unchanged when continuing."
13524
+ "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."
13463
13525
  },
13464
13526
  {
13465
- "name": "with_field",
13527
+ "name": "tags",
13466
13528
  "type": "array",
13467
13529
  "itemType": "string",
13530
+ "required": false,
13531
+ "description": "Tags applied when an output becomes a library asset."
13532
+ },
13533
+ {
13534
+ "name": "understanding",
13535
+ "type": "string",
13468
13536
  "enum": [
13469
- "tags",
13470
- "context"
13537
+ "auto",
13538
+ "skip"
13471
13539
  ],
13472
13540
  "required": false,
13473
- "description": "Additional resource fields to include: tags adds asset labels and context adds custom metadata. Both are omitted unless requested."
13541
+ "description": "Understanding behavior when a candidate is saved as an asset; defaults to auto."
13474
13542
  },
13475
13543
  {
13476
- "name": "aggregate",
13544
+ "name": "references",
13477
13545
  "type": "array",
13478
- "itemType": "string",
13546
+ "itemType": "object",
13547
+ "required": false,
13548
+ "description": "Not supported in v1; omit this field. Only text-to-video is currently available."
13549
+ }
13550
+ ]
13551
+ }
13552
+ },
13553
+ {
13554
+ "resource": "media.libraries.jobs",
13555
+ "method": "list",
13556
+ "summary": "List jobs",
13557
+ "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.",
13558
+ "http": "GET",
13559
+ "path": "/media/v1/libraries/{library_id}/jobs",
13560
+ "streaming": "no",
13561
+ "pagination": true,
13562
+ "pathParams": [
13563
+ {
13564
+ "name": "library_id",
13565
+ "sdkName": "library_id",
13566
+ "description": "Library ID returned by creation."
13567
+ }
13568
+ ],
13569
+ "query": [
13570
+ {
13571
+ "name": "status",
13572
+ "type": "string",
13573
+ "enum": [
13574
+ "queued",
13575
+ "running",
13576
+ "completed",
13577
+ "completed_with_errors",
13578
+ "failed",
13579
+ "cancelled"
13580
+ ],
13581
+ "required": false,
13582
+ "description": "Filter jobs by their current status."
13583
+ },
13584
+ {
13585
+ "name": "limit",
13586
+ "type": "integer",
13587
+ "required": false,
13588
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
13589
+ },
13590
+ {
13591
+ "name": "cursor",
13592
+ "type": "string",
13593
+ "required": false,
13594
+ "description": "Job id from the previous page’s next_cursor; omit for the first page."
13595
+ }
13596
+ ]
13597
+ },
13598
+ {
13599
+ "resource": "media.libraries.jobs",
13600
+ "method": "retrieve",
13601
+ "summary": "Get job",
13602
+ "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.",
13603
+ "http": "GET",
13604
+ "path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
13605
+ "streaming": "no",
13606
+ "pagination": false,
13607
+ "pathParams": [
13608
+ {
13609
+ "name": "library_id",
13610
+ "sdkName": "library_id",
13611
+ "description": "Library ID returned by creation."
13612
+ },
13613
+ {
13614
+ "name": "job_id",
13615
+ "sdkName": "job_id",
13616
+ "description": "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library."
13617
+ }
13618
+ ],
13619
+ "query": []
13620
+ },
13621
+ {
13622
+ "resource": "media.libraries.jobs",
13623
+ "method": "cancel",
13624
+ "summary": "Cancel job",
13625
+ "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.",
13626
+ "http": "POST",
13627
+ "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel",
13628
+ "streaming": "no",
13629
+ "pagination": false,
13630
+ "pathParams": [
13631
+ {
13632
+ "name": "library_id",
13633
+ "sdkName": "library_id",
13634
+ "description": "Library ID returned by creation."
13635
+ },
13636
+ {
13637
+ "name": "job_id",
13638
+ "sdkName": "job_id",
13639
+ "description": "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
13640
+ }
13641
+ ],
13642
+ "query": []
13643
+ },
13644
+ {
13645
+ "resource": "media.libraries.jobs.outputs.save",
13646
+ "method": "create",
13647
+ "summary": "Save generation output",
13648
+ "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.",
13649
+ "http": "POST",
13650
+ "path": "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save",
13651
+ "streaming": "no",
13652
+ "pagination": false,
13653
+ "pathParams": [
13654
+ {
13655
+ "name": "library_id",
13656
+ "sdkName": "library_id",
13657
+ "description": "Library ID returned by creation."
13658
+ },
13659
+ {
13660
+ "name": "job_id",
13661
+ "sdkName": "job_id",
13662
+ "description": "Job identifier returned by batch or generation creation; the job is resolved within the specified library."
13663
+ },
13664
+ {
13665
+ "name": "index",
13666
+ "sdkName": "index",
13667
+ "description": "Zero-based position of the candidate in the Job outputs array."
13668
+ }
13669
+ ],
13670
+ "query": [],
13671
+ "body": {
13672
+ "required": false,
13673
+ "fields": [
13674
+ {
13675
+ "name": "public_id",
13676
+ "type": "string",
13677
+ "required": false,
13678
+ "description": "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent."
13679
+ },
13680
+ {
13681
+ "name": "asset_folder",
13682
+ "type": "string",
13683
+ "required": false,
13684
+ "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."
13685
+ },
13686
+ {
13687
+ "name": "tags",
13688
+ "type": "array",
13689
+ "itemType": "string",
13690
+ "required": false,
13691
+ "description": "Tags to apply to the saved asset."
13692
+ },
13693
+ {
13694
+ "name": "understanding",
13695
+ "type": "string",
13479
13696
  "enum": [
13480
- "resource_type",
13481
- "format",
13482
- "asset_folder",
13483
- "processing_state"
13697
+ "auto",
13698
+ "skip"
13484
13699
  ],
13485
13700
  "required": false,
13486
- "description": "Facets to count over matching assets, returned under aggregations."
13701
+ "description": "Understanding behavior for the saved asset; defaults to auto."
13487
13702
  }
13488
13703
  ]
13489
13704
  }
13490
13705
  },
13491
13706
  {
13492
- "resource": "media.libraries.search.semantic",
13707
+ "resource": "media.libraries.purge",
13493
13708
  "method": "create",
13494
- "summary": "Semantic search",
13495
- "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.",
13709
+ "summary": "Purge library",
13710
+ "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.",
13496
13711
  "http": "POST",
13497
- "path": "/media/v1/libraries/{library_id}/search/semantic",
13712
+ "path": "/media/v1/libraries/{library_id}/purge",
13713
+ "streaming": "no",
13714
+ "pagination": false,
13715
+ "pathParams": [
13716
+ {
13717
+ "name": "library_id",
13718
+ "sdkName": "library_id",
13719
+ "description": "Library ID returned by creation."
13720
+ }
13721
+ ],
13722
+ "query": []
13723
+ },
13724
+ {
13725
+ "resource": "media.libraries",
13726
+ "method": "restore",
13727
+ "summary": "Restore library",
13728
+ "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.",
13729
+ "http": "POST",
13730
+ "path": "/media/v1/libraries/{library_id}/restore",
13731
+ "streaming": "no",
13732
+ "pagination": false,
13733
+ "pathParams": [
13734
+ {
13735
+ "name": "library_id",
13736
+ "sdkName": "library_id",
13737
+ "description": "Library ID returned by creation."
13738
+ }
13739
+ ],
13740
+ "query": []
13741
+ },
13742
+ {
13743
+ "resource": "media.libraries.search",
13744
+ "method": "create",
13745
+ "summary": "Semantic search alias",
13746
+ "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.",
13747
+ "http": "POST",
13748
+ "path": "/media/v1/libraries/{library_id}/search",
13498
13749
  "streaming": "no",
13499
13750
  "pagination": false,
13500
13751
  "pathParams": [
@@ -13540,12 +13791,12 @@ export const operations = [
13540
13791
  }
13541
13792
  },
13542
13793
  {
13543
- "resource": "media.libraries.search.visual",
13794
+ "resource": "media.libraries.search.expression",
13544
13795
  "method": "create",
13545
- "summary": "Visual search",
13796
+ "summary": "Expression search",
13546
13797
  "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.",
13547
13798
  "http": "POST",
13548
- "path": "/media/v1/libraries/{library_id}/search/visual",
13799
+ "path": "/media/v1/libraries/{library_id}/search/expression",
13549
13800
  "streaming": "no",
13550
13801
  "pagination": false,
13551
13802
  "pathParams": [
@@ -13560,63 +13811,247 @@ export const operations = [
13560
13811
  "required": true,
13561
13812
  "fields": [
13562
13813
  {
13563
- "name": "asset_id",
13814
+ "name": "expression",
13564
13815
  "type": "string",
13565
13816
  "required": false,
13566
- "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
13817
+ "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."
13567
13818
  },
13568
13819
  {
13569
- "name": "image",
13570
- "type": "object",
13820
+ "name": "sort_by",
13821
+ "type": "array",
13822
+ "itemType": "object",
13571
13823
  "required": false,
13572
- "description": "Inline image used as the visual query; mutually exclusive with asset_id."
13824
+ "description": "Ordered list of single-field sort objects. Allowed fields are created_at, public_id, display_name, bytes and uploaded_at; directions are asc or desc. Fields cannot repeat. Defaults to created_at descending."
13573
13825
  },
13574
13826
  {
13575
- "name": "top_k",
13827
+ "name": "max_results",
13576
13828
  "type": "integer",
13577
13829
  "required": false,
13578
- "description": "Maximum visual-search hits, from 1 to 50; defaults to 20."
13830
+ "description": "Maximum assets per page, from 1 to 500; defaults to 100."
13579
13831
  },
13580
13832
  {
13581
- "name": "filter",
13833
+ "name": "next_cursor",
13582
13834
  "type": "string",
13583
13835
  "required": false,
13584
- "description": "Expression filter restricting eligible result assets."
13836
+ "description": "Continuation token returned by the previous expression-search page. Keep sort_by unchanged when continuing."
13837
+ },
13838
+ {
13839
+ "name": "with_field",
13840
+ "type": "array",
13841
+ "itemType": "string",
13842
+ "enum": [
13843
+ "tags",
13844
+ "context"
13845
+ ],
13846
+ "required": false,
13847
+ "description": "Additional resource fields to include: tags adds asset labels and context adds custom metadata. Both are omitted unless requested."
13848
+ },
13849
+ {
13850
+ "name": "aggregate",
13851
+ "type": "array",
13852
+ "itemType": "string",
13853
+ "enum": [
13854
+ "resource_type",
13855
+ "format",
13856
+ "asset_folder",
13857
+ "processing_state"
13858
+ ],
13859
+ "required": false,
13860
+ "description": "Facets to count over matching assets, returned under aggregations."
13585
13861
  }
13586
13862
  ]
13587
13863
  }
13588
13864
  },
13589
13865
  {
13590
- "resource": "meta.docs",
13591
- "method": "search",
13592
- "summary": "Search platform documentation",
13593
- "description": "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.",
13594
- "http": "GET",
13595
- "path": "/meta/v1/docs/search",
13866
+ "resource": "media.libraries.search.semantic",
13867
+ "method": "create",
13868
+ "summary": "Semantic search",
13869
+ "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.",
13870
+ "http": "POST",
13871
+ "path": "/media/v1/libraries/{library_id}/search/semantic",
13596
13872
  "streaming": "no",
13597
13873
  "pagination": false,
13598
- "pathParams": [],
13599
- "query": [
13600
- {
13601
- "name": "q",
13602
- "type": "string",
13603
- "required": true,
13604
- "description": "Keywords describing the syntax or guide needed, for example export or workflow."
13605
- },
13606
- {
13607
- "name": "limit",
13608
- "type": "integer",
13609
- "required": false,
13610
- "description": "Maximum number of matching pages returned; integer 1–50, default 20."
13611
- },
13874
+ "pathParams": [
13612
13875
  {
13613
- "name": "lang",
13614
- "type": "string",
13615
- "enum": [
13616
- "zh",
13617
- "en"
13618
- ],
13619
- "required": false,
13876
+ "name": "library_id",
13877
+ "sdkName": "library_id",
13878
+ "description": "Library ID returned by creation."
13879
+ }
13880
+ ],
13881
+ "query": [],
13882
+ "body": {
13883
+ "required": true,
13884
+ "fields": [
13885
+ {
13886
+ "name": "query",
13887
+ "type": "string",
13888
+ "required": true,
13889
+ "description": "Nonblank text to search against asset content and metadata."
13890
+ },
13891
+ {
13892
+ "name": "filter",
13893
+ "type": "string",
13894
+ "required": false,
13895
+ "description": "Optional expression filter restricting eligible assets; uses the expression-search syntax."
13896
+ },
13897
+ {
13898
+ "name": "top_k",
13899
+ "type": "integer",
13900
+ "required": false,
13901
+ "description": "Maximum search hits, from 1 to 50; defaults to 20."
13902
+ },
13903
+ {
13904
+ "name": "mode",
13905
+ "type": "string",
13906
+ "enum": [
13907
+ "hybrid",
13908
+ "semantic"
13909
+ ],
13910
+ "required": false,
13911
+ "description": "Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid."
13912
+ }
13913
+ ]
13914
+ }
13915
+ },
13916
+ {
13917
+ "resource": "media.libraries.search.visual",
13918
+ "method": "create",
13919
+ "summary": "Visual search",
13920
+ "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.",
13921
+ "http": "POST",
13922
+ "path": "/media/v1/libraries/{library_id}/search/visual",
13923
+ "streaming": "no",
13924
+ "pagination": false,
13925
+ "pathParams": [
13926
+ {
13927
+ "name": "library_id",
13928
+ "sdkName": "library_id",
13929
+ "description": "Library ID returned by creation."
13930
+ }
13931
+ ],
13932
+ "query": [],
13933
+ "body": {
13934
+ "required": true,
13935
+ "fields": [
13936
+ {
13937
+ "name": "asset_id",
13938
+ "type": "string",
13939
+ "required": false,
13940
+ "description": "Asset identifier returned by upload or asset listing; distinct from public_id and content hashes."
13941
+ },
13942
+ {
13943
+ "name": "image",
13944
+ "type": "object",
13945
+ "required": false,
13946
+ "description": "Inline image used as the visual query; mutually exclusive with asset_id."
13947
+ },
13948
+ {
13949
+ "name": "top_k",
13950
+ "type": "integer",
13951
+ "required": false,
13952
+ "description": "Maximum visual-search hits, from 1 to 50; defaults to 20."
13953
+ },
13954
+ {
13955
+ "name": "filter",
13956
+ "type": "string",
13957
+ "required": false,
13958
+ "description": "Expression filter restricting eligible result assets."
13959
+ }
13960
+ ]
13961
+ }
13962
+ },
13963
+ {
13964
+ "resource": "media.libraries.understandings",
13965
+ "method": "list",
13966
+ "summary": "List understanding results across a library",
13967
+ "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.",
13968
+ "http": "GET",
13969
+ "path": "/media/v1/libraries/{library_id}/understandings",
13970
+ "streaming": "no",
13971
+ "pagination": true,
13972
+ "pathParams": [
13973
+ {
13974
+ "name": "library_id",
13975
+ "sdkName": "library_id",
13976
+ "description": "Library ID returned by creation."
13977
+ }
13978
+ ],
13979
+ "query": [
13980
+ {
13981
+ "name": "folder",
13982
+ "type": "string",
13983
+ "required": false,
13984
+ "description": "Folder path including all descendants; omitted or empty selects the entire library."
13985
+ },
13986
+ {
13987
+ "name": "kinds",
13988
+ "type": "string",
13989
+ "required": false,
13990
+ "description": "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind."
13991
+ },
13992
+ {
13993
+ "name": "cursor",
13994
+ "type": "string",
13995
+ "required": false,
13996
+ "description": "Cursor from the previous next_cursor."
13997
+ },
13998
+ {
13999
+ "name": "limit",
14000
+ "type": "integer",
14001
+ "required": false,
14002
+ "description": "Maximum entries in this page, from 1 through 100; defaults to 100."
14003
+ }
14004
+ ]
14005
+ },
14006
+ {
14007
+ "resource": "media.libraries.understandings",
14008
+ "method": "retrieveFailureSummary",
14009
+ "summary": "Summarize understanding failures",
14010
+ "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.",
14011
+ "http": "GET",
14012
+ "path": "/media/v1/libraries/{library_id}/understandings/failure_summary",
14013
+ "streaming": "no",
14014
+ "pagination": false,
14015
+ "pathParams": [
14016
+ {
14017
+ "name": "library_id",
14018
+ "sdkName": "library_id",
14019
+ "description": "Library ID returned by creation."
14020
+ }
14021
+ ],
14022
+ "query": []
14023
+ },
14024
+ {
14025
+ "resource": "meta.docs",
14026
+ "method": "search",
14027
+ "summary": "Search platform documentation",
14028
+ "description": "Find guides and references by keyword before reading them with praxis.meta.docs.retrieve. Public; no API key required. Matches documentation titles, headings and page text without case sensitivity; all query words must occur. q is required; limit defaults to 20 and accepts 1–50. lang defaults to zh or use en for English. Returns paths, page titles, canonical URLs and short matching snippets; no matches returns an empty array.",
14029
+ "http": "GET",
14030
+ "path": "/meta/v1/docs/search",
14031
+ "streaming": "no",
14032
+ "pagination": false,
14033
+ "pathParams": [],
14034
+ "query": [
14035
+ {
14036
+ "name": "q",
14037
+ "type": "string",
14038
+ "required": true,
14039
+ "description": "Keywords describing the syntax or guide needed, for example export or workflow."
14040
+ },
14041
+ {
14042
+ "name": "limit",
14043
+ "type": "integer",
14044
+ "required": false,
14045
+ "description": "Maximum number of matching pages returned; integer 1–50, default 20."
14046
+ },
14047
+ {
14048
+ "name": "lang",
14049
+ "type": "string",
14050
+ "enum": [
14051
+ "zh",
14052
+ "en"
14053
+ ],
14054
+ "required": false,
13620
14055
  "description": "Documentation language: zh for Chinese (default), en for English."
13621
14056
  }
13622
14057
  ]
@@ -13869,25 +14304,25 @@ export const operations = [
13869
14304
  "name": "model",
13870
14305
  "type": "string",
13871
14306
  "required": true,
13872
- "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."
14307
+ "description": "Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix."
13873
14308
  },
13874
14309
  {
13875
14310
  "name": "file",
13876
14311
  "type": "string",
13877
14312
  "required": true,
13878
- "description": "Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect."
14313
+ "description": "Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model."
13879
14314
  },
13880
14315
  {
13881
14316
  "name": "language",
13882
14317
  "type": "string",
13883
14318
  "required": false,
13884
- "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."
14319
+ "description": "Source language code when known; omit to let the model detect the language."
13885
14320
  },
13886
14321
  {
13887
14322
  "name": "prompt",
13888
14323
  "type": "string",
13889
14324
  "required": false,
13890
- "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."
14325
+ "description": "Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model."
13891
14326
  },
13892
14327
  {
13893
14328
  "name": "response_format",
@@ -13895,20 +14330,22 @@ export const operations = [
13895
14330
  "enum": [
13896
14331
  "json",
13897
14332
  "text",
13898
- "verbose_json"
14333
+ "verbose_json",
14334
+ "diarized_json"
13899
14335
  ],
13900
14336
  "required": false,
13901
- "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."
14337
+ "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."
13902
14338
  },
13903
14339
  {
13904
14340
  "name": "timestamp_granularities[]",
13905
14341
  "type": "array",
13906
14342
  "itemType": "string",
13907
14343
  "enum": [
14344
+ "word",
13908
14345
  "segment"
13909
14346
  ],
13910
14347
  "required": false,
13911
- "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."
14348
+ "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."
13912
14349
  },
13913
14350
  {
13914
14351
  "name": "temperature",
@@ -15860,6 +16297,539 @@ export const operations = [
15860
16297
  ],
15861
16298
  "query": []
15862
16299
  },
16300
+ {
16301
+ "resource": "ontology.changesets",
16302
+ "method": "create",
16303
+ "summary": "Apply changeset",
16304
+ "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.",
16305
+ "http": "POST",
16306
+ "path": "/ontology/v1/changesets",
16307
+ "streaming": "no",
16308
+ "pagination": false,
16309
+ "pathParams": [],
16310
+ "query": [],
16311
+ "body": {
16312
+ "required": true,
16313
+ "fields": [
16314
+ {
16315
+ "name": "at",
16316
+ "type": "string",
16317
+ "required": true,
16318
+ "description": "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it."
16319
+ },
16320
+ {
16321
+ "name": "scope",
16322
+ "type": "string",
16323
+ "required": false,
16324
+ "description": "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading."
16325
+ },
16326
+ {
16327
+ "name": "ops",
16328
+ "type": "array",
16329
+ "itemType": "object",
16330
+ "required": true,
16331
+ "description": "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires."
16332
+ }
16333
+ ]
16334
+ }
16335
+ },
16336
+ {
16337
+ "resource": "ontology.nodes",
16338
+ "method": "list",
16339
+ "summary": "List nodes",
16340
+ "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.",
16341
+ "http": "GET",
16342
+ "path": "/ontology/v1/nodes",
16343
+ "streaming": "no",
16344
+ "pagination": true,
16345
+ "pathParams": [],
16346
+ "query": [
16347
+ {
16348
+ "name": "type",
16349
+ "type": "array",
16350
+ "itemType": "string",
16351
+ "required": false,
16352
+ "description": "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type."
16353
+ },
16354
+ {
16355
+ "name": "q",
16356
+ "type": "string",
16357
+ "required": false,
16358
+ "description": "Free text matched against node names, aliases and descriptions; omit to list without a text filter."
16359
+ },
16360
+ {
16361
+ "name": "owner",
16362
+ "type": "string",
16363
+ "required": false,
16364
+ "description": "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner."
16365
+ },
16366
+ {
16367
+ "name": "as_of",
16368
+ "type": "string",
16369
+ "required": false,
16370
+ "description": "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state."
16371
+ },
16372
+ {
16373
+ "name": "limit",
16374
+ "type": "integer",
16375
+ "required": false,
16376
+ "description": "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
16377
+ },
16378
+ {
16379
+ "name": "cursor",
16380
+ "type": "string",
16381
+ "required": false,
16382
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
16383
+ }
16384
+ ]
16385
+ },
16386
+ {
16387
+ "resource": "ontology.nodes",
16388
+ "method": "create",
16389
+ "summary": "Create node",
16390
+ "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.",
16391
+ "http": "POST",
16392
+ "path": "/ontology/v1/nodes",
16393
+ "streaming": "no",
16394
+ "pagination": false,
16395
+ "pathParams": [],
16396
+ "query": [],
16397
+ "body": {
16398
+ "required": true,
16399
+ "fields": [
16400
+ {
16401
+ "name": "type",
16402
+ "type": "string",
16403
+ "required": true,
16404
+ "description": "Registered node type name from types.list; an unregistered name is refused and nothing is written."
16405
+ },
16406
+ {
16407
+ "name": "ref",
16408
+ "type": "string",
16409
+ "required": false,
16410
+ "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."
16411
+ },
16412
+ {
16413
+ "name": "name",
16414
+ "type": "string",
16415
+ "required": true,
16416
+ "description": "Display name of the entity, at most 200 characters."
16417
+ },
16418
+ {
16419
+ "name": "aliases",
16420
+ "type": "array",
16421
+ "itemType": "string",
16422
+ "required": false,
16423
+ "description": "Other names this entity is known by; they are matched by search alongside the name."
16424
+ },
16425
+ {
16426
+ "name": "description",
16427
+ "type": "string",
16428
+ "required": false,
16429
+ "description": "Profile of the entity, at most 500 characters; omit or null for none."
16430
+ },
16431
+ {
16432
+ "name": "owner",
16433
+ "type": "string",
16434
+ "required": false,
16435
+ "description": "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide."
16436
+ }
16437
+ ]
16438
+ }
16439
+ },
16440
+ {
16441
+ "resource": "ontology.nodes",
16442
+ "method": "retrieve",
16443
+ "summary": "Retrieve node",
16444
+ "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.",
16445
+ "http": "GET",
16446
+ "path": "/ontology/v1/nodes/{node_id}",
16447
+ "streaming": "no",
16448
+ "pagination": false,
16449
+ "pathParams": [
16450
+ {
16451
+ "name": "node_id",
16452
+ "sdkName": "node_id",
16453
+ "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."
16454
+ }
16455
+ ],
16456
+ "query": [
16457
+ {
16458
+ "name": "expand",
16459
+ "type": "string",
16460
+ "enum": [
16461
+ "relations"
16462
+ ],
16463
+ "required": false,
16464
+ "description": "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone."
16465
+ },
16466
+ {
16467
+ "name": "as_of",
16468
+ "type": "string",
16469
+ "required": false,
16470
+ "description": "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state."
16471
+ }
16472
+ ]
16473
+ },
16474
+ {
16475
+ "resource": "ontology.nodes",
16476
+ "method": "update",
16477
+ "summary": "Update node",
16478
+ "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.",
16479
+ "http": "PATCH",
16480
+ "path": "/ontology/v1/nodes/{node_id}",
16481
+ "streaming": "no",
16482
+ "pagination": false,
16483
+ "pathParams": [
16484
+ {
16485
+ "name": "node_id",
16486
+ "sdkName": "node_id",
16487
+ "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."
16488
+ }
16489
+ ],
16490
+ "query": [],
16491
+ "body": {
16492
+ "required": true,
16493
+ "fields": [
16494
+ {
16495
+ "name": "name",
16496
+ "type": "string",
16497
+ "required": false,
16498
+ "description": "New display name, at most 200 characters; omit to keep the current name."
16499
+ },
16500
+ {
16501
+ "name": "aliases",
16502
+ "type": "array",
16503
+ "itemType": "string",
16504
+ "required": false,
16505
+ "description": "Replacement alias list; an empty array clears the aliases and omitting the field keeps them."
16506
+ },
16507
+ {
16508
+ "name": "description",
16509
+ "type": "string",
16510
+ "required": false,
16511
+ "description": "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it."
16512
+ }
16513
+ ]
16514
+ }
16515
+ },
16516
+ {
16517
+ "resource": "ontology.nodes.merge",
16518
+ "method": "create",
16519
+ "summary": "Merge node",
16520
+ "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.",
16521
+ "http": "POST",
16522
+ "path": "/ontology/v1/nodes/{node_id}/merge",
16523
+ "streaming": "no",
16524
+ "pagination": false,
16525
+ "pathParams": [
16526
+ {
16527
+ "name": "node_id",
16528
+ "sdkName": "node_id",
16529
+ "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."
16530
+ }
16531
+ ],
16532
+ "query": [],
16533
+ "body": {
16534
+ "required": true,
16535
+ "fields": [
16536
+ {
16537
+ "name": "into",
16538
+ "type": "string",
16539
+ "required": true,
16540
+ "description": "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it."
16541
+ }
16542
+ ]
16543
+ }
16544
+ },
16545
+ {
16546
+ "resource": "ontology.relations",
16547
+ "method": "list",
16548
+ "summary": "List relations",
16549
+ "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.",
16550
+ "http": "GET",
16551
+ "path": "/ontology/v1/relations",
16552
+ "streaming": "no",
16553
+ "pagination": true,
16554
+ "pathParams": [],
16555
+ "query": [
16556
+ {
16557
+ "name": "node",
16558
+ "type": "string",
16559
+ "required": false,
16560
+ "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."
16561
+ },
16562
+ {
16563
+ "name": "type",
16564
+ "type": "array",
16565
+ "itemType": "string",
16566
+ "required": false,
16567
+ "description": "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type."
16568
+ },
16569
+ {
16570
+ "name": "direction",
16571
+ "type": "string",
16572
+ "enum": [
16573
+ "out",
16574
+ "in",
16575
+ "both"
16576
+ ],
16577
+ "required": false,
16578
+ "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."
16579
+ },
16580
+ {
16581
+ "name": "as_of",
16582
+ "type": "string",
16583
+ "required": false,
16584
+ "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."
16585
+ },
16586
+ {
16587
+ "name": "include_invalid",
16588
+ "type": "boolean",
16589
+ "required": false,
16590
+ "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."
16591
+ },
16592
+ {
16593
+ "name": "limit",
16594
+ "type": "integer",
16595
+ "required": false,
16596
+ "description": "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100."
16597
+ },
16598
+ {
16599
+ "name": "cursor",
16600
+ "type": "string",
16601
+ "required": false,
16602
+ "description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
16603
+ }
16604
+ ]
16605
+ },
16606
+ {
16607
+ "resource": "ontology.relations",
16608
+ "method": "create",
16609
+ "summary": "Create relation",
16610
+ "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.",
16611
+ "http": "POST",
16612
+ "path": "/ontology/v1/relations",
16613
+ "streaming": "no",
16614
+ "pagination": false,
16615
+ "pathParams": [],
16616
+ "query": [],
16617
+ "body": {
16618
+ "required": true,
16619
+ "fields": [
16620
+ {
16621
+ "name": "type",
16622
+ "type": "string",
16623
+ "required": true,
16624
+ "description": "Registered relation type name from types.list; it must admit both endpoints or the write is refused."
16625
+ },
16626
+ {
16627
+ "name": "source",
16628
+ "type": "string",
16629
+ "required": true,
16630
+ "description": "Node id the fact starts from, from nodes.list or nodes.create."
16631
+ },
16632
+ {
16633
+ "name": "target",
16634
+ "type": "string",
16635
+ "required": true,
16636
+ "description": "Node id the fact points at, from nodes.list or nodes.create."
16637
+ },
16638
+ {
16639
+ "name": "fact",
16640
+ "type": "string",
16641
+ "required": true,
16642
+ "description": "The relationship in one sentence, at most 280 characters, written to read back on its own."
16643
+ },
16644
+ {
16645
+ "name": "valid_at",
16646
+ "type": "string",
16647
+ "required": false,
16648
+ "description": "World time the fact became true, when the mirrored record dates it; omit to leave it undated."
16649
+ },
16650
+ {
16651
+ "name": "owner",
16652
+ "type": "string",
16653
+ "required": false,
16654
+ "description": "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide."
16655
+ }
16656
+ ]
16657
+ }
16658
+ },
16659
+ {
16660
+ "resource": "ontology.relations",
16661
+ "method": "retrieve",
16662
+ "summary": "Retrieve relation",
16663
+ "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.",
16664
+ "http": "GET",
16665
+ "path": "/ontology/v1/relations/{relation_id}",
16666
+ "streaming": "no",
16667
+ "pagination": false,
16668
+ "pathParams": [
16669
+ {
16670
+ "name": "relation_id",
16671
+ "sdkName": "relation_id",
16672
+ "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."
16673
+ }
16674
+ ],
16675
+ "query": []
16676
+ },
16677
+ {
16678
+ "resource": "ontology.relations.invalidate",
16679
+ "method": "create",
16680
+ "summary": "Invalidate relation",
16681
+ "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.",
16682
+ "http": "POST",
16683
+ "path": "/ontology/v1/relations/{relation_id}/invalidate",
16684
+ "streaming": "no",
16685
+ "pagination": false,
16686
+ "pathParams": [
16687
+ {
16688
+ "name": "relation_id",
16689
+ "sdkName": "relation_id",
16690
+ "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."
16691
+ }
16692
+ ],
16693
+ "query": [],
16694
+ "body": {
16695
+ "required": true,
16696
+ "fields": [
16697
+ {
16698
+ "name": "invalid_at",
16699
+ "type": "string",
16700
+ "required": true,
16701
+ "description": "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation."
16702
+ },
16703
+ {
16704
+ "name": "superseded_by",
16705
+ "type": "string",
16706
+ "required": false,
16707
+ "description": "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it."
16708
+ },
16709
+ {
16710
+ "name": "reason",
16711
+ "type": "string",
16712
+ "required": false,
16713
+ "description": "Why it stopped being true, for people reading the history later; not enforced and safe to omit."
16714
+ }
16715
+ ]
16716
+ }
16717
+ },
16718
+ {
16719
+ "resource": "ontology.search",
16720
+ "method": "create",
16721
+ "summary": "Search nodes",
16722
+ "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.",
16723
+ "http": "POST",
16724
+ "path": "/ontology/v1/search",
16725
+ "streaming": "no",
16726
+ "pagination": false,
16727
+ "pathParams": [],
16728
+ "query": [],
16729
+ "body": {
16730
+ "required": true,
16731
+ "fields": [
16732
+ {
16733
+ "name": "text",
16734
+ "type": "string",
16735
+ "required": true,
16736
+ "description": "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused."
16737
+ },
16738
+ {
16739
+ "name": "types",
16740
+ "type": "array",
16741
+ "itemType": "string",
16742
+ "required": false,
16743
+ "description": "Registered node type names to search within; omit to search every type."
16744
+ },
16745
+ {
16746
+ "name": "window",
16747
+ "type": "object",
16748
+ "required": false,
16749
+ "description": "Restrict matches to facts recorded within a period; omit to search all time."
16750
+ },
16751
+ {
16752
+ "name": "limit",
16753
+ "type": "integer",
16754
+ "required": false,
16755
+ "description": "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted."
16756
+ }
16757
+ ]
16758
+ }
16759
+ },
16760
+ {
16761
+ "resource": "ontology.types",
16762
+ "method": "list",
16763
+ "summary": "List types",
16764
+ "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.",
16765
+ "http": "GET",
16766
+ "path": "/ontology/v1/types",
16767
+ "streaming": "no",
16768
+ "pagination": false,
16769
+ "pathParams": [],
16770
+ "query": []
16771
+ },
16772
+ {
16773
+ "resource": "ontology.types",
16774
+ "method": "create",
16775
+ "summary": "Register type",
16776
+ "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.",
16777
+ "http": "POST",
16778
+ "path": "/ontology/v1/types",
16779
+ "streaming": "no",
16780
+ "pagination": false,
16781
+ "pathParams": [],
16782
+ "query": [],
16783
+ "body": {
16784
+ "required": true,
16785
+ "fields": [
16786
+ {
16787
+ "name": "owner",
16788
+ "type": "string",
16789
+ "required": true,
16790
+ "description": "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against."
16791
+ },
16792
+ {
16793
+ "name": "version",
16794
+ "type": "integer",
16795
+ "required": true,
16796
+ "description": "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything."
16797
+ },
16798
+ {
16799
+ "name": "nodes",
16800
+ "type": "array",
16801
+ "itemType": "object",
16802
+ "required": true,
16803
+ "description": "Node types this owner registers."
16804
+ },
16805
+ {
16806
+ "name": "edges",
16807
+ "type": "array",
16808
+ "itemType": "object",
16809
+ "required": true,
16810
+ "description": "Relation types this owner registers."
16811
+ }
16812
+ ]
16813
+ }
16814
+ },
16815
+ {
16816
+ "resource": "ontology.types",
16817
+ "method": "retrieve",
16818
+ "summary": "Retrieve type",
16819
+ "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.",
16820
+ "http": "GET",
16821
+ "path": "/ontology/v1/types/{name}",
16822
+ "streaming": "no",
16823
+ "pagination": false,
16824
+ "pathParams": [
16825
+ {
16826
+ "name": "name",
16827
+ "sdkName": "name",
16828
+ "description": "A type name from types.list, with its dots preserved — a display label is not accepted."
16829
+ }
16830
+ ],
16831
+ "query": []
16832
+ },
15863
16833
  {
15864
16834
  "resource": "organization.charges",
15865
16835
  "method": "list",
@@ -18573,7 +19543,7 @@ export const operations = [
18573
19543
  "resource": "ticket.labels",
18574
19544
  "method": "create",
18575
19545
  "summary": "Create or add labels",
18576
- "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.",
19546
+ "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.",
18577
19547
  "http": "POST",
18578
19548
  "path": "/ticket/v1/labels",
18579
19549
  "streaming": "no",
@@ -18615,7 +19585,7 @@ export const operations = [
18615
19585
  "resource": "ticket.labels",
18616
19586
  "method": "delete",
18617
19587
  "summary": "Remove labels",
18618
- "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.",
19588
+ "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.",
18619
19589
  "http": "DELETE",
18620
19590
  "path": "/ticket/v1/labels/{name}",
18621
19591
  "streaming": "no",
@@ -18640,7 +19610,7 @@ export const operations = [
18640
19610
  "resource": "ticket.labels",
18641
19611
  "method": "update",
18642
19612
  "summary": "Update labels",
18643
- "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.",
19613
+ "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.",
18644
19614
  "http": "PATCH",
18645
19615
  "path": "/ticket/v1/labels/{name}",
18646
19616
  "streaming": "no",
@@ -18936,7 +19906,7 @@ export const operations = [
18936
19906
  "name": "filter",
18937
19907
  "type": "string",
18938
19908
  "required": false,
18939
- "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."
19909
+ "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."
18940
19910
  }
18941
19911
  ]
18942
19912
  },
@@ -20042,7 +21012,7 @@ export const operations = [
20042
21012
  "resource": "vault.vaults",
20043
21013
  "method": "create",
20044
21014
  "summary": "Create vault",
20045
- "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.",
21015
+ "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.",
20046
21016
  "http": "POST",
20047
21017
  "path": "/vault/v1/vaults",
20048
21018
  "streaming": "no",