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