@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.
@@ -107,7 +107,7 @@ export declare const operations: readonly [{
107
107
  readonly type: "array";
108
108
  readonly itemType: "object";
109
109
  readonly required: false;
110
- readonly 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.";
110
+ readonly 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.";
111
111
  }, {
112
112
  readonly name: "kind";
113
113
  readonly type: "string";
@@ -938,6 +938,30 @@ export declare const operations: readonly [{
938
938
  readonly required: true;
939
939
  readonly description: "Absolute path of the file whose content to download, as returned in the path field of computers.files.list.";
940
940
  }];
941
+ }, {
942
+ readonly resource: "agent.computers.files.convert";
943
+ readonly method: "create";
944
+ readonly summary: "Convert a Computer Document to PDF";
945
+ readonly 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.";
946
+ readonly http: "POST";
947
+ readonly path: "/agent/v1/computers/{computer_id}/files/convert";
948
+ readonly streaming: "no";
949
+ readonly pagination: false;
950
+ readonly pathParams: readonly [{
951
+ readonly name: "computer_id";
952
+ readonly sdkName: "computer_id";
953
+ readonly description: "Computer id (cmp_...), as returned by computers.create or computers.list.";
954
+ }];
955
+ readonly query: readonly [];
956
+ readonly body: {
957
+ readonly required: true;
958
+ readonly fields: readonly [{
959
+ readonly name: "name";
960
+ readonly type: "string";
961
+ readonly required: true;
962
+ readonly description: "Name of the entry or object.";
963
+ }];
964
+ };
941
965
  }, {
942
966
  readonly resource: "agent.computers.leases";
943
967
  readonly method: "delete";
@@ -4845,7 +4869,7 @@ export declare const operations: readonly [{
4845
4869
  readonly type: "string";
4846
4870
  readonly enum: readonly ["skip", "allow"];
4847
4871
  readonly required: false;
4848
- readonly description: "skip (default) skips when a previous run is still active; allow permits overlapping runs.";
4872
+ readonly 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.";
4849
4873
  }, {
4850
4874
  readonly name: "catchup_window_seconds";
4851
4875
  readonly type: "integer";
@@ -4986,7 +5010,7 @@ export declare const operations: readonly [{
4986
5010
  readonly type: "string";
4987
5011
  readonly enum: readonly ["skip", "allow"];
4988
5012
  readonly required: false;
4989
- readonly description: "skip (default) skips when a previous run is still active; allow permits overlapping runs.";
5013
+ readonly 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.";
4990
5014
  }, {
4991
5015
  readonly name: "catchup_window_seconds";
4992
5016
  readonly type: "integer";
@@ -8098,13 +8122,18 @@ export declare const operations: readonly [{
8098
8122
  readonly type: "integer";
8099
8123
  readonly required: false;
8100
8124
  readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
8125
+ }, {
8126
+ readonly name: "loudness";
8127
+ readonly type: "object";
8128
+ readonly required: false;
8129
+ readonly 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.";
8101
8130
  }];
8102
8131
  };
8103
8132
  }, {
8104
8133
  readonly resource: "cut.projects.frames";
8105
8134
  readonly method: "list";
8106
8135
  readonly summary: "Render preview frames";
8107
- readonly 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.";
8136
+ readonly 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.";
8108
8137
  readonly http: "GET";
8109
8138
  readonly path: "/cut/v1/projects/{project_id}/frames";
8110
8139
  readonly streaming: "no";
@@ -8278,7 +8307,7 @@ export declare const operations: readonly [{
8278
8307
  readonly resource: "cut.projects";
8279
8308
  readonly method: "execute";
8280
8309
  readonly summary: "Execute editing script";
8281
- readonly 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";
8310
+ readonly 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";
8282
8311
  readonly http: "POST";
8283
8312
  readonly path: "/cut/v1/projects/{project_id}:execute";
8284
8313
  readonly streaming: "no";
@@ -9299,7 +9328,7 @@ export declare const operations: readonly [{
9299
9328
  readonly resource: "file.uploads";
9300
9329
  readonly method: "create";
9301
9330
  readonly summary: "Create an upload";
9302
- readonly 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.";
9331
+ readonly 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.";
9303
9332
  readonly http: "POST";
9304
9333
  readonly path: "/file/v1/uploads";
9305
9334
  readonly streaming: "no";
@@ -9312,7 +9341,7 @@ export declare const operations: readonly [{
9312
9341
  readonly name: "bytes";
9313
9342
  readonly type: "integer";
9314
9343
  readonly required: true;
9315
- readonly description: "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.";
9344
+ readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
9316
9345
  }, {
9317
9346
  readonly name: "filename";
9318
9347
  readonly type: "string";
@@ -9345,7 +9374,7 @@ export declare const operations: readonly [{
9345
9374
  readonly resource: "file.uploads";
9346
9375
  readonly method: "createSigned";
9347
9376
  readonly summary: "Create a one-time upload URL";
9348
- readonly 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\"}.";
9377
+ readonly 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\"}.";
9349
9378
  readonly http: "POST";
9350
9379
  readonly path: "/file/v1/uploads/signed";
9351
9380
  readonly streaming: "no";
@@ -9363,7 +9392,7 @@ export declare const operations: readonly [{
9363
9392
  readonly name: "bytes";
9364
9393
  readonly type: "integer";
9365
9394
  readonly required: true;
9366
- readonly 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.";
9395
+ readonly 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.";
9367
9396
  }, {
9368
9397
  readonly name: "content_type";
9369
9398
  readonly type: "string";
@@ -9379,7 +9408,7 @@ export declare const operations: readonly [{
9379
9408
  readonly name: "expires_in";
9380
9409
  readonly type: "integer";
9381
9410
  readonly required: false;
9382
- readonly 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.";
9411
+ readonly 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.";
9383
9412
  }, {
9384
9413
  readonly name: "part_size";
9385
9414
  readonly type: "integer";
@@ -9387,6 +9416,21 @@ export declare const operations: readonly [{
9387
9416
  readonly description: "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response.";
9388
9417
  }];
9389
9418
  };
9419
+ }, {
9420
+ readonly resource: "file.uploads";
9421
+ readonly method: "retrieve";
9422
+ readonly summary: "Retrieve an upload";
9423
+ readonly 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.";
9424
+ readonly http: "GET";
9425
+ readonly path: "/file/v1/uploads/{upload_id}";
9426
+ readonly streaming: "no";
9427
+ readonly pagination: false;
9428
+ readonly pathParams: readonly [{
9429
+ readonly name: "upload_id";
9430
+ readonly sdkName: "upload_id";
9431
+ readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
9432
+ }];
9433
+ readonly query: readonly [];
9390
9434
  }, {
9391
9435
  readonly resource: "file.uploads";
9392
9436
  readonly method: "cancel";
@@ -9406,7 +9450,7 @@ export declare const operations: readonly [{
9406
9450
  readonly resource: "file.uploads";
9407
9451
  readonly method: "complete";
9408
9452
  readonly summary: "Complete an upload";
9409
- readonly 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.";
9453
+ readonly 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.";
9410
9454
  readonly http: "POST";
9411
9455
  readonly path: "/file/v1/uploads/{upload_id}/complete";
9412
9456
  readonly streaming: "no";
@@ -9436,7 +9480,7 @@ export declare const operations: readonly [{
9436
9480
  readonly resource: "file.uploads.parts";
9437
9481
  readonly method: "create";
9438
9482
  readonly summary: "Add an upload part";
9439
- readonly 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.";
9483
+ readonly 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.";
9440
9484
  readonly http: "POST";
9441
9485
  readonly path: "/file/v1/uploads/{upload_id}/parts";
9442
9486
  readonly streaming: "no";
@@ -10085,6 +10129,17 @@ export declare const operations: readonly [{
10085
10129
  readonly description: "Chunk ID returned by segment listing or native search content.";
10086
10130
  }];
10087
10131
  readonly query: readonly [];
10132
+ }, {
10133
+ readonly resource: "media.generation.capabilities";
10134
+ readonly method: "list";
10135
+ readonly summary: "Get generation capabilities";
10136
+ readonly 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.";
10137
+ readonly http: "GET";
10138
+ readonly path: "/media/v1/generation/capabilities";
10139
+ readonly streaming: "no";
10140
+ readonly pagination: false;
10141
+ readonly pathParams: readonly [];
10142
+ readonly query: readonly [];
10088
10143
  }, {
10089
10144
  readonly resource: "media.libraries";
10090
10145
  readonly method: "list";
@@ -10267,7 +10322,7 @@ export declare const operations: readonly [{
10267
10322
  readonly resource: "media.libraries.assets";
10268
10323
  readonly method: "create";
10269
10324
  readonly summary: "Upload asset";
10270
- readonly 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.";
10325
+ readonly 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.";
10271
10326
  readonly http: "POST";
10272
10327
  readonly path: "/media/v1/libraries/{library_id}/assets";
10273
10328
  readonly streaming: "no";
@@ -10364,7 +10419,7 @@ export declare const operations: readonly [{
10364
10419
  readonly resource: "media.libraries.assets.import";
10365
10420
  readonly method: "create";
10366
10421
  readonly summary: "Import file";
10367
- readonly 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.";
10422
+ readonly 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.";
10368
10423
  readonly http: "POST";
10369
10424
  readonly path: "/media/v1/libraries/{library_id}/assets/import";
10370
10425
  readonly streaming: "no";
@@ -10577,7 +10632,7 @@ export declare const operations: readonly [{
10577
10632
  readonly resource: "media.libraries.assets.reprocess";
10578
10633
  readonly method: "create";
10579
10634
  readonly summary: "Reprocess asset";
10580
- readonly 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.";
10635
+ readonly 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.";
10581
10636
  readonly http: "POST";
10582
10637
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess";
10583
10638
  readonly streaming: "no";
@@ -10647,7 +10702,7 @@ export declare const operations: readonly [{
10647
10702
  readonly resource: "media.libraries.assets";
10648
10703
  readonly method: "batch";
10649
10704
  readonly summary: "Batch assets alias";
10650
- readonly 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.";
10705
+ readonly 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.";
10651
10706
  readonly http: "POST";
10652
10707
  readonly path: "/media/v1/libraries/{library_id}/assets:batch";
10653
10708
  readonly streaming: "no";
@@ -10676,7 +10731,7 @@ export declare const operations: readonly [{
10676
10731
  readonly resource: "media.libraries.batches";
10677
10732
  readonly method: "create";
10678
10733
  readonly summary: "Create batch";
10679
- readonly 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.";
10734
+ readonly 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.";
10680
10735
  readonly http: "POST";
10681
10736
  readonly path: "/media/v1/libraries/{library_id}/batches";
10682
10737
  readonly streaming: "no";
@@ -10805,11 +10860,120 @@ export declare const operations: readonly [{
10805
10860
  readonly required: false;
10806
10861
  readonly description: "Folder whose immediate children are returned. Omit or use an empty string for the library root; invalid folder paths are rejected.";
10807
10862
  }];
10863
+ }, {
10864
+ readonly resource: "media.libraries.generations";
10865
+ readonly method: "create";
10866
+ readonly summary: "Create video generation";
10867
+ readonly 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.";
10868
+ readonly http: "POST";
10869
+ readonly path: "/media/v1/libraries/{library_id}/generations";
10870
+ readonly streaming: "no";
10871
+ readonly pagination: false;
10872
+ readonly pathParams: readonly [{
10873
+ readonly name: "library_id";
10874
+ readonly sdkName: "library_id";
10875
+ readonly description: "Library ID returned by creation.";
10876
+ }];
10877
+ readonly query: readonly [];
10878
+ readonly body: {
10879
+ readonly required: true;
10880
+ readonly fields: readonly [{
10881
+ readonly name: "intent";
10882
+ readonly type: "string";
10883
+ readonly required: true;
10884
+ readonly description: "Generation operation; v1 accepts only video.generate text-to-video requests.";
10885
+ }, {
10886
+ readonly name: "prompt";
10887
+ readonly type: "string";
10888
+ readonly required: true;
10889
+ readonly description: "Text prompt describing the video to generate.";
10890
+ }, {
10891
+ readonly name: "count";
10892
+ readonly type: "integer";
10893
+ readonly required: false;
10894
+ readonly description: "Number of videos to generate; defaults to 1 and must be from 1 to 4.";
10895
+ }, {
10896
+ readonly name: "duration_seconds";
10897
+ readonly type: "integer";
10898
+ readonly required: false;
10899
+ readonly description: "Requested video duration in seconds; Router validates the model-specific supported durations.";
10900
+ }, {
10901
+ readonly name: "aspect_ratio";
10902
+ readonly type: "string";
10903
+ readonly required: false;
10904
+ readonly description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support.";
10905
+ }, {
10906
+ readonly name: "model";
10907
+ readonly type: "string";
10908
+ readonly required: false;
10909
+ readonly description: "Router model with video_generation capability; defaults to wan2.7-t2v.";
10910
+ }, {
10911
+ readonly name: "save";
10912
+ readonly type: "string";
10913
+ readonly enum: readonly ["candidate", "library"];
10914
+ readonly required: false;
10915
+ readonly description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.";
10916
+ }, {
10917
+ readonly name: "asset_folder";
10918
+ readonly type: "string";
10919
+ readonly required: false;
10920
+ readonly 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.";
10921
+ }, {
10922
+ readonly name: "tags";
10923
+ readonly type: "array";
10924
+ readonly itemType: "string";
10925
+ readonly required: false;
10926
+ readonly description: "Tags applied when an output becomes a library asset.";
10927
+ }, {
10928
+ readonly name: "understanding";
10929
+ readonly type: "string";
10930
+ readonly enum: readonly ["auto", "skip"];
10931
+ readonly required: false;
10932
+ readonly description: "Understanding behavior when a candidate is saved as an asset; defaults to auto.";
10933
+ }, {
10934
+ readonly name: "references";
10935
+ readonly type: "array";
10936
+ readonly itemType: "object";
10937
+ readonly required: false;
10938
+ readonly description: "Not supported in v1; omit this field. Only text-to-video is currently available.";
10939
+ }];
10940
+ };
10941
+ }, {
10942
+ readonly resource: "media.libraries.jobs";
10943
+ readonly method: "list";
10944
+ readonly summary: "List jobs";
10945
+ readonly 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.";
10946
+ readonly http: "GET";
10947
+ readonly path: "/media/v1/libraries/{library_id}/jobs";
10948
+ readonly streaming: "no";
10949
+ readonly pagination: true;
10950
+ readonly pathParams: readonly [{
10951
+ readonly name: "library_id";
10952
+ readonly sdkName: "library_id";
10953
+ readonly description: "Library ID returned by creation.";
10954
+ }];
10955
+ readonly query: readonly [{
10956
+ readonly name: "status";
10957
+ readonly type: "string";
10958
+ readonly enum: readonly ["queued", "running", "completed", "completed_with_errors", "failed", "cancelled"];
10959
+ readonly required: false;
10960
+ readonly description: "Filter jobs by their current status.";
10961
+ }, {
10962
+ readonly name: "limit";
10963
+ readonly type: "integer";
10964
+ readonly required: false;
10965
+ readonly description: "Maximum entries in this page, from 1 through 100; defaults to 100.";
10966
+ }, {
10967
+ readonly name: "cursor";
10968
+ readonly type: "string";
10969
+ readonly required: false;
10970
+ readonly description: "Job id from the previous page’s next_cursor; omit for the first page.";
10971
+ }];
10808
10972
  }, {
10809
10973
  readonly resource: "media.libraries.jobs";
10810
10974
  readonly method: "retrieve";
10811
- readonly summary: "Get job alias";
10812
- readonly 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.";
10975
+ readonly summary: "Get job";
10976
+ readonly 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.";
10813
10977
  readonly http: "GET";
10814
10978
  readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}";
10815
10979
  readonly streaming: "no";
@@ -10821,9 +10985,77 @@ export declare const operations: readonly [{
10821
10985
  }, {
10822
10986
  readonly name: "job_id";
10823
10987
  readonly sdkName: "job_id";
10824
- readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
10988
+ readonly description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.";
10989
+ }];
10990
+ readonly query: readonly [];
10991
+ }, {
10992
+ readonly resource: "media.libraries.jobs";
10993
+ readonly method: "cancel";
10994
+ readonly summary: "Cancel job";
10995
+ readonly 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.";
10996
+ readonly http: "POST";
10997
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel";
10998
+ readonly streaming: "no";
10999
+ readonly pagination: false;
11000
+ readonly pathParams: readonly [{
11001
+ readonly name: "library_id";
11002
+ readonly sdkName: "library_id";
11003
+ readonly description: "Library ID returned by creation.";
11004
+ }, {
11005
+ readonly name: "job_id";
11006
+ readonly sdkName: "job_id";
11007
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11008
+ }];
11009
+ readonly query: readonly [];
11010
+ }, {
11011
+ readonly resource: "media.libraries.jobs.outputs.save";
11012
+ readonly method: "create";
11013
+ readonly summary: "Save generation output";
11014
+ readonly 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.";
11015
+ readonly http: "POST";
11016
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save";
11017
+ readonly streaming: "no";
11018
+ readonly pagination: false;
11019
+ readonly pathParams: readonly [{
11020
+ readonly name: "library_id";
11021
+ readonly sdkName: "library_id";
11022
+ readonly description: "Library ID returned by creation.";
11023
+ }, {
11024
+ readonly name: "job_id";
11025
+ readonly sdkName: "job_id";
11026
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11027
+ }, {
11028
+ readonly name: "index";
11029
+ readonly sdkName: "index";
11030
+ readonly description: "Zero-based position of the candidate in the Job outputs array.";
10825
11031
  }];
10826
11032
  readonly query: readonly [];
11033
+ readonly body: {
11034
+ readonly required: false;
11035
+ readonly fields: readonly [{
11036
+ readonly name: "public_id";
11037
+ readonly type: "string";
11038
+ readonly required: false;
11039
+ readonly description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.";
11040
+ }, {
11041
+ readonly name: "asset_folder";
11042
+ readonly type: "string";
11043
+ readonly required: false;
11044
+ readonly 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.";
11045
+ }, {
11046
+ readonly name: "tags";
11047
+ readonly type: "array";
11048
+ readonly itemType: "string";
11049
+ readonly required: false;
11050
+ readonly description: "Tags to apply to the saved asset.";
11051
+ }, {
11052
+ readonly name: "understanding";
11053
+ readonly type: "string";
11054
+ readonly enum: readonly ["auto", "skip"];
11055
+ readonly required: false;
11056
+ readonly description: "Understanding behavior for the saved asset; defaults to auto.";
11057
+ }];
11058
+ };
10827
11059
  }, {
10828
11060
  readonly resource: "media.libraries.purge";
10829
11061
  readonly method: "create";
@@ -12883,6 +13115,451 @@ export declare const operations: readonly [{
12883
13115
  readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
12884
13116
  }];
12885
13117
  readonly query: readonly [];
13118
+ }, {
13119
+ readonly resource: "ontology.changesets";
13120
+ readonly method: "create";
13121
+ readonly summary: "Apply changeset";
13122
+ readonly 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.";
13123
+ readonly http: "POST";
13124
+ readonly path: "/ontology/v1/changesets";
13125
+ readonly streaming: "no";
13126
+ readonly pagination: false;
13127
+ readonly pathParams: readonly [];
13128
+ readonly query: readonly [];
13129
+ readonly body: {
13130
+ readonly required: true;
13131
+ readonly fields: readonly [{
13132
+ readonly name: "at";
13133
+ readonly type: "string";
13134
+ readonly required: true;
13135
+ readonly description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.";
13136
+ }, {
13137
+ readonly name: "scope";
13138
+ readonly type: "string";
13139
+ readonly required: false;
13140
+ readonly description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.";
13141
+ }, {
13142
+ readonly name: "ops";
13143
+ readonly type: "array";
13144
+ readonly itemType: "object";
13145
+ readonly required: true;
13146
+ readonly description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.";
13147
+ }];
13148
+ };
13149
+ }, {
13150
+ readonly resource: "ontology.nodes";
13151
+ readonly method: "list";
13152
+ readonly summary: "List nodes";
13153
+ readonly 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.";
13154
+ readonly http: "GET";
13155
+ readonly path: "/ontology/v1/nodes";
13156
+ readonly streaming: "no";
13157
+ readonly pagination: true;
13158
+ readonly pathParams: readonly [];
13159
+ readonly query: readonly [{
13160
+ readonly name: "type";
13161
+ readonly type: "array";
13162
+ readonly itemType: "string";
13163
+ readonly required: false;
13164
+ readonly description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.";
13165
+ }, {
13166
+ readonly name: "q";
13167
+ readonly type: "string";
13168
+ readonly required: false;
13169
+ readonly description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter.";
13170
+ }, {
13171
+ readonly name: "owner";
13172
+ readonly type: "string";
13173
+ readonly required: false;
13174
+ readonly description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.";
13175
+ }, {
13176
+ readonly name: "as_of";
13177
+ readonly type: "string";
13178
+ readonly required: false;
13179
+ readonly description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.";
13180
+ }, {
13181
+ readonly name: "limit";
13182
+ readonly type: "integer";
13183
+ readonly required: false;
13184
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
13185
+ }, {
13186
+ readonly name: "cursor";
13187
+ readonly type: "string";
13188
+ readonly required: false;
13189
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
13190
+ }];
13191
+ }, {
13192
+ readonly resource: "ontology.nodes";
13193
+ readonly method: "create";
13194
+ readonly summary: "Create node";
13195
+ readonly 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.";
13196
+ readonly http: "POST";
13197
+ readonly path: "/ontology/v1/nodes";
13198
+ readonly streaming: "no";
13199
+ readonly pagination: false;
13200
+ readonly pathParams: readonly [];
13201
+ readonly query: readonly [];
13202
+ readonly body: {
13203
+ readonly required: true;
13204
+ readonly fields: readonly [{
13205
+ readonly name: "type";
13206
+ readonly type: "string";
13207
+ readonly required: true;
13208
+ readonly description: "Registered node type name from types.list; an unregistered name is refused and nothing is written.";
13209
+ }, {
13210
+ readonly name: "ref";
13211
+ readonly type: "string";
13212
+ readonly required: false;
13213
+ readonly 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.";
13214
+ }, {
13215
+ readonly name: "name";
13216
+ readonly type: "string";
13217
+ readonly required: true;
13218
+ readonly description: "Display name of the entity, at most 200 characters.";
13219
+ }, {
13220
+ readonly name: "aliases";
13221
+ readonly type: "array";
13222
+ readonly itemType: "string";
13223
+ readonly required: false;
13224
+ readonly description: "Other names this entity is known by; they are matched by search alongside the name.";
13225
+ }, {
13226
+ readonly name: "description";
13227
+ readonly type: "string";
13228
+ readonly required: false;
13229
+ readonly description: "Profile of the entity, at most 500 characters; omit or null for none.";
13230
+ }, {
13231
+ readonly name: "owner";
13232
+ readonly type: "string";
13233
+ readonly required: false;
13234
+ readonly description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.";
13235
+ }];
13236
+ };
13237
+ }, {
13238
+ readonly resource: "ontology.nodes";
13239
+ readonly method: "retrieve";
13240
+ readonly summary: "Retrieve node";
13241
+ readonly 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.";
13242
+ readonly http: "GET";
13243
+ readonly path: "/ontology/v1/nodes/{node_id}";
13244
+ readonly streaming: "no";
13245
+ readonly pagination: false;
13246
+ readonly pathParams: readonly [{
13247
+ readonly name: "node_id";
13248
+ readonly sdkName: "node_id";
13249
+ readonly 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.";
13250
+ }];
13251
+ readonly query: readonly [{
13252
+ readonly name: "expand";
13253
+ readonly type: "string";
13254
+ readonly enum: readonly ["relations"];
13255
+ readonly required: false;
13256
+ readonly description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.";
13257
+ }, {
13258
+ readonly name: "as_of";
13259
+ readonly type: "string";
13260
+ readonly required: false;
13261
+ readonly description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.";
13262
+ }];
13263
+ }, {
13264
+ readonly resource: "ontology.nodes";
13265
+ readonly method: "update";
13266
+ readonly summary: "Update node";
13267
+ readonly 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.";
13268
+ readonly http: "PATCH";
13269
+ readonly path: "/ontology/v1/nodes/{node_id}";
13270
+ readonly streaming: "no";
13271
+ readonly pagination: false;
13272
+ readonly pathParams: readonly [{
13273
+ readonly name: "node_id";
13274
+ readonly sdkName: "node_id";
13275
+ readonly 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.";
13276
+ }];
13277
+ readonly query: readonly [];
13278
+ readonly body: {
13279
+ readonly required: true;
13280
+ readonly fields: readonly [{
13281
+ readonly name: "name";
13282
+ readonly type: "string";
13283
+ readonly required: false;
13284
+ readonly description: "New display name, at most 200 characters; omit to keep the current name.";
13285
+ }, {
13286
+ readonly name: "aliases";
13287
+ readonly type: "array";
13288
+ readonly itemType: "string";
13289
+ readonly required: false;
13290
+ readonly description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them.";
13291
+ }, {
13292
+ readonly name: "description";
13293
+ readonly type: "string";
13294
+ readonly required: false;
13295
+ readonly description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.";
13296
+ }];
13297
+ };
13298
+ }, {
13299
+ readonly resource: "ontology.nodes.merge";
13300
+ readonly method: "create";
13301
+ readonly summary: "Merge node";
13302
+ readonly 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.";
13303
+ readonly http: "POST";
13304
+ readonly path: "/ontology/v1/nodes/{node_id}/merge";
13305
+ readonly streaming: "no";
13306
+ readonly pagination: false;
13307
+ readonly pathParams: readonly [{
13308
+ readonly name: "node_id";
13309
+ readonly sdkName: "node_id";
13310
+ readonly 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.";
13311
+ }];
13312
+ readonly query: readonly [];
13313
+ readonly body: {
13314
+ readonly required: true;
13315
+ readonly fields: readonly [{
13316
+ readonly name: "into";
13317
+ readonly type: "string";
13318
+ readonly required: true;
13319
+ readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
13320
+ }];
13321
+ };
13322
+ }, {
13323
+ readonly resource: "ontology.relations";
13324
+ readonly method: "list";
13325
+ readonly summary: "List relations";
13326
+ readonly 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.";
13327
+ readonly http: "GET";
13328
+ readonly path: "/ontology/v1/relations";
13329
+ readonly streaming: "no";
13330
+ readonly pagination: true;
13331
+ readonly pathParams: readonly [];
13332
+ readonly query: readonly [{
13333
+ readonly name: "node";
13334
+ readonly type: "string";
13335
+ readonly required: false;
13336
+ readonly 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.";
13337
+ }, {
13338
+ readonly name: "type";
13339
+ readonly type: "array";
13340
+ readonly itemType: "string";
13341
+ readonly required: false;
13342
+ readonly description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.";
13343
+ }, {
13344
+ readonly name: "direction";
13345
+ readonly type: "string";
13346
+ readonly enum: readonly ["out", "in", "both"];
13347
+ readonly required: false;
13348
+ readonly 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.";
13349
+ }, {
13350
+ readonly name: "as_of";
13351
+ readonly type: "string";
13352
+ readonly required: false;
13353
+ readonly 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.";
13354
+ }, {
13355
+ readonly name: "include_invalid";
13356
+ readonly type: "boolean";
13357
+ readonly required: false;
13358
+ readonly 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.";
13359
+ }, {
13360
+ readonly name: "limit";
13361
+ readonly type: "integer";
13362
+ readonly required: false;
13363
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
13364
+ }, {
13365
+ readonly name: "cursor";
13366
+ readonly type: "string";
13367
+ readonly required: false;
13368
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
13369
+ }];
13370
+ }, {
13371
+ readonly resource: "ontology.relations";
13372
+ readonly method: "create";
13373
+ readonly summary: "Create relation";
13374
+ readonly 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.";
13375
+ readonly http: "POST";
13376
+ readonly path: "/ontology/v1/relations";
13377
+ readonly streaming: "no";
13378
+ readonly pagination: false;
13379
+ readonly pathParams: readonly [];
13380
+ readonly query: readonly [];
13381
+ readonly body: {
13382
+ readonly required: true;
13383
+ readonly fields: readonly [{
13384
+ readonly name: "type";
13385
+ readonly type: "string";
13386
+ readonly required: true;
13387
+ readonly description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused.";
13388
+ }, {
13389
+ readonly name: "source";
13390
+ readonly type: "string";
13391
+ readonly required: true;
13392
+ readonly description: "Node id the fact starts from, from nodes.list or nodes.create.";
13393
+ }, {
13394
+ readonly name: "target";
13395
+ readonly type: "string";
13396
+ readonly required: true;
13397
+ readonly description: "Node id the fact points at, from nodes.list or nodes.create.";
13398
+ }, {
13399
+ readonly name: "fact";
13400
+ readonly type: "string";
13401
+ readonly required: true;
13402
+ readonly description: "The relationship in one sentence, at most 280 characters, written to read back on its own.";
13403
+ }, {
13404
+ readonly name: "valid_at";
13405
+ readonly type: "string";
13406
+ readonly required: false;
13407
+ readonly description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated.";
13408
+ }, {
13409
+ readonly name: "owner";
13410
+ readonly type: "string";
13411
+ readonly required: false;
13412
+ readonly description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.";
13413
+ }];
13414
+ };
13415
+ }, {
13416
+ readonly resource: "ontology.relations";
13417
+ readonly method: "retrieve";
13418
+ readonly summary: "Retrieve relation";
13419
+ readonly 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.";
13420
+ readonly http: "GET";
13421
+ readonly path: "/ontology/v1/relations/{relation_id}";
13422
+ readonly streaming: "no";
13423
+ readonly pagination: false;
13424
+ readonly pathParams: readonly [{
13425
+ readonly name: "relation_id";
13426
+ readonly sdkName: "relation_id";
13427
+ readonly 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.";
13428
+ }];
13429
+ readonly query: readonly [];
13430
+ }, {
13431
+ readonly resource: "ontology.relations.invalidate";
13432
+ readonly method: "create";
13433
+ readonly summary: "Invalidate relation";
13434
+ readonly 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.";
13435
+ readonly http: "POST";
13436
+ readonly path: "/ontology/v1/relations/{relation_id}/invalidate";
13437
+ readonly streaming: "no";
13438
+ readonly pagination: false;
13439
+ readonly pathParams: readonly [{
13440
+ readonly name: "relation_id";
13441
+ readonly sdkName: "relation_id";
13442
+ readonly 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.";
13443
+ }];
13444
+ readonly query: readonly [];
13445
+ readonly body: {
13446
+ readonly required: true;
13447
+ readonly fields: readonly [{
13448
+ readonly name: "invalid_at";
13449
+ readonly type: "string";
13450
+ readonly required: true;
13451
+ readonly description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.";
13452
+ }, {
13453
+ readonly name: "superseded_by";
13454
+ readonly type: "string";
13455
+ readonly required: false;
13456
+ readonly description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.";
13457
+ }, {
13458
+ readonly name: "reason";
13459
+ readonly type: "string";
13460
+ readonly required: false;
13461
+ readonly description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit.";
13462
+ }];
13463
+ };
13464
+ }, {
13465
+ readonly resource: "ontology.search";
13466
+ readonly method: "create";
13467
+ readonly summary: "Search nodes";
13468
+ readonly 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.";
13469
+ readonly http: "POST";
13470
+ readonly path: "/ontology/v1/search";
13471
+ readonly streaming: "no";
13472
+ readonly pagination: false;
13473
+ readonly pathParams: readonly [];
13474
+ readonly query: readonly [];
13475
+ readonly body: {
13476
+ readonly required: true;
13477
+ readonly fields: readonly [{
13478
+ readonly name: "text";
13479
+ readonly type: "string";
13480
+ readonly required: true;
13481
+ readonly description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.";
13482
+ }, {
13483
+ readonly name: "types";
13484
+ readonly type: "array";
13485
+ readonly itemType: "string";
13486
+ readonly required: false;
13487
+ readonly description: "Registered node type names to search within; omit to search every type.";
13488
+ }, {
13489
+ readonly name: "window";
13490
+ readonly type: "object";
13491
+ readonly required: false;
13492
+ readonly description: "Restrict matches to facts recorded within a period; omit to search all time.";
13493
+ }, {
13494
+ readonly name: "limit";
13495
+ readonly type: "integer";
13496
+ readonly required: false;
13497
+ readonly description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.";
13498
+ }];
13499
+ };
13500
+ }, {
13501
+ readonly resource: "ontology.types";
13502
+ readonly method: "list";
13503
+ readonly summary: "List types";
13504
+ readonly 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.";
13505
+ readonly http: "GET";
13506
+ readonly path: "/ontology/v1/types";
13507
+ readonly streaming: "no";
13508
+ readonly pagination: false;
13509
+ readonly pathParams: readonly [];
13510
+ readonly query: readonly [];
13511
+ }, {
13512
+ readonly resource: "ontology.types";
13513
+ readonly method: "create";
13514
+ readonly summary: "Register type";
13515
+ readonly 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.";
13516
+ readonly http: "POST";
13517
+ readonly path: "/ontology/v1/types";
13518
+ readonly streaming: "no";
13519
+ readonly pagination: false;
13520
+ readonly pathParams: readonly [];
13521
+ readonly query: readonly [];
13522
+ readonly body: {
13523
+ readonly required: true;
13524
+ readonly fields: readonly [{
13525
+ readonly name: "owner";
13526
+ readonly type: "string";
13527
+ readonly required: true;
13528
+ readonly description: "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.";
13529
+ }, {
13530
+ readonly name: "version";
13531
+ readonly type: "integer";
13532
+ readonly required: true;
13533
+ readonly description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.";
13534
+ }, {
13535
+ readonly name: "nodes";
13536
+ readonly type: "array";
13537
+ readonly itemType: "object";
13538
+ readonly required: true;
13539
+ readonly description: "Node types this owner registers.";
13540
+ }, {
13541
+ readonly name: "edges";
13542
+ readonly type: "array";
13543
+ readonly itemType: "object";
13544
+ readonly required: true;
13545
+ readonly description: "Relation types this owner registers.";
13546
+ }];
13547
+ };
13548
+ }, {
13549
+ readonly resource: "ontology.types";
13550
+ readonly method: "retrieve";
13551
+ readonly summary: "Retrieve type";
13552
+ readonly 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.";
13553
+ readonly http: "GET";
13554
+ readonly path: "/ontology/v1/types/{name}";
13555
+ readonly streaming: "no";
13556
+ readonly pagination: false;
13557
+ readonly pathParams: readonly [{
13558
+ readonly name: "name";
13559
+ readonly sdkName: "name";
13560
+ readonly description: "A type name from types.list, with its dots preserved — a display label is not accepted.";
13561
+ }];
13562
+ readonly query: readonly [];
12886
13563
  }, {
12887
13564
  readonly resource: "organization.charges";
12888
13565
  readonly method: "list";
@@ -14935,7 +15612,7 @@ export declare const operations: readonly [{
14935
15612
  readonly resource: "ticket.labels";
14936
15613
  readonly method: "create";
14937
15614
  readonly summary: "Create or add labels";
14938
- readonly 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.";
15615
+ readonly 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.";
14939
15616
  readonly http: "POST";
14940
15617
  readonly path: "/ticket/v1/labels";
14941
15618
  readonly streaming: "no";
@@ -14970,7 +15647,7 @@ export declare const operations: readonly [{
14970
15647
  readonly resource: "ticket.labels";
14971
15648
  readonly method: "delete";
14972
15649
  readonly summary: "Remove labels";
14973
- readonly 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.";
15650
+ readonly 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.";
14974
15651
  readonly http: "DELETE";
14975
15652
  readonly path: "/ticket/v1/labels/{name}";
14976
15653
  readonly streaming: "no";
@@ -14990,7 +15667,7 @@ export declare const operations: readonly [{
14990
15667
  readonly resource: "ticket.labels";
14991
15668
  readonly method: "update";
14992
15669
  readonly summary: "Update labels";
14993
- readonly 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.";
15670
+ readonly 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.";
14994
15671
  readonly http: "PATCH";
14995
15672
  readonly path: "/ticket/v1/labels/{name}";
14996
15673
  readonly streaming: "no";
@@ -15230,7 +15907,7 @@ export declare const operations: readonly [{
15230
15907
  readonly name: "filter";
15231
15908
  readonly type: "string";
15232
15909
  readonly required: false;
15233
- readonly 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.";
15910
+ readonly 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.";
15234
15911
  }];
15235
15912
  }, {
15236
15913
  readonly resource: "ticket.tickets";
@@ -16124,7 +16801,7 @@ export declare const operations: readonly [{
16124
16801
  readonly resource: "vault.vaults";
16125
16802
  readonly method: "create";
16126
16803
  readonly summary: "Create vault";
16127
- readonly 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.";
16804
+ readonly 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.";
16128
16805
  readonly http: "POST";
16129
16806
  readonly path: "/vault/v1/vaults";
16130
16807
  readonly streaming: "no";