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