@toloka-platform/sdk 0.20.0 → 0.21.1

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.
@@ -33,38 +33,34 @@ export interface Pagination {
33
33
 
34
34
  export type ModelVersionId = string;
35
35
 
36
- export type ModelVersionContent = {
37
- runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
38
- manifest: ({
36
+ export type ModelVersionManifestItemMediaType = 'application/octet-stream' | 'application/json';
37
+ export type ModelVersionManifestItem = {
39
38
  path: string;
40
39
  byteSize: number;
41
- mediaType: 'application/octet-stream' | 'application/json';
40
+ mediaType: ModelVersionManifestItemMediaType;
42
41
  sha256: string;
43
- })[];
44
- kind: 'lora_adapter';
45
- parent: {
42
+ };
43
+
44
+ export type ModelVersionManifest = ModelVersionManifestItem[];
45
+
46
+ export type ModelVersionParent = {
46
47
  type: 'base_model';
47
48
  baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
48
49
  } | {
49
50
  type: 'model_version';
50
51
  modelVersionId: string;
51
52
  };
53
+
54
+ export type ModelVersionContent = {
55
+ runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
56
+ manifest: ModelVersionManifest;
57
+ kind: 'lora_adapter';
58
+ parent: ModelVersionParent;
52
59
  } | {
53
60
  runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
54
- manifest: ({
55
- path: string;
56
- byteSize: number;
57
- mediaType: 'application/octet-stream' | 'application/json';
58
- sha256: string;
59
- })[];
61
+ manifest: ModelVersionManifest;
60
62
  kind: 'full';
61
- parent?: {
62
- type: 'base_model';
63
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
64
- } | {
65
- type: 'model_version';
66
- modelVersionId: string;
67
- };
63
+ parent?: ModelVersionParent;
68
64
  };
69
65
 
70
66
  export type ModelVersionProducer = {
@@ -84,36 +80,14 @@ export interface ModelVersion {
84
80
 
85
81
  export type ModelVersionContentDownloadContent = {
86
82
  runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
87
- manifest: ({
88
- path: string;
89
- byteSize: number;
90
- mediaType: 'application/octet-stream' | 'application/json';
91
- sha256: string;
92
- })[];
83
+ manifest: ModelVersionManifest;
93
84
  kind: 'lora_adapter';
94
- parent: {
95
- type: 'base_model';
96
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
97
- } | {
98
- type: 'model_version';
99
- modelVersionId: string;
100
- };
85
+ parent: ModelVersionParent;
101
86
  } | {
102
87
  runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
103
- manifest: ({
104
- path: string;
105
- byteSize: number;
106
- mediaType: 'application/octet-stream' | 'application/json';
107
- sha256: string;
108
- })[];
88
+ manifest: ModelVersionManifest;
109
89
  kind: 'full';
110
- parent?: {
111
- type: 'base_model';
112
- baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
113
- } | {
114
- type: 'model_version';
115
- modelVersionId: string;
116
- };
90
+ parent?: ModelVersionParent;
117
91
  };
118
92
 
119
93
  export type ModelVersionContentDownloadFilesItemMediaType = 'application/octet-stream' | 'application/json';
@@ -143,8 +117,8 @@ export type TrainingModelSource = {
143
117
  modelVersionId: string;
144
118
  };
145
119
 
146
- export type TrainingDatasetItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
147
- export type TrainingDatasetItemFilterFieldValuesItemSourcesItem = {
120
+ export type DatasetFieldValueConditionsItemOperator = 'text_eq' | 'text_neq';
121
+ export type FieldRevisionSource = {
148
122
  type: 'user';
149
123
  userId: string;
150
124
  } | {
@@ -152,49 +126,47 @@ export type TrainingDatasetItemFilterFieldValuesItemSourcesItem = {
152
126
  source: string;
153
127
  };
154
128
 
155
- export type TrainingDatasetItemFilterFieldValuesItem = {
129
+ export type DatasetFieldValueConditionsItem = {
156
130
  jsonPath: string;
157
- operator: TrainingDatasetItemFilterFieldValuesItemOperator;
131
+ operator: DatasetFieldValueConditionsItemOperator;
158
132
  value: string | number | boolean | null;
159
133
  fieldId: string;
160
134
  latestOnly?: boolean;
161
- sources?: TrainingDatasetItemFilterFieldValuesItemSourcesItem[];
135
+ sources?: FieldRevisionSource[];
162
136
  };
163
137
 
164
- export type TrainingDatasetItemFilterFieldSourcesItemSourcesItem = {
165
- type: 'user';
166
- userId: string;
167
- } | {
168
- type: 'system';
169
- source: string;
170
- };
138
+ export type DatasetFieldValueConditions = DatasetFieldValueConditionsItem[];
171
139
 
172
- export type TrainingDatasetItemFilterFieldSourcesItem = {
140
+ export type DatasetFieldSourceConditionsItem = {
173
141
  fieldId: string;
174
- sources: TrainingDatasetItemFilterFieldSourcesItemSourcesItem[];
142
+ sources: FieldRevisionSource[];
175
143
  };
176
144
 
177
- export type TrainingDatasetItemFilterSlice = {
145
+ export type DatasetFieldSourceConditions = DatasetFieldSourceConditionsItem[];
146
+
147
+ export interface DatasetSliceSelection {
178
148
  sliceId: string;
179
- };
149
+ }
180
150
 
181
- export type TrainingDatasetItemFilterParts = {
151
+ export interface DatasetSplitPartInclusion {
182
152
  fieldId: string;
183
153
  names: string[];
184
- };
154
+ }
185
155
 
186
- export type TrainingDatasetItemFilterExcludePartsItem = {
156
+ export type DatasetSplitPartExclusionsItem = {
187
157
  fieldId: string;
188
158
  names: string[];
189
159
  };
190
160
 
161
+ export type DatasetSplitPartExclusions = DatasetSplitPartExclusionsItem[];
162
+
191
163
  export interface TrainingDatasetItemFilter {
192
- fieldValues: TrainingDatasetItemFilterFieldValuesItem[];
193
- fieldSources: TrainingDatasetItemFilterFieldSourcesItem[];
164
+ fieldValues: DatasetFieldValueConditions;
165
+ fieldSources: DatasetFieldSourceConditions;
194
166
  missingRevisionFields: string[];
195
- slice?: TrainingDatasetItemFilterSlice;
196
- parts?: TrainingDatasetItemFilterParts;
197
- excludeParts?: TrainingDatasetItemFilterExcludePartsItem[];
167
+ slice?: DatasetSliceSelection;
168
+ parts?: DatasetSplitPartInclusion;
169
+ excludeParts?: DatasetSplitPartExclusions;
198
170
  }
199
171
 
200
172
  export interface TrainingDatasetSelection {
@@ -299,144 +271,93 @@ export interface TrainingCostEstimateInputSet {
299
271
  createdAt: string;
300
272
  }
301
273
 
302
- export type TrainingCostEstimate = {
303
- trainingId: TrainingId;
304
- inputSetId: TrainingCostEstimateInputSetId;
305
- cutoff: string;
306
- inputs: {
307
- training: {
308
- datasetId: string;
309
- datasetExportId: string;
310
- report: {
311
- validCount: number;
312
- invalidCount: number;
313
- errors: {
274
+ export type TrainingInputReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
275
+ export type TrainingInputReportErrorsItem = {
314
276
  itemIndex: number;
315
277
  reason: string;
316
- }[];
317
- tokens: {
278
+ };
279
+
280
+ export type TrainingInputReportTokens = {
318
281
  p50: number;
319
282
  p95: number;
320
283
  max: number;
321
284
  total?: number | null;
322
- estimatorVersion?: 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
285
+ estimatorVersion?: TrainingInputReportTokensEstimatorVersion;
323
286
  };
324
- } | null;
325
- failure: {
287
+
288
+ export interface TrainingInputReport {
289
+ validCount: number;
290
+ invalidCount: number;
291
+ errors: TrainingInputReportErrorsItem[];
292
+ tokens: TrainingInputReportTokens;
293
+ }
294
+
295
+ export type TrainingInputExportFailureCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
296
+ export type TrainingInputExportFailure = {
326
297
  timestamp: string;
327
- code: 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
298
+ code: TrainingInputExportFailureCode;
328
299
  message: string;
329
300
  } | null;
301
+
302
+ export type TrainingCostEstimateInputsTraining = {
303
+ datasetId: string;
304
+ datasetExportId: string;
305
+ report: TrainingInputReport | null;
306
+ failure: TrainingInputExportFailure | null;
330
307
  heldOutRows?: number;
331
308
  };
332
- validation: {
309
+
310
+ export type TrainingCostEstimateInputsValidation = {
333
311
  datasetId: string;
334
312
  datasetExportId: string;
335
- report: {
336
- validCount: number;
337
- invalidCount: number;
338
- errors: {
339
- itemIndex: number;
340
- reason: string;
341
- }[];
342
- tokens: {
343
- p50: number;
344
- p95: number;
345
- max: number;
346
- total?: number | null;
347
- estimatorVersion?: 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
348
- };
349
- } | null;
350
- failure: {
351
- timestamp: string;
352
- code: 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
353
- message: string;
354
- } | null;
313
+ report: TrainingInputReport | null;
314
+ failure: TrainingInputExportFailure | null;
355
315
  heldOutRows?: number;
356
316
  } | null;
357
- };
317
+
318
+ export interface TrainingCostEstimateInputs {
319
+ training: TrainingCostEstimateInputsTraining;
320
+ validation: TrainingCostEstimateInputsValidation;
321
+ }
322
+
323
+ export type TrainingCostEstimateIssueCode = 'unsupported_source' | 'export_failed' | 'invalid_examples' | 'empty_selection' | 'row_limit_exceeded' | 'token_limit_exceeded' | 'estimator_mismatch' | 'unsupported_duration';
324
+ export type TrainingCostEstimateIssuePurpose = 'training' | 'validation' | null;
325
+ export interface TrainingCostEstimateIssue {
326
+ code: TrainingCostEstimateIssueCode;
327
+ message: string;
328
+ purpose: TrainingCostEstimateIssuePurpose;
329
+ }
330
+
331
+ export interface TrainingResourceBudget {
332
+ methodWorkUnits: number;
333
+ estimatedGpuSeconds: number;
334
+ estimatedWallSeconds: number;
335
+ maximumWallSeconds: number;
336
+ maximumGpuSeconds: number;
337
+ gpuCount: number;
338
+ }
339
+
340
+ export type TrainingCostEstimate = {
341
+ trainingId: TrainingId;
342
+ inputSetId: TrainingCostEstimateInputSetId;
343
+ cutoff: string;
344
+ inputs: TrainingCostEstimateInputs;
358
345
  capabilityVersion: string;
359
346
  pricingVersion: string;
360
347
  calculatedAt: string;
361
348
  status: 'blocked';
362
- issues: ({
363
- code: 'unsupported_source' | 'export_failed' | 'invalid_examples' | 'empty_selection' | 'row_limit_exceeded' | 'token_limit_exceeded' | 'estimator_mismatch' | 'unsupported_duration';
364
- message: string;
365
- purpose: 'training' | 'validation' | null;
366
- })[];
349
+ issues: TrainingCostEstimateIssue[];
367
350
  } | {
368
351
  trainingId: TrainingId;
369
352
  inputSetId: TrainingCostEstimateInputSetId;
370
353
  cutoff: string;
371
- inputs: {
372
- training: {
373
- datasetId: string;
374
- datasetExportId: string;
375
- report: {
376
- validCount: number;
377
- invalidCount: number;
378
- errors: {
379
- itemIndex: number;
380
- reason: string;
381
- }[];
382
- tokens: {
383
- p50: number;
384
- p95: number;
385
- max: number;
386
- total?: number | null;
387
- estimatorVersion?: 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
388
- };
389
- } | null;
390
- failure: {
391
- timestamp: string;
392
- code: 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
393
- message: string;
394
- } | null;
395
- heldOutRows?: number;
396
- };
397
- validation: {
398
- datasetId: string;
399
- datasetExportId: string;
400
- report: {
401
- validCount: number;
402
- invalidCount: number;
403
- errors: {
404
- itemIndex: number;
405
- reason: string;
406
- }[];
407
- tokens: {
408
- p50: number;
409
- p95: number;
410
- max: number;
411
- total?: number | null;
412
- estimatorVersion?: 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
413
- };
414
- } | null;
415
- failure: {
416
- timestamp: string;
417
- code: 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
418
- message: string;
419
- } | null;
420
- heldOutRows?: number;
421
- } | null;
422
- };
354
+ inputs: TrainingCostEstimateInputs;
423
355
  capabilityVersion: string;
424
356
  pricingVersion: string;
425
357
  calculatedAt: string;
426
358
  status: 'ready';
427
- issues: ({
428
- code: 'unsupported_source' | 'export_failed' | 'invalid_examples' | 'empty_selection' | 'row_limit_exceeded' | 'token_limit_exceeded' | 'estimator_mismatch' | 'unsupported_duration';
429
- message: string;
430
- purpose: 'training' | 'validation' | null;
431
- })[];
432
- budget: {
433
- methodWorkUnits: number;
434
- estimatedGpuSeconds: number;
435
- estimatedWallSeconds: number;
436
- maximumWallSeconds: number;
437
- maximumGpuSeconds: number;
438
- gpuCount: number;
439
- };
359
+ issues: TrainingCostEstimateIssue[];
360
+ budget: TrainingResourceBudget;
440
361
  maximumCharge: string;
441
362
  currency: 'USD';
442
363
  fingerprint: string;
@@ -460,281 +381,53 @@ export type TrainingRunError = {
460
381
  } | null;
461
382
 
462
383
  export type TrainingRunBillingStatus = 'pending' | 'reserved' | 'release_pending' | 'released' | 'settled' | 'payment_required' | 'resolved' | 'reconciliation_required';
463
- export type TrainingRunQuoteInputsTrainingReportErrorsItem = {
464
- itemIndex: number;
465
- reason: string;
466
- };
467
-
468
- export type TrainingRunQuoteInputsTrainingReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
469
- export type TrainingRunQuoteInputsTrainingReportTokens = {
470
- p50: number;
471
- p95: number;
472
- max: number;
473
- total?: number | null;
474
- estimatorVersion?: TrainingRunQuoteInputsTrainingReportTokensEstimatorVersion;
475
- };
476
-
477
- export type TrainingRunQuoteInputsTrainingReport = {
478
- validCount: number;
479
- invalidCount: number;
480
- errors: TrainingRunQuoteInputsTrainingReportErrorsItem[];
481
- tokens: TrainingRunQuoteInputsTrainingReportTokens;
482
- } | null;
483
-
484
- export type TrainingRunQuoteInputsTrainingFailureCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
485
- export type TrainingRunQuoteInputsTrainingFailure = {
486
- timestamp: string;
487
- code: TrainingRunQuoteInputsTrainingFailureCode;
488
- message: string;
489
- } | null;
490
-
491
- export type TrainingRunQuoteInputsTraining = {
492
- datasetId: string;
493
- datasetExportId: string;
494
- report: TrainingRunQuoteInputsTrainingReport;
495
- failure: TrainingRunQuoteInputsTrainingFailure;
496
- heldOutRows?: number;
497
- };
498
-
499
- export type TrainingRunQuoteInputsValidationReportErrorsItem = {
500
- itemIndex: number;
501
- reason: string;
502
- };
503
-
504
- export type TrainingRunQuoteInputsValidationReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
505
- export type TrainingRunQuoteInputsValidationReportTokens = {
506
- p50: number;
507
- p95: number;
508
- max: number;
509
- total?: number | null;
510
- estimatorVersion?: TrainingRunQuoteInputsValidationReportTokensEstimatorVersion;
511
- };
512
-
513
- export type TrainingRunQuoteInputsValidationReport = {
514
- validCount: number;
515
- invalidCount: number;
516
- errors: TrainingRunQuoteInputsValidationReportErrorsItem[];
517
- tokens: TrainingRunQuoteInputsValidationReportTokens;
518
- } | null;
519
-
520
- export type TrainingRunQuoteInputsValidationFailureCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
521
- export type TrainingRunQuoteInputsValidationFailure = {
522
- timestamp: string;
523
- code: TrainingRunQuoteInputsValidationFailureCode;
524
- message: string;
525
- } | null;
526
-
527
- export type TrainingRunQuoteInputsValidation = {
528
- datasetId: string;
529
- datasetExportId: string;
530
- report: TrainingRunQuoteInputsValidationReport;
531
- failure: TrainingRunQuoteInputsValidationFailure;
532
- heldOutRows?: number;
533
- } | null;
534
-
535
- export type TrainingRunQuoteInputs = {
536
- training: TrainingRunQuoteInputsTraining;
537
- validation: TrainingRunQuoteInputsValidation;
538
- };
539
-
540
- export type TrainingRunQuoteBudget = {
541
- methodWorkUnits: number;
542
- estimatedGpuSeconds: number;
543
- estimatedWallSeconds: number;
544
- maximumWallSeconds: number;
545
- maximumGpuSeconds: number;
546
- gpuCount: number;
547
- };
548
-
549
384
  export type TrainingRunQuote = {
550
385
  inputSetId: TrainingCostEstimateInputSetId;
551
386
  cutoff: string;
552
- inputs: TrainingRunQuoteInputs;
387
+ inputs: TrainingCostEstimateInputs;
553
388
  capabilityVersion: string;
554
389
  pricingVersion: string;
555
390
  calculatedAt: string;
556
- budget: TrainingRunQuoteBudget;
391
+ budget: TrainingResourceBudget;
557
392
  maximumCharge: string;
558
393
  currency: 'USD';
559
394
  };
560
395
 
561
- export type TrainingRunInputsTrainingItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
562
- export type TrainingRunInputsTrainingItemFilterFieldValuesItemSourcesItem = {
563
- type: 'user';
564
- userId: string;
565
- } | {
566
- type: 'system';
567
- source: string;
568
- };
569
-
570
- export type TrainingRunInputsTrainingItemFilterFieldValuesItem = {
571
- jsonPath: string;
572
- operator: TrainingRunInputsTrainingItemFilterFieldValuesItemOperator;
573
- value: string | number | boolean | null;
574
- fieldId: string;
575
- latestOnly?: boolean;
576
- sources?: TrainingRunInputsTrainingItemFilterFieldValuesItemSourcesItem[];
577
- };
396
+ export type TrainingRunInputsTrainingContract = 'openai-chat-v1';
397
+ export interface TrainingInputItemFilter {
398
+ fieldValues?: DatasetFieldValueConditions;
399
+ fieldSources?: DatasetFieldSourceConditions;
400
+ missingRevisionFields?: string[];
401
+ createdBefore: string;
402
+ slice?: DatasetSliceSelection;
403
+ parts?: DatasetSplitPartInclusion;
404
+ excludeParts?: DatasetSplitPartExclusions;
405
+ }
578
406
 
579
- export type TrainingRunInputsTrainingItemFilterFieldSourcesItemSourcesItem = {
580
- type: 'user';
581
- userId: string;
582
- } | {
583
- type: 'system';
584
- source: string;
407
+ export type TrainingRunInputsTraining = {
408
+ datasetId: string;
409
+ datasetExportId: string;
410
+ datasetFileId: string;
411
+ itemFilter: TrainingInputItemFilter;
412
+ format: 'training-jsonl';
413
+ contract: TrainingRunInputsTrainingContract;
414
+ byteSize: number;
415
+ sha256: string;
416
+ report: TrainingInputReport;
585
417
  };
586
418
 
587
- export type TrainingRunInputsTrainingItemFilterFieldSourcesItem = {
588
- fieldId: string;
589
- sources: TrainingRunInputsTrainingItemFilterFieldSourcesItemSourcesItem[];
590
- };
591
-
592
- export type TrainingRunInputsTrainingItemFilterSlice = {
593
- sliceId: string;
594
- };
595
-
596
- export type TrainingRunInputsTrainingItemFilterParts = {
597
- fieldId: string;
598
- names: string[];
599
- };
600
-
601
- export type TrainingRunInputsTrainingItemFilterExcludePartsItem = {
602
- fieldId: string;
603
- names: string[];
604
- };
605
-
606
- export type TrainingRunInputsTrainingItemFilter = {
607
- fieldValues?: TrainingRunInputsTrainingItemFilterFieldValuesItem[];
608
- fieldSources?: TrainingRunInputsTrainingItemFilterFieldSourcesItem[];
609
- missingRevisionFields?: string[];
610
- createdBefore: string;
611
- slice?: TrainingRunInputsTrainingItemFilterSlice;
612
- parts?: TrainingRunInputsTrainingItemFilterParts;
613
- excludeParts?: TrainingRunInputsTrainingItemFilterExcludePartsItem[];
614
- };
615
-
616
- export type TrainingRunInputsTrainingContract = 'openai-chat-v1';
617
- export type TrainingRunInputsTrainingReportErrorsItem = {
618
- itemIndex: number;
619
- reason: string;
620
- };
621
-
622
- export type TrainingRunInputsTrainingReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
623
- export type TrainingRunInputsTrainingReportTokens = {
624
- p50: number;
625
- p95: number;
626
- max: number;
627
- total?: number | null;
628
- estimatorVersion?: TrainingRunInputsTrainingReportTokensEstimatorVersion;
629
- };
630
-
631
- export type TrainingRunInputsTrainingReport = {
632
- validCount: number;
633
- invalidCount: number;
634
- errors: TrainingRunInputsTrainingReportErrorsItem[];
635
- tokens: TrainingRunInputsTrainingReportTokens;
636
- };
637
-
638
- export type TrainingRunInputsTraining = {
639
- datasetId: string;
640
- datasetExportId: string;
641
- datasetFileId: string;
642
- itemFilter: TrainingRunInputsTrainingItemFilter;
643
- format: 'training-jsonl';
644
- contract: TrainingRunInputsTrainingContract;
645
- byteSize: number;
646
- sha256: string;
647
- report: TrainingRunInputsTrainingReport;
648
- };
649
-
650
- export type TrainingRunInputsValidationItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
651
- export type TrainingRunInputsValidationItemFilterFieldValuesItemSourcesItem = {
652
- type: 'user';
653
- userId: string;
654
- } | {
655
- type: 'system';
656
- source: string;
657
- };
658
-
659
- export type TrainingRunInputsValidationItemFilterFieldValuesItem = {
660
- jsonPath: string;
661
- operator: TrainingRunInputsValidationItemFilterFieldValuesItemOperator;
662
- value: string | number | boolean | null;
663
- fieldId: string;
664
- latestOnly?: boolean;
665
- sources?: TrainingRunInputsValidationItemFilterFieldValuesItemSourcesItem[];
666
- };
667
-
668
- export type TrainingRunInputsValidationItemFilterFieldSourcesItemSourcesItem = {
669
- type: 'user';
670
- userId: string;
671
- } | {
672
- type: 'system';
673
- source: string;
674
- };
675
-
676
- export type TrainingRunInputsValidationItemFilterFieldSourcesItem = {
677
- fieldId: string;
678
- sources: TrainingRunInputsValidationItemFilterFieldSourcesItemSourcesItem[];
679
- };
680
-
681
- export type TrainingRunInputsValidationItemFilterSlice = {
682
- sliceId: string;
683
- };
684
-
685
- export type TrainingRunInputsValidationItemFilterParts = {
686
- fieldId: string;
687
- names: string[];
688
- };
689
-
690
- export type TrainingRunInputsValidationItemFilterExcludePartsItem = {
691
- fieldId: string;
692
- names: string[];
693
- };
694
-
695
- export type TrainingRunInputsValidationItemFilter = {
696
- fieldValues?: TrainingRunInputsValidationItemFilterFieldValuesItem[];
697
- fieldSources?: TrainingRunInputsValidationItemFilterFieldSourcesItem[];
698
- missingRevisionFields?: string[];
699
- createdBefore: string;
700
- slice?: TrainingRunInputsValidationItemFilterSlice;
701
- parts?: TrainingRunInputsValidationItemFilterParts;
702
- excludeParts?: TrainingRunInputsValidationItemFilterExcludePartsItem[];
703
- };
704
-
705
- export type TrainingRunInputsValidationContract = 'openai-chat-v1';
706
- export type TrainingRunInputsValidationReportErrorsItem = {
707
- itemIndex: number;
708
- reason: string;
709
- };
710
-
711
- export type TrainingRunInputsValidationReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
712
- export type TrainingRunInputsValidationReportTokens = {
713
- p50: number;
714
- p95: number;
715
- max: number;
716
- total?: number | null;
717
- estimatorVersion?: TrainingRunInputsValidationReportTokensEstimatorVersion;
718
- };
719
-
720
- export type TrainingRunInputsValidationReport = {
721
- validCount: number;
722
- invalidCount: number;
723
- errors: TrainingRunInputsValidationReportErrorsItem[];
724
- tokens: TrainingRunInputsValidationReportTokens;
725
- };
726
-
727
- export type TrainingRunInputsValidation = {
728
- datasetId: string;
729
- datasetExportId: string;
730
- datasetFileId: string;
731
- itemFilter: TrainingRunInputsValidationItemFilter;
732
- format: 'training-jsonl';
733
- contract: TrainingRunInputsValidationContract;
734
- byteSize: number;
735
- sha256: string;
736
- report: TrainingRunInputsValidationReport;
737
- } | null;
419
+ export type TrainingRunInputsValidationContract = 'openai-chat-v1';
420
+ export type TrainingRunInputsValidation = {
421
+ datasetId: string;
422
+ datasetExportId: string;
423
+ datasetFileId: string;
424
+ itemFilter: TrainingInputItemFilter;
425
+ format: 'training-jsonl';
426
+ contract: TrainingRunInputsValidationContract;
427
+ byteSize: number;
428
+ sha256: string;
429
+ report: TrainingInputReport;
430
+ } | null;
738
431
 
739
432
  export type TrainingRunInputs = {
740
433
  training: TrainingRunInputsTraining;
@@ -897,6 +590,101 @@ export interface GenerationModel {
897
590
  budgets: GenerationBudget[];
898
591
  }
899
592
 
593
+ export type RunId = string;
594
+
595
+ export type ReviewId = string;
596
+
597
+ export type RunItemId = string;
598
+
599
+ export type ReviewStatus = 'needs_review' | 'returned' | 'checking' | 'accepted' | 'rejected' | 'expired';
600
+ export interface ReviewSummary {
601
+ id: ReviewId;
602
+ runId: RunId;
603
+ itemId: RunItemId;
604
+ nodeId: string;
605
+ nodeName: string;
606
+ status: ReviewStatus;
607
+ submittedAt: string;
608
+ deadlineAt: string;
609
+ closedAt: string | null;
610
+ }
611
+
612
+ export interface AcceptReviewsBody {
613
+ nodeId?: string;
614
+ expectedCount: number;
615
+ }
616
+
617
+ export interface AcceptReviewsResult {
618
+ count: number;
619
+ }
620
+
621
+ export interface ReviewQualityCriterion {
622
+ id: string;
623
+ qualityElement: string;
624
+ pass: string;
625
+ fail: string;
626
+ }
627
+
628
+ export type ReviewVerdictDecision = 'accept' | 'reject';
629
+ export type ReviewVerdictSource = 'ui' | 'api';
630
+ export type ReviewVerdictLlmQaCheckVerdict = 'agree' | 'disagree' | 'inconclusive';
631
+ export type ReviewVerdictLlmQaCheck = {
632
+ verdict: ReviewVerdictLlmQaCheckVerdict;
633
+ reason: string;
634
+ checkedAt: string;
635
+ } | null;
636
+
637
+ export interface ReviewVerdict {
638
+ id: string;
639
+ decision: ReviewVerdictDecision;
640
+ forced: boolean;
641
+ criteria: string[];
642
+ comment: string;
643
+ source: ReviewVerdictSource;
644
+ userId: string;
645
+ scopedTokenId: string | null;
646
+ llmQaCheck: ReviewVerdictLlmQaCheck;
647
+ createdAt: string;
648
+ }
649
+
650
+ export type ReviewPerformerType = 'expert' | 'synthetic';
651
+ export type ReviewPerformer = {
652
+ type: ReviewPerformerType;
653
+ expertId: string | null;
654
+ };
655
+
656
+ export type ReviewTaskContentInput = {[key: string]: unknown};
657
+
658
+ export type ReviewTaskContentOutput = {[key: string]: unknown};
659
+
660
+ export type ReviewTaskContent = {
661
+ input: ReviewTaskContentInput;
662
+ output: ReviewTaskContentOutput;
663
+ };
664
+
665
+ export interface Review {
666
+ id: ReviewId;
667
+ runId: RunId;
668
+ itemId: RunItemId;
669
+ nodeId: string;
670
+ nodeName: string;
671
+ status: ReviewStatus;
672
+ submittedAt: string;
673
+ deadlineAt: string;
674
+ closedAt: string | null;
675
+ performer: ReviewPerformer;
676
+ taskContent: ReviewTaskContent;
677
+ qualityCriteria: ReviewQualityCriterion[];
678
+ verdicts: ReviewVerdict[];
679
+ checkedRejectsLeft: number;
680
+ }
681
+
682
+ export interface RejectReviewBody {
683
+ criteria: string[];
684
+ comment: string;
685
+ force?: boolean;
686
+ }
687
+
900
688
  export type CurrentUserTeamsItem = {
901
689
  id: string;
902
690
  writable: boolean;
@@ -958,6 +746,38 @@ export interface Dataset {
958
746
 
959
747
  export type DatasetFieldId = string;
960
748
 
749
+ export interface JsonSchemaProperties {[key: string]: JsonSchema}
750
+
751
+ export type JsonValue = string | number | boolean | null | (JsonValue | null)[] | {[key: string]: JsonValue | null};
752
+
753
+ export interface JsonSchema {
754
+ type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
755
+ properties?: JsonSchemaProperties;
756
+ required?: string[];
757
+ additionalProperties?: boolean | JsonSchema;
758
+ items?: JsonSchema;
759
+ minItems?: number;
760
+ maxItems?: number;
761
+ uniqueItems?: boolean;
762
+ enum?: (JsonValue | null)[];
763
+ const?: JsonValue | null;
764
+ minimum?: number;
765
+ maximum?: number;
766
+ exclusiveMinimum?: number;
767
+ exclusiveMaximum?: number;
768
+ minLength?: number;
769
+ maxLength?: number;
770
+ pattern?: string;
771
+ format?: string;
772
+ title?: string;
773
+ description?: string;
774
+ default?: JsonValue | null;
775
+ examples?: (JsonValue | null)[];
776
+ anyOf?: JsonSchema[];
777
+ oneOf?: JsonSchema[];
778
+ allOf?: JsonSchema[];
779
+ }
780
+
961
781
  export interface DatasetFieldCopyOperation {
962
782
  type: 'copy';
963
783
  sourceFieldId: DatasetFieldId;
@@ -983,34 +803,6 @@ export interface DatasetFieldWriteOperation {
983
803
 
984
804
  export type DatasetFieldOperation = DatasetFieldCopyOperation | DatasetFieldSplitFillOperation | DatasetFieldWriteOperation;
985
805
 
986
- export type DatasetFieldJsonSchema = {
987
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
988
- properties?: unknown;
989
- required?: string[];
990
- additionalProperties?: boolean | unknown;
991
- items?: unknown;
992
- minItems?: number;
993
- maxItems?: number;
994
- uniqueItems?: boolean;
995
- enum?: unknown[];
996
- const?: unknown;
997
- minimum?: number;
998
- maximum?: number;
999
- exclusiveMinimum?: number;
1000
- exclusiveMaximum?: number;
1001
- minLength?: number;
1002
- maxLength?: number;
1003
- pattern?: string;
1004
- format?: string;
1005
- title?: string;
1006
- description?: string;
1007
- default?: unknown;
1008
- examples?: unknown[];
1009
- anyOf?: unknown[];
1010
- oneOf?: unknown[];
1011
- allOf?: unknown[];
1012
- };
1013
-
1014
806
  export type DatasetFieldSplitPartsItemRolesItem = 'train' | 'validate' | 'test';
1015
807
  export type DatasetFieldSplitPartsItem = {
1016
808
  name: string;
@@ -1061,46 +853,18 @@ export interface DatasetField {
1061
853
  id: DatasetFieldId;
1062
854
  name: string;
1063
855
  description: string | null;
1064
- jsonSchema: DatasetFieldJsonSchema;
856
+ jsonSchema: JsonSchema;
1065
857
  internal: boolean;
1066
858
  split: DatasetFieldSplit;
1067
859
  operations: DatasetFieldOperation[];
1068
860
  createdAt: string;
1069
861
  }
1070
862
 
1071
- export type InferredFieldJsonSchema = {
1072
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
1073
- properties?: unknown;
1074
- required?: string[];
1075
- additionalProperties?: boolean | unknown;
1076
- items?: unknown;
1077
- minItems?: number;
1078
- maxItems?: number;
1079
- uniqueItems?: boolean;
1080
- enum?: unknown[];
1081
- const?: unknown;
1082
- minimum?: number;
1083
- maximum?: number;
1084
- exclusiveMinimum?: number;
1085
- exclusiveMaximum?: number;
1086
- minLength?: number;
1087
- maxLength?: number;
1088
- pattern?: string;
1089
- format?: string;
1090
- title?: string;
1091
- description?: string;
1092
- default?: unknown;
1093
- examples?: unknown[];
1094
- anyOf?: unknown[];
1095
- oneOf?: unknown[];
1096
- allOf?: unknown[];
1097
- };
1098
-
1099
863
  export interface InferredField {
1100
864
  name: string;
1101
865
  jsonPath: string;
1102
866
  depth: number;
1103
- jsonSchema: InferredFieldJsonSchema;
867
+ jsonSchema: JsonSchema;
1104
868
  }
1105
869
 
1106
870
  export type UploadId = string;
@@ -1118,35 +882,39 @@ export interface UploadJob {
1118
882
  result: UploadJobResult;
1119
883
  }
1120
884
 
1121
- export interface JsonSchema {
1122
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
1123
- properties?: unknown;
1124
- required?: string[];
1125
- additionalProperties?: boolean | unknown;
1126
- items?: unknown;
1127
- minItems?: number;
1128
- maxItems?: number;
1129
- uniqueItems?: boolean;
1130
- enum?: unknown[];
1131
- const?: unknown;
1132
- minimum?: number;
1133
- maximum?: number;
1134
- exclusiveMinimum?: number;
1135
- exclusiveMaximum?: number;
1136
- minLength?: number;
1137
- maxLength?: number;
1138
- pattern?: string;
1139
- format?: string;
1140
- title?: string;
1141
- description?: string;
1142
- default?: unknown;
1143
- examples?: unknown[];
1144
- anyOf?: unknown[];
1145
- oneOf?: unknown[];
1146
- allOf?: unknown[];
885
+ export type PipelineGraphVersion = string;
886
+
887
+ export type CostBreakdownLineLineId = 'expert_task' | 'llm_qa' | 'video_tool' | 'human_qa_task' | 'onboarding_task' | 'exam_task' | 'synthetic_generation_input_tokens' | 'synthetic_generation_cached_tokens' | 'synthetic_generation_output_tokens';
888
+ export type CostBreakdownLineFormulaExpected = {
889
+ text: string;
890
+ explanation?: string;
891
+ };
892
+
893
+ export type CostBreakdownLineFormula = {
894
+ expected: CostBreakdownLineFormulaExpected;
895
+ max: string;
896
+ };
897
+
898
+ export interface CostBreakdownLine {
899
+ label: string;
900
+ labelTooltip?: string;
901
+ lineId?: CostBreakdownLineLineId;
902
+ pricePerUnit: string;
903
+ quantity: string;
904
+ expectedTotal: string;
905
+ maxTotal: string;
906
+ formula?: CostBreakdownLineFormula;
907
+ criterionId?: string;
908
+ criterionLabel?: string;
909
+ subLines?: CostBreakdownLineSubLinesItem[];
1147
910
  }
1148
911
 
1149
- export type PipelineGraphVersion = string;
912
+ export type CostBreakdownLineSubLinesItem = CostBreakdownLine | {
913
+ label: string;
914
+ labelTooltip?: string;
915
+ lineId: 'expert_task' | 'llm_qa' | 'video_tool' | 'human_qa_task' | 'onboarding_task' | 'exam_task' | 'synthetic_generation_input_tokens' | 'synthetic_generation_cached_tokens' | 'synthetic_generation_output_tokens';
916
+ pricePerUnit: string;
917
+ };
1150
918
 
1151
919
  export type PipelineCostEstimateDataset = {
1152
920
  datasetId: string;
@@ -1186,7 +954,7 @@ export type PipelineCostEstimateNodesItem = {
1186
954
  expectedTotal: string;
1187
955
  maxTotal: string;
1188
956
  perItemExpected: string | null;
1189
- displayBreakdown: unknown[];
957
+ displayBreakdown: CostBreakdownLine[];
1190
958
  warning?: string;
1191
959
  };
1192
960
 
@@ -1199,8 +967,6 @@ export interface PipelineCostEstimate {
1199
967
  graphVersion: PipelineGraphVersion;
1200
968
  }
1201
969
 
1202
- export type RunId = string;
1203
-
1204
970
  export interface RunStats {
1205
971
  total: number;
1206
972
  completed: number;
@@ -1248,40 +1014,9 @@ export interface SampleJob {
1248
1014
  createdAt: string;
1249
1015
  }
1250
1016
 
1251
- export type DatasetSliceItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
1252
- export type DatasetSliceItemFilterFieldValuesItemSourcesItem = {
1253
- type: 'user';
1254
- userId: string;
1255
- } | {
1256
- type: 'system';
1257
- source: string;
1258
- };
1259
-
1260
- export type DatasetSliceItemFilterFieldValuesItem = {
1261
- jsonPath: string;
1262
- operator: DatasetSliceItemFilterFieldValuesItemOperator;
1263
- value: string | number | boolean | null;
1264
- fieldId: string;
1265
- latestOnly?: boolean;
1266
- sources?: DatasetSliceItemFilterFieldValuesItemSourcesItem[];
1267
- };
1268
-
1269
- export type DatasetSliceItemFilterFieldSourcesItemSourcesItem = {
1270
- type: 'user';
1271
- userId: string;
1272
- } | {
1273
- type: 'system';
1274
- source: string;
1275
- };
1276
-
1277
- export type DatasetSliceItemFilterFieldSourcesItem = {
1278
- fieldId: string;
1279
- sources: DatasetSliceItemFilterFieldSourcesItemSourcesItem[];
1280
- };
1281
-
1282
1017
  export type DatasetSliceItemFilter = {
1283
- fieldValues?: DatasetSliceItemFilterFieldValuesItem[];
1284
- fieldSources?: DatasetSliceItemFilterFieldSourcesItem[];
1018
+ fieldValues?: DatasetFieldValueConditions;
1019
+ fieldSources?: DatasetFieldSourceConditions;
1285
1020
  missingRevisionFields?: string[];
1286
1021
  } | null;
1287
1022
 
@@ -1370,93 +1105,85 @@ export interface InvalidFieldSchema {
1370
1105
  reason: string;
1371
1106
  }
1372
1107
 
1373
- export type PipelineGraphSnapshotGraphFieldsItem = {
1374
- id: string;
1375
- name: string;
1376
- jsonSchema: JsonSchema;
1377
- };
1378
-
1379
- export type PipelineGraphSnapshotGraphNodesItem = {
1380
- id: string;
1381
- type: 'root';
1382
- settings: {
1383
- datasetId?: string;
1384
- itemFilter?: {
1385
- fieldValues?: ({
1386
- jsonPath: string;
1387
- operator: 'text_eq' | 'text_neq';
1388
- value: string | number | boolean | null;
1389
- fieldId: string;
1390
- latestOnly?: boolean;
1391
- sources?: ({
1392
- type: 'user';
1393
- userId: string;
1394
- } | {
1395
- type: 'system';
1396
- source: string;
1397
- })[];
1398
- })[];
1399
- fieldSources?: ({
1400
- fieldId: string;
1401
- sources: ({
1402
- type: 'user';
1403
- userId: string;
1404
- } | {
1405
- type: 'system';
1406
- source: string;
1407
- })[];
1408
- })[];
1108
+ export type RootNodeSettingsItemFilter = {
1109
+ fieldValues?: DatasetFieldValueConditions;
1110
+ fieldSources?: DatasetFieldSourceConditions;
1409
1111
  missingRevisionFields?: string[];
1410
- slice?: {
1411
- sliceId: string;
1412
- };
1413
- parts?: {
1414
- fieldId: string;
1415
- names: string[];
1416
- };
1417
- excludeParts?: {
1418
- fieldId: string;
1419
- names: string[];
1420
- }[];
1112
+ slice?: DatasetSliceSelection;
1113
+ parts?: DatasetSplitPartInclusion;
1114
+ excludeParts?: DatasetSplitPartExclusions;
1421
1115
  createdBefore?: string;
1422
1116
  };
1423
- itemLimit?: number;
1424
- startedFieldProxies: {
1425
- output: {
1117
+
1118
+ export type RootNodeSettingsStartedFieldProxiesOutputItem = {
1426
1119
  id: string;
1427
1120
  optional: boolean;
1428
- }[];
1429
1121
  };
1430
- completedFieldProxies: {
1431
- input: {
1122
+
1123
+ export type RootNodeSettingsStartedFieldProxies = {
1124
+ output: RootNodeSettingsStartedFieldProxiesOutputItem[];
1125
+ };
1126
+
1127
+ export type RootNodeSettingsCompletedFieldProxiesInputItem = {
1432
1128
  id: string;
1433
1129
  optional: boolean;
1434
- }[];
1435
1130
  };
1131
+
1132
+ export type RootNodeSettingsCompletedFieldProxies = {
1133
+ input: RootNodeSettingsCompletedFieldProxiesInputItem[];
1436
1134
  };
1437
- } | {
1135
+
1136
+ export interface RootNodeSettings {
1137
+ datasetId?: string;
1138
+ itemFilter?: RootNodeSettingsItemFilter;
1139
+ itemLimit?: number;
1140
+ startedFieldProxies: RootNodeSettingsStartedFieldProxies;
1141
+ completedFieldProxies: RootNodeSettingsCompletedFieldProxies;
1142
+ }
1143
+
1144
+ export interface RootNode {
1438
1145
  id: string;
1439
- type: 'code';
1440
- settings: {
1441
- about: {
1146
+ type: 'root';
1147
+ settings: RootNodeSettings;
1148
+ }
1149
+
1150
+ export type NodeAboutProjectType = 'general' | 'data_collection';
1151
+ export interface NodeAbout {
1442
1152
  name: string;
1443
1153
  description?: string;
1444
- projectType?: 'general' | 'data_collection';
1154
+ projectType?: NodeAboutProjectType;
1155
+ }
1156
+
1157
+ export type CheckTestCasesItemInput = string | {[key: string]: string};
1158
+
1159
+ export type CheckTestCasesItem = {
1160
+ id: string;
1161
+ name: string;
1162
+ input: CheckTestCasesItemInput;
1445
1163
  };
1446
- fieldProxies: {
1447
- input: {
1164
+
1165
+ export type CheckTestCases = CheckTestCasesItem[];
1166
+
1167
+ export type CodeNodeSettingsFieldProxiesInputItem = {
1448
1168
  id: string;
1449
1169
  optional: boolean;
1450
- }[];
1451
- output: {
1170
+ };
1171
+
1172
+ export type CodeNodeSettingsFieldProxiesOutputItem = {
1452
1173
  id: string;
1453
1174
  optional: boolean;
1454
- }[];
1455
1175
  };
1456
- code: {
1176
+
1177
+ export type CodeNodeSettingsFieldProxies = {
1178
+ input: CodeNodeSettingsFieldProxiesInputItem[];
1179
+ output: CodeNodeSettingsFieldProxiesOutputItem[];
1180
+ };
1181
+
1182
+ export type CodeNodeSettingsCode = {
1457
1183
  code: string;
1458
1184
  };
1459
- envVars?: ({
1185
+
1186
+ export type CodeNodeSettingsEnvVarsItem = {
1460
1187
  type: 'static';
1461
1188
  name: string;
1462
1189
  value: string;
@@ -1464,76 +1191,23 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1464
1191
  type: 'secret';
1465
1192
  name: string;
1466
1193
  secretName: string;
1467
- })[];
1468
- checks?: Partial<Record<'code', ({
1469
- id: string;
1470
- name: string;
1471
- input: string | {[key: string]: string};
1472
- })[]>>;
1473
- };
1474
- } | {
1475
- id: string;
1476
- type: 'generation';
1477
- settings: {
1478
- about: {
1479
- name: string;
1480
- description?: string;
1481
- projectType?: 'general' | 'data_collection';
1482
- };
1483
- publicName: string;
1484
- entities: {
1485
- input: ({
1486
- fieldProxyId: string;
1487
- entityType: string;
1488
- optional: boolean;
1489
- jsonPath: string;
1490
- description: string;
1491
- relations?: ({
1492
- id: string;
1493
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1494
- } | {
1495
- id: string;
1496
- rel_type: 'conditional';
1497
- condition: {
1498
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1499
- value: string | string[];
1500
1194
  };
1501
- })[];
1502
- minDurationSeconds?: number;
1503
- maxDurationSeconds?: number;
1504
- allowedLabels?: {
1505
- label: string;
1506
- value: string;
1507
- }[];
1508
- dynamic: false;
1509
- maxEntities?: null;
1510
- } | {
1511
- fieldProxyId: string;
1512
- entityType: string;
1513
- optional: boolean;
1514
- jsonPath: string;
1515
- description: string;
1516
- relations?: ({
1517
- id: string;
1518
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1519
- } | {
1195
+
1196
+ export interface CodeNodeSettings {
1197
+ about: NodeAbout;
1198
+ fieldProxies: CodeNodeSettingsFieldProxies;
1199
+ code: CodeNodeSettingsCode;
1200
+ envVars?: CodeNodeSettingsEnvVarsItem[];
1201
+ checks?: Partial<Record<'code', CheckTestCases>>;
1202
+ }
1203
+
1204
+ export interface CodeNode {
1520
1205
  id: string;
1521
- rel_type: 'conditional';
1522
- condition: {
1523
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1524
- value: string | string[];
1525
- };
1526
- })[];
1527
- minDurationSeconds?: number;
1528
- maxDurationSeconds?: number;
1529
- allowedLabels?: {
1530
- label: string;
1531
- value: string;
1532
- }[];
1533
- dynamic: true;
1534
- maxEntities?: number | null;
1535
- })[];
1536
- output: ({
1206
+ type: 'code';
1207
+ settings: CodeNodeSettings;
1208
+ }
1209
+
1210
+ export type TaskEntity = {
1537
1211
  fieldProxyId: string;
1538
1212
  entityType: string;
1539
1213
  optional: boolean;
@@ -1583,80 +1257,81 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1583
1257
  }[];
1584
1258
  dynamic: true;
1585
1259
  maxEntities?: number | null;
1586
- })[];
1587
1260
  };
1588
- qualityCriteria: {
1589
- id: string;
1590
- qualityElement: string;
1591
- thresholds: {
1261
+
1262
+ export interface TaskEntities {
1263
+ input: TaskEntity[];
1264
+ output: TaskEntity[];
1265
+ }
1266
+
1267
+ export type QualityCriteriaItemThresholds = {
1592
1268
  pass: string;
1593
1269
  fail: string;
1594
1270
  };
1271
+
1272
+ export type QualityCriteriaItem = {
1273
+ id: string;
1274
+ qualityElement: string;
1275
+ thresholds: QualityCriteriaItemThresholds;
1595
1276
  targetEntity: string;
1596
1277
  llmQaInstruction?: string;
1597
- }[];
1598
- instruction: string;
1599
- ui: {
1278
+ };
1279
+
1280
+ export type QualityCriteria = QualityCriteriaItem[];
1281
+
1282
+ export interface LabelingInterface {
1600
1283
  code: string;
1601
1284
  data: string;
1602
1285
  preprocess: string;
1603
1286
  postprocess?: string;
1604
1287
  constants: string;
1605
- };
1606
- qualityAssurance?: {
1607
- qaMode: 'llm_only';
1608
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
1609
- } | {
1610
- qaMode: 'human_only';
1611
- smartSamplingPercent?: number;
1612
- humanQaTimeForTask?: number;
1613
- expertListId?: string | null;
1614
- } | {
1615
- qaMode: 'hybrid';
1616
- smartSamplingPercent?: number;
1617
- humanQaTimeForTask?: number;
1618
- expertListId?: string | null;
1619
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
1620
- };
1621
- audienceAndPricing?: {
1622
- verifiedExperts: boolean;
1623
- audience: {
1624
- languages: {
1625
- type: 'or' | 'and';
1626
- values: {
1288
+ }
1289
+
1290
+ export type HumanAudienceAndPricingAudienceLanguagesType = 'or' | 'and';
1291
+ export type HumanAudienceAndPricingAudienceSpecializationsType = 'or' | 'and';
1292
+ export type HumanAudienceAndPricingAudienceCountriesType = 'or';
1293
+ export type HumanAudienceAndPricingAudienceLanguagesValuesItem = {
1627
1294
  value: string;
1628
- }[];
1629
1295
  };
1630
- specializations: {
1631
- type: 'or' | 'and';
1632
- values: {
1296
+
1297
+ export type HumanAudienceAndPricingAudienceLanguages = {
1298
+ type: HumanAudienceAndPricingAudienceLanguagesType;
1299
+ values: HumanAudienceAndPricingAudienceLanguagesValuesItem[];
1300
+ };
1301
+
1302
+ export type HumanAudienceAndPricingAudienceSpecializationsValuesItem = {
1633
1303
  value: string;
1634
1304
  qualificationId: string;
1635
- }[];
1636
1305
  };
1637
- countries: {
1638
- type: 'or';
1306
+
1307
+ export type HumanAudienceAndPricingAudienceSpecializations = {
1308
+ type: HumanAudienceAndPricingAudienceSpecializationsType;
1309
+ values: HumanAudienceAndPricingAudienceSpecializationsValuesItem[];
1310
+ };
1311
+
1312
+ export type HumanAudienceAndPricingAudienceCountries = {
1313
+ type: HumanAudienceAndPricingAudienceCountriesType;
1639
1314
  values: string[];
1640
1315
  };
1316
+
1317
+ export type HumanAudienceAndPricingAudience = {
1318
+ languages: HumanAudienceAndPricingAudienceLanguages;
1319
+ specializations: HumanAudienceAndPricingAudienceSpecializations;
1320
+ countries: HumanAudienceAndPricingAudienceCountries;
1641
1321
  };
1322
+
1323
+ export interface HumanAudienceAndPricing {
1324
+ verifiedExperts: boolean;
1325
+ audience: HumanAudienceAndPricingAudience;
1642
1326
  pricePerTask: number;
1643
1327
  timeForTask: number;
1644
1328
  perExpertCapEnabled?: boolean;
1645
1329
  perExpertCapValue?: number;
1646
1330
  expertListId?: string | null;
1647
1331
  audienceType: 'human';
1648
- } | {
1649
- audienceType: 'synthetic';
1650
- generationModelId?: 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
1651
- reasoningEffort?: 'low' | 'medium' | 'high';
1652
- llmInstruction?: string;
1653
- maxCostPerAttempt: number;
1654
- };
1655
- onboarding: {
1656
- enabled: boolean;
1657
- steps: ({
1658
- id: string;
1659
- blocks?: ({
1332
+ }
1333
+
1334
+ export type OnboardingStepsItemBlocksItem = {
1660
1335
  id: string;
1661
1336
  type: 'info';
1662
1337
  estimatedTime: string;
@@ -1720,11 +1395,11 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1720
1395
  title?: string;
1721
1396
  examples: ({
1722
1397
  id: string;
1723
- input: {[key: string]: unknown};
1398
+ input: {[key: string]: JsonValue | null};
1724
1399
  checks: ({
1725
1400
  type: 'exact';
1726
1401
  path: string;
1727
- golden: unknown;
1402
+ golden: JsonValue | null;
1728
1403
  hint: string;
1729
1404
  } | {
1730
1405
  type: 'code';
@@ -1750,34 +1425,46 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1750
1425
  value: string;
1751
1426
  }[];
1752
1427
  consentLabel: string;
1753
- })[];
1754
- })[];
1755
- info: {
1428
+ };
1429
+
1430
+ export type OnboardingStepsItem = {
1431
+ id: string;
1432
+ blocks?: OnboardingStepsItemBlocksItem[];
1433
+ };
1434
+
1435
+ export type OnboardingInfo = {
1756
1436
  estimatedTime: string;
1757
1437
  role: string;
1758
1438
  goal: string;
1759
1439
  successCriteria: string;
1760
1440
  };
1761
- };
1762
- exam?: {
1441
+
1442
+ export interface Onboarding {
1763
1443
  enabled: boolean;
1764
- gradedEntities: ({
1444
+ steps: OnboardingStepsItem[];
1445
+ info: OnboardingInfo;
1446
+ }
1447
+
1448
+ export type QualificationExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
1449
+ export type QualificationExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
1450
+ export type QualificationExamGradedEntitiesItem = {
1765
1451
  targetEntity: string;
1766
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
1767
- groundTruthType: 'direct' | 'custom';
1452
+ mode: QualificationExamGradedEntitiesItemMode;
1453
+ groundTruthType: QualificationExamGradedEntitiesItemGroundTruthType;
1768
1454
  customInstruction: string;
1769
1455
  disabledCriterionIds: string[];
1770
- })[];
1456
+ };
1457
+
1458
+ export interface QualificationExam {
1459
+ enabled: boolean;
1460
+ gradedEntities: QualificationExamGradedEntitiesItem[];
1771
1461
  goldenDatasetId?: string;
1772
1462
  tasksPerExpert: number;
1773
1463
  passThreshold: number;
1774
- };
1775
- reuseAudienceWithNodeId?: {
1776
- pipelineId: string;
1777
- nodeId: string;
1778
- } | null;
1779
- audienceMode?: 'legacy' | 'service';
1780
- smartSearch?: {
1464
+ }
1465
+
1466
+ export type GenerationNodeSettingsAudienceMode = 'legacy' | 'service';
1467
+ export type SmartSearch = {
1781
1468
  briefDescription: string;
1782
1469
  projectDescription: string | null;
1783
1470
  extraHardRequirements: string[];
@@ -1787,383 +1474,178 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1787
1474
  whoIsNotAFit: string[];
1788
1475
  sourceFingerprint?: string;
1789
1476
  } | null;
1790
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', ({
1791
- id: string;
1792
- name: string;
1793
- input: string | {[key: string]: string};
1794
- })[]>>;
1795
- };
1477
+
1478
+ export type GenerationNodeSettingsQualityAssurance = {
1479
+ qaMode: 'llm_only';
1480
+ llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
1796
1481
  } | {
1797
- id: string;
1798
- type: 'match';
1799
- settings: {
1800
- about: {
1801
- name: string;
1802
- description?: string;
1803
- projectType?: 'general' | 'data_collection';
1804
- };
1805
- conditions: ({
1806
- name: string;
1807
- logic?: 'and' | 'or';
1808
- predicates: ({
1809
- fieldProxyId: string;
1810
- jsonPath: string;
1811
- operator: 'text_eq' | 'text_neq';
1812
- value: string | number | boolean | null;
1813
- })[];
1814
- })[];
1815
- fieldProxies: {
1816
- input: {
1817
- id: string;
1818
- optional: boolean;
1819
- }[];
1820
- };
1821
- };
1482
+ qaMode: 'human_only';
1483
+ smartSamplingPercent?: number;
1484
+ humanQaTimeForTask?: number;
1485
+ expertListId?: string | null;
1822
1486
  } | {
1823
- id: string;
1824
- type: 'quorum';
1825
- settings: {
1826
- about: {
1827
- name: string;
1828
- description?: string;
1829
- projectType?: 'general' | 'data_collection';
1830
- };
1831
- publicName: string;
1832
- audienceAndPricing?: {
1833
- verifiedExperts: boolean;
1834
- audience: {
1835
- languages: {
1836
- type: 'or' | 'and';
1837
- values: {
1838
- value: string;
1839
- }[];
1840
- };
1841
- specializations: {
1842
- type: 'or' | 'and';
1843
- values: {
1844
- value: string;
1845
- qualificationId: string;
1846
- }[];
1847
- };
1848
- countries: {
1849
- type: 'or';
1850
- values: string[];
1851
- };
1852
- };
1853
- pricePerTask: number;
1854
- timeForTask: number;
1855
- perExpertCapEnabled?: boolean;
1856
- perExpertCapValue?: number;
1487
+ qaMode: 'hybrid';
1488
+ smartSamplingPercent?: number;
1489
+ humanQaTimeForTask?: number;
1857
1490
  expertListId?: string | null;
1858
- audienceType: 'human';
1859
- };
1860
- entities: {
1861
- input: ({
1862
- fieldProxyId: string;
1863
- entityType: string;
1864
- optional: boolean;
1865
- jsonPath: string;
1866
- description: string;
1867
- relations?: ({
1868
- id: string;
1869
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1491
+ llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
1870
1492
  } | {
1871
- id: string;
1872
- rel_type: 'conditional';
1873
- condition: {
1874
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1875
- value: string | string[];
1493
+ qaMode: 'customer_review';
1876
1494
  };
1877
- })[];
1878
- minDurationSeconds?: number;
1879
- maxDurationSeconds?: number;
1880
- allowedLabels?: {
1881
- label: string;
1882
- value: string;
1883
- }[];
1884
- dynamic: false;
1885
- maxEntities?: null;
1886
- } | {
1887
- fieldProxyId: string;
1888
- entityType: string;
1889
- optional: boolean;
1890
- jsonPath: string;
1891
- description: string;
1892
- relations?: ({
1893
- id: string;
1894
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1895
- } | {
1896
- id: string;
1897
- rel_type: 'conditional';
1898
- condition: {
1899
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1900
- value: string | string[];
1495
+
1496
+ export type GenerationNodeSettingsAudienceAndPricing = HumanAudienceAndPricing | {
1497
+ audienceType: 'synthetic';
1498
+ generationModelId?: 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
1499
+ reasoningEffort?: 'low' | 'medium' | 'high';
1500
+ llmInstruction?: string;
1501
+ maxCostPerAttempt: number;
1901
1502
  };
1902
- })[];
1903
- minDurationSeconds?: number;
1904
- maxDurationSeconds?: number;
1905
- allowedLabels?: {
1906
- label: string;
1907
- value: string;
1908
- }[];
1909
- dynamic: true;
1910
- maxEntities?: number | null;
1911
- })[];
1912
- output: ({
1913
- fieldProxyId: string;
1914
- entityType: string;
1915
- optional: boolean;
1916
- jsonPath: string;
1917
- description: string;
1918
- relations?: ({
1919
- id: string;
1920
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1921
- } | {
1503
+
1504
+ export type GenerationNodeSettingsReuseAudienceWithNodeId = {
1505
+ pipelineId: string;
1506
+ nodeId: string;
1507
+ } | null;
1508
+
1509
+ export interface GenerationNodeSettings {
1510
+ about: NodeAbout;
1511
+ publicName: string;
1512
+ entities: TaskEntities;
1513
+ qualityCriteria: QualityCriteria;
1514
+ instruction: string;
1515
+ ui: LabelingInterface;
1516
+ qualityAssurance?: GenerationNodeSettingsQualityAssurance;
1517
+ audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
1518
+ onboarding: Onboarding;
1519
+ exam?: QualificationExam;
1520
+ reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
1521
+ audienceMode?: GenerationNodeSettingsAudienceMode;
1522
+ smartSearch?: SmartSearch | null;
1523
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', CheckTestCases>>;
1524
+ }
1525
+
1526
+ export interface GenerationNode {
1922
1527
  id: string;
1923
- rel_type: 'conditional';
1924
- condition: {
1925
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1926
- value: string | string[];
1927
- };
1928
- })[];
1929
- minDurationSeconds?: number;
1930
- maxDurationSeconds?: number;
1931
- allowedLabels?: {
1932
- label: string;
1933
- value: string;
1934
- }[];
1935
- dynamic: false;
1936
- maxEntities?: null;
1937
- } | {
1528
+ type: 'generation';
1529
+ settings: GenerationNodeSettings;
1530
+ }
1531
+
1532
+ export type MatchNodeSettingsConditionsItemLogic = 'and' | 'or';
1533
+ export type MatchNodeSettingsConditionsItemPredicatesItemOperator = 'text_eq' | 'text_neq';
1534
+ export type MatchNodeSettingsConditionsItemPredicatesItem = {
1938
1535
  fieldProxyId: string;
1939
- entityType: string;
1940
- optional: boolean;
1941
1536
  jsonPath: string;
1942
- description: string;
1943
- relations?: ({
1944
- id: string;
1945
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1946
- } | {
1947
- id: string;
1948
- rel_type: 'conditional';
1949
- condition: {
1950
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1951
- value: string | string[];
1537
+ operator: MatchNodeSettingsConditionsItemPredicatesItemOperator;
1538
+ value: string | number | boolean | null;
1952
1539
  };
1953
- })[];
1954
- minDurationSeconds?: number;
1955
- maxDurationSeconds?: number;
1956
- allowedLabels?: {
1957
- label: string;
1958
- value: string;
1959
- }[];
1960
- dynamic: true;
1961
- maxEntities?: number | null;
1962
- })[];
1540
+
1541
+ export type MatchNodeSettingsConditionsItem = {
1542
+ name: string;
1543
+ logic?: MatchNodeSettingsConditionsItemLogic;
1544
+ predicates: MatchNodeSettingsConditionsItemPredicatesItem[];
1963
1545
  };
1964
- qualityCriteria: {
1546
+
1547
+ export type MatchNodeSettingsFieldProxiesInputItem = {
1965
1548
  id: string;
1966
- qualityElement: string;
1967
- thresholds: {
1968
- pass: string;
1969
- fail: string;
1549
+ optional: boolean;
1970
1550
  };
1971
- targetEntity: string;
1972
- llmQaInstruction?: string;
1973
- }[];
1974
- offboardingRules?: {
1551
+
1552
+ export type MatchNodeSettingsFieldProxies = {
1553
+ input: MatchNodeSettingsFieldProxiesInputItem[];
1554
+ };
1555
+
1556
+ export interface MatchNodeSettings {
1557
+ about: NodeAbout;
1558
+ conditions: MatchNodeSettingsConditionsItem[];
1559
+ fieldProxies: MatchNodeSettingsFieldProxies;
1560
+ }
1561
+
1562
+ export interface MatchNode {
1563
+ id: string;
1564
+ type: 'match';
1565
+ settings: MatchNodeSettings;
1566
+ }
1567
+
1568
+ export type QuorumNodeSettingsOffboardingRulesItemType = 'mv_agreement';
1569
+ export type QuorumNodeSettingsAudienceMode = 'legacy' | 'service';
1570
+ export type QuorumNodeSettingsOffboardingRulesItem = {
1975
1571
  id: string;
1976
- type?: 'mv_agreement';
1572
+ type?: QuorumNodeSettingsOffboardingRulesItemType;
1977
1573
  agreementScale?: string;
1978
- }[];
1979
- instruction: string;
1980
- ui: {
1981
- code: string;
1982
- data: string;
1983
- preprocess: string;
1984
- postprocess?: string;
1985
- constants: string;
1986
1574
  };
1987
- qualityAssurance?: {
1575
+
1576
+ export type QuorumNodeSettingsQualityAssurance = {
1988
1577
  qaMode: 'llm_only';
1989
1578
  llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
1990
1579
  } | {
1991
1580
  qaMode: 'none';
1992
1581
  };
1582
+
1583
+ export type QuorumNodeSettingsReuseAudienceWithNodeId = {
1584
+ pipelineId: string;
1585
+ nodeId: string;
1586
+ } | null;
1587
+
1588
+ export interface QuorumNodeSettings {
1589
+ about: NodeAbout;
1590
+ publicName: string;
1591
+ audienceAndPricing?: HumanAudienceAndPricing;
1592
+ entities: TaskEntities;
1593
+ qualityCriteria: QualityCriteria;
1594
+ offboardingRules?: QuorumNodeSettingsOffboardingRulesItem[];
1595
+ instruction: string;
1596
+ ui: LabelingInterface;
1597
+ qualityAssurance?: QuorumNodeSettingsQualityAssurance;
1993
1598
  overlap: number;
1994
- onboarding: {
1995
- enabled: boolean;
1996
- steps: ({
1997
- id: string;
1998
- blocks?: ({
1999
- id: string;
2000
- type: 'info';
2001
- estimatedTime: string;
2002
- role: string;
2003
- goal: string;
2004
- successCriteria: string;
2005
- } | {
2006
- id: string;
2007
- type: 'text';
2008
- title?: string;
2009
- content?: {
2010
- type: 'markdown';
2011
- value: string;
2012
- }[];
2013
- } | {
1599
+ onboarding: Onboarding;
1600
+ exam?: QualificationExam;
1601
+ reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
1602
+ audienceMode?: QuorumNodeSettingsAudienceMode;
1603
+ smartSearch?: SmartSearch | null;
1604
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', CheckTestCases>>;
1605
+ }
1606
+
1607
+ export interface QuorumNode {
2014
1608
  id: string;
2015
- type: 'quiz';
2016
- title?: string;
2017
- content?: {
2018
- type: 'markdown';
2019
- value: string;
2020
- }[];
2021
- questions: ({
2022
- id: string;
2023
- type: 'single-choice' | 'multiple-choice';
2024
- title?: string;
2025
- question: string;
2026
- hint?: string;
2027
- correctAnswerFeedback?: string;
2028
- incorrectAnswerFeedback?: string;
2029
- options: {
2030
- value: string;
2031
- label: string;
2032
- }[];
2033
- correctAnswer: string | string[];
2034
- })[];
2035
- } | {
2036
- id: string;
2037
- type: 'practice';
2038
- title?: string;
2039
- content?: {
2040
- type: 'markdown';
2041
- value: string;
2042
- }[];
2043
- imageUrl?: string;
2044
- editorType?: string;
2045
- editorConfig?: {
2046
- rows?: number;
2047
- language?: string;
2048
- placeholder?: string;
2049
- };
2050
- validators?: {
2051
- id: string;
2052
- name: string;
2053
- description: string;
2054
- criteria: string;
2055
- }[];
2056
- } | {
2057
- id: string;
2058
- type: 'examples';
2059
- title?: string;
2060
- examples: ({
2061
- id: string;
2062
- input: {[key: string]: unknown};
2063
- checks: ({
2064
- type: 'exact';
2065
- path: string;
2066
- golden: unknown;
2067
- hint: string;
2068
- } | {
2069
- type: 'code';
2070
- code: string;
2071
- hint: string;
2072
- } | {
2073
- type: 'llm';
2074
- paths: string[];
2075
- criteria: string;
2076
- reference?: string;
2077
- hint?: string;
2078
- imageUrl?: string;
2079
- })[];
2080
- explanation?: string;
2081
- sourceItemId?: string;
2082
- })[];
2083
- } | {
2084
- id: string;
2085
- type: 'consent';
2086
- title?: string;
2087
- content?: {
2088
- type: 'markdown';
2089
- value: string;
2090
- }[];
2091
- consentLabel: string;
2092
- })[];
2093
- })[];
2094
- info: {
2095
- estimatedTime: string;
2096
- role: string;
2097
- goal: string;
2098
- successCriteria: string;
2099
- };
2100
- };
2101
- exam?: {
2102
- enabled: boolean;
2103
- gradedEntities: ({
2104
- targetEntity: string;
2105
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
2106
- groundTruthType: 'direct' | 'custom';
2107
- customInstruction: string;
2108
- disabledCriterionIds: string[];
2109
- })[];
2110
- goldenDatasetId?: string;
2111
- tasksPerExpert: number;
2112
- passThreshold: number;
2113
- };
2114
- reuseAudienceWithNodeId?: {
2115
- pipelineId: string;
2116
- nodeId: string;
2117
- } | null;
2118
- audienceMode?: 'legacy' | 'service';
2119
- smartSearch?: {
2120
- briefDescription: string;
2121
- projectDescription: string | null;
2122
- extraHardRequirements: string[];
2123
- relevanceCriteria: string[];
2124
- typicalJobTitles: string[];
2125
- idealCandidateProfile: string;
2126
- whoIsNotAFit: string[];
2127
- sourceFingerprint?: string;
2128
- } | null;
2129
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', ({
1609
+ type: 'quorum';
1610
+ settings: QuorumNodeSettings;
1611
+ }
1612
+
1613
+ export type PipelineGraphV1FieldsItem = {
2130
1614
  id: string;
2131
1615
  name: string;
2132
- input: string | {[key: string]: string};
2133
- })[]>>;
2134
- };
1616
+ jsonSchema: JsonSchema;
2135
1617
  };
2136
1618
 
2137
- export type PipelineGraphSnapshotGraphConnectionsItemFrom = {
1619
+ export type PipelineGraphV1ConnectionsItemFrom = {
2138
1620
  node: string;
2139
1621
  handle: string;
2140
1622
  };
2141
1623
 
2142
- export type PipelineGraphSnapshotGraphConnectionsItemTo = {
1624
+ export type PipelineGraphV1ConnectionsItemTo = {
2143
1625
  node: string;
2144
1626
  handle: string;
2145
1627
  };
2146
1628
 
2147
- export type PipelineGraphSnapshotGraphConnectionsItemSettings = {[key: string]: unknown};
1629
+ export type PipelineGraphV1ConnectionsItemSettings = {[key: string]: unknown};
2148
1630
 
2149
- export type PipelineGraphSnapshotGraphConnectionsItem = {
2150
- from: PipelineGraphSnapshotGraphConnectionsItemFrom;
2151
- to: PipelineGraphSnapshotGraphConnectionsItemTo;
2152
- settings: PipelineGraphSnapshotGraphConnectionsItemSettings;
1631
+ export type PipelineGraphV1ConnectionsItem = {
1632
+ from: PipelineGraphV1ConnectionsItemFrom;
1633
+ to: PipelineGraphV1ConnectionsItemTo;
1634
+ settings: PipelineGraphV1ConnectionsItemSettings;
2153
1635
  };
2154
1636
 
2155
- export type PipelineGraphSnapshotGraphLayout = {[key: string]: {[key: string]: [number, number]}};
1637
+ export type PipelineGraphV1Layout = {[key: string]: {[key: string]: [number, number]}};
2156
1638
 
2157
- export type PipelineGraphSnapshotGraph = {
1639
+ export interface PipelineGraphV1 {
2158
1640
  version: 1;
2159
- fields: PipelineGraphSnapshotGraphFieldsItem[];
2160
- nodes: PipelineGraphSnapshotGraphNodesItem[];
2161
- connections: PipelineGraphSnapshotGraphConnectionsItem[];
2162
- layout?: PipelineGraphSnapshotGraphLayout;
2163
- };
1641
+ fields: PipelineGraphV1FieldsItem[];
1642
+ nodes: (RootNode | CodeNode | GenerationNode | MatchNode | QuorumNode)[];
1643
+ connections: PipelineGraphV1ConnectionsItem[];
1644
+ layout?: PipelineGraphV1Layout;
1645
+ }
2164
1646
 
2165
1647
  export interface PipelineGraphSnapshot {
2166
- graph: PipelineGraphSnapshotGraph;
1648
+ graph: PipelineGraphV1;
2167
1649
  version: PipelineGraphVersion;
2168
1650
  invalidFieldSchemas: InvalidFieldSchema[];
2169
1651
  }
@@ -2276,7 +1758,7 @@ export type CheckReport = {
2276
1758
 
2277
1759
  export type CheckJobStatus = 'pending' | 'running' | 'succeeded' | 'failed';
2278
1760
  export type CheckJobResult = {
2279
- output?: unknown | null;
1761
+ output?: JsonValue | null;
2280
1762
  report?: CheckReport | null;
2281
1763
  };
2282
1764
 
@@ -2349,8 +1831,6 @@ export interface ProjectFile {
2349
1831
  url: string;
2350
1832
  }
2351
1833
 
2352
- export type RunItemId = string;
2353
-
2354
1834
  export type RunItemStateStatus = 'idle' | 'in_progress' | 'completed' | 'failed' | 'canceled' | 'paused';
2355
1835
  export type RunItemStateInputFieldProxyRevisions = {[key: string]: string};
2356
1836
 
@@ -2496,2507 +1976,444 @@ export interface BatchInferenceRun {
2496
1976
  updatedAt: string;
2497
1977
  }
2498
1978
 
2499
- export type PipelineGraphV1FieldsItem = {
2500
- id: string;
2501
- name: string;
2502
- jsonSchema: JsonSchema;
1979
+ export interface DatasetItemFilter {
1980
+ fieldValues?: DatasetFieldValueConditions;
1981
+ fieldSources?: DatasetFieldSourceConditions;
1982
+ missingRevisionFields?: string[];
1983
+ slice?: DatasetSliceSelection;
1984
+ parts?: DatasetSplitPartInclusion;
1985
+ excludeParts?: DatasetSplitPartExclusions;
1986
+ createdBefore?: string;
1987
+ }
1988
+
1989
+ export type ListBaseModels200 = {
1990
+ baseModels: BaseModel[];
2503
1991
  };
2504
1992
 
2505
- export type PipelineGraphV1ConnectionsItemFrom = {
2506
- node: string;
2507
- handle: string;
1993
+ export type ListProjectModelsParams = {
1994
+ limit?: number;
1995
+ offset?: number;
2508
1996
  };
2509
1997
 
2510
- export type PipelineGraphV1ConnectionsItemTo = {
2511
- node: string;
2512
- handle: string;
1998
+ export type ListProjectModels200 = {
1999
+ models: Model[];
2000
+ pagination: Pagination;
2513
2001
  };
2514
2002
 
2515
- export type PipelineGraphV1ConnectionsItemSettings = {[key: string]: unknown};
2003
+ export type CreateProjectModelBody = {
2004
+ name: string;
2005
+ description?: string | null;
2006
+ baseModelId: BaseModelId;
2007
+ };
2516
2008
 
2517
- export type PipelineGraphV1ConnectionsItem = {
2518
- from: PipelineGraphV1ConnectionsItemFrom;
2519
- to: PipelineGraphV1ConnectionsItemTo;
2520
- settings: PipelineGraphV1ConnectionsItemSettings;
2009
+ export type ListModelVersionsParams = {
2010
+ limit?: number;
2011
+ offset?: number;
2521
2012
  };
2522
2013
 
2523
- export type PipelineGraphV1Layout = {[key: string]: {[key: string]: [number, number]}};
2014
+ export type ListModelVersions200 = {
2015
+ versions: ModelVersion[];
2016
+ pagination: Pagination;
2017
+ };
2524
2018
 
2525
- export type RootNodeSettingsItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
2526
- export type RootNodeSettingsItemFilterFieldValuesItemSourcesItem = {
2527
- type: 'user';
2528
- userId: string;
2529
- } | {
2530
- type: 'system';
2531
- source: string;
2019
+ export type ListProjectTrainingsParams = {
2020
+ limit?: number;
2021
+ offset?: number;
2532
2022
  };
2533
2023
 
2534
- export type RootNodeSettingsItemFilterFieldValuesItem = {
2535
- jsonPath: string;
2536
- operator: RootNodeSettingsItemFilterFieldValuesItemOperator;
2537
- value: string | number | boolean | null;
2538
- fieldId: string;
2539
- latestOnly?: boolean;
2540
- sources?: RootNodeSettingsItemFilterFieldValuesItemSourcesItem[];
2024
+ export type ListProjectTrainings200 = {
2025
+ trainings: Training[];
2026
+ pagination: Pagination;
2541
2027
  };
2542
2028
 
2543
- export type RootNodeSettingsItemFilterFieldSourcesItemSourcesItem = {
2544
- type: 'user';
2545
- userId: string;
2546
- } | {
2547
- type: 'system';
2548
- source: string;
2029
+ export type CreateProjectTrainingBody = {
2030
+ name: string;
2031
+ configuration: TrainingConfigurationInput;
2549
2032
  };
2550
2033
 
2551
- export type RootNodeSettingsItemFilterFieldSourcesItem = {
2552
- fieldId: string;
2553
- sources: RootNodeSettingsItemFilterFieldSourcesItemSourcesItem[];
2034
+ export type UpdateTrainingMetadataBody = {
2035
+ name?: string;
2036
+ archived?: boolean;
2554
2037
  };
2555
2038
 
2556
- export type RootNodeSettingsItemFilterSlice = {
2557
- sliceId: string;
2039
+ export type ReplaceTrainingConfigurationBody = {
2040
+ configuration: TrainingConfigurationInput;
2558
2041
  };
2559
2042
 
2560
- export type RootNodeSettingsItemFilterParts = {
2561
- fieldId: string;
2562
- names: string[];
2043
+ export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
2044
+
2045
+ export type EstimateTrainingCostBody = {
2046
+ inputSetId: TrainingCostEstimateInputSetId;
2563
2047
  };
2564
2048
 
2565
- export type RootNodeSettingsItemFilterExcludePartsItem = {
2566
- fieldId: string;
2567
- names: string[];
2049
+ export type CreateTrainingRunBody = {
2050
+ inputSetId: string;
2051
+ estimateFingerprint: string;
2052
+ versionName: string;
2568
2053
  };
2569
2054
 
2570
- export type RootNodeSettingsItemFilter = {
2571
- fieldValues?: RootNodeSettingsItemFilterFieldValuesItem[];
2572
- fieldSources?: RootNodeSettingsItemFilterFieldSourcesItem[];
2573
- missingRevisionFields?: string[];
2574
- slice?: RootNodeSettingsItemFilterSlice;
2575
- parts?: RootNodeSettingsItemFilterParts;
2576
- excludeParts?: RootNodeSettingsItemFilterExcludePartsItem[];
2577
- createdBefore?: string;
2055
+ export type ListTrainingRunsParams = {
2056
+ limit?: number;
2057
+ offset?: number;
2578
2058
  };
2579
2059
 
2580
- export type RootNodeSettingsStartedFieldProxiesOutputItem = {
2581
- id: string;
2582
- optional: boolean;
2060
+ export type ListTrainingRuns200 = {
2061
+ trainingRuns: TrainingRun[];
2062
+ pagination: Pagination;
2583
2063
  };
2584
2064
 
2585
- export type RootNodeSettingsStartedFieldProxies = {
2586
- output: RootNodeSettingsStartedFieldProxiesOutputItem[];
2065
+ export type GetTrainingRunLogsParams = {
2066
+ cursor?: string;
2067
+ limit?: number;
2587
2068
  };
2588
2069
 
2589
- export type RootNodeSettingsCompletedFieldProxiesInputItem = {
2590
- id: string;
2591
- optional: boolean;
2070
+ export type GetTrainingRunMetricHistoryParams = {
2071
+ resolution?: number;
2592
2072
  };
2593
2073
 
2594
- export type RootNodeSettingsCompletedFieldProxies = {
2595
- input: RootNodeSettingsCompletedFieldProxiesInputItem[];
2074
+ export type ListAudienceSpecializationsParams = {
2075
+ limit?: number;
2076
+ offset?: number;
2596
2077
  };
2597
2078
 
2598
- export interface RootNodeSettings {
2599
- datasetId?: string;
2600
- itemFilter?: RootNodeSettingsItemFilter;
2601
- itemLimit?: number;
2602
- startedFieldProxies: RootNodeSettingsStartedFieldProxies;
2603
- completedFieldProxies: RootNodeSettingsCompletedFieldProxies;
2604
- }
2079
+ export type ListAudienceSpecializations200 = {
2080
+ specializations: Specialization[];
2081
+ pagination: Pagination;
2082
+ };
2605
2083
 
2606
- export interface RootNode {
2607
- id: string;
2608
- type: 'root';
2609
- settings: RootNodeSettings;
2610
- }
2084
+ export type ListExpertLists200 = {
2085
+ expertLists: ExpertList[];
2086
+ };
2611
2087
 
2612
- export type CodeNodeSettingsAboutProjectType = 'general' | 'data_collection';
2613
- export type CodeNodeSettingsAbout = {
2088
+ export type CreateExpertListBody = {
2614
2089
  name: string;
2615
- description?: string;
2616
- projectType?: CodeNodeSettingsAboutProjectType;
2617
2090
  };
2618
2091
 
2619
- export type CodeNodeSettingsFieldProxiesInputItem = {
2620
- id: string;
2621
- optional: boolean;
2092
+ export type UpdateExpertListBody = {
2093
+ name?: string;
2094
+ hidden?: boolean;
2622
2095
  };
2623
2096
 
2624
- export type CodeNodeSettingsFieldProxiesOutputItem = {
2625
- id: string;
2626
- optional: boolean;
2097
+ export type ListExpertListExpertsParams = {
2098
+ after?: string;
2099
+ limit?: number;
2627
2100
  };
2628
2101
 
2629
- export type CodeNodeSettingsFieldProxies = {
2630
- input: CodeNodeSettingsFieldProxiesInputItem[];
2631
- output: CodeNodeSettingsFieldProxiesOutputItem[];
2102
+ export type ListExpertListExperts200ExpertsItemStatus = 'pending' | 'available' | 'unavailable' | 'not_found' | 'banned';
2103
+ export type ListExpertListExperts200ExpertsItem = {
2104
+ expertId: string;
2105
+ status: ListExpertListExperts200ExpertsItemStatus;
2632
2106
  };
2633
2107
 
2634
- export type CodeNodeSettingsCode = {
2635
- code: string;
2108
+ export type ListExpertListExperts200 = {
2109
+ experts: ListExpertListExperts200ExpertsItem[];
2110
+ nextAfter: string | null;
2636
2111
  };
2637
2112
 
2638
- export type CodeNodeSettingsEnvVarsItem = {
2639
- type: 'static';
2640
- name: string;
2641
- value: string;
2642
- } | {
2643
- type: 'secret';
2644
- name: string;
2645
- secretName: string;
2113
+ export type AddExpertListExpertsBody = {
2114
+ expertIds: string[];
2646
2115
  };
2647
2116
 
2648
- export type CodeNodeSettingsChecksItemInput = string | {[key: string]: string};
2117
+ export type RemoveExpertListExpertsBody = {
2118
+ expertIds: string[];
2119
+ };
2649
2120
 
2650
- export type CodeNodeSettingsChecksItem = {
2651
- id: string;
2652
- name: string;
2653
- input: CodeNodeSettingsChecksItemInput;
2121
+ export type ListExpertBanListExpertsParams = {
2122
+ after?: string;
2123
+ limit?: number;
2654
2124
  };
2655
2125
 
2656
- export interface CodeNodeSettings {
2657
- about: CodeNodeSettingsAbout;
2658
- fieldProxies: CodeNodeSettingsFieldProxies;
2659
- code: CodeNodeSettingsCode;
2660
- envVars?: CodeNodeSettingsEnvVarsItem[];
2661
- checks?: Partial<Record<'code', CodeNodeSettingsChecksItem[]>>;
2662
- }
2126
+ export type ListExpertBanListExperts200 = {
2127
+ experts: ExpertBanListExpert[];
2128
+ nextAfter: string | null;
2129
+ };
2663
2130
 
2664
- export interface CodeNode {
2665
- id: string;
2666
- type: 'code';
2667
- settings: CodeNodeSettings;
2668
- }
2131
+ export type AddExpertBanListExpertsBody = {
2132
+ expertIds: string[];
2133
+ reason: string;
2134
+ };
2669
2135
 
2670
- export type GenerationNodeSettingsAboutProjectType = 'general' | 'data_collection';
2671
- export type GenerationNodeSettingsExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
2672
- export type GenerationNodeSettingsExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
2673
- export type GenerationNodeSettingsAudienceMode = 'legacy' | 'service';
2674
- export type GenerationNodeSettingsAbout = {
2675
- name: string;
2676
- description?: string;
2677
- projectType?: GenerationNodeSettingsAboutProjectType;
2136
+ export type RemoveExpertBanListExpertsBody = {
2137
+ expertIds: string[];
2678
2138
  };
2679
2139
 
2680
- export type GenerationNodeSettingsEntitiesInputItem = {
2681
- fieldProxyId: string;
2682
- entityType: string;
2683
- optional: boolean;
2684
- jsonPath: string;
2685
- description: string;
2686
- relations?: ({
2687
- id: string;
2688
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2689
- } | {
2690
- id: string;
2691
- rel_type: 'conditional';
2692
- condition: {
2693
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2694
- value: string | string[];
2140
+ export type ListGenerationModels200DefaultGenerationModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
2141
+ export type ListGenerationModels200 = {
2142
+ defaultGenerationModelId: ListGenerationModels200DefaultGenerationModelId;
2143
+ generationModels: GenerationModel[];
2695
2144
  };
2696
- })[];
2697
- minDurationSeconds?: number;
2698
- maxDurationSeconds?: number;
2699
- allowedLabels?: {
2700
- label: string;
2701
- value: string;
2702
- }[];
2703
- dynamic: false;
2704
- maxEntities?: null;
2705
- } | {
2706
- fieldProxyId: string;
2707
- entityType: string;
2708
- optional: boolean;
2709
- jsonPath: string;
2710
- description: string;
2711
- relations?: ({
2712
- id: string;
2713
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2714
- } | {
2715
- id: string;
2716
- rel_type: 'conditional';
2717
- condition: {
2718
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2719
- value: string | string[];
2145
+
2146
+ export type ListPipelineRunReviewsParams = {
2147
+ limit?: number;
2148
+ offset?: number;
2149
+ status?: ListPipelineRunReviewsStatus;
2150
+ nodeId?: string;
2720
2151
  };
2721
- })[];
2722
- minDurationSeconds?: number;
2723
- maxDurationSeconds?: number;
2724
- allowedLabels?: {
2725
- label: string;
2726
- value: string;
2727
- }[];
2728
- dynamic: true;
2729
- maxEntities?: number | null;
2152
+
2153
+ export type ListPipelineRunReviewsStatus = 'awaiting' | 'checking' | 'closed';
2154
+ export type ListPipelineRunReviews200 = {
2155
+ reviews: ReviewSummary[];
2156
+ pagination: Pagination;
2730
2157
  };
2731
2158
 
2732
- export type GenerationNodeSettingsEntitiesOutputItem = {
2733
- fieldProxyId: string;
2734
- entityType: string;
2735
- optional: boolean;
2736
- jsonPath: string;
2737
- description: string;
2738
- relations?: ({
2739
- id: string;
2740
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2741
- } | {
2742
- id: string;
2743
- rel_type: 'conditional';
2744
- condition: {
2745
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2746
- value: string | string[];
2159
+ export type ListDeliveryOrders200 = {
2160
+ deliveryOrders: DeliveryOrder[];
2747
2161
  };
2748
- })[];
2749
- minDurationSeconds?: number;
2750
- maxDurationSeconds?: number;
2751
- allowedLabels?: {
2752
- label: string;
2753
- value: string;
2754
- }[];
2755
- dynamic: false;
2756
- maxEntities?: null;
2757
- } | {
2758
- fieldProxyId: string;
2759
- entityType: string;
2760
- optional: boolean;
2761
- jsonPath: string;
2762
- description: string;
2763
- relations?: ({
2764
- id: string;
2765
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2766
- } | {
2767
- id: string;
2768
- rel_type: 'conditional';
2769
- condition: {
2770
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2771
- value: string | string[];
2162
+
2163
+ export type ListProjectsParams = {
2164
+ limit?: number;
2165
+ offset?: number;
2772
2166
  };
2773
- })[];
2774
- minDurationSeconds?: number;
2775
- maxDurationSeconds?: number;
2776
- allowedLabels?: {
2777
- label: string;
2778
- value: string;
2779
- }[];
2780
- dynamic: true;
2781
- maxEntities?: number | null;
2167
+
2168
+ export type ListProjects200 = {
2169
+ projects: Project[];
2170
+ pagination: Pagination;
2782
2171
  };
2783
2172
 
2784
- export type GenerationNodeSettingsEntities = {
2785
- input: GenerationNodeSettingsEntitiesInputItem[];
2786
- output: GenerationNodeSettingsEntitiesOutputItem[];
2173
+ export type CreateProjectBody = {
2174
+ teamId: string;
2175
+ name?: string;
2176
+ deliveryOrderId?: string | null;
2787
2177
  };
2788
2178
 
2789
- export type GenerationNodeSettingsQualityCriteriaItemThresholds = {
2790
- pass: string;
2791
- fail: string;
2179
+ export type UpdateProjectBody = {
2180
+ name: string;
2792
2181
  };
2793
2182
 
2794
- export type GenerationNodeSettingsQualityCriteriaItem = {
2795
- id: string;
2796
- qualityElement: string;
2797
- thresholds: GenerationNodeSettingsQualityCriteriaItemThresholds;
2798
- targetEntity: string;
2799
- llmQaInstruction?: string;
2183
+ export type ListProjectPipelinesParams = {
2184
+ limit?: number;
2185
+ offset?: number;
2800
2186
  };
2801
2187
 
2802
- export type GenerationNodeSettingsUi = {
2803
- code: string;
2804
- data: string;
2805
- preprocess: string;
2806
- postprocess?: string;
2807
- constants: string;
2188
+ export type ListProjectPipelines200 = {
2189
+ pipelines: Pipeline[];
2190
+ pagination: Pagination;
2808
2191
  };
2809
2192
 
2810
- export type GenerationNodeSettingsQualityAssurance = {
2811
- qaMode: 'llm_only';
2812
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
2813
- } | {
2814
- qaMode: 'human_only';
2815
- smartSamplingPercent?: number;
2816
- humanQaTimeForTask?: number;
2817
- expertListId?: string | null;
2818
- } | {
2819
- qaMode: 'hybrid';
2820
- smartSamplingPercent?: number;
2821
- humanQaTimeForTask?: number;
2822
- expertListId?: string | null;
2823
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
2193
+ export type UpdatePipelineBody = {
2194
+ name: string;
2824
2195
  };
2825
2196
 
2826
- export type GenerationNodeSettingsAudienceAndPricing = {
2827
- verifiedExperts: boolean;
2828
- audience: {
2829
- languages: {
2830
- type: 'or' | 'and';
2831
- values: {
2832
- value: string;
2833
- }[];
2197
+ export type ListProjectDatasetsParams = {
2198
+ limit?: number;
2199
+ offset?: number;
2834
2200
  };
2835
- specializations: {
2836
- type: 'or' | 'and';
2837
- values: {
2838
- value: string;
2839
- qualificationId: string;
2840
- }[];
2201
+
2202
+ export type ListProjectDatasets200 = {
2203
+ datasets: Dataset[];
2204
+ pagination: Pagination;
2841
2205
  };
2842
- countries: {
2843
- type: 'or';
2844
- values: string[];
2206
+
2207
+ export type CreateDatasetBodyProfile = 'chat-sft' | 'instruction';
2208
+ export type CreateDatasetBody = {
2209
+ name?: string;
2210
+ profile?: CreateDatasetBodyProfile;
2845
2211
  };
2212
+
2213
+ export type ListDatasetFieldsParams = {
2214
+ limit?: number;
2215
+ offset?: number;
2216
+ names?: string;
2846
2217
  };
2847
- pricePerTask: number;
2848
- timeForTask: number;
2849
- perExpertCapEnabled?: boolean;
2850
- perExpertCapValue?: number;
2851
- expertListId?: string | null;
2852
- audienceType: 'human';
2853
- } | {
2854
- audienceType: 'synthetic';
2855
- generationModelId?: 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
2856
- reasoningEffort?: 'low' | 'medium' | 'high';
2857
- llmInstruction?: string;
2858
- maxCostPerAttempt: number;
2218
+
2219
+ export type ListDatasetFields200 = {
2220
+ fields: DatasetField[];
2221
+ pagination: Pagination;
2859
2222
  };
2860
2223
 
2861
- export type GenerationNodeSettingsOnboardingStepsItemBlocksItem = {
2862
- id: string;
2863
- type: 'info';
2864
- estimatedTime: string;
2865
- role: string;
2866
- goal: string;
2867
- successCriteria: string;
2224
+ export type CreateDatasetFieldBody = {
2225
+ name: string;
2226
+ jsonSchema: JsonSchema;
2868
2227
  } | {
2869
- id: string;
2870
- type: 'text';
2871
- title?: string;
2872
- content?: {
2873
- type: 'markdown';
2874
- value: string;
2228
+ fields: {
2229
+ name: string;
2230
+ jsonSchema: JsonSchema;
2875
2231
  }[];
2876
- } | {
2877
- id: string;
2878
- type: 'quiz';
2879
- title?: string;
2880
- content?: {
2881
- type: 'markdown';
2882
- value: string;
2883
- }[];
2884
- questions: ({
2885
- id: string;
2886
- type: 'single-choice' | 'multiple-choice';
2887
- title?: string;
2888
- question: string;
2889
- hint?: string;
2890
- correctAnswerFeedback?: string;
2891
- incorrectAnswerFeedback?: string;
2892
- options: {
2893
- value: string;
2894
- label: string;
2895
- }[];
2896
- correctAnswer: string | string[];
2897
- })[];
2898
- } | {
2899
- id: string;
2900
- type: 'practice';
2901
- title?: string;
2902
- content?: {
2903
- type: 'markdown';
2904
- value: string;
2905
- }[];
2906
- imageUrl?: string;
2907
- editorType?: string;
2908
- editorConfig?: {
2909
- rows?: number;
2910
- language?: string;
2911
- placeholder?: string;
2912
- };
2913
- validators?: {
2914
- id: string;
2915
- name: string;
2916
- description: string;
2917
- criteria: string;
2918
- }[];
2919
- } | {
2920
- id: string;
2921
- type: 'examples';
2922
- title?: string;
2923
- examples: ({
2924
- id: string;
2925
- input: {[key: string]: unknown};
2926
- checks: ({
2927
- type: 'exact';
2928
- path: string;
2929
- golden: unknown;
2930
- hint: string;
2931
- } | {
2932
- type: 'code';
2933
- code: string;
2934
- hint: string;
2935
- } | {
2936
- type: 'llm';
2937
- paths: string[];
2938
- criteria: string;
2939
- reference?: string;
2940
- hint?: string;
2941
- imageUrl?: string;
2942
- })[];
2943
- explanation?: string;
2944
- sourceItemId?: string;
2945
- })[];
2946
- } | {
2947
- id: string;
2948
- type: 'consent';
2949
- title?: string;
2950
- content?: {
2951
- type: 'markdown';
2952
- value: string;
2953
- }[];
2954
- consentLabel: string;
2955
- };
2956
-
2957
- export type GenerationNodeSettingsOnboardingStepsItem = {
2958
- id: string;
2959
- blocks?: GenerationNodeSettingsOnboardingStepsItemBlocksItem[];
2960
- };
2961
-
2962
- export type GenerationNodeSettingsOnboardingInfo = {
2963
- estimatedTime: string;
2964
- role: string;
2965
- goal: string;
2966
- successCriteria: string;
2967
- };
2968
-
2969
- export type GenerationNodeSettingsOnboarding = {
2970
- enabled: boolean;
2971
- steps: GenerationNodeSettingsOnboardingStepsItem[];
2972
- info: GenerationNodeSettingsOnboardingInfo;
2973
- };
2974
-
2975
- export type GenerationNodeSettingsExamGradedEntitiesItem = {
2976
- targetEntity: string;
2977
- mode: GenerationNodeSettingsExamGradedEntitiesItemMode;
2978
- groundTruthType: GenerationNodeSettingsExamGradedEntitiesItemGroundTruthType;
2979
- customInstruction: string;
2980
- disabledCriterionIds: string[];
2981
2232
  };
2982
2233
 
2983
- export type GenerationNodeSettingsExam = {
2984
- enabled: boolean;
2985
- gradedEntities: GenerationNodeSettingsExamGradedEntitiesItem[];
2986
- goldenDatasetId?: string;
2987
- tasksPerExpert: number;
2988
- passThreshold: number;
2234
+ export type GetDatasetInferredFields200 = {
2235
+ fields: InferredField[];
2989
2236
  };
2990
2237
 
2991
- export type GenerationNodeSettingsReuseAudienceWithNodeId = {
2992
- pipelineId: string;
2993
- nodeId: string;
2994
- } | null;
2995
-
2996
- export type GenerationNodeSettingsSmartSearch = {
2997
- briefDescription: string;
2998
- projectDescription: string | null;
2999
- extraHardRequirements: string[];
3000
- relevanceCriteria: string[];
3001
- typicalJobTitles: string[];
3002
- idealCandidateProfile: string;
3003
- whoIsNotAFit: string[];
3004
- sourceFingerprint?: string;
3005
- } | null;
3006
-
3007
- export type GenerationNodeSettingsChecksItemInput = string | {[key: string]: string};
3008
-
3009
- export type GenerationNodeSettingsChecksItem = {
3010
- id: string;
2238
+ export type AddDatasetItemsBodyFieldsItem = {
3011
2239
  name: string;
3012
- input: GenerationNodeSettingsChecksItemInput;
2240
+ jsonSchema?: JsonSchema;
3013
2241
  };
3014
2242
 
3015
- export interface GenerationNodeSettings {
3016
- about: GenerationNodeSettingsAbout;
3017
- publicName: string;
3018
- entities: GenerationNodeSettingsEntities;
3019
- qualityCriteria: GenerationNodeSettingsQualityCriteriaItem[];
3020
- instruction: string;
3021
- ui: GenerationNodeSettingsUi;
3022
- qualityAssurance?: GenerationNodeSettingsQualityAssurance;
3023
- audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
3024
- onboarding: GenerationNodeSettingsOnboarding;
3025
- exam?: GenerationNodeSettingsExam;
3026
- reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
3027
- audienceMode?: GenerationNodeSettingsAudienceMode;
3028
- smartSearch?: GenerationNodeSettingsSmartSearch;
3029
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', GenerationNodeSettingsChecksItem[]>>;
3030
- }
3031
-
3032
- export interface GenerationNode {
3033
- id: string;
3034
- type: 'generation';
3035
- settings: GenerationNodeSettings;
3036
- }
3037
-
3038
- export type MatchNodeSettingsAboutProjectType = 'general' | 'data_collection';
3039
- export type MatchNodeSettingsConditionsItemLogic = 'and' | 'or';
3040
- export type MatchNodeSettingsConditionsItemPredicatesItemOperator = 'text_eq' | 'text_neq';
3041
- export type MatchNodeSettingsAbout = {
3042
- name: string;
3043
- description?: string;
3044
- projectType?: MatchNodeSettingsAboutProjectType;
3045
- };
2243
+ export type AddDatasetItemsBodyItemsItem = {[key: string]: JsonValue | null};
3046
2244
 
3047
- export type MatchNodeSettingsConditionsItemPredicatesItem = {
3048
- fieldProxyId: string;
3049
- jsonPath: string;
3050
- operator: MatchNodeSettingsConditionsItemPredicatesItemOperator;
3051
- value: string | number | boolean | null;
2245
+ export type AddDatasetItemsBody = {
2246
+ fields?: AddDatasetItemsBodyFieldsItem[];
2247
+ items: AddDatasetItemsBodyItemsItem[];
3052
2248
  };
3053
2249
 
3054
- export type MatchNodeSettingsConditionsItem = {
3055
- name: string;
3056
- logic?: MatchNodeSettingsConditionsItemLogic;
3057
- predicates: MatchNodeSettingsConditionsItemPredicatesItem[];
2250
+ export type AddDatasetItems200 = {
2251
+ created: number;
3058
2252
  };
3059
2253
 
3060
- export type MatchNodeSettingsFieldProxiesInputItem = {
3061
- id: string;
3062
- optional: boolean;
2254
+ export type ListDatasetItemsParams = {
2255
+ limit?: number;
2256
+ offset?: number;
3063
2257
  };
3064
2258
 
3065
- export type MatchNodeSettingsFieldProxies = {
3066
- input: MatchNodeSettingsFieldProxiesInputItem[];
2259
+ export type ListDatasetItems200 = {
2260
+ items: DatasetItem[];
2261
+ pagination: Pagination;
3067
2262
  };
3068
2263
 
3069
- export interface MatchNodeSettings {
3070
- about: MatchNodeSettingsAbout;
3071
- conditions: MatchNodeSettingsConditionsItem[];
3072
- fieldProxies: MatchNodeSettingsFieldProxies;
3073
- }
3074
-
3075
- export interface MatchNode {
3076
- id: string;
3077
- type: 'match';
3078
- settings: MatchNodeSettings;
3079
- }
3080
-
3081
- export type QuorumNodeSettingsAboutProjectType = 'general' | 'data_collection';
3082
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguagesType = 'or' | 'and';
3083
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsType = 'or' | 'and';
3084
- export type QuorumNodeSettingsAudienceAndPricingAudienceCountriesType = 'or';
3085
- export type QuorumNodeSettingsOffboardingRulesItemType = 'mv_agreement';
3086
- export type QuorumNodeSettingsExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
3087
- export type QuorumNodeSettingsExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
3088
- export type QuorumNodeSettingsAudienceMode = 'legacy' | 'service';
3089
- export type QuorumNodeSettingsAbout = {
2264
+ export type CreateDatasetUploadBodyFormat = 'json' | 'csv' | 'jsonl';
2265
+ export type CreateDatasetUploadBodyFieldsItem = {
3090
2266
  name: string;
3091
- description?: string;
3092
- projectType?: QuorumNodeSettingsAboutProjectType;
2267
+ jsonSchema?: JsonSchema;
3093
2268
  };
3094
2269
 
3095
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguagesValuesItem = {
3096
- value: string;
2270
+ export type CreateDatasetUploadBody = {
2271
+ filename: string;
2272
+ format?: CreateDatasetUploadBodyFormat;
2273
+ declaredSizeBytes: number;
2274
+ fields?: CreateDatasetUploadBodyFieldsItem[];
3097
2275
  };
3098
2276
 
3099
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguages = {
3100
- type: QuorumNodeSettingsAudienceAndPricingAudienceLanguagesType;
3101
- values: QuorumNodeSettingsAudienceAndPricingAudienceLanguagesValuesItem[];
2277
+ export type CreateDatasetUpload200 = {
2278
+ job: UploadJob;
2279
+ uploadUrl: string;
3102
2280
  };
3103
2281
 
3104
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsValuesItem = {
3105
- value: string;
3106
- qualificationId: string;
2282
+ export type ImportPipelineBody = {
2283
+ name: string;
2284
+ graph: PipelineGraphV1;
3107
2285
  };
3108
2286
 
3109
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializations = {
3110
- type: QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsType;
3111
- values: QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsValuesItem[];
2287
+ export type AttachPipelineDatasetBodyItemFilter = {
2288
+ fieldValues?: DatasetFieldValueConditions;
2289
+ fieldSources?: DatasetFieldSourceConditions;
2290
+ missingRevisionFields?: string[];
2291
+ slice?: DatasetSliceSelection;
2292
+ parts?: DatasetSplitPartInclusion;
2293
+ excludeParts?: DatasetSplitPartExclusions;
2294
+ createdBefore?: string;
3112
2295
  };
3113
2296
 
3114
- export type QuorumNodeSettingsAudienceAndPricingAudienceCountries = {
3115
- type: QuorumNodeSettingsAudienceAndPricingAudienceCountriesType;
3116
- values: string[];
2297
+ export type AttachPipelineDatasetBody = {
2298
+ datasetId: string;
2299
+ itemLimit?: number;
2300
+ itemFilter?: AttachPipelineDatasetBodyItemFilter;
3117
2301
  };
3118
2302
 
3119
- export type QuorumNodeSettingsAudienceAndPricingAudience = {
3120
- languages: QuorumNodeSettingsAudienceAndPricingAudienceLanguages;
3121
- specializations: QuorumNodeSettingsAudienceAndPricingAudienceSpecializations;
3122
- countries: QuorumNodeSettingsAudienceAndPricingAudienceCountries;
2303
+ export type ExportPipeline200 = {
2304
+ name: string;
2305
+ graph: PipelineGraphV1;
3123
2306
  };
3124
2307
 
3125
- export type QuorumNodeSettingsAudienceAndPricing = {
3126
- verifiedExperts: boolean;
3127
- audience: QuorumNodeSettingsAudienceAndPricingAudience;
3128
- pricePerTask: number;
3129
- timeForTask: number;
3130
- perExpertCapEnabled?: boolean;
3131
- perExpertCapValue?: number;
3132
- expertListId?: string | null;
3133
- audienceType: 'human';
2308
+ export type CopyPipelineBody = {
2309
+ name?: string;
3134
2310
  };
3135
2311
 
3136
- export type QuorumNodeSettingsEntitiesInputItem = {
3137
- fieldProxyId: string;
3138
- entityType: string;
3139
- optional: boolean;
3140
- jsonPath: string;
3141
- description: string;
3142
- relations?: ({
3143
- id: string;
3144
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3145
- } | {
3146
- id: string;
3147
- rel_type: 'conditional';
3148
- condition: {
3149
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3150
- value: string | string[];
3151
- };
3152
- })[];
3153
- minDurationSeconds?: number;
3154
- maxDurationSeconds?: number;
3155
- allowedLabels?: {
3156
- label: string;
3157
- value: string;
3158
- }[];
3159
- dynamic: false;
3160
- maxEntities?: null;
3161
- } | {
3162
- fieldProxyId: string;
3163
- entityType: string;
3164
- optional: boolean;
3165
- jsonPath: string;
3166
- description: string;
3167
- relations?: ({
3168
- id: string;
3169
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3170
- } | {
3171
- id: string;
3172
- rel_type: 'conditional';
3173
- condition: {
3174
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3175
- value: string | string[];
3176
- };
3177
- })[];
3178
- minDurationSeconds?: number;
3179
- maxDurationSeconds?: number;
3180
- allowedLabels?: {
3181
- label: string;
3182
- value: string;
3183
- }[];
3184
- dynamic: true;
3185
- maxEntities?: number | null;
3186
- };
3187
-
3188
- export type QuorumNodeSettingsEntitiesOutputItem = {
3189
- fieldProxyId: string;
3190
- entityType: string;
3191
- optional: boolean;
3192
- jsonPath: string;
3193
- description: string;
3194
- relations?: ({
3195
- id: string;
3196
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3197
- } | {
3198
- id: string;
3199
- rel_type: 'conditional';
3200
- condition: {
3201
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3202
- value: string | string[];
3203
- };
3204
- })[];
3205
- minDurationSeconds?: number;
3206
- maxDurationSeconds?: number;
3207
- allowedLabels?: {
3208
- label: string;
3209
- value: string;
3210
- }[];
3211
- dynamic: false;
3212
- maxEntities?: null;
3213
- } | {
3214
- fieldProxyId: string;
3215
- entityType: string;
3216
- optional: boolean;
3217
- jsonPath: string;
3218
- description: string;
3219
- relations?: ({
3220
- id: string;
3221
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3222
- } | {
3223
- id: string;
3224
- rel_type: 'conditional';
3225
- condition: {
3226
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3227
- value: string | string[];
3228
- };
3229
- })[];
3230
- minDurationSeconds?: number;
3231
- maxDurationSeconds?: number;
3232
- allowedLabels?: {
3233
- label: string;
3234
- value: string;
3235
- }[];
3236
- dynamic: true;
3237
- maxEntities?: number | null;
3238
- };
3239
-
3240
- export type QuorumNodeSettingsEntities = {
3241
- input: QuorumNodeSettingsEntitiesInputItem[];
3242
- output: QuorumNodeSettingsEntitiesOutputItem[];
3243
- };
3244
-
3245
- export type QuorumNodeSettingsQualityCriteriaItemThresholds = {
3246
- pass: string;
3247
- fail: string;
3248
- };
3249
-
3250
- export type QuorumNodeSettingsQualityCriteriaItem = {
3251
- id: string;
3252
- qualityElement: string;
3253
- thresholds: QuorumNodeSettingsQualityCriteriaItemThresholds;
3254
- targetEntity: string;
3255
- llmQaInstruction?: string;
3256
- };
3257
-
3258
- export type QuorumNodeSettingsOffboardingRulesItem = {
3259
- id: string;
3260
- type?: QuorumNodeSettingsOffboardingRulesItemType;
3261
- agreementScale?: string;
3262
- };
3263
-
3264
- export type QuorumNodeSettingsUi = {
3265
- code: string;
3266
- data: string;
3267
- preprocess: string;
3268
- postprocess?: string;
3269
- constants: string;
3270
- };
3271
-
3272
- export type QuorumNodeSettingsQualityAssurance = {
3273
- qaMode: 'llm_only';
3274
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
3275
- } | {
3276
- qaMode: 'none';
3277
- };
3278
-
3279
- export type QuorumNodeSettingsOnboardingStepsItemBlocksItem = {
3280
- id: string;
3281
- type: 'info';
3282
- estimatedTime: string;
3283
- role: string;
3284
- goal: string;
3285
- successCriteria: string;
3286
- } | {
3287
- id: string;
3288
- type: 'text';
3289
- title?: string;
3290
- content?: {
3291
- type: 'markdown';
3292
- value: string;
3293
- }[];
3294
- } | {
3295
- id: string;
3296
- type: 'quiz';
3297
- title?: string;
3298
- content?: {
3299
- type: 'markdown';
3300
- value: string;
3301
- }[];
3302
- questions: ({
3303
- id: string;
3304
- type: 'single-choice' | 'multiple-choice';
3305
- title?: string;
3306
- question: string;
3307
- hint?: string;
3308
- correctAnswerFeedback?: string;
3309
- incorrectAnswerFeedback?: string;
3310
- options: {
3311
- value: string;
3312
- label: string;
3313
- }[];
3314
- correctAnswer: string | string[];
3315
- })[];
3316
- } | {
3317
- id: string;
3318
- type: 'practice';
3319
- title?: string;
3320
- content?: {
3321
- type: 'markdown';
3322
- value: string;
3323
- }[];
3324
- imageUrl?: string;
3325
- editorType?: string;
3326
- editorConfig?: {
3327
- rows?: number;
3328
- language?: string;
3329
- placeholder?: string;
3330
- };
3331
- validators?: {
3332
- id: string;
3333
- name: string;
3334
- description: string;
3335
- criteria: string;
3336
- }[];
3337
- } | {
3338
- id: string;
3339
- type: 'examples';
3340
- title?: string;
3341
- examples: ({
3342
- id: string;
3343
- input: {[key: string]: unknown};
3344
- checks: ({
3345
- type: 'exact';
3346
- path: string;
3347
- golden: unknown;
3348
- hint: string;
3349
- } | {
3350
- type: 'code';
3351
- code: string;
3352
- hint: string;
3353
- } | {
3354
- type: 'llm';
3355
- paths: string[];
3356
- criteria: string;
3357
- reference?: string;
3358
- hint?: string;
3359
- imageUrl?: string;
3360
- })[];
3361
- explanation?: string;
3362
- sourceItemId?: string;
3363
- })[];
3364
- } | {
3365
- id: string;
3366
- type: 'consent';
3367
- title?: string;
3368
- content?: {
3369
- type: 'markdown';
3370
- value: string;
3371
- }[];
3372
- consentLabel: string;
3373
- };
3374
-
3375
- export type QuorumNodeSettingsOnboardingStepsItem = {
3376
- id: string;
3377
- blocks?: QuorumNodeSettingsOnboardingStepsItemBlocksItem[];
3378
- };
3379
-
3380
- export type QuorumNodeSettingsOnboardingInfo = {
3381
- estimatedTime: string;
3382
- role: string;
3383
- goal: string;
3384
- successCriteria: string;
3385
- };
3386
-
3387
- export type QuorumNodeSettingsOnboarding = {
3388
- enabled: boolean;
3389
- steps: QuorumNodeSettingsOnboardingStepsItem[];
3390
- info: QuorumNodeSettingsOnboardingInfo;
3391
- };
3392
-
3393
- export type QuorumNodeSettingsExamGradedEntitiesItem = {
3394
- targetEntity: string;
3395
- mode: QuorumNodeSettingsExamGradedEntitiesItemMode;
3396
- groundTruthType: QuorumNodeSettingsExamGradedEntitiesItemGroundTruthType;
3397
- customInstruction: string;
3398
- disabledCriterionIds: string[];
3399
- };
3400
-
3401
- export type QuorumNodeSettingsExam = {
3402
- enabled: boolean;
3403
- gradedEntities: QuorumNodeSettingsExamGradedEntitiesItem[];
3404
- goldenDatasetId?: string;
3405
- tasksPerExpert: number;
3406
- passThreshold: number;
3407
- };
3408
-
3409
- export type QuorumNodeSettingsReuseAudienceWithNodeId = {
3410
- pipelineId: string;
3411
- nodeId: string;
3412
- } | null;
3413
-
3414
- export type QuorumNodeSettingsSmartSearch = {
3415
- briefDescription: string;
3416
- projectDescription: string | null;
3417
- extraHardRequirements: string[];
3418
- relevanceCriteria: string[];
3419
- typicalJobTitles: string[];
3420
- idealCandidateProfile: string;
3421
- whoIsNotAFit: string[];
3422
- sourceFingerprint?: string;
3423
- } | null;
3424
-
3425
- export type QuorumNodeSettingsChecksItemInput = string | {[key: string]: string};
3426
-
3427
- export type QuorumNodeSettingsChecksItem = {
3428
- id: string;
3429
- name: string;
3430
- input: QuorumNodeSettingsChecksItemInput;
3431
- };
3432
-
3433
- export interface QuorumNodeSettings {
3434
- about: QuorumNodeSettingsAbout;
3435
- publicName: string;
3436
- audienceAndPricing?: QuorumNodeSettingsAudienceAndPricing;
3437
- entities: QuorumNodeSettingsEntities;
3438
- qualityCriteria: QuorumNodeSettingsQualityCriteriaItem[];
3439
- offboardingRules?: QuorumNodeSettingsOffboardingRulesItem[];
3440
- instruction: string;
3441
- ui: QuorumNodeSettingsUi;
3442
- qualityAssurance?: QuorumNodeSettingsQualityAssurance;
3443
- overlap: number;
3444
- onboarding: QuorumNodeSettingsOnboarding;
3445
- exam?: QuorumNodeSettingsExam;
3446
- reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
3447
- audienceMode?: QuorumNodeSettingsAudienceMode;
3448
- smartSearch?: QuorumNodeSettingsSmartSearch;
3449
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', QuorumNodeSettingsChecksItem[]>>;
3450
- }
3451
-
3452
- export interface QuorumNode {
3453
- id: string;
3454
- type: 'quorum';
3455
- settings: QuorumNodeSettings;
3456
- }
3457
-
3458
- export interface PipelineGraphV1 {
3459
- version: 1;
3460
- fields: PipelineGraphV1FieldsItem[];
3461
- nodes: (RootNode | CodeNode | GenerationNode | MatchNode | QuorumNode)[];
3462
- connections: PipelineGraphV1ConnectionsItem[];
3463
- layout?: PipelineGraphV1Layout;
3464
- }
3465
-
3466
- export type ListBaseModels200 = {
3467
- baseModels: BaseModel[];
3468
- };
3469
-
3470
- export type ListProjectModelsParams = {
3471
- limit?: number;
3472
- offset?: number;
3473
- };
3474
-
3475
- export type ListProjectModels200 = {
3476
- models: Model[];
3477
- pagination: Pagination;
3478
- };
3479
-
3480
- export type CreateProjectModelBody = {
3481
- name: string;
3482
- description?: string | null;
3483
- baseModelId: BaseModelId;
3484
- };
3485
-
3486
- export type ListModelVersionsParams = {
3487
- limit?: number;
3488
- offset?: number;
3489
- };
3490
-
3491
- export type ListModelVersions200 = {
3492
- versions: ModelVersion[];
3493
- pagination: Pagination;
3494
- };
3495
-
3496
- export type ListProjectTrainingsParams = {
3497
- limit?: number;
3498
- offset?: number;
3499
- };
3500
-
3501
- export type ListProjectTrainings200 = {
3502
- trainings: Training[];
3503
- pagination: Pagination;
3504
- };
3505
-
3506
- export type CreateProjectTrainingBody = {
3507
- name: string;
3508
- configuration: TrainingConfigurationInput;
3509
- };
3510
-
3511
- export type UpdateTrainingMetadataBody = {
3512
- name?: string;
3513
- archived?: boolean;
3514
- };
3515
-
3516
- export type ReplaceTrainingConfigurationBody = {
3517
- configuration: TrainingConfigurationInput;
3518
- };
3519
-
3520
- export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
3521
-
3522
- export type EstimateTrainingCostBody = {
3523
- inputSetId: TrainingCostEstimateInputSetId;
3524
- };
3525
-
3526
- export type CreateTrainingRunBody = {
3527
- inputSetId: string;
3528
- estimateFingerprint: string;
3529
- versionName: string;
3530
- };
3531
-
3532
- export type ListTrainingRunsParams = {
3533
- limit?: number;
3534
- offset?: number;
3535
- };
3536
-
3537
- export type ListTrainingRuns200 = {
3538
- trainingRuns: TrainingRun[];
3539
- pagination: Pagination;
3540
- };
3541
-
3542
- export type GetTrainingRunLogsParams = {
3543
- cursor?: string;
3544
- limit?: number;
3545
- };
3546
-
3547
- export type GetTrainingRunMetricHistoryParams = {
3548
- resolution?: number;
3549
- };
3550
-
3551
- export type ListAudienceSpecializationsParams = {
3552
- limit?: number;
3553
- offset?: number;
3554
- };
3555
-
3556
- export type ListAudienceSpecializations200 = {
3557
- specializations: Specialization[];
3558
- pagination: Pagination;
3559
- };
3560
-
3561
- export type ListExpertLists200 = {
3562
- expertLists: ExpertList[];
3563
- };
3564
-
3565
- export type CreateExpertListBody = {
3566
- name: string;
3567
- };
3568
-
3569
- export type UpdateExpertListBody = {
3570
- name?: string;
3571
- hidden?: boolean;
3572
- };
3573
-
3574
- export type ListExpertListExpertsParams = {
3575
- after?: string;
3576
- limit?: number;
3577
- };
3578
-
3579
- export type ListExpertListExperts200ExpertsItemStatus = 'pending' | 'available' | 'unavailable' | 'not_found' | 'banned';
3580
- export type ListExpertListExperts200ExpertsItem = {
3581
- expertId: string;
3582
- status: ListExpertListExperts200ExpertsItemStatus;
3583
- };
3584
-
3585
- export type ListExpertListExperts200 = {
3586
- experts: ListExpertListExperts200ExpertsItem[];
3587
- nextAfter: string | null;
3588
- };
3589
-
3590
- export type AddExpertListExpertsBody = {
3591
- expertIds: string[];
3592
- };
3593
-
3594
- export type RemoveExpertListExpertsBody = {
3595
- expertIds: string[];
3596
- };
3597
-
3598
- export type ListExpertBanListExpertsParams = {
3599
- after?: string;
3600
- limit?: number;
3601
- };
3602
-
3603
- export type ListExpertBanListExperts200 = {
3604
- experts: ExpertBanListExpert[];
3605
- nextAfter: string | null;
3606
- };
3607
-
3608
- export type AddExpertBanListExpertsBody = {
3609
- expertIds: string[];
3610
- reason: string;
3611
- };
3612
-
3613
- export type RemoveExpertBanListExpertsBody = {
3614
- expertIds: string[];
3615
- };
3616
-
3617
- export type ListGenerationModels200DefaultGenerationModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
3618
- export type ListGenerationModels200 = {
3619
- defaultGenerationModelId: ListGenerationModels200DefaultGenerationModelId;
3620
- generationModels: GenerationModel[];
3621
- };
3622
-
3623
- export type ListDeliveryOrders200 = {
3624
- deliveryOrders: DeliveryOrder[];
3625
- };
3626
-
3627
- export type ListProjectsParams = {
3628
- limit?: number;
3629
- offset?: number;
3630
- };
3631
-
3632
- export type ListProjects200 = {
3633
- projects: Project[];
3634
- pagination: Pagination;
3635
- };
3636
-
3637
- export type CreateProjectBody = {
3638
- teamId: string;
3639
- name?: string;
3640
- deliveryOrderId?: string | null;
3641
- };
3642
-
3643
- export type UpdateProjectBody = {
3644
- name: string;
3645
- };
3646
-
3647
- export type ListProjectPipelinesParams = {
3648
- limit?: number;
3649
- offset?: number;
3650
- };
3651
-
3652
- export type ListProjectPipelines200 = {
3653
- pipelines: Pipeline[];
3654
- pagination: Pagination;
3655
- };
3656
-
3657
- export type UpdatePipelineBody = {
3658
- name: string;
3659
- };
3660
-
3661
- export type ListProjectDatasetsParams = {
3662
- limit?: number;
3663
- offset?: number;
3664
- };
3665
-
3666
- export type ListProjectDatasets200 = {
3667
- datasets: Dataset[];
3668
- pagination: Pagination;
3669
- };
3670
-
3671
- export type CreateDatasetBodyProfile = 'chat-sft' | 'instruction';
3672
- export type CreateDatasetBody = {
3673
- name?: string;
3674
- profile?: CreateDatasetBodyProfile;
3675
- };
3676
-
3677
- export type ListDatasetFieldsParams = {
3678
- limit?: number;
3679
- offset?: number;
3680
- names?: string;
3681
- };
3682
-
3683
- export type ListDatasetFields200 = {
3684
- fields: DatasetField[];
3685
- pagination: Pagination;
3686
- };
3687
-
3688
- export type CreateDatasetFieldBody = {
3689
- name: string;
3690
- jsonSchema: {
3691
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3692
- properties?: unknown;
3693
- required?: string[];
3694
- additionalProperties?: boolean | unknown;
3695
- items?: unknown;
3696
- minItems?: number;
3697
- maxItems?: number;
3698
- uniqueItems?: boolean;
3699
- enum?: unknown[];
3700
- const?: unknown;
3701
- minimum?: number;
3702
- maximum?: number;
3703
- exclusiveMinimum?: number;
3704
- exclusiveMaximum?: number;
3705
- minLength?: number;
3706
- maxLength?: number;
3707
- pattern?: string;
3708
- format?: string;
3709
- title?: string;
3710
- description?: string;
3711
- default?: unknown;
3712
- examples?: unknown[];
3713
- anyOf?: unknown[];
3714
- oneOf?: unknown[];
3715
- allOf?: unknown[];
3716
- };
3717
- } | {
3718
- fields: ({
3719
- name: string;
3720
- jsonSchema: {
3721
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3722
- properties?: unknown;
3723
- required?: string[];
3724
- additionalProperties?: boolean | unknown;
3725
- items?: unknown;
3726
- minItems?: number;
3727
- maxItems?: number;
3728
- uniqueItems?: boolean;
3729
- enum?: unknown[];
3730
- const?: unknown;
3731
- minimum?: number;
3732
- maximum?: number;
3733
- exclusiveMinimum?: number;
3734
- exclusiveMaximum?: number;
3735
- minLength?: number;
3736
- maxLength?: number;
3737
- pattern?: string;
3738
- format?: string;
3739
- title?: string;
3740
- description?: string;
3741
- default?: unknown;
3742
- examples?: unknown[];
3743
- anyOf?: unknown[];
3744
- oneOf?: unknown[];
3745
- allOf?: unknown[];
3746
- };
3747
- })[];
3748
- };
3749
-
3750
- export type GetDatasetInferredFields200 = {
3751
- fields: InferredField[];
3752
- };
3753
-
3754
- export type AddDatasetItemsBodyFieldsItemJsonSchema = {
3755
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3756
- properties?: unknown;
3757
- required?: string[];
3758
- additionalProperties?: boolean | unknown;
3759
- items?: unknown;
3760
- minItems?: number;
3761
- maxItems?: number;
3762
- uniqueItems?: boolean;
3763
- enum?: unknown[];
3764
- const?: unknown;
3765
- minimum?: number;
3766
- maximum?: number;
3767
- exclusiveMinimum?: number;
3768
- exclusiveMaximum?: number;
3769
- minLength?: number;
3770
- maxLength?: number;
3771
- pattern?: string;
3772
- format?: string;
3773
- title?: string;
3774
- description?: string;
3775
- default?: unknown;
3776
- examples?: unknown[];
3777
- anyOf?: unknown[];
3778
- oneOf?: unknown[];
3779
- allOf?: unknown[];
3780
- };
3781
-
3782
- export type AddDatasetItemsBodyFieldsItem = {
3783
- name: string;
3784
- jsonSchema?: AddDatasetItemsBodyFieldsItemJsonSchema;
3785
- };
3786
-
3787
- export type AddDatasetItemsBodyItemsItem = {[key: string]: unknown};
3788
-
3789
- export type AddDatasetItemsBody = {
3790
- fields?: AddDatasetItemsBodyFieldsItem[];
3791
- items: AddDatasetItemsBodyItemsItem[];
3792
- };
3793
-
3794
- export type AddDatasetItems200 = {
3795
- created: number;
3796
- };
3797
-
3798
- export type ListDatasetItemsParams = {
3799
- limit?: number;
3800
- offset?: number;
3801
- };
3802
-
3803
- export type ListDatasetItems200 = {
3804
- items: DatasetItem[];
3805
- pagination: Pagination;
3806
- };
3807
-
3808
- export type CreateDatasetUploadBodyFormat = 'json' | 'csv' | 'jsonl';
3809
- export type CreateDatasetUploadBodyFieldsItemJsonSchema = {
3810
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3811
- properties?: unknown;
3812
- required?: string[];
3813
- additionalProperties?: boolean | unknown;
3814
- items?: unknown;
3815
- minItems?: number;
3816
- maxItems?: number;
3817
- uniqueItems?: boolean;
3818
- enum?: unknown[];
3819
- const?: unknown;
3820
- minimum?: number;
3821
- maximum?: number;
3822
- exclusiveMinimum?: number;
3823
- exclusiveMaximum?: number;
3824
- minLength?: number;
3825
- maxLength?: number;
3826
- pattern?: string;
3827
- format?: string;
3828
- title?: string;
3829
- description?: string;
3830
- default?: unknown;
3831
- examples?: unknown[];
3832
- anyOf?: unknown[];
3833
- oneOf?: unknown[];
3834
- allOf?: unknown[];
3835
- };
3836
-
3837
- export type CreateDatasetUploadBodyFieldsItem = {
3838
- name: string;
3839
- jsonSchema?: CreateDatasetUploadBodyFieldsItemJsonSchema;
3840
- };
3841
-
3842
- export type CreateDatasetUploadBody = {
3843
- filename: string;
3844
- format?: CreateDatasetUploadBodyFormat;
3845
- declaredSizeBytes: number;
3846
- fields?: CreateDatasetUploadBodyFieldsItem[];
3847
- };
3848
-
3849
- export type CreateDatasetUpload200 = {
3850
- job: UploadJob;
3851
- uploadUrl: string;
3852
- };
3853
-
3854
- export type ImportPipelineBody = {
3855
- name: string;
3856
- graph: PipelineGraphV1;
3857
- };
3858
-
3859
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
3860
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItemSourcesItem = {
3861
- type: 'user';
3862
- userId: string;
3863
- } | {
3864
- type: 'system';
3865
- source: string;
3866
- };
3867
-
3868
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItem = {
3869
- jsonPath: string;
3870
- operator: AttachPipelineDatasetBodyItemFilterFieldValuesItemOperator;
3871
- value: string | number | boolean | null;
3872
- fieldId: string;
3873
- latestOnly?: boolean;
3874
- sources?: AttachPipelineDatasetBodyItemFilterFieldValuesItemSourcesItem[];
3875
- };
3876
-
3877
- export type AttachPipelineDatasetBodyItemFilterFieldSourcesItemSourcesItem = {
3878
- type: 'user';
3879
- userId: string;
3880
- } | {
3881
- type: 'system';
3882
- source: string;
3883
- };
3884
-
3885
- export type AttachPipelineDatasetBodyItemFilterFieldSourcesItem = {
3886
- fieldId: string;
3887
- sources: AttachPipelineDatasetBodyItemFilterFieldSourcesItemSourcesItem[];
3888
- };
3889
-
3890
- export type AttachPipelineDatasetBodyItemFilterSlice = {
3891
- sliceId: string;
3892
- };
3893
-
3894
- export type AttachPipelineDatasetBodyItemFilterParts = {
3895
- fieldId: string;
3896
- names: string[];
3897
- };
3898
-
3899
- export type AttachPipelineDatasetBodyItemFilterExcludePartsItem = {
3900
- fieldId: string;
3901
- names: string[];
3902
- };
3903
-
3904
- export type AttachPipelineDatasetBodyItemFilter = {
3905
- fieldValues?: AttachPipelineDatasetBodyItemFilterFieldValuesItem[];
3906
- fieldSources?: AttachPipelineDatasetBodyItemFilterFieldSourcesItem[];
3907
- missingRevisionFields?: string[];
3908
- slice?: AttachPipelineDatasetBodyItemFilterSlice;
3909
- parts?: AttachPipelineDatasetBodyItemFilterParts;
3910
- excludeParts?: AttachPipelineDatasetBodyItemFilterExcludePartsItem[];
3911
- createdBefore?: string;
3912
- };
3913
-
3914
- export type AttachPipelineDatasetBody = {
3915
- datasetId: string;
3916
- itemLimit?: number;
3917
- itemFilter?: AttachPipelineDatasetBodyItemFilter;
3918
- };
3919
-
3920
- export type ExportPipeline200 = {
3921
- name: string;
3922
- graph: PipelineGraphV1;
3923
- };
3924
-
3925
- export type CopyPipelineBody = {
3926
- name?: string;
3927
- };
3928
-
3929
- export type EstimatePipelineCostBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
3930
- export type EstimatePipelineCostBodyItemFilterFieldValuesItemSourcesItem = {
3931
- type: 'user';
3932
- userId: string;
3933
- } | {
3934
- type: 'system';
3935
- source: string;
3936
- };
3937
-
3938
- export type EstimatePipelineCostBodyItemFilterFieldValuesItem = {
3939
- jsonPath: string;
3940
- operator: EstimatePipelineCostBodyItemFilterFieldValuesItemOperator;
3941
- value: string | number | boolean | null;
3942
- fieldId: string;
3943
- latestOnly?: boolean;
3944
- sources?: EstimatePipelineCostBodyItemFilterFieldValuesItemSourcesItem[];
3945
- };
3946
-
3947
- export type EstimatePipelineCostBodyItemFilterFieldSourcesItemSourcesItem = {
3948
- type: 'user';
3949
- userId: string;
3950
- } | {
3951
- type: 'system';
3952
- source: string;
3953
- };
3954
-
3955
- export type EstimatePipelineCostBodyItemFilterFieldSourcesItem = {
3956
- fieldId: string;
3957
- sources: EstimatePipelineCostBodyItemFilterFieldSourcesItemSourcesItem[];
3958
- };
3959
-
3960
- export type EstimatePipelineCostBodyItemFilterSlice = {
3961
- sliceId: string;
3962
- };
3963
-
3964
- export type EstimatePipelineCostBodyItemFilterParts = {
3965
- fieldId: string;
3966
- names: string[];
3967
- };
3968
-
3969
- export type EstimatePipelineCostBodyItemFilterExcludePartsItem = {
3970
- fieldId: string;
3971
- names: string[];
3972
- };
3973
-
3974
- export type EstimatePipelineCostBodyItemFilter = {
3975
- fieldValues?: EstimatePipelineCostBodyItemFilterFieldValuesItem[];
3976
- fieldSources?: EstimatePipelineCostBodyItemFilterFieldSourcesItem[];
3977
- missingRevisionFields?: string[];
3978
- slice?: EstimatePipelineCostBodyItemFilterSlice;
3979
- parts?: EstimatePipelineCostBodyItemFilterParts;
3980
- excludeParts?: EstimatePipelineCostBodyItemFilterExcludePartsItem[];
3981
- createdBefore?: string;
3982
- };
3983
-
3984
- export type EstimatePipelineCostBody = {
3985
- itemLimit?: number;
3986
- itemFilter?: EstimatePipelineCostBodyItemFilter;
3987
- };
3988
-
3989
- export type ListPipelineRunsParams = {
3990
- limit?: number;
3991
- offset?: number;
3992
- };
3993
-
3994
- export type ListPipelineRuns200 = {
3995
- runs: RunSummary[];
3996
- pagination: Pagination;
3997
- };
3998
-
3999
- export type CancelPipelineRunBodyPendingHumanQa = 'accept_without_review' | 'wait_for_review';
4000
- export type CancelPipelineRunBody = {
4001
- pendingHumanQa?: CancelPipelineRunBodyPendingHumanQa;
4002
- };
4003
-
4004
- export type SampleDatasetItemsBody = {
4005
- markField: string;
4006
- markValue: string;
4007
- itemFilter?: {
4008
- fieldValues?: ({
4009
- jsonPath: string;
4010
- operator: 'text_eq' | 'text_neq';
4011
- value: string | number | boolean | null;
4012
- fieldId: string;
4013
- latestOnly?: boolean;
4014
- sources?: ({
4015
- type: 'user';
4016
- userId: string;
4017
- } | {
4018
- type: 'system';
4019
- source: string;
4020
- })[];
4021
- })[];
4022
- fieldSources?: ({
4023
- fieldId: string;
4024
- sources: ({
4025
- type: 'user';
4026
- userId: string;
4027
- } | {
4028
- type: 'system';
4029
- source: string;
4030
- })[];
4031
- })[];
4032
- missingRevisionFields?: string[];
4033
- slice?: {
4034
- sliceId: string;
4035
- };
4036
- parts?: {
4037
- fieldId: string;
4038
- names: string[];
4039
- };
4040
- excludeParts?: {
4041
- fieldId: string;
4042
- names: string[];
4043
- }[];
4044
- createdBefore?: string;
4045
- };
4046
- count: number;
4047
- } | {
4048
- markField: string;
4049
- markValue: string;
4050
- itemFilter?: {
4051
- fieldValues?: ({
4052
- jsonPath: string;
4053
- operator: 'text_eq' | 'text_neq';
4054
- value: string | number | boolean | null;
4055
- fieldId: string;
4056
- latestOnly?: boolean;
4057
- sources?: ({
4058
- type: 'user';
4059
- userId: string;
4060
- } | {
4061
- type: 'system';
4062
- source: string;
4063
- })[];
4064
- })[];
4065
- fieldSources?: ({
4066
- fieldId: string;
4067
- sources: ({
4068
- type: 'user';
4069
- userId: string;
4070
- } | {
4071
- type: 'system';
4072
- source: string;
4073
- })[];
4074
- })[];
4075
- missingRevisionFields?: string[];
4076
- slice?: {
4077
- sliceId: string;
4078
- };
4079
- parts?: {
4080
- fieldId: string;
4081
- names: string[];
4082
- };
4083
- excludeParts?: {
4084
- fieldId: string;
4085
- names: string[];
4086
- }[];
4087
- createdBefore?: string;
4088
- };
4089
- fraction: number;
4090
- };
4091
-
4092
- export type CreateDatasetSliceBody = {
4093
- name?: string;
4094
- itemFilter?: {
4095
- fieldValues?: ({
4096
- jsonPath: string;
4097
- operator: 'text_eq' | 'text_neq';
4098
- value: string | number | boolean | null;
4099
- fieldId: string;
4100
- latestOnly?: boolean;
4101
- sources?: ({
4102
- type: 'user';
4103
- userId: string;
4104
- } | {
4105
- type: 'system';
4106
- source: string;
4107
- })[];
4108
- })[];
4109
- fieldSources?: ({
4110
- fieldId: string;
4111
- sources: ({
4112
- type: 'user';
4113
- userId: string;
4114
- } | {
4115
- type: 'system';
4116
- source: string;
4117
- })[];
4118
- })[];
4119
- missingRevisionFields?: string[];
4120
- };
4121
- frozenColumns?: string[];
4122
- } | {
4123
- name?: string;
4124
- fromSlice: string;
4125
- frozenColumns?: string[];
4126
- };
4127
-
4128
- export type ListDatasetSlicesParams = {
4129
- limit?: number;
4130
- offset?: number;
4131
- };
4132
-
4133
- export type ListDatasetSlices200 = {
4134
- slices: DatasetSlice[];
4135
- pagination: Pagination;
4136
- };
4137
-
4138
- export type SplitDatasetBodyPartsItemRolesItem = 'train' | 'validate' | 'test';
4139
- export type SplitDatasetBodyPartsItem = {
4140
- name: string;
4141
- roles: SplitDatasetBodyPartsItemRolesItem[];
4142
- share?: number;
4143
- };
4144
-
4145
- export type SplitDatasetBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
4146
- export type SplitDatasetBodyItemFilterFieldValuesItemSourcesItem = {
4147
- type: 'user';
4148
- userId: string;
4149
- } | {
4150
- type: 'system';
4151
- source: string;
4152
- };
4153
-
4154
- export type SplitDatasetBodyItemFilterFieldValuesItem = {
4155
- jsonPath: string;
4156
- operator: SplitDatasetBodyItemFilterFieldValuesItemOperator;
4157
- value: string | number | boolean | null;
4158
- fieldId: string;
4159
- latestOnly?: boolean;
4160
- sources?: SplitDatasetBodyItemFilterFieldValuesItemSourcesItem[];
4161
- };
4162
-
4163
- export type SplitDatasetBodyItemFilterFieldSourcesItemSourcesItem = {
4164
- type: 'user';
4165
- userId: string;
4166
- } | {
4167
- type: 'system';
4168
- source: string;
4169
- };
4170
-
4171
- export type SplitDatasetBodyItemFilterFieldSourcesItem = {
4172
- fieldId: string;
4173
- sources: SplitDatasetBodyItemFilterFieldSourcesItemSourcesItem[];
4174
- };
4175
-
4176
- export type SplitDatasetBodyItemFilter = {
4177
- fieldValues?: SplitDatasetBodyItemFilterFieldValuesItem[];
4178
- fieldSources?: SplitDatasetBodyItemFilterFieldSourcesItem[];
4179
- missingRevisionFields?: string[];
4180
- };
4181
-
4182
- export type SplitDatasetBody = {
4183
- column?: string;
4184
- parts?: SplitDatasetBodyPartsItem[];
4185
- balanceBy?: string;
4186
- seed?: number;
4187
- slice?: string;
4188
- itemFilter?: SplitDatasetBodyItemFilter;
4189
- };
4190
-
4191
- export type CreateDatasetExportBodyFormat = 'json-array';
4192
- export type CreateDatasetExportBody = {
4193
- format?: CreateDatasetExportBodyFormat;
4194
- fields: string[];
4195
- };
4196
-
4197
- export type CreateDatasetFieldsFromUploadedRowsBody = {
4198
- names: string[];
4199
- };
4200
-
4201
- export type ReplacePipelineGraphBody = {
4202
- graph: PipelineGraphV1;
4203
- expectedVersion?: PipelineGraphVersion;
4204
- };
4205
-
4206
- export type ValidatePipelineGraphBodyGraphFieldsItem = {
4207
- id: string;
4208
- name: string;
4209
- jsonSchema: JsonSchema;
4210
- };
4211
-
4212
- export type ValidatePipelineGraphBodyGraphNodesItem = {
4213
- id: string;
4214
- type: 'root';
4215
- settings: {
4216
- datasetId?: string;
4217
- itemFilter?: {
4218
- fieldValues?: ({
4219
- jsonPath: string;
4220
- operator: 'text_eq' | 'text_neq';
4221
- value: string | number | boolean | null;
4222
- fieldId: string;
4223
- latestOnly?: boolean;
4224
- sources?: ({
4225
- type: 'user';
4226
- userId: string;
4227
- } | {
4228
- type: 'system';
4229
- source: string;
4230
- })[];
4231
- })[];
4232
- fieldSources?: ({
4233
- fieldId: string;
4234
- sources: ({
4235
- type: 'user';
4236
- userId: string;
4237
- } | {
4238
- type: 'system';
4239
- source: string;
4240
- })[];
4241
- })[];
4242
- missingRevisionFields?: string[];
4243
- slice?: {
4244
- sliceId: string;
4245
- };
4246
- parts?: {
4247
- fieldId: string;
4248
- names: string[];
4249
- };
4250
- excludeParts?: {
4251
- fieldId: string;
4252
- names: string[];
4253
- }[];
4254
- createdBefore?: string;
4255
- };
4256
- itemLimit?: number;
4257
- startedFieldProxies: {
4258
- output: {
4259
- id: string;
4260
- optional: boolean;
4261
- }[];
4262
- };
4263
- completedFieldProxies: {
4264
- input: {
4265
- id: string;
4266
- optional: boolean;
4267
- }[];
4268
- };
4269
- };
4270
- } | {
4271
- id: string;
4272
- type: 'code';
4273
- settings: {
4274
- about: {
4275
- name: string;
4276
- description?: string;
4277
- projectType?: 'general' | 'data_collection';
4278
- };
4279
- fieldProxies: {
4280
- input: {
4281
- id: string;
4282
- optional: boolean;
4283
- }[];
4284
- output: {
4285
- id: string;
4286
- optional: boolean;
4287
- }[];
4288
- };
4289
- code: {
4290
- code: string;
4291
- };
4292
- envVars?: ({
4293
- type: 'static';
4294
- name: string;
4295
- value: string;
4296
- } | {
4297
- type: 'secret';
4298
- name: string;
4299
- secretName: string;
4300
- })[];
4301
- checks?: Partial<Record<'code', ({
4302
- id: string;
4303
- name: string;
4304
- input: string | {[key: string]: string};
4305
- })[]>>;
4306
- };
4307
- } | {
4308
- id: string;
4309
- type: 'generation';
4310
- settings: {
4311
- about: {
4312
- name: string;
4313
- description?: string;
4314
- projectType?: 'general' | 'data_collection';
4315
- };
4316
- publicName: string;
4317
- entities: {
4318
- input: ({
4319
- fieldProxyId: string;
4320
- entityType: string;
4321
- optional: boolean;
4322
- jsonPath: string;
4323
- description: string;
4324
- relations?: ({
4325
- id: string;
4326
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4327
- } | {
4328
- id: string;
4329
- rel_type: 'conditional';
4330
- condition: {
4331
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4332
- value: string | string[];
4333
- };
4334
- })[];
4335
- minDurationSeconds?: number;
4336
- maxDurationSeconds?: number;
4337
- allowedLabels?: {
4338
- label: string;
4339
- value: string;
4340
- }[];
4341
- dynamic: false;
4342
- maxEntities?: null;
4343
- } | {
4344
- fieldProxyId: string;
4345
- entityType: string;
4346
- optional: boolean;
4347
- jsonPath: string;
4348
- description: string;
4349
- relations?: ({
4350
- id: string;
4351
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4352
- } | {
4353
- id: string;
4354
- rel_type: 'conditional';
4355
- condition: {
4356
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4357
- value: string | string[];
4358
- };
4359
- })[];
4360
- minDurationSeconds?: number;
4361
- maxDurationSeconds?: number;
4362
- allowedLabels?: {
4363
- label: string;
4364
- value: string;
4365
- }[];
4366
- dynamic: true;
4367
- maxEntities?: number | null;
4368
- })[];
4369
- output: ({
4370
- fieldProxyId: string;
4371
- entityType: string;
4372
- optional: boolean;
4373
- jsonPath: string;
4374
- description: string;
4375
- relations?: ({
4376
- id: string;
4377
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4378
- } | {
4379
- id: string;
4380
- rel_type: 'conditional';
4381
- condition: {
4382
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4383
- value: string | string[];
4384
- };
4385
- })[];
4386
- minDurationSeconds?: number;
4387
- maxDurationSeconds?: number;
4388
- allowedLabels?: {
4389
- label: string;
4390
- value: string;
4391
- }[];
4392
- dynamic: false;
4393
- maxEntities?: null;
4394
- } | {
4395
- fieldProxyId: string;
4396
- entityType: string;
4397
- optional: boolean;
4398
- jsonPath: string;
4399
- description: string;
4400
- relations?: ({
4401
- id: string;
4402
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4403
- } | {
4404
- id: string;
4405
- rel_type: 'conditional';
4406
- condition: {
4407
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4408
- value: string | string[];
4409
- };
4410
- })[];
4411
- minDurationSeconds?: number;
4412
- maxDurationSeconds?: number;
4413
- allowedLabels?: {
4414
- label: string;
4415
- value: string;
4416
- }[];
4417
- dynamic: true;
4418
- maxEntities?: number | null;
4419
- })[];
4420
- };
4421
- qualityCriteria: {
4422
- id: string;
4423
- qualityElement: string;
4424
- thresholds: {
4425
- pass: string;
4426
- fail: string;
4427
- };
4428
- targetEntity: string;
4429
- llmQaInstruction?: string;
4430
- }[];
4431
- instruction: string;
4432
- ui: {
4433
- code: string;
4434
- data: string;
4435
- preprocess: string;
4436
- postprocess?: string;
4437
- constants: string;
4438
- };
4439
- qualityAssurance?: {
4440
- qaMode: 'llm_only';
4441
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
4442
- } | {
4443
- qaMode: 'human_only';
4444
- smartSamplingPercent?: number;
4445
- humanQaTimeForTask?: number;
4446
- expertListId?: string | null;
4447
- } | {
4448
- qaMode: 'hybrid';
4449
- smartSamplingPercent?: number;
4450
- humanQaTimeForTask?: number;
4451
- expertListId?: string | null;
4452
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
4453
- };
4454
- audienceAndPricing?: {
4455
- verifiedExperts: boolean;
4456
- audience: {
4457
- languages: {
4458
- type: 'or' | 'and';
4459
- values: {
4460
- value: string;
4461
- }[];
4462
- };
4463
- specializations: {
4464
- type: 'or' | 'and';
4465
- values: {
4466
- value: string;
4467
- qualificationId: string;
4468
- }[];
4469
- };
4470
- countries: {
4471
- type: 'or';
4472
- values: string[];
4473
- };
4474
- };
4475
- pricePerTask: number;
4476
- timeForTask: number;
4477
- perExpertCapEnabled?: boolean;
4478
- perExpertCapValue?: number;
4479
- expertListId?: string | null;
4480
- audienceType: 'human';
4481
- } | {
4482
- audienceType: 'synthetic';
4483
- generationModelId?: 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
4484
- reasoningEffort?: 'low' | 'medium' | 'high';
4485
- llmInstruction?: string;
4486
- maxCostPerAttempt: number;
4487
- };
4488
- onboarding: {
4489
- enabled: boolean;
4490
- steps: ({
4491
- id: string;
4492
- blocks?: ({
4493
- id: string;
4494
- type: 'info';
4495
- estimatedTime: string;
4496
- role: string;
4497
- goal: string;
4498
- successCriteria: string;
4499
- } | {
4500
- id: string;
4501
- type: 'text';
4502
- title?: string;
4503
- content?: {
4504
- type: 'markdown';
4505
- value: string;
4506
- }[];
4507
- } | {
4508
- id: string;
4509
- type: 'quiz';
4510
- title?: string;
4511
- content?: {
4512
- type: 'markdown';
4513
- value: string;
4514
- }[];
4515
- questions: ({
4516
- id: string;
4517
- type: 'single-choice' | 'multiple-choice';
4518
- title?: string;
4519
- question: string;
4520
- hint?: string;
4521
- correctAnswerFeedback?: string;
4522
- incorrectAnswerFeedback?: string;
4523
- options: {
4524
- value: string;
4525
- label: string;
4526
- }[];
4527
- correctAnswer: string | string[];
4528
- })[];
4529
- } | {
4530
- id: string;
4531
- type: 'practice';
4532
- title?: string;
4533
- content?: {
4534
- type: 'markdown';
4535
- value: string;
4536
- }[];
4537
- imageUrl?: string;
4538
- editorType?: string;
4539
- editorConfig?: {
4540
- rows?: number;
4541
- language?: string;
4542
- placeholder?: string;
4543
- };
4544
- validators?: {
4545
- id: string;
4546
- name: string;
4547
- description: string;
4548
- criteria: string;
4549
- }[];
4550
- } | {
4551
- id: string;
4552
- type: 'examples';
4553
- title?: string;
4554
- examples: ({
4555
- id: string;
4556
- input: {[key: string]: unknown};
4557
- checks: ({
4558
- type: 'exact';
4559
- path: string;
4560
- golden: unknown;
4561
- hint: string;
4562
- } | {
4563
- type: 'code';
4564
- code: string;
4565
- hint: string;
4566
- } | {
4567
- type: 'llm';
4568
- paths: string[];
4569
- criteria: string;
4570
- reference?: string;
4571
- hint?: string;
4572
- imageUrl?: string;
4573
- })[];
4574
- explanation?: string;
4575
- sourceItemId?: string;
4576
- })[];
4577
- } | {
4578
- id: string;
4579
- type: 'consent';
4580
- title?: string;
4581
- content?: {
4582
- type: 'markdown';
4583
- value: string;
4584
- }[];
4585
- consentLabel: string;
4586
- })[];
4587
- })[];
4588
- info: {
4589
- estimatedTime: string;
4590
- role: string;
4591
- goal: string;
4592
- successCriteria: string;
4593
- };
4594
- };
4595
- exam?: {
4596
- enabled: boolean;
4597
- gradedEntities: ({
4598
- targetEntity: string;
4599
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
4600
- groundTruthType: 'direct' | 'custom';
4601
- customInstruction: string;
4602
- disabledCriterionIds: string[];
4603
- })[];
4604
- goldenDatasetId?: string;
4605
- tasksPerExpert: number;
4606
- passThreshold: number;
4607
- };
4608
- reuseAudienceWithNodeId?: {
4609
- pipelineId: string;
4610
- nodeId: string;
4611
- } | null;
4612
- audienceMode?: 'legacy' | 'service';
4613
- smartSearch?: {
4614
- briefDescription: string;
4615
- projectDescription: string | null;
4616
- extraHardRequirements: string[];
4617
- relevanceCriteria: string[];
4618
- typicalJobTitles: string[];
4619
- idealCandidateProfile: string;
4620
- whoIsNotAFit: string[];
4621
- sourceFingerprint?: string;
4622
- } | null;
4623
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', ({
4624
- id: string;
4625
- name: string;
4626
- input: string | {[key: string]: string};
4627
- })[]>>;
4628
- };
4629
- } | {
4630
- id: string;
4631
- type: 'match';
4632
- settings: {
4633
- about: {
4634
- name: string;
4635
- description?: string;
4636
- projectType?: 'general' | 'data_collection';
4637
- };
4638
- conditions: ({
4639
- name: string;
4640
- logic?: 'and' | 'or';
4641
- predicates: ({
4642
- fieldProxyId: string;
4643
- jsonPath: string;
4644
- operator: 'text_eq' | 'text_neq';
4645
- value: string | number | boolean | null;
4646
- })[];
4647
- })[];
4648
- fieldProxies: {
4649
- input: {
4650
- id: string;
4651
- optional: boolean;
4652
- }[];
4653
- };
4654
- };
4655
- } | {
4656
- id: string;
4657
- type: 'quorum';
4658
- settings: {
4659
- about: {
4660
- name: string;
4661
- description?: string;
4662
- projectType?: 'general' | 'data_collection';
4663
- };
4664
- publicName: string;
4665
- audienceAndPricing?: {
4666
- verifiedExperts: boolean;
4667
- audience: {
4668
- languages: {
4669
- type: 'or' | 'and';
4670
- values: {
4671
- value: string;
4672
- }[];
4673
- };
4674
- specializations: {
4675
- type: 'or' | 'and';
4676
- values: {
4677
- value: string;
4678
- qualificationId: string;
4679
- }[];
4680
- };
4681
- countries: {
4682
- type: 'or';
4683
- values: string[];
4684
- };
4685
- };
4686
- pricePerTask: number;
4687
- timeForTask: number;
4688
- perExpertCapEnabled?: boolean;
4689
- perExpertCapValue?: number;
4690
- expertListId?: string | null;
4691
- audienceType: 'human';
4692
- };
4693
- entities: {
4694
- input: ({
4695
- fieldProxyId: string;
4696
- entityType: string;
4697
- optional: boolean;
4698
- jsonPath: string;
4699
- description: string;
4700
- relations?: ({
4701
- id: string;
4702
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4703
- } | {
4704
- id: string;
4705
- rel_type: 'conditional';
4706
- condition: {
4707
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4708
- value: string | string[];
4709
- };
4710
- })[];
4711
- minDurationSeconds?: number;
4712
- maxDurationSeconds?: number;
4713
- allowedLabels?: {
4714
- label: string;
4715
- value: string;
4716
- }[];
4717
- dynamic: false;
4718
- maxEntities?: null;
4719
- } | {
4720
- fieldProxyId: string;
4721
- entityType: string;
4722
- optional: boolean;
4723
- jsonPath: string;
4724
- description: string;
4725
- relations?: ({
4726
- id: string;
4727
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4728
- } | {
4729
- id: string;
4730
- rel_type: 'conditional';
4731
- condition: {
4732
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4733
- value: string | string[];
4734
- };
4735
- })[];
4736
- minDurationSeconds?: number;
4737
- maxDurationSeconds?: number;
4738
- allowedLabels?: {
4739
- label: string;
4740
- value: string;
4741
- }[];
4742
- dynamic: true;
4743
- maxEntities?: number | null;
4744
- })[];
4745
- output: ({
4746
- fieldProxyId: string;
4747
- entityType: string;
4748
- optional: boolean;
4749
- jsonPath: string;
4750
- description: string;
4751
- relations?: ({
4752
- id: string;
4753
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4754
- } | {
4755
- id: string;
4756
- rel_type: 'conditional';
4757
- condition: {
4758
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4759
- value: string | string[];
4760
- };
4761
- })[];
4762
- minDurationSeconds?: number;
4763
- maxDurationSeconds?: number;
4764
- allowedLabels?: {
4765
- label: string;
4766
- value: string;
4767
- }[];
4768
- dynamic: false;
4769
- maxEntities?: null;
4770
- } | {
4771
- fieldProxyId: string;
4772
- entityType: string;
4773
- optional: boolean;
4774
- jsonPath: string;
4775
- description: string;
4776
- relations?: ({
4777
- id: string;
4778
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4779
- } | {
4780
- id: string;
4781
- rel_type: 'conditional';
4782
- condition: {
4783
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4784
- value: string | string[];
2312
+ export type EstimatePipelineCostBodyItemFilter = {
2313
+ fieldValues?: DatasetFieldValueConditions;
2314
+ fieldSources?: DatasetFieldSourceConditions;
2315
+ missingRevisionFields?: string[];
2316
+ slice?: DatasetSliceSelection;
2317
+ parts?: DatasetSplitPartInclusion;
2318
+ excludeParts?: DatasetSplitPartExclusions;
2319
+ createdBefore?: string;
4785
2320
  };
4786
- })[];
4787
- minDurationSeconds?: number;
4788
- maxDurationSeconds?: number;
4789
- allowedLabels?: {
4790
- label: string;
4791
- value: string;
4792
- }[];
4793
- dynamic: true;
4794
- maxEntities?: number | null;
4795
- })[];
2321
+
2322
+ export type EstimatePipelineCostBody = {
2323
+ itemLimit?: number;
2324
+ itemFilter?: EstimatePipelineCostBodyItemFilter;
4796
2325
  };
4797
- qualityCriteria: {
4798
- id: string;
4799
- qualityElement: string;
4800
- thresholds: {
4801
- pass: string;
4802
- fail: string;
2326
+
2327
+ export type ListPipelineRunsParams = {
2328
+ limit?: number;
2329
+ offset?: number;
4803
2330
  };
4804
- targetEntity: string;
4805
- llmQaInstruction?: string;
4806
- }[];
4807
- offboardingRules?: {
4808
- id: string;
4809
- type?: 'mv_agreement';
4810
- agreementScale?: string;
4811
- }[];
4812
- instruction: string;
4813
- ui: {
4814
- code: string;
4815
- data: string;
4816
- preprocess: string;
4817
- postprocess?: string;
4818
- constants: string;
2331
+
2332
+ export type ListPipelineRuns200 = {
2333
+ runs: RunSummary[];
2334
+ pagination: Pagination;
4819
2335
  };
4820
- qualityAssurance?: {
4821
- qaMode: 'llm_only';
4822
- llmQaModelId?: 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
4823
- } | {
4824
- qaMode: 'none';
2336
+
2337
+ export type CancelPipelineRunBodyPendingHumanQa = 'accept_without_review' | 'wait_for_review';
2338
+ export type CancelPipelineRunBody = {
2339
+ pendingHumanQa?: CancelPipelineRunBodyPendingHumanQa;
4825
2340
  };
4826
- overlap: number;
4827
- onboarding: {
4828
- enabled: boolean;
4829
- steps: ({
4830
- id: string;
4831
- blocks?: ({
4832
- id: string;
4833
- type: 'info';
4834
- estimatedTime: string;
4835
- role: string;
4836
- goal: string;
4837
- successCriteria: string;
4838
- } | {
4839
- id: string;
4840
- type: 'text';
4841
- title?: string;
4842
- content?: {
4843
- type: 'markdown';
4844
- value: string;
4845
- }[];
4846
- } | {
4847
- id: string;
4848
- type: 'quiz';
4849
- title?: string;
4850
- content?: {
4851
- type: 'markdown';
4852
- value: string;
4853
- }[];
4854
- questions: ({
4855
- id: string;
4856
- type: 'single-choice' | 'multiple-choice';
4857
- title?: string;
4858
- question: string;
4859
- hint?: string;
4860
- correctAnswerFeedback?: string;
4861
- incorrectAnswerFeedback?: string;
4862
- options: {
4863
- value: string;
4864
- label: string;
4865
- }[];
4866
- correctAnswer: string | string[];
4867
- })[];
2341
+
2342
+ export type SampleDatasetItemsBody = {
2343
+ markField: string;
2344
+ markValue: string;
2345
+ itemFilter?: DatasetItemFilter;
2346
+ count: number;
4868
2347
  } | {
4869
- id: string;
4870
- type: 'practice';
4871
- title?: string;
4872
- content?: {
4873
- type: 'markdown';
4874
- value: string;
4875
- }[];
4876
- imageUrl?: string;
4877
- editorType?: string;
4878
- editorConfig?: {
4879
- rows?: number;
4880
- language?: string;
4881
- placeholder?: string;
2348
+ markField: string;
2349
+ markValue: string;
2350
+ itemFilter?: DatasetItemFilter;
2351
+ fraction: number;
4882
2352
  };
4883
- validators?: {
4884
- id: string;
4885
- name: string;
4886
- description: string;
4887
- criteria: string;
4888
- }[];
4889
- } | {
4890
- id: string;
4891
- type: 'examples';
4892
- title?: string;
4893
- examples: ({
4894
- id: string;
4895
- input: {[key: string]: unknown};
4896
- checks: ({
4897
- type: 'exact';
4898
- path: string;
4899
- golden: unknown;
4900
- hint: string;
4901
- } | {
4902
- type: 'code';
4903
- code: string;
4904
- hint: string;
4905
- } | {
4906
- type: 'llm';
4907
- paths: string[];
4908
- criteria: string;
4909
- reference?: string;
4910
- hint?: string;
4911
- imageUrl?: string;
4912
- })[];
4913
- explanation?: string;
4914
- sourceItemId?: string;
4915
- })[];
2353
+
2354
+ export type CreateDatasetSliceBody = {
2355
+ name?: string;
2356
+ itemFilter?: {
2357
+ fieldValues?: DatasetFieldValueConditions;
2358
+ fieldSources?: DatasetFieldSourceConditions;
2359
+ missingRevisionFields?: string[];
2360
+ };
2361
+ frozenColumns?: string[];
4916
2362
  } | {
4917
- id: string;
4918
- type: 'consent';
4919
- title?: string;
4920
- content?: {
4921
- type: 'markdown';
4922
- value: string;
4923
- }[];
4924
- consentLabel: string;
4925
- })[];
4926
- })[];
4927
- info: {
4928
- estimatedTime: string;
4929
- role: string;
4930
- goal: string;
4931
- successCriteria: string;
2363
+ name?: string;
2364
+ fromSlice: string;
2365
+ frozenColumns?: string[];
4932
2366
  };
2367
+
2368
+ export type ListDatasetSlicesParams = {
2369
+ limit?: number;
2370
+ offset?: number;
4933
2371
  };
4934
- exam?: {
4935
- enabled: boolean;
4936
- gradedEntities: ({
4937
- targetEntity: string;
4938
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
4939
- groundTruthType: 'direct' | 'custom';
4940
- customInstruction: string;
4941
- disabledCriterionIds: string[];
4942
- })[];
4943
- goldenDatasetId?: string;
4944
- tasksPerExpert: number;
4945
- passThreshold: number;
2372
+
2373
+ export type ListDatasetSlices200 = {
2374
+ slices: DatasetSlice[];
2375
+ pagination: Pagination;
4946
2376
  };
4947
- reuseAudienceWithNodeId?: {
4948
- pipelineId: string;
4949
- nodeId: string;
4950
- } | null;
4951
- audienceMode?: 'legacy' | 'service';
4952
- smartSearch?: {
4953
- briefDescription: string;
4954
- projectDescription: string | null;
4955
- extraHardRequirements: string[];
4956
- relevanceCriteria: string[];
4957
- typicalJobTitles: string[];
4958
- idealCandidateProfile: string;
4959
- whoIsNotAFit: string[];
4960
- sourceFingerprint?: string;
4961
- } | null;
4962
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', ({
4963
- id: string;
2377
+
2378
+ export type SplitDatasetBodyPartsItemRolesItem = 'train' | 'validate' | 'test';
2379
+ export type SplitDatasetBodyPartsItem = {
4964
2380
  name: string;
4965
- input: string | {[key: string]: string};
4966
- })[]>>;
4967
- };
2381
+ roles: SplitDatasetBodyPartsItemRolesItem[];
2382
+ share?: number;
4968
2383
  };
4969
2384
 
4970
- export type ValidatePipelineGraphBodyGraphConnectionsItemFrom = {
4971
- node: string;
4972
- handle: string;
2385
+ export type SplitDatasetBodyItemFilter = {
2386
+ fieldValues?: DatasetFieldValueConditions;
2387
+ fieldSources?: DatasetFieldSourceConditions;
2388
+ missingRevisionFields?: string[];
4973
2389
  };
4974
2390
 
4975
- export type ValidatePipelineGraphBodyGraphConnectionsItemTo = {
4976
- node: string;
4977
- handle: string;
2391
+ export type SplitDatasetBody = {
2392
+ column?: string;
2393
+ parts?: SplitDatasetBodyPartsItem[];
2394
+ balanceBy?: string;
2395
+ seed?: number;
2396
+ slice?: string;
2397
+ itemFilter?: SplitDatasetBodyItemFilter;
4978
2398
  };
4979
2399
 
4980
- export type ValidatePipelineGraphBodyGraphConnectionsItemSettings = {[key: string]: unknown};
4981
-
4982
- export type ValidatePipelineGraphBodyGraphConnectionsItem = {
4983
- from: ValidatePipelineGraphBodyGraphConnectionsItemFrom;
4984
- to: ValidatePipelineGraphBodyGraphConnectionsItemTo;
4985
- settings: ValidatePipelineGraphBodyGraphConnectionsItemSettings;
2400
+ export type CreateDatasetExportBodyFormat = 'json-array';
2401
+ export type CreateDatasetExportBody = {
2402
+ format?: CreateDatasetExportBodyFormat;
2403
+ fields: string[];
4986
2404
  };
4987
2405
 
4988
- export type ValidatePipelineGraphBodyGraphLayout = {[key: string]: {[key: string]: [number, number]}};
2406
+ export type CreateDatasetFieldsFromUploadedRowsBody = {
2407
+ names: string[];
2408
+ };
4989
2409
 
4990
- export type ValidatePipelineGraphBodyGraph = {
4991
- version: 1;
4992
- fields: ValidatePipelineGraphBodyGraphFieldsItem[];
4993
- nodes: ValidatePipelineGraphBodyGraphNodesItem[];
4994
- connections: ValidatePipelineGraphBodyGraphConnectionsItem[];
4995
- layout?: ValidatePipelineGraphBodyGraphLayout;
2410
+ export type ReplacePipelineGraphBody = {
2411
+ graph: PipelineGraphV1;
2412
+ expectedVersion?: PipelineGraphVersion;
4996
2413
  };
4997
2414
 
4998
2415
  export type ValidatePipelineGraphBody = {
4999
- graph: ValidatePipelineGraphBodyGraph;
2416
+ graph: PipelineGraphV1;
5000
2417
  };
5001
2418
 
5002
2419
  export type PatchPipelineNodeBodySettings = {[key: string]: unknown};
@@ -5057,58 +2474,13 @@ export type CreatePipelineCheckBody = {
5057
2474
  checkId: string;
5058
2475
  };
5059
2476
 
5060
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
5061
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItemSourcesItem = {
5062
- type: 'user';
5063
- userId: string;
5064
- } | {
5065
- type: 'system';
5066
- source: string;
5067
- };
5068
-
5069
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItem = {
5070
- jsonPath: string;
5071
- operator: CreateBatchInferenceRunBodyItemFilterFieldValuesItemOperator;
5072
- value: string | number | boolean | null;
5073
- fieldId: string;
5074
- latestOnly?: boolean;
5075
- sources?: CreateBatchInferenceRunBodyItemFilterFieldValuesItemSourcesItem[];
5076
- };
5077
-
5078
- export type CreateBatchInferenceRunBodyItemFilterFieldSourcesItemSourcesItem = {
5079
- type: 'user';
5080
- userId: string;
5081
- } | {
5082
- type: 'system';
5083
- source: string;
5084
- };
5085
-
5086
- export type CreateBatchInferenceRunBodyItemFilterFieldSourcesItem = {
5087
- fieldId: string;
5088
- sources: CreateBatchInferenceRunBodyItemFilterFieldSourcesItemSourcesItem[];
5089
- };
5090
-
5091
- export type CreateBatchInferenceRunBodyItemFilterSlice = {
5092
- sliceId: string;
5093
- };
5094
-
5095
- export type CreateBatchInferenceRunBodyItemFilterParts = {
5096
- fieldId: string;
5097
- names: string[];
5098
- };
5099
-
5100
- export type CreateBatchInferenceRunBodyItemFilterExcludePartsItem = {
5101
- fieldId: string;
5102
- names: string[];
5103
- };
5104
-
5105
2477
  export type CreateBatchInferenceRunBodyItemFilter = {
5106
- fieldValues?: CreateBatchInferenceRunBodyItemFilterFieldValuesItem[];
5107
- fieldSources?: CreateBatchInferenceRunBodyItemFilterFieldSourcesItem[];
2478
+ fieldValues?: DatasetFieldValueConditions;
2479
+ fieldSources?: DatasetFieldSourceConditions;
5108
2480
  missingRevisionFields?: string[];
5109
- slice?: CreateBatchInferenceRunBodyItemFilterSlice;
5110
- parts?: CreateBatchInferenceRunBodyItemFilterParts;
5111
- excludeParts?: CreateBatchInferenceRunBodyItemFilterExcludePartsItem[];
2481
+ slice?: DatasetSliceSelection;
2482
+ parts?: DatasetSplitPartInclusion;
2483
+ excludeParts?: DatasetSplitPartExclusions;
5112
2484
  };
5113
2485
 
5114
2486
  export type CreateBatchInferenceRunBodySampling = {