@openpond/evals 0.7.1 → 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.
@@ -3,6 +3,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
3
3
  operationId: z.ZodString;
4
4
  action: z.ZodLiteral<"publish">;
5
5
  expectedRevision: z.ZodNumber;
6
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
7
+ draft: z.ZodObject<{
8
+ id: z.ZodString;
9
+ contentHash: z.ZodString;
10
+ revision: z.ZodNumber;
11
+ }, z.core.$strict>;
12
+ targetKind: z.ZodEnum<{
13
+ reward: "reward";
14
+ binding: "binding";
15
+ definition: "definition";
16
+ }>;
17
+ release: z.ZodObject<{
18
+ id: z.ZodString;
19
+ contentHash: z.ZodString;
20
+ revision: z.ZodNumber;
21
+ }, z.core.$strict>;
22
+ }, z.core.$strict>>;
6
23
  kind: z.ZodLiteral<"asset">;
7
24
  content: z.ZodObject<{
8
25
  schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
@@ -26,6 +43,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
26
43
  operationId: z.ZodString;
27
44
  action: z.ZodLiteral<"publish">;
28
45
  expectedRevision: z.ZodNumber;
46
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
47
+ draft: z.ZodObject<{
48
+ id: z.ZodString;
49
+ contentHash: z.ZodString;
50
+ revision: z.ZodNumber;
51
+ }, z.core.$strict>;
52
+ targetKind: z.ZodEnum<{
53
+ reward: "reward";
54
+ binding: "binding";
55
+ definition: "definition";
56
+ }>;
57
+ release: z.ZodObject<{
58
+ id: z.ZodString;
59
+ contentHash: z.ZodString;
60
+ revision: z.ZodNumber;
61
+ }, z.core.$strict>;
62
+ }, z.core.$strict>>;
29
63
  kind: z.ZodLiteral<"definition">;
30
64
  content: z.ZodObject<{
31
65
  schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
@@ -121,6 +155,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
121
155
  operationId: z.ZodString;
122
156
  action: z.ZodLiteral<"publish">;
123
157
  expectedRevision: z.ZodNumber;
158
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
159
+ draft: z.ZodObject<{
160
+ id: z.ZodString;
161
+ contentHash: z.ZodString;
162
+ revision: z.ZodNumber;
163
+ }, z.core.$strict>;
164
+ targetKind: z.ZodEnum<{
165
+ reward: "reward";
166
+ binding: "binding";
167
+ definition: "definition";
168
+ }>;
169
+ release: z.ZodObject<{
170
+ id: z.ZodString;
171
+ contentHash: z.ZodString;
172
+ revision: z.ZodNumber;
173
+ }, z.core.$strict>;
174
+ }, z.core.$strict>>;
124
175
  kind: z.ZodLiteral<"reward">;
125
176
  content: z.ZodObject<{
126
177
  schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
@@ -234,6 +285,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
234
285
  operationId: z.ZodString;
235
286
  action: z.ZodLiteral<"publish">;
236
287
  expectedRevision: z.ZodNumber;
288
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
289
+ draft: z.ZodObject<{
290
+ id: z.ZodString;
291
+ contentHash: z.ZodString;
292
+ revision: z.ZodNumber;
293
+ }, z.core.$strict>;
294
+ targetKind: z.ZodEnum<{
295
+ reward: "reward";
296
+ binding: "binding";
297
+ definition: "definition";
298
+ }>;
299
+ release: z.ZodObject<{
300
+ id: z.ZodString;
301
+ contentHash: z.ZodString;
302
+ revision: z.ZodNumber;
303
+ }, z.core.$strict>;
304
+ }, z.core.$strict>>;
237
305
  kind: z.ZodLiteral<"binding">;
