@deepraxis/sdk 0.1.1-dev.37a71c8 → 0.1.1-dev.3987a02
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.
- package/METHODS.md +147 -1
- package/README.md +2 -2
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.js +8 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +388 -138
- package/dist/generated/sdk.gen.js +759 -137
- package/dist/generated/types.gen.d.ts +4683 -573
- package/dist/helpers/browser-connect.d.ts +12 -0
- package/dist/helpers/browser-connect.js +107 -22
- package/dist/helpers/browser-decisions.d.ts +29 -0
- package/dist/helpers/browser-decisions.js +39 -0
- package/dist/operations.generated.d.ts +1760 -636
- package/dist/operations.generated.js +4566 -3181
- package/dist/resources.generated.d.ts +108 -9
- package/dist/resources.generated.js +89 -0
- package/package.json +2 -2
|
@@ -107,7 +107,7 @@ export declare const operations: readonly [{
|
|
|
107
107
|
readonly type: "array";
|
|
108
108
|
readonly itemType: "object";
|
|
109
109
|
readonly required: false;
|
|
110
|
-
readonly description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
110
|
+
readonly description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.";
|
|
111
111
|
}, {
|
|
112
112
|
readonly name: "kind";
|
|
113
113
|
readonly type: "string";
|
|
@@ -938,6 +938,30 @@ export declare const operations: readonly [{
|
|
|
938
938
|
readonly required: true;
|
|
939
939
|
readonly description: "Absolute path of the file whose content to download, as returned in the path field of computers.files.list.";
|
|
940
940
|
}];
|
|
941
|
+
}, {
|
|
942
|
+
readonly resource: "agent.computers.files.convert";
|
|
943
|
+
readonly method: "create";
|
|
944
|
+
readonly summary: "Convert a Computer Document to PDF";
|
|
945
|
+
readonly description: "Convert an Office document (docx, doc, ppt, pptx, rtf, odt; up to 16 MiB) to PDF inside a platform-owned ephemeral document sandbox, whatever machine family the computer itself runs on. Returns base64 PDF bytes.\n\nPraxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.";
|
|
946
|
+
readonly http: "POST";
|
|
947
|
+
readonly path: "/agent/v1/computers/{computer_id}/files/convert";
|
|
948
|
+
readonly streaming: "no";
|
|
949
|
+
readonly pagination: false;
|
|
950
|
+
readonly pathParams: readonly [{
|
|
951
|
+
readonly name: "computer_id";
|
|
952
|
+
readonly sdkName: "computer_id";
|
|
953
|
+
readonly description: "Computer id (cmp_...), as returned by computers.create or computers.list.";
|
|
954
|
+
}];
|
|
955
|
+
readonly query: readonly [];
|
|
956
|
+
readonly body: {
|
|
957
|
+
readonly required: true;
|
|
958
|
+
readonly fields: readonly [{
|
|
959
|
+
readonly name: "name";
|
|
960
|
+
readonly type: "string";
|
|
961
|
+
readonly required: true;
|
|
962
|
+
readonly description: "Name of the entry or object.";
|
|
963
|
+
}];
|
|
964
|
+
};
|
|
941
965
|
}, {
|
|
942
966
|
readonly resource: "agent.computers.leases";
|
|
943
967
|
readonly method: "delete";
|
|
@@ -4845,7 +4869,7 @@ export declare const operations: readonly [{
|
|
|
4845
4869
|
readonly type: "string";
|
|
4846
4870
|
readonly enum: readonly ["skip", "allow"];
|
|
4847
4871
|
readonly required: false;
|
|
4848
|
-
readonly description: "skip
|
|
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
|
|
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";
|
|
@@ -5646,13 +5670,18 @@ export declare const operations: readonly [{
|
|
|
5646
5670
|
readonly resource: "browser.contexts";
|
|
5647
5671
|
readonly method: "list";
|
|
5648
5672
|
readonly summary: "列出浏览器上下文";
|
|
5649
|
-
readonly description: "分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null
|
|
5673
|
+
readonly description: "分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null。传 name 时只返回该名称的登录态;名称在当前账户内唯一,所以最多一条。";
|
|
5650
5674
|
readonly http: "GET";
|
|
5651
5675
|
readonly path: "/browser/v1/contexts";
|
|
5652
5676
|
readonly streaming: "no";
|
|
5653
5677
|
readonly pagination: false;
|
|
5654
5678
|
readonly pathParams: readonly [];
|
|
5655
5679
|
readonly query: readonly [{
|
|
5680
|
+
readonly name: "name";
|
|
5681
|
+
readonly type: "string";
|
|
5682
|
+
readonly required: false;
|
|
5683
|
+
readonly description: "按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。";
|
|
5684
|
+
}, {
|
|
5656
5685
|
readonly name: "cursor";
|
|
5657
5686
|
readonly type: "string";
|
|
5658
5687
|
readonly required: false;
|
|
@@ -7934,8 +7963,8 @@ export declare const operations: readonly [{
|
|
|
7934
7963
|
}, {
|
|
7935
7964
|
readonly resource: "cut.projects.analysis";
|
|
7936
7965
|
readonly method: "create";
|
|
7937
|
-
readonly summary: "Analyze project media";
|
|
7938
|
-
readonly description: "Request silence, filler-word or scene analysis for selected bound assets before editing. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed.";
|
|
7966
|
+
readonly summary: "Analyze project media or measure the project mix";
|
|
7967
|
+
readonly description: "Request silence, filler-word or scene analysis for selected bound assets before editing, or measure the mix the timeline itself renders with kind mix. That kind is a render job, not a read: it answers pending with retry_after_sec and is polled by the id it returned, because the answer only exists once the audio has been rendered and measured. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed. kind mix is separate: it reports the project mix loudness, the loudness of each role and where music masks speech, so an editor can fix the mix rather than guess at it.";
|
|
7939
7968
|
readonly http: "POST";
|
|
7940
7969
|
readonly path: "/cut/v1/projects/{project_id}/analysis";
|
|
7941
7970
|
readonly streaming: "no";
|
|
@@ -7958,9 +7987,29 @@ export declare const operations: readonly [{
|
|
|
7958
7987
|
readonly name: "kinds";
|
|
7959
7988
|
readonly type: "array";
|
|
7960
7989
|
readonly itemType: "string";
|
|
7961
|
-
readonly enum: readonly ["silence", "filler", "scenes"];
|
|
7990
|
+
readonly enum: readonly ["silence", "filler", "scenes", "mix"];
|
|
7962
7991
|
readonly required: true;
|
|
7963
|
-
readonly description: "Analysis types to request
|
|
7992
|
+
readonly description: "Analysis types to request. silence, filler and scenes analyze the selected source assets and are read from the media library; mix measures the project's own rendered mix and is requested on its own.";
|
|
7993
|
+
}, {
|
|
7994
|
+
readonly name: "from";
|
|
7995
|
+
readonly type: "number";
|
|
7996
|
+
readonly required: false;
|
|
7997
|
+
readonly description: "Range start for kind mix, in seconds on the project clock. Omitted with to, the whole timeline is measured, capped at 120 seconds. Ignored by the asset kinds.";
|
|
7998
|
+
}, {
|
|
7999
|
+
readonly name: "to";
|
|
8000
|
+
readonly type: "number";
|
|
8001
|
+
readonly required: false;
|
|
8002
|
+
readonly description: "Range end for kind mix, in seconds on the project clock, exclusive. A range longer than 120 seconds is refused; request several ranges instead.";
|
|
8003
|
+
}, {
|
|
8004
|
+
readonly name: "revision";
|
|
8005
|
+
readonly type: "integer";
|
|
8006
|
+
readonly required: false;
|
|
8007
|
+
readonly description: "Optional committed project revision to measure; omission uses the current revision. Mix only.";
|
|
8008
|
+
}, {
|
|
8009
|
+
readonly name: "id";
|
|
8010
|
+
readonly type: "string";
|
|
8011
|
+
readonly required: false;
|
|
8012
|
+
readonly description: "Poll one running mix measurement by the id its first call returned. Sending id reads that measurement and renders nothing.";
|
|
7964
8013
|
}];
|
|
7965
8014
|
};
|
|
7966
8015
|
}, {
|
|
@@ -8098,6 +8147,16 @@ export declare const operations: readonly [{
|
|
|
8098
8147
|
readonly type: "integer";
|
|
8099
8148
|
readonly required: false;
|
|
8100
8149
|
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
8150
|
+
}, {
|
|
8151
|
+
readonly name: "loudness";
|
|
8152
|
+
readonly type: "object";
|
|
8153
|
+
readonly required: false;
|
|
8154
|
+
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.";
|
|
8155
|
+
}, {
|
|
8156
|
+
readonly name: "poster";
|
|
8157
|
+
readonly type: "object";
|
|
8158
|
+
readonly required: false;
|
|
8159
|
+
readonly description: "Cover frame, in seconds on the project clock. Omitted, the cover is the first frame with picture that is not inside a fade-in or a transition — a black opening no longer makes the library thumbnail black. A frame inside a transition is skipped, and a timeline that is black throughout keeps its first frame (reported as BLACK_FIRST_FRAME). The frame actually used is reported as poster_at on the export.";
|
|
8101
8160
|
}];
|
|
8102
8161
|
};
|
|
8103
8162
|
}, {
|
|
@@ -8164,6 +8223,46 @@ export declare const operations: readonly [{
|
|
|
8164
8223
|
readonly description: "Optional human-readable display name for the new media asset.";
|
|
8165
8224
|
}];
|
|
8166
8225
|
};
|
|
8226
|
+
}, {
|
|
8227
|
+
readonly resource: "cut.projects.renders";
|
|
8228
|
+
readonly method: "create";
|
|
8229
|
+
readonly summary: "Create draft range render";
|
|
8230
|
+
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.";
|
|
8231
|
+
readonly http: "POST";
|
|
8232
|
+
readonly path: "/cut/v1/projects/{project_id}/renders";
|
|
8233
|
+
readonly streaming: "no";
|
|
8234
|
+
readonly pagination: false;
|
|
8235
|
+
readonly pathParams: readonly [{
|
|
8236
|
+
readonly name: "project_id";
|
|
8237
|
+
readonly sdkName: "project_id";
|
|
8238
|
+
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
8239
|
+
}];
|
|
8240
|
+
readonly query: readonly [];
|
|
8241
|
+
readonly body: {
|
|
8242
|
+
readonly required: true;
|
|
8243
|
+
readonly fields: readonly [{
|
|
8244
|
+
readonly name: "kind";
|
|
8245
|
+
readonly type: "string";
|
|
8246
|
+
readonly enum: readonly ["audio", "video"];
|
|
8247
|
+
readonly required: true;
|
|
8248
|
+
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.";
|
|
8249
|
+
}, {
|
|
8250
|
+
readonly name: "from";
|
|
8251
|
+
readonly type: "number";
|
|
8252
|
+
readonly required: true;
|
|
8253
|
+
readonly description: "Start of the interval in seconds on the project clock, inclusive. Must be less than to.";
|
|
8254
|
+
}, {
|
|
8255
|
+
readonly name: "to";
|
|
8256
|
+
readonly type: "number";
|
|
8257
|
+
readonly required: true;
|
|
8258
|
+
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.";
|
|
8259
|
+
}, {
|
|
8260
|
+
readonly name: "revision";
|
|
8261
|
+
readonly type: "integer";
|
|
8262
|
+
readonly required: false;
|
|
8263
|
+
readonly description: "Committed project revision from retrieve, state, timeline or execute; increases after each successful write.";
|
|
8264
|
+
}];
|
|
8265
|
+
};
|
|
8167
8266
|
}, {
|
|
8168
8267
|
readonly resource: "cut.projects";
|
|
8169
8268
|
readonly method: "retrieveState";
|
|
@@ -8278,7 +8377,7 @@ export declare const operations: readonly [{
|
|
|
8278
8377
|
readonly resource: "cut.projects";
|
|
8279
8378
|
readonly method: "execute";
|
|
8280
8379
|
readonly summary: "Execute editing script";
|
|
8281
|
-
readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n### Script function reference\n\nFunctions are synchronous globals; do not import them. `project` is the current project ID. TrackId and ClipId are strings returned by AddTrack and Insert or read from GetTimeline. JoinId is the string returned by Join or read from GetTimeline().joins. Reads see earlier writes in the same script.\n\n```ts\nGetTimeline(o?: { from?: number; to?: number; tracks?: TrackId[] }): TimelineView;\nGetItem(id: ClipId): ItemView;\nFindItems<T>(visit: (item: ItemView, ctx: { track: TrackView; index: number }) => T | undefined): T[];\nGetMedia(ref: MediaRef): MediaInfo;\nGetTranscript(ref: MediaRef, o?: { from?: number; to?: number }): Word[];\nGetAnalysis(ref: MediaRef, kind: AnalysisKind): Segment[];\nListTransitions(): TransitionInfo[];\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, o: { keep: \"source\" | \"duration\"; ripple?: boolean }): { length: number; sourceOut: number };\nDelete(id: ClipId, o?: { ripple?: boolean }): void;\nJoin(left: ClipId, right: ClipId, o: { length?: number; effect: TransitionInput }): JoinId;\nUpdateJoin(id: JoinId, patch: { length?: number; effect?: TransitionInput }): void;\nDeleteJoin(id: JoinId): void;\nSplit(id: ClipId, at: number): ClipId;\nTrim(id: ClipId, edge: \"in\" | \"out\", delta: number, o?: { ripple?: boolean }): void;\nMove(id: ClipId, start: number, track?: TrackId): void;\nRippleDeleteRange(from: number, to: number, tracks?: TrackId[]): void;\nAddTrack(kind: \"video\" | \"audio\" | \"caption\", init?: { name?: string }, index?: number): TrackId;\nUpdateTrack(id: TrackId, patch: TrackPatch): void;\nDeleteTrack(id: TrackId): void;\nSetSettings(patch: Partial<ProjectSettingsView>): void;\nAddCaptionsFromTranscript(track: TrackId, source: ClipId, o?: { style?: Partial<CaptionStyle>; maxChars?: number }): ClipId[];\nSetMarker(at: number, label: string): string;\nPrint(...values: unknown[]): void;\nPreview(at: number[]): void;\n```\n\n| Functions | Behavior and arguments |\n| --- | --- |\n| GetTimeline, GetItem | Read compact item views: id, track, type, start, end, length, optional media, playback, sourceIn/sourceOut, text, 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. source preserves consumed source and changes length, duration preserves output length. Returns actual length and sourceOut in seconds. Optional ripple explicitly shifts same-track followers when keeping source; otherwise overlaps are rejected. |\n| Join, UpdateJoin, DeleteJoin | Join creates an overlap between two butt-adjacent visual clips on the same track and returns its ID. length defaults to 0.5 seconds; effect is required. The right clip and all same-track followers move left by length, shortening that track and potentially the project. UpdateJoin moves those followers by the difference in length; omitted fields are preserved. DeleteJoin moves them right to restore the butt cut. Other tracks stay in place. |\n| Split, Trim, Move | Split at a timeline position and return the new right-hand clip ID. Trim changes the in or out edge by delta seconds. Move sets the timeline start and optionally a new track. |\n| RippleDeleteRange | Delete a timeline interval and close its gap on the specified tracks, or all unlocked tracks when omitted. |\n| AddTrack, UpdateTrack, DeleteTrack | Add video/audio/caption tracks; index selects layer order (0 is top). TrackPatch supports name, locked, hidden, muted, gainDb and style as appropriate to track kind. |\n| SetSettings | Supply any of width/height (pixels), fps (frames per second), background (color). |\n| AddCaptionsFromTranscript | Create captions from an audio/video clip's kept words. Optional maxChars is 1–1000, default 16; style updates the caption track. Returns caption IDs. |\n| SetMarker | Add a label at a timeline time and return its ID. |\n| Print, Preview | Print appends text to prints. Preview requests up to eight times total per execute and puts images in the result's frames. Each url is an inline PNG data URL, not an HTTP image link. Decode the base64 payload to save an image. Codemode returns at most four images per call; request at most four times there. |\n\n#### Joins between clips\n\nEndpoints may be video, image, text, color or shape; audio and caption are rejected. Require 0 < length < each endpoint's length. Each clip allows at most one incoming and one outgoing join; their summed lengths cannot exceed its length. Three-input overlaps, nonadjacent endpoints and cross-track joins are rejected with OPS_REJECTED. Read the rejection's code and message, shorten or remove conflicting joins, and retry the saved edit.\n\nTransitionInput is an object with kind plus the parameters returned by ListTransitions; omitted parameters use 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, transitionIn, transitionOut |\n| image | media, length | transform, fit, blend, animate, animation, effects, transitionIn, transitionOut |\n| text | text, length | style, transform, blend, reveal, animate, animation, effects, transitionIn, transitionOut |\n| color | color, length | transform, fill, blend, animate, animation, effects, transitionIn, transitionOut |\n| shape | shape, length, width, height, fill | radius, stroke, transform, blend, animate, animation, effects, transitionIn, transitionOut |\n| audio | media | length, sourceIn, playback, volumeDb, fadeIn, fadeOut |\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`. Current entries are `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, animate, reveal, animation, fill, stroke, shape, width, height, radius, transitionIn, transitionOut, effects, blend. 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";
|
|
8380
|
+
readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `durationUs` is microseconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler or scene segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `AddTrack` — Add a video, audio or caption track.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; optional for video and audio.\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n";
|
|
8282
8381
|
readonly http: "POST";
|
|
8283
8382
|
readonly path: "/cut/v1/projects/{project_id}:execute";
|
|
8284
8383
|
readonly streaming: "no";
|
|
@@ -8329,6 +8428,21 @@ export declare const operations: readonly [{
|
|
|
8329
8428
|
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
8330
8429
|
}];
|
|
8331
8430
|
readonly query: readonly [];
|
|
8431
|
+
}, {
|
|
8432
|
+
readonly resource: "cut.renders";
|
|
8433
|
+
readonly method: "retrieve";
|
|
8434
|
+
readonly summary: "Retrieve draft range render";
|
|
8435
|
+
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.";
|
|
8436
|
+
readonly http: "GET";
|
|
8437
|
+
readonly path: "/cut/v1/renders/{render_id}";
|
|
8438
|
+
readonly streaming: "no";
|
|
8439
|
+
readonly pagination: false;
|
|
8440
|
+
readonly pathParams: readonly [{
|
|
8441
|
+
readonly name: "render_id";
|
|
8442
|
+
readonly sdkName: "render_id";
|
|
8443
|
+
readonly description: "Draft render id (cutr_…) returned by projects.renders.create.";
|
|
8444
|
+
}];
|
|
8445
|
+
readonly query: readonly [];
|
|
8332
8446
|
}, {
|
|
8333
8447
|
readonly resource: "cut.versions";
|
|
8334
8448
|
readonly method: "restore";
|
|
@@ -9129,608 +9243,1173 @@ export declare const operations: readonly [{
|
|
|
9129
9243
|
}];
|
|
9130
9244
|
};
|
|
9131
9245
|
}, {
|
|
9132
|
-
readonly resource: "
|
|
9246
|
+
readonly resource: "devops.projects.testCases";
|
|
9133
9247
|
readonly method: "list";
|
|
9134
|
-
readonly summary: "List
|
|
9135
|
-
readonly description: "List
|
|
9248
|
+
readonly summary: "List test cases";
|
|
9249
|
+
readonly description: "List a project's cases with their health, state and recent statistics, so you can decide which ones a plan must run and which are quarantined. This is the read a test dashboard is built on; filter it to narrow by state or health instead of paging through everything. A case's id is a fingerprint of its own title and path, so it survives a rename — read aliases when reconciling history recorded under an older title.";
|
|
9136
9250
|
readonly http: "GET";
|
|
9137
|
-
readonly path: "/
|
|
9251
|
+
readonly path: "/devops/v1/projects/{project}/test-cases";
|
|
9138
9252
|
readonly streaming: "no";
|
|
9139
9253
|
readonly pagination: false;
|
|
9140
|
-
readonly pathParams: readonly [
|
|
9254
|
+
readonly pathParams: readonly [{
|
|
9255
|
+
readonly name: "project";
|
|
9256
|
+
readonly sdkName: "project";
|
|
9257
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9258
|
+
}];
|
|
9141
9259
|
readonly query: readonly [{
|
|
9142
|
-
readonly name: "
|
|
9143
|
-
readonly type: "
|
|
9260
|
+
readonly name: "pageSize";
|
|
9261
|
+
readonly type: "integer";
|
|
9144
9262
|
readonly required: false;
|
|
9145
|
-
readonly description: "
|
|
9263
|
+
readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
|
|
9146
9264
|
}, {
|
|
9147
|
-
readonly name: "
|
|
9148
|
-
readonly type: "
|
|
9265
|
+
readonly name: "pageToken";
|
|
9266
|
+
readonly type: "string";
|
|
9149
9267
|
readonly required: false;
|
|
9150
|
-
readonly description: "
|
|
9268
|
+
readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
|
|
9151
9269
|
}, {
|
|
9152
|
-
readonly name: "
|
|
9270
|
+
readonly name: "filter";
|
|
9153
9271
|
readonly type: "string";
|
|
9154
|
-
readonly enum: readonly ["asc", "desc"];
|
|
9155
9272
|
readonly required: false;
|
|
9156
|
-
readonly description: "
|
|
9273
|
+
readonly description: "AIP-160 equality filter over one declared field at a time, for example state=quarantined or health=broken. Fields a case list does not declare are refused with INVALID_ARGUMENT rather than ignored, so a typo never silently widens the result.";
|
|
9157
9274
|
}, {
|
|
9158
|
-
readonly name: "
|
|
9275
|
+
readonly name: "orderBy";
|
|
9159
9276
|
readonly type: "string";
|
|
9160
9277
|
readonly required: false;
|
|
9161
|
-
readonly description: "
|
|
9278
|
+
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.";
|
|
9279
|
+
}];
|
|
9280
|
+
}, {
|
|
9281
|
+
readonly resource: "devops.projects";
|
|
9282
|
+
readonly method: "retrieveTestCatalog";
|
|
9283
|
+
readonly summary: "Read a commit's test catalog";
|
|
9284
|
+
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.";
|
|
9285
|
+
readonly http: "GET";
|
|
9286
|
+
readonly path: "/devops/v1/projects/{project}/test-catalog";
|
|
9287
|
+
readonly streaming: "no";
|
|
9288
|
+
readonly pagination: false;
|
|
9289
|
+
readonly pathParams: readonly [{
|
|
9290
|
+
readonly name: "project";
|
|
9291
|
+
readonly sdkName: "project";
|
|
9292
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9293
|
+
}];
|
|
9294
|
+
readonly query: readonly [{
|
|
9295
|
+
readonly name: "commit";
|
|
9296
|
+
readonly type: "string";
|
|
9297
|
+
readonly required: false;
|
|
9298
|
+
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.";
|
|
9299
|
+
}];
|
|
9300
|
+
}, {
|
|
9301
|
+
readonly resource: "devops.projects.testPlans";
|
|
9302
|
+
readonly method: "list";
|
|
9303
|
+
readonly summary: "List test plans";
|
|
9304
|
+
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.";
|
|
9305
|
+
readonly http: "GET";
|
|
9306
|
+
readonly path: "/devops/v1/projects/{project}/test-plans";
|
|
9307
|
+
readonly streaming: "no";
|
|
9308
|
+
readonly pagination: false;
|
|
9309
|
+
readonly pathParams: readonly [{
|
|
9310
|
+
readonly name: "project";
|
|
9311
|
+
readonly sdkName: "project";
|
|
9312
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9313
|
+
}];
|
|
9314
|
+
readonly query: readonly [{
|
|
9315
|
+
readonly name: "pageSize";
|
|
9316
|
+
readonly type: "integer";
|
|
9317
|
+
readonly required: false;
|
|
9318
|
+
readonly description: "How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.";
|
|
9162
9319
|
}, {
|
|
9163
|
-
readonly name: "
|
|
9320
|
+
readonly name: "pageToken";
|
|
9164
9321
|
readonly type: "string";
|
|
9165
9322
|
readonly required: false;
|
|
9166
|
-
readonly description: "
|
|
9323
|
+
readonly description: "The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.";
|
|
9167
9324
|
}, {
|
|
9168
|
-
readonly name: "
|
|
9325
|
+
readonly name: "orderBy";
|
|
9169
9326
|
readonly type: "string";
|
|
9170
9327
|
readonly required: false;
|
|
9171
|
-
readonly description: "
|
|
9328
|
+
readonly description: "Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource's own order.";
|
|
9172
9329
|
}];
|
|
9173
9330
|
}, {
|
|
9174
|
-
readonly resource: "
|
|
9331
|
+
readonly resource: "devops.projects.testPlans";
|
|
9175
9332
|
readonly method: "create";
|
|
9176
|
-
readonly summary: "
|
|
9177
|
-
readonly description: "
|
|
9333
|
+
readonly summary: "Create a test plan";
|
|
9334
|
+
readonly description: "Create a plan that decides which cases a stage must run. The plan's key is unique inside the project and is what a later run names; the selector chooses cases by size, purpose, tag, package or explicit ids, and the trigger says when the plan fires by itself. A merge or promotion gate must name the environment it guards, and a plan with a gate but no environment is refused with PLAN_GATE_ENVIRONMENT_MISMATCH rather than created and silently ignored. A plan has no revision history: update it with a patch.";
|
|
9178
9335
|
readonly http: "POST";
|
|
9179
|
-
readonly path: "/
|
|
9336
|
+
readonly path: "/devops/v1/projects/{project}/test-plans";
|
|
9180
9337
|
readonly streaming: "no";
|
|
9181
9338
|
readonly pagination: false;
|
|
9182
|
-
readonly
|
|
9183
|
-
|
|
9339
|
+
readonly pathParams: readonly [{
|
|
9340
|
+
readonly name: "project";
|
|
9341
|
+
readonly sdkName: "project";
|
|
9342
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9343
|
+
}];
|
|
9184
9344
|
readonly query: readonly [];
|
|
9185
9345
|
readonly body: {
|
|
9186
9346
|
readonly required: true;
|
|
9187
9347
|
readonly fields: readonly [{
|
|
9188
|
-
readonly name: "
|
|
9348
|
+
readonly name: "key";
|
|
9189
9349
|
readonly type: "string";
|
|
9190
9350
|
readonly required: true;
|
|
9191
|
-
readonly description: "
|
|
9351
|
+
readonly description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused.";
|
|
9192
9352
|
}, {
|
|
9193
|
-
readonly name: "
|
|
9353
|
+
readonly name: "title";
|
|
9194
9354
|
readonly type: "string";
|
|
9195
|
-
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
9196
9355
|
readonly required: true;
|
|
9197
|
-
readonly description: "
|
|
9356
|
+
readonly description: "Display title of the plan, shown wherever the plan is listed.";
|
|
9198
9357
|
}, {
|
|
9199
|
-
readonly name: "
|
|
9358
|
+
readonly name: "stage";
|
|
9359
|
+
readonly type: "string";
|
|
9360
|
+
readonly enum: readonly ["dev", "presubmit", "postsubmit", "nightly", "production"];
|
|
9361
|
+
readonly required: true;
|
|
9362
|
+
readonly description: "Which stage of delivery this plan belongs to, which decides when it is expected to run.";
|
|
9363
|
+
}, {
|
|
9364
|
+
readonly name: "trigger";
|
|
9365
|
+
readonly type: "object";
|
|
9366
|
+
readonly required: true;
|
|
9367
|
+
readonly description: "What starts a run of this plan. Exactly one kind applies; the fields a kind needs are the ones it carries.";
|
|
9368
|
+
}, {
|
|
9369
|
+
readonly name: "selector";
|
|
9200
9370
|
readonly type: "object";
|
|
9371
|
+
readonly required: true;
|
|
9372
|
+
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.";
|
|
9373
|
+
}, {
|
|
9374
|
+
readonly name: "environment";
|
|
9375
|
+
readonly type: "string";
|
|
9201
9376
|
readonly required: false;
|
|
9202
|
-
readonly description: "
|
|
9377
|
+
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.";
|
|
9378
|
+
}, {
|
|
9379
|
+
readonly name: "gate";
|
|
9380
|
+
readonly type: "string";
|
|
9381
|
+
readonly enum: readonly ["merge", "promotion", "observation", "none"];
|
|
9382
|
+
readonly required: true;
|
|
9383
|
+
readonly description: "Whether this plan's result blocks a stage; a merge or promotion gate must name its environment.";
|
|
9384
|
+
}, {
|
|
9385
|
+
readonly name: "repeat";
|
|
9386
|
+
readonly type: "integer";
|
|
9387
|
+
readonly required: false;
|
|
9388
|
+
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.";
|
|
9389
|
+
}, {
|
|
9390
|
+
readonly name: "timeoutMinutes";
|
|
9391
|
+
readonly type: "integer";
|
|
9392
|
+
readonly required: false;
|
|
9393
|
+
readonly description: "How many minutes a run of this plan may take before it is timed out; omit for the service's default.";
|
|
9203
9394
|
}];
|
|
9204
9395
|
};
|
|
9205
9396
|
}, {
|
|
9206
|
-
readonly resource: "
|
|
9207
|
-
readonly method: "
|
|
9208
|
-
readonly summary: "
|
|
9209
|
-
readonly description: "
|
|
9210
|
-
readonly http: "
|
|
9211
|
-
readonly path: "/
|
|
9397
|
+
readonly resource: "devops.projects.testReports";
|
|
9398
|
+
readonly method: "create";
|
|
9399
|
+
readonly summary: "Upload an external test report";
|
|
9400
|
+
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.";
|
|
9401
|
+
readonly http: "POST";
|
|
9402
|
+
readonly path: "/devops/v1/projects/{project}/test-reports";
|
|
9212
9403
|
readonly streaming: "no";
|
|
9213
9404
|
readonly pagination: false;
|
|
9214
9405
|
readonly pathParams: readonly [{
|
|
9215
|
-
readonly name: "
|
|
9216
|
-
readonly sdkName: "
|
|
9217
|
-
readonly description: "
|
|
9406
|
+
readonly name: "project";
|
|
9407
|
+
readonly sdkName: "project";
|
|
9408
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9218
9409
|
}];
|
|
9219
9410
|
readonly query: readonly [];
|
|
9411
|
+
readonly body: {
|
|
9412
|
+
readonly required: true;
|
|
9413
|
+
readonly fields: readonly [{
|
|
9414
|
+
readonly name: "reportId";
|
|
9415
|
+
readonly type: "string";
|
|
9416
|
+
readonly required: true;
|
|
9417
|
+
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.";
|
|
9418
|
+
}, {
|
|
9419
|
+
readonly name: "format";
|
|
9420
|
+
readonly type: "string";
|
|
9421
|
+
readonly enum: readonly ["ctrf", "junit"];
|
|
9422
|
+
readonly required: true;
|
|
9423
|
+
readonly description: "Which report format the document is in; it decides how the document is parsed.";
|
|
9424
|
+
}, {
|
|
9425
|
+
readonly name: "ref";
|
|
9426
|
+
readonly type: "object";
|
|
9427
|
+
readonly required: true;
|
|
9428
|
+
readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
|
|
9429
|
+
}, {
|
|
9430
|
+
readonly name: "report";
|
|
9431
|
+
readonly type: "string";
|
|
9432
|
+
readonly required: true;
|
|
9433
|
+
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.";
|
|
9434
|
+
}];
|
|
9435
|
+
};
|
|
9220
9436
|
}, {
|
|
9221
|
-
readonly resource: "
|
|
9222
|
-
readonly method: "
|
|
9223
|
-
readonly summary: "
|
|
9224
|
-
readonly description: "
|
|
9437
|
+
readonly resource: "devops.projects.testRuns";
|
|
9438
|
+
readonly method: "list";
|
|
9439
|
+
readonly summary: "List test runs";
|
|
9440
|
+
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.";
|
|
9225
9441
|
readonly http: "GET";
|
|
9226
|
-
readonly path: "/
|
|
9442
|
+
readonly path: "/devops/v1/projects/{project}/test-runs";
|
|
9227
9443
|
readonly streaming: "no";
|
|
9228
9444
|
readonly pagination: false;
|
|
9229
9445
|
readonly pathParams: readonly [{
|
|
9230
|
-
readonly name: "
|
|
9231
|
-
readonly sdkName: "
|
|
9232
|
-
readonly description: "
|
|
9446
|
+
readonly name: "project";
|
|
9447
|
+
readonly sdkName: "project";
|
|
9448
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9233
9449
|
}];
|
|
9234
|
-
readonly query: readonly [
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
readonly name: "
|
|
9246
|
-
readonly
|
|
9247
|
-
readonly
|
|
9450
|
+
readonly query: readonly [{
|
|
9451
|
+
readonly name: "pageSize";
|
|
9452
|
+
readonly type: "integer";
|
|
9453
|
+
readonly required: false;
|
|
9454
|
+
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.";
|
|
9455
|
+
}, {
|
|
9456
|
+
readonly name: "pageToken";
|
|
9457
|
+
readonly type: "string";
|
|
9458
|
+
readonly required: false;
|
|
9459
|
+
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.";
|
|
9460
|
+
}, {
|
|
9461
|
+
readonly name: "filter";
|
|
9462
|
+
readonly type: "string";
|
|
9463
|
+
readonly required: false;
|
|
9464
|
+
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.";
|
|
9465
|
+
}, {
|
|
9466
|
+
readonly name: "orderBy";
|
|
9467
|
+
readonly type: "string";
|
|
9468
|
+
readonly required: false;
|
|
9469
|
+
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.";
|
|
9248
9470
|
}];
|
|
9249
|
-
readonly query: readonly [];
|
|
9250
9471
|
}, {
|
|
9251
|
-
readonly resource: "
|
|
9252
|
-
readonly method: "
|
|
9253
|
-
readonly summary: "
|
|
9254
|
-
readonly description: "
|
|
9472
|
+
readonly resource: "devops.projects.testRuns";
|
|
9473
|
+
readonly method: "create";
|
|
9474
|
+
readonly summary: "Create a test run";
|
|
9475
|
+
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.";
|
|
9255
9476
|
readonly http: "POST";
|
|
9256
|
-
readonly path: "/
|
|
9477
|
+
readonly path: "/devops/v1/projects/{project}/test-runs";
|
|
9257
9478
|
readonly streaming: "no";
|
|
9258
9479
|
readonly pagination: false;
|
|
9259
9480
|
readonly pathParams: readonly [{
|
|
9260
|
-
readonly name: "
|
|
9261
|
-
readonly sdkName: "
|
|
9262
|
-
readonly description: "
|
|
9481
|
+
readonly name: "project";
|
|
9482
|
+
readonly sdkName: "project";
|
|
9483
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9263
9484
|
}];
|
|
9264
9485
|
readonly query: readonly [];
|
|
9265
9486
|
readonly body: {
|
|
9266
9487
|
readonly required: true;
|
|
9267
9488
|
readonly fields: readonly [{
|
|
9268
|
-
readonly name: "
|
|
9269
|
-
readonly type: "
|
|
9489
|
+
readonly name: "ref";
|
|
9490
|
+
readonly type: "object";
|
|
9270
9491
|
readonly required: true;
|
|
9271
|
-
readonly description: "
|
|
9272
|
-
}];
|
|
9273
|
-
};
|
|
9274
|
-
}, {
|
|
9275
|
-
readonly resource: "file.files.contentUrl";
|
|
9276
|
-
readonly method: "create";
|
|
9277
|
-
readonly summary: "Create a download URL";
|
|
9278
|
-
readonly description: "Download a file's bytes to a local disk from a coding agent without sending them through the model. Use file_id from file creation or listing, then run curl -fsSL -o <filename> '<url>' locally with the returned URL; GET needs no Authorization header. The link is reusable until expiry and supports a single byte Range (for example Range: bytes=0-9 returns 206). Revoke it with files.contentLinks.revoke, passing the token after /c/ in the URL. Expired, revoked, invalid or cross-organization URLs return 404. Lifetime defaults to 900 seconds and is at most 604800 seconds. Issuance requires the same credential and file-read access as files.retrieveContent; a processing file returns 409 FILE_NOT_READY, so poll files.retrieve until active before retrying. A missing, expired or other-organization file returns 404. Each issuance creates a new link. OpenAI Files has no signed download URL; this follows S3 presigned GET semantics. Example body: {\"ttl_seconds\":3600}.";
|
|
9279
|
-
readonly http: "POST";
|
|
9280
|
-
readonly path: "/file/v1/files/{file_id}/content_url";
|
|
9281
|
-
readonly streaming: "no";
|
|
9282
|
-
readonly pagination: false;
|
|
9283
|
-
readonly pathParams: readonly [{
|
|
9284
|
-
readonly name: "file_id";
|
|
9285
|
-
readonly sdkName: "file_id";
|
|
9286
|
-
readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
|
|
9287
|
-
}];
|
|
9288
|
-
readonly query: readonly [];
|
|
9289
|
-
readonly body: {
|
|
9290
|
-
readonly required: false;
|
|
9291
|
-
readonly fields: readonly [{
|
|
9292
|
-
readonly name: "ttl_seconds";
|
|
9293
|
-
readonly type: "integer";
|
|
9294
|
-
readonly required: false;
|
|
9295
|
-
readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
|
|
9296
|
-
}];
|
|
9297
|
-
};
|
|
9298
|
-
}, {
|
|
9299
|
-
readonly resource: "file.uploads";
|
|
9300
|
-
readonly method: "create";
|
|
9301
|
-
readonly summary: "Create an upload";
|
|
9302
|
-
readonly description: "Start a multipart upload for a file larger than the 100000000-byte direct-upload limit. Supply the exact byte length, filename, MIME type and purpose. Unlike OpenAI, uploads accept at most 2 GiB (2147483648 bytes) and only user_data, assistants and vision purposes. Add parts of at most 64000000 bytes and complete within one hour. Optional part_size enables fixed-size, retryable parts. expires_after applies to the resulting file (3600–7776000 seconds on this own face); without it the file persists until deleted.";
|
|
9303
|
-
readonly http: "POST";
|
|
9304
|
-
readonly path: "/file/v1/uploads";
|
|
9305
|
-
readonly streaming: "no";
|
|
9306
|
-
readonly pagination: false;
|
|
9307
|
-
readonly pathParams: readonly [];
|
|
9308
|
-
readonly query: readonly [];
|
|
9309
|
-
readonly body: {
|
|
9310
|
-
readonly required: true;
|
|
9311
|
-
readonly fields: readonly [{
|
|
9312
|
-
readonly name: "bytes";
|
|
9313
|
-
readonly type: "integer";
|
|
9314
|
-
readonly required: true;
|
|
9315
|
-
readonly description: "Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.";
|
|
9492
|
+
readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
|
|
9316
9493
|
}, {
|
|
9317
|
-
readonly name: "
|
|
9494
|
+
readonly name: "plan";
|
|
9318
9495
|
readonly type: "string";
|
|
9319
|
-
readonly required:
|
|
9320
|
-
readonly description: "
|
|
9496
|
+
readonly required: false;
|
|
9497
|
+
readonly description: "Plan whose selector this run uses; omit it when passing selector instead. Naming a plan records the run against that plan, which is what a gate reads.";
|
|
9321
9498
|
}, {
|
|
9322
|
-
readonly name: "
|
|
9499
|
+
readonly name: "selector";
|
|
9500
|
+
readonly type: "object";
|
|
9501
|
+
readonly required: false;
|
|
9502
|
+
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.";
|
|
9503
|
+
}, {
|
|
9504
|
+
readonly name: "environment";
|
|
9323
9505
|
readonly type: "string";
|
|
9324
|
-
readonly required:
|
|
9325
|
-
readonly description: "
|
|
9506
|
+
readonly required: false;
|
|
9507
|
+
readonly description: "Environment to run against; it decides whether production-only cases become selectable. Omit it for a run that needs no environment.";
|
|
9326
9508
|
}, {
|
|
9327
|
-
readonly name: "
|
|
9509
|
+
readonly name: "repeat";
|
|
9510
|
+
readonly type: "integer";
|
|
9511
|
+
readonly required: false;
|
|
9512
|
+
readonly description: "How many times each selected case runs, which is how a flake is told apart from a real failure; omit for once.";
|
|
9513
|
+
}, {
|
|
9514
|
+
readonly name: "waitUntil";
|
|
9328
9515
|
readonly type: "string";
|
|
9329
|
-
readonly enum: readonly ["
|
|
9330
|
-
readonly required:
|
|
9331
|
-
readonly description: "
|
|
9516
|
+
readonly enum: readonly ["queued", "started", "finished"];
|
|
9517
|
+
readonly required: false;
|
|
9518
|
+
readonly description: "How far the call waits before answering, bounded at about 25 seconds; omit it for queued, which returns at once. The wait reads the run's own state, so a wait that reaches the bound returns the run as it stands instead of failing — check state before assuming the request was honoured.";
|
|
9332
9519
|
}, {
|
|
9333
|
-
readonly name: "
|
|
9334
|
-
readonly type: "
|
|
9520
|
+
readonly name: "executor";
|
|
9521
|
+
readonly type: "string";
|
|
9522
|
+
readonly enum: readonly ["cloud", "external"];
|
|
9335
9523
|
readonly required: false;
|
|
9336
|
-
readonly description: "
|
|
9524
|
+
readonly description: "Who carries the run out. cloud, the default, runs the selected cases in Praxis at the commit; external creates a run that waits for your own CI to upload a report with test-reports.";
|
|
9337
9525
|
}, {
|
|
9338
|
-
readonly name: "
|
|
9339
|
-
readonly type: "
|
|
9526
|
+
readonly name: "requestId";
|
|
9527
|
+
readonly type: "string";
|
|
9340
9528
|
readonly required: false;
|
|
9341
|
-
readonly description: "
|
|
9529
|
+
readonly description: "A key you choose to make creating this run idempotent: repeating the call with the same requestId returns the run it created instead of starting another, so a retry after a timeout is safe.";
|
|
9342
9530
|
}];
|
|
9343
9531
|
};
|
|
9344
9532
|
}, {
|
|
9345
|
-
readonly resource: "
|
|
9346
|
-
readonly method: "
|
|
9347
|
-
readonly summary: "
|
|
9348
|
-
readonly description: "
|
|
9349
|
-
readonly http: "
|
|
9350
|
-
readonly path: "/
|
|
9533
|
+
readonly resource: "devops.projects.testSuites";
|
|
9534
|
+
readonly method: "list";
|
|
9535
|
+
readonly summary: "List test suites";
|
|
9536
|
+
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.";
|
|
9537
|
+
readonly http: "GET";
|
|
9538
|
+
readonly path: "/devops/v1/projects/{project}/test-suites";
|
|
9351
9539
|
readonly streaming: "no";
|
|
9352
9540
|
readonly pagination: false;
|
|
9353
|
-
readonly pathParams: readonly [
|
|
9541
|
+
readonly pathParams: readonly [{
|
|
9542
|
+
readonly name: "project";
|
|
9543
|
+
readonly sdkName: "project";
|
|
9544
|
+
readonly description: "Identifies the project whose data you are reading, from the project list or create answer.";
|
|
9545
|
+
}];
|
|
9546
|
+
readonly query: readonly [{
|
|
9547
|
+
readonly name: "pageSize";
|
|
9548
|
+
readonly type: "integer";
|
|
9549
|
+
readonly required: false;
|
|
9550
|
+
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.";
|
|
9551
|
+
}, {
|
|
9552
|
+
readonly name: "pageToken";
|
|
9553
|
+
readonly type: "string";
|
|
9554
|
+
readonly required: false;
|
|
9555
|
+
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.";
|
|
9556
|
+
}, {
|
|
9557
|
+
readonly name: "orderBy";
|
|
9558
|
+
readonly type: "string";
|
|
9559
|
+
readonly required: false;
|
|
9560
|
+
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.";
|
|
9561
|
+
}];
|
|
9562
|
+
}, {
|
|
9563
|
+
readonly resource: "devops.testCases";
|
|
9564
|
+
readonly method: "retrieve";
|
|
9565
|
+
readonly summary: "Retrieve a test case";
|
|
9566
|
+
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.";
|
|
9567
|
+
readonly http: "GET";
|
|
9568
|
+
readonly path: "/devops/v1/test-cases/{id}";
|
|
9569
|
+
readonly streaming: "no";
|
|
9570
|
+
readonly pagination: false;
|
|
9571
|
+
readonly pathParams: readonly [{
|
|
9572
|
+
readonly name: "id";
|
|
9573
|
+
readonly sdkName: "id";
|
|
9574
|
+
readonly description: "The case identifier returned by a case list, or an older id listed in that case's aliases.";
|
|
9575
|
+
}];
|
|
9576
|
+
readonly query: readonly [];
|
|
9577
|
+
}, {
|
|
9578
|
+
readonly resource: "devops.testPlans";
|
|
9579
|
+
readonly method: "delete";
|
|
9580
|
+
readonly summary: "Delete a test plan";
|
|
9581
|
+
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.";
|
|
9582
|
+
readonly http: "DELETE";
|
|
9583
|
+
readonly path: "/devops/v1/test-plans/{id}";
|
|
9584
|
+
readonly streaming: "no";
|
|
9585
|
+
readonly pagination: false;
|
|
9586
|
+
readonly pathParams: readonly [{
|
|
9587
|
+
readonly name: "id";
|
|
9588
|
+
readonly sdkName: "id";
|
|
9589
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9590
|
+
}];
|
|
9591
|
+
readonly query: readonly [];
|
|
9592
|
+
}, {
|
|
9593
|
+
readonly resource: "devops.testPlans";
|
|
9594
|
+
readonly method: "retrieve";
|
|
9595
|
+
readonly summary: "Retrieve a test plan";
|
|
9596
|
+
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.";
|
|
9597
|
+
readonly http: "GET";
|
|
9598
|
+
readonly path: "/devops/v1/test-plans/{id}";
|
|
9599
|
+
readonly streaming: "no";
|
|
9600
|
+
readonly pagination: false;
|
|
9601
|
+
readonly pathParams: readonly [{
|
|
9602
|
+
readonly name: "id";
|
|
9603
|
+
readonly sdkName: "id";
|
|
9604
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9605
|
+
}];
|
|
9606
|
+
readonly query: readonly [];
|
|
9607
|
+
}, {
|
|
9608
|
+
readonly resource: "devops.testPlans";
|
|
9609
|
+
readonly method: "update";
|
|
9610
|
+
readonly summary: "Update a test plan";
|
|
9611
|
+
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.";
|
|
9612
|
+
readonly http: "PATCH";
|
|
9613
|
+
readonly path: "/devops/v1/test-plans/{id}";
|
|
9614
|
+
readonly streaming: "no";
|
|
9615
|
+
readonly pagination: false;
|
|
9616
|
+
readonly pathParams: readonly [{
|
|
9617
|
+
readonly name: "id";
|
|
9618
|
+
readonly sdkName: "id";
|
|
9619
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9620
|
+
}];
|
|
9354
9621
|
readonly query: readonly [];
|
|
9355
9622
|
readonly body: {
|
|
9356
9623
|
readonly required: true;
|
|
9357
9624
|
readonly fields: readonly [{
|
|
9358
|
-
readonly name: "
|
|
9359
|
-
readonly type: "
|
|
9360
|
-
readonly required: true;
|
|
9361
|
-
readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
|
|
9362
|
-
}, {
|
|
9363
|
-
readonly name: "bytes";
|
|
9364
|
-
readonly type: "integer";
|
|
9365
|
-
readonly required: true;
|
|
9366
|
-
readonly description: "Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length.";
|
|
9367
|
-
}, {
|
|
9368
|
-
readonly name: "content_type";
|
|
9369
|
-
readonly type: "string";
|
|
9625
|
+
readonly name: "plan";
|
|
9626
|
+
readonly type: "object";
|
|
9370
9627
|
readonly required: true;
|
|
9371
|
-
readonly description: "
|
|
9628
|
+
readonly description: "The fields to change. Anything absent keeps its current value, so read the plan first if you need to know what you are leaving alone.";
|
|
9372
9629
|
}, {
|
|
9373
|
-
readonly name: "
|
|
9630
|
+
readonly name: "updateMask";
|
|
9374
9631
|
readonly type: "string";
|
|
9375
|
-
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
9376
|
-
readonly required: false;
|
|
9377
|
-
readonly description: "user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.";
|
|
9378
|
-
}, {
|
|
9379
|
-
readonly name: "expires_in";
|
|
9380
|
-
readonly type: "integer";
|
|
9381
|
-
readonly required: false;
|
|
9382
|
-
readonly description: "Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.";
|
|
9383
|
-
}, {
|
|
9384
|
-
readonly name: "part_size";
|
|
9385
|
-
readonly type: "integer";
|
|
9386
9632
|
readonly required: false;
|
|
9387
|
-
readonly description: "
|
|
9633
|
+
readonly description: "Comma-separated names of the plan fields this patch intends to change, for example title,enabled. Omit it to apply every field present in plan; naming fields makes the intent explicit and keeps a concurrent edit from being overwritten by accident.";
|
|
9388
9634
|
}];
|
|
9389
9635
|
};
|
|
9390
9636
|
}, {
|
|
9391
|
-
readonly resource: "
|
|
9392
|
-
readonly method: "
|
|
9393
|
-
readonly summary: "
|
|
9394
|
-
readonly description: "
|
|
9395
|
-
readonly http: "POST";
|
|
9396
|
-
readonly path: "/file/v1/uploads/{upload_id}/cancel";
|
|
9397
|
-
readonly streaming: "no";
|
|
9398
|
-
readonly pagination: false;
|
|
9399
|
-
readonly pathParams: readonly [{
|
|
9400
|
-
readonly name: "upload_id";
|
|
9401
|
-
readonly sdkName: "upload_id";
|
|
9402
|
-
readonly description: "Upload identifier returned by create; belongs to your organization.";
|
|
9403
|
-
}];
|
|
9404
|
-
readonly query: readonly [];
|
|
9405
|
-
}, {
|
|
9406
|
-
readonly resource: "file.uploads";
|
|
9407
|
-
readonly method: "complete";
|
|
9408
|
-
readonly summary: "Complete an upload";
|
|
9409
|
-
readonly description: "Assemble the uploaded parts into a file. Supply upload_id from create and part_ids from addPart in file byte order; their sizes must total the declared bytes. Optional md5 verifies the assembled content. Retrying identical part_ids and normalized md5 returns the same result; different inputs return 409. Unlike OpenAI, completed can contain a file still processing (status uploaded). Poll files.retrieve using file.id until status processed (own face state active); error, expiry or 404 means processing failed and the file cannot be used.";
|
|
9637
|
+
readonly resource: "devops.testPlans";
|
|
9638
|
+
readonly method: "pause";
|
|
9639
|
+
readonly summary: "Pause a test plan";
|
|
9640
|
+
readonly description: "Stop a plan from starting new runs while keeping it and its history. A reason is required and is recorded on the plan, so the next reader learns why it stopped. Give until to resume automatically at a time; omit it to stay paused until someone resumes it. Runs already in flight are not cancelled — cancel those individually.";
|
|
9410
9641
|
readonly http: "POST";
|
|
9411
|
-
readonly path: "/
|
|
9642
|
+
readonly path: "/devops/v1/test-plans/{id}:pause";
|
|
9412
9643
|
readonly streaming: "no";
|
|
9413
9644
|
readonly pagination: false;
|
|
9414
9645
|
readonly pathParams: readonly [{
|
|
9415
|
-
readonly name: "
|
|
9416
|
-
readonly sdkName: "
|
|
9417
|
-
readonly description: "
|
|
9646
|
+
readonly name: "id";
|
|
9647
|
+
readonly sdkName: "id";
|
|
9648
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9418
9649
|
}];
|
|
9419
9650
|
readonly query: readonly [];
|
|
9420
9651
|
readonly body: {
|
|
9421
9652
|
readonly required: true;
|
|
9422
9653
|
readonly fields: readonly [{
|
|
9423
|
-
readonly name: "
|
|
9424
|
-
readonly type: "
|
|
9425
|
-
readonly itemType: "string";
|
|
9654
|
+
readonly name: "reason";
|
|
9655
|
+
readonly type: "string";
|
|
9426
9656
|
readonly required: true;
|
|
9427
|
-
readonly description: "
|
|
9657
|
+
readonly description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped.";
|
|
9428
9658
|
}, {
|
|
9429
|
-
readonly name: "
|
|
9659
|
+
readonly name: "until";
|
|
9430
9660
|
readonly type: "string";
|
|
9431
9661
|
readonly required: false;
|
|
9432
|
-
readonly description: "
|
|
9662
|
+
readonly description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it.";
|
|
9433
9663
|
}];
|
|
9434
9664
|
};
|
|
9435
9665
|
}, {
|
|
9436
|
-
readonly resource: "
|
|
9437
|
-
readonly method: "
|
|
9438
|
-
readonly summary: "
|
|
9439
|
-
readonly description: "
|
|
9666
|
+
readonly resource: "devops.testPlans";
|
|
9667
|
+
readonly method: "resume";
|
|
9668
|
+
readonly summary: "Resume a test plan";
|
|
9669
|
+
readonly description: "Clear a plan's pause so it schedules runs again. Resuming an active plan changes nothing and is safe to repeat. The plan keeps its selector, gate and key; only the pause is removed.";
|
|
9440
9670
|
readonly http: "POST";
|
|
9441
|
-
readonly path: "/
|
|
9671
|
+
readonly path: "/devops/v1/test-plans/{id}:resume";
|
|
9442
9672
|
readonly streaming: "no";
|
|
9443
9673
|
readonly pagination: false;
|
|
9444
|
-
readonly multipart: true;
|
|
9445
9674
|
readonly pathParams: readonly [{
|
|
9446
|
-
readonly name: "
|
|
9447
|
-
readonly sdkName: "
|
|
9448
|
-
readonly description: "
|
|
9675
|
+
readonly name: "id";
|
|
9676
|
+
readonly sdkName: "id";
|
|
9677
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9678
|
+
}];
|
|
9679
|
+
readonly query: readonly [];
|
|
9680
|
+
}, {
|
|
9681
|
+
readonly resource: "devops.testRuns";
|
|
9682
|
+
readonly method: "retrieve";
|
|
9683
|
+
readonly summary: "Retrieve a test run";
|
|
9684
|
+
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.";
|
|
9685
|
+
readonly http: "GET";
|
|
9686
|
+
readonly path: "/devops/v1/test-runs/{id}";
|
|
9687
|
+
readonly streaming: "no";
|
|
9688
|
+
readonly pagination: false;
|
|
9689
|
+
readonly pathParams: readonly [{
|
|
9690
|
+
readonly name: "id";
|
|
9691
|
+
readonly sdkName: "id";
|
|
9692
|
+
readonly description: "The run identifier returned by a run list or create answer.";
|
|
9449
9693
|
}];
|
|
9450
9694
|
readonly query: readonly [{
|
|
9451
|
-
readonly name: "
|
|
9452
|
-
readonly type: "
|
|
9695
|
+
readonly name: "expand";
|
|
9696
|
+
readonly type: "array";
|
|
9697
|
+
readonly itemType: "string";
|
|
9698
|
+
readonly enum: readonly ["failedExecutions"];
|
|
9453
9699
|
readonly required: false;
|
|
9454
|
-
readonly description: "
|
|
9700
|
+
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.";
|
|
9701
|
+
}];
|
|
9702
|
+
}, {
|
|
9703
|
+
readonly resource: "devops.testRuns";
|
|
9704
|
+
readonly method: "cancel";
|
|
9705
|
+
readonly summary: "Cancel a test run";
|
|
9706
|
+
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.";
|
|
9707
|
+
readonly http: "POST";
|
|
9708
|
+
readonly path: "/devops/v1/test-runs/{id}:cancel";
|
|
9709
|
+
readonly streaming: "no";
|
|
9710
|
+
readonly pagination: false;
|
|
9711
|
+
readonly pathParams: readonly [{
|
|
9712
|
+
readonly name: "id";
|
|
9713
|
+
readonly sdkName: "id";
|
|
9714
|
+
readonly description: "The run identifier returned by a run list or create answer.";
|
|
9455
9715
|
}];
|
|
9716
|
+
readonly query: readonly [];
|
|
9456
9717
|
readonly body: {
|
|
9457
9718
|
readonly required: true;
|
|
9458
9719
|
readonly fields: readonly [{
|
|
9459
|
-
readonly name: "
|
|
9720
|
+
readonly name: "reason";
|
|
9460
9721
|
readonly type: "string";
|
|
9461
9722
|
readonly required: true;
|
|
9462
|
-
readonly description: "
|
|
9723
|
+
readonly description: "Why the run is being cancelled; it is stored on the run and is what a later reader finds instead of a result.";
|
|
9463
9724
|
}];
|
|
9464
9725
|
};
|
|
9465
9726
|
}, {
|
|
9466
|
-
readonly resource: "
|
|
9727
|
+
readonly resource: "devops.testRuns.executions";
|
|
9467
9728
|
readonly method: "list";
|
|
9468
|
-
readonly summary: "List
|
|
9469
|
-
readonly description: "
|
|
9729
|
+
readonly summary: "List a run's executions";
|
|
9730
|
+
readonly description: "List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.";
|
|
9470
9731
|
readonly http: "GET";
|
|
9471
|
-
readonly path: "/
|
|
9732
|
+
readonly path: "/devops/v1/test-runs/{run}/executions";
|
|
9472
9733
|
readonly streaming: "no";
|
|
9473
9734
|
readonly pagination: false;
|
|
9474
|
-
readonly pathParams: readonly [
|
|
9735
|
+
readonly pathParams: readonly [{
|
|
9736
|
+
readonly name: "run";
|
|
9737
|
+
readonly sdkName: "run";
|
|
9738
|
+
readonly description: "The run whose executions you are reading, from a run list or create answer.";
|
|
9739
|
+
}];
|
|
9475
9740
|
readonly query: readonly [{
|
|
9476
|
-
readonly name: "
|
|
9477
|
-
readonly type: "
|
|
9478
|
-
readonly enum: readonly ["active", "deleting"];
|
|
9741
|
+
readonly name: "pageSize";
|
|
9742
|
+
readonly type: "integer";
|
|
9479
9743
|
readonly required: false;
|
|
9480
|
-
readonly description: "
|
|
9744
|
+
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.";
|
|
9481
9745
|
}, {
|
|
9482
|
-
readonly name: "
|
|
9746
|
+
readonly name: "pageToken";
|
|
9483
9747
|
readonly type: "string";
|
|
9484
9748
|
readonly required: false;
|
|
9485
|
-
readonly description: "
|
|
9749
|
+
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.";
|
|
9486
9750
|
}, {
|
|
9487
|
-
readonly name: "
|
|
9751
|
+
readonly name: "filter";
|
|
9488
9752
|
readonly type: "string";
|
|
9489
9753
|
readonly required: false;
|
|
9490
|
-
readonly description: "
|
|
9491
|
-
}, {
|
|
9492
|
-
readonly name: "limit";
|
|
9493
|
-
readonly type: "integer";
|
|
9494
|
-
readonly required: false;
|
|
9495
|
-
readonly description: "Page size.";
|
|
9754
|
+
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.";
|
|
9496
9755
|
}, {
|
|
9497
|
-
readonly name: "
|
|
9756
|
+
readonly name: "orderBy";
|
|
9498
9757
|
readonly type: "string";
|
|
9499
|
-
readonly enum: readonly ["asc", "desc"];
|
|
9500
9758
|
readonly required: false;
|
|
9501
|
-
readonly description: "
|
|
9759
|
+
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.";
|
|
9502
9760
|
}];
|
|
9503
9761
|
}, {
|
|
9504
|
-
readonly resource: "
|
|
9505
|
-
readonly method: "
|
|
9506
|
-
readonly summary: "
|
|
9507
|
-
readonly description: "
|
|
9508
|
-
readonly http: "
|
|
9509
|
-
readonly path: "/
|
|
9762
|
+
readonly resource: "devops.testRuns.executions";
|
|
9763
|
+
readonly method: "retrieve";
|
|
9764
|
+
readonly summary: "Retrieve one case's execution in a run";
|
|
9765
|
+
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.";
|
|
9766
|
+
readonly http: "GET";
|
|
9767
|
+
readonly path: "/devops/v1/test-runs/{run}/executions/{case}";
|
|
9510
9768
|
readonly streaming: "no";
|
|
9511
9769
|
readonly pagination: false;
|
|
9512
|
-
readonly pathParams: readonly [
|
|
9770
|
+
readonly pathParams: readonly [{
|
|
9771
|
+
readonly name: "run";
|
|
9772
|
+
readonly sdkName: "run";
|
|
9773
|
+
readonly description: "The run whose executions you are reading, from a run list or create answer.";
|
|
9774
|
+
}, {
|
|
9775
|
+
readonly name: "case";
|
|
9776
|
+
readonly sdkName: "case";
|
|
9777
|
+
readonly description: "The case to read inside that run, from the run's execution list or the project's case list.";
|
|
9778
|
+
}];
|
|
9513
9779
|
readonly query: readonly [];
|
|
9514
|
-
readonly body: {
|
|
9515
|
-
readonly required: true;
|
|
9516
|
-
readonly fields: readonly [{
|
|
9517
|
-
readonly name: "name";
|
|
9518
|
-
readonly type: "string";
|
|
9519
|
-
readonly required: false;
|
|
9520
|
-
readonly description: "Omitted name becomes an empty string; null is rejected.";
|
|
9521
|
-
}, {
|
|
9522
|
-
readonly name: "metadata";
|
|
9523
|
-
readonly type: "object";
|
|
9524
|
-
readonly required: false;
|
|
9525
|
-
readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
|
|
9526
|
-
}, {
|
|
9527
|
-
readonly name: "expires_after";
|
|
9528
|
-
readonly type: "object";
|
|
9529
|
-
readonly required: false;
|
|
9530
|
-
readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
|
|
9531
|
-
}, {
|
|
9532
|
-
readonly name: "file_ids";
|
|
9533
|
-
readonly type: "array";
|
|
9534
|
-
readonly itemType: "string";
|
|
9535
|
-
readonly required: false;
|
|
9536
|
-
readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
|
|
9537
|
-
}, {
|
|
9538
|
-
readonly name: "chunking_strategy";
|
|
9539
|
-
readonly type: "object";
|
|
9540
|
-
readonly required: false;
|
|
9541
|
-
readonly description: "Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.";
|
|
9542
|
-
}, {
|
|
9543
|
-
readonly name: "description";
|
|
9544
|
-
readonly type: "string";
|
|
9545
|
-
readonly required: false;
|
|
9546
|
-
readonly description: "Accepted but not saved or returned; its type is not validated.";
|
|
9547
|
-
}, {
|
|
9548
|
-
readonly name: "models";
|
|
9549
|
-
readonly type: "object";
|
|
9550
|
-
readonly required: false;
|
|
9551
|
-
readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
|
|
9552
|
-
}];
|
|
9553
|
-
};
|
|
9554
9780
|
}, {
|
|
9555
|
-
readonly resource: "
|
|
9556
|
-
readonly method: "
|
|
9557
|
-
readonly summary: "
|
|
9558
|
-
readonly description: "
|
|
9559
|
-
readonly http: "
|
|
9560
|
-
readonly path: "/
|
|
9781
|
+
readonly resource: "devops.testSuites";
|
|
9782
|
+
readonly method: "retrieve";
|
|
9783
|
+
readonly summary: "Retrieve a test suite";
|
|
9784
|
+
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.";
|
|
9785
|
+
readonly http: "GET";
|
|
9786
|
+
readonly path: "/devops/v1/test-suites/{id}";
|
|
9561
9787
|
readonly streaming: "no";
|
|
9562
9788
|
readonly pagination: false;
|
|
9563
9789
|
readonly pathParams: readonly [{
|
|
9564
|
-
readonly name: "
|
|
9565
|
-
readonly sdkName: "
|
|
9566
|
-
readonly description: "
|
|
9790
|
+
readonly name: "id";
|
|
9791
|
+
readonly sdkName: "id";
|
|
9792
|
+
readonly description: "The suite identifier returned by a suite list, not the file path it was discovered from.";
|
|
9567
9793
|
}];
|
|
9568
9794
|
readonly query: readonly [];
|
|
9569
9795
|
}, {
|
|
9570
|
-
readonly resource: "
|
|
9571
|
-
readonly method: "
|
|
9572
|
-
readonly summary: "
|
|
9573
|
-
readonly description: "
|
|
9796
|
+
readonly resource: "file.files";
|
|
9797
|
+
readonly method: "list";
|
|
9798
|
+
readonly summary: "List files";
|
|
9799
|
+
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.";
|
|
9574
9800
|
readonly http: "GET";
|
|
9575
|
-
readonly path: "/
|
|
9801
|
+
readonly path: "/file/v1/files";
|
|
9576
9802
|
readonly streaming: "no";
|
|
9577
9803
|
readonly pagination: false;
|
|
9578
|
-
readonly pathParams: readonly [
|
|
9579
|
-
readonly name: "vector_store_id";
|
|
9580
|
-
readonly sdkName: "vector_store_id";
|
|
9581
|
-
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
9582
|
-
}];
|
|
9804
|
+
readonly pathParams: readonly [];
|
|
9583
9805
|
readonly query: readonly [{
|
|
9584
|
-
readonly name: "
|
|
9585
|
-
readonly type: "
|
|
9586
|
-
readonly itemType: "string";
|
|
9587
|
-
readonly enum: readonly ["files"];
|
|
9806
|
+
readonly name: "purpose";
|
|
9807
|
+
readonly type: "string";
|
|
9588
9808
|
readonly required: false;
|
|
9589
|
-
readonly description: "
|
|
9809
|
+
readonly description: "Only return files with the given purpose.";
|
|
9590
9810
|
}, {
|
|
9591
|
-
readonly name: "
|
|
9592
|
-
readonly type: "
|
|
9593
|
-
readonly itemType: "string";
|
|
9594
|
-
readonly enum: readonly ["files"];
|
|
9811
|
+
readonly name: "limit";
|
|
9812
|
+
readonly type: "integer";
|
|
9595
9813
|
readonly required: false;
|
|
9596
|
-
readonly description: "
|
|
9814
|
+
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";
|
|
9815
|
+
}, {
|
|
9816
|
+
readonly name: "order";
|
|
9817
|
+
readonly type: "string";
|
|
9818
|
+
readonly enum: readonly ["asc", "desc"];
|
|
9819
|
+
readonly required: false;
|
|
9820
|
+
readonly description: "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n";
|
|
9821
|
+
}, {
|
|
9822
|
+
readonly name: "after";
|
|
9823
|
+
readonly type: "string";
|
|
9824
|
+
readonly required: false;
|
|
9825
|
+
readonly description: "File ID cursor for the next page; mutually exclusive with before. Use an ID from the current listing.";
|
|
9826
|
+
}, {
|
|
9827
|
+
readonly name: "scope_id";
|
|
9828
|
+
readonly type: "string";
|
|
9829
|
+
readonly required: false;
|
|
9830
|
+
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.";
|
|
9831
|
+
}, {
|
|
9832
|
+
readonly name: "before";
|
|
9833
|
+
readonly type: "string";
|
|
9834
|
+
readonly required: false;
|
|
9835
|
+
readonly description: "File ID cursor for the preceding page; mutually exclusive with after. Use an ID from the current listing.";
|
|
9597
9836
|
}];
|
|
9598
9837
|
}, {
|
|
9599
|
-
readonly resource: "
|
|
9600
|
-
readonly method: "
|
|
9601
|
-
readonly summary: "
|
|
9602
|
-
readonly description: "
|
|
9838
|
+
readonly resource: "file.files";
|
|
9839
|
+
readonly method: "create";
|
|
9840
|
+
readonly summary: "Upload file";
|
|
9841
|
+
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.";
|
|
9603
9842
|
readonly http: "POST";
|
|
9604
|
-
readonly path: "/
|
|
9843
|
+
readonly path: "/file/v1/files";
|
|
9605
9844
|
readonly streaming: "no";
|
|
9606
9845
|
readonly pagination: false;
|
|
9607
|
-
readonly
|
|
9608
|
-
|
|
9609
|
-
readonly sdkName: "vector_store_id";
|
|
9610
|
-
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
9611
|
-
}];
|
|
9846
|
+
readonly multipart: true;
|
|
9847
|
+
readonly pathParams: readonly [];
|
|
9612
9848
|
readonly query: readonly [];
|
|
9613
9849
|
readonly body: {
|
|
9614
9850
|
readonly required: true;
|
|
9615
9851
|
readonly fields: readonly [{
|
|
9616
|
-
readonly name: "
|
|
9852
|
+
readonly name: "file";
|
|
9617
9853
|
readonly type: "string";
|
|
9618
|
-
readonly required:
|
|
9619
|
-
readonly description: "
|
|
9854
|
+
readonly required: true;
|
|
9855
|
+
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.";
|
|
9620
9856
|
}, {
|
|
9621
|
-
readonly name: "
|
|
9622
|
-
readonly type: "
|
|
9623
|
-
readonly
|
|
9624
|
-
readonly
|
|
9857
|
+
readonly name: "purpose";
|
|
9858
|
+
readonly type: "string";
|
|
9859
|
+
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
9860
|
+
readonly required: true;
|
|
9861
|
+
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.";
|
|
9625
9862
|
}, {
|
|
9626
9863
|
readonly name: "expires_after";
|
|
9627
9864
|
readonly type: "object";
|
|
9628
9865
|
readonly required: false;
|
|
9629
|
-
readonly description: "
|
|
9630
|
-
}, {
|
|
9631
|
-
readonly name: "models";
|
|
9632
|
-
readonly type: "object";
|
|
9633
|
-
readonly required: false;
|
|
9634
|
-
readonly description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.";
|
|
9866
|
+
readonly description: "Optional expiry relative to created_at. Files without an expiry persist until deleted.";
|
|
9635
9867
|
}];
|
|
9636
9868
|
};
|
|
9637
9869
|
}, {
|
|
9638
|
-
readonly resource: "
|
|
9639
|
-
readonly method: "
|
|
9640
|
-
readonly summary: "
|
|
9641
|
-
readonly description: "
|
|
9642
|
-
readonly http: "
|
|
9643
|
-
readonly path: "/
|
|
9870
|
+
readonly resource: "file.files";
|
|
9871
|
+
readonly method: "delete";
|
|
9872
|
+
readonly summary: "Delete file";
|
|
9873
|
+
readonly description: "Delete a tenant-owned file. New metadata/content reads return not found. Already-authorized downloads may finish.";
|
|
9874
|
+
readonly http: "DELETE";
|
|
9875
|
+
readonly path: "/file/v1/files/{file_id}";
|
|
9644
9876
|
readonly streaming: "no";
|
|
9645
9877
|
readonly pagination: false;
|
|
9646
9878
|
readonly pathParams: readonly [{
|
|
9647
|
-
readonly name: "
|
|
9648
|
-
readonly sdkName: "
|
|
9649
|
-
readonly description: "
|
|
9650
|
-
}];
|
|
9651
|
-
readonly query: readonly [{
|
|
9652
|
-
readonly name: "after_seq";
|
|
9653
|
-
readonly type: "integer";
|
|
9654
|
-
readonly required: false;
|
|
9655
|
-
readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
|
|
9656
|
-
}, {
|
|
9657
|
-
readonly name: "limit";
|
|
9658
|
-
readonly type: "integer";
|
|
9659
|
-
readonly required: false;
|
|
9660
|
-
readonly description: "Page size.";
|
|
9879
|
+
readonly name: "file_id";
|
|
9880
|
+
readonly sdkName: "file_id";
|
|
9881
|
+
readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
|
|
9661
9882
|
}];
|
|
9883
|
+
readonly query: readonly [];
|
|
9662
9884
|
}, {
|
|
9663
|
-
readonly resource: "
|
|
9664
|
-
readonly method: "
|
|
9665
|
-
readonly summary: "
|
|
9666
|
-
readonly description: "
|
|
9667
|
-
readonly http: "
|
|
9668
|
-
readonly path: "/
|
|
9885
|
+
readonly resource: "file.files";
|
|
9886
|
+
readonly method: "retrieve";
|
|
9887
|
+
readonly summary: "Retrieve file";
|
|
9888
|
+
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.";
|
|
9889
|
+
readonly http: "GET";
|
|
9890
|
+
readonly path: "/file/v1/files/{file_id}";
|
|
9669
9891
|
readonly streaming: "no";
|
|
9670
9892
|
readonly pagination: false;
|
|
9671
9893
|
readonly pathParams: readonly [{
|
|
9672
|
-
readonly name: "
|
|
9673
|
-
readonly sdkName: "
|
|
9674
|
-
readonly description: "
|
|
9894
|
+
readonly name: "file_id";
|
|
9895
|
+
readonly sdkName: "file_id";
|
|
9896
|
+
readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
|
|
9675
9897
|
}];
|
|
9676
9898
|
readonly query: readonly [];
|
|
9677
|
-
readonly body: {
|
|
9678
|
-
readonly required: true;
|
|
9679
|
-
readonly fields: readonly [];
|
|
9680
|
-
};
|
|
9681
9899
|
}, {
|
|
9682
|
-
readonly resource: "
|
|
9683
|
-
readonly method: "
|
|
9684
|
-
readonly summary: "Retrieve file
|
|
9685
|
-
readonly description: "
|
|
9900
|
+
readonly resource: "file.files";
|
|
9901
|
+
readonly method: "retrieveContent";
|
|
9902
|
+
readonly summary: "Retrieve file content";
|
|
9903
|
+
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.";
|
|
9686
9904
|
readonly http: "GET";
|
|
9687
|
-
readonly path: "/
|
|
9905
|
+
readonly path: "/file/v1/files/{file_id}/content";
|
|
9688
9906
|
readonly streaming: "no";
|
|
9689
9907
|
readonly pagination: false;
|
|
9690
9908
|
readonly pathParams: readonly [{
|
|
9691
|
-
readonly name: "
|
|
9692
|
-
readonly sdkName: "
|
|
9693
|
-
readonly description: "
|
|
9694
|
-
}, {
|
|
9695
|
-
readonly name: "batch_id";
|
|
9696
|
-
readonly sdkName: "batch_id";
|
|
9697
|
-
readonly description: "File-batch ID returned by batch creation in this knowledge base.";
|
|
9909
|
+
readonly name: "file_id";
|
|
9910
|
+
readonly sdkName: "file_id";
|
|
9911
|
+
readonly description: "ID of a tenant-owned live file, as returned by upload or list; starts with file-.";
|
|
9698
9912
|
}];
|
|
9699
9913
|
readonly query: readonly [];
|
|
9700
9914
|
}, {
|
|
9701
|
-
readonly resource: "
|
|
9702
|
-
readonly method: "
|
|
9703
|
-
readonly summary: "
|
|
9704
|
-
readonly description: "
|
|
9915
|
+
readonly resource: "file.files.contentLinks";
|
|
9916
|
+
readonly method: "revoke";
|
|
9917
|
+
readonly summary: "Revoke a file content link";
|
|
9918
|
+
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/>\"}.";
|
|
9705
9919
|
readonly http: "POST";
|
|
9706
|
-
readonly path: "/
|
|
9920
|
+
readonly path: "/file/v1/files/{file_id}/content_links:revoke";
|
|
9707
9921
|
readonly streaming: "no";
|
|
9708
9922
|
readonly pagination: false;
|
|
9709
9923
|
readonly pathParams: readonly [{
|
|
9710
|
-
readonly name: "
|
|
9711
|
-
readonly sdkName: "
|
|
9712
|
-
readonly description: "
|
|
9713
|
-
}, {
|
|
9714
|
-
readonly name: "batch_id";
|
|
9715
|
-
readonly sdkName: "batch_id";
|
|
9716
|
-
readonly description: "File-batch ID returned by batch creation in this knowledge base.";
|
|
9924
|
+
readonly name: "file_id";
|
|
9925
|
+
readonly sdkName: "file_id";
|
|
9926
|
+
readonly description: "Tenant-owned file identifier returned by file creation or listing; the token must name this same file.";
|
|
9717
9927
|
}];
|
|
9718
9928
|
readonly query: readonly [];
|
|
9929
|
+
readonly body: {
|
|
9930
|
+
readonly required: true;
|
|
9931
|
+
readonly fields: readonly [{
|
|
9932
|
+
readonly name: "token";
|
|
9933
|
+
readonly type: "string";
|
|
9934
|
+
readonly required: true;
|
|
9935
|
+
readonly description: "Signed token taken from the /c/ path component of a previously issued file content URL, without the host or /c/ prefix.";
|
|
9936
|
+
}];
|
|
9937
|
+
};
|
|
9719
9938
|
}, {
|
|
9720
|
-
readonly resource: "
|
|
9721
|
-
readonly method: "
|
|
9722
|
-
readonly summary: "
|
|
9723
|
-
readonly description: "
|
|
9724
|
-
readonly http: "
|
|
9725
|
-
readonly path: "/
|
|
9939
|
+
readonly resource: "file.files.contentUrl";
|
|
9940
|
+
readonly method: "create";
|
|
9941
|
+
readonly summary: "Create a download URL";
|
|
9942
|
+
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}.";
|
|
9943
|
+
readonly http: "POST";
|
|
9944
|
+
readonly path: "/file/v1/files/{file_id}/content_url";
|
|
9726
9945
|
readonly streaming: "no";
|
|
9727
9946
|
readonly pagination: false;
|
|
9728
9947
|
readonly pathParams: readonly [{
|
|
9729
|
-
readonly name: "
|
|
9730
|
-
readonly sdkName: "
|
|
9731
|
-
readonly description: "
|
|
9732
|
-
}
|
|
9733
|
-
|
|
9948
|
+
readonly name: "file_id";
|
|
9949
|
+
readonly sdkName: "file_id";
|
|
9950
|
+
readonly description: "Tenant-owned live file identifier from file creation or listing; the file must be active to issue a download URL.";
|
|
9951
|
+
}];
|
|
9952
|
+
readonly query: readonly [];
|
|
9953
|
+
readonly body: {
|
|
9954
|
+
readonly required: false;
|
|
9955
|
+
readonly fields: readonly [{
|
|
9956
|
+
readonly name: "ttl_seconds";
|
|
9957
|
+
readonly type: "integer";
|
|
9958
|
+
readonly required: false;
|
|
9959
|
+
readonly description: "Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.";
|
|
9960
|
+
}];
|
|
9961
|
+
};
|
|
9962
|
+
}, {
|
|
9963
|
+
readonly resource: "file.uploads";
|
|
9964
|
+
readonly method: "create";
|
|
9965
|
+
readonly summary: "Create an upload";
|
|
9966
|
+
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.";
|
|
9967
|
+
readonly http: "POST";
|
|
9968
|
+
readonly path: "/file/v1/uploads";
|
|
9969
|
+
readonly streaming: "no";
|
|
9970
|
+
readonly pagination: false;
|
|
9971
|
+
readonly pathParams: readonly [];
|
|
9972
|
+
readonly query: readonly [];
|
|
9973
|
+
readonly body: {
|
|
9974
|
+
readonly required: true;
|
|
9975
|
+
readonly fields: readonly [{
|
|
9976
|
+
readonly name: "bytes";
|
|
9977
|
+
readonly type: "integer";
|
|
9978
|
+
readonly required: true;
|
|
9979
|
+
readonly description: "Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.";
|
|
9980
|
+
}, {
|
|
9981
|
+
readonly name: "filename";
|
|
9982
|
+
readonly type: "string";
|
|
9983
|
+
readonly required: true;
|
|
9984
|
+
readonly description: "Filename for the resulting file, at most 255 UTF-8 bytes.";
|
|
9985
|
+
}, {
|
|
9986
|
+
readonly name: "mime_type";
|
|
9987
|
+
readonly type: "string";
|
|
9988
|
+
readonly required: true;
|
|
9989
|
+
readonly description: "Declared MIME type; validated against the assembled content.";
|
|
9990
|
+
}, {
|
|
9991
|
+
readonly name: "purpose";
|
|
9992
|
+
readonly type: "string";
|
|
9993
|
+
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
9994
|
+
readonly required: true;
|
|
9995
|
+
readonly description: "Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.";
|
|
9996
|
+
}, {
|
|
9997
|
+
readonly name: "expires_after";
|
|
9998
|
+
readonly type: "object";
|
|
9999
|
+
readonly required: false;
|
|
10000
|
+
readonly description: "Optional expiry policy for the resulting file; omission retains the file until deletion.";
|
|
10001
|
+
}, {
|
|
10002
|
+
readonly name: "part_size";
|
|
10003
|
+
readonly type: "integer";
|
|
10004
|
+
readonly required: false;
|
|
10005
|
+
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.";
|
|
10006
|
+
}];
|
|
10007
|
+
};
|
|
10008
|
+
}, {
|
|
10009
|
+
readonly resource: "file.uploads";
|
|
10010
|
+
readonly method: "createSigned";
|
|
10011
|
+
readonly summary: "Create a one-time upload URL";
|
|
10012
|
+
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\"}.";
|
|
10013
|
+
readonly http: "POST";
|
|
10014
|
+
readonly path: "/file/v1/uploads/signed";
|
|
10015
|
+
readonly streaming: "no";
|
|
10016
|
+
readonly pagination: false;
|
|
10017
|
+
readonly pathParams: readonly [];
|
|
10018
|
+
readonly query: readonly [];
|
|
10019
|
+
readonly body: {
|
|
10020
|
+
readonly required: true;
|
|
10021
|
+
readonly fields: readonly [{
|
|
10022
|
+
readonly name: "filename";
|
|
10023
|
+
readonly type: "string";
|
|
10024
|
+
readonly required: true;
|
|
10025
|
+
readonly description: "Stored basename, 1–255 UTF-8 bytes without control characters or path separators.";
|
|
10026
|
+
}, {
|
|
10027
|
+
readonly name: "bytes";
|
|
10028
|
+
readonly type: "integer";
|
|
10029
|
+
readonly required: true;
|
|
10030
|
+
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.";
|
|
10031
|
+
}, {
|
|
10032
|
+
readonly name: "content_type";
|
|
10033
|
+
readonly type: "string";
|
|
10034
|
+
readonly required: true;
|
|
10035
|
+
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.";
|
|
10036
|
+
}, {
|
|
10037
|
+
readonly name: "purpose";
|
|
10038
|
+
readonly type: "string";
|
|
10039
|
+
readonly enum: readonly ["user_data", "assistants", "vision"];
|
|
10040
|
+
readonly required: false;
|
|
10041
|
+
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.";
|
|
10042
|
+
}, {
|
|
10043
|
+
readonly name: "expires_in";
|
|
10044
|
+
readonly type: "integer";
|
|
10045
|
+
readonly required: false;
|
|
10046
|
+
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.";
|
|
10047
|
+
}, {
|
|
10048
|
+
readonly name: "part_size";
|
|
10049
|
+
readonly type: "integer";
|
|
10050
|
+
readonly required: false;
|
|
10051
|
+
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.";
|
|
10052
|
+
}];
|
|
10053
|
+
};
|
|
10054
|
+
}, {
|
|
10055
|
+
readonly resource: "file.uploads";
|
|
10056
|
+
readonly method: "retrieve";
|
|
10057
|
+
readonly summary: "Retrieve an upload";
|
|
10058
|
+
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.";
|
|
10059
|
+
readonly http: "GET";
|
|
10060
|
+
readonly path: "/file/v1/uploads/{upload_id}";
|
|
10061
|
+
readonly streaming: "no";
|
|
10062
|
+
readonly pagination: false;
|
|
10063
|
+
readonly pathParams: readonly [{
|
|
10064
|
+
readonly name: "upload_id";
|
|
10065
|
+
readonly sdkName: "upload_id";
|
|
10066
|
+
readonly description: "Upload identifier returned by create; the upload must belong to your organization.";
|
|
10067
|
+
}];
|
|
10068
|
+
readonly query: readonly [];
|
|
10069
|
+
}, {
|
|
10070
|
+
readonly resource: "file.uploads";
|
|
10071
|
+
readonly method: "cancel";
|
|
10072
|
+
readonly summary: "Cancel an upload";
|
|
10073
|
+
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.";
|
|
10074
|
+
readonly http: "POST";
|
|
10075
|
+
readonly path: "/file/v1/uploads/{upload_id}/cancel";
|
|
10076
|
+
readonly streaming: "no";
|
|
10077
|
+
readonly pagination: false;
|
|
10078
|
+
readonly pathParams: readonly [{
|
|
10079
|
+
readonly name: "upload_id";
|
|
10080
|
+
readonly sdkName: "upload_id";
|
|
10081
|
+
readonly description: "Upload identifier returned by create; belongs to your organization.";
|
|
10082
|
+
}];
|
|
10083
|
+
readonly query: readonly [];
|
|
10084
|
+
}, {
|
|
10085
|
+
readonly resource: "file.uploads";
|
|
10086
|
+
readonly method: "complete";
|
|
10087
|
+
readonly summary: "Complete an upload";
|
|
10088
|
+
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.";
|
|
10089
|
+
readonly http: "POST";
|
|
10090
|
+
readonly path: "/file/v1/uploads/{upload_id}/complete";
|
|
10091
|
+
readonly streaming: "no";
|
|
10092
|
+
readonly pagination: false;
|
|
10093
|
+
readonly pathParams: readonly [{
|
|
10094
|
+
readonly name: "upload_id";
|
|
10095
|
+
readonly sdkName: "upload_id";
|
|
10096
|
+
readonly description: "Upload identifier returned by create; belongs to your organization.";
|
|
10097
|
+
}];
|
|
10098
|
+
readonly query: readonly [];
|
|
10099
|
+
readonly body: {
|
|
10100
|
+
readonly required: true;
|
|
10101
|
+
readonly fields: readonly [{
|
|
10102
|
+
readonly name: "part_ids";
|
|
10103
|
+
readonly type: "array";
|
|
10104
|
+
readonly itemType: "string";
|
|
10105
|
+
readonly required: true;
|
|
10106
|
+
readonly description: "All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.";
|
|
10107
|
+
}, {
|
|
10108
|
+
readonly name: "md5";
|
|
10109
|
+
readonly type: "string";
|
|
10110
|
+
readonly required: false;
|
|
10111
|
+
readonly description: "Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.";
|
|
10112
|
+
}];
|
|
10113
|
+
};
|
|
10114
|
+
}, {
|
|
10115
|
+
readonly resource: "file.uploads.parts";
|
|
10116
|
+
readonly method: "create";
|
|
10117
|
+
readonly summary: "Add an upload part";
|
|
10118
|
+
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.";
|
|
10119
|
+
readonly http: "POST";
|
|
10120
|
+
readonly path: "/file/v1/uploads/{upload_id}/parts";
|
|
10121
|
+
readonly streaming: "no";
|
|
10122
|
+
readonly pagination: false;
|
|
10123
|
+
readonly multipart: true;
|
|
10124
|
+
readonly pathParams: readonly [{
|
|
10125
|
+
readonly name: "upload_id";
|
|
10126
|
+
readonly sdkName: "upload_id";
|
|
10127
|
+
readonly description: "Upload identifier returned by create; belongs to your organization.";
|
|
10128
|
+
}];
|
|
10129
|
+
readonly query: readonly [{
|
|
10130
|
+
readonly name: "part_number";
|
|
10131
|
+
readonly type: "integer";
|
|
10132
|
+
readonly required: false;
|
|
10133
|
+
readonly description: "Required when create set part_size; 1 through ceil(bytes / part_size). Ignored for general uploads.";
|
|
10134
|
+
}];
|
|
10135
|
+
readonly body: {
|
|
10136
|
+
readonly required: true;
|
|
10137
|
+
readonly fields: readonly [{
|
|
10138
|
+
readonly name: "data";
|
|
10139
|
+
readonly type: "string";
|
|
10140
|
+
readonly required: true;
|
|
10141
|
+
readonly description: "Raw bytes of this part, nonempty and at most 64000000 bytes.";
|
|
10142
|
+
}];
|
|
10143
|
+
};
|
|
10144
|
+
}, {
|
|
10145
|
+
readonly resource: "knowledge.vectorStores";
|
|
10146
|
+
readonly method: "list";
|
|
10147
|
+
readonly summary: "List knowledge bases";
|
|
10148
|
+
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.";
|
|
10149
|
+
readonly http: "GET";
|
|
10150
|
+
readonly path: "/knowledge/v1/vector_stores";
|
|
10151
|
+
readonly streaming: "no";
|
|
10152
|
+
readonly pagination: false;
|
|
10153
|
+
readonly pathParams: readonly [];
|
|
10154
|
+
readonly query: readonly [{
|
|
10155
|
+
readonly name: "status";
|
|
10156
|
+
readonly type: "string";
|
|
10157
|
+
readonly enum: readonly ["active", "deleting"];
|
|
10158
|
+
readonly required: false;
|
|
10159
|
+
readonly description: "active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.";
|
|
10160
|
+
}, {
|
|
10161
|
+
readonly name: "after";
|
|
10162
|
+
readonly type: "string";
|
|
10163
|
+
readonly required: false;
|
|
10164
|
+
readonly description: "Cursor ID from the previous page.";
|
|
10165
|
+
}, {
|
|
10166
|
+
readonly name: "before";
|
|
10167
|
+
readonly type: "string";
|
|
10168
|
+
readonly required: false;
|
|
10169
|
+
readonly description: "Return items before this ID.";
|
|
10170
|
+
}, {
|
|
10171
|
+
readonly name: "limit";
|
|
10172
|
+
readonly type: "integer";
|
|
10173
|
+
readonly required: false;
|
|
10174
|
+
readonly description: "Page size.";
|
|
10175
|
+
}, {
|
|
10176
|
+
readonly name: "order";
|
|
10177
|
+
readonly type: "string";
|
|
10178
|
+
readonly enum: readonly ["asc", "desc"];
|
|
10179
|
+
readonly required: false;
|
|
10180
|
+
readonly description: "Order by creation time; defaults to desc for stores/files and asc by index for segments.";
|
|
10181
|
+
}];
|
|
10182
|
+
}, {
|
|
10183
|
+
readonly resource: "knowledge.vectorStores";
|
|
10184
|
+
readonly method: "create";
|
|
10185
|
+
readonly summary: "Create knowledge base";
|
|
10186
|
+
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\"}.";
|
|
10187
|
+
readonly http: "POST";
|
|
10188
|
+
readonly path: "/knowledge/v1/vector_stores";
|
|
10189
|
+
readonly streaming: "no";
|
|
10190
|
+
readonly pagination: false;
|
|
10191
|
+
readonly pathParams: readonly [];
|
|
10192
|
+
readonly query: readonly [];
|
|
10193
|
+
readonly body: {
|
|
10194
|
+
readonly required: true;
|
|
10195
|
+
readonly fields: readonly [{
|
|
10196
|
+
readonly name: "name";
|
|
10197
|
+
readonly type: "string";
|
|
10198
|
+
readonly required: false;
|
|
10199
|
+
readonly description: "Omitted name becomes an empty string; null is rejected.";
|
|
10200
|
+
}, {
|
|
10201
|
+
readonly name: "metadata";
|
|
10202
|
+
readonly type: "object";
|
|
10203
|
+
readonly required: false;
|
|
10204
|
+
readonly description: "User-defined string metadata for the store; omission or null creates an empty map.";
|
|
10205
|
+
}, {
|
|
10206
|
+
readonly name: "expires_after";
|
|
10207
|
+
readonly type: "object";
|
|
10208
|
+
readonly required: false;
|
|
10209
|
+
readonly description: "Expiry policy from last activity; omission or null disables automatic expiry.";
|
|
10210
|
+
}, {
|
|
10211
|
+
readonly name: "file_ids";
|
|
10212
|
+
readonly type: "array";
|
|
10213
|
+
readonly itemType: "string";
|
|
10214
|
+
readonly required: false;
|
|
10215
|
+
readonly description: "Existing File IDs to attach; the store allows up to 10,000 files.";
|
|
10216
|
+
}, {
|
|
10217
|
+
readonly name: "chunking_strategy";
|
|
10218
|
+
readonly type: "object";
|
|
10219
|
+
readonly required: false;
|
|
10220
|
+
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.";
|
|
10221
|
+
}, {
|
|
10222
|
+
readonly name: "description";
|
|
10223
|
+
readonly type: "string";
|
|
10224
|
+
readonly required: false;
|
|
10225
|
+
readonly description: "Accepted but not saved or returned; its type is not validated.";
|
|
10226
|
+
}, {
|
|
10227
|
+
readonly name: "models";
|
|
10228
|
+
readonly type: "object";
|
|
10229
|
+
readonly required: false;
|
|
10230
|
+
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.";
|
|
10231
|
+
}];
|
|
10232
|
+
};
|
|
10233
|
+
}, {
|
|
10234
|
+
readonly resource: "knowledge.vectorStores";
|
|
10235
|
+
readonly method: "delete";
|
|
10236
|
+
readonly summary: "Delete knowledge base";
|
|
10237
|
+
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.";
|
|
10238
|
+
readonly http: "DELETE";
|
|
10239
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
|
|
10240
|
+
readonly streaming: "no";
|
|
10241
|
+
readonly pagination: false;
|
|
10242
|
+
readonly pathParams: readonly [{
|
|
10243
|
+
readonly name: "vector_store_id";
|
|
10244
|
+
readonly sdkName: "vector_store_id";
|
|
10245
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10246
|
+
}];
|
|
10247
|
+
readonly query: readonly [];
|
|
10248
|
+
}, {
|
|
10249
|
+
readonly resource: "knowledge.vectorStores";
|
|
10250
|
+
readonly method: "retrieve";
|
|
10251
|
+
readonly summary: "Retrieve knowledge base";
|
|
10252
|
+
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.";
|
|
10253
|
+
readonly http: "GET";
|
|
10254
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
|
|
10255
|
+
readonly streaming: "no";
|
|
10256
|
+
readonly pagination: false;
|
|
10257
|
+
readonly pathParams: readonly [{
|
|
10258
|
+
readonly name: "vector_store_id";
|
|
10259
|
+
readonly sdkName: "vector_store_id";
|
|
10260
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10261
|
+
}];
|
|
10262
|
+
readonly query: readonly [{
|
|
10263
|
+
readonly name: "expand";
|
|
10264
|
+
readonly type: "array";
|
|
10265
|
+
readonly itemType: "string";
|
|
10266
|
+
readonly enum: readonly ["files"];
|
|
10267
|
+
readonly required: false;
|
|
10268
|
+
readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
|
|
10269
|
+
}, {
|
|
10270
|
+
readonly name: "expand[]";
|
|
10271
|
+
readonly type: "array";
|
|
10272
|
+
readonly itemType: "string";
|
|
10273
|
+
readonly enum: readonly ["files"];
|
|
10274
|
+
readonly required: false;
|
|
10275
|
+
readonly description: "Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.";
|
|
10276
|
+
}];
|
|
10277
|
+
}, {
|
|
10278
|
+
readonly resource: "knowledge.vectorStores";
|
|
10279
|
+
readonly method: "update";
|
|
10280
|
+
readonly summary: "Update knowledge base";
|
|
10281
|
+
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\"}.";
|
|
10282
|
+
readonly http: "POST";
|
|
10283
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}";
|
|
10284
|
+
readonly streaming: "no";
|
|
10285
|
+
readonly pagination: false;
|
|
10286
|
+
readonly pathParams: readonly [{
|
|
10287
|
+
readonly name: "vector_store_id";
|
|
10288
|
+
readonly sdkName: "vector_store_id";
|
|
10289
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10290
|
+
}];
|
|
10291
|
+
readonly query: readonly [];
|
|
10292
|
+
readonly body: {
|
|
10293
|
+
readonly required: true;
|
|
10294
|
+
readonly fields: readonly [{
|
|
10295
|
+
readonly name: "name";
|
|
10296
|
+
readonly type: "string";
|
|
10297
|
+
readonly required: false;
|
|
10298
|
+
readonly description: "null clears the name to an empty string. Omitted fields stay unchanged.";
|
|
10299
|
+
}, {
|
|
10300
|
+
readonly name: "metadata";
|
|
10301
|
+
readonly type: "object";
|
|
10302
|
+
readonly required: false;
|
|
10303
|
+
readonly description: "Replaces all metadata; null clears it to an empty object.";
|
|
10304
|
+
}, {
|
|
10305
|
+
readonly name: "expires_after";
|
|
10306
|
+
readonly type: "object";
|
|
10307
|
+
readonly required: false;
|
|
10308
|
+
readonly description: "null removes automatic expiry.";
|
|
10309
|
+
}, {
|
|
10310
|
+
readonly name: "models";
|
|
10311
|
+
readonly type: "object";
|
|
10312
|
+
readonly required: false;
|
|
10313
|
+
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.";
|
|
10314
|
+
}];
|
|
10315
|
+
};
|
|
10316
|
+
}, {
|
|
10317
|
+
readonly resource: "knowledge.vectorStores.events";
|
|
10318
|
+
readonly method: "list";
|
|
10319
|
+
readonly summary: "List events";
|
|
10320
|
+
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.";
|
|
10321
|
+
readonly http: "GET";
|
|
10322
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/events";
|
|
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 name: "after_seq";
|
|
10332
|
+
readonly type: "integer";
|
|
10333
|
+
readonly required: false;
|
|
10334
|
+
readonly description: "Return events with larger seq. Use next_seq to continue; invalid text is currently ignored.";
|
|
10335
|
+
}, {
|
|
10336
|
+
readonly name: "limit";
|
|
10337
|
+
readonly type: "integer";
|
|
10338
|
+
readonly required: false;
|
|
10339
|
+
readonly description: "Page size.";
|
|
10340
|
+
}];
|
|
10341
|
+
}, {
|
|
10342
|
+
readonly resource: "knowledge.vectorStores.fileBatches";
|
|
10343
|
+
readonly method: "create";
|
|
10344
|
+
readonly summary: "Create file batch";
|
|
10345
|
+
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.";
|
|
10346
|
+
readonly http: "POST";
|
|
10347
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches";
|
|
10348
|
+
readonly streaming: "no";
|
|
10349
|
+
readonly pagination: false;
|
|
10350
|
+
readonly pathParams: readonly [{
|
|
10351
|
+
readonly name: "vector_store_id";
|
|
10352
|
+
readonly sdkName: "vector_store_id";
|
|
10353
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10354
|
+
}];
|
|
10355
|
+
readonly query: readonly [];
|
|
10356
|
+
readonly body: {
|
|
10357
|
+
readonly required: true;
|
|
10358
|
+
readonly fields: readonly [];
|
|
10359
|
+
};
|
|
10360
|
+
}, {
|
|
10361
|
+
readonly resource: "knowledge.vectorStores.fileBatches";
|
|
10362
|
+
readonly method: "retrieve";
|
|
10363
|
+
readonly summary: "Retrieve file batch";
|
|
10364
|
+
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.";
|
|
10365
|
+
readonly http: "GET";
|
|
10366
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}";
|
|
10367
|
+
readonly streaming: "no";
|
|
10368
|
+
readonly pagination: false;
|
|
10369
|
+
readonly pathParams: readonly [{
|
|
10370
|
+
readonly name: "vector_store_id";
|
|
10371
|
+
readonly sdkName: "vector_store_id";
|
|
10372
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10373
|
+
}, {
|
|
10374
|
+
readonly name: "batch_id";
|
|
10375
|
+
readonly sdkName: "batch_id";
|
|
10376
|
+
readonly description: "File-batch ID returned by batch creation in this knowledge base.";
|
|
10377
|
+
}];
|
|
10378
|
+
readonly query: readonly [];
|
|
10379
|
+
}, {
|
|
10380
|
+
readonly resource: "knowledge.vectorStores.fileBatches";
|
|
10381
|
+
readonly method: "cancel";
|
|
10382
|
+
readonly summary: "Cancel file batch";
|
|
10383
|
+
readonly description: "Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).";
|
|
10384
|
+
readonly http: "POST";
|
|
10385
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel";
|
|
10386
|
+
readonly streaming: "no";
|
|
10387
|
+
readonly pagination: false;
|
|
10388
|
+
readonly pathParams: readonly [{
|
|
10389
|
+
readonly name: "vector_store_id";
|
|
10390
|
+
readonly sdkName: "vector_store_id";
|
|
10391
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10392
|
+
}, {
|
|
10393
|
+
readonly name: "batch_id";
|
|
10394
|
+
readonly sdkName: "batch_id";
|
|
10395
|
+
readonly description: "File-batch ID returned by batch creation in this knowledge base.";
|
|
10396
|
+
}];
|
|
10397
|
+
readonly query: readonly [];
|
|
10398
|
+
}, {
|
|
10399
|
+
readonly resource: "knowledge.vectorStores.fileBatches.files";
|
|
10400
|
+
readonly method: "list";
|
|
10401
|
+
readonly summary: "List batch files";
|
|
10402
|
+
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.";
|
|
10403
|
+
readonly http: "GET";
|
|
10404
|
+
readonly path: "/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files";
|
|
10405
|
+
readonly streaming: "no";
|
|
10406
|
+
readonly pagination: false;
|
|
10407
|
+
readonly pathParams: readonly [{
|
|
10408
|
+
readonly name: "vector_store_id";
|
|
10409
|
+
readonly sdkName: "vector_store_id";
|
|
10410
|
+
readonly description: "Knowledge-base ID returned by create or list; use the ID rather than its display name.";
|
|
10411
|
+
}, {
|
|
10412
|
+
readonly name: "batch_id";
|
|
9734
10413
|
readonly sdkName: "batch_id";
|
|
9735
10414
|
readonly description: "File-batch ID returned by batch creation in this knowledge base.";
|
|
9736
10415
|
}];
|
|
@@ -10278,7 +10957,7 @@ export declare const operations: readonly [{
|
|
|
10278
10957
|
readonly resource: "media.libraries.assets";
|
|
10279
10958
|
readonly method: "create";
|
|
10280
10959
|
readonly summary: "Upload asset";
|
|
10281
|
-
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.
|
|
10960
|
+
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.";
|
|
10282
10961
|
readonly http: "POST";
|
|
10283
10962
|
readonly path: "/media/v1/libraries/{library_id}/assets";
|
|
10284
10963
|
readonly streaming: "no";
|
|
@@ -10375,7 +11054,7 @@ export declare const operations: readonly [{
|
|
|
10375
11054
|
readonly resource: "media.libraries.assets.import";
|
|
10376
11055
|
readonly method: "create";
|
|
10377
11056
|
readonly summary: "Import file";
|
|
10378
|
-
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.
|
|
11057
|
+
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.";
|
|
10379
11058
|
readonly http: "POST";
|
|
10380
11059
|
readonly path: "/media/v1/libraries/{library_id}/assets/import";
|
|
10381
11060
|
readonly streaming: "no";
|
|
@@ -10588,7 +11267,7 @@ export declare const operations: readonly [{
|
|
|
10588
11267
|
readonly resource: "media.libraries.assets.reprocess";
|
|
10589
11268
|
readonly method: "create";
|
|
10590
11269
|
readonly summary: "Reprocess asset";
|
|
10591
|
-
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.
|
|
11270
|
+
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.";
|
|
10592
11271
|
readonly http: "POST";
|
|
10593
11272
|
readonly path: "/media/v1/libraries/{library_id}/assets/{asset_id}/reprocess";
|
|
10594
11273
|
readonly streaming: "no";
|
|
@@ -10640,9 +11319,9 @@ export declare const operations: readonly [{
|
|
|
10640
11319
|
}, {
|
|
10641
11320
|
readonly name: "kind";
|
|
10642
11321
|
readonly type: "string";
|
|
10643
|
-
readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "embedding"];
|
|
11322
|
+
readonly enum: readonly ["caption", "tags", "ocr", "transcript", "frame", "overview", "audio", "loudness", "beats", "content", "embedding"];
|
|
10644
11323
|
readonly required: false;
|
|
10645
|
-
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.";
|
|
11324
|
+
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.";
|
|
10646
11325
|
}, {
|
|
10647
11326
|
readonly name: "cursor";
|
|
10648
11327
|
readonly type: "string";
|
|
@@ -10658,7 +11337,7 @@ export declare const operations: readonly [{
|
|
|
10658
11337
|
readonly resource: "media.libraries.assets";
|
|
10659
11338
|
readonly method: "batch";
|
|
10660
11339
|
readonly summary: "Batch assets alias";
|
|
10661
|
-
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.
|
|
11340
|
+
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.";
|
|
10662
11341
|
readonly http: "POST";
|
|
10663
11342
|
readonly path: "/media/v1/libraries/{library_id}/assets:batch";
|
|
10664
11343
|
readonly streaming: "no";
|
|
@@ -10687,7 +11366,7 @@ export declare const operations: readonly [{
|
|
|
10687
11366
|
readonly resource: "media.libraries.batches";
|
|
10688
11367
|
readonly method: "create";
|
|
10689
11368
|
readonly summary: "Create batch";
|
|
10690
|
-
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.
|
|
11369
|
+
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.";
|
|
10691
11370
|
readonly http: "POST";
|
|
10692
11371
|
readonly path: "/media/v1/libraries/{library_id}/batches";
|
|
10693
11372
|
readonly streaming: "no";
|
|
@@ -11238,7 +11917,7 @@ export declare const operations: readonly [{
|
|
|
11238
11917
|
readonly name: "kinds";
|
|
11239
11918
|
readonly type: "string";
|
|
11240
11919
|
readonly required: false;
|
|
11241
|
-
readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.";
|
|
11920
|
+
readonly description: "Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind.";
|
|
11242
11921
|
}, {
|
|
11243
11922
|
readonly name: "cursor";
|
|
11244
11923
|
readonly type: "string";
|
|
@@ -12726,349 +13405,794 @@ export declare const operations: readonly [{
|
|
|
12726
13405
|
readonly name: "user";
|
|
12727
13406
|
readonly type: "string";
|
|
12728
13407
|
readonly required: false;
|
|
12729
|
-
readonly description: "A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.";
|
|
13408
|
+
readonly description: "A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.";
|
|
13409
|
+
}, {
|
|
13410
|
+
readonly name: "conversation";
|
|
13411
|
+
readonly type: "object";
|
|
13412
|
+
readonly required: false;
|
|
13413
|
+
readonly description: "The conversation this response belongs to (a conversation id string, or a `{id}` object). Before the request reaches the upstream provider, we prepend that conversation's existing items to this request's input; after the response completes, this turn's input and output items are appended back to the conversation. Only the conversation's owner may reference it — otherwise 404 object_not_found; cannot be used together with previous_response_id — sending both returns 400.";
|
|
13414
|
+
}, {
|
|
13415
|
+
readonly name: "context_management";
|
|
13416
|
+
readonly type: "array";
|
|
13417
|
+
readonly itemType: "object";
|
|
13418
|
+
readonly required: false;
|
|
13419
|
+
readonly description: "Context management configuration for this request (e.g. automatic compaction once a token threshold is exceeded).";
|
|
13420
|
+
}, {
|
|
13421
|
+
readonly name: "moderation";
|
|
13422
|
+
readonly type: "object";
|
|
13423
|
+
readonly required: false;
|
|
13424
|
+
readonly description: "Configuration for running moderation on the input and output of this response.";
|
|
13425
|
+
}, {
|
|
13426
|
+
readonly name: "prompt_cache_retention";
|
|
13427
|
+
readonly type: "string";
|
|
13428
|
+
readonly required: false;
|
|
13429
|
+
readonly description: "The retention policy for the prompt cache. Set to 24h to keep cached prefixes active for up to 24 hours.";
|
|
13430
|
+
}, {
|
|
13431
|
+
readonly name: "stream_options";
|
|
13432
|
+
readonly type: "object";
|
|
13433
|
+
readonly required: false;
|
|
13434
|
+
readonly description: "Options for streaming responses. Only set this when stream=true (e.g. whether to include usage statistics at the end of the stream).";
|
|
13435
|
+
}, {
|
|
13436
|
+
readonly name: "access_programs";
|
|
13437
|
+
readonly type: "object";
|
|
13438
|
+
readonly required: false;
|
|
13439
|
+
readonly description: "Recognized official field; access programs are not implemented and return 400 explicitly stating that the parameter is not supported.";
|
|
13440
|
+
}];
|
|
13441
|
+
};
|
|
13442
|
+
}, {
|
|
13443
|
+
readonly resource: "model.responses";
|
|
13444
|
+
readonly method: "compact";
|
|
13445
|
+
readonly summary: "Compact Response";
|
|
13446
|
+
readonly description: "Request context compaction for a response. Unlike OpenAI, this operation is unavailable and returns 501; do not use it to prepare a subsequent inference call.";
|
|
13447
|
+
readonly http: "POST";
|
|
13448
|
+
readonly path: "/model/v1/responses/compact";
|
|
13449
|
+
readonly streaming: "no";
|
|
13450
|
+
readonly pagination: false;
|
|
13451
|
+
readonly pathParams: readonly [];
|
|
13452
|
+
readonly query: readonly [];
|
|
13453
|
+
readonly body: {
|
|
13454
|
+
readonly required: true;
|
|
13455
|
+
readonly fields: readonly [];
|
|
13456
|
+
};
|
|
13457
|
+
}, {
|
|
13458
|
+
readonly resource: "model.responses.inputTokens";
|
|
13459
|
+
readonly method: "create";
|
|
13460
|
+
readonly summary: "Count Response Input Tokens";
|
|
13461
|
+
readonly description: "Request an input-token count for Responses input. Unlike OpenAI, this operation is unavailable and returns 501; use the documented Messages token-count operation only when its input shape and estimation limits fit your task.";
|
|
13462
|
+
readonly http: "POST";
|
|
13463
|
+
readonly path: "/model/v1/responses/input_tokens";
|
|
13464
|
+
readonly streaming: "no";
|
|
13465
|
+
readonly pagination: false;
|
|
13466
|
+
readonly pathParams: readonly [];
|
|
13467
|
+
readonly query: readonly [];
|
|
13468
|
+
readonly body: {
|
|
13469
|
+
readonly required: true;
|
|
13470
|
+
readonly fields: readonly [];
|
|
13471
|
+
};
|
|
13472
|
+
}, {
|
|
13473
|
+
readonly resource: "model.responses";
|
|
13474
|
+
readonly method: "delete";
|
|
13475
|
+
readonly summary: "Delete Response";
|
|
13476
|
+
readonly description: "Delete a stored response by its id when you no longer need to retrieve it. The response will no longer be available for later retrieval.";
|
|
13477
|
+
readonly http: "DELETE";
|
|
13478
|
+
readonly path: "/model/v1/responses/{response_id}";
|
|
13479
|
+
readonly streaming: "no";
|
|
13480
|
+
readonly pagination: false;
|
|
13481
|
+
readonly pathParams: readonly [{
|
|
13482
|
+
readonly name: "response_id";
|
|
13483
|
+
readonly sdkName: "response_id";
|
|
13484
|
+
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
13485
|
+
}];
|
|
13486
|
+
readonly query: readonly [];
|
|
13487
|
+
}, {
|
|
13488
|
+
readonly resource: "model.responses";
|
|
13489
|
+
readonly method: "retrieve";
|
|
13490
|
+
readonly summary: "Retrieve Response";
|
|
13491
|
+
readonly description: "Read a stored response by its id from creation. A response created with store=false, an expired response, an unknown id or another account's response returns 404.";
|
|
13492
|
+
readonly http: "GET";
|
|
13493
|
+
readonly path: "/model/v1/responses/{response_id}";
|
|
13494
|
+
readonly streaming: "no";
|
|
13495
|
+
readonly pagination: false;
|
|
13496
|
+
readonly pathParams: readonly [{
|
|
13497
|
+
readonly name: "response_id";
|
|
13498
|
+
readonly sdkName: "response_id";
|
|
13499
|
+
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
13500
|
+
}];
|
|
13501
|
+
readonly query: readonly [];
|
|
13502
|
+
}, {
|
|
13503
|
+
readonly resource: "model.responses";
|
|
13504
|
+
readonly method: "cancel";
|
|
13505
|
+
readonly summary: "Cancel Response";
|
|
13506
|
+
readonly description: "Cancel an in-progress background response using its id from creation. Unlike OpenAI, cancellation cannot guarantee that upstream compute stops; usage is settled for the output received. Repeating cancellation returns the terminal response; a synchronous response can return 400 native_responses_operation_unsupported or 404 if absent.";
|
|
13507
|
+
readonly http: "POST";
|
|
13508
|
+
readonly path: "/model/v1/responses/{response_id}/cancel";
|
|
13509
|
+
readonly streaming: "no";
|
|
13510
|
+
readonly pagination: false;
|
|
13511
|
+
readonly pathParams: readonly [{
|
|
13512
|
+
readonly name: "response_id";
|
|
13513
|
+
readonly sdkName: "response_id";
|
|
13514
|
+
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
13515
|
+
}];
|
|
13516
|
+
readonly query: readonly [];
|
|
13517
|
+
}, {
|
|
13518
|
+
readonly resource: "model.responses.inputItems";
|
|
13519
|
+
readonly method: "list";
|
|
13520
|
+
readonly summary: "List Response Input Items";
|
|
13521
|
+
readonly description: "Read the input items of a stored response using its id from creation. Use the returned items to inspect the input that produced that response.";
|
|
13522
|
+
readonly http: "GET";
|
|
13523
|
+
readonly path: "/model/v1/responses/{response_id}/input_items";
|
|
13524
|
+
readonly streaming: "no";
|
|
13525
|
+
readonly pagination: false;
|
|
13526
|
+
readonly pathParams: readonly [{
|
|
13527
|
+
readonly name: "response_id";
|
|
13528
|
+
readonly sdkName: "response_id";
|
|
13529
|
+
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
13530
|
+
}];
|
|
13531
|
+
readonly query: readonly [];
|
|
13532
|
+
}, {
|
|
13533
|
+
readonly resource: "model.systemone";
|
|
13534
|
+
readonly method: "create";
|
|
13535
|
+
readonly summary: "Ask structured decision questions";
|
|
13536
|
+
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.";
|
|
13537
|
+
readonly http: "POST";
|
|
13538
|
+
readonly path: "/model/v1/systemone";
|
|
13539
|
+
readonly streaming: "no";
|
|
13540
|
+
readonly pagination: false;
|
|
13541
|
+
readonly pathParams: readonly [];
|
|
13542
|
+
readonly query: readonly [];
|
|
13543
|
+
readonly body: {
|
|
13544
|
+
readonly required: true;
|
|
13545
|
+
readonly fields: readonly [{
|
|
13546
|
+
readonly name: "model";
|
|
13547
|
+
readonly type: "string";
|
|
13548
|
+
readonly required: true;
|
|
13549
|
+
readonly description: "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response.";
|
|
13550
|
+
}, {
|
|
13551
|
+
readonly name: "state";
|
|
13552
|
+
readonly type: "object";
|
|
13553
|
+
readonly required: true;
|
|
13554
|
+
readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
|
|
13555
|
+
}, {
|
|
13556
|
+
readonly name: "questions";
|
|
13557
|
+
readonly type: "object";
|
|
13558
|
+
readonly required: true;
|
|
13559
|
+
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.";
|
|
13560
|
+
}, {
|
|
13561
|
+
readonly name: "assets";
|
|
13562
|
+
readonly type: "object";
|
|
13563
|
+
readonly required: false;
|
|
13564
|
+
readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
|
|
13565
|
+
}];
|
|
13566
|
+
};
|
|
13567
|
+
}, {
|
|
13568
|
+
readonly resource: "model.videos";
|
|
13569
|
+
readonly method: "list";
|
|
13570
|
+
readonly summary: "List videos";
|
|
13571
|
+
readonly description: "OpenAI video API with OpenRouter request and response extensions.";
|
|
13572
|
+
readonly http: "GET";
|
|
13573
|
+
readonly path: "/model/v1/videos";
|
|
13574
|
+
readonly streaming: "no";
|
|
13575
|
+
readonly pagination: false;
|
|
13576
|
+
readonly pathParams: readonly [];
|
|
13577
|
+
readonly query: readonly [{
|
|
13578
|
+
readonly name: "after";
|
|
13579
|
+
readonly type: "string";
|
|
13580
|
+
readonly required: false;
|
|
13581
|
+
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.";
|
|
13582
|
+
}, {
|
|
13583
|
+
readonly name: "limit";
|
|
13584
|
+
readonly type: "integer";
|
|
13585
|
+
readonly required: false;
|
|
13586
|
+
readonly description: "Maximum number of jobs per page, from 1 to 100; defaults to 20.";
|
|
13587
|
+
}, {
|
|
13588
|
+
readonly name: "order";
|
|
13589
|
+
readonly type: "string";
|
|
13590
|
+
readonly enum: readonly ["asc", "desc"];
|
|
13591
|
+
readonly required: false;
|
|
13592
|
+
readonly description: "Sort order by creation time: desc (default) lists the newest job first, asc the oldest first.";
|
|
13593
|
+
}];
|
|
13594
|
+
}, {
|
|
13595
|
+
readonly resource: "model.videos";
|
|
13596
|
+
readonly method: "create";
|
|
13597
|
+
readonly summary: "Create video";
|
|
13598
|
+
readonly description: "OpenAI video API with OpenRouter request and response extensions.";
|
|
13599
|
+
readonly http: "POST";
|
|
13600
|
+
readonly path: "/model/v1/videos";
|
|
13601
|
+
readonly streaming: "no";
|
|
13602
|
+
readonly pagination: false;
|
|
13603
|
+
readonly multipart: true;
|
|
13604
|
+
readonly pathParams: readonly [];
|
|
13605
|
+
readonly query: readonly [];
|
|
13606
|
+
readonly body: {
|
|
13607
|
+
readonly required: true;
|
|
13608
|
+
readonly fields: readonly [{
|
|
13609
|
+
readonly name: "model";
|
|
13610
|
+
readonly type: "string";
|
|
13611
|
+
readonly required: false;
|
|
13612
|
+
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.";
|
|
13613
|
+
}, {
|
|
13614
|
+
readonly name: "prompt";
|
|
13615
|
+
readonly type: "string";
|
|
13616
|
+
readonly required: true;
|
|
13617
|
+
readonly description: "Text description of the video, at least 1 character. Router support (supported): Controls video content; missing or empty values return 400.";
|
|
13618
|
+
}, {
|
|
13619
|
+
readonly name: "seconds";
|
|
13620
|
+
readonly type: "object";
|
|
13621
|
+
readonly required: false;
|
|
13622
|
+
readonly description: "Takes precedence over duration.";
|
|
13623
|
+
}, {
|
|
13624
|
+
readonly name: "duration";
|
|
13625
|
+
readonly type: "integer";
|
|
13626
|
+
readonly required: false;
|
|
13627
|
+
readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
|
|
13628
|
+
}, {
|
|
13629
|
+
readonly name: "size";
|
|
13630
|
+
readonly type: "string";
|
|
13631
|
+
readonly required: false;
|
|
13632
|
+
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.";
|
|
12730
13633
|
}, {
|
|
12731
|
-
readonly name: "
|
|
13634
|
+
readonly name: "input_reference";
|
|
12732
13635
|
readonly type: "object";
|
|
12733
13636
|
readonly required: false;
|
|
12734
|
-
readonly description: "
|
|
13637
|
+
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).";
|
|
12735
13638
|
}, {
|
|
12736
|
-
readonly name: "
|
|
13639
|
+
readonly name: "input_references";
|
|
12737
13640
|
readonly type: "array";
|
|
12738
13641
|
readonly itemType: "object";
|
|
12739
13642
|
readonly required: false;
|
|
12740
|
-
readonly description: "
|
|
13643
|
+
readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
|
|
12741
13644
|
}, {
|
|
12742
|
-
readonly name: "
|
|
12743
|
-
readonly type: "
|
|
13645
|
+
readonly name: "frame_images";
|
|
13646
|
+
readonly type: "array";
|
|
13647
|
+
readonly itemType: "object";
|
|
12744
13648
|
readonly required: false;
|
|
12745
|
-
readonly description: "
|
|
13649
|
+
readonly description: "Images that pin the first and last frame; at most 2 entries.";
|
|
12746
13650
|
}, {
|
|
12747
|
-
readonly name: "
|
|
13651
|
+
readonly name: "resolution";
|
|
12748
13652
|
readonly type: "string";
|
|
12749
13653
|
readonly required: false;
|
|
12750
|
-
readonly description: "
|
|
13654
|
+
readonly description: "Output resolution label such as `720p`, for models that take a label instead of `size`.";
|
|
12751
13655
|
}, {
|
|
12752
|
-
readonly name: "
|
|
12753
|
-
readonly type: "
|
|
13656
|
+
readonly name: "aspect_ratio";
|
|
13657
|
+
readonly type: "string";
|
|
12754
13658
|
readonly required: false;
|
|
12755
|
-
readonly description: "
|
|
13659
|
+
readonly description: "Aspect ratio of the video such as `16:9`.";
|
|
12756
13660
|
}, {
|
|
12757
|
-
readonly name: "
|
|
12758
|
-
readonly type: "
|
|
13661
|
+
readonly name: "generate_audio";
|
|
13662
|
+
readonly type: "boolean";
|
|
12759
13663
|
readonly required: false;
|
|
12760
|
-
readonly description: "
|
|
13664
|
+
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.";
|
|
13665
|
+
}, {
|
|
13666
|
+
readonly name: "seed";
|
|
13667
|
+
readonly type: "integer";
|
|
13668
|
+
readonly required: false;
|
|
13669
|
+
readonly description: "Seed for reproducible generation, on models that support it.";
|
|
13670
|
+
}, {
|
|
13671
|
+
readonly name: "callback_url";
|
|
13672
|
+
readonly type: "string";
|
|
13673
|
+
readonly required: false;
|
|
13674
|
+
readonly description: "HTTP or HTTPS callback URL, forwarded to models that support completion callbacks.";
|
|
13675
|
+
}, {
|
|
13676
|
+
readonly name: "quality";
|
|
13677
|
+
readonly type: "string";
|
|
13678
|
+
readonly required: false;
|
|
13679
|
+
readonly description: "Provider-specific quality setting.";
|
|
12761
13680
|
}];
|
|
12762
13681
|
};
|
|
12763
13682
|
}, {
|
|
12764
|
-
readonly resource: "model.
|
|
12765
|
-
readonly method: "
|
|
12766
|
-
readonly summary: "
|
|
12767
|
-
readonly description: "
|
|
13683
|
+
readonly resource: "model.videos";
|
|
13684
|
+
readonly method: "delete";
|
|
13685
|
+
readonly summary: "Delete video";
|
|
13686
|
+
readonly description: "OpenAI video API with OpenRouter request and response extensions.";
|
|
13687
|
+
readonly http: "DELETE";
|
|
13688
|
+
readonly path: "/model/v1/videos/{video_id}";
|
|
13689
|
+
readonly streaming: "no";
|
|
13690
|
+
readonly pagination: false;
|
|
13691
|
+
readonly pathParams: readonly [{
|
|
13692
|
+
readonly name: "video_id";
|
|
13693
|
+
readonly sdkName: "video_id";
|
|
13694
|
+
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.";
|
|
13695
|
+
}];
|
|
13696
|
+
readonly query: readonly [];
|
|
13697
|
+
}, {
|
|
13698
|
+
readonly resource: "model.videos";
|
|
13699
|
+
readonly method: "retrieve";
|
|
13700
|
+
readonly summary: "Retrieve video";
|
|
13701
|
+
readonly description: "OpenAI video API with OpenRouter request and response extensions.";
|
|
13702
|
+
readonly http: "GET";
|
|
13703
|
+
readonly path: "/model/v1/videos/{video_id}";
|
|
13704
|
+
readonly streaming: "no";
|
|
13705
|
+
readonly pagination: false;
|
|
13706
|
+
readonly pathParams: readonly [{
|
|
13707
|
+
readonly name: "video_id";
|
|
13708
|
+
readonly sdkName: "video_id";
|
|
13709
|
+
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.";
|
|
13710
|
+
}];
|
|
13711
|
+
readonly query: readonly [];
|
|
13712
|
+
}, {
|
|
13713
|
+
readonly resource: "model.videos";
|
|
13714
|
+
readonly method: "retrieveContent";
|
|
13715
|
+
readonly summary: "Download video";
|
|
13716
|
+
readonly description: "OpenAI video API with OpenRouter request and response extensions.";
|
|
13717
|
+
readonly http: "GET";
|
|
13718
|
+
readonly path: "/model/v1/videos/{video_id}/content";
|
|
13719
|
+
readonly streaming: "no";
|
|
13720
|
+
readonly pagination: false;
|
|
13721
|
+
readonly pathParams: readonly [{
|
|
13722
|
+
readonly name: "video_id";
|
|
13723
|
+
readonly sdkName: "video_id";
|
|
13724
|
+
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.";
|
|
13725
|
+
}];
|
|
13726
|
+
readonly query: readonly [{
|
|
13727
|
+
readonly name: "variant";
|
|
13728
|
+
readonly type: "string";
|
|
13729
|
+
readonly enum: readonly ["video", "thumbnail", "spritesheet"];
|
|
13730
|
+
readonly required: false;
|
|
13731
|
+
readonly description: "Spritesheet is not available in this release (400).";
|
|
13732
|
+
}, {
|
|
13733
|
+
readonly name: "index";
|
|
13734
|
+
readonly type: "integer";
|
|
13735
|
+
readonly required: false;
|
|
13736
|
+
readonly description: "Output index; this release produces index 0. variant takes precedence.";
|
|
13737
|
+
}];
|
|
13738
|
+
}, {
|
|
13739
|
+
readonly resource: "model.videos";
|
|
13740
|
+
readonly method: "remix";
|
|
13741
|
+
readonly summary: "Remix video";
|
|
13742
|
+
readonly description: "Not supported in this release; always returns 400.";
|
|
12768
13743
|
readonly http: "POST";
|
|
12769
|
-
readonly path: "/model/v1/
|
|
13744
|
+
readonly path: "/model/v1/videos/{video_id}/remix";
|
|
12770
13745
|
readonly streaming: "no";
|
|
12771
13746
|
readonly pagination: false;
|
|
12772
|
-
readonly pathParams: readonly [
|
|
13747
|
+
readonly pathParams: readonly [{
|
|
13748
|
+
readonly name: "video_id";
|
|
13749
|
+
readonly sdkName: "video_id";
|
|
13750
|
+
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.";
|
|
13751
|
+
}];
|
|
12773
13752
|
readonly query: readonly [];
|
|
12774
|
-
readonly body: {
|
|
12775
|
-
readonly required: true;
|
|
12776
|
-
readonly fields: readonly [];
|
|
12777
|
-
};
|
|
12778
13753
|
}, {
|
|
12779
|
-
readonly resource: "
|
|
13754
|
+
readonly resource: "ontology.changesets";
|
|
12780
13755
|
readonly method: "create";
|
|
12781
|
-
readonly summary: "
|
|
12782
|
-
readonly description: "
|
|
13756
|
+
readonly summary: "Apply changeset";
|
|
13757
|
+
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.";
|
|
12783
13758
|
readonly http: "POST";
|
|
12784
|
-
readonly path: "/
|
|
13759
|
+
readonly path: "/ontology/v1/changesets";
|
|
12785
13760
|
readonly streaming: "no";
|
|
12786
13761
|
readonly pagination: false;
|
|
12787
13762
|
readonly pathParams: readonly [];
|
|
12788
13763
|
readonly query: readonly [];
|
|
12789
13764
|
readonly body: {
|
|
12790
13765
|
readonly required: true;
|
|
12791
|
-
readonly fields: readonly [
|
|
13766
|
+
readonly fields: readonly [{
|
|
13767
|
+
readonly name: "at";
|
|
13768
|
+
readonly type: "string";
|
|
13769
|
+
readonly required: true;
|
|
13770
|
+
readonly description: "World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.";
|
|
13771
|
+
}, {
|
|
13772
|
+
readonly name: "scope";
|
|
13773
|
+
readonly type: "string";
|
|
13774
|
+
readonly required: false;
|
|
13775
|
+
readonly description: "Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.";
|
|
13776
|
+
}, {
|
|
13777
|
+
readonly name: "ops";
|
|
13778
|
+
readonly type: "array";
|
|
13779
|
+
readonly itemType: "object";
|
|
13780
|
+
readonly required: true;
|
|
13781
|
+
readonly description: "At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.";
|
|
13782
|
+
}];
|
|
12792
13783
|
};
|
|
12793
13784
|
}, {
|
|
12794
|
-
readonly resource: "
|
|
12795
|
-
readonly method: "
|
|
12796
|
-
readonly summary: "
|
|
12797
|
-
readonly description: "
|
|
12798
|
-
readonly http: "
|
|
12799
|
-
readonly path: "/
|
|
13785
|
+
readonly resource: "ontology.nodes";
|
|
13786
|
+
readonly method: "list";
|
|
13787
|
+
readonly summary: "List nodes";
|
|
13788
|
+
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.";
|
|
13789
|
+
readonly http: "GET";
|
|
13790
|
+
readonly path: "/ontology/v1/nodes";
|
|
12800
13791
|
readonly streaming: "no";
|
|
12801
|
-
readonly pagination:
|
|
12802
|
-
readonly pathParams: readonly [
|
|
12803
|
-
|
|
12804
|
-
readonly
|
|
12805
|
-
readonly
|
|
13792
|
+
readonly pagination: true;
|
|
13793
|
+
readonly pathParams: readonly [];
|
|
13794
|
+
readonly query: readonly [{
|
|
13795
|
+
readonly name: "type";
|
|
13796
|
+
readonly type: "array";
|
|
13797
|
+
readonly itemType: "string";
|
|
13798
|
+
readonly required: false;
|
|
13799
|
+
readonly description: "Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.";
|
|
13800
|
+
}, {
|
|
13801
|
+
readonly name: "q";
|
|
13802
|
+
readonly type: "string";
|
|
13803
|
+
readonly required: false;
|
|
13804
|
+
readonly description: "Free text matched against node names, aliases and descriptions; omit to list without a text filter.";
|
|
13805
|
+
}, {
|
|
13806
|
+
readonly name: "owner";
|
|
13807
|
+
readonly type: "string";
|
|
13808
|
+
readonly required: false;
|
|
13809
|
+
readonly description: "Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.";
|
|
13810
|
+
}, {
|
|
13811
|
+
readonly name: "as_of";
|
|
13812
|
+
readonly type: "string";
|
|
13813
|
+
readonly required: false;
|
|
13814
|
+
readonly description: "ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.";
|
|
13815
|
+
}, {
|
|
13816
|
+
readonly name: "limit";
|
|
13817
|
+
readonly type: "integer";
|
|
13818
|
+
readonly required: false;
|
|
13819
|
+
readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
|
|
13820
|
+
}, {
|
|
13821
|
+
readonly name: "cursor";
|
|
13822
|
+
readonly type: "string";
|
|
13823
|
+
readonly required: false;
|
|
13824
|
+
readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
|
|
12806
13825
|
}];
|
|
12807
|
-
readonly query: readonly [];
|
|
12808
13826
|
}, {
|
|
12809
|
-
readonly resource: "
|
|
12810
|
-
readonly method: "
|
|
12811
|
-
readonly summary: "
|
|
12812
|
-
readonly description: "
|
|
12813
|
-
readonly http: "
|
|
12814
|
-
readonly path: "/
|
|
13827
|
+
readonly resource: "ontology.nodes";
|
|
13828
|
+
readonly method: "create";
|
|
13829
|
+
readonly summary: "Create node";
|
|
13830
|
+
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.";
|
|
13831
|
+
readonly http: "POST";
|
|
13832
|
+
readonly path: "/ontology/v1/nodes";
|
|
12815
13833
|
readonly streaming: "no";
|
|
12816
13834
|
readonly pagination: false;
|
|
12817
|
-
readonly pathParams: readonly [
|
|
12818
|
-
readonly name: "response_id";
|
|
12819
|
-
readonly sdkName: "response_id";
|
|
12820
|
-
readonly description: "Id of the stored response, the `id` returned by createResponse (it looks like resp_...). An unknown id, a response created with store false, an expired response and another tenant's response all answer 404.";
|
|
12821
|
-
}];
|
|
13835
|
+
readonly pathParams: readonly [];
|
|
12822
13836
|
readonly query: readonly [];
|
|
13837
|
+
readonly body: {
|
|
13838
|
+
readonly required: true;
|
|
13839
|
+
readonly fields: readonly [{
|
|
13840
|
+
readonly name: "type";
|
|
13841
|
+
readonly type: "string";
|
|
13842
|
+
readonly required: true;
|
|
13843
|
+
readonly description: "Registered node type name from types.list; an unregistered name is refused and nothing is written.";
|
|
13844
|
+
}, {
|
|
13845
|
+
readonly name: "ref";
|
|
13846
|
+
readonly type: "string";
|
|
13847
|
+
readonly required: false;
|
|
13848
|
+
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.";
|
|
13849
|
+
}, {
|
|
13850
|
+
readonly name: "name";
|
|
13851
|
+
readonly type: "string";
|
|
13852
|
+
readonly required: true;
|
|
13853
|
+
readonly description: "Display name of the entity, at most 200 characters.";
|
|
13854
|
+
}, {
|
|
13855
|
+
readonly name: "aliases";
|
|
13856
|
+
readonly type: "array";
|
|
13857
|
+
readonly itemType: "string";
|
|
13858
|
+
readonly required: false;
|
|
13859
|
+
readonly description: "Other names this entity is known by; they are matched by search alongside the name.";
|
|
13860
|
+
}, {
|
|
13861
|
+
readonly name: "description";
|
|
13862
|
+
readonly type: "string";
|
|
13863
|
+
readonly required: false;
|
|
13864
|
+
readonly description: "Profile of the entity, at most 500 characters; omit or null for none.";
|
|
13865
|
+
}, {
|
|
13866
|
+
readonly name: "owner";
|
|
13867
|
+
readonly type: "string";
|
|
13868
|
+
readonly required: false;
|
|
13869
|
+
readonly description: "Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.";
|
|
13870
|
+
}];
|
|
13871
|
+
};
|
|
12823
13872
|
}, {
|
|
12824
|
-
readonly resource: "
|
|
12825
|
-
readonly method: "
|
|
12826
|
-
readonly summary: "
|
|
12827
|
-
readonly description: "
|
|
12828
|
-
readonly http: "
|
|
12829
|
-
readonly path: "/
|
|
13873
|
+
readonly resource: "ontology.nodes";
|
|
13874
|
+
readonly method: "retrieve";
|
|
13875
|
+
readonly summary: "Retrieve node";
|
|
13876
|
+
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.";
|
|
13877
|
+
readonly http: "GET";
|
|
13878
|
+
readonly path: "/ontology/v1/nodes/{node_id}";
|
|
12830
13879
|
readonly streaming: "no";
|
|
12831
13880
|
readonly pagination: false;
|
|
12832
13881
|
readonly pathParams: readonly [{
|
|
12833
|
-
readonly name: "
|
|
12834
|
-
readonly sdkName: "
|
|
12835
|
-
readonly description: "
|
|
13882
|
+
readonly name: "node_id";
|
|
13883
|
+
readonly sdkName: "node_id";
|
|
13884
|
+
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.";
|
|
13885
|
+
}];
|
|
13886
|
+
readonly query: readonly [{
|
|
13887
|
+
readonly name: "expand";
|
|
13888
|
+
readonly type: "string";
|
|
13889
|
+
readonly enum: readonly ["relations"];
|
|
13890
|
+
readonly required: false;
|
|
13891
|
+
readonly description: "Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.";
|
|
13892
|
+
}, {
|
|
13893
|
+
readonly name: "as_of";
|
|
13894
|
+
readonly type: "string";
|
|
13895
|
+
readonly required: false;
|
|
13896
|
+
readonly description: "ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.";
|
|
12836
13897
|
}];
|
|
12837
|
-
readonly query: readonly [];
|
|
12838
13898
|
}, {
|
|
12839
|
-
readonly resource: "
|
|
12840
|
-
readonly method: "
|
|
12841
|
-
readonly summary: "
|
|
12842
|
-
readonly description: "
|
|
12843
|
-
readonly http: "
|
|
12844
|
-
readonly path: "/
|
|
13899
|
+
readonly resource: "ontology.nodes";
|
|
13900
|
+
readonly method: "update";
|
|
13901
|
+
readonly summary: "Update node";
|
|
13902
|
+
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.";
|
|
13903
|
+
readonly http: "PATCH";
|
|
13904
|
+
readonly path: "/ontology/v1/nodes/{node_id}";
|
|
12845
13905
|
readonly streaming: "no";
|
|
12846
13906
|
readonly pagination: false;
|
|
12847
13907
|
readonly pathParams: readonly [{
|
|
12848
|
-
readonly name: "
|
|
12849
|
-
readonly sdkName: "
|
|
12850
|
-
readonly description: "
|
|
13908
|
+
readonly name: "node_id";
|
|
13909
|
+
readonly sdkName: "node_id";
|
|
13910
|
+
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.";
|
|
12851
13911
|
}];
|
|
12852
13912
|
readonly query: readonly [];
|
|
13913
|
+
readonly body: {
|
|
13914
|
+
readonly required: true;
|
|
13915
|
+
readonly fields: readonly [{
|
|
13916
|
+
readonly name: "name";
|
|
13917
|
+
readonly type: "string";
|
|
13918
|
+
readonly required: false;
|
|
13919
|
+
readonly description: "New display name, at most 200 characters; omit to keep the current name.";
|
|
13920
|
+
}, {
|
|
13921
|
+
readonly name: "aliases";
|
|
13922
|
+
readonly type: "array";
|
|
13923
|
+
readonly itemType: "string";
|
|
13924
|
+
readonly required: false;
|
|
13925
|
+
readonly description: "Replacement alias list; an empty array clears the aliases and omitting the field keeps them.";
|
|
13926
|
+
}, {
|
|
13927
|
+
readonly name: "description";
|
|
13928
|
+
readonly type: "string";
|
|
13929
|
+
readonly required: false;
|
|
13930
|
+
readonly description: "Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.";
|
|
13931
|
+
}];
|
|
13932
|
+
};
|
|
12853
13933
|
}, {
|
|
12854
|
-
readonly resource: "
|
|
13934
|
+
readonly resource: "ontology.nodes.merge";
|
|
12855
13935
|
readonly method: "create";
|
|
12856
|
-
readonly summary: "
|
|
12857
|
-
readonly description: "
|
|
13936
|
+
readonly summary: "Merge node";
|
|
13937
|
+
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.";
|
|
12858
13938
|
readonly http: "POST";
|
|
12859
|
-
readonly path: "/
|
|
13939
|
+
readonly path: "/ontology/v1/nodes/{node_id}/merge";
|
|
12860
13940
|
readonly streaming: "no";
|
|
12861
13941
|
readonly pagination: false;
|
|
12862
|
-
readonly pathParams: readonly [
|
|
13942
|
+
readonly pathParams: readonly [{
|
|
13943
|
+
readonly name: "node_id";
|
|
13944
|
+
readonly sdkName: "node_id";
|
|
13945
|
+
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.";
|
|
13946
|
+
}];
|
|
12863
13947
|
readonly query: readonly [];
|
|
12864
13948
|
readonly body: {
|
|
12865
13949
|
readonly required: true;
|
|
12866
13950
|
readonly fields: readonly [{
|
|
12867
|
-
readonly name: "
|
|
13951
|
+
readonly name: "into";
|
|
12868
13952
|
readonly type: "string";
|
|
12869
13953
|
readonly required: true;
|
|
12870
|
-
readonly description: "
|
|
12871
|
-
}, {
|
|
12872
|
-
readonly name: "state";
|
|
12873
|
-
readonly type: "object";
|
|
12874
|
-
readonly required: true;
|
|
12875
|
-
readonly description: "Shared content evaluated by every question, supplied as text, a JSON object or an array.";
|
|
12876
|
-
}, {
|
|
12877
|
-
readonly name: "questions";
|
|
12878
|
-
readonly type: "object";
|
|
12879
|
-
readonly required: true;
|
|
12880
|
-
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.";
|
|
12881
|
-
}, {
|
|
12882
|
-
readonly name: "assets";
|
|
12883
|
-
readonly type: "object";
|
|
12884
|
-
readonly required: false;
|
|
12885
|
-
readonly description: "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported.";
|
|
13954
|
+
readonly description: "Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.";
|
|
12886
13955
|
}];
|
|
12887
13956
|
};
|
|
12888
13957
|
}, {
|
|
12889
|
-
readonly resource: "
|
|
13958
|
+
readonly resource: "ontology.relations";
|
|
12890
13959
|
readonly method: "list";
|
|
12891
|
-
readonly summary: "List
|
|
12892
|
-
readonly description: "
|
|
13960
|
+
readonly summary: "List relations";
|
|
13961
|
+
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.";
|
|
12893
13962
|
readonly http: "GET";
|
|
12894
|
-
readonly path: "/
|
|
13963
|
+
readonly path: "/ontology/v1/relations";
|
|
12895
13964
|
readonly streaming: "no";
|
|
12896
|
-
readonly pagination:
|
|
13965
|
+
readonly pagination: true;
|
|
12897
13966
|
readonly pathParams: readonly [];
|
|
12898
13967
|
readonly query: readonly [{
|
|
12899
|
-
readonly name: "
|
|
13968
|
+
readonly name: "node";
|
|
12900
13969
|
readonly type: "string";
|
|
12901
13970
|
readonly required: false;
|
|
12902
|
-
readonly description: "
|
|
13971
|
+
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.";
|
|
13972
|
+
}, {
|
|
13973
|
+
readonly name: "type";
|
|
13974
|
+
readonly type: "array";
|
|
13975
|
+
readonly itemType: "string";
|
|
13976
|
+
readonly required: false;
|
|
13977
|
+
readonly description: "Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.";
|
|
13978
|
+
}, {
|
|
13979
|
+
readonly name: "direction";
|
|
13980
|
+
readonly type: "string";
|
|
13981
|
+
readonly enum: readonly ["out", "in", "both"];
|
|
13982
|
+
readonly required: false;
|
|
13983
|
+
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.";
|
|
13984
|
+
}, {
|
|
13985
|
+
readonly name: "as_of";
|
|
13986
|
+
readonly type: "string";
|
|
13987
|
+
readonly required: false;
|
|
13988
|
+
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.";
|
|
13989
|
+
}, {
|
|
13990
|
+
readonly name: "include_invalid";
|
|
13991
|
+
readonly type: "boolean";
|
|
13992
|
+
readonly required: false;
|
|
13993
|
+
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.";
|
|
12903
13994
|
}, {
|
|
12904
13995
|
readonly name: "limit";
|
|
12905
13996
|
readonly type: "integer";
|
|
12906
13997
|
readonly required: false;
|
|
12907
|
-
readonly description: "Maximum
|
|
13998
|
+
readonly description: "Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.";
|
|
12908
13999
|
}, {
|
|
12909
|
-
readonly name: "
|
|
14000
|
+
readonly name: "cursor";
|
|
12910
14001
|
readonly type: "string";
|
|
12911
|
-
readonly enum: readonly ["asc", "desc"];
|
|
12912
14002
|
readonly required: false;
|
|
12913
|
-
readonly description: "
|
|
14003
|
+
readonly description: "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.";
|
|
12914
14004
|
}];
|
|
12915
14005
|
}, {
|
|
12916
|
-
readonly resource: "
|
|
14006
|
+
readonly resource: "ontology.relations";
|
|
12917
14007
|
readonly method: "create";
|
|
12918
|
-
readonly summary: "Create
|
|
12919
|
-
readonly description: "
|
|
14008
|
+
readonly summary: "Create relation";
|
|
14009
|
+
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.";
|
|
12920
14010
|
readonly http: "POST";
|
|
12921
|
-
readonly path: "/
|
|
14011
|
+
readonly path: "/ontology/v1/relations";
|
|
12922
14012
|
readonly streaming: "no";
|
|
12923
14013
|
readonly pagination: false;
|
|
12924
|
-
readonly multipart: true;
|
|
12925
14014
|
readonly pathParams: readonly [];
|
|
12926
14015
|
readonly query: readonly [];
|
|
12927
14016
|
readonly body: {
|
|
12928
14017
|
readonly required: true;
|
|
12929
14018
|
readonly fields: readonly [{
|
|
12930
|
-
readonly name: "
|
|
14019
|
+
readonly name: "type";
|
|
12931
14020
|
readonly type: "string";
|
|
12932
|
-
readonly required:
|
|
12933
|
-
readonly description: "
|
|
14021
|
+
readonly required: true;
|
|
14022
|
+
readonly description: "Registered relation type name from types.list; it must admit both endpoints or the write is refused.";
|
|
12934
14023
|
}, {
|
|
12935
|
-
readonly name: "
|
|
14024
|
+
readonly name: "source";
|
|
12936
14025
|
readonly type: "string";
|
|
12937
14026
|
readonly required: true;
|
|
12938
|
-
readonly description: "
|
|
12939
|
-
}, {
|
|
12940
|
-
readonly name: "seconds";
|
|
12941
|
-
readonly type: "object";
|
|
12942
|
-
readonly required: false;
|
|
12943
|
-
readonly description: "Takes precedence over duration.";
|
|
12944
|
-
}, {
|
|
12945
|
-
readonly name: "duration";
|
|
12946
|
-
readonly type: "integer";
|
|
12947
|
-
readonly required: false;
|
|
12948
|
-
readonly description: "Length of the video in whole seconds. `seconds` takes precedence when both are given.";
|
|
14027
|
+
readonly description: "Node id the fact starts from, from nodes.list or nodes.create.";
|
|
12949
14028
|
}, {
|
|
12950
|
-
readonly name: "
|
|
14029
|
+
readonly name: "target";
|
|
12951
14030
|
readonly type: "string";
|
|
12952
|
-
readonly required:
|
|
12953
|
-
readonly description: "
|
|
12954
|
-
}, {
|
|
12955
|
-
readonly name: "input_reference";
|
|
12956
|
-
readonly type: "object";
|
|
12957
|
-
readonly required: false;
|
|
12958
|
-
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).";
|
|
14031
|
+
readonly required: true;
|
|
14032
|
+
readonly description: "Node id the fact points at, from nodes.list or nodes.create.";
|
|
12959
14033
|
}, {
|
|
12960
|
-
readonly name: "
|
|
12961
|
-
readonly type: "
|
|
12962
|
-
readonly
|
|
12963
|
-
readonly
|
|
12964
|
-
readonly description: "Several reference images; each entry is a URL or base64 data URL, or an object with `image_url`.";
|
|
14034
|
+
readonly name: "fact";
|
|
14035
|
+
readonly type: "string";
|
|
14036
|
+
readonly required: true;
|
|
14037
|
+
readonly description: "The relationship in one sentence, at most 280 characters, written to read back on its own.";
|
|
12965
14038
|
}, {
|
|
12966
|
-
readonly name: "
|
|
12967
|
-
readonly type: "
|
|
12968
|
-
readonly itemType: "object";
|
|
14039
|
+
readonly name: "valid_at";
|
|
14040
|
+
readonly type: "string";
|
|
12969
14041
|
readonly required: false;
|
|
12970
|
-
readonly description: "
|
|
14042
|
+
readonly description: "World time the fact became true, when the mirrored record dates it; omit to leave it undated.";
|
|
12971
14043
|
}, {
|
|
12972
|
-
readonly name: "
|
|
14044
|
+
readonly name: "owner";
|
|
12973
14045
|
readonly type: "string";
|
|
12974
14046
|
readonly required: false;
|
|
12975
|
-
readonly description: "
|
|
14047
|
+
readonly description: "Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.";
|
|
14048
|
+
}];
|
|
14049
|
+
};
|
|
14050
|
+
}, {
|
|
14051
|
+
readonly resource: "ontology.relations";
|
|
14052
|
+
readonly method: "retrieve";
|
|
14053
|
+
readonly summary: "Retrieve relation";
|
|
14054
|
+
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.";
|
|
14055
|
+
readonly http: "GET";
|
|
14056
|
+
readonly path: "/ontology/v1/relations/{relation_id}";
|
|
14057
|
+
readonly streaming: "no";
|
|
14058
|
+
readonly pagination: false;
|
|
14059
|
+
readonly pathParams: readonly [{
|
|
14060
|
+
readonly name: "relation_id";
|
|
14061
|
+
readonly sdkName: "relation_id";
|
|
14062
|
+
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.";
|
|
14063
|
+
}];
|
|
14064
|
+
readonly query: readonly [];
|
|
14065
|
+
}, {
|
|
14066
|
+
readonly resource: "ontology.relations.invalidate";
|
|
14067
|
+
readonly method: "create";
|
|
14068
|
+
readonly summary: "Invalidate relation";
|
|
14069
|
+
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.";
|
|
14070
|
+
readonly http: "POST";
|
|
14071
|
+
readonly path: "/ontology/v1/relations/{relation_id}/invalidate";
|
|
14072
|
+
readonly streaming: "no";
|
|
14073
|
+
readonly pagination: false;
|
|
14074
|
+
readonly pathParams: readonly [{
|
|
14075
|
+
readonly name: "relation_id";
|
|
14076
|
+
readonly sdkName: "relation_id";
|
|
14077
|
+
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.";
|
|
14078
|
+
}];
|
|
14079
|
+
readonly query: readonly [];
|
|
14080
|
+
readonly body: {
|
|
14081
|
+
readonly required: true;
|
|
14082
|
+
readonly fields: readonly [{
|
|
14083
|
+
readonly name: "invalid_at";
|
|
14084
|
+
readonly type: "string";
|
|
14085
|
+
readonly required: true;
|
|
14086
|
+
readonly description: "World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.";
|
|
12976
14087
|
}, {
|
|
12977
|
-
readonly name: "
|
|
14088
|
+
readonly name: "superseded_by";
|
|
12978
14089
|
readonly type: "string";
|
|
12979
14090
|
readonly required: false;
|
|
12980
|
-
readonly description: "
|
|
14091
|
+
readonly description: "Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.";
|
|
12981
14092
|
}, {
|
|
12982
|
-
readonly name: "
|
|
12983
|
-
readonly type: "
|
|
14093
|
+
readonly name: "reason";
|
|
14094
|
+
readonly type: "string";
|
|
12984
14095
|
readonly required: false;
|
|
12985
|
-
readonly description: "
|
|
14096
|
+
readonly description: "Why it stopped being true, for people reading the history later; not enforced and safe to omit.";
|
|
14097
|
+
}];
|
|
14098
|
+
};
|
|
14099
|
+
}, {
|
|
14100
|
+
readonly resource: "ontology.search";
|
|
14101
|
+
readonly method: "create";
|
|
14102
|
+
readonly summary: "Search nodes";
|
|
14103
|
+
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.";
|
|
14104
|
+
readonly http: "POST";
|
|
14105
|
+
readonly path: "/ontology/v1/search";
|
|
14106
|
+
readonly streaming: "no";
|
|
14107
|
+
readonly pagination: false;
|
|
14108
|
+
readonly pathParams: readonly [];
|
|
14109
|
+
readonly query: readonly [];
|
|
14110
|
+
readonly body: {
|
|
14111
|
+
readonly required: true;
|
|
14112
|
+
readonly fields: readonly [{
|
|
14113
|
+
readonly name: "text";
|
|
14114
|
+
readonly type: "string";
|
|
14115
|
+
readonly required: true;
|
|
14116
|
+
readonly description: "Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.";
|
|
12986
14117
|
}, {
|
|
12987
|
-
readonly name: "
|
|
12988
|
-
readonly type: "
|
|
14118
|
+
readonly name: "types";
|
|
14119
|
+
readonly type: "array";
|
|
14120
|
+
readonly itemType: "string";
|
|
12989
14121
|
readonly required: false;
|
|
12990
|
-
readonly description: "
|
|
14122
|
+
readonly description: "Registered node type names to search within; omit to search every type.";
|
|
12991
14123
|
}, {
|
|
12992
|
-
readonly name: "
|
|
12993
|
-
readonly type: "
|
|
14124
|
+
readonly name: "window";
|
|
14125
|
+
readonly type: "object";
|
|
12994
14126
|
readonly required: false;
|
|
12995
|
-
readonly description: "
|
|
14127
|
+
readonly description: "Restrict matches to facts recorded within a period; omit to search all time.";
|
|
12996
14128
|
}, {
|
|
12997
|
-
readonly name: "
|
|
12998
|
-
readonly type: "
|
|
14129
|
+
readonly name: "limit";
|
|
14130
|
+
readonly type: "integer";
|
|
12999
14131
|
readonly required: false;
|
|
13000
|
-
readonly description: "
|
|
14132
|
+
readonly description: "Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.";
|
|
13001
14133
|
}];
|
|
13002
14134
|
};
|
|
13003
14135
|
}, {
|
|
13004
|
-
readonly resource: "
|
|
13005
|
-
readonly method: "
|
|
13006
|
-
readonly summary: "
|
|
13007
|
-
readonly description: "
|
|
13008
|
-
readonly http: "
|
|
13009
|
-
readonly path: "/
|
|
14136
|
+
readonly resource: "ontology.types";
|
|
14137
|
+
readonly method: "list";
|
|
14138
|
+
readonly summary: "List types";
|
|
14139
|
+
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.";
|
|
14140
|
+
readonly http: "GET";
|
|
14141
|
+
readonly path: "/ontology/v1/types";
|
|
13010
14142
|
readonly streaming: "no";
|
|
13011
14143
|
readonly pagination: false;
|
|
13012
|
-
readonly pathParams: readonly [
|
|
13013
|
-
readonly name: "video_id";
|
|
13014
|
-
readonly sdkName: "video_id";
|
|
13015
|
-
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.";
|
|
13016
|
-
}];
|
|
14144
|
+
readonly pathParams: readonly [];
|
|
13017
14145
|
readonly query: readonly [];
|
|
13018
14146
|
}, {
|
|
13019
|
-
readonly resource: "
|
|
13020
|
-
readonly method: "
|
|
13021
|
-
readonly summary: "
|
|
13022
|
-
readonly description: "
|
|
13023
|
-
readonly http: "
|
|
13024
|
-
readonly path: "/
|
|
14147
|
+
readonly resource: "ontology.types";
|
|
14148
|
+
readonly method: "create";
|
|
14149
|
+
readonly summary: "Register type";
|
|
14150
|
+
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.";
|
|
14151
|
+
readonly http: "POST";
|
|
14152
|
+
readonly path: "/ontology/v1/types";
|
|
13025
14153
|
readonly streaming: "no";
|
|
13026
14154
|
readonly pagination: false;
|
|
13027
|
-
readonly pathParams: readonly [
|
|
13028
|
-
readonly name: "video_id";
|
|
13029
|
-
readonly sdkName: "video_id";
|
|
13030
|
-
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.";
|
|
13031
|
-
}];
|
|
14155
|
+
readonly pathParams: readonly [];
|
|
13032
14156
|
readonly query: readonly [];
|
|
14157
|
+
readonly body: {
|
|
14158
|
+
readonly required: true;
|
|
14159
|
+
readonly fields: readonly [{
|
|
14160
|
+
readonly name: "owner";
|
|
14161
|
+
readonly type: "string";
|
|
14162
|
+
readonly required: true;
|
|
14163
|
+
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.";
|
|
14164
|
+
}, {
|
|
14165
|
+
readonly name: "version";
|
|
14166
|
+
readonly type: "integer";
|
|
14167
|
+
readonly required: true;
|
|
14168
|
+
readonly description: "Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.";
|
|
14169
|
+
}, {
|
|
14170
|
+
readonly name: "nodes";
|
|
14171
|
+
readonly type: "array";
|
|
14172
|
+
readonly itemType: "object";
|
|
14173
|
+
readonly required: true;
|
|
14174
|
+
readonly description: "Node types this owner registers.";
|
|
14175
|
+
}, {
|
|
14176
|
+
readonly name: "edges";
|
|
14177
|
+
readonly type: "array";
|
|
14178
|
+
readonly itemType: "object";
|
|
14179
|
+
readonly required: true;
|
|
14180
|
+
readonly description: "Relation types this owner registers.";
|
|
14181
|
+
}];
|
|
14182
|
+
};
|
|
13033
14183
|
}, {
|
|
13034
|
-
readonly resource: "
|
|
13035
|
-
readonly method: "
|
|
13036
|
-
readonly summary: "
|
|
13037
|
-
readonly description: "
|
|
14184
|
+
readonly resource: "ontology.types";
|
|
14185
|
+
readonly method: "retrieve";
|
|
14186
|
+
readonly summary: "Retrieve type";
|
|
14187
|
+
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.";
|
|
13038
14188
|
readonly http: "GET";
|
|
13039
|
-
readonly path: "/
|
|
13040
|
-
readonly streaming: "no";
|
|
13041
|
-
readonly pagination: false;
|
|
13042
|
-
readonly pathParams: readonly [{
|
|
13043
|
-
readonly name: "video_id";
|
|
13044
|
-
readonly sdkName: "video_id";
|
|
13045
|
-
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.";
|
|
13046
|
-
}];
|
|
13047
|
-
readonly query: readonly [{
|
|
13048
|
-
readonly name: "variant";
|
|
13049
|
-
readonly type: "string";
|
|
13050
|
-
readonly enum: readonly ["video", "thumbnail", "spritesheet"];
|
|
13051
|
-
readonly required: false;
|
|
13052
|
-
readonly description: "Spritesheet is not available in this release (400).";
|
|
13053
|
-
}, {
|
|
13054
|
-
readonly name: "index";
|
|
13055
|
-
readonly type: "integer";
|
|
13056
|
-
readonly required: false;
|
|
13057
|
-
readonly description: "Output index; this release produces index 0. variant takes precedence.";
|
|
13058
|
-
}];
|
|
13059
|
-
}, {
|
|
13060
|
-
readonly resource: "model.videos";
|
|
13061
|
-
readonly method: "remix";
|
|
13062
|
-
readonly summary: "Remix video";
|
|
13063
|
-
readonly description: "Not supported in this release; always returns 400.";
|
|
13064
|
-
readonly http: "POST";
|
|
13065
|
-
readonly path: "/model/v1/videos/{video_id}/remix";
|
|
14189
|
+
readonly path: "/ontology/v1/types/{name}";
|
|
13066
14190
|
readonly streaming: "no";
|
|
13067
14191
|
readonly pagination: false;
|
|
13068
14192
|
readonly pathParams: readonly [{
|
|
13069
|
-
readonly name: "
|
|
13070
|
-
readonly sdkName: "
|
|
13071
|
-
readonly description: "
|
|
14193
|
+
readonly name: "name";
|
|
14194
|
+
readonly sdkName: "name";
|
|
14195
|
+
readonly description: "A type name from types.list, with its dots preserved — a display label is not accepted.";
|
|
13072
14196
|
}];
|
|
13073
14197
|
readonly query: readonly [];
|
|
13074
14198
|
}, {
|
|
@@ -15123,7 +16247,7 @@ export declare const operations: readonly [{
|
|
|
15123
16247
|
readonly resource: "ticket.labels";
|
|
15124
16248
|
readonly method: "create";
|
|
15125
16249
|
readonly summary: "Create or add labels";
|
|
15126
|
-
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.
|
|
16250
|
+
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.";
|
|
15127
16251
|
readonly http: "POST";
|
|
15128
16252
|
readonly path: "/ticket/v1/labels";
|
|
15129
16253
|
readonly streaming: "no";
|
|
@@ -15158,7 +16282,7 @@ export declare const operations: readonly [{
|
|
|
15158
16282
|
readonly resource: "ticket.labels";
|
|
15159
16283
|
readonly method: "delete";
|
|
15160
16284
|
readonly summary: "Remove labels";
|
|
15161
|
-
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.
|
|
16285
|
+
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.";
|
|
15162
16286
|
readonly http: "DELETE";
|
|
15163
16287
|
readonly path: "/ticket/v1/labels/{name}";
|
|
15164
16288
|
readonly streaming: "no";
|
|
@@ -15178,7 +16302,7 @@ export declare const operations: readonly [{
|
|
|
15178
16302
|
readonly resource: "ticket.labels";
|
|
15179
16303
|
readonly method: "update";
|
|
15180
16304
|
readonly summary: "Update labels";
|
|
15181
|
-
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.
|
|
16305
|
+
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.";
|
|
15182
16306
|
readonly http: "PATCH";
|
|
15183
16307
|
readonly path: "/ticket/v1/labels/{name}";
|
|
15184
16308
|
readonly streaming: "no";
|
|
@@ -16312,7 +17436,7 @@ export declare const operations: readonly [{
|
|
|
16312
17436
|
readonly resource: "vault.vaults";
|
|
16313
17437
|
readonly method: "create";
|
|
16314
17438
|
readonly summary: "Create vault";
|
|
16315
|
-
readonly description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
17439
|
+
readonly description: "Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. Agent sessions and deployments accept up to 50 vault_ids and match their credentials against the session's MCP servers, so a stored static or oauth credential does serve as vault-backed MCP authentication; only environment_variable credentials are not yet placed, because the egress proxy ADR-058 §6 gives them is not built. Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.";
|
|
16316
17440
|
readonly http: "POST";
|
|
16317
17441
|
readonly path: "/vault/v1/vaults";
|
|
16318
17442
|
readonly streaming: "no";
|