@maudecode/talaria-web-contracts 1.19.0 → 1.21.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.
Files changed (84) hide show
  1. package/dist/checkpoint.d.ts +78 -0
  2. package/dist/checkpoint.js +16 -0
  3. package/dist/checkpoint.js.map +1 -0
  4. package/dist/context-detail.d.ts +75 -0
  5. package/dist/context-detail.js +18 -0
  6. package/dist/context-detail.js.map +1 -0
  7. package/dist/gateway-session.d.ts +412 -9
  8. package/dist/gateway-session.js +85 -3
  9. package/dist/gateway-session.js.map +1 -1
  10. package/dist/index.d.ts +5 -0
  11. package/dist/index.js +5 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/mcp-cost-policy.d.ts +110 -0
  14. package/dist/mcp-cost-policy.js +24 -0
  15. package/dist/mcp-cost-policy.js.map +1 -0
  16. package/dist/outbound-drafts.d.ts +114 -0
  17. package/dist/outbound-drafts.js +20 -0
  18. package/dist/outbound-drafts.js.map +1 -0
  19. package/dist/prompt-queue.d.ts +96 -0
  20. package/dist/prompt-queue.js +19 -0
  21. package/dist/prompt-queue.js.map +1 -0
  22. package/dist/router.d.ts +3677 -156
  23. package/dist/routes/automation.d.ts +323 -2
  24. package/dist/routes/automation.js +17 -3
  25. package/dist/routes/automation.js.map +1 -1
  26. package/dist/routes/chat.d.ts +776 -26
  27. package/dist/routes/chat.js +4 -3
  28. package/dist/routes/chat.js.map +1 -1
  29. package/dist/routes/core.d.ts +6 -6
  30. package/dist/routes/git.d.ts +59 -0
  31. package/dist/routes/git.js +9 -3
  32. package/dist/routes/git.js.map +1 -1
  33. package/dist/routes/raw.js +9 -5
  34. package/dist/routes/raw.js.map +1 -1
  35. package/dist/routes/sessions.d.ts +2215 -87
  36. package/dist/routes/sessions.js +11 -0
  37. package/dist/routes/sessions.js.map +1 -1
  38. package/dist/routes/settings.d.ts +29 -13
  39. package/dist/routes/settings.js +3 -2
  40. package/dist/routes/settings.js.map +1 -1
  41. package/dist/routes/tools.d.ts +825 -37
  42. package/dist/routes/tools.js +33 -5
  43. package/dist/routes/tools.js.map +1 -1
  44. package/dist/routes/workspaces.d.ts +49 -4
  45. package/dist/routes/workspaces.js +5 -4
  46. package/dist/routes/workspaces.js.map +1 -1
  47. package/dist/sidecar/methods.d.ts +1122 -25
  48. package/dist/sidecar/methods.js +2 -2
  49. package/dist/sidecar/methods.js.map +1 -1
  50. package/dist/sidecar/namespaces.d.ts +1292 -39
  51. package/dist/sidecar/namespaces.js +120 -14
  52. package/dist/sidecar/namespaces.js.map +1 -1
  53. package/dist/sidecar/rpc.d.ts +1 -0
  54. package/dist/sidecar/rpc.js +2 -0
  55. package/dist/sidecar/rpc.js.map +1 -1
  56. package/dist/sidecar/runtime.d.ts +56 -0
  57. package/dist/sidecar/runtime.js +21 -2
  58. package/dist/sidecar/runtime.js.map +1 -1
  59. package/dist/sidecar/version.d.ts +1 -1
  60. package/dist/sidecar/version.js +1 -1
  61. package/dist/sse.d.ts +199 -10
  62. package/dist/sse.js +15 -4
  63. package/dist/sse.js.map +1 -1
  64. package/dist/views.d.ts +1597 -86
  65. package/dist/views.js +106 -21
  66. package/dist/views.js.map +1 -1
  67. package/fixtures/sidecar/aux.json +8 -0
  68. package/fixtures/sidecar/chat.json +14 -0
  69. package/fixtures/sidecar/checkpoints.json +7 -2
  70. package/fixtures/sidecar/context-detail.json +77 -0
  71. package/fixtures/sidecar/cron.json +3 -1
  72. package/fixtures/sidecar/dashboard_plugins.json +59 -0
  73. package/fixtures/sidecar/gateway.json +208 -0
  74. package/fixtures/sidecar/kanban.json +197 -0
  75. package/fixtures/sidecar/managed-buffers.json +16 -0
  76. package/fixtures/sidecar/mcp.json +12 -0
  77. package/fixtures/sidecar/outbound-drafts.json +1 -0
  78. package/fixtures/sidecar/plugin-catalog.json +4 -0
  79. package/fixtures/sidecar/plugins.json +56 -1
  80. package/fixtures/sidecar/process.json +32 -0
  81. package/fixtures/sidecar/rpc.json +4 -0
  82. package/fixtures/sidecar/runtime.json +3 -3
  83. package/fixtures/sidecar/state_db.json +10 -0
  84. package/package.json +1 -1
@@ -23,6 +23,58 @@ export declare const MemoryWriteRefusalSchema: z.ZodUnion<readonly [z.ZodObject<
23
23
  code: z.ZodLiteral<"memory_conflict">;
24
24
  }, z.core.$strip>]>;
25
25
  export type MemoryWriteRefusal = z.infer<typeof MemoryWriteRefusalSchema>;
26
+ /** User-requested preview, separate from Agent pending writes; apply accepts only this opaque receipt. */
27
+ export declare const MemoryCompactionPreviewSchema: z.ZodObject<{
28
+ section: z.ZodEnum<{
29
+ memory: "memory";
30
+ user: "user";
31
+ }>;
32
+ revision: z.ZodString;
33
+ proposed_revision: z.ZodString;
34
+ receipt: z.ZodString;
35
+ source: z.ZodString;
36
+ proposed: z.ZodString;
37
+ diff: z.ZodString;
38
+ model: z.ZodString;
39
+ expires_at: z.ZodNumber;
40
+ }, z.core.$strip>;
41
+ export type MemoryCompactionPreview = z.infer<typeof MemoryCompactionPreviewSchema>;
42
+ export declare const MemoryCompactionApplySchema: z.ZodObject<{
43
+ ok: z.ZodLiteral<true>;
44
+ section: z.ZodEnum<{
45
+ memory: "memory";
46
+ user: "user";
47
+ }>;
48
+ revision: z.ZodString;
49
+ }, z.core.$strip>;
50
+ export declare const MemoryCompactionRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
51
+ error: z.ZodString;
52
+ code: z.ZodLiteral<"memory_char_limit">;
53
+ char_limit: z.ZodObject<{
54
+ count: z.ZodNumber;
55
+ limit: z.ZodNumber;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ error: z.ZodString;
59
+ code: z.ZodEnum<{
60
+ memory_mask_ambiguous: "memory_mask_ambiguous";
61
+ memory_mask_edited: "memory_mask_edited";
62
+ }>;
63
+ mask: z.ZodString;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ error: z.ZodString;
66
+ code: z.ZodLiteral<"memory_conflict">;
67
+ }, z.core.$strip>]>, z.ZodObject<{
68
+ error: z.ZodString;
69
+ code: z.ZodEnum<{
70
+ memory_compaction_conflict: "memory_compaction_conflict";
71
+ memory_compaction_invalid: "memory_compaction_invalid";
72
+ }>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ error: z.ZodString;
75
+ code: z.ZodLiteral<"memory_compaction_unavailable">;
76
+ condition: z.ZodString;
77
+ }, z.core.$strip>]>;
26
78
  /** TAL-819: a kind's staged writes and whether the page shows its review panel. */