238
306
  content: z.ZodObject<{
239
307
  schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
@@ -284,6 +352,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
284
352
  operationId: z.ZodString;
285
353
  action: z.ZodLiteral<"publish">;
286
354
  expectedRevision: z.ZodNumber;
355
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
356
+ draft: z.ZodObject<{
357
+ id: z.ZodString;
358
+ contentHash: z.ZodString;
359
+ revision: z.ZodNumber;
360
+ }, z.core.$strict>;
361
+ targetKind: z.ZodEnum<{
362
+ reward: "reward";
363
+ binding: "binding";
364
+ definition: "definition";
365
+ }>;
366
+ release: z.ZodObject<{
367
+ id: z.ZodString;
368
+ contentHash: z.ZodString;
369
+ revision: z.ZodNumber;
370
+ }, z.core.$strict>;
371
+ }, z.core.$strict>>;
287
372
  kind: z.ZodLiteral<"source">;
288
373
  content: z.ZodObject<{
289
374
  schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
@@ -332,6 +417,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
332
417
  operationId: z.ZodString;
333
418
  action: z.ZodLiteral<"publish">;
334
419
  expectedRevision: z.ZodNumber;
420
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
421
+ draft: z.ZodObject<{
422
+ id: z.ZodString;
423
+ contentHash: z.ZodString;
424
+ revision: z.ZodNumber;
425
+ }, z.core.$strict>;
426
+ targetKind: z.ZodEnum<{
427
+ reward: "reward";
428
+ binding: "binding";
429
+ definition: "definition";
430
+ }>;
431
+ release: z.ZodObject<{
432
+ id: z.ZodString;
433
+ contentHash: z.ZodString;
434
+ revision: z.ZodNumber;
435
+ }, z.core.$strict>;
436
+ }, z.core.$strict>>;
335
437
  kind: z.ZodLiteral<"policy">;
