@tenphi/akno-protocol 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,776 @@
1
+ import { z } from 'zod';
2
+ export declare const RetainSourceRole: z.ZodEnum<{
3
+ unknown: "unknown";
4
+ user: "user";
5
+ assistant: "assistant";
6
+ external: "external";
7
+ }>;
8
+ export type RetainSourceRole = z.infer<typeof RetainSourceRole>;
9
+ export declare const RetainSourceSpan: z.ZodObject<{
10
+ quote: z.ZodString;
11
+ item_id: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ export type RetainSourceSpan = z.infer<typeof RetainSourceSpan>;
14
+ export declare const RetainEvidenceRef: z.ZodUnion<readonly [z.ZodObject<{
15
+ fact_id: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ page_slug: z.ZodString;
18
+ line_hash: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ document_id: z.ZodString;
21
+ passage_id: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ journal_event_id: z.ZodString;
24
+ }, z.core.$strip>]>;
25
+ export type RetainEvidenceRef = z.infer<typeof RetainEvidenceRef>;
26
+ export declare const RetainedTime: z.ZodObject<{
27
+ start: z.ZodOptional<z.ZodString>;
28
+ until: z.ZodOptional<z.ZodString>;
29
+ precision: z.ZodEnum<{
30
+ unknown: "unknown";
31
+ instant: "instant";
32
+ day: "day";
33
+ month: "month";
34
+ year: "year";
35
+ }>;
36
+ relation: z.ZodEnum<{
37
+ occurred: "occurred";
38
+ valid: "valid";
39
+ scheduled: "scheduled";
40
+ due: "due";
41
+ }>;
42
+ status: z.ZodEnum<{
43
+ planned: "planned";
44
+ scheduled: "scheduled";
45
+ actual: "actual";
46
+ tentative: "tentative";
47
+ }>;
48
+ timezone: z.ZodOptional<z.ZodString>;
49
+ mentioned_at: z.ZodOptional<z.ZodString>;
50
+ recurrence: z.ZodOptional<z.ZodObject<{
51
+ frequency: z.ZodEnum<{
52
+ daily: "daily";
53
+ weekly: "weekly";
54
+ monthly: "monthly";
55
+ yearly: "yearly";
56
+ }>;
57
+ interval: z.ZodOptional<z.ZodNumber>;
58
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodEnum<{
59
+ mo: "mo";
60
+ tu: "tu";
61
+ we: "we";
62
+ th: "th";
63
+ fr: "fr";
64
+ sa: "sa";
65
+ su: "su";
66
+ }>>>;
67
+ until: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ export type RetainedTime = z.infer<typeof RetainedTime>;
71
+ export declare const RetainedRelation: z.ZodObject<{
72
+ type: z.ZodEnum<{
73
+ corrects: "corrects";
74
+ supersedes: "supersedes";
75
+ contradicts: "contradicts";
76
+ fulfills: "fulfills";
77
+ answers: "answers";
78
+ caused_by: "caused_by";
79
+ }>;
80
+ target: z.ZodUnion<readonly [z.ZodObject<{
81
+ candidate_id: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ memory_id: z.ZodString;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ fact_id: z.ZodString;
86
+ }, z.core.$strip>]>;
87
+ support: z.ZodArray<z.ZodObject<{
88
+ quote: z.ZodString;
89
+ item_id: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>;
92
+ export type RetainedRelation = z.infer<typeof RetainedRelation>;
93
+ export declare const ProvidedRetainCandidate: z.ZodObject<{
94
+ candidate_id: z.ZodString;
95
+ kind: z.ZodEnum<{
96
+ question: "question";
97
+ claim: "claim";
98
+ event: "event";
99
+ plan: "plan";
100
+ decision: "decision";
101
+ preference: "preference";
102
+ }>;
103
+ text: z.ZodString;
104
+ subject: z.ZodString;
105
+ subject_ref: z.ZodOptional<z.ZodObject<{
106
+ entity_id: z.ZodString;
107
+ }, z.core.$strip>>;
108
+ attribution: z.ZodObject<{
109
+ source_role: z.ZodEnum<{
110
+ unknown: "unknown";
111
+ user: "user";
112
+ assistant: "assistant";
113
+ external: "external";
114
+ }>;
115
+ source_speaker: z.ZodOptional<z.ZodString>;
116
+ chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
+ speaker: z.ZodString;
118
+ role: z.ZodOptional<z.ZodEnum<{
119
+ unknown: "unknown";
120
+ user: "user";
121
+ assistant: "assistant";
122
+ external: "external";
123
+ }>>;
124
+ }, z.core.$strip>>>;
125
+ }, z.core.$strip>;
126
+ discourse: z.ZodObject<{
127
+ commitment: z.ZodEnum<{
128
+ none: "none";
129
+ tentative: "tentative";
130
+ asserted: "asserted";
131
+ hypothetical: "hypothetical";
132
+ counterfactual: "counterfactual";
133
+ }>;
134
+ disposition: z.ZodEnum<{
135
+ superseded: "superseded";
136
+ rejected: "rejected";
137
+ completed: "completed";
138
+ proposed: "proposed";
139
+ active: "active";
140
+ accepted: "accepted";
141
+ resolved: "resolved";
142
+ cancelled: "cancelled";
143
+ }>;
144
+ }, z.core.$strip>;
145
+ epistemic: z.ZodObject<{
146
+ basis: z.ZodEnum<{
147
+ self_attested: "self_attested";
148
+ source_report: "source_report";
149
+ cited_evidence: "cited_evidence";
150
+ }>;
151
+ evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
152
+ fact_id: z.ZodString;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ page_slug: z.ZodString;
155
+ line_hash: z.ZodString;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ document_id: z.ZodString;
158
+ passage_id: z.ZodString;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ journal_event_id: z.ZodString;
161
+ }, z.core.$strip>]>>>;
162
+ }, z.core.$strip>;
163
+ polarity: z.ZodOptional<z.ZodEnum<{
164
+ affirmed: "affirmed";
165
+ negated: "negated";
166
+ }>>;
167
+ support: z.ZodArray<z.ZodObject<{
168
+ quote: z.ZodString;
169
+ item_id: z.ZodOptional<z.ZodString>;
170
+ }, z.core.$strip>>;
171
+ discourse_frame: z.ZodArray<z.ZodObject<{
172
+ quote: z.ZodString;
173
+ item_id: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strip>>;
175
+ relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ type: z.ZodEnum<{
177
+ corrects: "corrects";
178
+ supersedes: "supersedes";
179
+ contradicts: "contradicts";
180
+ fulfills: "fulfills";
181
+ answers: "answers";
182
+ caused_by: "caused_by";
183
+ }>;
184
+ target: z.ZodUnion<readonly [z.ZodObject<{
185
+ candidate_id: z.ZodString;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ memory_id: z.ZodString;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ fact_id: z.ZodString;
190
+ }, z.core.$strip>]>;
191
+ support: z.ZodArray<z.ZodObject<{
192
+ quote: z.ZodString;
193
+ item_id: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>>;
195
+ }, z.core.$strip>>>;
196
+ time: z.ZodOptional<z.ZodObject<{
197
+ start: z.ZodOptional<z.ZodString>;
198
+ until: z.ZodOptional<z.ZodString>;
199
+ precision: z.ZodEnum<{
200
+ unknown: "unknown";
201
+ instant: "instant";
202
+ day: "day";
203
+ month: "month";
204
+ year: "year";
205
+ }>;
206
+ relation: z.ZodEnum<{
207
+ occurred: "occurred";
208
+ valid: "valid";
209
+ scheduled: "scheduled";
210
+ due: "due";
211
+ }>;
212
+ status: z.ZodEnum<{
213
+ planned: "planned";
214
+ scheduled: "scheduled";
215
+ actual: "actual";
216
+ tentative: "tentative";
217
+ }>;
218
+ timezone: z.ZodOptional<z.ZodString>;
219
+ mentioned_at: z.ZodOptional<z.ZodString>;
220
+ recurrence: z.ZodOptional<z.ZodObject<{
221
+ frequency: z.ZodEnum<{
222
+ daily: "daily";
223
+ weekly: "weekly";
224
+ monthly: "monthly";
225
+ yearly: "yearly";
226
+ }>;
227
+ interval: z.ZodOptional<z.ZodNumber>;
228
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodEnum<{
229
+ mo: "mo";
230
+ tu: "tu";
231
+ we: "we";
232
+ th: "th";
233
+ fr: "fr";
234
+ sa: "sa";
235
+ su: "su";
236
+ }>>>;
237
+ until: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strip>>;
239
+ }, z.core.$strip>>;
240
+ destination: z.ZodObject<{
241
+ slug: z.ZodString;
242
+ section: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>;
244
+ }, z.core.$strip>;
245
+ export type ProvidedRetainCandidate = z.infer<typeof ProvidedRetainCandidate>;
246
+ export declare const RetainSourceItem: z.ZodObject<{
247
+ item_id: z.ZodString;
248
+ text: z.ZodString;
249
+ role: z.ZodOptional<z.ZodEnum<{
250
+ user: "user";
251
+ assistant: "assistant";
252
+ external: "external";
253
+ system: "system";
254
+ }>>;
255
+ speaker: z.ZodOptional<z.ZodString>;
256
+ mentioned_at: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>;
258
+ export type RetainSourceItem = z.infer<typeof RetainSourceItem>;
259
+ export declare const RetainUpsertSource: z.ZodObject<{
260
+ source_group: z.ZodOptional<z.ZodString>;
261
+ source_kind: z.ZodOptional<z.ZodEnum<{
262
+ document: "document";
263
+ other: "other";
264
+ note: "note";
265
+ conversation: "conversation";
266
+ email: "email";
267
+ article: "article";
268
+ }>>;
269
+ mentioned_at: z.ZodOptional<z.ZodString>;
270
+ timezone: z.ZodOptional<z.ZodString>;
271
+ locator: z.ZodOptional<z.ZodString>;
272
+ input: z.ZodUnion<readonly [z.ZodObject<{
273
+ text: z.ZodString;
274
+ }, z.core.$strip>, z.ZodObject<{
275
+ items: z.ZodArray<z.ZodObject<{
276
+ item_id: z.ZodString;
277
+ text: z.ZodString;
278
+ role: z.ZodOptional<z.ZodEnum<{
279
+ user: "user";
280
+ assistant: "assistant";
281
+ external: "external";
282
+ system: "system";
283
+ }>>;
284
+ speaker: z.ZodOptional<z.ZodString>;
285
+ mentioned_at: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>]>;
288
+ retention: z.ZodObject<{
289
+ mode: z.ZodLiteral<"provided">;
290
+ placement: z.ZodLiteral<"exact">;
291
+ candidates: z.ZodArray<z.ZodObject<{
292
+ candidate_id: z.ZodString;
293
+ kind: z.ZodEnum<{
294
+ question: "question";
295
+ claim: "claim";
296
+ event: "event";
297
+ plan: "plan";
298
+ decision: "decision";
299
+ preference: "preference";
300
+ }>;
301
+ text: z.ZodString;
302
+ subject: z.ZodString;
303
+ subject_ref: z.ZodOptional<z.ZodObject<{
304
+ entity_id: z.ZodString;
305
+ }, z.core.$strip>>;
306
+ attribution: z.ZodObject<{
307
+ source_role: z.ZodEnum<{
308
+ unknown: "unknown";
309
+ user: "user";
310
+ assistant: "assistant";
311
+ external: "external";
312
+ }>;
313
+ source_speaker: z.ZodOptional<z.ZodString>;
314
+ chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ speaker: z.ZodString;
316
+ role: z.ZodOptional<z.ZodEnum<{
317
+ unknown: "unknown";
318
+ user: "user";
319
+ assistant: "assistant";
320
+ external: "external";
321
+ }>>;
322
+ }, z.core.$strip>>>;
323
+ }, z.core.$strip>;
324
+ discourse: z.ZodObject<{
325
+ commitment: z.ZodEnum<{
326
+ none: "none";
327
+ tentative: "tentative";
328
+ asserted: "asserted";
329
+ hypothetical: "hypothetical";
330
+ counterfactual: "counterfactual";
331
+ }>;
332
+ disposition: z.ZodEnum<{
333
+ superseded: "superseded";
334
+ rejected: "rejected";
335
+ completed: "completed";
336
+ proposed: "proposed";
337
+ active: "active";
338
+ accepted: "accepted";
339
+ resolved: "resolved";
340
+ cancelled: "cancelled";
341
+ }>;
342
+ }, z.core.$strip>;
343
+ epistemic: z.ZodObject<{
344
+ basis: z.ZodEnum<{
345
+ self_attested: "self_attested";
346
+ source_report: "source_report";
347
+ cited_evidence: "cited_evidence";
348
+ }>;
349
+ evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
350
+ fact_id: z.ZodString;
351
+ }, z.core.$strip>, z.ZodObject<{
352
+ page_slug: z.ZodString;
353
+ line_hash: z.ZodString;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ document_id: z.ZodString;
356
+ passage_id: z.ZodString;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ journal_event_id: z.ZodString;
359
+ }, z.core.$strip>]>>>;
360
+ }, z.core.$strip>;
361
+ polarity: z.ZodOptional<z.ZodEnum<{
362
+ affirmed: "affirmed";
363
+ negated: "negated";
364
+ }>>;
365
+ support: z.ZodArray<z.ZodObject<{
366
+ quote: z.ZodString;
367
+ item_id: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strip>>;
369
+ discourse_frame: z.ZodArray<z.ZodObject<{
370
+ quote: z.ZodString;
371
+ item_id: z.ZodOptional<z.ZodString>;
372
+ }, z.core.$strip>>;
373
+ relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
+ type: z.ZodEnum<{
375
+ corrects: "corrects";
376
+ supersedes: "supersedes";
377
+ contradicts: "contradicts";
378
+ fulfills: "fulfills";
379
+ answers: "answers";
380
+ caused_by: "caused_by";
381
+ }>;
382
+ target: z.ZodUnion<readonly [z.ZodObject<{
383
+ candidate_id: z.ZodString;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ memory_id: z.ZodString;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ fact_id: z.ZodString;
388
+ }, z.core.$strip>]>;
389
+ support: z.ZodArray<z.ZodObject<{
390
+ quote: z.ZodString;
391
+ item_id: z.ZodOptional<z.ZodString>;
392
+ }, z.core.$strip>>;
393
+ }, z.core.$strip>>>;
394
+ time: z.ZodOptional<z.ZodObject<{
395
+ start: z.ZodOptional<z.ZodString>;
396
+ until: z.ZodOptional<z.ZodString>;
397
+ precision: z.ZodEnum<{
398
+ unknown: "unknown";
399
+ instant: "instant";
400
+ day: "day";
401
+ month: "month";
402
+ year: "year";
403
+ }>;
404
+ relation: z.ZodEnum<{
405
+ occurred: "occurred";
406
+ valid: "valid";
407
+ scheduled: "scheduled";
408
+ due: "due";
409
+ }>;
410
+ status: z.ZodEnum<{
411
+ planned: "planned";
412
+ scheduled: "scheduled";
413
+ actual: "actual";
414
+ tentative: "tentative";
415
+ }>;
416
+ timezone: z.ZodOptional<z.ZodString>;
417
+ mentioned_at: z.ZodOptional<z.ZodString>;
418
+ recurrence: z.ZodOptional<z.ZodObject<{
419
+ frequency: z.ZodEnum<{
420
+ daily: "daily";
421
+ weekly: "weekly";
422
+ monthly: "monthly";
423
+ yearly: "yearly";
424
+ }>;
425
+ interval: z.ZodOptional<z.ZodNumber>;
426
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodEnum<{
427
+ mo: "mo";
428
+ tu: "tu";
429
+ we: "we";
430
+ th: "th";
431
+ fr: "fr";
432
+ sa: "sa";
433
+ su: "su";
434
+ }>>>;
435
+ until: z.ZodOptional<z.ZodString>;
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>>;
438
+ destination: z.ZodObject<{
439
+ slug: z.ZodString;
440
+ section: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strip>;
442
+ }, z.core.$strip>>;
443
+ }, z.core.$strip>;
444
+ source_id: z.ZodString;
445
+ revision: z.ZodString;
446
+ }, z.core.$strip>;
447
+ export type RetainUpsertSource = z.infer<typeof RetainUpsertSource>;
448
+ export declare const RetainRetraction: z.ZodObject<{
449
+ retention: z.ZodObject<{
450
+ mode: z.ZodLiteral<"retract">;
451
+ target_revision: z.ZodString;
452
+ candidate_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
453
+ reason: z.ZodEnum<{
454
+ source_corrected: "source_corrected";
455
+ source_deleted: "source_deleted";
456
+ user_request: "user_request";
457
+ }>;
458
+ }, z.core.$strip>;
459
+ source_id: z.ZodString;
460
+ revision: z.ZodString;
461
+ }, z.core.$strip>;
462
+ export type RetainRetraction = z.infer<typeof RetainRetraction>;
463
+ export declare const RetainInput: z.ZodObject<{
464
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
465
+ source_group: z.ZodOptional<z.ZodString>;
466
+ source_kind: z.ZodOptional<z.ZodEnum<{
467
+ document: "document";
468
+ other: "other";
469
+ note: "note";
470
+ conversation: "conversation";
471
+ email: "email";
472
+ article: "article";
473
+ }>>;
474
+ mentioned_at: z.ZodOptional<z.ZodString>;
475
+ timezone: z.ZodOptional<z.ZodString>;
476
+ locator: z.ZodOptional<z.ZodString>;
477
+ input: z.ZodUnion<readonly [z.ZodObject<{
478
+ text: z.ZodString;
479
+ }, z.core.$strip>, z.ZodObject<{
480
+ items: z.ZodArray<z.ZodObject<{
481
+ item_id: z.ZodString;
482
+ text: z.ZodString;
483
+ role: z.ZodOptional<z.ZodEnum<{
484
+ user: "user";
485
+ assistant: "assistant";
486
+ external: "external";
487
+ system: "system";
488
+ }>>;
489
+ speaker: z.ZodOptional<z.ZodString>;
490
+ mentioned_at: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strip>>;
492
+ }, z.core.$strip>]>;
493
+ retention: z.ZodObject<{
494
+ mode: z.ZodLiteral<"provided">;
495
+ placement: z.ZodLiteral<"exact">;
496
+ candidates: z.ZodArray<z.ZodObject<{
497
+ candidate_id: z.ZodString;
498
+ kind: z.ZodEnum<{
499
+ question: "question";
500
+ claim: "claim";
501
+ event: "event";
502
+ plan: "plan";
503
+ decision: "decision";
504
+ preference: "preference";
505
+ }>;
506
+ text: z.ZodString;
507
+ subject: z.ZodString;
508
+ subject_ref: z.ZodOptional<z.ZodObject<{
509
+ entity_id: z.ZodString;
510
+ }, z.core.$strip>>;
511
+ attribution: z.ZodObject<{
512
+ source_role: z.ZodEnum<{
513
+ unknown: "unknown";
514
+ user: "user";
515
+ assistant: "assistant";
516
+ external: "external";
517
+ }>;
518
+ source_speaker: z.ZodOptional<z.ZodString>;
519
+ chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
520
+ speaker: z.ZodString;
521
+ role: z.ZodOptional<z.ZodEnum<{
522
+ unknown: "unknown";
523
+ user: "user";
524
+ assistant: "assistant";
525
+ external: "external";
526
+ }>>;
527
+ }, z.core.$strip>>>;
528
+ }, z.core.$strip>;
529
+ discourse: z.ZodObject<{
530
+ commitment: z.ZodEnum<{
531
+ none: "none";
532
+ tentative: "tentative";
533
+ asserted: "asserted";
534
+ hypothetical: "hypothetical";
535
+ counterfactual: "counterfactual";
536
+ }>;
537
+ disposition: z.ZodEnum<{
538
+ superseded: "superseded";
539
+ rejected: "rejected";
540
+ completed: "completed";
541
+ proposed: "proposed";
542
+ active: "active";
543
+ accepted: "accepted";
544
+ resolved: "resolved";
545
+ cancelled: "cancelled";
546
+ }>;
547
+ }, z.core.$strip>;
548
+ epistemic: z.ZodObject<{
549
+ basis: z.ZodEnum<{
550
+ self_attested: "self_attested";
551
+ source_report: "source_report";
552
+ cited_evidence: "cited_evidence";
553
+ }>;
554
+ evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
555
+ fact_id: z.ZodString;
556
+ }, z.core.$strip>, z.ZodObject<{
557
+ page_slug: z.ZodString;
558
+ line_hash: z.ZodString;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ document_id: z.ZodString;
561
+ passage_id: z.ZodString;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ journal_event_id: z.ZodString;
564
+ }, z.core.$strip>]>>>;
565
+ }, z.core.$strip>;
566
+ polarity: z.ZodOptional<z.ZodEnum<{
567
+ affirmed: "affirmed";
568
+ negated: "negated";
569
+ }>>;
570
+ support: z.ZodArray<z.ZodObject<{
571
+ quote: z.ZodString;
572
+ item_id: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>>;
574
+ discourse_frame: z.ZodArray<z.ZodObject<{
575
+ quote: z.ZodString;
576
+ item_id: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strip>>;
578
+ relations: z.ZodOptional<z.ZodArray<z.ZodObject<{
579
+ type: z.ZodEnum<{
580
+ corrects: "corrects";
581
+ supersedes: "supersedes";
582
+ contradicts: "contradicts";
583
+ fulfills: "fulfills";
584
+ answers: "answers";
585
+ caused_by: "caused_by";
586
+ }>;
587
+ target: z.ZodUnion<readonly [z.ZodObject<{
588
+ candidate_id: z.ZodString;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ memory_id: z.ZodString;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ fact_id: z.ZodString;
593
+ }, z.core.$strip>]>;
594
+ support: z.ZodArray<z.ZodObject<{
595
+ quote: z.ZodString;
596
+ item_id: z.ZodOptional<z.ZodString>;
597
+ }, z.core.$strip>>;
598
+ }, z.core.$strip>>>;
599
+ time: z.ZodOptional<z.ZodObject<{
600
+ start: z.ZodOptional<z.ZodString>;
601
+ until: z.ZodOptional<z.ZodString>;
602
+ precision: z.ZodEnum<{
603
+ unknown: "unknown";
604
+ instant: "instant";
605
+ day: "day";
606
+ month: "month";
607
+ year: "year";
608
+ }>;
609
+ relation: z.ZodEnum<{
610
+ occurred: "occurred";
611
+ valid: "valid";
612
+ scheduled: "scheduled";
613
+ due: "due";
614
+ }>;
615
+ status: z.ZodEnum<{
616
+ planned: "planned";
617
+ scheduled: "scheduled";
618
+ actual: "actual";
619
+ tentative: "tentative";
620
+ }>;
621
+ timezone: z.ZodOptional<z.ZodString>;
622
+ mentioned_at: z.ZodOptional<z.ZodString>;
623
+ recurrence: z.ZodOptional<z.ZodObject<{
624
+ frequency: z.ZodEnum<{
625
+ daily: "daily";
626
+ weekly: "weekly";
627
+ monthly: "monthly";
628
+ yearly: "yearly";
629
+ }>;
630
+ interval: z.ZodOptional<z.ZodNumber>;
631
+ weekdays: z.ZodOptional<z.ZodArray<z.ZodEnum<{
632
+ mo: "mo";
633
+ tu: "tu";
634
+ we: "we";
635
+ th: "th";
636
+ fr: "fr";
637
+ sa: "sa";
638
+ su: "su";
639
+ }>>>;
640
+ until: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>>;
642
+ }, z.core.$strip>>;
643
+ destination: z.ZodObject<{
644
+ slug: z.ZodString;
645
+ section: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>;
647
+ }, z.core.$strip>>;
648
+ }, z.core.$strip>;
649
+ source_id: z.ZodString;
650
+ revision: z.ZodString;
651
+ }, z.core.$strip>, z.ZodObject<{
652
+ retention: z.ZodObject<{
653
+ mode: z.ZodLiteral<"retract">;
654
+ target_revision: z.ZodString;
655
+ candidate_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
656
+ reason: z.ZodEnum<{
657
+ source_corrected: "source_corrected";
658
+ source_deleted: "source_deleted";
659
+ user_request: "user_request";
660
+ }>;
661
+ }, z.core.$strip>;
662
+ source_id: z.ZodString;
663
+ revision: z.ZodString;
664
+ }, z.core.$strip>]>>;
665
+ dry_run: z.ZodOptional<z.ZodBoolean>;
666
+ }, z.core.$strip>;
667
+ export type RetainInput = z.infer<typeof RetainInput>;
668
+ export declare const RetainCandidateResult: z.ZodObject<{
669
+ candidate_id: z.ZodString;
670
+ outcome: z.ZodEnum<{
671
+ not_found: "not_found";
672
+ written: "written";
673
+ duplicate: "duplicate";
674
+ support_added: "support_added";
675
+ retracted: "retracted";
676
+ held: "held";
677
+ }>;
678
+ memory_id: z.ZodOptional<z.ZodString>;
679
+ slug: z.ZodOptional<z.ZodString>;
680
+ reason: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>;
682
+ export type RetainCandidateResult = z.infer<typeof RetainCandidateResult>;
683
+ export declare const RetainSourceResult: z.ZodObject<{
684
+ source_id: z.ZodString;
685
+ revision: z.ZodString;
686
+ outcome: z.ZodEnum<{
687
+ ok: "ok";
688
+ noop: "noop";
689
+ held: "held";
690
+ replayed: "replayed";
691
+ revision_conflict: "revision_conflict";
692
+ }>;
693
+ change_id: z.ZodOptional<z.ZodString>;
694
+ candidates: z.ZodArray<z.ZodObject<{
695
+ candidate_id: z.ZodString;
696
+ outcome: z.ZodEnum<{
697
+ not_found: "not_found";
698
+ written: "written";
699
+ duplicate: "duplicate";
700
+ support_added: "support_added";
701
+ retracted: "retracted";
702
+ held: "held";
703
+ }>;
704
+ memory_id: z.ZodOptional<z.ZodString>;
705
+ slug: z.ZodOptional<z.ZodString>;
706
+ reason: z.ZodOptional<z.ZodString>;
707
+ }, z.core.$strip>>;
708
+ note: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strip>;
710
+ export type RetainSourceResult = z.infer<typeof RetainSourceResult>;
711
+ export declare const RetainOutput: z.ZodObject<{
712
+ status: z.ZodEnum<{
713
+ ok: "ok";
714
+ empty: "empty";
715
+ degraded: "degraded";
716
+ unavailable: "unavailable";
717
+ }>;
718
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
719
+ no_embedding_model: "no_embedding_model";
720
+ no_reranker: "no_reranker";
721
+ no_derive_model: "no_derive_model";
722
+ no_expansion_model: "no_expansion_model";
723
+ embedding_failed: "embedding_failed";
724
+ rerank_failed: "rerank_failed";
725
+ derive_failed: "derive_failed";
726
+ expansion_failed: "expansion_failed";
727
+ no_vector_index: "no_vector_index";
728
+ partial_index: "partial_index";
729
+ no_document_text: "no_document_text";
730
+ document_source_missing: "document_source_missing";
731
+ no_graph_index: "no_graph_index";
732
+ no_entity_index: "no_entity_index";
733
+ entity_resolution_failed: "entity_resolution_failed";
734
+ partial_graph_index: "partial_graph_index";
735
+ graph_traversal_limited: "graph_traversal_limited";
736
+ no_answer_model: "no_answer_model";
737
+ answer_failed: "answer_failed";
738
+ answer_verification_failed: "answer_verification_failed";
739
+ answer_truncated: "answer_truncated";
740
+ }>>>;
741
+ note: z.ZodOptional<z.ZodString>;
742
+ outcome: z.ZodEnum<{
743
+ ok: "ok";
744
+ partial: "partial";
745
+ noop: "noop";
746
+ }>;
747
+ sources: z.ZodArray<z.ZodObject<{
748
+ source_id: z.ZodString;
749
+ revision: z.ZodString;
750
+ outcome: z.ZodEnum<{
751
+ ok: "ok";
752
+ noop: "noop";
753
+ held: "held";
754
+ replayed: "replayed";
755
+ revision_conflict: "revision_conflict";
756
+ }>;
757
+ change_id: z.ZodOptional<z.ZodString>;
758
+ candidates: z.ZodArray<z.ZodObject<{
759
+ candidate_id: z.ZodString;
760
+ outcome: z.ZodEnum<{
761
+ not_found: "not_found";
762
+ written: "written";
763
+ duplicate: "duplicate";
764
+ support_added: "support_added";
765
+ retracted: "retracted";
766
+ held: "held";
767
+ }>;
768
+ memory_id: z.ZodOptional<z.ZodString>;
769
+ slug: z.ZodOptional<z.ZodString>;
770
+ reason: z.ZodOptional<z.ZodString>;
771
+ }, z.core.$strip>>;
772
+ note: z.ZodOptional<z.ZodString>;
773
+ }, z.core.$strip>>;
774
+ }, z.core.$strip>;
775
+ export type RetainOutput = z.infer<typeof RetainOutput>;
776
+ //# sourceMappingURL=retain.d.ts.map