@toloka-platform/sdk 0.19.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -824,6 +517,60 @@ export interface Specialization {
824
517
  expertsCount: number;
825
518
  }
826
519
 
520
+ export interface ExpertList {
521
+ id: string;
522
+ projectId: ProjectId;
523
+ name: string;
524
+ hidden: boolean;
525
+ expertCount: number;
526
+ createdAt: string;
527
+ updatedAt: string;
528
+ }
529
+
530
+ export interface ExpertListStats {
531
+ available: number;
532
+ pending: number;
533
+ unavailable: number;
534
+ notFound: number;
535
+ banned: number;
536
+ }
537
+
538
+ export interface ExpertListDetails {
539
+ id: string;
540
+ projectId: ProjectId;
541
+ name: string;
542
+ hidden: boolean;
543
+ expertCount: number;
544
+ createdAt: string;
545
+ updatedAt: string;
546
+ stats: ExpertListStats;
547
+ }
548
+
549
+ export interface ExpertChangeResult {
550
+ changedCount: number;
551
+ }
552
+
553
+ export type ExpertBanListDetailsStats = {
554
+ pending: number;
555
+ banned: number;
556
+ notFound: number;
557
+ unbanning: number;
558
+ };
559
+
560
+ export interface ExpertBanListDetails {
561
+ projectId: ProjectId;
562
+ expertCount: number;
563
+ stats: ExpertBanListDetailsStats;
564
+ }
565
+
566
+ export type ExpertBanListExpertStatus = 'pending' | 'banned' | 'not_found' | 'unbanning' | 'unbanned';
567
+ export interface ExpertBanListExpert {
568
+ expertId: string;
569
+ reason: string;
570
+ status: ExpertBanListExpertStatus;
571
+ createdAt: string;
572
+ }
573
+
827
574
  export type GenerationBudgetReasoningEffort = 'low' | 'medium' | 'high';
