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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ export declare const operations: readonly [{
107
107
  readonly type: "array";
108
108
  readonly itemType: "object";
109
109
  readonly required: false;
110
- readonly description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.";
110
+ readonly description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.";
111
111
  }, {
112
112
  readonly name: "kind";
113
113
  readonly type: "string";
@@ -938,6 +938,30 @@ export declare const operations: readonly [{
938
938
  readonly required: true;
939
939
  readonly description: "Absolute path of the file whose content to download, as returned in the path field of computers.files.list.";
940
940
  }];
941
+ }, {
942
+ readonly resource: "agent.computers.files.convert";
943
+ readonly method: "create";
944
+ readonly summary: "Convert a Computer Document to PDF";
945
+ readonly description: "Convert an Office document (docx, doc, ppt, pptx, rtf, odt; up to 16 MiB) to PDF inside a platform-owned ephemeral document sandbox, whatever machine family the computer itself runs on. Returns base64 PDF bytes.\n\nPraxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.";
946
+ readonly http: "POST";
947
+ readonly path: "/agent/v1/computers/{computer_id}/files/convert";
948
+ readonly streaming: "no";
949
+ readonly pagination: false;
950
+ readonly pathParams: readonly [{
951
+ readonly name: "computer_id";
952
+ readonly sdkName: "computer_id";
953
+ readonly description: "Computer id (cmp_...), as returned by computers.create or computers.list.";
954
+ }];
955
+ readonly query: readonly [];
956
+ readonly body: {
957
+ readonly required: true;
958
+ readonly fields: readonly [{
959
+ readonly name: "name";
960
+ readonly type: "string";
961
+ readonly required: true;
962
+ readonly description: "Name of the entry or object.";
963
+ }];
964
+ };
941
965
  }, {
942
966
  readonly resource: "agent.computers.leases";
943
967
  readonly method: "delete";
@@ -4845,7 +4869,7 @@ export declare const operations: readonly [{
4845
4869
  readonly type: "string";
4846
4870
  readonly enum: readonly ["skip", "allow"];
4847
4871
  readonly required: false;
4848
- readonly description: "skip (default) skips when a previous run is still active; allow permits overlapping runs.";
4872
+ readonly description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.";
4849
4873
  }, {
4850
4874
  readonly name: "catchup_window_seconds";
4851
4875
  readonly type: "integer";
@@ -4986,7 +5010,7 @@ export declare const operations: readonly [{
4986
5010
  readonly type: "string";
4987
5011
  readonly enum: readonly ["skip", "allow"];
4988
5012
  readonly required: false;
4989
- readonly description: "skip (default) skips when a previous run is still active; allow permits overlapping runs.";
5013
+ readonly description: "skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.";
4990
5014
  }, {
4991
5015
  readonly name: "catchup_window_seconds";
4992
5016
  readonly type: "integer";
@@ -8098,13 +8122,18 @@ export declare const operations: readonly [{
8098
8122
  readonly type: "integer";
8099
8123
  readonly required: false;
8100
8124
  readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
8125
+ }, {
8126
+ readonly name: "loudness";
8127
+ readonly type: "object";
8128
+ readonly required: false;
8129
+ readonly description: "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work.";
8101
8130
  }];
8102
8131
  };
8103
8132
  }, {
8104
8133
  readonly resource: "cut.projects.frames";
8105
8134
  readonly method: "list";
8106
8135
  readonly summary: "Render preview frames";
8107
- readonly description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. FRAME_UNAVAILABLE warnings on execute mean a source preview could not be fetched and an offline tile was drawn; edits still commit, and this warning alone does not establish that the source media is broken. Decode its base64 payload to save the image. Codemode returns at most four images per call, so request at most four times when reviewing there.";
8136
+ readonly description: "Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,...), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image's base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.";
8108
8137
  readonly http: "GET";
8109
8138
  readonly path: "/cut/v1/projects/{project_id}/frames";
8110
8139
  readonly streaming: "no";
@@ -8164,6 +8193,46 @@ export declare const operations: readonly [{
8164
8193
  readonly description: "Optional human-readable display name for the new media asset.";
8165
8194
  }];
8166
8195
  };
8196
+ }, {
8197
+ readonly resource: "cut.projects.renders";
8198
+ readonly method: "create";
8199
+ readonly summary: "Create draft range render";
8200
+ 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.";
8201
+ readonly http: "POST";
8202
+ readonly path: "/cut/v1/projects/{project_id}/renders";
8203
+ readonly streaming: "no";
8204
+ readonly pagination: false;
8205
+ readonly pathParams: readonly [{
8206
+ readonly name: "project_id";
8207
+ readonly sdkName: "project_id";
8208
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8209
+ }];
8210
+ readonly query: readonly [];
8211
+ readonly body: {
8212
+ readonly required: true;
8213
+ readonly fields: readonly [{
8214
+ readonly name: "kind";
8215
+ readonly type: "string";
8216
+ readonly enum: readonly ["audio", "video"];
8217
+ readonly required: true;
8218
+ 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.";
8219
+ }, {
8220
+ readonly name: "from";
8221
+ readonly type: "number";
8222
+ readonly required: true;
8223
+ readonly description: "Start of the interval in seconds on the project clock, inclusive. Must be less than to.";
8224
+ }, {
8225
+ readonly name: "to";
8226
+ readonly type: "number";
8227
+ readonly required: true;
8228
+ 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.";
8229
+ }, {
8230
+ readonly name: "revision";
8231
+ readonly type: "integer";
8232
+ readonly required: false;
8233
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
8234
+ }];
8235
+ };
8167
8236
  }, {
8168
8237
  readonly resource: "cut.projects";
8169
8238
  readonly method: "retrieveState";
@@ -8278,7 +8347,7 @@ export declare const operations: readonly [{
8278
8347
  readonly resource: "cut.projects";
8279
8348
  readonly method: "execute";
8280
8349
  readonly summary: "Execute editing script";
8281
- readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n### Script function reference\n\nFunctions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. JoinId is the string returned by Join or read from GetTimeline().joins. Reads see earlier writes in the same script.\n\n```ts\nGetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;\nGetItem(id: ClipId): ItemView;\nFindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];\nGetMedia(ref: MediaRef): MediaInfo;\nGetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];\nGetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];\nListTransitions(): TransitionInfo[];\nInsert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;\nUpdate(id: ClipId, patch: ItemPatchView): void;\nSetSpeed(id: ClipId, rate: number, o: { keep: \"source\" | \"duration\"; ripple?: boolean }): { length: number; sourceOut: number };\nDelete(id: ClipId, o?: { ripple?: boolean }): void;\nJoin(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;\nUpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;\nDeleteJoin(id: JoinId): void;\nSplit(id: ClipId, at: number): ClipId;\nTrim(id: ClipId, edge: \"in\" | \"out\", delta: number, o?: { ripple?: boolean }): void;\nMove(id: ClipId, start: number, track?: TrackId): void;\nRippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;\nAddTrack(kind: \"video\" | \"audio\" | \"caption\", init?: { name?: string }, index?: number): TrackId;\nUpdateTrack(id: TrackId, patch: TrackPatch): void;\nDeleteTrack(id: TrackId): void;\nSetSettings(patch: Partial<ProjectSettingsView>): void;\nAddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];\nSetMarker(at: number, label: string): string;\nPrint(...values: unknown[]): void;\nPreview(at: number[]): void;\n```\n\n| Functions | Behavior and arguments |\n| --- | --- |\n| GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, playback, sourceIn/sourceOut, text and offline reason. GetTimeline returns duration, tracks (id, kind, name, index, locked, items), and joins (id, track, left, right, length in seconds, normalized effect). from/to and tracks narrow the items and joins; joins are selected by their overlap window. |\n| ListTransitions | Discover the shared validation catalog: each entry contains kind (effect ID), name, description and params. Each parameter has name, type (enum/number/integer), default, description, enum values or numeric min/max. Use the returned kind and parameter names inside effect. |\n| FindItems | Visit items with their track and index; return undefined to omit an item, any other value to collect it. |\n| GetMedia | Read metadata for `{libraryId, assetId}` in a bound library: kind, dimensions, fps, hasAudio and durationUs when available. durationUs is microseconds. |\n| GetTranscript, GetAnalysis | Read available transcript words or silence/filler/scenes segments. Transcript filter from/to is seconds; returned word and segment from/to values are source microseconds (divide by 1,000,000 for editing). Words contain text and optional speaker/filler; segments may include label/confidence. Request analysis first if unavailable. |\n| Insert, Update, Delete | Insert returns the new clip ID; Update changes supplied fields; Delete removes the clip. Optional ripple on Insert/Delete closes or opens space on the track. |\n| SetSpeed | Change video/audio rate in 0.25–4; keep is required. source preserves consumed source and changes length, duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |\n| Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |\n| Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |\n| RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |\n| AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |\n| SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |\n| AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |\n| SetMarker | Add a label at a timeline time and return its ID. |\n| Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |\n\n#### Joins between clips\n\nEndpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.\n\nTransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use the catalog defaults. Unknown kinds and unknown or invalid parameters are rejected. Effects: dissolve (no parameters); dip (color black/white, default black); push and wipe (direction left/right/up/down, default left); wipe also has softness 0–1, default 0; iris has centerX/centerY 0–1, both default 0.5; blinds has integer count 2–64, default 8, and orientation vertical/horizontal, default vertical; blur has radius 0–100 pixels at 1080-pixel frame height, default 24. Join options and UpdateJoin patches accept only length and effect. Effect updates replace the effect object and apply defaults for omitted parameters.\n\nMinimal example on an existing visual track with adjacent clips left and right: `Print(ListTransitions()); const j = Join(left, right, {length: 0.5, effect: {kind: \"dissolve\"}}); Print(GetTimeline().joins); Preview([GetItem(right).start + 0.25]);` Use `UpdateJoin(j, {length: 0.8})` to adjust it in a later edit or `DeleteJoin(j)` to restore the cut. Preview uses server-rendered frames and includes joins. Per-clip transitionIn/transitionOut remain separate entrance/exit effects.\n\n#### Insert fields (ItemInit)\n\nEvery item requires `type` and `start`. Times used for editing are seconds and snap to the project frame rate: start, length, sourceIn, fadeIn/fadeOut, transition length, keyframe at, reveal delay/stagger/duration. Keyframe and reveal times are relative to the clip start. Video/audio may omit length to use the remaining source duration; other types require length.\n\n| type | Required fields beyond type/start | Optional fields |\n| --- | --- | --- |\n| video | media | length, sourceIn, playback, volumeDb, transform, fit, animate, transitionIn, transitionOut |\n| image | media, length | transform, fit, animate, transitionIn, transitionOut |\n| text | text, length | style, transform, reveal, animate, transitionIn, transitionOut |\n| color | color, length | transform, fill, animate, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, animate, transitionIn, transitionOut |\n| audio | media | length, sourceIn, playback, volumeDb, fadeIn, fadeOut |\n| caption | text, length | — |\n\nVideo tracks accept video/image/text/color/shape; audio and caption tracks accept their corresponding type. Media is `{libraryId: string, assetId: string}` from a bound library. sourceIn defaults to 0, volumeDb to 0 dB, audio fades to 0 seconds. fit defaults to contain: contain fits the whole image, cover fills and crops, fill stretches, none keeps native dimensions.\n\n| Field | Value |\n| --- | --- |\n| transform | Partial `{x, y, scale, rotation, opacity, crop, blur}`. x/y are normalized canvas center coordinates (default 0.5); scale 1 is fitted size; rotation is degrees (default 0); opacity is 0–1 (default 1). crop is `{top,right,bottom,left}`. blur is 0–100 pixels at 1080-pixel frame height. |\n| style | Partial `{fontFamily, fontSize, fontWeight, color, stroke, background, align, maxWidth, position, margin}`. fontFamily: Geist or Noto Sans SC (default); fontSize defaults to 48; fontWeight: 400 (default), 500 or 700; color defaults to #FFFFFF; align: left, center (default), right; maxWidth is a fraction of canvas width (default 0.9). stroke is `{color,width}`. Text and captions support position (top/middle/bottom; box centers at 12%/50%/85% of height without margin) and optional margin (0–0.4 of canvas height, box edge distance for top/bottom; middle ignores it). Omitted position preserves the text transform (center by default); explicit position controls vertical placement, so omit it for y animation. Caption style additionally supports highlightColor and maxLines: 2. GetItem and GetTimeline return text style and current caption track style. Caption tracks only accept captions; use AddCaptionsFromTranscript, and place text on video tracks. |\n| animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |\n| Ease | linear, in, out, inOut, `{bezier: [x1,y1,x2,y2]}` or `{spring: {stiffness, damping, mass?}}`. Easing shapes the segment arriving at that keyframe; springs may overshoot. |\n| reveal | `{by, delay?: number, stagger: number, duration: number, from: {y?, opacity?, scale?, blur?}, ease?: Ease}`. by selects char, word or line. Unit k starts at delay + k * stagger and takes duration seconds to reach its resting state; from.y is a fraction of font size. |\n| fill | A color string (#RRGGBB or #RRGGBBAA), `{linear: {angle, stops: [{at,color}, ...]}}` or `{radial: {stops: [{at,color}, ...]}}`. Stop positions are 0–1; angle is degrees, 0 left to right. On color clips, fill replaces color when supplied. |\n| shape, width, height, radius, stroke | shape is rect or ellipse. width/height are fractions of canvas width/height before scaling. radius rounds rect corners in pixels at 1080-pixel frame height. stroke is `{color: string, width: number}`. |\n| transitionIn, transitionOut | `{kind, length: number}` at the clip's beginning/end. length is seconds. fade changes opacity; dissolve blends; push_left/push_right move horizontally; wipe_left reveals horizontally. |\n\n#### Update fields (ItemPatchView)\n\nAll fields are optional; use only fields relevant to the item's type. Supported fields: start, length, sourceIn, playback, volumeDb, transform, fit, text, style, color, fadeIn, fadeOut, animate, reveal, fill, stroke, shape, width, height, radius, transitionIn, transitionOut. Values and units match Insert. Set animate, reveal, fill, stroke, transitionIn or transitionOut to null to remove that effect; omitting a field preserves it. For example: `Update(id, {volumeDb: -12})` or `Update(id, {transitionIn: null})`.\n\n#### Speed, reverse and freeze\n\nVideo/audio Insert and Update accept playback as `{kind: \"rate\", rate: number, direction: \"forward\" | \"reverse\", audio: \"preservePitch\" | \"resample\" | \"mute\"}` or `{kind: \"freeze\"}`. Rate is finite and inclusive 0.25–4. Omitted playback defaults to 1× forward with preservePitch; supply the complete rate object when changing playback. preservePitch keeps pitch, resample changes pitch with speed, mute removes audio. Reverse requires explicit audio: \"mute\"; preservePitch/resample are rejected with UNSUPPORTED_PLAYBACK rather than silently muted. Freeze holds sourceIn and is silent. GetItem/GetTimeline echo playback and the source interval in seconds; sourceOut is exclusive even for reverse and equals sourceIn for freeze.\n\nUpdate of playback keeps output length unless length is also supplied. SetSpeed preserves direction/audio, rejects frozen and non-video/audio clips, and requires keep: \"source\" or \"duration\". keep: \"source\" computes round(consumed source / new rate × fps) frames, falling back to floor if rounding would exceed the source end; the returned length/sourceOut are actual frame-rounded seconds. keep: \"duration\" keeps output length and changes source consumption. Length conflicts fail with OVERLAP; move/shorten the conflicting clip, keep duration, or explicitly use ripple: true to shift following clips on the same track. Source overflow fails with OUT_OF_SOURCE; rate limits fail with RATE_OUT_OF_RANGE. Unknown playback fields and SetSpeed options are rejected with UNKNOWN_FIELD; options only accept keep and boolean ripple.\n\nExample for an existing four-second video/audio clip id: `Print(SetSpeed(id, 0.5, {keep: \"source\"})); Print(SetSpeed(id, 2, {keep: \"source\"}));` returns lengths 8 then 2, keeping the same source interval. Reverse: `Update(id, {playback: {kind: \"rate\", rate: 1, direction: \"reverse\", audio: \"mute\"}})`. Freeze: `Update(id, {playback: {kind: \"freeze\"}})`. Ensure enough source remains for the chosen length/rate. Browser reverse playback currently displays a placeholder; server-rendered Preview/frames and exports support reverse normally. Speed-adjusted audio is generated asynchronously after the edit transaction commits; exports wait for that audio before rendering.\n\n#### Script names versus HTTP response names\n\nUse camelCase inside scripts, including nested objects. HTTP request/response JSON outside script source uses snake_case. Map media.library_id → media.libraryId, media.asset_id → media.assetId, source_in → sourceIn, volume_db → volumeDb, fade_in/fade_out → fadeIn/fadeOut, transition_in/transition_out → transitionIn/transitionOut, font_family/font_size/font_weight/max_width → fontFamily/fontSize/fontWeight/maxWidth, gain_db → gainDb, highlight_color/max_lines → highlightColor/maxLines. Fields such as animate, reveal, fill, stroke, at and length retain their spelling. GetTimeline/GetItem already return camelCase compact views; the expanded retrieveTimeline HTTP response is not an Insert object.\n\nUnrecognized script fields fail with OPS_REJECTED and rejection code UNKNOWN_FIELD; snake_case mistakes suggest the corresponding camelCase name. The error message lists each rejection's #opIndex, code and reason. Correct the named fields and retry the saved edit; do not assume an ignored field applied an effect.\n";
8350
+ readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `durationUs` is microseconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler or scene segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `AddTrack` — Add a video, audio or caption track.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; optional for video and audio.\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n";
8282
8351
  readonly http: "POST";
8283
8352
  readonly path: "/cut/v1/projects/{project_id}:execute";
8284
8353
  readonly streaming: "no";
@@ -8329,6 +8398,21 @@ export declare const operations: readonly [{
8329
8398
  readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8330
8399
  }];
8331
8400
  readonly query: readonly [];
8401
+ }, {
8402
+ readonly resource: "cut.renders";
8403
+ readonly method: "retrieve";
8404
+ readonly summary: "Retrieve draft range render";
8405
+ 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.";
8406
+ readonly http: "GET";
8407
+ readonly path: "/cut/v1/renders/{render_id}";
8408
+ readonly streaming: "no";
8409
+ readonly pagination: false;
8410
+ readonly pathParams: readonly [{
8411
+ readonly name: "render_id";
8412
+ readonly sdkName: "render_id";
8413
+ readonly description: "Draft render id (cutr_…) returned by projects.renders.create.";
8414
+ }];
8415
+ readonly query: readonly [];
8332
8416
  }, {
8333
8417
  readonly resource: "cut.versions";
8334
8418
  readonly method: "restore";
@@ -9129,654 +9213,905 @@ export declare const operations: readonly [{
9129
9213
  }];
9130
9214
  };
9131
9215
  }, {
9132
- readonly resource: "file.files";
9216
+ readonly resource: "devops.projects.testCases";
9133
9217
  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.";
9218
+ readonly summary: "List test cases";
9219
+ 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
9220
  readonly http: "GET";
9137
- readonly path: "/file/v1/files";
9221
+ readonly path: "/devops/v1/projects/{project}/test-cases";
9138
9222
  readonly streaming: "no";
9139
9223
  readonly pagination: false;
9140
- readonly pathParams: readonly [];
9224
+ readonly pathParams: readonly [{
9225
+ readonly name: "project";
9226
+ readonly sdkName: "project";
9227
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9228
+ }];
9141
9229
  readonly query: readonly [{
9142
- readonly name: "purpose";
9143
- readonly type: "string";
9230
+ readonly name: "pageSize";
9231
+ readonly type: "integer";
9144
9232
  readonly required: false;
9145
- readonly description: "Only return files with the given purpose.";
9233
+ 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
9234
  }, {
9147
- readonly name: "limit";
9148
- readonly type: "integer";
9235
+ readonly name: "pageToken";
9236
+ readonly type: "string";
9149
9237
  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";
9238
+ 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
9239
  }, {
9152
- readonly name: "order";
9240
+ readonly name: "filter";
9153
9241
  readonly type: "string";
9154
- readonly enum: readonly ["asc", "desc"];
9155
9242
  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";
9243
+ 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
9244
  }, {
9158
- readonly name: "after";
9245
+ readonly name: "orderBy";
9159
9246
  readonly type: "string";
9160
9247
  readonly required: false;
9161
- readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9248
+ 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.";
9249
+ }];
9250
+ }, {
9251
+ readonly resource: "devops.projects";
9252
+ readonly method: "retrieveTestCatalog";
9253
+ readonly summary: "Read a commit's test catalog";
9254
+ 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.";
9255
+ readonly http: "GET";
9256
+ readonly path: "/devops/v1/projects/{project}/test-catalog";
9257
+ readonly streaming: "no";
9258
+ readonly pagination: false;
9259
+ readonly pathParams: readonly [{
9260
+ readonly name: "project";
9261
+ readonly sdkName: "project";
9262
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9263
+ }];
9264
+ readonly query: readonly [{
9265
+ readonly name: "commit";
9266
+ readonly type: "string";
9267
+ readonly required: false;
9268
+ 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.";
9269
+ }];
9270
+ }, {
9271
+ readonly resource: "devops.projects.testPlans";
9272
+ readonly method: "list";
9273
+ readonly summary: "List test plans";
9274
+ 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.";
9275
+ readonly http: "GET";
9276
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9277
+ readonly streaming: "no";
9278
+ readonly pagination: false;
9279
+ readonly pathParams: readonly [{
9280
+ readonly name: "project";
9281
+ readonly sdkName: "project";
9282
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9283
+ }];
9284
+ readonly query: readonly [{
9285
+ readonly name: "pageSize";
9286
+ readonly type: "integer";
9287
+ readonly required: false;
9288
+ 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
9289
  }, {
9163
- readonly name: "scope_id";
9290
+ readonly name: "pageToken";
9164
9291
  readonly type: "string";
9165
9292
  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.";
9293
+ 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
9294
  }, {
9168
- readonly name: "before";
9295
+ readonly name: "orderBy";
9169
9296
  readonly type: "string";
9170
9297
  readonly required: false;
9171
- readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9298
+ 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
9299
  }];
9173
9300
  }, {
9174
- readonly resource: "file.files";
9301
+ readonly resource: "devops.projects.testPlans";
9175
9302
  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.";
9303
+ readonly summary: "Create a test plan";
9304
+ 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
9305
  readonly http: "POST";
9179
- readonly path: "/file/v1/files";
9306
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9180
9307
  readonly streaming: "no";
9181
9308
  readonly pagination: false;
9182
- readonly multipart: true;
9183
- readonly pathParams: readonly [];
9309
+ readonly pathParams: readonly [{
9310
+ readonly name: "project";
9311
+ readonly sdkName: "project";
9312
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9313
+ }];
9184
9314
  readonly query: readonly [];
9185
9315
  readonly body: {
9186
9316
  readonly required: true;
9187
9317
  readonly fields: readonly [{
9188
- readonly name: "file";
9318
+ readonly name: "key";
9189
9319
  readonly type: "string";
9190
9320
  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.";
9321
+ readonly description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused.";
9192
9322
  }, {
9193
- readonly name: "purpose";
9323
+ readonly name: "title";
9194
9324
  readonly type: "string";
9195
- readonly enum: readonly ["user_data", "assistants", "vision"];
9196
9325
  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.";
9326
+ readonly description: "Display title of the plan, shown wherever the plan is listed.";
9198
9327
  }, {
9199
- readonly name: "expires_after";
9328
+ readonly name: "stage";
9329
+ readonly type: "string";
9330
+ readonly enum: readonly ["dev", "presubmit", "postsubmit", "nightly", "production"];
9331
+ readonly required: true;
9332
+ readonly description: "Which stage of delivery this plan belongs to, which decides when it is expected to run.";
9333
+ }, {
9334
+ readonly name: "trigger";
9335
+ readonly type: "object";
9336
+ readonly required: true;
9337
+ readonly description: "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries.";
9338
+ }, {
9339
+ readonly name: "selector";
9200
9340
  readonly type: "object";
9341
+ readonly required: true;
9342
+ 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.";
9343
+ }, {
9344
+ readonly name: "environment";
9345
+ readonly type: "string";
9201
9346
  readonly required: false;
9202
- readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9347
+ 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.";
9348
+ }, {
9349
+ readonly name: "gate";
9350
+ readonly type: "string";
9351
+ readonly enum: readonly ["merge", "promotion", "observation", "none"];
9352
+ readonly required: true;
9353
+ readonly description: "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment.";
9354
+ }, {
9355
+ readonly name: "repeat";
9356
+ readonly type: "integer";
9357
+ readonly required: false;
9358
+ 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.";
9359
+ }, {
9360
+ readonly name: "timeoutMinutes";
9361
+ readonly type: "integer";
9362
+ readonly required: false;
9363
+ readonly description: "How many minutes a run of this plan may take before it is timed out; omit for the service's default.";
9203
9364
  }];
9204
9365
  };
9205
9366
  }, {
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/>\"}.";
9367
+ readonly resource: "devops.projects.testReports";
9368
+ readonly method: "create";
9369
+ readonly summary: "Upload an external test report";
9370
+ readonly description: "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. The report is folded into the run named by ref and the run's counts and verdict are recomputed from it. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe; a different reportId for the same run adds its results. Pass the run you created with executor external — a report for a run that does not exist is NOT_FOUND, never silently recorded against another run.";
9255
9371
  readonly http: "POST";
9256
- readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9372
+ readonly path: "/devops/v1/projects/{project}/test-reports";
9257
9373
  readonly streaming: "no";
9258
9374
  readonly pagination: false;
9259
9375
  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.";
9376
+ readonly name: "project";
9377
+ readonly sdkName: "project";
9378
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9263
9379
  }];
9264
9380
  readonly query: readonly [];
9265
9381
  readonly body: {
9266
9382
  readonly required: true;
9267
9383
  readonly fields: readonly [{
9268
- readonly name: "token";
9384
+ readonly name: "reportId";
9269
9385
  readonly type: "string";
9270
9386
  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.";
9387
+ 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.";
9388
+ }, {
9389
+ readonly name: "format";
9390
+ readonly type: "string";
9391
+ readonly enum: readonly ["ctrf", "junit"];
9392
+ readonly required: true;
9393
+ readonly description: "Which report format the document is in; it decides how the document is parsed.";
9394
+ }, {
9395
+ readonly name: "ref";
9396
+ readonly type: "object";
9397
+ readonly required: true;
9398
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9399
+ }, {
9400
+ readonly name: "report";
9401
+ readonly type: "string";
9402
+ readonly required: true;
9403
+ 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
9404
  }];
9273
9405
  };
9274
9406
  }, {
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";
9407
+ readonly resource: "devops.projects.testRuns";
9408
+ readonly method: "list";
9409
+ readonly summary: "List test runs";
9410
+ 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.";
9411
+ readonly http: "GET";
9412
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9281
9413
  readonly streaming: "no";
9282
9414
  readonly pagination: false;
9283
9415
  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.";
9416
+ readonly name: "project";
9417
+ readonly sdkName: "project";
9418
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9287
9419
  }];
9288
- readonly query: readonly [];
9289
- readonly body: {
9420
+ readonly query: readonly [{
9421
+ readonly name: "pageSize";
9422
+ readonly type: "integer";
9290
9423
  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
- };
9424
+ 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.";
9425
+ }, {
9426
+ readonly name: "pageToken";
9427
+ readonly type: "string";
9428
+ readonly required: false;
9429
+ 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.";
9430
+ }, {
9431
+ readonly name: "filter";
9432
+ readonly type: "string";
9433
+ readonly required: false;
9434
+ 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.";
9435
+ }, {
9436
+ readonly name: "orderBy";
9437
+ readonly type: "string";
9438
+ readonly required: false;
9439
+ 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.";
9440
+ }];
9298
9441
  }, {
9299
- readonly resource: "file.uploads";
9442
+ readonly resource: "devops.projects.testRuns";
9300
9443
  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.";
9444
+ readonly summary: "Create a test run";
9445
+ 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 returns as soon as the run exists, finished waits for a verdict and may take minutes. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.";
9303
9446
  readonly http: "POST";
9304
- readonly path: "/file/v1/uploads";
9447
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9305
9448
  readonly streaming: "no";
9306
9449
  readonly pagination: false;
9307
- readonly pathParams: readonly [];
9450
+ readonly pathParams: readonly [{
9451
+ readonly name: "project";
9452
+ readonly sdkName: "project";
9453
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9454
+ }];
9308
9455
  readonly query: readonly [];
9309
9456
  readonly body: {
9310
9457
  readonly required: true;
9311
9458
  readonly fields: readonly [{
9312
- readonly name: "bytes";
9313
- readonly type: "integer";
9459
+ readonly name: "ref";
9460
+ readonly type: "object";
9314
9461
  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.";
9462
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9316
9463
  }, {
9317
- readonly name: "filename";
9464
+ readonly name: "plan";
9318
9465
  readonly type: "string";
9319
- readonly required: true;
9320
- readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9466
+ readonly required: false;
9467
+ 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
9468
  }, {
9322
- readonly name: "mime_type";
9323
- readonly type: "string";
9324
- readonly required: true;
9325
- readonly description: "Declared MIME type; validated against the assembled content.";
9469
+ readonly name: "selector";
9470
+ readonly type: "object";
9471
+ readonly required: false;
9472
+ 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.";
9326
9473
  }, {
9327
- readonly name: "purpose";
9474
+ readonly name: "environment";
9328
9475
  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.";
9332
- }, {
9333
- readonly name: "expires_after";
9334
- readonly type: "object";
9335
9476
  readonly required: false;
9336
- readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9477
+ readonly description: "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment.";
9337
9478
  }, {
9338
- readonly name: "part_size";
9479
+ readonly name: "repeat";
9339
9480
  readonly type: "integer";
9340
9481
  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.";
9482
+ readonly description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once.";
9483
+ }, {
9484
+ readonly name: "waitUntil";
9485
+ readonly type: "string";
9486
+ readonly enum: readonly ["queued", "started", "finished"];
9487
+ readonly required: false;
9488
+ readonly description: "How far the call waits before answering — queued returns at once, started waits for execution to begin, finished waits for a verdict and may take minutes.";
9342
9489
  }];
9343
9490
  };
9344
9491
  }, {
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";
9492
+ readonly resource: "devops.projects.testSuites";
9493
+ readonly method: "list";
9494
+ readonly summary: "List test suites";
9495
+ 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.";
9496
+ readonly http: "GET";
9497
+ readonly path: "/devops/v1/projects/{project}/test-suites";
9351
9498
  readonly streaming: "no";
9352
9499
  readonly pagination: false;
9353
- readonly pathParams: readonly [];
9500
+ readonly pathParams: readonly [{
9501
+ readonly name: "project";
9502
+ readonly sdkName: "project";
9503
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9504
+ }];
9505
+ readonly query: readonly [{
9506
+ readonly name: "pageSize";
9507
+ readonly type: "integer";
9508
+ readonly required: false;
9509
+ 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.";
9510
+ }, {
9511
+ readonly name: "pageToken";
9512
+ readonly type: "string";
9513
+ readonly required: false;
9514
+ 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.";
9515
+ }, {
9516
+ readonly name: "orderBy";
9517
+ readonly type: "string";
9518
+ readonly required: false;
9519
+ 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.";
9520
+ }];
9521
+ }, {
9522
+ readonly resource: "devops.testCases";
9523
+ readonly method: "retrieve";
9524
+ readonly summary: "Retrieve a test case";
9525
+ 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.";
9526
+ readonly http: "GET";
9527
+ readonly path: "/devops/v1/test-cases/{id}";
9528
+ readonly streaming: "no";
9529
+ readonly pagination: false;
9530
+ readonly pathParams: readonly [{
9531
+ readonly name: "id";
9532
+ readonly sdkName: "id";
9533
+ readonly description: "The case identifier returned by a case list, or an older id listed in that case's aliases.";
9534
+ }];
9535
+ readonly query: readonly [];
9536
+ }, {
9537
+ readonly resource: "devops.testPlans";
9538
+ readonly method: "delete";
9539
+ readonly summary: "Delete a test plan";
9540
+ 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.";
9541
+ readonly http: "DELETE";
9542
+ readonly path: "/devops/v1/test-plans/{id}";
9543
+ readonly streaming: "no";
9544
+ readonly pagination: false;
9545
+ readonly pathParams: readonly [{
9546
+ readonly name: "id";
9547
+ readonly sdkName: "id";
9548
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9549
+ }];
9550
+ readonly query: readonly [];
9551
+ }, {
9552
+ readonly resource: "devops.testPlans";
9553
+ readonly method: "retrieve";
9554
+ readonly summary: "Retrieve a test plan";
9555
+ 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.";
9556
+ readonly http: "GET";
9557
+ readonly path: "/devops/v1/test-plans/{id}";
9558
+ readonly streaming: "no";
9559
+ readonly pagination: false;
9560
+ readonly pathParams: readonly [{
9561
+ readonly name: "id";
9562
+ readonly sdkName: "id";
9563
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9564
+ }];
9565
+ readonly query: readonly [];
9566
+ }, {
9567
+ readonly resource: "devops.testPlans";
9568
+ readonly method: "update";
9569
+ readonly summary: "Update a test plan";
9570
+ 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.";
9571
+ readonly http: "PATCH";
9572
+ readonly path: "/devops/v1/test-plans/{id}";
9573
+ readonly streaming: "no";
9574
+ readonly pagination: false;
9575
+ readonly pathParams: readonly [{
9576
+ readonly name: "id";
9577
+ readonly sdkName: "id";
9578
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9579
+ }];
9354
9580
  readonly query: readonly [];
9355
9581
  readonly body: {
9356
9582
  readonly required: true;
9357
9583
  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";
9584
+ readonly name: "plan";
9585
+ readonly type: "object";
9370
9586
  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.";
9587
+ 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
9588
  }, {
9373
- readonly name: "purpose";
9589
+ readonly name: "updateMask";
9374
9590
  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
- 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
9591
  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.";
9592
+ 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
9593
  }];