336
438
  content: z.ZodObject<{
337
439
  schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
@@ -440,6 +542,23 @@ export declare const PublishLearningResourceCommandSchema: z.ZodDiscriminatedUni
440
542
  export declare const PublishLearningResourcesCommandSchema: z.ZodObject<{
441
543
  operationId: z.ZodString;
442
544
  action: z.ZodLiteral<"publish_resources">;
545
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
546
+ draft: z.ZodObject<{
547
+ id: z.ZodString;
548
+ contentHash: z.ZodString;
549
+ revision: z.ZodNumber;
550
+ }, z.core.$strict>;
551
+ targetKind: z.ZodEnum<{
552
+ reward: "reward";
553
+ binding: "binding";
554
+ definition: "definition";
555
+ }>;
556
+ release: z.ZodObject<{
557
+ id: z.ZodString;
558
+ contentHash: z.ZodString;
559
+ revision: z.ZodNumber;
560
+ }, z.core.$strict>;
561
+ }, z.core.$strict>>;
443
562
  resources: z.ZodArray<z.ZodUnion<(z.ZodObject<{
444
563
  kind: z.ZodLiteral<"definition">;
445
564
  content: z.ZodObject<{
@@ -1032,10 +1151,345 @@ export declare const CancelTaskGradeCommandSchema: z.ZodObject<{
1032
1151
  gradeId: z.ZodString;
1033
1152
  expectedRevision: z.ZodNumber;
1034
1153
  }, z.core.$strict>;
1035
- export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1154
+ export declare const SaveAuthoringDraftCommandSchema: z.ZodObject<{
1155
+ operationId: z.ZodString;
1156
+ action: z.ZodLiteral<"save_draft">;
1157
+ expectedRevision: z.ZodNumber;
1158
+ draft: z.ZodDiscriminatedUnion<[z.ZodObject<{
1159
+ id: z.ZodString;
1160
+ targetId: z.ZodString;
1161
+ baseRelease: z.ZodNullable<z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ contentHash: z.ZodString;
1164
+ revision: z.ZodNumber;
1165
+ }, z.core.$strict>>;
1166
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1167
+ targetKind: z.ZodLiteral<"definition">;
1168
+ fields: z.ZodObject<{
1169
+ name: z.ZodString;
1170
+ description: z.ZodString;
1171
+ instructions: z.ZodString;
1172
+ input: z.ZodString;
1173
+ output: z.ZodString;
1174
+ familyNamespace: z.ZodString;
1175
+ sources: z.ZodArray<z.ZodObject<{
1176
+ graderId: z.ZodString;
1177
+ reward: z.ZodObject<{
1178
+ id: z.ZodString;
1179
+ contentHash: z.ZodString;
1180
+ revision: z.ZodNumber;
1181
+ }, z.core.$strict>;
1182
+ role: z.ZodEnum<{
1183
+ evaluation: "evaluation";
1184
+ training: "training";
1185
+ }>;
1186
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
+ kind: z.ZodLiteral<"identity">;
1188
+ }, z.core.$strict>, z.ZodObject<{
1189
+ kind: z.ZodLiteral<"linear">;
1190
+ minimum: z.ZodNumber;
1191
+ maximum: z.ZodNumber;
1192
+ direction: z.ZodEnum<{
1193
+ higher: "higher";
1194
+ lower: "lower";
1195
+ }>;
1196
+ }, z.core.$strict>], "kind">;
1197
+ weight: z.ZodNumber;
1198
+ required: z.ZodBoolean;
1199
+ hardGate: z.ZodBoolean;
1200
+ privileged: z.ZodBoolean;
1201
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1202
+ id: z.ZodString;
1203
+ contentHash: z.ZodString;
1204
+ }, z.core.$strict>>;
1205
+ }, z.core.$strict>>;
1206
+ recipeRef: z.ZodOptional<z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ contentHash: z.ZodString;
1209
+ revision: z.ZodNumber;
1210
+ }, z.core.$strict>>;
1211
+ }, z.core.$strict>;
1212
+ }, z.core.$strict>, z.ZodObject<{
1213
+ id: z.ZodString;
1214
+ targetId: z.ZodString;
1215
+ baseRelease: z.ZodNullable<z.ZodObject<{
1216
+ id: z.ZodString;
1217
+ contentHash: z.ZodString;
1218
+ revision: z.ZodNumber;
1219
+ }, z.core.$strict>>;
1220
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1221
+ targetKind: z.ZodLiteral<"reward">;
1222
+ fields: z.ZodObject<{
1223
+ name: z.ZodString;
1224
+ description: z.ZodString;
1225
+ kind: z.ZodEnum<{
1226
+ content: "content";
1227
+ schema: "schema";
1228
+ artifact: "artifact";
1229
+ runtime_event: "runtime_event";
1230
+ state: "state";
1231
+ model_judge: "model_judge";
1232
+ custom_verifier: "custom_verifier";
1233
+ human: "human";
1234
+ learned_model: "learned_model";
1235
+ }>;
1236
+ fields: z.ZodString;
1237
+ outputField: z.ZodString;
1238
+ expectedField: z.ZodString;
1239
+ expectedValue: z.ZodString;
1240
+ schema: z.ZodString;
1241
+ reference: z.ZodString;
1242
+ events: z.ZodString;
1243
+ code: z.ZodString;
1244
+ exportName: z.ZodString;
1245
+ timeout: z.ZodString;
1246
+ rubric: z.ZodString;
1247
+ providerId: z.ZodString;
1248
+ modelId: z.ZodString;
1249
+ modelRevision: z.ZodString;
1250
+ temperature: z.ZodString;
1251
+ reviewerRole: z.ZodString;
1252
+ learnedId: z.ZodString;
1253
+ learnedHash: z.ZodString;
1254
+ inputContract: z.ZodString;
1255
+ minimum: z.ZodString;
1256
+ maximum: z.ZodString;
1257
+ }, z.core.$strict>;
1258
+ }, z.core.$strict>, z.ZodObject<{
1259
+ id: z.ZodString;
1260
+ targetId: z.ZodString;
1261
+ baseRelease: z.ZodNullable<z.ZodObject<{
1262
+ id: z.ZodString;
1263
+ contentHash: z.ZodString;
1264
+ revision: z.ZodNumber;
1265
+ }, z.core.$strict>>;
1266
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1267
+ targetKind: z.ZodLiteral<"binding">;
1268
+ fields: z.ZodObject<{
1269
+ name: z.ZodString;
1270
+ description: z.ZodString;
1271
+ sources: z.ZodArray<z.ZodObject<{
1272
+ graderId: z.ZodString;
1273
+ reward: z.ZodObject<{
1274
+ id: z.ZodString;
1275
+ contentHash: z.ZodString;
1276
+ revision: z.ZodNumber;
1277
+ }, z.core.$strict>;
1278
+ role: z.ZodEnum<{
1279
+ evaluation: "evaluation";
1280
+ training: "training";
1281
+ }>;
1282
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1283
+ kind: z.ZodLiteral<"identity">;
1284
+ }, z.core.$strict>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"linear">;
1286
+ minimum: z.ZodNumber;
1287
+ maximum: z.ZodNumber;
1288
+ direction: z.ZodEnum<{
1289
+ higher: "higher";
1290
+ lower: "lower";
1291
+ }>;
1292
+ }, z.core.$strict>], "kind">;
1293
+ weight: z.ZodNumber;
1294
+ required: z.ZodBoolean;
1295
+ hardGate: z.ZodBoolean;
1296
+ privileged: z.ZodBoolean;
1297
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1298
+ id: z.ZodString;
1299
+ contentHash: z.ZodString;
1300
+ }, z.core.$strict>>;
1301
+ }, z.core.$strict>>;
1302
+ }, z.core.$strict>;
1303
+ }, z.core.$strict>], "targetKind">;
1304
+ }, z.core.$strict>;
1305
+ export declare const ArchiveAuthoringDraftCommandSchema: z.ZodObject<{
1306
+ operationId: z.ZodString;
1307
+ action: z.ZodLiteral<"archive_draft">;
1308
+ draft: z.ZodObject<{
1309
+ id: z.ZodString;
1310
+ contentHash: z.ZodString;
1311
+ revision: z.ZodNumber;
1312
+ }, z.core.$strict>;
1313
+ }, z.core.$strict>;
1314
+ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodObject<{
1315
+ operationId: z.ZodString;
1316
+ action: z.ZodLiteral<"save_draft">;
1317
+ expectedRevision: z.ZodNumber;
1318
+ draft: z.ZodDiscriminatedUnion<[z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ targetId: z.ZodString;
1321
+ baseRelease: z.ZodNullable<z.ZodObject<{
1322
+ id: z.ZodString;
1323
+ contentHash: z.ZodString;
1324
+ revision: z.ZodNumber;
1325
+ }, z.core.$strict>>;
1326
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1327
+ targetKind: z.ZodLiteral<"definition">;
1328
+ fields: z.ZodObject<{
1329
+ name: z.ZodString;
1330
+ description: z.ZodString;
1331
+ instructions: z.ZodString;
1332
+ input: z.ZodString;
1333
+ output: z.ZodString;
1334
+ familyNamespace: z.ZodString;
1335
+ sources: z.ZodArray<z.ZodObject<{
1336
+ graderId: z.ZodString;
1337
+ reward: z.ZodObject<{
1338
+ id: z.ZodString;
1339
+ contentHash: z.ZodString;
1340
+ revision: z.ZodNumber;
1341
+ }, z.core.$strict>;
1342
+ role: z.ZodEnum<{
1343
+ evaluation: "evaluation";
1344
+ training: "training";
1345
+ }>;
1346
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1347
+ kind: z.ZodLiteral<"identity">;
1348
+ }, z.core.$strict>, z.ZodObject<{
1349
+ kind: z.ZodLiteral<"linear">;
1350
+ minimum: z.ZodNumber;
1351
+ maximum: z.ZodNumber;
1352
+ direction: z.ZodEnum<{
1353
+ higher: "higher";
1354
+ lower: "lower";
1355
+ }>;
1356
+ }, z.core.$strict>], "kind">;
1357
+ weight: z.ZodNumber;
1358
+ required: z.ZodBoolean;
1359
+ hardGate: z.ZodBoolean;
1360
+ privileged: z.ZodBoolean;
1361
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1362
+ id: z.ZodString;
1363
+ contentHash: z.ZodString;
1364
+ }, z.core.$strict>>;
1365
+ }, z.core.$strict>>;
1366
+ recipeRef: z.ZodOptional<z.ZodObject<{
1367
+ id: z.ZodString;
1368
+ contentHash: z.ZodString;
1369
+ revision: z.ZodNumber;
1370
+ }, z.core.$strict>>;
1371
+ }, z.core.$strict>;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ id: z.ZodString;
1374
+ targetId: z.ZodString;
1375
+ baseRelease: z.ZodNullable<z.ZodObject<{
1376
+ id: z.ZodString;
1377
+ contentHash: z.ZodString;
1378
+ revision: z.ZodNumber;
1379
+ }, z.core.$strict>>;
1380
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1381
+ targetKind: z.ZodLiteral<"reward">;
1382
+ fields: z.ZodObject<{
1383
+ name: z.ZodString;
1384
+ description: z.ZodString;
1385
+ kind: z.ZodEnum<{
1386
+ content: "content";
1387
+ schema: "schema";
1388
+ artifact: "artifact";
1389
+ runtime_event: "runtime_event";
1390
+ state: "state";
1391
+ model_judge: "model_judge";
1392
+ custom_verifier: "custom_verifier";
1393
+ human: "human";
1394
+ learned_model: "learned_model";
1395
+ }>;
1396
+ fields: z.ZodString;
1397
+ outputField: z.ZodString;
1398
+ expectedField: z.ZodString;
1399
+ expectedValue: z.ZodString;
1400
+ schema: z.ZodString;
1401
+ reference: z.ZodString;
1402
+ events: z.ZodString;
1403
+ code: z.ZodString;
1404
+ exportName: z.ZodString;
1405
+ timeout: z.ZodString;
1406
+ rubric: z.ZodString;
1407
+ providerId: z.ZodString;
1408
+ modelId: z.ZodString;
1409
+ modelRevision: z.ZodString;
1410
+ temperature: z.ZodString;
1411
+ reviewerRole: z.ZodString;
1412
+ learnedId: z.ZodString;
1413
+ learnedHash: z.ZodString;
1414
+ inputContract: z.ZodString;
1415
+ minimum: z.ZodString;
1416
+ maximum: z.ZodString;
1417
+ }, z.core.$strict>;
1418
+ }, z.core.$strict>, z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ targetId: z.ZodString;
1421
+ baseRelease: z.ZodNullable<z.ZodObject<{
1422
+ id: z.ZodString;
1423
+ contentHash: z.ZodString;
1424
+ revision: z.ZodNumber;
1425
+ }, z.core.$strict>>;
1426
+ editorVersion: z.ZodLiteral<"openpond.modelsEditor.v1">;
1427
+ targetKind: z.ZodLiteral<"binding">;
1428
+ fields: z.ZodObject<{
1429
+ name: z.ZodString;
1430
+ description: z.ZodString;
1431
+ sources: z.ZodArray<z.ZodObject<{
1432
+ graderId: z.ZodString;
1433
+ reward: z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ contentHash: z.ZodString;
1436
+ revision: z.ZodNumber;
1437
+ }, z.core.$strict>;
1438
+ role: z.ZodEnum<{
1439
+ evaluation: "evaluation";
1440
+ training: "training";
1441
+ }>;
1442
+ normalization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1443
+ kind: z.ZodLiteral<"identity">;
1444
+ }, z.core.$strict>, z.ZodObject<{
1445
+ kind: z.ZodLiteral<"linear">;
1446
+ minimum: z.ZodNumber;
1447
+ maximum: z.ZodNumber;
1448
+ direction: z.ZodEnum<{
1449
+ higher: "higher";
1450
+ lower: "lower";
1451
+ }>;
1452
+ }, z.core.$strict>], "kind">;
1453
+ weight: z.ZodNumber;
1454
+ required: z.ZodBoolean;
1455
+ hardGate: z.ZodBoolean;
1456
+ privileged: z.ZodBoolean;
1457
+ fixtureRefs: z.ZodArray<z.ZodObject<{
1458
+ id: z.ZodString;
1459
+ contentHash: z.ZodString;
1460
+ }, z.core.$strict>>;
1461
+ }, z.core.$strict>>;
1462
+ }, z.core.$strict>;
1463
+ }, z.core.$strict>], "targetKind">;
1464
+ }, z.core.$strict>, z.ZodObject<{
1465
+ operationId: z.ZodString;
1466
+ action: z.ZodLiteral<"archive_draft">;
1467
+ draft: z.ZodObject<{
1468
+ id: z.ZodString;
1469
+ contentHash: z.ZodString;
1470
+ revision: z.ZodNumber;
1471
+ }, z.core.$strict>;
1472
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1036
1473
  operationId: z.ZodString;
1037
1474
  action: z.ZodLiteral<"publish">;
1038
1475
  expectedRevision: z.ZodNumber;
1476
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1477
+ draft: z.ZodObject<{
1478
+ id: z.ZodString;
1479
+ contentHash: z.ZodString;
1480
+ revision: z.ZodNumber;
1481
+ }, z.core.$strict>;
1482
+ targetKind: z.ZodEnum<{
1483
+ reward: "reward";
1484
+ binding: "binding";
1485
+ definition: "definition";
1486
+ }>;
1487
+ release: z.ZodObject<{
1488
+ id: z.ZodString;
1489
+ contentHash: z.ZodString;
1490
+ revision: z.ZodNumber;
1491
+ }, z.core.$strict>;
1492
+ }, z.core.$strict>>;
1039
1493
  kind: z.ZodLiteral<"asset">;
