@heynixie/contract 0.0.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1266 @@
1
+ import { z } from 'zod';
2
+ export declare const hostContract: {
3
+ reset: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4
+ resetAt: z.ZodDate;
5
+ lastSequence: z.ZodInt;
6
+ keptSessions: z.ZodInt;
7
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
8
+ resetConversations: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
9
+ resetAt: z.ZodDate;
10
+ lastSequence: z.ZodInt;
11
+ shreddedRecords: z.ZodInt;
12
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
13
+ sessions: {
14
+ issueCode: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
15
+ code: z.ZodString;
16
+ expiresAt: z.ZodDate;
17
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
18
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
19
+ sessionID: z.ZodString;
20
+ deviceName: z.ZodString;
21
+ createdAt: z.ZodDate;
22
+ lastUsedAt: z.ZodDate;
23
+ }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
24
+ label: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
25
+ sessionID: z.ZodString;
26
+ label: z.ZodString;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ sessionID: z.ZodString;
29
+ label: z.ZodString;
30
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
31
+ SESSION_NOT_FOUND: {
32
+ message: string;
33
+ status: number;
34
+ };
35
+ LABEL_INVALID: {
36
+ message: string;
37
+ status: number;
38
+ };
39
+ }>, Record<never, never>>;
40
+ };
41
+ memory: {
42
+ proposals: {
43
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
44
+ proposalID: z.ZodString;
45
+ operation: z.ZodEnum<{
46
+ pin: "pin";
47
+ remember: "remember";
48
+ retire: "retire";
49
+ }>;
50
+ itemID: z.ZodString;
51
+ targetVersion: z.ZodNullable<z.ZodInt>;
52
+ isPinned: z.ZodBoolean;
53
+ subject: z.ZodEnum<{
54
+ owner: "owner";
55
+ self: "self";
56
+ shared: "shared";
57
+ }>;
58
+ isSensitive: z.ZodBoolean;
59
+ kind: z.ZodEnum<{
60
+ fact: "fact";
61
+ self: "self";
62
+ }>;
63
+ reason: z.ZodEnum<{
64
+ ambiguous_target: "ambiguous_target";
65
+ checker_not_asserted: "checker_not_asserted";
66
+ checker_unreachable: "checker_unreachable";
67
+ checker_unsure: "checker_unsure";
68
+ forgotten_evidence: "forgotten_evidence";
69
+ from_photo: "from_photo";
70
+ invisible_character: "invisible_character";
71
+ no_quote: "no_quote";
72
+ other: "other";
73
+ pinned: "pinned";
74
+ quote_in_quoted_block: "quote_in_quoted_block";
75
+ quote_not_typed: "quote_not_typed";
76
+ self_note: "self_note";
77
+ sensitive: "sensitive";
78
+ token_missing: "token_missing";
79
+ }>;
80
+ actionHash: z.ZodString;
81
+ origin: z.ZodEnum<{
82
+ conversation: "conversation";
83
+ memory_writer: "memory_writer";
84
+ owner: "owner";
85
+ task: "task";
86
+ }>;
87
+ source: z.ZodEnum<{
88
+ owner: "owner";
89
+ owner_data: "owner_data";
90
+ untrusted: "untrusted";
91
+ }>;
92
+ createdAt: z.ZodDate;
93
+ lapseAt: z.ZodDate;
94
+ sources: z.ZodArray<z.ZodObject<{
95
+ origin: z.ZodEnum<{
96
+ conversation: "conversation";
97
+ memory_writer: "memory_writer";
98
+ owner: "owner";
99
+ task: "task";
100
+ }>;
101
+ thread: z.ZodNullable<z.ZodString>;
102
+ proposedAt: z.ZodDate;
103
+ }, z.core.$strip>>;
104
+ text: z.ZodString;
105
+ quote: z.ZodNullable<z.ZodString>;
106
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
107
+ MEMORY_NOT_STARTED: {
108
+ message: string;
109
+ status: number;
110
+ };
111
+ NOT_FOUND: {
112
+ message: string;
113
+ status: number;
114
+ };
115
+ PROPOSAL_HASH: {
116
+ message: string;
117
+ status: number;
118
+ };
119
+ PROPOSAL_CLOSED: {
120
+ message: string;
121
+ status: number;
122
+ };
123
+ STALE_VERSION: {
124
+ message: string;
125
+ status: number;
126
+ };
127
+ WRONG_STATE: {
128
+ message: string;
129
+ status: number;
130
+ };
131
+ PINNED_CORE_FULL: {
132
+ message: string;
133
+ status: number;
134
+ };
135
+ REVISION_TARGET: {
136
+ message: string;
137
+ status: number;
138
+ };
139
+ RETIREMENT_EDIT: {
140
+ message: string;
141
+ status: number;
142
+ };
143
+ PIN_EDIT: {
144
+ message: string;
145
+ status: number;
146
+ };
147
+ SELF_NOTE_REFUSED: {
148
+ message: string;
149
+ status: number;
150
+ };
151
+ }>, Record<never, never>>;
152
+ approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
153
+ proposalID: z.ZodString;
154
+ actionHash: z.ZodString;
155
+ revisionOf: z.ZodOptional<z.ZodObject<{
156
+ itemID: z.ZodString;
157
+ version: z.ZodInt;
158
+ }, z.core.$strict>>;
159
+ ignoreCloseMatch: z.ZodOptional<z.ZodBoolean>;
160
+ editedText: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
162
+ status: z.ZodLiteral<"applied">;
163
+ itemID: z.ZodString;
164
+ version: z.ZodInt;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ status: z.ZodLiteral<"close_match">;
167
+ item: z.ZodObject<{
168
+ itemID: z.ZodString;
169
+ version: z.ZodInt;
170
+ text: z.ZodString;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>], "status">, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
173
+ MEMORY_NOT_STARTED: {
174
+ message: string;
175
+ status: number;
176
+ };
177
+ NOT_FOUND: {
178
+ message: string;
179
+ status: number;
180
+ };
181
+ PROPOSAL_HASH: {
182
+ message: string;
183
+ status: number;
184
+ };
185
+ PROPOSAL_CLOSED: {
186
+ message: string;
187
+ status: number;
188
+ };
189
+ STALE_VERSION: {
190
+ message: string;
191
+ status: number;
192
+ };
193
+ WRONG_STATE: {
194
+ message: string;
195
+ status: number;
196
+ };
197
+ PINNED_CORE_FULL: {
198
+ message: string;
199
+ status: number;
200
+ };
201
+ REVISION_TARGET: {
202
+ message: string;
203
+ status: number;
204
+ };
205
+ RETIREMENT_EDIT: {
206
+ message: string;
207
+ status: number;
208
+ };
209
+ PIN_EDIT: {
210
+ message: string;
211
+ status: number;
212
+ };
213
+ SELF_NOTE_REFUSED: {
214
+ message: string;
215
+ status: number;
216
+ };
217
+ }>, Record<never, never>>;
218
+ reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
219
+ proposalID: z.ZodString;
220
+ actionHash: z.ZodString;
221
+ reason: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ proposalID: z.ZodString;
224
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
225
+ MEMORY_NOT_STARTED: {
226
+ message: string;
227
+ status: number;
228
+ };
229
+ NOT_FOUND: {
230
+ message: string;
231
+ status: number;
232
+ };
233
+ PROPOSAL_HASH: {
234
+ message: string;
235
+ status: number;
236
+ };
237
+ PROPOSAL_CLOSED: {
238
+ message: string;
239
+ status: number;
240
+ };
241
+ STALE_VERSION: {
242
+ message: string;
243
+ status: number;
244
+ };
245
+ WRONG_STATE: {
246
+ message: string;
247
+ status: number;
248
+ };
249
+ PINNED_CORE_FULL: {
250
+ message: string;
251
+ status: number;
252
+ };
253
+ REVISION_TARGET: {
254
+ message: string;
255
+ status: number;
256
+ };
257
+ RETIREMENT_EDIT: {
258
+ message: string;
259
+ status: number;
260
+ };
261
+ PIN_EDIT: {
262
+ message: string;
263
+ status: number;
264
+ };
265
+ SELF_NOTE_REFUSED: {
266
+ message: string;
267
+ status: number;
268
+ };
269
+ }>, Record<never, never>>;
270
+ };
271
+ subjects: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
272
+ items: z.ZodObject<{
273
+ owner: z.ZodInt;
274
+ shared: z.ZodInt;
275
+ self: z.ZodInt;
276
+ }, z.core.$strip>;
277
+ proposals: z.ZodObject<{
278
+ owner: z.ZodInt;
279
+ shared: z.ZodInt;
280
+ self: z.ZodInt;
281
+ }, z.core.$strip>;
282
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
283
+ MEMORY_NOT_STARTED: {
284
+ message: string;
285
+ status: number;
286
+ };
287
+ NOT_FOUND: {
288
+ message: string;
289
+ status: number;
290
+ };
291
+ PROPOSAL_HASH: {
292
+ message: string;
293
+ status: number;
294
+ };
295
+ PROPOSAL_CLOSED: {
296
+ message: string;
297
+ status: number;
298
+ };
299
+ STALE_VERSION: {
300
+ message: string;
301
+ status: number;
302
+ };
303
+ WRONG_STATE: {
304
+ message: string;
305
+ status: number;
306
+ };
307
+ PINNED_CORE_FULL: {
308
+ message: string;
309
+ status: number;
310
+ };
311
+ REVISION_TARGET: {
312
+ message: string;
313
+ status: number;
314
+ };
315
+ RETIREMENT_EDIT: {
316
+ message: string;
317
+ status: number;
318
+ };
319
+ PIN_EDIT: {
320
+ message: string;
321
+ status: number;
322
+ };
323
+ SELF_NOTE_REFUSED: {
324
+ message: string;
325
+ status: number;
326
+ };
327
+ }>, Record<never, never>>;
328
+ items: {
329
+ read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
330
+ itemID: z.ZodString;
331
+ }, z.core.$strict>, z.ZodObject<{
332
+ itemID: z.ZodString;
333
+ subject: z.ZodEnum<{
334
+ owner: "owner";
335
+ self: "self";
336
+ shared: "shared";
337
+ }>;
338
+ kind: z.ZodEnum<{
339
+ fact: "fact";
340
+ self: "self";
341
+ }>;
342
+ state: z.ZodEnum<{
343
+ active: "active";
344
+ forgetting: "forgetting";
345
+ forgotten: "forgotten";
346
+ retired: "retired";
347
+ }>;
348
+ versions: z.ZodArray<z.ZodObject<{
349
+ version: z.ZodInt;
350
+ change: z.ZodEnum<{
351
+ created: "created";
352
+ edited: "edited";
353
+ restored: "restored";
354
+ retired: "retired";
355
+ undone: "undone";
356
+ }>;
357
+ state: z.ZodEnum<{
358
+ active: "active";
359
+ retired: "retired";
360
+ }>;
361
+ origin: z.ZodEnum<{
362
+ conversation: "conversation";
363
+ lapse: "lapse";
364
+ memory_writer: "memory_writer";
365
+ owner: "owner";
366
+ task: "task";
367
+ }>;
368
+ source: z.ZodEnum<{
369
+ owner: "owner";
370
+ owner_data: "owner_data";
371
+ untrusted: "untrusted";
372
+ }>;
373
+ recordedAt: z.ZodDate;
374
+ status: z.ZodEnum<{
375
+ readable: "readable";
376
+ shredded: "shredded";
377
+ unreadable: "unreadable";
378
+ }>;
379
+ text: z.ZodNullable<z.ZodString>;
380
+ }, z.core.$strip>>;
381
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
382
+ MEMORY_NOT_STARTED: {
383
+ message: string;
384
+ status: number;
385
+ };
386
+ NOT_FOUND: {
387
+ message: string;
388
+ status: number;
389
+ };
390
+ PROPOSAL_HASH: {
391
+ message: string;
392
+ status: number;
393
+ };
394
+ PROPOSAL_CLOSED: {
395
+ message: string;
396
+ status: number;
397
+ };
398
+ STALE_VERSION: {
399
+ message: string;
400
+ status: number;
401
+ };
402
+ WRONG_STATE: {
403
+ message: string;
404
+ status: number;
405
+ };
406
+ PINNED_CORE_FULL: {
407
+ message: string;
408
+ status: number;
409
+ };
410
+ REVISION_TARGET: {
411
+ message: string;
412
+ status: number;
413
+ };
414
+ RETIREMENT_EDIT: {
415
+ message: string;
416
+ status: number;
417
+ };
418
+ PIN_EDIT: {
419
+ message: string;
420
+ status: number;
421
+ };
422
+ SELF_NOTE_REFUSED: {
423
+ message: string;
424
+ status: number;
425
+ };
426
+ }>, Record<never, never>>;
427
+ edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
428
+ itemID: z.ZodString;
429
+ version: z.ZodInt;
430
+ text: z.ZodString;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ itemID: z.ZodString;
433
+ version: z.ZodInt;
434
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
435
+ MEMORY_NOT_STARTED: {
436
+ message: string;
437
+ status: number;
438
+ };
439
+ NOT_FOUND: {
440
+ message: string;
441
+ status: number;
442
+ };
443
+ PROPOSAL_HASH: {
444
+ message: string;
445
+ status: number;
446
+ };
447
+ PROPOSAL_CLOSED: {
448
+ message: string;
449
+ status: number;
450
+ };
451
+ STALE_VERSION: {
452
+ message: string;
453
+ status: number;
454
+ };
455
+ WRONG_STATE: {
456
+ message: string;
457
+ status: number;
458
+ };
459
+ PINNED_CORE_FULL: {
460
+ message: string;
461
+ status: number;
462
+ };
463
+ REVISION_TARGET: {
464
+ message: string;
465
+ status: number;
466
+ };
467
+ RETIREMENT_EDIT: {
468
+ message: string;
469
+ status: number;
470
+ };
471
+ PIN_EDIT: {
472
+ message: string;
473
+ status: number;
474
+ };
475
+ SELF_NOTE_REFUSED: {
476
+ message: string;
477
+ status: number;
478
+ };
479
+ }>, Record<never, never>>;
480
+ retire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
481
+ itemID: z.ZodString;
482
+ version: z.ZodInt;
483
+ }, z.core.$strict>, z.ZodObject<{
484
+ itemID: z.ZodString;
485
+ version: z.ZodInt;
486
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
487
+ MEMORY_NOT_STARTED: {
488
+ message: string;
489
+ status: number;
490
+ };
491
+ NOT_FOUND: {
492
+ message: string;
493
+ status: number;
494
+ };
495
+ PROPOSAL_HASH: {
496
+ message: string;
497
+ status: number;
498
+ };
499
+ PROPOSAL_CLOSED: {
500
+ message: string;
501
+ status: number;
502
+ };
503
+ STALE_VERSION: {
504
+ message: string;
505
+ status: number;
506
+ };
507
+ WRONG_STATE: {
508
+ message: string;
509
+ status: number;
510
+ };
511
+ PINNED_CORE_FULL: {
512
+ message: string;
513
+ status: number;
514
+ };
515
+ REVISION_TARGET: {
516
+ message: string;
517
+ status: number;
518
+ };
519
+ RETIREMENT_EDIT: {
520
+ message: string;
521
+ status: number;
522
+ };
523
+ PIN_EDIT: {
524
+ message: string;
525
+ status: number;
526
+ };
527
+ SELF_NOTE_REFUSED: {
528
+ message: string;
529
+ status: number;
530
+ };
531
+ }>, Record<never, never>>;
532
+ restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
533
+ itemID: z.ZodString;
534
+ version: z.ZodInt;
535
+ }, z.core.$strict>, z.ZodObject<{
536
+ itemID: z.ZodString;
537
+ version: z.ZodInt;
538
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
539
+ MEMORY_NOT_STARTED: {
540
+ message: string;
541
+ status: number;
542
+ };
543
+ NOT_FOUND: {
544
+ message: string;
545
+ status: number;
546
+ };
547
+ PROPOSAL_HASH: {
548
+ message: string;
549
+ status: number;
550
+ };
551
+ PROPOSAL_CLOSED: {
552
+ message: string;
553
+ status: number;
554
+ };
555
+ STALE_VERSION: {
556
+ message: string;
557
+ status: number;
558
+ };
559
+ WRONG_STATE: {
560
+ message: string;
561
+ status: number;
562
+ };
563
+ PINNED_CORE_FULL: {
564
+ message: string;
565
+ status: number;
566
+ };
567
+ REVISION_TARGET: {
568
+ message: string;
569
+ status: number;
570
+ };
571
+ RETIREMENT_EDIT: {
572
+ message: string;
573
+ status: number;
574
+ };
575
+ PIN_EDIT: {
576
+ message: string;
577
+ status: number;
578
+ };
579
+ SELF_NOTE_REFUSED: {
580
+ message: string;
581
+ status: number;
582
+ };
583
+ }>, Record<never, never>>;
584
+ forget: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
585
+ itemID: z.ZodString;
586
+ version: z.ZodInt;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ itemID: z.ZodString;
589
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
590
+ MEMORY_NOT_STARTED: {
591
+ message: string;
592
+ status: number;
593
+ };
594
+ NOT_FOUND: {
595
+ message: string;
596
+ status: number;
597
+ };
598
+ PROPOSAL_HASH: {
599
+ message: string;
600
+ status: number;
601
+ };
602
+ PROPOSAL_CLOSED: {
603
+ message: string;
604
+ status: number;
605
+ };
606
+ STALE_VERSION: {
607
+ message: string;
608
+ status: number;
609
+ };
610
+ WRONG_STATE: {
611
+ message: string;
612
+ status: number;
613
+ };
614
+ PINNED_CORE_FULL: {
615
+ message: string;
616
+ status: number;
617
+ };
618
+ REVISION_TARGET: {
619
+ message: string;
620
+ status: number;
621
+ };
622
+ RETIREMENT_EDIT: {
623
+ message: string;
624
+ status: number;
625
+ };
626
+ PIN_EDIT: {
627
+ message: string;
628
+ status: number;
629
+ };
630
+ SELF_NOTE_REFUSED: {
631
+ message: string;
632
+ status: number;
633
+ };
634
+ }>, Record<never, never>>;
635
+ forgetAll: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
636
+ itemIDs: z.ZodArray<z.ZodString>;
637
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
638
+ MEMORY_NOT_STARTED: {
639
+ message: string;
640
+ status: number;
641
+ };
642
+ NOT_FOUND: {
643
+ message: string;
644
+ status: number;
645
+ };
646
+ PROPOSAL_HASH: {
647
+ message: string;
648
+ status: number;
649
+ };
650
+ PROPOSAL_CLOSED: {
651
+ message: string;
652
+ status: number;
653
+ };
654
+ STALE_VERSION: {
655
+ message: string;
656
+ status: number;
657
+ };
658
+ WRONG_STATE: {
659
+ message: string;
660
+ status: number;
661
+ };
662
+ PINNED_CORE_FULL: {
663
+ message: string;
664
+ status: number;
665
+ };
666
+ REVISION_TARGET: {
667
+ message: string;
668
+ status: number;
669
+ };
670
+ RETIREMENT_EDIT: {
671
+ message: string;
672
+ status: number;
673
+ };
674
+ PIN_EDIT: {
675
+ message: string;
676
+ status: number;
677
+ };
678
+ SELF_NOTE_REFUSED: {
679
+ message: string;
680
+ status: number;
681
+ };
682
+ }>, Record<never, never>>;
683
+ pin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
684
+ itemID: z.ZodString;
685
+ isPinned: z.ZodBoolean;
686
+ }, z.core.$strict>, z.ZodObject<{
687
+ itemID: z.ZodString;
688
+ isPinned: z.ZodBoolean;
689
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
690
+ MEMORY_NOT_STARTED: {
691
+ message: string;
692
+ status: number;
693
+ };
694
+ NOT_FOUND: {
695
+ message: string;
696
+ status: number;
697
+ };
698
+ PROPOSAL_HASH: {
699
+ message: string;
700
+ status: number;
701
+ };
702
+ PROPOSAL_CLOSED: {
703
+ message: string;
704
+ status: number;
705
+ };
706
+ STALE_VERSION: {
707
+ message: string;
708
+ status: number;
709
+ };
710
+ WRONG_STATE: {
711
+ message: string;
712
+ status: number;
713
+ };
714
+ PINNED_CORE_FULL: {
715
+ message: string;
716
+ status: number;
717
+ };
718
+ REVISION_TARGET: {
719
+ message: string;
720
+ status: number;
721
+ };
722
+ RETIREMENT_EDIT: {
723
+ message: string;
724
+ status: number;
725
+ };
726
+ PIN_EDIT: {
727
+ message: string;
728
+ status: number;
729
+ };
730
+ SELF_NOTE_REFUSED: {
731
+ message: string;
732
+ status: number;
733
+ };
734
+ }>, Record<never, never>>;
735
+ };
736
+ consolidation: {
737
+ read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodNullable<z.ZodObject<{
738
+ diffID: z.ZodString;
739
+ model: z.ZodNullable<z.ZodString>;
740
+ createdAt: z.ZodDate;
741
+ changes: z.ZodArray<z.ZodObject<{
742
+ changeID: z.ZodString;
743
+ shortID: z.ZodString;
744
+ kind: z.ZodEnum<{
745
+ merge: "merge";
746
+ retire: "retire";
747
+ rewrite: "rewrite";
748
+ }>;
749
+ inputs: z.ZodArray<z.ZodObject<{
750
+ itemID: z.ZodString;
751
+ version: z.ZodInt;
752
+ text: z.ZodNullable<z.ZodString>;
753
+ isCurrent: z.ZodBoolean;
754
+ }, z.core.$strip>>;
755
+ text: z.ZodNullable<z.ZodString>;
756
+ reason: z.ZodString;
757
+ source: z.ZodEnum<{
758
+ owner: "owner";
759
+ owner_data: "owner_data";
760
+ untrusted: "untrusted";
761
+ }>;
762
+ actionHash: z.ZodString;
763
+ lapseAt: z.ZodDate;
764
+ comment: z.ZodNullable<z.ZodObject<{
765
+ text: z.ZodString;
766
+ at: z.ZodDate;
767
+ }, z.core.$strip>>;
768
+ }, z.core.$strip>>;
769
+ summary: z.ZodNullable<z.ZodString>;
770
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
771
+ MEMORY_NOT_STARTED: {
772
+ message: string;
773
+ status: number;
774
+ };
775
+ NOT_FOUND: {
776
+ message: string;
777
+ status: number;
778
+ };
779
+ PROPOSAL_HASH: {
780
+ message: string;
781
+ status: number;
782
+ };
783
+ PROPOSAL_CLOSED: {
784
+ message: string;
785
+ status: number;
786
+ };
787
+ STALE_VERSION: {
788
+ message: string;
789
+ status: number;
790
+ };
791
+ WRONG_STATE: {
792
+ message: string;
793
+ status: number;
794
+ };
795
+ PINNED_CORE_FULL: {
796
+ message: string;
797
+ status: number;
798
+ };
799
+ REVISION_TARGET: {
800
+ message: string;
801
+ status: number;
802
+ };
803
+ RETIREMENT_EDIT: {
804
+ message: string;
805
+ status: number;
806
+ };
807
+ PIN_EDIT: {
808
+ message: string;
809
+ status: number;
810
+ };
811
+ SELF_NOTE_REFUSED: {
812
+ message: string;
813
+ status: number;
814
+ };
815
+ }>, Record<never, never>>;
816
+ approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
817
+ answers: z.ZodArray<z.ZodObject<{
818
+ changeID: z.ZodString;
819
+ actionHash: z.ZodString;
820
+ }, z.core.$strict>>;
821
+ }, z.core.$strict>, z.ZodObject<{
822
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ changeID: z.ZodString;
824
+ status: z.ZodLiteral<"applied">;
825
+ versions: z.ZodArray<z.ZodObject<{
826
+ itemID: z.ZodString;
827
+ version: z.ZodInt;
828
+ }, z.core.$strip>>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ changeID: z.ZodString;
831
+ status: z.ZodLiteral<"refused">;
832
+ code: z.ZodString;
833
+ }, z.core.$strip>], "status">>;
834
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
835
+ MEMORY_NOT_STARTED: {
836
+ message: string;
837
+ status: number;
838
+ };
839
+ NOT_FOUND: {
840
+ message: string;
841
+ status: number;
842
+ };
843
+ PROPOSAL_HASH: {
844
+ message: string;
845
+ status: number;
846
+ };
847
+ PROPOSAL_CLOSED: {
848
+ message: string;
849
+ status: number;
850
+ };
851
+ STALE_VERSION: {
852
+ message: string;
853
+ status: number;
854
+ };
855
+ WRONG_STATE: {
856
+ message: string;
857
+ status: number;
858
+ };
859
+ PINNED_CORE_FULL: {
860
+ message: string;
861
+ status: number;
862
+ };
863
+ REVISION_TARGET: {
864
+ message: string;
865
+ status: number;
866
+ };
867
+ RETIREMENT_EDIT: {
868
+ message: string;
869
+ status: number;
870
+ };
871
+ PIN_EDIT: {
872
+ message: string;
873
+ status: number;
874
+ };
875
+ SELF_NOTE_REFUSED: {
876
+ message: string;
877
+ status: number;
878
+ };
879
+ }>, Record<never, never>>;
880
+ reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
881
+ changeID: z.ZodString;
882
+ actionHash: z.ZodString;
883
+ }, z.core.$strict>, z.ZodObject<{
884
+ changeID: z.ZodString;
885
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
886
+ MEMORY_NOT_STARTED: {
887
+ message: string;
888
+ status: number;
889
+ };
890
+ NOT_FOUND: {
891
+ message: string;
892
+ status: number;
893
+ };
894
+ PROPOSAL_HASH: {
895
+ message: string;
896
+ status: number;
897
+ };
898
+ PROPOSAL_CLOSED: {
899
+ message: string;
900
+ status: number;
901
+ };
902
+ STALE_VERSION: {
903
+ message: string;
904
+ status: number;
905
+ };
906
+ WRONG_STATE: {
907
+ message: string;
908
+ status: number;
909
+ };
910
+ PINNED_CORE_FULL: {
911
+ message: string;
912
+ status: number;
913
+ };
914
+ REVISION_TARGET: {
915
+ message: string;
916
+ status: number;
917
+ };
918
+ RETIREMENT_EDIT: {
919
+ message: string;
920
+ status: number;
921
+ };
922
+ PIN_EDIT: {
923
+ message: string;
924
+ status: number;
925
+ };
926
+ SELF_NOTE_REFUSED: {
927
+ message: string;
928
+ status: number;
929
+ };
930
+ }>, Record<never, never>>;
931
+ };
932
+ };
933
+ skills: {
934
+ proposals: {
935
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
936
+ proposalID: z.ZodString;
937
+ name: z.ZodString;
938
+ skillHash: z.ZodString;
939
+ baseHash: z.ZodNullable<z.ZodString>;
940
+ files: z.ZodArray<z.ZodObject<{
941
+ path: z.ZodString;
942
+ text: z.ZodString;
943
+ }, z.core.$strip>>;
944
+ inForce: z.ZodNullable<z.ZodObject<{
945
+ skillHash: z.ZodString;
946
+ origin: z.ZodEnum<{
947
+ definitions: "definitions";
948
+ nixie: "nixie";
949
+ vendored: "vendored";
950
+ }>;
951
+ files: z.ZodArray<z.ZodObject<{
952
+ path: z.ZodString;
953
+ text: z.ZodString;
954
+ }, z.core.$strip>>;
955
+ }, z.core.$strip>>;
956
+ untypedToken: z.ZodNullable<z.ZodObject<{
957
+ kind: z.ZodString;
958
+ raw: z.ZodString;
959
+ }, z.core.$strip>>;
960
+ thread: z.ZodNullable<z.ZodString>;
961
+ provenance: z.ZodObject<{
962
+ runID: z.ZodString;
963
+ callID: z.ZodString;
964
+ profile: z.ZodString;
965
+ }, z.core.$strip>;
966
+ createdAt: z.ZodDate;
967
+ lapseAt: z.ZodDate;
968
+ isStale: z.ZodBoolean;
969
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
970
+ NOT_FOUND: {
971
+ message: string;
972
+ status: number;
973
+ };
974
+ PROPOSAL_HASH: {
975
+ message: string;
976
+ status: number;
977
+ };
978
+ PROPOSAL_CLOSED: {
979
+ message: string;
980
+ status: number;
981
+ };
982
+ STALE_BASE: {
983
+ message: string;
984
+ status: number;
985
+ };
986
+ SKILL_CHECK: {
987
+ message: string;
988
+ status: number;
989
+ };
990
+ WRONG_STATE: {
991
+ message: string;
992
+ status: number;
993
+ };
994
+ }>, Record<never, never>>;
995
+ approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
996
+ proposalID: z.ZodString;
997
+ skillHash: z.ZodString;
998
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
999
+ path: z.ZodString;
1000
+ text: z.ZodString;
1001
+ }, z.core.$strip>>>;
1002
+ }, z.core.$strict>, z.ZodObject<{
1003
+ proposalID: z.ZodString;
1004
+ approvalID: z.ZodString;
1005
+ skillHash: z.ZodString;
1006
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1007
+ NOT_FOUND: {
1008
+ message: string;
1009
+ status: number;
1010
+ };
1011
+ PROPOSAL_HASH: {
1012
+ message: string;
1013
+ status: number;
1014
+ };
1015
+ PROPOSAL_CLOSED: {
1016
+ message: string;
1017
+ status: number;
1018
+ };
1019
+ STALE_BASE: {
1020
+ message: string;
1021
+ status: number;
1022
+ };
1023
+ SKILL_CHECK: {
1024
+ message: string;
1025
+ status: number;
1026
+ };
1027
+ WRONG_STATE: {
1028
+ message: string;
1029
+ status: number;
1030
+ };
1031
+ }>, Record<never, never>>;
1032
+ reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1033
+ proposalID: z.ZodString;
1034
+ skillHash: z.ZodString;
1035
+ reason: z.ZodString;
1036
+ }, z.core.$strict>, z.ZodObject<{
1037
+ proposalID: z.ZodString;
1038
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1039
+ NOT_FOUND: {
1040
+ message: string;
1041
+ status: number;
1042
+ };
1043
+ PROPOSAL_HASH: {
1044
+ message: string;
1045
+ status: number;
1046
+ };
1047
+ PROPOSAL_CLOSED: {
1048
+ message: string;
1049
+ status: number;
1050
+ };
1051
+ STALE_BASE: {
1052
+ message: string;
1053
+ status: number;
1054
+ };
1055
+ SKILL_CHECK: {
1056
+ message: string;
1057
+ status: number;
1058
+ };
1059
+ WRONG_STATE: {
1060
+ message: string;
1061
+ status: number;
1062
+ };
1063
+ }>, Record<never, never>>;
1064
+ };
1065
+ written: {
1066
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1067
+ approvalID: z.ZodString;
1068
+ proposalID: z.ZodString;
1069
+ name: z.ZodString;
1070
+ skillHash: z.ZodString;
1071
+ base: z.ZodNullable<z.ZodObject<{
1072
+ skillHash: z.ZodString;
1073
+ origin: z.ZodEnum<{
1074
+ definitions: "definitions";
1075
+ vendored: "vendored";
1076
+ }>;
1077
+ }, z.core.$strip>>;
1078
+ definitions: z.ZodNullable<z.ZodObject<{
1079
+ skillHash: z.ZodString;
1080
+ origin: z.ZodEnum<{
1081
+ definitions: "definitions";
1082
+ vendored: "vendored";
1083
+ }>;
1084
+ }, z.core.$strip>>;
1085
+ isConflict: z.ZodBoolean;
1086
+ pullRequestURL: z.ZodNullable<z.ZodURL>;
1087
+ approvedAt: z.ZodDate;
1088
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1089
+ NOT_FOUND: {
1090
+ message: string;
1091
+ status: number;
1092
+ };
1093
+ PROPOSAL_HASH: {
1094
+ message: string;
1095
+ status: number;
1096
+ };
1097
+ PROPOSAL_CLOSED: {
1098
+ message: string;
1099
+ status: number;
1100
+ };
1101
+ STALE_BASE: {
1102
+ message: string;
1103
+ status: number;
1104
+ };
1105
+ SKILL_CHECK: {
1106
+ message: string;
1107
+ status: number;
1108
+ };
1109
+ WRONG_STATE: {
1110
+ message: string;
1111
+ status: number;
1112
+ };
1113
+ }>, Record<never, never>>;
1114
+ resolve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1115
+ approvalID: z.ZodString;
1116
+ keep: z.ZodEnum<{
1117
+ definitions: "definitions";
1118
+ nixie: "nixie";
1119
+ }>;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ approvalID: z.ZodString;
1122
+ keep: z.ZodEnum<{
1123
+ definitions: "definitions";
1124
+ nixie: "nixie";
1125
+ }>;
1126
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1127
+ NOT_FOUND: {
1128
+ message: string;
1129
+ status: number;
1130
+ };
1131
+ PROPOSAL_HASH: {
1132
+ message: string;
1133
+ status: number;
1134
+ };
1135
+ PROPOSAL_CLOSED: {
1136
+ message: string;
1137
+ status: number;
1138
+ };
1139
+ STALE_BASE: {
1140
+ message: string;
1141
+ status: number;
1142
+ };
1143
+ SKILL_CHECK: {
1144
+ message: string;
1145
+ status: number;
1146
+ };
1147
+ WRONG_STATE: {
1148
+ message: string;
1149
+ status: number;
1150
+ };
1151
+ }>, Record<never, never>>;
1152
+ };
1153
+ };
1154
+ prompts: {
1155
+ proposals: {
1156
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1157
+ proposalID: z.ZodString;
1158
+ promptID: z.ZodString;
1159
+ proposalHash: z.ZodString;
1160
+ baseHash: z.ZodNullable<z.ZodString>;
1161
+ entry: z.ZodRecord<z.ZodString, z.ZodString>;
1162
+ files: z.ZodArray<z.ZodObject<{
1163
+ path: z.ZodString;
1164
+ text: z.ZodString;
1165
+ }, z.core.$strip>>;
1166
+ reason: z.ZodString;
1167
+ inForce: z.ZodNullable<z.ZodObject<{
1168
+ parts: z.ZodRecord<z.ZodString, z.ZodString>;
1169
+ template: z.ZodNullable<z.ZodString>;
1170
+ }, z.core.$strip>>;
1171
+ thread: z.ZodNullable<z.ZodString>;
1172
+ provenance: z.ZodObject<{
1173
+ runID: z.ZodString;
1174
+ callID: z.ZodString;
1175
+ profile: z.ZodString;
1176
+ }, z.core.$strip>;
1177
+ createdAt: z.ZodDate;
1178
+ lapseAt: z.ZodDate;
1179
+ isStale: z.ZodBoolean;
1180
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1181
+ NOT_FOUND: {
1182
+ message: string;
1183
+ status: number;
1184
+ };
1185
+ PROPOSAL_HASH: {
1186
+ message: string;
1187
+ status: number;
1188
+ };
1189
+ PROPOSAL_CLOSED: {
1190
+ message: string;
1191
+ status: number;
1192
+ };
1193
+ STALE_BASE: {
1194
+ message: string;
1195
+ status: number;
1196
+ };
1197
+ PROMPT_CHECK: {
1198
+ message: string;
1199
+ status: number;
1200
+ };
1201
+ }>, Record<never, never>>;
1202
+ approve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1203
+ proposalID: z.ZodString;
1204
+ proposalHash: z.ZodString;
1205
+ entry: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1206
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1207
+ path: z.ZodString;
1208
+ text: z.ZodString;
1209
+ }, z.core.$strip>>>;
1210
+ }, z.core.$strict>, z.ZodObject<{
1211
+ proposalID: z.ZodString;
1212
+ approvalID: z.ZodString;
1213
+ proposalHash: z.ZodString;
1214
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1215
+ NOT_FOUND: {
1216
+ message: string;
1217
+ status: number;
1218
+ };
1219
+ PROPOSAL_HASH: {
1220
+ message: string;
1221
+ status: number;
1222
+ };
1223
+ PROPOSAL_CLOSED: {
1224
+ message: string;
1225
+ status: number;
1226
+ };
1227
+ STALE_BASE: {
1228
+ message: string;
1229
+ status: number;
1230
+ };
1231
+ PROMPT_CHECK: {
1232
+ message: string;
1233
+ status: number;
1234
+ };
1235
+ }>, Record<never, never>>;
1236
+ reject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1237
+ proposalID: z.ZodString;
1238
+ proposalHash: z.ZodString;
1239
+ reason: z.ZodString;
1240
+ }, z.core.$strict>, z.ZodObject<{
1241
+ proposalID: z.ZodString;
1242
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1243
+ NOT_FOUND: {
1244
+ message: string;
1245
+ status: number;
1246
+ };
1247
+ PROPOSAL_HASH: {
1248
+ message: string;
1249
+ status: number;
1250
+ };
1251
+ PROPOSAL_CLOSED: {
1252
+ message: string;
1253
+ status: number;
1254
+ };
1255
+ STALE_BASE: {
1256
+ message: string;
1257
+ status: number;
1258
+ };
1259
+ PROMPT_CHECK: {
1260
+ message: string;
1261
+ status: number;
1262
+ };
1263
+ }>, Record<never, never>>;
1264
+ };
1265
+ };
1266
+ };