@openpond/evals 0.7.0 → 0.7.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.
Files changed (39) hide show
  1. package/LEARNING.md +14 -0
  2. package/dist/javascript-verifier-worker-source.js +1 -1
  3. package/dist/learning/authoring-service.js +49 -0
  4. package/dist/learning/authoring.js +37 -0
  5. package/dist/learning/index.js +1 -0
  6. package/dist/learning/operations.js +7 -3
  7. package/dist/learning/repository.js +2 -0
  8. package/dist/learning/service.js +22 -0
  9. package/dist/learning/transport.js +10 -0
  10. package/dist/task-schema-meta-validator.js +2 -0
  11. package/dist/task-schema-validation.js +113 -0
  12. package/dist/task-schema.js +4 -142
  13. package/dist/task-value-validator.js +37 -0
  14. package/dist/types/learning/authoring-service.d.ts +25 -0
  15. package/dist/types/learning/authoring-service.d.ts.map +1 -0
  16. package/dist/types/learning/authoring.d.ts +672 -0
  17. package/dist/types/learning/authoring.d.ts.map +1 -0
  18. package/dist/types/learning/index.d.ts +1 -0
  19. package/dist/types/learning/index.d.ts.map +1 -1
  20. package/dist/types/learning/operations.d.ts +557 -1
  21. package/dist/types/learning/operations.d.ts.map +1 -1
  22. package/dist/types/learning/repository.d.ts +192 -0
  23. package/dist/types/learning/repository.d.ts.map +1 -1
  24. package/dist/types/learning/service.d.ts +14 -0
  25. package/dist/types/learning/service.d.ts.map +1 -1
  26. package/dist/types/learning/transport.d.ts +505 -2
  27. package/dist/types/learning/transport.d.ts.map +1 -1
  28. package/dist/types/task-schema-meta-validator.d.ts +3 -0
  29. package/dist/types/task-schema-validation.d.ts +18 -0
  30. package/dist/types/task-schema-validation.d.ts.map +1 -0
  31. package/dist/types/task-schema.d.ts +2 -17
  32. package/dist/types/task-schema.d.ts.map +1 -1
  33. package/dist/types/task-value-validator.d.ts +3 -0
  34. package/dist/types/task-value-validator.d.ts.map +1 -0
  35. package/package.json +2 -2
  36. package/schemas/learning/v1/command-request.schema.json +757 -366
  37. package/schemas/learning/v1/draft.schema.json +562 -0
  38. package/schemas/learning/v1/evidence-inspection.schema.json +106 -0
  39. package/schemas/learning/v1/read-request.schema.json +42 -0
