@deepraxis/sdk 0.1.1-dev.b623d9c → 0.1.1-dev.b7312c1

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,23 @@ 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.";
8130
+ }, {
8131
+ readonly name: "poster";
8132
+ readonly type: "object";
8133
+ readonly required: false;
8134
+ readonly description: "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export.";
8101
8135
  }];
8102
8136
  };
8103
8137
  }, {
8104
8138
  readonly resource: "cut.projects.frames";
8105
8139
  readonly method: "list";
8106
8140
  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.";
8141
+ 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
8142
  readonly http: "GET";
8109
8143
  readonly path: "/cut/v1/projects/{project_id}/frames";
8110
8144
  readonly streaming: "no";
@@ -8164,6 +8198,46 @@ export declare const operations: readonly [{
8164
8198
  readonly description: "Optional human-readable display name for the new media asset.";
8165
8199
  }];
8166
8200
  };
8201
+ }, {
8202
+ readonly resource: "cut.projects.renders";
8203
+ readonly method: "create";
8204
+ readonly summary: "Create draft range render";
8205
+ readonly description: "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.";
8206
+ readonly http: "POST";
8207
+ readonly path: "/cut/v1/projects/{project_id}/renders";
8208
+ readonly streaming: "no";
8209
+ readonly pagination: false;
8210
+ readonly pathParams: readonly [{
8211
+ readonly name: "project_id";
8212
+ readonly sdkName: "project_id";
8213
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8214
+ }];
8215
+ readonly query: readonly [];
8216
+ readonly body: {
8217
+ readonly required: true;
8218
+ readonly fields: readonly [{
8219
+ readonly name: "kind";
8220
+ readonly type: "string";
8221
+ readonly enum: readonly ["audio", "video"];
8222
+ readonly required: true;
8223
+ readonly description: "audio renders the mixed soundtrack alone as an .m4a file for listening; video renders a draft-quality .mp4 with picture and sound for looking at. An audio draft is the cheaper of the two and is what a loudness or mix measurement asks for.";
8224
+ }, {
8225
+ readonly name: "from";
8226
+ readonly type: "number";
8227
+ readonly required: true;
8228
+ readonly description: "Start of the interval in seconds on the project clock, inclusive. Must be less than to.";
8229
+ }, {
8230
+ readonly name: "to";
8231
+ readonly type: "number";
8232
+ readonly required: true;
8233
+ readonly description: "End of the interval in seconds on the project clock, exclusive. At most 120 seconds after from, and never beyond the timeline duration; a longer passage is requested as several ranges.";
8234
+ }, {
8235
+ readonly name: "revision";
8236
+ readonly type: "integer";
8237
+ readonly required: false;
8238
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
8239
+ }];
8240
+ };
8167
8241
  }, {
8168
8242
  readonly resource: "cut.projects";
8169
8243
  readonly method: "retrieveState";
@@ -8278,7 +8352,7 @@ export declare const operations: readonly [{
8278
8352
  readonly resource: "cut.projects";
8279
8353
  readonly method: "execute";
8280
8354
  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;\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, 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| 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, volumeDb, transform, fit, animate, transitionIn, transitionOut |\n| image | media, length | transform, fit, animate, transitionIn, transitionOut |\n| text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |\n| color | color, length | transform, fill, animate, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |\n| audio | media | length, sourceIn, volumeDb, fadeIn, fadeOut, transitionIn, transitionOut |\n| caption | text, length | — |\n\nVideo tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.\n\n| Field | Value |\n| --- | --- |\n| transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |\n| style | Partial `{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth, 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, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, animate, reveal, fill, stroke, shape, width, height, radius, transitionIn, transitionOut. Values and units match Insert. Set animate, reveal, fill, stroke, transitionIn or transitionOut to null to remove that effect; omitting a field preserves it. For example: `Update(id, {volumeDb: -12})` or `Update(id, {transitionIn: null})`.\n\n#### Script names versus HTTP response names\n\nUse camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.\n\nUnrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.\n";
8355
+ 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- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_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
8356
  readonly http: "POST";
8283
8357
  readonly path: "/cut/v1/projects/{project_id}:execute";
8284
8358
  readonly streaming: "no";
@@ -8329,6 +8403,21 @@ export declare const operations: readonly [{
8329
8403
  readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8330
8404
  }];
8331
8405
  readonly query: readonly [];
8406
+ }, {
8407
+ readonly resource: "cut.renders";
8408
+ readonly method: "retrieve";
8409
+ readonly summary: "Retrieve draft range render";
8410
+ readonly description: "Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.";
8411
+ readonly http: "GET";
8412
+ readonly path: "/cut/v1/renders/{render_id}";
8413
+ readonly streaming: "no";
8414
+ readonly pagination: false;
8415
+ readonly pathParams: readonly [{
8416
+ readonly name: "render_id";
8417
+ readonly sdkName: "render_id";
8418
+ readonly description: "Draft render id (cutr_…) returned by projects.renders.create.";
8419
+ }];
8420
+ readonly query: readonly [];
8332
8421
  }, {
8333
8422
  readonly resource: "cut.versions";
8334
8423
  readonly method: "restore";
@@ -9129,654 +9218,921 @@ export declare const operations: readonly [{
9129
9218
  }];
9130
9219
  };
9131
9220
  }, {
9132
- readonly resource: "file.files";
9221
+ readonly resource: "devops.projects.testCases";
9133
9222
  readonly method: "list";
9134
- readonly summary: "List files";
9135
- readonly description: "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.";
9223
+ readonly summary: "List test cases";
9224
+ readonly description: "List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.";
9136
9225
  readonly http: "GET";
9137
- readonly path: "/file/v1/files";
9226
+ readonly path: "/devops/v1/projects/{project}/test-cases";
9138
9227
  readonly streaming: "no";
9139
9228
  readonly pagination: false;
9140
- readonly pathParams: readonly [];
9229
+ readonly pathParams: readonly [{
9230
+ readonly name: "project";
9231
+ readonly sdkName: "project";
9232
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9233
+ }];
9141
9234
  readonly query: readonly [{
9142
- readonly name: "purpose";
9143
- readonly type: "string";
9235
+ readonly name: "pageSize";
9236
+ readonly type: "integer";
9144
9237
  readonly required: false;
9145
- readonly description: "Only return files with the given purpose.";
9238
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9146
9239
  }, {
9147
- readonly name: "limit";
9148
- readonly type: "integer";
9240
+ readonly name: "pageToken";
9241
+ readonly type: "string";
9149
9242
  readonly required: false;
9150
- readonly description: "A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.\n";
9243
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9151
9244
  }, {
9152
- readonly name: "order";
9245
+ readonly name: "filter";
9153
9246
  readonly type: "string";
9154
- readonly enum: readonly ["asc", "desc"];
9155
9247
  readonly required: false;
9156
- readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
9248
+ readonly description: "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result.";
9157
9249
  }, {
9158
- readonly name: "after";
9250
+ readonly name: "orderBy";
9159
9251
  readonly type: "string";
9160
9252
  readonly required: false;
9161
- readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9253
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9254
+ }];
9255
+ }, {
9256
+ readonly resource: "devops.projects";
9257
+ readonly method: "retrieveTestCatalog";
9258
+ readonly summary: "Read a commit's test catalog";
9259
+ readonly description: "Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means \"not yet\", not \"no tests\"; wait and read again. Omit commit to read the newest catalog published for the project.";
9260
+ readonly http: "GET";
9261
+ readonly path: "/devops/v1/projects/{project}/test-catalog";
9262
+ readonly streaming: "no";
9263
+ readonly pagination: false;
9264
+ readonly pathParams: readonly [{
9265
+ readonly name: "project";
9266
+ readonly sdkName: "project";
9267
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9268
+ }];
9269
+ readonly query: readonly [{
9270
+ readonly name: "commit";
9271
+ readonly type: "string";
9272
+ readonly required: false;
9273
+ readonly description: "Full 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project.";
9274
+ }];
9275
+ }, {
9276
+ readonly resource: "devops.projects.testPlans";
9277
+ readonly method: "list";
9278
+ readonly summary: "List test plans";
9279
+ readonly description: "List the project's plans — what each one selects, which stage and gate it belongs to, and when it runs next. Read this before creating a plan, so a new plan extends what exists instead of duplicating a selector an existing plan already covers.";
9280
+ readonly http: "GET";
9281
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9282
+ readonly streaming: "no";
9283
+ readonly pagination: false;
9284
+ readonly pathParams: readonly [{
9285
+ readonly name: "project";
9286
+ readonly sdkName: "project";
9287
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9288
+ }];
9289
+ readonly query: readonly [{
9290
+ readonly name: "pageSize";
9291
+ readonly type: "integer";
9292
+ readonly required: false;
9293
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9162
9294
  }, {
9163
- readonly name: "scope_id";
9295
+ readonly name: "pageToken";
9164
9296
  readonly type: "string";
9165
9297
  readonly required: false;
9166
- readonly description: "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.";
9298
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9167
9299
  }, {
9168
- readonly name: "before";
9300
+ readonly name: "orderBy";
9169
9301
  readonly type: "string";
9170
9302
  readonly required: false;
9171
- readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9303
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9172
9304
  }];
9173
9305
  }, {
9174
- readonly resource: "file.files";
9306
+ readonly resource: "devops.projects.testPlans";
9175
9307
  readonly method: "create";
9176
- readonly summary: "Upload file";
9177
- readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.";
9308
+ readonly summary: "Create a test plan";
9309
+ readonly description: "Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.";
9178
9310
  readonly http: "POST";
9179
- readonly path: "/file/v1/files";
9311
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9180
9312
  readonly streaming: "no";
9181
9313
  readonly pagination: false;
9182
- readonly multipart: true;
9183
- readonly pathParams: readonly [];
9314
+ readonly pathParams: readonly [{
9315
+ readonly name: "project";
9316
+ readonly sdkName: "project";
9317
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9318
+ }];
9184
9319
  readonly query: readonly [];
9185
9320
  readonly body: {
9186
9321
  readonly required: true;
9187
9322
  readonly fields: readonly [{
9188
- readonly name: "file";
9323
+ readonly name: "key";
9189
9324
  readonly type: "string";
9190
9325
  readonly required: true;
9191
- readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.";
9326
+ readonly description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused.";
9192
9327
  }, {
9193
- readonly name: "purpose";
9328
+ readonly name: "title";
9194
9329
  readonly type: "string";
9195
- readonly enum: readonly ["user_data", "assistants", "vision"];
9196
9330
  readonly required: true;
9197
- readonly description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.";
9331
+ readonly description: "Display title of the plan, shown wherever the plan is listed.";
9198
9332
  }, {
9199
- readonly name: "expires_after";
9333
+ readonly name: "stage";
9334
+ readonly type: "string";
9335
+ readonly enum: readonly ["dev", "presubmit", "postsubmit", "nightly", "production"];
9336
+ readonly required: true;
9337
+ readonly description: "Which stage of delivery this plan belongs to, which decides when it is expected to run.";
9338
+ }, {
9339
+ readonly name: "trigger";
9200
9340
  readonly type: "object";
9341
+ readonly required: true;
9342
+ readonly description: "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries.";
9343
+ }, {
9344
+ readonly name: "selector";
9345
+ readonly type: "object";
9346
+ readonly required: true;
9347
+ readonly description: "Which cases a plan or run selects. Every member is optional and they combine as an intersection, so a selector with no member selects every case in the catalog.";
9348
+ }, {
9349
+ readonly name: "environment";
9350
+ readonly type: "string";
9201
9351
  readonly required: false;
9202
- readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9352
+ readonly description: "The environment this plan runs against; required by a merge or promotion gate, and refused with PLAN_GATE_ENVIRONMENT_MISMATCH when it disagrees with the gate.";
9353
+ }, {
9354
+ readonly name: "gate";
9355
+ readonly type: "string";
9356
+ readonly enum: readonly ["merge", "promotion", "observation", "none"];
9357
+ readonly required: true;
9358
+ readonly description: "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment.";
9359
+ }, {
9360
+ readonly name: "repeat";
9361
+ readonly type: "integer";
9362
+ readonly required: false;
9363
+ readonly description: "How many times each selected case runs in one run; omit for once. More than one is how a flake is told apart from a real failure.";
9364
+ }, {
9365
+ readonly name: "timeoutMinutes";
9366
+ readonly type: "integer";
9367
+ readonly required: false;
9368
+ readonly description: "How many minutes a run of this plan may take before it is timed out; omit for the service's default.";
9203
9369
  }];
9204
9370
  };
9205
9371
  }, {
9206
- readonly resource: "file.files";
9207
- readonly method: "delete";
9208
- readonly summary: "Delete file";
9209
- readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
9210
- readonly http: "DELETE";
9211
- readonly path: "/file/v1/files/{file_id}";
9212
- readonly streaming: "no";
9213
- readonly pagination: false;
9214
- readonly pathParams: readonly [{
9215
- readonly name: "file_id";
9216
- readonly sdkName: "file_id";
9217
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9218
- }];
9219
- readonly query: readonly [];
9220
- }, {
9221
- readonly resource: "file.files";
9222
- readonly method: "retrieve";
9223
- readonly summary: "Retrieve file";
9224
- readonly description: "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.";
9225
- readonly http: "GET";
9226
- readonly path: "/file/v1/files/{file_id}";
9227
- readonly streaming: "no";
9228
- readonly pagination: false;
9229
- readonly pathParams: readonly [{
9230
- readonly name: "file_id";
9231
- readonly sdkName: "file_id";
9232
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9233
- }];
9234
- readonly query: readonly [];
9235
- }, {
9236
- readonly resource: "file.files";
9237
- readonly method: "retrieveContent";
9238
- readonly summary: "Retrieve file content";
9239
- readonly description: "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.";
9240
- readonly http: "GET";
9241
- readonly path: "/file/v1/files/{file_id}/content";
9242
- readonly streaming: "no";
9243
- readonly pagination: false;
9244
- readonly pathParams: readonly [{
9245
- readonly name: "file_id";
9246
- readonly sdkName: "file_id";
9247
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9248
- }];
9249
- readonly query: readonly [];
9250
- }, {
9251
- readonly resource: "file.files.contentLinks";
9252
- readonly method: "revoke";
9253
- readonly summary: "Revoke a file content link";
9254
- readonly description: "Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.";
9372
+ readonly resource: "devops.projects.testReports";
9373
+ readonly method: "create";
9374
+ readonly summary: "Upload an external test report";
9375
+ readonly description: "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable.";
9255
9376
  readonly http: "POST";
9256
- readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9377
+ readonly path: "/devops/v1/projects/{project}/test-reports";
9257
9378
  readonly streaming: "no";
9258
9379
  readonly pagination: false;
9259
9380
  readonly pathParams: readonly [{
9260
- readonly name: "file_id";
9261
- readonly sdkName: "file_id";
9262
- readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
9381
+ readonly name: "project";
9382
+ readonly sdkName: "project";
9383
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9263
9384
  }];
9264
9385
  readonly query: readonly [];
9265
9386
  readonly body: {
9266
9387
  readonly required: true;
9267
9388
  readonly fields: readonly [{
9268
- readonly name: "token";
9389
+ readonly name: "reportId";
9269
9390
  readonly type: "string";
9270
9391
  readonly required: true;
9271
- readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
9392
+ readonly description: "Your own identifier for this report. Uploading the same id again is idempotent and counts once, so a retry after a timeout is safe.";
9393
+ }, {
9394
+ readonly name: "format";
9395
+ readonly type: "string";
9396
+ readonly enum: readonly ["ctrf", "junit"];
9397
+ readonly required: true;
9398
+ readonly description: "Which report format the document is in; it decides how the document is parsed.";
9399
+ }, {
9400
+ readonly name: "ref";
9401
+ readonly type: "object";
9402
+ readonly required: true;
9403
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9404
+ }, {
9405
+ readonly name: "report";
9406
+ readonly type: "string";
9407
+ readonly required: true;
9408
+ readonly description: "The report document itself, as text — JSON for ctrf, XML for junit. Send the file's contents unchanged; a malformed document is refused with REPORT_INVALID and records nothing.";
9272
9409
  }];
9273
9410
  };
9274
9411
  }, {
9275
- readonly resource: "file.files.contentUrl";
9276
- readonly method: "create";
9277
- readonly summary: "Create a download URL";
9278
- readonly description: "Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {\"ttl_seconds\":3600}.";
9279
- readonly http: "POST";
9280
- readonly path: "/file/v1/files/{file_id}/content_url";
9412
+ readonly resource: "devops.projects.testRuns";
9413
+ readonly method: "list";
9414
+ readonly summary: "List test runs";
9415
+ readonly description: "List the project's runs newest first, with each run's state, result and counts. Use it to find the run id whose executions you want to read, or to see whether a commit's tests have finished. A run whose result is pending has not reached a verdict yet — read it again rather than treating it as passed. Filter by state or result to watch only the runs still in flight.";
9416
+ readonly http: "GET";
9417
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9281
9418
  readonly streaming: "no";
9282
9419
  readonly pagination: false;
9283
9420
  readonly pathParams: readonly [{
9284
- readonly name: "file_id";
9285
- readonly sdkName: "file_id";
9286
- readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
9421
+ readonly name: "project";
9422
+ readonly sdkName: "project";
9423
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9287
9424
  }];
9288
- readonly query: readonly [];
9289
- readonly body: {
9425
+ readonly query: readonly [{
9426
+ readonly name: "pageSize";
9427
+ readonly type: "integer";
9290
9428
  readonly required: false;
9291
- readonly fields: readonly [{
9292
- readonly name: "ttl_seconds";
9293
- readonly type: "integer";
9294
- readonly required: false;
9295
- readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
9296
- }];
9297
- };
9429
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9430
+ }, {
9431
+ readonly name: "pageToken";
9432
+ readonly type: "string";
9433
+ readonly required: false;
9434
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9435
+ }, {
9436
+ readonly name: "filter";
9437
+ readonly type: "string";
9438
+ readonly required: false;
9439
+ readonly description: "AIP-160 equality filter over one declared field, for example state=running or result=failed. An undeclared field is refused with INVALID_ARGUMENT; it is never ignored, so a mistyped filter cannot quietly return everything.";
9440
+ }, {
9441
+ readonly name: "orderBy";
9442
+ readonly type: "string";
9443
+ readonly required: false;
9444
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9445
+ }];
9298
9446
  }, {
9299
- readonly resource: "file.uploads";
9447
+ readonly resource: "devops.projects.testRuns";
9300
9448
  readonly method: "create";
9301
- 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.";
9449
+ readonly summary: "Create a test run";
9450
+ readonly description: "Start a run of the project's tests at one commit. Name a plan to use its selector, or pass a selector directly for this run alone; the ref says which commit to test and is required, because a run without a commit has nothing to report against. waitUntil decides how far the call waits before answering — queued, the default, returns as soon as the run exists; started waits until the run has begun, except for an external run, which is answered at once because it leaves queued only when your own CI uploads; finished waits for a verdict. The wait is bounded at about 25 seconds, and a wait that reaches that bound returns the run as it stands rather than failing — read state to see whether it finished. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.";
9303
9451
  readonly http: "POST";
9304
- readonly path: "/file/v1/uploads";
9452
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9305
9453
  readonly streaming: "no";
9306
9454
  readonly pagination: false;
9307
- readonly pathParams: readonly [];
9455
+ readonly pathParams: readonly [{
9456
+ readonly name: "project";
9457
+ readonly sdkName: "project";
9458
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9459
+ }];
9308
9460
  readonly query: readonly [];
9309
9461
  readonly body: {
9310
9462
  readonly required: true;
9311
9463
  readonly fields: readonly [{
9312
- readonly name: "bytes";
9313
- readonly type: "integer";
9464
+ readonly name: "ref";
9465
+ readonly type: "object";
9314
9466
  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.";
9467
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9316
9468
  }, {
9317
- readonly name: "filename";
9469
+ readonly name: "plan";
9318
9470
  readonly type: "string";
9319
- readonly required: true;
9320
- readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9471
+ readonly required: false;
9472
+ readonly description: "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads.";
9321
9473
  }, {
9322
- readonly name: "mime_type";
9474
+ readonly name: "selector";
9475
+ readonly type: "object";
9476
+ readonly required: false;
9477
+ readonly description: "An ad-hoc selector for this run alone, used instead of a plan's; it is not saved as a plan, so a run you want to repeat should name a plan.";
9478
+ }, {
9479
+ readonly name: "environment";
9323
9480
  readonly type: "string";
9324
- readonly required: true;
9325
- readonly description: "Declared MIME type; validated against the assembled content.";
9481
+ readonly required: false;
9482
+ readonly description: "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment.";
9326
9483
  }, {
9327
- readonly name: "purpose";
9484
+ readonly name: "repeat";
9485
+ readonly type: "integer";
9486
+ readonly required: false;
9487
+ readonly description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once.";
9488
+ }, {
9489
+ readonly name: "waitUntil";
9328
9490
  readonly type: "string";
9329
- readonly enum: readonly ["user_data", "assistants", "vision"];
9330
- readonly required: true;
9331
- readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
9491
+ readonly enum: readonly ["queued", "started", "finished"];
9492
+ readonly required: false;
9493
+ readonly description: "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured.";
9332
9494
  }, {
9333
- readonly name: "expires_after";
9334
- readonly type: "object";
9495
+ readonly name: "executor";
9496
+ readonly type: "string";
9497
+ readonly enum: readonly ["cloud", "external"];
9335
9498
  readonly required: false;
9336
- readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9499
+ readonly description: "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports.";
9337
9500
  }, {
9338
- readonly name: "part_size";
9339
- readonly type: "integer";
9501
+ readonly name: "requestId";
9502
+ readonly type: "string";
9340
9503
  readonly required: false;
9341
- readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
9504
+ readonly description: "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe.";
9342
9505
  }];
9343
9506
  };
9344
9507
  }, {
9345
- readonly resource: "file.uploads";
9346
- readonly method: "createSigned";
9347
- 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\"}.";
9349
- readonly http: "POST";
9350
- readonly path: "/file/v1/uploads/signed";
9508
+ readonly resource: "devops.projects.testSuites";
9509
+ readonly method: "list";
9510
+ readonly summary: "List test suites";
9511
+ readonly description: "List the suites the project's newest catalog discovered — one suite per test file and framework pair, with its size, purposes and question count. Use it to find the suite id a case belongs to, or to see which files make up an area before selecting cases from them. Suites come from the catalog, so a file added in code appears only after its commit's catalog is published. Archived suites are returned too; they carry archived true and no case is ever silently dropped from the list.";
9512
+ readonly http: "GET";
9513
+ readonly path: "/devops/v1/projects/{project}/test-suites";
9351
9514
  readonly streaming: "no";
9352
9515
  readonly pagination: false;
9353
- readonly pathParams: readonly [];
9516
+ readonly pathParams: readonly [{
9517
+ readonly name: "project";
9518
+ readonly sdkName: "project";
9519
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9520
+ }];
9521
+ readonly query: readonly [{
9522
+ readonly name: "pageSize";
9523
+ readonly type: "integer";
9524
+ readonly required: false;
9525
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9526
+ }, {
9527
+ readonly name: "pageToken";
9528
+ readonly type: "string";
9529
+ readonly required: false;
9530
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9531
+ }, {
9532
+ readonly name: "orderBy";
9533
+ readonly type: "string";
9534
+ readonly required: false;
9535
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9536
+ }];
9537
+ }, {
9538
+ readonly resource: "devops.testCases";
9539
+ readonly method: "retrieve";
9540
+ readonly summary: "Retrieve a test case";
9541
+ readonly description: "Read one case in full — its steps, tags, declared owners, current state with the policy and ticket behind it, and its rolling 7 or 30 day statistics. Use it before quarantining or fixing a case, to see what the state already is and why. A case that was renamed is reachable by both its current fingerprint id and the ids listed in aliases.";
9542
+ readonly http: "GET";
9543
+ readonly path: "/devops/v1/test-cases/{id}";
9544
+ readonly streaming: "no";
9545
+ readonly pagination: false;
9546
+ readonly pathParams: readonly [{
9547
+ readonly name: "id";
9548
+ readonly sdkName: "id";
9549
+ readonly description: "The case identifier returned by a case list, or an older id listed in that case's aliases.";
9550
+ }];
9551
+ readonly query: readonly [];
9552
+ }, {
9553
+ readonly resource: "devops.testPlans";
9554
+ readonly method: "delete";
9555
+ readonly summary: "Delete a test plan";
9556
+ readonly description: "Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan's key becomes free for another plan to take.";
9557
+ readonly http: "DELETE";
9558
+ readonly path: "/devops/v1/test-plans/{id}";
9559
+ readonly streaming: "no";
9560
+ readonly pagination: false;
9561
+ readonly pathParams: readonly [{
9562
+ readonly name: "id";
9563
+ readonly sdkName: "id";
9564
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9565
+ }];
9566
+ readonly query: readonly [];
9567
+ }, {
9568
+ readonly resource: "devops.testPlans";
9569
+ readonly method: "retrieve";
9570
+ readonly summary: "Retrieve a test plan";
9571
+ readonly description: "Read one plan by the id a plan list returned, to see its selector, gate, repeat count, timeout and pause state before updating or deleting it. A paused plan carries the reason, the actor and the time it resumes, so a pause you did not set is explained here rather than guessed at.";
9572
+ readonly http: "GET";
9573
+ readonly path: "/devops/v1/test-plans/{id}";
9574
+ readonly streaming: "no";
9575
+ readonly pagination: false;
9576
+ readonly pathParams: readonly [{
9577
+ readonly name: "id";
9578
+ readonly sdkName: "id";
9579
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9580
+ }];
9581
+ readonly query: readonly [];
9582
+ }, {
9583
+ readonly resource: "devops.testPlans";
9584
+ readonly method: "update";
9585
+ readonly summary: "Update a test plan";
9586
+ readonly description: "Change a plan's title, trigger, selector, gate, repeat count, timeout or enabled flag. Only the fields present in the body are changed, so a body naming one field leaves the rest exactly as they were. Changing a selector does not create a version — the plan is not a published artefact, and runs already started keep the selection they were created with. Read the plan first to know what you are leaving unchanged.";
9587
+ readonly http: "PATCH";
9588
+ readonly path: "/devops/v1/test-plans/{id}";
9589
+ readonly streaming: "no";
9590
+ readonly pagination: false;
9591
+ readonly pathParams: readonly [{
9592
+ readonly name: "id";
9593
+ readonly sdkName: "id";
9594
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9595
+ }];
9354
9596
  readonly query: readonly [];
9355
9597
  readonly body: {
9356
9598
  readonly required: true;
9357
9599
  readonly fields: readonly [{
9358
- readonly name: "filename";
9359
- readonly type: "string";
9360
- readonly required: true;
9361
- readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
9362
- }, {
9363
- readonly name: "bytes";
9364
- readonly type: "integer";
9365
- 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.";
9367
- }, {
9368
- readonly name: "content_type";
9369
- readonly type: "string";
9600
+ readonly name: "plan";
9601
+ readonly type: "object";
9370
9602
  readonly required: true;
9371
- readonly description: "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes.";
9603
+ readonly description: "The fields to change. Anything absent keeps its current value, so read the plan first if you need to know what you are leaving alone.";
9372
9604
  }, {
9373
- readonly name: "purpose";
9605
+ readonly name: "updateMask";
9374
9606
  readonly type: "string";
9375
- readonly enum: readonly ["user_data", "assistants", "vision"];
9376
- readonly required: false;
9377
- readonly description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
9378
- }, {
9379
- readonly name: "expires_in";
9380
- readonly type: "integer";
9381
9607
  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.";
9383
- }, {
9384
- readonly name: "part_size";
9385
- readonly type: "integer";
9386
- readonly required: false;
9387
- 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.";
9608
+ readonly description: "Comma-separated names of the plan fields this patch intends to change, for example title,enabled. Omit it to apply every field present in plan; naming fields makes the intent explicit and keeps a concurrent edit from being overwritten by accident.";
9388
9609
  }];
9389
9610
  };
9390
9611
  }, {
9391
- readonly resource: "file.uploads";
9392
- readonly method: "cancel";
9393
- readonly summary: "Cancel an upload";
9394
- readonly description: "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.";
9395
- readonly http: "POST";
9396
- readonly path: "/file/v1/uploads/{upload_id}/cancel";
9397
- readonly streaming: "no";
9398
- readonly pagination: false;
9399
- readonly pathParams: readonly [{
9400
- readonly name: "upload_id";
9401
- readonly sdkName: "upload_id";
9402
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9403
- }];
9404
- readonly query: readonly [];
9405
- }, {
9406
- readonly resource: "file.uploads";
9407
- readonly method: "complete";
9408
- 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.";
9612
+ readonly resource: "devops.testPlans";
9613
+ readonly method: "pause";
9614
+ readonly summary: "Pause a test plan";
9615
+ readonly description: "Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.";
9410
9616
  readonly http: "POST";
9411
- readonly path: "/file/v1/uploads/{upload_id}/complete";
9617
+ readonly path: "/devops/v1/test-plans/{id}:pause";
9412
9618
  readonly streaming: "no";
9413
9619
  readonly pagination: false;
9414
9620
  readonly pathParams: readonly [{
9415
- readonly name: "upload_id";
9416
- readonly sdkName: "upload_id";
9417
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9621
+ readonly name: "id";
9622
+ readonly sdkName: "id";
9623
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9418
9624
  }];
9419
9625
  readonly query: readonly [];
9420
9626
  readonly body: {
9421
9627
  readonly required: true;
9422
9628
  readonly fields: readonly [{
9423
- readonly name: "part_ids";
9424
- readonly type: "array";
9425
- readonly itemType: "string";
9629
+ readonly name: "reason";
9630
+ readonly type: "string";
9426
9631
  readonly required: true;
9427
- readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
9632
+ readonly description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped.";
9428
9633
  }, {
9429
- readonly name: "md5";
9634
+ readonly name: "until";
9430
9635
  readonly type: "string";
9431
9636
  readonly required: false;
9432
- readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
9637
+ readonly description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it.";
9433
9638
  }];
9434
9639
  };
9435
9640
  }, {
9436
- readonly resource: "file.uploads.parts";
9437
- readonly method: "create";
9438
- 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.";
9641
+ readonly resource: "devops.testPlans";
9642
+ readonly method: "resume";
9643
+ readonly summary: "Resume a test plan";
9644
+ readonly description: "Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.";
9440
9645
  readonly http: "POST";
9441
- readonly path: "/file/v1/uploads/{upload_id}/parts";
9646
+ readonly path: "/devops/v1/test-plans/{id}:resume";
9442
9647
  readonly streaming: "no";
9443
9648
  readonly pagination: false;
9444
- readonly multipart: true;
9445
9649
  readonly pathParams: readonly [{
9446
- readonly name: "upload_id";
9447
- readonly sdkName: "upload_id";
9448
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9650
+ readonly name: "id";
9651
+ readonly sdkName: "id";
9652
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9653
+ }];
9654
+ readonly query: readonly [];
9655
+ }, {
9656
+ readonly resource: "devops.testRuns";
9657
+ readonly method: "retrieve";
9658
+ readonly summary: "Retrieve a test run";
9659
+ readonly description: "Read one run's current state, result and counts, and ask for its failed executions inline with expand. Poll this after creating a run whose result was pending. A result is monotonic once it reaches a verdict — a failed run never becomes passed by a later report, so read the run rather than the last report to know where it ended.";
9660
+ readonly http: "GET";
9661
+ readonly path: "/devops/v1/test-runs/{id}";
9662
+ readonly streaming: "no";
9663
+ readonly pagination: false;
9664
+ readonly pathParams: readonly [{
9665
+ readonly name: "id";
9666
+ readonly sdkName: "id";
9667
+ readonly description: "The run identifier returned by a run list or create answer.";
9449
9668
  }];
9450
9669
  readonly query: readonly [{
9451
- readonly name: "part_number";
9452
- readonly type: "integer";
9670
+ readonly name: "expand";
9671
+ readonly type: "array";
9672
+ readonly itemType: "string";
9673
+ readonly enum: readonly ["failedExecutions"];
9453
9674
  readonly required: false;
9454
- readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9675
+ readonly description: "Repeatable field to expand inline. failedExecutions returns the non-passed executions with the run, which saves a second call when you only need to see what broke; omit it for the bare run.";
9676
+ }];
9677
+ }, {
9678
+ readonly resource: "devops.testRuns";
9679
+ readonly method: "cancel";
9680
+ readonly summary: "Cancel a test run";
9681
+ readonly description: "Stop a run that is still going. A reason is required and is recorded on the run, because a cancelled run is read later as evidence about why a commit was not verified. Cancelling a run that already reached a verdict is refused with RUN_ALREADY_FINISHED: its result is final and cancelling it would erase the verdict. Executions already recorded stay readable.";
9682
+ readonly http: "POST";
9683
+ readonly path: "/devops/v1/test-runs/{id}:cancel";
9684
+ readonly streaming: "no";
9685
+ readonly pagination: false;
9686
+ readonly pathParams: readonly [{
9687
+ readonly name: "id";
9688
+ readonly sdkName: "id";
9689
+ readonly description: "The run identifier returned by a run list or create answer.";
9455
9690
  }];
9691
+ readonly query: readonly [];
9456
9692
  readonly body: {
9457
9693
  readonly required: true;
9458
9694
  readonly fields: readonly [{
9459
- readonly name: "data";
9695
+ readonly name: "reason";
9460
9696
  readonly type: "string";
9461
9697
  readonly required: true;
9462
- readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
9698
+ readonly description: "Why the run is being cancelled; it is stored on the run and is what a later reader finds instead of a result.";
9463
9699
  }];
9464
9700
  };
9465
9701
  }, {
9466
- readonly resource: "knowledge.vectorStores";
9702
+ readonly resource: "devops.testRuns.executions";
9467
9703
  readonly method: "list";
9468
- readonly summary: "List knowledge bases";
9469
- readonly description: "Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.";
9704
+ readonly summary: "List a run's executions";
9705
+ readonly description: "List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.";
9470
9706
  readonly http: "GET";
9471
- readonly path: "/knowledge/v1/vector_stores";
9707
+ readonly path: "/devops/v1/test-runs/{run}/executions";
9472
9708
  readonly streaming: "no";
9473
9709
  readonly pagination: false;
9474
- readonly pathParams: readonly [];
9710
+ readonly pathParams: readonly [{
9711
+ readonly name: "run";
9712
+ readonly sdkName: "run";
9713
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9714
+ }];
9475
9715
  readonly query: readonly [{
9476
- readonly name: "status";
9716
+ readonly name: "pageSize";
9717
+ readonly type: "integer";
9718
+ readonly required: false;
9719
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9720
+ }, {
9721
+ readonly name: "pageToken";
9477
9722
  readonly type: "string";
9478
- readonly enum: readonly ["active", "deleting"];
9479
9723
  readonly required: false;
9480
- readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
9724
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9481
9725
  }, {
9482
- readonly name: "after";
9726
+ readonly name: "filter";
9483
9727
  readonly type: "string";
9484
9728
  readonly required: false;
9485
- readonly description: "Cursor ID from the previous page.";
9729
+ readonly description: "AIP-160 equality filter over one declared field, for example result=failed to read only a run's failures. Fields an execution list does not declare are refused with INVALID_ARGUMENT rather than ignored.";
9486
9730
  }, {
9487
- readonly name: "before";
9731
+ readonly name: "orderBy";
9488
9732
  readonly type: "string";
9489
9733
  readonly required: false;
9490
- readonly description: "Return items before this ID.";
9734
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9735
+ }];
9736
+ }, {
9737
+ readonly resource: "devops.testRuns.executions";
9738
+ readonly method: "retrieve";
9739
+ readonly summary: "Retrieve one case's execution in a run";
9740
+ readonly description: "Read one case's execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.";
9741
+ readonly http: "GET";
9742
+ readonly path: "/devops/v1/test-runs/{run}/executions/{case}";
9743
+ readonly streaming: "no";
9744
+ readonly pagination: false;
9745
+ readonly pathParams: readonly [{
9746
+ readonly name: "run";
9747
+ readonly sdkName: "run";
9748
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9749
+ }, {
9750
+ readonly name: "case";
9751
+ readonly sdkName: "case";
9752
+ readonly description: "The case to read inside that run, from the run's execution list or the project's case list.";
9753
+ }];
9754
+ readonly query: readonly [];
9755
+ }, {
9756
+ readonly resource: "devops.testSuites";
9757
+ readonly method: "retrieve";
9758
+ readonly summary: "Retrieve a test suite";
9759
+ readonly description: "Read one suite by the id a suite list returned, to learn its file, framework, size, purposes and how many cases it holds. Use it when a case's suite id needs a name for display, or to confirm which commit's catalog a suite came from. The id is opaque; it comes from the list, never from the file path.";
9760
+ readonly http: "GET";
9761
+ readonly path: "/devops/v1/test-suites/{id}";
9762
+ readonly streaming: "no";
9763
+ readonly pagination: false;
9764
+ readonly pathParams: readonly [{
9765
+ readonly name: "id";
9766
+ readonly sdkName: "id";
9767
+ readonly description: "The suite identifier returned by a suite list, not the file path it was discovered from.";
9768
+ }];
9769
+ readonly query: readonly [];
9770
+ }, {
9771
+ readonly resource: "file.files";
9772
+ readonly method: "list";
9773
+ readonly summary: "List files";
9774
+ readonly description: "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.";
9775
+ readonly http: "GET";
9776
+ readonly path: "/file/v1/files";
9777
+ readonly streaming: "no";
9778
+ readonly pagination: false;
9779
+ readonly pathParams: readonly [];
9780
+ readonly query: readonly [{
9781
+ readonly name: "purpose";
9782
+ readonly type: "string";
9783
+ readonly required: false;
9784
+ readonly description: "Only return files with the given purpose.";
9491
9785
  }, {
9492
9786
  readonly name: "limit";
9493
9787
  readonly type: "integer";
9494
9788
  readonly required: false;
9495
- readonly description: "Page size.";
9789
+ readonly description: "A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.\n";
9496
9790
  }, {
9497
9791
  readonly name: "order";
9498
9792
  readonly type: "string";
9499
9793
  readonly enum: readonly ["asc", "desc"];
9500
9794
  readonly required: false;
9501
- readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9795
+ readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
9796
+ }, {
9797
+ readonly name: "after";
9798
+ readonly type: "string";
9799
+ readonly required: false;
9800
+ readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9801
+ }, {
9802
+ readonly name: "scope_id";
9803
+ readonly type: "string";
9804
+ readonly required: false;
9805
+ readonly description: "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.";
9806
+ }, {
9807
+ readonly name: "before";
9808
+ readonly type: "string";
9809
+ readonly required: false;
9810
+ readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9502
9811
  }];
9503
9812
  }, {
9504
- readonly resource: "knowledge.vectorStores";
9813
+ readonly resource: "file.files";
9505
9814
  readonly method: "create";
9506
- readonly summary: "Create knowledge base";
9507
- readonly description: "Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {\"name\":\"Refund policies\"}.";
9815
+ readonly summary: "Upload file";
9816
+ readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.";
9508
9817
  readonly http: "POST";
9509
- readonly path: "/knowledge/v1/vector_stores";
9818
+ readonly path: "/file/v1/files";
9510
9819
  readonly streaming: "no";
9511
9820
  readonly pagination: false;
9821
+ readonly multipart: true;
9512
9822
  readonly pathParams: readonly [];
9513
9823
  readonly query: readonly [];
9514
9824
  readonly body: {
9515
9825
  readonly required: true;
9516
9826
  readonly fields: readonly [{
9517
- readonly name: "name";
9827
+ readonly name: "file";
9518
9828
  readonly type: "string";
9519
- readonly required: false;
9520
- readonly description: "Omitted name becomes an empty string; null is rejected.";
9521
- }, {
9522
- readonly name: "metadata";
9523
- readonly type: "object";
9524
- readonly required: false;
9525
- readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
9526
- }, {
9527
- readonly name: "expires_after";
9528
- readonly type: "object";
9529
- readonly required: false;
9530
- readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
9531
- }, {
9532
- readonly name: "file_ids";
9533
- readonly type: "array";
9534
- readonly itemType: "string";
9535
- readonly required: false;
9536
- readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
9537
- }, {
9538
- readonly name: "chunking_strategy";
9539
- readonly type: "object";
9540
- readonly required: false;
9541
- readonly description: "auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.";
9829
+ readonly required: true;
9830
+ readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.";
9542
9831
  }, {
9543
- readonly name: "description";
9832
+ readonly name: "purpose";
9544
9833
  readonly type: "string";
9545
- readonly required: false;
9546
- readonly description: "Accepted but not saved or returned; its type is not validated.";
9834
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9835
+ readonly required: true;
9836
+ readonly description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.";
9547
9837
  }, {
9548
- readonly name: "models";
9838
+ readonly name: "expires_after";
9549
9839
  readonly type: "object";
9550
9840
  readonly required: false;
9551
- readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9841
+ readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9552
9842
  }];
9553
9843
  };
9554
9844
  }, {
9555
- readonly resource: "knowledge.vectorStores";
9845
+ readonly resource: "file.files";
9556
9846
  readonly method: "delete";
9557
- readonly summary: "Delete knowledge base";
9558
- readonly description: "Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.";
9847
+ readonly summary: "Delete file";
9848
+ readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
9559
9849
  readonly http: "DELETE";
9560
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9850
+ readonly path: "/file/v1/files/{file_id}";
9561
9851
  readonly streaming: "no";
9562
9852
  readonly pagination: false;
9563
9853
  readonly pathParams: readonly [{
9564
- readonly name: "vector_store_id";
9565
- readonly sdkName: "vector_store_id";
9566
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9854
+ readonly name: "file_id";
9855
+ readonly sdkName: "file_id";
9856
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9567
9857
  }];
9568
9858
  readonly query: readonly [];
9569
9859
  }, {
9570
- readonly resource: "knowledge.vectorStores";
9860
+ readonly resource: "file.files";
9571
9861
  readonly method: "retrieve";
9572
- readonly summary: "Retrieve knowledge base";
9573
- readonly description: "Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.";
9862
+ readonly summary: "Retrieve file";
9863
+ readonly description: "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.";
9574
9864
  readonly http: "GET";
9575
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9865
+ readonly path: "/file/v1/files/{file_id}";
9576
9866
  readonly streaming: "no";
9577
9867
  readonly pagination: false;
9578
9868
  readonly pathParams: readonly [{
9579
- readonly name: "vector_store_id";
9580
- readonly sdkName: "vector_store_id";
9581
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9869
+ readonly name: "file_id";
9870
+ readonly sdkName: "file_id";
9871
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9582
9872
  }];
9583
- readonly query: readonly [{
9584
- readonly name: "expand";
9585
- readonly type: "array";
9586
- readonly itemType: "string";
9587
- readonly enum: readonly ["files"];
9588
- readonly required: false;
9589
- readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9590
- }, {
9591
- readonly name: "expand[]";
9592
- readonly type: "array";
9593
- readonly itemType: "string";
9594
- readonly enum: readonly ["files"];
9595
- readonly required: false;
9596
- readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9873
+ readonly query: readonly [];
9874
+ }, {
9875
+ readonly resource: "file.files";
9876
+ readonly method: "retrieveContent";
9877
+ readonly summary: "Retrieve file content";
9878
+ readonly description: "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.";
9879
+ readonly http: "GET";
9880
+ readonly path: "/file/v1/files/{file_id}/content";
9881
+ readonly streaming: "no";
9882
+ readonly pagination: false;
9883
+ readonly pathParams: readonly [{
9884
+ readonly name: "file_id";
9885
+ readonly sdkName: "file_id";
9886
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9597
9887
  }];
9888
+ readonly query: readonly [];
9598
9889
  }, {
9599
- readonly resource: "knowledge.vectorStores";
9600
- readonly method: "update";
9601
- readonly summary: "Update knowledge base";
9602
- readonly description: "Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {\"name\":\"Refund policies\"}.";
9890
+ readonly resource: "file.files.contentLinks";
9891
+ readonly method: "revoke";
9892
+ readonly summary: "Revoke a file content link";
9893
+ readonly description: "Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.";
9603
9894
  readonly http: "POST";
9604
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9895
+ readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9605
9896
  readonly streaming: "no";
9606
9897
  readonly pagination: false;
9607
9898
  readonly pathParams: readonly [{
9608
- readonly name: "vector_store_id";
9609
- readonly sdkName: "vector_store_id";
9610
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9899
+ readonly name: "file_id";
9900
+ readonly sdkName: "file_id";
9901
+ readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
9611
9902
  }];
9612
9903
  readonly query: readonly [];
9613
9904
  readonly body: {
9614
9905
  readonly required: true;
9615
9906
  readonly fields: readonly [{
9616
- readonly name: "name";
9907
+ readonly name: "token";
9617
9908
  readonly type: "string";
9618
- readonly required: false;
9619
- readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
9620
- }, {
9621
- readonly name: "metadata";
9622
- readonly type: "object";
9623
- readonly required: false;
9624
- readonly description: "Replaces all metadata; null clears it to an empty object.";
9625
- }, {
9626
- readonly name: "expires_after";
9627
- readonly type: "object";
9628
- readonly required: false;
9629
- readonly description: "null removes automatic expiry.";
9630
- }, {
9631
- readonly name: "models";
9632
- readonly type: "object";
9633
- readonly required: false;
9634
- readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9909
+ readonly required: true;
9910
+ readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
9635
9911
  }];
9636
9912
  };
9637
9913
  }, {
9638
- readonly resource: "knowledge.vectorStores.events";
9639
- readonly method: "list";
9640
- readonly summary: "List events";
9641
- readonly description: "Reads events for this knowledge base in increasing sequence order, including while soft-deleted. Pass next_seq as after_seq to continue; null next_seq marks the current end. Example: ?after_seq=0&limit=20.";
9642
- readonly http: "GET";
9643
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
9914
+ readonly resource: "file.files.contentUrl";
9915
+ readonly method: "create";
9916
+ readonly summary: "Create a download URL";
9917
+ readonly description: "Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {\"ttl_seconds\":3600}.";
9918
+ readonly http: "POST";
9919
+ readonly path: "/file/v1/files/{file_id}/content_url";
9644
9920
  readonly streaming: "no";
9645
9921
  readonly pagination: false;
9646
9922
  readonly pathParams: readonly [{
9647
- readonly name: "vector_store_id";
9648
- readonly sdkName: "vector_store_id";
9649
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9923
+ readonly name: "file_id";
9924
+ readonly sdkName: "file_id";
9925
+ readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
9650
9926
  }];
9651
- readonly query: readonly [{
9652
- readonly name: "after_seq";
9653
- readonly type: "integer";
9654
- readonly required: false;
9655
- readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
9656
- }, {
9657
- readonly name: "limit";
9658
- readonly type: "integer";
9927
+ readonly query: readonly [];
9928
+ readonly body: {
9659
9929
  readonly required: false;
9660
- readonly description: "Page size.";
9661
- }];
9930
+ readonly fields: readonly [{
9931
+ readonly name: "ttl_seconds";
9932
+ readonly type: "integer";
9933
+ readonly required: false;
9934
+ readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
9935
+ }];
9936
+ };
9662
9937
  }, {
9663
- readonly resource: "knowledge.vectorStores.fileBatches";
9938
+ readonly resource: "file.uploads";
9664
9939
  readonly method: "create";
9665
- readonly summary: "Create file batch";
9666
- readonly description: "Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.";
9940
+ readonly summary: "Create an upload";
9941
+ 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.";
9667
9942
  readonly http: "POST";
9668
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
9943
+ readonly path: "/file/v1/uploads";
9669
9944
  readonly streaming: "no";
9670
9945
  readonly pagination: false;
9671
- readonly pathParams: readonly [{
9672
- readonly name: "vector_store_id";
9673
- readonly sdkName: "vector_store_id";
9674
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9675
- }];
9946
+ readonly pathParams: readonly [];
9676
9947
  readonly query: readonly [];
9677
9948
  readonly body: {
9678
9949
  readonly required: true;
9679
- readonly fields: readonly [];
9950
+ readonly fields: readonly [{
9951
+ readonly name: "bytes";
9952
+ readonly type: "integer";
9953
+ readonly required: true;
9954
+ readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
9955
+ }, {
9956
+ readonly name: "filename";
9957
+ readonly type: "string";
9958
+ readonly required: true;
9959
+ readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9960
+ }, {
9961
+ readonly name: "mime_type";
9962
+ readonly type: "string";
9963
+ readonly required: true;
9964
+ readonly description: "Declared MIME type; validated against the assembled content.";
9965
+ }, {
9966
+ readonly name: "purpose";
9967
+ readonly type: "string";
9968
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9969
+ readonly required: true;
9970
+ readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
9971
+ }, {
9972
+ readonly name: "expires_after";
9973
+ readonly type: "object";
9974
+ readonly required: false;
9975
+ readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9976
+ }, {
9977
+ readonly name: "part_size";
9978
+ readonly type: "integer";
9979
+ readonly required: false;
9980
+ readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
9981
+ }];
9680
9982
  };
9681
9983
  }, {
9682
- readonly resource: "knowledge.vectorStores.fileBatches";
9683
- readonly method: "retrieve";
9684
- readonly summary: "Retrieve file batch";
9685
- readonly description: "Retrieves a batch created in this knowledge base, including current status and file counts. Use the batch id returned by batch creation to monitor ingestion.";
9686
- readonly http: "GET";
9687
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
9688
- readonly streaming: "no";
9689
- readonly pagination: false;
9690
- readonly pathParams: readonly [{
9691
- readonly name: "vector_store_id";
9692
- readonly sdkName: "vector_store_id";
9693
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9694
- }, {
9695
- readonly name: "batch_id";
9696
- readonly sdkName: "batch_id";
9697
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9698
- }];
9699
- readonly query: readonly [];
9700
- }, {
9701
- readonly resource: "knowledge.vectorStores.fileBatches";
9702
- readonly method: "cancel";
9703
- readonly summary: "Cancel file batch";
9704
- readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
9984
+ readonly resource: "file.uploads";
9985
+ readonly method: "createSigned";
9986
+ readonly summary: "Create a one-time upload URL";
9987
+ 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\"}.";
9705
9988
  readonly http: "POST";
9706
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
9989
+ readonly path: "/file/v1/uploads/signed";
9707
9990
  readonly streaming: "no";
9708
9991
  readonly pagination: false;
9709
- readonly pathParams: readonly [{
9710
- readonly name: "vector_store_id";
9711
- readonly sdkName: "vector_store_id";
9712
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9713
- }, {
9714
- readonly name: "batch_id";
9715
- readonly sdkName: "batch_id";
9716
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9717
- }];
9992
+ readonly pathParams: readonly [];
9718
9993
  readonly query: readonly [];
9994
+ readonly body: {
9995
+ readonly required: true;
9996
+ readonly fields: readonly [{
9997
+ readonly name: "filename";
9998
+ readonly type: "string";
9999
+ readonly required: true;
10000
+ readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
10001
+ }, {
10002
+ readonly name: "bytes";
10003
+ readonly type: "integer";
10004
+ readonly required: true;
10005
+ 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.";
10006
+ }, {
10007
+ readonly name: "content_type";
10008
+ readonly type: "string";
10009
+ readonly required: true;
10010
+ readonly description: "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes.";
10011
+ }, {
10012
+ readonly name: "purpose";
10013
+ readonly type: "string";
10014
+ readonly enum: readonly ["user_data", "assistants", "vision"];
10015
+ readonly required: false;
10016
+ readonly description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
10017
+ }, {
10018
+ readonly name: "expires_in";
10019
+ readonly type: "integer";
10020
+ readonly required: false;
10021
+ 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.";
10022
+ }, {
10023
+ readonly name: "part_size";
10024
+ readonly type: "integer";
10025
+ readonly required: false;
10026
+ 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.";
10027
+ }];
10028
+ };
9719
10029
  }, {
9720
- readonly resource: "knowledge.vectorStores.fileBatches.files";
9721
- readonly method: "list";
9722
- readonly summary: "List batch files";
9723
- readonly description: "Lists files still attached from the identified batch, newest attachment first by default. Use the batch creation id and ?filter=failed to inspect failures; last_id is the next after cursor.";
10030
+ readonly resource: "file.uploads";
10031
+ readonly method: "retrieve";
10032
+ readonly summary: "Retrieve an upload";
10033
+ 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.";
9724
10034
  readonly http: "GET";
9725
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
10035
+ readonly path: "/file/v1/uploads/{upload_id}";
9726
10036
  readonly streaming: "no";
9727
10037
  readonly pagination: false;
9728
10038
  readonly pathParams: readonly [{
9729
- readonly name: "vector_store_id";
9730
- readonly sdkName: "vector_store_id";
9731
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9732
- }, {
9733
- readonly name: "batch_id";
9734
- readonly sdkName: "batch_id";
9735
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10039
+ readonly name: "upload_id";
10040
+ readonly sdkName: "upload_id";
10041
+ readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
10042
+ }];
10043
+ readonly query: readonly [];
10044
+ }, {
10045
+ readonly resource: "file.uploads";
10046
+ readonly method: "cancel";
10047
+ readonly summary: "Cancel an upload";
10048
+ readonly description: "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.";
10049
+ readonly http: "POST";
10050
+ readonly path: "/file/v1/uploads/{upload_id}/cancel";
10051
+ readonly streaming: "no";
10052
+ readonly pagination: false;
10053
+ readonly pathParams: readonly [{
10054
+ readonly name: "upload_id";
10055
+ readonly sdkName: "upload_id";
10056
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
10057
+ }];
10058
+ readonly query: readonly [];
10059
+ }, {
10060
+ readonly resource: "file.uploads";
10061
+ readonly method: "complete";
10062
+ readonly summary: "Complete an upload";
10063
+ 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.";
10064
+ readonly http: "POST";
10065
+ readonly path: "/file/v1/uploads/{upload_id}/complete";
10066
+ readonly streaming: "no";
10067
+ readonly pagination: false;
10068
+ readonly pathParams: readonly [{
10069
+ readonly name: "upload_id";
10070
+ readonly sdkName: "upload_id";
10071
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
10072
+ }];
10073
+ readonly query: readonly [];
10074
+ readonly body: {
10075
+ readonly required: true;
10076
+ readonly fields: readonly [{
10077
+ readonly name: "part_ids";
10078
+ readonly type: "array";
10079
+ readonly itemType: "string";
10080
+ readonly required: true;
10081
+ readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
10082
+ }, {
10083
+ readonly name: "md5";
10084
+ readonly type: "string";
10085
+ readonly required: false;
10086
+ readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
10087
+ }];
10088
+ };
10089
+ }, {
10090
+ readonly resource: "file.uploads.parts";
10091
+ readonly method: "create";
10092
+ readonly summary: "Add an upload part";
10093
+ 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.";
10094
+ readonly http: "POST";
10095
+ readonly path: "/file/v1/uploads/{upload_id}/parts";
10096
+ readonly streaming: "no";
10097
+ readonly pagination: false;
10098
+ readonly multipart: true;
10099
+ readonly pathParams: readonly [{
10100
+ readonly name: "upload_id";
10101
+ readonly sdkName: "upload_id";
10102
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
9736
10103
  }];
9737
10104
  readonly query: readonly [{
9738
- readonly name: "after";
9739
- readonly type: "string";
9740
- readonly required: false;
9741
- readonly description: "Cursor ID from the previous page.";
9742
- }, {
9743
- readonly name: "before";
9744
- readonly type: "string";
9745
- readonly required: false;
9746
- readonly description: "Return items before this ID.";
9747
- }, {
9748
- readonly name: "limit";
10105
+ readonly name: "part_number";
9749
10106
  readonly type: "integer";
9750
10107
  readonly required: false;
9751
- readonly description: "Page size.";
9752
- }, {
9753
- readonly name: "order";
9754
- readonly type: "string";
9755
- readonly enum: readonly ["asc", "desc"];
9756
- readonly required: false;
9757
- readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9758
- }, {
9759
- readonly name: "filter";
9760
- readonly type: "string";
9761
- readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
9762
- readonly required: false;
9763
- readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
10108
+ readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9764
10109
  }];
10110
+ readonly body: {
10111
+ readonly required: true;
10112
+ readonly fields: readonly [{
10113
+ readonly name: "data";
10114
+ readonly type: "string";
10115
+ readonly required: true;
10116
+ readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
10117
+ }];
10118
+ };
9765
10119
  }, {
9766
- readonly resource: "knowledge.vectorStores.files";
10120
+ readonly resource: "knowledge.vectorStores";
9767
10121
  readonly method: "list";
9768
- readonly summary: "List files";
9769
- readonly description: "Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.";
10122
+ readonly summary: "List knowledge bases";
10123
+ readonly description: "Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.";
9770
10124
  readonly http: "GET";
9771
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10125
+ readonly path: "/knowledge/v1/vector_stores";
9772
10126
  readonly streaming: "no";
9773
10127
  readonly pagination: false;
9774
- readonly pathParams: readonly [{
9775
- readonly name: "vector_store_id";
9776
- readonly sdkName: "vector_store_id";
9777
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9778
- }];
10128
+ readonly pathParams: readonly [];
9779
10129
  readonly query: readonly [{
10130
+ readonly name: "status";
10131
+ readonly type: "string";
10132
+ readonly enum: readonly ["active", "deleting"];
10133
+ readonly required: false;
10134
+ readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
10135
+ }, {
9780
10136
  readonly name: "after";
9781
10137
  readonly type: "string";
9782
10138
  readonly required: false;
@@ -9797,139 +10153,192 @@ export declare const operations: readonly [{
9797
10153
  readonly enum: readonly ["asc", "desc"];
9798
10154
  readonly required: false;
9799
10155
  readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9800
- }, {
9801
- readonly name: "filter";
9802
- readonly type: "string";
9803
- readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
9804
- readonly required: false;
9805
- readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
9806
10156
  }];
9807
10157
  }, {
9808
- readonly resource: "knowledge.vectorStores.files";
10158
+ readonly resource: "knowledge.vectorStores";
9809
10159
  readonly method: "create";
9810
- readonly summary: "Add file";
9811
- readonly description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.";
10160
+ readonly summary: "Create knowledge base";
10161
+ readonly description: "Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {\"name\":\"Refund policies\"}.";
9812
10162
  readonly http: "POST";
9813
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10163
+ readonly path: "/knowledge/v1/vector_stores";
9814
10164
  readonly streaming: "no";
9815
10165
  readonly pagination: false;
9816
- readonly pathParams: readonly [{
9817
- readonly name: "vector_store_id";
9818
- readonly sdkName: "vector_store_id";
9819
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9820
- }];
10166
+ readonly pathParams: readonly [];
9821
10167
  readonly query: readonly [];
9822
10168
  readonly body: {
9823
10169
  readonly required: true;
9824
10170
  readonly fields: readonly [{
9825
- readonly name: "file_id";
10171
+ readonly name: "name";
9826
10172
  readonly type: "string";
9827
- readonly required: true;
9828
- readonly description: "Existing source File ID returned by file upload; the file must be visible to the caller.";
10173
+ readonly required: false;
10174
+ readonly description: "Omitted name becomes an empty string; null is rejected.";
9829
10175
  }, {
9830
- readonly name: "attributes";
10176
+ readonly name: "metadata";
9831
10177
  readonly type: "object";
9832
10178
  readonly required: false;
9833
- readonly description: "Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.";
10179
+ readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
10180
+ }, {
10181
+ readonly name: "expires_after";
10182
+ readonly type: "object";
10183
+ readonly required: false;
10184
+ readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
10185
+ }, {
10186
+ readonly name: "file_ids";
10187
+ readonly type: "array";
10188
+ readonly itemType: "string";
10189
+ readonly required: false;
10190
+ readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
9834
10191
  }, {
9835
10192
  readonly name: "chunking_strategy";
9836
10193
  readonly type: "object";
9837
10194
  readonly required: false;
9838
- readonly description: "auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.";
10195
+ readonly description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.";
10196
+ }, {
10197
+ readonly name: "description";
10198
+ readonly type: "string";
10199
+ readonly required: false;
10200
+ readonly description: "Accepted but not saved or returned; its type is not validated.";
10201
+ }, {
10202
+ readonly name: "models";
10203
+ readonly type: "object";
10204
+ readonly required: false;
10205
+ readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9839
10206
  }];
9840
10207
  };
9841
10208
  }, {
9842
- readonly resource: "knowledge.vectorStores.files";
10209
+ readonly resource: "knowledge.vectorStores";
9843
10210
  readonly method: "delete";
9844
- readonly summary: "Remove file";
9845
- readonly description: "Removes the file from search immediately; does not delete the original File.";
10211
+ readonly summary: "Delete knowledge base";
10212
+ readonly description: "Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.";
9846
10213
  readonly http: "DELETE";
9847
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10214
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9848
10215
  readonly streaming: "no";
9849
10216
  readonly pagination: false;
9850
10217
  readonly pathParams: readonly [{
9851
10218
  readonly name: "vector_store_id";
9852
10219
  readonly sdkName: "vector_store_id";
9853
10220
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9854
- }, {
9855
- readonly name: "file_id";
9856
- readonly sdkName: "file_id";
9857
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
9858
10221
  }];
9859
10222
  readonly query: readonly [];
9860
10223
  }, {
9861
- readonly resource: "knowledge.vectorStores.files";
10224
+ readonly resource: "knowledge.vectorStores";
9862
10225
  readonly method: "retrieve";
9863
- readonly summary: "Retrieve file";
9864
- readonly description: "Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.";
10226
+ readonly summary: "Retrieve knowledge base";
10227
+ readonly description: "Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.";
9865
10228
  readonly http: "GET";
9866
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10229
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9867
10230
  readonly streaming: "no";
9868
10231
  readonly pagination: false;
9869
10232
  readonly pathParams: readonly [{
9870
10233
  readonly name: "vector_store_id";
9871
10234
  readonly sdkName: "vector_store_id";
9872
10235
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10236
+ }];
10237
+ readonly query: readonly [{
10238
+ readonly name: "expand";
10239
+ readonly type: "array";
10240
+ readonly itemType: "string";
10241
+ readonly enum: readonly ["files"];
10242
+ readonly required: false;
10243
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9873
10244
  }, {
9874
- readonly name: "file_id";
9875
- readonly sdkName: "file_id";
9876
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10245
+ readonly name: "expand[]";
10246
+ readonly type: "array";
10247
+ readonly itemType: "string";
10248
+ readonly enum: readonly ["files"];
10249
+ readonly required: false;
10250
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9877
10251
  }];
9878
- readonly query: readonly [];
9879
10252
  }, {
9880
- readonly resource: "knowledge.vectorStores.files";
10253
+ readonly resource: "knowledge.vectorStores";
9881
10254
  readonly method: "update";
9882
- readonly summary: "Update file attributes";
9883
- readonly description: "Replaces search-filter attributes of an existing attachment without reingesting its content. Use an attached file id. Example body: {\"attributes\":{\"category\":\"refund\"}}; null clears the attributes.";
9884
- readonly http: "POST";
9885
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10255
+ readonly summary: "Update knowledge base";
10256
+ readonly description: "Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {\"name\":\"Refund policies\"}.";
10257
+ readonly http: "POST";
10258
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9886
10259
  readonly streaming: "no";
9887
10260
  readonly pagination: false;
9888
10261
  readonly pathParams: readonly [{
9889
10262
  readonly name: "vector_store_id";
9890
10263
  readonly sdkName: "vector_store_id";
9891
10264
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9892
- }, {
9893
- readonly name: "file_id";
9894
- readonly sdkName: "file_id";
9895
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
9896
10265
  }];
9897
10266
  readonly query: readonly [];
9898
10267
  readonly body: {
9899
10268
  readonly required: true;
9900
10269
  readonly fields: readonly [{
9901
- readonly name: "attributes";
10270
+ readonly name: "name";
10271
+ readonly type: "string";
10272
+ readonly required: false;
10273
+ readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
10274
+ }, {
10275
+ readonly name: "metadata";
9902
10276
  readonly type: "object";
9903
10277
  readonly required: false;
9904
- readonly description: "Replaces all search-filter attributes; null clears them.";
10278
+ readonly description: "Replaces all metadata; null clears it to an empty object.";
10279
+ }, {
10280
+ readonly name: "expires_after";
10281
+ readonly type: "object";
10282
+ readonly required: false;
10283
+ readonly description: "null removes automatic expiry.";
10284
+ }, {
10285
+ readonly name: "models";
10286
+ readonly type: "object";
10287
+ readonly required: false;
10288
+ readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9905
10289
  }];
9906
10290
  };
9907
10291
  }, {
9908
- readonly resource: "knowledge.vectorStores.files";
9909
- readonly method: "retrieveContent";
9910
- readonly summary: "Read extracted content";
9911
- readonly description: "Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.";
10292
+ readonly resource: "knowledge.vectorStores.events";
10293
+ readonly method: "list";
10294
+ readonly summary: "List events";
10295
+ readonly description: "Reads events for this knowledge base in increasing sequence order, including while soft-deleted. Pass next_seq as after_seq to continue; null next_seq marks the current end. Example: ?after_seq=0&limit=20.";
9912
10296
  readonly http: "GET";
9913
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10297
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
9914
10298
  readonly streaming: "no";
9915
10299
  readonly pagination: false;
9916
10300
  readonly pathParams: readonly [{
9917
10301
  readonly name: "vector_store_id";
9918
10302
  readonly sdkName: "vector_store_id";
9919
10303
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10304
+ }];
10305
+ readonly query: readonly [{
10306
+ readonly name: "after_seq";
10307
+ readonly type: "integer";
10308
+ readonly required: false;
10309
+ readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
9920
10310
  }, {
9921
- readonly name: "file_id";
9922
- readonly sdkName: "file_id";
9923
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10311
+ readonly name: "limit";
10312
+ readonly type: "integer";
10313
+ readonly required: false;
10314
+ readonly description: "Page size.";
9924
10315
  }];
9925
- readonly query: readonly [];
9926
10316
  }, {
9927
- readonly resource: "knowledge.vectorStores.files.retry";
10317
+ readonly resource: "knowledge.vectorStores.fileBatches";
9928
10318
  readonly method: "create";
9929
- readonly summary: "Retry failed file";
9930
- readonly description: "Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.";
10319
+ readonly summary: "Create file batch";
10320
+ readonly description: "Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.";
9931
10321
  readonly http: "POST";
9932
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10322
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
10323
+ readonly streaming: "no";
10324
+ readonly pagination: false;
10325
+ readonly pathParams: readonly [{
10326
+ readonly name: "vector_store_id";
10327
+ readonly sdkName: "vector_store_id";
10328
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10329
+ }];
10330
+ readonly query: readonly [];
10331
+ readonly body: {
10332
+ readonly required: true;
10333
+ readonly fields: readonly [];
10334
+ };
10335
+ }, {
10336
+ readonly resource: "knowledge.vectorStores.fileBatches";
10337
+ readonly method: "retrieve";
10338
+ readonly summary: "Retrieve file batch";
10339
+ readonly description: "Retrieves a batch created in this knowledge base, including current status and file counts. Use the batch id returned by batch creation to monitor ingestion.";
10340
+ readonly http: "GET";
10341
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
9933
10342
  readonly streaming: "no";
9934
10343
  readonly pagination: false;
9935
10344
  readonly pathParams: readonly [{
@@ -9937,18 +10346,37 @@ export declare const operations: readonly [{
9937
10346
  readonly sdkName: "vector_store_id";
9938
10347
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9939
10348
  }, {
9940
- readonly name: "file_id";
9941
- readonly sdkName: "file_id";
9942
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10349
+ readonly name: "batch_id";
10350
+ readonly sdkName: "batch_id";
10351
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9943
10352
  }];
9944
10353
  readonly query: readonly [];
9945
10354
  }, {
9946
- readonly resource: "knowledge.vectorStores.files.segments";
10355
+ readonly resource: "knowledge.vectorStores.fileBatches";
10356
+ readonly method: "cancel";
10357
+ readonly summary: "Cancel file batch";
10358
+ readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
10359
+ readonly http: "POST";
10360
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
10361
+ readonly streaming: "no";
10362
+ readonly pagination: false;
10363
+ readonly pathParams: readonly [{
10364
+ readonly name: "vector_store_id";
10365
+ readonly sdkName: "vector_store_id";
10366
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10367
+ }, {
10368
+ readonly name: "batch_id";
10369
+ readonly sdkName: "batch_id";
10370
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10371
+ }];
10372
+ readonly query: readonly [];
10373
+ }, {
10374
+ readonly resource: "knowledge.vectorStores.fileBatches.files";
9947
10375
  readonly method: "list";
9948
- readonly summary: "List file segments";
9949
- readonly description: "Lists the stored chunks of an attached file, ordered by increasing segment index by default. Use the attachment id and last_id as after to continue; returned chunk ids can be retrieved individually.";
10376
+ readonly summary: "List batch files";
10377
+ readonly description: "Lists files still attached from the identified batch, newest attachment first by default. Use the batch creation id and ?filter=failed to inspect failures; last_id is the next after cursor.";
9950
10378
  readonly http: "GET";
9951
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10379
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
9952
10380
  readonly streaming: "no";
9953
10381
  readonly pagination: false;
9954
10382
  readonly pathParams: readonly [{
@@ -9956,9 +10384,9 @@ export declare const operations: readonly [{
9956
10384
  readonly sdkName: "vector_store_id";
9957
10385
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9958
10386
  }, {
9959
- readonly name: "file_id";
9960
- readonly sdkName: "file_id";
9961
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10387
+ readonly name: "batch_id";
10388
+ readonly sdkName: "batch_id";
10389
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9962
10390
  }];
9963
10391
  readonly query: readonly [{
9964
10392
  readonly name: "after";
@@ -9981,14 +10409,20 @@ export declare const operations: readonly [{
9981
10409
  readonly enum: readonly ["asc", "desc"];
9982
10410
  readonly required: false;
9983
10411
  readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10412
+ }, {
10413
+ readonly name: "filter";
10414
+ readonly type: "string";
10415
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10416
+ readonly required: false;
10417
+ readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
9984
10418
  }];
9985
10419
  }, {
9986
- readonly resource: "knowledge.vectorStores.purge";
9987
- readonly method: "create";
9988
- readonly summary: "Permanently purge knowledge base";
9989
- readonly description: "Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.";
9990
- readonly http: "POST";
9991
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/purge";
10420
+ readonly resource: "knowledge.vectorStores.files";
10421
+ readonly method: "list";
10422
+ readonly summary: "List files";
10423
+ readonly description: "Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.";
10424
+ readonly http: "GET";
10425
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
9992
10426
  readonly streaming: "no";
9993
10427
  readonly pagination: false;
9994
10428
  readonly pathParams: readonly [{
@@ -9996,29 +10430,41 @@ export declare const operations: readonly [{
9996
10430
  readonly sdkName: "vector_store_id";
9997
10431
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9998
10432
  }];
9999
- readonly query: readonly [];
10000
- }, {
10001
- readonly resource: "knowledge.vectorStores";
10002
- readonly method: "restore";
10003
- readonly summary: "Restore knowledge base";
10004
- readonly description: "Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.";
10005
- readonly http: "POST";
10006
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/restore";
10007
- readonly streaming: "no";
10008
- readonly pagination: false;
10009
- readonly pathParams: readonly [{
10010
- readonly name: "vector_store_id";
10011
- readonly sdkName: "vector_store_id";
10012
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10433
+ readonly query: readonly [{
10434
+ readonly name: "after";
10435
+ readonly type: "string";
10436
+ readonly required: false;
10437
+ readonly description: "Cursor ID from the previous page.";
10438
+ }, {
10439
+ readonly name: "before";
10440
+ readonly type: "string";
10441
+ readonly required: false;
10442
+ readonly description: "Return items before this ID.";
10443
+ }, {
10444
+ readonly name: "limit";
10445
+ readonly type: "integer";
10446
+ readonly required: false;
10447
+ readonly description: "Page size.";
10448
+ }, {
10449
+ readonly name: "order";
10450
+ readonly type: "string";
10451
+ readonly enum: readonly ["asc", "desc"];
10452
+ readonly required: false;
10453
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10454
+ }, {
10455
+ readonly name: "filter";
10456
+ readonly type: "string";
10457
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10458
+ readonly required: false;
10459
+ readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
10013
10460
  }];
10014
- readonly query: readonly [];
10015
10461
  }, {
10016
- readonly resource: "knowledge.vectorStores.search";
10462
+ readonly resource: "knowledge.vectorStores.files";
10017
10463
  readonly method: "create";
10018
- readonly summary: "Search knowledge base";
10019
- readonly description: "Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {\"embedding_weight\":0,\"text_weight\":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.";
10464
+ readonly summary: "Add file";
10465
+ readonly description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.";
10020
10466
  readonly http: "POST";
10021
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10467
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10022
10468
  readonly streaming: "no";
10023
10469
  readonly pagination: false;
10024
10470
  readonly pathParams: readonly [{
@@ -10030,49 +10476,29 @@ export declare const operations: readonly [{
10030
10476
  readonly body: {
10031
10477
  readonly required: true;
10032
10478
  readonly fields: readonly [{
10033
- readonly name: "query";
10034
- readonly type: "object";
10035
- readonly required: true;
10036
- readonly description: "Nonblank text. Multiple queries are joined with newlines for one search.";
10037
- }, {
10038
- readonly name: "filters";
10039
- readonly type: "object";
10040
- readonly required: false;
10041
- readonly description: "Type-strict file attribute filters. At most 20 nested levels below the root.";
10042
- }, {
10043
- readonly name: "max_num_results";
10044
- readonly type: "integer";
10045
- readonly required: false;
10046
- readonly description: "Maximum chunks, not distinct files.";
10047
- }, {
10048
- readonly name: "rewrite_query";
10049
- readonly type: "boolean";
10050
- readonly required: false;
10051
- readonly description: "When true, the store's query_rewrite model first rewrites each query into a concise search query; retrieval uses the rewrite and search_query returns it. Each rewrite is one small model call billed by model usage. If a rewrite fails, times out (5 s) or is empty, that query falls back to the original text and the search still succeeds. Omitted or false makes no model call.";
10052
- }, {
10053
- readonly name: "next_page";
10479
+ readonly name: "file_id";
10054
10480
  readonly type: "string";
10055
- readonly required: false;
10056
- readonly description: "Unlike OpenAI vector stores, search has no next page; supplying this cursor has no effect. Narrow the query or filters to inspect other matches.";
10481
+ readonly required: true;
10482
+ readonly description: "Existing source File ID returned by file upload; the file must be visible to the caller.";
10057
10483
  }, {
10058
- readonly name: "ranking_options";
10484
+ readonly name: "attributes";
10059
10485
  readonly type: "object";
10060
10486
  readonly required: false;
10061
- readonly description: "Controls result ranking and the minimum score required for inclusion.";
10487
+ readonly description: "Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.";
10062
10488
  }, {
10063
- readonly name: "praxis";
10489
+ readonly name: "chunking_strategy";
10064
10490
  readonly type: "object";
10065
10491
  readonly required: false;
10066
- readonly description: "Set explain=true to include score and term explanations.";
10492
+ readonly description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.";
10067
10493
  }];
10068
10494
  };
10069
10495
  }, {
10070
- readonly resource: "knowledge.vectorStores.segments";
10071
- readonly method: "retrieve";
10072
- readonly summary: "Retrieve segment";
10073
- readonly description: "Retrieves one chunk and its term statistics. Take chunk_id from segment listing or native search content; the chunk must belong to this knowledge base.";
10074
- readonly http: "GET";
10075
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}";
10496
+ readonly resource: "knowledge.vectorStores.files";
10497
+ readonly method: "delete";
10498
+ readonly summary: "Remove file";
10499
+ readonly description: "Removes the file from search immediately; does not delete the original File.";
10500
+ readonly http: "DELETE";
10501
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10076
10502
  readonly streaming: "no";
10077
10503
  readonly pagination: false;
10078
10504
  readonly pathParams: readonly [{
@@ -10080,30 +10506,269 @@ export declare const operations: readonly [{
10080
10506
  readonly sdkName: "vector_store_id";
10081
10507
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10082
10508
  }, {
10083
- readonly name: "chunk_id";
10084
- readonly sdkName: "chunk_id";
10085
- readonly description: "Chunk ID returned by segment listing or native search content.";
10509
+ readonly name: "file_id";
10510
+ readonly sdkName: "file_id";
10511
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10086
10512
  }];
10087
10513
  readonly query: readonly [];
10088
10514
  }, {
10089
- readonly resource: "media.libraries";
10090
- readonly method: "list";
10091
- readonly summary: "List libraries";
10092
- readonly description: "List libraries owned by the caller, newest first. By default, deleting and deleted libraries are excluded; use status=deleting to find libraries awaiting purge. All supplied label pairs must match.";
10515
+ readonly resource: "knowledge.vectorStores.files";
10516
+ readonly method: "retrieve";
10517
+ readonly summary: "Retrieve file";
10518
+ readonly description: "Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.";
10093
10519
  readonly http: "GET";
10094
- readonly path: "/media/v1/libraries";
10520
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10095
10521
  readonly streaming: "no";
10096
- readonly pagination: true;
10097
- readonly pathParams: readonly [];
10098
- readonly query: readonly [{
10099
- readonly name: "cursor";
10100
- readonly type: "string";
10101
- readonly required: false;
10102
- readonly description: "Cursor from the previous next_cursor.";
10103
- }, {
10104
- readonly name: "limit";
10105
- readonly type: "integer";
10106
- readonly required: false;
10522
+ readonly pagination: false;
10523
+ readonly pathParams: readonly [{
10524
+ readonly name: "vector_store_id";
10525
+ readonly sdkName: "vector_store_id";
10526
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10527
+ }, {
10528
+ readonly name: "file_id";
10529
+ readonly sdkName: "file_id";
10530
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10531
+ }];
10532
+ readonly query: readonly [];
10533
+ }, {
10534
+ readonly resource: "knowledge.vectorStores.files";
10535
+ readonly method: "update";
10536
+ readonly summary: "Update file attributes";
10537
+ readonly description: "Replaces search-filter attributes of an existing attachment without reingesting its content. Use an attached file id. Example body: {\"attributes\":{\"category\":\"refund\"}}; null clears the attributes.";
10538
+ readonly http: "POST";
10539
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10540
+ readonly streaming: "no";
10541
+ readonly pagination: false;
10542
+ readonly pathParams: readonly [{
10543
+ readonly name: "vector_store_id";
10544
+ readonly sdkName: "vector_store_id";
10545
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10546
+ }, {
10547
+ readonly name: "file_id";
10548
+ readonly sdkName: "file_id";
10549
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10550
+ }];
10551
+ readonly query: readonly [];
10552
+ readonly body: {
10553
+ readonly required: true;
10554
+ readonly fields: readonly [{
10555
+ readonly name: "attributes";
10556
+ readonly type: "object";
10557
+ readonly required: false;
10558
+ readonly description: "Replaces all search-filter attributes; null clears them.";
10559
+ }];
10560
+ };
10561
+ }, {
10562
+ readonly resource: "knowledge.vectorStores.files";
10563
+ readonly method: "retrieveContent";
10564
+ readonly summary: "Read extracted content";
10565
+ readonly description: "Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.";
10566
+ readonly http: "GET";
10567
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10568
+ readonly streaming: "no";
10569
+ readonly pagination: false;
10570
+ readonly pathParams: readonly [{
10571
+ readonly name: "vector_store_id";
10572
+ readonly sdkName: "vector_store_id";
10573
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10574
+ }, {
10575
+ readonly name: "file_id";
10576
+ readonly sdkName: "file_id";
10577
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10578
+ }];
10579
+ readonly query: readonly [];
10580
+ }, {
10581
+ readonly resource: "knowledge.vectorStores.files.retry";
10582
+ readonly method: "create";
10583
+ readonly summary: "Retry failed file";
10584
+ readonly description: "Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.";
10585
+ readonly http: "POST";
10586
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10587
+ readonly streaming: "no";
10588
+ readonly pagination: false;
10589
+ readonly pathParams: readonly [{
10590
+ readonly name: "vector_store_id";
10591
+ readonly sdkName: "vector_store_id";
10592
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10593
+ }, {
10594
+ readonly name: "file_id";
10595
+ readonly sdkName: "file_id";
10596
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10597
+ }];
10598
+ readonly query: readonly [];
10599
+ }, {
10600
+ readonly resource: "knowledge.vectorStores.files.segments";
10601
+ readonly method: "list";
10602
+ readonly summary: "List file segments";
10603
+ readonly description: "Lists the stored chunks of an attached file, ordered by increasing segment index by default. Use the attachment id and last_id as after to continue; returned chunk ids can be retrieved individually.";
10604
+ readonly http: "GET";
10605
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10606
+ readonly streaming: "no";
10607
+ readonly pagination: false;
10608
+ readonly pathParams: readonly [{
10609
+ readonly name: "vector_store_id";
10610
+ readonly sdkName: "vector_store_id";
10611
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10612
+ }, {
10613
+ readonly name: "file_id";
10614
+ readonly sdkName: "file_id";
10615
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10616
+ }];
10617
+ readonly query: readonly [{
10618
+ readonly name: "after";
10619
+ readonly type: "string";
10620
+ readonly required: false;
10621
+ readonly description: "Cursor ID from the previous page.";
10622
+ }, {
10623
+ readonly name: "before";
10624
+ readonly type: "string";
10625
+ readonly required: false;
10626
+ readonly description: "Return items before this ID.";
10627
+ }, {
10628
+ readonly name: "limit";
10629
+ readonly type: "integer";
10630
+ readonly required: false;
10631
+ readonly description: "Page size.";
10632
+ }, {
10633
+ readonly name: "order";
10634
+ readonly type: "string";
10635
+ readonly enum: readonly ["asc", "desc"];
10636
+ readonly required: false;
10637
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10638
+ }];
10639
+ }, {
10640
+ readonly resource: "knowledge.vectorStores.purge";
10641
+ readonly method: "create";
10642
+ readonly summary: "Permanently purge knowledge base";
10643
+ readonly description: "Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.";
10644
+ readonly http: "POST";
10645
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/purge";
10646
+ readonly streaming: "no";
10647
+ readonly pagination: false;
10648
+ readonly pathParams: readonly [{
10649
+ readonly name: "vector_store_id";
10650
+ readonly sdkName: "vector_store_id";
10651
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10652
+ }];
10653
+ readonly query: readonly [];
10654
+ }, {
10655
+ readonly resource: "knowledge.vectorStores";
10656
+ readonly method: "restore";
10657
+ readonly summary: "Restore knowledge base";
10658
+ readonly description: "Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.";
10659
+ readonly http: "POST";
10660
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/restore";
10661
+ readonly streaming: "no";
10662
+ readonly pagination: false;
10663
+ readonly pathParams: readonly [{
10664
+ readonly name: "vector_store_id";
10665
+ readonly sdkName: "vector_store_id";
10666
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10667
+ }];
10668
+ readonly query: readonly [];
10669
+ }, {
10670
+ readonly resource: "knowledge.vectorStores.search";
10671
+ readonly method: "create";
10672
+ readonly summary: "Search knowledge base";
10673
+ readonly description: "Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {\"embedding_weight\":0,\"text_weight\":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.";
10674
+ readonly http: "POST";
10675
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10676
+ readonly streaming: "no";
10677
+ readonly pagination: false;
10678
+ readonly pathParams: readonly [{
10679
+ readonly name: "vector_store_id";
10680
+ readonly sdkName: "vector_store_id";
10681
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10682
+ }];
10683
+ readonly query: readonly [];
10684
+ readonly body: {
10685
+ readonly required: true;
10686
+ readonly fields: readonly [{
10687
+ readonly name: "query";
10688
+ readonly type: "object";
10689
+ readonly required: true;
10690
+ readonly description: "Nonblank text. Multiple queries are joined with newlines for one search.";
10691
+ }, {
10692
+ readonly name: "filters";
10693
+ readonly type: "object";
10694
+ readonly required: false;
10695
+ readonly description: "Type-strict file attribute filters. At most 20 nested levels below the root.";
10696
+ }, {
10697
+ readonly name: "max_num_results";
10698
+ readonly type: "integer";
10699
+ readonly required: false;
10700
+ readonly description: "Maximum chunks, not distinct files.";
10701
+ }, {
10702
+ readonly name: "rewrite_query";
10703
+ readonly type: "boolean";
10704
+ readonly required: false;
10705
+ readonly description: "When true, the store's query_rewrite model first rewrites each query into a concise search query; retrieval uses the rewrite and search_query returns it. Each rewrite is one small model call billed by model usage. If a rewrite fails, times out (5 s) or is empty, that query falls back to the original text and the search still succeeds. Omitted or false makes no model call.";
10706
+ }, {
10707
+ readonly name: "next_page";
10708
+ readonly type: "string";
10709
+ readonly required: false;
10710
+ readonly description: "Unlike OpenAI vector stores, search has no next page; supplying this cursor has no effect. Narrow the query or filters to inspect other matches.";
10711
+ }, {
10712
+ readonly name: "ranking_options";
10713
+ readonly type: "object";
10714
+ readonly required: false;
10715
+ readonly description: "Controls result ranking and the minimum score required for inclusion.";
10716
+ }, {
10717
+ readonly name: "praxis";
10718
+ readonly type: "object";
10719
+ readonly required: false;
10720
+ readonly description: "Set explain=true to include score and term explanations.";
10721
+ }];
10722
+ };
10723
+ }, {
10724
+ readonly resource: "knowledge.vectorStores.segments";
10725
+ readonly method: "retrieve";
10726
+ readonly summary: "Retrieve segment";
10727
+ readonly description: "Retrieves one chunk and its term statistics. Take chunk_id from segment listing or native search content; the chunk must belong to this knowledge base.";
10728
+ readonly http: "GET";
10729
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}";
10730
+ readonly streaming: "no";
10731
+ readonly pagination: false;
10732
+ readonly pathParams: readonly [{
10733
+ readonly name: "vector_store_id";
10734
+ readonly sdkName: "vector_store_id";
10735
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10736
+ }, {
10737
+ readonly name: "chunk_id";
10738
+ readonly sdkName: "chunk_id";
10739
+ readonly description: "Chunk ID returned by segment listing or native search content.";
10740
+ }];
10741
+ readonly query: readonly [];
10742
+ }, {
10743
+ readonly resource: "media.generation.capabilities";
10744
+ readonly method: "list";
10745
+ readonly summary: "Get generation capabilities";
10746
+ 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.";
10747
+ readonly http: "GET";
10748
+ readonly path: "/media/v1/generation/capabilities";
10749
+ readonly streaming: "no";
10750
+ readonly pagination: false;
10751
+ readonly pathParams: readonly [];
10752
+ readonly query: readonly [];
10753
+ }, {
10754
+ readonly resource: "media.libraries";
10755
+ readonly method: "list";
10756
+ readonly summary: "List libraries";
10757
+ readonly description: "Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.";
10758
+ readonly http: "GET";
10759
+ readonly path: "/media/v1/libraries";
10760
+ readonly streaming: "no";
10761
+ readonly pagination: true;
10762
+ readonly pathParams: readonly [];
10763
+ readonly query: readonly [{
10764
+ readonly name: "cursor";
10765
+ readonly type: "string";
10766
+ readonly required: false;
10767
+ readonly description: "Cursor from the previous next_cursor.";
10768
+ }, {
10769
+ readonly name: "limit";
10770
+ readonly type: "integer";
10771
+ readonly required: false;
10107
10772
  readonly description: "Maximum items per page, from 1 to 200; defaults to 50.";
10108
10773
  }, {
10109
10774
  readonly name: "labels";
@@ -10156,7 +10821,7 @@ export declare const operations: readonly [{
10156
10821
  readonly resource: "media.libraries";
10157
10822
  readonly method: "delete";
10158
10823
  readonly summary: "Delete library";
10159
- readonly description: "Soft-delete an active library, returning its deleting status and purge_at deadline. Asset operations and delivery become unavailable; the library can be restored before purge_at. Repeated deletion while deleting returns the current library.";
10824
+ readonly description: "Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.";
10160
10825
  readonly http: "DELETE";
10161
10826
  readonly path: "/media/v1/libraries/{library_id}";
10162
10827
  readonly streaming: "no";
@@ -10171,7 +10836,7 @@ export declare const operations: readonly [{
10171
10836
  readonly resource: "media.libraries";
10172
10837
  readonly method: "retrieve";
10173
10838
  readonly summary: "Get library";
10174
- readonly description: "Read a caller-owned library’s current settings, usage and lifecycle status. A deleting library remains readable; missing, foreign or purged libraries return LIBRARY_NOT_FOUND.";
10839
+ readonly description: "Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.";
10175
10840
  readonly http: "GET";
10176
10841
  readonly path: "/media/v1/libraries/{library_id}";
10177
10842
  readonly streaming: "no";
@@ -10186,7 +10851,7 @@ export declare const operations: readonly [{
10186
10851
  readonly resource: "media.libraries";
10187
10852
  readonly method: "update";
10188
10853
  readonly summary: "Update library";
10189
- readonly description: "Update an active library’s supplied settings. Labels replace the complete map; understanding settings and model roles merge with current values. Changing the embedding model is rejected while assets exist.";
10854
+ readonly description: "Update an active library. Set hotwords for spelling evidence in subsequent transcripts; [] disables inferred vocabulary. Transcript understanding calls the timestamped ASR, optional reference ASR and correction model through the existing metered model path. Reprocess assets to apply new settings to existing transcripts.";
10190
10855
  readonly http: "PATCH";
10191
10856
  readonly path: "/media/v1/libraries/{library_id}";
10192
10857
  readonly streaming: "no";
@@ -10231,7 +10896,7 @@ export declare const operations: readonly [{
10231
10896
  readonly resource: "media.libraries.assets";
10232
10897
  readonly method: "list";
10233
10898
  readonly summary: "List assets";
10234
- readonly description: "List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.";
10899
+ readonly description: "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.";
10235
10900
  readonly http: "GET";
10236
10901
  readonly path: "/media/v1/libraries/{library_id}/assets";
10237
10902
  readonly streaming: "no";
@@ -10267,7 +10932,7 @@ export declare const operations: readonly [{
10267
10932
  readonly resource: "media.libraries.assets";
10268
10933
  readonly method: "create";
10269
10934
  readonly summary: "Upload asset";
10270
- readonly description: "Upload content into an active library and return a Cloudinary-compatible resource. Use file for a multipart file, data URI, public HTTPS URL or same-owner file identifier. Reusing public_id overwrites by default; overwrite=false returns the existing resource. Chunk uploads require both chunk headers.";
10935
+ 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
10936
  readonly http: "POST";
10272
10937
  readonly path: "/media/v1/libraries/{library_id}/assets";
10273
10938
  readonly streaming: "no";
@@ -10305,7 +10970,7 @@ export declare const operations: readonly [{
10305
10970
  readonly name: "asset_folder";
10306
10971
  readonly type: "string";
10307
10972
  readonly required: false;
10308
- readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.";
10973
+ readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.";
10309
10974
  }, {
10310
10975
  readonly name: "use_filename";
10311
10976
  readonly type: "boolean";
@@ -10364,7 +11029,7 @@ export declare const operations: readonly [{
10364
11029
  readonly resource: "media.libraries.assets.import";
10365
11030
  readonly method: "create";
10366
11031
  readonly summary: "Import file";
10367
- readonly description: "Copy source content into an active library using upload options and return the full native Asset. The imported asset is independent of the source after copying. Reusing public_id follows overwrite semantics.";
11032
+ 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
11033
  readonly http: "POST";
10369
11034
  readonly path: "/media/v1/libraries/{library_id}/assets/import";
10370
11035
  readonly streaming: "no";
@@ -10381,7 +11046,7 @@ export declare const operations: readonly [{
10381
11046
  readonly name: "file_id";
10382
11047
  readonly type: "string";
10383
11048
  readonly required: true;
10384
- readonly description: "File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.";
11049
+ readonly description: "File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.";
10385
11050
  }, {
10386
11051
  readonly name: "public_id";
10387
11052
  readonly type: "string";
@@ -10401,7 +11066,7 @@ export declare const operations: readonly [{
10401
11066
  readonly name: "asset_folder";
10402
11067
  readonly type: "string";
10403
11068
  readonly required: false;
10404
- readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.";
11069
+ readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.";
10405
11070
  }, {
10406
11071
  readonly name: "use_filename";
10407
11072
  readonly type: "boolean";
@@ -10460,7 +11125,7 @@ export declare const operations: readonly [{
10460
11125
  readonly resource: "media.libraries.assets";
10461
11126
  readonly method: "delete";
10462
11127
  readonly summary: "Delete asset";
10463
- readonly description: "Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.";
11128
+ readonly description: "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable completed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Replaced understandings become superseded, and processing finishes asynchronously.";
10464
11129
  readonly http: "DELETE";
10465
11130
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}";
10466
11131
  readonly streaming: "no";
@@ -10479,7 +11144,7 @@ export declare const operations: readonly [{
10479
11144
  readonly resource: "media.libraries.assets";
10480
11145
  readonly method: "retrieve";
10481
11146
  readonly summary: "Get asset";
10482
- readonly description: "Read a non-deleted asset by its asset_id in an active library, including content hashes, processing progress and available previews. Missing or deleted assets return ASSET_NOT_FOUND.";
11147
+ readonly description: "Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.";
10483
11148
  readonly http: "GET";
10484
11149
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}";
10485
11150
  readonly streaming: "no";
@@ -10498,7 +11163,7 @@ export declare const operations: readonly [{
10498
11163
  readonly resource: "media.libraries.assets";
10499
11164
  readonly method: "update";
10500
11165
  readonly summary: "Update asset";
10501
- readonly description: "Update an asset’s supplied metadata fields. Tags and context replace their current collections; an empty collection clears them. Moving asset_folder or changing display_name preserves public_id and delivery URLs.";
11166
+ readonly description: "Delete an asset from the library so it is no longer readable, searchable or deliverable. This removes the asset rather than placing it in the library’s restoration window; a missing asset returns ASSET_NOT_FOUND.";
10502
11167
  readonly http: "PATCH";
10503
11168
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}";
10504
11169
  readonly streaming: "no";
@@ -10524,7 +11189,7 @@ export declare const operations: readonly [{
10524
11189
  readonly name: "asset_folder";
10525
11190
  readonly type: "string";
10526
11191
  readonly required: false;
10527
- readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.";
11192
+ readonly description: "Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.";
10528
11193
  }, {
10529
11194
  readonly name: "tags";
10530
11195
  readonly type: "array";
@@ -10538,11 +11203,46 @@ export declare const operations: readonly [{
10538
11203
  readonly description: "Replacement custom string-metadata map. Nonempty keys are required and serialized JSON must fit within 1024 UTF-8 bytes; an empty object clears the metadata.";
10539
11204
  }];
10540
11205
  };
11206
+ }, {
11207
+ readonly resource: "media.libraries.assets.frames";
11208
+ readonly method: "create";
11209
+ readonly summary: "Create frame URLs";
11210
+ readonly description: "Media creates JPEG frame URLs for inspecting one or more moments in a video without downloading the original. Obtain library_id from libraries and asset_id plus duration from assets. Send 1–20 integer microsecond timestamps strictly below duration, for example {\"at_micros\":[0,1000000],\"width\":640}. Only video assets are supported; audio and images return INVALID_PARAMS. Width defaults to 640 and accepts 160, 320 or 640. This read operation does not store a new asset or rerun understanding. Fetch each returned URL to obtain the frame; delivery usage follows media pricing. Authenticated links expire after 300 seconds; upload links remain public and permanent. Reissue expired links. Foreign libraries and assets return 404 without revealing their existence.";
11211
+ readonly http: "POST";
11212
+ readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/frames";
11213
+ readonly streaming: "no";
11214
+ readonly pagination: false;
11215
+ readonly pathParams: readonly [{
11216
+ readonly name: "library_id";
11217
+ readonly sdkName: "library_id";
11218
+ readonly description: "Library identifier returned by library creation or listing; must be accessible to the current credential.";
11219
+ }, {
11220
+ readonly name: "asset_id";
11221
+ readonly sdkName: "asset_id";
11222
+ readonly description: "Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.";
11223
+ }];
11224
+ readonly query: readonly [];
11225
+ readonly body: {
11226
+ readonly required: true;
11227
+ readonly fields: readonly [{
11228
+ readonly name: "at_micros";
11229
+ readonly type: "array";
11230
+ readonly itemType: "integer";
11231
+ readonly required: true;
11232
+ readonly description: "One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved.";
11233
+ }, {
11234
+ readonly name: "width";
11235
+ readonly type: "integer";
11236
+ readonly enum: readonly [160, 320, 640];
11237
+ readonly required: false;
11238
+ readonly description: "Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable.";
11239
+ }];
11240
+ };
10541
11241
  }, {
10542
11242
  readonly resource: "media.libraries.assets.reprocess";
10543
11243
  readonly method: "create";
10544
11244
  readonly summary: "Reprocess asset";
10545
- readonly description: "Queue reprocessing of the asset’s current version and return its updated state immediately. Omit kinds to retry failed tasks; explicit kinds rerun applicable completed tasks. Replaced understandings become superseded, and processing finishes asynchronously.";
11245
+ 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.";
10546
11246
  readonly http: "POST";
10547
11247
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess";
10548
11248
  readonly streaming: "no";
@@ -10565,14 +11265,14 @@ export declare const operations: readonly [{
10565
11265
  readonly itemType: "string";
10566
11266
  readonly enum: readonly ["visual", "frames", "transcript", "embedding"];
10567
11267
  readonly required: false;
10568
- readonly description: "Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.";
11268
+ readonly description: "Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.";
10569
11269
  }];
10570
11270
  };
10571
11271
  }, {
10572
11272
  readonly resource: "media.libraries.assets.understandings";
10573
11273
  readonly method: "list";
10574
11274
  readonly summary: "List understandings";
10575
- readonly description: "List an asset’s understanding results in creation order. By default only current, non-superseded results are returned; use include_superseded=true for history or kind to select an output type.";
11275
+ readonly description: "List understanding results for an asset, ordered by creation time. Use the cursor to continue; include_superseded also returns replaced records. The optional shots array contains current-version shot boundaries and per-shot captions, scene, location guesses, visible text and confidence flags; it is absent on legacy records. Location guesses and folder mismatch are unverified hints. Correction-enabled transcripts expose text_original, corrected text and a correction audit. Their timed data array remains suitable for subtitles. Reference failure is marked missing; correction failure returns the original verbatim. Model inference uses the existing metered model path.";
10576
11276
  readonly http: "GET";
10577
11277
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/understandings";
10578
11278
  readonly streaming: "no";
@@ -10594,9 +11294,9 @@ export declare const operations: readonly [{
10594
11294
  }, {
10595
11295
  readonly name: "kind";
10596
11296
  readonly type: "string";
10597
- readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame"];
11297
+ readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "loudness", "beats", "content", "embedding"];
10598
11298
  readonly required: false;
10599
- readonly description: "Filter result kind: caption is a visual description, tags are recognized labels, ocr is recognized image text, transcript is speech text, and frame describes a video segment.";
11299
+ readonly description: "Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, loudness is measured loudness, beats is the measured tempo and beat grid, content is the derived speech, music and silence split, and embedding reports a failed embedding step.";
10600
11300
  }, {
10601
11301
  readonly name: "cursor";
10602
11302
  readonly type: "string";
@@ -10612,7 +11312,7 @@ export declare const operations: readonly [{
10612
11312
  readonly resource: "media.libraries.assets";
10613
11313
  readonly method: "batch";
10614
11314
  readonly summary: "Batch assets alias";
10615
- readonly description: "Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.";
11315
+ 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.";
10616
11316
  readonly http: "POST";
10617
11317
  readonly path: "/media/v1/libraries/{library_id}/assets:batch";
10618
11318
  readonly streaming: "no";
@@ -10630,13 +11330,18 @@ export declare const operations: readonly [{
10630
11330
  readonly type: "object";
10631
11331
  readonly required: true;
10632
11332
  readonly description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.";
11333
+ }, {
11334
+ readonly name: "reason";
11335
+ readonly type: "string";
11336
+ readonly required: false;
11337
+ readonly description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.";
10633
11338
  }];
10634
11339
  };
10635
11340
  }, {
10636
11341
  readonly resource: "media.libraries.batches";
10637
11342
  readonly method: "create";
10638
11343
  readonly summary: "Create batch";
10639
- readonly description: "Create an asynchronous batch for tagging, untagging, replacing context, moving or deleting assets. Select ids or an expression; selection is frozen at creation. Poll the returned job id for completion and per-item failures.";
11344
+ 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.";
10640
11345
  readonly http: "POST";
10641
11346
  readonly path: "/media/v1/libraries/{library_id}/batches";
10642
11347
  readonly streaming: "no";
@@ -10654,13 +11359,18 @@ export declare const operations: readonly [{
10654
11359
  readonly type: "object";
10655
11360
  readonly required: true;
10656
11361
  readonly description: "Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.";
11362
+ }, {
11363
+ readonly name: "reason";
11364
+ readonly type: "string";
11365
+ readonly required: false;
11366
+ readonly description: "Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.";
10657
11367
  }];
10658
11368
  };
10659
11369
  }, {
10660
11370
  readonly resource: "media.libraries.batches";
10661
11371
  readonly method: "retrieve";
10662
11372
  readonly summary: "Get batch";
10663
- readonly description: "Read a batch job’s status, successful and failed item counts, and a bounded list of failed items. Use the id returned by batch creation; a job outside this library is not found.";
11373
+ readonly description: "Alias of batch creation. Apply one metadata or deletion action to ids or a frozen expression selection asynchronously; poll the returned job id to inspect completion and item failures.";
10664
11374
  readonly http: "GET";
10665
11375
  readonly path: "/media/v1/libraries/{library_id}/batches/{job_id}";
10666
11376
  readonly streaming: "no";
@@ -10708,7 +11418,7 @@ export declare const operations: readonly [{
10708
11418
  readonly resource: "media.libraries.events";
10709
11419
  readonly method: "list";
10710
11420
  readonly summary: "List events";
10711
- 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.";
11421
+ readonly description: "Read library events in sequence order for observing asset writes and understanding progress. Obtain library_id from creation or listing; continue with after_seq for asc or before_seq for desc, without combining both. Use next_cursor when supplied. Reads do not start or retry understanding.";
10712
11422
  readonly http: "GET";
10713
11423
  readonly path: "/media/v1/libraries/{library_id}/events";
10714
11424
  readonly streaming: "no";
@@ -10744,7 +11454,7 @@ export declare const operations: readonly [{
10744
11454
  readonly resource: "media.libraries.folders";
10745
11455
  readonly method: "list";
10746
11456
  readonly summary: "List folders";
10747
- readonly description: "List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.";
11457
+ readonly description: "undefined understood_count includes ready and partial assets; failed_count includes failed assets. Both accumulate descendants. counts_complete is false during historical backfill.";
10748
11458
  readonly http: "GET";
10749
11459
  readonly path: "/media/v1/libraries/{library_id}/folders";
10750
11460
  readonly streaming: "no";
@@ -10760,11 +11470,120 @@ export declare const operations: readonly [{
10760
11470
  readonly required: false;
10761
11471
  readonly description: "Folder whose immediate children are returned. Omit or use an empty string for the library root; invalid folder paths are rejected.";
10762
11472
  }];
11473
+ }, {
11474
+ readonly resource: "media.libraries.generations";
11475
+ readonly method: "create";
11476
+ readonly summary: "Create video generation";
11477
+ 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.";
11478
+ readonly http: "POST";
11479
+ readonly path: "/media/v1/libraries/{library_id}/generations";
11480
+ readonly streaming: "no";
11481
+ readonly pagination: false;
11482
+ readonly pathParams: readonly [{
11483
+ readonly name: "library_id";
11484
+ readonly sdkName: "library_id";
11485
+ readonly description: "Library ID returned by creation.";
11486
+ }];
11487
+ readonly query: readonly [];
11488
+ readonly body: {
11489
+ readonly required: true;
11490
+ readonly fields: readonly [{
11491
+ readonly name: "intent";
11492
+ readonly type: "string";
11493
+ readonly required: true;
11494
+ readonly description: "Generation operation; v1 accepts only video.generate text-to-video requests.";
11495
+ }, {
11496
+ readonly name: "prompt";
11497
+ readonly type: "string";
11498
+ readonly required: true;
11499
+ readonly description: "Text prompt describing the video to generate.";
11500
+ }, {
11501
+ readonly name: "count";
11502
+ readonly type: "integer";
11503
+ readonly required: false;
11504
+ readonly description: "Number of videos to generate; defaults to 1 and must be from 1 to 4.";
11505
+ }, {
11506
+ readonly name: "duration_seconds";
11507
+ readonly type: "integer";
11508
+ readonly required: false;
11509
+ readonly description: "Requested video duration in seconds; Router validates the model-specific supported durations.";
11510
+ }, {
11511
+ readonly name: "aspect_ratio";
11512
+ readonly type: "string";
11513
+ readonly required: false;
11514
+ readonly description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support.";
11515
+ }, {
11516
+ readonly name: "model";
11517
+ readonly type: "string";
11518
+ readonly required: false;
11519
+ readonly description: "Router model with video_generation capability; defaults to wan2.7-t2v.";
11520
+ }, {
11521
+ readonly name: "save";
11522
+ readonly type: "string";
11523
+ readonly enum: readonly ["candidate", "library"];
11524
+ readonly required: false;
11525
+ readonly description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.";
11526
+ }, {
11527
+ readonly name: "asset_folder";
11528
+ readonly type: "string";
11529
+ readonly required: false;
11530
+ 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.";
11531
+ }, {
11532
+ readonly name: "tags";
11533
+ readonly type: "array";
11534
+ readonly itemType: "string";
11535
+ readonly required: false;
11536
+ readonly description: "Tags applied when an output becomes a library asset.";
11537
+ }, {
11538
+ readonly name: "understanding";
11539
+ readonly type: "string";
11540
+ readonly enum: readonly ["auto", "skip"];
11541
+ readonly required: false;
11542
+ readonly description: "Understanding behavior when a candidate is saved as an asset; defaults to auto.";
11543
+ }, {
11544
+ readonly name: "references";
11545
+ readonly type: "array";
11546
+ readonly itemType: "object";
11547
+ readonly required: false;
11548
+ readonly description: "Not supported in v1; omit this field. Only text-to-video is currently available.";
11549
+ }];
11550
+ };
11551
+ }, {
11552
+ readonly resource: "media.libraries.jobs";
11553
+ readonly method: "list";
11554
+ readonly summary: "List jobs";
11555
+ 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.";
11556
+ readonly http: "GET";
11557
+ readonly path: "/media/v1/libraries/{library_id}/jobs";
11558
+ readonly streaming: "no";
11559
+ readonly pagination: true;
11560
+ readonly pathParams: readonly [{
11561
+ readonly name: "library_id";
11562
+ readonly sdkName: "library_id";
11563
+ readonly description: "Library ID returned by creation.";
11564
+ }];
11565
+ readonly query: readonly [{
11566
+ readonly name: "status";
11567
+ readonly type: "string";
11568
+ readonly enum: readonly ["queued", "running", "completed", "completed_with_errors", "failed", "cancelled"];
11569
+ readonly required: false;
11570
+ readonly description: "Filter jobs by their current status.";
11571
+ }, {
11572
+ readonly name: "limit";
11573
+ readonly type: "integer";
11574
+ readonly required: false;
11575
+ readonly description: "Maximum entries in this page, from 1 through 100; defaults to 100.";
11576
+ }, {
11577
+ readonly name: "cursor";
11578
+ readonly type: "string";
11579
+ readonly required: false;
11580
+ readonly description: "Job id from the previous page’s next_cursor; omit for the first page.";
11581
+ }];
10763
11582
  }, {
10764
11583
  readonly resource: "media.libraries.jobs";
10765
11584
  readonly method: "retrieve";
10766
- readonly summary: "Get job alias";
10767
- readonly description: "Alias of batch retrieval. Read the job returned by a batch request, including terminal status, successful and failed counts, and individual failure codes.";
11585
+ readonly summary: "Get job";
11586
+ 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.";
10768
11587
  readonly http: "GET";
10769
11588
  readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}";
10770
11589
  readonly streaming: "no";
@@ -10776,14 +11595,82 @@ export declare const operations: readonly [{
10776
11595
  }, {
10777
11596
  readonly name: "job_id";
10778
11597
  readonly sdkName: "job_id";
10779
- readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
11598
+ readonly description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.";
11599
+ }];
11600
+ readonly query: readonly [];
11601
+ }, {
11602
+ readonly resource: "media.libraries.jobs";
11603
+ readonly method: "cancel";
11604
+ readonly summary: "Cancel job";
11605
+ 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.";
11606
+ readonly http: "POST";
11607
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel";
11608
+ readonly streaming: "no";
11609
+ readonly pagination: false;
11610
+ readonly pathParams: readonly [{
11611
+ readonly name: "library_id";
11612
+ readonly sdkName: "library_id";
11613
+ readonly description: "Library ID returned by creation.";
11614
+ }, {
11615
+ readonly name: "job_id";
11616
+ readonly sdkName: "job_id";
11617
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11618
+ }];
11619
+ readonly query: readonly [];
11620
+ }, {
11621
+ readonly resource: "media.libraries.jobs.outputs.save";
11622
+ readonly method: "create";
11623
+ readonly summary: "Save generation output";
11624
+ 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.";
11625
+ readonly http: "POST";
11626
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save";
11627
+ readonly streaming: "no";
11628
+ readonly pagination: false;
11629
+ readonly pathParams: readonly [{
11630
+ readonly name: "library_id";
11631
+ readonly sdkName: "library_id";
11632
+ readonly description: "Library ID returned by creation.";
11633
+ }, {
11634
+ readonly name: "job_id";
11635
+ readonly sdkName: "job_id";
11636
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11637
+ }, {
11638
+ readonly name: "index";
11639
+ readonly sdkName: "index";
11640
+ readonly description: "Zero-based position of the candidate in the Job outputs array.";
10780
11641
  }];
10781
11642
  readonly query: readonly [];
11643
+ readonly body: {
11644
+ readonly required: false;
11645
+ readonly fields: readonly [{
11646
+ readonly name: "public_id";
11647
+ readonly type: "string";
11648
+ readonly required: false;
11649
+ readonly description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.";
11650
+ }, {
11651
+ readonly name: "asset_folder";
11652
+ readonly type: "string";
11653
+ readonly required: false;
11654
+ 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.";
11655
+ }, {
11656
+ readonly name: "tags";
11657
+ readonly type: "array";
11658
+ readonly itemType: "string";
11659
+ readonly required: false;
11660
+ readonly description: "Tags to apply to the saved asset.";
11661
+ }, {
11662
+ readonly name: "understanding";
11663
+ readonly type: "string";
11664
+ readonly enum: readonly ["auto", "skip"];
11665
+ readonly required: false;
11666
+ readonly description: "Understanding behavior for the saved asset; defaults to auto.";
11667
+ }];
11668
+ };
10782
11669
  }, {
10783
11670
  readonly resource: "media.libraries.purge";
10784
11671
  readonly method: "create";
10785
11672
  readonly summary: "Purge library";
10786
- readonly description: "Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.";
11673
+ readonly description: "List assets in an active library, newest first, optionally filtering by exact folder and stored resource type. Continue using next_cursor; video includes audio-only assets.";
10787
11674
  readonly http: "POST";
10788
11675
  readonly path: "/media/v1/libraries/{library_id}/purge";
10789
11676
  readonly streaming: "no";
@@ -10798,7 +11685,7 @@ export declare const operations: readonly [{
10798
11685
  readonly resource: "media.libraries";
10799
11686
  readonly method: "restore";
10800
11687
  readonly summary: "Restore library";
10801
- readonly description: "Restore a deleting library before its purge_at deadline. The library becomes active again and deleted_at and purge_at are cleared; expired or non-deleting libraries cannot be restored.";
11688
+ readonly description: "Permanently remove a library that is already deleting, without waiting for purge_at. Its assets and related resources are removed and cannot be restored; first soft-delete an active library.";
10802
11689
  readonly http: "POST";
10803
11690
  readonly path: "/media/v1/libraries/{library_id}/restore";
10804
11691
  readonly streaming: "no";
@@ -10813,7 +11700,7 @@ export declare const operations: readonly [{
10813
11700
  readonly resource: "media.libraries.search";
10814
11701
  readonly method: "create";
10815
11702
  readonly summary: "Semantic search alias";
10816
- readonly description: "Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.";
11703
+ readonly description: "List all immediate child folders under parent, or under the root when parent is omitted. Counts include descendant assets. The result is unpaginated; limit and cursor are rejected.";
10817
11704
  readonly http: "POST";
10818
11705
  readonly path: "/media/v1/libraries/{library_id}/search";
10819
11706
  readonly streaming: "no";
@@ -10853,7 +11740,7 @@ export declare const operations: readonly [{
10853
11740
  readonly resource: "media.libraries.search.expression";
10854
11741
  readonly method: "create";
10855
11742
  readonly summary: "Expression search";
10856
- readonly description: "Search active assets using the supported filter-expression syntax, sorting and cursor pagination. Empty expression matches all assets. Tags and context require with_field; inspect the exactness flags before treating counts as complete.";
11743
+ readonly description: "Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.";
10857
11744
  readonly http: "POST";
10858
11745
  readonly path: "/media/v1/libraries/{library_id}/search/expression";
10859
11746
  readonly streaming: "no";
@@ -10870,7 +11757,7 @@ export declare const operations: readonly [{
10870
11757
  readonly name: "expression";
10871
11758
  readonly type: "string";
10872
11759
  readonly required: false;
10873
- readonly description: "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters.";
11760
+ readonly description: "Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: [\"context\"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.";
10874
11761
  }, {
10875
11762
  readonly name: "sort_by";
10876
11763
  readonly type: "array";
@@ -10907,7 +11794,7 @@ export declare const operations: readonly [{
10907
11794
  readonly resource: "media.libraries.search.semantic";
10908
11795
  readonly method: "create";
10909
11796
  readonly summary: "Semantic search";
10910
- readonly description: "Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.";
11797
+ readonly description: "Alias of semantic search. Search assets with a nonblank text query, optional expression filter and top_k; hybrid combines semantic and keyword matches, while semantic uses vector similarity only.";
10911
11798
  readonly http: "POST";
10912
11799
  readonly path: "/media/v1/libraries/{library_id}/search/semantic";
10913
11800
  readonly streaming: "no";
@@ -10947,7 +11834,7 @@ export declare const operations: readonly [{
10947
11834
  readonly resource: "media.libraries.search.visual";
10948
11835
  readonly method: "create";
10949
11836
  readonly summary: "Visual search";
10950
- readonly description: "Find visually similar assets using exactly one of asset_id or an inline base64 image. The library must support image search; an asset query needs a current image embedding and excludes that source asset from results.";
11837
+ readonly description: "Search assets with a nonblank text query and optional expression filter. Hybrid mode combines semantic and keyword matches; semantic mode uses vector similarity only. Results are ranked and limited by top_k.";
10951
11838
  readonly http: "POST";
10952
11839
  readonly path: "/media/v1/libraries/{library_id}/search/visual";
10953
11840
  readonly streaming: "no";
@@ -10982,6 +11869,56 @@ export declare const operations: readonly [{
10982
11869
  readonly description: "Expression filter restricting eligible result assets.";
10983
11870
  }];
10984
11871
  };
11872
+ }, {
11873
+ readonly resource: "media.libraries.understandings";
11874
+ readonly method: "list";
11875
+ readonly summary: "List understanding results across a library";
11876
+ readonly description: "Read current understanding entries across one library without fetching every asset separately. Use library_id from creation or listing. folder includes descendants; kinds is a comma-separated list of output kinds. Entries are ordered by asset_id and then understanding id. Continue with next_cursor and the same folder and kinds; limit defaults to 100 and cannot exceed 100. Superseded, deleted and old-version entries are excluded. During historical backfill, this method returns 503 CAPACITY rather than incomplete pages; poll failureSummary until counts_complete is true, then start pagination. Example: GET /media/v1/libraries/lib_example/understandings?folder=travel&kinds=caption,transcript&limit=100.";
11877
+ readonly http: "GET";
11878
+ readonly path: "/media/v1/libraries/{library_id}/understandings";
11879
+ readonly streaming: "no";
11880
+ readonly pagination: true;
11881
+ readonly pathParams: readonly [{
11882
+ readonly name: "library_id";
11883
+ readonly sdkName: "library_id";
11884
+ readonly description: "Library ID returned by creation.";
11885
+ }];
11886
+ readonly query: readonly [{
11887
+ readonly name: "folder";
11888
+ readonly type: "string";
11889
+ readonly required: false;
11890
+ readonly description: "Folder path including all descendants; omitted or empty selects the entire library.";
11891
+ }, {
11892
+ readonly name: "kinds";
11893
+ readonly type: "string";
11894
+ readonly required: false;
11895
+ readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind.";
11896
+ }, {
11897
+ readonly name: "cursor";
11898
+ readonly type: "string";
11899
+ readonly required: false;
11900
+ readonly description: "Cursor from the previous next_cursor.";
11901
+ }, {
11902
+ readonly name: "limit";
11903
+ readonly type: "integer";
11904
+ readonly required: false;
11905
+ readonly description: "Maximum entries in this page, from 1 through 100; defaults to 100.";
11906
+ }];
11907
+ }, {
11908
+ readonly resource: "media.libraries.understandings";
11909
+ readonly method: "retrieveFailureSummary";
11910
+ readonly summary: "Summarize understanding failures";
11911
+ readonly description: "Inspect current understanding failures before retrying. Use library_id from library creation or listing. Groups include code, output kind, actual producer model, retryability and up to five sample asset IDs. At most 1024 detailed groups plus two overflow groups are returned; overflow groups separate retryable and unrecoverable entries and mark overflow=true. Unknown failure codes remain retryable. Historical counts are provisional while counts_complete is false. Example: GET /media/v1/libraries/lib_example/understandings/failure_summary.";
11912
+ readonly http: "GET";
11913
+ readonly path: "/media/v1/libraries/{library_id}/understandings/failure_summary";
11914
+ readonly streaming: "no";
11915
+ readonly pagination: false;
11916
+ readonly pathParams: readonly [{
11917
+ readonly name: "library_id";
11918
+ readonly sdkName: "library_id";
11919
+ readonly description: "Library ID returned by creation.";
11920
+ }];
11921
+ readonly query: readonly [];
10985
11922
  }, {
10986
11923
  readonly resource: "meta.docs";
10987
11924
  readonly method: "search";
@@ -11195,35 +12132,35 @@ export declare const operations: readonly [{
11195
12132
  readonly name: "model";
11196
12133
  readonly type: "string";
11197
12134
  readonly required: true;
11198
- readonly description: "Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.";
12135
+ readonly description: "Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.";
11199
12136
  }, {
11200
12137
  readonly name: "file";
11201
12138
  readonly type: "string";
11202
12139
  readonly required: true;
11203
- readonly description: "Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.";
12140
+ readonly description: "Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.";
11204
12141
  }, {
11205
12142
  readonly name: "language";
11206
12143
  readonly type: "string";
11207
12144
  readonly required: false;
11208
- readonly description: "Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.";
12145
+ readonly description: "Source language code when known; omit to let the model detect the language.";
11209
12146
  }, {
11210
12147
  readonly name: "prompt";
11211
12148
  readonly type: "string";
11212
12149
  readonly required: false;
11213
- readonly description: "Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.";
12150
+ readonly description: "Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.";
11214
12151
  }, {
11215
12152
  readonly name: "response_format";
11216
12153
  readonly type: "string";
11217
- readonly enum: readonly ["json", "text", "verbose_json"];
12154
+ readonly enum: readonly ["json", "text", "verbose_json", "diarized_json"];
11218
12155
  readonly required: false;
11219
- readonly description: "Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.";
12156
+ readonly description: "Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.";
11220
12157
  }, {
11221
12158
  readonly name: "timestamp_granularities[]";
11222
12159
  readonly type: "array";
11223
12160
  readonly itemType: "string";
11224
- readonly enum: readonly ["segment"];
12161
+ readonly enum: readonly ["word", "segment"];
11225
12162
  readonly required: false;
11226
- readonly description: "Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.";
12163
+ readonly description: "Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.";
11227
12164
  }, {
11228
12165
  readonly name: "temperature";
11229
12166
  readonly type: "number";
@@ -12568,224 +13505,669 @@ export declare const operations: readonly [{
12568
13505
  }];
12569
13506
  readonly query: readonly [];
12570
13507
  }, {
12571
- readonly resource: "model.systemone";
13508
+ readonly resource: "model.systemone";
13509
+ readonly method: "create";
13510
+ readonly summary: "Ask structured decision questions";
13511
+ readonly description: "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.";
13512
+ readonly http: "POST";
13513
+ readonly path: "/model/v1/systemone";
13514
+ readonly streaming: "no";
13515
+ readonly pagination: false;
13516
+ readonly pathParams: readonly [];
13517
+ readonly query: readonly [];
13518
+ readonly body: {
13519
+ readonly required: true;
13520
+ readonly fields: readonly [{
13521
+ readonly name: "model";
13522
+ readonly type: "string";
13523
+ readonly required: true;
13524
+ readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
13525
+ }, {
13526
+ readonly name: "state";
13527
+ readonly type: "object";
13528
+ readonly required: true;
13529
+ readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
13530
+ }, {
13531
+ readonly name: "questions";
13532
+ readonly type: "object";
13533
+ readonly required: true;
13534
+ readonly description: "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported.";
13535
+ }, {
13536
+ readonly name: "assets";
13537
+ readonly type: "object";
13538
+ readonly required: false;
13539
+ readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13540
+ }];
13541
+ };
13542
+ }, {
13543
+ readonly resource: "model.videos";
13544
+ readonly method: "list";
13545
+ readonly summary: "List videos";
13546
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13547
+ readonly http: "GET";
13548
+ readonly path: "/model/v1/videos";
13549
+ readonly streaming: "no";
13550
+ readonly pagination: false;
13551
+ readonly pathParams: readonly [];
13552
+ readonly query: readonly [{
13553
+ readonly name: "after";
13554
+ readonly type: "string";
13555
+ readonly required: false;
13556
+ readonly description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails.";
13557
+ }, {
13558
+ readonly name: "limit";
13559
+ readonly type: "integer";
13560
+ readonly required: false;
13561
+ readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13562
+ }, {
13563
+ readonly name: "order";
13564
+ readonly type: "string";
13565
+ readonly enum: readonly ["asc", "desc"];
13566
+ readonly required: false;
13567
+ readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13568
+ }];
13569
+ }, {
13570
+ readonly resource: "model.videos";
13571
+ readonly method: "create";
13572
+ readonly summary: "Create video";
13573
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13574
+ readonly http: "POST";
13575
+ readonly path: "/model/v1/videos";
13576
+ readonly streaming: "no";
13577
+ readonly pagination: false;
13578
+ readonly multipart: true;
13579
+ readonly pathParams: readonly [];
13580
+ readonly query: readonly [];
13581
+ readonly body: {
13582
+ readonly required: true;
13583
+ readonly fields: readonly [{
13584
+ readonly name: "model";
13585
+ readonly type: "string";
13586
+ readonly required: false;
13587
+ readonly description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation.";
13588
+ }, {
13589
+ readonly name: "prompt";
13590
+ readonly type: "string";
13591
+ readonly required: true;
13592
+ readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
13593
+ }, {
13594
+ readonly name: "seconds";
13595
+ readonly type: "object";
13596
+ readonly required: false;
13597
+ readonly description: "Takes precedence over duration.";
13598
+ }, {
13599
+ readonly name: "duration";
13600
+ readonly type: "integer";
13601
+ readonly required: false;
13602
+ readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
13603
+ }, {
13604
+ readonly name: "size";
13605
+ readonly type: "string";
13606
+ readonly required: false;
13607
+ readonly description: "Output resolution as `WIDTHxHEIGHT`, for example `1280x720`. Router support (partial): Subject to model capability preflight. Earlier wan2.7-t2v samples always produced 1280x720; accepted sizes are not guaranteed pixel-for-pixel.";
13608
+ }, {
13609
+ readonly name: "input_reference";
13610
+ readonly type: "object";
13611
+ readonly required: false;
13612
+ readonly description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB).";
13613
+ }, {
13614
+ readonly name: "input_references";
13615
+ readonly type: "array";
13616
+ readonly itemType: "object";
13617
+ readonly required: false;
13618
+ readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
13619
+ }, {
13620
+ readonly name: "frame_images";
13621
+ readonly type: "array";
13622
+ readonly itemType: "object";
13623
+ readonly required: false;
13624
+ readonly description: "Images that pin the first and last frame; at most 2 entries.";
13625
+ }, {
13626
+ readonly name: "resolution";
13627
+ readonly type: "string";
13628
+ readonly required: false;
13629
+ readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
13630
+ }, {
13631
+ readonly name: "aspect_ratio";
13632
+ readonly type: "string";
13633
+ readonly required: false;
13634
+ readonly description: "Aspect ratio of the video such as `16:9`.";
13635
+ }, {
13636
+ readonly name: "generate_audio";
13637
+ readonly type: "boolean";
13638
+ readonly required: false;
13639
+ readonly description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio.";
13640
+ }, {
13641
+ readonly name: "seed";
13642
+ readonly type: "integer";
13643
+ readonly required: false;
13644
+ readonly description: "Seed for reproducible generation, on models that support it.";
13645
+ }, {
13646
+ readonly name: "callback_url";
13647
+ readonly type: "string";
13648
+ readonly required: false;
13649
+ readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
13650
+ }, {
13651
+ readonly name: "quality";
13652
+ readonly type: "string";
13653
+ readonly required: false;
13654
+ readonly description: "Provider-specific quality setting.";
13655
+ }];
13656
+ };
13657
+ }, {
13658
+ readonly resource: "model.videos";
13659
+ readonly method: "delete";
13660
+ readonly summary: "Delete video";
13661
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13662
+ readonly http: "DELETE";
13663
+ readonly path: "/model/v1/videos/{video_id}";
13664
+ readonly streaming: "no";
13665
+ readonly pagination: false;
13666
+ readonly pathParams: readonly [{
13667
+ readonly name: "video_id";
13668
+ readonly sdkName: "video_id";
13669
+ 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.";
13670
+ }];
13671
+ readonly query: readonly [];
13672
+ }, {
13673
+ readonly resource: "model.videos";
13674
+ readonly method: "retrieve";
13675
+ readonly summary: "Retrieve video";
13676
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13677
+ readonly http: "GET";
13678
+ readonly path: "/model/v1/videos/{video_id}";
13679
+ readonly streaming: "no";
13680
+ readonly pagination: false;
13681
+ readonly pathParams: readonly [{
13682
+ readonly name: "video_id";
13683
+ readonly sdkName: "video_id";
13684
+ 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.";
13685
+ }];
13686
+ readonly query: readonly [];
13687
+ }, {
13688
+ readonly resource: "model.videos";
13689
+ readonly method: "retrieveContent";
13690
+ readonly summary: "Download video";
13691
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13692
+ readonly http: "GET";
13693
+ readonly path: "/model/v1/videos/{video_id}/content";
13694
+ readonly streaming: "no";
13695
+ readonly pagination: false;
13696
+ readonly pathParams: readonly [{
13697
+ readonly name: "video_id";
13698
+ readonly sdkName: "video_id";
13699
+ 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.";
13700
+ }];
13701
+ readonly query: readonly [{
13702
+ readonly name: "variant";
13703
+ readonly type: "string";
13704
+ readonly enum: readonly ["video", "thumbnail", "spritesheet"];
13705
+ readonly required: false;
13706
+ readonly description: "Spritesheet is not available in this release (400).";
13707
+ }, {
13708
+ readonly name: "index";
13709
+ readonly type: "integer";
13710
+ readonly required: false;
13711
+ readonly description: "Output index; this release produces index 0. variant takes precedence.";
13712
+ }];
13713
+ }, {
13714
+ readonly resource: "model.videos";
13715
+ readonly method: "remix";
13716
+ readonly summary: "Remix video";
13717
+ readonly description: "Not supported in this release; always returns 400.";
13718
+ readonly http: "POST";
13719
+ readonly path: "/model/v1/videos/{video_id}/remix";
13720
+ readonly streaming: "no";
13721
+ readonly pagination: false;
13722
+ readonly pathParams: readonly [{
13723
+ readonly name: "video_id";
13724
+ readonly sdkName: "video_id";
13725
+ 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.";
13726
+ }];
13727
+ readonly query: readonly [];
13728
+ }, {
13729
+ readonly resource: "ontology.changesets";
13730
+ readonly method: "create";
13731
+ readonly summary: "Apply changeset";
13732
+ 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.";
13733
+ readonly http: "POST";
13734
+ readonly path: "/ontology/v1/changesets";
13735
+ readonly streaming: "no";
13736
+ readonly pagination: false;
13737
+ readonly pathParams: readonly [];
13738
+ readonly query: readonly [];
13739
+ readonly body: {
13740
+ readonly required: true;
13741
+ readonly fields: readonly [{
13742
+ readonly name: "at";
13743
+ readonly type: "string";
13744
+ readonly required: true;
13745
+ readonly description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.";
13746
+ }, {
13747
+ readonly name: "scope";
13748
+ readonly type: "string";
13749
+ readonly required: false;
13750
+ readonly description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.";
13751
+ }, {
13752
+ readonly name: "ops";
13753
+ readonly type: "array";
13754
+ readonly itemType: "object";
13755
+ readonly required: true;
13756
+ readonly description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.";
13757
+ }];
13758
+ };
13759
+ }, {
13760
+ readonly resource: "ontology.nodes";
13761
+ readonly method: "list";
13762
+ readonly summary: "List nodes";
13763
+ 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.";
13764
+ readonly http: "GET";
13765
+ readonly path: "/ontology/v1/nodes";
13766
+ readonly streaming: "no";
13767
+ readonly pagination: true;
13768
+ readonly pathParams: readonly [];
13769
+ readonly query: readonly [{
13770
+ readonly name: "type";
13771
+ readonly type: "array";
13772
+ readonly itemType: "string";
13773
+ readonly required: false;
13774
+ readonly description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.";
13775
+ }, {
13776
+ readonly name: "q";
13777
+ readonly type: "string";
13778
+ readonly required: false;
13779
+ readonly description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter.";
13780
+ }, {
13781
+ readonly name: "owner";
13782
+ readonly type: "string";
13783
+ readonly required: false;
13784
+ readonly description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.";
13785
+ }, {
13786
+ readonly name: "as_of";
13787
+ readonly type: "string";
13788
+ readonly required: false;
13789
+ readonly description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.";
13790
+ }, {
13791
+ readonly name: "limit";
13792
+ readonly type: "integer";
13793
+ readonly required: false;
13794
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
13795
+ }, {
13796
+ readonly name: "cursor";
13797
+ readonly type: "string";
13798
+ readonly required: false;
13799
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
13800
+ }];
13801
+ }, {
13802
+ readonly resource: "ontology.nodes";
13803
+ readonly method: "create";
13804
+ readonly summary: "Create node";
13805
+ 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.";
13806
+ readonly http: "POST";
13807
+ readonly path: "/ontology/v1/nodes";
13808
+ readonly streaming: "no";
13809
+ readonly pagination: false;
13810
+ readonly pathParams: readonly [];
13811
+ readonly query: readonly [];
13812
+ readonly body: {
13813
+ readonly required: true;
13814
+ readonly fields: readonly [{
13815
+ readonly name: "type";
13816
+ readonly type: "string";
13817
+ readonly required: true;
13818
+ readonly description: "Registered node type name from types.list; an unregistered name is refused and nothing is written.";
13819
+ }, {
13820
+ readonly name: "ref";
13821
+ readonly type: "string";
13822
+ readonly required: false;
13823
+ 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.";
13824
+ }, {
13825
+ readonly name: "name";
13826
+ readonly type: "string";
13827
+ readonly required: true;
13828
+ readonly description: "Display name of the entity, at most 200 characters.";
13829
+ }, {
13830
+ readonly name: "aliases";
13831
+ readonly type: "array";
13832
+ readonly itemType: "string";
13833
+ readonly required: false;
13834
+ readonly description: "Other names this entity is known by; they are matched by search alongside the name.";
13835
+ }, {
13836
+ readonly name: "description";
13837
+ readonly type: "string";
13838
+ readonly required: false;
13839
+ readonly description: "Profile of the entity, at most 500 characters; omit or null for none.";
13840
+ }, {
13841
+ readonly name: "owner";
13842
+ readonly type: "string";
13843
+ readonly required: false;
13844
+ readonly description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.";
13845
+ }];
13846
+ };
13847
+ }, {
13848
+ readonly resource: "ontology.nodes";
13849
+ readonly method: "retrieve";
13850
+ readonly summary: "Retrieve node";
13851
+ 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.";
13852
+ readonly http: "GET";
13853
+ readonly path: "/ontology/v1/nodes/{node_id}";
13854
+ readonly streaming: "no";
13855
+ readonly pagination: false;
13856
+ readonly pathParams: readonly [{
13857
+ readonly name: "node_id";
13858
+ readonly sdkName: "node_id";
13859
+ 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.";
13860
+ }];
13861
+ readonly query: readonly [{
13862
+ readonly name: "expand";
13863
+ readonly type: "string";
13864
+ readonly enum: readonly ["relations"];
13865
+ readonly required: false;
13866
+ readonly description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.";
13867
+ }, {
13868
+ readonly name: "as_of";
13869
+ readonly type: "string";
13870
+ readonly required: false;
13871
+ readonly description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.";
13872
+ }];
13873
+ }, {
13874
+ readonly resource: "ontology.nodes";
13875
+ readonly method: "update";
13876
+ readonly summary: "Update node";
13877
+ 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.";
13878
+ readonly http: "PATCH";
13879
+ readonly path: "/ontology/v1/nodes/{node_id}";
13880
+ readonly streaming: "no";
13881
+ readonly pagination: false;
13882
+ readonly pathParams: readonly [{
13883
+ readonly name: "node_id";
13884
+ readonly sdkName: "node_id";
13885
+ 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.";
13886
+ }];
13887
+ readonly query: readonly [];
13888
+ readonly body: {
13889
+ readonly required: true;
13890
+ readonly fields: readonly [{
13891
+ readonly name: "name";
13892
+ readonly type: "string";
13893
+ readonly required: false;
13894
+ readonly description: "New display name, at most 200 characters; omit to keep the current name.";
13895
+ }, {
13896
+ readonly name: "aliases";
13897
+ readonly type: "array";
13898
+ readonly itemType: "string";
13899
+ readonly required: false;
13900
+ readonly description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them.";
13901
+ }, {
13902
+ readonly name: "description";
13903
+ readonly type: "string";
13904
+ readonly required: false;
13905
+ readonly description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.";
13906
+ }];
13907
+ };
13908
+ }, {
13909
+ readonly resource: "ontology.nodes.merge";
12572
13910
  readonly method: "create";
12573
- readonly summary: "Ask structured decision questions";
12574
- readonly description: "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.";
13911
+ readonly summary: "Merge node";
13912
+ 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.";
12575
13913
  readonly http: "POST";
12576
- readonly path: "/model/v1/systemone";
13914
+ readonly path: "/ontology/v1/nodes/{node_id}/merge";
12577
13915
  readonly streaming: "no";
12578
13916
  readonly pagination: false;
12579
- readonly pathParams: readonly [];
13917
+ readonly pathParams: readonly [{
13918
+ readonly name: "node_id";
13919
+ readonly sdkName: "node_id";
13920
+ 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.";
13921
+ }];
12580
13922
  readonly query: readonly [];
12581
13923
  readonly body: {
12582
13924
  readonly required: true;
12583
13925
  readonly fields: readonly [{
12584
- readonly name: "model";
13926
+ readonly name: "into";
12585
13927
  readonly type: "string";
12586
13928
  readonly required: true;
12587
- readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
12588
- }, {
12589
- readonly name: "state";
12590
- readonly type: "object";
12591
- readonly required: true;
12592
- readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
12593
- }, {
12594
- readonly name: "questions";
12595
- readonly type: "object";
12596
- readonly required: true;
12597
- readonly description: "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported.";
12598
- }, {
12599
- readonly name: "assets";
12600
- readonly type: "object";
12601
- readonly required: false;
12602
- readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13929
+ readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
12603
13930
  }];
12604
13931
  };
12605
13932
  }, {
12606
- readonly resource: "model.videos";
13933
+ readonly resource: "ontology.relations";
12607
13934
  readonly method: "list";
12608
- readonly summary: "List videos";
12609
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13935
+ readonly summary: "List relations";
13936
+ 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.";
12610
13937
  readonly http: "GET";
12611
- readonly path: "/model/v1/videos";
13938
+ readonly path: "/ontology/v1/relations";
12612
13939
  readonly streaming: "no";
12613
- readonly pagination: false;
13940
+ readonly pagination: true;
12614
13941
  readonly pathParams: readonly [];
12615
13942
  readonly query: readonly [{
12616
- readonly name: "after";
13943
+ readonly name: "node";
12617
13944
  readonly type: "string";
12618
13945
  readonly required: false;
12619
- readonly description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails.";
13946
+ 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.";
13947
+ }, {
13948
+ readonly name: "type";
13949
+ readonly type: "array";
13950
+ readonly itemType: "string";
13951
+ readonly required: false;
13952
+ readonly description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.";
13953
+ }, {
13954
+ readonly name: "direction";
13955
+ readonly type: "string";
13956
+ readonly enum: readonly ["out", "in", "both"];
13957
+ readonly required: false;
13958
+ 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.";
13959
+ }, {
13960
+ readonly name: "as_of";
13961
+ readonly type: "string";
13962
+ readonly required: false;
13963
+ 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.";
13964
+ }, {
13965
+ readonly name: "include_invalid";
13966
+ readonly type: "boolean";
13967
+ readonly required: false;
13968
+ 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.";
12620
13969
  }, {
12621
13970
  readonly name: "limit";
12622
13971
  readonly type: "integer";
12623
13972
  readonly required: false;
12624
- readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13973
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
12625
13974
  }, {
12626
- readonly name: "order";
13975
+ readonly name: "cursor";
12627
13976
  readonly type: "string";
12628
- readonly enum: readonly ["asc", "desc"];
12629
13977
  readonly required: false;
12630
- readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13978
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
12631
13979
  }];
12632
13980
  }, {
12633
- readonly resource: "model.videos";
13981
+ readonly resource: "ontology.relations";
12634
13982
  readonly method: "create";
12635
- readonly summary: "Create video";
12636
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13983
+ readonly summary: "Create relation";
13984
+ 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.";
12637
13985
  readonly http: "POST";
12638
- readonly path: "/model/v1/videos";
13986
+ readonly path: "/ontology/v1/relations";
12639
13987
  readonly streaming: "no";
12640
13988
  readonly pagination: false;
12641
- readonly multipart: true;
12642
13989
  readonly pathParams: readonly [];
12643
13990
  readonly query: readonly [];
12644
13991
  readonly body: {
12645
13992
  readonly required: true;
12646
13993
  readonly fields: readonly [{
12647
- readonly name: "model";
13994
+ readonly name: "type";
12648
13995
  readonly type: "string";
12649
- readonly required: false;
12650
- readonly description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation.";
13996
+ readonly required: true;
13997
+ readonly description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused.";
12651
13998
  }, {
12652
- readonly name: "prompt";
13999
+ readonly name: "source";
12653
14000
  readonly type: "string";
12654
14001
  readonly required: true;
12655
- readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
12656
- }, {
12657
- readonly name: "seconds";
12658
- readonly type: "object";
12659
- readonly required: false;
12660
- readonly description: "Takes precedence over duration.";
12661
- }, {
12662
- readonly name: "duration";
12663
- readonly type: "integer";
12664
- readonly required: false;
12665
- readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
14002
+ readonly description: "Node id the fact starts from, from nodes.list or nodes.create.";
12666
14003
  }, {
12667
- readonly name: "size";
14004
+ readonly name: "target";
12668
14005
  readonly type: "string";
12669
- readonly required: false;
12670
- readonly description: "Output resolution as `WIDTHxHEIGHT`, for example `1280x720`. Router support (partial): Subject to model capability preflight. Earlier wan2.7-t2v samples always produced 1280x720; accepted sizes are not guaranteed pixel-for-pixel.";
12671
- }, {
12672
- readonly name: "input_reference";
12673
- readonly type: "object";
12674
- readonly required: false;
12675
- readonly description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB).";
14006
+ readonly required: true;
14007
+ readonly description: "Node id the fact points at, from nodes.list or nodes.create.";
12676
14008
  }, {
12677
- readonly name: "input_references";
12678
- readonly type: "array";
12679
- readonly itemType: "object";
12680
- readonly required: false;
12681
- readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
14009
+ readonly name: "fact";
14010
+ readonly type: "string";
14011
+ readonly required: true;
14012
+ readonly description: "The relationship in one sentence, at most 280 characters, written to read back on its own.";
12682
14013
  }, {
12683
- readonly name: "frame_images";
12684
- readonly type: "array";
12685
- readonly itemType: "object";
14014
+ readonly name: "valid_at";
14015
+ readonly type: "string";
12686
14016
  readonly required: false;
12687
- readonly description: "Images that pin the first and last frame; at most 2 entries.";
14017
+ readonly description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated.";
12688
14018
  }, {
12689
- readonly name: "resolution";
14019
+ readonly name: "owner";
12690
14020
  readonly type: "string";
12691
14021
  readonly required: false;
12692
- readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
14022
+ readonly description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.";
14023
+ }];
14024
+ };
14025
+ }, {
14026
+ readonly resource: "ontology.relations";
14027
+ readonly method: "retrieve";
14028
+ readonly summary: "Retrieve relation";
14029
+ 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.";
14030
+ readonly http: "GET";
14031
+ readonly path: "/ontology/v1/relations/{relation_id}";
14032
+ readonly streaming: "no";
14033
+ readonly pagination: false;
14034
+ readonly pathParams: readonly [{
14035
+ readonly name: "relation_id";
14036
+ readonly sdkName: "relation_id";
14037
+ 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.";
14038
+ }];
14039
+ readonly query: readonly [];
14040
+ }, {
14041
+ readonly resource: "ontology.relations.invalidate";
14042
+ readonly method: "create";
14043
+ readonly summary: "Invalidate relation";
14044
+ 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.";
14045
+ readonly http: "POST";
14046
+ readonly path: "/ontology/v1/relations/{relation_id}/invalidate";
14047
+ readonly streaming: "no";
14048
+ readonly pagination: false;
14049
+ readonly pathParams: readonly [{
14050
+ readonly name: "relation_id";
14051
+ readonly sdkName: "relation_id";
14052
+ 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.";
14053
+ }];
14054
+ readonly query: readonly [];
14055
+ readonly body: {
14056
+ readonly required: true;
14057
+ readonly fields: readonly [{
14058
+ readonly name: "invalid_at";
14059
+ readonly type: "string";
14060
+ readonly required: true;
14061
+ readonly description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.";
12693
14062
  }, {
12694
- readonly name: "aspect_ratio";
14063
+ readonly name: "superseded_by";
12695
14064
  readonly type: "string";
12696
14065
  readonly required: false;
12697
- readonly description: "Aspect ratio of the video such as `16:9`.";
14066
+ readonly description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.";
12698
14067
  }, {
12699
- readonly name: "generate_audio";
12700
- readonly type: "boolean";
14068
+ readonly name: "reason";
14069
+ readonly type: "string";
12701
14070
  readonly required: false;
12702
- readonly description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio.";
14071
+ readonly description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit.";
14072
+ }];
14073
+ };
14074
+ }, {
14075
+ readonly resource: "ontology.search";
14076
+ readonly method: "create";
14077
+ readonly summary: "Search nodes";
14078
+ 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.";
14079
+ readonly http: "POST";
14080
+ readonly path: "/ontology/v1/search";
14081
+ readonly streaming: "no";
14082
+ readonly pagination: false;
14083
+ readonly pathParams: readonly [];
14084
+ readonly query: readonly [];
14085
+ readonly body: {
14086
+ readonly required: true;
14087
+ readonly fields: readonly [{
14088
+ readonly name: "text";
14089
+ readonly type: "string";
14090
+ readonly required: true;
14091
+ readonly description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.";
12703
14092
  }, {
12704
- readonly name: "seed";
12705
- readonly type: "integer";
14093
+ readonly name: "types";
14094
+ readonly type: "array";
14095
+ readonly itemType: "string";
12706
14096
  readonly required: false;
12707
- readonly description: "Seed for reproducible generation, on models that support it.";
14097
+ readonly description: "Registered node type names to search within; omit to search every type.";
12708
14098
  }, {
12709
- readonly name: "callback_url";
12710
- readonly type: "string";
14099
+ readonly name: "window";
14100
+ readonly type: "object";
12711
14101
  readonly required: false;
12712
- readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
14102
+ readonly description: "Restrict matches to facts recorded within a period; omit to search all time.";
12713
14103
  }, {
12714
- readonly name: "quality";
12715
- readonly type: "string";
14104
+ readonly name: "limit";
14105
+ readonly type: "integer";
12716
14106
  readonly required: false;
12717
- readonly description: "Provider-specific quality setting.";
14107
+ readonly description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.";
12718
14108
  }];
12719
14109
  };
12720
14110
  }, {
12721
- readonly resource: "model.videos";
12722
- readonly method: "delete";
12723
- readonly summary: "Delete video";
12724
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
12725
- readonly http: "DELETE";
12726
- readonly path: "/model/v1/videos/{video_id}";
14111
+ readonly resource: "ontology.types";
14112
+ readonly method: "list";
14113
+ readonly summary: "List types";
14114
+ 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.";
14115
+ readonly http: "GET";
14116
+ readonly path: "/ontology/v1/types";
12727
14117
  readonly streaming: "no";
12728
14118
  readonly pagination: false;
12729
- readonly pathParams: readonly [{
12730
- readonly name: "video_id";
12731
- readonly sdkName: "video_id";
12732
- 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.";
12733
- }];
14119
+ readonly pathParams: readonly [];
12734
14120
  readonly query: readonly [];
12735
14121
  }, {
12736
- readonly resource: "model.videos";
12737
- readonly method: "retrieve";
12738
- readonly summary: "Retrieve video";
12739
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
12740
- readonly http: "GET";
12741
- readonly path: "/model/v1/videos/{video_id}";
14122
+ readonly resource: "ontology.types";
14123
+ readonly method: "create";
14124
+ readonly summary: "Register type";
14125
+ 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.";
14126
+ readonly http: "POST";
14127
+ readonly path: "/ontology/v1/types";
12742
14128
  readonly streaming: "no";
12743
14129
  readonly pagination: false;
12744
- readonly pathParams: readonly [{
12745
- readonly name: "video_id";
12746
- readonly sdkName: "video_id";
12747
- 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.";
12748
- }];
14130
+ readonly pathParams: readonly [];
12749
14131
  readonly query: readonly [];
14132
+ readonly body: {
14133
+ readonly required: true;
14134
+ readonly fields: readonly [{
14135
+ readonly name: "owner";
14136
+ readonly type: "string";
14137
+ readonly required: true;
14138
+ 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.";
14139
+ }, {
14140
+ readonly name: "version";
14141
+ readonly type: "integer";
14142
+ readonly required: true;
14143
+ readonly description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.";
14144
+ }, {
14145
+ readonly name: "nodes";
14146
+ readonly type: "array";
14147
+ readonly itemType: "object";
14148
+ readonly required: true;
14149
+ readonly description: "Node types this owner registers.";
14150
+ }, {
14151
+ readonly name: "edges";
14152
+ readonly type: "array";
14153
+ readonly itemType: "object";
14154
+ readonly required: true;
14155
+ readonly description: "Relation types this owner registers.";
14156
+ }];
14157
+ };
12750
14158
  }, {
12751
- readonly resource: "model.videos";
12752
- readonly method: "retrieveContent";
12753
- readonly summary: "Download video";
12754
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
14159
+ readonly resource: "ontology.types";
14160
+ readonly method: "retrieve";
14161
+ readonly summary: "Retrieve type";
14162
+ 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.";
12755
14163
  readonly http: "GET";
12756
- readonly path: "/model/v1/videos/{video_id}/content";
12757
- readonly streaming: "no";
12758
- readonly pagination: false;
12759
- readonly pathParams: readonly [{
12760
- readonly name: "video_id";
12761
- readonly sdkName: "video_id";
12762
- 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.";
12763
- }];
12764
- readonly query: readonly [{
12765
- readonly name: "variant";
12766
- readonly type: "string";
12767
- readonly enum: readonly ["video", "thumbnail", "spritesheet"];
12768
- readonly required: false;
12769
- readonly description: "Spritesheet is not available in this release (400).";
12770
- }, {
12771
- readonly name: "index";
12772
- readonly type: "integer";
12773
- readonly required: false;
12774
- readonly description: "Output index; this release produces index 0. variant takes precedence.";
12775
- }];
12776
- }, {
12777
- readonly resource: "model.videos";
12778
- readonly method: "remix";
12779
- readonly summary: "Remix video";
12780
- readonly description: "Not supported in this release; always returns 400.";
12781
- readonly http: "POST";
12782
- readonly path: "/model/v1/videos/{video_id}/remix";
14164
+ readonly path: "/ontology/v1/types/{name}";
12783
14165
  readonly streaming: "no";
12784
14166
  readonly pagination: false;
12785
14167
  readonly pathParams: readonly [{
12786
- readonly name: "video_id";
12787
- readonly sdkName: "video_id";
12788
- 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.";
14168
+ readonly name: "name";
14169
+ readonly sdkName: "name";
14170
+ readonly description: "A type name from types.list, with its dots preserved — a display label is not accepted.";
12789
14171
  }];
12790
14172
  readonly query: readonly [];
12791
14173
  }, {
@@ -14840,7 +16222,7 @@ export declare const operations: readonly [{
14840
16222
  readonly resource: "ticket.labels";
14841
16223
  readonly method: "create";
14842
16224
  readonly summary: "Create or add labels";
14843
- 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.";
16225
+ 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.";
14844
16226
  readonly http: "POST";
14845
16227
  readonly path: "/ticket/v1/labels";
14846
16228
  readonly streaming: "no";
@@ -14875,7 +16257,7 @@ export declare const operations: readonly [{
14875
16257
  readonly resource: "ticket.labels";
14876
16258
  readonly method: "delete";
14877
16259
  readonly summary: "Remove labels";
14878
- 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.";
16260
+ 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.";
14879
16261
  readonly http: "DELETE";
14880
16262
  readonly path: "/ticket/v1/labels/{name}";
14881
16263
  readonly streaming: "no";
@@ -14895,7 +16277,7 @@ export declare const operations: readonly [{
14895
16277
  readonly resource: "ticket.labels";
14896
16278
  readonly method: "update";
14897
16279
  readonly summary: "Update labels";
14898
- 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.";
16280
+ 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.";
14899
16281
  readonly http: "PATCH";
14900
16282
  readonly path: "/ticket/v1/labels/{name}";
14901
16283
  readonly streaming: "no";
@@ -15135,7 +16517,7 @@ export declare const operations: readonly [{
15135
16517
  readonly name: "filter";
15136
16518
  readonly type: "string";
15137
16519
  readonly required: false;
15138
- 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.";
16520
+ 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.";
15139
16521
  }];
15140
16522
  }, {
15141
16523
  readonly resource: "ticket.tickets";
@@ -16029,7 +17411,7 @@ export declare const operations: readonly [{
16029
17411
  readonly resource: "vault.vaults";
16030
17412
  readonly method: "create";
16031
17413
  readonly summary: "Create vault";
16032
- 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.";
17414
+ 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.";
16033
17415
  readonly http: "POST";
16034
17416
  readonly path: "/vault/v1/vaults";
16035
17417
  readonly streaming: "no";