9389
9594
  };
9390
9595
  }, {
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.";
9596
+ readonly resource: "devops.testPlans";
9597
+ readonly method: "pause";
9598
+ readonly summary: "Pause a test plan";
9599
+ 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
9600
  readonly http: "POST";
9411
- readonly path: "/file/v1/uploads/{upload_id}/complete";
9601
+ readonly path: "/devops/v1/test-plans/{id}:pause";
9412
9602
  readonly streaming: "no";
9413
9603
  readonly pagination: false;
9414
9604
  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.";
9605
+ readonly name: "id";
9606
+ readonly sdkName: "id";
9607
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9418
9608
  }];
9419
9609
  readonly query: readonly [];
9420
9610
  readonly body: {
9421
9611
  readonly required: true;
9422
9612
  readonly fields: readonly [{
9423
- readonly name: "part_ids";
9424
- readonly type: "array";
9425
- readonly itemType: "string";
9613
+ readonly name: "reason";
9614
+ readonly type: "string";
9426
9615
  readonly required: true;
9427
- readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
9616
+ readonly description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped.";
9428
9617
  }, {
9429
- readonly name: "md5";
9618
+ readonly name: "until";
9430
9619
  readonly type: "string";
9431
9620
  readonly required: false;
9432
- readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
9621
+ readonly description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it.";
9433
9622
  }];
9434
9623
  };