1040
1494
  content: z.ZodObject<{
1041
1495
  schemaVersion: z.ZodLiteral<"openpond.learningTextAsset.v1">;
@@ -1059,6 +1513,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1059
1513
  operationId: z.ZodString;
1060
1514
  action: z.ZodLiteral<"publish">;
1061
1515
  expectedRevision: z.ZodNumber;
1516
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1517
+ draft: z.ZodObject<{
1518
+ id: z.ZodString;
1519
+ contentHash: z.ZodString;
1520
+ revision: z.ZodNumber;
1521
+ }, z.core.$strict>;
1522
+ targetKind: z.ZodEnum<{
1523
+ reward: "reward";
1524
+ binding: "binding";
1525
+ definition: "definition";
1526
+ }>;
1527
+ release: z.ZodObject<{
1528
+ id: z.ZodString;
1529
+ contentHash: z.ZodString;
1530
+ revision: z.ZodNumber;
1531
+ }, z.core.$strict>;
1532
+ }, z.core.$strict>>;
1062
1533
  kind: z.ZodLiteral<"definition">;
1063
1534
  content: z.ZodObject<{
1064
1535
  schemaVersion: z.ZodLiteral<"openpond.taskDefinition.v1">;
@@ -1154,6 +1625,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1154
1625
  operationId: z.ZodString;
1155
1626
  action: z.ZodLiteral<"publish">;
1156
1627
  expectedRevision: z.ZodNumber;
1628
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1629
+ draft: z.ZodObject<{
1630
+ id: z.ZodString;
1631
+ contentHash: z.ZodString;
1632
+ revision: z.ZodNumber;
1633
+ }, z.core.$strict>;
1634
+ targetKind: z.ZodEnum<{
1635
+ reward: "reward";
1636
+ binding: "binding";
1637
+ definition: "definition";
1638
+ }>;
1639
+ release: z.ZodObject<{
1640
+ id: z.ZodString;
1641
+ contentHash: z.ZodString;
1642
+ revision: z.ZodNumber;
1643
+ }, z.core.$strict>;
1644
+ }, z.core.$strict>>;
1157
1645
  kind: z.ZodLiteral<"reward">;
