@heynixie/contract 0.0.0 → 0.54.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,1486 @@
1
+ import { z } from 'zod';
2
+ export declare const memoryViewContract: {
3
+ export: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ clientActionID: z.ZodUUID;
5
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
6
+ chunk: string;
7
+ } | {
8
+ isComplete: true;
9
+ }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
10
+ chunk: string;
11
+ } | {
12
+ isComplete: true;
13
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
14
+ UNAUTHORIZED: {
15
+ message: string;
16
+ status: number;
17
+ };
18
+ }>, {
19
+ CLIENT_ACTION_ID_REUSED: {
20
+ message: string;
21
+ status: number;
22
+ };
23
+ }>, {
24
+ MEMORY_NOT_STARTED: {
25
+ message: string;
26
+ status: number;
27
+ };
28
+ }>, Record<never, never>>;
29
+ keepMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30
+ clientActionID: z.ZodUUID;
31
+ firstSequence: z.ZodInt;
32
+ lastSequence: z.ZodInt;
33
+ thread: z.ZodString;
34
+ title: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ momentID: z.ZodString;
37
+ shortID: z.ZodString;
38
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
39
+ UNAUTHORIZED: {
40
+ message: string;
41
+ status: number;
42
+ };
43
+ }>, {
44
+ CLIENT_ACTION_ID_REUSED: {
45
+ message: string;
46
+ status: number;
47
+ };
48
+ }>, {
49
+ MEMORY_NOT_STARTED: {
50
+ message: string;
51
+ status: number;
52
+ };
53
+ BAD_SPAN: {
54
+ message: string;
55
+ status: number;
56
+ };
57
+ }>, Record<never, never>>;
58
+ listMoments: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
59
+ before: z.ZodOptional<z.ZodInt>;
60
+ includeRetired: z.ZodBoolean;
61
+ query: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ moments: z.ZodArray<z.ZodObject<{
64
+ editedAt: z.ZodNullable<z.ZodDate>;
65
+ keptAt: z.ZodDate;
66
+ keptBy: z.ZodEnum<{
67
+ model: "model";
68
+ owner: "owner";
69
+ }>;
70
+ momentID: z.ZodString;
71
+ shortID: z.ZodString;
72
+ state: z.ZodEnum<{
73
+ active: "active";
74
+ retired: "retired";
75
+ }>;
76
+ title: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>;
78
+ next: z.ZodNullable<z.ZodInt>;
79
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
80
+ UNAUTHORIZED: {
81
+ message: string;
82
+ status: number;
83
+ };
84
+ }>, {
85
+ MEMORY_NOT_STARTED: {
86
+ message: string;
87
+ status: number;
88
+ };
89
+ }>, Record<never, never>>;
90
+ readMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
91
+ momentID: z.ZodString;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ editedAt: z.ZodNullable<z.ZodDate>;
94
+ keptAt: z.ZodDate;
95
+ keptBy: z.ZodEnum<{
96
+ model: "model";
97
+ owner: "owner";
98
+ }>;
99
+ momentID: z.ZodString;
100
+ shortID: z.ZodString;
101
+ state: z.ZodEnum<{
102
+ active: "active";
103
+ retired: "retired";
104
+ }>;
105
+ title: z.ZodNullable<z.ZodString>;
106
+ firstSequence: z.ZodInt;
107
+ lastSequence: z.ZodInt;
108
+ links: z.ZodArray<z.ZodObject<{
109
+ itemID: z.ZodString;
110
+ shortID: z.ZodString;
111
+ text: z.ZodNullable<z.ZodString>;
112
+ }, z.core.$strip>>;
113
+ note: z.ZodNullable<z.ZodObject<{
114
+ text: z.ZodString;
115
+ writtenAt: z.ZodDate;
116
+ }, z.core.$strip>>;
117
+ reflections: z.ZodArray<z.ZodObject<{
118
+ model: z.ZodString;
119
+ text: z.ZodNullable<z.ZodString>;
120
+ writtenAt: z.ZodDate;
121
+ reflectionID: z.ZodString;
122
+ }, z.core.$strip>>;
123
+ thread: z.ZodString;
124
+ titleBy: z.ZodEnum<{
125
+ model: "model";
126
+ owner: "owner";
127
+ }>;
128
+ version: z.ZodInt;
129
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
130
+ UNAUTHORIZED: {
131
+ message: string;
132
+ status: number;
133
+ };
134
+ }>, {
135
+ MEMORY_NOT_STARTED: {
136
+ message: string;
137
+ status: number;
138
+ };
139
+ MOMENT_NOT_FOUND: {
140
+ message: string;
141
+ status: number;
142
+ };
143
+ STALE_VERSION: {
144
+ message: string;
145
+ status: number;
146
+ };
147
+ }>, Record<never, never>>;
148
+ readMomentSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
149
+ momentID: z.ZodString;
150
+ after: z.ZodOptional<z.ZodInt>;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ records: z.ZodArray<z.ZodObject<{
153
+ isGap: z.ZodBoolean;
154
+ kind: z.ZodString;
155
+ recordedAt: z.ZodDate;
156
+ sequence: z.ZodInt;
157
+ text: z.ZodNullable<z.ZodString>;
158
+ tool: z.ZodNullable<z.ZodString>;
159
+ }, z.core.$strip>>;
160
+ next: z.ZodNullable<z.ZodInt>;
161
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
162
+ UNAUTHORIZED: {
163
+ message: string;
164
+ status: number;
165
+ };
166
+ }>, {
167
+ MEMORY_NOT_STARTED: {
168
+ message: string;
169
+ status: number;
170
+ };
171
+ MOMENT_NOT_FOUND: {
172
+ message: string;
173
+ status: number;
174
+ };
175
+ STALE_VERSION: {
176
+ message: string;
177
+ status: number;
178
+ };
179
+ }>, Record<never, never>>;
180
+ editMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
181
+ momentID: z.ZodString;
182
+ version: z.ZodInt;
183
+ clientActionID: z.ZodUUID;
184
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
185
+ kind: z.ZodLiteral<"title">;
186
+ title: z.ZodString;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ kind: z.ZodLiteral<"edges">;
189
+ firstSequence: z.ZodInt;
190
+ lastSequence: z.ZodInt;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ kind: z.ZodLiteral<"note">;
193
+ note: z.ZodString;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"reflection_removed">;
196
+ reflectionID: z.ZodString;
197
+ }, z.core.$strip>], "kind">;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ momentID: z.ZodString;
200
+ version: z.ZodInt;
201
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
202
+ UNAUTHORIZED: {
203
+ message: string;
204
+ status: number;
205
+ };
206
+ }>, {
207
+ MEMORY_NOT_STARTED: {
208
+ message: string;
209
+ status: number;
210
+ };
211
+ MOMENT_NOT_FOUND: {
212
+ message: string;
213
+ status: number;
214
+ };
215
+ STALE_VERSION: {
216
+ message: string;
217
+ status: number;
218
+ };
219
+ }>, {
220
+ CLIENT_ACTION_ID_REUSED: {
221
+ message: string;
222
+ status: number;
223
+ };
224
+ }>, {
225
+ BAD_SPAN: {
226
+ message: string;
227
+ status: number;
228
+ };
229
+ REFLECTION_NOT_FOUND: {
230
+ message: string;
231
+ status: number;
232
+ };
233
+ }>, Record<never, never>>;
234
+ linkMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
235
+ momentID: z.ZodString;
236
+ version: z.ZodInt;
237
+ clientActionID: z.ZodUUID;
238
+ isLinked: z.ZodBoolean;
239
+ itemID: z.ZodString;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ momentID: z.ZodString;
242
+ version: z.ZodInt;
243
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
244
+ UNAUTHORIZED: {
245
+ message: string;
246
+ status: number;
247
+ };
248
+ }>, {
249
+ MEMORY_NOT_STARTED: {
250
+ message: string;
251
+ status: number;
252
+ };
253
+ MOMENT_NOT_FOUND: {
254
+ message: string;
255
+ status: number;
256
+ };
257
+ STALE_VERSION: {
258
+ message: string;
259
+ status: number;
260
+ };
261
+ }>, {
262
+ CLIENT_ACTION_ID_REUSED: {
263
+ message: string;
264
+ status: number;
265
+ };
266
+ }>, {
267
+ MEMORY_ITEM_NOT_FOUND: {
268
+ message: string;
269
+ status: number;
270
+ };
271
+ ALREADY_LINKED: {
272
+ message: string;
273
+ status: number;
274
+ };
275
+ NOT_LINKED: {
276
+ message: string;
277
+ status: number;
278
+ };
279
+ }>, Record<never, never>>;
280
+ previewMomentDestroy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
281
+ momentID: z.ZodString;
282
+ version: z.ZodInt;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ keptAt: z.ZodDate;
285
+ keptBy: z.ZodEnum<{
286
+ model: "model";
287
+ owner: "owner";
288
+ }>;
289
+ kept: z.ZodObject<{
290
+ records: z.ZodInt;
291
+ }, z.core.$strip>;
292
+ lost: z.ZodObject<{
293
+ links: z.ZodInt;
294
+ texts: z.ZodInt;
295
+ }, z.core.$strip>;
296
+ momentID: z.ZodString;
297
+ note: z.ZodNullable<z.ZodString>;
298
+ reflections: z.ZodArray<z.ZodObject<{
299
+ model: z.ZodString;
300
+ text: z.ZodNullable<z.ZodString>;
301
+ writtenAt: z.ZodDate;
302
+ }, z.core.$strip>>;
303
+ shortID: z.ZodString;
304
+ state: z.ZodEnum<{
305
+ active: "active";
306
+ retired: "retired";
307
+ }>;
308
+ thread: z.ZodString;
309
+ title: z.ZodNullable<z.ZodString>;
310
+ version: z.ZodInt;
311
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
312
+ UNAUTHORIZED: {
313
+ message: string;
314
+ status: number;
315
+ };
316
+ }>, {
317
+ MEMORY_NOT_STARTED: {
318
+ message: string;
319
+ status: number;
320
+ };
321
+ MOMENT_NOT_FOUND: {
322
+ message: string;
323
+ status: number;
324
+ };
325
+ STALE_VERSION: {
326
+ message: string;
327
+ status: number;
328
+ };
329
+ }>, Record<never, never>>;
330
+ destroyMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
331
+ momentID: z.ZodString;
332
+ version: z.ZodInt;
333
+ clientActionID: z.ZodUUID;
334
+ }, z.core.$strip>, z.ZodObject<{
335
+ momentID: z.ZodString;
336
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
337
+ UNAUTHORIZED: {
338
+ message: string;
339
+ status: number;
340
+ };
341
+ }>, {
342
+ MEMORY_NOT_STARTED: {
343
+ message: string;
344
+ status: number;
345
+ };
346
+ MOMENT_NOT_FOUND: {
347
+ message: string;
348
+ status: number;
349
+ };
350
+ STALE_VERSION: {
351
+ message: string;
352
+ status: number;
353
+ };
354
+ }>, {
355
+ CLIENT_ACTION_ID_REUSED: {
356
+ message: string;
357
+ status: number;
358
+ };
359
+ }>, Record<never, never>>;
360
+ listItems: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
361
+ after: z.ZodOptional<z.ZodString>;
362
+ kind: z.ZodOptional<z.ZodEnum<{
363
+ fact: "fact";
364
+ self: "self";
365
+ }>>;
366
+ limit: z.ZodOptional<z.ZodInt>;
367
+ state: z.ZodEnum<{
368
+ active: "active";
369
+ forgotten: "forgotten";
370
+ retired: "retired";
371
+ }>;
372
+ }, z.core.$strip>, z.ZodObject<{
373
+ items: z.ZodArray<z.ZodObject<{
374
+ changedAt: z.ZodDate;
375
+ createdAt: z.ZodDate;
376
+ forgottenAt: z.ZodNullable<z.ZodDate>;
377
+ isPinned: z.ZodBoolean;
378
+ isSensitive: z.ZodBoolean;
379
+ itemID: z.ZodString;
380
+ kind: z.ZodEnum<{
381
+ fact: "fact";
382
+ self: "self";
383
+ }>;
384
+ origin: z.ZodEnum<{
385
+ conversation: "conversation";
386
+ lapse: "lapse";
387
+ memory_writer: "memory_writer";
388
+ owner: "owner";
389
+ task: "task";
390
+ }>;
391
+ shortID: z.ZodString;
392
+ source: z.ZodEnum<{
393
+ owner: "owner";
394
+ owner_data: "owner_data";
395
+ untrusted: "untrusted";
396
+ }>;
397
+ state: z.ZodEnum<{
398
+ active: "active";
399
+ forgetting: "forgetting";
400
+ forgotten: "forgotten";
401
+ retired: "retired";
402
+ }>;
403
+ status: z.ZodEnum<{
404
+ readable: "readable";
405
+ shredded: "shredded";
406
+ unreadable: "unreadable";
407
+ }>;
408
+ subject: z.ZodEnum<{
409
+ owner: "owner";
410
+ self: "self";
411
+ shared: "shared";
412
+ }>;
413
+ text: z.ZodOptional<z.ZodString>;
414
+ until: z.ZodNullable<z.ZodDate>;
415
+ version: z.ZodInt;
416
+ }, z.core.$strip>>;
417
+ next: z.ZodNullable<z.ZodString>;
418
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
419
+ UNAUTHORIZED: {
420
+ message: string;
421
+ status: number;
422
+ };
423
+ }>, {
424
+ MEMORY_NOT_STARTED: {
425
+ message: string;
426
+ status: number;
427
+ };
428
+ }>, {
429
+ INVALID_CURSOR: {
430
+ message: string;
431
+ status: number;
432
+ };
433
+ }>, Record<never, never>>;
434
+ findItems: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
435
+ query: z.ZodString;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ items: z.ZodArray<z.ZodObject<{
438
+ changedAt: z.ZodDate;
439
+ createdAt: z.ZodDate;
440
+ forgottenAt: z.ZodNullable<z.ZodDate>;
441
+ isPinned: z.ZodBoolean;
442
+ isSensitive: z.ZodBoolean;
443
+ itemID: z.ZodString;
444
+ kind: z.ZodEnum<{
445
+ fact: "fact";
446
+ self: "self";
447
+ }>;
448
+ origin: z.ZodEnum<{
449
+ conversation: "conversation";
450
+ lapse: "lapse";
451
+ memory_writer: "memory_writer";
452
+ owner: "owner";
453
+ task: "task";
454
+ }>;
455
+ shortID: z.ZodString;
456
+ source: z.ZodEnum<{
457
+ owner: "owner";
458
+ owner_data: "owner_data";
459
+ untrusted: "untrusted";
460
+ }>;
461
+ state: z.ZodEnum<{
462
+ active: "active";
463
+ forgetting: "forgetting";
464
+ forgotten: "forgotten";
465
+ retired: "retired";
466
+ }>;
467
+ status: z.ZodEnum<{
468
+ readable: "readable";
469
+ shredded: "shredded";
470
+ unreadable: "unreadable";
471
+ }>;
472
+ subject: z.ZodEnum<{
473
+ owner: "owner";
474
+ self: "self";
475
+ shared: "shared";
476
+ }>;
477
+ text: z.ZodOptional<z.ZodString>;
478
+ until: z.ZodNullable<z.ZodDate>;
479
+ version: z.ZodInt;
480
+ score: z.ZodOptional<z.ZodNumber>;
481
+ similarity: z.ZodOptional<z.ZodNumber>;
482
+ }, z.core.$strip>>;
483
+ searchMode: z.ZodEnum<{
484
+ hybrid: "hybrid";
485
+ keyword: "keyword";
486
+ "keyword-fallback": "keyword-fallback";
487
+ }>;
488
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
489
+ UNAUTHORIZED: {
490
+ message: string;
491
+ status: number;
492
+ };
493
+ }>, {
494
+ MEMORY_NOT_STARTED: {
495
+ message: string;
496
+ status: number;
497
+ };
498
+ }>, Record<never, never>>;
499
+ readPinnedCore: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
500
+ budget: z.ZodInt;
501
+ items: z.ZodArray<z.ZodObject<{
502
+ changedAt: z.ZodDate;
503
+ createdAt: z.ZodDate;
504
+ forgottenAt: z.ZodNullable<z.ZodDate>;
505
+ isPinned: z.ZodBoolean;
506
+ isSensitive: z.ZodBoolean;
507
+ itemID: z.ZodString;
508
+ kind: z.ZodEnum<{
509
+ fact: "fact";
510
+ self: "self";
511
+ }>;
512
+ origin: z.ZodEnum<{
513
+ conversation: "conversation";
514
+ lapse: "lapse";
515
+ memory_writer: "memory_writer";
516
+ owner: "owner";
517
+ task: "task";
518
+ }>;
519
+ shortID: z.ZodString;
520
+ source: z.ZodEnum<{
521
+ owner: "owner";
522
+ owner_data: "owner_data";
523
+ untrusted: "untrusted";
524
+ }>;
525
+ state: z.ZodEnum<{
526
+ active: "active";
527
+ forgetting: "forgetting";
528
+ forgotten: "forgotten";
529
+ retired: "retired";
530
+ }>;
531
+ status: z.ZodEnum<{
532
+ readable: "readable";
533
+ shredded: "shredded";
534
+ unreadable: "unreadable";
535
+ }>;
536
+ subject: z.ZodEnum<{
537
+ owner: "owner";
538
+ self: "self";
539
+ shared: "shared";
540
+ }>;
541
+ text: z.ZodOptional<z.ZodString>;
542
+ until: z.ZodNullable<z.ZodDate>;
543
+ version: z.ZodInt;
544
+ }, z.core.$strip>>;
545
+ tokens: z.ZodInt;
546
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
547
+ UNAUTHORIZED: {
548
+ message: string;
549
+ status: number;
550
+ };
551
+ }>, {
552
+ MEMORY_NOT_STARTED: {
553
+ message: string;
554
+ status: number;
555
+ };
556
+ }>, Record<never, never>>;
557
+ readItem: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
558
+ itemID: z.ZodString;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ changedAt: z.ZodDate;
561
+ createdAt: z.ZodDate;
562
+ forgottenAt: z.ZodNullable<z.ZodDate>;
563
+ isPinned: z.ZodBoolean;
564
+ isSensitive: z.ZodBoolean;
565
+ itemID: z.ZodString;
566
+ kind: z.ZodEnum<{
567
+ fact: "fact";
568
+ self: "self";
569
+ }>;
570
+ origin: z.ZodEnum<{
571
+ conversation: "conversation";
572
+ lapse: "lapse";
573
+ memory_writer: "memory_writer";
574
+ owner: "owner";
575
+ task: "task";
576
+ }>;
577
+ shortID: z.ZodString;
578
+ source: z.ZodEnum<{
579
+ owner: "owner";
580
+ owner_data: "owner_data";
581
+ untrusted: "untrusted";
582
+ }>;
583
+ state: z.ZodEnum<{
584
+ active: "active";
585
+ forgetting: "forgetting";
586
+ forgotten: "forgotten";
587
+ retired: "retired";
588
+ }>;
589
+ status: z.ZodEnum<{
590
+ readable: "readable";
591
+ shredded: "shredded";
592
+ unreadable: "unreadable";
593
+ }>;
594
+ subject: z.ZodEnum<{
595
+ owner: "owner";
596
+ self: "self";
597
+ shared: "shared";
598
+ }>;
599
+ text: z.ZodOptional<z.ZodString>;
600
+ until: z.ZodNullable<z.ZodDate>;
601
+ version: z.ZodInt;
602
+ versions: z.ZodArray<z.ZodObject<{
603
+ change: z.ZodEnum<{
604
+ created: "created";
605
+ edited: "edited";
606
+ restored: "restored";
607
+ retired: "retired";
608
+ undone: "undone";
609
+ }>;
610
+ checkerModel: z.ZodNullable<z.ZodString>;
611
+ checks: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
612
+ evidence: z.ZodNullable<z.ZodObject<{
613
+ end: z.ZodInt;
614
+ message: z.ZodNullable<z.ZodObject<{
615
+ status: z.ZodEnum<{
616
+ missing: "missing";
617
+ readable: "readable";
618
+ shredded: "shredded";
619
+ unreadable: "unreadable";
620
+ }>;
621
+ text: z.ZodOptional<z.ZodString>;
622
+ }, z.core.$strip>>;
623
+ sequence: z.ZodInt;
624
+ start: z.ZodInt;
625
+ }, z.core.$strip>>;
626
+ evidenceQuote: z.ZodNullable<z.ZodString>;
627
+ image: z.ZodNullable<z.ZodObject<{
628
+ position: z.ZodInt;
629
+ sequence: z.ZodInt;
630
+ thread: z.ZodString;
631
+ }, z.core.$strip>>;
632
+ origin: z.ZodEnum<{
633
+ conversation: "conversation";
634
+ lapse: "lapse";
635
+ memory_writer: "memory_writer";
636
+ owner: "owner";
637
+ task: "task";
638
+ }>;
639
+ proposalID: z.ZodNullable<z.ZodString>;
640
+ recordedAt: z.ZodDate;
641
+ source: z.ZodEnum<{
642
+ owner: "owner";
643
+ owner_data: "owner_data";
644
+ untrusted: "untrusted";
645
+ }>;
646
+ state: z.ZodEnum<{
647
+ active: "active";
648
+ retired: "retired";
649
+ }>;
650
+ status: z.ZodEnum<{
651
+ readable: "readable";
652
+ shredded: "shredded";
653
+ unreadable: "unreadable";
654
+ }>;
655
+ taskID: z.ZodNullable<z.ZodString>;
656
+ text: z.ZodOptional<z.ZodString>;
657
+ version: z.ZodInt;
658
+ writerModel: z.ZodNullable<z.ZodString>;
659
+ }, z.core.$strip>>;
660
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
661
+ UNAUTHORIZED: {
662
+ message: string;
663
+ status: number;
664
+ };
665
+ }>, {
666
+ MEMORY_NOT_STARTED: {
667
+ message: string;
668
+ status: number;
669
+ };
670
+ }>, {
671
+ MEMORY_ITEM_NOT_FOUND: {
672
+ message: string;
673
+ status: number;
674
+ };
675
+ }>, Record<never, never>>;
676
+ retire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
677
+ clientActionID: z.ZodUUID;
678
+ itemID: z.ZodString;
679
+ version: z.ZodInt;
680
+ }, z.core.$strip>, z.ZodObject<{
681
+ itemID: z.ZodString;
682
+ version: z.ZodInt;
683
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
684
+ UNAUTHORIZED: {
685
+ message: string;
686
+ status: number;
687
+ };
688
+ }>, {
689
+ MEMORY_NOT_STARTED: {
690
+ message: string;
691
+ status: number;
692
+ };
693
+ }>, {
694
+ CLIENT_ACTION_ID_REUSED: {
695
+ message: string;
696
+ status: number;
697
+ };
698
+ }>, {
699
+ MEMORY_ITEM_NOT_FOUND: {
700
+ message: string;
701
+ status: number;
702
+ };
703
+ STALE_VERSION: {
704
+ message: string;
705
+ status: number;
706
+ };
707
+ WRONG_STATE: {
708
+ message: string;
709
+ status: number;
710
+ };
711
+ }>, Record<never, never>>;
712
+ restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
713
+ clientActionID: z.ZodUUID;
714
+ itemID: z.ZodString;
715
+ version: z.ZodInt;
716
+ }, z.core.$strip>, z.ZodObject<{
717
+ itemID: z.ZodString;
718
+ version: z.ZodInt;
719
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
720
+ UNAUTHORIZED: {
721
+ message: string;
722
+ status: number;
723
+ };
724
+ }>, {
725
+ MEMORY_NOT_STARTED: {
726
+ message: string;
727
+ status: number;
728
+ };
729
+ }>, {
730
+ CLIENT_ACTION_ID_REUSED: {
731
+ message: string;
732
+ status: number;
733
+ };
734
+ }>, {
735
+ MEMORY_ITEM_NOT_FOUND: {
736
+ message: string;
737
+ status: number;
738
+ };
739
+ STALE_VERSION: {
740
+ message: string;
741
+ status: number;
742
+ };
743
+ WRONG_STATE: {
744
+ message: string;
745
+ status: number;
746
+ };
747
+ }>, Record<never, never>>;
748
+ listNotices: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
749
+ thread: z.ZodString;
750
+ }, z.core.$strip>, z.ZodObject<{
751
+ notices: z.ZodArray<z.ZodObject<{
752
+ entries: z.ZodArray<z.ZodObject<{
753
+ change: z.ZodEnum<{
754
+ created: "created";
755
+ edited: "edited";
756
+ proposed: "proposed";
757
+ restored: "restored";
758
+ retired: "retired";
759
+ undone: "undone";
760
+ }>;
761
+ isKept: z.ZodBoolean;
762
+ item: z.ZodNullable<z.ZodObject<{
763
+ changedAt: z.ZodDate;
764
+ createdAt: z.ZodDate;
765
+ forgottenAt: z.ZodNullable<z.ZodDate>;
766
+ isPinned: z.ZodBoolean;
767
+ isSensitive: z.ZodBoolean;
768
+ itemID: z.ZodString;
769
+ kind: z.ZodEnum<{
770
+ fact: "fact";
771
+ self: "self";
772
+ }>;
773
+ origin: z.ZodEnum<{
774
+ conversation: "conversation";
775
+ lapse: "lapse";
776
+ memory_writer: "memory_writer";
777
+ owner: "owner";
778
+ task: "task";
779
+ }>;
780
+ shortID: z.ZodString;
781
+ source: z.ZodEnum<{
782
+ owner: "owner";
783
+ owner_data: "owner_data";
784
+ untrusted: "untrusted";
785
+ }>;
786
+ state: z.ZodEnum<{
787
+ active: "active";
788
+ forgetting: "forgetting";
789
+ forgotten: "forgotten";
790
+ retired: "retired";
791
+ }>;
792
+ status: z.ZodEnum<{
793
+ readable: "readable";
794
+ shredded: "shredded";
795
+ unreadable: "unreadable";
796
+ }>;
797
+ subject: z.ZodEnum<{
798
+ owner: "owner";
799
+ self: "self";
800
+ shared: "shared";
801
+ }>;
802
+ text: z.ZodOptional<z.ZodString>;
803
+ until: z.ZodNullable<z.ZodDate>;
804
+ version: z.ZodInt;
805
+ change: z.ZodEnum<{
806
+ created: "created";
807
+ edited: "edited";
808
+ restored: "restored";
809
+ retired: "retired";
810
+ undone: "undone";
811
+ }>;
812
+ }, z.core.$strip>>;
813
+ itemID: z.ZodString;
814
+ proposalID: z.ZodNullable<z.ZodString>;
815
+ sequence: z.ZodInt;
816
+ version: z.ZodNullable<z.ZodInt>;
817
+ }, z.core.$strip>>;
818
+ kind: z.ZodEnum<{
819
+ batch: "batch";
820
+ catch_up: "catch_up";
821
+ run: "run";
822
+ turn: "turn";
823
+ }>;
824
+ messageSequence: z.ZodNullable<z.ZodInt>;
825
+ noticeKey: z.ZodString;
826
+ proposed: z.ZodInt;
827
+ remembered: z.ZodInt;
828
+ retired: z.ZodInt;
829
+ sequence: z.ZodInt;
830
+ }, z.core.$strip>>;
831
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
832
+ UNAUTHORIZED: {
833
+ message: string;
834
+ status: number;
835
+ };
836
+ }>, {
837
+ MEMORY_NOT_STARTED: {
838
+ message: string;
839
+ status: number;
840
+ };
841
+ }>, Record<never, never>>;
842
+ undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
843
+ clientActionID: z.ZodUUID;
844
+ itemID: z.ZodString;
845
+ version: z.ZodInt;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ itemID: z.ZodString;
848
+ version: z.ZodInt;
849
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
850
+ UNAUTHORIZED: {
851
+ message: string;
852
+ status: number;
853
+ };
854
+ }>, {
855
+ MEMORY_NOT_STARTED: {
856
+ message: string;
857
+ status: number;
858
+ };
859
+ }>, {
860
+ CLIENT_ACTION_ID_REUSED: {
861
+ message: string;
862
+ status: number;
863
+ };
864
+ }>, {
865
+ MEMORY_ITEM_NOT_FOUND: {
866
+ message: string;
867
+ status: number;
868
+ };
869
+ STALE_VERSION: {
870
+ message: string;
871
+ status: number;
872
+ };
873
+ WRONG_STATE: {
874
+ message: string;
875
+ status: number;
876
+ };
877
+ }>, {
878
+ PINNED_CORE_FULL: {
879
+ message: string;
880
+ status: number;
881
+ };
882
+ }>, Record<never, never>>;
883
+ keep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
884
+ clientActionID: z.ZodUUID;
885
+ itemID: z.ZodString;
886
+ version: z.ZodInt;
887
+ }, z.core.$strip>, z.ZodObject<{
888
+ itemID: z.ZodString;
889
+ version: z.ZodInt;
890
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
891
+ UNAUTHORIZED: {
892
+ message: string;
893
+ status: number;
894
+ };
895
+ }>, {
896
+ MEMORY_NOT_STARTED: {
897
+ message: string;
898
+ status: number;
899
+ };
900
+ }>, {
901
+ CLIENT_ACTION_ID_REUSED: {
902
+ message: string;
903
+ status: number;
904
+ };
905
+ }>, {
906
+ MEMORY_ITEM_NOT_FOUND: {
907
+ message: string;
908
+ status: number;
909
+ };
910
+ STALE_VERSION: {
911
+ message: string;
912
+ status: number;
913
+ };
914
+ WRONG_STATE: {
915
+ message: string;
916
+ status: number;
917
+ };
918
+ }>, Record<never, never>>;
919
+ previewForget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
920
+ itemID: z.ZodString;
921
+ version: z.ZodInt;
922
+ }, z.core.$strip>, z.ZodObject<{
923
+ changedAt: z.ZodDate;
924
+ createdAt: z.ZodDate;
925
+ forgottenAt: z.ZodNullable<z.ZodDate>;
926
+ isPinned: z.ZodBoolean;
927
+ isSensitive: z.ZodBoolean;
928
+ itemID: z.ZodString;
929
+ kind: z.ZodEnum<{
930
+ fact: "fact";
931
+ self: "self";
932
+ }>;
933
+ origin: z.ZodEnum<{
934
+ conversation: "conversation";
935
+ lapse: "lapse";
936
+ memory_writer: "memory_writer";
937
+ owner: "owner";
938
+ task: "task";
939
+ }>;
940
+ shortID: z.ZodString;
941
+ source: z.ZodEnum<{
942
+ owner: "owner";
943
+ owner_data: "owner_data";
944
+ untrusted: "untrusted";
945
+ }>;
946
+ state: z.ZodEnum<{
947
+ active: "active";
948
+ forgetting: "forgetting";
949
+ forgotten: "forgotten";
950
+ retired: "retired";
951
+ }>;
952
+ status: z.ZodEnum<{
953
+ readable: "readable";
954
+ shredded: "shredded";
955
+ unreadable: "unreadable";
956
+ }>;
957
+ subject: z.ZodEnum<{
958
+ owner: "owner";
959
+ self: "self";
960
+ shared: "shared";
961
+ }>;
962
+ text: z.ZodOptional<z.ZodString>;
963
+ until: z.ZodNullable<z.ZodDate>;
964
+ version: z.ZodInt;
965
+ versions: z.ZodArray<z.ZodObject<{
966
+ change: z.ZodEnum<{
967
+ created: "created";
968
+ edited: "edited";
969
+ restored: "restored";
970
+ retired: "retired";
971
+ undone: "undone";
972
+ }>;
973
+ checkerModel: z.ZodNullable<z.ZodString>;
974
+ checks: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
975
+ evidence: z.ZodNullable<z.ZodObject<{
976
+ end: z.ZodInt;
977
+ message: z.ZodNullable<z.ZodObject<{
978
+ status: z.ZodEnum<{
979
+ missing: "missing";
980
+ readable: "readable";
981
+ shredded: "shredded";
982
+ unreadable: "unreadable";
983
+ }>;
984
+ text: z.ZodOptional<z.ZodString>;
985
+ }, z.core.$strip>>;
986
+ sequence: z.ZodInt;
987
+ start: z.ZodInt;
988
+ }, z.core.$strip>>;
989
+ evidenceQuote: z.ZodNullable<z.ZodString>;
990
+ image: z.ZodNullable<z.ZodObject<{
991
+ position: z.ZodInt;
992
+ sequence: z.ZodInt;
993
+ thread: z.ZodString;
994
+ }, z.core.$strip>>;
995
+ origin: z.ZodEnum<{
996
+ conversation: "conversation";
997
+ lapse: "lapse";
998
+ memory_writer: "memory_writer";
999
+ owner: "owner";
1000
+ task: "task";
1001
+ }>;
1002
+ proposalID: z.ZodNullable<z.ZodString>;
1003
+ recordedAt: z.ZodDate;
1004
+ source: z.ZodEnum<{
1005
+ owner: "owner";
1006
+ owner_data: "owner_data";
1007
+ untrusted: "untrusted";
1008
+ }>;
1009
+ state: z.ZodEnum<{
1010
+ active: "active";
1011
+ retired: "retired";
1012
+ }>;
1013
+ status: z.ZodEnum<{
1014
+ readable: "readable";
1015
+ shredded: "shredded";
1016
+ unreadable: "unreadable";
1017
+ }>;
1018
+ taskID: z.ZodNullable<z.ZodString>;
1019
+ text: z.ZodOptional<z.ZodString>;
1020
+ version: z.ZodInt;
1021
+ writerModel: z.ZodNullable<z.ZodString>;
1022
+ }, z.core.$strip>>;
1023
+ lost: z.ZodObject<{
1024
+ evidenceMessages: z.ZodInt;
1025
+ proposals: z.ZodInt;
1026
+ }, z.core.$strip>;
1027
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1028
+ UNAUTHORIZED: {
1029
+ message: string;
1030
+ status: number;
1031
+ };
1032
+ }>, {
1033
+ MEMORY_NOT_STARTED: {
1034
+ message: string;
1035
+ status: number;
1036
+ };
1037
+ }>, {
1038
+ MEMORY_ITEM_NOT_FOUND: {
1039
+ message: string;
1040
+ status: number;
1041
+ };
1042
+ STALE_VERSION: {
1043
+ message: string;
1044
+ status: number;
1045
+ };
1046
+ }>, Record<never, never>>;
1047
+ forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1048
+ clientActionID: z.ZodUUID;
1049
+ itemID: z.ZodString;
1050
+ version: z.ZodInt;
1051
+ }, z.core.$strip>, z.ZodObject<{
1052
+ itemID: z.ZodString;
1053
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1054
+ UNAUTHORIZED: {
1055
+ message: string;
1056
+ status: number;
1057
+ };
1058
+ }>, {
1059
+ MEMORY_NOT_STARTED: {
1060
+ message: string;
1061
+ status: number;
1062
+ };
1063
+ }>, {
1064
+ CLIENT_ACTION_ID_REUSED: {
1065
+ message: string;
1066
+ status: number;
1067
+ };
1068
+ }>, {
1069
+ MEMORY_ITEM_NOT_FOUND: {
1070
+ message: string;
1071
+ status: number;
1072
+ };
1073
+ STALE_VERSION: {
1074
+ message: string;
1075
+ status: number;
1076
+ };
1077
+ WRONG_STATE: {
1078
+ message: string;
1079
+ status: number;
1080
+ };
1081
+ }>, Record<never, never>>;
1082
+ previewForgetRetired: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1083
+ hasMore: z.ZodBoolean;
1084
+ items: z.ZodArray<z.ZodObject<{
1085
+ changedAt: z.ZodDate;
1086
+ createdAt: z.ZodDate;
1087
+ forgottenAt: z.ZodNullable<z.ZodDate>;
1088
+ isPinned: z.ZodBoolean;
1089
+ isSensitive: z.ZodBoolean;
1090
+ itemID: z.ZodString;
1091
+ kind: z.ZodEnum<{
1092
+ fact: "fact";
1093
+ self: "self";
1094
+ }>;
1095
+ origin: z.ZodEnum<{
1096
+ conversation: "conversation";
1097
+ lapse: "lapse";
1098
+ memory_writer: "memory_writer";
1099
+ owner: "owner";
1100
+ task: "task";
1101
+ }>;
1102
+ shortID: z.ZodString;
1103
+ source: z.ZodEnum<{
1104
+ owner: "owner";
1105
+ owner_data: "owner_data";
1106
+ untrusted: "untrusted";
1107
+ }>;
1108
+ state: z.ZodEnum<{
1109
+ active: "active";
1110
+ forgetting: "forgetting";
1111
+ forgotten: "forgotten";
1112
+ retired: "retired";
1113
+ }>;
1114
+ status: z.ZodEnum<{
1115
+ readable: "readable";
1116
+ shredded: "shredded";
1117
+ unreadable: "unreadable";
1118
+ }>;
1119
+ subject: z.ZodEnum<{
1120
+ owner: "owner";
1121
+ self: "self";
1122
+ shared: "shared";
1123
+ }>;
1124
+ text: z.ZodOptional<z.ZodString>;
1125
+ until: z.ZodNullable<z.ZodDate>;
1126
+ version: z.ZodInt;
1127
+ lost: z.ZodObject<{
1128
+ evidenceMessages: z.ZodInt;
1129
+ proposals: z.ZodInt;
1130
+ }, z.core.$strip>;
1131
+ }, z.core.$strip>>;
1132
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1133
+ UNAUTHORIZED: {
1134
+ message: string;
1135
+ status: number;
1136
+ };
1137
+ }>, {
1138
+ MEMORY_NOT_STARTED: {
1139
+ message: string;
1140
+ status: number;
1141
+ };
1142
+ }>, Record<never, never>>;
1143
+ forgetRetired: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1144
+ clientActionID: z.ZodUUID;
1145
+ targets: z.ZodArray<z.ZodObject<{
1146
+ itemID: z.ZodString;
1147
+ version: z.ZodInt;
1148
+ }, z.core.$strip>>;
1149
+ }, z.core.$strip>, z.ZodObject<{
1150
+ deleted: z.ZodArray<z.ZodString>;
1151
+ pending: z.ZodArray<z.ZodString>;
1152
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1153
+ UNAUTHORIZED: {
1154
+ message: string;
1155
+ status: number;
1156
+ };
1157
+ }>, {
1158
+ MEMORY_NOT_STARTED: {
1159
+ message: string;
1160
+ status: number;
1161
+ };
1162
+ }>, {
1163
+ CLIENT_ACTION_ID_REUSED: {
1164
+ message: string;
1165
+ status: number;
1166
+ };
1167
+ }>, {
1168
+ MEMORY_ITEM_NOT_FOUND: {
1169
+ message: string;
1170
+ status: number;
1171
+ };
1172
+ STALE_VERSION: {
1173
+ message: string;
1174
+ status: number;
1175
+ };
1176
+ WRONG_STATE: {
1177
+ message: string;
1178
+ status: number;
1179
+ };
1180
+ }>, Record<never, never>>;
1181
+ readForgetStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1182
+ itemIDs: z.ZodArray<z.ZodString>;
1183
+ }, z.core.$strip>, z.ZodObject<{
1184
+ deleted: z.ZodArray<z.ZodString>;
1185
+ pending: z.ZodArray<z.ZodString>;
1186
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1187
+ UNAUTHORIZED: {
1188
+ message: string;
1189
+ status: number;
1190
+ };
1191
+ }>, {
1192
+ MEMORY_NOT_STARTED: {
1193
+ message: string;
1194
+ status: number;
1195
+ };
1196
+ }>, Record<never, never>>;
1197
+ pin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1198
+ clientActionID: z.ZodUUID;
1199
+ itemID: z.ZodString;
1200
+ version: z.ZodInt;
1201
+ isPinned: z.ZodBoolean;
1202
+ }, z.core.$strip>, z.ZodObject<{
1203
+ isPinned: z.ZodBoolean;
1204
+ itemID: z.ZodString;
1205
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1206
+ UNAUTHORIZED: {
1207
+ message: string;
1208
+ status: number;
1209
+ };
1210
+ }>, {
1211
+ MEMORY_NOT_STARTED: {
1212
+ message: string;
1213
+ status: number;
1214
+ };
1215
+ }>, {
1216
+ CLIENT_ACTION_ID_REUSED: {
1217
+ message: string;
1218
+ status: number;
1219
+ };
1220
+ }>, {
1221
+ MEMORY_ITEM_NOT_FOUND: {
1222
+ message: string;
1223
+ status: number;
1224
+ };
1225
+ STALE_VERSION: {
1226
+ message: string;
1227
+ status: number;
1228
+ };
1229
+ WRONG_STATE: {
1230
+ message: string;
1231
+ status: number;
1232
+ };
1233
+ }>, {
1234
+ PINNED_CORE_FULL: {
1235
+ message: string;
1236
+ status: number;
1237
+ };
1238
+ }>, Record<never, never>>;
1239
+ markSensitive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1240
+ clientActionID: z.ZodUUID;
1241
+ isSensitive: z.ZodBoolean;
1242
+ itemID: z.ZodString;
1243
+ }, z.core.$strip>, z.ZodObject<{
1244
+ isSensitive: z.ZodBoolean;
1245
+ itemID: z.ZodString;
1246
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1247
+ UNAUTHORIZED: {
1248
+ message: string;
1249
+ status: number;
1250
+ };
1251
+ }>, {
1252
+ MEMORY_NOT_STARTED: {
1253
+ message: string;
1254
+ status: number;
1255
+ };
1256
+ }>, {
1257
+ CLIENT_ACTION_ID_REUSED: {
1258
+ message: string;
1259
+ status: number;
1260
+ };
1261
+ }>, {
1262
+ MEMORY_ITEM_NOT_FOUND: {
1263
+ message: string;
1264
+ status: number;
1265
+ };
1266
+ STALE_VERSION: {
1267
+ message: string;
1268
+ status: number;
1269
+ };
1270
+ WRONG_STATE: {
1271
+ message: string;
1272
+ status: number;
1273
+ };
1274
+ }>, Record<never, never>>;
1275
+ listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1276
+ proposals: z.ZodArray<z.ZodObject<{
1277
+ actionHash: z.ZodString;
1278
+ createdAt: z.ZodDate;
1279
+ evidence: z.ZodNullable<z.ZodObject<{
1280
+ end: z.ZodInt;
1281
+ message: z.ZodNullable<z.ZodObject<{
1282
+ status: z.ZodEnum<{
1283
+ missing: "missing";
1284
+ readable: "readable";
1285
+ shredded: "shredded";
1286
+ unreadable: "unreadable";
1287
+ }>;
1288
+ text: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$strip>>;
1290
+ sequence: z.ZodInt;
1291
+ start: z.ZodInt;
1292
+ }, z.core.$strip>>;
1293
+ image: z.ZodNullable<z.ZodObject<{
1294
+ position: z.ZodInt;
1295
+ sequence: z.ZodInt;
1296
+ thread: z.ZodString;
1297
+ }, z.core.$strip>>;
1298
+ isPinned: z.ZodBoolean;
1299
+ isSensitive: z.ZodBoolean;
1300
+ itemID: z.ZodString;
1301
+ kind: z.ZodEnum<{
1302
+ fact: "fact";
1303
+ self: "self";
1304
+ }>;
1305
+ lapseAt: z.ZodDate;
1306
+ operation: z.ZodEnum<{
1307
+ pin: "pin";
1308
+ remember: "remember";
1309
+ retire: "retire";
1310
+ }>;
1311
+ origin: z.ZodEnum<{
1312
+ conversation: "conversation";
1313
+ memory_writer: "memory_writer";
1314
+ owner: "owner";
1315
+ task: "task";
1316
+ }>;
1317
+ proposalID: z.ZodString;
1318
+ quote: z.ZodNullable<z.ZodString>;
1319
+ reason: z.ZodEnum<{
1320
+ ambiguous_target: "ambiguous_target";
1321
+ checker_not_asserted: "checker_not_asserted";
1322
+ checker_unreachable: "checker_unreachable";
1323
+ checker_unsure: "checker_unsure";
1324
+ forgotten_evidence: "forgotten_evidence";
1325
+ from_photo: "from_photo";
1326
+ invisible_character: "invisible_character";
1327
+ no_quote: "no_quote";
1328
+ other: "other";
1329
+ pinned: "pinned";
1330
+ quote_in_quoted_block: "quote_in_quoted_block";
1331
+ quote_not_typed: "quote_not_typed";
1332
+ self_note: "self_note";
1333
+ sensitive: "sensitive";
1334
+ token_missing: "token_missing";
1335
+ }>;
1336
+ source: z.ZodEnum<{
1337
+ owner: "owner";
1338
+ owner_data: "owner_data";
1339
+ untrusted: "untrusted";
1340
+ }>;
1341
+ sources: z.ZodArray<z.ZodObject<{
1342
+ origin: z.ZodEnum<{
1343
+ conversation: "conversation";
1344
+ memory_writer: "memory_writer";
1345
+ owner: "owner";
1346
+ task: "task";
1347
+ }>;
1348
+ proposedAt: z.ZodDate;
1349
+ thread: z.ZodNullable<z.ZodString>;
1350
+ }, z.core.$strip>>;
1351
+ subject: z.ZodEnum<{
1352
+ owner: "owner";
1353
+ self: "self";
1354
+ shared: "shared";
1355
+ }>;
1356
+ targetVersion: z.ZodNullable<z.ZodInt>;
1357
+ text: z.ZodString;
1358
+ until: z.ZodNullable<z.ZodDate>;
1359
+ }, z.core.$strip>>;
1360
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1361
+ UNAUTHORIZED: {
1362
+ message: string;
1363
+ status: number;
1364
+ };
1365
+ }>, {
1366
+ MEMORY_NOT_STARTED: {
1367
+ message: string;
1368
+ status: number;
1369
+ };
1370
+ }>, Record<never, never>>;
1371
+ approveProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1372
+ answers: z.ZodArray<z.ZodObject<{
1373
+ actionHash: z.ZodString;
1374
+ clientActionID: z.ZodUUID;
1375
+ proposalID: z.ZodString;
1376
+ editedText: z.ZodOptional<z.ZodString>;
1377
+ ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
1378
+ revisionOf: z.ZodOptional<z.ZodObject<{
1379
+ itemID: z.ZodString;
1380
+ version: z.ZodInt;
1381
+ }, z.core.$strip>>;
1382
+ }, z.core.$strip>>;
1383
+ }, z.core.$strip>, z.ZodObject<{
1384
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1385
+ proposalID: z.ZodString;
1386
+ status: z.ZodLiteral<"applied">;
1387
+ }, z.core.$strip>, z.ZodObject<{
1388
+ proposalID: z.ZodString;
1389
+ status: z.ZodLiteral<"rejected">;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ item: z.ZodObject<{
1392
+ itemID: z.ZodString;
1393
+ text: z.ZodString;
1394
+ version: z.ZodInt;
1395
+ }, z.core.$strip>;
1396
+ proposalID: z.ZodString;
1397
+ status: z.ZodLiteral<"close_match">;
1398
+ }, z.core.$strip>, z.ZodObject<{
1399
+ cause: z.ZodEnum<{
1400
+ answered: "answered";
1401
+ changed: "changed";
1402
+ gone: "gone";
1403
+ lapsed: "lapsed";
1404
+ moved: "moved";
1405
+ }>;
1406
+ proposalID: z.ZodString;
1407
+ status: z.ZodLiteral<"stale">;
1408
+ }, z.core.$strip>, z.ZodObject<{
1409
+ code: z.ZodEnum<{
1410
+ CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1411
+ PINNED_CORE_FULL: "PINNED_CORE_FULL";
1412
+ PIN_EDIT: "PIN_EDIT";
1413
+ RETIREMENT_EDIT: "RETIREMENT_EDIT";
1414
+ REVISION_TARGET: "REVISION_TARGET";
1415
+ WRONG_STATE: "WRONG_STATE";
1416
+ }>;
1417
+ proposalID: z.ZodString;
1418
+ status: z.ZodLiteral<"refused">;
1419
+ }, z.core.$strip>], "status">>;
1420
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1421
+ UNAUTHORIZED: {
1422
+ message: string;
1423
+ status: number;
1424
+ };
1425
+ }>, {
1426
+ MEMORY_NOT_STARTED: {
1427
+ message: string;
1428
+ status: number;
1429
+ };
1430
+ }>, Record<never, never>>;
1431
+ rejectProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1432
+ answers: z.ZodArray<z.ZodObject<{
1433
+ actionHash: z.ZodString;
1434
+ clientActionID: z.ZodUUID;
1435
+ proposalID: z.ZodString;
1436
+ reason: z.ZodOptional<z.ZodString>;
1437
+ }, z.core.$strip>>;
1438
+ }, z.core.$strip>, z.ZodObject<{
1439
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1440
+ proposalID: z.ZodString;
1441
+ status: z.ZodLiteral<"applied">;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ proposalID: z.ZodString;
1444
+ status: z.ZodLiteral<"rejected">;
1445
+ }, z.core.$strip>, z.ZodObject<{
1446
+ item: z.ZodObject<{
1447
+ itemID: z.ZodString;
1448
+ text: z.ZodString;
1449
+ version: z.ZodInt;
1450
+ }, z.core.$strip>;
1451
+ proposalID: z.ZodString;
1452
+ status: z.ZodLiteral<"close_match">;
1453
+ }, z.core.$strip>, z.ZodObject<{
1454
+ cause: z.ZodEnum<{
1455
+ answered: "answered";
1456
+ changed: "changed";
1457
+ gone: "gone";
1458
+ lapsed: "lapsed";
1459
+ moved: "moved";
1460
+ }>;
1461
+ proposalID: z.ZodString;
1462
+ status: z.ZodLiteral<"stale">;
1463
+ }, z.core.$strip>, z.ZodObject<{
1464
+ code: z.ZodEnum<{
1465
+ CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1466
+ PINNED_CORE_FULL: "PINNED_CORE_FULL";
1467
+ PIN_EDIT: "PIN_EDIT";
1468
+ RETIREMENT_EDIT: "RETIREMENT_EDIT";
1469
+ REVISION_TARGET: "REVISION_TARGET";
1470
+ WRONG_STATE: "WRONG_STATE";
1471
+ }>;
1472
+ proposalID: z.ZodString;
1473
+ status: z.ZodLiteral<"refused">;
1474
+ }, z.core.$strip>], "status">>;
1475
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1476
+ UNAUTHORIZED: {
1477
+ message: string;
1478
+ status: number;
1479
+ };
1480
+ }>, {
1481
+ MEMORY_NOT_STARTED: {
1482
+ message: string;
1483
+ status: number;
1484
+ };
1485
+ }>, Record<never, never>>;
1486
+ };