9435
9624
  }, {
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.";
9625
+ readonly resource: "devops.testPlans";
9626
+ readonly method: "resume";
9627
+ readonly summary: "Resume a test plan";
9628
+ 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
9629
  readonly http: "POST";
9441
- readonly path: "/file/v1/uploads/{upload_id}/parts";
9630
+ readonly path: "/devops/v1/test-plans/{id}:resume";
9442
9631
  readonly streaming: "no";
9443
9632
  readonly pagination: false;
9444
- readonly multipart: true;
9445
9633
  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.";
9634
+ readonly name: "id";
9635
+ readonly sdkName: "id";
9636
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9637
+ }];
9638
+ readonly query: readonly [];
9639
+ }, {
9640
+ readonly resource: "devops.testRuns";
9641
+ readonly method: "retrieve";
9642
+ readonly summary: "Retrieve a test run";
9643
+ 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.";
9644
+ readonly http: "GET";
9645
+ readonly path: "/devops/v1/test-runs/{id}";
9646
+ readonly streaming: "no";
9647
+ readonly pagination: false;
9648
+ readonly pathParams: readonly [{
9649
+ readonly name: "id";
9650
+ readonly sdkName: "id";
9651
+ readonly description: "The run identifier returned by a run list or create answer.";
9449
9652
  }];
9450
9653
  readonly query: readonly [{
9451
- readonly name: "part_number";
9452
- readonly type: "integer";
9654
+ readonly name: "expand";
9655
+ readonly type: "array";
9656
+ readonly itemType: "string";
9657
+ readonly enum: readonly ["failedExecutions"];
9453
9658
  readonly required: false;
9454
- readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9659
+ 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.";
9660
+ }];
9661
+ }, {
9662
+ readonly resource: "devops.testRuns";
9663
+ readonly method: "cancel";
9664
+ readonly summary: "Cancel a test run";
9665
+ 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.";
9666
+ readonly http: "POST";
9667
+ readonly path: "/devops/v1/test-runs/{id}:cancel";
9668
+ readonly streaming: "no";
9669
+ readonly pagination: false;
9670
+ readonly pathParams: readonly [{
9671
+ readonly name: "id";
9672
+ readonly sdkName: "id";
9673
+ readonly description: "The run identifier returned by a run list or create answer.";
9455
9674
  }];
9675
+ readonly query: readonly [];
9456
9676
  readonly body: {
9457
9677
  readonly required: true;
9458
9678
  readonly fields: readonly [{
9459
- readonly name: "data";
9679
+ readonly name: "reason";
9460
9680
  readonly type: "string";
9461
9681
  readonly required: true;
9462
- readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
9682
+ 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
9683
  }];
9464
9684
  };
9465
9685
  }, {
9466
- readonly resource: "knowledge.vectorStores";
9686
+ readonly resource: "devops.testRuns.executions";
9467
9687
  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.";
9688
+ readonly summary: "List a run's executions";
9689
+ 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
9690
  readonly http: "GET";
9471
- readonly path: "/knowledge/v1/vector_stores";
9691
+ readonly path: "/devops/v1/test-runs/{run}/executions";
9472
9692
  readonly streaming: "no";
9473
9693
  readonly pagination: false;
9474
- readonly pathParams: readonly [];
9694
+ readonly pathParams: readonly [{
9695
+ readonly name: "run";
9696
+ readonly sdkName: "run";
9697
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9698
+ }];
9475
9699
  readonly query: readonly [{
9476
- readonly name: "status";
9700
+ readonly name: "pageSize";
9701
+ readonly type: "integer";
9702
+ readonly required: false;
9703
+ 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.";
9704
+ }, {
9705
+ readonly name: "pageToken";
9477
9706
  readonly type: "string";
9478
- readonly enum: readonly ["active", "deleting"];
9479
9707
  readonly required: false;
9480
- readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
9708
+ 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
9709
  }, {
9482
- readonly name: "after";
9710
+ readonly name: "orderBy";
9483
9711
  readonly type: "string";
9484
9712
  readonly required: false;
9485
- readonly description: "Cursor ID from the previous page.";
9713
+ 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.";
9714
+ }];
9715
+ }, {
9716
+ readonly resource: "devops.testRuns.executions";
9717
+ readonly method: "retrieve";
9718
+ readonly summary: "Retrieve one case's execution in a run";
9719
+ 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.";
9720
+ readonly http: "GET";
9721
+ readonly path: "/devops/v1/test-runs/{run}/executions/{case}";
9722
+ readonly streaming: "no";
9723
+ readonly pagination: false;
9724
+ readonly pathParams: readonly [{
9725
+ readonly name: "run";
9726
+ readonly sdkName: "run";
9727
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9486
9728
  }, {
9487
- readonly name: "before";
9729
+ readonly name: "case";
9730
+ readonly sdkName: "case";
9731
+ readonly description: "The case to read inside that run, from the run's execution list or the project's case list.";
9732
+ }];
9733
+ readonly query: readonly [];
9734
+ }, {
9735
+ readonly resource: "devops.testSuites";
9736
+ readonly method: "retrieve";
9737
+ readonly summary: "Retrieve a test suite";
9738
+ 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.";
9739
+ readonly http: "GET";
9740
+ readonly path: "/devops/v1/test-suites/{id}";
9741
+ readonly streaming: "no";
9742
+ readonly pagination: false;
9743
+ readonly pathParams: readonly [{
9744
+ readonly name: "id";
9745
+ readonly sdkName: "id";
9746
+ readonly description: "The suite identifier returned by a suite list, not the file path it was discovered from.";
9747
+ }];
9748
+ readonly query: readonly [];
9749
+ }, {
9750
+ readonly resource: "file.files";
9751
+ readonly method: "list";
9752
+ readonly summary: "List files";
9753
+ 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.";
9754
+ readonly http: "GET";
9755
+ readonly path: "/file/v1/files";
9756
+ readonly streaming: "no";
9757
+ readonly pagination: false;
9758
+ readonly pathParams: readonly [];
9759
+ readonly query: readonly [{
9760
+ readonly name: "purpose";
9488
9761
  readonly type: "string";
9489
9762
  readonly required: false;
9490
- readonly description: "Return items before this ID.";
9763
+ readonly description: "Only return files with the given purpose.";
9491
9764
  }, {
9492
9765
  readonly name: "limit";
9493
9766
  readonly type: "integer";
9494
9767
  readonly required: false;
9495
- readonly description: "Page size.";
9768
+ 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
9769
  }, {
9497
9770
  readonly name: "order";
9498
9771
  readonly type: "string";
9499
9772
  readonly enum: readonly ["asc", "desc"];
9500
9773
  readonly required: false;
9501
- readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9774
+ readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
9775
+ }, {
9776
+ readonly name: "after";
9777
+ readonly type: "string";
9778
+ readonly required: false;
9779
+ readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9780
+ }, {
9781
+ readonly name: "scope_id";
9782
+ readonly type: "string";
9783
+ readonly required: false;
9784
+ 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.";
9785
+ }, {
9786
+ readonly name: "before";
9787
+ readonly type: "string";
9788
+ readonly required: false;
9789
+ readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9502
9790
  }];
9503
9791
  }, {
9504
- readonly resource: "knowledge.vectorStores";
9792
+ readonly resource: "file.files";
9505
9793
  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. 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\"}.";
9794
+ readonly summary: "Upload file";
9795
+ 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
9796
  readonly http: "POST";
9509
- readonly path: "/knowledge/v1/vector_stores";
9797
+ readonly path: "/file/v1/files";
9510
9798
  readonly streaming: "no";
9511
9799
  readonly pagination: false;
9800
+ readonly multipart: true;
9512
9801
  readonly pathParams: readonly [];
9513
9802
  readonly query: readonly [];
9514
9803
  readonly body: {
9515
9804
  readonly required: true;
9516
9805
  readonly fields: readonly [{
9517
- readonly name: "name";
9806
+ readonly name: "file";
9518
9807
  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: "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.";
9808
+ readonly required: true;
9809
+ 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
9810
  }, {
9543
- readonly name: "description";
9811
+ readonly name: "purpose";
9544
9812
  readonly type: "string";
9545
- readonly required: false;
9546
- readonly description: "Accepted but not saved or returned; its type is not validated.";
9813
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9814
+ readonly required: true;
9815
+ 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
9816
  }, {
9548
- readonly name: "models";
9817
+ readonly name: "expires_after";
9549
9818
  readonly type: "object";
9550
9819
  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.";
9820
+ readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9552
9821
  }];
9553
9822
  };
9554
9823
  }, {
9555
- readonly resource: "knowledge.vectorStores";
9824
+ readonly resource: "file.files";
9556
9825
  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.";
9826
+ readonly summary: "Delete file";
9827
+ readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
9559
9828
  readonly http: "DELETE";
9560
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9829
+ readonly path: "/file/v1/files/{file_id}";
9561
9830
  readonly streaming: "no";
9562
9831
  readonly pagination: false;
9563
9832
  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.";
9833
+ readonly name: "file_id";
9834
+ readonly sdkName: "file_id";
9835
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9567
9836
  }];
9568
9837
  readonly query: readonly [];
9569
9838
  }, {
9570
- readonly resource: "knowledge.vectorStores";
9839
+ readonly resource: "file.files";
9571
9840
  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.";
9841
+ readonly summary: "Retrieve file";
9842
+ 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
9843
  readonly http: "GET";
9575
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9844
+ readonly path: "/file/v1/files/{file_id}";
9576
9845
  readonly streaming: "no";
9577
9846
  readonly pagination: false;
9578
9847
  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.";
9848
+ readonly name: "file_id";
9849
+ readonly sdkName: "file_id";
9850
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9582
9851
  }];
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.";
9852
+ readonly query: readonly [];
9853
+ }, {
9854
+ readonly resource: "file.files";
9855
+ readonly method: "retrieveContent";
9856
+ readonly summary: "Retrieve file content";
9857
+ 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.";
9858
+ readonly http: "GET";
9859
+ readonly path: "/file/v1/files/{file_id}/content";
9860
+ readonly streaming: "no";
9861
+ readonly pagination: false;
9862
+ readonly pathParams: readonly [{
9863
+ readonly name: "file_id";
9864
+ readonly sdkName: "file_id";
9865
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9597
9866
  }];
9867
+ readonly query: readonly [];
9598
9868
  }, {
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\"}.";
9869
+ readonly resource: "file.files.contentLinks";
9870
+ readonly method: "revoke";
9871
+ readonly summary: "Revoke a file content link";
9872
+ 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
9873
  readonly http: "POST";
9604
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9874
+ readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9605
9875
  readonly streaming: "no";
9606
9876
  readonly pagination: false;
9607
9877
  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.";
9878
+ readonly name: "file_id";
9879
+ readonly sdkName: "file_id";
9880
+ readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
9611
9881
  }];
9612
9882
  readonly query: readonly [];
