@deepraxis/sdk 0.1.1-dev.48a97c5 → 0.1.1-dev.4b420a8
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 +89 -1
- 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 +133 -6
- package/dist/generated/sdk.gen.js +336 -5
- package/dist/generated/types.gen.d.ts +2453 -28
- package/dist/helpers/browser-connect.d.ts +12 -0
- package/dist/helpers/browser-connect.js +108 -22
- package/dist/helpers/browser-decisions.d.ts +29 -0
- package/dist/helpers/browser-decisions.js +39 -0
- package/dist/operations.generated.d.ts +644 -9
- package/dist/operations.generated.js +807 -8
- package/dist/resources.generated.d.ts +53 -1
- package/dist/resources.generated.js +52 -0
- package/package.json +1 -1
|
@@ -5670,13 +5670,18 @@ export declare const operations: readonly [{
|
|
|
5670
5670
|
readonly resource: "browser.contexts";
|
|
5671
5671
|
readonly method: "list";
|
|
5672
5672
|
readonly summary: "列出浏览器上下文";
|
|
5673
|
-
readonly description: "分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null
|
|
5673
|
+
readonly description: "分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null。传 name 时只返回该名称的登录态;名称在当前账户内唯一,所以最多一条。";
|
|
5674
5674
|
readonly http: "GET";
|
|
5675
5675
|
readonly path: "/browser/v1/contexts";
|
|
5676
5676
|
readonly streaming: "no";
|
|
5677
5677
|
readonly pagination: false;
|
|
5678
5678
|
readonly pathParams: readonly [];
|
|
5679
5679
|
readonly query: readonly [{
|
|
5680
|
+
readonly name: "name";
|
|
5681
|
+
readonly type: "string";
|
|
5682
|
+
readonly required: false;
|
|
5683
|
+
readonly description: "按登录态名称精确匹配;名称在当前账户内唯一,所以最多返回一条。省略时列出全部登录态。";
|
|
5684
|
+
}, {
|
|
5680
5685
|
readonly name: "cursor";
|
|
5681
5686
|
readonly type: "string";
|
|
5682
5687
|
readonly required: false;
|
|
@@ -7958,8 +7963,8 @@ export declare const operations: readonly [{
|
|
|
7958
7963
|
}, {
|
|
7959
7964
|
readonly resource: "cut.projects.analysis";
|
|
7960
7965
|
readonly method: "create";
|
|
7961
|
-
readonly summary: "Analyze project media";
|
|
7962
|
-
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 an id. Poll by calling this same method again with body { kinds: [\"mix\"], id } (there is no separate retrieve method); that call reads the measurement and renders nothing. 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.";
|
|
7963
7968
|
readonly http: "POST";
|
|
7964
7969
|
readonly path: "/cut/v1/projects/{project_id}/analysis";
|
|
7965
7970
|
readonly streaming: "no";
|
|
@@ -7982,9 +7987,29 @@ export declare const operations: readonly [{
|
|
|
7982
7987
|
readonly name: "kinds";
|
|
7983
7988
|
readonly type: "array";
|
|
7984
7989
|
readonly itemType: "string";
|
|
7985
|
-
readonly enum: readonly ["silence", "filler", "scenes"];
|
|
7990
|
+
readonly enum: readonly ["silence", "filler", "scenes", "mix"];
|
|
7986
7991
|
readonly required: true;
|
|
7987
|
-
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.";
|
|
7988
8013
|
}];
|
|
7989
8014
|
};
|
|
7990
8015
|
}, {
|
|
@@ -8127,6 +8152,11 @@ export declare const operations: readonly [{
|
|
|
8127
8152
|
readonly type: "object";
|
|
8128
8153
|
readonly required: false;
|
|
8129
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.";
|
|
8130
8160
|
}];
|
|
8131
8161
|
};
|
|
8132
8162
|
}, {
|
|
@@ -8193,6 +8223,46 @@ export declare const operations: readonly [{
|
|
|
8193
8223
|
readonly description: "Optional human-readable display name for the new media asset.";
|
|
8194
8224
|
}];
|
|
8195
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
|
+
};
|
|
8196
8266
|
}, {
|
|
8197
8267
|
readonly resource: "cut.projects";
|
|
8198
8268
|
readonly method: "retrieveState";
|
|
@@ -8307,7 +8377,7 @@ export declare const operations: readonly [{
|
|
|
8307
8377
|
readonly resource: "cut.projects";
|
|
8308
8378
|
readonly method: "execute";
|
|
8309
8379
|
readonly summary: "Execute editing script";
|
|
8310
|
-
readonly description: "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `
|
|
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; `duration` is seconds.\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; video and audio may omit it or write \"auto\".\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";
|
|
8311
8381
|
readonly http: "POST";
|
|
8312
8382
|
readonly path: "/cut/v1/projects/{project_id}:execute";
|
|
8313
8383
|
readonly streaming: "no";
|
|
@@ -8358,6 +8428,21 @@ export declare const operations: readonly [{
|
|
|
8358
8428
|
readonly description: "Project identifier returned by its create or list operation; use the id, not a display name.";
|
|
8359
8429
|
}];
|
|
8360
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 [];
|
|
8361
8446
|
}, {
|
|
8362
8447
|
readonly resource: "cut.versions";
|
|
8363
8448
|
readonly method: "restore";
|
|
@@ -9157,6 +9242,556 @@ export declare const operations: readonly [{
|
|
|
9157
9242
|
readonly description: "Sets the default for future inserts. Must match the current type and JSON schema; not supported for link fields.";
|
|
9158
9243
|
}];
|
|
9159
9244
|
};
|
|
9245
|
+
}, {
|
|
9246
|
+
readonly resource: "devops.projects.testCases";
|
|
9247
|
+
readonly method: "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.";
|
|
9250
|
+
readonly http: "GET";
|
|
9251
|
+
readonly path: "/devops/v1/projects/{project}/test-cases";
|
|
9252
|
+
readonly streaming: "no";
|
|
9253
|
+
readonly pagination: false;
|
|
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
|
+
}];
|
|
9259
|
+
readonly query: readonly [{
|
|
9260
|
+
readonly name: "pageSize";
|
|
9261
|
+
readonly type: "integer";
|
|
9262
|
+
readonly required: false;
|
|
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.";
|
|
9264
|
+
}, {
|
|
9265
|
+
readonly name: "pageToken";
|
|
9266
|
+
readonly type: "string";
|
|
9267
|
+
readonly required: false;
|
|
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.";
|
|
9269
|
+
}, {
|
|
9270
|
+
readonly name: "filter";
|
|
9271
|
+
readonly type: "string";
|
|
9272
|
+
readonly required: false;
|
|
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.";
|
|
9274
|
+
}, {
|
|
9275
|
+
readonly name: "orderBy";
|
|
9276
|
+
readonly type: "string";
|
|
9277
|
+
readonly required: false;
|
|
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.";
|
|
9319
|
+
}, {
|
|
9320
|
+
readonly name: "pageToken";
|
|
9321
|
+
readonly type: "string";
|
|
9322
|
+
readonly required: false;
|
|
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.";
|
|
9324
|
+
}, {
|
|
9325
|
+
readonly name: "orderBy";
|
|
9326
|
+
readonly type: "string";
|
|
9327
|
+
readonly required: false;
|
|
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.";
|
|
9329
|
+
}];
|
|
9330
|
+
}, {
|
|
9331
|
+
readonly resource: "devops.projects.testPlans";
|
|
9332
|
+
readonly method: "create";
|
|
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.";
|
|
9335
|
+
readonly http: "POST";
|
|
9336
|
+
readonly path: "/devops/v1/projects/{project}/test-plans";
|
|
9337
|
+
readonly streaming: "no";
|
|
9338
|
+
readonly pagination: false;
|
|
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
|
+
}];
|
|
9344
|
+
readonly query: readonly [];
|
|
9345
|
+
readonly body: {
|
|
9346
|
+
readonly required: true;
|
|
9347
|
+
readonly fields: readonly [{
|
|
9348
|
+
readonly name: "key";
|
|
9349
|
+
readonly type: "string";
|
|
9350
|
+
readonly required: true;
|
|
9351
|
+
readonly description: "Short name for the plan, unique inside the project; a key already in use is refused rather than silently reused.";
|
|
9352
|
+
}, {
|
|
9353
|
+
readonly name: "title";
|
|
9354
|
+
readonly type: "string";
|
|
9355
|
+
readonly required: true;
|
|
9356
|
+
readonly description: "Display title of the plan, shown wherever the plan is listed.";
|
|
9357
|
+
}, {
|
|
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";
|
|
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";
|
|
9376
|
+
readonly required: false;
|
|
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.";
|
|
9394
|
+
}];
|
|
9395
|
+
};
|
|
9396
|
+
}, {
|
|
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";
|
|
9403
|
+
readonly streaming: "no";
|
|
9404
|
+
readonly pagination: false;
|
|
9405
|
+
readonly pathParams: readonly [{
|
|
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.";
|
|
9409
|
+
}];
|
|
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
|
+
};
|
|
9436
|
+
}, {
|
|
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.";
|
|
9441
|
+
readonly http: "GET";
|
|
9442
|
+
readonly path: "/devops/v1/projects/{project}/test-runs";
|
|
9443
|
+
readonly streaming: "no";
|
|
9444
|
+
readonly pagination: false;
|
|
9445
|
+
readonly pathParams: readonly [{
|
|
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.";
|
|
9449
|
+
}];
|
|
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.";
|
|
9470
|
+
}];
|
|
9471
|
+
}, {
|
|
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.";
|
|
9476
|
+
readonly http: "POST";
|
|
9477
|
+
readonly path: "/devops/v1/projects/{project}/test-runs";
|
|
9478
|
+
readonly streaming: "no";
|
|
9479
|
+
readonly pagination: false;
|
|
9480
|
+
readonly pathParams: readonly [{
|
|
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.";
|
|
9484
|
+
}];
|
|
9485
|
+
readonly query: readonly [];
|
|
9486
|
+
readonly body: {
|
|
9487
|
+
readonly required: true;
|
|
9488
|
+
readonly fields: readonly [{
|
|
9489
|
+
readonly name: "ref";
|
|
9490
|
+
readonly type: "object";
|
|
9491
|
+
readonly required: true;
|
|
9492
|
+
readonly description: "The exact revision a run tested. A commit is always named, because a run without one has nothing to report against.";
|
|
9493
|
+
}, {
|
|
9494
|
+
readonly name: "plan";
|
|
9495
|
+
readonly type: "string";
|
|
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.";
|
|
9498
|
+
}, {
|
|
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";
|
|
9505
|
+
readonly type: "string";
|
|
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.";
|
|
9508
|
+
}, {
|
|
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";
|
|
9515
|
+
readonly type: "string";
|
|
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.";
|
|
9519
|
+
}, {
|
|
9520
|
+
readonly name: "executor";
|
|
9521
|
+
readonly type: "string";
|
|
9522
|
+
readonly enum: readonly ["cloud", "external"];
|
|
9523
|
+
readonly required: false;
|
|
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.";
|
|
9525
|
+
}, {
|
|
9526
|
+
readonly name: "requestId";
|
|
9527
|
+
readonly type: "string";
|
|
9528
|
+
readonly required: false;
|
|
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.";
|
|
9530
|
+
}];
|
|
9531
|
+
};
|
|
9532
|
+
}, {
|
|
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";
|
|
9539
|
+
readonly streaming: "no";
|
|
9540
|
+
readonly pagination: false;
|
|
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
|
+
}];
|
|
9621
|
+
readonly query: readonly [];
|
|
9622
|
+
readonly body: {
|
|
9623
|
+
readonly required: true;
|
|
9624
|
+
readonly fields: readonly [{
|
|
9625
|
+
readonly name: "plan";
|
|
9626
|
+
readonly type: "object";
|
|
9627
|
+
readonly required: true;
|
|
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.";
|
|
9629
|
+
}, {
|
|
9630
|
+
readonly name: "updateMask";
|
|
9631
|
+
readonly type: "string";
|
|
9632
|
+
readonly required: false;
|
|
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.";
|
|
9634
|
+
}];
|
|
9635
|
+
};
|
|
9636
|
+
}, {
|
|
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.";
|
|
9641
|
+
readonly http: "POST";
|
|
9642
|
+
readonly path: "/devops/v1/test-plans/{id}:pause";
|
|
9643
|
+
readonly streaming: "no";
|
|
9644
|
+
readonly pagination: false;
|
|
9645
|
+
readonly pathParams: readonly [{
|
|
9646
|
+
readonly name: "id";
|
|
9647
|
+
readonly sdkName: "id";
|
|
9648
|
+
readonly description: "The plan identifier returned by a plan list or create answer.";
|
|
9649
|
+
}];
|
|
9650
|
+
readonly query: readonly [];
|
|
9651
|
+
readonly body: {
|
|
9652
|
+
readonly required: true;
|
|
9653
|
+
readonly fields: readonly [{
|
|
9654
|
+
readonly name: "reason";
|
|
9655
|
+
readonly type: "string";
|
|
9656
|
+
readonly required: true;
|
|
9657
|
+
readonly description: "Why the plan is being paused; it is stored on the plan and read by whoever finds it stopped.";
|
|
9658
|
+
}, {
|
|
9659
|
+
readonly name: "until";
|
|
9660
|
+
readonly type: "string";
|
|
9661
|
+
readonly required: false;
|
|
9662
|
+
readonly description: "RFC 3339 UTC time the plan resumes by itself; omit it to stay paused until someone resumes it.";
|
|
9663
|
+
}];
|
|
9664
|
+
};
|
|
9665
|
+
}, {
|
|
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.";
|
|
9670
|
+
readonly http: "POST";
|
|
9671
|
+
readonly path: "/devops/v1/test-plans/{id}:resume";
|
|
9672
|
+
readonly streaming: "no";
|
|
9673
|
+
readonly pagination: false;
|
|
9674
|
+
readonly pathParams: readonly [{
|
|
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.";
|
|
9693
|
+
}];
|
|
9694
|
+
readonly query: readonly [{
|
|
9695
|
+
readonly name: "expand";
|
|
9696
|
+
readonly type: "array";
|
|
9697
|
+
readonly itemType: "string";
|
|
9698
|
+
readonly enum: readonly ["failedExecutions"];
|
|
9699
|
+
readonly required: false;
|
|
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.";
|
|
9715
|
+
}];
|
|
9716
|
+
readonly query: readonly [];
|
|
9717
|
+
readonly body: {
|
|
9718
|
+
readonly required: true;
|
|
9719
|
+
readonly fields: readonly [{
|
|
9720
|
+
readonly name: "reason";
|
|
9721
|
+
readonly type: "string";
|
|
9722
|
+
readonly required: true;
|
|
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.";
|
|
9724
|
+
}];
|
|
9725
|
+
};
|
|
9726
|
+
}, {
|
|
9727
|
+
readonly resource: "devops.testRuns.executions";
|
|
9728
|
+
readonly method: "list";
|
|
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.";
|
|
9731
|
+
readonly http: "GET";
|
|
9732
|
+
readonly path: "/devops/v1/test-runs/{run}/executions";
|
|
9733
|
+
readonly streaming: "no";
|
|
9734
|
+
readonly pagination: false;
|
|
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
|
+
}];
|
|
9740
|
+
readonly query: readonly [{
|
|
9741
|
+
readonly name: "pageSize";
|
|
9742
|
+
readonly type: "integer";
|
|
9743
|
+
readonly required: false;
|
|
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.";
|
|
9745
|
+
}, {
|
|
9746
|
+
readonly name: "pageToken";
|
|
9747
|
+
readonly type: "string";
|
|
9748
|
+
readonly required: false;
|
|
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.";
|
|
9750
|
+
}, {
|
|
9751
|
+
readonly name: "filter";
|
|
9752
|
+
readonly type: "string";
|
|
9753
|
+
readonly required: false;
|
|
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.";
|
|
9755
|
+
}, {
|
|
9756
|
+
readonly name: "orderBy";
|
|
9757
|
+
readonly type: "string";
|
|
9758
|
+
readonly required: false;
|
|
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.";
|
|
9760
|
+
}];
|
|
9761
|
+
}, {
|
|
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}";
|
|
9768
|
+
readonly streaming: "no";
|
|
9769
|
+
readonly pagination: false;
|
|
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
|
+
}];
|
|
9779
|
+
readonly query: readonly [];
|
|
9780
|
+
}, {
|
|
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}";
|
|
9787
|
+
readonly streaming: "no";
|
|
9788
|
+
readonly pagination: false;
|
|
9789
|
+
readonly pathParams: readonly [{
|
|
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.";
|
|
9793
|
+
}];
|
|
9794
|
+
readonly query: readonly [];
|
|
9160
9795
|
}, {
|
|
9161
9796
|
readonly resource: "file.files";
|
|
9162
9797
|
readonly method: "list";
|
|
@@ -10684,9 +11319,9 @@ export declare const operations: readonly [{
|
|
|
10684
11319
|
}, {
|
|
10685
11320
|
readonly name: "kind";
|
|
10686
11321
|
readonly type: "string";
|
|
10687
|
-
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"];
|
|
10688
11323
|
readonly required: false;
|
|
10689
|
-
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.";
|
|
10690
11325
|
}, {
|
|
10691
11326
|
readonly name: "cursor";
|
|
10692
11327
|
readonly type: "string";
|
|
@@ -11282,7 +11917,7 @@ export declare const operations: readonly [{
|
|
|
11282
11917
|
readonly name: "kinds";
|
|
11283
11918
|
readonly type: "string";
|
|
11284
11919
|
readonly required: false;
|
|
11285
|
-
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.";
|
|
11286
11921
|
}, {
|
|
11287
11922
|
readonly name: "cursor";
|
|
11288
11923
|
readonly type: "string";
|