1158
1646
  content: z.ZodObject<{
1159
1647
  schemaVersion: z.ZodLiteral<"openpond.rewardRelease.v1">;
@@ -1267,6 +1755,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1267
1755
  operationId: z.ZodString;
1268
1756
  action: z.ZodLiteral<"publish">;
1269
1757
  expectedRevision: z.ZodNumber;
1758
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1759
+ draft: z.ZodObject<{
1760
+ id: z.ZodString;
1761
+ contentHash: z.ZodString;
1762
+ revision: z.ZodNumber;
1763
+ }, z.core.$strict>;
1764
+ targetKind: z.ZodEnum<{
1765
+ reward: "reward";
1766
+ binding: "binding";
1767
+ definition: "definition";
1768
+ }>;
1769
+ release: z.ZodObject<{
1770
+ id: z.ZodString;
1771
+ contentHash: z.ZodString;
1772
+ revision: z.ZodNumber;
1773
+ }, z.core.$strict>;
1774
+ }, z.core.$strict>>;
1270
1775
  kind: z.ZodLiteral<"binding">;
1271
1776
  content: z.ZodObject<{
1272
1777
  schemaVersion: z.ZodLiteral<"openpond.rewardBinding.v1">;
@@ -1317,6 +1822,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1317
1822
  operationId: z.ZodString;
1318
1823
  action: z.ZodLiteral<"publish">;
1319
1824
  expectedRevision: z.ZodNumber;
1825
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1826
+ draft: z.ZodObject<{
1827
+ id: z.ZodString;
1828
+ contentHash: z.ZodString;
1829
+ revision: z.ZodNumber;
1830
+ }, z.core.$strict>;
1831
+ targetKind: z.ZodEnum<{
1832
+ reward: "reward";
1833
+ binding: "binding";
1834
+ definition: "definition";
1835
+ }>;
1836
+ release: z.ZodObject<{
1837
+ id: z.ZodString;
1838
+ contentHash: z.ZodString;
1839
+ revision: z.ZodNumber;
1840
+ }, z.core.$strict>;
1841
+ }, z.core.$strict>>;
1320
1842
  kind: z.ZodLiteral<"source">;
