openpond-sdk 0.8.0 → 0.8.2

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.
@@ -0,0 +1,820 @@
1
+ import { z } from "zod";
2
+ /** Manual training compiles an already reviewed batch. It creates no recurring policy. */
3
+ export declare const TrainingPreparationRequestSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationRequest.v1">;
5
+ teamId: z.ZodString;
6
+ operationId: z.ZodString;
7
+ projectId: z.ZodNullable<z.ZodString>;
8
+ configuration: z.ZodObject<{
9
+ id: z.ZodString;
10
+ expectedRevision: z.ZodNumber;
11
+ expectedEtag: z.ZodString;
12
+ }, z.core.$strict>;
13
+ batch: z.ZodObject<{
14
+ id: z.ZodString;
15
+ contentHash: z.ZodString;
16
+ revision: z.ZodNumber;
17
+ }, z.core.$strict>;
18
+ name: z.ZodString;
19
+ maximumSpendUsd: z.ZodNumber;
20
+ }, z.core.$strict>;
21
+ export declare const TrainingPreparationPlanContentSchema: z.ZodObject<{
22
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationPlan.v1">;
23
+ id: z.ZodString;
24
+ creatorUserId: z.ZodString;
25
+ request: z.ZodObject<{
26
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationRequest.v1">;
27
+ teamId: z.ZodString;
28
+ operationId: z.ZodString;
29
+ projectId: z.ZodNullable<z.ZodString>;
30
+ configuration: z.ZodObject<{
31
+ id: z.ZodString;
32
+ expectedRevision: z.ZodNumber;
33
+ expectedEtag: z.ZodString;
34
+ }, z.core.$strict>;
35
+ batch: z.ZodObject<{
36
+ id: z.ZodString;
37
+ contentHash: z.ZodString;
38
+ revision: z.ZodNumber;
39
+ }, z.core.$strict>;
40
+ name: z.ZodString;
41
+ maximumSpendUsd: z.ZodNumber;
42
+ }, z.core.$strict>;
43
+ requestHash: z.ZodString;
44
+ source: z.ZodLazy<z.ZodObject<{
45
+ modelProject: z.ZodObject<{
46
+ id: z.ZodString;
47
+ portableProjectId: z.ZodString;
48
+ revision: z.ZodNumber;
49
+ contentHash: z.ZodString;
50
+ }, z.core.$strict>;
51
+ harnessRunManifest: z.ZodObject<{
52
+ id: z.ZodString;
53
+ contentHash: z.ZodString;
54
+ }, z.core.$strict>;
55
+ harnessRelease: z.ZodObject<{
56
+ id: z.ZodString;
57
+ contentHash: z.ZodString;
58
+ }, z.core.$strict>;
59
+ taskset: z.ZodObject<{
60
+ id: z.ZodString;
61
+ contentHash: z.ZodString;
62
+ revision: z.ZodNumber;
63
+ }, z.core.$strict>;
64
+ tasksetRelease: z.ZodObject<{
65
+ id: z.ZodString;
66
+ contentHash: z.ZodString;
67
+ }, z.core.$strict>;
68
+ evaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
+ taskset: z.ZodObject<{
70
+ id: z.ZodString;
71
+ contentHash: z.ZodString;
72
+ revision: z.ZodNumber;
73
+ }, z.core.$strict>;
74
+ dataset: z.ZodObject<{
75
+ id: z.ZodString;
76
+ contentHash: z.ZodString;
77
+ }, z.core.$strict>;
78
+ }, z.core.$strict>>>;
79
+ dataset: z.ZodObject<{
80
+ id: z.ZodString;
81
+ contentHash: z.ZodString;
82
+ }, z.core.$strict>;
83
+ evidenceSets: z.ZodArray<z.ZodObject<{
84
+ id: z.ZodString;
85
+ contentHash: z.ZodString;
86
+ }, z.core.$strict>>;
87
+ }, z.core.$strict>>;
88
+ submissionHash: z.ZodString;
89
+ createdAt: z.ZodString;
90
+ }, z.core.$strict>;
91
+ export declare const TrainingPreparationPlanSchema: z.ZodObject<{
92
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationPlan.v1">;
93
+ id: z.ZodString;
94
+ creatorUserId: z.ZodString;
95
+ request: z.ZodObject<{
96
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationRequest.v1">;
97
+ teamId: z.ZodString;
98
+ operationId: z.ZodString;
99
+ projectId: z.ZodNullable<z.ZodString>;
100
+ configuration: z.ZodObject<{
101
+ id: z.ZodString;
102
+ expectedRevision: z.ZodNumber;
103
+ expectedEtag: z.ZodString;
104
+ }, z.core.$strict>;
105
+ batch: z.ZodObject<{
106
+ id: z.ZodString;
107
+ contentHash: z.ZodString;
108
+ revision: z.ZodNumber;
109
+ }, z.core.$strict>;
110
+ name: z.ZodString;
111
+ maximumSpendUsd: z.ZodNumber;
112
+ }, z.core.$strict>;
113
+ requestHash: z.ZodString;
114
+ source: z.ZodLazy<z.ZodObject<{
115
+ modelProject: z.ZodObject<{
116
+ id: z.ZodString;
117
+ portableProjectId: z.ZodString;
118
+ revision: z.ZodNumber;
119
+ contentHash: z.ZodString;
120
+ }, z.core.$strict>;
121
+ harnessRunManifest: z.ZodObject<{
122
+ id: z.ZodString;
123
+ contentHash: z.ZodString;
124
+ }, z.core.$strict>;
125
+ harnessRelease: z.ZodObject<{
126
+ id: z.ZodString;
127
+ contentHash: z.ZodString;
128
+ }, z.core.$strict>;
129
+ taskset: z.ZodObject<{
130
+ id: z.ZodString;
131
+ contentHash: z.ZodString;
132
+ revision: z.ZodNumber;
133
+ }, z.core.$strict>;
134
+ tasksetRelease: z.ZodObject<{
135
+ id: z.ZodString;
136
+ contentHash: z.ZodString;
137
+ }, z.core.$strict>;
138
+ evaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
139
+ taskset: z.ZodObject<{
140
+ id: z.ZodString;
141
+ contentHash: z.ZodString;
142
+ revision: z.ZodNumber;
143
+ }, z.core.$strict>;
144
+ dataset: z.ZodObject<{
145
+ id: z.ZodString;
146
+ contentHash: z.ZodString;
147
+ }, z.core.$strict>;
148
+ }, z.core.$strict>>>;
149
+ dataset: z.ZodObject<{
150
+ id: z.ZodString;
151
+ contentHash: z.ZodString;
152
+ }, z.core.$strict>;
153
+ evidenceSets: z.ZodArray<z.ZodObject<{
154
+ id: z.ZodString;
155
+ contentHash: z.ZodString;
156
+ }, z.core.$strict>>;
157
+ }, z.core.$strict>>;
158
+ submissionHash: z.ZodString;
159
+ createdAt: z.ZodString;
160
+ contentHash: z.ZodString;
161
+ }, z.core.$strict>;
162
+ export declare const TrainingPreparationReceiptSchema: z.ZodObject<{
163
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationReceipt.v1">;
164
+ plan: z.ZodObject<{
165
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationPlan.v1">;
166
+ id: z.ZodString;
167
+ creatorUserId: z.ZodString;
168
+ request: z.ZodObject<{
169
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationRequest.v1">;
170
+ teamId: z.ZodString;
171
+ operationId: z.ZodString;
172
+ projectId: z.ZodNullable<z.ZodString>;
173
+ configuration: z.ZodObject<{
174
+ id: z.ZodString;
175
+ expectedRevision: z.ZodNumber;
176
+ expectedEtag: z.ZodString;
177
+ }, z.core.$strict>;
178
+ batch: z.ZodObject<{
179
+ id: z.ZodString;
180
+ contentHash: z.ZodString;
181
+ revision: z.ZodNumber;
182
+ }, z.core.$strict>;
183
+ name: z.ZodString;
184
+ maximumSpendUsd: z.ZodNumber;
185
+ }, z.core.$strict>;
186
+ requestHash: z.ZodString;
187
+ source: z.ZodLazy<z.ZodObject<{
188
+ modelProject: z.ZodObject<{
189
+ id: z.ZodString;
190
+ portableProjectId: z.ZodString;
191
+ revision: z.ZodNumber;
192
+ contentHash: z.ZodString;
193
+ }, z.core.$strict>;
194
+ harnessRunManifest: z.ZodObject<{
195
+ id: z.ZodString;
196
+ contentHash: z.ZodString;
197
+ }, z.core.$strict>;
198
+ harnessRelease: z.ZodObject<{
199
+ id: z.ZodString;
200
+ contentHash: z.ZodString;
201
+ }, z.core.$strict>;
202
+ taskset: z.ZodObject<{
203
+ id: z.ZodString;
204
+ contentHash: z.ZodString;
205
+ revision: z.ZodNumber;
206
+ }, z.core.$strict>;
207
+ tasksetRelease: z.ZodObject<{
208
+ id: z.ZodString;
209
+ contentHash: z.ZodString;
210
+ }, z.core.$strict>;
211
+ evaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
+ taskset: z.ZodObject<{
213
+ id: z.ZodString;
214
+ contentHash: z.ZodString;
215
+ revision: z.ZodNumber;
216
+ }, z.core.$strict>;
217
+ dataset: z.ZodObject<{
218
+ id: z.ZodString;
219
+ contentHash: z.ZodString;
220
+ }, z.core.$strict>;
221
+ }, z.core.$strict>>>;
222
+ dataset: z.ZodObject<{
223
+ id: z.ZodString;
224
+ contentHash: z.ZodString;
225
+ }, z.core.$strict>;
226
+ evidenceSets: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ contentHash: z.ZodString;
229
+ }, z.core.$strict>>;
230
+ }, z.core.$strict>>;
231
+ submissionHash: z.ZodString;
232
+ createdAt: z.ZodString;
233
+ contentHash: z.ZodString;
234
+ }, z.core.$strict>;
235
+ revision: z.ZodNumber;
236
+ state: z.ZodEnum<{
237
+ cancelled: "cancelled";
238
+ prepared: "prepared";
239
+ submitted: "submitted";
240
+ }>;
241
+ jobId: z.ZodNullable<z.ZodString>;
242
+ }, z.core.$strict>;
243
+ export declare const TrainingPreparationControlSchema: z.ZodObject<{
244
+ teamId: z.ZodString;
245
+ planHash: z.ZodString;
246
+ expectedRevision: z.ZodNumber;
247
+ }, z.core.$strict>;
248
+ export declare const TrainingPreparationListQuerySchema: z.ZodObject<{
249
+ projectId: z.ZodOptional<z.ZodString>;
250
+ state: z.ZodOptional<z.ZodEnum<{
251
+ cancelled: "cancelled";
252
+ prepared: "prepared";
253
+ submitted: "submitted";
254
+ }>>;
255
+ afterId: z.ZodOptional<z.ZodString>;
256
+ limit: z.ZodDefault<z.ZodNumber>;
257
+ }, z.core.$strict>;
258
+ export declare const TrainingPreparationPageSchema: z.ZodObject<{
259
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationPage.v1">;
260
+ teamId: z.ZodString;
261
+ items: z.ZodArray<z.ZodObject<{
262
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationReceipt.v1">;
263
+ plan: z.ZodObject<{
264
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationPlan.v1">;
265
+ id: z.ZodString;
266
+ creatorUserId: z.ZodString;
267
+ request: z.ZodObject<{
268
+ schemaVersion: z.ZodLiteral<"openpond.trainingPreparationRequest.v1">;
269
+ teamId: z.ZodString;
270
+ operationId: z.ZodString;
271
+ projectId: z.ZodNullable<z.ZodString>;
272
+ configuration: z.ZodObject<{
273
+ id: z.ZodString;
274
+ expectedRevision: z.ZodNumber;
275
+ expectedEtag: z.ZodString;
276
+ }, z.core.$strict>;
277
+ batch: z.ZodObject<{
278
+ id: z.ZodString;
279
+ contentHash: z.ZodString;
280
+ revision: z.ZodNumber;
281
+ }, z.core.$strict>;
282
+ name: z.ZodString;
283
+ maximumSpendUsd: z.ZodNumber;
284
+ }, z.core.$strict>;
285
+ requestHash: z.ZodString;
286
+ source: z.ZodLazy<z.ZodObject<{
287
+ modelProject: z.ZodObject<{
288
+ id: z.ZodString;
289
+ portableProjectId: z.ZodString;
290
+ revision: z.ZodNumber;
291
+ contentHash: z.ZodString;
292
+ }, z.core.$strict>;
293
+ harnessRunManifest: z.ZodObject<{
294
+ id: z.ZodString;
295
+ contentHash: z.ZodString;
296
+ }, z.core.$strict>;
297
+ harnessRelease: z.ZodObject<{
298
+ id: z.ZodString;
299
+ contentHash: z.ZodString;
300
+ }, z.core.$strict>;
301
+ taskset: z.ZodObject<{
302
+ id: z.ZodString;
303
+ contentHash: z.ZodString;
304
+ revision: z.ZodNumber;
305
+ }, z.core.$strict>;
306
+ tasksetRelease: z.ZodObject<{
307
+ id: z.ZodString;
308
+ contentHash: z.ZodString;
309
+ }, z.core.$strict>;
310
+ evaluation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
311
+ taskset: z.ZodObject<{
312
+ id: z.ZodString;
313
+ contentHash: z.ZodString;
314
+ revision: z.ZodNumber;
315
+ }, z.core.$strict>;
316
+ dataset: z.ZodObject<{
317
+ id: z.ZodString;
318
+ contentHash: z.ZodString;
319
+ }, z.core.$strict>;
320
+ }, z.core.$strict>>>;
321
+ dataset: z.ZodObject<{
322
+ id: z.ZodString;
323
+ contentHash: z.ZodString;
324
+ }, z.core.$strict>;
325
+ evidenceSets: z.ZodArray<z.ZodObject<{
326
+ id: z.ZodString;
327
+ contentHash: z.ZodString;
328
+ }, z.core.$strict>>;
329
+ }, z.core.$strict>>;
330
+ submissionHash: z.ZodString;
331
+ createdAt: z.ZodString;
332
+ contentHash: z.ZodString;
333
+ }, z.core.$strict>;
334
+ revision: z.ZodNumber;
335
+ state: z.ZodEnum<{
336
+ cancelled: "cancelled";
337
+ prepared: "prepared";
338
+ submitted: "submitted";
339
+ }>;
340
+ jobId: z.ZodNullable<z.ZodString>;
341
+ }, z.core.$strict>>;
342
+ nextCursor: z.ZodNullable<z.ZodString>;
343
+ }, z.core.$strict>;
344
+ export type TrainingPreparationRequest = z.infer<typeof TrainingPreparationRequestSchema>;
345
+ export type TrainingPreparationPlan = z.infer<typeof TrainingPreparationPlanSchema>;
346
+ export type TrainingPreparationReceipt = z.infer<typeof TrainingPreparationReceiptSchema>;
347
+ export type TrainingPreparationControl = z.infer<typeof TrainingPreparationControlSchema>;
348
+ export type TrainingPreparationListQuery = z.input<typeof TrainingPreparationListQuerySchema>;
349
+ export type TrainingPreparationPage = z.infer<typeof TrainingPreparationPageSchema>;
350
+ export declare function parseAndVerifyTrainingPreparationReceipt(value: unknown): Promise<{
351
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
352
+ plan: {
353
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
354
+ id: string;
355
+ creatorUserId: string;
356
+ request: {
357
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
358
+ teamId: string;
359
+ operationId: string;
360
+ projectId: string | null;
361
+ configuration: {
362
+ id: string;
363
+ expectedRevision: number;
364
+ expectedEtag: string;
365
+ };
366
+ batch: {
367
+ id: string;
368
+ contentHash: string;
369
+ revision: number;
370
+ };
371
+ name: string;
372
+ maximumSpendUsd: number;
373
+ };
374
+ requestHash: string;
375
+ source: {
376
+ modelProject: {
377
+ id: string;
378
+ portableProjectId: string;
379
+ revision: number;
380
+ contentHash: string;
381
+ };
382
+ harnessRunManifest: {
383
+ id: string;
384
+ contentHash: string;
385
+ };
386
+ harnessRelease: {
387
+ id: string;
388
+ contentHash: string;
389
+ };
390
+ taskset: {
391
+ id: string;
392
+ contentHash: string;
393
+ revision: number;
394
+ };
395
+ tasksetRelease: {
396
+ id: string;
397
+ contentHash: string;
398
+ };
399
+ dataset: {
400
+ id: string;
401
+ contentHash: string;
402
+ };
403
+ evidenceSets: {
404
+ id: string;
405
+ contentHash: string;
406
+ }[];
407
+ evaluation?: {
408
+ taskset: {
409
+ id: string;
410
+ contentHash: string;
411
+ revision: number;
412
+ };
413
+ dataset: {
414
+ id: string;
415
+ contentHash: string;
416
+ };
417
+ } | null | undefined;
418
+ };
419
+ submissionHash: string;
420
+ createdAt: string;
421
+ contentHash: string;
422
+ };
423
+ revision: number;
424
+ state: "cancelled" | "prepared" | "submitted";
425
+ jobId: string | null;
426
+ }>;
427
+ export declare function createTrainingPreparationClient(request: (path: string, init?: RequestInit) => Promise<unknown>): {
428
+ /** Discover the authenticated user's retained preparations without creating jobs. */
429
+ listPreparations(teamId: string, input?: TrainingPreparationListQuery): Promise<{
430
+ items: {
431
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
432
+ plan: {
433
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
434
+ id: string;
435
+ creatorUserId: string;
436
+ request: {
437
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
438
+ teamId: string;
439
+ operationId: string;
440
+ projectId: string | null;
441
+ configuration: {
442
+ id: string;
443
+ expectedRevision: number;
444
+ expectedEtag: string;
445
+ };
446
+ batch: {
447
+ id: string;
448
+ contentHash: string;
449
+ revision: number;
450
+ };
451
+ name: string;
452
+ maximumSpendUsd: number;
453
+ };
454
+ requestHash: string;
455
+ source: {
456
+ modelProject: {
457
+ id: string;
458
+ portableProjectId: string;
459
+ revision: number;
460
+ contentHash: string;
461
+ };
462
+ harnessRunManifest: {
463
+ id: string;
464
+ contentHash: string;
465
+ };
466
+ harnessRelease: {
467
+ id: string;
468
+ contentHash: string;
469
+ };
470
+ taskset: {
471
+ id: string;
472
+ contentHash: string;
473
+ revision: number;
474
+ };
475
+ tasksetRelease: {
476
+ id: string;
477
+ contentHash: string;
478
+ };
479
+ dataset: {
480
+ id: string;
481
+ contentHash: string;
482
+ };
483
+ evidenceSets: {
484
+ id: string;
485
+ contentHash: string;
486
+ }[];
487
+ evaluation?: {
488
+ taskset: {
489
+ id: string;
490
+ contentHash: string;
491
+ revision: number;
492
+ };
493
+ dataset: {
494
+ id: string;
495
+ contentHash: string;
496
+ };
497
+ } | null | undefined;
498
+ };
499
+ submissionHash: string;
500
+ createdAt: string;
501
+ contentHash: string;
502
+ };
503
+ revision: number;
504
+ state: "cancelled" | "prepared" | "submitted";
505
+ jobId: string | null;
506
+ }[];
507
+ schemaVersion: "openpond.trainingPreparationPage.v1";
508
+ teamId: string;
509
+ nextCursor: string | null;
510
+ }>;
511
+ prepareRun(input: TrainingPreparationRequest): Promise<{
512
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
513
+ plan: {
514
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
515
+ id: string;
516
+ creatorUserId: string;
517
+ request: {
518
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
519
+ teamId: string;
520
+ operationId: string;
521
+ projectId: string | null;
522
+ configuration: {
523
+ id: string;
524
+ expectedRevision: number;
525
+ expectedEtag: string;
526
+ };
527
+ batch: {
528
+ id: string;
529
+ contentHash: string;
530
+ revision: number;
531
+ };
532
+ name: string;
533
+ maximumSpendUsd: number;
534
+ };
535
+ requestHash: string;
536
+ source: {
537
+ modelProject: {
538
+ id: string;
539
+ portableProjectId: string;
540
+ revision: number;
541
+ contentHash: string;
542
+ };
543
+ harnessRunManifest: {
544
+ id: string;
545
+ contentHash: string;
546
+ };
547
+ harnessRelease: {
548
+ id: string;
549
+ contentHash: string;
550
+ };
551
+ taskset: {
552
+ id: string;
553
+ contentHash: string;
554
+ revision: number;
555
+ };
556
+ tasksetRelease: {
557
+ id: string;
558
+ contentHash: string;
559
+ };
560
+ dataset: {
561
+ id: string;
562
+ contentHash: string;
563
+ };
564
+ evidenceSets: {
565
+ id: string;
566
+ contentHash: string;
567
+ }[];
568
+ evaluation?: {
569
+ taskset: {
570
+ id: string;
571
+ contentHash: string;
572
+ revision: number;
573
+ };
574
+ dataset: {
575
+ id: string;
576
+ contentHash: string;
577
+ };
578
+ } | null | undefined;
579
+ };
580
+ submissionHash: string;
581
+ createdAt: string;
582
+ contentHash: string;
583
+ };
584
+ revision: number;
585
+ state: "cancelled" | "prepared" | "submitted";
586
+ jobId: string | null;
587
+ }>;
588
+ getPreparation(teamId: string, id: string): Promise<{
589
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
590
+ plan: {
591
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
592
+ id: string;
593
+ creatorUserId: string;
594
+ request: {
595
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
596
+ teamId: string;
597
+ operationId: string;
598
+ projectId: string | null;
599
+ configuration: {
600
+ id: string;
601
+ expectedRevision: number;
602
+ expectedEtag: string;
603
+ };
604
+ batch: {
605
+ id: string;
606
+ contentHash: string;
607
+ revision: number;
608
+ };
609
+ name: string;
610
+ maximumSpendUsd: number;
611
+ };
612
+ requestHash: string;
613
+ source: {
614
+ modelProject: {
615
+ id: string;
616
+ portableProjectId: string;
617
+ revision: number;
618
+ contentHash: string;
619
+ };
620
+ harnessRunManifest: {
621
+ id: string;
622
+ contentHash: string;
623
+ };
624
+ harnessRelease: {
625
+ id: string;
626
+ contentHash: string;
627
+ };
628
+ taskset: {
629
+ id: string;
630
+ contentHash: string;
631
+ revision: number;
632
+ };
633
+ tasksetRelease: {
634
+ id: string;
635
+ contentHash: string;
636
+ };
637
+ dataset: {
638
+ id: string;
639
+ contentHash: string;
640
+ };
641
+ evidenceSets: {
642
+ id: string;
643
+ contentHash: string;
644
+ }[];
645
+ evaluation?: {
646
+ taskset: {
647
+ id: string;
648
+ contentHash: string;
649
+ revision: number;
650
+ };
651
+ dataset: {
652
+ id: string;
653
+ contentHash: string;
654
+ };
655
+ } | null | undefined;
656
+ };
657
+ submissionHash: string;
658
+ createdAt: string;
659
+ contentHash: string;
660
+ };
661
+ revision: number;
662
+ state: "cancelled" | "prepared" | "submitted";
663
+ jobId: string | null;
664
+ }>;
665
+ startPreparation(id: string, input: TrainingPreparationControl): Promise<{
666
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
667
+ plan: {
668
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
669
+ id: string;
670
+ creatorUserId: string;
671
+ request: {
672
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
673
+ teamId: string;
674
+ operationId: string;
675
+ projectId: string | null;
676
+ configuration: {
677
+ id: string;
678
+ expectedRevision: number;
679
+ expectedEtag: string;
680
+ };
681
+ batch: {
682
+ id: string;
683
+ contentHash: string;
684
+ revision: number;
685
+ };
686
+ name: string;
687
+ maximumSpendUsd: number;
688
+ };
689
+ requestHash: string;
690
+ source: {
691
+ modelProject: {
692
+ id: string;
693
+ portableProjectId: string;
694
+ revision: number;
695
+ contentHash: string;
696
+ };
697
+ harnessRunManifest: {
698
+ id: string;
699
+ contentHash: string;
700
+ };
701
+ harnessRelease: {
702
+ id: string;
703
+ contentHash: string;
704
+ };
705
+ taskset: {
706
+ id: string;
707
+ contentHash: string;
708
+ revision: number;
709
+ };
710
+ tasksetRelease: {
711
+ id: string;
712
+ contentHash: string;
713
+ };
714
+ dataset: {
715
+ id: string;
716
+ contentHash: string;
717
+ };
718
+ evidenceSets: {
719
+ id: string;
720
+ contentHash: string;
721
+ }[];
722
+ evaluation?: {
723
+ taskset: {
724
+ id: string;
725
+ contentHash: string;
726
+ revision: number;
727
+ };
728
+ dataset: {
729
+ id: string;
730
+ contentHash: string;
731
+ };
732
+ } | null | undefined;
733
+ };
734
+ submissionHash: string;
735
+ createdAt: string;
736
+ contentHash: string;
737
+ };
738
+ revision: number;
739
+ state: "cancelled" | "prepared" | "submitted";
740
+ jobId: string | null;
741
+ }>;
742
+ cancelPreparation(id: string, input: TrainingPreparationControl): Promise<{
743
+ schemaVersion: "openpond.trainingPreparationReceipt.v1";
744
+ plan: {
745
+ schemaVersion: "openpond.trainingPreparationPlan.v1";
746
+ id: string;
747
+ creatorUserId: string;
748
+ request: {
749
+ schemaVersion: "openpond.trainingPreparationRequest.v1";
750
+ teamId: string;
751
+ operationId: string;
752
+ projectId: string | null;
753
+ configuration: {
754
+ id: string;
755
+ expectedRevision: number;
756
+ expectedEtag: string;
757
+ };
758
+ batch: {
759
+ id: string;
760
+ contentHash: string;
761
+ revision: number;
762
+ };
763
+ name: string;
764
+ maximumSpendUsd: number;
765
+ };
766
+ requestHash: string;
767
+ source: {
768
+ modelProject: {
769
+ id: string;
770
+ portableProjectId: string;
771
+ revision: number;
772
+ contentHash: string;
773
+ };
774
+ harnessRunManifest: {
775
+ id: string;
776
+ contentHash: string;
777
+ };
778
+ harnessRelease: {
779
+ id: string;
780
+ contentHash: string;
781
+ };
782
+ taskset: {
783
+ id: string;
784
+ contentHash: string;
785
+ revision: number;
786
+ };
787
+ tasksetRelease: {
788
+ id: string;
789
+ contentHash: string;
790
+ };
791
+ dataset: {
792
+ id: string;
793
+ contentHash: string;
794
+ };
795
+ evidenceSets: {
796
+ id: string;
797
+ contentHash: string;
798
+ }[];
799
+ evaluation?: {
800
+ taskset: {
801
+ id: string;
802
+ contentHash: string;
803
+ revision: number;
804
+ };
805
+ dataset: {
806
+ id: string;
807
+ contentHash: string;
808
+ };
809
+ } | null | undefined;
810
+ };
811
+ submissionHash: string;
812
+ createdAt: string;
813
+ contentHash: string;
814
+ };
815
+ revision: number;
816
+ state: "cancelled" | "prepared" | "submitted";
817
+ jobId: string | null;
818
+ }>;
819
+ };
820
+ //# sourceMappingURL=training-preparations.d.ts.map