828
575
  export interface GenerationBudget {
829
576
  reasoningEffort?: GenerationBudgetReasoningEffort;
@@ -904,6 +651,38 @@ export interface Dataset {
904
651
 
905
652
  export type DatasetFieldId = string;
906
653
 
654
+ export interface JsonSchemaProperties {[key: string]: JsonSchema}
655
+
656
+ export type JsonValue = string | number | boolean | null | (JsonValue | null)[] | {[key: string]: JsonValue | null};
657
+
658
+ export interface JsonSchema {
659
+ type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
660
+ properties?: JsonSchemaProperties;
661
+ required?: string[];
662
+ additionalProperties?: boolean | JsonSchema;
663
+ items?: JsonSchema;
664
+ minItems?: number;
665
+ maxItems?: number;
666
+ uniqueItems?: boolean;
667
+ enum?: (JsonValue | null)[];
668
+ const?: JsonValue | null;
669
+ minimum?: number;
670
+ maximum?: number;
671
+ exclusiveMinimum?: number;
672
+ exclusiveMaximum?: number;
673
+ minLength?: number;
674
+ maxLength?: number;
675
+ pattern?: string;
676
+ format?: string;
677
+ title?: string;
678
+ description?: string;
679
+ default?: JsonValue | null;
680
+ examples?: (JsonValue | null)[];
681
+ anyOf?: JsonSchema[];
682
+ oneOf?: JsonSchema[];
683
+ allOf?: JsonSchema[];
684
+ }
685
+
907
686
  export interface DatasetFieldCopyOperation {
908
687
  type: 'copy';
909
688
  sourceFieldId: DatasetFieldId;
@@ -929,34 +708,6 @@ export interface DatasetFieldWriteOperation {
929
708
 
930
709
  export type DatasetFieldOperation = DatasetFieldCopyOperation | DatasetFieldSplitFillOperation | DatasetFieldWriteOperation;
931
710
 
932
- export type DatasetFieldJsonSchema = {
933
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
934
- properties?: unknown;
935
- required?: string[];
936
- additionalProperties?: boolean | unknown;
937
- items?: unknown;
938
- minItems?: number;
939
- maxItems?: number;
940
- uniqueItems?: boolean;
941
- enum?: unknown[];
942
- const?: unknown;
943
- minimum?: number;
944
- maximum?: number;
945
- exclusiveMinimum?: number;
946
- exclusiveMaximum?: number;
947
- minLength?: number;
948
- maxLength?: number;
949
- pattern?: string;
950
- format?: string;
951
- title?: string;
952
- description?: string;
953
- default?: unknown;
954
- examples?: unknown[];
955
- anyOf?: unknown[];
956
- oneOf?: unknown[];
957
- allOf?: unknown[];
958
- };
959
-
960
711
  export type DatasetFieldSplitPartsItemRolesItem = 'train' | 'validate' | 'test';
961
712
  export type DatasetFieldSplitPartsItem = {
962
713
  name: string;
@@ -1007,46 +758,18 @@ export interface DatasetField {
1007
758
  id: DatasetFieldId;
1008
759
  name: string;
1009
760
  description: string | null;
1010
- jsonSchema: DatasetFieldJsonSchema;
761
+ jsonSchema: JsonSchema;
1011
762
  internal: boolean;
1012
763
  split: DatasetFieldSplit;
1013
764
  operations: DatasetFieldOperation[];
1014
765
  createdAt: string;
1015
766
  }
1016
767
 
1017
- export type InferredFieldJsonSchema = {
1018
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
1019
- properties?: unknown;
1020
- required?: string[];
1021
- additionalProperties?: boolean | unknown;
1022
- items?: unknown;
1023
- minItems?: number;
1024
- maxItems?: number;
1025
- uniqueItems?: boolean;
1026
- enum?: unknown[];
1027
- const?: unknown;
1028
- minimum?: number;
1029
- maximum?: number;
1030
- exclusiveMinimum?: number;
1031
- exclusiveMaximum?: number;
1032
- minLength?: number;
1033
- maxLength?: number;
1034
- pattern?: string;
1035
- format?: string;
1036
- title?: string;
1037
- description?: string;
1038
- default?: unknown;
1039
- examples?: unknown[];
1040
- anyOf?: unknown[];
1041
- oneOf?: unknown[];
1042
- allOf?: unknown[];
1043
- };
1044
-
1045
768
  export interface InferredField {
1046
769
  name: string;
1047
770
  jsonPath: string;
1048
771
  depth: number;
1049
- jsonSchema: InferredFieldJsonSchema;
772
+ jsonSchema: JsonSchema;
1050
773
  }
1051
774
 
1052
775
  export type UploadId = string;
@@ -1064,35 +787,39 @@ export interface UploadJob {
1064
787
  result: UploadJobResult;
1065
788
  }
1066
789
 
1067
- export interface JsonSchema {
1068
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
1069
- properties?: unknown;
1070
- required?: string[];
1071
- additionalProperties?: boolean | unknown;
1072
- items?: unknown;
1073
- minItems?: number;
1074
- maxItems?: number;
1075
- uniqueItems?: boolean;
1076
- enum?: unknown[];
1077
- const?: unknown;
1078
- minimum?: number;
1079
- maximum?: number;
1080
- exclusiveMinimum?: number;
1081
- exclusiveMaximum?: number;
1082
- minLength?: number;
1083
- maxLength?: number;
1084
- pattern?: string;
1085
- format?: string;
1086
- title?: string;
1087
- description?: string;
1088
- default?: unknown;
1089
- examples?: unknown[];
1090
- anyOf?: unknown[];
1091
- oneOf?: unknown[];
1092
- allOf?: unknown[];
790
+ export type PipelineGraphVersion = string;
791
+
792
+ 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';
793
+ export type CostBreakdownLineFormulaExpected = {
794
+ text: string;
795
+ explanation?: string;
796
+ };
797
+
798
+ export type CostBreakdownLineFormula = {
799
+ expected: CostBreakdownLineFormulaExpected;
800
+ max: string;
801
+ };
802
+
803
+ export interface CostBreakdownLine {
804
+ label: string;
805
+ labelTooltip?: string;
806
+ lineId?: CostBreakdownLineLineId;
807
+ pricePerUnit: string;
808
+ quantity: string;
809
+ expectedTotal: string;
810
+ maxTotal: string;
811
+ formula?: CostBreakdownLineFormula;
812
+ criterionId?: string;
813
+ criterionLabel?: string;
814
+ subLines?: CostBreakdownLineSubLinesItem[];
1093
815
  }
1094
816
 
1095
- export type PipelineGraphVersion = string;
817
+ export type CostBreakdownLineSubLinesItem = CostBreakdownLine | {
818
+ label: string;
819
+ labelTooltip?: string;
820
+ 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';
821
+ pricePerUnit: string;
822
+ };
1096
823
 
1097
824
  export type PipelineCostEstimateDataset = {
1098
825
  datasetId: string;
@@ -1132,7 +859,7 @@ export type PipelineCostEstimateNodesItem = {
1132
859
  expectedTotal: string;
1133
860
  maxTotal: string;
1134
861
  perItemExpected: string | null;
1135
- displayBreakdown: unknown[];
862
+ displayBreakdown: CostBreakdownLine[];
1136
863
  warning?: string;
1137
864
  };
1138
865
 
@@ -1194,40 +921,9 @@ export interface SampleJob {
1194
921
  createdAt: string;
1195
922
  }
1196
923
 
1197
- export type DatasetSliceItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
1198
- export type DatasetSliceItemFilterFieldValuesItemSourcesItem = {
1199
- type: 'user';
1200
- userId: string;
1201
- } | {
1202
- type: 'system';
1203
- source: string;
1204
- };
1205
-
1206
- export type DatasetSliceItemFilterFieldValuesItem = {
1207
- jsonPath: string;
1208
- operator: DatasetSliceItemFilterFieldValuesItemOperator;
1209
- value: string | number | boolean | null;
1210
- fieldId: string;
1211
- latestOnly?: boolean;
1212
- sources?: DatasetSliceItemFilterFieldValuesItemSourcesItem[];
1213
- };
1214
-
1215
- export type DatasetSliceItemFilterFieldSourcesItemSourcesItem = {
1216
- type: 'user';
1217
- userId: string;
1218
- } | {
1219
- type: 'system';
1220
- source: string;
1221
- };
1222
-
1223
- export type DatasetSliceItemFilterFieldSourcesItem = {
1224
- fieldId: string;
1225
- sources: DatasetSliceItemFilterFieldSourcesItemSourcesItem[];
1226
- };
1227
-
1228
924
  export type DatasetSliceItemFilter = {
1229
- fieldValues?: DatasetSliceItemFilterFieldValuesItem[];
1230
- fieldSources?: DatasetSliceItemFilterFieldSourcesItem[];
925
+ fieldValues?: DatasetFieldValueConditions;
926
+ fieldSources?: DatasetFieldSourceConditions;
1231
927
  missingRevisionFields?: string[];
1232
928
  } | null;
1233
929
 
@@ -1316,93 +1012,85 @@ export interface InvalidFieldSchema {
1316
1012
  reason: string;
1317
1013
  }
1318
1014
 
1319
- export type PipelineGraphSnapshotGraphFieldsItem = {
1015
+ export type RootNodeSettingsItemFilter = {
1016
+ fieldValues?: DatasetFieldValueConditions;
1017
+ fieldSources?: DatasetFieldSourceConditions;
1018
+ missingRevisionFields?: string[];
1019
+ slice?: DatasetSliceSelection;
1020
+ parts?: DatasetSplitPartInclusion;
1021
+ excludeParts?: DatasetSplitPartExclusions;
1022
+ createdBefore?: string;
1023
+ };
1024
+
1025
+ export type RootNodeSettingsStartedFieldProxiesOutputItem = {
1320
1026
  id: string;
1321
- name: string;
1322
- jsonSchema: JsonSchema;
1027
+ optional: boolean;
1028
+ };
1029
+
1030
+ export type RootNodeSettingsStartedFieldProxies = {
1031
+ output: RootNodeSettingsStartedFieldProxiesOutputItem[];
1323
1032
  };
1324
1033
 
1325
- export type PipelineGraphSnapshotGraphNodesItem = {
1326
- id: string;
1327
- type: 'root';
1328
- settings: {
1329
- datasetId?: string;
1330
- itemFilter?: {
1331
- fieldValues?: ({
1332
- jsonPath: string;
1333
- operator: 'text_eq' | 'text_neq';
1334
- value: string | number | boolean | null;
1335
- fieldId: string;
1336
- latestOnly?: boolean;
1337
- sources?: ({
1338
- type: 'user';
1339
- userId: string;
1340
- } | {
1341
- type: 'system';
1342
- source: string;
1343
- })[];
1344
- })[];
1345
- fieldSources?: ({
1346
- fieldId: string;
1347
- sources: ({
1348
- type: 'user';
1349
- userId: string;
1350
- } | {
1351
- type: 'system';
1352
- source: string;
1353
- })[];
1354
- })[];
1355
- missingRevisionFields?: string[];
1356
- slice?: {
1357
- sliceId: string;
1358
- };
1359
- parts?: {
1360
- fieldId: string;
1361
- names: string[];
1362
- };
1363
- excludeParts?: {
1364
- fieldId: string;
1365
- names: string[];
1366
- }[];
1367
- createdBefore?: string;
1368
- };
1369
- itemLimit?: number;
1370
- startedFieldProxies: {
1371
- output: {
1372
- id: string;
1373
- optional: boolean;
1374
- }[];
1375
- };
1376
- completedFieldProxies: {
1377
- input: {
1034
+ export type RootNodeSettingsCompletedFieldProxiesInputItem = {
1378
1035
  id: string;
1379
1036
  optional: boolean;
1380
- }[];
1381
1037
  };
1038
+
1039
+ export type RootNodeSettingsCompletedFieldProxies = {
1040
+ input: RootNodeSettingsCompletedFieldProxiesInputItem[];
1382
1041
  };
1383
- } | {
1042
+
1043
+ export interface RootNodeSettings {
1044
+ datasetId?: string;
1045
+ itemFilter?: RootNodeSettingsItemFilter;
1046
+ itemLimit?: number;
1047
+ startedFieldProxies: RootNodeSettingsStartedFieldProxies;
1048
+ completedFieldProxies: RootNodeSettingsCompletedFieldProxies;
1049
+ }
1050
+
1051
+ export interface RootNode {
1384
1052
  id: string;
1385
- type: 'code';
1386
- settings: {
1387
- about: {
1053
+ type: 'root';
1054
+ settings: RootNodeSettings;
1055
+ }
1056
+
1057
+ export type NodeAboutProjectType = 'general' | 'data_collection';
1058
+ export interface NodeAbout {
1388
1059
  name: string;
1389
1060
  description?: string;
1390
- projectType?: 'general' | 'data_collection';
1061
+ projectType?: NodeAboutProjectType;
1062
+ }
1063
+
1064
+ export type CheckTestCasesItemInput = string | {[key: string]: string};
1065
+
1066
+ export type CheckTestCasesItem = {
1067
+ id: string;
1068
+ name: string;
1069
+ input: CheckTestCasesItemInput;
1391
1070
  };
1392
- fieldProxies: {
1393
- input: {
1071
+
1072
+ export type CheckTestCases = CheckTestCasesItem[];
1073
+
1074
+ export type CodeNodeSettingsFieldProxiesInputItem = {
1394
1075
  id: string;
1395
1076
  optional: boolean;
1396
- }[];
1397
- output: {
1077
+ };
1078
+
1079
+ export type CodeNodeSettingsFieldProxiesOutputItem = {
1398
1080
  id: string;
1399
1081
  optional: boolean;
1400
- }[];
1401
1082
  };
1402
- code: {
1083
+
1084
+ export type CodeNodeSettingsFieldProxies = {
1085
+ input: CodeNodeSettingsFieldProxiesInputItem[];
1086
+ output: CodeNodeSettingsFieldProxiesOutputItem[];
1087
+ };
1088
+
1089
+ export type CodeNodeSettingsCode = {
1403
1090
  code: string;
1404
1091
  };
1405
- envVars?: ({
1092
+
1093
+ export type CodeNodeSettingsEnvVarsItem = {
1406
1094
  type: 'static';
1407
1095
  name: string;
1408
1096
  value: string;
@@ -1410,76 +1098,23 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1410
1098
  type: 'secret';
1411
1099
  name: string;
1412
1100
  secretName: string;
1413
- })[];
1414
- checks?: Partial<Record<'code', ({
1415
- id: string;
1416
- name: string;
1417
- input: string | {[key: string]: string};
1418
- })[]>>;
1419
- };
1420
- } | {
1421
- id: string;
1422
- type: 'generation';
1423
- settings: {
1424
- about: {
1425
- name: string;
1426
- description?: string;
1427
- projectType?: 'general' | 'data_collection';
1428
- };
1429
- publicName: string;
1430
- entities: {
1431
- input: ({
1432
- fieldProxyId: string;
1433
- entityType: string;
1434
- optional: boolean;
1435
- jsonPath: string;
1436
- description: string;
1437
- relations?: ({
1438
- id: string;
1439
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1440
- } | {
1441
- id: string;
1442
- rel_type: 'conditional';
1443
- condition: {
1444
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1445
- value: string | string[];
1446
1101
  };
1447
- })[];
1448
- minDurationSeconds?: number;
1449
- maxDurationSeconds?: number;
1450
- allowedLabels?: {
1451
- label: string;
1452
- value: string;
1453
- }[];
1454
- dynamic: false;
1455
- maxEntities?: null;
1456
- } | {
1457
- fieldProxyId: string;
1458
- entityType: string;
1459
- optional: boolean;
1460
- jsonPath: string;
1461
- description: string;
1462
- relations?: ({
1463
- id: string;
1464
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1465
- } | {
1102
+
1103
+ export interface CodeNodeSettings {
1104
+ about: NodeAbout;
1105
+ fieldProxies: CodeNodeSettingsFieldProxies;
1106
+ code: CodeNodeSettingsCode;
1107
+ envVars?: CodeNodeSettingsEnvVarsItem[];
1108
+ checks?: Partial<Record<'code', CheckTestCases>>;
1109
+ }
1110
+
1111
+ export interface CodeNode {
1466
1112
  id: string;
1467
- rel_type: 'conditional';
1468
- condition: {
1469
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1470
- value: string | string[];
1471
- };
1472
- })[];
1473
- minDurationSeconds?: number;
1474
- maxDurationSeconds?: number;
1475
- allowedLabels?: {
1476
- label: string;
1477
- value: string;
1478
- }[];
1479
- dynamic: true;
1480
- maxEntities?: number | null;
1481
- })[];
1482
- output: ({
1113
+ type: 'code';
1114
+ settings: CodeNodeSettings;
1115
+ }
1116
+
1117
+ export type TaskEntity = {
1483
1118
  fieldProxyId: string;
1484
1119
  entityType: string;
1485
1120
  optional: boolean;
@@ -1529,77 +1164,81 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1529
1164
  }[];
1530
1165
  dynamic: true;
1531
1166
  maxEntities?: number | null;
1532
- })[];
1533
1167
  };
1534
- qualityCriteria: {
1535
- id: string;
1536
- qualityElement: string;
1537
- thresholds: {
1168
+
1169
+ export interface TaskEntities {
1170
+ input: TaskEntity[];
1171
+ output: TaskEntity[];
1172
+ }
1173
+
1174
+ export type QualityCriteriaItemThresholds = {
1538
1175
  pass: string;
1539
1176
  fail: string;
1540
1177
  };
1178
+
1179
+ export type QualityCriteriaItem = {
1180
+ id: string;
1181
+ qualityElement: string;
1182
+ thresholds: QualityCriteriaItemThresholds;
1541
1183
  targetEntity: string;
1542
1184
  llmQaInstruction?: string;
1543
- }[];
1544
- instruction: string;
1545
- ui: {
1185
+ };
1186
+
1187
+ export type QualityCriteria = QualityCriteriaItem[];
1188
+
1189
+ export interface LabelingInterface {
1546
1190
  code: string;
1547
1191
  data: string;
1548
1192
  preprocess: string;
1549
1193
  postprocess?: string;
1550
1194
  constants: string;
1551
- };
1552
- qualityAssurance?: {
1553
- qaMode: 'llm_only';
1554
- 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';
1555
- } | {
1556
- qaMode: 'human_only';
1557
- smartSamplingPercent?: number;
1558
- humanQaTimeForTask?: number;
1559
- } | {
1560
- qaMode: 'hybrid';
1561
- smartSamplingPercent?: number;
1562
- humanQaTimeForTask?: number;
1563
- 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';
1564
- };
1565
- audienceAndPricing?: {
1566
- verifiedExperts: boolean;
1567
- audience: {
1568
- languages: {
1569
- type: 'or' | 'and';
1570
- values: {
1195
+ }
1196
+
1197
+ export type HumanAudienceAndPricingAudienceLanguagesType = 'or' | 'and';
1198
+ export type HumanAudienceAndPricingAudienceSpecializationsType = 'or' | 'and';
1199
+ export type HumanAudienceAndPricingAudienceCountriesType = 'or';
1200
+ export type HumanAudienceAndPricingAudienceLanguagesValuesItem = {
1571
1201
  value: string;
1572
- }[];
1573
1202
  };
1574
- specializations: {
1575
- type: 'or' | 'and';
1576
- values: {
1203
+
1204
+ export type HumanAudienceAndPricingAudienceLanguages = {
1205
+ type: HumanAudienceAndPricingAudienceLanguagesType;
1206
+ values: HumanAudienceAndPricingAudienceLanguagesValuesItem[];
1207
+ };
1208
+
1209
+ export type HumanAudienceAndPricingAudienceSpecializationsValuesItem = {
1577
1210
  value: string;
1578
1211
  qualificationId: string;
1579
- }[];
1580
1212
  };
1581
- countries: {
1582
- type: 'or';
1213
+
1214
+ export type HumanAudienceAndPricingAudienceSpecializations = {
1215
+ type: HumanAudienceAndPricingAudienceSpecializationsType;
1216
+ values: HumanAudienceAndPricingAudienceSpecializationsValuesItem[];
1217
+ };
1218
+
1219
+ export type HumanAudienceAndPricingAudienceCountries = {
1220
+ type: HumanAudienceAndPricingAudienceCountriesType;
1583
1221
  values: string[];
1584
1222
  };
1223
+
1224
+ export type HumanAudienceAndPricingAudience = {
1225
+ languages: HumanAudienceAndPricingAudienceLanguages;
1226
+ specializations: HumanAudienceAndPricingAudienceSpecializations;
1227
+ countries: HumanAudienceAndPricingAudienceCountries;
1585
1228
  };
1229
+
1230
+ export interface HumanAudienceAndPricing {
1231
+ verifiedExperts: boolean;
1232
+ audience: HumanAudienceAndPricingAudience;
1586
1233
  pricePerTask: number;
1587
1234
  timeForTask: number;
1588
1235
  perExpertCapEnabled?: boolean;
1589
1236
  perExpertCapValue?: number;
1237
+ expertListId?: string | null;
1590
1238
  audienceType: 'human';
1591
- } | {
1592
- audienceType: 'synthetic';
1593
- 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';
1594
- reasoningEffort?: 'low' | 'medium' | 'high';
1595
- llmInstruction?: string;
1596
- maxCostPerAttempt: number;
1597
- };
1598
- onboarding: {
1599
- enabled: boolean;
1600
- steps: ({
1601
- id: string;
1602
- blocks?: ({
1239
+ }
1240
+
1241
+ export type OnboardingStepsItemBlocksItem = {
1603
1242
  id: string;
1604
1243
  type: 'info';
1605
1244
  estimatedTime: string;
@@ -1663,11 +1302,11 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1663
1302
  title?: string;
1664
1303
  examples: ({
1665
1304
  id: string;
1666
- input: {[key: string]: unknown};
1305
+ input: {[key: string]: JsonValue | null};
1667
1306
  checks: ({
1668
1307
  type: 'exact';
1669
1308
  path: string;
1670
- golden: unknown;
1309
+ golden: JsonValue | null;
1671
1310
  hint: string;
1672
1311
  } | {
1673
1312
  type: 'code';
@@ -1693,33 +1332,46 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1693
1332
  value: string;
1694
1333
  }[];
1695
1334
  consentLabel: string;
1696
- })[];
1697
- })[];
1698
- info: {
1335
+ };
1336
+
1337
+ export type OnboardingStepsItem = {
1338
+ id: string;
1339
+ blocks?: OnboardingStepsItemBlocksItem[];
1340
+ };
1341
+
1342
+ export type OnboardingInfo = {
1699
1343
  estimatedTime: string;
1700
1344
  role: string;
1701
1345
  goal: string;
1702
1346
  successCriteria: string;
1703
1347
  };
1704
- };
1705
- exam?: {
1348
+
1349
+ export interface Onboarding {
1706
1350
  enabled: boolean;
1707
- gradedEntities: ({
1351
+ steps: OnboardingStepsItem[];
1352
+ info: OnboardingInfo;
1353
+ }
1354
+
1355
+ export type QualificationExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
1356
+ export type QualificationExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
1357
+ export type QualificationExamGradedEntitiesItem = {
1708
1358
  targetEntity: string;
1709
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
1710
- groundTruthType: 'direct' | 'custom';
1359
+ mode: QualificationExamGradedEntitiesItemMode;
1360
+ groundTruthType: QualificationExamGradedEntitiesItemGroundTruthType;
1711
1361
  customInstruction: string;
1712
1362
  disabledCriterionIds: string[];
1713
- })[];
1363
+ };
1364
+
1365
+ export interface QualificationExam {
1366
+ enabled: boolean;
1367
+ gradedEntities: QualificationExamGradedEntitiesItem[];
1714
1368
  goldenDatasetId?: string;
1715
1369
  tasksPerExpert: number;
1716
1370
  passThreshold: number;
1717
- };
1718
- reuseAudienceWithNodeId?: {
1719
- pipelineId: string;
1720
- nodeId: string;
1721
- } | null;
1722
- smartSearch?: {
1371
+ }
1372
+
1373
+ export type GenerationNodeSettingsAudienceMode = 'legacy' | 'service';
1374
+ export type SmartSearch = {
1723
1375
  briefDescription: string;
1724
1376
  projectDescription: string | null;
1725
1377
  extraHardRequirements: string[];
@@ -1729,381 +1381,176 @@ export type PipelineGraphSnapshotGraphNodesItem = {
1729
1381
  whoIsNotAFit: string[];
1730
1382
  sourceFingerprint?: string;
1731
1383
  } | null;
1732
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', ({
1733
- id: string;
1734
- name: string;
1735
- input: string | {[key: string]: string};
1736
- })[]>>;
1737
- };
1384
+
1385
+ export type GenerationNodeSettingsQualityAssurance = {
1386
+ qaMode: 'llm_only';
1387
+ 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';
1738
1388
  } | {
1739
- id: string;
1740
- type: 'match';
1741
- settings: {
1742
- about: {
1743
- name: string;
1744
- description?: string;
1745
- projectType?: 'general' | 'data_collection';
1746
- };
1747
- conditions: ({
1748
- name: string;
1749
- logic?: 'and' | 'or';
1750
- predicates: ({
1751
- fieldProxyId: string;
1752
- jsonPath: string;
1753
- operator: 'text_eq' | 'text_neq';
1754
- value: string | number | boolean | null;
1755
- })[];
1756
- })[];
1757
- fieldProxies: {
1758
- input: {
1759
- id: string;
1760
- optional: boolean;
1761
- }[];
1762
- };
1763
- };
1389
+ qaMode: 'human_only';
1390
+ smartSamplingPercent?: number;
1391
+ humanQaTimeForTask?: number;
1392
+ expertListId?: string | null;
1764
1393
  } | {
1765
- id: string;
1766
- type: 'quorum';
1767
- settings: {
1768
- about: {
1769
- name: string;
1770
- description?: string;
1771
- projectType?: 'general' | 'data_collection';
1772
- };
1773
- publicName: string;
1774
- audienceAndPricing?: {
1775
- verifiedExperts: boolean;
1776
- audience: {
1777
- languages: {
1778
- type: 'or' | 'and';
1779
- values: {
1780
- value: string;
1781
- }[];
1782
- };
1783
- specializations: {
1784
- type: 'or' | 'and';
1785
- values: {
1786
- value: string;
1787
- qualificationId: string;
1788
- }[];
1789
- };
1790
- countries: {
1791
- type: 'or';
1792
- values: string[];
1793
- };
1394
+ qaMode: 'hybrid';
1395
+ smartSamplingPercent?: number;
1396
+ humanQaTimeForTask?: number;
1397
+ expertListId?: string | null;
1398
+ 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';
1794
1399
  };
1795
- pricePerTask: number;
1796
- timeForTask: number;
1797
- perExpertCapEnabled?: boolean;
1798
- perExpertCapValue?: number;
1799
- audienceType: 'human';
1400
+
1401
+ export type GenerationNodeSettingsAudienceAndPricing = HumanAudienceAndPricing | {
1402
+ audienceType: 'synthetic';
1403
+ 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';
1404
+ reasoningEffort?: 'low' | 'medium' | 'high';
1405
+ llmInstruction?: string;
1406
+ maxCostPerAttempt: number;
1800
1407
  };
1801
- entities: {
1802
- input: ({
1803
- fieldProxyId: string;
1804
- entityType: string;
1805
- optional: boolean;
1806
- jsonPath: string;
1807
- description: string;
1808
- relations?: ({
1809
- id: string;
1810
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1811
- } | {
1408
+
1409
+ export type GenerationNodeSettingsReuseAudienceWithNodeId = {
1410
+ pipelineId: string;
1411
+ nodeId: string;
1412
+ } | null;
1413
+
1414
+ export interface GenerationNodeSettings {
1415
+ about: NodeAbout;
1416
+ publicName: string;
1417
+ entities: TaskEntities;
1418
+ qualityCriteria: QualityCriteria;
1419
+ instruction: string;
1420
+ ui: LabelingInterface;
1421
+ qualityAssurance?: GenerationNodeSettingsQualityAssurance;
1422
+ audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
1423
+ onboarding: Onboarding;
1424
+ exam?: QualificationExam;
1425
+ reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
1426
+ audienceMode?: GenerationNodeSettingsAudienceMode;
1427
+ smartSearch?: SmartSearch | null;
1428
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', CheckTestCases>>;
1429
+ }
1430
+
1431
+ export interface GenerationNode {
1812
1432
  id: string;
1813
- rel_type: 'conditional';
1814
- condition: {
1815
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1816
- value: string | string[];
1817
- };
1818
- })[];
1819
- minDurationSeconds?: number;
1820
- maxDurationSeconds?: number;
1821
- allowedLabels?: {
1822
- label: string;
1823
- value: string;
1824
- }[];
1825
- dynamic: false;
1826
- maxEntities?: null;
1827
- } | {
1433
+ type: 'generation';
1434
+ settings: GenerationNodeSettings;
1435
+ }
1436
+
1437
+ export type MatchNodeSettingsConditionsItemLogic = 'and' | 'or';
1438
+ export type MatchNodeSettingsConditionsItemPredicatesItemOperator = 'text_eq' | 'text_neq';
1439
+ export type MatchNodeSettingsConditionsItemPredicatesItem = {
1828
1440
  fieldProxyId: string;
1829
- entityType: string;
1830
- optional: boolean;
1831
1441
  jsonPath: string;
1832
- description: string;
1833
- relations?: ({
1834
- id: string;
1835
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1836
- } | {
1837
- id: string;
1838
- rel_type: 'conditional';
1839
- condition: {
1840
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1841
- value: string | string[];
1442
+ operator: MatchNodeSettingsConditionsItemPredicatesItemOperator;
1443
+ value: string | number | boolean | null;
1842
1444
  };
1843
- })[];
1844
- minDurationSeconds?: number;
1845
- maxDurationSeconds?: number;
1846
- allowedLabels?: {
1847
- label: string;
1848
- value: string;
1849
- }[];
1850
- dynamic: true;
1851
- maxEntities?: number | null;
1852
- })[];
1853
- output: ({
1854
- fieldProxyId: string;
1855
- entityType: string;
1856
- optional: boolean;
1857
- jsonPath: string;
1858
- description: string;
1859
- relations?: ({
1860
- id: string;
1861
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1862
- } | {
1863
- id: string;
1864
- rel_type: 'conditional';
1865
- condition: {
1866
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1867
- value: string | string[];
1445
+
1446
+ export type MatchNodeSettingsConditionsItem = {
1447
+ name: string;
1448
+ logic?: MatchNodeSettingsConditionsItemLogic;
1449
+ predicates: MatchNodeSettingsConditionsItemPredicatesItem[];
1868
1450
  };
1869
- })[];
1870
- minDurationSeconds?: number;
1871
- maxDurationSeconds?: number;
1872
- allowedLabels?: {
1873
- label: string;
1874
- value: string;
1875
- }[];
1876
- dynamic: false;
1877
- maxEntities?: null;
1878
- } | {
1879
- fieldProxyId: string;
1880
- entityType: string;
1881
- optional: boolean;
1882
- jsonPath: string;
1883
- description: string;
1884
- relations?: ({
1885
- id: string;
1886
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
1887
- } | {
1451
+
1452
+ export type MatchNodeSettingsFieldProxiesInputItem = {
1888
1453
  id: string;
1889
- rel_type: 'conditional';
1890
- condition: {
1891
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
1892
- value: string | string[];
1454
+ optional: boolean;
1893
1455
  };
1894
- })[];
1895
- minDurationSeconds?: number;
1896
- maxDurationSeconds?: number;
1897
- allowedLabels?: {
1898
- label: string;
1899
- value: string;
1900
- }[];
1901
- dynamic: true;
1902
- maxEntities?: number | null;
1903
- })[];
1456
+
1457
+ export type MatchNodeSettingsFieldProxies = {
1458
+ input: MatchNodeSettingsFieldProxiesInputItem[];
1904
1459
  };
1905
- qualityCriteria: {
1460
+
1461
+ export interface MatchNodeSettings {
1462
+ about: NodeAbout;
1463
+ conditions: MatchNodeSettingsConditionsItem[];
1464
+ fieldProxies: MatchNodeSettingsFieldProxies;
1465
+ }
1466
+
1467
+ export interface MatchNode {
1906
1468
  id: string;
1907
- qualityElement: string;
1908
- thresholds: {
1909
- pass: string;
1910
- fail: string;
1911
- };
1912
- targetEntity: string;
1913
- llmQaInstruction?: string;
1914
- }[];
1915
- offboardingRules?: {
1469
+ type: 'match';
1470
+ settings: MatchNodeSettings;
1471
+ }
1472
+
1473
+ export type QuorumNodeSettingsOffboardingRulesItemType = 'mv_agreement';
1474
+ export type QuorumNodeSettingsAudienceMode = 'legacy' | 'service';
1475
+ export type QuorumNodeSettingsOffboardingRulesItem = {
1916
1476
  id: string;
1917
- type?: 'mv_agreement';
1477
+ type?: QuorumNodeSettingsOffboardingRulesItemType;
1918
1478
  agreementScale?: string;
1919
- }[];
1920
- instruction: string;
1921
- ui: {
1922
- code: string;
1923
- data: string;
1924
- preprocess: string;
1925
- postprocess?: string;
1926
- constants: string;
1927
1479
  };
1928
- qualityAssurance?: {
1480
+
1481
+ export type QuorumNodeSettingsQualityAssurance = {
1929
1482
  qaMode: 'llm_only';
1930
1483
  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';
1931
1484
  } | {
1932
1485
  qaMode: 'none';
1933
1486
  };
1487
+
1488
+ export type QuorumNodeSettingsReuseAudienceWithNodeId = {
1489
+ pipelineId: string;
1490
+ nodeId: string;
1491
+ } | null;
1492
+
1493
+ export interface QuorumNodeSettings {
1494
+ about: NodeAbout;
1495
+ publicName: string;
1496
+ audienceAndPricing?: HumanAudienceAndPricing;
1497
+ entities: TaskEntities;
1498
+ qualityCriteria: QualityCriteria;
1499
+ offboardingRules?: QuorumNodeSettingsOffboardingRulesItem[];
1500
+ instruction: string;
1501
+ ui: LabelingInterface;
1502
+ qualityAssurance?: QuorumNodeSettingsQualityAssurance;
1934
1503
  overlap: number;
1935
- onboarding: {
1936
- enabled: boolean;
1937
- steps: ({
1938
- id: string;
1939
- blocks?: ({
1940
- id: string;
1941
- type: 'info';
1942
- estimatedTime: string;
1943
- role: string;
1944
- goal: string;
1945
- successCriteria: string;
1946
- } | {
1947
- id: string;
1948
- type: 'text';
1949
- title?: string;
1950
- content?: {
1951
- type: 'markdown';
1952
- value: string;
1953
- }[];
1954
- } | {
1955
- id: string;
1956
- type: 'quiz';
1957
- title?: string;
1958
- content?: {
1959
- type: 'markdown';
1960
- value: string;
1961
- }[];
1962
- questions: ({
1963
- id: string;
1964
- type: 'single-choice' | 'multiple-choice';
1965
- title?: string;
1966
- question: string;
1967
- hint?: string;
1968
- correctAnswerFeedback?: string;
1969
- incorrectAnswerFeedback?: string;
1970
- options: {
1971
- value: string;
1972
- label: string;
1973
- }[];
1974
- correctAnswer: string | string[];
1975
- })[];
1976
- } | {
1504
+ onboarding: Onboarding;
1505
+ exam?: QualificationExam;
1506
+ reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
1507
+ audienceMode?: QuorumNodeSettingsAudienceMode;
1508
+ smartSearch?: SmartSearch | null;
1509
+ checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', CheckTestCases>>;
1510
+ }
1511
+
1512
+ export interface QuorumNode {
1977
1513
  id: string;
1978
- type: 'practice';
1979
- title?: string;
1980
- content?: {
1981
- type: 'markdown';
1982
- value: string;
1983
- }[];
1984
- imageUrl?: string;
1985
- editorType?: string;
1986
- editorConfig?: {
1987
- rows?: number;
1988
- language?: string;
1989
- placeholder?: string;
1990
- };
1991
- validators?: {
1514
+ type: 'quorum';
1515
+ settings: QuorumNodeSettings;
1516
+ }
1517
+
1518
+ export type PipelineGraphV1FieldsItem = {
1992
1519
  id: string;
1993
1520
  name: string;
1994
- description: string;
1995
- criteria: string;
1996
- }[];
1997
- } | {
1998
- id: string;
1999
- type: 'examples';
2000
- title?: string;
2001
- examples: ({
2002
- id: string;
2003
- input: {[key: string]: unknown};
2004
- checks: ({
2005
- type: 'exact';
2006
- path: string;
2007
- golden: unknown;
2008
- hint: string;
2009
- } | {
2010
- type: 'code';
2011
- code: string;
2012
- hint: string;
2013
- } | {
2014
- type: 'llm';
2015
- paths: string[];
2016
- criteria: string;
2017
- reference?: string;
2018
- hint?: string;
2019
- imageUrl?: string;
2020
- })[];
2021
- explanation?: string;
2022
- sourceItemId?: string;
2023
- })[];
2024
- } | {
2025
- id: string;
2026
- type: 'consent';
2027
- title?: string;
2028
- content?: {
2029
- type: 'markdown';
2030
- value: string;
2031
- }[];
2032
- consentLabel: string;
2033
- })[];
2034
- })[];
2035
- info: {
2036
- estimatedTime: string;
2037
- role: string;
2038
- goal: string;
2039
- successCriteria: string;
2040
- };
2041
- };
2042
- exam?: {
2043
- enabled: boolean;
2044
- gradedEntities: ({
2045
- targetEntity: string;
2046
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
2047
- groundTruthType: 'direct' | 'custom';
2048
- customInstruction: string;
2049
- disabledCriterionIds: string[];
2050
- })[];
2051
- goldenDatasetId?: string;
2052
- tasksPerExpert: number;
2053
- passThreshold: number;
2054
- };
2055
- reuseAudienceWithNodeId?: {
2056
- pipelineId: string;
2057
- nodeId: string;
2058
- } | null;
2059
- smartSearch?: {
2060
- briefDescription: string;
2061
- projectDescription: string | null;
2062
- extraHardRequirements: string[];
2063
- relevanceCriteria: string[];
2064
- typicalJobTitles: string[];
2065
- idealCandidateProfile: string;
2066
- whoIsNotAFit: string[];
2067
- sourceFingerprint?: string;
2068
- } | null;
2069
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', ({
2070
- id: string;
2071
- name: string;
2072
- input: string | {[key: string]: string};
2073
- })[]>>;
2074
- };
1521
+ jsonSchema: JsonSchema;
2075
1522
  };
2076
1523
 
2077
- export type PipelineGraphSnapshotGraphConnectionsItemFrom = {
1524
+ export type PipelineGraphV1ConnectionsItemFrom = {
2078
1525
  node: string;
2079
1526
  handle: string;
2080
1527
  };
2081
1528
 
2082
- export type PipelineGraphSnapshotGraphConnectionsItemTo = {
1529
+ export type PipelineGraphV1ConnectionsItemTo = {
2083
1530
  node: string;
2084
1531
  handle: string;
2085
1532
  };
2086
1533
 
2087
- export type PipelineGraphSnapshotGraphConnectionsItemSettings = {[key: string]: unknown};
1534
+ export type PipelineGraphV1ConnectionsItemSettings = {[key: string]: unknown};
2088
1535
 
2089
- export type PipelineGraphSnapshotGraphConnectionsItem = {
2090
- from: PipelineGraphSnapshotGraphConnectionsItemFrom;
2091
- to: PipelineGraphSnapshotGraphConnectionsItemTo;
2092
- settings: PipelineGraphSnapshotGraphConnectionsItemSettings;
1536
+ export type PipelineGraphV1ConnectionsItem = {
1537
+ from: PipelineGraphV1ConnectionsItemFrom;
1538
+ to: PipelineGraphV1ConnectionsItemTo;
1539
+ settings: PipelineGraphV1ConnectionsItemSettings;
2093
1540
  };
2094
1541
 
2095
- export type PipelineGraphSnapshotGraphLayout = {[key: string]: {[key: string]: [number, number]}};
1542
+ export type PipelineGraphV1Layout = {[key: string]: {[key: string]: [number, number]}};
2096
1543
 
2097
- export type PipelineGraphSnapshotGraph = {
1544
+ export interface PipelineGraphV1 {
2098
1545
  version: 1;
2099
- fields: PipelineGraphSnapshotGraphFieldsItem[];
2100
- nodes: PipelineGraphSnapshotGraphNodesItem[];
2101
- connections: PipelineGraphSnapshotGraphConnectionsItem[];
2102
- layout?: PipelineGraphSnapshotGraphLayout;
2103
- };
1546
+ fields: PipelineGraphV1FieldsItem[];
1547
+ nodes: (RootNode | CodeNode | GenerationNode | MatchNode | QuorumNode)[];
1548
+ connections: PipelineGraphV1ConnectionsItem[];
1549
+ layout?: PipelineGraphV1Layout;
1550
+ }
2104
1551
 
2105
1552
  export interface PipelineGraphSnapshot {
2106
- graph: PipelineGraphSnapshotGraph;
1553
+ graph: PipelineGraphV1;
2107
1554
  version: PipelineGraphVersion;
2108
1555
  invalidFieldSchemas: InvalidFieldSchema[];
2109
1556
  }
@@ -2216,7 +1663,7 @@ export type CheckReport = {
2216
1663
 
2217
1664
  export type CheckJobStatus = 'pending' | 'running' | 'succeeded' | 'failed';
2218
1665
  export type CheckJobResult = {
2219
- output?: unknown | null;
1666
+ output?: JsonValue | null;
2220
1667
  report?: CheckReport | null;
2221
1668
  };
2222
1669
 
@@ -2436,2437 +1883,431 @@ export interface BatchInferenceRun {
2436
1883
  updatedAt: string;
2437
1884
  }
2438
1885
 
2439
- export type PipelineGraphV1FieldsItem = {
2440
- id: string;
2441
- name: string;
2442
- jsonSchema: JsonSchema;
1886
+ export interface DatasetItemFilter {
1887
+ fieldValues?: DatasetFieldValueConditions;
1888
+ fieldSources?: DatasetFieldSourceConditions;
1889
+ missingRevisionFields?: string[];
1890
+ slice?: DatasetSliceSelection;
1891
+ parts?: DatasetSplitPartInclusion;
1892
+ excludeParts?: DatasetSplitPartExclusions;
1893
+ createdBefore?: string;
1894
+ }
1895
+
1896
+ export type ListBaseModels200 = {
1897
+ baseModels: BaseModel[];
2443
1898
  };
2444
1899
 
2445
- export type PipelineGraphV1ConnectionsItemFrom = {
2446
- node: string;
2447
- handle: string;
1900
+ export type ListProjectModelsParams = {
1901
+ limit?: number;
1902
+ offset?: number;
2448
1903
  };
2449
1904
 
2450
- export type PipelineGraphV1ConnectionsItemTo = {
2451
- node: string;
2452
- handle: string;
1905
+ export type ListProjectModels200 = {
1906
+ models: Model[];
1907
+ pagination: Pagination;
2453
1908
  };
2454
1909
 
2455
- export type PipelineGraphV1ConnectionsItemSettings = {[key: string]: unknown};
1910
+ export type CreateProjectModelBody = {
1911
+ name: string;
1912
+ description?: string | null;
1913
+ baseModelId: BaseModelId;
1914
+ };
2456
1915
 
2457
- export type PipelineGraphV1ConnectionsItem = {
2458
- from: PipelineGraphV1ConnectionsItemFrom;
2459
- to: PipelineGraphV1ConnectionsItemTo;
2460
- settings: PipelineGraphV1ConnectionsItemSettings;
1916
+ export type ListModelVersionsParams = {
1917
+ limit?: number;
1918
+ offset?: number;
2461
1919
  };
2462
1920
 
2463
- export type PipelineGraphV1Layout = {[key: string]: {[key: string]: [number, number]}};
1921
+ export type ListModelVersions200 = {
1922
+ versions: ModelVersion[];
1923
+ pagination: Pagination;
1924
+ };
2464
1925
 
2465
- export type RootNodeSettingsItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
2466
- export type RootNodeSettingsItemFilterFieldValuesItemSourcesItem = {
2467
- type: 'user';
2468
- userId: string;
2469
- } | {
2470
- type: 'system';
2471
- source: string;
1926
+ export type ListProjectTrainingsParams = {
1927
+ limit?: number;
1928
+ offset?: number;
2472
1929
  };
2473
1930
 
2474
- export type RootNodeSettingsItemFilterFieldValuesItem = {
2475
- jsonPath: string;
2476
- operator: RootNodeSettingsItemFilterFieldValuesItemOperator;
2477
- value: string | number | boolean | null;
2478
- fieldId: string;
2479
- latestOnly?: boolean;
2480
- sources?: RootNodeSettingsItemFilterFieldValuesItemSourcesItem[];
1931
+ export type ListProjectTrainings200 = {
1932
+ trainings: Training[];
1933
+ pagination: Pagination;
2481
1934
  };
2482
1935
 
2483
- export type RootNodeSettingsItemFilterFieldSourcesItemSourcesItem = {
2484
- type: 'user';
2485
- userId: string;
2486
- } | {
2487
- type: 'system';
2488
- source: string;
1936
+ export type CreateProjectTrainingBody = {
1937
+ name: string;
1938
+ configuration: TrainingConfigurationInput;
2489
1939
  };
2490
1940
 
2491
- export type RootNodeSettingsItemFilterFieldSourcesItem = {
2492
- fieldId: string;
2493
- sources: RootNodeSettingsItemFilterFieldSourcesItemSourcesItem[];
1941
+ export type UpdateTrainingMetadataBody = {
1942
+ name?: string;
1943
+ archived?: boolean;
2494
1944
  };
2495
1945
 
2496
- export type RootNodeSettingsItemFilterSlice = {
2497
- sliceId: string;
1946
+ export type ReplaceTrainingConfigurationBody = {
1947
+ configuration: TrainingConfigurationInput;
2498
1948
  };
2499
1949
 
2500
- export type RootNodeSettingsItemFilterParts = {
2501
- fieldId: string;
2502
- names: string[];
1950
+ export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
1951
+
1952
+ export type EstimateTrainingCostBody = {
1953
+ inputSetId: TrainingCostEstimateInputSetId;
2503
1954
  };
2504
1955
 
2505
- export type RootNodeSettingsItemFilterExcludePartsItem = {
2506
- fieldId: string;
2507
- names: string[];
1956
+ export type CreateTrainingRunBody = {
1957
+ inputSetId: string;
1958
+ estimateFingerprint: string;
1959
+ versionName: string;
2508
1960
  };
2509
1961
 
2510
- export type RootNodeSettingsItemFilter = {
2511
- fieldValues?: RootNodeSettingsItemFilterFieldValuesItem[];
2512
- fieldSources?: RootNodeSettingsItemFilterFieldSourcesItem[];
2513
- missingRevisionFields?: string[];
2514
- slice?: RootNodeSettingsItemFilterSlice;
2515
- parts?: RootNodeSettingsItemFilterParts;
2516
- excludeParts?: RootNodeSettingsItemFilterExcludePartsItem[];
2517
- createdBefore?: string;
1962
+ export type ListTrainingRunsParams = {
1963
+ limit?: number;
1964
+ offset?: number;
2518
1965
  };
2519
1966
 
2520
- export type RootNodeSettingsStartedFieldProxiesOutputItem = {
2521
- id: string;
2522
- optional: boolean;
1967
+ export type ListTrainingRuns200 = {
1968
+ trainingRuns: TrainingRun[];
1969
+ pagination: Pagination;
2523
1970
  };
2524
1971
 
2525
- export type RootNodeSettingsStartedFieldProxies = {
2526
- output: RootNodeSettingsStartedFieldProxiesOutputItem[];
1972
+ export type GetTrainingRunLogsParams = {
1973
+ cursor?: string;
1974
+ limit?: number;
2527
1975
  };
2528
1976
 
2529
- export type RootNodeSettingsCompletedFieldProxiesInputItem = {
2530
- id: string;
2531
- optional: boolean;
1977
+ export type GetTrainingRunMetricHistoryParams = {
1978
+ resolution?: number;
2532
1979
  };
2533
1980
 
2534
- export type RootNodeSettingsCompletedFieldProxies = {
2535
- input: RootNodeSettingsCompletedFieldProxiesInputItem[];
1981
+ export type ListAudienceSpecializationsParams = {
1982
+ limit?: number;
1983
+ offset?: number;
2536
1984
  };
2537
1985
 
2538
- export interface RootNodeSettings {
2539
- datasetId?: string;
2540
- itemFilter?: RootNodeSettingsItemFilter;
2541
- itemLimit?: number;
2542
- startedFieldProxies: RootNodeSettingsStartedFieldProxies;
2543
- completedFieldProxies: RootNodeSettingsCompletedFieldProxies;
2544
- }
1986
+ export type ListAudienceSpecializations200 = {
1987
+ specializations: Specialization[];
1988
+ pagination: Pagination;
1989
+ };
2545
1990
 
2546
- export interface RootNode {
2547
- id: string;
2548
- type: 'root';
2549
- settings: RootNodeSettings;
2550
- }
1991
+ export type ListExpertLists200 = {
1992
+ expertLists: ExpertList[];
1993
+ };
2551
1994
 
2552
- export type CodeNodeSettingsAboutProjectType = 'general' | 'data_collection';
2553
- export type CodeNodeSettingsAbout = {
1995
+ export type CreateExpertListBody = {
2554
1996
  name: string;
2555
- description?: string;
2556
- projectType?: CodeNodeSettingsAboutProjectType;
2557
1997
  };
2558
1998
 
2559
- export type CodeNodeSettingsFieldProxiesInputItem = {
2560
- id: string;
2561
- optional: boolean;
1999
+ export type UpdateExpertListBody = {
2000
+ name?: string;
2001
+ hidden?: boolean;
2562
2002
  };
2563
2003
 
2564
- export type CodeNodeSettingsFieldProxiesOutputItem = {
2565
- id: string;
2566
- optional: boolean;
2004
+ export type ListExpertListExpertsParams = {
2005
+ after?: string;
2006
+ limit?: number;
2567
2007
  };
2568
2008
 
2569
- export type CodeNodeSettingsFieldProxies = {
2570
- input: CodeNodeSettingsFieldProxiesInputItem[];
2571
- output: CodeNodeSettingsFieldProxiesOutputItem[];
2009
+ export type ListExpertListExperts200ExpertsItemStatus = 'pending' | 'available' | 'unavailable' | 'not_found' | 'banned';
2010
+ export type ListExpertListExperts200ExpertsItem = {
2011
+ expertId: string;
2012
+ status: ListExpertListExperts200ExpertsItemStatus;
2572
2013
  };
2573
2014
 
2574
- export type CodeNodeSettingsCode = {
2575
- code: string;
2015
+ export type ListExpertListExperts200 = {
2016
+ experts: ListExpertListExperts200ExpertsItem[];
2017
+ nextAfter: string | null;
2576
2018
  };
2577
2019
 
2578
- export type CodeNodeSettingsEnvVarsItem = {
2579
- type: 'static';
2580
- name: string;
2581
- value: string;
2582
- } | {
2583
- type: 'secret';
2584
- name: string;
2585
- secretName: string;
2020
+ export type AddExpertListExpertsBody = {
2021
+ expertIds: string[];
2586
2022
  };
2587
2023
 
2588
- export type CodeNodeSettingsChecksItemInput = string | {[key: string]: string};
2024
+ export type RemoveExpertListExpertsBody = {
2025
+ expertIds: string[];
2026
+ };
2589
2027
 
2590
- export type CodeNodeSettingsChecksItem = {
2591
- id: string;
2592
- name: string;
2593
- input: CodeNodeSettingsChecksItemInput;
2028
+ export type ListExpertBanListExpertsParams = {
2029
+ after?: string;
2030
+ limit?: number;
2594
2031
  };
2595
2032
 
2596
- export interface CodeNodeSettings {
2597
- about: CodeNodeSettingsAbout;
2598
- fieldProxies: CodeNodeSettingsFieldProxies;
2599
- code: CodeNodeSettingsCode;
2600
- envVars?: CodeNodeSettingsEnvVarsItem[];
2601
- checks?: Partial<Record<'code', CodeNodeSettingsChecksItem[]>>;
2602
- }
2033
+ export type ListExpertBanListExperts200 = {
2034
+ experts: ExpertBanListExpert[];
2035
+ nextAfter: string | null;
2036
+ };
2603
2037
 
2604
- export interface CodeNode {
2605
- id: string;
2606
- type: 'code';
2607
- settings: CodeNodeSettings;
2608
- }
2038
+ export type AddExpertBanListExpertsBody = {
2039
+ expertIds: string[];
2040
+ reason: string;
2041
+ };
2609
2042
 
2610
- export type GenerationNodeSettingsAboutProjectType = 'general' | 'data_collection';
2611
- export type GenerationNodeSettingsExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
2612
- export type GenerationNodeSettingsExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
2613
- export type GenerationNodeSettingsAbout = {
2614
- name: string;
2615
- description?: string;
2616
- projectType?: GenerationNodeSettingsAboutProjectType;
2043
+ export type RemoveExpertBanListExpertsBody = {
2044
+ expertIds: string[];
2617
2045
  };
2618
2046
 
2619
- export type GenerationNodeSettingsEntitiesInputItem = {
2620
- fieldProxyId: string;
2621
- entityType: string;
2622
- optional: boolean;
2623
- jsonPath: string;
2624
- description: string;
2625
- relations?: ({
2626
- id: string;
2627
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2628
- } | {
2629
- id: string;
2630
- rel_type: 'conditional';
2631
- condition: {
2632
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2633
- value: string | string[];
2634
- };
2635
- })[];
2636
- minDurationSeconds?: number;
2637
- maxDurationSeconds?: number;
2638
- allowedLabels?: {
2639
- label: string;
2640
- value: string;
2641
- }[];
2642
- dynamic: false;
2643
- maxEntities?: null;
2644
- } | {
2645
- fieldProxyId: string;
2646
- entityType: string;
2647
- optional: boolean;
2648
- jsonPath: string;
2649
- description: string;
2650
- relations?: ({
2651
- id: string;
2652
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2653
- } | {
2654
- id: string;
2655
- rel_type: 'conditional';
2656
- condition: {
2657
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2658
- value: string | string[];
2659
- };
2660
- })[];
2661
- minDurationSeconds?: number;
2662
- maxDurationSeconds?: number;
2663
- allowedLabels?: {
2664
- label: string;
2665
- value: string;
2666
- }[];
2667
- dynamic: true;
2668
- maxEntities?: number | null;
2047
+ 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';
2048
+ export type ListGenerationModels200 = {
2049
+ defaultGenerationModelId: ListGenerationModels200DefaultGenerationModelId;
2050
+ generationModels: GenerationModel[];
2669
2051
  };
2670
2052
 
2671
- export type GenerationNodeSettingsEntitiesOutputItem = {
2672
- fieldProxyId: string;
2673
- entityType: string;
2674
- optional: boolean;
2675
- jsonPath: string;
2676
- description: string;
2677
- relations?: ({
2678
- id: string;
2679
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2680
- } | {
2681
- id: string;
2682
- rel_type: 'conditional';
2683
- condition: {
2684
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2685
- value: string | string[];
2053
+ export type ListDeliveryOrders200 = {
2054
+ deliveryOrders: DeliveryOrder[];
2686
2055
  };
2687
- })[];
2688
- minDurationSeconds?: number;
2689
- maxDurationSeconds?: number;
2690
- allowedLabels?: {
2691
- label: string;
2692
- value: string;
2693
- }[];
2694
- dynamic: false;
2695
- maxEntities?: null;
2696
- } | {
2697
- fieldProxyId: string;
2698
- entityType: string;
2699
- optional: boolean;
2700
- jsonPath: string;
2701
- description: string;
2702
- relations?: ({
2703
- id: string;
2704
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
2705
- } | {
2706
- id: string;
2707
- rel_type: 'conditional';
2708
- condition: {
2709
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
2710
- value: string | string[];
2056
+
2057
+ export type ListProjectsParams = {
2058
+ limit?: number;
2059
+ offset?: number;
2711
2060
  };
2712
- })[];
2713
- minDurationSeconds?: number;
2714
- maxDurationSeconds?: number;
2715
- allowedLabels?: {
2716
- label: string;
2717
- value: string;
2718
- }[];
2719
- dynamic: true;
2720
- maxEntities?: number | null;
2061
+
2062
+ export type ListProjects200 = {
2063
+ projects: Project[];
2064
+ pagination: Pagination;
2721
2065
  };
2722
2066
 
2723
- export type GenerationNodeSettingsEntities = {
2724
- input: GenerationNodeSettingsEntitiesInputItem[];
2725
- output: GenerationNodeSettingsEntitiesOutputItem[];
2067
+ export type CreateProjectBody = {
2068
+ teamId: string;
2069
+ name?: string;
2070
+ deliveryOrderId?: string | null;
2726
2071
  };
2727
2072
 
2728
- export type GenerationNodeSettingsQualityCriteriaItemThresholds = {
2729
- pass: string;
2730
- fail: string;
2073
+ export type UpdateProjectBody = {
2074
+ name: string;
2731
2075
  };
2732
2076
 
2733
- export type GenerationNodeSettingsQualityCriteriaItem = {
2734
- id: string;
2735
- qualityElement: string;
2736
- thresholds: GenerationNodeSettingsQualityCriteriaItemThresholds;
2737
- targetEntity: string;
2738
- llmQaInstruction?: string;
2077
+ export type ListProjectPipelinesParams = {
2078
+ limit?: number;
2079
+ offset?: number;
2739
2080
  };
2740
2081
 
2741
- export type GenerationNodeSettingsUi = {
2742
- code: string;
2743
- data: string;
2744
- preprocess: string;
2745
- postprocess?: string;
2746
- constants: string;
2082
+ export type ListProjectPipelines200 = {
2083
+ pipelines: Pipeline[];
2084
+ pagination: Pagination;
2747
2085
  };
2748
2086
 
2749
- export type GenerationNodeSettingsQualityAssurance = {
2750
- qaMode: 'llm_only';
2751
- 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';
2752
- } | {
2753
- qaMode: 'human_only';
2754
- smartSamplingPercent?: number;
2755
- humanQaTimeForTask?: number;
2756
- } | {
2757
- qaMode: 'hybrid';
2758
- smartSamplingPercent?: number;
2759
- humanQaTimeForTask?: number;
2760
- 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';
2087
+ export type UpdatePipelineBody = {
2088
+ name: string;
2761
2089
  };
2762
2090
 
2763
- export type GenerationNodeSettingsAudienceAndPricing = {
2764
- verifiedExperts: boolean;
2765
- audience: {
2766
- languages: {
2767
- type: 'or' | 'and';
2768
- values: {
2769
- value: string;
2770
- }[];
2091
+ export type ListProjectDatasetsParams = {
2092
+ limit?: number;
2093
+ offset?: number;
2771
2094
  };
2772
- specializations: {
2773
- type: 'or' | 'and';
2774
- values: {
2775
- value: string;
2776
- qualificationId: string;
2777
- }[];
2095
+
2096
+ export type ListProjectDatasets200 = {
2097
+ datasets: Dataset[];
2098
+ pagination: Pagination;
2778
2099
  };
2779
- countries: {
2780
- type: 'or';
2781
- values: string[];
2100
+
2101
+ export type CreateDatasetBodyProfile = 'chat-sft' | 'instruction';
2102
+ export type CreateDatasetBody = {
2103
+ name?: string;
2104
+ profile?: CreateDatasetBodyProfile;
2782
2105
  };
2106
+
2107
+ export type ListDatasetFieldsParams = {
2108
+ limit?: number;
2109
+ offset?: number;
2110
+ names?: string;
2783
2111
  };
2784
- pricePerTask: number;
2785
- timeForTask: number;
2786
- perExpertCapEnabled?: boolean;
2787
- perExpertCapValue?: number;
2788
- audienceType: 'human';
2789
- } | {
2790
- audienceType: 'synthetic';
2791
- 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';
2792
- reasoningEffort?: 'low' | 'medium' | 'high';
2793
- llmInstruction?: string;
2794
- maxCostPerAttempt: number;
2112
+
2113
+ export type ListDatasetFields200 = {
2114
+ fields: DatasetField[];
2115
+ pagination: Pagination;
2795
2116
  };
2796
2117
 
2797
- export type GenerationNodeSettingsOnboardingStepsItemBlocksItem = {
2798
- id: string;
2799
- type: 'info';
2800
- estimatedTime: string;
2801
- role: string;
2802
- goal: string;
2803
- successCriteria: string;
2804
- } | {
2805
- id: string;
2806
- type: 'text';
2807
- title?: string;
2808
- content?: {
2809
- type: 'markdown';
2810
- value: string;
2811
- }[];
2812
- } | {
2813
- id: string;
2814
- type: 'quiz';
2815
- title?: string;
2816
- content?: {
2817
- type: 'markdown';
2818
- value: string;
2819
- }[];
2820
- questions: ({
2821
- id: string;
2822
- type: 'single-choice' | 'multiple-choice';
2823
- title?: string;
2824
- question: string;
2825
- hint?: string;
2826
- correctAnswerFeedback?: string;
2827
- incorrectAnswerFeedback?: string;
2828
- options: {
2829
- value: string;
2830
- label: string;
2831
- }[];
2832
- correctAnswer: string | string[];
2833
- })[];
2118
+ export type CreateDatasetFieldBody = {
2119
+ name: string;
2120
+ jsonSchema: JsonSchema;
2834
2121
  } | {
2835
- id: string;
2836
- type: 'practice';
2837
- title?: string;
2838
- content?: {
2839
- type: 'markdown';
2840
- value: string;
2122
+ fields: {
2123
+ name: string;
2124
+ jsonSchema: JsonSchema;
2841
2125
  }[];
2842
- imageUrl?: string;
2843
- editorType?: string;
2844
- editorConfig?: {
2845
- rows?: number;
2846
- language?: string;
2847
- placeholder?: string;
2848
2126
  };
2849
- validators?: {
2850
- id: string;
2127
+
2128
+ export type GetDatasetInferredFields200 = {
2129
+ fields: InferredField[];
2130
+ };
2131
+
2132
+ export type AddDatasetItemsBodyFieldsItem = {
2851
2133
  name: string;
2852
- description: string;
2853
- criteria: string;
2854
- }[];
2855
- } | {
2856
- id: string;
2857
- type: 'examples';
2858
- title?: string;
2859
- examples: ({
2860
- id: string;
2861
- input: {[key: string]: unknown};
2862
- checks: ({
2863
- type: 'exact';
2864
- path: string;
2865
- golden: unknown;
2866
- hint: string;
2867
- } | {
2868
- type: 'code';
2869
- code: string;
2870
- hint: string;
2871
- } | {
2872
- type: 'llm';
2873
- paths: string[];
2874
- criteria: string;
2875
- reference?: string;
2876
- hint?: string;
2877
- imageUrl?: string;
2878
- })[];
2879
- explanation?: string;
2880
- sourceItemId?: string;
2881
- })[];
2882
- } | {
2883
- id: string;
2884
- type: 'consent';
2885
- title?: string;
2886
- content?: {
2887
- type: 'markdown';
2888
- value: string;
2889
- }[];
2890
- consentLabel: string;
2134
+ jsonSchema?: JsonSchema;
2891
2135
  };
2892
2136
 
2893
- export type GenerationNodeSettingsOnboardingStepsItem = {
2894
- id: string;
2895
- blocks?: GenerationNodeSettingsOnboardingStepsItemBlocksItem[];
2896
- };
2137
+ export type AddDatasetItemsBodyItemsItem = {[key: string]: JsonValue | null};
2897
2138
 
2898
- export type GenerationNodeSettingsOnboardingInfo = {
2899
- estimatedTime: string;
2900
- role: string;
2901
- goal: string;
2902
- successCriteria: string;
2139
+ export type AddDatasetItemsBody = {
2140
+ fields?: AddDatasetItemsBodyFieldsItem[];
2141
+ items: AddDatasetItemsBodyItemsItem[];
2903
2142
  };
2904
2143
 
2905
- export type GenerationNodeSettingsOnboarding = {
2906
- enabled: boolean;
2907
- steps: GenerationNodeSettingsOnboardingStepsItem[];
2908
- info: GenerationNodeSettingsOnboardingInfo;
2144
+ export type AddDatasetItems200 = {
2145
+ created: number;
2909
2146
  };
2910
2147
 
2911
- export type GenerationNodeSettingsExamGradedEntitiesItem = {
2912
- targetEntity: string;
2913
- mode: GenerationNodeSettingsExamGradedEntitiesItemMode;
2914
- groundTruthType: GenerationNodeSettingsExamGradedEntitiesItemGroundTruthType;
2915
- customInstruction: string;
2916
- disabledCriterionIds: string[];
2148
+ export type ListDatasetItemsParams = {
2149
+ limit?: number;
2150
+ offset?: number;
2917
2151
  };
2918
2152
 
2919
- export type GenerationNodeSettingsExam = {
2920
- enabled: boolean;
2921
- gradedEntities: GenerationNodeSettingsExamGradedEntitiesItem[];
2922
- goldenDatasetId?: string;
2923
- tasksPerExpert: number;
2924
- passThreshold: number;
2153
+ export type ListDatasetItems200 = {
2154
+ items: DatasetItem[];
2155
+ pagination: Pagination;
2925
2156
  };
2926
2157
 
2927
- export type GenerationNodeSettingsReuseAudienceWithNodeId = {
2928
- pipelineId: string;
2929
- nodeId: string;
2930
- } | null;
2931
-
2932
- export type GenerationNodeSettingsSmartSearch = {
2933
- briefDescription: string;
2934
- projectDescription: string | null;
2935
- extraHardRequirements: string[];
2936
- relevanceCriteria: string[];
2937
- typicalJobTitles: string[];
2938
- idealCandidateProfile: string;
2939
- whoIsNotAFit: string[];
2940
- sourceFingerprint?: string;
2941
- } | null;
2942
-
2943
- export type GenerationNodeSettingsChecksItemInput = string | {[key: string]: string};
2944
-
2945
- export type GenerationNodeSettingsChecksItem = {
2946
- id: string;
2158
+ export type CreateDatasetUploadBodyFormat = 'json' | 'csv' | 'jsonl';
2159
+ export type CreateDatasetUploadBodyFieldsItem = {
2947
2160
  name: string;
2948
- input: GenerationNodeSettingsChecksItemInput;
2161
+ jsonSchema?: JsonSchema;
2949
2162
  };
2950
2163
 
2951
- export interface GenerationNodeSettings {
2952
- about: GenerationNodeSettingsAbout;
2953
- publicName: string;
2954
- entities: GenerationNodeSettingsEntities;
2955
- qualityCriteria: GenerationNodeSettingsQualityCriteriaItem[];
2956
- instruction: string;
2957
- ui: GenerationNodeSettingsUi;
2958
- qualityAssurance?: GenerationNodeSettingsQualityAssurance;
2959
- audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
2960
- onboarding: GenerationNodeSettingsOnboarding;
2961
- exam?: GenerationNodeSettingsExam;
2962
- reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
2963
- smartSearch?: GenerationNodeSettingsSmartSearch;
2964
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', GenerationNodeSettingsChecksItem[]>>;
2965
- }
2966
-
2967
- export interface GenerationNode {
2968
- id: string;
2969
- type: 'generation';
2970
- settings: GenerationNodeSettings;
2971
- }
2972
-
2973
- export type MatchNodeSettingsAboutProjectType = 'general' | 'data_collection';
2974
- export type MatchNodeSettingsConditionsItemLogic = 'and' | 'or';
2975
- export type MatchNodeSettingsConditionsItemPredicatesItemOperator = 'text_eq' | 'text_neq';
2976
- export type MatchNodeSettingsAbout = {
2977
- name: string;
2978
- description?: string;
2979
- projectType?: MatchNodeSettingsAboutProjectType;
2164
+ export type CreateDatasetUploadBody = {
2165
+ filename: string;
2166
+ format?: CreateDatasetUploadBodyFormat;
2167
+ declaredSizeBytes: number;
2168
+ fields?: CreateDatasetUploadBodyFieldsItem[];
2980
2169
  };
2981
2170
 
2982
- export type MatchNodeSettingsConditionsItemPredicatesItem = {
2983
- fieldProxyId: string;
2984
- jsonPath: string;
2985
- operator: MatchNodeSettingsConditionsItemPredicatesItemOperator;
2986
- value: string | number | boolean | null;
2171
+ export type CreateDatasetUpload200 = {
2172
+ job: UploadJob;
2173
+ uploadUrl: string;
2987
2174
  };
2988
2175
 
2989
- export type MatchNodeSettingsConditionsItem = {
2176
+ export type ImportPipelineBody = {
2990
2177
  name: string;
2991
- logic?: MatchNodeSettingsConditionsItemLogic;
2992
- predicates: MatchNodeSettingsConditionsItemPredicatesItem[];
2178
+ graph: PipelineGraphV1;
2993
2179
  };
2994
2180
 
2995
- export type MatchNodeSettingsFieldProxiesInputItem = {
2996
- id: string;
2997
- optional: boolean;
2181
+ export type AttachPipelineDatasetBodyItemFilter = {
2182
+ fieldValues?: DatasetFieldValueConditions;
2183
+ fieldSources?: DatasetFieldSourceConditions;
2184
+ missingRevisionFields?: string[];
2185
+ slice?: DatasetSliceSelection;
2186
+ parts?: DatasetSplitPartInclusion;
2187
+ excludeParts?: DatasetSplitPartExclusions;
2188
+ createdBefore?: string;
2998
2189
  };
2999
2190
 
3000
- export type MatchNodeSettingsFieldProxies = {
3001
- input: MatchNodeSettingsFieldProxiesInputItem[];
2191
+ export type AttachPipelineDatasetBody = {
2192
+ datasetId: string;
2193
+ itemLimit?: number;
2194
+ itemFilter?: AttachPipelineDatasetBodyItemFilter;
3002
2195
  };
3003
2196
 
3004
- export interface MatchNodeSettings {
3005
- about: MatchNodeSettingsAbout;
3006
- conditions: MatchNodeSettingsConditionsItem[];
3007
- fieldProxies: MatchNodeSettingsFieldProxies;
3008
- }
3009
-
3010
- export interface MatchNode {
3011
- id: string;
3012
- type: 'match';
3013
- settings: MatchNodeSettings;
3014
- }
3015
-
3016
- export type QuorumNodeSettingsAboutProjectType = 'general' | 'data_collection';
3017
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguagesType = 'or' | 'and';
3018
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsType = 'or' | 'and';
3019
- export type QuorumNodeSettingsAudienceAndPricingAudienceCountriesType = 'or';
3020
- export type QuorumNodeSettingsOffboardingRulesItemType = 'mv_agreement';
3021
- export type QuorumNodeSettingsExamGradedEntitiesItemMode = 'ground_truth' | 'quality_criteria' | 'not_graded';
3022
- export type QuorumNodeSettingsExamGradedEntitiesItemGroundTruthType = 'direct' | 'custom';
3023
- export type QuorumNodeSettingsAbout = {
2197
+ export type ExportPipeline200 = {
3024
2198
  name: string;
3025
- description?: string;
3026
- projectType?: QuorumNodeSettingsAboutProjectType;
3027
- };
3028
-
3029
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguagesValuesItem = {
3030
- value: string;
3031
- };
3032
-
3033
- export type QuorumNodeSettingsAudienceAndPricingAudienceLanguages = {
3034
- type: QuorumNodeSettingsAudienceAndPricingAudienceLanguagesType;
3035
- values: QuorumNodeSettingsAudienceAndPricingAudienceLanguagesValuesItem[];
3036
- };
3037
-
3038
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsValuesItem = {
3039
- value: string;
3040
- qualificationId: string;
3041
- };
3042
-
3043
- export type QuorumNodeSettingsAudienceAndPricingAudienceSpecializations = {
3044
- type: QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsType;
3045
- values: QuorumNodeSettingsAudienceAndPricingAudienceSpecializationsValuesItem[];
3046
- };
3047
-
3048
- export type QuorumNodeSettingsAudienceAndPricingAudienceCountries = {
3049
- type: QuorumNodeSettingsAudienceAndPricingAudienceCountriesType;
3050
- values: string[];
3051
- };
3052
-
3053
- export type QuorumNodeSettingsAudienceAndPricingAudience = {
3054
- languages: QuorumNodeSettingsAudienceAndPricingAudienceLanguages;
3055
- specializations: QuorumNodeSettingsAudienceAndPricingAudienceSpecializations;
3056
- countries: QuorumNodeSettingsAudienceAndPricingAudienceCountries;
3057
- };
3058
-
3059
- export type QuorumNodeSettingsAudienceAndPricing = {
3060
- verifiedExperts: boolean;
3061
- audience: QuorumNodeSettingsAudienceAndPricingAudience;
3062
- pricePerTask: number;
3063
- timeForTask: number;
3064
- perExpertCapEnabled?: boolean;
3065
- perExpertCapValue?: number;
3066
- audienceType: 'human';
2199
+ graph: PipelineGraphV1;
3067
2200
  };
3068
2201
 
3069
- export type QuorumNodeSettingsEntitiesInputItem = {
3070
- fieldProxyId: string;
3071
- entityType: string;
3072
- optional: boolean;
3073
- jsonPath: string;
3074
- description: string;
3075
- relations?: ({
3076
- id: string;
3077
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3078
- } | {
3079
- id: string;
3080
- rel_type: 'conditional';
3081
- condition: {
3082
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3083
- value: string | string[];
3084
- };
3085
- })[];
3086
- minDurationSeconds?: number;
3087
- maxDurationSeconds?: number;
3088
- allowedLabels?: {
3089
- label: string;
3090
- value: string;
3091
- }[];
3092
- dynamic: false;
3093
- maxEntities?: null;
3094
- } | {
3095
- fieldProxyId: string;
3096
- entityType: string;
3097
- optional: boolean;
3098
- jsonPath: string;
3099
- description: string;
3100
- relations?: ({
3101
- id: string;
3102
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3103
- } | {
3104
- id: string;
3105
- rel_type: 'conditional';
3106
- condition: {
3107
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3108
- value: string | string[];
3109
- };
3110
- })[];
3111
- minDurationSeconds?: number;
3112
- maxDurationSeconds?: number;
3113
- allowedLabels?: {
3114
- label: string;
3115
- value: string;
3116
- }[];
3117
- dynamic: true;
3118
- maxEntities?: number | null;
2202
+ export type CopyPipelineBody = {
2203
+ name?: string;
3119
2204
  };
3120
2205
 
3121
- export type QuorumNodeSettingsEntitiesOutputItem = {
3122
- fieldProxyId: string;
3123
- entityType: string;
3124
- optional: boolean;
3125
- jsonPath: string;
3126
- description: string;
3127
- relations?: ({
3128
- id: string;
3129
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3130
- } | {
3131
- id: string;
3132
- rel_type: 'conditional';
3133
- condition: {
3134
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3135
- value: string | string[];
3136
- };
3137
- })[];
3138
- minDurationSeconds?: number;
3139
- maxDurationSeconds?: number;
3140
- allowedLabels?: {
3141
- label: string;
3142
- value: string;
3143
- }[];
3144
- dynamic: false;
3145
- maxEntities?: null;
3146
- } | {
3147
- fieldProxyId: string;
3148
- entityType: string;
3149
- optional: boolean;
3150
- jsonPath: string;
3151
- description: string;
3152
- relations?: ({
3153
- id: string;
3154
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
3155
- } | {
3156
- id: string;
3157
- rel_type: 'conditional';
3158
- condition: {
3159
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
3160
- value: string | string[];
3161
- };
3162
- })[];
3163
- minDurationSeconds?: number;
3164
- maxDurationSeconds?: number;
3165
- allowedLabels?: {
3166
- label: string;
3167
- value: string;
3168
- }[];
3169
- dynamic: true;
3170
- maxEntities?: number | null;
3171
- };
3172
-
3173
- export type QuorumNodeSettingsEntities = {
3174
- input: QuorumNodeSettingsEntitiesInputItem[];
3175
- output: QuorumNodeSettingsEntitiesOutputItem[];
3176
- };
3177
-
3178
- export type QuorumNodeSettingsQualityCriteriaItemThresholds = {
3179
- pass: string;
3180
- fail: string;
3181
- };
3182
-
3183
- export type QuorumNodeSettingsQualityCriteriaItem = {
3184
- id: string;
3185
- qualityElement: string;
3186
- thresholds: QuorumNodeSettingsQualityCriteriaItemThresholds;
3187
- targetEntity: string;
3188
- llmQaInstruction?: string;
3189
- };
3190
-
3191
- export type QuorumNodeSettingsOffboardingRulesItem = {
3192
- id: string;
3193
- type?: QuorumNodeSettingsOffboardingRulesItemType;
3194
- agreementScale?: string;
3195
- };
3196
-
3197
- export type QuorumNodeSettingsUi = {
3198
- code: string;
3199
- data: string;
3200
- preprocess: string;
3201
- postprocess?: string;
3202
- constants: string;
3203
- };
3204
-
3205
- export type QuorumNodeSettingsQualityAssurance = {
3206
- qaMode: 'llm_only';
3207
- 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';
3208
- } | {
3209
- qaMode: 'none';
3210
- };
3211
-
3212
- export type QuorumNodeSettingsOnboardingStepsItemBlocksItem = {
3213
- id: string;
3214
- type: 'info';
3215
- estimatedTime: string;
3216
- role: string;
3217
- goal: string;
3218
- successCriteria: string;
3219
- } | {
3220
- id: string;
3221
- type: 'text';
3222
- title?: string;
3223
- content?: {
3224
- type: 'markdown';
3225
- value: string;
3226
- }[];
3227
- } | {
3228
- id: string;
3229
- type: 'quiz';
3230
- title?: string;
3231
- content?: {
3232
- type: 'markdown';
3233
- value: string;
3234
- }[];
3235
- questions: ({
3236
- id: string;
3237
- type: 'single-choice' | 'multiple-choice';
3238
- title?: string;
3239
- question: string;
3240
- hint?: string;
3241
- correctAnswerFeedback?: string;
3242
- incorrectAnswerFeedback?: string;
3243
- options: {
3244
- value: string;
3245
- label: string;
3246
- }[];
3247
- correctAnswer: string | string[];
3248
- })[];
3249
- } | {
3250
- id: string;
3251
- type: 'practice';
3252
- title?: string;
3253
- content?: {
3254
- type: 'markdown';
3255
- value: string;
3256
- }[];
3257
- imageUrl?: string;
3258
- editorType?: string;
3259
- editorConfig?: {
3260
- rows?: number;
3261
- language?: string;
3262
- placeholder?: string;
3263
- };
3264
- validators?: {
3265
- id: string;
3266
- name: string;
3267
- description: string;
3268
- criteria: string;
3269
- }[];
3270
- } | {
3271
- id: string;
3272
- type: 'examples';
3273
- title?: string;
3274
- examples: ({
3275
- id: string;
3276
- input: {[key: string]: unknown};
3277
- checks: ({
3278
- type: 'exact';
3279
- path: string;
3280
- golden: unknown;
3281
- hint: string;
3282
- } | {
3283
- type: 'code';
3284
- code: string;
3285
- hint: string;
3286
- } | {
3287
- type: 'llm';
3288
- paths: string[];
3289
- criteria: string;
3290
- reference?: string;
3291
- hint?: string;
3292
- imageUrl?: string;
3293
- })[];
3294
- explanation?: string;
3295
- sourceItemId?: string;
3296
- })[];
3297
- } | {
3298
- id: string;
3299
- type: 'consent';
3300
- title?: string;
3301
- content?: {
3302
- type: 'markdown';
3303
- value: string;
3304
- }[];
3305
- consentLabel: string;
3306
- };
3307
-
3308
- export type QuorumNodeSettingsOnboardingStepsItem = {
3309
- id: string;
3310
- blocks?: QuorumNodeSettingsOnboardingStepsItemBlocksItem[];
3311
- };
3312
-
3313
- export type QuorumNodeSettingsOnboardingInfo = {
3314
- estimatedTime: string;
3315
- role: string;
3316
- goal: string;
3317
- successCriteria: string;
3318
- };
3319
-
3320
- export type QuorumNodeSettingsOnboarding = {
3321
- enabled: boolean;
3322
- steps: QuorumNodeSettingsOnboardingStepsItem[];
3323
- info: QuorumNodeSettingsOnboardingInfo;
3324
- };
3325
-
3326
- export type QuorumNodeSettingsExamGradedEntitiesItem = {
3327
- targetEntity: string;
3328
- mode: QuorumNodeSettingsExamGradedEntitiesItemMode;
3329
- groundTruthType: QuorumNodeSettingsExamGradedEntitiesItemGroundTruthType;
3330
- customInstruction: string;
3331
- disabledCriterionIds: string[];
3332
- };
3333
-
3334
- export type QuorumNodeSettingsExam = {
3335
- enabled: boolean;
3336
- gradedEntities: QuorumNodeSettingsExamGradedEntitiesItem[];
3337
- goldenDatasetId?: string;
3338
- tasksPerExpert: number;
3339
- passThreshold: number;
3340
- };
3341
-
3342
- export type QuorumNodeSettingsReuseAudienceWithNodeId = {
3343
- pipelineId: string;
3344
- nodeId: string;
3345
- } | null;
3346
-
3347
- export type QuorumNodeSettingsSmartSearch = {
3348
- briefDescription: string;
3349
- projectDescription: string | null;
3350
- extraHardRequirements: string[];
3351
- relevanceCriteria: string[];
3352
- typicalJobTitles: string[];
3353
- idealCandidateProfile: string;
3354
- whoIsNotAFit: string[];
3355
- sourceFingerprint?: string;
3356
- } | null;
3357
-
3358
- export type QuorumNodeSettingsChecksItemInput = string | {[key: string]: string};
3359
-
3360
- export type QuorumNodeSettingsChecksItem = {
3361
- id: string;
3362
- name: string;
3363
- input: QuorumNodeSettingsChecksItemInput;
3364
- };
3365
-
3366
- export interface QuorumNodeSettings {
3367
- about: QuorumNodeSettingsAbout;
3368
- publicName: string;
3369
- audienceAndPricing?: QuorumNodeSettingsAudienceAndPricing;
3370
- entities: QuorumNodeSettingsEntities;
3371
- qualityCriteria: QuorumNodeSettingsQualityCriteriaItem[];
3372
- offboardingRules?: QuorumNodeSettingsOffboardingRulesItem[];
3373
- instruction: string;
3374
- ui: QuorumNodeSettingsUi;
3375
- qualityAssurance?: QuorumNodeSettingsQualityAssurance;
3376
- overlap: number;
3377
- onboarding: QuorumNodeSettingsOnboarding;
3378
- exam?: QuorumNodeSettingsExam;
3379
- reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
3380
- smartSearch?: QuorumNodeSettingsSmartSearch;
3381
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', QuorumNodeSettingsChecksItem[]>>;
3382
- }
3383
-
3384
- export interface QuorumNode {
3385
- id: string;
3386
- type: 'quorum';
3387
- settings: QuorumNodeSettings;
3388
- }
3389
-
3390
- export interface PipelineGraphV1 {
3391
- version: 1;
3392
- fields: PipelineGraphV1FieldsItem[];
3393
- nodes: (RootNode | CodeNode | GenerationNode | MatchNode | QuorumNode)[];
3394
- connections: PipelineGraphV1ConnectionsItem[];
3395
- layout?: PipelineGraphV1Layout;
3396
- }
3397
-
3398
- export type ListBaseModels200 = {
3399
- baseModels: BaseModel[];
3400
- };
3401
-
3402
- export type ListProjectModelsParams = {
3403
- limit?: number;
3404
- offset?: number;
3405
- };
3406
-
3407
- export type ListProjectModels200 = {
3408
- models: Model[];
3409
- pagination: Pagination;
3410
- };
3411
-
3412
- export type CreateProjectModelBody = {
3413
- name: string;
3414
- description?: string | null;
3415
- baseModelId: BaseModelId;
3416
- };
3417
-
3418
- export type ListModelVersionsParams = {
3419
- limit?: number;
3420
- offset?: number;
3421
- };
3422
-
3423
- export type ListModelVersions200 = {
3424
- versions: ModelVersion[];
3425
- pagination: Pagination;
3426
- };
3427
-
3428
- export type ListProjectTrainingsParams = {
3429
- limit?: number;
3430
- offset?: number;
3431
- };
3432
-
3433
- export type ListProjectTrainings200 = {
3434
- trainings: Training[];
3435
- pagination: Pagination;
3436
- };
3437
-
3438
- export type CreateProjectTrainingBody = {
3439
- name: string;
3440
- configuration: TrainingConfigurationInput;
3441
- };
3442
-
3443
- export type UpdateTrainingMetadataBody = {
3444
- name?: string;
3445
- archived?: boolean;
3446
- };
3447
-
3448
- export type ReplaceTrainingConfigurationBody = {
3449
- configuration: TrainingConfigurationInput;
3450
- };
3451
-
3452
- export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
3453
-
3454
- export type EstimateTrainingCostBody = {
3455
- inputSetId: TrainingCostEstimateInputSetId;
3456
- };
3457
-
3458
- export type CreateTrainingRunBody = {
3459
- inputSetId: string;
3460
- estimateFingerprint: string;
3461
- versionName: string;
3462
- };
3463
-
3464
- export type ListTrainingRunsParams = {
3465
- limit?: number;
3466
- offset?: number;
3467
- };
3468
-
3469
- export type ListTrainingRuns200 = {
3470
- trainingRuns: TrainingRun[];
3471
- pagination: Pagination;
3472
- };
3473
-
3474
- export type GetTrainingRunLogsParams = {
3475
- cursor?: string;
3476
- limit?: number;
3477
- };
3478
-
3479
- export type GetTrainingRunMetricHistoryParams = {
3480
- resolution?: number;
3481
- };
3482
-
3483
- export type ListAudienceSpecializationsParams = {
3484
- limit?: number;
3485
- offset?: number;
3486
- };
3487
-
3488
- export type ListAudienceSpecializations200 = {
3489
- specializations: Specialization[];
3490
- pagination: Pagination;
3491
- };
3492
-
3493
- 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';
3494
- export type ListGenerationModels200 = {
3495
- defaultGenerationModelId: ListGenerationModels200DefaultGenerationModelId;
3496
- generationModels: GenerationModel[];
3497
- };
3498
-
3499
- export type ListDeliveryOrders200 = {
3500
- deliveryOrders: DeliveryOrder[];
3501
- };
3502
-
3503
- export type ListProjectsParams = {
3504
- limit?: number;
3505
- offset?: number;
3506
- };
3507
-
3508
- export type ListProjects200 = {
3509
- projects: Project[];
3510
- pagination: Pagination;
3511
- };
3512
-
3513
- export type CreateProjectBody = {
3514
- teamId: string;
3515
- name?: string;
3516
- deliveryOrderId?: string | null;
3517
- };
3518
-
3519
- export type UpdateProjectBody = {
3520
- name: string;
3521
- };
3522
-
3523
- export type ListProjectPipelinesParams = {
3524
- limit?: number;
3525
- offset?: number;
3526
- };
3527
-
3528
- export type ListProjectPipelines200 = {
3529
- pipelines: Pipeline[];
3530
- pagination: Pagination;
3531
- };
3532
-
3533
- export type UpdatePipelineBody = {
3534
- name: string;
3535
- };
3536
-
3537
- export type ListProjectDatasetsParams = {
3538
- limit?: number;
3539
- offset?: number;
3540
- };
3541
-
3542
- export type ListProjectDatasets200 = {
3543
- datasets: Dataset[];
3544
- pagination: Pagination;
3545
- };
3546
-
3547
- export type CreateDatasetBodyProfile = 'chat-sft' | 'instruction';
3548
- export type CreateDatasetBody = {
3549
- name?: string;
3550
- profile?: CreateDatasetBodyProfile;
3551
- };
3552
-
3553
- export type ListDatasetFieldsParams = {
3554
- limit?: number;
3555
- offset?: number;
3556
- names?: string;
3557
- };
3558
-
3559
- export type ListDatasetFields200 = {
3560
- fields: DatasetField[];
3561
- pagination: Pagination;
3562
- };
3563
-
3564
- export type CreateDatasetFieldBody = {
3565
- name: string;
3566
- jsonSchema: {
3567
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3568
- properties?: unknown;
3569
- required?: string[];
3570
- additionalProperties?: boolean | unknown;
3571
- items?: unknown;
3572
- minItems?: number;
3573
- maxItems?: number;
3574
- uniqueItems?: boolean;
3575
- enum?: unknown[];
3576
- const?: unknown;
3577
- minimum?: number;
3578
- maximum?: number;
3579
- exclusiveMinimum?: number;
3580
- exclusiveMaximum?: number;
3581
- minLength?: number;
3582
- maxLength?: number;
3583
- pattern?: string;
3584
- format?: string;
3585
- title?: string;
3586
- description?: string;
3587
- default?: unknown;
3588
- examples?: unknown[];
3589
- anyOf?: unknown[];
3590
- oneOf?: unknown[];
3591
- allOf?: unknown[];
3592
- };
3593
- } | {
3594
- fields: ({
3595
- name: string;
3596
- jsonSchema: {
3597
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3598
- properties?: unknown;
3599
- required?: string[];
3600
- additionalProperties?: boolean | unknown;
3601
- items?: unknown;
3602
- minItems?: number;
3603
- maxItems?: number;
3604
- uniqueItems?: boolean;
3605
- enum?: unknown[];
3606
- const?: unknown;
3607
- minimum?: number;
3608
- maximum?: number;
3609
- exclusiveMinimum?: number;
3610
- exclusiveMaximum?: number;
3611
- minLength?: number;
3612
- maxLength?: number;
3613
- pattern?: string;
3614
- format?: string;
3615
- title?: string;
3616
- description?: string;
3617
- default?: unknown;
3618
- examples?: unknown[];
3619
- anyOf?: unknown[];
3620
- oneOf?: unknown[];
3621
- allOf?: unknown[];
3622
- };
3623
- })[];
3624
- };
3625
-
3626
- export type GetDatasetInferredFields200 = {
3627
- fields: InferredField[];
3628
- };
3629
-
3630
- export type AddDatasetItemsBodyFieldsItemJsonSchema = {
3631
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3632
- properties?: unknown;
3633
- required?: string[];
3634
- additionalProperties?: boolean | unknown;
3635
- items?: unknown;
3636
- minItems?: number;
3637
- maxItems?: number;
3638
- uniqueItems?: boolean;
3639
- enum?: unknown[];
3640
- const?: unknown;
3641
- minimum?: number;
3642
- maximum?: number;
3643
- exclusiveMinimum?: number;
3644
- exclusiveMaximum?: number;
3645
- minLength?: number;
3646
- maxLength?: number;
3647
- pattern?: string;
3648
- format?: string;
3649
- title?: string;
3650
- description?: string;
3651
- default?: unknown;
3652
- examples?: unknown[];
3653
- anyOf?: unknown[];
3654
- oneOf?: unknown[];
3655
- allOf?: unknown[];
3656
- };
3657
-
3658
- export type AddDatasetItemsBodyFieldsItem = {
3659
- name: string;
3660
- jsonSchema?: AddDatasetItemsBodyFieldsItemJsonSchema;
3661
- };
3662
-
3663
- export type AddDatasetItemsBodyItemsItem = {[key: string]: unknown};
3664
-
3665
- export type AddDatasetItemsBody = {
3666
- fields?: AddDatasetItemsBodyFieldsItem[];
3667
- items: AddDatasetItemsBodyItemsItem[];
3668
- };
3669
-
3670
- export type AddDatasetItems200 = {
3671
- created: number;
3672
- };
3673
-
3674
- export type ListDatasetItemsParams = {
3675
- limit?: number;
3676
- offset?: number;
3677
- };
3678
-
3679
- export type ListDatasetItems200 = {
3680
- items: DatasetItem[];
3681
- pagination: Pagination;
3682
- };
3683
-
3684
- export type CreateDatasetUploadBodyFormat = 'json' | 'csv' | 'jsonl';
3685
- export type CreateDatasetUploadBodyFieldsItemJsonSchema = {
3686
- type?: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null' | ('string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null')[];
3687
- properties?: unknown;
3688
- required?: string[];
3689
- additionalProperties?: boolean | unknown;
3690
- items?: unknown;
3691
- minItems?: number;
3692
- maxItems?: number;
3693
- uniqueItems?: boolean;
3694
- enum?: unknown[];
3695
- const?: unknown;
3696
- minimum?: number;
3697
- maximum?: number;
3698
- exclusiveMinimum?: number;
3699
- exclusiveMaximum?: number;
3700
- minLength?: number;
3701
- maxLength?: number;
3702
- pattern?: string;
3703
- format?: string;
3704
- title?: string;
3705
- description?: string;
3706
- default?: unknown;
3707
- examples?: unknown[];
3708
- anyOf?: unknown[];
3709
- oneOf?: unknown[];
3710
- allOf?: unknown[];
3711
- };
3712
-
3713
- export type CreateDatasetUploadBodyFieldsItem = {
3714
- name: string;
3715
- jsonSchema?: CreateDatasetUploadBodyFieldsItemJsonSchema;
3716
- };
3717
-
3718
- export type CreateDatasetUploadBody = {
3719
- filename: string;
3720
- format?: CreateDatasetUploadBodyFormat;
3721
- declaredSizeBytes: number;
3722
- fields?: CreateDatasetUploadBodyFieldsItem[];
3723
- };
3724
-
3725
- export type CreateDatasetUpload200 = {
3726
- job: UploadJob;
3727
- uploadUrl: string;
3728
- };
3729
-
3730
- export type ImportPipelineBody = {
3731
- name: string;
3732
- graph: PipelineGraphV1;
3733
- };
3734
-
3735
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
3736
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItemSourcesItem = {
3737
- type: 'user';
3738
- userId: string;
3739
- } | {
3740
- type: 'system';
3741
- source: string;
3742
- };
3743
-
3744
- export type AttachPipelineDatasetBodyItemFilterFieldValuesItem = {
3745
- jsonPath: string;
3746
- operator: AttachPipelineDatasetBodyItemFilterFieldValuesItemOperator;
3747
- value: string | number | boolean | null;
3748
- fieldId: string;
3749
- latestOnly?: boolean;
3750
- sources?: AttachPipelineDatasetBodyItemFilterFieldValuesItemSourcesItem[];
3751
- };
3752
-
3753
- export type AttachPipelineDatasetBodyItemFilterFieldSourcesItemSourcesItem = {
3754
- type: 'user';
3755
- userId: string;
3756
- } | {
3757
- type: 'system';
3758
- source: string;
3759
- };
3760
-
3761
- export type AttachPipelineDatasetBodyItemFilterFieldSourcesItem = {
3762
- fieldId: string;
3763
- sources: AttachPipelineDatasetBodyItemFilterFieldSourcesItemSourcesItem[];
3764
- };
3765
-
3766
- export type AttachPipelineDatasetBodyItemFilterSlice = {
3767
- sliceId: string;
3768
- };
3769
-
3770
- export type AttachPipelineDatasetBodyItemFilterParts = {
3771
- fieldId: string;
3772
- names: string[];
3773
- };
3774
-
3775
- export type AttachPipelineDatasetBodyItemFilterExcludePartsItem = {
3776
- fieldId: string;
3777
- names: string[];
3778
- };
3779
-
3780
- export type AttachPipelineDatasetBodyItemFilter = {
3781
- fieldValues?: AttachPipelineDatasetBodyItemFilterFieldValuesItem[];
3782
- fieldSources?: AttachPipelineDatasetBodyItemFilterFieldSourcesItem[];
3783
- missingRevisionFields?: string[];
3784
- slice?: AttachPipelineDatasetBodyItemFilterSlice;
3785
- parts?: AttachPipelineDatasetBodyItemFilterParts;
3786
- excludeParts?: AttachPipelineDatasetBodyItemFilterExcludePartsItem[];
3787
- createdBefore?: string;
3788
- };
3789
-
3790
- export type AttachPipelineDatasetBody = {
3791
- datasetId: string;
3792
- itemLimit?: number;
3793
- itemFilter?: AttachPipelineDatasetBodyItemFilter;
3794
- };
3795
-
3796
- export type ExportPipeline200 = {
3797
- name: string;
3798
- graph: PipelineGraphV1;
3799
- };
3800
-
3801
- export type CopyPipelineBody = {
3802
- name?: string;
3803
- };
3804
-
3805
- export type EstimatePipelineCostBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
3806
- export type EstimatePipelineCostBodyItemFilterFieldValuesItemSourcesItem = {
3807
- type: 'user';
3808
- userId: string;
3809
- } | {
3810
- type: 'system';
3811
- source: string;
3812
- };
3813
-
3814
- export type EstimatePipelineCostBodyItemFilterFieldValuesItem = {
3815
- jsonPath: string;
3816
- operator: EstimatePipelineCostBodyItemFilterFieldValuesItemOperator;
3817
- value: string | number | boolean | null;
3818
- fieldId: string;
3819
- latestOnly?: boolean;
3820
- sources?: EstimatePipelineCostBodyItemFilterFieldValuesItemSourcesItem[];
3821
- };
3822
-
3823
- export type EstimatePipelineCostBodyItemFilterFieldSourcesItemSourcesItem = {
3824
- type: 'user';
3825
- userId: string;
3826
- } | {
3827
- type: 'system';
3828
- source: string;
3829
- };
3830
-
3831
- export type EstimatePipelineCostBodyItemFilterFieldSourcesItem = {
3832
- fieldId: string;
3833
- sources: EstimatePipelineCostBodyItemFilterFieldSourcesItemSourcesItem[];
3834
- };
3835
-
3836
- export type EstimatePipelineCostBodyItemFilterSlice = {
3837
- sliceId: string;
3838
- };
3839
-
3840
- export type EstimatePipelineCostBodyItemFilterParts = {
3841
- fieldId: string;
3842
- names: string[];
3843
- };
3844
-
3845
- export type EstimatePipelineCostBodyItemFilterExcludePartsItem = {
3846
- fieldId: string;
3847
- names: string[];
3848
- };
3849
-
3850
- export type EstimatePipelineCostBodyItemFilter = {
3851
- fieldValues?: EstimatePipelineCostBodyItemFilterFieldValuesItem[];
3852
- fieldSources?: EstimatePipelineCostBodyItemFilterFieldSourcesItem[];
3853
- missingRevisionFields?: string[];
3854
- slice?: EstimatePipelineCostBodyItemFilterSlice;
3855
- parts?: EstimatePipelineCostBodyItemFilterParts;
3856
- excludeParts?: EstimatePipelineCostBodyItemFilterExcludePartsItem[];
3857
- createdBefore?: string;
3858
- };
3859
-
3860
- export type EstimatePipelineCostBody = {
3861
- itemLimit?: number;
3862
- itemFilter?: EstimatePipelineCostBodyItemFilter;
3863
- };
3864
-
3865
- export type ListPipelineRunsParams = {
3866
- limit?: number;
3867
- offset?: number;
3868
- };
3869
-
3870
- export type ListPipelineRuns200 = {
3871
- runs: RunSummary[];
3872
- pagination: Pagination;
3873
- };
3874
-
3875
- export type CancelPipelineRunBodyPendingHumanQa = 'accept_without_review' | 'wait_for_review';
3876
- export type CancelPipelineRunBody = {
3877
- pendingHumanQa?: CancelPipelineRunBodyPendingHumanQa;
3878
- };
3879
-
3880
- export type SampleDatasetItemsBody = {
3881
- markField: string;
3882
- markValue: string;
3883
- itemFilter?: {
3884
- fieldValues?: ({
3885
- jsonPath: string;
3886
- operator: 'text_eq' | 'text_neq';
3887
- value: string | number | boolean | null;
3888
- fieldId: string;
3889
- latestOnly?: boolean;
3890
- sources?: ({
3891
- type: 'user';
3892
- userId: string;
3893
- } | {
3894
- type: 'system';
3895
- source: string;
3896
- })[];
3897
- })[];
3898
- fieldSources?: ({
3899
- fieldId: string;
3900
- sources: ({
3901
- type: 'user';
3902
- userId: string;
3903
- } | {
3904
- type: 'system';
3905
- source: string;
3906
- })[];
3907
- })[];
3908
- missingRevisionFields?: string[];
3909
- slice?: {
3910
- sliceId: string;
3911
- };
3912
- parts?: {
3913
- fieldId: string;
3914
- names: string[];
3915
- };
3916
- excludeParts?: {
3917
- fieldId: string;
3918
- names: string[];
3919
- }[];
3920
- createdBefore?: string;
3921
- };
3922
- count: number;
3923
- } | {
3924
- markField: string;
3925
- markValue: string;
3926
- itemFilter?: {
3927
- fieldValues?: ({
3928
- jsonPath: string;
3929
- operator: 'text_eq' | 'text_neq';
3930
- value: string | number | boolean | null;
3931
- fieldId: string;
3932
- latestOnly?: boolean;
3933
- sources?: ({
3934
- type: 'user';
3935
- userId: string;
3936
- } | {
3937
- type: 'system';
3938
- source: string;
3939
- })[];
3940
- })[];
3941
- fieldSources?: ({
3942
- fieldId: string;
3943
- sources: ({
3944
- type: 'user';
3945
- userId: string;
3946
- } | {
3947
- type: 'system';
3948
- source: string;
3949
- })[];
3950
- })[];
3951
- missingRevisionFields?: string[];
3952
- slice?: {
3953
- sliceId: string;
3954
- };
3955
- parts?: {
3956
- fieldId: string;
3957
- names: string[];
3958
- };
3959
- excludeParts?: {
3960
- fieldId: string;
3961
- names: string[];
3962
- }[];
3963
- createdBefore?: string;
3964
- };
3965
- fraction: number;
3966
- };
3967
-
3968
- export type CreateDatasetSliceBody = {
3969
- name?: string;
3970
- itemFilter?: {
3971
- fieldValues?: ({
3972
- jsonPath: string;
3973
- operator: 'text_eq' | 'text_neq';
3974
- value: string | number | boolean | null;
3975
- fieldId: string;
3976
- latestOnly?: boolean;
3977
- sources?: ({
3978
- type: 'user';
3979
- userId: string;
3980
- } | {
3981
- type: 'system';
3982
- source: string;
3983
- })[];
3984
- })[];
3985
- fieldSources?: ({
3986
- fieldId: string;
3987
- sources: ({
3988
- type: 'user';
3989
- userId: string;
3990
- } | {
3991
- type: 'system';
3992
- source: string;
3993
- })[];
3994
- })[];
3995
- missingRevisionFields?: string[];
3996
- };
3997
- frozenColumns?: string[];
3998
- } | {
3999
- name?: string;
4000
- fromSlice: string;
4001
- frozenColumns?: string[];
4002
- };
4003
-
4004
- export type ListDatasetSlicesParams = {
4005
- limit?: number;
4006
- offset?: number;
4007
- };
4008
-
4009
- export type ListDatasetSlices200 = {
4010
- slices: DatasetSlice[];
4011
- pagination: Pagination;
4012
- };
4013
-
4014
- export type SplitDatasetBodyPartsItemRolesItem = 'train' | 'validate' | 'test';
4015
- export type SplitDatasetBodyPartsItem = {
4016
- name: string;
4017
- roles: SplitDatasetBodyPartsItemRolesItem[];
4018
- share?: number;
4019
- };
4020
-
4021
- export type SplitDatasetBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
4022
- export type SplitDatasetBodyItemFilterFieldValuesItemSourcesItem = {
4023
- type: 'user';
4024
- userId: string;
4025
- } | {
4026
- type: 'system';
4027
- source: string;
4028
- };
4029
-
4030
- export type SplitDatasetBodyItemFilterFieldValuesItem = {
4031
- jsonPath: string;
4032
- operator: SplitDatasetBodyItemFilterFieldValuesItemOperator;
4033
- value: string | number | boolean | null;
4034
- fieldId: string;
4035
- latestOnly?: boolean;
4036
- sources?: SplitDatasetBodyItemFilterFieldValuesItemSourcesItem[];
4037
- };
4038
-
4039
- export type SplitDatasetBodyItemFilterFieldSourcesItemSourcesItem = {
4040
- type: 'user';
4041
- userId: string;
4042
- } | {
4043
- type: 'system';
4044
- source: string;
4045
- };
4046
-
4047
- export type SplitDatasetBodyItemFilterFieldSourcesItem = {
4048
- fieldId: string;
4049
- sources: SplitDatasetBodyItemFilterFieldSourcesItemSourcesItem[];
4050
- };
4051
-
4052
- export type SplitDatasetBodyItemFilter = {
4053
- fieldValues?: SplitDatasetBodyItemFilterFieldValuesItem[];
4054
- fieldSources?: SplitDatasetBodyItemFilterFieldSourcesItem[];
4055
- missingRevisionFields?: string[];
4056
- };
4057
-
4058
- export type SplitDatasetBody = {
4059
- column?: string;
4060
- parts?: SplitDatasetBodyPartsItem[];
4061
- balanceBy?: string;
4062
- seed?: number;
4063
- slice?: string;
4064
- itemFilter?: SplitDatasetBodyItemFilter;
4065
- };
4066
-
4067
- export type CreateDatasetExportBodyFormat = 'json-array';
4068
- export type CreateDatasetExportBody = {
4069
- format?: CreateDatasetExportBodyFormat;
4070
- fields: string[];
4071
- };
4072
-
4073
- export type CreateDatasetFieldsFromUploadedRowsBody = {
4074
- names: string[];
4075
- };
4076
-
4077
- export type ReplacePipelineGraphBody = {
4078
- graph: PipelineGraphV1;
4079
- expectedVersion?: PipelineGraphVersion;
4080
- };
4081
-
4082
- export type ValidatePipelineGraphBodyGraphFieldsItem = {
4083
- id: string;
4084
- name: string;
4085
- jsonSchema: JsonSchema;
4086
- };
4087
-
4088
- export type ValidatePipelineGraphBodyGraphNodesItem = {
4089
- id: string;
4090
- type: 'root';
4091
- settings: {
4092
- datasetId?: string;
4093
- itemFilter?: {
4094
- fieldValues?: ({
4095
- jsonPath: string;
4096
- operator: 'text_eq' | 'text_neq';
4097
- value: string | number | boolean | null;
4098
- fieldId: string;
4099
- latestOnly?: boolean;
4100
- sources?: ({
4101
- type: 'user';
4102
- userId: string;
4103
- } | {
4104
- type: 'system';
4105
- source: string;
4106
- })[];
4107
- })[];
4108
- fieldSources?: ({
4109
- fieldId: string;
4110
- sources: ({
4111
- type: 'user';
4112
- userId: string;
4113
- } | {
4114
- type: 'system';
4115
- source: string;
4116
- })[];
4117
- })[];
4118
- missingRevisionFields?: string[];
4119
- slice?: {
4120
- sliceId: string;
4121
- };
4122
- parts?: {
4123
- fieldId: string;
4124
- names: string[];
4125
- };
4126
- excludeParts?: {
4127
- fieldId: string;
4128
- names: string[];
4129
- }[];
4130
- createdBefore?: string;
4131
- };
4132
- itemLimit?: number;
4133
- startedFieldProxies: {
4134
- output: {
4135
- id: string;
4136
- optional: boolean;
4137
- }[];
4138
- };
4139
- completedFieldProxies: {
4140
- input: {
4141
- id: string;
4142
- optional: boolean;
4143
- }[];
4144
- };
4145
- };
4146
- } | {
4147
- id: string;
4148
- type: 'code';
4149
- settings: {
4150
- about: {
4151
- name: string;
4152
- description?: string;
4153
- projectType?: 'general' | 'data_collection';
4154
- };
4155
- fieldProxies: {
4156
- input: {
4157
- id: string;
4158
- optional: boolean;
4159
- }[];
4160
- output: {
4161
- id: string;
4162
- optional: boolean;
4163
- }[];
4164
- };
4165
- code: {
4166
- code: string;
4167
- };
4168
- envVars?: ({
4169
- type: 'static';
4170
- name: string;
4171
- value: string;
4172
- } | {
4173
- type: 'secret';
4174
- name: string;
4175
- secretName: string;
4176
- })[];
4177
- checks?: Partial<Record<'code', ({
4178
- id: string;
4179
- name: string;
4180
- input: string | {[key: string]: string};
4181
- })[]>>;
4182
- };
4183
- } | {
4184
- id: string;
4185
- type: 'generation';
4186
- settings: {
4187
- about: {
4188
- name: string;
4189
- description?: string;
4190
- projectType?: 'general' | 'data_collection';
4191
- };
4192
- publicName: string;
4193
- entities: {
4194
- input: ({
4195
- fieldProxyId: string;
4196
- entityType: string;
4197
- optional: boolean;
4198
- jsonPath: string;
4199
- description: string;
4200
- relations?: ({
4201
- id: string;
4202
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4203
- } | {
4204
- id: string;
4205
- rel_type: 'conditional';
4206
- condition: {
4207
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4208
- value: string | string[];
4209
- };
4210
- })[];
4211
- minDurationSeconds?: number;
4212
- maxDurationSeconds?: number;
4213
- allowedLabels?: {
4214
- label: string;
4215
- value: string;
4216
- }[];
4217
- dynamic: false;
4218
- maxEntities?: null;
4219
- } | {
4220
- fieldProxyId: string;
4221
- entityType: string;
4222
- optional: boolean;
4223
- jsonPath: string;
4224
- description: string;
4225
- relations?: ({
4226
- id: string;
4227
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4228
- } | {
4229
- id: string;
4230
- rel_type: 'conditional';
4231
- condition: {
4232
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4233
- value: string | string[];
4234
- };
4235
- })[];
4236
- minDurationSeconds?: number;
4237
- maxDurationSeconds?: number;
4238
- allowedLabels?: {
4239
- label: string;
4240
- value: string;
4241
- }[];
4242
- dynamic: true;
4243
- maxEntities?: number | null;
4244
- })[];
4245
- output: ({
4246
- fieldProxyId: string;
4247
- entityType: string;
4248
- optional: boolean;
4249
- jsonPath: string;
4250
- description: string;
4251
- relations?: ({
4252
- id: string;
4253
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4254
- } | {
4255
- id: string;
4256
- rel_type: 'conditional';
4257
- condition: {
4258
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4259
- value: string | string[];
4260
- };
4261
- })[];
4262
- minDurationSeconds?: number;
4263
- maxDurationSeconds?: number;
4264
- allowedLabels?: {
4265
- label: string;
4266
- value: string;
4267
- }[];
4268
- dynamic: false;
4269
- maxEntities?: null;
4270
- } | {
4271
- fieldProxyId: string;
4272
- entityType: string;
4273
- optional: boolean;
4274
- jsonPath: string;
4275
- description: string;
4276
- relations?: ({
4277
- id: string;
4278
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4279
- } | {
4280
- id: string;
4281
- rel_type: 'conditional';
4282
- condition: {
4283
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4284
- value: string | string[];
4285
- };
4286
- })[];
4287
- minDurationSeconds?: number;
4288
- maxDurationSeconds?: number;
4289
- allowedLabels?: {
4290
- label: string;
4291
- value: string;
4292
- }[];
4293
- dynamic: true;
4294
- maxEntities?: number | null;
4295
- })[];
4296
- };
4297
- qualityCriteria: {
4298
- id: string;
4299
- qualityElement: string;
4300
- thresholds: {
4301
- pass: string;
4302
- fail: string;
4303
- };
4304
- targetEntity: string;
4305
- llmQaInstruction?: string;
4306
- }[];
4307
- instruction: string;
4308
- ui: {
4309
- code: string;
4310
- data: string;
4311
- preprocess: string;
4312
- postprocess?: string;
4313
- constants: string;
4314
- };
4315
- qualityAssurance?: {
4316
- qaMode: 'llm_only';
4317
- 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';
4318
- } | {
4319
- qaMode: 'human_only';
4320
- smartSamplingPercent?: number;
4321
- humanQaTimeForTask?: number;
4322
- } | {
4323
- qaMode: 'hybrid';
4324
- smartSamplingPercent?: number;
4325
- humanQaTimeForTask?: number;
4326
- 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';
4327
- };
4328
- audienceAndPricing?: {
4329
- verifiedExperts: boolean;
4330
- audience: {
4331
- languages: {
4332
- type: 'or' | 'and';
4333
- values: {
4334
- value: string;
4335
- }[];
4336
- };
4337
- specializations: {
4338
- type: 'or' | 'and';
4339
- values: {
4340
- value: string;
4341
- qualificationId: string;
4342
- }[];
4343
- };
4344
- countries: {
4345
- type: 'or';
4346
- values: string[];
4347
- };
4348
- };
4349
- pricePerTask: number;
4350
- timeForTask: number;
4351
- perExpertCapEnabled?: boolean;
4352
- perExpertCapValue?: number;
4353
- audienceType: 'human';
4354
- } | {
4355
- audienceType: 'synthetic';
4356
- 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';
4357
- reasoningEffort?: 'low' | 'medium' | 'high';
4358
- llmInstruction?: string;
4359
- maxCostPerAttempt: number;
4360
- };
4361
- onboarding: {
4362
- enabled: boolean;
4363
- steps: ({
4364
- id: string;
4365
- blocks?: ({
4366
- id: string;
4367
- type: 'info';
4368
- estimatedTime: string;
4369
- role: string;
4370
- goal: string;
4371
- successCriteria: string;
4372
- } | {
4373
- id: string;
4374
- type: 'text';
4375
- title?: string;
4376
- content?: {
4377
- type: 'markdown';
4378
- value: string;
4379
- }[];
4380
- } | {
4381
- id: string;
4382
- type: 'quiz';
4383
- title?: string;
4384
- content?: {
4385
- type: 'markdown';
4386
- value: string;
4387
- }[];
4388
- questions: ({
4389
- id: string;
4390
- type: 'single-choice' | 'multiple-choice';
4391
- title?: string;
4392
- question: string;
4393
- hint?: string;
4394
- correctAnswerFeedback?: string;
4395
- incorrectAnswerFeedback?: string;
4396
- options: {
4397
- value: string;
4398
- label: string;
4399
- }[];
4400
- correctAnswer: string | string[];
4401
- })[];
4402
- } | {
4403
- id: string;
4404
- type: 'practice';
4405
- title?: string;
4406
- content?: {
4407
- type: 'markdown';
4408
- value: string;
4409
- }[];
4410
- imageUrl?: string;
4411
- editorType?: string;
4412
- editorConfig?: {
4413
- rows?: number;
4414
- language?: string;
4415
- placeholder?: string;
4416
- };
4417
- validators?: {
4418
- id: string;
4419
- name: string;
4420
- description: string;
4421
- criteria: string;
4422
- }[];
4423
- } | {
4424
- id: string;
4425
- type: 'examples';
4426
- title?: string;
4427
- examples: ({
4428
- id: string;
4429
- input: {[key: string]: unknown};
4430
- checks: ({
4431
- type: 'exact';
4432
- path: string;
4433
- golden: unknown;
4434
- hint: string;
4435
- } | {
4436
- type: 'code';
4437
- code: string;
4438
- hint: string;
4439
- } | {
4440
- type: 'llm';
4441
- paths: string[];
4442
- criteria: string;
4443
- reference?: string;
4444
- hint?: string;
4445
- imageUrl?: string;
4446
- })[];
4447
- explanation?: string;
4448
- sourceItemId?: string;
4449
- })[];
4450
- } | {
4451
- id: string;
4452
- type: 'consent';
4453
- title?: string;
4454
- content?: {
4455
- type: 'markdown';
4456
- value: string;
4457
- }[];
4458
- consentLabel: string;
4459
- })[];
4460
- })[];
4461
- info: {
4462
- estimatedTime: string;
4463
- role: string;
4464
- goal: string;
4465
- successCriteria: string;
4466
- };
4467
- };
4468
- exam?: {
4469
- enabled: boolean;
4470
- gradedEntities: ({
4471
- targetEntity: string;
4472
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
4473
- groundTruthType: 'direct' | 'custom';
4474
- customInstruction: string;
4475
- disabledCriterionIds: string[];
4476
- })[];
4477
- goldenDatasetId?: string;
4478
- tasksPerExpert: number;
4479
- passThreshold: number;
4480
- };
4481
- reuseAudienceWithNodeId?: {
4482
- pipelineId: string;
4483
- nodeId: string;
4484
- } | null;
4485
- smartSearch?: {
4486
- briefDescription: string;
4487
- projectDescription: string | null;
4488
- extraHardRequirements: string[];
4489
- relevanceCriteria: string[];
4490
- typicalJobTitles: string[];
4491
- idealCandidateProfile: string;
4492
- whoIsNotAFit: string[];
4493
- sourceFingerprint?: string;
4494
- } | null;
4495
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', ({
4496
- id: string;
4497
- name: string;
4498
- input: string | {[key: string]: string};
4499
- })[]>>;
4500
- };
4501
- } | {
4502
- id: string;
4503
- type: 'match';
4504
- settings: {
4505
- about: {
4506
- name: string;
4507
- description?: string;
4508
- projectType?: 'general' | 'data_collection';
4509
- };
4510
- conditions: ({
4511
- name: string;
4512
- logic?: 'and' | 'or';
4513
- predicates: ({
4514
- fieldProxyId: string;
4515
- jsonPath: string;
4516
- operator: 'text_eq' | 'text_neq';
4517
- value: string | number | boolean | null;
4518
- })[];
4519
- })[];
4520
- fieldProxies: {
4521
- input: {
4522
- id: string;
4523
- optional: boolean;
4524
- }[];
4525
- };
4526
- };
4527
- } | {
4528
- id: string;
4529
- type: 'quorum';
4530
- settings: {
4531
- about: {
4532
- name: string;
4533
- description?: string;
4534
- projectType?: 'general' | 'data_collection';
4535
- };
4536
- publicName: string;
4537
- audienceAndPricing?: {
4538
- verifiedExperts: boolean;
4539
- audience: {
4540
- languages: {
4541
- type: 'or' | 'and';
4542
- values: {
4543
- value: string;
4544
- }[];
4545
- };
4546
- specializations: {
4547
- type: 'or' | 'and';
4548
- values: {
4549
- value: string;
4550
- qualificationId: string;
4551
- }[];
4552
- };
4553
- countries: {
4554
- type: 'or';
4555
- values: string[];
4556
- };
4557
- };
4558
- pricePerTask: number;
4559
- timeForTask: number;
4560
- perExpertCapEnabled?: boolean;
4561
- perExpertCapValue?: number;
4562
- audienceType: 'human';
4563
- };
4564
- entities: {
4565
- input: ({
4566
- fieldProxyId: string;
4567
- entityType: string;
4568
- optional: boolean;
4569
- jsonPath: string;
4570
- description: string;
4571
- relations?: ({
4572
- id: string;
4573
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4574
- } | {
4575
- id: string;
4576
- rel_type: 'conditional';
4577
- condition: {
4578
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4579
- value: string | string[];
4580
- };
4581
- })[];
4582
- minDurationSeconds?: number;
4583
- maxDurationSeconds?: number;
4584
- allowedLabels?: {
4585
- label: string;
4586
- value: string;
4587
- }[];
4588
- dynamic: false;
4589
- maxEntities?: null;
4590
- } | {
4591
- fieldProxyId: string;
4592
- entityType: string;
4593
- optional: boolean;
4594
- jsonPath: string;
4595
- description: string;
4596
- relations?: ({
4597
- id: string;
4598
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4599
- } | {
4600
- id: string;
4601
- rel_type: 'conditional';
4602
- condition: {
4603
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4604
- value: string | string[];
4605
- };
4606
- })[];
4607
- minDurationSeconds?: number;
4608
- maxDurationSeconds?: number;
4609
- allowedLabels?: {
4610
- label: string;
4611
- value: string;
4612
- }[];
4613
- dynamic: true;
4614
- maxEntities?: number | null;
4615
- })[];
4616
- output: ({
4617
- fieldProxyId: string;
4618
- entityType: string;
4619
- optional: boolean;
4620
- jsonPath: string;
4621
- description: string;
4622
- relations?: ({
4623
- id: string;
4624
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4625
- } | {
4626
- id: string;
4627
- rel_type: 'conditional';
4628
- condition: {
4629
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4630
- value: string | string[];
4631
- };
4632
- })[];
4633
- minDurationSeconds?: number;
4634
- maxDurationSeconds?: number;
4635
- allowedLabels?: {
4636
- label: string;
4637
- value: string;
4638
- }[];
4639
- dynamic: false;
4640
- maxEntities?: null;
4641
- } | {
4642
- fieldProxyId: string;
4643
- entityType: string;
4644
- optional: boolean;
4645
- jsonPath: string;
4646
- description: string;
4647
- relations?: ({
4648
- id: string;
4649
- rel_type: 'context' | 'references' | 'depends_on' | 'evaluates';
4650
- } | {
4651
- id: string;
4652
- rel_type: 'conditional';
4653
- condition: {
4654
- operator: 'EQ' | 'NEQ' | 'IN' | 'NOT_IN' | 'NOT_EMPTY';
4655
- value: string | string[];
2206
+ export type EstimatePipelineCostBodyItemFilter = {
2207
+ fieldValues?: DatasetFieldValueConditions;
2208
+ fieldSources?: DatasetFieldSourceConditions;
2209
+ missingRevisionFields?: string[];
2210
+ slice?: DatasetSliceSelection;
2211
+ parts?: DatasetSplitPartInclusion;
2212
+ excludeParts?: DatasetSplitPartExclusions;
2213
+ createdBefore?: string;
4656
2214
  };
4657
- })[];
4658
- minDurationSeconds?: number;
4659
- maxDurationSeconds?: number;
4660
- allowedLabels?: {
4661
- label: string;
4662
- value: string;
4663
- }[];
4664
- dynamic: true;
4665
- maxEntities?: number | null;
4666
- })[];
2215
+
2216
+ export type EstimatePipelineCostBody = {
2217
+ itemLimit?: number;
2218
+ itemFilter?: EstimatePipelineCostBodyItemFilter;
4667
2219
  };
4668
- qualityCriteria: {
4669
- id: string;
4670
- qualityElement: string;
4671
- thresholds: {
4672
- pass: string;
4673
- fail: string;
2220
+
2221
+ export type ListPipelineRunsParams = {
2222
+ limit?: number;
2223
+ offset?: number;
4674
2224
  };
4675
- targetEntity: string;
4676
- llmQaInstruction?: string;
4677
- }[];
4678
- offboardingRules?: {
4679
- id: string;
4680
- type?: 'mv_agreement';
4681
- agreementScale?: string;
4682
- }[];
4683
- instruction: string;
4684
- ui: {
4685
- code: string;
4686
- data: string;
4687
- preprocess: string;
4688
- postprocess?: string;
4689
- constants: string;
2225
+
2226
+ export type ListPipelineRuns200 = {
2227
+ runs: RunSummary[];
2228
+ pagination: Pagination;
4690
2229
  };
4691
- qualityAssurance?: {
4692
- qaMode: 'llm_only';
4693
- 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';
4694
- } | {
4695
- qaMode: 'none';
2230
+
2231
+ export type CancelPipelineRunBodyPendingHumanQa = 'accept_without_review' | 'wait_for_review';
2232
+ export type CancelPipelineRunBody = {
2233
+ pendingHumanQa?: CancelPipelineRunBodyPendingHumanQa;
4696
2234
  };
4697
- overlap: number;
4698
- onboarding: {
4699
- enabled: boolean;
4700
- steps: ({
4701
- id: string;
4702
- blocks?: ({
4703
- id: string;
4704
- type: 'info';
4705
- estimatedTime: string;
4706
- role: string;
4707
- goal: string;
4708
- successCriteria: string;
4709
- } | {
4710
- id: string;
4711
- type: 'text';
4712
- title?: string;
4713
- content?: {
4714
- type: 'markdown';
4715
- value: string;
4716
- }[];
4717
- } | {
4718
- id: string;
4719
- type: 'quiz';
4720
- title?: string;
4721
- content?: {
4722
- type: 'markdown';
4723
- value: string;
4724
- }[];
4725
- questions: ({
4726
- id: string;
4727
- type: 'single-choice' | 'multiple-choice';
4728
- title?: string;
4729
- question: string;
4730
- hint?: string;
4731
- correctAnswerFeedback?: string;
4732
- incorrectAnswerFeedback?: string;
4733
- options: {
4734
- value: string;
4735
- label: string;
4736
- }[];
4737
- correctAnswer: string | string[];
4738
- })[];
2235
+
2236
+ export type SampleDatasetItemsBody = {
2237
+ markField: string;
2238
+ markValue: string;
2239
+ itemFilter?: DatasetItemFilter;
2240
+ count: number;
4739
2241
  } | {
4740
- id: string;
4741
- type: 'practice';
4742
- title?: string;
4743
- content?: {
4744
- type: 'markdown';
4745
- value: string;
4746
- }[];
4747
- imageUrl?: string;
4748
- editorType?: string;
4749
- editorConfig?: {
4750
- rows?: number;
4751
- language?: string;
4752
- placeholder?: string;
2242
+ markField: string;
2243
+ markValue: string;
2244
+ itemFilter?: DatasetItemFilter;
2245
+ fraction: number;
4753
2246
  };
4754
- validators?: {
4755
- id: string;
4756
- name: string;
4757
- description: string;
4758
- criteria: string;
4759
- }[];
4760
- } | {
4761
- id: string;
4762
- type: 'examples';
4763
- title?: string;
4764
- examples: ({
4765
- id: string;
4766
- input: {[key: string]: unknown};
4767
- checks: ({
4768
- type: 'exact';
4769
- path: string;
4770
- golden: unknown;
4771
- hint: string;
4772
- } | {
4773
- type: 'code';
4774
- code: string;
4775
- hint: string;
4776
- } | {
4777
- type: 'llm';
4778
- paths: string[];
4779
- criteria: string;
4780
- reference?: string;
4781
- hint?: string;
4782
- imageUrl?: string;
4783
- })[];
4784
- explanation?: string;
4785
- sourceItemId?: string;
4786
- })[];
2247
+
2248
+ export type CreateDatasetSliceBody = {
2249
+ name?: string;
2250
+ itemFilter?: {
2251
+ fieldValues?: DatasetFieldValueConditions;
2252
+ fieldSources?: DatasetFieldSourceConditions;
2253
+ missingRevisionFields?: string[];
2254
+ };
2255
+ frozenColumns?: string[];
4787
2256
  } | {
4788
- id: string;
4789
- type: 'consent';
4790
- title?: string;
4791
- content?: {
4792
- type: 'markdown';
4793
- value: string;
4794
- }[];
4795
- consentLabel: string;
4796
- })[];
4797
- })[];
4798
- info: {
4799
- estimatedTime: string;
4800
- role: string;
4801
- goal: string;
4802
- successCriteria: string;
2257
+ name?: string;
2258
+ fromSlice: string;
2259
+ frozenColumns?: string[];
4803
2260
  };
2261
+
2262
+ export type ListDatasetSlicesParams = {
2263
+ limit?: number;
2264
+ offset?: number;
4804
2265
  };
4805
- exam?: {
4806
- enabled: boolean;
4807
- gradedEntities: ({
4808
- targetEntity: string;
4809
- mode: 'ground_truth' | 'quality_criteria' | 'not_graded';
4810
- groundTruthType: 'direct' | 'custom';
4811
- customInstruction: string;
4812
- disabledCriterionIds: string[];
4813
- })[];
4814
- goldenDatasetId?: string;
4815
- tasksPerExpert: number;
4816
- passThreshold: number;
2266
+
2267
+ export type ListDatasetSlices200 = {
2268
+ slices: DatasetSlice[];
2269
+ pagination: Pagination;
4817
2270
  };
4818
- reuseAudienceWithNodeId?: {
4819
- pipelineId: string;
4820
- nodeId: string;
4821
- } | null;
4822
- smartSearch?: {
4823
- briefDescription: string;
4824
- projectDescription: string | null;
4825
- extraHardRequirements: string[];
4826
- relevanceCriteria: string[];
4827
- typicalJobTitles: string[];
4828
- idealCandidateProfile: string;
4829
- whoIsNotAFit: string[];
4830
- sourceFingerprint?: string;
4831
- } | null;
4832
- checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', ({
4833
- id: string;
2271
+
2272
+ export type SplitDatasetBodyPartsItemRolesItem = 'train' | 'validate' | 'test';
2273
+ export type SplitDatasetBodyPartsItem = {
4834
2274
  name: string;
4835
- input: string | {[key: string]: string};
4836
- })[]>>;
4837
- };
2275
+ roles: SplitDatasetBodyPartsItemRolesItem[];
2276
+ share?: number;
4838
2277
  };
4839
2278
 
4840
- export type ValidatePipelineGraphBodyGraphConnectionsItemFrom = {
4841
- node: string;
4842
- handle: string;
2279
+ export type SplitDatasetBodyItemFilter = {
2280
+ fieldValues?: DatasetFieldValueConditions;
2281
+ fieldSources?: DatasetFieldSourceConditions;
2282
+ missingRevisionFields?: string[];
4843
2283
  };
4844
2284
 
4845
- export type ValidatePipelineGraphBodyGraphConnectionsItemTo = {
4846
- node: string;
4847
- handle: string;
2285
+ export type SplitDatasetBody = {
2286
+ column?: string;
2287
+ parts?: SplitDatasetBodyPartsItem[];
2288
+ balanceBy?: string;
2289
+ seed?: number;
2290
+ slice?: string;
2291
+ itemFilter?: SplitDatasetBodyItemFilter;
4848
2292
  };
4849
2293
 
4850
- export type ValidatePipelineGraphBodyGraphConnectionsItemSettings = {[key: string]: unknown};
4851
-
4852
- export type ValidatePipelineGraphBodyGraphConnectionsItem = {
4853
- from: ValidatePipelineGraphBodyGraphConnectionsItemFrom;
4854
- to: ValidatePipelineGraphBodyGraphConnectionsItemTo;
4855
- settings: ValidatePipelineGraphBodyGraphConnectionsItemSettings;
2294
+ export type CreateDatasetExportBodyFormat = 'json-array';
2295
+ export type CreateDatasetExportBody = {
2296
+ format?: CreateDatasetExportBodyFormat;
2297
+ fields: string[];
4856
2298
  };
4857
2299
 
4858
- export type ValidatePipelineGraphBodyGraphLayout = {[key: string]: {[key: string]: [number, number]}};
2300
+ export type CreateDatasetFieldsFromUploadedRowsBody = {
2301
+ names: string[];
2302
+ };
4859
2303
 
4860
- export type ValidatePipelineGraphBodyGraph = {
4861
- version: 1;
4862
- fields: ValidatePipelineGraphBodyGraphFieldsItem[];
4863
- nodes: ValidatePipelineGraphBodyGraphNodesItem[];
4864
- connections: ValidatePipelineGraphBodyGraphConnectionsItem[];
4865
- layout?: ValidatePipelineGraphBodyGraphLayout;
2304
+ export type ReplacePipelineGraphBody = {
2305
+ graph: PipelineGraphV1;
2306
+ expectedVersion?: PipelineGraphVersion;
4866
2307
  };
4867
2308
 
4868
2309
  export type ValidatePipelineGraphBody = {
4869
- graph: ValidatePipelineGraphBodyGraph;
2310
+ graph: PipelineGraphV1;
4870
2311
  };
4871
2312
 
4872
2313
  export type PatchPipelineNodeBodySettings = {[key: string]: unknown};
@@ -4927,58 +2368,13 @@ export type CreatePipelineCheckBody = {
4927
2368
  checkId: string;
4928
2369
  };
4929
2370
 
4930
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
4931
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItemSourcesItem = {
4932
- type: 'user';
4933
- userId: string;
4934
- } | {
4935
- type: 'system';
4936
- source: string;
4937
- };
4938
-
4939
- export type CreateBatchInferenceRunBodyItemFilterFieldValuesItem = {
4940
- jsonPath: string;
4941
- operator: CreateBatchInferenceRunBodyItemFilterFieldValuesItemOperator;
4942
- value: string | number | boolean | null;
4943
- fieldId: string;
4944
- latestOnly?: boolean;
4945
- sources?: CreateBatchInferenceRunBodyItemFilterFieldValuesItemSourcesItem[];
4946
- };
4947
-
4948
- export type CreateBatchInferenceRunBodyItemFilterFieldSourcesItemSourcesItem = {
4949
- type: 'user';
4950
- userId: string;
4951
- } | {
4952
- type: 'system';
4953
- source: string;
4954
- };
4955
-
4956
- export type CreateBatchInferenceRunBodyItemFilterFieldSourcesItem = {
4957
- fieldId: string;
4958
- sources: CreateBatchInferenceRunBodyItemFilterFieldSourcesItemSourcesItem[];
4959
- };
4960
-
4961
- export type CreateBatchInferenceRunBodyItemFilterSlice = {
4962
- sliceId: string;
4963
- };
4964
-
4965
- export type CreateBatchInferenceRunBodyItemFilterParts = {
4966
- fieldId: string;
4967
- names: string[];
4968
- };
4969
-
4970
- export type CreateBatchInferenceRunBodyItemFilterExcludePartsItem = {
4971
- fieldId: string;
4972
- names: string[];
4973
- };
4974
-
4975
2371
  export type CreateBatchInferenceRunBodyItemFilter = {
4976
- fieldValues?: CreateBatchInferenceRunBodyItemFilterFieldValuesItem[];
4977
- fieldSources?: CreateBatchInferenceRunBodyItemFilterFieldSourcesItem[];
2372
+ fieldValues?: DatasetFieldValueConditions;
2373
+ fieldSources?: DatasetFieldSourceConditions;
4978
2374
  missingRevisionFields?: string[];
4979
- slice?: CreateBatchInferenceRunBodyItemFilterSlice;
4980
- parts?: CreateBatchInferenceRunBodyItemFilterParts;
4981
- excludeParts?: CreateBatchInferenceRunBodyItemFilterExcludePartsItem[];
2375
+ slice?: DatasetSliceSelection;
2376
+ parts?: DatasetSplitPartInclusion;
2377
+ excludeParts?: DatasetSplitPartExclusions;
4982
2378
  };
4983
2379
 
4984
2380
  export type CreateBatchInferenceRunBodySampling = {