1321
1843
  content: z.ZodObject<{
1322
1844
  schemaVersion: z.ZodLiteral<"openpond.learningSource.v1">;
@@ -1365,6 +1887,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1365
1887
  operationId: z.ZodString;
1366
1888
  action: z.ZodLiteral<"publish">;
1367
1889
  expectedRevision: z.ZodNumber;
1890
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
1891
+ draft: z.ZodObject<{
1892
+ id: z.ZodString;
1893
+ contentHash: z.ZodString;
1894
+ revision: z.ZodNumber;
1895
+ }, z.core.$strict>;
1896
+ targetKind: z.ZodEnum<{
1897
+ reward: "reward";
1898
+ binding: "binding";
1899
+ definition: "definition";
1900
+ }>;
1901
+ release: z.ZodObject<{
1902
+ id: z.ZodString;
1903
+ contentHash: z.ZodString;
1904
+ revision: z.ZodNumber;
1905
+ }, z.core.$strict>;
1906
+ }, z.core.$strict>>;
1368
1907
  kind: z.ZodLiteral<"policy">;
1369
1908
  content: z.ZodObject<{
1370
1909
  schemaVersion: z.ZodLiteral<"openpond.learningPolicy.v1">;
@@ -1472,6 +2011,23 @@ export declare const LearningCommandSchema: z.ZodUnion<readonly [z.ZodDiscrimina
1472
2011
  }, z.core.$strict>], "kind">, z.ZodObject<{
1473
2012
  operationId: z.ZodString;
1474
2013
  action: z.ZodLiteral<"publish_resources">;
2014
+ finalizeDraft: z.ZodOptional<z.ZodObject<{
2015
+ draft: z.ZodObject<{
2016
+ id: z.ZodString;
2017
+ contentHash: z.ZodString;
2018
+ revision: z.ZodNumber;
2019
+ }, z.core.$strict>;
2020
+ targetKind: z.ZodEnum<{
2021
+ reward: "reward";
2022
+ binding: "binding";
2023
+ definition: "definition";
2024
+ }>;
2025
+ release: z.ZodObject<{
2026
+ id: z.ZodString;
2027
+ contentHash: z.ZodString;
2028
+ revision: z.ZodNumber;
2029
+ }, z.core.$strict>;
2030
+ }, z.core.$strict>>;
1475
2031
  resources: z.ZodArray<z.ZodUnion<(z.ZodObject<{
1476
2032
  kind: z.ZodLiteral<"definition">;
1477
2033
  content: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/learning/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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