@thinkai/tai-api-contract 2.174.0 → 2.176.0
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/dist/generated/openapi.d.ts +461 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +530 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +461 -0
|
@@ -4805,6 +4805,46 @@ export interface paths {
|
|
|
4805
4805
|
patch?: never;
|
|
4806
4806
|
trace?: never;
|
|
4807
4807
|
};
|
|
4808
|
+
"/workspaces/{workspaceId}/evals/packs": {
|
|
4809
|
+
parameters: {
|
|
4810
|
+
query?: never;
|
|
4811
|
+
header?: never;
|
|
4812
|
+
path?: never;
|
|
4813
|
+
cookie?: never;
|
|
4814
|
+
};
|
|
4815
|
+
/**
|
|
4816
|
+
* List platform eval starter packs
|
|
4817
|
+
* @description Returns the platform starter-pack catalog for Prompt & model evals. Packs are ThinkAI-authored templates (not workspace-owned and not a public marketplace). Requires workspace membership. Empty catalog is not expected in production builds; clients should still handle `{ "packs": [] }`.
|
|
4818
|
+
*/
|
|
4819
|
+
get: operations["listEvalPacks"];
|
|
4820
|
+
put?: never;
|
|
4821
|
+
post?: never;
|
|
4822
|
+
delete?: never;
|
|
4823
|
+
options?: never;
|
|
4824
|
+
head?: never;
|
|
4825
|
+
patch?: never;
|
|
4826
|
+
trace?: never;
|
|
4827
|
+
};
|
|
4828
|
+
"/workspaces/{workspaceId}/evals/packs/{packId}/install": {
|
|
4829
|
+
parameters: {
|
|
4830
|
+
query?: never;
|
|
4831
|
+
header?: never;
|
|
4832
|
+
path?: never;
|
|
4833
|
+
cookie?: never;
|
|
4834
|
+
};
|
|
4835
|
+
get?: never;
|
|
4836
|
+
put?: never;
|
|
4837
|
+
/**
|
|
4838
|
+
* Install an eval starter pack as a suite
|
|
4839
|
+
* @description Creates a new editable eval suite from a platform starter pack (`version: 1`). Sets `target.promptKey` to `pack:<packId>` for traceability. Requires workspace editor or admin. Pack cases include fixture completions so the first run can succeed without AI connectors. Does not score on the request path.
|
|
4840
|
+
*/
|
|
4841
|
+
post: operations["installEvalPack"];
|
|
4842
|
+
delete?: never;
|
|
4843
|
+
options?: never;
|
|
4844
|
+
head?: never;
|
|
4845
|
+
patch?: never;
|
|
4846
|
+
trace?: never;
|
|
4847
|
+
};
|
|
4808
4848
|
"/workspaces/{workspaceId}/evals/suites": {
|
|
4809
4849
|
parameters: {
|
|
4810
4850
|
query?: never;
|
|
@@ -4853,6 +4893,50 @@ export interface paths {
|
|
|
4853
4893
|
patch?: never;
|
|
4854
4894
|
trace?: never;
|
|
4855
4895
|
};
|
|
4896
|
+
"/workspaces/{workspaceId}/evals/suites/{suiteId}/compare": {
|
|
4897
|
+
parameters: {
|
|
4898
|
+
query?: never;
|
|
4899
|
+
header?: never;
|
|
4900
|
+
path?: never;
|
|
4901
|
+
cookie?: never;
|
|
4902
|
+
};
|
|
4903
|
+
/**
|
|
4904
|
+
* Compare two succeeded eval runs on a suite
|
|
4905
|
+
* @description Side-by-side compare of a baseline run vs a candidate run on the same suite. Both runs must be `succeeded`. Aligns cases by `caseId` and reports suite- and case-level score/token/cost deltas when present. Requires workspace membership. Does not trigger scoring.
|
|
4906
|
+
*/
|
|
4907
|
+
get: operations["compareEvalRuns"];
|
|
4908
|
+
put?: never;
|
|
4909
|
+
post?: never;
|
|
4910
|
+
delete?: never;
|
|
4911
|
+
options?: never;
|
|
4912
|
+
head?: never;
|
|
4913
|
+
patch?: never;
|
|
4914
|
+
trace?: never;
|
|
4915
|
+
};
|
|
4916
|
+
"/workspaces/{workspaceId}/evals/suites/{suiteId}/decisions": {
|
|
4917
|
+
parameters: {
|
|
4918
|
+
query?: never;
|
|
4919
|
+
header?: never;
|
|
4920
|
+
path?: never;
|
|
4921
|
+
cookie?: never;
|
|
4922
|
+
};
|
|
4923
|
+
/**
|
|
4924
|
+
* List eval promote/keep/reject decisions for a suite
|
|
4925
|
+
* @description Returns the last 50 decisions for the suite (newest first). Empty → `{ "decisions": [] }`. Requires workspace membership.
|
|
4926
|
+
*/
|
|
4927
|
+
get: operations["listEvalDecisions"];
|
|
4928
|
+
put?: never;
|
|
4929
|
+
/**
|
|
4930
|
+
* Record a promote, keep, or reject decision
|
|
4931
|
+
* @description Persists an audit decision for a baseline vs candidate run pair. Requires workspace editor or admin. Both runs must be `succeeded` on this suite. `promote` also applies the candidate run's `suiteSnapshot.target` to the live suite (version may bump). Promotion gate attach is deferred (`gateApplied: false`, `gateDetail.reason: deferred`) until thinkai-platform-workspace#492.
|
|
4932
|
+
*/
|
|
4933
|
+
post: operations["createEvalDecision"];
|
|
4934
|
+
delete?: never;
|
|
4935
|
+
options?: never;
|
|
4936
|
+
head?: never;
|
|
4937
|
+
patch?: never;
|
|
4938
|
+
trace?: never;
|
|
4939
|
+
};
|
|
4856
4940
|
"/workspaces/{workspaceId}/evals/suites/{suiteId}/runs": {
|
|
4857
4941
|
parameters: {
|
|
4858
4942
|
query?: never;
|
|
@@ -11251,6 +11335,8 @@ export interface components {
|
|
|
11251
11335
|
createdByUserId: string;
|
|
11252
11336
|
target: components["schemas"]["EvalSuiteTargetDto"];
|
|
11253
11337
|
cases: components["schemas"]["EvalCaseDto"][];
|
|
11338
|
+
/** @description Most recent promote/keep/reject decision for this suite, when any exist. Omitted or null when none recorded. */
|
|
11339
|
+
latestDecision?: components["schemas"]["EvalDecisionDto"] | null;
|
|
11254
11340
|
};
|
|
11255
11341
|
EvalSuiteListDto: {
|
|
11256
11342
|
suites: components["schemas"]["EvalSuiteDto"][];
|
|
@@ -11387,6 +11473,103 @@ export interface components {
|
|
|
11387
11473
|
tokenEfficiency: components["schemas"]["EvalTokenEfficiencyDto"] | null;
|
|
11388
11474
|
modelComparison: components["schemas"]["EvalModelComparisonDto"][];
|
|
11389
11475
|
};
|
|
11476
|
+
/** @description Platform starter pack summary for the hub catalog. Install materializes a full `EvalSuiteDto`; pack payloads are not returned on list. */
|
|
11477
|
+
EvalPackSummaryDto: {
|
|
11478
|
+
/** @description Stable pack id (kebab-case). */
|
|
11479
|
+
id: string;
|
|
11480
|
+
name: string;
|
|
11481
|
+
description: string;
|
|
11482
|
+
/** @description Workflow bucket for UI grouping (e.g. `pr-review`). */
|
|
11483
|
+
workflow: string;
|
|
11484
|
+
/** @description Number of golden cases that will be created on install. */
|
|
11485
|
+
caseCount: number;
|
|
11486
|
+
};
|
|
11487
|
+
EvalPackListDto: {
|
|
11488
|
+
packs: components["schemas"]["EvalPackSummaryDto"][];
|
|
11489
|
+
};
|
|
11490
|
+
EvalCompareRunSummaryDto: {
|
|
11491
|
+
/** Format: uuid */
|
|
11492
|
+
id: string;
|
|
11493
|
+
suiteVersion: number;
|
|
11494
|
+
score: number | null;
|
|
11495
|
+
/** Format: date-time */
|
|
11496
|
+
finishedAt: string | null;
|
|
11497
|
+
target: components["schemas"]["EvalSuiteTargetDto"];
|
|
11498
|
+
passCount: number;
|
|
11499
|
+
failCount: number;
|
|
11500
|
+
errorCount: number;
|
|
11501
|
+
};
|
|
11502
|
+
EvalCompareCaseDto: {
|
|
11503
|
+
caseId: string;
|
|
11504
|
+
name: string;
|
|
11505
|
+
baselineStatus: (string & components["schemas"]["EvalCaseResultStatusDto"]) | null;
|
|
11506
|
+
candidateStatus: (string & components["schemas"]["EvalCaseResultStatusDto"]) | null;
|
|
11507
|
+
baselinePass: boolean | null;
|
|
11508
|
+
candidatePass: boolean | null;
|
|
11509
|
+
baselineFailedSignalIds: string[];
|
|
11510
|
+
candidateFailedSignalIds: string[];
|
|
11511
|
+
baselineInputTokens?: number | null;
|
|
11512
|
+
candidateInputTokens?: number | null;
|
|
11513
|
+
baselineOutputTokens?: number | null;
|
|
11514
|
+
candidateOutputTokens?: number | null;
|
|
11515
|
+
baselineCostCents?: number | null;
|
|
11516
|
+
candidateCostCents?: number | null;
|
|
11517
|
+
/** @description Candidate pass (1/0) minus baseline pass when both scored. */
|
|
11518
|
+
scoreDelta?: number | null;
|
|
11519
|
+
inputTokensDelta?: number | null;
|
|
11520
|
+
outputTokensDelta?: number | null;
|
|
11521
|
+
costCentsDelta?: number | null;
|
|
11522
|
+
};
|
|
11523
|
+
EvalCompareDto: {
|
|
11524
|
+
/** Format: uuid */
|
|
11525
|
+
suiteId: string;
|
|
11526
|
+
baseline: components["schemas"]["EvalCompareRunSummaryDto"];
|
|
11527
|
+
candidate: components["schemas"]["EvalCompareRunSummaryDto"];
|
|
11528
|
+
/** @description candidate.score − baseline.score when both present. */
|
|
11529
|
+
scoreDelta: number | null;
|
|
11530
|
+
avgInputTokensDelta?: number | null;
|
|
11531
|
+
avgOutputTokensDelta?: number | null;
|
|
11532
|
+
avgCostCentsDelta?: number | null;
|
|
11533
|
+
cases: components["schemas"]["EvalCompareCaseDto"][];
|
|
11534
|
+
/** @description Case ids present on only one run's results/snapshot. */
|
|
11535
|
+
unpairedCaseIds: string[];
|
|
11536
|
+
};
|
|
11537
|
+
/** @enum {string} */
|
|
11538
|
+
EvalDecisionKindDto: "promote" | "keep" | "reject";
|
|
11539
|
+
EvalGateDetailDto: {
|
|
11540
|
+
/** @description Machine-readable gate outcome. `deferred` until promotion-gate attach (thinkai-platform-workspace#492) ships. */
|
|
11541
|
+
reason: string;
|
|
11542
|
+
};
|
|
11543
|
+
EvalDecisionDto: {
|
|
11544
|
+
/** Format: uuid */
|
|
11545
|
+
id: string;
|
|
11546
|
+
/** Format: uuid */
|
|
11547
|
+
suiteId: string;
|
|
11548
|
+
decision: components["schemas"]["EvalDecisionKindDto"];
|
|
11549
|
+
/** Format: uuid */
|
|
11550
|
+
baselineRunId: string;
|
|
11551
|
+
/** Format: uuid */
|
|
11552
|
+
candidateRunId: string;
|
|
11553
|
+
/** Format: uuid */
|
|
11554
|
+
decidedByUserId: string;
|
|
11555
|
+
/** Format: date-time */
|
|
11556
|
+
decidedAt: string;
|
|
11557
|
+
note?: string | null;
|
|
11558
|
+
/** @description True when a promotion gate attach point enforced this decision. */
|
|
11559
|
+
gateApplied: boolean;
|
|
11560
|
+
gateDetail?: components["schemas"]["EvalGateDetailDto"] | null;
|
|
11561
|
+
};
|
|
11562
|
+
EvalDecisionListDto: {
|
|
11563
|
+
decisions: components["schemas"]["EvalDecisionDto"][];
|
|
11564
|
+
};
|
|
11565
|
+
CreateEvalDecisionBodyDto: {
|
|
11566
|
+
decision: components["schemas"]["EvalDecisionKindDto"];
|
|
11567
|
+
/** Format: uuid */
|
|
11568
|
+
baselineRunId: string;
|
|
11569
|
+
/** Format: uuid */
|
|
11570
|
+
candidateRunId: string;
|
|
11571
|
+
note?: string;
|
|
11572
|
+
};
|
|
11390
11573
|
};
|
|
11391
11574
|
responses: {
|
|
11392
11575
|
/** @description Missing or invalid bearer token */
|
|
@@ -11426,6 +11609,8 @@ export interface components {
|
|
|
11426
11609
|
WorkspaceId: string;
|
|
11427
11610
|
/** @description Eval suite id (`tai_workspace_eval_suites.id`). */
|
|
11428
11611
|
EvalSuiteId: string;
|
|
11612
|
+
/** @description Platform starter pack id (kebab-case), e.g. `pr-review`. Not a UUID. */
|
|
11613
|
+
EvalPackId: string;
|
|
11429
11614
|
/** @description Eval run id (`tai_workspace_eval_runs.id`). */
|
|
11430
11615
|
EvalRunId: string;
|
|
11431
11616
|
RepoId: string;
|
|
@@ -12101,11 +12286,22 @@ export type EvalPromptTipDto = components['schemas']['EvalPromptTipDto'];
|
|
|
12101
12286
|
export type EvalTokenEfficiencyDto = components['schemas']['EvalTokenEfficiencyDto'];
|
|
12102
12287
|
export type EvalModelComparisonDto = components['schemas']['EvalModelComparisonDto'];
|
|
12103
12288
|
export type EvalInsightsDto = components['schemas']['EvalInsightsDto'];
|
|
12289
|
+
export type EvalPackSummaryDto = components['schemas']['EvalPackSummaryDto'];
|
|
12290
|
+
export type EvalPackListDto = components['schemas']['EvalPackListDto'];
|
|
12291
|
+
export type EvalCompareRunSummaryDto = components['schemas']['EvalCompareRunSummaryDto'];
|
|
12292
|
+
export type EvalCompareCaseDto = components['schemas']['EvalCompareCaseDto'];
|
|
12293
|
+
export type EvalCompareDto = components['schemas']['EvalCompareDto'];
|
|
12294
|
+
export type EvalDecisionKindDto = components['schemas']['EvalDecisionKindDto'];
|
|
12295
|
+
export type EvalGateDetailDto = components['schemas']['EvalGateDetailDto'];
|
|
12296
|
+
export type EvalDecisionDto = components['schemas']['EvalDecisionDto'];
|
|
12297
|
+
export type EvalDecisionListDto = components['schemas']['EvalDecisionListDto'];
|
|
12298
|
+
export type CreateEvalDecisionBodyDto = components['schemas']['CreateEvalDecisionBodyDto'];
|
|
12104
12299
|
export type ResponseUnauthorized = components['responses']['Unauthorized'];
|
|
12105
12300
|
export type ResponseForbidden = components['responses']['Forbidden'];
|
|
12106
12301
|
export type ResponseZenHrSyncInProgress = components['responses']['ZenHrSyncInProgress'];
|
|
12107
12302
|
export type ParameterWorkspaceId = components['parameters']['WorkspaceId'];
|
|
12108
12303
|
export type ParameterEvalSuiteId = components['parameters']['EvalSuiteId'];
|
|
12304
|
+
export type ParameterEvalPackId = components['parameters']['EvalPackId'];
|
|
12109
12305
|
export type ParameterEvalRunId = components['parameters']['EvalRunId'];
|
|
12110
12306
|
export type ParameterRepoId = components['parameters']['RepoId'];
|
|
12111
12307
|
export type ParameterProviderSlug = components['parameters']['ProviderSlug'];
|
|
@@ -24677,6 +24873,122 @@ export interface operations {
|
|
|
24677
24873
|
};
|
|
24678
24874
|
};
|
|
24679
24875
|
};
|
|
24876
|
+
listEvalPacks: {
|
|
24877
|
+
parameters: {
|
|
24878
|
+
query?: never;
|
|
24879
|
+
header?: never;
|
|
24880
|
+
path: {
|
|
24881
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24882
|
+
};
|
|
24883
|
+
cookie?: never;
|
|
24884
|
+
};
|
|
24885
|
+
requestBody?: never;
|
|
24886
|
+
responses: {
|
|
24887
|
+
/** @description Starter pack catalog */
|
|
24888
|
+
200: {
|
|
24889
|
+
headers: {
|
|
24890
|
+
[name: string]: unknown;
|
|
24891
|
+
};
|
|
24892
|
+
content: {
|
|
24893
|
+
/**
|
|
24894
|
+
* @example {
|
|
24895
|
+
* "packs": [
|
|
24896
|
+
* {
|
|
24897
|
+
* "id": "pr-review",
|
|
24898
|
+
* "name": "PR review comments",
|
|
24899
|
+
* "description": "Check review tone and clear blocking feedback",
|
|
24900
|
+
* "workflow": "pr-review",
|
|
24901
|
+
* "caseCount": 3
|
|
24902
|
+
* }
|
|
24903
|
+
* ]
|
|
24904
|
+
* }
|
|
24905
|
+
*/
|
|
24906
|
+
"application/json": components["schemas"]["EvalPackListDto"];
|
|
24907
|
+
};
|
|
24908
|
+
};
|
|
24909
|
+
401: components["responses"]["Unauthorized"];
|
|
24910
|
+
403: components["responses"]["Forbidden"];
|
|
24911
|
+
/** @description Workspace not found */
|
|
24912
|
+
404: {
|
|
24913
|
+
headers: {
|
|
24914
|
+
[name: string]: unknown;
|
|
24915
|
+
};
|
|
24916
|
+
content: {
|
|
24917
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
24918
|
+
};
|
|
24919
|
+
};
|
|
24920
|
+
};
|
|
24921
|
+
};
|
|
24922
|
+
installEvalPack: {
|
|
24923
|
+
parameters: {
|
|
24924
|
+
query?: never;
|
|
24925
|
+
header?: never;
|
|
24926
|
+
path: {
|
|
24927
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24928
|
+
/** @description Platform starter pack id (kebab-case), e.g. `pr-review`. Not a UUID. */
|
|
24929
|
+
packId: components["parameters"]["EvalPackId"];
|
|
24930
|
+
};
|
|
24931
|
+
cookie?: never;
|
|
24932
|
+
};
|
|
24933
|
+
requestBody?: never;
|
|
24934
|
+
responses: {
|
|
24935
|
+
/** @description Suite created from pack */
|
|
24936
|
+
201: {
|
|
24937
|
+
headers: {
|
|
24938
|
+
[name: string]: unknown;
|
|
24939
|
+
};
|
|
24940
|
+
content: {
|
|
24941
|
+
"application/json": components["schemas"]["EvalSuiteDto"];
|
|
24942
|
+
};
|
|
24943
|
+
};
|
|
24944
|
+
401: components["responses"]["Unauthorized"];
|
|
24945
|
+
/** @description Viewer cannot install packs */
|
|
24946
|
+
403: {
|
|
24947
|
+
headers: {
|
|
24948
|
+
[name: string]: unknown;
|
|
24949
|
+
};
|
|
24950
|
+
content: {
|
|
24951
|
+
/**
|
|
24952
|
+
* @example {
|
|
24953
|
+
* "error": "Workspace editor role required",
|
|
24954
|
+
* "code": "workspace_editor_required"
|
|
24955
|
+
* }
|
|
24956
|
+
*/
|
|
24957
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
24958
|
+
};
|
|
24959
|
+
};
|
|
24960
|
+
/** @description Unknown pack id or workspace not found */
|
|
24961
|
+
404: {
|
|
24962
|
+
headers: {
|
|
24963
|
+
[name: string]: unknown;
|
|
24964
|
+
};
|
|
24965
|
+
content: {
|
|
24966
|
+
/**
|
|
24967
|
+
* @example {
|
|
24968
|
+
* "error": "Eval starter pack not found",
|
|
24969
|
+
* "code": "eval_pack_not_found"
|
|
24970
|
+
* }
|
|
24971
|
+
*/
|
|
24972
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
24973
|
+
};
|
|
24974
|
+
};
|
|
24975
|
+
/** @description Workspace already has the maximum number of suites (50) */
|
|
24976
|
+
409: {
|
|
24977
|
+
headers: {
|
|
24978
|
+
[name: string]: unknown;
|
|
24979
|
+
};
|
|
24980
|
+
content: {
|
|
24981
|
+
/**
|
|
24982
|
+
* @example {
|
|
24983
|
+
* "error": "Maximum of 50 eval suites per workspace",
|
|
24984
|
+
* "code": "eval_suite_limit_reached"
|
|
24985
|
+
* }
|
|
24986
|
+
*/
|
|
24987
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
24988
|
+
};
|
|
24989
|
+
};
|
|
24990
|
+
};
|
|
24991
|
+
};
|
|
24680
24992
|
listEvalSuites: {
|
|
24681
24993
|
parameters: {
|
|
24682
24994
|
query?: never;
|
|
@@ -24919,6 +25231,155 @@ export interface operations {
|
|
|
24919
25231
|
};
|
|
24920
25232
|
};
|
|
24921
25233
|
};
|
|
25234
|
+
compareEvalRuns: {
|
|
25235
|
+
parameters: {
|
|
25236
|
+
query: {
|
|
25237
|
+
baselineRunId: string;
|
|
25238
|
+
candidateRunId: string;
|
|
25239
|
+
};
|
|
25240
|
+
header?: never;
|
|
25241
|
+
path: {
|
|
25242
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
25243
|
+
/** @description Eval suite id (`tai_workspace_eval_suites.id`). */
|
|
25244
|
+
suiteId: components["parameters"]["EvalSuiteId"];
|
|
25245
|
+
};
|
|
25246
|
+
cookie?: never;
|
|
25247
|
+
};
|
|
25248
|
+
requestBody?: never;
|
|
25249
|
+
responses: {
|
|
25250
|
+
/** @description Compare result */
|
|
25251
|
+
200: {
|
|
25252
|
+
headers: {
|
|
25253
|
+
[name: string]: unknown;
|
|
25254
|
+
};
|
|
25255
|
+
content: {
|
|
25256
|
+
"application/json": components["schemas"]["EvalCompareDto"];
|
|
25257
|
+
};
|
|
25258
|
+
};
|
|
25259
|
+
/** @description Runs not comparable (e.g. not succeeded, same id, or invalid query). Codes: `eval_compare_runs_required`, `eval_compare_runs_not_succeeded`, `eval_compare_same_run`. */
|
|
25260
|
+
400: {
|
|
25261
|
+
headers: {
|
|
25262
|
+
[name: string]: unknown;
|
|
25263
|
+
};
|
|
25264
|
+
content: {
|
|
25265
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25266
|
+
};
|
|
25267
|
+
};
|
|
25268
|
+
401: components["responses"]["Unauthorized"];
|
|
25269
|
+
403: components["responses"]["Forbidden"];
|
|
25270
|
+
/** @description Workspace, suite, or run not found */
|
|
25271
|
+
404: {
|
|
25272
|
+
headers: {
|
|
25273
|
+
[name: string]: unknown;
|
|
25274
|
+
};
|
|
25275
|
+
content: {
|
|
25276
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25277
|
+
};
|
|
25278
|
+
};
|
|
25279
|
+
};
|
|
25280
|
+
};
|
|
25281
|
+
listEvalDecisions: {
|
|
25282
|
+
parameters: {
|
|
25283
|
+
query?: never;
|
|
25284
|
+
header?: never;
|
|
25285
|
+
path: {
|
|
25286
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
25287
|
+
/** @description Eval suite id (`tai_workspace_eval_suites.id`). */
|
|
25288
|
+
suiteId: components["parameters"]["EvalSuiteId"];
|
|
25289
|
+
};
|
|
25290
|
+
cookie?: never;
|
|
25291
|
+
};
|
|
25292
|
+
requestBody?: never;
|
|
25293
|
+
responses: {
|
|
25294
|
+
/** @description Decision history */
|
|
25295
|
+
200: {
|
|
25296
|
+
headers: {
|
|
25297
|
+
[name: string]: unknown;
|
|
25298
|
+
};
|
|
25299
|
+
content: {
|
|
25300
|
+
/**
|
|
25301
|
+
* @example {
|
|
25302
|
+
* "decisions": []
|
|
25303
|
+
* }
|
|
25304
|
+
*/
|
|
25305
|
+
"application/json": components["schemas"]["EvalDecisionListDto"];
|
|
25306
|
+
};
|
|
25307
|
+
};
|
|
25308
|
+
401: components["responses"]["Unauthorized"];
|
|
25309
|
+
403: components["responses"]["Forbidden"];
|
|
25310
|
+
/** @description Workspace or suite not found */
|
|
25311
|
+
404: {
|
|
25312
|
+
headers: {
|
|
25313
|
+
[name: string]: unknown;
|
|
25314
|
+
};
|
|
25315
|
+
content: {
|
|
25316
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25317
|
+
};
|
|
25318
|
+
};
|
|
25319
|
+
};
|
|
25320
|
+
};
|
|
25321
|
+
createEvalDecision: {
|
|
25322
|
+
parameters: {
|
|
25323
|
+
query?: never;
|
|
25324
|
+
header?: never;
|
|
25325
|
+
path: {
|
|
25326
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
25327
|
+
/** @description Eval suite id (`tai_workspace_eval_suites.id`). */
|
|
25328
|
+
suiteId: components["parameters"]["EvalSuiteId"];
|
|
25329
|
+
};
|
|
25330
|
+
cookie?: never;
|
|
25331
|
+
};
|
|
25332
|
+
requestBody: {
|
|
25333
|
+
content: {
|
|
25334
|
+
"application/json": components["schemas"]["CreateEvalDecisionBodyDto"];
|
|
25335
|
+
};
|
|
25336
|
+
};
|
|
25337
|
+
responses: {
|
|
25338
|
+
/** @description Decision recorded */
|
|
25339
|
+
201: {
|
|
25340
|
+
headers: {
|
|
25341
|
+
[name: string]: unknown;
|
|
25342
|
+
};
|
|
25343
|
+
content: {
|
|
25344
|
+
"application/json": components["schemas"]["EvalDecisionDto"];
|
|
25345
|
+
};
|
|
25346
|
+
};
|
|
25347
|
+
/** @description Validation failed. Codes: `eval_decision_invalid`, `eval_compare_runs_not_succeeded`, `eval_compare_same_run`, `eval_promote_snapshot_missing`. */
|
|
25348
|
+
400: {
|
|
25349
|
+
headers: {
|
|
25350
|
+
[name: string]: unknown;
|
|
25351
|
+
};
|
|
25352
|
+
content: {
|
|
25353
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25354
|
+
};
|
|
25355
|
+
};
|
|
25356
|
+
401: components["responses"]["Unauthorized"];
|
|
25357
|
+
/** @description Authenticated but not a workspace editor/admin */
|
|
25358
|
+
403: {
|
|
25359
|
+
headers: {
|
|
25360
|
+
[name: string]: unknown;
|
|
25361
|
+
};
|
|
25362
|
+
content: {
|
|
25363
|
+
/**
|
|
25364
|
+
* @example {
|
|
25365
|
+
* "error": "Workspace editor role required",
|
|
25366
|
+
* "code": "workspace_editor_required"
|
|
25367
|
+
* }
|
|
25368
|
+
*/
|
|
25369
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25370
|
+
};
|
|
25371
|
+
};
|
|
25372
|
+
/** @description Workspace, suite, or run not found */
|
|
25373
|
+
404: {
|
|
25374
|
+
headers: {
|
|
25375
|
+
[name: string]: unknown;
|
|
25376
|
+
};
|
|
25377
|
+
content: {
|
|
25378
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25379
|
+
};
|
|
25380
|
+
};
|
|
25381
|
+
};
|
|
25382
|
+
};
|
|
24922
25383
|
listEvalRuns: {
|
|
24923
25384
|
parameters: {
|
|
24924
25385
|
query?: never;
|