@openpond/evals 0.12.3 → 0.12.5

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 (53) hide show
  1. package/LEARNING.md +43 -0
  2. package/dist/javascript-isolate-process-entry.js +4 -1
  3. package/dist/javascript-isolate-process-source.js +1 -1
  4. package/dist/javascript-isolate-process.js +36 -2
  5. package/dist/javascript-isolate.js +8 -2
  6. package/dist/javascript-verifier-node.js +1 -0
  7. package/dist/javascript-verifier-worker-source.js +1 -1
  8. package/dist/learning/index.js +1 -0
  9. package/dist/learning/iteration-dispatch-commands.js +1 -1
  10. package/dist/learning/iteration-dispatch-contracts.js +27 -0
  11. package/dist/learning/iteration-dispatch-deferral.js +28 -0
  12. package/dist/learning/iteration-dispatch-worker.js +34 -5
  13. package/dist/tool-learning/actions.js +62 -0
  14. package/dist/tool-learning/consultation.js +198 -0
  15. package/dist/tool-learning/episodes.js +284 -0
  16. package/dist/tool-learning/index.js +6 -0
  17. package/dist/tool-learning/installations.js +151 -0
  18. package/dist/tool-learning/policy.js +38 -0
  19. package/dist/tool-learning/primitives.js +87 -0
  20. package/dist/types/javascript-isolate-process.d.ts +7 -0
  21. package/dist/types/javascript-isolate-process.d.ts.map +1 -1
  22. package/dist/types/javascript-isolate.d.ts +3 -1
  23. package/dist/types/javascript-isolate.d.ts.map +1 -1
  24. package/dist/types/javascript-verifier-node.d.ts +1 -0
  25. package/dist/types/javascript-verifier-node.d.ts.map +1 -1
  26. package/dist/types/learning/index.d.ts +1 -0
  27. package/dist/types/learning/index.d.ts.map +1 -1
  28. package/dist/types/learning/iteration-dispatch-contracts.d.ts +45 -0
  29. package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -1
  30. package/dist/types/learning/iteration-dispatch-deferral.d.ts +71 -0
  31. package/dist/types/learning/iteration-dispatch-deferral.d.ts.map +1 -0
  32. package/dist/types/learning/iteration-dispatch-worker.d.ts +7 -2
  33. package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -1
  34. package/dist/types/learning/repository.d.ts +20 -0
  35. package/dist/types/learning/repository.d.ts.map +1 -1
  36. package/dist/types/learning/transport.d.ts +20 -0
  37. package/dist/types/learning/transport.d.ts.map +1 -1
  38. package/dist/types/tool-learning/actions.d.ts +54 -0
  39. package/dist/types/tool-learning/actions.d.ts.map +1 -0
  40. package/dist/types/tool-learning/consultation.d.ts +229 -0
  41. package/dist/types/tool-learning/consultation.d.ts.map +1 -0
  42. package/dist/types/tool-learning/episodes.d.ts +1058 -0
  43. package/dist/types/tool-learning/episodes.d.ts.map +1 -0
  44. package/dist/types/tool-learning/index.d.ts +7 -0
  45. package/dist/types/tool-learning/index.d.ts.map +1 -0
  46. package/dist/types/tool-learning/installations.d.ts +296 -0
  47. package/dist/types/tool-learning/installations.d.ts.map +1 -0
  48. package/dist/types/tool-learning/policy.d.ts +3 -0
  49. package/dist/types/tool-learning/policy.d.ts.map +1 -0
  50. package/dist/types/tool-learning/primitives.d.ts +73 -0
  51. package/dist/types/tool-learning/primitives.d.ts.map +1 -0
  52. package/package.json +5 -1
  53. package/schemas/learning/v1/dispatch.schema.json +100 -1
