@deepraxis/sdk 0.1.1-dev.9b41ea1 → 0.1.1-dev.9c5dc2f

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.
@@ -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";
@@ -8102,7 +8126,12 @@ export declare const operations: readonly [{
8102
8126
  readonly name: "loudness";
8103
8127
  readonly type: "object";
8104
8128
  readonly required: false;
8105
- readonly description: "Optional loudness normalization target; normalization adds analysis and rendering work.";
8129
+ readonly description: "Loudness normalization target. Omitted, the export is normalized to -14 LUFS integrated and -1 dBTP true peak, the level short-video and streaming platforms play at; null renders without normalization. Normalization adds analysis and rendering work.";
8130
+ }, {
8131
+ readonly name: "poster";
8132
+ readonly type: "object";
8133
+ readonly required: false;
8134
+ readonly description: "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export.";
8106
8135
  }];
8107
8136
  };
8108
8137
  }, {
@@ -8169,6 +8198,46 @@ export declare const operations: readonly [{
8169
8198
  readonly description: "Optional human-readable display name for the new media asset.";
8170
8199
  }];
8171
8200
  };
8201
+ }, {
8202
+ readonly resource: "cut.projects.renders";
8203
+ readonly method: "create";
8204
+ readonly summary: "Create draft range render";
8205
+ readonly description: "Render one interval of the timeline so you can hear or look at how that passage comes out, without publishing anything to a media library. Choose kind audio for the mixed soundtrack as an .m4a file, or kind video for a draft-quality .mp4 with picture and sound. from and to are seconds on the project clock and must satisfy 0 <= from < to, to <= the timeline duration, and to - from <= 120; a longer passage is requested in several 分段请求 ranges and joined by the caller. The result is a temporary file (purpose user_data) that expires 24 hours after it is stored and is never imported into a library, so it is not a deliverable and carries no cut-export tag. HTTP 202 only accepts the job; poll praxis.cut.renders.retrieve using the returned id until status is done or failed, then read url while it lasts. A draft also bills like a draft export, by rendered seconds. Each project runs at most 2 draft renders at a time, a budget separate from its exports; a third answers HTTP 429 CUT_BUSY and the same call succeeds once one finishes.";
8206
+ readonly http: "POST";
8207
+ readonly path: "/cut/v1/projects/{project_id}/renders";
8208
+ readonly streaming: "no";
8209
+ readonly pagination: false;
8210
+ readonly pathParams: readonly [{
8211
+ readonly name: "project_id";
8212
+ readonly sdkName: "project_id";
8213
+ readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8214
+ }];
8215
+ readonly query: readonly [];
8216
+ readonly body: {
8217
+ readonly required: true;
8218
+ readonly fields: readonly [{
8219
+ readonly name: "kind";
8220
+ readonly type: "string";
8221
+ readonly enum: readonly ["audio", "video"];
8222
+ readonly required: true;
8223
+ readonly description: "audio renders the mixed soundtrack alone as an .m4a file for listening; video renders a draft-quality .mp4 with picture and sound for looking at. An audio draft is the cheaper of the two and is what a loudness or mix measurement asks for.";
8224
+ }, {
8225
+ readonly name: "from";
8226
+ readonly type: "number";
8227
+ readonly required: true;
8228
+ readonly description: "Start of the interval in seconds on the project clock, inclusive. Must be less than to.";
8229
+ }, {
8230
+ readonly name: "to";
8231
+ readonly type: "number";
8232
+ readonly required: true;
8233
+ readonly description: "End of the interval in seconds on the project clock, exclusive. At most 120 seconds after from, and never beyond the timeline duration; a longer passage is requested as several ranges.";
8234
+ }, {
8235
+ readonly name: "revision";
8236
+ readonly type: "integer";
8237
+ readonly required: false;
8238
+ readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
8239
+ }];
8240
+ };
8172
8241
  }, {
8173
8242
  readonly resource: "cut.projects";
8174
8243
  readonly method: "retrieveState";
@@ -8283,7 +8352,7 @@ export declare const operations: readonly [{
8283
8352
  readonly resource: "cut.projects";
8284
8353
  readonly method: "execute";
8285
8354
  readonly summary: "Execute editing script";
8286
- 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[];\nListEffects(): EffectInfo[];\nListTextStyles(): TextStylePreset[];\nListTextTemplates(): TextTemplate[];\nListAnimations(): { id: string; version: number; phase: \"in\" | \"out\" | \"loop\"; target: \"any\" | \"text\"; name: string; description: string; defaultDuration: number; params: { name: string; type: string; values?: string[]; default?: string | number; min?: number; max?: number; description: string }[] }[];\nListFonts(): { family: string; weights: number[]; scripts: (\"latin\"|\"cjk\")[]; source: \"bundled\"|\"catalog\" }[];\nInsert(track: TrackId, item: ItemInit, o?: { ripple?: boolean }): ClipId;\nUpdate(id: ClipId, patch: ItemPatchView): void;\nSetSpeed(id: ClipId, rate: number | { curve: { at: number; rate: number; ease?: Ease }[]; audio?: \"mute\" | \"resample\" }, 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; role?: \"voice\" | \"music\" | \"sfx\" }, 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> & { preset?: string }; maxChars?: number }): ClipId[];\nInsertTemplate(track: TrackId, o: { template: string; start: number; slots?: Record<string, string> }): ClipId[];\nAlignCaptions(trackId: TrackId, script: string, options?: { resplit?: boolean; maxChars?: number }): { replaced: number; added: number; deleted: number };\nImportCaptions(trackId: TrackId, text: string, o?: { format?: \"srt\" | \"vtt\"; offset?: number }): ClipId[];\nExportCaptions(trackId: TrackId, o: { format: \"srt\" | \"vtt\" }): string;\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, effects, blend 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| ListEffects | Discover the shared visual-effect catalog with parameter types, ranges, defaults, cost and bounds. Effects are supported only on visual clips. |\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| ListAnimations | Discover animation presets. Each entry has id, version, phase (`in`, `out`, `loop`), target (`any`, `text`), name, description, defaultDuration (seconds), and params (name, type, values/default/min/max/description as applicable). A slot use is `{preset, duration?, ...params}`; duration is seconds. |\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. A `{curve: [{at, rate, ease?}, ...], audio?: \"mute\" | \"resample\"}` rate is forward-only and holds output duration fixed; pitch preservation is unavailable. Scalar rates: 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, audio role (`voice`, `music`, `sfx`) 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| ImportCaptions, ExportCaptions | Import SRT or WebVTT text onto a caption track and export it back. format is inferred from a WEBVTT header when omitted. offset shifts imported cues in seconds. Import rejects more than 100000 bytes, more than 5000 cues, malformed or overlapping file cues with INVALID_CAPTION_FILE; overlap with existing timeline clips uses the normal OVERLAP rejection. Export sorts by timeline start and writes millisecond timecodes. |\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 catalog defaults. Unknown kinds and invalid parameters return INVALID_TRANSITION_PARAM with available parameters. Effects: dissolve; dip color black/white default black; push and wipe direction left/right/up/down default left; wipe softness 0–1 default 0; iris centerX/centerY 0–1 default 0.5; blinds integer count 2–64 default 8 and orientation vertical/horizontal default vertical; blur radius 0–100 pixels at 1080-pixel frame height default 24; zoom direction in/out default in, amount 0.1–3 default 1, blur 0–1 default 0.5; clock direction clockwise/counterclockwise default clockwise, startAngle 0–360 degrees default 0 (twelve o'clock), softness 0–1 default 0; flash color white/black default white, intensity 0–1 default 1. Zoom blur uses up to eight radial samples per shot and is slower on server rendering. 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, blend, animate, animation, effects, mask, transitionIn, transitionOut |\n| image | media, length | transform, fit, blend, animate, animation, effects, mask, transitionIn, transitionOut |\n| text | text, length | style, transform, blend, reveal, animate, animation, effects, mask, transitionIn, transitionOut |\n| color | color, length | transform, fill, blend, animate, animation, effects, mask, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, blend, animate, animation, effects, mask, transitionIn, transitionOut |\n| audio | media | length, sourceIn, playback, volumeDb, gain, fadeIn, fadeOut, duck |\n| caption | text, length | — |\n\nVisual Insert/Update also accepts `blend`: `normal` (default), `screen`, `multiply`, `overlay`, or `add`; set it to null in Update to clear it. During a Join overlap, both inputs render with normal blending. Video 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, fill, stroke, strokes, shadows, glow, background, align, maxWidth, position, margin}`. fill accepts a color or linear/radial gradient across the entire text bounding box. strokes draw outside to inside; at most 4, width 0–40. shadows accepts at most 4 `{color,x,y,blur}` entries; blur is 0–100. glow is `{color,radius,strength}` with radius 0–100 and strength 0–1. All dimensions use pixels at 1080 frame height and scale with the text. Glow and large shadow blur increase render time. Invalid colors or ranges return actionable INVALID_STYLE errors. `ListFonts()` discovers family, available weights, scripts and bundled/catalog source. Text and captions share the style fields; caption style additionally supports highlightColor and maxLines: 2. |\n| animate | An object keyed by x, y, scale, rotation, opacity or blur. Each value is an array of `{at: number, value: number, ease?: Ease}` sorted by at with distinct frame-snapped times. Values hold before the first and after the last keyframe, overriding the static transform. |\n| animation | `{in?: AnimationUse, out?: AnimationUse, loop?: AnimationUse}` on visual clips. Each use is `{preset: string, duration?: number, ...params}`; duration and parameter units follow `ListAnimations()`. Presets replace existing animate and reveal when applied. Update accepts `animation: null` to clear the preset and its generated effects. |\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#### Visual effects\n\n`effects` is an ordered stack of at most 8 catalog entries. Call `ListEffects()` to discover the catalog; unknown kinds return `UNKNOWN_EFFECT`, invalid names/values/keyframes return `INVALID_EFFECT_PARAM`, and stacks over 8 return `TOO_MANY_EFFECTS`. Entries include blur, color adjustment, vignette, film grain, chromatic aberration, pixelate, glitch, shake, flash, light leak and built-in `lut` looks; user `.cube` LUTs are not supported. `speed` is cycles per second. Effects run on CPU during export and increase render time. Parameters are discovered with ListEffects(). Catalog entries expose their own parameters through ListEffects(), including `blur` (`radius` 0–100, default 24) and `color_adjust`: `brightness`, `contrast`, `temperature`, and `tint` each range -1–1 (default 0), while `saturation` ranges 0–2 (default 1). Disabled entries are skipped. `color_adjust` uses an SDR-only Rec.709 adjustment matrix with no color management.\n\nNumeric and integer effect parameters accept `keyframes: {parameter: [{at, value, ease?}, ...]}`; times are seconds relative to the clip, snap to frames like `animate`, must be strictly increasing and within clip duration, and values follow that parameter's catalog range. Omitted parameters use catalog defaults. Trim and Split preserve effect keyframes with the same clip-local behavior as `animate`. There are no custom shaders.\n\n`blend` applies to the completed visual layer after its content, effects and `transform.blur`; `add` maps to Skia Plus. The default `normal` path adds no blend layer. During Join overlaps, blending is forced to normal because each input is composed on transparency.\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, duck, animate, reveal, animation, fill, stroke, shape, width, height, radius, transitionIn, transitionOut, effects, blend, mask, gain. Values and units match Insert; set effects or blend to null to clear them. Set animation to null to clear the preset; set animate or reveal to null to remove that effect. Applying a preset replaces existing animate/reveal. Do not set animation together with animate or reveal in one Insert/Update call. Omit a field to preserve it.\n\n#### Animation presets\n\nDiscover the catalog with `ListAnimations()`. Its entries contain id, version, phase (`in`, `out`, `loop`), target (`any` or `text`), name, description, defaultDuration in seconds, and params. Slots may combine one in, one out and one loop preset. A loop runs only in the interval between in and out; if the same property is animated by multiple slots, loop occupies only that middle interval. Text-target presets are entrances. Their duration controls the rhythm per character/word/line, not the total reveal time. Out and loop presets apply to the whole clip, not per text unit.\n\nPresets replace the clip's existing animate and reveal when applied. The source preset is retained, so changing clip length or transform automatically regenerates its keyframes/reveal. If a clip becomes shorter, in/out durations shrink proportionally; when it grows, the requested durations are restored. Split keeps in on the left, out on the right, and loop on both. Writing animate or reveal directly detaches the preset; setting animation to null clears both source and generated effects. Insert/Update reject a call that supplies animation together with animate or reveal.\n\nErrors: UNKNOWN_ANIMATION (unknown preset), INVALID_ANIMATION_PARAM (invalid slot/parameter or frame/keyframe limit), ANIMATION_TOO_LONG (in+out exceed clip length), ANIMATION_TARGET_MISMATCH (text-only preset on a non-text or preset on non-visual clip), ANIMATION_PHASE_MISMATCH (preset in the wrong slot). Each animated property is limited to 600 keyframes; loop duration must be at least 4 frames. `ANIMATION_TOO_LONG` is avoided during later length changes by proportional fitting.\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";
8355
+ readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `durationUs` is microseconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler or scene segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `AddTrack` — Add a video, audio or caption track.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; optional for video and audio.\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n";
8287
8356
  readonly http: "POST";
8288
8357
  readonly path: "/cut/v1/projects/{project_id}:execute";
8289
8358
  readonly streaming: "no";
@@ -8334,6 +8403,21 @@ export declare const operations: readonly [{
8334
8403
  readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
8335
8404
  }];
8336
8405
  readonly query: readonly [];
8406
+ }, {
8407
+ readonly resource: "cut.renders";
8408
+ readonly method: "retrieve";
8409
+ readonly summary: "Retrieve draft range render";
8410
+ readonly description: "Poll a draft render id returned by projects.renders.create to see whether the interval is ready, then read url while it lasts. queued and rendering are in progress; done provides file_id and a short-lived url for the rendered .m4a or .mp4; failed provides error. Only done yields a url, and the file behind it disappears 24 hours after it was stored, so retrieve again when the link has expired.";
8411
+ readonly http: "GET";
8412
+ readonly path: "/cut/v1/renders/{render_id}";
8413
+ readonly streaming: "no";
8414
+ readonly pagination: false;
8415
+ readonly pathParams: readonly [{
8416
+ readonly name: "render_id";
8417
+ readonly sdkName: "render_id";
8418
+ readonly description: "Draft render id (cutr_…) returned by projects.renders.create.";
8419
+ }];
8420
+ readonly query: readonly [];
8337
8421
  }, {
8338
8422
  readonly resource: "cut.versions";
8339
8423
  readonly method: "restore";
@@ -9134,669 +9218,921 @@ export declare const operations: readonly [{
9134
9218
  }];
9135
9219
  };
9136
9220
  }, {
9137
- readonly resource: "file.files";
9221
+ readonly resource: "devops.projects.testCases";
9138
9222
  readonly method: "list";
9139
- readonly summary: "List files";
9140
- readonly description: "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.";
9223
+ readonly summary: "List test cases";
9224
+ readonly description: "List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.";
9141
9225
  readonly http: "GET";
9142
- readonly path: "/file/v1/files";
9226
+ readonly path: "/devops/v1/projects/{project}/test-cases";
9143
9227
  readonly streaming: "no";
9144
9228
  readonly pagination: false;
9145
- readonly pathParams: readonly [];
9229
+ readonly pathParams: readonly [{
9230
+ readonly name: "project";
9231
+ readonly sdkName: "project";
9232
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9233
+ }];
9146
9234
  readonly query: readonly [{
9147
- readonly name: "purpose";
9148
- readonly type: "string";
9235
+ readonly name: "pageSize";
9236
+ readonly type: "integer";
9149
9237
  readonly required: false;
9150
- readonly description: "Only return files with the given purpose.";
9238
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9151
9239
  }, {
9152
- readonly name: "limit";
9153
- readonly type: "integer";
9240
+ readonly name: "pageToken";
9241
+ readonly type: "string";
9154
9242
  readonly required: false;
9155
- readonly description: "A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.\n";
9243
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9156
9244
  }, {
9157
- readonly name: "order";
9245
+ readonly name: "filter";
9158
9246
  readonly type: "string";
9159
- readonly enum: readonly ["asc", "desc"];
9160
9247
  readonly required: false;
9161
- readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
9248
+ readonly description: "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result.";
9162
9249
  }, {
9163
- readonly name: "after";
9250
+ readonly name: "orderBy";
9164
9251
  readonly type: "string";
9165
9252
  readonly required: false;
9166
- readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9253
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9254
+ }];
9255
+ }, {
9256
+ readonly resource: "devops.projects";
9257
+ readonly method: "retrieveTestCatalog";
9258
+ readonly summary: "Read a commit's test catalog";
9259
+ readonly description: "Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means \"not yet\", not \"no tests\"; wait and read again. Omit commit to read the newest catalog published for the project.";
9260
+ readonly http: "GET";
9261
+ readonly path: "/devops/v1/projects/{project}/test-catalog";
9262
+ readonly streaming: "no";
9263
+ readonly pagination: false;
9264
+ readonly pathParams: readonly [{
9265
+ readonly name: "project";
9266
+ readonly sdkName: "project";
9267
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9268
+ }];
9269
+ readonly query: readonly [{
9270
+ readonly name: "commit";
9271
+ readonly type: "string";
9272
+ readonly required: false;
9273
+ readonly description: "Full 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project.";
9274
+ }];
9275
+ }, {
9276
+ readonly resource: "devops.projects.testPlans";
9277
+ readonly method: "list";
9278
+ readonly summary: "List test plans";
9279
+ readonly description: "List the project's plans — what each one selects, which stage and gate it belongs to, and when it runs next. Read this before creating a plan, so a new plan extends what exists instead of duplicating a selector an existing plan already covers.";
9280
+ readonly http: "GET";
9281
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9282
+ readonly streaming: "no";
9283
+ readonly pagination: false;
9284
+ readonly pathParams: readonly [{
9285
+ readonly name: "project";
9286
+ readonly sdkName: "project";
9287
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9288
+ }];
9289
+ readonly query: readonly [{
9290
+ readonly name: "pageSize";
9291
+ readonly type: "integer";
9292
+ readonly required: false;
9293
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9167
9294
  }, {
9168
- readonly name: "scope_id";
9295
+ readonly name: "pageToken";
9169
9296
  readonly type: "string";
9170
9297
  readonly required: false;
9171
- readonly description: "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.";
9298
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9172
9299
  }, {
9173
- readonly name: "before";
9300
+ readonly name: "orderBy";
9174
9301
  readonly type: "string";
9175
9302
  readonly required: false;
9176
- readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9303
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9177
9304
  }];
9178
9305
  }, {
9179
- readonly resource: "file.files";
9306
+ readonly resource: "devops.projects.testPlans";
9180
9307
  readonly method: "create";
9181
- readonly summary: "Upload file";
9182
- readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.";
9308
+ readonly summary: "Create a test plan";
9309
+ readonly description: "Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.";
9183
9310
  readonly http: "POST";
9184
- readonly path: "/file/v1/files";
9311
+ readonly path: "/devops/v1/projects/{project}/test-plans";
9185
9312
  readonly streaming: "no";
9186
9313
  readonly pagination: false;
9187
- readonly multipart: true;
9188
- readonly pathParams: readonly [];
9314
+ readonly pathParams: readonly [{
9315
+ readonly name: "project";
9316
+ readonly sdkName: "project";
9317
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9318
+ }];
9189
9319
  readonly query: readonly [];
9190
9320
  readonly body: {
9191
9321
  readonly required: true;
9192
9322
  readonly fields: readonly [{
9193
- readonly name: "file";
9323
+ readonly name: "key";
9194
9324
  readonly type: "string";
9195
9325
  readonly required: true;
9196
- readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.";
9326
+ readonly description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused.";
9197
9327
  }, {
9198
- readonly name: "purpose";
9328
+ readonly name: "title";
9199
9329
  readonly type: "string";
9200
- readonly enum: readonly ["user_data", "assistants", "vision"];
9201
9330
  readonly required: true;
9202
- readonly description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.";
9331
+ readonly description: "Display title of the plan, shown wherever the plan is listed.";
9203
9332
  }, {
9204
- readonly name: "expires_after";
9333
+ readonly name: "stage";
9334
+ readonly type: "string";
9335
+ readonly enum: readonly ["dev", "presubmit", "postsubmit", "nightly", "production"];
9336
+ readonly required: true;
9337
+ readonly description: "Which stage of delivery this plan belongs to, which decides when it is expected to run.";
9338
+ }, {
9339
+ readonly name: "trigger";
9340
+ readonly type: "object";
9341
+ readonly required: true;
9342
+ readonly description: "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries.";
9343
+ }, {
9344
+ readonly name: "selector";
9205
9345
  readonly type: "object";
9346
+ readonly required: true;
9347
+ readonly description: "Which cases a plan or run selects. Every member is optional and they combine as an intersection, so a selector with no member selects every case in the catalog.";
9348
+ }, {
9349
+ readonly name: "environment";
9350
+ readonly type: "string";
9206
9351
  readonly required: false;
9207
- readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9352
+ readonly description: "The environment this plan runs against; required by a merge or promotion gate, and refused with PLAN_GATE_ENVIRONMENT_MISMATCH when it disagrees with the gate.";
9353
+ }, {
9354
+ readonly name: "gate";
9355
+ readonly type: "string";
9356
+ readonly enum: readonly ["merge", "promotion", "observation", "none"];
9357
+ readonly required: true;
9358
+ readonly description: "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment.";
9359
+ }, {
9360
+ readonly name: "repeat";
9361
+ readonly type: "integer";
9362
+ readonly required: false;
9363
+ readonly description: "How many times each selected case runs in one run; omit for once. More than one is how a flake is told apart from a real failure.";
9364
+ }, {
9365
+ readonly name: "timeoutMinutes";
9366
+ readonly type: "integer";
9367
+ readonly required: false;
9368
+ readonly description: "How many minutes a run of this plan may take before it is timed out; omit for the service's default.";
9208
9369
  }];
9209
9370
  };
9210
9371
  }, {
9211
- readonly resource: "file.files";
9212
- readonly method: "delete";
9213
- readonly summary: "Delete file";
9214
- readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
9215
- readonly http: "DELETE";
9216
- readonly path: "/file/v1/files/{file_id}";
9217
- readonly streaming: "no";
9218
- readonly pagination: false;
9219
- readonly pathParams: readonly [{
9220
- readonly name: "file_id";
9221
- readonly sdkName: "file_id";
9222
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9223
- }];
9224
- readonly query: readonly [];
9225
- }, {
9226
- readonly resource: "file.files";
9227
- readonly method: "retrieve";
9228
- readonly summary: "Retrieve file";
9229
- 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.";
9230
- readonly http: "GET";
9231
- readonly path: "/file/v1/files/{file_id}";
9232
- readonly streaming: "no";
9233
- readonly pagination: false;
9234
- readonly pathParams: readonly [{
9235
- readonly name: "file_id";
9236
- readonly sdkName: "file_id";
9237
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9238
- }];
9239
- readonly query: readonly [];
9240
- }, {
9241
- readonly resource: "file.files";
9242
- readonly method: "retrieveContent";
9243
- readonly summary: "Retrieve file content";
9244
- 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.";
9245
- readonly http: "GET";
9246
- readonly path: "/file/v1/files/{file_id}/content";
9247
- readonly streaming: "no";
9248
- readonly pagination: false;
9249
- readonly pathParams: readonly [{
9250
- readonly name: "file_id";
9251
- readonly sdkName: "file_id";
9252
- readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9253
- }];
9254
- readonly query: readonly [];
9255
- }, {
9256
- readonly resource: "file.files.contentLinks";
9257
- readonly method: "revoke";
9258
- readonly summary: "Revoke a file content link";
9259
- readonly description: "Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.";
9372
+ readonly resource: "devops.projects.testReports";
9373
+ readonly method: "create";
9374
+ readonly summary: "Upload an external test report";
9375
+ readonly description: "Record the results of a run executed outside Praxis by uploading a CTRF or JUnit report. Nothing has to exist first: a first upload from CI creates the run it reports on (executor external) and catalogues the cases the report names, so there is no setup call before the first result. When the report already belongs to a run, pass ref and the upload joins it; the run's counts and verdict are recomputed from the report. Uploading the same reportId again is idempotent and counts once, so a retry after a timeout is safe — and a reported case is catalogued once, however many reports carry it. The report's bytes are kept as a file (the file field of the answer) rather than in the results database, so the original document stays retrievable.";
9260
9376
  readonly http: "POST";
9261
- readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9377
+ readonly path: "/devops/v1/projects/{project}/test-reports";
9262
9378
  readonly streaming: "no";
9263
9379
  readonly pagination: false;
9264
9380
  readonly pathParams: readonly [{
9265
- readonly name: "file_id";
9266
- readonly sdkName: "file_id";
9267
- readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
9381
+ readonly name: "project";
9382
+ readonly sdkName: "project";
9383
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9268
9384
  }];
9269
9385
  readonly query: readonly [];
9270
9386
  readonly body: {
9271
9387
  readonly required: true;
9272
9388
  readonly fields: readonly [{
9273
- readonly name: "token";
9389
+ readonly name: "reportId";
9274
9390
  readonly type: "string";
9275
9391
  readonly required: true;
9276
- readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
9392
+ readonly description: "Your own identifier for this report. Uploading the same id again is idempotent and counts once, so a retry after a timeout is safe.";
9393
+ }, {
9394
+ readonly name: "format";
9395
+ readonly type: "string";
9396
+ readonly enum: readonly ["ctrf", "junit"];
9397
+ readonly required: true;
9398
+ readonly description: "Which report format the document is in; it decides how the document is parsed.";
9399
+ }, {
9400
+ readonly name: "ref";
9401
+ readonly type: "object";
9402
+ readonly required: true;
9403
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9404
+ }, {
9405
+ readonly name: "report";
9406
+ readonly type: "string";
9407
+ readonly required: true;
9408
+ readonly description: "The report document itself, as text — JSON for ctrf, XML for junit. Send the file's contents unchanged; a malformed document is refused with REPORT_INVALID and records nothing.";
9277
9409
  }];
9278
9410
  };
9279
9411
  }, {
9280
- readonly resource: "file.files.contentUrl";
9281
- readonly method: "create";
9282
- readonly summary: "Create a download URL";
9283
- 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}.";
9284
- readonly http: "POST";
9285
- readonly path: "/file/v1/files/{file_id}/content_url";
9412
+ readonly resource: "devops.projects.testRuns";
9413
+ readonly method: "list";
9414
+ readonly summary: "List test runs";
9415
+ readonly description: "List the project's runs newest first, with each run's state, result and counts. Use it to find the run id whose executions you want to read, or to see whether a commit's tests have finished. A run whose result is pending has not reached a verdict yet — read it again rather than treating it as passed. Filter by state or result to watch only the runs still in flight.";
9416
+ readonly http: "GET";
9417
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9286
9418
  readonly streaming: "no";
9287
9419
  readonly pagination: false;
9288
9420
  readonly pathParams: readonly [{
9289
- readonly name: "file_id";
9290
- readonly sdkName: "file_id";
9291
- readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
9421
+ readonly name: "project";
9422
+ readonly sdkName: "project";
9423
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9292
9424
  }];
9293
- readonly query: readonly [];
9294
- readonly body: {
9425
+ readonly query: readonly [{
9426
+ readonly name: "pageSize";
9427
+ readonly type: "integer";
9295
9428
  readonly required: false;
9296
- readonly fields: readonly [{
9297
- readonly name: "ttl_seconds";
9298
- readonly type: "integer";
9299
- readonly required: false;
9300
- readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
9301
- }];
9302
- };
9429
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9430
+ }, {
9431
+ readonly name: "pageToken";
9432
+ readonly type: "string";
9433
+ readonly required: false;
9434
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9435
+ }, {
9436
+ readonly name: "filter";
9437
+ readonly type: "string";
9438
+ readonly required: false;
9439
+ readonly description: "AIP-160 equality filter over one declared field, for example state=running or result=failed. An undeclared field is refused with INVALID_ARGUMENT; it is never ignored, so a mistyped filter cannot quietly return everything.";
9440
+ }, {
9441
+ readonly name: "orderBy";
9442
+ readonly type: "string";
9443
+ readonly required: false;
9444
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9445
+ }];
9303
9446
  }, {
9304
- readonly resource: "file.uploads";
9447
+ readonly resource: "devops.projects.testRuns";
9305
9448
  readonly method: "create";
9306
- readonly summary: "Create an upload";
9307
- 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.";
9449
+ readonly summary: "Create a test run";
9450
+ readonly description: "Start a run of the project's tests at one commit. Name a plan to use its selector, or pass a selector directly for this run alone; the ref says which commit to test and is required, because a run without a commit has nothing to report against. waitUntil decides how far the call waits before answering — queued, the default, returns as soon as the run exists; started waits until the run has begun, except for an external run, which is answered at once because it leaves queued only when your own CI uploads; finished waits for a verdict. The wait is bounded at about 25 seconds, and a wait that reaches that bound returns the run as it stands rather than failing — read state to see whether it finished. A retry of an earlier run is a new run: pass its commit and selector, and read the earlier run to compare.";
9308
9451
  readonly http: "POST";
9309
- readonly path: "/file/v1/uploads";
9452
+ readonly path: "/devops/v1/projects/{project}/test-runs";
9310
9453
  readonly streaming: "no";
9311
9454
  readonly pagination: false;
9312
- readonly pathParams: readonly [];
9455
+ readonly pathParams: readonly [{
9456
+ readonly name: "project";
9457
+ readonly sdkName: "project";
9458
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9459
+ }];
9313
9460
  readonly query: readonly [];
9314
9461
  readonly body: {
9315
9462
  readonly required: true;
9316
9463
  readonly fields: readonly [{
9317
- readonly name: "bytes";
9318
- readonly type: "integer";
9464
+ readonly name: "ref";
9465
+ readonly type: "object";
9319
9466
  readonly required: true;
9320
- readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
9467
+ readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
9321
9468
  }, {
9322
- readonly name: "filename";
9469
+ readonly name: "plan";
9323
9470
  readonly type: "string";
9324
- readonly required: true;
9325
- readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9471
+ readonly required: false;
9472
+ readonly description: "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads.";
9326
9473
  }, {
9327
- readonly name: "mime_type";
9328
- readonly type: "string";
9329
- readonly required: true;
9330
- readonly description: "Declared MIME type; validated against the assembled content.";
9331
- }, {
9332
- readonly name: "purpose";
9333
- readonly type: "string";
9334
- readonly enum: readonly ["user_data", "assistants", "vision"];
9335
- readonly required: true;
9336
- readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
9337
- }, {
9338
- readonly name: "expires_after";
9474
+ readonly name: "selector";
9339
9475
  readonly type: "object";
9340
9476
  readonly required: false;
9341
- readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9477
+ readonly description: "An ad-hoc selector for this run alone, used instead of a plan's; it is not saved as a plan, so a run you want to repeat should name a plan.";
9342
9478
  }, {
9343
- readonly name: "part_size";
9344
- readonly type: "integer";
9345
- readonly required: false;
9346
- 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.";
9347
- }];
9348
- };
9349
- }, {
9350
- readonly resource: "file.uploads";
9351
- readonly method: "createSigned";
9352
- readonly summary: "Create a one-time upload URL";
9353
- 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\"}.";
9354
- readonly http: "POST";
9355
- readonly path: "/file/v1/uploads/signed";
9356
- readonly streaming: "no";
9357
- readonly pagination: false;
9358
- readonly pathParams: readonly [];
9359
- readonly query: readonly [];
9360
- readonly body: {
9361
- readonly required: true;
9362
- readonly fields: readonly [{
9363
- readonly name: "filename";
9479
+ readonly name: "environment";
9364
9480
  readonly type: "string";
9365
- readonly required: true;
9366
- readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
9481
+ readonly required: false;
9482
+ readonly description: "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment.";
9367
9483
  }, {
9368
- readonly name: "bytes";
9484
+ readonly name: "repeat";
9369
9485
  readonly type: "integer";
9370
- readonly required: true;
9371
- 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.";
9372
- }, {
9373
- readonly name: "content_type";
9374
- readonly type: "string";
9375
- readonly required: true;
9376
- 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.";
9486
+ readonly required: false;
9487
+ readonly description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once.";
9377
9488
  }, {
9378
- readonly name: "purpose";
9489
+ readonly name: "waitUntil";
9379
9490
  readonly type: "string";
9380
- readonly enum: readonly ["user_data", "assistants", "vision"];
9491
+ readonly enum: readonly ["queued", "started", "finished"];
9381
9492
  readonly required: false;
9382
- 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.";
9493
+ readonly description: "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured.";
9383
9494
  }, {
9384
- readonly name: "expires_in";
9385
- readonly type: "integer";
9495
+ readonly name: "executor";
9496
+ readonly type: "string";
9497
+ readonly enum: readonly ["cloud", "external"];
9386
9498
  readonly required: false;
9387
- 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.";
9499
+ readonly description: "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports.";
9388
9500
  }, {
9389
- readonly name: "part_size";
9390
- readonly type: "integer";
9501
+ readonly name: "requestId";
9502
+ readonly type: "string";
9391
9503
  readonly required: false;
9392
- 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.";
9504
+ readonly description: "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe.";
9393
9505
  }];
9394
9506
  };
9395
9507
  }, {
9396
- readonly resource: "file.uploads";
9508
+ readonly resource: "devops.projects.testSuites";
9509
+ readonly method: "list";
9510
+ readonly summary: "List test suites";
9511
+ readonly description: "List the suites the project's newest catalog discovered — one suite per test file and framework pair, with its size, purposes and question count. Use it to find the suite id a case belongs to, or to see which files make up an area before selecting cases from them. Suites come from the catalog, so a file added in code appears only after its commit's catalog is published. Archived suites are returned too; they carry archived true and no case is ever silently dropped from the list.";
9512
+ readonly http: "GET";
9513
+ readonly path: "/devops/v1/projects/{project}/test-suites";
9514
+ readonly streaming: "no";
9515
+ readonly pagination: false;
9516
+ readonly pathParams: readonly [{
9517
+ readonly name: "project";
9518
+ readonly sdkName: "project";
9519
+ readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
9520
+ }];
9521
+ readonly query: readonly [{
9522
+ readonly name: "pageSize";
9523
+ readonly type: "integer";
9524
+ readonly required: false;
9525
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9526
+ }, {
9527
+ readonly name: "pageToken";
9528
+ readonly type: "string";
9529
+ readonly required: false;
9530
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9531
+ }, {
9532
+ readonly name: "orderBy";
9533
+ readonly type: "string";
9534
+ readonly required: false;
9535
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9536
+ }];
9537
+ }, {
9538
+ readonly resource: "devops.testCases";
9397
9539
  readonly method: "retrieve";
9398
- readonly summary: "Retrieve an upload";
9399
- 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.";
9540
+ readonly summary: "Retrieve a test case";
9541
+ readonly description: "Read one case in full — its steps, tags, declared owners, current state with the policy and ticket behind it, and its rolling 7 or 30 day statistics. Use it before quarantining or fixing a case, to see what the state already is and why. A case that was renamed is reachable by both its current fingerprint id and the ids listed in aliases.";
9400
9542
  readonly http: "GET";
9401
- readonly path: "/file/v1/uploads/{upload_id}";
9543
+ readonly path: "/devops/v1/test-cases/{id}";
9402
9544
  readonly streaming: "no";
9403
9545
  readonly pagination: false;
9404
9546
  readonly pathParams: readonly [{
9405
- readonly name: "upload_id";
9406
- readonly sdkName: "upload_id";
9407
- readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
9547
+ readonly name: "id";
9548
+ readonly sdkName: "id";
9549
+ readonly description: "The case identifier returned by a case list, or an older id listed in that case's aliases.";
9408
9550
  }];
9409
9551
  readonly query: readonly [];
9410
9552
  }, {
9411
- readonly resource: "file.uploads";
9412
- readonly method: "cancel";
9413
- readonly summary: "Cancel an upload";
9414
- 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.";
9415
- readonly http: "POST";
9416
- readonly path: "/file/v1/uploads/{upload_id}/cancel";
9553
+ readonly resource: "devops.testPlans";
9554
+ readonly method: "delete";
9555
+ readonly summary: "Delete a test plan";
9556
+ readonly description: "Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan's key becomes free for another plan to take.";
9557
+ readonly http: "DELETE";
9558
+ readonly path: "/devops/v1/test-plans/{id}";
9417
9559
  readonly streaming: "no";
9418
9560
  readonly pagination: false;
9419
9561
  readonly pathParams: readonly [{
9420
- readonly name: "upload_id";
9421
- readonly sdkName: "upload_id";
9422
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9562
+ readonly name: "id";
9563
+ readonly sdkName: "id";
9564
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9423
9565
  }];
9424
9566
  readonly query: readonly [];
9425
9567
  }, {
9426
- readonly resource: "file.uploads";
9427
- readonly method: "complete";
9428
- readonly summary: "Complete an upload";
9429
- 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.";
9568
+ readonly resource: "devops.testPlans";
9569
+ readonly method: "retrieve";
9570
+ readonly summary: "Retrieve a test plan";
9571
+ readonly description: "Read one plan by the id a plan list returned, to see its selector, gate, repeat count, timeout and pause state before updating or deleting it. A paused plan carries the reason, the actor and the time it resumes, so a pause you did not set is explained here rather than guessed at.";
9572
+ readonly http: "GET";
9573
+ readonly path: "/devops/v1/test-plans/{id}";
9574
+ readonly streaming: "no";
9575
+ readonly pagination: false;
9576
+ readonly pathParams: readonly [{
9577
+ readonly name: "id";
9578
+ readonly sdkName: "id";
9579
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9580
+ }];
9581
+ readonly query: readonly [];
9582
+ }, {
9583
+ readonly resource: "devops.testPlans";
9584
+ readonly method: "update";
9585
+ readonly summary: "Update a test plan";
9586
+ readonly description: "Change a plan's title, trigger, selector, gate, repeat count, timeout or enabled flag. Only the fields present in the body are changed, so a body naming one field leaves the rest exactly as they were. Changing a selector does not create a version — the plan is not a published artefact, and runs already started keep the selection they were created with. Read the plan first to know what you are leaving unchanged.";
9587
+ readonly http: "PATCH";
9588
+ readonly path: "/devops/v1/test-plans/{id}";
9589
+ readonly streaming: "no";
9590
+ readonly pagination: false;
9591
+ readonly pathParams: readonly [{
9592
+ readonly name: "id";
9593
+ readonly sdkName: "id";
9594
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9595
+ }];
9596
+ readonly query: readonly [];
9597
+ readonly body: {
9598
+ readonly required: true;
9599
+ readonly fields: readonly [{
9600
+ readonly name: "plan";
9601
+ readonly type: "object";
9602
+ readonly required: true;
9603
+ readonly description: "The fields to change. Anything absent keeps its current value, so read the plan first if you need to know what you are leaving alone.";
9604
+ }, {
9605
+ readonly name: "updateMask";
9606
+ readonly type: "string";
9607
+ readonly required: false;
9608
+ readonly description: "Comma-separated names of the plan fields this patch intends to change, for example title,enabled. Omit it to apply every field present in plan; naming fields makes the intent explicit and keeps a concurrent edit from being overwritten by accident.";
9609
+ }];
9610
+ };
9611
+ }, {
9612
+ readonly resource: "devops.testPlans";
9613
+ readonly method: "pause";
9614
+ readonly summary: "Pause a test plan";
9615
+ readonly description: "Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.";
9430
9616
  readonly http: "POST";
9431
- readonly path: "/file/v1/uploads/{upload_id}/complete";
9617
+ readonly path: "/devops/v1/test-plans/{id}:pause";
9432
9618
  readonly streaming: "no";
9433
9619
  readonly pagination: false;
9434
9620
  readonly pathParams: readonly [{
9435
- readonly name: "upload_id";
9436
- readonly sdkName: "upload_id";
9437
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9621
+ readonly name: "id";
9622
+ readonly sdkName: "id";
9623
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9438
9624
  }];
9439
9625
  readonly query: readonly [];
9440
9626
  readonly body: {
9441
9627
  readonly required: true;
9442
9628
  readonly fields: readonly [{
9443
- readonly name: "part_ids";
9444
- readonly type: "array";
9445
- readonly itemType: "string";
9629
+ readonly name: "reason";
9630
+ readonly type: "string";
9446
9631
  readonly required: true;
9447
- readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
9632
+ readonly description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped.";
9448
9633
  }, {
9449
- readonly name: "md5";
9634
+ readonly name: "until";
9450
9635
  readonly type: "string";
9451
9636
  readonly required: false;
9452
- readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
9637
+ readonly description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it.";
9453
9638
  }];
9454
9639
  };
9455
9640
  }, {
9456
- readonly resource: "file.uploads.parts";
9457
- readonly method: "create";
9458
- readonly summary: "Add an upload part";
9459
- 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.";
9641
+ readonly resource: "devops.testPlans";
9642
+ readonly method: "resume";
9643
+ readonly summary: "Resume a test plan";
9644
+ readonly description: "Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.";
9460
9645
  readonly http: "POST";
9461
- readonly path: "/file/v1/uploads/{upload_id}/parts";
9646
+ readonly path: "/devops/v1/test-plans/{id}:resume";
9462
9647
  readonly streaming: "no";
9463
9648
  readonly pagination: false;
9464
- readonly multipart: true;
9465
9649
  readonly pathParams: readonly [{
9466
- readonly name: "upload_id";
9467
- readonly sdkName: "upload_id";
9468
- readonly description: "Upload identifier returned by create; belongs to your organization.";
9650
+ readonly name: "id";
9651
+ readonly sdkName: "id";
9652
+ readonly description: "The plan identifier returned by a plan list or create answer.";
9653
+ }];
9654
+ readonly query: readonly [];
9655
+ }, {
9656
+ readonly resource: "devops.testRuns";
9657
+ readonly method: "retrieve";
9658
+ readonly summary: "Retrieve a test run";
9659
+ readonly description: "Read one run's current state, result and counts, and ask for its failed executions inline with expand. Poll this after creating a run whose result was pending. A result is monotonic once it reaches a verdict — a failed run never becomes passed by a later report, so read the run rather than the last report to know where it ended.";
9660
+ readonly http: "GET";
9661
+ readonly path: "/devops/v1/test-runs/{id}";
9662
+ readonly streaming: "no";
9663
+ readonly pagination: false;
9664
+ readonly pathParams: readonly [{
9665
+ readonly name: "id";
9666
+ readonly sdkName: "id";
9667
+ readonly description: "The run identifier returned by a run list or create answer.";
9469
9668
  }];
9470
9669
  readonly query: readonly [{
9471
- readonly name: "part_number";
9472
- readonly type: "integer";
9670
+ readonly name: "expand";
9671
+ readonly type: "array";
9672
+ readonly itemType: "string";
9673
+ readonly enum: readonly ["failedExecutions"];
9473
9674
  readonly required: false;
9474
- readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9675
+ readonly description: "Repeatable field to expand inline. failedExecutions returns the non-passed executions with the run, which saves a second call when you only need to see what broke; omit it for the bare run.";
9676
+ }];
9677
+ }, {
9678
+ readonly resource: "devops.testRuns";
9679
+ readonly method: "cancel";
9680
+ readonly summary: "Cancel a test run";
9681
+ readonly description: "Stop a run that is still going. A reason is required and is recorded on the run, because a cancelled run is read later as evidence about why a commit was not verified. Cancelling a run that already reached a verdict is refused with RUN_ALREADY_FINISHED: its result is final and cancelling it would erase the verdict. Executions already recorded stay readable.";
9682
+ readonly http: "POST";
9683
+ readonly path: "/devops/v1/test-runs/{id}:cancel";
9684
+ readonly streaming: "no";
9685
+ readonly pagination: false;
9686
+ readonly pathParams: readonly [{
9687
+ readonly name: "id";
9688
+ readonly sdkName: "id";
9689
+ readonly description: "The run identifier returned by a run list or create answer.";
9475
9690
  }];
9691
+ readonly query: readonly [];
9476
9692
  readonly body: {
9477
9693
  readonly required: true;
9478
9694
  readonly fields: readonly [{
9479
- readonly name: "data";
9695
+ readonly name: "reason";
9480
9696
  readonly type: "string";
9481
9697
  readonly required: true;
9482
- readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
9698
+ readonly description: "Why the run is being cancelled; it is stored on the run and is what a later reader finds instead of a result.";
9483
9699
  }];
9484
9700
  };
9485
9701
  }, {
9486
- readonly resource: "knowledge.vectorStores";
9702
+ readonly resource: "devops.testRuns.executions";
9487
9703
  readonly method: "list";
9488
- readonly summary: "List knowledge bases";
9489
- readonly description: "Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.";
9704
+ readonly summary: "List a run's executions";
9705
+ readonly description: "List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.";
9490
9706
  readonly http: "GET";
9491
- readonly path: "/knowledge/v1/vector_stores";
9707
+ readonly path: "/devops/v1/test-runs/{run}/executions";
9492
9708
  readonly streaming: "no";
9493
9709
  readonly pagination: false;
9494
- readonly pathParams: readonly [];
9710
+ readonly pathParams: readonly [{
9711
+ readonly name: "run";
9712
+ readonly sdkName: "run";
9713
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9714
+ }];
9495
9715
  readonly query: readonly [{
9496
- readonly name: "status";
9716
+ readonly name: "pageSize";
9717
+ readonly type: "integer";
9718
+ readonly required: false;
9719
+ readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
9720
+ }, {
9721
+ readonly name: "pageToken";
9497
9722
  readonly type: "string";
9498
- readonly enum: readonly ["active", "deleting"];
9499
9723
  readonly required: false;
9500
- readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
9724
+ readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
9501
9725
  }, {
9502
- readonly name: "after";
9726
+ readonly name: "filter";
9503
9727
  readonly type: "string";
9504
9728
  readonly required: false;
9505
- readonly description: "Cursor ID from the previous page.";
9729
+ readonly description: "AIP-160 equality filter over one declared field, for example result=failed to read only a run's failures. Fields an execution list does not declare are refused with INVALID_ARGUMENT rather than ignored.";
9506
9730
  }, {
9507
- readonly name: "before";
9731
+ readonly name: "orderBy";
9508
9732
  readonly type: "string";
9509
9733
  readonly required: false;
9510
- readonly description: "Return items before this ID.";
9734
+ readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
9735
+ }];
9736
+ }, {
9737
+ readonly resource: "devops.testRuns.executions";
9738
+ readonly method: "retrieve";
9739
+ readonly summary: "Retrieve one case's execution in a run";
9740
+ readonly description: "Read one case's execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.";
9741
+ readonly http: "GET";
9742
+ readonly path: "/devops/v1/test-runs/{run}/executions/{case}";
9743
+ readonly streaming: "no";
9744
+ readonly pagination: false;
9745
+ readonly pathParams: readonly [{
9746
+ readonly name: "run";
9747
+ readonly sdkName: "run";
9748
+ readonly description: "The run whose executions you are reading, from a run list or create answer.";
9749
+ }, {
9750
+ readonly name: "case";
9751
+ readonly sdkName: "case";
9752
+ readonly description: "The case to read inside that run, from the run's execution list or the project's case list.";
9753
+ }];
9754
+ readonly query: readonly [];
9755
+ }, {
9756
+ readonly resource: "devops.testSuites";
9757
+ readonly method: "retrieve";
9758
+ readonly summary: "Retrieve a test suite";
9759
+ readonly description: "Read one suite by the id a suite list returned, to learn its file, framework, size, purposes and how many cases it holds. Use it when a case's suite id needs a name for display, or to confirm which commit's catalog a suite came from. The id is opaque; it comes from the list, never from the file path.";
9760
+ readonly http: "GET";
9761
+ readonly path: "/devops/v1/test-suites/{id}";
9762
+ readonly streaming: "no";
9763
+ readonly pagination: false;
9764
+ readonly pathParams: readonly [{
9765
+ readonly name: "id";
9766
+ readonly sdkName: "id";
9767
+ readonly description: "The suite identifier returned by a suite list, not the file path it was discovered from.";
9768
+ }];
9769
+ readonly query: readonly [];
9770
+ }, {
9771
+ readonly resource: "file.files";
9772
+ readonly method: "list";
9773
+ readonly summary: "List files";
9774
+ readonly description: "List live files owned by your tenant, optionally filtered by purpose or session scope_id. Results default to descending creation order with a limit of 10000. Page using after or before with a file ID from the list; these cursors are mutually exclusive. Deleted and expired files are excluded.";
9775
+ readonly http: "GET";
9776
+ readonly path: "/file/v1/files";
9777
+ readonly streaming: "no";
9778
+ readonly pagination: false;
9779
+ readonly pathParams: readonly [];
9780
+ readonly query: readonly [{
9781
+ readonly name: "purpose";
9782
+ readonly type: "string";
9783
+ readonly required: false;
9784
+ readonly description: "Only return files with the given purpose.";
9511
9785
  }, {
9512
9786
  readonly name: "limit";
9513
9787
  readonly type: "integer";
9514
9788
  readonly required: false;
9515
- readonly description: "Page size.";
9789
+ readonly description: "A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.\n";
9516
9790
  }, {
9517
9791
  readonly name: "order";
9518
9792
  readonly type: "string";
9519
9793
  readonly enum: readonly ["asc", "desc"];
9520
9794
  readonly required: false;
9521
- readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9522
- }];
9523
- }, {
9524
- readonly resource: "knowledge.vectorStores";
9525
- readonly method: "create";
9526
- readonly summary: "Create knowledge base";
9527
- 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\"}.";
9528
- readonly http: "POST";
9529
- readonly path: "/knowledge/v1/vector_stores";
9530
- readonly streaming: "no";
9531
- readonly pagination: false;
9532
- readonly pathParams: readonly [];
9533
- readonly query: readonly [];
9534
- readonly body: {
9795
+ readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
9796
+ }, {
9797
+ readonly name: "after";
9798
+ readonly type: "string";
9799
+ readonly required: false;
9800
+ readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
9801
+ }, {
9802
+ readonly name: "scope_id";
9803
+ readonly type: "string";
9804
+ readonly required: false;
9805
+ readonly description: "Session whose output files to list. Accepts sesn_ or ags_ followed by 1 to 251 letters, digits, underscores or hyphens. An existing session with no outputs returns an empty list; a nonexistent or inaccessible session returns 404.";
9806
+ }, {
9807
+ readonly name: "before";
9808
+ readonly type: "string";
9809
+ readonly required: false;
9810
+ readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
9811
+ }];
9812
+ }, {
9813
+ readonly resource: "file.files";
9814
+ readonly method: "create";
9815
+ readonly summary: "Upload file";
9816
+ readonly description: "Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most 100000000 bytes, and only user_data, assistants and vision purposes are accepted. Send file bytes as a multipart file part, not a filename or file ID; in the SDK use a File or Blob, for example new File([\"Return within 23 days.\"], \"policy.txt\", { type: \"text/plain\" }). Content determines the MIME type. Supported uploads include PDF, DOCX/XLSX/PPTX, PNG/JPEG/GIF/WebP, MP3/WAV/FLAC/OGG/M4A, MP4/WebM, and UTF-8 JSON/NDJSON/CSV/Markdown/plain text; empty, unsupported, oversized files and unsupported purposes return 400. Use Uploads for larger files. The purpose vision accepts only PNG, JPEG, GIF and WebP, while conversation images require user_data. The returned ID belongs to your tenant; upload alone does not ingest the file into Knowledge. Knowledge attachment has a lower limit of 100000000 bytes. Optionally set expires_after[anchor]=created_at with expires_after[seconds] (3600–7776000). Without expiry, the file persists until deleted.";
9817
+ readonly http: "POST";
9818
+ readonly path: "/file/v1/files";
9819
+ readonly streaming: "no";
9820
+ readonly pagination: false;
9821
+ readonly multipart: true;
9822
+ readonly pathParams: readonly [];
9823
+ readonly query: readonly [];
9824
+ readonly body: {
9535
9825
  readonly required: true;
9536
9826
  readonly fields: readonly [{
9537
- readonly name: "name";
9827
+ readonly name: "file";
9538
9828
  readonly type: "string";
9539
- readonly required: false;
9540
- readonly description: "Omitted name becomes an empty string; null is rejected.";
9541
- }, {
9542
- readonly name: "metadata";
9543
- readonly type: "object";
9544
- readonly required: false;
9545
- readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
9546
- }, {
9547
- readonly name: "expires_after";
9548
- readonly type: "object";
9549
- readonly required: false;
9550
- readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
9551
- }, {
9552
- readonly name: "file_ids";
9553
- readonly type: "array";
9554
- readonly itemType: "string";
9555
- readonly required: false;
9556
- readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
9557
- }, {
9558
- readonly name: "chunking_strategy";
9559
- readonly type: "object";
9560
- readonly required: false;
9561
- 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.";
9829
+ readonly required: true;
9830
+ readonly description: "File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.";
9562
9831
  }, {
9563
- readonly name: "description";
9832
+ readonly name: "purpose";
9564
9833
  readonly type: "string";
9565
- readonly required: false;
9566
- readonly description: "Accepted but not saved or returned; its type is not validated.";
9834
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9835
+ readonly required: true;
9836
+ readonly description: "Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.";
9567
9837
  }, {
9568
- readonly name: "models";
9838
+ readonly name: "expires_after";
9569
9839
  readonly type: "object";
9570
9840
  readonly required: false;
9571
- readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9841
+ readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
9572
9842
  }];
9573
9843
  };
9574
9844
  }, {
9575
- readonly resource: "knowledge.vectorStores";
9845
+ readonly resource: "file.files";
9576
9846
  readonly method: "delete";
9577
- readonly summary: "Delete knowledge base";
9578
- readonly description: "Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.";
9847
+ readonly summary: "Delete file";
9848
+ readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
9579
9849
  readonly http: "DELETE";
9580
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9850
+ readonly path: "/file/v1/files/{file_id}";
9581
9851
  readonly streaming: "no";
9582
9852
  readonly pagination: false;
9583
9853
  readonly pathParams: readonly [{
9584
- readonly name: "vector_store_id";
9585
- readonly sdkName: "vector_store_id";
9586
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9854
+ readonly name: "file_id";
9855
+ readonly sdkName: "file_id";
9856
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9587
9857
  }];
9588
9858
  readonly query: readonly [];
9589
9859
  }, {
9590
- readonly resource: "knowledge.vectorStores";
9860
+ readonly resource: "file.files";
9591
9861
  readonly method: "retrieve";
9592
- readonly summary: "Retrieve knowledge base";
9593
- readonly description: "Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.";
9862
+ readonly summary: "Retrieve file";
9863
+ readonly description: "Retrieve metadata for a live file owned by your tenant. Use its file- ID from upload or list. Missing, deleted, expired and other-tenant files return 404; use the content endpoint to download the bytes.";
9594
9864
  readonly http: "GET";
9595
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9865
+ readonly path: "/file/v1/files/{file_id}";
9596
9866
  readonly streaming: "no";
9597
9867
  readonly pagination: false;
9598
9868
  readonly pathParams: readonly [{
9599
- readonly name: "vector_store_id";
9600
- readonly sdkName: "vector_store_id";
9601
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9869
+ readonly name: "file_id";
9870
+ readonly sdkName: "file_id";
9871
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9602
9872
  }];
9603
- readonly query: readonly [{
9604
- readonly name: "expand";
9605
- readonly type: "array";
9606
- readonly itemType: "string";
9607
- readonly enum: readonly ["files"];
9608
- readonly required: false;
9609
- readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9610
- }, {
9611
- readonly name: "expand[]";
9612
- readonly type: "array";
9613
- readonly itemType: "string";
9614
- readonly enum: readonly ["files"];
9615
- readonly required: false;
9616
- readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9873
+ readonly query: readonly [];
9874
+ }, {
9875
+ readonly resource: "file.files";
9876
+ readonly method: "retrieveContent";
9877
+ readonly summary: "Retrieve file content";
9878
+ readonly description: "Download the original bytes of a live file owned by your tenant. Supply its file- ID from upload or list. A single byte Range can return a partial response; a range outside the file returns 416. Missing, deleted, expired and other-tenant files return 404.";
9879
+ readonly http: "GET";
9880
+ readonly path: "/file/v1/files/{file_id}/content";
9881
+ readonly streaming: "no";
9882
+ readonly pagination: false;
9883
+ readonly pathParams: readonly [{
9884
+ readonly name: "file_id";
9885
+ readonly sdkName: "file_id";
9886
+ readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
9617
9887
  }];
9888
+ readonly query: readonly [];
9618
9889
  }, {
9619
- readonly resource: "knowledge.vectorStores";
9620
- readonly method: "update";
9621
- readonly summary: "Update knowledge base";
9622
- readonly description: "Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {\"name\":\"Refund policies\"}.";
9890
+ readonly resource: "file.files.contentLinks";
9891
+ readonly method: "revoke";
9892
+ readonly summary: "Revoke a file content link";
9893
+ readonly description: "Stop a previously issued content link from reading a file. Obtain the link with files.contentUrl.create. Use file_id from file creation or listing and the token path component from a content URL (/c/<token>), not the complete URL. The caller must own the file and have write access; a read-only binding is refused. Revocation propagates through the capability deny list within 15 minutes; the file and other links remain available. Only current IAM capability tokens can be revoked; legacy content links expire at the migration deadline. Example body: {\"token\":\"<token from /c/>\"}.";
9623
9894
  readonly http: "POST";
9624
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9895
+ readonly path: "/file/v1/files/{file_id}/content_links:revoke";
9625
9896
  readonly streaming: "no";
9626
9897
  readonly pagination: false;
9627
9898
  readonly pathParams: readonly [{
9628
- readonly name: "vector_store_id";
9629
- readonly sdkName: "vector_store_id";
9630
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9899
+ readonly name: "file_id";
9900
+ readonly sdkName: "file_id";
9901
+ readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
9631
9902
  }];
9632
9903
  readonly query: readonly [];
9633
9904
  readonly body: {
9634
9905
  readonly required: true;
9635
9906
  readonly fields: readonly [{
9636
- readonly name: "name";
9907
+ readonly name: "token";
9637
9908
  readonly type: "string";
9638
- readonly required: false;
9639
- readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
9640
- }, {
9641
- readonly name: "metadata";
9642
- readonly type: "object";
9643
- readonly required: false;
9644
- readonly description: "Replaces all metadata; null clears it to an empty object.";
9645
- }, {
9646
- readonly name: "expires_after";
9647
- readonly type: "object";
9648
- readonly required: false;
9649
- readonly description: "null removes automatic expiry.";
9650
- }, {
9651
- readonly name: "models";
9652
- readonly type: "object";
9653
- readonly required: false;
9654
- readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9909
+ readonly required: true;
9910
+ readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
9655
9911
  }];
9656
9912
  };
9657
9913
  }, {
9658
- readonly resource: "knowledge.vectorStores.events";
9659
- readonly method: "list";
9660
- readonly summary: "List events";
9661
- 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.";
9662
- readonly http: "GET";
9663
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
9914
+ readonly resource: "file.files.contentUrl";
9915
+ readonly method: "create";
9916
+ readonly summary: "Create a download URL";
9917
+ readonly description: "Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {\"ttl_seconds\":3600}.";
9918
+ readonly http: "POST";
9919
+ readonly path: "/file/v1/files/{file_id}/content_url";
9664
9920
  readonly streaming: "no";
9665
9921
  readonly pagination: false;
9666
9922
  readonly pathParams: readonly [{
9667
- readonly name: "vector_store_id";
9668
- readonly sdkName: "vector_store_id";
9669
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9923
+ readonly name: "file_id";
9924
+ readonly sdkName: "file_id";
9925
+ readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
9670
9926
  }];
9671
- readonly query: readonly [{
9672
- readonly name: "after_seq";
9673
- readonly type: "integer";
9674
- readonly required: false;
9675
- readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
9676
- }, {
9677
- readonly name: "limit";
9678
- readonly type: "integer";
9927
+ readonly query: readonly [];
9928
+ readonly body: {
9679
9929
  readonly required: false;
9680
- readonly description: "Page size.";
9681
- }];
9930
+ readonly fields: readonly [{
9931
+ readonly name: "ttl_seconds";
9932
+ readonly type: "integer";
9933
+ readonly required: false;
9934
+ readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
9935
+ }];
9936
+ };
9682
9937
  }, {
9683
- readonly resource: "knowledge.vectorStores.fileBatches";
9938
+ readonly resource: "file.uploads";
9684
9939
  readonly method: "create";
9685
- readonly summary: "Create file batch";
9686
- readonly description: "Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.";
9940
+ readonly summary: "Create an upload";
9941
+ readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 20 GiB (21474836480 bytes) and only user_data, assistants and vision purposes. Send parts of at most 64000000 bytes; an unfinished upload waits for them for 7 days, so a client can create → send parts → query GET /file/v1/uploads/{upload_id} → resend only the missing parts → complete. Optional part_size fixes every part length and makes each numbered part retryable with identical bytes. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.";
9687
9942
  readonly http: "POST";
9688
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
9943
+ readonly path: "/file/v1/uploads";
9689
9944
  readonly streaming: "no";
9690
9945
  readonly pagination: false;
9691
- readonly pathParams: readonly [{
9692
- readonly name: "vector_store_id";
9693
- readonly sdkName: "vector_store_id";
9694
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9695
- }];
9946
+ readonly pathParams: readonly [];
9696
9947
  readonly query: readonly [];
9697
9948
  readonly body: {
9698
9949
  readonly required: true;
9699
- readonly fields: readonly [];
9950
+ readonly fields: readonly [{
9951
+ readonly name: "bytes";
9952
+ readonly type: "integer";
9953
+ readonly required: true;
9954
+ readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
9955
+ }, {
9956
+ readonly name: "filename";
9957
+ readonly type: "string";
9958
+ readonly required: true;
9959
+ readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
9960
+ }, {
9961
+ readonly name: "mime_type";
9962
+ readonly type: "string";
9963
+ readonly required: true;
9964
+ readonly description: "Declared MIME type; validated against the assembled content.";
9965
+ }, {
9966
+ readonly name: "purpose";
9967
+ readonly type: "string";
9968
+ readonly enum: readonly ["user_data", "assistants", "vision"];
9969
+ readonly required: true;
9970
+ readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
9971
+ }, {
9972
+ readonly name: "expires_after";
9973
+ readonly type: "object";
9974
+ readonly required: false;
9975
+ readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
9976
+ }, {
9977
+ readonly name: "part_size";
9978
+ readonly type: "integer";
9979
+ readonly required: false;
9980
+ readonly description: "Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.";
9981
+ }];
9700
9982
  };
9701
9983
  }, {
9702
- readonly resource: "knowledge.vectorStores.fileBatches";
9703
- readonly method: "retrieve";
9704
- readonly summary: "Retrieve file batch";
9705
- 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.";
9706
- readonly http: "GET";
9707
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
9708
- readonly streaming: "no";
9709
- readonly pagination: false;
9710
- readonly pathParams: readonly [{
9711
- readonly name: "vector_store_id";
9712
- readonly sdkName: "vector_store_id";
9713
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9714
- }, {
9715
- readonly name: "batch_id";
9716
- readonly sdkName: "batch_id";
9717
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9984
+ readonly resource: "file.uploads";
9985
+ readonly method: "createSigned";
9986
+ readonly summary: "Create a one-time upload URL";
9987
+ readonly description: "Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide basename, exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 410 CAPABILITY_USED. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. Expired, revoked, invalid, wrong-action or cross-organization URLs return 404. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {\"filename\":\"photo.png\",\"bytes\":2048,\"content_type\":\"image/png\"}.";
9988
+ readonly http: "POST";
9989
+ readonly path: "/file/v1/uploads/signed";
9990
+ readonly streaming: "no";
9991
+ readonly pagination: false;
9992
+ readonly pathParams: readonly [];
9993
+ readonly query: readonly [];
9994
+ readonly body: {
9995
+ readonly required: true;
9996
+ readonly fields: readonly [{
9997
+ readonly name: "filename";
9998
+ readonly type: "string";
9999
+ readonly required: true;
10000
+ readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
10001
+ }, {
10002
+ readonly name: "bytes";
10003
+ readonly type: "integer";
10004
+ readonly required: true;
10005
+ readonly description: "Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length.";
10006
+ }, {
10007
+ readonly name: "content_type";
10008
+ readonly type: "string";
10009
+ readonly required: true;
10010
+ readonly description: "Declared MIME type, such as image/png. In single-PUT mode, send exactly this Content-Type or omit it. Stored file metadata is detected from the bytes in both modes.";
10011
+ }, {
10012
+ readonly name: "purpose";
10013
+ readonly type: "string";
10014
+ readonly enum: readonly ["user_data", "assistants", "vision"];
10015
+ readonly required: false;
10016
+ readonly description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
10017
+ }, {
10018
+ readonly name: "expires_in";
10019
+ readonly type: "integer";
10020
+ readonly required: false;
10021
+ readonly description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime.";
10022
+ }, {
10023
+ readonly name: "part_size";
10024
+ readonly type: "integer";
10025
+ readonly required: false;
10026
+ readonly description: "Fixed multipart chunk size in bytes, from 5242880 through 64000000; defaults to 64000000. Used only above 104857600 total bytes. The final part contains the remaining bytes; single-PUT mode keeps its existing response.";
10027
+ }];
10028
+ };
10029
+ }, {
10030
+ readonly resource: "file.uploads";
10031
+ readonly method: "retrieve";
10032
+ readonly summary: "Retrieve an upload";
10033
+ readonly description: "Read the state of an unfinished upload — its status, declared bytes, fixed part_size and the parts it already holds (received_parts, each with part_number, bytes and sha256). After a break or a failed part, call it to resend only the missing numbers, then complete. A cancelled or expired upload is refused; a completed one returns its file. A missing or other-organization upload returns 404.";
10034
+ readonly http: "GET";
10035
+ readonly path: "/file/v1/uploads/{upload_id}";
10036
+ readonly streaming: "no";
10037
+ readonly pagination: false;
10038
+ readonly pathParams: readonly [{
10039
+ readonly name: "upload_id";
10040
+ readonly sdkName: "upload_id";
10041
+ readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
9718
10042
  }];
9719
10043
  readonly query: readonly [];
9720
10044
  }, {
9721
- readonly resource: "knowledge.vectorStores.fileBatches";
10045
+ readonly resource: "file.uploads";
9722
10046
  readonly method: "cancel";
9723
- readonly summary: "Cancel file batch";
9724
- readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
10047
+ readonly summary: "Cancel an upload";
10048
+ readonly description: "Cancel an unfinished upload using upload_id from create and release its reserved storage. Further parts and completion are rejected. Cancelling an already cancelled upload returns the same terminal result; a completed upload cannot be cancelled. Delete its resulting file instead.";
9725
10049
  readonly http: "POST";
9726
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
10050
+ readonly path: "/file/v1/uploads/{upload_id}/cancel";
9727
10051
  readonly streaming: "no";
9728
10052
  readonly pagination: false;
9729
10053
  readonly pathParams: readonly [{
9730
- readonly name: "vector_store_id";
9731
- readonly sdkName: "vector_store_id";
9732
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9733
- }, {
9734
- readonly name: "batch_id";
9735
- readonly sdkName: "batch_id";
9736
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10054
+ readonly name: "upload_id";
10055
+ readonly sdkName: "upload_id";
10056
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
9737
10057
  }];
9738
10058
  readonly query: readonly [];
9739
10059
  }, {
9740
- readonly resource: "knowledge.vectorStores.fileBatches.files";
9741
- readonly method: "list";
9742
- readonly summary: "List batch files";
9743
- 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.";
9744
- readonly http: "GET";
9745
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
10060
+ readonly resource: "file.uploads";
10061
+ readonly method: "complete";
10062
+ readonly summary: "Complete an upload";
10063
+ readonly description: "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. When parts were lost, query GET /file/v1/uploads/{upload_id} and resend them before completing. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.";
10064
+ readonly http: "POST";
10065
+ readonly path: "/file/v1/uploads/{upload_id}/complete";
9746
10066
  readonly streaming: "no";
9747
10067
  readonly pagination: false;
9748
10068
  readonly pathParams: readonly [{
9749
- readonly name: "vector_store_id";
9750
- readonly sdkName: "vector_store_id";
9751
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9752
- }, {
9753
- readonly name: "batch_id";
9754
- readonly sdkName: "batch_id";
9755
- readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10069
+ readonly name: "upload_id";
10070
+ readonly sdkName: "upload_id";
10071
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
10072
+ }];
10073
+ readonly query: readonly [];
10074
+ readonly body: {
10075
+ readonly required: true;
10076
+ readonly fields: readonly [{
10077
+ readonly name: "part_ids";
10078
+ readonly type: "array";
10079
+ readonly itemType: "string";
10080
+ readonly required: true;
10081
+ readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
10082
+ }, {
10083
+ readonly name: "md5";
10084
+ readonly type: "string";
10085
+ readonly required: false;
10086
+ readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
10087
+ }];
10088
+ };
10089
+ }, {
10090
+ readonly resource: "file.uploads.parts";
10091
+ readonly method: "create";
10092
+ readonly summary: "Add an upload part";
10093
+ readonly description: "Send one nonempty part as the multipart data field, at most 64000000 bytes. Parts may arrive concurrently in any order. Use upload_id from create. For a fixed-size upload, supply part_number starting at 1 and exactly part_size bytes except for the final remainder; retry the same number with identical bytes to recover its part ID, and query GET /file/v1/uploads/{upload_id} to see which numbers already arrived. Without part_size, each request creates a new part and part_number is ignored. Save the returned part IDs for complete.";
10094
+ readonly http: "POST";
10095
+ readonly path: "/file/v1/uploads/{upload_id}/parts";
10096
+ readonly streaming: "no";
10097
+ readonly pagination: false;
10098
+ readonly multipart: true;
10099
+ readonly pathParams: readonly [{
10100
+ readonly name: "upload_id";
10101
+ readonly sdkName: "upload_id";
10102
+ readonly description: "Upload identifier returned by create; belongs to your organization.";
9756
10103
  }];
9757
10104
  readonly query: readonly [{
9758
- readonly name: "after";
9759
- readonly type: "string";
9760
- readonly required: false;
9761
- readonly description: "Cursor ID from the previous page.";
9762
- }, {
9763
- readonly name: "before";
9764
- readonly type: "string";
9765
- readonly required: false;
9766
- readonly description: "Return items before this ID.";
9767
- }, {
9768
- readonly name: "limit";
10105
+ readonly name: "part_number";
9769
10106
  readonly type: "integer";
9770
10107
  readonly required: false;
9771
- readonly description: "Page size.";
9772
- }, {
9773
- readonly name: "order";
9774
- readonly type: "string";
9775
- readonly enum: readonly ["asc", "desc"];
9776
- readonly required: false;
9777
- readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9778
- }, {
9779
- readonly name: "filter";
9780
- readonly type: "string";
9781
- readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
9782
- readonly required: false;
9783
- readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
10108
+ readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
9784
10109
  }];
10110
+ readonly body: {
10111
+ readonly required: true;
10112
+ readonly fields: readonly [{
10113
+ readonly name: "data";
10114
+ readonly type: "string";
10115
+ readonly required: true;
10116
+ readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
10117
+ }];
10118
+ };
9785
10119
  }, {
9786
- readonly resource: "knowledge.vectorStores.files";
10120
+ readonly resource: "knowledge.vectorStores";
9787
10121
  readonly method: "list";
9788
- readonly summary: "List files";
9789
- readonly description: "Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.";
10122
+ readonly summary: "List knowledge bases";
10123
+ readonly description: "Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.";
9790
10124
  readonly http: "GET";
9791
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10125
+ readonly path: "/knowledge/v1/vector_stores";
9792
10126
  readonly streaming: "no";
9793
10127
  readonly pagination: false;
9794
- readonly pathParams: readonly [{
9795
- readonly name: "vector_store_id";
9796
- readonly sdkName: "vector_store_id";
9797
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9798
- }];
10128
+ readonly pathParams: readonly [];
9799
10129
  readonly query: readonly [{
10130
+ readonly name: "status";
10131
+ readonly type: "string";
10132
+ readonly enum: readonly ["active", "deleting"];
10133
+ readonly required: false;
10134
+ readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
10135
+ }, {
9800
10136
  readonly name: "after";
9801
10137
  readonly type: "string";
9802
10138
  readonly required: false;
@@ -9817,139 +10153,192 @@ export declare const operations: readonly [{
9817
10153
  readonly enum: readonly ["asc", "desc"];
9818
10154
  readonly required: false;
9819
10155
  readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
9820
- }, {
9821
- readonly name: "filter";
9822
- readonly type: "string";
9823
- readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
9824
- readonly required: false;
9825
- 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.";
9826
10156
  }];
9827
10157
  }, {
9828
- readonly resource: "knowledge.vectorStores.files";
10158
+ readonly resource: "knowledge.vectorStores";
9829
10159
  readonly method: "create";
9830
- readonly summary: "Add file";
9831
- 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.";
10160
+ readonly summary: "Create knowledge base";
10161
+ readonly description: "Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {\"name\":\"Refund policies\"}.";
9832
10162
  readonly http: "POST";
9833
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10163
+ readonly path: "/knowledge/v1/vector_stores";
9834
10164
  readonly streaming: "no";
9835
10165
  readonly pagination: false;
9836
- readonly pathParams: readonly [{
9837
- readonly name: "vector_store_id";
9838
- readonly sdkName: "vector_store_id";
9839
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9840
- }];
10166
+ readonly pathParams: readonly [];
9841
10167
  readonly query: readonly [];
9842
10168
  readonly body: {
9843
10169
  readonly required: true;
9844
10170
  readonly fields: readonly [{
9845
- readonly name: "file_id";
10171
+ readonly name: "name";
9846
10172
  readonly type: "string";
9847
- readonly required: true;
9848
- readonly description: "Existing source File ID returned by file upload; the file must be visible to the caller.";
10173
+ readonly required: false;
10174
+ readonly description: "Omitted name becomes an empty string; null is rejected.";
9849
10175
  }, {
9850
- readonly name: "attributes";
10176
+ readonly name: "metadata";
9851
10177
  readonly type: "object";
9852
10178
  readonly required: false;
9853
- readonly description: "Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.";
10179
+ readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
10180
+ }, {
10181
+ readonly name: "expires_after";
10182
+ readonly type: "object";
10183
+ readonly required: false;
10184
+ readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
10185
+ }, {
10186
+ readonly name: "file_ids";
10187
+ readonly type: "array";
10188
+ readonly itemType: "string";
10189
+ readonly required: false;
10190
+ readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
9854
10191
  }, {
9855
10192
  readonly name: "chunking_strategy";
9856
10193
  readonly type: "object";
9857
10194
  readonly required: false;
9858
10195
  readonly description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.";
10196
+ }, {
10197
+ readonly name: "description";
10198
+ readonly type: "string";
10199
+ readonly required: false;
10200
+ readonly description: "Accepted but not saved or returned; its type is not validated.";
10201
+ }, {
10202
+ readonly name: "models";
10203
+ readonly type: "object";
10204
+ readonly required: false;
10205
+ readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9859
10206
  }];
9860
10207
  };
9861
10208
  }, {
9862
- readonly resource: "knowledge.vectorStores.files";
10209
+ readonly resource: "knowledge.vectorStores";
9863
10210
  readonly method: "delete";
9864
- readonly summary: "Remove file";
9865
- readonly description: "Removes the file from search immediately; does not delete the original File.";
10211
+ readonly summary: "Delete knowledge base";
10212
+ readonly description: "Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.";
9866
10213
  readonly http: "DELETE";
9867
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10214
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9868
10215
  readonly streaming: "no";
9869
10216
  readonly pagination: false;
9870
10217
  readonly pathParams: readonly [{
9871
10218
  readonly name: "vector_store_id";
9872
10219
  readonly sdkName: "vector_store_id";
9873
10220
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9874
- }, {
9875
- readonly name: "file_id";
9876
- readonly sdkName: "file_id";
9877
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
9878
10221
  }];
9879
10222
  readonly query: readonly [];
9880
10223
  }, {
9881
- readonly resource: "knowledge.vectorStores.files";
10224
+ readonly resource: "knowledge.vectorStores";
9882
10225
  readonly method: "retrieve";
9883
- readonly summary: "Retrieve file";
9884
- readonly description: "Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.";
10226
+ readonly summary: "Retrieve knowledge base";
10227
+ readonly description: "Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.";
9885
10228
  readonly http: "GET";
9886
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10229
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9887
10230
  readonly streaming: "no";
9888
10231
  readonly pagination: false;
9889
10232
  readonly pathParams: readonly [{
9890
10233
  readonly name: "vector_store_id";
9891
10234
  readonly sdkName: "vector_store_id";
9892
10235
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10236
+ }];
10237
+ readonly query: readonly [{
10238
+ readonly name: "expand";
10239
+ readonly type: "array";
10240
+ readonly itemType: "string";
10241
+ readonly enum: readonly ["files"];
10242
+ readonly required: false;
10243
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9893
10244
  }, {
9894
- readonly name: "file_id";
9895
- readonly sdkName: "file_id";
9896
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10245
+ readonly name: "expand[]";
10246
+ readonly type: "array";
10247
+ readonly itemType: "string";
10248
+ readonly enum: readonly ["files"];
10249
+ readonly required: false;
10250
+ readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
9897
10251
  }];
9898
- readonly query: readonly [];
9899
10252
  }, {
9900
- readonly resource: "knowledge.vectorStores.files";
10253
+ readonly resource: "knowledge.vectorStores";
9901
10254
  readonly method: "update";
9902
- readonly summary: "Update file attributes";
9903
- 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.";
10255
+ readonly summary: "Update knowledge base";
10256
+ readonly description: "Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {\"name\":\"Refund policies\"}.";
9904
10257
  readonly http: "POST";
9905
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10258
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
9906
10259
  readonly streaming: "no";
9907
10260
  readonly pagination: false;
9908
10261
  readonly pathParams: readonly [{
9909
10262
  readonly name: "vector_store_id";
9910
10263
  readonly sdkName: "vector_store_id";
9911
10264
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9912
- }, {
9913
- readonly name: "file_id";
9914
- readonly sdkName: "file_id";
9915
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
9916
10265
  }];
9917
10266
  readonly query: readonly [];
9918
10267
  readonly body: {
9919
10268
  readonly required: true;
9920
10269
  readonly fields: readonly [{
9921
- readonly name: "attributes";
10270
+ readonly name: "name";
10271
+ readonly type: "string";
10272
+ readonly required: false;
10273
+ readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
10274
+ }, {
10275
+ readonly name: "metadata";
9922
10276
  readonly type: "object";
9923
10277
  readonly required: false;
9924
- readonly description: "Replaces all search-filter attributes; null clears them.";
10278
+ readonly description: "Replaces all metadata; null clears it to an empty object.";
10279
+ }, {
10280
+ readonly name: "expires_after";
10281
+ readonly type: "object";
10282
+ readonly required: false;
10283
+ readonly description: "null removes automatic expiry.";
10284
+ }, {
10285
+ readonly name: "models";
10286
+ readonly type: "object";
10287
+ readonly required: false;
10288
+ readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
9925
10289
  }];
9926
10290
  };
9927
10291
  }, {
9928
- readonly resource: "knowledge.vectorStores.files";
9929
- readonly method: "retrieveContent";
9930
- readonly summary: "Read extracted content";
9931
- readonly description: "Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.";
10292
+ readonly resource: "knowledge.vectorStores.events";
10293
+ readonly method: "list";
10294
+ readonly summary: "List events";
10295
+ readonly description: "Reads events for this knowledge base in increasing sequence order, including while soft-deleted. Pass next_seq as after_seq to continue; null next_seq marks the current end. Example: ?after_seq=0&limit=20.";
9932
10296
  readonly http: "GET";
9933
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10297
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
9934
10298
  readonly streaming: "no";
9935
10299
  readonly pagination: false;
9936
10300
  readonly pathParams: readonly [{
9937
10301
  readonly name: "vector_store_id";
9938
10302
  readonly sdkName: "vector_store_id";
9939
10303
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10304
+ }];
10305
+ readonly query: readonly [{
10306
+ readonly name: "after_seq";
10307
+ readonly type: "integer";
10308
+ readonly required: false;
10309
+ readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
9940
10310
  }, {
9941
- readonly name: "file_id";
9942
- readonly sdkName: "file_id";
9943
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10311
+ readonly name: "limit";
10312
+ readonly type: "integer";
10313
+ readonly required: false;
10314
+ readonly description: "Page size.";
9944
10315
  }];
9945
- readonly query: readonly [];
9946
10316
  }, {
9947
- readonly resource: "knowledge.vectorStores.files.retry";
10317
+ readonly resource: "knowledge.vectorStores.fileBatches";
9948
10318
  readonly method: "create";
9949
- readonly summary: "Retry failed file";
9950
- readonly description: "Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.";
10319
+ readonly summary: "Create file batch";
10320
+ readonly description: "Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.";
9951
10321
  readonly http: "POST";
9952
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10322
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
10323
+ readonly streaming: "no";
10324
+ readonly pagination: false;
10325
+ readonly pathParams: readonly [{
10326
+ readonly name: "vector_store_id";
10327
+ readonly sdkName: "vector_store_id";
10328
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10329
+ }];
10330
+ readonly query: readonly [];
10331
+ readonly body: {
10332
+ readonly required: true;
10333
+ readonly fields: readonly [];
10334
+ };
10335
+ }, {
10336
+ readonly resource: "knowledge.vectorStores.fileBatches";
10337
+ readonly method: "retrieve";
10338
+ readonly summary: "Retrieve file batch";
10339
+ readonly description: "Retrieves a batch created in this knowledge base, including current status and file counts. Use the batch id returned by batch creation to monitor ingestion.";
10340
+ readonly http: "GET";
10341
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
9953
10342
  readonly streaming: "no";
9954
10343
  readonly pagination: false;
9955
10344
  readonly pathParams: readonly [{
@@ -9957,18 +10346,37 @@ export declare const operations: readonly [{
9957
10346
  readonly sdkName: "vector_store_id";
9958
10347
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9959
10348
  }, {
9960
- readonly name: "file_id";
9961
- readonly sdkName: "file_id";
9962
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10349
+ readonly name: "batch_id";
10350
+ readonly sdkName: "batch_id";
10351
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9963
10352
  }];
9964
10353
  readonly query: readonly [];
9965
10354
  }, {
9966
- readonly resource: "knowledge.vectorStores.files.segments";
10355
+ readonly resource: "knowledge.vectorStores.fileBatches";
10356
+ readonly method: "cancel";
10357
+ readonly summary: "Cancel file batch";
10358
+ readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
10359
+ readonly http: "POST";
10360
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
10361
+ readonly streaming: "no";
10362
+ readonly pagination: false;
10363
+ readonly pathParams: readonly [{
10364
+ readonly name: "vector_store_id";
10365
+ readonly sdkName: "vector_store_id";
10366
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10367
+ }, {
10368
+ readonly name: "batch_id";
10369
+ readonly sdkName: "batch_id";
10370
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
10371
+ }];
10372
+ readonly query: readonly [];
10373
+ }, {
10374
+ readonly resource: "knowledge.vectorStores.fileBatches.files";
9967
10375
  readonly method: "list";
9968
- readonly summary: "List file segments";
9969
- readonly description: "Lists the stored chunks of an attached file, ordered by increasing segment index by default. Use the attachment id and last_id as after to continue; returned chunk ids can be retrieved individually.";
10376
+ readonly summary: "List batch files";
10377
+ readonly description: "Lists files still attached from the identified batch, newest attachment first by default. Use the batch creation id and ?filter=failed to inspect failures; last_id is the next after cursor.";
9970
10378
  readonly http: "GET";
9971
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10379
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
9972
10380
  readonly streaming: "no";
9973
10381
  readonly pagination: false;
9974
10382
  readonly pathParams: readonly [{
@@ -9976,9 +10384,9 @@ export declare const operations: readonly [{
9976
10384
  readonly sdkName: "vector_store_id";
9977
10385
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
9978
10386
  }, {
9979
- readonly name: "file_id";
9980
- readonly sdkName: "file_id";
9981
- readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10387
+ readonly name: "batch_id";
10388
+ readonly sdkName: "batch_id";
10389
+ readonly description: "File-batch ID returned by batch creation in this knowledge base.";
9982
10390
  }];
9983
10391
  readonly query: readonly [{
9984
10392
  readonly name: "after";
@@ -10001,14 +10409,20 @@ export declare const operations: readonly [{
10001
10409
  readonly enum: readonly ["asc", "desc"];
10002
10410
  readonly required: false;
10003
10411
  readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10412
+ }, {
10413
+ readonly name: "filter";
10414
+ readonly type: "string";
10415
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10416
+ readonly required: false;
10417
+ readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
10004
10418
  }];
10005
10419
  }, {
10006
- readonly resource: "knowledge.vectorStores.purge";
10007
- readonly method: "create";
10008
- readonly summary: "Permanently purge knowledge base";
10009
- 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.";
10010
- readonly http: "POST";
10011
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/purge";
10420
+ readonly resource: "knowledge.vectorStores.files";
10421
+ readonly method: "list";
10422
+ readonly summary: "List files";
10423
+ readonly description: "Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.";
10424
+ readonly http: "GET";
10425
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10012
10426
  readonly streaming: "no";
10013
10427
  readonly pagination: false;
10014
10428
  readonly pathParams: readonly [{
@@ -10016,29 +10430,41 @@ export declare const operations: readonly [{
10016
10430
  readonly sdkName: "vector_store_id";
10017
10431
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10018
10432
  }];
10019
- readonly query: readonly [];
10020
- }, {
10021
- readonly resource: "knowledge.vectorStores";
10022
- readonly method: "restore";
10023
- readonly summary: "Restore knowledge base";
10024
- 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.";
10025
- readonly http: "POST";
10026
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/restore";
10027
- readonly streaming: "no";
10028
- readonly pagination: false;
10029
- readonly pathParams: readonly [{
10030
- readonly name: "vector_store_id";
10031
- readonly sdkName: "vector_store_id";
10032
- readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10433
+ readonly query: readonly [{
10434
+ readonly name: "after";
10435
+ readonly type: "string";
10436
+ readonly required: false;
10437
+ readonly description: "Cursor ID from the previous page.";
10438
+ }, {
10439
+ readonly name: "before";
10440
+ readonly type: "string";
10441
+ readonly required: false;
10442
+ readonly description: "Return items before this ID.";
10443
+ }, {
10444
+ readonly name: "limit";
10445
+ readonly type: "integer";
10446
+ readonly required: false;
10447
+ readonly description: "Page size.";
10448
+ }, {
10449
+ readonly name: "order";
10450
+ readonly type: "string";
10451
+ readonly enum: readonly ["asc", "desc"];
10452
+ readonly required: false;
10453
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10454
+ }, {
10455
+ readonly name: "filter";
10456
+ readonly type: "string";
10457
+ readonly enum: readonly ["in_progress", "completed", "failed", "cancelled"];
10458
+ readonly required: false;
10459
+ readonly description: "in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.";
10033
10460
  }];
10034
- readonly query: readonly [];
10035
10461
  }, {
10036
- readonly resource: "knowledge.vectorStores.search";
10462
+ readonly resource: "knowledge.vectorStores.files";
10037
10463
  readonly method: "create";
10038
- readonly summary: "Search knowledge base";
10039
- readonly description: "Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {\"embedding_weight\":0,\"text_weight\":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.";
10464
+ readonly summary: "Add file";
10465
+ readonly description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.";
10040
10466
  readonly http: "POST";
10041
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10467
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files";
10042
10468
  readonly streaming: "no";
10043
10469
  readonly pagination: false;
10044
10470
  readonly pathParams: readonly [{
@@ -10050,53 +10476,261 @@ export declare const operations: readonly [{
10050
10476
  readonly body: {
10051
10477
  readonly required: true;
10052
10478
  readonly fields: readonly [{
10053
- readonly name: "query";
10054
- readonly type: "object";
10055
- readonly required: true;
10056
- readonly description: "Nonblank text. Multiple queries are joined with newlines for one search.";
10057
- }, {
10058
- readonly name: "filters";
10059
- readonly type: "object";
10060
- readonly required: false;
10061
- readonly description: "Type-strict file attribute filters. At most 20 nested levels below the root.";
10062
- }, {
10063
- readonly name: "max_num_results";
10064
- readonly type: "integer";
10065
- readonly required: false;
10066
- readonly description: "Maximum chunks, not distinct files.";
10067
- }, {
10068
- readonly name: "rewrite_query";
10069
- readonly type: "boolean";
10070
- readonly required: false;
10071
- 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.";
10072
- }, {
10073
- readonly name: "next_page";
10479
+ readonly name: "file_id";
10074
10480
  readonly type: "string";
10075
- readonly required: false;
10076
- readonly description: "Unlike OpenAI vector stores, search has no next page; supplying this cursor has no effect. Narrow the query or filters to inspect other matches.";
10481
+ readonly required: true;
10482
+ readonly description: "Existing source File ID returned by file upload; the file must be visible to the caller.";
10077
10483
  }, {
10078
- readonly name: "ranking_options";
10484
+ readonly name: "attributes";
10079
10485
  readonly type: "object";
10080
10486
  readonly required: false;
10081
- readonly description: "Controls result ranking and the minimum score required for inclusion.";
10487
+ readonly description: "Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.";
10082
10488
  }, {
10083
- readonly name: "praxis";
10489
+ readonly name: "chunking_strategy";
10084
10490
  readonly type: "object";
10085
10491
  readonly required: false;
10086
- readonly description: "Set explain=true to include score and term explanations.";
10492
+ readonly description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.";
10087
10493
  }];
10088
10494
  };
10089
10495
  }, {
10090
- readonly resource: "knowledge.vectorStores.segments";
10091
- readonly method: "retrieve";
10092
- readonly summary: "Retrieve segment";
10093
- 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.";
10094
- readonly http: "GET";
10095
- readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}";
10096
- readonly streaming: "no";
10097
- readonly pagination: false;
10098
- readonly pathParams: readonly [{
10099
- readonly name: "vector_store_id";
10496
+ readonly resource: "knowledge.vectorStores.files";
10497
+ readonly method: "delete";
10498
+ readonly summary: "Remove file";
10499
+ readonly description: "Removes the file from search immediately; does not delete the original File.";
10500
+ readonly http: "DELETE";
10501
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10502
+ readonly streaming: "no";
10503
+ readonly pagination: false;
10504
+ readonly pathParams: readonly [{
10505
+ readonly name: "vector_store_id";
10506
+ readonly sdkName: "vector_store_id";
10507
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10508
+ }, {
10509
+ readonly name: "file_id";
10510
+ readonly sdkName: "file_id";
10511
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10512
+ }];
10513
+ readonly query: readonly [];
10514
+ }, {
10515
+ readonly resource: "knowledge.vectorStores.files";
10516
+ readonly method: "retrieve";
10517
+ readonly summary: "Retrieve file";
10518
+ readonly description: "Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.";
10519
+ readonly http: "GET";
10520
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10521
+ readonly streaming: "no";
10522
+ readonly pagination: false;
10523
+ readonly pathParams: readonly [{
10524
+ readonly name: "vector_store_id";
10525
+ readonly sdkName: "vector_store_id";
10526
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10527
+ }, {
10528
+ readonly name: "file_id";
10529
+ readonly sdkName: "file_id";
10530
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10531
+ }];
10532
+ readonly query: readonly [];
10533
+ }, {
10534
+ readonly resource: "knowledge.vectorStores.files";
10535
+ readonly method: "update";
10536
+ readonly summary: "Update file attributes";
10537
+ readonly description: "Replaces search-filter attributes of an existing attachment without reingesting its content. Use an attached file id. Example body: {\"attributes\":{\"category\":\"refund\"}}; null clears the attributes.";
10538
+ readonly http: "POST";
10539
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}";
10540
+ readonly streaming: "no";
10541
+ readonly pagination: false;
10542
+ readonly pathParams: readonly [{
10543
+ readonly name: "vector_store_id";
10544
+ readonly sdkName: "vector_store_id";
10545
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10546
+ }, {
10547
+ readonly name: "file_id";
10548
+ readonly sdkName: "file_id";
10549
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10550
+ }];
10551
+ readonly query: readonly [];
10552
+ readonly body: {
10553
+ readonly required: true;
10554
+ readonly fields: readonly [{
10555
+ readonly name: "attributes";
10556
+ readonly type: "object";
10557
+ readonly required: false;
10558
+ readonly description: "Replaces all search-filter attributes; null clears them.";
10559
+ }];
10560
+ };
10561
+ }, {
10562
+ readonly resource: "knowledge.vectorStores.files";
10563
+ readonly method: "retrieveContent";
10564
+ readonly summary: "Read extracted content";
10565
+ readonly description: "Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.";
10566
+ readonly http: "GET";
10567
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content";
10568
+ readonly streaming: "no";
10569
+ readonly pagination: false;
10570
+ readonly pathParams: readonly [{
10571
+ readonly name: "vector_store_id";
10572
+ readonly sdkName: "vector_store_id";
10573
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10574
+ }, {
10575
+ readonly name: "file_id";
10576
+ readonly sdkName: "file_id";
10577
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10578
+ }];
10579
+ readonly query: readonly [];
10580
+ }, {
10581
+ readonly resource: "knowledge.vectorStores.files.retry";
10582
+ readonly method: "create";
10583
+ readonly summary: "Retry failed file";
10584
+ readonly description: "Retries only failed files; other states return 409 FILE_INVALID_STATE. Retry after failure has not yet been observed in the documented run.";
10585
+ readonly http: "POST";
10586
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/retry";
10587
+ readonly streaming: "no";
10588
+ readonly pagination: false;
10589
+ readonly pathParams: readonly [{
10590
+ readonly name: "vector_store_id";
10591
+ readonly sdkName: "vector_store_id";
10592
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10593
+ }, {
10594
+ readonly name: "file_id";
10595
+ readonly sdkName: "file_id";
10596
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10597
+ }];
10598
+ readonly query: readonly [];
10599
+ }, {
10600
+ readonly resource: "knowledge.vectorStores.files.segments";
10601
+ readonly method: "list";
10602
+ readonly summary: "List file segments";
10603
+ readonly description: "Lists the stored chunks of an attached file, ordered by increasing segment index by default. Use the attachment id and last_id as after to continue; returned chunk ids can be retrieved individually.";
10604
+ readonly http: "GET";
10605
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/segments";
10606
+ readonly streaming: "no";
10607
+ readonly pagination: false;
10608
+ readonly pathParams: readonly [{
10609
+ readonly name: "vector_store_id";
10610
+ readonly sdkName: "vector_store_id";
10611
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10612
+ }, {
10613
+ readonly name: "file_id";
10614
+ readonly sdkName: "file_id";
10615
+ readonly description: "Source File ID of an attachment, returned by file attachment or listing.";
10616
+ }];
10617
+ readonly query: readonly [{
10618
+ readonly name: "after";
10619
+ readonly type: "string";
10620
+ readonly required: false;
10621
+ readonly description: "Cursor ID from the previous page.";
10622
+ }, {
10623
+ readonly name: "before";
10624
+ readonly type: "string";
10625
+ readonly required: false;
10626
+ readonly description: "Return items before this ID.";
10627
+ }, {
10628
+ readonly name: "limit";
10629
+ readonly type: "integer";
10630
+ readonly required: false;
10631
+ readonly description: "Page size.";
10632
+ }, {
10633
+ readonly name: "order";
10634
+ readonly type: "string";
10635
+ readonly enum: readonly ["asc", "desc"];
10636
+ readonly required: false;
10637
+ readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
10638
+ }];
10639
+ }, {
10640
+ readonly resource: "knowledge.vectorStores.purge";
10641
+ readonly method: "create";
10642
+ readonly summary: "Permanently purge knowledge base";
10643
+ readonly description: "Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.";
10644
+ readonly http: "POST";
10645
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/purge";
10646
+ readonly streaming: "no";
10647
+ readonly pagination: false;
10648
+ readonly pathParams: readonly [{
10649
+ readonly name: "vector_store_id";
10650
+ readonly sdkName: "vector_store_id";
10651
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10652
+ }];
10653
+ readonly query: readonly [];
10654
+ }, {
10655
+ readonly resource: "knowledge.vectorStores";
10656
+ readonly method: "restore";
10657
+ readonly summary: "Restore knowledge base";
10658
+ readonly description: "Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.";
10659
+ readonly http: "POST";
10660
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/restore";
10661
+ readonly streaming: "no";
10662
+ readonly pagination: false;
10663
+ readonly pathParams: readonly [{
10664
+ readonly name: "vector_store_id";
10665
+ readonly sdkName: "vector_store_id";
10666
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10667
+ }];
10668
+ readonly query: readonly [];
10669
+ }, {
10670
+ readonly resource: "knowledge.vectorStores.search";
10671
+ readonly method: "create";
10672
+ readonly summary: "Search knowledge base";
10673
+ readonly description: "Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {\"embedding_weight\":0,\"text_weight\":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.";
10674
+ readonly http: "POST";
10675
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/search";
10676
+ readonly streaming: "no";
10677
+ readonly pagination: false;
10678
+ readonly pathParams: readonly [{
10679
+ readonly name: "vector_store_id";
10680
+ readonly sdkName: "vector_store_id";
10681
+ readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10682
+ }];
10683
+ readonly query: readonly [];
10684
+ readonly body: {
10685
+ readonly required: true;
10686
+ readonly fields: readonly [{
10687
+ readonly name: "query";
10688
+ readonly type: "object";
10689
+ readonly required: true;
10690
+ readonly description: "Nonblank text. Multiple queries are joined with newlines for one search.";
10691
+ }, {
10692
+ readonly name: "filters";
10693
+ readonly type: "object";
10694
+ readonly required: false;
10695
+ readonly description: "Type-strict file attribute filters. At most 20 nested levels below the root.";
10696
+ }, {
10697
+ readonly name: "max_num_results";
10698
+ readonly type: "integer";
10699
+ readonly required: false;
10700
+ readonly description: "Maximum chunks, not distinct files.";
10701
+ }, {
10702
+ readonly name: "rewrite_query";
10703
+ readonly type: "boolean";
10704
+ readonly required: false;
10705
+ readonly description: "When true, the store's query_rewrite model first rewrites each query into a concise search query; retrieval uses the rewrite and search_query returns it. Each rewrite is one small model call billed by model usage. If a rewrite fails, times out (5 s) or is empty, that query falls back to the original text and the search still succeeds. Omitted or false makes no model call.";
10706
+ }, {
10707
+ readonly name: "next_page";
10708
+ readonly type: "string";
10709
+ readonly required: false;
10710
+ readonly description: "Unlike OpenAI vector stores, search has no next page; supplying this cursor has no effect. Narrow the query or filters to inspect other matches.";
10711
+ }, {
10712
+ readonly name: "ranking_options";
10713
+ readonly type: "object";
10714
+ readonly required: false;
10715
+ readonly description: "Controls result ranking and the minimum score required for inclusion.";
10716
+ }, {
10717
+ readonly name: "praxis";
10718
+ readonly type: "object";
10719
+ readonly required: false;
10720
+ readonly description: "Set explain=true to include score and term explanations.";
10721
+ }];
10722
+ };
10723
+ }, {
10724
+ readonly resource: "knowledge.vectorStores.segments";
10725
+ readonly method: "retrieve";
10726
+ readonly summary: "Retrieve segment";
10727
+ readonly description: "Retrieves one chunk and its term statistics. Take chunk_id from segment listing or native search content; the chunk must belong to this knowledge base.";
10728
+ readonly http: "GET";
10729
+ readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/segments/{chunk_id}";
10730
+ readonly streaming: "no";
10731
+ readonly pagination: false;
10732
+ readonly pathParams: readonly [{
10733
+ readonly name: "vector_store_id";
10100
10734
  readonly sdkName: "vector_store_id";
10101
10735
  readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
10102
10736
  }, {
@@ -10298,7 +10932,7 @@ export declare const operations: readonly [{
10298
10932
  readonly resource: "media.libraries.assets";
10299
10933
  readonly method: "create";
10300
10934
  readonly summary: "Upload asset";
10301
- 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.";
10935
+ readonly description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10302
10936
  readonly http: "POST";
10303
10937
  readonly path: "/media/v1/libraries/{library_id}/assets";
10304
10938
  readonly streaming: "no";
@@ -10395,7 +11029,7 @@ export declare const operations: readonly [{
10395
11029
  readonly resource: "media.libraries.assets.import";
10396
11030
  readonly method: "create";
10397
11031
  readonly summary: "Import file";
10398
- 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.";
11032
+ readonly description: "Copy a File into an independent Media asset. New assets default to organization-private delivery (type=authenticated); explicitly set type=upload for public originals and derivatives. Omitting type on overwrite preserves the current type. Deleting the source File does not delete this copy. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10399
11033
  readonly http: "POST";
10400
11034
  readonly path: "/media/v1/libraries/{library_id}/assets/import";
10401
11035
  readonly streaming: "no";
@@ -10608,7 +11242,7 @@ export declare const operations: readonly [{
10608
11242
  readonly resource: "media.libraries.assets.reprocess";
10609
11243
  readonly method: "create";
10610
11244
  readonly summary: "Reprocess asset";
10611
- 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.";
11245
+ readonly description: " For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10612
11246
  readonly http: "POST";
10613
11247
  readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess";
10614
11248
  readonly streaming: "no";
@@ -10660,9 +11294,9 @@ export declare const operations: readonly [{
10660
11294
  }, {
10661
11295
  readonly name: "kind";
10662
11296
  readonly type: "string";
10663
- readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "embedding"];
11297
+ readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "loudness", "beats", "content", "embedding"];
10664
11298
  readonly required: false;
10665
- 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.";
11299
+ readonly description: "Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, loudness is measured loudness, beats is the measured tempo and beat grid, content is the derived speech, music and silence split, and embedding reports a failed embedding step.";
10666
11300
  }, {
10667
11301
  readonly name: "cursor";
10668
11302
  readonly type: "string";
@@ -10678,7 +11312,7 @@ export declare const operations: readonly [{
10678
11312
  readonly resource: "media.libraries.assets";
10679
11313
  readonly method: "batch";
10680
11314
  readonly summary: "Batch assets alias";
10681
- 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.";
11315
+ readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10682
11316
  readonly http: "POST";
10683
11317
  readonly path: "/media/v1/libraries/{library_id}/assets:batch";
10684
11318
  readonly streaming: "no";
@@ -10707,7 +11341,7 @@ export declare const operations: readonly [{
10707
11341
  readonly resource: "media.libraries.batches";
10708
11342
  readonly method: "create";
10709
11343
  readonly summary: "Create batch";
10710
- 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.";
11344
+ readonly description: "Queue a frozen selection for tagging, untagging, context replacement, moving, deleting or reprocessing. IDs are limited to 1000; use an expression for larger selections, subject to the search scan budget. reprocess starts at most 30 assets per rolling minute per library. Only retryable failed steps and legacy source-size unsupported steps rerun. Omit kinds to inspect all recoverable steps, or supply kinds to narrow them. Other unsupported, permanent and completed steps remain unchanged; a permanent output blocks only its own step. Assets without any selected recoverable step count as failed items without starting understanding. Poll the returned job id; done counts accepted launches, not successful model inference. Staff Admin only permits reprocess and requires a nonblank reason. Example: {\"action\":\"reprocess\",\"selector\":{\"expression\":\"processing_state=failed AND failure_code=UPSTREAM_FAILED\"}}. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.";
10711
11345
  readonly http: "POST";
10712
11346
  readonly path: "/media/v1/libraries/{library_id}/batches";
10713
11347
  readonly streaming: "no";
@@ -11258,7 +11892,7 @@ export declare const operations: readonly [{
11258
11892
  readonly name: "kinds";
11259
11893
  readonly type: "string";
11260
11894
  readonly required: false;
11261
- readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.";
11895
+ readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind.";
11262
11896
  }, {
11263
11897
  readonly name: "cursor";
11264
11898
  readonly type: "string";
@@ -12871,224 +13505,669 @@ export declare const operations: readonly [{
12871
13505
  }];
12872
13506
  readonly query: readonly [];
12873
13507
  }, {
12874
- readonly resource: "model.systemone";
13508
+ readonly resource: "model.systemone";
13509
+ readonly method: "create";
13510
+ readonly summary: "Ask structured decision questions";
13511
+ readonly description: "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.";
13512
+ readonly http: "POST";
13513
+ readonly path: "/model/v1/systemone";
13514
+ readonly streaming: "no";
13515
+ readonly pagination: false;
13516
+ readonly pathParams: readonly [];
13517
+ readonly query: readonly [];
13518
+ readonly body: {
13519
+ readonly required: true;
13520
+ readonly fields: readonly [{
13521
+ readonly name: "model";
13522
+ readonly type: "string";
13523
+ readonly required: true;
13524
+ readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
13525
+ }, {
13526
+ readonly name: "state";
13527
+ readonly type: "object";
13528
+ readonly required: true;
13529
+ readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
13530
+ }, {
13531
+ readonly name: "questions";
13532
+ readonly type: "object";
13533
+ readonly required: true;
13534
+ readonly description: "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported.";
13535
+ }, {
13536
+ readonly name: "assets";
13537
+ readonly type: "object";
13538
+ readonly required: false;
13539
+ readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13540
+ }];
13541
+ };
13542
+ }, {
13543
+ readonly resource: "model.videos";
13544
+ readonly method: "list";
13545
+ readonly summary: "List videos";
13546
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13547
+ readonly http: "GET";
13548
+ readonly path: "/model/v1/videos";
13549
+ readonly streaming: "no";
13550
+ readonly pagination: false;
13551
+ readonly pathParams: readonly [];
13552
+ readonly query: readonly [{
13553
+ readonly name: "after";
13554
+ readonly type: "string";
13555
+ readonly required: false;
13556
+ readonly description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails.";
13557
+ }, {
13558
+ readonly name: "limit";
13559
+ readonly type: "integer";
13560
+ readonly required: false;
13561
+ readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13562
+ }, {
13563
+ readonly name: "order";
13564
+ readonly type: "string";
13565
+ readonly enum: readonly ["asc", "desc"];
13566
+ readonly required: false;
13567
+ readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13568
+ }];
13569
+ }, {
13570
+ readonly resource: "model.videos";
13571
+ readonly method: "create";
13572
+ readonly summary: "Create video";
13573
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13574
+ readonly http: "POST";
13575
+ readonly path: "/model/v1/videos";
13576
+ readonly streaming: "no";
13577
+ readonly pagination: false;
13578
+ readonly multipart: true;
13579
+ readonly pathParams: readonly [];
13580
+ readonly query: readonly [];
13581
+ readonly body: {
13582
+ readonly required: true;
13583
+ readonly fields: readonly [{
13584
+ readonly name: "model";
13585
+ readonly type: "string";
13586
+ readonly required: false;
13587
+ readonly description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation.";
13588
+ }, {
13589
+ readonly name: "prompt";
13590
+ readonly type: "string";
13591
+ readonly required: true;
13592
+ readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
13593
+ }, {
13594
+ readonly name: "seconds";
13595
+ readonly type: "object";
13596
+ readonly required: false;
13597
+ readonly description: "Takes precedence over duration.";
13598
+ }, {
13599
+ readonly name: "duration";
13600
+ readonly type: "integer";
13601
+ readonly required: false;
13602
+ readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
13603
+ }, {
13604
+ readonly name: "size";
13605
+ readonly type: "string";
13606
+ readonly required: false;
13607
+ readonly description: "Output resolution as `WIDTHxHEIGHT`, for example `1280x720`. Router support (partial): Subject to model capability preflight. Earlier wan2.7-t2v samples always produced 1280x720; accepted sizes are not guaranteed pixel-for-pixel.";
13608
+ }, {
13609
+ readonly name: "input_reference";
13610
+ readonly type: "object";
13611
+ readonly required: false;
13612
+ readonly description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB).";
13613
+ }, {
13614
+ readonly name: "input_references";
13615
+ readonly type: "array";
13616
+ readonly itemType: "object";
13617
+ readonly required: false;
13618
+ readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
13619
+ }, {
13620
+ readonly name: "frame_images";
13621
+ readonly type: "array";
13622
+ readonly itemType: "object";
13623
+ readonly required: false;
13624
+ readonly description: "Images that pin the first and last frame; at most 2 entries.";
13625
+ }, {
13626
+ readonly name: "resolution";
13627
+ readonly type: "string";
13628
+ readonly required: false;
13629
+ readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
13630
+ }, {
13631
+ readonly name: "aspect_ratio";
13632
+ readonly type: "string";
13633
+ readonly required: false;
13634
+ readonly description: "Aspect ratio of the video such as `16:9`.";
13635
+ }, {
13636
+ readonly name: "generate_audio";
13637
+ readonly type: "boolean";
13638
+ readonly required: false;
13639
+ readonly description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio.";
13640
+ }, {
13641
+ readonly name: "seed";
13642
+ readonly type: "integer";
13643
+ readonly required: false;
13644
+ readonly description: "Seed for reproducible generation, on models that support it.";
13645
+ }, {
13646
+ readonly name: "callback_url";
13647
+ readonly type: "string";
13648
+ readonly required: false;
13649
+ readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
13650
+ }, {
13651
+ readonly name: "quality";
13652
+ readonly type: "string";
13653
+ readonly required: false;
13654
+ readonly description: "Provider-specific quality setting.";
13655
+ }];
13656
+ };
13657
+ }, {
13658
+ readonly resource: "model.videos";
13659
+ readonly method: "delete";
13660
+ readonly summary: "Delete video";
13661
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13662
+ readonly http: "DELETE";
13663
+ readonly path: "/model/v1/videos/{video_id}";
13664
+ readonly streaming: "no";
13665
+ readonly pagination: false;
13666
+ readonly pathParams: readonly [{
13667
+ readonly name: "video_id";
13668
+ readonly sdkName: "video_id";
13669
+ readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
13670
+ }];
13671
+ readonly query: readonly [];
13672
+ }, {
13673
+ readonly resource: "model.videos";
13674
+ readonly method: "retrieve";
13675
+ readonly summary: "Retrieve video";
13676
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13677
+ readonly http: "GET";
13678
+ readonly path: "/model/v1/videos/{video_id}";
13679
+ readonly streaming: "no";
13680
+ readonly pagination: false;
13681
+ readonly pathParams: readonly [{
13682
+ readonly name: "video_id";
13683
+ readonly sdkName: "video_id";
13684
+ readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
13685
+ }];
13686
+ readonly query: readonly [];
13687
+ }, {
13688
+ readonly resource: "model.videos";
13689
+ readonly method: "retrieveContent";
13690
+ readonly summary: "Download video";
13691
+ readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13692
+ readonly http: "GET";
13693
+ readonly path: "/model/v1/videos/{video_id}/content";
13694
+ readonly streaming: "no";
13695
+ readonly pagination: false;
13696
+ readonly pathParams: readonly [{
13697
+ readonly name: "video_id";
13698
+ readonly sdkName: "video_id";
13699
+ readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
13700
+ }];
13701
+ readonly query: readonly [{
13702
+ readonly name: "variant";
13703
+ readonly type: "string";
13704
+ readonly enum: readonly ["video", "thumbnail", "spritesheet"];
13705
+ readonly required: false;
13706
+ readonly description: "Spritesheet is not available in this release (400).";
13707
+ }, {
13708
+ readonly name: "index";
13709
+ readonly type: "integer";
13710
+ readonly required: false;
13711
+ readonly description: "Output index; this release produces index 0. variant takes precedence.";
13712
+ }];
13713
+ }, {
13714
+ readonly resource: "model.videos";
13715
+ readonly method: "remix";
13716
+ readonly summary: "Remix video";
13717
+ readonly description: "Not supported in this release; always returns 400.";
13718
+ readonly http: "POST";
13719
+ readonly path: "/model/v1/videos/{video_id}/remix";
13720
+ readonly streaming: "no";
13721
+ readonly pagination: false;
13722
+ readonly pathParams: readonly [{
13723
+ readonly name: "video_id";
13724
+ readonly sdkName: "video_id";
13725
+ readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
13726
+ }];
13727
+ readonly query: readonly [];
13728
+ }, {
13729
+ readonly resource: "ontology.changesets";
13730
+ readonly method: "create";
13731
+ readonly summary: "Apply changeset";
13732
+ readonly description: "Apply a batch of node, relation and invalidation operations as one transaction, when a mirror has several records to write together and a partial write would leave the graph inconsistent. Every operation succeeds or none is applied. Send an Idempotency-Key header; the same key with the same content replays the first result, and the same key with different content is ONTOLOGY_CONFLICT.";
13733
+ readonly http: "POST";
13734
+ readonly path: "/ontology/v1/changesets";
13735
+ readonly streaming: "no";
13736
+ readonly pagination: false;
13737
+ readonly pathParams: readonly [];
13738
+ readonly query: readonly [];
13739
+ readonly body: {
13740
+ readonly required: true;
13741
+ readonly fields: readonly [{
13742
+ readonly name: "at";
13743
+ readonly type: "string";
13744
+ readonly required: true;
13745
+ readonly description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.";
13746
+ }, {
13747
+ readonly name: "scope";
13748
+ readonly type: "string";
13749
+ readonly required: false;
13750
+ readonly description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.";
13751
+ }, {
13752
+ readonly name: "ops";
13753
+ readonly type: "array";
13754
+ readonly itemType: "object";
13755
+ readonly required: true;
13756
+ readonly description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.";
13757
+ }];
13758
+ };
13759
+ }, {
13760
+ readonly resource: "ontology.nodes";
13761
+ readonly method: "list";
13762
+ readonly summary: "List nodes";
13763
+ readonly description: "Discover the entities in this organization's graph and obtain node ids for retrieval, updates and relations. Filter by type, by free text over names, aliases, descriptions and facts, or by owner; limit is 1–100 and defaults to 50. Omit cursor for the first page, then copy next_cursor into the next request until it is null. A node whose content belongs to somebody else comes back as a restricted entry carrying only its id, type and name.";
13764
+ readonly http: "GET";
13765
+ readonly path: "/ontology/v1/nodes";
13766
+ readonly streaming: "no";
13767
+ readonly pagination: true;
13768
+ readonly pathParams: readonly [];
13769
+ readonly query: readonly [{
13770
+ readonly name: "type";
13771
+ readonly type: "array";
13772
+ readonly itemType: "string";
13773
+ readonly required: false;
13774
+ readonly description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.";
13775
+ }, {
13776
+ readonly name: "q";
13777
+ readonly type: "string";
13778
+ readonly required: false;
13779
+ readonly description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter.";
13780
+ }, {
13781
+ readonly name: "owner";
13782
+ readonly type: "string";
13783
+ readonly required: false;
13784
+ readonly description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.";
13785
+ }, {
13786
+ readonly name: "as_of";
13787
+ readonly type: "string";
13788
+ readonly required: false;
13789
+ readonly description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.";
13790
+ }, {
13791
+ readonly name: "limit";
13792
+ readonly type: "integer";
13793
+ readonly required: false;
13794
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
13795
+ }, {
13796
+ readonly name: "cursor";
13797
+ readonly type: "string";
13798
+ readonly required: false;
13799
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
13800
+ }];
13801
+ }, {
13802
+ readonly resource: "ontology.nodes";
13803
+ readonly method: "create";
13804
+ readonly summary: "Create node";
13805
+ readonly description: "Record one entity in the graph, for a system mirroring a record it owns. type must already be registered and ref, when given, must match that type's ref_prefix. Send an Idempotency-Key header; repeating the same key with the same content returns the first result instead of creating a second node. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.";
13806
+ readonly http: "POST";
13807
+ readonly path: "/ontology/v1/nodes";
13808
+ readonly streaming: "no";
13809
+ readonly pagination: false;
13810
+ readonly pathParams: readonly [];
13811
+ readonly query: readonly [];
13812
+ readonly body: {
13813
+ readonly required: true;
13814
+ readonly fields: readonly [{
13815
+ readonly name: "type";
13816
+ readonly type: "string";
13817
+ readonly required: true;
13818
+ readonly description: "Registered node type name from types.list; an unregistered name is refused and nothing is written.";
13819
+ }, {
13820
+ readonly name: "ref";
13821
+ readonly type: "string";
13822
+ readonly required: false;
13823
+ readonly description: "Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record.";
13824
+ }, {
13825
+ readonly name: "name";
13826
+ readonly type: "string";
13827
+ readonly required: true;
13828
+ readonly description: "Display name of the entity, at most 200 characters.";
13829
+ }, {
13830
+ readonly name: "aliases";
13831
+ readonly type: "array";
13832
+ readonly itemType: "string";
13833
+ readonly required: false;
13834
+ readonly description: "Other names this entity is known by; they are matched by search alongside the name.";
13835
+ }, {
13836
+ readonly name: "description";
13837
+ readonly type: "string";
13838
+ readonly required: false;
13839
+ readonly description: "Profile of the entity, at most 500 characters; omit or null for none.";
13840
+ }, {
13841
+ readonly name: "owner";
13842
+ readonly type: "string";
13843
+ readonly required: false;
13844
+ readonly description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.";
13845
+ }];
13846
+ };
13847
+ }, {
13848
+ readonly resource: "ontology.nodes";
13849
+ readonly method: "retrieve";
13850
+ readonly summary: "Retrieve node";
13851
+ readonly description: "Read one node's content and, with expand=relations, every relation on and around it. as_of reads the node as it was at that time. A node id from another organization, or one that never existed, answers ONTOLOGY_NODE_NOT_FOUND; a node you may reach but not read returns restricted true with its name only.";
13852
+ readonly http: "GET";
13853
+ readonly path: "/ontology/v1/nodes/{node_id}";
13854
+ readonly streaming: "no";
13855
+ readonly pagination: false;
13856
+ readonly pathParams: readonly [{
13857
+ readonly name: "node_id";
13858
+ readonly sdkName: "node_id";
13859
+ readonly description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.";
13860
+ }];
13861
+ readonly query: readonly [{
13862
+ readonly name: "expand";
13863
+ readonly type: "string";
13864
+ readonly enum: readonly ["relations"];
13865
+ readonly required: false;
13866
+ readonly description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.";
13867
+ }, {
13868
+ readonly name: "as_of";
13869
+ readonly type: "string";
13870
+ readonly required: false;
13871
+ readonly description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.";
13872
+ }];
13873
+ }, {
13874
+ readonly resource: "ontology.nodes";
13875
+ readonly method: "update";
13876
+ readonly summary: "Update node";
13877
+ readonly description: "Change a node's name, aliases or description when the mirrored record was renamed, without touching its type or identity. Send only the fields to change; omitted fields keep their current values and an explicitly null description clears it. Repeating the same edit converges on the same node, so this needs no Idempotency-Key.";
13878
+ readonly http: "PATCH";
13879
+ readonly path: "/ontology/v1/nodes/{node_id}";
13880
+ readonly streaming: "no";
13881
+ readonly pagination: false;
13882
+ readonly pathParams: readonly [{
13883
+ readonly name: "node_id";
13884
+ readonly sdkName: "node_id";
13885
+ readonly description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.";
13886
+ }];
13887
+ readonly query: readonly [];
13888
+ readonly body: {
13889
+ readonly required: true;
13890
+ readonly fields: readonly [{
13891
+ readonly name: "name";
13892
+ readonly type: "string";
13893
+ readonly required: false;
13894
+ readonly description: "New display name, at most 200 characters; omit to keep the current name.";
13895
+ }, {
13896
+ readonly name: "aliases";
13897
+ readonly type: "array";
13898
+ readonly itemType: "string";
13899
+ readonly required: false;
13900
+ readonly description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them.";
13901
+ }, {
13902
+ readonly name: "description";
13903
+ readonly type: "string";
13904
+ readonly required: false;
13905
+ readonly description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.";
13906
+ }];
13907
+ };
13908
+ }, {
13909
+ readonly resource: "ontology.nodes.merge";
12875
13910
  readonly method: "create";
12876
- readonly summary: "Ask structured decision questions";
12877
- readonly description: "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.";
13911
+ readonly summary: "Merge node";
13912
+ readonly description: "Fold a duplicate node into the node that should survive, when two records are discovered to be the same entity. The merged node's relations and aliases move to the survivor and later reads of the duplicate resolve to it. Send an Idempotency-Key header; repeating the same key replays the first result. Reversal is a staff operation, not available here.";
12878
13913
  readonly http: "POST";
12879
- readonly path: "/model/v1/systemone";
13914
+ readonly path: "/ontology/v1/nodes/{node_id}/merge";
12880
13915
  readonly streaming: "no";
12881
13916
  readonly pagination: false;
12882
- readonly pathParams: readonly [];
13917
+ readonly pathParams: readonly [{
13918
+ readonly name: "node_id";
13919
+ readonly sdkName: "node_id";
13920
+ readonly description: "Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.";
13921
+ }];
12883
13922
  readonly query: readonly [];
12884
13923
  readonly body: {
12885
13924
  readonly required: true;
12886
13925
  readonly fields: readonly [{
12887
- readonly name: "model";
13926
+ readonly name: "into";
12888
13927
  readonly type: "string";
12889
13928
  readonly required: true;
12890
- readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
12891
- }, {
12892
- readonly name: "state";
12893
- readonly type: "object";
12894
- readonly required: true;
12895
- readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
12896
- }, {
12897
- readonly name: "questions";
12898
- readonly type: "object";
12899
- readonly required: true;
12900
- 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.";
12901
- }, {
12902
- readonly name: "assets";
12903
- readonly type: "object";
12904
- readonly required: false;
12905
- readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
13929
+ readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
12906
13930
  }];
12907
13931
  };
12908
13932
  }, {
12909
- readonly resource: "model.videos";
13933
+ readonly resource: "ontology.relations";
12910
13934
  readonly method: "list";
12911
- readonly summary: "List videos";
12912
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13935
+ readonly summary: "List relations";
13936
+ readonly description: "Read the facts in the graph and obtain relation ids for retrieval, invalidation or spreading. Filter by endpoint node, by type and by direction; as_of reads the relations as they were then. Invalidated relations are omitted unless include_invalid is true. limit is 1–100 and defaults to 50; follow next_cursor until it is null.";
12913
13937
  readonly http: "GET";
12914
- readonly path: "/model/v1/videos";
13938
+ readonly path: "/ontology/v1/relations";
12915
13939
  readonly streaming: "no";
12916
- readonly pagination: false;
13940
+ readonly pagination: true;
12917
13941
  readonly pathParams: readonly [];
12918
13942
  readonly query: readonly [{
12919
- readonly name: "after";
13943
+ readonly name: "node";
12920
13944
  readonly type: "string";
12921
13945
  readonly required: false;
12922
- readonly description: "Cursor: the id of the video job after which the page starts, normally the `last_id` of the previous page. It must refer to an existing job of yours, otherwise the call fails.";
13946
+ readonly description: "A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node.";
13947
+ }, {
13948
+ readonly name: "type";
13949
+ readonly type: "array";
13950
+ readonly itemType: "string";
13951
+ readonly required: false;
13952
+ readonly description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.";
13953
+ }, {
13954
+ readonly name: "direction";
13955
+ readonly type: "string";
13956
+ readonly enum: readonly ["out", "in", "both"];
13957
+ readonly required: false;
13958
+ readonly description: "Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node.";
13959
+ }, {
13960
+ readonly name: "as_of";
13961
+ readonly type: "string";
13962
+ readonly required: false;
13963
+ readonly description: "ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state.";
13964
+ }, {
13965
+ readonly name: "include_invalid";
13966
+ readonly type: "boolean";
13967
+ readonly required: false;
13968
+ readonly description: "Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only.";
12923
13969
  }, {
12924
13970
  readonly name: "limit";
12925
13971
  readonly type: "integer";
12926
13972
  readonly required: false;
12927
- readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
13973
+ readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
12928
13974
  }, {
12929
- readonly name: "order";
13975
+ readonly name: "cursor";
12930
13976
  readonly type: "string";
12931
- readonly enum: readonly ["asc", "desc"];
12932
13977
  readonly required: false;
12933
- readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
13978
+ readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
12934
13979
  }];
12935
13980
  }, {
12936
- readonly resource: "model.videos";
13981
+ readonly resource: "ontology.relations";
12937
13982
  readonly method: "create";
12938
- readonly summary: "Create video";
12939
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13983
+ readonly summary: "Create relation";
13984
+ readonly description: "Record one fact between two existing nodes, for a system mirroring a relationship it owns. type must be registered and must admit these endpoints; fact states the relationship in one sentence. Send an Idempotency-Key header; repeating the same key returns the first result instead of writing a second relation. This writes structure only — to give an agent something to remember, use POST /agent/v1/agents/{agent_id}/consolidations.";
12940
13985
  readonly http: "POST";
12941
- readonly path: "/model/v1/videos";
13986
+ readonly path: "/ontology/v1/relations";
12942
13987
  readonly streaming: "no";
12943
13988
  readonly pagination: false;
12944
- readonly multipart: true;
12945
13989
  readonly pathParams: readonly [];
12946
13990
  readonly query: readonly [];
12947
13991
  readonly body: {
12948
13992
  readonly required: true;
12949
13993
  readonly fields: readonly [{
12950
- readonly name: "model";
13994
+ readonly name: "type";
12951
13995
  readonly type: "string";
12952
- readonly required: false;
12953
- readonly description: "Video model id, for example `wan2.7-t2v`; list candidates with listModels?type=video. Router support (partial): Select a registered video model explicitly, for example wan2.7-t2v (size=1280x720, seconds=4). Capability preflight errors are reported before creation.";
13996
+ readonly required: true;
13997
+ readonly description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused.";
12954
13998
  }, {
12955
- readonly name: "prompt";
13999
+ readonly name: "source";
12956
14000
  readonly type: "string";
12957
14001
  readonly required: true;
12958
- readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
12959
- }, {
12960
- readonly name: "seconds";
12961
- readonly type: "object";
12962
- readonly required: false;
12963
- readonly description: "Takes precedence over duration.";
12964
- }, {
12965
- readonly name: "duration";
12966
- readonly type: "integer";
12967
- readonly required: false;
12968
- readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
14002
+ readonly description: "Node id the fact starts from, from nodes.list or nodes.create.";
12969
14003
  }, {
12970
- readonly name: "size";
14004
+ readonly name: "target";
12971
14005
  readonly type: "string";
12972
- readonly required: false;
12973
- 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.";
12974
- }, {
12975
- readonly name: "input_reference";
12976
- readonly type: "object";
12977
- readonly required: false;
12978
- readonly description: "Reference image for image-to-video: a URL or base64 data URL, an object with `image_url`, or an uploaded image file (multipart, at most 20 MiB).";
14006
+ readonly required: true;
14007
+ readonly description: "Node id the fact points at, from nodes.list or nodes.create.";
12979
14008
  }, {
12980
- readonly name: "input_references";
12981
- readonly type: "array";
12982
- readonly itemType: "object";
12983
- readonly required: false;
12984
- readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
14009
+ readonly name: "fact";
14010
+ readonly type: "string";
14011
+ readonly required: true;
14012
+ readonly description: "The relationship in one sentence, at most 280 characters, written to read back on its own.";
12985
14013
  }, {
12986
- readonly name: "frame_images";
12987
- readonly type: "array";
12988
- readonly itemType: "object";
14014
+ readonly name: "valid_at";
14015
+ readonly type: "string";
12989
14016
  readonly required: false;
12990
- readonly description: "Images that pin the first and last frame; at most 2 entries.";
14017
+ readonly description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated.";
12991
14018
  }, {
12992
- readonly name: "resolution";
14019
+ readonly name: "owner";
12993
14020
  readonly type: "string";
12994
14021
  readonly required: false;
12995
- readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
14022
+ readonly description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.";
14023
+ }];
14024
+ };
14025
+ }, {
14026
+ readonly resource: "ontology.relations";
14027
+ readonly method: "retrieve";
14028
+ readonly summary: "Retrieve relation";
14029
+ readonly description: "Read one relation's fact and both of its clocks — valid_at and invalid_at for when it was true in the world, created_at and expired_at for when it was recorded and retired. An id from another organization, or one that never existed, answers ONTOLOGY_EDGE_NOT_FOUND.";
14030
+ readonly http: "GET";
14031
+ readonly path: "/ontology/v1/relations/{relation_id}";
14032
+ readonly streaming: "no";
14033
+ readonly pagination: false;
14034
+ readonly pathParams: readonly [{
14035
+ readonly name: "relation_id";
14036
+ readonly sdkName: "relation_id";
14037
+ readonly description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.";
14038
+ }];
14039
+ readonly query: readonly [];
14040
+ }, {
14041
+ readonly resource: "ontology.relations.invalidate";
14042
+ readonly method: "create";
14043
+ readonly summary: "Invalidate relation";
14044
+ readonly description: "Mark a relation as no longer true from a world time, when the mirrored record changed. The relation is kept — invalid_at moves and the relation still reads at an earlier as_of, so history stays answerable. Send an Idempotency-Key header; repeating the same key replays the first result. There is no delete.";
14045
+ readonly http: "POST";
14046
+ readonly path: "/ontology/v1/relations/{relation_id}/invalidate";
14047
+ readonly streaming: "no";
14048
+ readonly pagination: false;
14049
+ readonly pathParams: readonly [{
14050
+ readonly name: "relation_id";
14051
+ readonly sdkName: "relation_id";
14052
+ readonly description: "Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.";
14053
+ }];
14054
+ readonly query: readonly [];
14055
+ readonly body: {
14056
+ readonly required: true;
14057
+ readonly fields: readonly [{
14058
+ readonly name: "invalid_at";
14059
+ readonly type: "string";
14060
+ readonly required: true;
14061
+ readonly description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.";
12996
14062
  }, {
12997
- readonly name: "aspect_ratio";
14063
+ readonly name: "superseded_by";
12998
14064
  readonly type: "string";
12999
14065
  readonly required: false;
13000
- readonly description: "Aspect ratio of the video such as `16:9`.";
14066
+ readonly description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.";
13001
14067
  }, {
13002
- readonly name: "generate_audio";
13003
- readonly type: "boolean";
14068
+ readonly name: "reason";
14069
+ readonly type: "string";
13004
14070
  readonly required: false;
13005
- readonly description: "Whether the video carries a generated audio track. Router support (supported): false produces no audio track on wan2.7-t2v; the default output includes audio.";
14071
+ readonly description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit.";
14072
+ }];
14073
+ };
14074
+ }, {
14075
+ readonly resource: "ontology.search";
14076
+ readonly method: "create";
14077
+ readonly summary: "Search nodes";
14078
+ readonly description: "Resolve text to the nodes it most likely names, when a mirror holds a name and needs the node id it corresponds to. Results are ranked candidates, not an answer, each reporting whether the match came from the node's name, an alias, its description or a relation's fact. Narrow with types, and cap the result count with limit (1–50, default 20). This reads structure; it is not an agent recall — agents recall through POST /agent/v1/agents/{agent_id}/consolidations.";
14079
+ readonly http: "POST";
14080
+ readonly path: "/ontology/v1/search";
14081
+ readonly streaming: "no";
14082
+ readonly pagination: false;
14083
+ readonly pathParams: readonly [];
14084
+ readonly query: readonly [];
14085
+ readonly body: {
14086
+ readonly required: true;
14087
+ readonly fields: readonly [{
14088
+ readonly name: "text";
14089
+ readonly type: "string";
14090
+ readonly required: true;
14091
+ readonly description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.";
13006
14092
  }, {
13007
- readonly name: "seed";
13008
- readonly type: "integer";
14093
+ readonly name: "types";
14094
+ readonly type: "array";
14095
+ readonly itemType: "string";
13009
14096
  readonly required: false;
13010
- readonly description: "Seed for reproducible generation, on models that support it.";
14097
+ readonly description: "Registered node type names to search within; omit to search every type.";
13011
14098
  }, {
13012
- readonly name: "callback_url";
13013
- readonly type: "string";
14099
+ readonly name: "window";
14100
+ readonly type: "object";
13014
14101
  readonly required: false;
13015
- readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
14102
+ readonly description: "Restrict matches to facts recorded within a period; omit to search all time.";
13016
14103
  }, {
13017
- readonly name: "quality";
13018
- readonly type: "string";
14104
+ readonly name: "limit";
14105
+ readonly type: "integer";
13019
14106
  readonly required: false;
13020
- readonly description: "Provider-specific quality setting.";
14107
+ readonly description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.";
13021
14108
  }];
13022
14109
  };
13023
14110
  }, {
13024
- readonly resource: "model.videos";
13025
- readonly method: "delete";
13026
- readonly summary: "Delete video";
13027
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13028
- readonly http: "DELETE";
13029
- readonly path: "/model/v1/videos/{video_id}";
14111
+ readonly resource: "ontology.types";
14112
+ readonly method: "list";
14113
+ readonly summary: "List types";
14114
+ readonly description: "Read the node and relation types registered for this organization before writing, so a create names a type the graph accepts. Each entry is one registrant's registration with its owner, version and definitions. Types cannot be created at runtime; they are registered by the owning service at deploy time, so a type missing here is not available to write.";
14115
+ readonly http: "GET";
14116
+ readonly path: "/ontology/v1/types";
13030
14117
  readonly streaming: "no";
13031
14118
  readonly pagination: false;
13032
- readonly pathParams: readonly [{
13033
- readonly name: "video_id";
13034
- readonly sdkName: "video_id";
13035
- 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.";
13036
- }];
14119
+ readonly pathParams: readonly [];
13037
14120
  readonly query: readonly [];
13038
14121
  }, {
13039
- readonly resource: "model.videos";
13040
- readonly method: "retrieve";
13041
- readonly summary: "Retrieve video";
13042
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
13043
- readonly http: "GET";
13044
- readonly path: "/model/v1/videos/{video_id}";
14122
+ readonly resource: "ontology.types";
14123
+ readonly method: "create";
14124
+ readonly summary: "Register type";
14125
+ readonly description: "Register a node or relation type for this organization. Not open yet — this call currently answers 501 NOT_IMPLEMENTED and writes nothing, because a registration is checked and stored by the deploy gate that ships the registering service, not by a runtime call. Until it opens, read the types already in force with praxis.ontology.types.list and create records only of those types.";
14126
+ readonly http: "POST";
14127
+ readonly path: "/ontology/v1/types";
13045
14128
  readonly streaming: "no";
13046
14129
  readonly pagination: false;
13047
- readonly pathParams: readonly [{
13048
- readonly name: "video_id";
13049
- readonly sdkName: "video_id";
13050
- 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.";
13051
- }];
14130
+ readonly pathParams: readonly [];
13052
14131
  readonly query: readonly [];
14132
+ readonly body: {
14133
+ readonly required: true;
14134
+ readonly fields: readonly [{
14135
+ readonly name: "owner";
14136
+ readonly type: "string";
14137
+ readonly required: true;
14138
+ readonly description: "Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.";
14139
+ }, {
14140
+ readonly name: "version";
14141
+ readonly type: "integer";
14142
+ readonly required: true;
14143
+ readonly description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.";
14144
+ }, {
14145
+ readonly name: "nodes";
14146
+ readonly type: "array";
14147
+ readonly itemType: "object";
14148
+ readonly required: true;
14149
+ readonly description: "Node types this owner registers.";
14150
+ }, {
14151
+ readonly name: "edges";
14152
+ readonly type: "array";
14153
+ readonly itemType: "object";
14154
+ readonly required: true;
14155
+ readonly description: "Relation types this owner registers.";
14156
+ }];
14157
+ };
13053
14158
  }, {
13054
- readonly resource: "model.videos";
13055
- readonly method: "retrieveContent";
13056
- readonly summary: "Download video";
13057
- readonly description: "OpenAI video API with OpenRouter request and response extensions.";
14159
+ readonly resource: "ontology.types";
14160
+ readonly method: "retrieve";
14161
+ readonly summary: "Retrieve type";
14162
+ readonly description: "Read one registered type's definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.";
13058
14163
  readonly http: "GET";
13059
- readonly path: "/model/v1/videos/{video_id}/content";
13060
- readonly streaming: "no";
13061
- readonly pagination: false;
13062
- readonly pathParams: readonly [{
13063
- readonly name: "video_id";
13064
- readonly sdkName: "video_id";
13065
- 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.";
13066
- }];
13067
- readonly query: readonly [{
13068
- readonly name: "variant";
13069
- readonly type: "string";
13070
- readonly enum: readonly ["video", "thumbnail", "spritesheet"];
13071
- readonly required: false;
13072
- readonly description: "Spritesheet is not available in this release (400).";
13073
- }, {
13074
- readonly name: "index";
13075
- readonly type: "integer";
13076
- readonly required: false;
13077
- readonly description: "Output index; this release produces index 0. variant takes precedence.";
13078
- }];
13079
- }, {
13080
- readonly resource: "model.videos";
13081
- readonly method: "remix";
13082
- readonly summary: "Remix video";
13083
- readonly description: "Not supported in this release; always returns 400.";
13084
- readonly http: "POST";
13085
- readonly path: "/model/v1/videos/{video_id}/remix";
14164
+ readonly path: "/ontology/v1/types/{name}";
13086
14165
  readonly streaming: "no";
13087
14166
  readonly pagination: false;
13088
14167
  readonly pathParams: readonly [{
13089
- readonly name: "video_id";
13090
- readonly sdkName: "video_id";
13091
- readonly description: "Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.";
14168
+ readonly name: "name";
14169
+ readonly sdkName: "name";
14170
+ readonly description: "A type name from types.list, with its dots preserved — a display label is not accepted.";
13092
14171
  }];
13093
14172
  readonly query: readonly [];
13094
14173
  }, {
@@ -15143,7 +16222,7 @@ export declare const operations: readonly [{
15143
16222
  readonly resource: "ticket.labels";
15144
16223
  readonly method: "create";
15145
16224
  readonly summary: "Create or add labels";
15146
- readonly description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16225
+ readonly description: "Create or add labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
15147
16226
  readonly http: "POST";
15148
16227
  readonly path: "/ticket/v1/labels";
15149
16228
  readonly streaming: "no";
@@ -15178,7 +16257,7 @@ export declare const operations: readonly [{
15178
16257
  readonly resource: "ticket.labels";
15179
16258
  readonly method: "delete";
15180
16259
  readonly summary: "Remove labels";
15181
- readonly description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16260
+ readonly description: "Remove labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
15182
16261
  readonly http: "DELETE";
15183
16262
  readonly path: "/ticket/v1/labels/{name}";
15184
16263
  readonly streaming: "no";
@@ -15198,7 +16277,7 @@ export declare const operations: readonly [{
15198
16277
  readonly resource: "ticket.labels";
15199
16278
  readonly method: "update";
15200
16279
  readonly summary: "Update labels";
15201
- readonly description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Organization owner or admin authority is required for this write; API keys without role information act as members.";
16280
+ readonly description: "Update labels within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.";
15202
16281
  readonly http: "PATCH";
15203
16282
  readonly path: "/ticket/v1/labels/{name}";
15204
16283
  readonly streaming: "no";