27
79
  export declare const PendingWritesSchema: z.ZodObject<{
28
80
  kind: z.ZodEnum<{
@@ -78,9 +130,9 @@ export declare const toolsContract: {
78
130
  load_name: z.ZodOptional<z.ZodString>;
79
131
  declared_name: z.ZodOptional<z.ZodString>;
80
132
  status: z.ZodOptional<z.ZodEnum<{
133
+ shadowed: "shadowed";
81
134
  unique: "unique";
82
135
  ambiguous: "ambiguous";
83
- shadowed: "shadowed";
84
136
  }>>;
85
137
  tier: z.ZodOptional<z.ZodNumber>;
86
138
  }, z.core.$loose>>;
@@ -136,6 +188,36 @@ export declare const toolsContract: {
136
188
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
137
189
  };
138
190
  memory: {
191
+ compactionPreview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
192
+ section: z.ZodEnum<{
193
+ memory: "memory";
194
+ user: "user";
195
+ }>;
196
+ revision: z.ZodString;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ section: z.ZodEnum<{
199
+ memory: "memory";
200
+ user: "user";
201
+ }>;
202
+ revision: z.ZodString;
203
+ proposed_revision: z.ZodString;
204
+ receipt: z.ZodString;
205
+ source: z.ZodString;
206
+ proposed: z.ZodString;
207
+ diff: z.ZodString;
208
+ model: z.ZodString;
209
+ expires_at: z.ZodNumber;
210
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
211
+ compactionApply: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
212
+ receipt: z.ZodString;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ ok: z.ZodLiteral<true>;
215
+ section: z.ZodEnum<{
216
+ memory: "memory";
217
+ user: "user";
218
+ }>;
219
+ revision: z.ZodString;
220
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
139
221
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
140
222
  session_id: z.ZodOptional<z.ZodString>;
141
223
  workspace: z.ZodOptional<z.ZodString>;
@@ -368,8 +450,8 @@ export declare const toolsContract: {
368
450
  enabled: z.ZodBoolean;
369
451
  status: z.ZodEnum<{
370
452
  error: "error";
371
- ready: "ready";
372
453
  empty: "empty";
454
+ ready: "ready";
373
455
  missing: "missing";
374
456
  not_directory: "not_directory";
375
457
  }>;
@@ -550,6 +632,7 @@ export declare const toolsContract: {
550
632
  }, z.core.$loose>>;
551
633
  docs: z.ZodObject<{
552
634
  project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
635
+ name: z.ZodOptional<z.ZodString>;
553
636
  path: z.ZodOptional<z.ZodString>;
554
637
  content: z.ZodOptional<z.ZodString>;
555
638
  lines: z.ZodOptional<z.ZodNumber>;
@@ -558,21 +641,28 @@ export declare const toolsContract: {
558
641
  binary: z.ZodOptional<z.ZodBoolean>;
559
642
  mime: z.ZodOptional<z.ZodString>;
560
643
  preview: z.ZodOptional<z.ZodEnum<{
644
+ markdown: "markdown";
645
+ html: "html";
561
646
  text: "text";
562
647
  image: "image";
563
648
  audio: "audio";
564
649
  video: "video";
565
650
  pdf: "pdf";
566
- markdown: "markdown";
567
651
  csv: "csv";
568
- html: "html";
569
652
  binary: "binary";
570
653
  }>>;
571
654
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
572
655
  table_truncated: z.ZodOptional<z.ZodBoolean>;
573
656
  preview_url: z.ZodOptional<z.ZodString>;
657
+ source: z.ZodOptional<z.ZodEnum<{
658
+ workspace: "workspace";
659
+ managed: "managed";
660
+ }>>;
661
+ read_only: z.ZodOptional<z.ZodBoolean>;
662
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
574
663
  }, z.core.$loose>>>;
575
664
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
665
+ name: z.ZodOptional<z.ZodString>;
576
666
  path: z.ZodOptional<z.ZodString>;
577
667
  content: z.ZodOptional<z.ZodString>;
578
668
  lines: z.ZodOptional<z.ZodNumber>;
@@ -581,21 +671,28 @@ export declare const toolsContract: {
581
671
  binary: z.ZodOptional<z.ZodBoolean>;
582
672
  mime: z.ZodOptional<z.ZodString>;
583
673
  preview: z.ZodOptional<z.ZodEnum<{
674
+ markdown: "markdown";
675
+ html: "html";
584
676
  text: "text";
585
677
  image: "image";
586
678
  audio: "audio";
587
679
  video: "video";
588
680
  pdf: "pdf";
589
- markdown: "markdown";
590
681
  csv: "csv";
591
- html: "html";
592
682
  binary: "binary";
593
683
  }>>;
594
684
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
595
685
  table_truncated: z.ZodOptional<z.ZodBoolean>;
596
686
  preview_url: z.ZodOptional<z.ZodString>;
687
+ source: z.ZodOptional<z.ZodEnum<{
688
+ workspace: "workspace";
689
+ managed: "managed";
690
+ }>>;
691
+ read_only: z.ZodOptional<z.ZodBoolean>;
692
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
597
693
  }, z.core.$loose>>>;
598
694
  status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
695
+ name: z.ZodOptional<z.ZodString>;
599
696
  path: z.ZodOptional<z.ZodString>;
600
697
  content: z.ZodOptional<z.ZodString>;
601
698
  lines: z.ZodOptional<z.ZodNumber>;
@@ -604,21 +701,28 @@ export declare const toolsContract: {
604
701
  binary: z.ZodOptional<z.ZodBoolean>;
605
702
  mime: z.ZodOptional<z.ZodString>;
606
703
  preview: z.ZodOptional<z.ZodEnum<{
704
+ markdown: "markdown";
705
+ html: "html";
607
706
  text: "text";
608
707
  image: "image";
609
708
  audio: "audio";
610
709
  video: "video";
611
710
  pdf: "pdf";
612
- markdown: "markdown";
613
711
  csv: "csv";
614
- html: "html";
615
712
  binary: "binary";
616
713
  }>>;
617
714
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
618
715
  table_truncated: z.ZodOptional<z.ZodBoolean>;
619
716
  preview_url: z.ZodOptional<z.ZodString>;
717
+ source: z.ZodOptional<z.ZodEnum<{
718
+ workspace: "workspace";
719
+ managed: "managed";
720
+ }>>;
721
+ read_only: z.ZodOptional<z.ZodBoolean>;
722
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
620
723
  }, z.core.$loose>>>;
621
724
  blocker_resolver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
725
+ name: z.ZodOptional<z.ZodString>;
622
726
  path: z.ZodOptional<z.ZodString>;
623
727
  content: z.ZodOptional<z.ZodString>;
624
728
  lines: z.ZodOptional<z.ZodNumber>;
@@ -627,19 +731,25 @@ export declare const toolsContract: {
627
731
  binary: z.ZodOptional<z.ZodBoolean>;
628
732
  mime: z.ZodOptional<z.ZodString>;
629
733
  preview: z.ZodOptional<z.ZodEnum<{
734
+ markdown: "markdown";
735
+ html: "html";
630
736
  text: "text";
631
737
  image: "image";
632
738
  audio: "audio";
633
739
  video: "video";
634
740
  pdf: "pdf";
635
- markdown: "markdown";
636
741
  csv: "csv";
637
- html: "html";
638
742
  binary: "binary";
639
743
  }>>;
640
744
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
641
745
  table_truncated: z.ZodOptional<z.ZodBoolean>;
642
746
  preview_url: z.ZodOptional<z.ZodString>;
747
+ source: z.ZodOptional<z.ZodEnum<{
748
+ workspace: "workspace";
749
+ managed: "managed";
750
+ }>>;
751
+ read_only: z.ZodOptional<z.ZodBoolean>;
752
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
643
753
  }, z.core.$loose>>>;
644
754
  }, z.core.$strip>;
645
755
  handoff: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -778,6 +888,55 @@ export declare const toolsContract: {
778
888
  mcp: {
779
889
  servers: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
780
890
  servers: z.ZodArray<z.ZodObject<{
891
+ cost_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
892
+ error: z.ZodNullable<z.ZodString>;
893
+ source: z.ZodEnum<{
894
+ native: "native";
895
+ package: "package";
896
+ native_override: "native_override";
897
+ }>;
898
+ can_edit: z.ZodBoolean;
899
+ tool_costs: z.ZodArray<z.ZodObject<{
900
+ name: z.ZodString;
901
+ low: z.ZodNumber;
902
+ high: z.ZodNumber;
903
+ note: z.ZodString;
904
+ }, z.core.$strip>>;
905
+ spend_limit: z.ZodNumber;
906
+ cost_unit: z.ZodString;
907
+ name: z.ZodString;
908
+ valid: z.ZodBoolean;
909
+ overrides: z.ZodObject<{
910
+ tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
911
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
912
+ note: z.ZodOptional<z.ZodString>;
913
+ }, z.core.$strict>]>>>;
914
+ spend_limit: z.ZodNullable<z.ZodNumber>;
915
+ cost_unit: z.ZodNullable<z.ZodString>;
916
+ }, z.core.$strip>;
917
+ budget_enabled: z.ZodBoolean;
918
+ field_sources: z.ZodObject<{
919
+ tool_costs: z.ZodEnum<{
920
+ default: "default";
921
+ native: "native";
922
+ package: "package";
923
+ }>;
924
+ spend_limit: z.ZodEnum<{
925
+ default: "default";
926
+ native: "native";
927
+ package: "package";
928
+ }>;
929
+ cost_unit: z.ZodEnum<{
930
+ default: "default";
931
+ native: "native";
932
+ package: "package";
933
+ }>;
934
+ }, z.core.$strip>;
935
+ revision: z.ZodString;
936
+ provenance: z.ZodLiteral<"declared_estimate">;
937
+ reload_required: z.ZodLiteral<true>;
938
+ runtime_state: z.ZodLiteral<"unknown">;
939
+ }, z.core.$strip>>>;
781
940
  name: z.ZodString;
782
941
  id: z.ZodOptional<z.ZodString>;
783
942
  transport: z.ZodOptional<z.ZodString>;
@@ -822,9 +981,67 @@ export declare const toolsContract: {
822
981
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
823
982
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
824
983
  name: z.ZodString;
984
+ config_revision: z.ZodOptional<z.ZodString>;
985
+ cost_policy: z.ZodOptional<z.ZodObject<{
986
+ tool_costs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
987
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
988
+ note: z.ZodOptional<z.ZodString>;
989
+ }, z.core.$strict>]>>>>;
990
+ spend_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
991
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
992
+ }, z.core.$strict>>;
825
993
  }, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
826
994
  ok: z.ZodLiteral<true>;
827
995
  server: z.ZodObject<{
996
+ cost_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
997
+ error: z.ZodNullable<z.ZodString>;
998
+ source: z.ZodEnum<{
999
+ native: "native";
1000
+ package: "package";
1001
+ native_override: "native_override";
1002
+ }>;
1003
+ can_edit: z.ZodBoolean;
1004
+ tool_costs: z.ZodArray<z.ZodObject<{
1005
+ name: z.ZodString;
1006
+ low: z.ZodNumber;
1007
+ high: z.ZodNumber;
1008
+ note: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ spend_limit: z.ZodNumber;
1011
+ cost_unit: z.ZodString;
1012
+ name: z.ZodString;
1013
+ valid: z.ZodBoolean;
1014
+ overrides: z.ZodObject<{
1015
+ tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
1016
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1017
+ note: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$strict>]>>>;
1019
+ spend_limit: z.ZodNullable<z.ZodNumber>;
1020
+ cost_unit: z.ZodNullable<z.ZodString>;
1021
+ }, z.core.$strip>;
1022
+ budget_enabled: z.ZodBoolean;
1023
+ field_sources: z.ZodObject<{
1024
+ tool_costs: z.ZodEnum<{
1025
+ default: "default";
1026
+ native: "native";
1027
+ package: "package";
1028
+ }>;
1029
+ spend_limit: z.ZodEnum<{
1030
+ default: "default";
1031
+ native: "native";
1032
+ package: "package";
1033
+ }>;
1034
+ cost_unit: z.ZodEnum<{
1035
+ default: "default";
1036
+ native: "native";
1037
+ package: "package";
1038
+ }>;
1039
+ }, z.core.$strip>;
1040
+ revision: z.ZodString;
1041
+ provenance: z.ZodLiteral<"declared_estimate">;
1042
+ reload_required: z.ZodLiteral<true>;
1043
+ runtime_state: z.ZodLiteral<"unknown">;
1044
+ }, z.core.$strip>>>;
828
1045
  name: z.ZodString;
829
1046
  id: z.ZodOptional<z.ZodString>;
830
1047
  transport: z.ZodOptional<z.ZodString>;
@@ -859,6 +1076,7 @@ export declare const toolsContract: {
859
1076
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
860
1077
  page: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
861
1078
  available: z.ZodBoolean;
1079
+ sign_in_required: z.ZodDefault<z.ZodBoolean>;
862
1080
  connectors: z.ZodArray<z.ZodObject<{
863
1081
  slug: z.ZodString;
864
1082
  name: z.ZodString;
@@ -871,8 +1089,8 @@ export declare const toolsContract: {
871
1089
  name: z.ZodString;
872
1090
  problem: z.ZodNullable<z.ZodEnum<{
873
1091
  pending: "pending";
874
- failed: "failed";
875
1092
  expired: "expired";
1093
+ failed: "failed";
876
1094
  revoked: "revoked";
877
1095
  inactive: "inactive";
878
1096
  }>>;
@@ -936,19 +1154,19 @@ export declare const toolsContract: {
936
1154
  kind: z.ZodString;
937
1155
  state: z.ZodEnum<{
938
1156
  pending: "pending";
1157
+ expired: "expired";
939
1158
  skipped: "skipped";
1159
+ failed: "failed";
940
1160
  initiated: "initiated";
941
1161
  connected: "connected";
942
- failed: "failed";
943
- expired: "expired";
944
1162
  not_connected: "not_connected";
945
1163
  }>;
946
1164
  detail: z.ZodString;
947
1165
  connect_url: z.ZodNullable<z.ZodString>;
948
1166
  actions: z.ZodArray<z.ZodEnum<{
949
1167
  retry: "retry";
950
- skip: "skip";
951
1168
  approve: "approve";
1169
+ skip: "skip";
952
1170
  }>>;
953
1171
  env_fields: z.ZodArray<z.ZodObject<{
954
1172
  name: z.ZodString;
@@ -980,19 +1198,19 @@ export declare const toolsContract: {
980
1198
  kind: z.ZodString;
981
1199
  state: z.ZodEnum<{
982
1200
  pending: "pending";
1201
+ expired: "expired";
983
1202
  skipped: "skipped";
1203
+ failed: "failed";
984
1204
  initiated: "initiated";
985
1205
  connected: "connected";
986
- failed: "failed";
987
- expired: "expired";
988
1206
  not_connected: "not_connected";
989
1207
  }>;
990
1208
  detail: z.ZodString;
991
1209
  connect_url: z.ZodNullable<z.ZodString>;
992
1210
  actions: z.ZodArray<z.ZodEnum<{
993
1211
  retry: "retry";
994
- skip: "skip";
995
1212
  approve: "approve";
1213
+ skip: "skip";
996
1214
  }>>;
997
1215
  env_fields: z.ZodArray<z.ZodObject<{
998
1216
  name: z.ZodString;
@@ -1006,8 +1224,8 @@ export declare const toolsContract: {
1006
1224
  op_id: z.ZodString;
1007
1225
  action: z.ZodEnum<{
1008
1226
  retry: "retry";
1009
- skip: "skip";
1010
1227
  approve: "approve";
1228
+ skip: "skip";
1011
1229
  continue: "continue";
1012
1230
  }>;
1013
1231
  target: z.ZodOptional<z.ZodString>;
@@ -1027,19 +1245,19 @@ export declare const toolsContract: {
1027
1245
  kind: z.ZodString;
1028
1246
  state: z.ZodEnum<{
1029
1247
  pending: "pending";
1248
+ expired: "expired";
1030
1249
  skipped: "skipped";
1250
+ failed: "failed";
1031
1251
  initiated: "initiated";
1032
1252
  connected: "connected";
1033
- failed: "failed";
1034
- expired: "expired";
1035
1253
  not_connected: "not_connected";
1036
1254
  }>;
1037
1255
  detail: z.ZodString;
1038
1256
  connect_url: z.ZodNullable<z.ZodString>;
1039
1257
  actions: z.ZodArray<z.ZodEnum<{
1040
1258
  retry: "retry";
1041
- skip: "skip";
1042
1259
  approve: "approve";
1260
+ skip: "skip";
1043
1261
  }>>;
1044
1262
  env_fields: z.ZodArray<z.ZodObject<{
1045
1263
  name: z.ZodString;
@@ -1061,6 +1279,10 @@ export declare const toolsContract: {
1061
1279
  activation: z.ZodOptional<z.ZodString>;
1062
1280
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
1063
1281
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1282
+ update: z.ZodOptional<z.ZodObject<{
1283
+ available: z.ZodBoolean;
1284
+ latest_revision: z.ZodOptional<z.ZodString>;
1285
+ }, z.core.$strip>>;
1064
1286
  settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1065
1287
  key: z.ZodString;
1066
1288
  type: z.ZodEnum<{
@@ -1081,6 +1303,18 @@ export declare const toolsContract: {
1081
1303
  has_value: z.ZodOptional<z.ZodBoolean>;
1082
1304
  locked: z.ZodOptional<z.ZodBoolean>;
1083
1305
  }, z.core.$strip>>>;
1306
+ oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
+ id: z.ZodString;
1308
+ state: z.ZodEnum<{
1309
+ signed_in: "signed_in";
1310
+ sign_in_needed: "sign_in_needed";
1311
+ revoked: "revoked";
1312
+ logged_out: "logged_out";
1313
+ }>;
1314
+ authorize_host: z.ZodString;
1315
+ token_host: z.ZodString;
1316
+ can_sign_out: z.ZodBoolean;
1317
+ }, z.core.$strip>>>;
1084
1318
  }, z.core.$loose>>;
1085
1319
  empty: z.ZodOptional<z.ZodBoolean>;
1086
1320
  read_only: z.ZodOptional<z.ZodBoolean>;
@@ -1088,6 +1322,67 @@ export declare const toolsContract: {
1088
1322
  unavailable: z.ZodOptional<z.ZodBoolean>;
1089
1323
  plugin_isolation_advisory: z.ZodOptional<z.ZodBoolean>;
1090
1324
  }, z.core.$loose>, Record<never, never>, Record<never, never>>;
1325
+ pluginCatalog: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1326
+ query: z.ZodDefault<z.ZodString>;
1327
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1328
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1329
+ }, z.core.$strip>, z.ZodObject<{
1330
+ supported: z.ZodBoolean;
1331
+ read_only: z.ZodOptional<z.ZodBoolean>;
1332
+ entries: z.ZodArray<z.ZodObject<{
1333
+ name: z.ZodString;
1334
+ title: z.ZodString;
1335
+ description: z.ZodString;
1336
+ repo: z.ZodString;
1337
+ sha: z.ZodString;
1338
+ tier: z.ZodString;
1339
+ category: z.ZodString;
1340
+ requirements: z.ZodArray<z.ZodString>;
1341
+ installed_key: z.ZodNullable<z.ZodString>;
1342
+ installed_sha: z.ZodNullable<z.ZodString>;
1343
+ can_install: z.ZodBoolean;
1344
+ refusal: z.ZodNullable<z.ZodString>;
1345
+ }, z.core.$strip>>;
1346
+ total: z.ZodNumber;
1347
+ next_offset: z.ZodNullable<z.ZodNumber>;
1348
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1349
+ pluginInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1350
+ name: z.ZodString;
1351
+ consent_token: z.ZodOptional<z.ZodString>;
1352
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1353
+ name: z.ZodString;
1354
+ key: z.ZodString;
1355
+ status: z.ZodLiteral<"installed">;
1356
+ enabled: z.ZodLiteral<false>;
1357
+ }, z.core.$strip>, z.ZodObject<{
1358
+ name: z.ZodString;
1359
+ status: z.ZodLiteral<"needs_consent">;
1360
+ findings: z.ZodString;
1361
+ consent_token: z.ZodString;
1362
+ }, z.core.$strip>, z.ZodObject<{
1363
+ name: z.ZodString;
1364
+ status: z.ZodLiteral<"blocked">;
1365
+ findings: z.ZodString;
1366
+ }, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
1367
+ pluginUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1368
+ key: z.ZodString;
1369
+ accept_caution: z.ZodDefault<z.ZodBoolean>;
1370
+ consent_token: z.ZodOptional<z.ZodString>;
1371
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1372
+ key: z.ZodString;
1373
+ status: z.ZodLiteral<"updated">;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ key: z.ZodString;
1376
+ status: z.ZodLiteral<"needs_consent">;
1377
+ verdict: z.ZodLiteral<"caution">;
1378
+ findings: z.ZodString;
1379
+ consent_token: z.ZodString;
1380
+ }, z.core.$strip>, z.ZodObject<{
1381
+ key: z.ZodString;
1382
+ status: z.ZodLiteral<"blocked">;
1383
+ verdict: z.ZodString;
1384
+ findings: z.ZodString;
1385
+ }, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
1091
1386
  pluginSettings: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1092
1387
  key: z.ZodString;
1093
1388
  values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1116,20 +1411,73 @@ export declare const toolsContract: {
1116
1411
  has_value: z.ZodOptional<z.ZodBoolean>;
1117
1412
  locked: z.ZodOptional<z.ZodBoolean>;
1118
1413
  }, z.core.$strip>>;
1414
+ runtime_application: z.ZodEnum<{
1415
+ unknown: "unknown";
1416
+ applied: "applied";
1417
+ restart_required: "restart_required";
1418
+ }>;
1419
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1420
+ pluginOAuthRedirect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1421
+ flow_id: z.ZodString;
1422
+ url: z.ZodString;
1423
+ }, z.core.$strip>, z.ZodObject<{
1424
+ ok: z.ZodOptional<z.ZodBoolean>;
1425
+ status: z.ZodOptional<z.ZodString>;
1426
+ url: z.ZodOptional<z.ZodString>;
1427
+ verification_url: z.ZodOptional<z.ZodString>;
1428
+ user_code: z.ZodOptional<z.ZodString>;
1429
+ message: z.ZodOptional<z.ZodString>;
1430
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1431
+ flow_id: z.ZodOptional<z.ZodString>;
1432
+ provider: z.ZodOptional<z.ZodString>;
1433
+ expires_in: z.ZodOptional<z.ZodNumber>;
1434
+ interval: z.ZodOptional<z.ZodNumber>;
1435
+ authorize_host: z.ZodOptional<z.ZodString>;
1436
+ token_host: z.ZodOptional<z.ZodString>;
1437
+ redirect_uri: z.ZodOptional<z.ZodString>;
1438
+ }, z.core.$loose>, Record<never, never>, Record<never, never>>;
1439
+ pluginOAuthLogout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1440
+ key: z.ZodString;
1441
+ id: z.ZodString;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ ok: z.ZodLiteral<true>;
1444
+ removed: z.ZodBoolean;
1119
1445
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1120
1446
  updates: {
1121
1447
  check: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1122
1448
  agent_recovery: z.ZodOptional<z.ZodObject<{
1123
1449
  phase: z.ZodEnum<{
1450
+ blocked: "blocked";
1124
1451
  running: "running";
1125
1452
  waiting: "waiting";
1126
1453
  idle: "idle";
1127
1454
  complete: "complete";
1128
- blocked: "blocked";
1129
1455
  }>;
1130
1456
  attempt: z.ZodNumber;
1131
1457
  detail: z.ZodString;
1132
1458
  retry_at: z.ZodNullable<z.ZodString>;
1459
+ operation_id: z.ZodOptional<z.ZodUUID>;
1460
+ operation: z.ZodOptional<z.ZodObject<{
1461
+ operation_id: z.ZodUUID;
1462
+ baseline_revision: z.ZodString;
1463
+ target_revision: z.ZodString;
1464
+ stage: z.ZodEnum<{
1465
+ install: "install";
1466
+ gateway_restart: "gateway_restart";
1467
+ agent_ready: "agent_ready";
1468
+ }>;
1469
+ recovered_revision: z.ZodOptional<z.ZodString>;
1470
+ source_moved: z.ZodOptional<z.ZodBoolean>;
1471
+ attempt_error: z.ZodOptional<z.ZodString>;
1472
+ failed_stage: z.ZodOptional<z.ZodEnum<{
1473
+ install: "install";
1474
+ gateway_restart: "gateway_restart";
1475
+ agent_ready: "agent_ready";
1476
+ }>>;
1477
+ }, z.core.$strip>>;
1478
+ verified_revision: z.ZodOptional<z.ZodString>;
1479
+ runtime_revision: z.ZodOptional<z.ZodString>;
1480
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1133
1481
  }, z.core.$strip>>;
1134
1482
  disabled: z.ZodOptional<z.ZodBoolean>;
1135
1483
  cached: z.ZodOptional<z.ZodBoolean>;
@@ -1295,15 +1643,37 @@ export declare const toolsContract: {
1295
1643
  }, z.core.$strip>, z.ZodObject<{
1296
1644
  agent_recovery: z.ZodOptional<z.ZodObject<{
1297
1645
  phase: z.ZodEnum<{
1646
+ blocked: "blocked";
1298
1647
  running: "running";
1299
1648
  waiting: "waiting";
1300
1649
  idle: "idle";
1301
1650
  complete: "complete";
1302
- blocked: "blocked";
1303
1651
  }>;
1304
1652
  attempt: z.ZodNumber;
1305
1653
  detail: z.ZodString;
1306
1654
  retry_at: z.ZodNullable<z.ZodString>;
1655
+ operation_id: z.ZodOptional<z.ZodUUID>;
1656
+ operation: z.ZodOptional<z.ZodObject<{
1657
+ operation_id: z.ZodUUID;
1658
+ baseline_revision: z.ZodString;
1659
+ target_revision: z.ZodString;
1660
+ stage: z.ZodEnum<{
1661
+ install: "install";
1662
+ gateway_restart: "gateway_restart";
1663
+ agent_ready: "agent_ready";
1664
+ }>;
1665
+ recovered_revision: z.ZodOptional<z.ZodString>;
1666
+ source_moved: z.ZodOptional<z.ZodBoolean>;
1667
+ attempt_error: z.ZodOptional<z.ZodString>;
1668
+ failed_stage: z.ZodOptional<z.ZodEnum<{
1669
+ install: "install";
1670
+ gateway_restart: "gateway_restart";
1671
+ agent_ready: "agent_ready";
1672
+ }>>;
1673
+ }, z.core.$strip>>;
1674
+ verified_revision: z.ZodOptional<z.ZodString>;
1675
+ runtime_revision: z.ZodOptional<z.ZodString>;
1676
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
1677
  }, z.core.$strip>>;
1308
1678
  disabled: z.ZodOptional<z.ZodBoolean>;
1309
1679
  cached: z.ZodOptional<z.ZodBoolean>;
@@ -1471,6 +1841,10 @@ export declare const toolsContract: {
1471
1841
  target: z.ZodOptional<z.ZodString>;
1472
1842
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1473
1843
  }, z.core.$strip>, z.ZodObject<{
1844
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1845
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
1846
+ verified_revision: z.ZodOptional<z.ZodString>;
1847
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
1848
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1475
1849
  manual_execution: z.ZodBoolean;
1476
1850
  bot_chat_delivery: z.ZodBoolean;
@@ -1511,6 +1885,10 @@ export declare const toolsContract: {
1511
1885
  target: z.ZodOptional<z.ZodString>;
1512
1886
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
1887
  }, z.core.$strip>, z.ZodObject<{
1888
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1889
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
1890
+ verified_revision: z.ZodOptional<z.ZodString>;
1891
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
1892
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1515
1893
  manual_execution: z.ZodBoolean;
1516
1894
  bot_chat_delivery: z.ZodBoolean;
@@ -1551,6 +1929,10 @@ export declare const toolsContract: {
1551
1929
  target: z.ZodOptional<z.ZodString>;
1552
1930
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
1931
  }, z.core.$strip>, z.ZodObject<{
1932
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1933
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
1934
+ verified_revision: z.ZodOptional<z.ZodString>;
1935
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
1936
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1555
1937
  manual_execution: z.ZodBoolean;
1556
1938
  bot_chat_delivery: z.ZodBoolean;
@@ -1631,12 +2013,14 @@ export declare const toolsContract: {
1631
2013
  }>>;
1632
2014
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1633
2015
  unknown: "unknown";
1634
- failed: "failed";
1635
2016
  blocked: "blocked";
2017
+ restarting: "restarting";
2018
+ failed: "failed";
1636
2019
  applying: "applying";
1637
2020
  awaiting_confirmation: "awaiting_confirmation";
1638
2021
  waiting_for_idle: "waiting_for_idle";
1639
- restarting: "restarting";
2022
+ verifying: "verifying";
2023
+ recovering: "recovering";
1640
2024
  succeeded: "succeeded";
1641
2025
  }>, z.ZodString]>;
1642
2026
  severity: z.ZodEnum<{
@@ -1670,10 +2054,66 @@ export declare const toolsContract: {
1670
2054
  verified_revision: z.ZodNullable<z.ZodString>;
1671
2055
  verified_version: z.ZodNullable<z.ZodString>;
1672
2056
  detail: z.ZodNullable<z.ZodString>;
2057
+ recovery: z.ZodOptional<z.ZodObject<{
2058
+ operation: z.ZodObject<{
2059
+ operation_id: z.ZodUUID;
2060
+ baseline_revision: z.ZodString;
2061
+ target_revision: z.ZodString;
2062
+ stage: z.ZodEnum<{
2063
+ install: "install";
2064
+ gateway_restart: "gateway_restart";
2065
+ agent_ready: "agent_ready";
2066
+ }>;
2067
+ recovered_revision: z.ZodOptional<z.ZodString>;
2068
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2069
+ attempt_error: z.ZodOptional<z.ZodString>;
2070
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2071
+ install: "install";
2072
+ gateway_restart: "gateway_restart";
2073
+ agent_ready: "agent_ready";
2074
+ }>>;
2075
+ }, z.core.$strip>;
2076
+ attempt_error: z.ZodNullable<z.ZodString>;
2077
+ runtime_revision: z.ZodNullable<z.ZodString>;
2078
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2079
+ outcome: z.ZodEnum<{
2080
+ unknown: "unknown";
2081
+ blocked: "blocked";
2082
+ recovering: "recovering";
2083
+ target_installed: "target_installed";
2084
+ baseline_restored: "baseline_restored";
2085
+ other_revision: "other_revision";
2086
+ }>;
2087
+ }, z.core.$strip>>;
1673
2088
  unread: z.ZodBoolean;
1674
2089
  active: z.ZodBoolean;
1675
2090
  requires_interaction: z.ZodBoolean;
1676
2091
  can_dismiss: z.ZodBoolean;
2092
+ steps: z.ZodArray<z.ZodObject<{
2093
+ id: z.ZodEnum<{
2094
+ install: "install";
2095
+ gateway_restart: "gateway_restart";
2096
+ agent_ready: "agent_ready";
2097
+ ready: "ready";
2098
+ web_restart: "web_restart";
2099
+ gateway_wait: "gateway_wait";
2100
+ recovery: "recovery";
2101
+ }>;
2102
+ label: z.ZodString;
2103
+ state: z.ZodEnum<{
2104
+ pending: "pending";
2105
+ active: "active";
2106
+ failed: "failed";
2107
+ done: "done";
2108
+ }>;
2109
+ }, z.core.$strip>>;
2110
+ presents_dialog: z.ZodBoolean;
2111
+ dialog_close: z.ZodEnum<{
2112
+ auto: "auto";
2113
+ none: "none";
2114
+ close: "close";
2115
+ restart_later: "restart_later";
2116
+ }>;
1677
2117
  }, z.core.$strip>>;
1678
2118
  tab_update: z.ZodNullable<z.ZodObject<{
1679
2119
  id: z.ZodUUID;
@@ -1684,12 +2124,14 @@ export declare const toolsContract: {
1684
2124
  }>>;
1685
2125
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1686
2126
  unknown: "unknown";
1687
- failed: "failed";
1688
2127
  blocked: "blocked";
2128
+ restarting: "restarting";
2129
+ failed: "failed";
1689
2130
  applying: "applying";
1690
2131
  awaiting_confirmation: "awaiting_confirmation";
1691
2132
  waiting_for_idle: "waiting_for_idle";
1692
- restarting: "restarting";
2133
+ verifying: "verifying";
2134
+ recovering: "recovering";
1693
2135
  succeeded: "succeeded";
1694
2136
  }>, z.ZodString]>;
1695
2137
  severity: z.ZodEnum<{
@@ -1723,10 +2165,66 @@ export declare const toolsContract: {
1723
2165
  verified_revision: z.ZodNullable<z.ZodString>;
1724
2166
  verified_version: z.ZodNullable<z.ZodString>;
1725
2167
  detail: z.ZodNullable<z.ZodString>;
2168
+ recovery: z.ZodOptional<z.ZodObject<{
2169
+ operation: z.ZodObject<{
2170
+ operation_id: z.ZodUUID;
2171
+ baseline_revision: z.ZodString;
2172
+ target_revision: z.ZodString;
2173
+ stage: z.ZodEnum<{
2174
+ install: "install";
2175
+ gateway_restart: "gateway_restart";
2176
+ agent_ready: "agent_ready";
2177
+ }>;
2178
+ recovered_revision: z.ZodOptional<z.ZodString>;
2179
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2180
+ attempt_error: z.ZodOptional<z.ZodString>;
2181
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2182
+ install: "install";
2183
+ gateway_restart: "gateway_restart";
2184
+ agent_ready: "agent_ready";
2185
+ }>>;
2186
+ }, z.core.$strip>;
2187
+ attempt_error: z.ZodNullable<z.ZodString>;
2188
+ runtime_revision: z.ZodNullable<z.ZodString>;
2189
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2190
+ outcome: z.ZodEnum<{
2191
+ unknown: "unknown";
2192
+ blocked: "blocked";
2193
+ recovering: "recovering";
2194
+ target_installed: "target_installed";
2195
+ baseline_restored: "baseline_restored";
2196
+ other_revision: "other_revision";
2197
+ }>;
2198
+ }, z.core.$strip>>;
1726
2199
  unread: z.ZodBoolean;
1727
2200
  active: z.ZodBoolean;
1728
2201
  requires_interaction: z.ZodBoolean;
1729
2202
  can_dismiss: z.ZodBoolean;
2203
+ steps: z.ZodArray<z.ZodObject<{
2204
+ id: z.ZodEnum<{
2205
+ install: "install";
2206
+ gateway_restart: "gateway_restart";
2207
+ agent_ready: "agent_ready";
2208
+ ready: "ready";
2209
+ web_restart: "web_restart";
2210
+ gateway_wait: "gateway_wait";
2211
+ recovery: "recovery";
2212
+ }>;
2213
+ label: z.ZodString;
2214
+ state: z.ZodEnum<{
2215
+ pending: "pending";
2216
+ active: "active";
2217
+ failed: "failed";
2218
+ done: "done";
2219
+ }>;
2220
+ }, z.core.$strip>>;
2221
+ presents_dialog: z.ZodBoolean;
2222
+ dialog_close: z.ZodEnum<{
2223
+ auto: "auto";
2224
+ none: "none";
2225
+ close: "close";
2226
+ restart_later: "restart_later";
2227
+ }>;
1730
2228
  }, z.core.$strip>>;
1731
2229
  tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
1732
2230
  unread_count: z.ZodNumber;
@@ -1746,12 +2244,14 @@ export declare const toolsContract: {
1746
2244
  }>>;
1747
2245
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1748
2246
  unknown: "unknown";
1749
- failed: "failed";
1750
2247
  blocked: "blocked";
2248
+ restarting: "restarting";
2249
+ failed: "failed";
1751
2250
  applying: "applying";
1752
2251
  awaiting_confirmation: "awaiting_confirmation";
1753
2252
  waiting_for_idle: "waiting_for_idle";
1754
- restarting: "restarting";
2253
+ verifying: "verifying";
2254
+ recovering: "recovering";
1755
2255
  succeeded: "succeeded";
1756
2256
  }>, z.ZodString]>;
1757
2257
  severity: z.ZodEnum<{
@@ -1785,10 +2285,66 @@ export declare const toolsContract: {
1785
2285
  verified_revision: z.ZodNullable<z.ZodString>;
1786
2286
  verified_version: z.ZodNullable<z.ZodString>;
1787
2287
  detail: z.ZodNullable<z.ZodString>;
2288
+ recovery: z.ZodOptional<z.ZodObject<{
2289
+ operation: z.ZodObject<{
2290
+ operation_id: z.ZodUUID;
2291
+ baseline_revision: z.ZodString;
2292
+ target_revision: z.ZodString;
2293
+ stage: z.ZodEnum<{
2294
+ install: "install";
2295
+ gateway_restart: "gateway_restart";
2296
+ agent_ready: "agent_ready";
2297
+ }>;
2298
+ recovered_revision: z.ZodOptional<z.ZodString>;
2299
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2300
+ attempt_error: z.ZodOptional<z.ZodString>;
2301
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2302
+ install: "install";
2303
+ gateway_restart: "gateway_restart";
2304
+ agent_ready: "agent_ready";
2305
+ }>>;
2306
+ }, z.core.$strip>;
2307
+ attempt_error: z.ZodNullable<z.ZodString>;
2308
+ runtime_revision: z.ZodNullable<z.ZodString>;
2309
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2310
+ outcome: z.ZodEnum<{
2311
+ unknown: "unknown";
2312
+ blocked: "blocked";
2313
+ recovering: "recovering";
2314
+ target_installed: "target_installed";
2315
+ baseline_restored: "baseline_restored";
2316
+ other_revision: "other_revision";
2317
+ }>;
2318
+ }, z.core.$strip>>;
1788
2319
  unread: z.ZodBoolean;
1789
2320
  active: z.ZodBoolean;
1790
2321
  requires_interaction: z.ZodBoolean;
1791
2322
  can_dismiss: z.ZodBoolean;
2323
+ steps: z.ZodArray<z.ZodObject<{
2324
+ id: z.ZodEnum<{
2325
+ install: "install";
2326
+ gateway_restart: "gateway_restart";
2327
+ agent_ready: "agent_ready";
2328
+ ready: "ready";
2329
+ web_restart: "web_restart";
2330
+ gateway_wait: "gateway_wait";
2331
+ recovery: "recovery";
2332
+ }>;
2333
+ label: z.ZodString;
2334
+ state: z.ZodEnum<{
2335
+ pending: "pending";
2336
+ active: "active";
2337
+ failed: "failed";
2338
+ done: "done";
2339
+ }>;
2340
+ }, z.core.$strip>>;
2341
+ presents_dialog: z.ZodBoolean;
2342
+ dialog_close: z.ZodEnum<{
2343
+ auto: "auto";
2344
+ none: "none";
2345
+ close: "close";
2346
+ restart_later: "restart_later";
2347
+ }>;
1792
2348
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1793
2349
  dismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1794
2350
  id: z.ZodUUID;
@@ -1818,12 +2374,14 @@ export declare const toolsContract: {
1818
2374
  }>>;
1819
2375
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1820
2376
  unknown: "unknown";
1821
- failed: "failed";
1822
2377
  blocked: "blocked";
2378
+ restarting: "restarting";
2379
+ failed: "failed";
1823
2380
  applying: "applying";
1824
2381
  awaiting_confirmation: "awaiting_confirmation";
1825
2382
  waiting_for_idle: "waiting_for_idle";
1826
- restarting: "restarting";
2383
+ verifying: "verifying";
2384
+ recovering: "recovering";
1827
2385
  succeeded: "succeeded";
1828
2386
  }>, z.ZodString]>;
1829
2387
  severity: z.ZodEnum<{
@@ -1857,10 +2415,66 @@ export declare const toolsContract: {
1857
2415
  verified_revision: z.ZodNullable<z.ZodString>;
1858
2416
  verified_version: z.ZodNullable<z.ZodString>;
1859
2417
  detail: z.ZodNullable<z.ZodString>;
2418
+ recovery: z.ZodOptional<z.ZodObject<{
2419
+ operation: z.ZodObject<{
2420
+ operation_id: z.ZodUUID;
2421
+ baseline_revision: z.ZodString;
2422
+ target_revision: z.ZodString;
2423
+ stage: z.ZodEnum<{
2424
+ install: "install";
2425
+ gateway_restart: "gateway_restart";
2426
+ agent_ready: "agent_ready";
2427
+ }>;
2428
+ recovered_revision: z.ZodOptional<z.ZodString>;
2429
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2430
+ attempt_error: z.ZodOptional<z.ZodString>;
2431
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2432
+ install: "install";
2433
+ gateway_restart: "gateway_restart";
2434
+ agent_ready: "agent_ready";
2435
+ }>>;
2436
+ }, z.core.$strip>;
2437
+ attempt_error: z.ZodNullable<z.ZodString>;
2438
+ runtime_revision: z.ZodNullable<z.ZodString>;
2439
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2440
+ outcome: z.ZodEnum<{
2441
+ unknown: "unknown";
2442
+ blocked: "blocked";
2443
+ recovering: "recovering";
2444
+ target_installed: "target_installed";
2445
+ baseline_restored: "baseline_restored";
2446
+ other_revision: "other_revision";
2447
+ }>;
2448
+ }, z.core.$strip>>;
1860
2449
  unread: z.ZodBoolean;
1861
2450
  active: z.ZodBoolean;
1862
2451
  requires_interaction: z.ZodBoolean;
1863
2452
  can_dismiss: z.ZodBoolean;
2453
+ steps: z.ZodArray<z.ZodObject<{
2454
+ id: z.ZodEnum<{
2455
+ install: "install";
2456
+ gateway_restart: "gateway_restart";
2457
+ agent_ready: "agent_ready";
2458
+ ready: "ready";
2459
+ web_restart: "web_restart";
2460
+ gateway_wait: "gateway_wait";
2461
+ recovery: "recovery";
2462
+ }>;
2463
+ label: z.ZodString;
2464
+ state: z.ZodEnum<{
2465
+ pending: "pending";
2466
+ active: "active";
2467
+ failed: "failed";
2468
+ done: "done";
2469
+ }>;
2470
+ }, z.core.$strip>>;
2471
+ presents_dialog: z.ZodBoolean;
2472
+ dialog_close: z.ZodEnum<{
2473
+ auto: "auto";
2474
+ none: "none";
2475
+ close: "close";
2476
+ restart_later: "restart_later";
2477
+ }>;
1864
2478
  }, z.core.$strip>>;
1865
2479
  tab_update: z.ZodNullable<z.ZodObject<{
1866
2480
  id: z.ZodUUID;
@@ -1871,12 +2485,14 @@ export declare const toolsContract: {
1871
2485
  }>>;
1872
2486
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1873
2487
  unknown: "unknown";
1874
- failed: "failed";
1875
2488
  blocked: "blocked";
2489
+ restarting: "restarting";
2490
+ failed: "failed";
1876
2491
  applying: "applying";
1877
2492
  awaiting_confirmation: "awaiting_confirmation";
1878
2493
  waiting_for_idle: "waiting_for_idle";
1879
- restarting: "restarting";
2494
+ verifying: "verifying";
2495
+ recovering: "recovering";
1880
2496
  succeeded: "succeeded";
1881
2497
  }>, z.ZodString]>;
1882
2498
  severity: z.ZodEnum<{
@@ -1910,10 +2526,66 @@ export declare const toolsContract: {
1910
2526
  verified_revision: z.ZodNullable<z.ZodString>;
1911
2527
  verified_version: z.ZodNullable<z.ZodString>;
1912
2528
  detail: z.ZodNullable<z.ZodString>;
2529
+ recovery: z.ZodOptional<z.ZodObject<{
2530
+ operation: z.ZodObject<{
2531
+ operation_id: z.ZodUUID;
2532
+ baseline_revision: z.ZodString;
2533
+ target_revision: z.ZodString;
2534
+ stage: z.ZodEnum<{
2535
+ install: "install";
2536
+ gateway_restart: "gateway_restart";
2537
+ agent_ready: "agent_ready";
2538
+ }>;
2539
+ recovered_revision: z.ZodOptional<z.ZodString>;
2540
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2541
+ attempt_error: z.ZodOptional<z.ZodString>;
2542
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2543
+ install: "install";
2544
+ gateway_restart: "gateway_restart";
2545
+ agent_ready: "agent_ready";
2546
+ }>>;
2547
+ }, z.core.$strip>;
2548
+ attempt_error: z.ZodNullable<z.ZodString>;
2549
+ runtime_revision: z.ZodNullable<z.ZodString>;
2550
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2551
+ outcome: z.ZodEnum<{
2552
+ unknown: "unknown";
2553
+ blocked: "blocked";
2554
+ recovering: "recovering";
2555
+ target_installed: "target_installed";
2556
+ baseline_restored: "baseline_restored";
2557
+ other_revision: "other_revision";
2558
+ }>;
2559
+ }, z.core.$strip>>;
1913
2560
  unread: z.ZodBoolean;
1914
2561
  active: z.ZodBoolean;
1915
2562
  requires_interaction: z.ZodBoolean;
1916
2563
  can_dismiss: z.ZodBoolean;
2564
+ steps: z.ZodArray<z.ZodObject<{
2565
+ id: z.ZodEnum<{
2566
+ install: "install";
2567
+ gateway_restart: "gateway_restart";
2568
+ agent_ready: "agent_ready";
2569
+ ready: "ready";
2570
+ web_restart: "web_restart";
2571
+ gateway_wait: "gateway_wait";
2572
+ recovery: "recovery";
2573
+ }>;
2574
+ label: z.ZodString;
2575
+ state: z.ZodEnum<{
2576
+ pending: "pending";
2577
+ active: "active";
2578
+ failed: "failed";
2579
+ done: "done";
2580
+ }>;
2581
+ }, z.core.$strip>>;
2582
+ presents_dialog: z.ZodBoolean;
2583
+ dialog_close: z.ZodEnum<{
2584
+ auto: "auto";
2585
+ none: "none";
2586
+ close: "close";
2587
+ restart_later: "restart_later";
2588
+ }>;
1917
2589
  }, z.core.$strip>>;
1918
2590
  tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
1919
2591
  unread_count: z.ZodNumber;
@@ -1932,12 +2604,14 @@ export declare const toolsContract: {
1932
2604
  }>>;
1933
2605
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1934
2606
  unknown: "unknown";
1935
- failed: "failed";
1936
2607
  blocked: "blocked";
2608
+ restarting: "restarting";
2609
+ failed: "failed";
1937
2610
  applying: "applying";
1938
2611
  awaiting_confirmation: "awaiting_confirmation";
1939
2612
  waiting_for_idle: "waiting_for_idle";
1940
- restarting: "restarting";
2613
+ verifying: "verifying";
2614
+ recovering: "recovering";
1941
2615
  succeeded: "succeeded";
1942
2616
  }>, z.ZodString]>;
1943
2617
  severity: z.ZodEnum<{
@@ -1971,10 +2645,66 @@ export declare const toolsContract: {
1971
2645
  verified_revision: z.ZodNullable<z.ZodString>;
1972
2646
  verified_version: z.ZodNullable<z.ZodString>;
1973
2647
  detail: z.ZodNullable<z.ZodString>;
2648
+ recovery: z.ZodOptional<z.ZodObject<{
2649
+ operation: z.ZodObject<{
2650
+ operation_id: z.ZodUUID;
2651
+ baseline_revision: z.ZodString;
2652
+ target_revision: z.ZodString;
2653
+ stage: z.ZodEnum<{
2654
+ install: "install";
2655
+ gateway_restart: "gateway_restart";
2656
+ agent_ready: "agent_ready";
2657
+ }>;
2658
+ recovered_revision: z.ZodOptional<z.ZodString>;
2659
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2660
+ attempt_error: z.ZodOptional<z.ZodString>;
2661
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2662
+ install: "install";
2663
+ gateway_restart: "gateway_restart";
2664
+ agent_ready: "agent_ready";
2665
+ }>>;
2666
+ }, z.core.$strip>;
2667
+ attempt_error: z.ZodNullable<z.ZodString>;
2668
+ runtime_revision: z.ZodNullable<z.ZodString>;
2669
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2670
+ outcome: z.ZodEnum<{
2671
+ unknown: "unknown";
2672
+ blocked: "blocked";
2673
+ recovering: "recovering";
2674
+ target_installed: "target_installed";
2675
+ baseline_restored: "baseline_restored";
2676
+ other_revision: "other_revision";
2677
+ }>;
2678
+ }, z.core.$strip>>;
1974
2679
  unread: z.ZodBoolean;
1975
2680
  active: z.ZodBoolean;
1976
2681
  requires_interaction: z.ZodBoolean;
1977
2682
  can_dismiss: z.ZodBoolean;
2683
+ steps: z.ZodArray<z.ZodObject<{
2684
+ id: z.ZodEnum<{
2685
+ install: "install";
2686
+ gateway_restart: "gateway_restart";
2687
+ agent_ready: "agent_ready";
2688
+ ready: "ready";
2689
+ web_restart: "web_restart";
2690
+ gateway_wait: "gateway_wait";
2691
+ recovery: "recovery";
2692
+ }>;
2693
+ label: z.ZodString;
2694
+ state: z.ZodEnum<{
2695
+ pending: "pending";
2696
+ active: "active";
2697
+ failed: "failed";
2698
+ done: "done";
2699
+ }>;
2700
+ }, z.core.$strip>>;
2701
+ presents_dialog: z.ZodBoolean;
2702
+ dialog_close: z.ZodEnum<{
2703
+ auto: "auto";
2704
+ none: "none";
2705
+ close: "close";
2706
+ restart_later: "restart_later";
2707
+ }>;
1978
2708
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1979
2709
  action: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1980
2710
  id: z.ZodUUID;
@@ -1990,12 +2720,14 @@ export declare const toolsContract: {
1990
2720
  }>>;
1991
2721
  phase: z.ZodUnion<readonly [z.ZodEnum<{
1992
2722
  unknown: "unknown";
1993
- failed: "failed";
1994
2723
  blocked: "blocked";
2724
+ restarting: "restarting";
2725
+ failed: "failed";
1995
2726
  applying: "applying";
1996
2727
  awaiting_confirmation: "awaiting_confirmation";
1997
2728
  waiting_for_idle: "waiting_for_idle";
1998
- restarting: "restarting";
2729
+ verifying: "verifying";
2730
+ recovering: "recovering";
1999
2731
  succeeded: "succeeded";
2000
2732
  }>, z.ZodString]>;
2001
2733
  severity: z.ZodEnum<{
@@ -2029,10 +2761,66 @@ export declare const toolsContract: {
2029
2761
  verified_revision: z.ZodNullable<z.ZodString>;
2030
2762
  verified_version: z.ZodNullable<z.ZodString>;
2031
2763
  detail: z.ZodNullable<z.ZodString>;
2764
+ recovery: z.ZodOptional<z.ZodObject<{
2765
+ operation: z.ZodObject<{
2766
+ operation_id: z.ZodUUID;
2767
+ baseline_revision: z.ZodString;
2768
+ target_revision: z.ZodString;
2769
+ stage: z.ZodEnum<{
2770
+ install: "install";
2771
+ gateway_restart: "gateway_restart";
2772
+ agent_ready: "agent_ready";
2773
+ }>;
2774
+ recovered_revision: z.ZodOptional<z.ZodString>;
2775
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2776
+ attempt_error: z.ZodOptional<z.ZodString>;
2777
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2778
+ install: "install";
2779
+ gateway_restart: "gateway_restart";
2780
+ agent_ready: "agent_ready";
2781
+ }>>;
2782
+ }, z.core.$strip>;
2783
+ attempt_error: z.ZodNullable<z.ZodString>;
2784
+ runtime_revision: z.ZodNullable<z.ZodString>;
2785
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2786
+ outcome: z.ZodEnum<{
2787
+ unknown: "unknown";
2788
+ blocked: "blocked";
2789
+ recovering: "recovering";
2790
+ target_installed: "target_installed";
2791
+ baseline_restored: "baseline_restored";
2792
+ other_revision: "other_revision";
2793
+ }>;
2794
+ }, z.core.$strip>>;
2032
2795
  unread: z.ZodBoolean;
2033
2796
  active: z.ZodBoolean;
2034
2797
  requires_interaction: z.ZodBoolean;
2035
2798
  can_dismiss: z.ZodBoolean;
2799
+ steps: z.ZodArray<z.ZodObject<{
2800
+ id: z.ZodEnum<{
2801
+ install: "install";
2802
+ gateway_restart: "gateway_restart";
2803
+ agent_ready: "agent_ready";
2804
+ ready: "ready";
2805
+ web_restart: "web_restart";
2806
+ gateway_wait: "gateway_wait";
2807
+ recovery: "recovery";
2808
+ }>;
2809
+ label: z.ZodString;
2810
+ state: z.ZodEnum<{
2811
+ pending: "pending";
2812
+ active: "active";
2813
+ failed: "failed";
2814
+ done: "done";
2815
+ }>;
2816
+ }, z.core.$strip>>;
2817
+ presents_dialog: z.ZodBoolean;
2818
+ dialog_close: z.ZodEnum<{
2819
+ auto: "auto";
2820
+ none: "none";
2821
+ close: "close";
2822
+ restart_later: "restart_later";
2823
+ }>;
2036
2824
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2037
2825
  };
2038
2826
  transcribeCapability: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{