@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
|
@@ -956,7 +956,7 @@ export const browserViewerHeartbeat = (options) => (options.client ?? client).po
|
|
|
956
956
|
/**
|
|
957
957
|
* 列出浏览器上下文
|
|
958
958
|
*
|
|
959
|
-
* 分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null
|
|
959
|
+
* 分页列出当前账户保存的登录态,按登录态 ID 升序排列。每项返回名称、标签及保存内容的统计信息;将 nextCursor 原样传入读取下一页,直到其为 null。传 name 时只返回该名称的登录态;名称在当前账户内唯一,所以最多一条。
|
|
960
960
|
*/
|
|
961
961
|
export const browserListContexts = (options) => (options?.client ?? client).get({
|
|
962
962
|
security: [{
|
|
@@ -6428,7 +6428,7 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
|
6428
6428
|
* - `GetTimeline` — Duration, tracks, joins; clips are under `items`.
|
|
6429
6429
|
* - `GetItem` — One clip's compact view, by id.
|
|
6430
6430
|
* - `FindItems` — Visit every clip with its track; collect results.
|
|
6431
|
-
* - `GetMedia` — Media metadata; `
|
|
6431
|
+
* - `GetMedia` — Media metadata; `duration` is seconds.
|
|
6432
6432
|
* - `GetTranscript` — Transcript words in source microseconds.
|
|
6433
6433
|
* - `GetAnalysis` — Silence, filler or scene segments.
|
|
6434
6434
|
* - `ListTransitions` — Join transition kinds and parameters.
|
|
@@ -6466,7 +6466,7 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
|
6466
6466
|
*
|
|
6467
6467
|
* - `type` — Clip kind; decides which fields apply.
|
|
6468
6468
|
* - `start` — Clip start in seconds; snaps to frames.
|
|
6469
|
-
* - `length` — Duration;
|
|
6469
|
+
* - `length` — Duration; video and audio may omit it or write "auto".
|
|
6470
6470
|
* - `media` — Source `{ libraryId, assetId }`.
|
|
6471
6471
|
* - `sourceIn` — First source second kept; default 0.
|
|
6472
6472
|
* - `sourceOut` — Exclusive source end; read-only.
|
|
@@ -6532,6 +6532,7 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
|
|
|
6532
6532
|
* - `TOO_MANY_EFFECTS` — More than 8 effects on one clip.
|
|
6533
6533
|
* - `PROJECT_NOT_FOUND` — No visible project has this id.
|
|
6534
6534
|
* - `EXPORT_NOT_FOUND` — No such export in this project.
|
|
6535
|
+
* - `DRAFT_RENDER_NOT_FOUND` — No such draft render.
|
|
6535
6536
|
* - `VERSION_NOT_FOUND` — No saved version has this revision.
|
|
6536
6537
|
* - `LIBRARY_NOT_FOUND` — The library is missing or invisible.
|
|
6537
6538
|
* - `BINDING_INVALID` — The binding request is malformed.
|
|
@@ -6632,9 +6633,9 @@ export const cutListFrames = (options) => (options.client ?? client).get({
|
|
|
6632
6633
|
...options
|
|
6633
6634
|
});
|
|
6634
6635
|
/**
|
|
6635
|
-
* Analyze project media
|
|
6636
|
+
* Analyze project media or measure the project mix
|
|
6636
6637
|
*
|
|
6637
|
-
* 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.
|
|
6638
|
+
* 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.
|
|
6638
6639
|
*/
|
|
6639
6640
|
export const cutCreateAnalysis = (options) => (options.client ?? client).post({
|
|
6640
6641
|
security: [{
|
|
@@ -6773,6 +6774,46 @@ export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
|
6773
6774
|
...options.headers
|
|
6774
6775
|
}
|
|
6775
6776
|
});
|
|
6777
|
+
/**
|
|
6778
|
+
* Create draft range render
|
|
6779
|
+
*
|
|
6780
|
+
* 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.
|
|
6781
|
+
*/
|
|
6782
|
+
export const cutCreateRender = (options) => (options.client ?? client).post({
|
|
6783
|
+
security: [{
|
|
6784
|
+
key: 'BearerAuth',
|
|
6785
|
+
scheme: 'bearer',
|
|
6786
|
+
type: 'http'
|
|
6787
|
+
}, {
|
|
6788
|
+
key: 'ApiKeyAuth',
|
|
6789
|
+
name: 'X-API-Key',
|
|
6790
|
+
type: 'apiKey'
|
|
6791
|
+
}],
|
|
6792
|
+
url: '/cut/v1/projects/{project_id}/renders',
|
|
6793
|
+
...options,
|
|
6794
|
+
headers: {
|
|
6795
|
+
'Content-Type': 'application/json',
|
|
6796
|
+
...options.headers
|
|
6797
|
+
}
|
|
6798
|
+
});
|
|
6799
|
+
/**
|
|
6800
|
+
* Retrieve draft range render
|
|
6801
|
+
*
|
|
6802
|
+
* 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.
|
|
6803
|
+
*/
|
|
6804
|
+
export const cutRetrieveRender = (options) => (options.client ?? client).get({
|
|
6805
|
+
security: [{
|
|
6806
|
+
key: 'BearerAuth',
|
|
6807
|
+
scheme: 'bearer',
|
|
6808
|
+
type: 'http'
|
|
6809
|
+
}, {
|
|
6810
|
+
key: 'ApiKeyAuth',
|
|
6811
|
+
name: 'X-API-Key',
|
|
6812
|
+
type: 'apiKey'
|
|
6813
|
+
}],
|
|
6814
|
+
url: '/cut/v1/renders/{render_id}',
|
|
6815
|
+
...options
|
|
6816
|
+
});
|
|
6776
6817
|
/**
|
|
6777
6818
|
* Retrieve video export
|
|
6778
6819
|
*
|
|
@@ -7195,6 +7236,296 @@ export const databaseInsert = (options) => (options.client ?? client).post({
|
|
|
7195
7236
|
...options.headers
|
|
7196
7237
|
}
|
|
7197
7238
|
});
|
|
7239
|
+
/**
|
|
7240
|
+
* Read a commit's test catalog
|
|
7241
|
+
*
|
|
7242
|
+
* 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.
|
|
7243
|
+
*/
|
|
7244
|
+
export const devopsTestCatalogGet = (options) => (options.client ?? client).get({
|
|
7245
|
+
security: [{
|
|
7246
|
+
key: 'devops-bearerAuth',
|
|
7247
|
+
scheme: 'bearer',
|
|
7248
|
+
type: 'http'
|
|
7249
|
+
}],
|
|
7250
|
+
url: '/devops/v1/projects/{project}/test-catalog',
|
|
7251
|
+
...options
|
|
7252
|
+
});
|
|
7253
|
+
/**
|
|
7254
|
+
* List test suites
|
|
7255
|
+
*
|
|
7256
|
+
* 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.
|
|
7257
|
+
*/
|
|
7258
|
+
export const devopsTestSuitesList = (options) => (options.client ?? client).get({
|
|
7259
|
+
security: [{
|
|
7260
|
+
key: 'devops-bearerAuth',
|
|
7261
|
+
scheme: 'bearer',
|
|
7262
|
+
type: 'http'
|
|
7263
|
+
}],
|
|
7264
|
+
url: '/devops/v1/projects/{project}/test-suites',
|
|
7265
|
+
...options
|
|
7266
|
+
});
|
|
7267
|
+
/**
|
|
7268
|
+
* Retrieve a test suite
|
|
7269
|
+
*
|
|
7270
|
+
* 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.
|
|
7271
|
+
*/
|
|
7272
|
+
export const devopsTestSuitesGet = (options) => (options.client ?? client).get({
|
|
7273
|
+
security: [{
|
|
7274
|
+
key: 'devops-bearerAuth',
|
|
7275
|
+
scheme: 'bearer',
|
|
7276
|
+
type: 'http'
|
|
7277
|
+
}],
|
|
7278
|
+
url: '/devops/v1/test-suites/{id}',
|
|
7279
|
+
...options
|
|
7280
|
+
});
|
|
7281
|
+
/**
|
|
7282
|
+
* List test cases
|
|
7283
|
+
*
|
|
7284
|
+
* 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.
|
|
7285
|
+
*/
|
|
7286
|
+
export const devopsTestCasesList = (options) => (options.client ?? client).get({
|
|
7287
|
+
security: [{
|
|
7288
|
+
key: 'devops-bearerAuth',
|
|
7289
|
+
scheme: 'bearer',
|
|
7290
|
+
type: 'http'
|
|
7291
|
+
}],
|
|
7292
|
+
url: '/devops/v1/projects/{project}/test-cases',
|
|
7293
|
+
...options
|
|
7294
|
+
});
|
|
7295
|
+
/**
|
|
7296
|
+
* Retrieve a test case
|
|
7297
|
+
*
|
|
7298
|
+
* 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.
|
|
7299
|
+
*/
|
|
7300
|
+
export const devopsTestCasesGet = (options) => (options.client ?? client).get({
|
|
7301
|
+
security: [{
|
|
7302
|
+
key: 'devops-bearerAuth',
|
|
7303
|
+
scheme: 'bearer',
|
|
7304
|
+
type: 'http'
|
|
7305
|
+
}],
|
|
7306
|
+
url: '/devops/v1/test-cases/{id}',
|
|
7307
|
+
...options
|
|
7308
|
+
});
|
|
7309
|
+
/**
|
|
7310
|
+
* List test plans
|
|
7311
|
+
*
|
|
7312
|
+
* 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.
|
|
7313
|
+
*/
|
|
7314
|
+
export const devopsTestPlansList = (options) => (options.client ?? client).get({
|
|
7315
|
+
security: [{
|
|
7316
|
+
key: 'devops-bearerAuth',
|
|
7317
|
+
scheme: 'bearer',
|
|
7318
|
+
type: 'http'
|
|
7319
|
+
}],
|
|
7320
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7321
|
+
...options
|
|
7322
|
+
});
|
|
7323
|
+
/**
|
|
7324
|
+
* Create a test plan
|
|
7325
|
+
*
|
|
7326
|
+
* 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.
|
|
7327
|
+
*/
|
|
7328
|
+
export const devopsTestPlansCreate = (options) => (options.client ?? client).post({
|
|
7329
|
+
security: [{
|
|
7330
|
+
key: 'devops-bearerAuth',
|
|
7331
|
+
scheme: 'bearer',
|
|
7332
|
+
type: 'http'
|
|
7333
|
+
}],
|
|
7334
|
+
url: '/devops/v1/projects/{project}/test-plans',
|
|
7335
|
+
...options,
|
|
7336
|
+
headers: {
|
|
7337
|
+
'Content-Type': 'application/json',
|
|
7338
|
+
...options.headers
|
|
7339
|
+
}
|
|
7340
|
+
});
|
|
7341
|
+
/**
|
|
7342
|
+
* Delete a test plan
|
|
7343
|
+
*
|
|
7344
|
+
* 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.
|
|
7345
|
+
*/
|
|
7346
|
+
export const devopsTestPlansDelete = (options) => (options.client ?? client).delete({
|
|
7347
|
+
security: [{
|
|
7348
|
+
key: 'devops-bearerAuth',
|
|
7349
|
+
scheme: 'bearer',
|
|
7350
|
+
type: 'http'
|
|
7351
|
+
}],
|
|
7352
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7353
|
+
...options
|
|
7354
|
+
});
|
|
7355
|
+
/**
|
|
7356
|
+
* Retrieve a test plan
|
|
7357
|
+
*
|
|
7358
|
+
* 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.
|
|
7359
|
+
*/
|
|
7360
|
+
export const devopsTestPlansGet = (options) => (options.client ?? client).get({
|
|
7361
|
+
security: [{
|
|
7362
|
+
key: 'devops-bearerAuth',
|
|
7363
|
+
scheme: 'bearer',
|
|
7364
|
+
type: 'http'
|
|
7365
|
+
}],
|
|
7366
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7367
|
+
...options
|
|
7368
|
+
});
|
|
7369
|
+
/**
|
|
7370
|
+
* Update a test plan
|
|
7371
|
+
*
|
|
7372
|
+
* 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.
|
|
7373
|
+
*/
|
|
7374
|
+
export const devopsTestPlansUpdate = (options) => (options.client ?? client).patch({
|
|
7375
|
+
security: [{
|
|
7376
|
+
key: 'devops-bearerAuth',
|
|
7377
|
+
scheme: 'bearer',
|
|
7378
|
+
type: 'http'
|
|
7379
|
+
}],
|
|
7380
|
+
url: '/devops/v1/test-plans/{id}',
|
|
7381
|
+
...options,
|
|
7382
|
+
headers: {
|
|
7383
|
+
'Content-Type': 'application/json',
|
|
7384
|
+
...options.headers
|
|
7385
|
+
}
|
|
7386
|
+
});
|
|
7387
|
+
/**
|
|
7388
|
+
* Pause a test plan
|
|
7389
|
+
*
|
|
7390
|
+
* 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.
|
|
7391
|
+
*/
|
|
7392
|
+
export const devopsTestPlansPause = (options) => (options.client ?? client).post({
|
|
7393
|
+
security: [{
|
|
7394
|
+
key: 'devops-bearerAuth',
|
|
7395
|
+
scheme: 'bearer',
|
|
7396
|
+
type: 'http'
|
|
7397
|
+
}],
|
|
7398
|
+
url: '/devops/v1/test-plans/{id}:pause',
|
|
7399
|
+
...options,
|
|
7400
|
+
headers: {
|
|
7401
|
+
'Content-Type': 'application/json',
|
|
7402
|
+
...options.headers
|
|
7403
|
+
}
|
|
7404
|
+
});
|
|
7405
|
+
/**
|
|
7406
|
+
* Resume a test plan
|
|
7407
|
+
*
|
|
7408
|
+
* 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.
|
|
7409
|
+
*/
|
|
7410
|
+
export const devopsTestPlansResume = (options) => (options.client ?? client).post({
|
|
7411
|
+
security: [{
|
|
7412
|
+
key: 'devops-bearerAuth',
|
|
7413
|
+
scheme: 'bearer',
|
|
7414
|
+
type: 'http'
|
|
7415
|
+
}],
|
|
7416
|
+
url: '/devops/v1/test-plans/{id}:resume',
|
|
7417
|
+
...options
|
|
7418
|
+
});
|
|
7419
|
+
/**
|
|
7420
|
+
* List test runs
|
|
7421
|
+
*
|
|
7422
|
+
* 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.
|
|
7423
|
+
*/
|
|
7424
|
+
export const devopsTestRunsList = (options) => (options.client ?? client).get({
|
|
7425
|
+
security: [{
|
|
7426
|
+
key: 'devops-bearerAuth',
|
|
7427
|
+
scheme: 'bearer',
|
|
7428
|
+
type: 'http'
|
|
7429
|
+
}],
|
|
7430
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7431
|
+
...options
|
|
7432
|
+
});
|
|
7433
|
+
/**
|
|
7434
|
+
* Create a test run
|
|
7435
|
+
*
|
|
7436
|
+
* 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.
|
|
7437
|
+
*/
|
|
7438
|
+
export const devopsTestRunsCreate = (options) => (options.client ?? client).post({
|
|
7439
|
+
security: [{
|
|
7440
|
+
key: 'devops-bearerAuth',
|
|
7441
|
+
scheme: 'bearer',
|
|
7442
|
+
type: 'http'
|
|
7443
|
+
}],
|
|
7444
|
+
url: '/devops/v1/projects/{project}/test-runs',
|
|
7445
|
+
...options,
|
|
7446
|
+
headers: {
|
|
7447
|
+
'Content-Type': 'application/json',
|
|
7448
|
+
...options.headers
|
|
7449
|
+
}
|
|
7450
|
+
});
|
|
7451
|
+
/**
|
|
7452
|
+
* Retrieve a test run
|
|
7453
|
+
*
|
|
7454
|
+
* 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.
|
|
7455
|
+
*/
|
|
7456
|
+
export const devopsTestRunsGet = (options) => (options.client ?? client).get({
|
|
7457
|
+
security: [{
|
|
7458
|
+
key: 'devops-bearerAuth',
|
|
7459
|
+
scheme: 'bearer',
|
|
7460
|
+
type: 'http'
|
|
7461
|
+
}],
|
|
7462
|
+
url: '/devops/v1/test-runs/{id}',
|
|
7463
|
+
...options
|
|
7464
|
+
});
|
|
7465
|
+
/**
|
|
7466
|
+
* Cancel a test run
|
|
7467
|
+
*
|
|
7468
|
+
* 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.
|
|
7469
|
+
*/
|
|
7470
|
+
export const devopsTestRunsCancel = (options) => (options.client ?? client).post({
|
|
7471
|
+
security: [{
|
|
7472
|
+
key: 'devops-bearerAuth',
|
|
7473
|
+
scheme: 'bearer',
|
|
7474
|
+
type: 'http'
|
|
7475
|
+
}],
|
|
7476
|
+
url: '/devops/v1/test-runs/{id}:cancel',
|
|
7477
|
+
...options,
|
|
7478
|
+
headers: {
|
|
7479
|
+
'Content-Type': 'application/json',
|
|
7480
|
+
...options.headers
|
|
7481
|
+
}
|
|
7482
|
+
});
|
|
7483
|
+
/**
|
|
7484
|
+
* List a run's executions
|
|
7485
|
+
*
|
|
7486
|
+
* 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.
|
|
7487
|
+
*/
|
|
7488
|
+
export const devopsTestExecutionsList = (options) => (options.client ?? client).get({
|
|
7489
|
+
security: [{
|
|
7490
|
+
key: 'devops-bearerAuth',
|
|
7491
|
+
scheme: 'bearer',
|
|
7492
|
+
type: 'http'
|
|
7493
|
+
}],
|
|
7494
|
+
url: '/devops/v1/test-runs/{run}/executions',
|
|
7495
|
+
...options
|
|
7496
|
+
});
|
|
7497
|
+
/**
|
|
7498
|
+
* Retrieve one case's execution in a run
|
|
7499
|
+
*
|
|
7500
|
+
* 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.
|
|
7501
|
+
*/
|
|
7502
|
+
export const devopsTestExecutionsGet = (options) => (options.client ?? client).get({
|
|
7503
|
+
security: [{
|
|
7504
|
+
key: 'devops-bearerAuth',
|
|
7505
|
+
scheme: 'bearer',
|
|
7506
|
+
type: 'http'
|
|
7507
|
+
}],
|
|
7508
|
+
url: '/devops/v1/test-runs/{run}/executions/{case}',
|
|
7509
|
+
...options
|
|
7510
|
+
});
|
|
7511
|
+
/**
|
|
7512
|
+
* Upload an external test report
|
|
7513
|
+
*
|
|
7514
|
+
* 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.
|
|
7515
|
+
*/
|
|
7516
|
+
export const devopsTestReportsUpload = (options) => (options.client ?? client).post({
|
|
7517
|
+
security: [{
|
|
7518
|
+
key: 'devops-bearerAuth',
|
|
7519
|
+
scheme: 'bearer',
|
|
7520
|
+
type: 'http'
|
|
7521
|
+
}],
|
|
7522
|
+
url: '/devops/v1/projects/{project}/test-reports',
|
|
7523
|
+
...options,
|
|
7524
|
+
headers: {
|
|
7525
|
+
'Content-Type': 'application/json',
|
|
7526
|
+
...options.headers
|
|
7527
|
+
}
|
|
7528
|
+
});
|
|
7198
7529
|
/**
|
|
7199
7530
|
* List knowledge bases
|
|
7200
7531
|
*
|