9613
9883
  readonly body: {
9614
9884
  readonly required: true;
9615
9885
  readonly fields: readonly [{
9616
- readonly name: "name";
9886
+ readonly name: "token";
9617
9887
  readonly type: "string";
9888
+ readonly required: true;
9889
+ readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
9890
+ }];
9891
+ };
9892
+ }, {
9893
+ readonly resource: "file.files.contentUrl";
9894
+ readonly method: "create";
9895
+ readonly summary: "Create a download URL";
9896
+ 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}.";
9897
+ readonly http: "POST";
9898
+ readonly path: "/file/v1/files/{file_id}/content_url";
9899
+ readonly streaming: "no";
9900
+ readonly pagination: false;
9901
+ readonly pathParams: readonly [{
9902
+ readonly name: "file_id";
9903
+ readonly sdkName: "file_id";
9904
+ readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
9905
+ }];
9906
+ readonly query: readonly [];
9907
+ readonly body: {
9908
+ readonly required: false;
9909
+ readonly fields: readonly [{
9910
+ readonly name: "ttl_seconds";
9911
+ readonly type: "integer";
9618
9912
  readonly required: false;
9619
- readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
9913
+ readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
9914
+ }];
9915
+ };
9916
+ }, {
9917
+ readonly resource: "file.uploads";
9918
+ readonly method: "create";
9919
+ readonly summary: "Create an upload";
9920
+ 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.";
9921
+ readonly http: "POST";
9922
+ readonly path: "/file/v1/uploads";
9923
+ readonly streaming: "no";
9924
+ readonly pagination: false;
9925
+ readonly pathParams: readonly [];
9926
+ readonly query: readonly [];
9927
+ readonly body: {
9928
+ readonly required: true;
9929
+ readonly fields: readonly [{
9930
+ readonly name: "bytes";
9931
+ readonly type: "integer";
9932
+ readonly required: true;
9933
+ readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
9620
9934
  }, {
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.";
9935
+ readonly name: "filename";
9936
+ readonly type: "string";
9937
+ readonly required: true;
9938
+ readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9939
+ }, {
9940
+ readonly name: "mime_type";
9941
+ readonly type: "string";
9942
+ readonly required: true;
9943
+ readonly description: "Declared MIME type; validated against the assembled content.";
9944
+ }, {
9945
+ readonly name: "purpose";
9946
+ readonly type: "string";
9947
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9948
+ readonly required: true;
9949
+ readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
9625
9950
  }, {
9626
9951
  readonly name: "expires_after";
9627
9952
  readonly type: "object";
9628
9953
  readonly required: false;
9629
- readonly description: "null removes automatic expiry.";
9954
+ readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9630
9955
  }, {
9631
- readonly name: "models";
9632
- readonly type: "object";
9956
+ readonly name: "part_size";
9957
+ readonly type: "integer";
9633
9958
  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.";
9959
+ 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.";
9635
9960
  }];
9636
9961
  };
9637
9962
  }, {
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";
9644
- readonly streaming: "no";
9645
- readonly pagination: false;
9646
- 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.";
9650
- }];
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";
9659
- readonly required: false;
9660
- readonly description: "Page size.";
9661
- }];
9662
- }, {
9663
- readonly resource: "knowledge.vectorStores.fileBatches";
9664
- 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.";
9963
+ readonly resource: "file.uploads";
9964
+ readonly method: "createSigned";
9965
+ readonly summary: "Create a one-time upload URL";
9966
+ 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\"}.";
9667
9967
  readonly http: "POST";
9668
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
9968
+ readonly path: "/file/v1/uploads/signed";
9669
9969
  readonly streaming: "no";
9670
9970
  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
- }];
9971
+ readonly pathParams: readonly [];
9676
9972
  readonly query: readonly [];
9677
9973
  readonly body: {
9678
9974
  readonly required: true;
9679
- readonly fields: readonly [];
9975
+ readonly fields: readonly [{
9976
+ readonly name: "filename";
9977
+ readonly type: "string";
9978
+ readonly required: true;
9979
+ readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
9980
+ }, {
9981
+ readonly name: "bytes";
9982
+ readonly type: "integer";
9983
+ readonly required: true;
9984
+ 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.";
9985
+ }, {
9986
+ readonly name: "content_type";
9987
+ readonly type: "string";
9988
+ readonly required: true;
9989
+ 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.";
9990
+ }, {
9991
+ readonly name: "purpose";
9992
+ readonly type: "string";
9993
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9994
+ readonly required: false;
9995
+ 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.";
9996
+ }, {
9997
+ readonly name: "expires_in";
9998
+ readonly type: "integer";
9999
+ readonly required: false;
10000
+ 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.";
10001
+ }, {
10002
+ readonly name: "part_size";
10003
+ readonly type: "integer";
10004
+ readonly required: false;
10005
+ 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.";
10006
+ }];
9680
10007
  };
9681
10008
  }, {
9682
- readonly resource: "knowledge.vectorStores.fileBatches";
10009
+ readonly resource: "file.uploads";
9683
10010
  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.";
10011
+ readonly summary: "Retrieve an upload";
10012
+ 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.";
9686
10013
  readonly http: "GET";
9687
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
10014
+ readonly path: "/file/v1/uploads/{upload_id}";
9688
10015
  readonly streaming: "no";
9689
10016
  readonly pagination: false;
9690
10017
  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.";
10018
+ readonly name: "upload_id";
10019
+ readonly sdkName: "upload_id";
10020
+ readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
9698
10021
  }];
9699
10022
  readonly query: readonly [];
9700
10023
  }, {
9701
- readonly resource: "knowledge.vectorStores.fileBatches";
10024
+ readonly resource: "file.uploads";
9702
10025
  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).";
10026
+ readonly summary: "Cancel an upload";
10027
+ 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.";
9705
10028
  readonly http: "POST";
9706
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
10029
+ readonly path: "/file/v1/uploads/{upload_id}/cancel";
9707
10030
  readonly streaming: "no";
9708
10031
  readonly pagination: false;
9709
10032
  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.";
10033
+ readonly name: "upload_id";
10034
+ readonly sdkName: "upload_id";
10035
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
9717
10036
  }];
9718
10037
  readonly query: readonly [];
9719
10038
  }, {
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.";
9724
- readonly http: "GET";
9725
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
10039
+ readonly resource: "file.uploads";
10040
+ readonly method: "complete";
10041
+ readonly summary: "Complete an upload";
10042
+ 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.";
10043
+ readonly http: "POST";
10044
+ readonly path: "/file/v1/uploads/{upload_id}/complete";
9726
10045
  readonly streaming: "no";
9727
10046
  readonly pagination: false;
9728
10047
  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.";
10048
+ readonly name: "upload_id";
10049
+ readonly sdkName: "upload_id";
10050
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
10051
+ }];
10052
+ readonly query: readonly [];
10053
+ readonly body: {
10054
+ readonly required: true;
10055
+ readonly fields: readonly [{
10056
+ readonly name: "part_ids";
10057
+ readonly type: "array";
10058
+ readonly itemType: "string";
10059
+ readonly required: true;
10060
+ readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
10061
+ }, {
10062
+ readonly name: "md5";
10063
+ readonly type: "string";
10064
+ readonly required: false;
10065
+ readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
10066
+ }];
10067
+ };
10068
+ }, {
10069
+ readonly resource: "file.uploads.parts";
10070
+ readonly method: "create";
10071
+ readonly summary: "Add an upload part";
10072
+ 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.";
10073
+ readonly http: "POST";
10074
+ readonly path: "/file/v1/uploads/{upload_id}/parts";
10075
+ readonly streaming: "no";
10076
+ readonly pagination: false;
10077
+ readonly multipart: true;
10078
+ readonly pathParams: readonly [{
10079
+ readonly name: "upload_id";
10080
+ readonly sdkName: "upload_id";
10081
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
9736
10082
  }];
9737
10083
  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";
10084
+ readonly name: "part_number";
9749
10085
  readonly type: "integer";
9750
10086
  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.";
10087
+ readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9764
10088
  }];
10089
+ readonly body: {
10090
+ readonly required: true;
10091
+ readonly fields: readonly [{
10092
+ readonly name: "data";
10093
+ readonly type: "string";
10094
+ readonly required: true;
10095
+ readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
10096
+ }];
10097
+ };
9765
10098
  }, {
9766
- readonly resource: "knowledge.vectorStores.files";
10099
+ readonly resource: "knowledge.vectorStores";
9767
10100
  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.";
10101
+ readonly summary: "List knowledge bases";
10102
+ 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
10103
  readonly http: "GET";
9771
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10104
+ readonly path: "/knowledge/v1/vector_stores";
9772
10105
  readonly streaming: "no";
9773
10106
  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
- }];
10107
+ readonly pathParams: readonly [];
9779
10108
  readonly query: readonly [{
10109
+ readonly name: "status";
10110
+ readonly type: "string";
10111
+ readonly enum: readonly ["active", "deleting"];
10112
+ readonly required: false;
10113
+ readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
10114
+ }, {
9780
10115
  readonly name: "after";
9781
10116
  readonly type: "string";
9782
10117
  readonly required: false;
@@ -9797,139 +10132,192 @@ export declare const operations: readonly [{
9797
10132
  readonly enum: readonly ["asc", "desc"];
9798
10133
  readonly required: false;
9799
10134
  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
10135
  }];
9807
10136
  }, {
9808
- readonly resource: "knowledge.vectorStores.files";
10137
+ readonly resource: "knowledge.vectorStores";
9809
10138
  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. 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.";
10139
+ readonly summary: "Create knowledge base";
10140
+ 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
10141
  readonly http: "POST";
9813
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10142
+ readonly path: "/knowledge/v1/vector_stores";
9814
10143
  readonly streaming: "no";
9815
10144
  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
- }];
10145
+ readonly pathParams: readonly [];
9821
10146
  readonly query: readonly [];
9822
10147
  readonly body: {
9823
10148
  readonly required: true;
9824
10149
  readonly fields: readonly [{
9825
- readonly name: "file_id";
10150
+ readonly name: "name";
9826
10151
  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.";
10152
+ readonly required: false;
10153
+ readonly description: "Omitted name becomes an empty string; null is rejected.";
9829
10154
  }, {
9830
- readonly name: "attributes";
10155
+ readonly name: "metadata";
9831
10156
  readonly type: "object";
9832
10157
  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.";
10158
+ readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
10159
+ }, {
10160
+ readonly name: "expires_after";
10161
+ readonly type: "object";
10162
+ readonly required: false;
10163
+ readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
10164
+ }, {
10165
+ readonly name: "file_ids";
10166
+ readonly type: "array";
10167
+ readonly itemType: "string";
10168
+ readonly required: false;
10169
+ readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
9834
10170
  }, {
9835
10171
  readonly name: "chunking_strategy";
9836
10172
  readonly type: "object";
9837
10173
  readonly required: false;
9838
10174
  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.";
10175
+ }, {
10176
+ readonly name: "description";
10177
+ readonly type: "string";
10178
+ readonly required: false;
10179
+ readonly description: "Accepted but not saved or returned; its type is not validated.";
10180
+ }, {
10181
+ readonly name: "models";
10182
+ readonly type: "object";
10183
+ readonly required: false;
10184
+ 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
10185
  }];
9840
10186
  };
