@deepraxis/sdk 0.1.1-dev.da4893e → 0.1.1-dev.df9eeaa

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",
@@ -10027,6 +10056,12 @@ export const operations = [
10027
10056
  "type": "integer",
10028
10057
  "required": false,
10029
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."
10030
10065
  }
10031
10066
  ]
10032
10067
  }
@@ -10035,7 +10070,7 @@ export const operations = [
10035
10070
  "resource": "cut.projects.frames",
10036
10071
  "method": "list",
10037
10072
  "summary": "Render preview frames",
10038
- "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. FRAME_UNAVAILABLE warnings on execute mean a source preview could not be fetched and an offline tile was drawn; edits still commit, and this warning alone does not establish that the source media is broken. 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.",
10039
10074
  "http": "GET",
10040
10075
  "path": "/cut/v1/projects/{project_id}/frames",
10041
10076
  "streaming": "no",
@@ -10250,7 +10285,7 @@ export const operations = [
10250
10285
  "resource": "cut.projects",
10251
10286
  "method": "execute",
10252
10287
  "summary": "Execute editing script",
10253
- "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. JoinId is the string returned by Join or read from GetTimeline().joins. 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[];\nListTransitions(): TransitionInfo[];\nInsert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;\nUpdate(id: ClipId, patch: ItemPatchView): void;\nSetSpeed(id: ClipId, rate: number, o: { keep: \"source\" | \"duration\"; ripple?: boolean }): { length: number; sourceOut: number };\nDelete(id: ClipId, o?: { ripple?: boolean }): void;\nJoin(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;\nUpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;\nDeleteJoin(id: JoinId): 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, playback, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration, tracks (id, kind, name, index, locked, items), and joins (id, track, left, right, length in seconds, normalized effect). from/to and tracks narrow the items and joins; joins are selected by their overlap window. |\n| ListTransitions | Discover the shared validation catalog: each entry contains kind (effect ID), name, description and params. Each parameter has name, type (enum/number/integer), default, description, enum values or numeric min/max. Use the returned kind and parameter names inside effect. |\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| SetSpeed | Change video/audio rate in 0.25–4; keep is required. source preserves consumed source and changes length, duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |\n| Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |\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#### Joins between clips\n\nEndpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.\n\nTransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use the catalog defaults. Unknown kinds and unknown or invalid parameters are rejected. Effects: dissolve (no parameters); dip (color black/white, default black); push and wipe (direction left/right/up/down, default left); wipe also has softness 0–1, default 0; iris has centerX/centerY 0–1, both default 0.5; blinds has integer count 2–64, default 8, and orientation vertical/horizontal, default vertical; blur has radius 0–100 pixels at 1080-pixel frame height, default 24. Join options and UpdateJoin patches accept only length and effect. Effect updates replace the effect object and apply defaults for omitted parameters.\n\nMinimal example on an existing visual track with adjacent clips left and right: `Print(ListTransitions()); const j = Join(left, right, {length: 0.5, effect: {kind: \"dissolve\"}}); Print(GetTimeline().joins); Preview([GetItem(right).start + 0.25]);` Use `UpdateJoin(j, {length: 0.8})` to adjust it in a later edit or `DeleteJoin(j)` to restore the cut. Preview uses server-rendered frames and includes joins. Per-clip transitionIn/transitionOut remain separate entrance/exit effects.\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, playback, 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, playback, volumeDb, fadeIn, fadeOut |\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, position, margin}`. 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}`. Text and captions support position (top/middle/bottom; box centers at 12%/50%/85% of height without margin) and optional margin (0–0.4 of canvas height, box edge distance for top/bottom; middle ignores it). Omitted position preserves the text transform (center by default); explicit position controls vertical placement, so omit it for y animation. Caption style additionally supports highlightColor and maxLines: 2. GetItem and GetTimeline return text style and current caption track style. Caption tracks only accept captions; use AddCaptionsFromTranscript, and place text on video tracks. |\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, playback, 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#### Speed, reverse and freeze\n\nVideo/audio Insert and Update accept playback as `{kind: \"rate\", rate: number, direction: \"forward\" | \"reverse\", audio: \"preservePitch\" | \"resample\" | \"mute\"}` or `{kind: \"freeze\"}`. Rate is finite and inclusive 0.25–4. Omitted playback defaults to 1× forward with preservePitch; supply the complete rate object when changing playback. preservePitch keeps pitch, resample changes pitch with speed, mute removes audio. Reverse requires explicit audio: \"mute\"; preservePitch/resample are rejected with UNSUPPORTED_PLAYBACK rather than silently muted. Freeze holds sourceIn and is silent. GetItem/GetTimeline echo playback and the source interval in seconds; sourceOut is exclusive even for reverse and equals sourceIn for freeze.\n\nUpdate of playback keeps output length unless length is also supplied. SetSpeed preserves direction/audio, rejects frozen and non-video/audio clips, and requires keep: \"source\" or \"duration\". keep: \"source\" computes round(consumed source / new rate × fps) frames, falling back to floor if rounding would exceed the source end; the returned length/sourceOut are actual frame-rounded seconds. keep: \"duration\" keeps output length and changes source consumption. Length conflicts fail with OVERLAP; move/shorten the conflicting clip, keep duration, or explicitly use ripple: true to shift following clips on the same track. Source overflow fails with OUT_OF_SOURCE; rate limits fail with RATE_OUT_OF_RANGE. Unknown playback fields and SetSpeed options are rejected with UNKNOWN_FIELD; options only accept keep and boolean ripple.\n\nExample for an existing four-second video/audio clip id: `Print(SetSpeed(id, 0.5, {keep: \"source\"})); Print(SetSpeed(id, 2, {keep: \"source\"}));` returns lengths 8 then 2, keeping the same source interval. Reverse: `Update(id, {playback: {kind: \"rate\", rate: 1, direction: \"reverse\", audio: \"mute\"}})`. Freeze: `Update(id, {playback: {kind: \"freeze\"}})`. Ensure enough source remains for the chosen length/rate. Browser reverse playback currently displays a placeholder; server-rendered Preview/frames and exports support reverse normally. Speed-adjusted audio is generated asynchronously after the edit transaction commits; exports wait for that audio before rendering.\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- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `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",
10254
10289
  "http": "POST",
10255
10290
  "path": "/cut/v1/projects/{project_id}:execute",
10256
10291
  "streaming": "no",
@@ -11492,7 +11527,7 @@ export const operations = [
11492
11527
  "resource": "file.uploads",
11493
11528
  "method": "create",
11494
11529
  "summary": "Create an upload",
11495
- "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.",
11496
11531
  "http": "POST",
11497
11532
  "path": "/file/v1/uploads",
11498
11533
  "streaming": "no",
@@ -11506,7 +11541,7 @@ export const operations = [
11506
11541
  "name": "bytes",
11507
11542
  "type": "integer",
11508
11543
  "required": true,
11509
- "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."
11510
11545
  },
11511
11546
  {
11512
11547
  "name": "filename",
@@ -11550,7 +11585,7 @@ export const operations = [
11550
11585
  "resource": "file.uploads",
11551
11586
  "method": "createSigned",
11552
11587
  "summary": "Create a one-time upload URL",
11553
- "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\"}.",
11554
11589
  "http": "POST",
11555
11590
  "path": "/file/v1/uploads/signed",
11556
11591
  "streaming": "no",
@@ -11570,7 +11605,7 @@ export const operations = [
11570
11605
  "name": "bytes",
11571
11606
  "type": "integer",
11572
11607
  "required": true,
11573
- "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."
11574
11609
  },
11575
11610
  {
11576
11611
  "name": "content_type",
@@ -11593,7 +11628,7 @@ export const operations = [
11593
11628
  "name": "expires_in",
11594
11629
  "type": "integer",
11595
11630
  "required": false,
11596
- "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."
11597
11632
  },
11598
11633
  {
11599
11634
  "name": "part_size",
@@ -11604,6 +11639,24 @@ export const operations = [
11604
11639
  ]
11605
11640
  }
11606
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
+ },
11607
11660
  {
11608
11661
  "resource": "file.uploads",
11609
11662
  "method": "cancel",
@@ -11626,7 +11679,7 @@ export const operations = [
11626
11679
  "resource": "file.uploads",
11627
11680
  "method": "complete",
11628
11681
  "summary": "Complete an upload",
11629
- "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.",
11630
11683
  "http": "POST",
11631
11684
  "path": "/file/v1/uploads/{upload_id}/complete",
11632
11685
  "streaming": "no",
@@ -11662,7 +11715,7 @@ export const operations = [
11662
11715
  "resource": "file.uploads.parts",
11663
11716
  "method": "create",
11664
11717
  "summary": "Add an upload part",
11665
- "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.",
11666
11719
  "http": "POST",
11667
11720
  "path": "/file/v1/uploads/{upload_id}/parts",
11668
11721
  "streaming": "no",
@@ -12475,6 +12528,18 @@ export const operations = [
12475
12528
  ],
12476
12529
  "query": []
12477
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
+ },
12478
12543
  {
12479
12544
  "resource": "media.libraries",
12480
12545
  "method": "list",
@@ -12699,7 +12764,7 @@ export const operations = [
12699
12764
  "resource": "media.libraries.assets",
12700
12765
  "method": "create",
12701
12766
  "summary": "Upload asset",
12702
- "description": " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
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.",
12703
12768
  "http": "POST",
12704
12769
  "path": "/media/v1/libraries/{library_id}/assets",
12705
12770
  "streaming": "no",
@@ -12823,7 +12888,7 @@ export const operations = [
12823
12888
  "resource": "media.libraries.assets.import",
12824
12889
  "method": "create",
12825
12890
  "summary": "Import file",
12826
- "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 and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
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.",
12827
12892
  "http": "POST",
12828
12893
  "path": "/media/v1/libraries/{library_id}/assets/import",
12829
12894
  "streaming": "no",
@@ -13091,7 +13156,7 @@ export const operations = [
13091
13156
  "resource": "media.libraries.assets.reprocess",
13092
13157
  "method": "create",
13093
13158
  "summary": "Reprocess asset",
13094
- "description": " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
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.",
13095
13160
  "http": "POST",
13096
13161
  "path": "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess",
13097
13162
  "streaming": "no",
@@ -13190,7 +13255,7 @@ export const operations = [
13190
13255
  "resource": "media.libraries.assets",
13191
13256
  "method": "batch",
13192
13257
  "summary": "Batch assets alias",
13193
- "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 and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
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.",
13194
13259
  "http": "POST",
13195
13260
  "path": "/media/v1/libraries/{library_id}/assets:batch",
13196
13261
  "streaming": "no",
@@ -13225,7 +13290,7 @@ export const operations = [
13225
13290
  "resource": "media.libraries.batches",
13226
13291
  "method": "create",
13227
13292
  "summary": "Create batch",
13228
- "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 and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.",
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.",
13229
13294
  "http": "POST",
13230
13295
  "path": "/media/v1/libraries/{library_id}/batches",
13231
13296
  "streaming": "no",
@@ -13386,11 +13451,155 @@ export const operations = [
13386
13451
  }
13387
13452
  ]
13388
13453
  },
13454
+ {
13455
+ "resource": "media.libraries.generations",
13456
+ "method": "create",
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.",
13459
+ "http": "POST",
13460
+ "path": "/media/v1/libraries/{library_id}/generations",
13461
+ "streaming": "no",
13462
+ "pagination": false,
13463
+ "pathParams": [
13464
+ {
13465
+ "name": "library_id",
13466
+ "sdkName": "library_id",
13467
+ "description": "Library ID returned by creation."
13468
+ }
13469
+ ],
13470
+ "query": [],
13471
+ "body": {
13472
+ "required": true,
13473
+ "fields": [
13474
+ {
13475
+ "name": "intent",
13476
+ "type": "string",
13477
+ "required": true,
13478
+ "description": "Generation operation; v1 accepts only video.generate text-to-video requests."
13479
+ },
13480
+ {
13481
+ "name": "prompt",
13482
+ "type": "string",
13483
+ "required": true,
13484
+ "description": "Text prompt describing the video to generate."
13485
+ },
13486
+ {
13487
+ "name": "count",
13488
+ "type": "integer",
13489
+ "required": false,
13490
+ "description": "Number of videos to generate; defaults to 1 and must be from 1 to 4."
13491
+ },
13492
+ {
13493
+ "name": "duration_seconds",
13494
+ "type": "integer",
13495
+ "required": false,
13496
+ "description": "Requested video duration in seconds; Router validates the model-specific supported durations."
13497
+ },
13498
+ {
13499
+ "name": "aspect_ratio",
13500
+ "type": "string",
13501
+ "required": false,
13502
+ "description": "Requested output aspect ratio; defaults to 16:9 and Router validates model support."
13503
+ },
13504
+ {
13505
+ "name": "model",
13506
+ "type": "string",
13507
+ "required": false,
13508
+ "description": "Router model with video_generation capability; defaults to wan2.7-t2v."
13509
+ },
13510
+ {
13511
+ "name": "save",
13512
+ "type": "string",
13513
+ "enum": [
13514
+ "candidate",
13515
+ "library"
13516
+ ],
13517
+ "required": false,
13518
+ "description": "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically."
13519
+ },
13520
+ {
13521
+ "name": "asset_folder",
13522
+ "type": "string",
13523
+ "required": false,
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."
13525
+ },
13526
+ {
13527
+ "name": "tags",
13528
+ "type": "array",
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",
13536
+ "enum": [
13537
+ "auto",
13538
+ "skip"
13539
+ ],
13540
+ "required": false,
13541
+ "description": "Understanding behavior when a candidate is saved as an asset; defaults to auto."
13542
+ },
13543
+ {
13544
+ "name": "references",
13545
+ "type": "array",
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
+ },
13389
13598
  {
13390
13599
  "resource": "media.libraries.jobs",
13391
13600
  "method": "retrieve",
13392
- "summary": "Get job alias",
13393
- "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.",
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.",
13394
13603
  "http": "GET",
13395
13604
  "path": "/media/v1/libraries/{library_id}/jobs/{job_id}",
13396
13605
  "streaming": "no",
@@ -13404,11 +13613,96 @@ export const operations = [
13404
13613
  {
13405
13614
  "name": "job_id",
13406
13615
  "sdkName": "job_id",
13407
- "description": "Batch identifier returned by createBatch or batchAssets; resolved within this library."
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."
13408
13640
  }
13409
13641
  ],
13410
13642
  "query": []
13411
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",
13696
+ "enum": [
13697
+ "auto",
13698
+ "skip"
13699
+ ],
13700
+ "required": false,
13701
+ "description": "Understanding behavior for the saved asset; defaults to auto."
13702
+ }
13703
+ ]
13704
+ }
13705
+ },
13412
13706
  {
13413
13707
  "resource": "media.libraries.purge",
13414
13708
  "method": "create",
@@ -16003,6 +16297,539 @@ export const operations = [
16003
16297
  ],
16004
16298
  "query": []
16005
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
+ },
16006
16833
  {
16007
16834
  "resource": "organization.charges",
16008
16835
  "method": "list",
@@ -18716,7 +19543,7 @@ export const operations = [
18716
19543
  "resource": "ticket.labels",
18717
19544
  "method": "create",
18718
19545
  "summary": "Create or add labels",
18719
- "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.",
18720
19547
  "http": "POST",
18721
19548
  "path": "/ticket/v1/labels",
18722
19549
  "streaming": "no",
@@ -18758,7 +19585,7 @@ export const operations = [
18758
19585
  "resource": "ticket.labels",
18759
19586
  "method": "delete",
18760
19587
  "summary": "Remove labels",
18761
- "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.",
18762
19589
  "http": "DELETE",
18763
19590
  "path": "/ticket/v1/labels/{name}",
18764
19591
  "streaming": "no",
@@ -18783,7 +19610,7 @@ export const operations = [
18783
19610
  "resource": "ticket.labels",
18784
19611
  "method": "update",
18785
19612
  "summary": "Update labels",
18786
- "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.",
18787
19614
  "http": "PATCH",
18788
19615
  "path": "/ticket/v1/labels/{name}",
18789
19616
  "streaming": "no",
@@ -19079,7 +19906,7 @@ export const operations = [
19079
19906
  "name": "filter",
19080
19907
  "type": "string",
19081
19908
  "required": false,
19082
- "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."
19083
19910
  }
19084
19911
  ]
19085
19912
  },
@@ -20185,7 +21012,7 @@ export const operations = [
20185
21012
  "resource": "vault.vaults",
20186
21013
  "method": "create",
20187
21014
  "summary": "Create vault",
20188
- "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.",
20189
21016
  "http": "POST",
20190
21017
  "path": "/vault/v1/vaults",
20191
21018
  "streaming": "no",