@@ -0,0 +1,1058 @@
1
+ import { z } from "zod";
2
+ export declare const ToolEpisodeAttemptSchema: z.ZodObject<{
3
+ intent: z.ZodString;
4
+ tool: z.ZodObject<{
5
+ name: z.ZodString;
6
+ version: z.ZodNullable<z.ZodString>;
7
+ server: z.ZodNullable<z.ZodString>;
8
+ }, z.core.$strict>;
9
+ action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ kind: z.ZodLiteral<"python">;
11
+ code: z.ZodString;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ kind: z.ZodLiteral<"shell">;
14
+ command: z.ZodString;
15
+ shell: z.ZodString;
16
+ }, z.core.$strict>, z.ZodObject<{
17
+ kind: z.ZodLiteral<"tool_arguments">;
18
+ arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ kind: z.ZodLiteral<"edit">;
21
+ patch: z.ZodString;
22
+ baseFiles: z.ZodArray<z.ZodObject<{
23
+ path: z.ZodString;
24
+ contentHash: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strict>>;
26
+ }, z.core.$strict>], "kind">>;
27
+ actionHash: z.ZodString;
28
+ environment: z.ZodObject<{
29
+ application: z.ZodString;
30
+ version: z.ZodString;
31
+ state: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
32
+ fingerprint: z.ZodString;
33
+ }, z.core.$strict>;
34
+ contextAssets: z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ contentHash: z.ZodString;
37
+ mediaType: z.ZodEnum<{
38
+ "application/json": "application/json";
39
+ "text/plain": "text/plain";
40
+ "text/x-diff": "text/x-diff";
41
+ "text/x-python": "text/x-python";
42
+ }>;
43
+ sizeBytes: z.ZodNumber;
44
+ purpose: z.ZodEnum<{
45
+ action: "action";
46
+ result: "result";
47
+ state: "state";
48
+ verification: "verification";
49
+ }>;
50
+ }, z.core.$strict>>;
51
+ selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"eligible_attempt">;
53
+ }, z.core.$strict>, z.ZodObject<{
54
+ kind: z.ZodLiteral<"unchanged_control">;
55
+ numerator: z.ZodNumber;
56
+ denominator: z.ZodNumber;
57
+ policyHash: z.ZodString;
58
+ }, z.core.$strict>], "kind">;
59
+ }, z.core.$strict>;
60
+ export declare const ToolEpisodeFailureKindSchema: z.ZodEnum<{
61
+ authorization_denied: "authorization_denied";
62
+ cancelled: "cancelled";
63
+ execution_failure: "execution_failure";
64
+ infrastructure_failure: "infrastructure_failure";
65
+ outcome_failure: "outcome_failure";
66
+ process_failure: "process_failure";
67
+ timeout: "timeout";
68
+ unknown_failure: "unknown_failure";
69
+ validation_failure: "validation_failure";
70
+ }>;
71
+ export declare const ToolEpisodeObservationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
+ attempt: z.ZodObject<{
73
+ id: z.ZodString;
74
+ contentHash: z.ZodString;
75
+ }, z.core.$strict>;
76
+ actionHash: z.ZodString;
77
+ execution: z.ZodEnum<{
78
+ executed: "executed";
79
+ not_executed: "not_executed";
80
+ unknown: "unknown";
81
+ }>;
82
+ sideEffects: z.ZodEnum<{
83
+ none: "none";
84
+ observed: "observed";
85
+ possible: "possible";
86
+ unknown: "unknown";
87
+ }>;
88
+ resultExcerpt: z.ZodString;
89
+ resultHash: z.ZodNullable<z.ZodString>;
90
+ assets: z.ZodArray<z.ZodObject<{
91
+ id: z.ZodString;
92
+ contentHash: z.ZodString;
93
+ mediaType: z.ZodEnum<{
94
+ "application/json": "application/json";
95
+ "text/plain": "text/plain";
96
+ "text/x-diff": "text/x-diff";
97
+ "text/x-python": "text/x-python";
98
+ }>;
99
+ sizeBytes: z.ZodNumber;
100
+ purpose: z.ZodEnum<{
101
+ action: "action";
102
+ result: "result";
103
+ state: "state";
104
+ verification: "verification";
105
+ }>;
106
+ }, z.core.$strict>>;
107
+ outcome: z.ZodLiteral<"succeeded">;
108
+ exitCode: z.ZodNullable<z.ZodLiteral<0>>;
109
+ }, z.core.$strict>, z.ZodObject<{
110
+ attempt: z.ZodObject<{
111
+ id: z.ZodString;
112
+ contentHash: z.ZodString;
113
+ }, z.core.$strict>;
114
+ actionHash: z.ZodString;
115
+ execution: z.ZodEnum<{
116
+ executed: "executed";
117
+ not_executed: "not_executed";
118
+ unknown: "unknown";
119
+ }>;
120
+ sideEffects: z.ZodEnum<{
121
+ none: "none";
122
+ observed: "observed";
123
+ possible: "possible";
124
+ unknown: "unknown";
125
+ }>;
126
+ resultExcerpt: z.ZodString;
127
+ resultHash: z.ZodNullable<z.ZodString>;
128
+ assets: z.ZodArray<z.ZodObject<{
129
+ id: z.ZodString;
130
+ contentHash: z.ZodString;
131
+ mediaType: z.ZodEnum<{
132
+ "application/json": "application/json";
133
+ "text/plain": "text/plain";
134
+ "text/x-diff": "text/x-diff";
135
+ "text/x-python": "text/x-python";
136
+ }>;
137
+ sizeBytes: z.ZodNumber;
138
+ purpose: z.ZodEnum<{
139
+ action: "action";
140
+ result: "result";
141
+ state: "state";
142
+ verification: "verification";
143
+ }>;
144
+ }, z.core.$strict>>;
145
+ outcome: z.ZodLiteral<"failed">;
146
+ classification: z.ZodEnum<{
147
+ authorization_denied: "authorization_denied";
148
+ cancelled: "cancelled";
149
+ execution_failure: "execution_failure";
150
+ infrastructure_failure: "infrastructure_failure";
151
+ outcome_failure: "outcome_failure";
152
+ process_failure: "process_failure";
153
+ timeout: "timeout";
154
+ unknown_failure: "unknown_failure";
155
+ validation_failure: "validation_failure";
156
+ }>;
157
+ errorCode: z.ZodString;
158
+ message: z.ZodString;
159
+ exitCode: z.ZodNullable<z.ZodNumber>;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ attempt: z.ZodObject<{
162
+ id: z.ZodString;
163
+ contentHash: z.ZodString;
164
+ }, z.core.$strict>;
165
+ actionHash: z.ZodString;
166
+ execution: z.ZodEnum<{
167
+ executed: "executed";
168
+ not_executed: "not_executed";
169
+ unknown: "unknown";
170
+ }>;
171
+ sideEffects: z.ZodEnum<{
172
+ none: "none";
173
+ observed: "observed";
174
+ possible: "possible";
175
+ unknown: "unknown";
176
+ }>;
177
+ resultExcerpt: z.ZodString;
178
+ resultHash: z.ZodNullable<z.ZodString>;
179
+ assets: z.ZodArray<z.ZodObject<{
180
+ id: z.ZodString;
181
+ contentHash: z.ZodString;
182
+ mediaType: z.ZodEnum<{
183
+ "application/json": "application/json";
184
+ "text/plain": "text/plain";
185
+ "text/x-diff": "text/x-diff";
186
+ "text/x-python": "text/x-python";
187
+ }>;
188
+ sizeBytes: z.ZodNumber;
189
+ purpose: z.ZodEnum<{
190
+ action: "action";
191
+ result: "result";
192
+ state: "state";
193
+ verification: "verification";
194
+ }>;
195
+ }, z.core.$strict>>;
196
+ outcome: z.ZodLiteral<"incomplete">;
197
+ reason: z.ZodEnum<{
198
+ completion_not_observed: "completion_not_observed";
199
+ coverage_gap: "coverage_gap";
200
+ observer_restarted: "observer_restarted";
201
+ transport_interrupted: "transport_interrupted";
202
+ }>;
203
+ }, z.core.$strict>], "outcome">;
204
+ export declare const ToolEpisodeRecoveryLinkSchema: z.ZodObject<{
205
+ failedAttempt: z.ZodObject<{
206
+ id: z.ZodString;
207
+ contentHash: z.ZodString;
208
+ }, z.core.$strict>;
209
+ failedObservation: z.ZodObject<{
210
+ id: z.ZodString;
211
+ contentHash: z.ZodString;
212
+ }, z.core.$strict>;
213
+ replacementAttempt: z.ZodObject<{
214
+ id: z.ZodString;
215
+ contentHash: z.ZodString;
216
+ }, z.core.$strict>;
217
+ goalId: z.ZodString;
218
+ basis: z.ZodEnum<{
219
+ artifact_lineage: "artifact_lineage";
220
+ explicit_relation: "explicit_relation";
221
+ unverified: "unverified";
222
+ }>;
223
+ attributionEvidence: z.ZodArray<z.ZodObject<{
224
+ id: z.ZodString;
225
+ contentHash: z.ZodString;
226
+ }, z.core.$strict>>;
227
+ }, z.core.$strict>;
228
+ /** A producer supplies a claim/reference. Intake must resolve its authentic owner
229
+ * receipt; possession of an append credential never grants verifier authority. */
230
+ export declare const ToolEpisodeVerificationSchema: z.ZodObject<{
231
+ attempt: z.ZodObject<{
232
+ id: z.ZodString;
233
+ contentHash: z.ZodString;
234
+ }, z.core.$strict>;
235
+ actionHash: z.ZodString;
236
+ outcome: z.ZodEnum<{
237
+ failed: "failed";
238
+ passed: "passed";
239
+ unknown: "unknown";
240
+ }>;
241
+ verifierRelease: z.ZodNullable<z.ZodObject<{
242
+ id: z.ZodString;
243
+ contentHash: z.ZodString;
244
+ }, z.core.$strict>>;
245
+ verifierReceipt: z.ZodNullable<z.ZodObject<{
246
+ id: z.ZodString;
247
+ contentHash: z.ZodString;
248
+ }, z.core.$strict>>;
249
+ environmentFingerprint: z.ZodString;
250
+ resetStateHash: z.ZodNullable<z.ZodString>;
251
+ outputArtifacts: z.ZodArray<z.ZodObject<{
252
+ id: z.ZodString;
253
+ contentHash: z.ZodString;
254
+ mediaType: z.ZodEnum<{
255
+ "application/json": "application/json";
256
+ "text/plain": "text/plain";
257
+ "text/x-diff": "text/x-diff";
258
+ "text/x-python": "text/x-python";
259
+ }>;
260
+ sizeBytes: z.ZodNumber;
261
+ purpose: z.ZodEnum<{
262
+ action: "action";
263
+ result: "result";
264
+ state: "state";
265
+ verification: "verification";
266
+ }>;
267
+ }, z.core.$strict>>;
268
+ reason: z.ZodString;
269
+ }, z.core.$strict>;
270
+ export declare const ToolEpisodeEventSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
271
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
272
+ operationId: z.ZodString;
273
+ installationId: z.ZodString;
274
+ episodeId: z.ZodString;
275
+ eventId: z.ZodString;
276
+ sessionId: z.ZodString;
277
+ parentSessionId: z.ZodNullable<z.ZodString>;
278
+ turnId: z.ZodNullable<z.ZodString>;
279
+ callId: z.ZodString;
280
+ occurredAt: z.ZodString;
281
+ sequence: z.ZodNumber;
282
+ adapterVersion: z.ZodString;
283
+ sanitization: z.ZodObject<{
284
+ policyRevision: z.ZodNumber;
285
+ policyHash: z.ZodString;
286
+ redactedFields: z.ZodNumber;
287
+ omittedFields: z.ZodNumber;
288
+ truncated: z.ZodBoolean;
289
+ }, z.core.$strict>;
290
+ contentHash: z.ZodString;
291
+ eventKind: z.ZodLiteral<"attempt">;
292
+ payload: z.ZodObject<{
293
+ intent: z.ZodString;
294
+ tool: z.ZodObject<{
295
+ name: z.ZodString;
296
+ version: z.ZodNullable<z.ZodString>;
297
+ server: z.ZodNullable<z.ZodString>;
298
+ }, z.core.$strict>;
299
+ action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
300
+ kind: z.ZodLiteral<"python">;
301
+ code: z.ZodString;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ kind: z.ZodLiteral<"shell">;
304
+ command: z.ZodString;
305
+ shell: z.ZodString;
306
+ }, z.core.$strict>, z.ZodObject<{
307
+ kind: z.ZodLiteral<"tool_arguments">;
308
+ arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
309
+ }, z.core.$strict>, z.ZodObject<{
310
+ kind: z.ZodLiteral<"edit">;
311
+ patch: z.ZodString;
312
+ baseFiles: z.ZodArray<z.ZodObject<{
313
+ path: z.ZodString;
314
+ contentHash: z.ZodNullable<z.ZodString>;
315
+ }, z.core.$strict>>;
316
+ }, z.core.$strict>], "kind">>;
317
+ actionHash: z.ZodString;
318
+ environment: z.ZodObject<{
319
+ application: z.ZodString;
320
+ version: z.ZodString;
321
+ state: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
322
+ fingerprint: z.ZodString;
323
+ }, z.core.$strict>;
324
+ contextAssets: z.ZodArray<z.ZodObject<{
325
+ id: z.ZodString;
326
+ contentHash: z.ZodString;
327
+ mediaType: z.ZodEnum<{
328
+ "application/json": "application/json";
329
+ "text/plain": "text/plain";
330
+ "text/x-diff": "text/x-diff";
331
+ "text/x-python": "text/x-python";
332
+ }>;
333
+ sizeBytes: z.ZodNumber;
334
+ purpose: z.ZodEnum<{
335
+ action: "action";
336
+ result: "result";
337
+ state: "state";
338
+ verification: "verification";
339
+ }>;
340
+ }, z.core.$strict>>;
341
+ selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ kind: z.ZodLiteral<"eligible_attempt">;
343
+ }, z.core.$strict>, z.ZodObject<{
344
+ kind: z.ZodLiteral<"unchanged_control">;
345
+ numerator: z.ZodNumber;
346
+ denominator: z.ZodNumber;
347
+ policyHash: z.ZodString;
348
+ }, z.core.$strict>], "kind">;
349
+ }, z.core.$strict>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
352
+ operationId: z.ZodString;
353
+ installationId: z.ZodString;
354
+ episodeId: z.ZodString;
355
+ eventId: z.ZodString;
356
+ sessionId: z.ZodString;
357
+ parentSessionId: z.ZodNullable<z.ZodString>;
358
+ turnId: z.ZodNullable<z.ZodString>;
359
+ callId: z.ZodString;
360
+ occurredAt: z.ZodString;
361
+ sequence: z.ZodNumber;
362
+ adapterVersion: z.ZodString;
363
+ sanitization: z.ZodObject<{
364
+ policyRevision: z.ZodNumber;
365
+ policyHash: z.ZodString;
366
+ redactedFields: z.ZodNumber;
367
+ omittedFields: z.ZodNumber;
368
+ truncated: z.ZodBoolean;
369
+ }, z.core.$strict>;
370
+ contentHash: z.ZodString;
371
+ eventKind: z.ZodLiteral<"observation">;
372
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ attempt: z.ZodObject<{
374
+ id: z.ZodString;
375
+ contentHash: z.ZodString;
376
+ }, z.core.$strict>;
377
+ actionHash: z.ZodString;
378
+ execution: z.ZodEnum<{
379
+ executed: "executed";
380
+ not_executed: "not_executed";
381
+ unknown: "unknown";
382
+ }>;
383
+ sideEffects: z.ZodEnum<{
384
+ none: "none";
385
+ observed: "observed";
386
+ possible: "possible";
387
+ unknown: "unknown";
388
+ }>;
389
+ resultExcerpt: z.ZodString;
390
+ resultHash: z.ZodNullable<z.ZodString>;
391
+ assets: z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ contentHash: z.ZodString;
394
+ mediaType: z.ZodEnum<{
395
+ "application/json": "application/json";
396
+ "text/plain": "text/plain";
397
+ "text/x-diff": "text/x-diff";
398
+ "text/x-python": "text/x-python";
399
+ }>;
400
+ sizeBytes: z.ZodNumber;
401
+ purpose: z.ZodEnum<{
402
+ action: "action";
403
+ result: "result";
404
+ state: "state";
405
+ verification: "verification";
406
+ }>;
407
+ }, z.core.$strict>>;
408
+ outcome: z.ZodLiteral<"succeeded">;
409
+ exitCode: z.ZodNullable<z.ZodLiteral<0>>;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ attempt: z.ZodObject<{
412
+ id: z.ZodString;
413
+ contentHash: z.ZodString;
414
+ }, z.core.$strict>;
415
+ actionHash: z.ZodString;
416
+ execution: z.ZodEnum<{
417
+ executed: "executed";
418
+ not_executed: "not_executed";
419
+ unknown: "unknown";
420
+ }>;
421
+ sideEffects: z.ZodEnum<{
422
+ none: "none";
423
+ observed: "observed";
424
+ possible: "possible";
425
+ unknown: "unknown";
426
+ }>;
427
+ resultExcerpt: z.ZodString;
428
+ resultHash: z.ZodNullable<z.ZodString>;
429
+ assets: z.ZodArray<z.ZodObject<{
430
+ id: z.ZodString;
431
+ contentHash: z.ZodString;
432
+ mediaType: z.ZodEnum<{
433
+ "application/json": "application/json";
434
+ "text/plain": "text/plain";
435
+ "text/x-diff": "text/x-diff";
436
+ "text/x-python": "text/x-python";
437
+ }>;
438
+ sizeBytes: z.ZodNumber;
439
+ purpose: z.ZodEnum<{
440
+ action: "action";
441
+ result: "result";
442
+ state: "state";
443
+ verification: "verification";
444
+ }>;
445
+ }, z.core.$strict>>;
446
+ outcome: z.ZodLiteral<"failed">;
447
+ classification: z.ZodEnum<{
448
+ authorization_denied: "authorization_denied";
449
+ cancelled: "cancelled";
450
+ execution_failure: "execution_failure";
451
+ infrastructure_failure: "infrastructure_failure";
452
+ outcome_failure: "outcome_failure";
453
+ process_failure: "process_failure";
454
+ timeout: "timeout";
455
+ unknown_failure: "unknown_failure";
456
+ validation_failure: "validation_failure";
457
+ }>;
458
+ errorCode: z.ZodString;
459
+ message: z.ZodString;
460
+ exitCode: z.ZodNullable<z.ZodNumber>;
461
+ }, z.core.$strict>, z.ZodObject<{
462
+ attempt: z.ZodObject<{
463
+ id: z.ZodString;
464
+ contentHash: z.ZodString;
465
+ }, z.core.$strict>;
466
+ actionHash: z.ZodString;
467
+ execution: z.ZodEnum<{
468
+ executed: "executed";
469
+ not_executed: "not_executed";
470
+ unknown: "unknown";
471
+ }>;
472
+ sideEffects: z.ZodEnum<{
473
+ none: "none";
474
+ observed: "observed";
475
+ possible: "possible";
476
+ unknown: "unknown";
477
+ }>;
478
+ resultExcerpt: z.ZodString;
479
+ resultHash: z.ZodNullable<z.ZodString>;
480
+ assets: z.ZodArray<z.ZodObject<{
481
+ id: z.ZodString;
482
+ contentHash: z.ZodString;
483
+ mediaType: z.ZodEnum<{
484
+ "application/json": "application/json";
485
+ "text/plain": "text/plain";
486
+ "text/x-diff": "text/x-diff";
487
+ "text/x-python": "text/x-python";
488
+ }>;
489
+ sizeBytes: z.ZodNumber;
490
+ purpose: z.ZodEnum<{
491
+ action: "action";
492
+ result: "result";
493
+ state: "state";
494
+ verification: "verification";
495
+ }>;
496
+ }, z.core.$strict>>;
497
+ outcome: z.ZodLiteral<"incomplete">;
498
+ reason: z.ZodEnum<{
499
+ completion_not_observed: "completion_not_observed";
500
+ coverage_gap: "coverage_gap";
501
+ observer_restarted: "observer_restarted";
502
+ transport_interrupted: "transport_interrupted";
503
+ }>;
504
+ }, z.core.$strict>], "outcome">;
505
+ }, z.core.$strict>, z.ZodObject<{
506
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
507
+ operationId: z.ZodString;
508
+ installationId: z.ZodString;
509
+ episodeId: z.ZodString;
510
+ eventId: z.ZodString;
511
+ sessionId: z.ZodString;
512
+ parentSessionId: z.ZodNullable<z.ZodString>;
513
+ turnId: z.ZodNullable<z.ZodString>;
514
+ callId: z.ZodString;
515
+ occurredAt: z.ZodString;
516
+ sequence: z.ZodNumber;
517
+ adapterVersion: z.ZodString;
518
+ sanitization: z.ZodObject<{
519
+ policyRevision: z.ZodNumber;
520
+ policyHash: z.ZodString;
521
+ redactedFields: z.ZodNumber;
522
+ omittedFields: z.ZodNumber;
523
+ truncated: z.ZodBoolean;
524
+ }, z.core.$strict>;
525
+ contentHash: z.ZodString;
526
+ eventKind: z.ZodLiteral<"recovery_link">;
527
+ payload: z.ZodObject<{
528
+ failedAttempt: z.ZodObject<{
529
+ id: z.ZodString;
530
+ contentHash: z.ZodString;
531
+ }, z.core.$strict>;
532
+ failedObservation: z.ZodObject<{
533
+ id: z.ZodString;
534
+ contentHash: z.ZodString;
535
+ }, z.core.$strict>;
536
+ replacementAttempt: z.ZodObject<{
537
+ id: z.ZodString;
538
+ contentHash: z.ZodString;
539
+ }, z.core.$strict>;
540
+ goalId: z.ZodString;
541
+ basis: z.ZodEnum<{
542
+ artifact_lineage: "artifact_lineage";
543
+ explicit_relation: "explicit_relation";
544
+ unverified: "unverified";
545
+ }>;
546
+ attributionEvidence: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodString;
548
+ contentHash: z.ZodString;
549
+ }, z.core.$strict>>;
550
+ }, z.core.$strict>;
551
+ }, z.core.$strict>, z.ZodObject<{
552
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
553
+ operationId: z.ZodString;
554
+ installationId: z.ZodString;
555
+ episodeId: z.ZodString;
556
+ eventId: z.ZodString;
557
+ sessionId: z.ZodString;
558
+ parentSessionId: z.ZodNullable<z.ZodString>;
559
+ turnId: z.ZodNullable<z.ZodString>;
560
+ callId: z.ZodString;
561
+ occurredAt: z.ZodString;
562
+ sequence: z.ZodNumber;
563
+ adapterVersion: z.ZodString;
564
+ sanitization: z.ZodObject<{
565
+ policyRevision: z.ZodNumber;
566
+ policyHash: z.ZodString;
567
+ redactedFields: z.ZodNumber;
568
+ omittedFields: z.ZodNumber;
569
+ truncated: z.ZodBoolean;
570
+ }, z.core.$strict>;
571
+ contentHash: z.ZodString;
572
+ eventKind: z.ZodLiteral<"verification">;
573
+ payload: z.ZodObject<{
574
+ attempt: z.ZodObject<{
575
+ id: z.ZodString;
576
+ contentHash: z.ZodString;
577
+ }, z.core.$strict>;
578
+ actionHash: z.ZodString;
579
+ outcome: z.ZodEnum<{
580
+ failed: "failed";
581
+ passed: "passed";
582
+ unknown: "unknown";
583
+ }>;
584
+ verifierRelease: z.ZodNullable<z.ZodObject<{
585
+ id: z.ZodString;
586
+ contentHash: z.ZodString;
587
+ }, z.core.$strict>>;
588
+ verifierReceipt: z.ZodNullable<z.ZodObject<{
589
+ id: z.ZodString;
590
+ contentHash: z.ZodString;
591
+ }, z.core.$strict>>;
592
+ environmentFingerprint: z.ZodString;
593
+ resetStateHash: z.ZodNullable<z.ZodString>;
594
+ outputArtifacts: z.ZodArray<z.ZodObject<{
595
+ id: z.ZodString;
596
+ contentHash: z.ZodString;
597
+ mediaType: z.ZodEnum<{
598
+ "application/json": "application/json";
599
+ "text/plain": "text/plain";
600
+ "text/x-diff": "text/x-diff";
601
+ "text/x-python": "text/x-python";
602
+ }>;
603
+ sizeBytes: z.ZodNumber;
604
+ purpose: z.ZodEnum<{
605
+ action: "action";
606
+ result: "result";
607
+ state: "state";
608
+ verification: "verification";
609
+ }>;
610
+ }, z.core.$strict>>;
611
+ reason: z.ZodString;
612
+ }, z.core.$strict>;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
615
+ operationId: z.ZodString;
616
+ installationId: z.ZodString;
617
+ episodeId: z.ZodString;
618
+ eventId: z.ZodString;
619
+ sessionId: z.ZodString;
620
+ parentSessionId: z.ZodNullable<z.ZodString>;
621
+ turnId: z.ZodNullable<z.ZodString>;
622
+ callId: z.ZodString;
623
+ occurredAt: z.ZodString;
624
+ sequence: z.ZodNumber;
625
+ adapterVersion: z.ZodString;
626
+ sanitization: z.ZodObject<{
627
+ policyRevision: z.ZodNumber;
628
+ policyHash: z.ZodString;
629
+ redactedFields: z.ZodNumber;
630
+ omittedFields: z.ZodNumber;
631
+ truncated: z.ZodBoolean;
632
+ }, z.core.$strict>;
633
+ contentHash: z.ZodString;
634
+ eventKind: z.ZodLiteral<"lineage">;
635
+ payload: z.ZodObject<{
636
+ relation: z.ZodEnum<{
637
+ fork: "fork";
638
+ reopen: "reopen";
639
+ split: "split";
640
+ }>;
641
+ parentEpisode: z.ZodObject<{
642
+ id: z.ZodString;
643
+ contentHash: z.ZodString;
644
+ }, z.core.$strict>;
645
+ parentSessionId: z.ZodString;
646
+ reason: z.ZodString;
647
+ }, z.core.$strict>;
648
+ }, z.core.$strict>], "eventKind">>;
649
+ export type ToolEpisodeEvent = z.infer<typeof ToolEpisodeEventSchema>;
650
+ export declare function sealToolEpisodeEvent(value: unknown): ToolEpisodeEvent;
651
+ export declare const ToolEpisodeAppendSchema: z.ZodPreprocess<z.ZodObject<{
652
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeAppend.v1">;
653
+ operationId: z.ZodString;
654
+ installationId: z.ZodString;
655
+ events: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
656
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
657
+ operationId: z.ZodString;
658
+ installationId: z.ZodString;
659
+ episodeId: z.ZodString;
660
+ eventId: z.ZodString;
661
+ sessionId: z.ZodString;
662
+ parentSessionId: z.ZodNullable<z.ZodString>;
663
+ turnId: z.ZodNullable<z.ZodString>;
664
+ callId: z.ZodString;
665
+ occurredAt: z.ZodString;
666
+ sequence: z.ZodNumber;
667
+ adapterVersion: z.ZodString;
668
+ sanitization: z.ZodObject<{
669
+ policyRevision: z.ZodNumber;
670
+ policyHash: z.ZodString;
671
+ redactedFields: z.ZodNumber;
672
+ omittedFields: z.ZodNumber;
673
+ truncated: z.ZodBoolean;
674
+ }, z.core.$strict>;
675
+ contentHash: z.ZodString;
676
+ eventKind: z.ZodLiteral<"attempt">;
677
+ payload: z.ZodObject<{
678
+ intent: z.ZodString;
679
+ tool: z.ZodObject<{
680
+ name: z.ZodString;
681
+ version: z.ZodNullable<z.ZodString>;
682
+ server: z.ZodNullable<z.ZodString>;
683
+ }, z.core.$strict>;
684
+ action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
685
+ kind: z.ZodLiteral<"python">;
686
+ code: z.ZodString;
687
+ }, z.core.$strict>, z.ZodObject<{
688
+ kind: z.ZodLiteral<"shell">;
689
+ command: z.ZodString;
690
+ shell: z.ZodString;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ kind: z.ZodLiteral<"tool_arguments">;
693
+ arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
694
+ }, z.core.$strict>, z.ZodObject<{
695
+ kind: z.ZodLiteral<"edit">;
696
+ patch: z.ZodString;
697
+ baseFiles: z.ZodArray<z.ZodObject<{
698
+ path: z.ZodString;
699
+ contentHash: z.ZodNullable<z.ZodString>;
700
+ }, z.core.$strict>>;
701
+ }, z.core.$strict>], "kind">>;
702
+ actionHash: z.ZodString;
703
+ environment: z.ZodObject<{
704
+ application: z.ZodString;
705
+ version: z.ZodString;
706
+ state: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
707
+ fingerprint: z.ZodString;
708
+ }, z.core.$strict>;
709
+ contextAssets: z.ZodArray<z.ZodObject<{
710
+ id: z.ZodString;
711
+ contentHash: z.ZodString;
712
+ mediaType: z.ZodEnum<{
713
+ "application/json": "application/json";
714
+ "text/plain": "text/plain";
715
+ "text/x-diff": "text/x-diff";
716
+ "text/x-python": "text/x-python";
717
+ }>;
718
+ sizeBytes: z.ZodNumber;
719
+ purpose: z.ZodEnum<{
720
+ action: "action";
721
+ result: "result";
722
+ state: "state";
723
+ verification: "verification";
724
+ }>;
725
+ }, z.core.$strict>>;
726
+ selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
727
+ kind: z.ZodLiteral<"eligible_attempt">;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"unchanged_control">;
730
+ numerator: z.ZodNumber;
731
+ denominator: z.ZodNumber;
732
+ policyHash: z.ZodString;
733
+ }, z.core.$strict>], "kind">;
734
+ }, z.core.$strict>;
735
+ }, z.core.$strict>, z.ZodObject<{
736
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
737
+ operationId: z.ZodString;
738
+ installationId: z.ZodString;
739
+ episodeId: z.ZodString;
740
+ eventId: z.ZodString;
741
+ sessionId: z.ZodString;
742
+ parentSessionId: z.ZodNullable<z.ZodString>;
743
+ turnId: z.ZodNullable<z.ZodString>;
744
+ callId: z.ZodString;
745
+ occurredAt: z.ZodString;
746
+ sequence: z.ZodNumber;
747
+ adapterVersion: z.ZodString;
748
+ sanitization: z.ZodObject<{
749
+ policyRevision: z.ZodNumber;
750
+ policyHash: z.ZodString;
751
+ redactedFields: z.ZodNumber;
752
+ omittedFields: z.ZodNumber;
753
+ truncated: z.ZodBoolean;
754
+ }, z.core.$strict>;
755
+ contentHash: z.ZodString;
756
+ eventKind: z.ZodLiteral<"observation">;
757
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
758
+ attempt: z.ZodObject<{
759
+ id: z.ZodString;
760
+ contentHash: z.ZodString;
761
+ }, z.core.$strict>;
762
+ actionHash: z.ZodString;
763
+ execution: z.ZodEnum<{
764
+ executed: "executed";
765
+ not_executed: "not_executed";
766
+ unknown: "unknown";
767
+ }>;
768
+ sideEffects: z.ZodEnum<{
769
+ none: "none";
770
+ observed: "observed";
771
+ possible: "possible";
772
+ unknown: "unknown";
773
+ }>;
774
+ resultExcerpt: z.ZodString;
775
+ resultHash: z.ZodNullable<z.ZodString>;
776
+ assets: z.ZodArray<z.ZodObject<{
777
+ id: z.ZodString;
778
+ contentHash: z.ZodString;
779
+ mediaType: z.ZodEnum<{
780
+ "application/json": "application/json";
781
+ "text/plain": "text/plain";
782
+ "text/x-diff": "text/x-diff";
783
+ "text/x-python": "text/x-python";
784
+ }>;
785
+ sizeBytes: z.ZodNumber;
786
+ purpose: z.ZodEnum<{
787
+ action: "action";
788
+ result: "result";
789
+ state: "state";
790
+ verification: "verification";
791
+ }>;
792
+ }, z.core.$strict>>;
793
+ outcome: z.ZodLiteral<"succeeded">;
794
+ exitCode: z.ZodNullable<z.ZodLiteral<0>>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ attempt: z.ZodObject<{
797
+ id: z.ZodString;
798
+ contentHash: z.ZodString;
799
+ }, z.core.$strict>;
800
+ actionHash: z.ZodString;
801
+ execution: z.ZodEnum<{
802
+ executed: "executed";
803
+ not_executed: "not_executed";
804
+ unknown: "unknown";
805
+ }>;
806
+ sideEffects: z.ZodEnum<{
807
+ none: "none";
808
+ observed: "observed";
809
+ possible: "possible";
810
+ unknown: "unknown";
811
+ }>;
812
+ resultExcerpt: z.ZodString;
813
+ resultHash: z.ZodNullable<z.ZodString>;
814
+ assets: z.ZodArray<z.ZodObject<{
815
+ id: z.ZodString;
816
+ contentHash: z.ZodString;
817
+ mediaType: z.ZodEnum<{
818
+ "application/json": "application/json";
819
+ "text/plain": "text/plain";
820
+ "text/x-diff": "text/x-diff";
821
+ "text/x-python": "text/x-python";
822
+ }>;
823
+ sizeBytes: z.ZodNumber;
824
+ purpose: z.ZodEnum<{
825
+ action: "action";
826
+ result: "result";
827
+ state: "state";
828
+ verification: "verification";
829
+ }>;
830
+ }, z.core.$strict>>;
831
+ outcome: z.ZodLiteral<"failed">;
832
+ classification: z.ZodEnum<{
833
+ authorization_denied: "authorization_denied";
834
+ cancelled: "cancelled";
835
+ execution_failure: "execution_failure";
836
+ infrastructure_failure: "infrastructure_failure";
837
+ outcome_failure: "outcome_failure";
838
+ process_failure: "process_failure";
839
+ timeout: "timeout";
840
+ unknown_failure: "unknown_failure";
841
+ validation_failure: "validation_failure";
842
+ }>;
843
+ errorCode: z.ZodString;
844
+ message: z.ZodString;
845
+ exitCode: z.ZodNullable<z.ZodNumber>;
846
+ }, z.core.$strict>, z.ZodObject<{
847
+ attempt: z.ZodObject<{
848
+ id: z.ZodString;
849
+ contentHash: z.ZodString;
850
+ }, z.core.$strict>;
851
+ actionHash: z.ZodString;
852
+ execution: z.ZodEnum<{
853
+ executed: "executed";
854
+ not_executed: "not_executed";
855
+ unknown: "unknown";
856
+ }>;
857
+ sideEffects: z.ZodEnum<{
858
+ none: "none";
859
+ observed: "observed";
860
+ possible: "possible";
861
+ unknown: "unknown";
862
+ }>;
863
+ resultExcerpt: z.ZodString;
864
+ resultHash: z.ZodNullable<z.ZodString>;
865
+ assets: z.ZodArray<z.ZodObject<{
866
+ id: z.ZodString;
867
+ contentHash: z.ZodString;
868
+ mediaType: z.ZodEnum<{
869
+ "application/json": "application/json";
870
+ "text/plain": "text/plain";
871
+ "text/x-diff": "text/x-diff";
872
+ "text/x-python": "text/x-python";
873
+ }>;
874
+ sizeBytes: z.ZodNumber;
875
+ purpose: z.ZodEnum<{
876
+ action: "action";
877
+ result: "result";
878
+ state: "state";
879
+ verification: "verification";
880
+ }>;
881
+ }, z.core.$strict>>;
882
+ outcome: z.ZodLiteral<"incomplete">;
883
+ reason: z.ZodEnum<{
884
+ completion_not_observed: "completion_not_observed";
885
+ coverage_gap: "coverage_gap";
886
+ observer_restarted: "observer_restarted";
887
+ transport_interrupted: "transport_interrupted";
888
+ }>;
889
+ }, z.core.$strict>], "outcome">;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
892
+ operationId: z.ZodString;
893
+ installationId: z.ZodString;
894
+ episodeId: z.ZodString;
895
+ eventId: z.ZodString;
896
+ sessionId: z.ZodString;
897
+ parentSessionId: z.ZodNullable<z.ZodString>;
898
+ turnId: z.ZodNullable<z.ZodString>;
899
+ callId: z.ZodString;
900
+ occurredAt: z.ZodString;
901
+ sequence: z.ZodNumber;
902
+ adapterVersion: z.ZodString;
903
+ sanitization: z.ZodObject<{
904
+ policyRevision: z.ZodNumber;
905
+ policyHash: z.ZodString;
906
+ redactedFields: z.ZodNumber;
907
+ omittedFields: z.ZodNumber;
908
+ truncated: z.ZodBoolean;
909
+ }, z.core.$strict>;
910
+ contentHash: z.ZodString;
911
+ eventKind: z.ZodLiteral<"recovery_link">;
912
+ payload: z.ZodObject<{
913
+ failedAttempt: z.ZodObject<{
914
+ id: z.ZodString;
915
+ contentHash: z.ZodString;
916
+ }, z.core.$strict>;
917
+ failedObservation: z.ZodObject<{
918
+ id: z.ZodString;
919
+ contentHash: z.ZodString;
920
+ }, z.core.$strict>;
921
+ replacementAttempt: z.ZodObject<{
922
+ id: z.ZodString;
923
+ contentHash: z.ZodString;
924
+ }, z.core.$strict>;
925
+ goalId: z.ZodString;
926
+ basis: z.ZodEnum<{
927
+ artifact_lineage: "artifact_lineage";
928
+ explicit_relation: "explicit_relation";
929
+ unverified: "unverified";
930
+ }>;
931
+ attributionEvidence: z.ZodArray<z.ZodObject<{
932
+ id: z.ZodString;
933
+ contentHash: z.ZodString;
934
+ }, z.core.$strict>>;
935
+ }, z.core.$strict>;
936
+ }, z.core.$strict>, z.ZodObject<{
937
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
938
+ operationId: z.ZodString;
939
+ installationId: z.ZodString;
940
+ episodeId: z.ZodString;
941
+ eventId: z.ZodString;
942
+ sessionId: z.ZodString;
943
+ parentSessionId: z.ZodNullable<z.ZodString>;
944
+ turnId: z.ZodNullable<z.ZodString>;
945
+ callId: z.ZodString;
946
+ occurredAt: z.ZodString;
947
+ sequence: z.ZodNumber;
948
+ adapterVersion: z.ZodString;
949
+ sanitization: z.ZodObject<{
950
+ policyRevision: z.ZodNumber;
951
+ policyHash: z.ZodString;
952
+ redactedFields: z.ZodNumber;
953
+ omittedFields: z.ZodNumber;
954
+ truncated: z.ZodBoolean;
955
+ }, z.core.$strict>;
956
+ contentHash: z.ZodString;
957
+ eventKind: z.ZodLiteral<"verification">;
958
+ payload: z.ZodObject<{
959
+ attempt: z.ZodObject<{
960
+ id: z.ZodString;
961
+ contentHash: z.ZodString;
962
+ }, z.core.$strict>;
963
+ actionHash: z.ZodString;
964
+ outcome: z.ZodEnum<{
965
+ failed: "failed";
966
+ passed: "passed";
967
+ unknown: "unknown";
968
+ }>;
969
+ verifierRelease: z.ZodNullable<z.ZodObject<{
970
+ id: z.ZodString;
971
+ contentHash: z.ZodString;
972
+ }, z.core.$strict>>;
973
+ verifierReceipt: z.ZodNullable<z.ZodObject<{
974
+ id: z.ZodString;
975
+ contentHash: z.ZodString;
976
+ }, z.core.$strict>>;
977
+ environmentFingerprint: z.ZodString;
978
+ resetStateHash: z.ZodNullable<z.ZodString>;
979
+ outputArtifacts: z.ZodArray<z.ZodObject<{
980
+ id: z.ZodString;
981
+ contentHash: z.ZodString;
982
+ mediaType: z.ZodEnum<{
983
+ "application/json": "application/json";
984
+ "text/plain": "text/plain";
985
+ "text/x-diff": "text/x-diff";
986
+ "text/x-python": "text/x-python";
987
+ }>;
988
+ sizeBytes: z.ZodNumber;
989
+ purpose: z.ZodEnum<{
990
+ action: "action";
991
+ result: "result";
992
+ state: "state";
993
+ verification: "verification";
994
+ }>;
995
+ }, z.core.$strict>>;
996
+ reason: z.ZodString;
997
+ }, z.core.$strict>;
998
+ }, z.core.$strict>, z.ZodObject<{
999
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeEvent.v1">;
1000
+ operationId: z.ZodString;
1001
+ installationId: z.ZodString;
1002
+ episodeId: z.ZodString;
1003
+ eventId: z.ZodString;
1004
+ sessionId: z.ZodString;
1005
+ parentSessionId: z.ZodNullable<z.ZodString>;
1006
+ turnId: z.ZodNullable<z.ZodString>;
1007
+ callId: z.ZodString;
1008
+ occurredAt: z.ZodString;
1009
+ sequence: z.ZodNumber;
1010
+ adapterVersion: z.ZodString;
1011
+ sanitization: z.ZodObject<{
1012
+ policyRevision: z.ZodNumber;
1013
+ policyHash: z.ZodString;
1014
+ redactedFields: z.ZodNumber;
1015
+ omittedFields: z.ZodNumber;
1016
+ truncated: z.ZodBoolean;
1017
+ }, z.core.$strict>;
1018
+ contentHash: z.ZodString;
1019
+ eventKind: z.ZodLiteral<"lineage">;
1020
+ payload: z.ZodObject<{
1021
+ relation: z.ZodEnum<{
1022
+ fork: "fork";
1023
+ reopen: "reopen";
1024
+ split: "split";
1025
+ }>;
1026
+ parentEpisode: z.ZodObject<{
1027
+ id: z.ZodString;
1028
+ contentHash: z.ZodString;
1029
+ }, z.core.$strict>;
1030
+ parentSessionId: z.ZodString;
1031
+ reason: z.ZodString;
1032
+ }, z.core.$strict>;
1033
+ }, z.core.$strict>], "eventKind">>>;
1034
+ }, z.core.$strict>>;
1035
+ export declare const ToolEpisodeAppendReceiptSchema: z.ZodObject<{
1036
+ schemaVersion: z.ZodLiteral<"openpond.toolEpisodeAppendReceipt.v1">;
1037
+ operationId: z.ZodString;
1038
+ requestHash: z.ZodString;
1039
+ installationId: z.ZodString;
1040
+ teamId: z.ZodString;
1041
+ projectId: z.ZodString;
1042
+ receivedAt: z.ZodString;
1043
+ events: z.ZodArray<z.ZodObject<{
1044
+ eventId: z.ZodString;
1045
+ contentHash: z.ZodString;
1046
+ state: z.ZodEnum<{
1047
+ already_retained: "already_retained";
1048
+ privacy_rejected: "privacy_rejected";
1049
+ retained: "retained";
1050
+ }>;
1051
+ receiptId: z.ZodString;
1052
+ reason: z.ZodNullable<z.ZodString>;
1053
+ }, z.core.$strict>>;
1054
+ learningEnrollment: z.ZodLiteral<false>;
1055
+ }, z.core.$strict>;
1056
+ export type ToolEpisodeAppend = z.infer<typeof ToolEpisodeAppendSchema>;
1057
+ export type ToolEpisodeAppendReceipt = z.infer<typeof ToolEpisodeAppendReceiptSchema>;
1058
+ //# sourceMappingURL=episodes.d.ts.map