9841
10187
  }, {
9842
- readonly resource: "knowledge.vectorStores.files";
10188
+ readonly resource: "knowledge.vectorStores";
9843
10189
  readonly method: "delete";
9844
- readonly summary: "Remove file";
9845
- readonly description: "Removes the file from search immediately; does not delete the original File.";
10190
+ readonly summary: "Delete knowledge base";
10191
+ 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
10192
  readonly http: "DELETE";
9847
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10193
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9848
10194
  readonly streaming: "no";
9849
10195
  readonly pagination: false;
9850
10196
  readonly pathParams: readonly [{
9851
10197
  readonly name: "vector_store_id";
9852
10198
  readonly sdkName: "vector_store_id";
9853
10199
  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
10200
  }];
9859
10201
  readonly query: readonly [];
9860
10202
  }, {
9861
- readonly resource: "knowledge.vectorStores.files";
10203
+ readonly resource: "knowledge.vectorStores";
9862
10204
  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.";
10205
+ readonly summary: "Retrieve knowledge base";
10206
+ 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
10207
  readonly http: "GET";
9866
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10208
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9867
10209
  readonly streaming: "no";
9868
10210
  readonly pagination: false;
9869
10211
  readonly pathParams: readonly [{
9870
10212
  readonly name: "vector_store_id";
9871
10213
  readonly sdkName: "vector_store_id";
9872
10214
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10215
+ }];
10216
+ readonly query: readonly [{
10217
+ readonly name: "expand";
10218
+ readonly type: "array";
10219
+ readonly itemType: "string";
10220
+ readonly enum: readonly ["files"];
10221
+ readonly required: false;
10222
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9873
10223
  }, {
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.";
10224
+ readonly name: "expand[]";
10225
+ readonly type: "array";
10226
+ readonly itemType: "string";
10227
+ readonly enum: readonly ["files"];
10228
+ readonly required: false;
10229
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9877
10230
  }];
9878
- readonly query: readonly [];
9879
10231
  }, {
9880
- readonly resource: "knowledge.vectorStores.files";
10232
+ readonly resource: "knowledge.vectorStores";
9881
10233
  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.";
10234
+ readonly summary: "Update knowledge base";
10235
+ 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\"}.";
9884
10236
  readonly http: "POST";
9885
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10237
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9886
10238
  readonly streaming: "no";
9887
10239
  readonly pagination: false;
9888
10240
  readonly pathParams: readonly [{
9889
10241
  readonly name: "vector_store_id";
9890
10242
  readonly sdkName: "vector_store_id";
9891
10243
  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
10244
  }];
9897
10245
  readonly query: readonly [];
9898
10246
  readonly body: {
9899
10247
  readonly required: true;
9900
10248
  readonly fields: readonly [{
9901
- readonly name: "attributes";
10249
+ readonly name: "name";
10250
+ readonly type: "string";
10251
+ readonly required: false;
10252
+ readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
10253
+ }, {
10254
+ readonly name: "metadata";
9902
10255
  readonly type: "object";
9903
10256
  readonly required: false;
9904
- readonly description: "Replaces all search-filter attributes; null clears them.";
10257
+ readonly description: "Replaces all metadata; null clears it to an empty object.";
10258
+ }, {
10259
+ readonly name: "expires_after";
10260
+ readonly type: "object";
10261
+ readonly required: false;
10262
+ readonly description: "null removes automatic expiry.";
10263
+ }, {
10264
+ readonly name: "models";
10265
+ readonly type: "object";
10266
+ readonly required: false;
10267
+ 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
10268
  }];
9906
10269
  };
9907
10270
  }, {
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.";
10271
+ readonly resource: "knowledge.vectorStores.events";
10272
+ readonly method: "list";
10273
+ readonly summary: "List events";
10274
+ 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
10275
  readonly http: "GET";
9913
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10276
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
9914
10277
  readonly streaming: "no";
9915
10278
  readonly pagination: false;
9916
10279
  readonly pathParams: readonly [{
9917
10280
  readonly name: "vector_store_id";
9918
10281
  readonly sdkName: "vector_store_id";
9919
10282
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10283
+ }];
10284
+ readonly query: readonly [{
10285
+ readonly name: "after_seq";
10286
+ readonly type: "integer";
10287
+ readonly required: false;
10288
+ readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
9920
10289
  }, {
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.";
10290
+ readonly name: "limit";
10291
+ readonly type: "integer";
10292
+ readonly required: false;
10293
+ readonly description: "Page size.";
9924
10294
  }];
9925
- readonly query: readonly [];
9926
10295
  }, {
9927
- readonly resource: "knowledge.vectorStores.files.retry";
10296
+ readonly resource: "knowledge.vectorStores.fileBatches";
9928
10297
  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.";
10298
+ readonly summary: "Create file batch";
10299
+ 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
10300
  readonly http: "POST";
9932
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10301
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
10302
+ readonly streaming: "no";
10303
+ readonly pagination: false;
10304
+ readonly pathParams: readonly [{
10305
+ readonly name: "vector_store_id";
10306
+ readonly sdkName: "vector_store_id";
10307
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10308
+ }];
10309
+ readonly query: readonly [];
10310
+ readonly body: {
10311
+ readonly required: true;
10312
+ readonly fields: readonly [];
10313
+ };
10314
+ }, {
10315
+ readonly resource: "knowledge.vectorStores.fileBatches";
10316
+ readonly method: "retrieve";
10317
+ readonly summary: "Retrieve file batch";
10318
+ 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.";
10319
+ readonly http: "GET";
10320
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
9933
10321
  readonly streaming: "no";
9934
10322
  readonly pagination: false;
9935
10323
  readonly pathParams: readonly [{
@@ -9937,18 +10325,37 @@ export declare const operations: readonly [{
9937
10325
  readonly sdkName: "vector_store_id";
9938
10326
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9939
10327
  }, {
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.";
10328
+ readonly name: "batch_id";
10329
+ readonly sdkName: "batch_id";
10330
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9943
10331
  }];
9944
10332
  readonly query: readonly [];
9945
10333
  }, {
9946
- readonly resource: "knowledge.vectorStores.files.segments";
10334
+ readonly resource: "knowledge.vectorStores.fileBatches";
10335
+ readonly method: "cancel";
10336
+ readonly summary: "Cancel file batch";
10337
+ readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
10338
+ readonly http: "POST";
10339
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
10340
+ readonly streaming: "no";
10341
+ readonly pagination: false;
10342
+ readonly pathParams: readonly [{
10343
+ readonly name: "vector_store_id";
10344
+ readonly sdkName: "vector_store_id";
10345
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10346
+ }, {
10347
+ readonly name: "batch_id";
10348
+ readonly sdkName: "batch_id";
10349
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10350
+ }];
10351
+ readonly query: readonly [];
10352
+ }, {
10353
+ readonly resource: "knowledge.vectorStores.fileBatches.files";
9947
10354
  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.";
10355
+ readonly summary: "List batch files";
10356
+ 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
10357
  readonly http: "GET";
9951
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10358
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
9952
10359
  readonly streaming: "no";
9953
10360
  readonly pagination: false;
9954
10361
  readonly pathParams: readonly [{
@@ -9956,9 +10363,9 @@ export declare const operations: readonly [{
9956
10363
  readonly sdkName: "vector_store_id";
9957
10364
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9958
10365
  }, {
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.";
10366
+ readonly name: "batch_id";
10367
+ readonly sdkName: "batch_id";
10368
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9962
10369
  }];
9963
10370
  readonly query: readonly [{
9964
10371
  readonly name: "after";
@@ -9981,14 +10388,20 @@ export declare const operations: readonly [{
9981
10388
  readonly enum: readonly ["asc", "desc"];
9982
10389
  readonly required: false;
9983
10390
  readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10391
+ }, {
10392
+ readonly name: "filter";
10393
+ readonly type: "string";
10394
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10395
+ readonly required: false;
10396
+ 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
10397
  }];
9985
10398
  }, {
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";
10399
+ readonly resource: "knowledge.vectorStores.files";
10400
+ readonly method: "list";
10401
+ readonly summary: "List files";
10402
+ 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.";
10403
+ readonly http: "GET";
10404
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
9992
10405
  readonly streaming: "no";
9993
10406
  readonly pagination: false;
9994
10407
  readonly pathParams: readonly [{
@@ -9996,29 +10409,41 @@ export declare const operations: readonly [{
9996
10409
  readonly sdkName: "vector_store_id";
9997
10410
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9998
10411
  }];
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.";
10412
+ readonly query: readonly [{
10413
+ readonly name: "after";
10414
+ readonly type: "string";
10415
+ readonly required: false;
10416
+ readonly description: "Cursor ID from the previous page.";
10417
+ }, {
10418
+ readonly name: "before";
10419
+ readonly type: "string";
10420
+ readonly required: false;
10421
+ readonly description: "Return items before this ID.";
10422
+ }, {
10423
+ readonly name: "limit";
10424
+ readonly type: "integer";
10425
+ readonly required: false;
10426
+ readonly description: "Page size.";
10427
+ }, {
10428
+ readonly name: "order";
10429
+ readonly type: "string";
10430
+ readonly enum: readonly ["asc", "desc"];
10431
+ readonly required: false;
10432
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10433
+ }, {
10434
+ readonly name: "filter";
10435
+ readonly type: "string";
10436
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10437
+ readonly required: false;
10438
+ 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
10439
  }];
10014
- readonly query: readonly [];
10015
10440
  }, {
10016
- readonly resource: "knowledge.vectorStores.search";
10441
+ readonly resource: "knowledge.vectorStores.files";
10017
10442
  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.";
10443
+ readonly summary: "Add file";
10444
+ 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
10445
  readonly http: "POST";
10021
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10446
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10022
10447
  readonly streaming: "no";
10023
10448
  readonly pagination: false;
10024
10449
  readonly pathParams: readonly [{
@@ -10030,49 +10455,29 @@ export declare const operations: readonly [{
10030
10455
  readonly body: {
10031
10456
  readonly required: true;
10032
10457
  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";
10458
+ readonly name: "file_id";
10054
10459
  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.";
10460
+ readonly required: true;
10461
+ readonly description: "Existing source File ID returned by file upload; the file must be visible to the caller.";
10057
10462
  }, {
10058
- readonly name: "ranking_options";
10463
+ readonly name: "attributes";
10059
10464
  readonly type: "object";
10060
10465
  readonly required: false;
10061
- readonly description: "Controls result ranking and the minimum score required for inclusion.";
10466
+ 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
10467
  }, {
10063
- readonly name: "praxis";
10468
+ readonly name: "chunking_strategy";
10064
10469
  readonly type: "object";
10065
10470
  readonly required: false;
10066
- readonly description: "Set explain=true to include score and term explanations.";
10471
+ 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
10472
  }];
10068
10473
  };
10069
10474
  }, {
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}";
10475
+ readonly resource: "knowledge.vectorStores.files";
10476
+ readonly method: "delete";
10477
+ readonly summary: "Remove file";
10478
+ readonly description: "Removes the file from search immediately; does not delete the original File.";
10479
+ readonly http: "DELETE";
10480
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10076
10481
  readonly streaming: "no";
10077
10482
  readonly pagination: false;
10078
10483
  readonly pathParams: readonly [{
@@ -10080,48 +10485,287 @@ export declare const operations: readonly [{
10080
10485
  readonly sdkName: "vector_store_id";
10081
10486
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10082
10487
  }, {
10083
- readonly name: "chunk_id";
10084
- readonly sdkName: "chunk_id";
10085
- readonly description: "Chunk ID returned by segment listing or native search content.";
10488
+ readonly name: "file_id";
10489
+ readonly sdkName: "file_id";
10490
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10086
10491
  }];
10087
10492
  readonly query: readonly [];
10088
10493
  }, {
10089
- readonly resource: "media.libraries";
10090
- readonly method: "list";
10091
- readonly summary: "List libraries";
10092
- 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.";
10494
+ readonly resource: "knowledge.vectorStores.files";
10495
+ readonly method: "retrieve";
10496
+ readonly summary: "Retrieve file";
10497
+ 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
10498
  readonly http: "GET";
10094
- readonly path: "/media/v1/libraries";
10499
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10095
10500
  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;
10107
- readonly description: "Maximum items per page, from 1 to 200; defaults to 50.";
10108
- }, {
10109
- readonly name: "labels";
10110
- readonly type: "string";
10111
- readonly required: false;
10112
- readonly description: "JSON-encoded object of labels.";
10501
+ readonly pagination: false;
10502
+ readonly pathParams: readonly [{
10503
+ readonly name: "vector_store_id";
10504
+ readonly sdkName: "vector_store_id";
10505
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10113
10506
  }, {
10114
- readonly name: "status";
10115
- readonly type: "string";
10116
- readonly enum: readonly ["active", "deleting"];
10117
- readonly required: false;
10118
- readonly description: "Filter libraries by active (usable) or deleting (awaiting purge). If omitted, deleting and deleted libraries are excluded.";
10507
+ readonly name: "file_id";
10508
+ readonly sdkName: "file_id";
10509
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10119
10510
  }];
10511
+ readonly query: readonly [];
10120
10512
  }, {
10121
- readonly resource: "media.libraries";
10122
- readonly method: "create";
10123
- readonly summary: "Create library";
10124
- readonly description: "Create a library owned by the caller with a name, optional labels and understanding settings. Understanding is enabled by default; the returned id is used for subsequent asset operations.";
10513
+ readonly resource: "knowledge.vectorStores.files";
10514
+ readonly method: "update";
10515
+ readonly summary: "Update file attributes";
10516
+ 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.";
10517
+ readonly http: "POST";
10518
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10519
+ readonly streaming: "no";
10520
+ readonly pagination: false;
10521
+ readonly pathParams: readonly [{
10522
+ readonly name: "vector_store_id";
10523
+ readonly sdkName: "vector_store_id";
10524
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10525
+ }, {
10526
+ readonly name: "file_id";
10527
+ readonly sdkName: "file_id";
10528
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10529
+ }];
10530
+ readonly query: readonly [];
10531
+ readonly body: {
10532
+ readonly required: true;
10533
+ readonly fields: readonly [{
10534
+ readonly name: "attributes";
10535
+ readonly type: "object";
10536
+ readonly required: false;
10537
+ readonly description: "Replaces all search-filter attributes; null clears them.";
10538
+ }];
10539
+ };
10540
+ }, {
10541
+ readonly resource: "knowledge.vectorStores.files";
10542
+ readonly method: "retrieveContent";
10543
+ readonly summary: "Read extracted content";
10544
+ readonly description: "Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.";
10545
+ readonly http: "GET";
10546
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10547
+ readonly streaming: "no";
10548
+ readonly pagination: false;
10549
+ readonly pathParams: readonly [{
10550
+ readonly name: "vector_store_id";
10551
+ readonly sdkName: "vector_store_id";
10552
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10553
+ }, {
10554
+ readonly name: "file_id";
10555
+ readonly sdkName: "file_id";
10556
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10557
+ }];
10558
+ readonly query: readonly [];
10559
+ }, {
10560
+ readonly resource: "knowledge.vectorStores.files.retry";
10561
+ readonly method: "create";
10562
+ readonly summary: "Retry failed file";
10563
+ 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.";
10564
+ readonly http: "POST";
10565
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10566
+ readonly streaming: "no";
10567
+ readonly pagination: false;
10568
+ readonly pathParams: readonly [{
10569
+ readonly name: "vector_store_id";
10570
+ readonly sdkName: "vector_store_id";
10571
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10572
+ }, {
10573
+ readonly name: "file_id";
10574
+ readonly sdkName: "file_id";
10575
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10576
+ }];
10577
+ readonly query: readonly [];
10578
+ }, {
10579
+ readonly resource: "knowledge.vectorStores.files.segments";
10580
+ readonly method: "list";
10581
+ readonly summary: "List file segments";
10582
+ 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.";
10583
+ readonly http: "GET";
10584
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10585
+ readonly streaming: "no";
10586
+ readonly pagination: false;
10587
+ readonly pathParams: readonly [{
10588
+ readonly name: "vector_store_id";
10589
+ readonly sdkName: "vector_store_id";
10590
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10591
+ }, {
10592
+ readonly name: "file_id";
10593
+ readonly sdkName: "file_id";
10594
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10595
+ }];
10596
+ readonly query: readonly [{
10597
+ readonly name: "after";
10598
+ readonly type: "string";
10599
+ readonly required: false;
10600
+ readonly description: "Cursor ID from the previous page.";
10601
+ }, {
10602
+ readonly name: "before";
10603
+ readonly type: "string";
10604
+ readonly required: false;
10605
+ readonly description: "Return items before this ID.";
10606
+ }, {
10607
+ readonly name: "limit";
10608
+ readonly type: "integer";
10609
+ readonly required: false;
10610
+ readonly description: "Page size.";
10611
+ }, {
10612
+ readonly name: "order";
10613
+ readonly type: "string";
10614
+ readonly enum: readonly ["asc", "desc"];
10615
+ readonly required: false;
10616
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10617
+ }];
10618
+ }, {
10619
+ readonly resource: "knowledge.vectorStores.purge";
10620
+ readonly method: "create";
10621
+ readonly summary: "Permanently purge knowledge base";
10622
+ 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.";
10623
+ readonly http: "POST";
10624
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/purge";
10625
+ readonly streaming: "no";
10626
+ readonly pagination: false;
10627
+ readonly pathParams: readonly [{
10628
+ readonly name: "vector_store_id";
10629
+ readonly sdkName: "vector_store_id";
10630
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10631
+ }];
10632
+ readonly query: readonly [];
10633
+ }, {
10634
+ readonly resource: "knowledge.vectorStores";
10635
+ readonly method: "restore";
10636
+ readonly summary: "Restore knowledge base";
10637
+ 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.";
10638
+ readonly http: "POST";
10639
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/restore";
10640
+ readonly streaming: "no";
10641
+ readonly pagination: false;
10642
+ readonly pathParams: readonly [{
10643
+ readonly name: "vector_store_id";
10644
+ readonly sdkName: "vector_store_id";
10645
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10646
+ }];
10647
+ readonly query: readonly [];
10648
+ }, {
10649
+ readonly resource: "knowledge.vectorStores.search";
10650
+ readonly method: "create";
10651
+ readonly summary: "Search knowledge base";
10652
+ 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.";
10653
+ readonly http: "POST";
10654
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10655
+ readonly streaming: "no";
10656
+ readonly pagination: false;
10657
+ readonly pathParams: readonly [{
10658
+ readonly name: "vector_store_id";
10659
+ readonly sdkName: "vector_store_id";
10660
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10661
+ }];
10662
+ readonly query: readonly [];
10663
+ readonly body: {
10664
+ readonly required: true;
10665
+ readonly fields: readonly [{
10666
+ readonly name: "query";
10667
+ readonly type: "object";
10668
+ readonly required: true;
10669
+ readonly description: "Nonblank text. Multiple queries are joined with newlines for one search.";
10670
+ }, {
10671
+ readonly name: "filters";
10672
+ readonly type: "object";
10673
+ readonly required: false;
10674
+ readonly description: "Type-strict file attribute filters. At most 20 nested levels below the root.";
10675
+ }, {
10676
+ readonly name: "max_num_results";
10677
+ readonly type: "integer";
10678
+ readonly required: false;
10679
+ readonly description: "Maximum chunks, not distinct files.";
10680
+ }, {
10681
+ readonly name: "rewrite_query";
10682
+ readonly type: "boolean";
10683
+ readonly required: false;
10684
+ 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.";
10685
+ }, {
10686
+ readonly name: "next_page";
10687
+ readonly type: "string";
10688
+ readonly required: false;
10689
+ 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.";
10690
+ }, {
10691
+ readonly name: "ranking_options";
10692
+ readonly type: "object";
10693
+ readonly required: false;
10694
+ readonly description: "Controls result ranking and the minimum score required for inclusion.";
10695
+ }, {
10696
+ readonly name: "praxis";
10697
+ readonly type: "object";
10698
+ readonly required: false;
10699
+ readonly description: "Set explain=true to include score and term explanations.";
10700
+ }];
10701
+ };
10702
+ }, {
10703
+ readonly resource: "knowledge.vectorStores.segments";
10704
+ readonly method: "retrieve";
10705
+ readonly summary: "Retrieve segment";
10706
+ 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.";
10707
+ readonly http: "GET";
10708
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}";
10709
+ readonly streaming: "no";
10710
+ readonly pagination: false;
10711
+ readonly pathParams: readonly [{
10712
+ readonly name: "vector_store_id";
10713
+ readonly sdkName: "vector_store_id";
10714
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10715
+ }, {
10716
+ readonly name: "chunk_id";
10717
+ readonly sdkName: "chunk_id";
10718
+ readonly description: "Chunk ID returned by segment listing or native search content.";
10719
+ }];
10720
+ readonly query: readonly [];
10721
+ }, {
10722
+ readonly resource: "media.generation.capabilities";
10723
+ readonly method: "list";
10724
+ readonly summary: "Get generation capabilities";
10725
+ 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.";
10726
+ readonly http: "GET";
10727
+ readonly path: "/media/v1/generation/capabilities";
10728
+ readonly streaming: "no";
10729
+ readonly pagination: false;
10730
+ readonly pathParams: readonly [];
10731
+ readonly query: readonly [];
10732
+ }, {
10733
+ readonly resource: "media.libraries";
10734
+ readonly method: "list";
10735
+ readonly summary: "List libraries";
10736
+ 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.";
10737
+ readonly http: "GET";
10738
+ readonly path: "/media/v1/libraries";
10739
+ readonly streaming: "no";
10740
+ readonly pagination: true;
10741
+ readonly pathParams: readonly [];
10742
+ readonly query: readonly [{
10743
+ readonly name: "cursor";
10744
+ readonly type: "string";
10745
+ readonly required: false;
10746
+ readonly description: "Cursor from the previous next_cursor.";
10747
+ }, {
10748
+ readonly name: "limit";
10749
+ readonly type: "integer";
10750
+ readonly required: false;
10751
+ readonly description: "Maximum items per page, from 1 to 200; defaults to 50.";
10752
+ }, {
10753
+ readonly name: "labels";
10754
+ readonly type: "string";
10755
+ readonly required: false;
10756
+ readonly description: "JSON-encoded object of labels.";
10757
+ }, {
10758
+ readonly name: "status";
10759
+ readonly type: "string";
10760
+ readonly enum: readonly ["active", "deleting"];
10761
+ readonly required: false;
10762
+ readonly description: "Filter libraries by active (usable) or deleting (awaiting purge). If omitted, deleting and deleted libraries are excluded.";
10763
+ }];
10764
+ }, {
10765
+ readonly resource: "media.libraries";
10766
+ readonly method: "create";
10767
+ readonly summary: "Create library";
10768
+ readonly description: "Create a library owned by the caller with a name, optional labels and understanding settings. Understanding is enabled by default; the returned id is used for subsequent asset operations.";
10125
10769
  readonly http: "POST";
10126
10770
  readonly path: "/media/v1/libraries";
10127
10771
  readonly streaming: "no";
@@ -10267,7 +10911,7 @@ export declare const operations: readonly [{
10267
10911
  readonly resource: "media.libraries.assets";
10268
10912
  readonly method: "create";
10269
10913
  readonly summary: "Upload asset";
10270
- readonly description: " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10914
+ 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
10915
  readonly http: "POST";
10272
10916
  readonly path: "/media/v1/libraries/{library_id}/assets";
10273
10917
  readonly streaming: "no";
@@ -10364,7 +11008,7 @@ export declare const operations: readonly [{
10364
11008
  readonly resource: "media.libraries.assets.import";
10365
11009
  readonly method: "create";
10366
11010
  readonly summary: "Import file";
10367
- readonly description: "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
11011
+ 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
11012
  readonly http: "POST";
10369
11013
  readonly path: "/media/v1/libraries/{library_id}/assets/import";
10370
11014
  readonly streaming: "no";
@@ -10577,7 +11221,7 @@ export declare const operations: readonly [{
10577
11221
  readonly resource: "media.libraries.assets.reprocess";
10578
11222
  readonly method: "create";
10579
11223
  readonly summary: "Reprocess asset";
10580
- readonly description: " For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
11224
+ readonly description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10581
11225
  readonly http: "POST";
10582
11226
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess";
10583
11227
  readonly streaming: "no";
@@ -10629,9 +11273,9 @@ export declare const operations: readonly [{
10629
11273
  }, {
10630
11274
  readonly name: "kind";
10631
11275
  readonly type: "string";
10632
- readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "embedding"];
11276
+ readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "loudness", "beats", "content", "embedding"];
10633
11277
  readonly required: false;
10634
- 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, and embedding reports a failed embedding step.";
11278
+ 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.";
10635
11279
  }, {
10636
11280
  readonly name: "cursor";
10637
11281
  readonly type: "string";
@@ -10647,7 +11291,7 @@ export declare const operations: readonly [{
10647
11291
  readonly resource: "media.libraries.assets";
10648
11292
  readonly method: "batch";
10649
11293
  readonly summary: "Batch assets alias";
10650
- readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
11294
+ readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10651
11295
  readonly http: "POST";
10652
11296
  readonly path: "/media/v1/libraries/{library_id}/assets:batch";
10653
11297
  readonly streaming: "no";
@@ -10676,7 +11320,7 @@ export declare const operations: readonly [{
10676
11320
  readonly resource: "media.libraries.batches";
10677
11321
  readonly method: "create";
10678
11322
  readonly summary: "Create batch";
10679
- readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
11323
+ readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10680
11324
  readonly http: "POST";
10681
11325
  readonly path: "/media/v1/libraries/{library_id}/batches";
10682
11326
  readonly streaming: "no";
@@ -10806,24 +11450,201 @@ export declare const operations: readonly [{
10806
11450
  readonly description: "Folder whose immediate children are returned. Omit or use an empty string for the library root; invalid folder paths are rejected.";
10807
11451
  }];
10808
11452
  }, {
10809
- readonly resource: "media.libraries.jobs";
10810
- readonly method: "retrieve";
10811
- readonly summary: "Get job alias";
10812
- readonly description: "Read library events in sequence order, including while the library is deleting. Page forward with asc and after_seq, or backward with desc and before_seq; never combine the two sequence cursors.";
10813
- readonly http: "GET";
10814
- readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}";
11453
+ readonly resource: "media.libraries.generations";
11454
+ readonly method: "create";
11455
+ readonly summary: "Create video generation";
11456
+ 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.";
11457
+ readonly http: "POST";
11458
+ readonly path: "/media/v1/libraries/{library_id}/generations";
10815
11459
  readonly streaming: "no";
10816
11460
  readonly pagination: false;
10817
11461
  readonly pathParams: readonly [{
10818
11462
  readonly name: "library_id";
10819
11463
  readonly sdkName: "library_id";
10820
11464
  readonly description: "Library ID returned by creation.";
10821
- }, {
10822
- readonly name: "job_id";
11465
+ }];
11466
+ readonly query: readonly [];
11467
+ readonly body: {
11468
+ readonly required: true;
11469
+ readonly fields: readonly [{
11470
+ readonly name: "intent";
11471
+ readonly type: "string";
11472
+ readonly required: true;
11473
+ readonly description: "Generation operation; v1 accepts only video.generate text-to-video requests.";
11474
+ }, {
11475
+ readonly name: "prompt";
11476
+ readonly type: "string";
11477
+ readonly required: true;
11478
+ readonly description: "Text prompt describing the video to generate.";
11479
+ }, {
11480
+ readonly name: "count";
11481
+ readonly type: "integer";
11482
+ readonly required: false;
11483
+ readonly description: "Number of videos to generate; defaults to 1 and must be from 1 to 4.";
11484
+ }, {
11485
+ readonly name: "duration_seconds";
11486
+ readonly type: "integer";
11487
+ readonly required: false;
11488
+ readonly description: "Requested video duration in seconds; Router validates the model-specific supported durations.";
11489
+ }, {
11490
+ readonly name: "aspect_ratio";
11491
+ readonly type: "string";
11492
+ readonly required: false;
11493
+ readonly description: "Requested output aspect ratio; defaults to 16:9 and Router validates model support.";
11494
+ }, {
11495
+ readonly name: "model";
11496
+ readonly type: "string";
11497
+ readonly required: false;
11498
+ readonly description: "Router model with video_generation capability; defaults to wan2.7-t2v.";
11499
+ }, {
11500
+ readonly name: "save";
11501
+ readonly type: "string";
11502
+ readonly enum: readonly ["candidate", "library"];
11503
+ readonly required: false;
11504
+ readonly description: "candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.";
11505
+ }, {
11506
+ readonly name: "asset_folder";
11507
+ readonly type: "string";
11508
+ readonly required: false;
11509
+ 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.";
11510
+ }, {
11511
+ readonly name: "tags";
11512
+ readonly type: "array";
11513
+ readonly itemType: "string";
11514
+ readonly required: false;
11515
+ readonly description: "Tags applied when an output becomes a library asset.";
11516
+ }, {
11517
+ readonly name: "understanding";
11518
+ readonly type: "string";
11519
+ readonly enum: readonly ["auto", "skip"];
11520
+ readonly required: false;
11521
+ readonly description: "Understanding behavior when a candidate is saved as an asset; defaults to auto.";
11522
+ }, {
11523
+ readonly name: "references";
11524
+ readonly type: "array";
11525
+ readonly itemType: "object";
11526
+ readonly required: false;
11527
+ readonly description: "Not supported in v1; omit this field. Only text-to-video is currently available.";
11528
+ }];
11529
+ };
11530
+ }, {
11531
+ readonly resource: "media.libraries.jobs";
11532
+ readonly method: "list";
11533
+ readonly summary: "List jobs";
11534
+ 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.";
11535
+ readonly http: "GET";
11536
+ readonly path: "/media/v1/libraries/{library_id}/jobs";
11537
+ readonly streaming: "no";
11538
+ readonly pagination: true;
11539
+ readonly pathParams: readonly [{
11540
+ readonly name: "library_id";
11541
+ readonly sdkName: "library_id";
11542
+ readonly description: "Library ID returned by creation.";
11543
+ }];
11544
+ readonly query: readonly [{
11545
+ readonly name: "status";
11546
+ readonly type: "string";
11547
+ readonly enum: readonly ["queued", "running", "completed", "completed_with_errors", "failed", "cancelled"];
11548
+ readonly required: false;
11549
+ readonly description: "Filter jobs by their current status.";
11550
+ }, {
11551
+ readonly name: "limit";
11552
+ readonly type: "integer";
11553
+ readonly required: false;
11554
+ readonly description: "Maximum entries in this page, from 1 through 100; defaults to 100.";
11555
+ }, {
11556
+ readonly name: "cursor";
11557
+ readonly type: "string";
11558
+ readonly required: false;
11559
+ readonly description: "Job id from the previous page’s next_cursor; omit for the first page.";
11560
+ }];
11561
+ }, {
11562
+ readonly resource: "media.libraries.jobs";
11563
+ readonly method: "retrieve";
11564
+ readonly summary: "Get job";
11565
+ 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.";
11566
+ readonly http: "GET";
11567
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}";
11568
+ readonly streaming: "no";
11569
+ readonly pagination: false;
11570
+ readonly pathParams: readonly [{
11571
+ readonly name: "library_id";
11572
+ readonly sdkName: "library_id";
11573
+ readonly description: "Library ID returned by creation.";
11574
+ }, {
11575
+ readonly name: "job_id";
10823
11576
  readonly sdkName: "job_id";
10824
- readonly description: "Batch identifier returned by createBatch or batchAssets; resolved within this library.";
11577
+ readonly description: "Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.";
11578
+ }];
11579
+ readonly query: readonly [];
11580
+ }, {
11581
+ readonly resource: "media.libraries.jobs";
11582
+ readonly method: "cancel";
11583
+ readonly summary: "Cancel job";
11584
+ 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.";
11585
+ readonly http: "POST";
11586
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/cancel";
11587
+ readonly streaming: "no";
11588
+ readonly pagination: false;
11589
+ readonly pathParams: readonly [{
11590
+ readonly name: "library_id";
11591
+ readonly sdkName: "library_id";
11592
+ readonly description: "Library ID returned by creation.";
11593
+ }, {
11594
+ readonly name: "job_id";
11595
+ readonly sdkName: "job_id";
11596
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11597
+ }];
11598
+ readonly query: readonly [];
11599
+ }, {
11600
+ readonly resource: "media.libraries.jobs.outputs.save";
11601
+ readonly method: "create";
11602
+ readonly summary: "Save generation output";
11603
+ 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.";
11604
+ readonly http: "POST";
11605
+ readonly path: "/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save";
11606
+ readonly streaming: "no";
11607
+ readonly pagination: false;
11608
+ readonly pathParams: readonly [{
11609
+ readonly name: "library_id";
11610
+ readonly sdkName: "library_id";
11611
+ readonly description: "Library ID returned by creation.";
11612
+ }, {
11613
+ readonly name: "job_id";
11614
+ readonly sdkName: "job_id";
11615
+ readonly description: "Job identifier returned by batch or generation creation; the job is resolved within the specified library.";
11616
+ }, {
11617
+ readonly name: "index";
11618
+ readonly sdkName: "index";
11619
+ readonly description: "Zero-based position of the candidate in the Job outputs array.";
10825
11620
  }];
10826
11621
  readonly query: readonly [];
11622
+ readonly body: {
11623
+ readonly required: false;
11624
+ readonly fields: readonly [{
11625
+ readonly name: "public_id";
11626
+ readonly type: "string";
11627
+ readonly required: false;
11628
+ readonly description: "Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.";
11629
+ }, {
11630
+ readonly name: "asset_folder";
11631
+ readonly type: "string";
11632
+ readonly required: false;
11633
+ 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.";
11634
+ }, {
11635
+ readonly name: "tags";
11636
+ readonly type: "array";
11637
+ readonly itemType: "string";
11638
+ readonly required: false;
11639
+ readonly description: "Tags to apply to the saved asset.";
11640
+ }, {
11641
+ readonly name: "understanding";
11642
+ readonly type: "string";
11643
+ readonly enum: readonly ["auto", "skip"];
11644
+ readonly required: false;
11645
+ readonly description: "Understanding behavior for the saved asset; defaults to auto.";
11646
+ }];
11647
+ };
10827
11648
  }, {
10828
11649
  readonly resource: "media.libraries.purge";
10829
11650
  readonly method: "create";
@@ -11050,7 +11871,7 @@ export declare const operations: readonly [{
11050
11871
  readonly name: "kinds";
11051
11872
  readonly type: "string";
11052
11873
  readonly required: false;
11053
- readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.";
11874
+ readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind.";
11054
11875
  }, {
11055
11876
  readonly name: "cursor";
11056
11877
  readonly type: "string";
@@ -12663,224 +13484,669 @@ export declare const operations: readonly [{
12663
13484
  }];
12664
13485
  readonly query: readonly [];
12665
13486
  }, {
12666
- readonly resource: "model.systemone";
13487
+ readonly resource: "model.systemone";
13488
+ readonly method: "create";
13489
+ readonly summary: "Ask structured decision questions";
13490
+ 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.";
13491
+ readonly http: "POST";
13492
+ readonly path: "/model/v1/systemone";
13493
+ readonly streaming: "no";
13494
+ readonly pagination: false;
13495
+ readonly pathParams: readonly [];
13496
+ readonly query: readonly [];
13497
+ readonly body: {
13498
+ readonly required: true;
13499
+ readonly fields: readonly [{
13500
+ readonly name: "model";
13501
+ readonly type: "string";
13502
+ readonly required: true;
13503
+ readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
13504
+ }, {
13505
+ readonly name: "state";
13506
+ readonly type: "object";
13507
+ readonly required: true;
13508
+ readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
13509
+ }, {
13510
+ readonly name: "questions";
13511
+ readonly type: "object";
13512
+ readonly required: true;
13513
+ 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.";
13514
+ }, {
13515
+ readonly name: "assets";
13516
+ readonly type: "object";
13517
+ readonly required: false;
13518
+ readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13519
+ }];
13520
+ };
13521
+ }, {
13522
+ readonly resource: "model.videos";
13523
+ readonly method: "list";
13524
+ readonly summary: "List videos";
13525
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13526
+ readonly http: "GET";
13527
+ readonly path: "/model/v1/videos";
13528
+ readonly streaming: "no";
13529
+ readonly pagination: false;
13530
+ readonly pathParams: readonly [];
13531
+ readonly query: readonly [{
13532
+ readonly name: "after";
13533
+ readonly type: "string";
13534
+ readonly required: false;
13535
+ 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.";
13536
+ }, {
13537
+ readonly name: "limit";
13538
+ readonly type: "integer";
13539
+ readonly required: false;
13540
+ readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13541
+ }, {
13542
+ readonly name: "order";
13543
+ readonly type: "string";
13544
+ readonly enum: readonly ["asc", "desc"];
13545
+ readonly required: false;
13546
+ readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13547
+ }];
13548
+ }, {
13549
+ readonly resource: "model.videos";
13550
+ readonly method: "create";
13551
+ readonly summary: "Create video";
13552
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13553
+ readonly http: "POST";
13554
+ readonly path: "/model/v1/videos";
13555
+ readonly streaming: "no";
13556
+ readonly pagination: false;
13557
+ readonly multipart: true;
13558
+ readonly pathParams: readonly [];
13559
+ readonly query: readonly [];
13560
+ readonly body: {
13561
+ readonly required: true;
13562
+ readonly fields: readonly [{
13563
+ readonly name: "model";
13564
+ readonly type: "string";
13565
+ readonly required: false;
13566
+ 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.";
13567
+ }, {
13568
+ readonly name: "prompt";
13569
+ readonly type: "string";
13570
+ readonly required: true;
13571
+ readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
13572
+ }, {
13573
+ readonly name: "seconds";
13574
+ readonly type: "object";
13575
+ readonly required: false;
13576
+ readonly description: "Takes precedence over duration.";
13577
+ }, {
13578
+ readonly name: "duration";
13579
+ readonly type: "integer";
13580
+ readonly required: false;
13581
+ readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
13582
+ }, {
13583
+ readonly name: "size";
13584
+ readonly type: "string";
13585
+ readonly required: false;
13586
+ 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.";
13587
+ }, {
13588
+ readonly name: "input_reference";
13589
+ readonly type: "object";
13590
+ readonly required: false;
13591
+ 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).";
13592
+ }, {
13593
+ readonly name: "input_references";
13594
+ readonly type: "array";
13595
+ readonly itemType: "object";
13596
+ readonly required: false;
13597
+ readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
13598
+ }, {
13599
+ readonly name: "frame_images";
13600
+ readonly type: "array";
13601
+ readonly itemType: "object";
13602
+ readonly required: false;
13603
+ readonly description: "Images that pin the first and last frame; at most 2 entries.";
13604
+ }, {
13605
+ readonly name: "resolution";
13606
+ readonly type: "string";
13607
+ readonly required: false;
13608
+ readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
13609
+ }, {
13610
+ readonly name: "aspect_ratio";
13611
+ readonly type: "string";
13612
+ readonly required: false;
13613
+ readonly description: "Aspect ratio of the video such as `16:9`.";
13614
+ }, {
13615
+ readonly name: "generate_audio";
13616
+ readonly type: "boolean";
13617
+ readonly required: false;
13618
+ 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.";
13619
+ }, {
13620
+ readonly name: "seed";
13621
+ readonly type: "integer";
13622
+ readonly required: false;
13623
+ readonly description: "Seed for reproducible generation, on models that support it.";
13624
+ }, {
13625
+ readonly name: "callback_url";
13626
+ readonly type: "string";
13627
+ readonly required: false;
13628
+ readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
13629
+ }, {
13630
+ readonly name: "quality";
13631
+ readonly type: "string";
13632
+ readonly required: false;
13633
+ readonly description: "Provider-specific quality setting.";
13634
+ }];
13635
+ };
13636
+ }, {
13637
+ readonly resource: "model.videos";
13638
+ readonly method: "delete";
13639
+ readonly summary: "Delete video";
13640
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13641
+ readonly http: "DELETE";
13642
+ readonly path: "/model/v1/videos/{video_id}";
13643
+ readonly streaming: "no";
13644
+ readonly pagination: false;
13645
+ readonly pathParams: readonly [{
13646
+ readonly name: "video_id";
13647
+ readonly sdkName: "video_id";
13648
+ 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.";
13649
+ }];
13650
+ readonly query: readonly [];
13651
+ }, {
13652
+ readonly resource: "model.videos";
13653
+ readonly method: "retrieve";
13654
+ readonly summary: "Retrieve video";
13655
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13656
+ readonly http: "GET";
13657
+ readonly path: "/model/v1/videos/{video_id}";
13658
+ readonly streaming: "no";
13659
+ readonly pagination: false;
13660
+ readonly pathParams: readonly [{
13661
+ readonly name: "video_id";
13662
+ readonly sdkName: "video_id";
13663
+ 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.";
13664
+ }];
13665
+ readonly query: readonly [];
13666
+ }, {
13667
+ readonly resource: "model.videos";
13668
+ readonly method: "retrieveContent";
13669
+ readonly summary: "Download video";
13670
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13671
+ readonly http: "GET";
13672
+ readonly path: "/model/v1/videos/{video_id}/content";
13673
+ readonly streaming: "no";
13674
+ readonly pagination: false;
13675
+ readonly pathParams: readonly [{
13676
+ readonly name: "video_id";
13677
+ readonly sdkName: "video_id";
13678
+ 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.";
13679
+ }];
13680
+ readonly query: readonly [{
13681
+ readonly name: "variant";
13682
+ readonly type: "string";
13683
+ readonly enum: readonly ["video", "thumbnail", "spritesheet"];
13684
+ readonly required: false;
13685
+ readonly description: "Spritesheet is not available in this release (400).";
13686
+ }, {
13687
+ readonly name: "index";
13688
+ readonly type: "integer";
13689
+ readonly required: false;
13690
+ readonly description: "Output index; this release produces index 0. variant takes precedence.";
13691
+ }];
13692
+ }, {
13693
+ readonly resource: "model.videos";
13694
+ readonly method: "remix";
13695
+ readonly summary: "Remix video";
13696
+ readonly description: "Not supported in this release; always returns 400.";
13697
+ readonly http: "POST";
13698
+ readonly path: "/model/v1/videos/{video_id}/remix";
13699
+ readonly streaming: "no";
13700
+ readonly pagination: false;
13701
+ readonly pathParams: readonly [{
13702
+ readonly name: "video_id";
13703
+ readonly sdkName: "video_id";
13704
+ 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.";
13705
+ }];
13706
+ readonly query: readonly [];
13707
+ }, {
13708
+ readonly resource: "ontology.changesets";
13709
+ readonly method: "create";
13710
+ readonly summary: "Apply changeset";
13711
+ 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.";
13712
+ readonly http: "POST";
13713
+ readonly path: "/ontology/v1/changesets";
13714
+ readonly streaming: "no";
13715
+ readonly pagination: false;
13716
+ readonly pathParams: readonly [];
13717
+ readonly query: readonly [];
13718
+ readonly body: {
13719
+ readonly required: true;
13720
+ readonly fields: readonly [{
13721
+ readonly name: "at";
13722
+ readonly type: "string";
13723
+ readonly required: true;
13724
+ readonly description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.";
13725
+ }, {
13726
+ readonly name: "scope";
13727
+ readonly type: "string";
13728
+ readonly required: false;
13729
+ readonly description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.";
13730
+ }, {
13731
+ readonly name: "ops";
13732
+ readonly type: "array";
13733
+ readonly itemType: "object";
13734
+ readonly required: true;
13735
+ readonly description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.";
13736
+ }];
13737
+ };
13738
+ }, {
13739
+ readonly resource: "ontology.nodes";
13740
+ readonly method: "list";
13741
+ readonly summary: "List nodes";
13742
+ 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.";
13743
+ readonly http: "GET";
13744
+ readonly path: "/ontology/v1/nodes";
13745
+ readonly streaming: "no";
13746
+ readonly pagination: true;
13747
+ readonly pathParams: readonly [];
13748
+ readonly query: readonly [{
13749
+ readonly name: "type";
13750
+ readonly type: "array";
13751
+ readonly itemType: "string";
13752
+ readonly required: false;
13753
+ readonly description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.";
13754
+ }, {
13755
+ readonly name: "q";
13756
+ readonly type: "string";
13757
+ readonly required: false;
13758
+ readonly description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter.";
13759
+ }, {
13760
+ readonly name: "owner";
13761
+ readonly type: "string";
13762
+ readonly required: false;
13763
+ readonly description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.";
13764
+ }, {
13765
+ readonly name: "as_of";
13766
+ readonly type: "string";
13767
+ readonly required: false;
13768
+ readonly description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.";
13769
+ }, {
13770
+ readonly name: "limit";
13771
+ readonly type: "integer";
13772
+ readonly required: false;
13773
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
13774
+ }, {
13775
+ readonly name: "cursor";
13776
+ readonly type: "string";
13777
+ readonly required: false;
13778
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
13779
+ }];
13780
+ }, {
13781
+ readonly resource: "ontology.nodes";
13782
+ readonly method: "create";
13783
+ readonly summary: "Create node";
13784
+ 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.";
13785
+ readonly http: "POST";
13786
+ readonly path: "/ontology/v1/nodes";
13787
+ readonly streaming: "no";
13788
+ readonly pagination: false;
13789
+ readonly pathParams: readonly [];
13790
+ readonly query: readonly [];
13791
+ readonly body: {
13792
+ readonly required: true;
13793
+ readonly fields: readonly [{
13794
+ readonly name: "type";
13795
+ readonly type: "string";
13796
+ readonly required: true;
13797
+ readonly description: "Registered node type name from types.list; an unregistered name is refused and nothing is written.";
13798
+ }, {
13799
+ readonly name: "ref";
13800
+ readonly type: "string";
13801
+ readonly required: false;
13802
+ 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.";
13803
+ }, {
13804
+ readonly name: "name";
13805
+ readonly type: "string";
13806
+ readonly required: true;
13807
+ readonly description: "Display name of the entity, at most 200 characters.";
13808
+ }, {
13809
+ readonly name: "aliases";
13810
+ readonly type: "array";
13811
+ readonly itemType: "string";
13812
+ readonly required: false;
13813
+ readonly description: "Other names this entity is known by; they are matched by search alongside the name.";
13814
+ }, {
13815
+ readonly name: "description";
13816
+ readonly type: "string";
13817
+ readonly required: false;
13818
+ readonly description: "Profile of the entity, at most 500 characters; omit or null for none.";
13819
+ }, {
13820
+ readonly name: "owner";
13821
+ readonly type: "string";
13822
+ readonly required: false;
13823
+ readonly description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.";
13824
+ }];
13825
+ };
13826
+ }, {
13827
+ readonly resource: "ontology.nodes";
13828
+ readonly method: "retrieve";
13829
+ readonly summary: "Retrieve node";
13830
+ 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.";
13831
+ readonly http: "GET";
13832
+ readonly path: "/ontology/v1/nodes/{node_id}";
13833
+ readonly streaming: "no";
13834
+ readonly pagination: false;
13835
+ readonly pathParams: readonly [{
13836
+ readonly name: "node_id";
13837
+ readonly sdkName: "node_id";
13838
+ 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.";
13839
+ }];
13840
+ readonly query: readonly [{
13841
+ readonly name: "expand";
13842
+ readonly type: "string";
13843
+ readonly enum: readonly ["relations"];
13844
+ readonly required: false;
13845
+ readonly description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.";
13846
+ }, {
13847
+ readonly name: "as_of";
13848
+ readonly type: "string";
13849
+ readonly required: false;
13850
+ readonly description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.";
13851
+ }];
13852
+ }, {
13853
+ readonly resource: "ontology.nodes";
13854
+ readonly method: "update";
13855
+ readonly summary: "Update node";
13856
+ 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.";
13857
+ readonly http: "PATCH";
13858
+ readonly path: "/ontology/v1/nodes/{node_id}";
13859
+ readonly streaming: "no";
13860
+ readonly pagination: false;
13861
+ readonly pathParams: readonly [{
13862
+ readonly name: "node_id";
13863
+ readonly sdkName: "node_id";
13864
+ 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.";
13865
+ }];
13866
+ readonly query: readonly [];
13867
+ readonly body: {
13868
+ readonly required: true;
13869
+ readonly fields: readonly [{
13870
+ readonly name: "name";
13871
+ readonly type: "string";
13872
+ readonly required: false;
13873
+ readonly description: "New display name, at most 200 characters; omit to keep the current name.";
13874
+ }, {
13875
+ readonly name: "aliases";
13876
+ readonly type: "array";
13877
+ readonly itemType: "string";
13878
+ readonly required: false;
13879
+ readonly description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them.";
13880
+ }, {
13881
+ readonly name: "description";
13882
+ readonly type: "string";
13883
+ readonly required: false;
13884
+ readonly description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.";
13885
+ }];
13886
+ };
13887
+ }, {
13888
+ readonly resource: "ontology.nodes.merge";
12667
13889
  readonly method: "create";
12668
- readonly summary: "Ask structured decision questions";
12669
- 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.";
13890
+ readonly summary: "Merge node";
13891
+ 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.";
12670
13892
  readonly http: "POST";
12671
- readonly path: "/model/v1/systemone";
13893
+ readonly path: "/ontology/v1/nodes/{node_id}/merge";
12672
13894
  readonly streaming: "no";
12673
13895
  readonly pagination: false;
12674
- readonly pathParams: readonly [];
13896
+ readonly pathParams: readonly [{
13897
+ readonly name: "node_id";
13898
+ readonly sdkName: "node_id";
13899
+ 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.";
13900
+ }];
12675
13901
  readonly query: readonly [];
12676
13902
  readonly body: {
12677
13903
  readonly required: true;
12678
13904
  readonly fields: readonly [{
12679
- readonly name: "model";
13905
+ readonly name: "into";
12680
13906
  readonly type: "string";
12681
13907
  readonly required: true;
12682
- readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
12683
- }, {
12684
- readonly name: "state";
12685
- readonly type: "object";
12686
- readonly required: true;
12687
- readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
12688
- }, {
12689
- readonly name: "questions";
12690
- readonly type: "object";
12691
- readonly required: true;
12692
- 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.";
12693
- }, {
12694
- readonly name: "assets";
12695
- readonly type: "object";
12696
- readonly required: false;
12697
- readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13908
+ readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
12698
13909
  }];
12699
13910
  };
12700
13911
  }, {
12701
- readonly resource: "model.videos";
13912
+ readonly resource: "ontology.relations";
12702
13913
  readonly method: "list";
12703
- readonly summary: "List videos";
12704
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13914
+ readonly summary: "List relations";
13915
+ 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.";
12705
13916
  readonly http: "GET";
12706
- readonly path: "/model/v1/videos";
13917
+ readonly path: "/ontology/v1/relations";
12707
13918
  readonly streaming: "no";
12708
- readonly pagination: false;
13919
+ readonly pagination: true;
12709
13920
  readonly pathParams: readonly [];
12710
13921
  readonly query: readonly [{
12711
- readonly name: "after";
13922
+ readonly name: "node";
12712
13923
  readonly type: "string";
12713
13924
  readonly required: false;
12714
- 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.";
13925
+ 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.";
13926
+ }, {
13927
+ readonly name: "type";
13928
+ readonly type: "array";
13929
+ readonly itemType: "string";
13930
+ readonly required: false;
13931
+ readonly description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.";
13932
+ }, {
13933
+ readonly name: "direction";
13934
+ readonly type: "string";
13935
+ readonly enum: readonly ["out", "in", "both"];
13936
+ readonly required: false;
13937
+ 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.";
13938
+ }, {
13939
+ readonly name: "as_of";
13940
+ readonly type: "string";
13941
+ readonly required: false;
13942
+ 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.";
13943
+ }, {
13944
+ readonly name: "include_invalid";
13945
+ readonly type: "boolean";
13946
+ readonly required: false;
13947
+ 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.";
12715
13948
  }, {
12716
13949
  readonly name: "limit";
12717
13950
  readonly type: "integer";
12718
13951
  readonly required: false;
12719
- readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13952
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
12720
13953
  }, {
12721
- readonly name: "order";
13954
+ readonly name: "cursor";
12722
13955
  readonly type: "string";
12723
- readonly enum: readonly ["asc", "desc"];
12724
13956
  readonly required: false;
12725
- readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13957
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
12726
13958
  }];
12727
13959
  }, {
12728
- readonly resource: "model.videos";
13960
+ readonly resource: "ontology.relations";
12729
13961
  readonly method: "create";
12730
- readonly summary: "Create video";
12731
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13962
+ readonly summary: "Create relation";
13963
+ 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.";
12732
13964
  readonly http: "POST";
12733
- readonly path: "/model/v1/videos";
13965
+ readonly path: "/ontology/v1/relations";
12734
13966
  readonly streaming: "no";
12735
13967
  readonly pagination: false;
12736
- readonly multipart: true;
12737
13968
  readonly pathParams: readonly [];
12738
13969
  readonly query: readonly [];
12739
13970
  readonly body: {
12740
13971
  readonly required: true;
12741
13972
  readonly fields: readonly [{
12742
- readonly name: "model";
13973
+ readonly name: "type";
12743
13974
  readonly type: "string";
12744
- readonly required: false;
12745
- 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.";
13975
+ readonly required: true;
13976
+ readonly description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused.";
12746
13977
  }, {
12747
- readonly name: "prompt";
13978
+ readonly name: "source";
12748
13979
  readonly type: "string";
12749
13980
  readonly required: true;
12750
- readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
12751
- }, {
12752
- readonly name: "seconds";
12753
- readonly type: "object";
12754
- readonly required: false;
12755
- readonly description: "Takes precedence over duration.";
12756
- }, {
12757
- readonly name: "duration";
12758
- readonly type: "integer";
12759
- readonly required: false;
12760
- readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
13981
+ readonly description: "Node id the fact starts from, from nodes.list or nodes.create.";
12761
13982
  }, {
12762
- readonly name: "size";
13983
+ readonly name: "target";
12763
13984
  readonly type: "string";
12764
- readonly required: false;
12765
- 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.";
12766
- }, {
12767
- readonly name: "input_reference";
12768
- readonly type: "object";
12769
- readonly required: false;
12770
- 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).";
13985
+ readonly required: true;
13986
+ readonly description: "Node id the fact points at, from nodes.list or nodes.create.";
12771
13987
  }, {
12772
- readonly name: "input_references";
12773
- readonly type: "array";
12774
- readonly itemType: "object";
12775
- readonly required: false;
12776
- readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
13988
+ readonly name: "fact";
13989
+ readonly type: "string";
13990
+ readonly required: true;
13991
+ readonly description: "The relationship in one sentence, at most 280 characters, written to read back on its own.";
12777
13992
  }, {
12778
- readonly name: "frame_images";
12779
- readonly type: "array";
12780
- readonly itemType: "object";
13993
+ readonly name: "valid_at";
13994
+ readonly type: "string";
12781
13995
  readonly required: false;
12782
- readonly description: "Images that pin the first and last frame; at most 2 entries.";
13996
+ readonly description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated.";
12783
13997
  }, {
12784
- readonly name: "resolution";
13998
+ readonly name: "owner";
12785
13999
  readonly type: "string";
12786
14000
  readonly required: false;
12787
- readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
14001
+ readonly description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.";
14002
+ }];
14003
+ };
14004
+ }, {
14005
+ readonly resource: "ontology.relations";
14006
+ readonly method: "retrieve";
14007
+ readonly summary: "Retrieve relation";
14008
+ 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.";
14009
+ readonly http: "GET";
14010
+ readonly path: "/ontology/v1/relations/{relation_id}";
14011
+ readonly streaming: "no";
14012
+ readonly pagination: false;
14013
+ readonly pathParams: readonly [{
14014
+ readonly name: "relation_id";
14015
+ readonly sdkName: "relation_id";
14016
+ 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.";
14017
+ }];
14018
+ readonly query: readonly [];
14019
+ }, {
14020
+ readonly resource: "ontology.relations.invalidate";
14021
+ readonly method: "create";
14022
+ readonly summary: "Invalidate relation";
14023
+ 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.";
14024
+ readonly http: "POST";
14025
+ readonly path: "/ontology/v1/relations/{relation_id}/invalidate";
14026
+ readonly streaming: "no";
14027
+ readonly pagination: false;
14028
+ readonly pathParams: readonly [{
14029
+ readonly name: "relation_id";
14030
+ readonly sdkName: "relation_id";
14031
+ 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.";
14032
+ }];
14033
+ readonly query: readonly [];
14034
+ readonly body: {
14035
+ readonly required: true;
14036
+ readonly fields: readonly [{
14037
+ readonly name: "invalid_at";
14038
+ readonly type: "string";
14039
+ readonly required: true;
14040
+ readonly description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.";
12788
14041
  }, {
12789
- readonly name: "aspect_ratio";
14042
+ readonly name: "superseded_by";
12790
14043
  readonly type: "string";
12791
14044
  readonly required: false;
12792
- readonly description: "Aspect ratio of the video such as `16:9`.";
14045
+ readonly description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.";
12793
14046
  }, {
12794
- readonly name: "generate_audio";
12795
- readonly type: "boolean";
14047
+ readonly name: "reason";
14048
+ readonly type: "string";
12796
14049
  readonly required: false;
12797
- 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.";
14050
+ readonly description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit.";
14051
+ }];
14052
+ };
14053
+ }, {
14054
+ readonly resource: "ontology.search";
14055
+ readonly method: "create";
14056
+ readonly summary: "Search nodes";
14057
+ 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.";
14058
+ readonly http: "POST";
14059
+ readonly path: "/ontology/v1/search";
14060
+ readonly streaming: "no";
14061
+ readonly pagination: false;
14062
+ readonly pathParams: readonly [];
14063
+ readonly query: readonly [];
14064
+ readonly body: {
14065
+ readonly required: true;
14066
+ readonly fields: readonly [{
14067
+ readonly name: "text";
14068
+ readonly type: "string";
14069
+ readonly required: true;
14070
+ readonly description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.";
12798
14071
  }, {
12799
- readonly name: "seed";
12800
- readonly type: "integer";
14072
+ readonly name: "types";
14073
+ readonly type: "array";
14074
+ readonly itemType: "string";
12801
14075
  readonly required: false;
12802
- readonly description: "Seed for reproducible generation, on models that support it.";
14076
+ readonly description: "Registered node type names to search within; omit to search every type.";
12803
14077
  }, {
12804
- readonly name: "callback_url";
12805
- readonly type: "string";
14078
+ readonly name: "window";
14079
+ readonly type: "object";
12806
14080
  readonly required: false;
12807
- readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
14081
+ readonly description: "Restrict matches to facts recorded within a period; omit to search all time.";
12808
14082
  }, {
12809
- readonly name: "quality";
12810
- readonly type: "string";
14083
+ readonly name: "limit";
14084
+ readonly type: "integer";
12811
14085
  readonly required: false;
12812
- readonly description: "Provider-specific quality setting.";
14086
+ readonly description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.";
12813
14087
  }];
12814
14088
  };
12815
14089
  }, {
12816
- readonly resource: "model.videos";
12817
- readonly method: "delete";
12818
- readonly summary: "Delete video";
12819
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
12820
- readonly http: "DELETE";
12821
- readonly path: "/model/v1/videos/{video_id}";
14090
+ readonly resource: "ontology.types";
14091
+ readonly method: "list";
14092
+ readonly summary: "List types";
14093
+ 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.";
14094
+ readonly http: "GET";
14095
+ readonly path: "/ontology/v1/types";
12822
14096
  readonly streaming: "no";
12823
14097
  readonly pagination: false;
12824
- readonly pathParams: readonly [{
12825
- readonly name: "video_id";
12826
- readonly sdkName: "video_id";
12827
- 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.";
12828
- }];
14098
+ readonly pathParams: readonly [];
12829
14099
  readonly query: readonly [];
12830
14100
  }, {
12831
- readonly resource: "model.videos";
12832
- readonly method: "retrieve";
12833
- readonly summary: "Retrieve video";
12834
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
12835
- readonly http: "GET";
12836
- readonly path: "/model/v1/videos/{video_id}";
14101
+ readonly resource: "ontology.types";
14102
+ readonly method: "create";
14103
+ readonly summary: "Register type";
14104
+ 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.";
14105
+ readonly http: "POST";
14106
+ readonly path: "/ontology/v1/types";
12837
14107
  readonly streaming: "no";
12838
14108
  readonly pagination: false;
12839
- readonly pathParams: readonly [{
12840
- readonly name: "video_id";
12841
- readonly sdkName: "video_id";
12842
- 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.";
12843
- }];
14109
+ readonly pathParams: readonly [];
12844
14110
  readonly query: readonly [];
14111
+ readonly body: {
14112
+ readonly required: true;
14113
+ readonly fields: readonly [{
14114
+ readonly name: "owner";
14115
+ readonly type: "string";
14116
+ readonly required: true;
14117
+ 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.";
14118
+ }, {
14119
+ readonly name: "version";
14120
+ readonly type: "integer";
14121
+ readonly required: true;
14122
+ readonly description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.";
14123
+ }, {
14124
+ readonly name: "nodes";
14125
+ readonly type: "array";
14126
+ readonly itemType: "object";
14127
+ readonly required: true;
14128
+ readonly description: "Node types this owner registers.";
14129
+ }, {
14130
+ readonly name: "edges";
14131
+ readonly type: "array";
14132
+ readonly itemType: "object";
14133
+ readonly required: true;
14134
+ readonly description: "Relation types this owner registers.";
14135
+ }];
14136
+ };
12845
14137
  }, {
12846
- readonly resource: "model.videos";
12847
- readonly method: "retrieveContent";
12848
- readonly summary: "Download video";
12849
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
14138
+ readonly resource: "ontology.types";
14139
+ readonly method: "retrieve";
14140
+ readonly summary: "Retrieve type";
14141
+ 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.";
12850
14142
  readonly http: "GET";
12851
- readonly path: "/model/v1/videos/{video_id}/content";
12852
- readonly streaming: "no";
12853
- readonly pagination: false;
12854
- readonly pathParams: readonly [{
12855
- readonly name: "video_id";
12856
- readonly sdkName: "video_id";
12857
- 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.";
12858
- }];
12859
- readonly query: readonly [{
12860
- readonly name: "variant";
12861
- readonly type: "string";
12862
- readonly enum: readonly ["video", "thumbnail", "spritesheet"];
12863
- readonly required: false;
12864
- readonly description: "Spritesheet is not available in this release (400).";
12865
- }, {
12866
- readonly name: "index";
12867
- readonly type: "integer";
12868
- readonly required: false;
12869
- readonly description: "Output index; this release produces index 0. variant takes precedence.";
12870
- }];
12871
- }, {
12872
- readonly resource: "model.videos";
12873
- readonly method: "remix";
12874
- readonly summary: "Remix video";
12875
- readonly description: "Not supported in this release; always returns 400.";
12876
- readonly http: "POST";
12877
- readonly path: "/model/v1/videos/{video_id}/remix";
14143
+ readonly path: "/ontology/v1/types/{name}";
12878
14144
  readonly streaming: "no";
12879
14145
  readonly pagination: false;
12880
14146
  readonly pathParams: readonly [{
12881
- readonly name: "video_id";
12882
- readonly sdkName: "video_id";
12883
- 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.";
14147
+ readonly name: "name";
14148
+ readonly sdkName: "name";
14149
+ readonly description: "A type name from types.list, with its dots preserved — a display label is not accepted.";
12884
14150
  }];
12885
14151
  readonly query: readonly [];
12886
14152
  }, {
@@ -14935,7 +16201,7 @@ export declare const operations: readonly [{
14935
16201
  readonly resource: "ticket.labels";
14936
16202
  readonly method: "create";
14937
16203
  readonly summary: "Create or add labels";
14938
- readonly description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16204
+ readonly description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
14939
16205
  readonly http: "POST";
14940
16206
  readonly path: "/ticket/v1/labels";
14941
16207
  readonly streaming: "no";
@@ -14970,7 +16236,7 @@ export declare const operations: readonly [{
14970
16236
  readonly resource: "ticket.labels";
14971
16237
  readonly method: "delete";
14972
16238
  readonly summary: "Remove labels";
14973
- readonly description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16239
+ readonly description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
14974
16240
  readonly http: "DELETE";
14975
16241
  readonly path: "/ticket/v1/labels/{name}";
14976
16242
  readonly streaming: "no";
@@ -14990,7 +16256,7 @@ export declare const operations: readonly [{
14990
16256
  readonly resource: "ticket.labels";
14991
16257
  readonly method: "update";
14992
16258
  readonly summary: "Update labels";
14993
- readonly description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16259
+ readonly description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
14994
16260
  readonly http: "PATCH";
14995
16261
  readonly path: "/ticket/v1/labels/{name}";
14996
16262
  readonly streaming: "no";
@@ -15230,7 +16496,7 @@ export declare const operations: readonly [{
15230
16496
  readonly name: "filter";
15231
16497
  readonly type: "string";
15232
16498
  readonly required: false;
15233
- readonly description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service.";
16499
+ readonly description: "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service.";
15234
16500
  }];
15235
16501
  }, {
15236
16502
  readonly resource: "ticket.tickets";
@@ -16124,7 +17390,7 @@ export declare const operations: readonly [{
16124
17390
  readonly resource: "vault.vaults";
16125
17391
  readonly method: "create";
16126
17392
  readonly summary: "Create vault";
16127
- readonly description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Unlike Anthropic, Agent sessions do not accept nonempty vault_ids; storing a credential or adding its ID to metadata does not enable vault-backed MCP authentication. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.";
17393
+ readonly description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.";
16128
17394
  readonly http: "POST";
16129
17395
  readonly path: "/vault/v1/vaults";
16130
17396
  readonly streaming: "no";