@@ -0,0 +1,672 @@
1
+ import { z } from "zod";
2
+ /** Strings intentionally preserve incomplete JSON/code until explicit publication. */
3
+ export declare const RewardAuthoringFieldsSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ description: z.ZodString;
6
+ kind: z.ZodEnum<{
7
+ content: "content";
8
+ schema: "schema";
9
+ artifact: "artifact";
10
+ runtime_event: "runtime_event";
11
+ state: "state";
12
+ model_judge: "model_judge";
13
+ custom_verifier: "custom_verifier";
14
+ human: "human";
15
+ learned_model: "learned_model";
16
+ }>;
17
+ fields: z.ZodString;
18
+ outputField: z.ZodString;
19
+ expectedField: z.ZodString;
20
+ expectedValue: z.ZodString;
21
+ schema: z.ZodString;
22
+ reference: z.ZodString;
23
+ events: z.ZodString;
24
+ code: z.ZodString;
25
+ exportName: z.ZodString;
26
+ timeout: z.ZodString;
27
+ rubric: z.ZodString;
28
+ providerId: z.ZodString;
29
+ modelId: z.ZodString;
30
+ modelRevision: z.ZodString;
31
+ temperature: z.ZodString;
32
+ reviewerRole: z.ZodString;
33
+ learnedId: z.ZodString;
34
+ learnedHash: z.ZodString;
35
+ inputContract: z.ZodString;
36
+ minimum: z.ZodString;
37
+ maximum: z.ZodString;
38
+ }, z.core.$strict>;
39
+ export declare const TaskFormatAuthoringFieldsSchema: z.ZodObject<{
40
+ name: z.ZodString;
41
+ description: z.ZodString;
42
+ instructions: z.ZodString;
43
+ input: z.ZodString;
44
+ output: z.ZodString;
45
+ familyNamespace: z.ZodString;
46
+ sources: z.ZodArray<z.ZodObject<{
47
+ graderId: z.ZodString;
48
+ reward: z.ZodObject<{
49
+ id: z.ZodString;
50
+ contentHash: z.ZodString;
51
+ revision: z.ZodNumber;
52
+ }, z.core.$strict>;
53
+ role: z.ZodEnum<{
54
+ evaluation: "evaluation";
55
+ training: "training";
56
+ }>;
57
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ kind: z.ZodLiteral<"identity">;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"linear">;
61
+ minimum: z.ZodNumber;
62
+ maximum: z.ZodNumber;
63
+ direction: z.ZodEnum<{
64
+ higher: "higher";
65
+ lower: "lower";
66
+ }>;
67
+ }, z.core.$strict>], "kind">;
68
+ weight: z.ZodNumber;
69
+ required: z.ZodBoolean;
70
+ hardGate: z.ZodBoolean;
71
+ privileged: z.ZodBoolean;
72
+ fixtureRefs: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodString;
74
+ contentHash: z.ZodString;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>>;
77
+ recipeRef: z.ZodOptional<z.ZodObject<{
78
+ id: z.ZodString;
79
+ contentHash: z.ZodString;
80
+ revision: z.ZodNumber;
81
+ }, z.core.$strict>>;
82
+ }, z.core.$strict>;
83
+ export declare const CombinedRewardAuthoringFieldsSchema: z.ZodObject<{
84
+ name: z.ZodString;
85
+ description: z.ZodString;
86
+ sources: z.ZodArray<z.ZodObject<{
87
+ graderId: z.ZodString;
88
+ reward: z.ZodObject<{
89
+ id: z.ZodString;
90
+ contentHash: z.ZodString;
91
+ revision: z.ZodNumber;
92
+ }, z.core.$strict>;
93
+ role: z.ZodEnum<{
94
+ evaluation: "evaluation";
95
+ training: "training";
96
+ }>;
97
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ kind: z.ZodLiteral<"identity">;
99
+ }, z.core.$strict>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"linear">;
101
+ minimum: z.ZodNumber;
102
+ maximum: z.ZodNumber;
103
+ direction: z.ZodEnum<{
104
+ higher: "higher";
105
+ lower: "lower";
106
+ }>;
107
+ }, z.core.$strict>], "kind">;
108
+ weight: z.ZodNumber;
109
+ required: z.ZodBoolean;
110
+ hardGate: z.ZodBoolean;
111
+ privileged: z.ZodBoolean;
112
+ fixtureRefs: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ contentHash: z.ZodString;
115
+ }, z.core.$strict>>;
116
+ }, z.core.$strict>>;
117
+ }, z.core.$strict>;
118
+ export declare const AuthoringTargetKindSchema: z.ZodEnum<{
119
+ reward: "reward";
120
+ binding: "binding";
121
+ definition: "definition";
122
+ }>;
123
+ export declare const AuthoringDraftInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
+ id: z.ZodString;
125
+ targetId: z.ZodString;
126
+ baseRelease: z.ZodNullable<z.ZodObject<{
127
+ id: z.ZodString;
128
+ contentHash: z.ZodString;
129
+ revision: z.ZodNumber;
130
+ }, z.core.$strict>>;
131
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
132
+ targetKind: z.ZodLiteral<"definition">;
133
+ fields: z.ZodObject<{
134
+ name: z.ZodString;
135
+ description: z.ZodString;
136
+ instructions: z.ZodString;
137
+ input: z.ZodString;
138
+ output: z.ZodString;
139
+ familyNamespace: z.ZodString;
140
+ sources: z.ZodArray<z.ZodObject<{
141
+ graderId: z.ZodString;
142
+ reward: z.ZodObject<{
143
+ id: z.ZodString;
144
+ contentHash: z.ZodString;
145
+ revision: z.ZodNumber;
146
+ }, z.core.$strict>;
147
+ role: z.ZodEnum<{
148
+ evaluation: "evaluation";
149
+ training: "training";
150
+ }>;
151
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ kind: z.ZodLiteral<"identity">;
153
+ }, z.core.$strict>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"linear">;
155
+ minimum: z.ZodNumber;
156
+ maximum: z.ZodNumber;
157
+ direction: z.ZodEnum<{
158
+ higher: "higher";
159
+ lower: "lower";
160
+ }>;
161
+ }, z.core.$strict>], "kind">;
162
+ weight: z.ZodNumber;
163
+ required: z.ZodBoolean;
164
+ hardGate: z.ZodBoolean;
165
+ privileged: z.ZodBoolean;
166
+ fixtureRefs: z.ZodArray<z.ZodObject<{
167
+ id: z.ZodString;
168
+ contentHash: z.ZodString;
169
+ }, z.core.$strict>>;
170
+ }, z.core.$strict>>;
171
+ recipeRef: z.ZodOptional<z.ZodObject<{
172
+ id: z.ZodString;
173
+ contentHash: z.ZodString;
174
+ revision: z.ZodNumber;
175
+ }, z.core.$strict>>;
176
+ }, z.core.$strict>;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ id: z.ZodString;
179
+ targetId: z.ZodString;
180
+ baseRelease: z.ZodNullable<z.ZodObject<{
181
+ id: z.ZodString;
182
+ contentHash: z.ZodString;
183
+ revision: z.ZodNumber;
184
+ }, z.core.$strict>>;
185
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
186
+ targetKind: z.ZodLiteral<"reward">;
187
+ fields: z.ZodObject<{
188
+ name: z.ZodString;
189
+ description: z.ZodString;
190
+ kind: z.ZodEnum<{
191
+ content: "content";
192
+ schema: "schema";
193
+ artifact: "artifact";
194
+ runtime_event: "runtime_event";
195
+ state: "state";
196
+ model_judge: "model_judge";
197
+ custom_verifier: "custom_verifier";
198
+ human: "human";
199
+ learned_model: "learned_model";
200
+ }>;
201
+ fields: z.ZodString;
202
+ outputField: z.ZodString;
203
+ expectedField: z.ZodString;
204
+ expectedValue: z.ZodString;
205
+ schema: z.ZodString;
206
+ reference: z.ZodString;
207
+ events: z.ZodString;
208
+ code: z.ZodString;
209
+ exportName: z.ZodString;
210
+ timeout: z.ZodString;
211
+ rubric: z.ZodString;
212
+ providerId: z.ZodString;
213
+ modelId: z.ZodString;
214
+ modelRevision: z.ZodString;
215
+ temperature: z.ZodString;
216
+ reviewerRole: z.ZodString;
217
+ learnedId: z.ZodString;
218
+ learnedHash: z.ZodString;
219
+ inputContract: z.ZodString;
220
+ minimum: z.ZodString;
221
+ maximum: z.ZodString;
222
+ }, z.core.$strict>;
223
+ }, z.core.$strict>, z.ZodObject<{
224
+ id: z.ZodString;
225
+ targetId: z.ZodString;
226
+ baseRelease: z.ZodNullable<z.ZodObject<{
227
+ id: z.ZodString;
228
+ contentHash: z.ZodString;
229
+ revision: z.ZodNumber;
230
+ }, z.core.$strict>>;
231
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
232
+ targetKind: z.ZodLiteral<"binding">;
233
+ fields: z.ZodObject<{
234
+ name: z.ZodString;
235
+ description: z.ZodString;
236
+ sources: z.ZodArray<z.ZodObject<{
237
+ graderId: z.ZodString;
238
+ reward: z.ZodObject<{
239
+ id: z.ZodString;
240
+ contentHash: z.ZodString;
241
+ revision: z.ZodNumber;
242
+ }, z.core.$strict>;
243
+ role: z.ZodEnum<{
244
+ evaluation: "evaluation";
245
+ training: "training";
246
+ }>;
247
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ kind: z.ZodLiteral<"identity">;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ kind: z.ZodLiteral<"linear">;
251
+ minimum: z.ZodNumber;
252
+ maximum: z.ZodNumber;
253
+ direction: z.ZodEnum<{
254
+ higher: "higher";
255
+ lower: "lower";
256
+ }>;
257
+ }, z.core.$strict>], "kind">;
258
+ weight: z.ZodNumber;
259
+ required: z.ZodBoolean;
260
+ hardGate: z.ZodBoolean;
261
+ privileged: z.ZodBoolean;
262
+ fixtureRefs: z.ZodArray<z.ZodObject<{
263
+ id: z.ZodString;
264
+ contentHash: z.ZodString;
265
+ }, z.core.$strict>>;
266
+ }, z.core.$strict>>;
267
+ }, z.core.$strict>;
268
+ }, z.core.$strict>], "targetKind">;
269
+ export declare const AuthoringDraftContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
+ id: z.ZodString;
271
+ targetId: z.ZodString;
272
+ baseRelease: z.ZodNullable<z.ZodObject<{
273
+ id: z.ZodString;
274
+ contentHash: z.ZodString;
275
+ revision: z.ZodNumber;
276
+ }, z.core.$strict>>;
277
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
278
+ targetKind: z.ZodLiteral<"definition">;
279
+ fields: z.ZodObject<{
280
+ name: z.ZodString;
281
+ description: z.ZodString;
282
+ instructions: z.ZodString;
283
+ input: z.ZodString;
284
+ output: z.ZodString;
285
+ familyNamespace: z.ZodString;
286
+ sources: z.ZodArray<z.ZodObject<{
287
+ graderId: z.ZodString;
288
+ reward: z.ZodObject<{
289
+ id: z.ZodString;
290
+ contentHash: z.ZodString;
291
+ revision: z.ZodNumber;
292
+ }, z.core.$strict>;
293
+ role: z.ZodEnum<{
294
+ evaluation: "evaluation";
295
+ training: "training";
296
+ }>;
297
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
+ kind: z.ZodLiteral<"identity">;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ kind: z.ZodLiteral<"linear">;
301
+ minimum: z.ZodNumber;
302
+ maximum: z.ZodNumber;
303
+ direction: z.ZodEnum<{
304
+ higher: "higher";
305
+ lower: "lower";
306
+ }>;
307
+ }, z.core.$strict>], "kind">;
308
+ weight: z.ZodNumber;
309
+ required: z.ZodBoolean;
310
+ hardGate: z.ZodBoolean;
311
+ privileged: z.ZodBoolean;
312
+ fixtureRefs: z.ZodArray<z.ZodObject<{
313
+ id: z.ZodString;
314
+ contentHash: z.ZodString;
315
+ }, z.core.$strict>>;
316
+ }, z.core.$strict>>;
317
+ recipeRef: z.ZodOptional<z.ZodObject<{
318
+ id: z.ZodString;
319
+ contentHash: z.ZodString;
320
+ revision: z.ZodNumber;
321
+ }, z.core.$strict>>;
322
+ }, z.core.$strict>;
323
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
324
+ revision: z.ZodNumber;
325
+ status: z.ZodEnum<{
326
+ draft: "draft";
327
+ archived: "archived";
328
+ published: "published";
329
+ }>;
330
+ publishedRelease: z.ZodNullable<z.ZodObject<{
331
+ id: z.ZodString;
332
+ contentHash: z.ZodString;
333
+ revision: z.ZodNumber;
334
+ }, z.core.$strict>>;
335
+ createdAt: z.ZodString;
336
+ updatedAt: z.ZodString;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ id: z.ZodString;
339
+ targetId: z.ZodString;
340
+ baseRelease: z.ZodNullable<z.ZodObject<{
341
+ id: z.ZodString;
342
+ contentHash: z.ZodString;
343
+ revision: z.ZodNumber;
344
+ }, z.core.$strict>>;
345
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
346
+ targetKind: z.ZodLiteral<"reward">;
347
+ fields: z.ZodObject<{
348
+ name: z.ZodString;
349
+ description: z.ZodString;
350
+ kind: z.ZodEnum<{
351
+ content: "content";
352
+ schema: "schema";
353
+ artifact: "artifact";
354
+ runtime_event: "runtime_event";
355
+ state: "state";
356
+ model_judge: "model_judge";
357
+ custom_verifier: "custom_verifier";
358
+ human: "human";
359
+ learned_model: "learned_model";
360
+ }>;
361
+ fields: z.ZodString;
362
+ outputField: z.ZodString;
363
+ expectedField: z.ZodString;
364
+ expectedValue: z.ZodString;
365
+ schema: z.ZodString;
366
+ reference: z.ZodString;
367
+ events: z.ZodString;
368
+ code: z.ZodString;
369
+ exportName: z.ZodString;
370
+ timeout: z.ZodString;
371
+ rubric: z.ZodString;
372
+ providerId: z.ZodString;
373
+ modelId: z.ZodString;
374
+ modelRevision: z.ZodString;
375
+ temperature: z.ZodString;
376
+ reviewerRole: z.ZodString;
377
+ learnedId: z.ZodString;
378
+ learnedHash: z.ZodString;
379
+ inputContract: z.ZodString;
380
+ minimum: z.ZodString;
381
+ maximum: z.ZodString;
382
+ }, z.core.$strict>;
383
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
384
+ revision: z.ZodNumber;
385
+ status: z.ZodEnum<{
386
+ draft: "draft";
387
+ archived: "archived";
388
+ published: "published";
389
+ }>;
390
+ publishedRelease: z.ZodNullable<z.ZodObject<{
391
+ id: z.ZodString;
392
+ contentHash: z.ZodString;
393
+ revision: z.ZodNumber;
394
+ }, z.core.$strict>>;
395
+ createdAt: z.ZodString;
396
+ updatedAt: z.ZodString;
397
+ }, z.core.$strict>, z.ZodObject<{
398
+ id: z.ZodString;
399
+ targetId: z.ZodString;
400
+ baseRelease: z.ZodNullable<z.ZodObject<{
401
+ id: z.ZodString;
402
+ contentHash: z.ZodString;
403
+ revision: z.ZodNumber;
404
+ }, z.core.$strict>>;
405
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
406
+ targetKind: z.ZodLiteral<"binding">;
407
+ fields: z.ZodObject<{
408
+ name: z.ZodString;
409
+ description: z.ZodString;
410
+ sources: z.ZodArray<z.ZodObject<{
411
+ graderId: z.ZodString;
412
+ reward: z.ZodObject<{
413
+ id: z.ZodString;
414
+ contentHash: z.ZodString;
415
+ revision: z.ZodNumber;
416
+ }, z.core.$strict>;
417
+ role: z.ZodEnum<{
418
+ evaluation: "evaluation";
419
+ training: "training";
420
+ }>;
421
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
422
+ kind: z.ZodLiteral<"identity">;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ kind: z.ZodLiteral<"linear">;
425
+ minimum: z.ZodNumber;
426
+ maximum: z.ZodNumber;
427
+ direction: z.ZodEnum<{
428
+ higher: "higher";
429
+ lower: "lower";
430
+ }>;
431
+ }, z.core.$strict>], "kind">;
432
+ weight: z.ZodNumber;
433
+ required: z.ZodBoolean;
434
+ hardGate: z.ZodBoolean;
435
+ privileged: z.ZodBoolean;
436
+ fixtureRefs: z.ZodArray<z.ZodObject<{
437
+ id: z.ZodString;
438
+ contentHash: z.ZodString;
439
+ }, z.core.$strict>>;
440
+ }, z.core.$strict>>;
441
+ }, z.core.$strict>;
442
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
443
+ revision: z.ZodNumber;
444
+ status: z.ZodEnum<{
445
+ draft: "draft";
446
+ archived: "archived";
447
+ published: "published";
448
+ }>;
449
+ publishedRelease: z.ZodNullable<z.ZodObject<{
450
+ id: z.ZodString;
451
+ contentHash: z.ZodString;
452
+ revision: z.ZodNumber;
453
+ }, z.core.$strict>>;
454
+ createdAt: z.ZodString;
455
+ updatedAt: z.ZodString;
456
+ }, z.core.$strict>], "targetKind">;
457
+ export declare const AuthoringDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
458
+ id: z.ZodString;
459
+ targetId: z.ZodString;
460
+ baseRelease: z.ZodNullable<z.ZodObject<{
461
+ id: z.ZodString;
462
+ contentHash: z.ZodString;
463
+ revision: z.ZodNumber;
464
+ }, z.core.$strict>>;
465
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
466
+ targetKind: z.ZodLiteral<"definition">;
467
+ fields: z.ZodObject<{
468
+ name: z.ZodString;
469
+ description: z.ZodString;
470
+ instructions: z.ZodString;
471
+ input: z.ZodString;
472
+ output: z.ZodString;
473
+ familyNamespace: z.ZodString;
474
+ sources: z.ZodArray<z.ZodObject<{
475
+ graderId: z.ZodString;
476
+ reward: z.ZodObject<{
477
+ id: z.ZodString;
478
+ contentHash: z.ZodString;
479
+ revision: z.ZodNumber;
480
+ }, z.core.$strict>;
481
+ role: z.ZodEnum<{
482
+ evaluation: "evaluation";
483
+ training: "training";
484
+ }>;
485
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
486
+ kind: z.ZodLiteral<"identity">;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ kind: z.ZodLiteral<"linear">;
489
+ minimum: z.ZodNumber;
490
+ maximum: z.ZodNumber;
491
+ direction: z.ZodEnum<{
492
+ higher: "higher";
493
+ lower: "lower";
494
+ }>;
495
+ }, z.core.$strict>], "kind">;
496
+ weight: z.ZodNumber;
497
+ required: z.ZodBoolean;
498
+ hardGate: z.ZodBoolean;
499
+ privileged: z.ZodBoolean;
500
+ fixtureRefs: z.ZodArray<z.ZodObject<{
501
+ id: z.ZodString;
502
+ contentHash: z.ZodString;
503
+ }, z.core.$strict>>;
504
+ }, z.core.$strict>>;
505
+ recipeRef: z.ZodOptional<z.ZodObject<{
506
+ id: z.ZodString;
507
+ contentHash: z.ZodString;
508
+ revision: z.ZodNumber;
509
+ }, z.core.$strict>>;
510
+ }, z.core.$strict>;
511
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
512
+ revision: z.ZodNumber;
513
+ status: z.ZodEnum<{
514
+ draft: "draft";
515
+ archived: "archived";
516
+ published: "published";
517
+ }>;
518
+ publishedRelease: z.ZodNullable<z.ZodObject<{
519
+ id: z.ZodString;
520
+ contentHash: z.ZodString;
521
+ revision: z.ZodNumber;
522
+ }, z.core.$strict>>;
523
+ createdAt: z.ZodString;
524
+ updatedAt: z.ZodString;
525
+ contentHash: z.ZodString;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ id: z.ZodString;
528
+ targetId: z.ZodString;
529
+ baseRelease: z.ZodNullable<z.ZodObject<{
530
+ id: z.ZodString;
531
+ contentHash: z.ZodString;
532
+ revision: z.ZodNumber;
533
+ }, z.core.$strict>>;
534
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
535
+ targetKind: z.ZodLiteral<"reward">;
536
+ fields: z.ZodObject<{
537
+ name: z.ZodString;
538
+ description: z.ZodString;
539
+ kind: z.ZodEnum<{
540
+ content: "content";
541
+ schema: "schema";
542
+ artifact: "artifact";
543
+ runtime_event: "runtime_event";
544
+ state: "state";
545
+ model_judge: "model_judge";
546
+ custom_verifier: "custom_verifier";
547
+ human: "human";
548
+ learned_model: "learned_model";
549
+ }>;
550
+ fields: z.ZodString;
551
+ outputField: z.ZodString;
552
+ expectedField: z.ZodString;
553
+ expectedValue: z.ZodString;
554
+ schema: z.ZodString;
555
+ reference: z.ZodString;
556
+ events: z.ZodString;
557
+ code: z.ZodString;
558
+ exportName: z.ZodString;
559
+ timeout: z.ZodString;
560
+ rubric: z.ZodString;
561
+ providerId: z.ZodString;
562
+ modelId: z.ZodString;
563
+ modelRevision: z.ZodString;
564
+ temperature: z.ZodString;
565
+ reviewerRole: z.ZodString;
566
+ learnedId: z.ZodString;
567
+ learnedHash: z.ZodString;
568
+ inputContract: z.ZodString;
569
+ minimum: z.ZodString;
570
+ maximum: z.ZodString;
571
+ }, z.core.$strict>;
572
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
573
+ revision: z.ZodNumber;
574
+ status: z.ZodEnum<{
575
+ draft: "draft";
576
+ archived: "archived";
577
+ published: "published";
578
+ }>;
579
+ publishedRelease: z.ZodNullable<z.ZodObject<{
580
+ id: z.ZodString;
581
+ contentHash: z.ZodString;
582
+ revision: z.ZodNumber;
583
+ }, z.core.$strict>>;
584
+ createdAt: z.ZodString;
585
+ updatedAt: z.ZodString;
586
+ contentHash: z.ZodString;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ id: z.ZodString;
589
+ targetId: z.ZodString;
590
+ baseRelease: z.ZodNullable<z.ZodObject<{
591
+ id: z.ZodString;
592
+ contentHash: z.ZodString;
593
+ revision: z.ZodNumber;
594
+ }, z.core.$strict>>;
595
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
596
+ targetKind: z.ZodLiteral<"binding">;
597
+ fields: z.ZodObject<{
598
+ name: z.ZodString;
599
+ description: z.ZodString;
600
+ sources: z.ZodArray<z.ZodObject<{
601
+ graderId: z.ZodString;
602
+ reward: z.ZodObject<{
603
+ id: z.ZodString;
604
+ contentHash: z.ZodString;
605
+ revision: z.ZodNumber;
606
+ }, z.core.$strict>;
607
+ role: z.ZodEnum<{
608
+ evaluation: "evaluation";
609
+ training: "training";
610
+ }>;
611
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
612
+ kind: z.ZodLiteral<"identity">;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"linear">;
615
+ minimum: z.ZodNumber;
616
+ maximum: z.ZodNumber;
617
+ direction: z.ZodEnum<{
618
+ higher: "higher";
619
+ lower: "lower";
620
+ }>;
621
+ }, z.core.$strict>], "kind">;
622
+ weight: z.ZodNumber;
623
+ required: z.ZodBoolean;
624
+ hardGate: z.ZodBoolean;
625
+ privileged: z.ZodBoolean;
626
+ fixtureRefs: z.ZodArray<z.ZodObject<{
627
+ id: z.ZodString;
628
+ contentHash: z.ZodString;
629
+ }, z.core.$strict>>;
630
+ }, z.core.$strict>>;
631
+ }, z.core.$strict>;
632
+ schemaVersion: z.ZodLiteral<"openpond.authoringDraft.v1">;
633
+ revision: z.ZodNumber;
634
+ status: z.ZodEnum<{
635
+ draft: "draft";
636
+ archived: "archived";
637
+ published: "published";
638
+ }>;
639
+ publishedRelease: z.ZodNullable<z.ZodObject<{
640
+ id: z.ZodString;
641
+ contentHash: z.ZodString;
642
+ revision: z.ZodNumber;
643
+ }, z.core.$strict>>;
644
+ createdAt: z.ZodString;
645
+ updatedAt: z.ZodString;
646
+ contentHash: z.ZodString;
647
+ }, z.core.$strict>], "targetKind">;
648
+ export type AuthoringDraft = z.infer<typeof AuthoringDraftSchema>;
649
+ export type AuthoringDraftInput = z.infer<typeof AuthoringDraftInputSchema>;
650
+ export type AuthoringTargetKind = z.infer<typeof AuthoringTargetKindSchema>;
651
+ export type AuthoringDraftFor<K extends AuthoringTargetKind> = Extract<AuthoringDraft, {
652
+ targetKind: K;
653
+ }>;
654
+ /** Exact draft and resulting release are finalized in the publication transaction. */
655
+ export declare const AuthoringDraftFinalizationSchema: z.ZodObject<{
656
+ draft: z.ZodObject<{
657
+ id: z.ZodString;
658
+ contentHash: z.ZodString;
659
+ revision: z.ZodNumber;
660
+ }, z.core.$strict>;
661
+ targetKind: z.ZodEnum<{
662
+ reward: "reward";
663
+ binding: "binding";
664
+ definition: "definition";
665
+ }>;
666
+ release: z.ZodObject<{
667
+ id: z.ZodString;
668
+ contentHash: z.ZodString;
669
+ revision: z.ZodNumber;
670
+ }, z.core.$strict>;
671
+ }, z.core.$strict>;
672
+ //# sourceMappingURL=authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../../../../src/learning/authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,sFAAsF;AACtF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO7B,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIjC,CAAC;AACZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAErC,CAAC;AACZ,eAAO,MAAM,yBAAyB;;;;EAA8C,CAAC;AAErF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAIpC,CAAC;AAMH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAoO,CAAC;AAC7Q,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA2T,CAAC;AAC7V,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,IAAI,OAAO,CAAC,cAAc,EAAE;IAAE,UAAU,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAE1G,sFAAsF;AACtF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;kBAAqI,CAAC"}
@@ -7,4 +7,5 @@ export * from "./service.js";
7
7
  export * from "./grade-worker.js";
8
8
  export * from "./transport.js";
9
9
  export * from "./errors.js";
10
+ export * from "./authoring.js";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/learning/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/learning/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}