@heynixie/contract 0.0.0-stage → 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,2263 @@
1
+ import { z } from 'zod';
2
+ export declare const contract: {
3
+ conversation: {
4
+ read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5
+ beforeSequence: z.ZodOptional<z.ZodInt>;
6
+ limit: z.ZodOptional<z.ZodInt>;
7
+ thread: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ hasEarlier: z.ZodBoolean;
10
+ readAtSequence: z.ZodInt;
11
+ records: z.ZodArray<z.ZodObject<{
12
+ compaction: z.ZodOptional<z.ZodObject<{
13
+ postTokens: z.ZodOptional<z.ZodInt>;
14
+ preTokens: z.ZodInt;
15
+ trigger: z.ZodEnum<{
16
+ auto: "auto";
17
+ manual: "manual";
18
+ }>;
19
+ }, z.core.$strip>>;
20
+ compactionFailure: z.ZodOptional<z.ZodObject<{
21
+ failures: z.ZodInt;
22
+ }, z.core.$strip>>;
23
+ forget: z.ZodOptional<z.ZodObject<{
24
+ sequence: z.ZodInt;
25
+ }, z.core.$strip>>;
26
+ context: z.ZodOptional<z.ZodObject<{
27
+ size: z.ZodInt;
28
+ window: z.ZodInt;
29
+ }, z.core.$strip>>;
30
+ kind: z.ZodString;
31
+ message: z.ZodOptional<z.ZodObject<{
32
+ clientMessageId: z.ZodOptional<z.ZodUUID>;
33
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ mediaType: z.ZodEnum<{
35
+ "image/gif": "image/gif";
36
+ "image/jpeg": "image/jpeg";
37
+ "image/png": "image/png";
38
+ "image/webp": "image/webp";
39
+ }>;
40
+ }, z.core.$strip>>>;
41
+ spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ end: z.ZodInt;
43
+ source: z.ZodEnum<{
44
+ dropped: "dropped";
45
+ pasted: "pasted";
46
+ typed: "typed";
47
+ unknown: "unknown";
48
+ }>;
49
+ start: z.ZodInt;
50
+ }, z.core.$strip>>>;
51
+ text: z.ZodString;
52
+ }, z.core.$strip>>;
53
+ moment: z.ZodOptional<z.ZodObject<{
54
+ momentID: z.ZodString;
55
+ shortID: z.ZodString;
56
+ title: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strip>>;
58
+ rating: z.ZodOptional<z.ZodObject<{
59
+ items: z.ZodArray<z.ZodObject<{
60
+ itemID: z.ZodString;
61
+ version: z.ZodInt;
62
+ hasNote: z.ZodBoolean;
63
+ verdict: z.ZodEnum<{
64
+ helpful: "helpful";
65
+ misleading: "misleading";
66
+ noise: "noise";
67
+ }>;
68
+ }, z.core.$strip>>;
69
+ ratedBy: z.ZodOptional<z.ZodString>;
70
+ recalledSequence: z.ZodInt;
71
+ }, z.core.$strip>>;
72
+ recall: z.ZodOptional<z.ZodObject<{
73
+ items: z.ZodArray<z.ZodObject<{
74
+ itemID: z.ZodString;
75
+ version: z.ZodInt;
76
+ score: z.ZodOptional<z.ZodNumber>;
77
+ }, z.core.$strip>>;
78
+ }, z.core.$strip>>;
79
+ recordedAt: z.ZodDate;
80
+ sequence: z.ZodInt;
81
+ summary: z.ZodOptional<z.ZodObject<{
82
+ contextSize: z.ZodOptional<z.ZodInt>;
83
+ summaryTokens: z.ZodInt;
84
+ text: z.ZodOptional<z.ZodString>;
85
+ trigger: z.ZodEnum<{
86
+ overflow: "overflow";
87
+ threshold: "threshold";
88
+ }>;
89
+ }, z.core.$strip>>;
90
+ thread: z.ZodString;
91
+ task: z.ZodOptional<z.ZodObject<{
92
+ error: z.ZodOptional<z.ZodString>;
93
+ errorLimit: z.ZodOptional<z.ZodInt>;
94
+ errors: z.ZodOptional<z.ZodInt>;
95
+ retryAt: z.ZodOptional<z.ZodDate>;
96
+ stepKey: z.ZodOptional<z.ZodString>;
97
+ taskID: z.ZodString;
98
+ }, z.core.$strip>>;
99
+ toolCall: z.ZodOptional<z.ZodObject<{
100
+ callID: z.ZodString;
101
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
102
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
103
+ outcome: z.ZodOptional<z.ZodString>;
104
+ tool: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ }, z.core.$strip>>;
107
+ lastStepEnd: z.ZodOptional<z.ZodNullable<z.ZodObject<{
108
+ compaction: z.ZodOptional<z.ZodObject<{
109
+ postTokens: z.ZodOptional<z.ZodInt>;
110
+ preTokens: z.ZodInt;
111
+ trigger: z.ZodEnum<{
112
+ auto: "auto";
113
+ manual: "manual";
114
+ }>;
115
+ }, z.core.$strip>>;
116
+ compactionFailure: z.ZodOptional<z.ZodObject<{
117
+ failures: z.ZodInt;
118
+ }, z.core.$strip>>;
119
+ forget: z.ZodOptional<z.ZodObject<{
120
+ sequence: z.ZodInt;
121
+ }, z.core.$strip>>;
122
+ context: z.ZodOptional<z.ZodObject<{
123
+ size: z.ZodInt;
124
+ window: z.ZodInt;
125
+ }, z.core.$strip>>;
126
+ kind: z.ZodString;
127
+ message: z.ZodOptional<z.ZodObject<{
128
+ clientMessageId: z.ZodOptional<z.ZodUUID>;
129
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ mediaType: z.ZodEnum<{
131
+ "image/gif": "image/gif";
132
+ "image/jpeg": "image/jpeg";
133
+ "image/png": "image/png";
134
+ "image/webp": "image/webp";
135
+ }>;
136
+ }, z.core.$strip>>>;
137
+ spans: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ end: z.ZodInt;
139
+ source: z.ZodEnum<{
140
+ dropped: "dropped";
141
+ pasted: "pasted";
142
+ typed: "typed";
143
+ unknown: "unknown";
144
+ }>;
145
+ start: z.ZodInt;
146
+ }, z.core.$strip>>>;
147
+ text: z.ZodString;
148
+ }, z.core.$strip>>;
149
+ moment: z.ZodOptional<z.ZodObject<{
150
+ momentID: z.ZodString;
151
+ shortID: z.ZodString;
152
+ title: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>>;
154
+ rating: z.ZodOptional<z.ZodObject<{
155
+ items: z.ZodArray<z.ZodObject<{
156
+ itemID: z.ZodString;
157
+ version: z.ZodInt;
158
+ hasNote: z.ZodBoolean;
159
+ verdict: z.ZodEnum<{
160
+ helpful: "helpful";
161
+ misleading: "misleading";
162
+ noise: "noise";
163
+ }>;
164
+ }, z.core.$strip>>;
165
+ ratedBy: z.ZodOptional<z.ZodString>;
166
+ recalledSequence: z.ZodInt;
167
+ }, z.core.$strip>>;
168
+ recall: z.ZodOptional<z.ZodObject<{
169
+ items: z.ZodArray<z.ZodObject<{
170
+ itemID: z.ZodString;
171
+ version: z.ZodInt;
172
+ score: z.ZodOptional<z.ZodNumber>;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>>;
175
+ recordedAt: z.ZodDate;
176
+ sequence: z.ZodInt;
177
+ summary: z.ZodOptional<z.ZodObject<{
178
+ contextSize: z.ZodOptional<z.ZodInt>;
179
+ summaryTokens: z.ZodInt;
180
+ text: z.ZodOptional<z.ZodString>;
181
+ trigger: z.ZodEnum<{
182
+ overflow: "overflow";
183
+ threshold: "threshold";
184
+ }>;
185
+ }, z.core.$strip>>;
186
+ thread: z.ZodString;
187
+ task: z.ZodOptional<z.ZodObject<{
188
+ error: z.ZodOptional<z.ZodString>;
189
+ errorLimit: z.ZodOptional<z.ZodInt>;
190
+ errors: z.ZodOptional<z.ZodInt>;
191
+ retryAt: z.ZodOptional<z.ZodDate>;
192
+ stepKey: z.ZodOptional<z.ZodString>;
193
+ taskID: z.ZodString;
194
+ }, z.core.$strip>>;
195
+ toolCall: z.ZodOptional<z.ZodObject<{
196
+ callID: z.ZodString;
197
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
198
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
+ outcome: z.ZodOptional<z.ZodString>;
200
+ tool: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$strip>>>;
203
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
204
+ UNAUTHORIZED: {
205
+ message: string;
206
+ status: number;
207
+ };
208
+ }>, {
209
+ THREAD_NOT_FOUND: {
210
+ message: string;
211
+ status: number;
212
+ };
213
+ }>, Record<never, never>>;
214
+ send: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
215
+ clientMessageId: z.ZodUUID;
216
+ images: z.ZodOptional<z.ZodArray<z.ZodFile>>;
217
+ spans: z.ZodArray<z.ZodObject<{
218
+ end: z.ZodInt;
219
+ source: z.ZodEnum<{
220
+ dropped: "dropped";
221
+ pasted: "pasted";
222
+ typed: "typed";
223
+ unknown: "unknown";
224
+ }>;
225
+ start: z.ZodInt;
226
+ }, z.core.$strip>>;
227
+ text: z.ZodString;
228
+ thread: z.ZodString;
229
+ timeZone: z.ZodOptional<z.ZodString>;
230
+ writtenAt: z.ZodOptional<z.ZodISODateTime>;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ duplicate: z.ZodBoolean;
233
+ sequence: z.ZodInt;
234
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
235
+ UNAUTHORIZED: {
236
+ message: string;
237
+ status: number;
238
+ };
239
+ }>, {
240
+ CLIENT_ACTION_ID_REUSED: {
241
+ message: string;
242
+ status: number;
243
+ };
244
+ }>, {
245
+ IMAGE_REFUSED: {
246
+ message: string;
247
+ status: number;
248
+ data: z.ZodObject<{
249
+ position: z.ZodNullable<z.ZodInt>;
250
+ reason: z.ZodEnum<{
251
+ too_large: "too_large";
252
+ too_many: "too_many";
253
+ unsupported_type: "unsupported_type";
254
+ }>;
255
+ }, z.core.$strip>;
256
+ };
257
+ THREAD_NOT_FOUND: {
258
+ message: string;
259
+ status: number;
260
+ };
261
+ }>, Record<never, never>>;
262
+ readImage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
263
+ position: z.ZodInt;
264
+ sequence: z.ZodInt;
265
+ thread: z.ZodString;
266
+ }, z.core.$strip>, z.ZodFile, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
267
+ UNAUTHORIZED: {
268
+ message: string;
269
+ status: number;
270
+ };
271
+ }>, {
272
+ IMAGE_NOT_FOUND: {
273
+ readonly message: 'No readable image of a message has this position';
274
+ readonly status: 404;
275
+ };
276
+ }>, Record<never, never>>;
277
+ forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
278
+ clientActionID: z.ZodUUID;
279
+ sequence: z.ZodInt;
280
+ thread: z.ZodString;
281
+ }, z.core.$strip>, z.ZodObject<{
282
+ forgottenAt: z.ZodDate;
283
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
284
+ UNAUTHORIZED: {
285
+ message: string;
286
+ status: number;
287
+ };
288
+ }>, {
289
+ CLIENT_ACTION_ID_REUSED: {
290
+ message: string;
291
+ status: number;
292
+ };
293
+ }>, {
294
+ RECORD_NOT_FOUND: {
295
+ message: string;
296
+ status: number;
297
+ };
298
+ }>, Record<never, never>>;
299
+ };
300
+ memory: {
301
+ export: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
302
+ clientActionID: z.ZodUUID;
303
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
304
+ chunk: string;
305
+ } | {
306
+ isComplete: true;
307
+ }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
308
+ chunk: string;
309
+ } | {
310
+ isComplete: true;
311
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
312
+ UNAUTHORIZED: {
313
+ message: string;
314
+ status: number;
315
+ };
316
+ }>, {
317
+ CLIENT_ACTION_ID_REUSED: {
318
+ message: string;
319
+ status: number;
320
+ };
321
+ }>, {
322
+ MEMORY_NOT_STARTED: {
323
+ message: string;
324
+ status: number;
325
+ };
326
+ }>, Record<never, never>>;
327
+ keepMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
328
+ clientActionID: z.ZodUUID;
329
+ firstSequence: z.ZodInt;
330
+ lastSequence: z.ZodInt;
331
+ thread: z.ZodString;
332
+ title: z.ZodString;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ momentID: z.ZodString;
335
+ shortID: 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
+ CLIENT_ACTION_ID_REUSED: {
343
+ message: string;
344
+ status: number;
345
+ };
346
+ }>, {
347
+ MEMORY_NOT_STARTED: {
348
+ message: string;
349
+ status: number;
350
+ };
351
+ BAD_SPAN: {
352
+ message: string;
353
+ status: number;
354
+ };
355
+ }>, Record<never, never>>;
356
+ listMoments: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
357
+ before: z.ZodOptional<z.ZodInt>;
358
+ includeRetired: z.ZodBoolean;
359
+ query: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ moments: z.ZodArray<z.ZodObject<{
362
+ editedAt: z.ZodNullable<z.ZodDate>;
363
+ keptAt: z.ZodDate;
364
+ keptBy: z.ZodEnum<{
365
+ model: "model";
366
+ owner: "owner";
367
+ }>;
368
+ momentID: z.ZodString;
369
+ shortID: z.ZodString;
370
+ state: z.ZodEnum<{
371
+ active: "active";
372
+ retired: "retired";
373
+ }>;
374
+ title: z.ZodNullable<z.ZodString>;
375
+ }, z.core.$strip>>;
376
+ next: z.ZodNullable<z.ZodInt>;
377
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
378
+ UNAUTHORIZED: {
379
+ message: string;
380
+ status: number;
381
+ };
382
+ }>, {
383
+ MEMORY_NOT_STARTED: {
384
+ message: string;
385
+ status: number;
386
+ };
387
+ }>, Record<never, never>>;
388
+ readMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
389
+ momentID: z.ZodString;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ editedAt: z.ZodNullable<z.ZodDate>;
392
+ keptAt: z.ZodDate;
393
+ keptBy: z.ZodEnum<{
394
+ model: "model";
395
+ owner: "owner";
396
+ }>;
397
+ momentID: z.ZodString;
398
+ shortID: z.ZodString;
399
+ state: z.ZodEnum<{
400
+ active: "active";
401
+ retired: "retired";
402
+ }>;
403
+ title: z.ZodNullable<z.ZodString>;
404
+ firstSequence: z.ZodInt;
405
+ lastSequence: z.ZodInt;
406
+ links: z.ZodArray<z.ZodObject<{
407
+ itemID: z.ZodString;
408
+ shortID: z.ZodString;
409
+ text: z.ZodNullable<z.ZodString>;
410
+ }, z.core.$strip>>;
411
+ note: z.ZodNullable<z.ZodObject<{
412
+ text: z.ZodString;
413
+ writtenAt: z.ZodDate;
414
+ }, z.core.$strip>>;
415
+ reflections: z.ZodArray<z.ZodObject<{
416
+ model: z.ZodString;
417
+ text: z.ZodNullable<z.ZodString>;
418
+ writtenAt: z.ZodDate;
419
+ reflectionID: z.ZodString;
420
+ }, z.core.$strip>>;
421
+ thread: z.ZodString;
422
+ titleBy: z.ZodEnum<{
423
+ model: "model";
424
+ owner: "owner";
425
+ }>;
426
+ version: z.ZodInt;
427
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
428
+ UNAUTHORIZED: {
429
+ message: string;
430
+ status: number;
431
+ };
432
+ }>, {
433
+ MEMORY_NOT_STARTED: {
434
+ message: string;
435
+ status: number;
436
+ };
437
+ MOMENT_NOT_FOUND: {
438
+ message: string;
439
+ status: number;
440
+ };
441
+ STALE_VERSION: {
442
+ message: string;
443
+ status: number;
444
+ };
445
+ }>, Record<never, never>>;
446
+ readMomentSpan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
447
+ momentID: z.ZodString;
448
+ after: z.ZodOptional<z.ZodInt>;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ records: z.ZodArray<z.ZodObject<{
451
+ isGap: z.ZodBoolean;
452
+ kind: z.ZodString;
453
+ recordedAt: z.ZodDate;
454
+ sequence: z.ZodInt;
455
+ text: z.ZodNullable<z.ZodString>;
456
+ tool: z.ZodNullable<z.ZodString>;
457
+ }, z.core.$strip>>;
458
+ next: z.ZodNullable<z.ZodInt>;
459
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
460
+ UNAUTHORIZED: {
461
+ message: string;
462
+ status: number;
463
+ };
464
+ }>, {
465
+ MEMORY_NOT_STARTED: {
466
+ message: string;
467
+ status: number;
468
+ };
469
+ MOMENT_NOT_FOUND: {
470
+ message: string;
471
+ status: number;
472
+ };
473
+ STALE_VERSION: {
474
+ message: string;
475
+ status: number;
476
+ };
477
+ }>, Record<never, never>>;
478
+ editMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
479
+ momentID: z.ZodString;
480
+ version: z.ZodInt;
481
+ clientActionID: z.ZodUUID;
482
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
+ kind: z.ZodLiteral<"title">;
484
+ title: z.ZodString;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ kind: z.ZodLiteral<"edges">;
487
+ firstSequence: z.ZodInt;
488
+ lastSequence: z.ZodInt;
489
+ }, z.core.$strip>, z.ZodObject<{
490
+ kind: z.ZodLiteral<"note">;
491
+ note: z.ZodString;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ kind: z.ZodLiteral<"reflection_removed">;
494
+ reflectionID: z.ZodString;
495
+ }, z.core.$strip>], "kind">;
496
+ }, z.core.$strip>, z.ZodObject<{
497
+ momentID: z.ZodString;
498
+ version: z.ZodInt;
499
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
500
+ UNAUTHORIZED: {
501
+ message: string;
502
+ status: number;
503
+ };
504
+ }>, {
505
+ MEMORY_NOT_STARTED: {
506
+ message: string;
507
+ status: number;
508
+ };
509
+ MOMENT_NOT_FOUND: {
510
+ message: string;
511
+ status: number;
512
+ };
513
+ STALE_VERSION: {
514
+ message: string;
515
+ status: number;
516
+ };
517
+ }>, {
518
+ CLIENT_ACTION_ID_REUSED: {
519
+ message: string;
520
+ status: number;
521
+ };
522
+ }>, {
523
+ BAD_SPAN: {
524
+ message: string;
525
+ status: number;
526
+ };
527
+ REFLECTION_NOT_FOUND: {
528
+ message: string;
529
+ status: number;
530
+ };
531
+ }>, Record<never, never>>;
532
+ linkMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
533
+ momentID: z.ZodString;
534
+ version: z.ZodInt;
535
+ clientActionID: z.ZodUUID;
536
+ isLinked: z.ZodBoolean;
537
+ itemID: z.ZodString;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ momentID: z.ZodString;
540
+ version: z.ZodInt;
541
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
542
+ UNAUTHORIZED: {
543
+ message: string;
544
+ status: number;
545
+ };
546
+ }>, {
547
+ MEMORY_NOT_STARTED: {
548
+ message: string;
549
+ status: number;
550
+ };
551
+ MOMENT_NOT_FOUND: {
552
+ message: string;
553
+ status: number;
554
+ };
555
+ STALE_VERSION: {
556
+ message: string;
557
+ status: number;
558
+ };
559
+ }>, {
560
+ CLIENT_ACTION_ID_REUSED: {
561
+ message: string;
562
+ status: number;
563
+ };
564
+ }>, {
565
+ MEMORY_ITEM_NOT_FOUND: {
566
+ message: string;
567
+ status: number;
568
+ };
569
+ ALREADY_LINKED: {
570
+ message: string;
571
+ status: number;
572
+ };
573
+ NOT_LINKED: {
574
+ message: string;
575
+ status: number;
576
+ };
577
+ }>, Record<never, never>>;
578
+ previewMomentDestroy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
579
+ momentID: z.ZodString;
580
+ version: z.ZodInt;
581
+ }, z.core.$strip>, z.ZodObject<{
582
+ keptAt: z.ZodDate;
583
+ keptBy: z.ZodEnum<{
584
+ model: "model";
585
+ owner: "owner";
586
+ }>;
587
+ kept: z.ZodObject<{
588
+ records: z.ZodInt;
589
+ }, z.core.$strip>;
590
+ lost: z.ZodObject<{
591
+ links: z.ZodInt;
592
+ texts: z.ZodInt;
593
+ }, z.core.$strip>;
594
+ momentID: z.ZodString;
595
+ note: z.ZodNullable<z.ZodString>;
596
+ reflections: z.ZodArray<z.ZodObject<{
597
+ model: z.ZodString;
598
+ text: z.ZodNullable<z.ZodString>;
599
+ writtenAt: z.ZodDate;
600
+ }, z.core.$strip>>;
601
+ shortID: z.ZodString;
602
+ state: z.ZodEnum<{
603
+ active: "active";
604
+ retired: "retired";
605
+ }>;
606
+ thread: z.ZodString;
607
+ title: z.ZodNullable<z.ZodString>;
608
+ version: z.ZodInt;
609
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
610
+ UNAUTHORIZED: {
611
+ message: string;
612
+ status: number;
613
+ };
614
+ }>, {
615
+ MEMORY_NOT_STARTED: {
616
+ message: string;
617
+ status: number;
618
+ };
619
+ MOMENT_NOT_FOUND: {
620
+ message: string;
621
+ status: number;
622
+ };
623
+ STALE_VERSION: {
624
+ message: string;
625
+ status: number;
626
+ };
627
+ }>, Record<never, never>>;
628
+ destroyMoment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
629
+ momentID: z.ZodString;
630
+ version: z.ZodInt;
631
+ clientActionID: z.ZodUUID;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ momentID: z.ZodString;
634
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
635
+ UNAUTHORIZED: {
636
+ message: string;
637
+ status: number;
638
+ };
639
+ }>, {
640
+ MEMORY_NOT_STARTED: {
641
+ message: string;
642
+ status: number;
643
+ };
644
+ MOMENT_NOT_FOUND: {
645
+ message: string;
646
+ status: number;
647
+ };
648
+ STALE_VERSION: {
649
+ message: string;
650
+ status: number;
651
+ };
652
+ }>, {
653
+ CLIENT_ACTION_ID_REUSED: {
654
+ message: string;
655
+ status: number;
656
+ };
657
+ }>, Record<never, never>>;
658
+ listItems: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
659
+ after: z.ZodOptional<z.ZodString>;
660
+ kind: z.ZodOptional<z.ZodEnum<{
661
+ fact: "fact";
662
+ self: "self";
663
+ }>>;
664
+ limit: z.ZodOptional<z.ZodInt>;
665
+ state: z.ZodEnum<{
666
+ active: "active";
667
+ forgotten: "forgotten";
668
+ retired: "retired";
669
+ }>;
670
+ }, z.core.$strip>, z.ZodObject<{
671
+ items: z.ZodArray<z.ZodObject<{
672
+ changedAt: z.ZodDate;
673
+ createdAt: z.ZodDate;
674
+ forgottenAt: z.ZodNullable<z.ZodDate>;
675
+ isPinned: z.ZodBoolean;
676
+ isSensitive: z.ZodBoolean;
677
+ itemID: z.ZodString;
678
+ kind: z.ZodEnum<{
679
+ fact: "fact";
680
+ self: "self";
681
+ }>;
682
+ origin: z.ZodEnum<{
683
+ conversation: "conversation";
684
+ lapse: "lapse";
685
+ memory_writer: "memory_writer";
686
+ owner: "owner";
687
+ task: "task";
688
+ }>;
689
+ shortID: z.ZodString;
690
+ source: z.ZodEnum<{
691
+ owner: "owner";
692
+ owner_data: "owner_data";
693
+ untrusted: "untrusted";
694
+ }>;
695
+ state: z.ZodEnum<{
696
+ active: "active";
697
+ forgetting: "forgetting";
698
+ forgotten: "forgotten";
699
+ retired: "retired";
700
+ }>;
701
+ status: z.ZodEnum<{
702
+ readable: "readable";
703
+ shredded: "shredded";
704
+ unreadable: "unreadable";
705
+ }>;
706
+ subject: z.ZodEnum<{
707
+ owner: "owner";
708
+ self: "self";
709
+ shared: "shared";
710
+ }>;
711
+ text: z.ZodOptional<z.ZodString>;
712
+ until: z.ZodNullable<z.ZodDate>;
713
+ version: z.ZodInt;
714
+ }, z.core.$strip>>;
715
+ next: z.ZodNullable<z.ZodString>;
716
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
717
+ UNAUTHORIZED: {
718
+ message: string;
719
+ status: number;
720
+ };
721
+ }>, {
722
+ MEMORY_NOT_STARTED: {
723
+ message: string;
724
+ status: number;
725
+ };
726
+ }>, {
727
+ INVALID_CURSOR: {
728
+ message: string;
729
+ status: number;
730
+ };
731
+ }>, Record<never, never>>;
732
+ findItems: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
733
+ query: z.ZodString;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ items: z.ZodArray<z.ZodObject<{
736
+ changedAt: z.ZodDate;
737
+ createdAt: z.ZodDate;
738
+ forgottenAt: z.ZodNullable<z.ZodDate>;
739
+ isPinned: z.ZodBoolean;
740
+ isSensitive: z.ZodBoolean;
741
+ itemID: z.ZodString;
742
+ kind: z.ZodEnum<{
743
+ fact: "fact";
744
+ self: "self";
745
+ }>;
746
+ origin: z.ZodEnum<{
747
+ conversation: "conversation";
748
+ lapse: "lapse";
749
+ memory_writer: "memory_writer";
750
+ owner: "owner";
751
+ task: "task";
752
+ }>;
753
+ shortID: z.ZodString;
754
+ source: z.ZodEnum<{
755
+ owner: "owner";
756
+ owner_data: "owner_data";
757
+ untrusted: "untrusted";
758
+ }>;
759
+ state: z.ZodEnum<{
760
+ active: "active";
761
+ forgetting: "forgetting";
762
+ forgotten: "forgotten";
763
+ retired: "retired";
764
+ }>;
765
+ status: z.ZodEnum<{
766
+ readable: "readable";
767
+ shredded: "shredded";
768
+ unreadable: "unreadable";
769
+ }>;
770
+ subject: z.ZodEnum<{
771
+ owner: "owner";
772
+ self: "self";
773
+ shared: "shared";
774
+ }>;
775
+ text: z.ZodOptional<z.ZodString>;
776
+ until: z.ZodNullable<z.ZodDate>;
777
+ version: z.ZodInt;
778
+ score: z.ZodOptional<z.ZodNumber>;
779
+ similarity: z.ZodOptional<z.ZodNumber>;
780
+ }, z.core.$strip>>;
781
+ searchMode: z.ZodEnum<{
782
+ hybrid: "hybrid";
783
+ keyword: "keyword";
784
+ "keyword-fallback": "keyword-fallback";
785
+ }>;
786
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
787
+ UNAUTHORIZED: {
788
+ message: string;
789
+ status: number;
790
+ };
791
+ }>, {
792
+ MEMORY_NOT_STARTED: {
793
+ message: string;
794
+ status: number;
795
+ };
796
+ }>, Record<never, never>>;
797
+ readPinnedCore: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
798
+ budget: z.ZodInt;
799
+ items: z.ZodArray<z.ZodObject<{
800
+ changedAt: z.ZodDate;
801
+ createdAt: z.ZodDate;
802
+ forgottenAt: z.ZodNullable<z.ZodDate>;
803
+ isPinned: z.ZodBoolean;
804
+ isSensitive: z.ZodBoolean;
805
+ itemID: z.ZodString;
806
+ kind: z.ZodEnum<{
807
+ fact: "fact";
808
+ self: "self";
809
+ }>;
810
+ origin: z.ZodEnum<{
811
+ conversation: "conversation";
812
+ lapse: "lapse";
813
+ memory_writer: "memory_writer";
814
+ owner: "owner";
815
+ task: "task";
816
+ }>;
817
+ shortID: z.ZodString;
818
+ source: z.ZodEnum<{
819
+ owner: "owner";
820
+ owner_data: "owner_data";
821
+ untrusted: "untrusted";
822
+ }>;
823
+ state: z.ZodEnum<{
824
+ active: "active";
825
+ forgetting: "forgetting";
826
+ forgotten: "forgotten";
827
+ retired: "retired";
828
+ }>;
829
+ status: z.ZodEnum<{
830
+ readable: "readable";
831
+ shredded: "shredded";
832
+ unreadable: "unreadable";
833
+ }>;
834
+ subject: z.ZodEnum<{
835
+ owner: "owner";
836
+ self: "self";
837
+ shared: "shared";
838
+ }>;
839
+ text: z.ZodOptional<z.ZodString>;
840
+ until: z.ZodNullable<z.ZodDate>;
841
+ version: z.ZodInt;
842
+ }, z.core.$strip>>;
843
+ tokens: z.ZodInt;
844
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
845
+ UNAUTHORIZED: {
846
+ message: string;
847
+ status: number;
848
+ };
849
+ }>, {
850
+ MEMORY_NOT_STARTED: {
851
+ message: string;
852
+ status: number;
853
+ };
854
+ }>, Record<never, never>>;
855
+ readItem: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
856
+ itemID: z.ZodString;
857
+ }, z.core.$strip>, z.ZodObject<{
858
+ changedAt: z.ZodDate;
859
+ createdAt: z.ZodDate;
860
+ forgottenAt: z.ZodNullable<z.ZodDate>;
861
+ isPinned: z.ZodBoolean;
862
+ isSensitive: z.ZodBoolean;
863
+ itemID: z.ZodString;
864
+ kind: z.ZodEnum<{
865
+ fact: "fact";
866
+ self: "self";
867
+ }>;
868
+ origin: z.ZodEnum<{
869
+ conversation: "conversation";
870
+ lapse: "lapse";
871
+ memory_writer: "memory_writer";
872
+ owner: "owner";
873
+ task: "task";
874
+ }>;
875
+ shortID: z.ZodString;
876
+ source: z.ZodEnum<{
877
+ owner: "owner";
878
+ owner_data: "owner_data";
879
+ untrusted: "untrusted";
880
+ }>;
881
+ state: z.ZodEnum<{
882
+ active: "active";
883
+ forgetting: "forgetting";
884
+ forgotten: "forgotten";
885
+ retired: "retired";
886
+ }>;
887
+ status: z.ZodEnum<{
888
+ readable: "readable";
889
+ shredded: "shredded";
890
+ unreadable: "unreadable";
891
+ }>;
892
+ subject: z.ZodEnum<{
893
+ owner: "owner";
894
+ self: "self";
895
+ shared: "shared";
896
+ }>;
897
+ text: z.ZodOptional<z.ZodString>;
898
+ until: z.ZodNullable<z.ZodDate>;
899
+ version: z.ZodInt;
900
+ versions: z.ZodArray<z.ZodObject<{
901
+ change: z.ZodEnum<{
902
+ created: "created";
903
+ edited: "edited";
904
+ restored: "restored";
905
+ retired: "retired";
906
+ undone: "undone";
907
+ }>;
908
+ checkerModel: z.ZodNullable<z.ZodString>;
909
+ checks: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
910
+ evidence: z.ZodNullable<z.ZodObject<{
911
+ end: z.ZodInt;
912
+ message: z.ZodNullable<z.ZodObject<{
913
+ status: z.ZodEnum<{
914
+ missing: "missing";
915
+ readable: "readable";
916
+ shredded: "shredded";
917
+ unreadable: "unreadable";
918
+ }>;
919
+ text: z.ZodOptional<z.ZodString>;
920
+ }, z.core.$strip>>;
921
+ sequence: z.ZodInt;
922
+ start: z.ZodInt;
923
+ }, z.core.$strip>>;
924
+ evidenceQuote: z.ZodNullable<z.ZodString>;
925
+ image: z.ZodNullable<z.ZodObject<{
926
+ position: z.ZodInt;
927
+ sequence: z.ZodInt;
928
+ thread: z.ZodString;
929
+ }, z.core.$strip>>;
930
+ origin: z.ZodEnum<{
931
+ conversation: "conversation";
932
+ lapse: "lapse";
933
+ memory_writer: "memory_writer";
934
+ owner: "owner";
935
+ task: "task";
936
+ }>;
937
+ proposalID: z.ZodNullable<z.ZodString>;
938
+ recordedAt: z.ZodDate;
939
+ source: z.ZodEnum<{
940
+ owner: "owner";
941
+ owner_data: "owner_data";
942
+ untrusted: "untrusted";
943
+ }>;
944
+ state: z.ZodEnum<{
945
+ active: "active";
946
+ retired: "retired";
947
+ }>;
948
+ status: z.ZodEnum<{
949
+ readable: "readable";
950
+ shredded: "shredded";
951
+ unreadable: "unreadable";
952
+ }>;
953
+ taskID: z.ZodNullable<z.ZodString>;
954
+ text: z.ZodOptional<z.ZodString>;
955
+ version: z.ZodInt;
956
+ writerModel: z.ZodNullable<z.ZodString>;
957
+ }, z.core.$strip>>;
958
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
959
+ UNAUTHORIZED: {
960
+ message: string;
961
+ status: number;
962
+ };
963
+ }>, {
964
+ MEMORY_NOT_STARTED: {
965
+ message: string;
966
+ status: number;
967
+ };
968
+ }>, {
969
+ MEMORY_ITEM_NOT_FOUND: {
970
+ message: string;
971
+ status: number;
972
+ };
973
+ }>, Record<never, never>>;
974
+ retire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
975
+ clientActionID: z.ZodUUID;
976
+ itemID: z.ZodString;
977
+ version: z.ZodInt;
978
+ }, z.core.$strip>, z.ZodObject<{
979
+ itemID: z.ZodString;
980
+ version: z.ZodInt;
981
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
982
+ UNAUTHORIZED: {
983
+ message: string;
984
+ status: number;
985
+ };
986
+ }>, {
987
+ MEMORY_NOT_STARTED: {
988
+ message: string;
989
+ status: number;
990
+ };
991
+ }>, {
992
+ CLIENT_ACTION_ID_REUSED: {
993
+ message: string;
994
+ status: number;
995
+ };
996
+ }>, {
997
+ MEMORY_ITEM_NOT_FOUND: {
998
+ message: string;
999
+ status: number;
1000
+ };
1001
+ STALE_VERSION: {
1002
+ message: string;
1003
+ status: number;
1004
+ };
1005
+ WRONG_STATE: {
1006
+ message: string;
1007
+ status: number;
1008
+ };
1009
+ }>, Record<never, never>>;
1010
+ restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1011
+ clientActionID: z.ZodUUID;
1012
+ itemID: z.ZodString;
1013
+ version: z.ZodInt;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ itemID: z.ZodString;
1016
+ version: z.ZodInt;
1017
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1018
+ UNAUTHORIZED: {
1019
+ message: string;
1020
+ status: number;
1021
+ };
1022
+ }>, {
1023
+ MEMORY_NOT_STARTED: {
1024
+ message: string;
1025
+ status: number;
1026
+ };
1027
+ }>, {
1028
+ CLIENT_ACTION_ID_REUSED: {
1029
+ message: string;
1030
+ status: number;
1031
+ };
1032
+ }>, {
1033
+ MEMORY_ITEM_NOT_FOUND: {
1034
+ message: string;
1035
+ status: number;
1036
+ };
1037
+ STALE_VERSION: {
1038
+ message: string;
1039
+ status: number;
1040
+ };
1041
+ WRONG_STATE: {
1042
+ message: string;
1043
+ status: number;
1044
+ };
1045
+ }>, Record<never, never>>;
1046
+ listNotices: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1047
+ thread: z.ZodString;
1048
+ }, z.core.$strip>, z.ZodObject<{
1049
+ notices: z.ZodArray<z.ZodObject<{
1050
+ entries: z.ZodArray<z.ZodObject<{
1051
+ change: z.ZodEnum<{
1052
+ created: "created";
1053
+ edited: "edited";
1054
+ proposed: "proposed";
1055
+ restored: "restored";
1056
+ retired: "retired";
1057
+ undone: "undone";
1058
+ }>;
1059
+ isKept: z.ZodBoolean;
1060
+ item: z.ZodNullable<z.ZodObject<{
1061
+ changedAt: z.ZodDate;
1062
+ createdAt: z.ZodDate;
1063
+ forgottenAt: z.ZodNullable<z.ZodDate>;
1064
+ isPinned: z.ZodBoolean;
1065
+ isSensitive: z.ZodBoolean;
1066
+ itemID: z.ZodString;
1067
+ kind: z.ZodEnum<{
1068
+ fact: "fact";
1069
+ self: "self";
1070
+ }>;
1071
+ origin: z.ZodEnum<{
1072
+ conversation: "conversation";
1073
+ lapse: "lapse";
1074
+ memory_writer: "memory_writer";
1075
+ owner: "owner";
1076
+ task: "task";
1077
+ }>;
1078
+ shortID: z.ZodString;
1079
+ source: z.ZodEnum<{
1080
+ owner: "owner";
1081
+ owner_data: "owner_data";
1082
+ untrusted: "untrusted";
1083
+ }>;
1084
+ state: z.ZodEnum<{
1085
+ active: "active";
1086
+ forgetting: "forgetting";
1087
+ forgotten: "forgotten";
1088
+ retired: "retired";
1089
+ }>;
1090
+ status: z.ZodEnum<{
1091
+ readable: "readable";
1092
+ shredded: "shredded";
1093
+ unreadable: "unreadable";
1094
+ }>;
1095
+ subject: z.ZodEnum<{
1096
+ owner: "owner";
1097
+ self: "self";
1098
+ shared: "shared";
1099
+ }>;
1100
+ text: z.ZodOptional<z.ZodString>;
1101
+ until: z.ZodNullable<z.ZodDate>;
1102
+ version: z.ZodInt;
1103
+ change: z.ZodEnum<{
1104
+ created: "created";
1105
+ edited: "edited";
1106
+ restored: "restored";
1107
+ retired: "retired";
1108
+ undone: "undone";
1109
+ }>;
1110
+ }, z.core.$strip>>;
1111
+ itemID: z.ZodString;
1112
+ proposalID: z.ZodNullable<z.ZodString>;
1113
+ sequence: z.ZodInt;
1114
+ version: z.ZodNullable<z.ZodInt>;
1115
+ }, z.core.$strip>>;
1116
+ kind: z.ZodEnum<{
1117
+ batch: "batch";
1118
+ catch_up: "catch_up";
1119
+ run: "run";
1120
+ turn: "turn";
1121
+ }>;
1122
+ messageSequence: z.ZodNullable<z.ZodInt>;
1123
+ noticeKey: z.ZodString;
1124
+ proposed: z.ZodInt;
1125
+ remembered: z.ZodInt;
1126
+ retired: z.ZodInt;
1127
+ sequence: z.ZodInt;
1128
+ }, z.core.$strip>>;
1129
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1130
+ UNAUTHORIZED: {
1131
+ message: string;
1132
+ status: number;
1133
+ };
1134
+ }>, {
1135
+ MEMORY_NOT_STARTED: {
1136
+ message: string;
1137
+ status: number;
1138
+ };
1139
+ }>, Record<never, never>>;
1140
+ undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1141
+ clientActionID: z.ZodUUID;
1142
+ itemID: z.ZodString;
1143
+ version: z.ZodInt;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ itemID: z.ZodString;
1146
+ version: z.ZodInt;
1147
+ }, 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>, {
1148
+ UNAUTHORIZED: {
1149
+ message: string;
1150
+ status: number;
1151
+ };
1152
+ }>, {
1153
+ MEMORY_NOT_STARTED: {
1154
+ message: string;
1155
+ status: number;
1156
+ };
1157
+ }>, {
1158
+ CLIENT_ACTION_ID_REUSED: {
1159
+ message: string;
1160
+ status: number;
1161
+ };
1162
+ }>, {
1163
+ MEMORY_ITEM_NOT_FOUND: {
1164
+ message: string;
1165
+ status: number;
1166
+ };
1167
+ STALE_VERSION: {
1168
+ message: string;
1169
+ status: number;
1170
+ };
1171
+ WRONG_STATE: {
1172
+ message: string;
1173
+ status: number;
1174
+ };
1175
+ }>, {
1176
+ PINNED_CORE_FULL: {
1177
+ message: string;
1178
+ status: number;
1179
+ };
1180
+ }>, Record<never, never>>;
1181
+ keep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1182
+ clientActionID: z.ZodUUID;
1183
+ itemID: z.ZodString;
1184
+ version: z.ZodInt;
1185
+ }, z.core.$strip>, z.ZodObject<{
1186
+ itemID: z.ZodString;
1187
+ version: z.ZodInt;
1188
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1189
+ UNAUTHORIZED: {
1190
+ message: string;
1191
+ status: number;
1192
+ };
1193
+ }>, {
1194
+ MEMORY_NOT_STARTED: {
1195
+ message: string;
1196
+ status: number;
1197
+ };
1198
+ }>, {
1199
+ CLIENT_ACTION_ID_REUSED: {
1200
+ message: string;
1201
+ status: number;
1202
+ };
1203
+ }>, {
1204
+ MEMORY_ITEM_NOT_FOUND: {
1205
+ message: string;
1206
+ status: number;
1207
+ };
1208
+ STALE_VERSION: {
1209
+ message: string;
1210
+ status: number;
1211
+ };
1212
+ WRONG_STATE: {
1213
+ message: string;
1214
+ status: number;
1215
+ };
1216
+ }>, Record<never, never>>;
1217
+ previewForget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1218
+ itemID: z.ZodString;
1219
+ version: z.ZodInt;
1220
+ }, z.core.$strip>, z.ZodObject<{
1221
+ changedAt: z.ZodDate;
1222
+ createdAt: z.ZodDate;
1223
+ forgottenAt: z.ZodNullable<z.ZodDate>;
1224
+ isPinned: z.ZodBoolean;
1225
+ isSensitive: z.ZodBoolean;
1226
+ itemID: z.ZodString;
1227
+ kind: z.ZodEnum<{
1228
+ fact: "fact";
1229
+ self: "self";
1230
+ }>;
1231
+ origin: z.ZodEnum<{
1232
+ conversation: "conversation";
1233
+ lapse: "lapse";
1234
+ memory_writer: "memory_writer";
1235
+ owner: "owner";
1236
+ task: "task";
1237
+ }>;
1238
+ shortID: z.ZodString;
1239
+ source: z.ZodEnum<{
1240
+ owner: "owner";
1241
+ owner_data: "owner_data";
1242
+ untrusted: "untrusted";
1243
+ }>;
1244
+ state: z.ZodEnum<{
1245
+ active: "active";
1246
+ forgetting: "forgetting";
1247
+ forgotten: "forgotten";
1248
+ retired: "retired";
1249
+ }>;
1250
+ status: z.ZodEnum<{
1251
+ readable: "readable";
1252
+ shredded: "shredded";
1253
+ unreadable: "unreadable";
1254
+ }>;
1255
+ subject: z.ZodEnum<{
1256
+ owner: "owner";
1257
+ self: "self";
1258
+ shared: "shared";
1259
+ }>;
1260
+ text: z.ZodOptional<z.ZodString>;
1261
+ until: z.ZodNullable<z.ZodDate>;
1262
+ version: z.ZodInt;
1263
+ versions: z.ZodArray<z.ZodObject<{
1264
+ change: z.ZodEnum<{
1265
+ created: "created";
1266
+ edited: "edited";
1267
+ restored: "restored";
1268
+ retired: "retired";
1269
+ undone: "undone";
1270
+ }>;
1271
+ checkerModel: z.ZodNullable<z.ZodString>;
1272
+ checks: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1273
+ evidence: z.ZodNullable<z.ZodObject<{
1274
+ end: z.ZodInt;
1275
+ message: z.ZodNullable<z.ZodObject<{
1276
+ status: z.ZodEnum<{
1277
+ missing: "missing";
1278
+ readable: "readable";
1279
+ shredded: "shredded";
1280
+ unreadable: "unreadable";
1281
+ }>;
1282
+ text: z.ZodOptional<z.ZodString>;
1283
+ }, z.core.$strip>>;
1284
+ sequence: z.ZodInt;
1285
+ start: z.ZodInt;
1286
+ }, z.core.$strip>>;
1287
+ evidenceQuote: z.ZodNullable<z.ZodString>;
1288
+ image: z.ZodNullable<z.ZodObject<{
1289
+ position: z.ZodInt;
1290
+ sequence: z.ZodInt;
1291
+ thread: z.ZodString;
1292
+ }, z.core.$strip>>;
1293
+ origin: z.ZodEnum<{
1294
+ conversation: "conversation";
1295
+ lapse: "lapse";
1296
+ memory_writer: "memory_writer";
1297
+ owner: "owner";
1298
+ task: "task";
1299
+ }>;
1300
+ proposalID: z.ZodNullable<z.ZodString>;
1301
+ recordedAt: z.ZodDate;
1302
+ source: z.ZodEnum<{
1303
+ owner: "owner";
1304
+ owner_data: "owner_data";
1305
+ untrusted: "untrusted";
1306
+ }>;
1307
+ state: z.ZodEnum<{
1308
+ active: "active";
1309
+ retired: "retired";
1310
+ }>;
1311
+ status: z.ZodEnum<{
1312
+ readable: "readable";
1313
+ shredded: "shredded";
1314
+ unreadable: "unreadable";
1315
+ }>;
1316
+ taskID: z.ZodNullable<z.ZodString>;
1317
+ text: z.ZodOptional<z.ZodString>;
1318
+ version: z.ZodInt;
1319
+ writerModel: z.ZodNullable<z.ZodString>;
1320
+ }, z.core.$strip>>;
1321
+ lost: z.ZodObject<{
1322
+ evidenceMessages: z.ZodInt;
1323
+ proposals: z.ZodInt;
1324
+ }, z.core.$strip>;
1325
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1326
+ UNAUTHORIZED: {
1327
+ message: string;
1328
+ status: number;
1329
+ };
1330
+ }>, {
1331
+ MEMORY_NOT_STARTED: {
1332
+ message: string;
1333
+ status: number;
1334
+ };
1335
+ }>, {
1336
+ MEMORY_ITEM_NOT_FOUND: {
1337
+ message: string;
1338
+ status: number;
1339
+ };
1340
+ STALE_VERSION: {
1341
+ message: string;
1342
+ status: number;
1343
+ };
1344
+ }>, Record<never, never>>;
1345
+ forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1346
+ clientActionID: z.ZodUUID;
1347
+ itemID: z.ZodString;
1348
+ version: z.ZodInt;
1349
+ }, z.core.$strip>, z.ZodObject<{
1350
+ itemID: z.ZodString;
1351
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1352
+ UNAUTHORIZED: {
1353
+ message: string;
1354
+ status: number;
1355
+ };
1356
+ }>, {
1357
+ MEMORY_NOT_STARTED: {
1358
+ message: string;
1359
+ status: number;
1360
+ };
1361
+ }>, {
1362
+ CLIENT_ACTION_ID_REUSED: {
1363
+ message: string;
1364
+ status: number;
1365
+ };
1366
+ }>, {
1367
+ MEMORY_ITEM_NOT_FOUND: {
1368
+ message: string;
1369
+ status: number;
1370
+ };
1371
+ STALE_VERSION: {
1372
+ message: string;
1373
+ status: number;
1374
+ };
1375
+ WRONG_STATE: {
1376
+ message: string;
1377
+ status: number;
1378
+ };
1379
+ }>, Record<never, never>>;
1380
+ previewForgetRetired: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1381
+ hasMore: z.ZodBoolean;
1382
+ items: z.ZodArray<z.ZodObject<{
1383
+ changedAt: z.ZodDate;
1384
+ createdAt: z.ZodDate;
1385
+ forgottenAt: z.ZodNullable<z.ZodDate>;
1386
+ isPinned: z.ZodBoolean;
1387
+ isSensitive: z.ZodBoolean;
1388
+ itemID: z.ZodString;
1389
+ kind: z.ZodEnum<{
1390
+ fact: "fact";
1391
+ self: "self";
1392
+ }>;
1393
+ origin: z.ZodEnum<{
1394
+ conversation: "conversation";
1395
+ lapse: "lapse";
1396
+ memory_writer: "memory_writer";
1397
+ owner: "owner";
1398
+ task: "task";
1399
+ }>;
1400
+ shortID: z.ZodString;
1401
+ source: z.ZodEnum<{
1402
+ owner: "owner";
1403
+ owner_data: "owner_data";
1404
+ untrusted: "untrusted";
1405
+ }>;
1406
+ state: z.ZodEnum<{
1407
+ active: "active";
1408
+ forgetting: "forgetting";
1409
+ forgotten: "forgotten";
1410
+ retired: "retired";
1411
+ }>;
1412
+ status: z.ZodEnum<{
1413
+ readable: "readable";
1414
+ shredded: "shredded";
1415
+ unreadable: "unreadable";
1416
+ }>;
1417
+ subject: z.ZodEnum<{
1418
+ owner: "owner";
1419
+ self: "self";
1420
+ shared: "shared";
1421
+ }>;
1422
+ text: z.ZodOptional<z.ZodString>;
1423
+ until: z.ZodNullable<z.ZodDate>;
1424
+ version: z.ZodInt;
1425
+ lost: z.ZodObject<{
1426
+ evidenceMessages: z.ZodInt;
1427
+ proposals: z.ZodInt;
1428
+ }, z.core.$strip>;
1429
+ }, z.core.$strip>>;
1430
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1431
+ UNAUTHORIZED: {
1432
+ message: string;
1433
+ status: number;
1434
+ };
1435
+ }>, {
1436
+ MEMORY_NOT_STARTED: {
1437
+ message: string;
1438
+ status: number;
1439
+ };
1440
+ }>, Record<never, never>>;
1441
+ forgetRetired: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1442
+ clientActionID: z.ZodUUID;
1443
+ targets: z.ZodArray<z.ZodObject<{
1444
+ itemID: z.ZodString;
1445
+ version: z.ZodInt;
1446
+ }, z.core.$strip>>;
1447
+ }, z.core.$strip>, z.ZodObject<{
1448
+ deleted: z.ZodArray<z.ZodString>;
1449
+ pending: z.ZodArray<z.ZodString>;
1450
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1451
+ UNAUTHORIZED: {
1452
+ message: string;
1453
+ status: number;
1454
+ };
1455
+ }>, {
1456
+ MEMORY_NOT_STARTED: {
1457
+ message: string;
1458
+ status: number;
1459
+ };
1460
+ }>, {
1461
+ CLIENT_ACTION_ID_REUSED: {
1462
+ message: string;
1463
+ status: number;
1464
+ };
1465
+ }>, {
1466
+ MEMORY_ITEM_NOT_FOUND: {
1467
+ message: string;
1468
+ status: number;
1469
+ };
1470
+ STALE_VERSION: {
1471
+ message: string;
1472
+ status: number;
1473
+ };
1474
+ WRONG_STATE: {
1475
+ message: string;
1476
+ status: number;
1477
+ };
1478
+ }>, Record<never, never>>;
1479
+ readForgetStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1480
+ itemIDs: z.ZodArray<z.ZodString>;
1481
+ }, z.core.$strip>, z.ZodObject<{
1482
+ deleted: z.ZodArray<z.ZodString>;
1483
+ pending: z.ZodArray<z.ZodString>;
1484
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1485
+ UNAUTHORIZED: {
1486
+ message: string;
1487
+ status: number;
1488
+ };
1489
+ }>, {
1490
+ MEMORY_NOT_STARTED: {
1491
+ message: string;
1492
+ status: number;
1493
+ };
1494
+ }>, Record<never, never>>;
1495
+ pin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1496
+ clientActionID: z.ZodUUID;
1497
+ itemID: z.ZodString;
1498
+ version: z.ZodInt;
1499
+ isPinned: z.ZodBoolean;
1500
+ }, z.core.$strip>, z.ZodObject<{
1501
+ isPinned: z.ZodBoolean;
1502
+ itemID: z.ZodString;
1503
+ }, 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>, {
1504
+ UNAUTHORIZED: {
1505
+ message: string;
1506
+ status: number;
1507
+ };
1508
+ }>, {
1509
+ MEMORY_NOT_STARTED: {
1510
+ message: string;
1511
+ status: number;
1512
+ };
1513
+ }>, {
1514
+ CLIENT_ACTION_ID_REUSED: {
1515
+ message: string;
1516
+ status: number;
1517
+ };
1518
+ }>, {
1519
+ MEMORY_ITEM_NOT_FOUND: {
1520
+ message: string;
1521
+ status: number;
1522
+ };
1523
+ STALE_VERSION: {
1524
+ message: string;
1525
+ status: number;
1526
+ };
1527
+ WRONG_STATE: {
1528
+ message: string;
1529
+ status: number;
1530
+ };
1531
+ }>, {
1532
+ PINNED_CORE_FULL: {
1533
+ message: string;
1534
+ status: number;
1535
+ };
1536
+ }>, Record<never, never>>;
1537
+ markSensitive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1538
+ clientActionID: z.ZodUUID;
1539
+ isSensitive: z.ZodBoolean;
1540
+ itemID: z.ZodString;
1541
+ }, z.core.$strip>, z.ZodObject<{
1542
+ isSensitive: z.ZodBoolean;
1543
+ itemID: z.ZodString;
1544
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1545
+ UNAUTHORIZED: {
1546
+ message: string;
1547
+ status: number;
1548
+ };
1549
+ }>, {
1550
+ MEMORY_NOT_STARTED: {
1551
+ message: string;
1552
+ status: number;
1553
+ };
1554
+ }>, {
1555
+ CLIENT_ACTION_ID_REUSED: {
1556
+ message: string;
1557
+ status: number;
1558
+ };
1559
+ }>, {
1560
+ MEMORY_ITEM_NOT_FOUND: {
1561
+ message: string;
1562
+ status: number;
1563
+ };
1564
+ STALE_VERSION: {
1565
+ message: string;
1566
+ status: number;
1567
+ };
1568
+ WRONG_STATE: {
1569
+ message: string;
1570
+ status: number;
1571
+ };
1572
+ }>, Record<never, never>>;
1573
+ listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1574
+ proposals: z.ZodArray<z.ZodObject<{
1575
+ actionHash: z.ZodString;
1576
+ createdAt: z.ZodDate;
1577
+ evidence: z.ZodNullable<z.ZodObject<{
1578
+ end: z.ZodInt;
1579
+ message: z.ZodNullable<z.ZodObject<{
1580
+ status: z.ZodEnum<{
1581
+ missing: "missing";
1582
+ readable: "readable";
1583
+ shredded: "shredded";
1584
+ unreadable: "unreadable";
1585
+ }>;
1586
+ text: z.ZodOptional<z.ZodString>;
1587
+ }, z.core.$strip>>;
1588
+ sequence: z.ZodInt;
1589
+ start: z.ZodInt;
1590
+ }, z.core.$strip>>;
1591
+ image: z.ZodNullable<z.ZodObject<{
1592
+ position: z.ZodInt;
1593
+ sequence: z.ZodInt;
1594
+ thread: z.ZodString;
1595
+ }, z.core.$strip>>;
1596
+ isPinned: z.ZodBoolean;
1597
+ isSensitive: z.ZodBoolean;
1598
+ itemID: z.ZodString;
1599
+ kind: z.ZodEnum<{
1600
+ fact: "fact";
1601
+ self: "self";
1602
+ }>;
1603
+ lapseAt: z.ZodDate;
1604
+ operation: z.ZodEnum<{
1605
+ pin: "pin";
1606
+ remember: "remember";
1607
+ retire: "retire";
1608
+ }>;
1609
+ origin: z.ZodEnum<{
1610
+ conversation: "conversation";
1611
+ memory_writer: "memory_writer";
1612
+ owner: "owner";
1613
+ task: "task";
1614
+ }>;
1615
+ proposalID: z.ZodString;
1616
+ quote: z.ZodNullable<z.ZodString>;
1617
+ reason: z.ZodEnum<{
1618
+ ambiguous_target: "ambiguous_target";
1619
+ checker_not_asserted: "checker_not_asserted";
1620
+ checker_unreachable: "checker_unreachable";
1621
+ checker_unsure: "checker_unsure";
1622
+ forgotten_evidence: "forgotten_evidence";
1623
+ from_photo: "from_photo";
1624
+ invisible_character: "invisible_character";
1625
+ no_quote: "no_quote";
1626
+ other: "other";
1627
+ pinned: "pinned";
1628
+ quote_in_quoted_block: "quote_in_quoted_block";
1629
+ quote_not_typed: "quote_not_typed";
1630
+ self_note: "self_note";
1631
+ sensitive: "sensitive";
1632
+ token_missing: "token_missing";
1633
+ }>;
1634
+ source: z.ZodEnum<{
1635
+ owner: "owner";
1636
+ owner_data: "owner_data";
1637
+ untrusted: "untrusted";
1638
+ }>;
1639
+ sources: z.ZodArray<z.ZodObject<{
1640
+ origin: z.ZodEnum<{
1641
+ conversation: "conversation";
1642
+ memory_writer: "memory_writer";
1643
+ owner: "owner";
1644
+ task: "task";
1645
+ }>;
1646
+ proposedAt: z.ZodDate;
1647
+ thread: z.ZodNullable<z.ZodString>;
1648
+ }, z.core.$strip>>;
1649
+ subject: z.ZodEnum<{
1650
+ owner: "owner";
1651
+ self: "self";
1652
+ shared: "shared";
1653
+ }>;
1654
+ targetVersion: z.ZodNullable<z.ZodInt>;
1655
+ text: z.ZodString;
1656
+ until: z.ZodNullable<z.ZodDate>;
1657
+ }, z.core.$strip>>;
1658
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1659
+ UNAUTHORIZED: {
1660
+ message: string;
1661
+ status: number;
1662
+ };
1663
+ }>, {
1664
+ MEMORY_NOT_STARTED: {
1665
+ message: string;
1666
+ status: number;
1667
+ };
1668
+ }>, Record<never, never>>;
1669
+ approveProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1670
+ answers: z.ZodArray<z.ZodObject<{
1671
+ actionHash: z.ZodString;
1672
+ clientActionID: z.ZodUUID;
1673
+ proposalID: z.ZodString;
1674
+ editedText: z.ZodOptional<z.ZodString>;
1675
+ ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
1676
+ revisionOf: z.ZodOptional<z.ZodObject<{
1677
+ itemID: z.ZodString;
1678
+ version: z.ZodInt;
1679
+ }, z.core.$strip>>;
1680
+ }, z.core.$strip>>;
1681
+ }, z.core.$strip>, z.ZodObject<{
1682
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1683
+ proposalID: z.ZodString;
1684
+ status: z.ZodLiteral<"applied">;
1685
+ }, z.core.$strip>, z.ZodObject<{
1686
+ proposalID: z.ZodString;
1687
+ status: z.ZodLiteral<"rejected">;
1688
+ }, z.core.$strip>, z.ZodObject<{
1689
+ item: z.ZodObject<{
1690
+ itemID: z.ZodString;
1691
+ text: z.ZodString;
1692
+ version: z.ZodInt;
1693
+ }, z.core.$strip>;
1694
+ proposalID: z.ZodString;
1695
+ status: z.ZodLiteral<"close_match">;
1696
+ }, z.core.$strip>, z.ZodObject<{
1697
+ cause: z.ZodEnum<{
1698
+ answered: "answered";
1699
+ changed: "changed";
1700
+ gone: "gone";
1701
+ lapsed: "lapsed";
1702
+ moved: "moved";
1703
+ }>;
1704
+ proposalID: z.ZodString;
1705
+ status: z.ZodLiteral<"stale">;
1706
+ }, z.core.$strip>, z.ZodObject<{
1707
+ code: z.ZodEnum<{
1708
+ CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1709
+ PINNED_CORE_FULL: "PINNED_CORE_FULL";
1710
+ PIN_EDIT: "PIN_EDIT";
1711
+ RETIREMENT_EDIT: "RETIREMENT_EDIT";
1712
+ REVISION_TARGET: "REVISION_TARGET";
1713
+ WRONG_STATE: "WRONG_STATE";
1714
+ }>;
1715
+ proposalID: z.ZodString;
1716
+ status: z.ZodLiteral<"refused">;
1717
+ }, z.core.$strip>], "status">>;
1718
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1719
+ UNAUTHORIZED: {
1720
+ message: string;
1721
+ status: number;
1722
+ };
1723
+ }>, {
1724
+ MEMORY_NOT_STARTED: {
1725
+ message: string;
1726
+ status: number;
1727
+ };
1728
+ }>, Record<never, never>>;
1729
+ rejectProposals: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1730
+ answers: z.ZodArray<z.ZodObject<{
1731
+ actionHash: z.ZodString;
1732
+ clientActionID: z.ZodUUID;
1733
+ proposalID: z.ZodString;
1734
+ reason: z.ZodOptional<z.ZodString>;
1735
+ }, z.core.$strip>>;
1736
+ }, z.core.$strip>, z.ZodObject<{
1737
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1738
+ proposalID: z.ZodString;
1739
+ status: z.ZodLiteral<"applied">;
1740
+ }, z.core.$strip>, z.ZodObject<{
1741
+ proposalID: z.ZodString;
1742
+ status: z.ZodLiteral<"rejected">;
1743
+ }, z.core.$strip>, z.ZodObject<{
1744
+ item: z.ZodObject<{
1745
+ itemID: z.ZodString;
1746
+ text: z.ZodString;
1747
+ version: z.ZodInt;
1748
+ }, z.core.$strip>;
1749
+ proposalID: z.ZodString;
1750
+ status: z.ZodLiteral<"close_match">;
1751
+ }, z.core.$strip>, z.ZodObject<{
1752
+ cause: z.ZodEnum<{
1753
+ answered: "answered";
1754
+ changed: "changed";
1755
+ gone: "gone";
1756
+ lapsed: "lapsed";
1757
+ moved: "moved";
1758
+ }>;
1759
+ proposalID: z.ZodString;
1760
+ status: z.ZodLiteral<"stale">;
1761
+ }, z.core.$strip>, z.ZodObject<{
1762
+ code: z.ZodEnum<{
1763
+ CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
1764
+ PINNED_CORE_FULL: "PINNED_CORE_FULL";
1765
+ PIN_EDIT: "PIN_EDIT";
1766
+ RETIREMENT_EDIT: "RETIREMENT_EDIT";
1767
+ REVISION_TARGET: "REVISION_TARGET";
1768
+ WRONG_STATE: "WRONG_STATE";
1769
+ }>;
1770
+ proposalID: z.ZodString;
1771
+ status: z.ZodLiteral<"refused">;
1772
+ }, z.core.$strip>], "status">>;
1773
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1774
+ UNAUTHORIZED: {
1775
+ message: string;
1776
+ status: number;
1777
+ };
1778
+ }>, {
1779
+ MEMORY_NOT_STARTED: {
1780
+ message: string;
1781
+ status: number;
1782
+ };
1783
+ }>, Record<never, never>>;
1784
+ readVersions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1785
+ versions: z.ZodArray<z.ZodObject<{
1786
+ itemID: z.ZodString;
1787
+ version: z.ZodInt;
1788
+ }, z.core.$strip>>;
1789
+ }, z.core.$strip>, z.ZodObject<{
1790
+ versions: z.ZodArray<z.ZodObject<{
1791
+ itemID: z.ZodString;
1792
+ version: z.ZodInt;
1793
+ status: z.ZodEnum<{
1794
+ missing: "missing";
1795
+ readable: "readable";
1796
+ shredded: "shredded";
1797
+ unreadable: "unreadable";
1798
+ }>;
1799
+ text: z.ZodOptional<z.ZodString>;
1800
+ }, z.core.$strip>>;
1801
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1802
+ UNAUTHORIZED: {
1803
+ message: string;
1804
+ status: number;
1805
+ };
1806
+ }>, Record<never, never>>;
1807
+ readRatingNotes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1808
+ notes: z.ZodArray<z.ZodObject<{
1809
+ itemID: z.ZodString;
1810
+ sequence: z.ZodInt;
1811
+ }, z.core.$strip>>;
1812
+ }, z.core.$strip>, z.ZodObject<{
1813
+ notes: z.ZodArray<z.ZodObject<{
1814
+ itemID: z.ZodString;
1815
+ sequence: z.ZodInt;
1816
+ status: z.ZodEnum<{
1817
+ missing: "missing";
1818
+ readable: "readable";
1819
+ shredded: "shredded";
1820
+ unreadable: "unreadable";
1821
+ }>;
1822
+ text: z.ZodOptional<z.ZodString>;
1823
+ }, z.core.$strip>>;
1824
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1825
+ UNAUTHORIZED: {
1826
+ message: string;
1827
+ status: number;
1828
+ };
1829
+ }>, Record<never, never>>;
1830
+ writerStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1831
+ isEnabled: z.ZodBoolean;
1832
+ backlog: z.ZodInt;
1833
+ batches: z.ZodInt;
1834
+ cursor: z.ZodInt;
1835
+ failures: z.ZodInt;
1836
+ isCatchingUp: z.ZodBoolean;
1837
+ lastError: z.ZodNullable<z.ZodObject<{
1838
+ at: z.ZodDate;
1839
+ code: z.ZodString;
1840
+ message: z.ZodNullable<z.ZodString>;
1841
+ }, z.core.$strip>>;
1842
+ retryAt: z.ZodNullable<z.ZodDate>;
1843
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1844
+ UNAUTHORIZED: {
1845
+ message: string;
1846
+ status: number;
1847
+ };
1848
+ }>, Record<never, never>>;
1849
+ consolidatorStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1850
+ isEnabled: z.ZodBoolean;
1851
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1852
+ UNAUTHORIZED: {
1853
+ message: string;
1854
+ status: number;
1855
+ };
1856
+ }>, Record<never, never>>;
1857
+ };
1858
+ log: {
1859
+ follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1860
+ afterSequence: z.ZodInt;
1861
+ thread: z.ZodOptional<z.ZodString>;
1862
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
1863
+ record: {
1864
+ compaction?: {
1865
+ postTokens?: number | undefined;
1866
+ preTokens: number;
1867
+ trigger: "auto" | "manual";
1868
+ } | undefined;
1869
+ compactionFailure?: {
1870
+ failures: number;
1871
+ } | undefined;
1872
+ forget?: {
1873
+ sequence: number;
1874
+ } | undefined;
1875
+ context?: {
1876
+ size: number;
1877
+ window: number;
1878
+ } | undefined;
1879
+ kind: string;
1880
+ message?: {
1881
+ clientMessageId?: string | undefined;
1882
+ images?: {
1883
+ mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
1884
+ }[] | undefined;
1885
+ spans?: {
1886
+ end: number;
1887
+ source: "dropped" | "pasted" | "typed" | "unknown";
1888
+ start: number;
1889
+ }[] | undefined;
1890
+ text: string;
1891
+ } | undefined;
1892
+ moment?: {
1893
+ momentID: string;
1894
+ shortID: string;
1895
+ title?: string | undefined;
1896
+ } | undefined;
1897
+ rating?: {
1898
+ items: {
1899
+ itemID: string;
1900
+ version: number;
1901
+ hasNote: boolean;
1902
+ verdict: "helpful" | "misleading" | "noise";
1903
+ }[];
1904
+ ratedBy?: string | undefined;
1905
+ recalledSequence: number;
1906
+ } | undefined;
1907
+ recall?: {
1908
+ items: {
1909
+ itemID: string;
1910
+ version: number;
1911
+ score?: number | undefined;
1912
+ }[];
1913
+ } | undefined;
1914
+ recordedAt: Date;
1915
+ sequence: number;
1916
+ summary?: {
1917
+ contextSize?: number | undefined;
1918
+ summaryTokens: number;
1919
+ text?: string | undefined;
1920
+ trigger: "overflow" | "threshold";
1921
+ } | undefined;
1922
+ thread: string;
1923
+ task?: {
1924
+ error?: string | undefined;
1925
+ errorLimit?: number | undefined;
1926
+ errors?: number | undefined;
1927
+ retryAt?: Date | undefined;
1928
+ stepKey?: string | undefined;
1929
+ taskID: string;
1930
+ } | undefined;
1931
+ toolCall?: {
1932
+ callID: string;
1933
+ content?: Record<string, unknown> | undefined;
1934
+ input?: Record<string, unknown> | undefined;
1935
+ outcome?: string | undefined;
1936
+ tool?: string | undefined;
1937
+ } | undefined;
1938
+ };
1939
+ }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
1940
+ record: {
1941
+ compaction?: {
1942
+ postTokens?: number | undefined;
1943
+ preTokens: number;
1944
+ trigger: "auto" | "manual";
1945
+ } | undefined;
1946
+ compactionFailure?: {
1947
+ failures: number;
1948
+ } | undefined;
1949
+ forget?: {
1950
+ sequence: number;
1951
+ } | undefined;
1952
+ context?: {
1953
+ size: number;
1954
+ window: number;
1955
+ } | undefined;
1956
+ kind: string;
1957
+ message?: {
1958
+ clientMessageId?: string | undefined;
1959
+ images?: {
1960
+ mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
1961
+ }[] | undefined;
1962
+ spans?: {
1963
+ end: number;
1964
+ source: "dropped" | "pasted" | "typed" | "unknown";
1965
+ start: number;
1966
+ }[] | undefined;
1967
+ text: string;
1968
+ } | undefined;
1969
+ moment?: {
1970
+ momentID: string;
1971
+ shortID: string;
1972
+ title?: string | undefined;
1973
+ } | undefined;
1974
+ rating?: {
1975
+ items: {
1976
+ itemID: string;
1977
+ version: number;
1978
+ hasNote: boolean;
1979
+ verdict: "helpful" | "misleading" | "noise";
1980
+ }[];
1981
+ ratedBy?: string | undefined;
1982
+ recalledSequence: number;
1983
+ } | undefined;
1984
+ recall?: {
1985
+ items: {
1986
+ itemID: string;
1987
+ version: number;
1988
+ score?: number | undefined;
1989
+ }[];
1990
+ } | undefined;
1991
+ recordedAt: Date;
1992
+ sequence: number;
1993
+ summary?: {
1994
+ contextSize?: number | undefined;
1995
+ summaryTokens: number;
1996
+ text?: string | undefined;
1997
+ trigger: "overflow" | "threshold";
1998
+ } | undefined;
1999
+ thread: string;
2000
+ task?: {
2001
+ error?: string | undefined;
2002
+ errorLimit?: number | undefined;
2003
+ errors?: number | undefined;
2004
+ retryAt?: Date | undefined;
2005
+ stepKey?: string | undefined;
2006
+ taskID: string;
2007
+ } | undefined;
2008
+ toolCall?: {
2009
+ callID: string;
2010
+ content?: Record<string, unknown> | undefined;
2011
+ input?: Record<string, unknown> | undefined;
2012
+ outcome?: string | undefined;
2013
+ tool?: string | undefined;
2014
+ } | undefined;
2015
+ };
2016
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2017
+ UNAUTHORIZED: {
2018
+ message: string;
2019
+ status: number;
2020
+ };
2021
+ }>, Record<never, never>>;
2022
+ };
2023
+ records: {
2024
+ follow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2025
+ afterSequence: z.ZodInt;
2026
+ thread: z.ZodOptional<z.ZodString>;
2027
+ }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
2028
+ record: {
2029
+ compaction?: {
2030
+ postTokens?: number | undefined;
2031
+ preTokens: number;
2032
+ trigger: "auto" | "manual";
2033
+ } | undefined;
2034
+ compactionFailure?: {
2035
+ failures: number;
2036
+ } | undefined;
2037
+ forget?: {
2038
+ sequence: number;
2039
+ } | undefined;
2040
+ context?: {
2041
+ size: number;
2042
+ window: number;
2043
+ } | undefined;
2044
+ kind: string;
2045
+ message?: {
2046
+ clientMessageId?: string | undefined;
2047
+ images?: {
2048
+ mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
2049
+ }[] | undefined;
2050
+ spans?: {
2051
+ end: number;
2052
+ source: "dropped" | "pasted" | "typed" | "unknown";
2053
+ start: number;
2054
+ }[] | undefined;
2055
+ text: string;
2056
+ } | undefined;
2057
+ moment?: {
2058
+ momentID: string;
2059
+ shortID: string;
2060
+ title?: string | undefined;
2061
+ } | undefined;
2062
+ rating?: {
2063
+ items: {
2064
+ itemID: string;
2065
+ version: number;
2066
+ hasNote: boolean;
2067
+ verdict: "helpful" | "misleading" | "noise";
2068
+ }[];
2069
+ ratedBy?: string | undefined;
2070
+ recalledSequence: number;
2071
+ } | undefined;
2072
+ recall?: {
2073
+ items: {
2074
+ itemID: string;
2075
+ version: number;
2076
+ score?: number | undefined;
2077
+ }[];
2078
+ } | undefined;
2079
+ recordedAt: Date;
2080
+ sequence: number;
2081
+ summary?: {
2082
+ contextSize?: number | undefined;
2083
+ summaryTokens: number;
2084
+ text?: string | undefined;
2085
+ trigger: "overflow" | "threshold";
2086
+ } | undefined;
2087
+ thread: string;
2088
+ task?: {
2089
+ error?: string | undefined;
2090
+ errorLimit?: number | undefined;
2091
+ errors?: number | undefined;
2092
+ retryAt?: Date | undefined;
2093
+ stepKey?: string | undefined;
2094
+ taskID: string;
2095
+ } | undefined;
2096
+ toolCall?: {
2097
+ callID: string;
2098
+ content?: Record<string, unknown> | undefined;
2099
+ input?: Record<string, unknown> | undefined;
2100
+ outcome?: string | undefined;
2101
+ tool?: string | undefined;
2102
+ } | undefined;
2103
+ };
2104
+ }, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
2105
+ record: {
2106
+ compaction?: {
2107
+ postTokens?: number | undefined;
2108
+ preTokens: number;
2109
+ trigger: "auto" | "manual";
2110
+ } | undefined;
2111
+ compactionFailure?: {
2112
+ failures: number;
2113
+ } | undefined;
2114
+ forget?: {
2115
+ sequence: number;
2116
+ } | undefined;
2117
+ context?: {
2118
+ size: number;
2119
+ window: number;
2120
+ } | undefined;
2121
+ kind: string;
2122
+ message?: {
2123
+ clientMessageId?: string | undefined;
2124
+ images?: {
2125
+ mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp";
2126
+ }[] | undefined;
2127
+ spans?: {
2128
+ end: number;
2129
+ source: "dropped" | "pasted" | "typed" | "unknown";
2130
+ start: number;
2131
+ }[] | undefined;
2132
+ text: string;
2133
+ } | undefined;
2134
+ moment?: {
2135
+ momentID: string;
2136
+ shortID: string;
2137
+ title?: string | undefined;
2138
+ } | undefined;
2139
+ rating?: {
2140
+ items: {
2141
+ itemID: string;
2142
+ version: number;
2143
+ hasNote: boolean;
2144
+ verdict: "helpful" | "misleading" | "noise";
2145
+ }[];
2146
+ ratedBy?: string | undefined;
2147
+ recalledSequence: number;
2148
+ } | undefined;
2149
+ recall?: {
2150
+ items: {
2151
+ itemID: string;
2152
+ version: number;
2153
+ score?: number | undefined;
2154
+ }[];
2155
+ } | undefined;
2156
+ recordedAt: Date;
2157
+ sequence: number;
2158
+ summary?: {
2159
+ contextSize?: number | undefined;
2160
+ summaryTokens: number;
2161
+ text?: string | undefined;
2162
+ trigger: "overflow" | "threshold";
2163
+ } | undefined;
2164
+ thread: string;
2165
+ task?: {
2166
+ error?: string | undefined;
2167
+ errorLimit?: number | undefined;
2168
+ errors?: number | undefined;
2169
+ retryAt?: Date | undefined;
2170
+ stepKey?: string | undefined;
2171
+ taskID: string;
2172
+ } | undefined;
2173
+ toolCall?: {
2174
+ callID: string;
2175
+ content?: Record<string, unknown> | undefined;
2176
+ input?: Record<string, unknown> | undefined;
2177
+ outcome?: string | undefined;
2178
+ tool?: string | undefined;
2179
+ } | undefined;
2180
+ };
2181
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2182
+ UNAUTHORIZED: {
2183
+ message: string;
2184
+ status: number;
2185
+ };
2186
+ }>, Record<never, never>>;
2187
+ };
2188
+ sessions: {
2189
+ enrol: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2190
+ clientActionID: z.ZodUUID;
2191
+ code: z.ZodString;
2192
+ deviceName: z.ZodString;
2193
+ tokenDelivery: z.ZodEnum<{
2194
+ bearer: "bearer";
2195
+ cookie: "cookie";
2196
+ }>;
2197
+ }, z.core.$strip>, z.ZodObject<{
2198
+ sessionID: z.ZodUUID;
2199
+ token: z.ZodOptional<z.ZodString>;
2200
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2201
+ CLIENT_ACTION_ID_REUSED: {
2202
+ message: string;
2203
+ status: number;
2204
+ };
2205
+ }>, {
2206
+ ENROLMENT_CODE_INVALID: {
2207
+ message: string;
2208
+ status: number;
2209
+ };
2210
+ }>, Record<never, never>>;
2211
+ issueCode: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2212
+ clientActionID: z.ZodUUID;
2213
+ }, z.core.$strip>, z.ZodObject<{
2214
+ code: z.ZodString;
2215
+ expiresAt: z.ZodDate;
2216
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2217
+ UNAUTHORIZED: {
2218
+ message: string;
2219
+ status: number;
2220
+ };
2221
+ }>, {
2222
+ CLIENT_ACTION_ID_REUSED: {
2223
+ message: string;
2224
+ status: number;
2225
+ };
2226
+ }>, Record<never, never>>;
2227
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
2228
+ sessions: z.ZodArray<z.ZodObject<{
2229
+ createdAt: z.ZodDate;
2230
+ current: z.ZodBoolean;
2231
+ deviceName: z.ZodString;
2232
+ lastUsedAt: z.ZodDate;
2233
+ sessionID: z.ZodUUID;
2234
+ }, z.core.$strip>>;
2235
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2236
+ UNAUTHORIZED: {
2237
+ message: string;
2238
+ status: number;
2239
+ };
2240
+ }>, Record<never, never>>;
2241
+ revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2242
+ clientActionID: z.ZodUUID;
2243
+ sessionID: z.ZodUUID;
2244
+ }, z.core.$strip>, z.ZodObject<{
2245
+ revokedAt: z.ZodDate;
2246
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2247
+ UNAUTHORIZED: {
2248
+ message: string;
2249
+ status: number;
2250
+ };
2251
+ }>, {
2252
+ CLIENT_ACTION_ID_REUSED: {
2253
+ message: string;
2254
+ status: number;
2255
+ };
2256
+ }>, {
2257
+ SESSION_NOT_FOUND: {
2258
+ message: string;
2259
+ status: number;
2260
+ };
2261
+ }>, Record<never, never>>;
2262
+ };
2263
+ };