@maudecode/talaria-web-contracts 1.20.0 → 1.22.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 (96) hide show
  1. package/dist/agent-imports.d.ts +42 -0
  2. package/dist/agent-imports.js +11 -0
  3. package/dist/agent-imports.js.map +1 -0
  4. package/dist/checkpoint.d.ts +78 -0
  5. package/dist/checkpoint.js +16 -0
  6. package/dist/checkpoint.js.map +1 -0
  7. package/dist/context-detail.d.ts +3 -3
  8. package/dist/delegation.d.ts +206 -0
  9. package/dist/delegation.js +32 -0
  10. package/dist/delegation.js.map +1 -0
  11. package/dist/gateway-session.d.ts +183 -6
  12. package/dist/gateway-session.js +28 -2
  13. package/dist/gateway-session.js.map +1 -1
  14. package/dist/groups-native.d.ts +427 -0
  15. package/dist/groups-native.js +40 -0
  16. package/dist/groups-native.js.map +1 -0
  17. package/dist/groups.d.ts +1545 -0
  18. package/dist/groups.js +12 -0
  19. package/dist/groups.js.map +1 -0
  20. package/dist/index.d.ts +9 -0
  21. package/dist/index.js +9 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/mcp-cost-policy.d.ts +110 -0
  24. package/dist/mcp-cost-policy.js +24 -0
  25. package/dist/mcp-cost-policy.js.map +1 -0
  26. package/dist/openapi.js +4 -0
  27. package/dist/openapi.js.map +1 -1
  28. package/dist/outbound-drafts.d.ts +114 -0
  29. package/dist/outbound-drafts.js +20 -0
  30. package/dist/outbound-drafts.js.map +1 -0
  31. package/dist/plan-usage.d.ts +92 -0
  32. package/dist/plan-usage.js +20 -0
  33. package/dist/plan-usage.js.map +1 -0
  34. package/dist/prompt-queue.d.ts +96 -0
  35. package/dist/prompt-queue.js +19 -0
  36. package/dist/prompt-queue.js.map +1 -0
  37. package/dist/router.d.ts +13 -17691
  38. package/dist/router.js +4 -1
  39. package/dist/router.js.map +1 -1
  40. package/dist/routes/automation.d.ts +335 -16
  41. package/dist/routes/automation.js +16 -2
  42. package/dist/routes/automation.js.map +1 -1
  43. package/dist/routes/chat.d.ts +756 -83
  44. package/dist/routes/core.d.ts +2 -2
  45. package/dist/routes/git.d.ts +50 -0
  46. package/dist/routes/git.js +3 -2
  47. package/dist/routes/git.js.map +1 -1
  48. package/dist/routes/groups.d.ts +860 -0
  49. package/dist/routes/groups.js +13 -0
  50. package/dist/routes/groups.js.map +1 -0
  51. package/dist/routes/raw.js +13 -3
  52. package/dist/routes/raw.js.map +1 -1
  53. package/dist/routes/sessions.d.ts +2055 -214
  54. package/dist/routes/sessions.js +5 -0
  55. package/dist/routes/sessions.js.map +1 -1
  56. package/dist/routes/settings.d.ts +949 -1
  57. package/dist/routes/settings.js +26 -0
  58. package/dist/routes/settings.js.map +1 -1
  59. package/dist/routes/tools.d.ts +640 -51
  60. package/dist/routes/tools.js +24 -3
  61. package/dist/routes/tools.js.map +1 -1
  62. package/dist/routes/workspaces.d.ts +47 -2
  63. package/dist/routes/workspaces.js +5 -4
  64. package/dist/routes/workspaces.js.map +1 -1
  65. package/dist/sidecar/methods.d.ts +827 -29
  66. package/dist/sidecar/methods.js +3 -1
  67. package/dist/sidecar/methods.js.map +1 -1
  68. package/dist/sidecar/namespaces.d.ts +941 -42
  69. package/dist/sidecar/namespaces.js +66 -6
  70. package/dist/sidecar/namespaces.js.map +1 -1
  71. package/dist/sidecar/rpc.d.ts +3 -3
  72. package/dist/sidecar/runtime.d.ts +43 -0
  73. package/dist/sidecar/runtime.js +12 -2
  74. package/dist/sidecar/runtime.js.map +1 -1
  75. package/dist/sidecar/version.d.ts +1 -1
  76. package/dist/sidecar/version.js +1 -1
  77. package/dist/sse.d.ts +219 -26
  78. package/dist/sse.js +11 -5
  79. package/dist/sse.js.map +1 -1
  80. package/dist/views.d.ts +1916 -175
  81. package/dist/views.js +100 -35
  82. package/dist/views.js.map +1 -1
  83. package/fixtures/sidecar/agent-imports.json +6 -0
  84. package/fixtures/sidecar/aux.json +58 -0
  85. package/fixtures/sidecar/connectors.json +29 -0
  86. package/fixtures/sidecar/gateway.json +45 -0
  87. package/fixtures/sidecar/groups.json +18 -0
  88. package/fixtures/sidecar/kanban.json +197 -0
  89. package/fixtures/sidecar/managed-buffers.json +16 -0
  90. package/fixtures/sidecar/mcp.json +12 -0
  91. package/fixtures/sidecar/outbound-drafts.json +1 -0
  92. package/fixtures/sidecar/providers.json +37 -1
  93. package/fixtures/sidecar/runtime.json +3 -3
  94. package/fixtures/sidecar/skills.json +19 -2
  95. package/fixtures/sidecar/tts.json +6 -0
  96. 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<{
@@ -67,6 +119,42 @@ export declare const toolsContract: {
67
119
  using_defaults: z.ZodBoolean;
68
120
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
69
121
  skills: {
122
+ revisions: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
123
+ name: z.ZodString;
124
+ revision: z.ZodOptional<z.ZodString>;
125
+ compare_to: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ state: z.ZodEnum<{
128
+ available: "available";
129
+ unavailable: "unavailable";
130
+ missing: "missing";
131
+ }>;
132
+ reason: z.ZodNullable<z.ZodEnum<{
133
+ backend_unavailable: "backend_unavailable";
134
+ identity_unavailable: "identity_unavailable";
135
+ history_unavailable: "history_unavailable";
136
+ invalid_history: "invalid_history";
137
+ }>>;
138
+ backend_revision: z.ZodNullable<z.ZodString>;
139
+ revisions: z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ sha256: z.ZodString;
142
+ label: z.ZodString;
143
+ saved_at: z.ZodNullable<z.ZodString>;
144
+ actor: z.ZodNullable<z.ZodString>;
145
+ current: z.ZodBoolean;
146
+ }, z.core.$strip>>;
147
+ selected: z.ZodNullable<z.ZodObject<{
148
+ revision: z.ZodString;
149
+ content: z.ZodString;
150
+ }, z.core.$strip>>;
151
+ comparison: z.ZodNullable<z.ZodObject<{
152
+ from_revision: z.ZodString;
153
+ to_revision: z.ZodString;
154
+ diff: z.ZodString;
155
+ }, z.core.$strip>>;
156
+ replay_available: z.ZodLiteral<false>;
157
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
70
158
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
71
159
  category: z.ZodOptional<z.ZodString>;
72
160
  }, z.core.$strip>, z.ZodObject<{
@@ -136,6 +224,36 @@ export declare const toolsContract: {
136
224
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
137
225
  };
138
226
  memory: {
227
+ compactionPreview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
228
+ section: z.ZodEnum<{
229
+ memory: "memory";
230
+ user: "user";
231
+ }>;
232
+ revision: z.ZodString;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ section: z.ZodEnum<{
235
+ memory: "memory";
236
+ user: "user";
237
+ }>;
238
+ revision: z.ZodString;
239
+ proposed_revision: z.ZodString;
240
+ receipt: z.ZodString;
241
+ source: z.ZodString;
242
+ proposed: z.ZodString;
243
+ diff: z.ZodString;
244
+ model: z.ZodString;
245
+ expires_at: z.ZodNumber;
246
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
247
+ compactionApply: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
248
+ receipt: z.ZodString;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ ok: z.ZodLiteral<true>;
251
+ section: z.ZodEnum<{
252
+ memory: "memory";
253
+ user: "user";
254
+ }>;
255
+ revision: z.ZodString;
256
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
139
257
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
140
258
  session_id: z.ZodOptional<z.ZodString>;
141
259
  workspace: z.ZodOptional<z.ZodString>;
@@ -275,8 +393,8 @@ export declare const toolsContract: {
275
393
  args_hint: z.ZodOptional<z.ZodString>;
276
394
  category: z.ZodOptional<z.ZodString>;
277
395
  handler: z.ZodEnum<{
278
- prompt: "prompt";
279
396
  agent: "agent";
397
+ prompt: "prompt";
280
398
  client: "client";
281
399
  }>;
282
400
  clients: z.ZodArray<z.ZodEnum<{
@@ -465,8 +583,8 @@ export declare const toolsContract: {
465
583
  available: z.ZodLiteral<false>;
466
584
  condition: z.ZodEnum<{
467
585
  sidecar_unavailable: "sidecar_unavailable";
468
- agent_runtime_stale: "agent_runtime_stale";
469
586
  agent_incompatible: "agent_incompatible";
587
+ agent_runtime_stale: "agent_runtime_stale";
470
588
  }>;
471
589
  }, z.core.$strip>], "available">>;
472
590
  alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -550,6 +668,7 @@ export declare const toolsContract: {
550
668
  }, z.core.$loose>>;
551
669
  docs: z.ZodObject<{
552
670
  project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
671
+ name: z.ZodOptional<z.ZodString>;
553
672
  path: z.ZodOptional<z.ZodString>;
554
673
  content: z.ZodOptional<z.ZodString>;
555
674
  lines: z.ZodOptional<z.ZodNumber>;
@@ -562,17 +681,24 @@ export declare const toolsContract: {
562
681
  html: "html";
563
682
  text: "text";
564
683
  image: "image";
684
+ pdf: "pdf";
565
685
  audio: "audio";
566
686
  video: "video";
567
- pdf: "pdf";
568
687
  csv: "csv";
569
688
  binary: "binary";
570
689
  }>>;
571
690
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
572
691
  table_truncated: z.ZodOptional<z.ZodBoolean>;
573
692
  preview_url: z.ZodOptional<z.ZodString>;
693
+ source: z.ZodOptional<z.ZodEnum<{
694
+ workspace: "workspace";
695
+ managed: "managed";
696
+ }>>;
697
+ read_only: z.ZodOptional<z.ZodBoolean>;
698
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
574
699
  }, z.core.$loose>>>;
575
700
  plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
701
+ name: z.ZodOptional<z.ZodString>;
576
702
  path: z.ZodOptional<z.ZodString>;
577
703
  content: z.ZodOptional<z.ZodString>;
578
704
  lines: z.ZodOptional<z.ZodNumber>;
@@ -585,17 +711,24 @@ export declare const toolsContract: {
585
711
  html: "html";
586
712
  text: "text";
587
713
  image: "image";
714
+ pdf: "pdf";
588
715
  audio: "audio";
589
716
  video: "video";
590
- pdf: "pdf";
591
717
  csv: "csv";
592
718
  binary: "binary";
593
719
  }>>;
594
720
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
595
721
  table_truncated: z.ZodOptional<z.ZodBoolean>;
596
722
  preview_url: z.ZodOptional<z.ZodString>;
723
+ source: z.ZodOptional<z.ZodEnum<{
724
+ workspace: "workspace";
725
+ managed: "managed";
726
+ }>>;
727
+ read_only: z.ZodOptional<z.ZodBoolean>;
728
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
597
729
  }, z.core.$loose>>>;
598
730
  status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
731
+ name: z.ZodOptional<z.ZodString>;
599
732
  path: z.ZodOptional<z.ZodString>;
600
733
  content: z.ZodOptional<z.ZodString>;
601
734
  lines: z.ZodOptional<z.ZodNumber>;
@@ -608,17 +741,24 @@ export declare const toolsContract: {
608
741
  html: "html";
609
742
  text: "text";
610
743
  image: "image";
744
+ pdf: "pdf";
611
745
  audio: "audio";
612
746
  video: "video";
613
- pdf: "pdf";
614
747
  csv: "csv";
615
748
  binary: "binary";
616
749
  }>>;
617
750
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
618
751
  table_truncated: z.ZodOptional<z.ZodBoolean>;
619
752
  preview_url: z.ZodOptional<z.ZodString>;
753
+ source: z.ZodOptional<z.ZodEnum<{
754
+ workspace: "workspace";
755
+ managed: "managed";
756
+ }>>;
757
+ read_only: z.ZodOptional<z.ZodBoolean>;
758
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
620
759
  }, z.core.$loose>>>;
621
760
  blocker_resolver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
761
+ name: z.ZodOptional<z.ZodString>;
622
762
  path: z.ZodOptional<z.ZodString>;
623
763
  content: z.ZodOptional<z.ZodString>;
624
764
  lines: z.ZodOptional<z.ZodNumber>;
@@ -631,15 +771,21 @@ export declare const toolsContract: {
631
771
  html: "html";
632
772
  text: "text";
633
773
  image: "image";
774
+ pdf: "pdf";
634
775
  audio: "audio";
635
776
  video: "video";
636
- pdf: "pdf";
637
777
  csv: "csv";
638
778
  binary: "binary";
639
779
  }>>;
640
780
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
641
781
  table_truncated: z.ZodOptional<z.ZodBoolean>;
642
782
  preview_url: z.ZodOptional<z.ZodString>;
783
+ source: z.ZodOptional<z.ZodEnum<{
784
+ workspace: "workspace";
785
+ managed: "managed";
786
+ }>>;
787
+ read_only: z.ZodOptional<z.ZodBoolean>;
788
+ write_semantics: z.ZodOptional<z.ZodLiteral<"unconditional">>;
643
789
  }, z.core.$loose>>>;
644
790
  }, z.core.$strip>;
645
791
  handoff: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -684,8 +830,8 @@ export declare const toolsContract: {
684
830
  start: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
685
831
  ok: z.ZodLiteral<true>;
686
832
  action: z.ZodEnum<{
687
- start: "start";
688
833
  stop: "stop";
834
+ start: "start";
689
835
  restart: "restart";
690
836
  }>;
691
837
  message: z.ZodString;
@@ -715,8 +861,8 @@ export declare const toolsContract: {
715
861
  stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
716
862
  ok: z.ZodLiteral<true>;
717
863
  action: z.ZodEnum<{
718
- start: "start";
719
864
  stop: "stop";
865
+ start: "start";
720
866
  restart: "restart";
721
867
  }>;
722
868
  message: z.ZodString;
@@ -746,8 +892,8 @@ export declare const toolsContract: {
746
892
  restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodObject<{
747
893
  ok: z.ZodLiteral<true>;
748
894
  action: z.ZodEnum<{
749
- start: "start";
750
895
  stop: "stop";
896
+ start: "start";
751
897
  restart: "restart";
752
898
  }>;
753
899
  message: z.ZodString;
@@ -778,6 +924,55 @@ export declare const toolsContract: {
778
924
  mcp: {
779
925
  servers: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
780
926
  servers: z.ZodArray<z.ZodObject<{
927
+ cost_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
928
+ error: z.ZodNullable<z.ZodString>;
929
+ source: z.ZodEnum<{
930
+ native: "native";
931
+ package: "package";
932
+ native_override: "native_override";
933
+ }>;
934
+ name: z.ZodString;
935
+ can_edit: z.ZodBoolean;
936
+ tool_costs: z.ZodArray<z.ZodObject<{
937
+ name: z.ZodString;
938
+ low: z.ZodNumber;
939
+ high: z.ZodNumber;
940
+ note: z.ZodString;
941
+ }, z.core.$strip>>;
942
+ spend_limit: z.ZodNumber;
943
+ cost_unit: z.ZodString;
944
+ valid: z.ZodBoolean;
945
+ overrides: z.ZodObject<{
946
+ 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<{
947
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
948
+ note: z.ZodOptional<z.ZodString>;
949
+ }, z.core.$strict>]>>>;
950
+ spend_limit: z.ZodNullable<z.ZodNumber>;
951
+ cost_unit: z.ZodNullable<z.ZodString>;
952
+ }, z.core.$strip>;
953
+ budget_enabled: z.ZodBoolean;
954
+ field_sources: z.ZodObject<{
955
+ tool_costs: z.ZodEnum<{
956
+ default: "default";
957
+ native: "native";
958
+ package: "package";
959
+ }>;
960
+ spend_limit: z.ZodEnum<{
961
+ default: "default";
962
+ native: "native";
963
+ package: "package";
964
+ }>;
965
+ cost_unit: z.ZodEnum<{
966
+ default: "default";
967
+ native: "native";
968
+ package: "package";
969
+ }>;
970
+ }, z.core.$strip>;
971
+ revision: z.ZodString;
972
+ provenance: z.ZodLiteral<"declared_estimate">;
973
+ reload_required: z.ZodLiteral<true>;
974
+ runtime_state: z.ZodLiteral<"unknown">;
975
+ }, z.core.$strip>>>;
781
976
  name: z.ZodString;
782
977
  id: z.ZodOptional<z.ZodString>;
783
978
  transport: z.ZodOptional<z.ZodString>;
@@ -822,9 +1017,67 @@ export declare const toolsContract: {
822
1017
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
823
1018
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
824
1019
  name: z.ZodString;
1020
+ config_revision: z.ZodOptional<z.ZodString>;
1021
+ cost_policy: z.ZodOptional<z.ZodObject<{
1022
+ 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<{
1023
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1024
+ note: z.ZodOptional<z.ZodString>;
1025
+ }, z.core.$strict>]>>>>;
1026
+ spend_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1027
+ cost_unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
+ }, z.core.$strict>>;
825
1029
  }, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
826
1030
  ok: z.ZodLiteral<true>;
827
1031
  server: z.ZodObject<{
1032
+ cost_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1033
+ error: z.ZodNullable<z.ZodString>;
1034
+ source: z.ZodEnum<{
1035
+ native: "native";
1036
+ package: "package";
1037
+ native_override: "native_override";
1038
+ }>;
1039
+ name: z.ZodString;
1040
+ can_edit: z.ZodBoolean;
1041
+ tool_costs: z.ZodArray<z.ZodObject<{
1042
+ name: z.ZodString;
1043
+ low: z.ZodNumber;
1044
+ high: z.ZodNumber;
1045
+ note: z.ZodString;
1046
+ }, z.core.$strip>>;
1047
+ spend_limit: z.ZodNumber;
1048
+ cost_unit: z.ZodString;
1049
+ valid: z.ZodBoolean;
1050
+ overrides: z.ZodObject<{
1051
+ 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<{
1052
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1053
+ note: z.ZodOptional<z.ZodString>;
1054
+ }, z.core.$strict>]>>>;
1055
+ spend_limit: z.ZodNullable<z.ZodNumber>;
1056
+ cost_unit: z.ZodNullable<z.ZodString>;
1057
+ }, z.core.$strip>;
1058
+ budget_enabled: z.ZodBoolean;
1059
+ field_sources: z.ZodObject<{
1060
+ tool_costs: z.ZodEnum<{
1061
+ default: "default";
1062
+ native: "native";
1063
+ package: "package";
1064
+ }>;
1065
+ spend_limit: z.ZodEnum<{
1066
+ default: "default";
1067
+ native: "native";
1068
+ package: "package";
1069
+ }>;
1070
+ cost_unit: z.ZodEnum<{
1071
+ default: "default";
1072
+ native: "native";
1073
+ package: "package";
1074
+ }>;
1075
+ }, z.core.$strip>;
1076
+ revision: z.ZodString;
1077
+ provenance: z.ZodLiteral<"declared_estimate">;
1078
+ reload_required: z.ZodLiteral<true>;
1079
+ runtime_state: z.ZodLiteral<"unknown">;
1080
+ }, z.core.$strip>>>;
828
1081
  name: z.ZodString;
829
1082
  id: z.ZodOptional<z.ZodString>;
830
1083
  transport: z.ZodOptional<z.ZodString>;
@@ -860,6 +1113,17 @@ export declare const toolsContract: {
860
1113
  page: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
861
1114
  available: z.ZodBoolean;
862
1115
  sign_in_required: z.ZodDefault<z.ZodBoolean>;
1116
+ sign_in_offer: z.ZodOptional<z.ZodObject<{
1117
+ available: z.ZodBoolean;
1118
+ due: z.ZodBoolean;
1119
+ visible: z.ZodBoolean;
1120
+ offer_id: z.ZodNullable<z.ZodString>;
1121
+ actions: z.ZodArray<z.ZodEnum<{
1122
+ sign_in: "sign_in";
1123
+ dismiss: "dismiss";
1124
+ }>>;
1125
+ refresh_after: z.ZodNullable<z.ZodNumber>;
1126
+ }, z.core.$strip>>;
863
1127
  connectors: z.ZodArray<z.ZodObject<{
864
1128
  slug: z.ZodString;
865
1129
  name: z.ZodString;
@@ -873,8 +1137,8 @@ export declare const toolsContract: {
873
1137
  problem: z.ZodNullable<z.ZodEnum<{
874
1138
  pending: "pending";
875
1139
  expired: "expired";
876
- revoked: "revoked";
877
1140
  failed: "failed";
1141
+ revoked: "revoked";
878
1142
  inactive: "inactive";
879
1143
  }>>;
880
1144
  status_reason: z.ZodNullable<z.ZodString>;
@@ -889,6 +1153,19 @@ export declare const toolsContract: {
889
1153
  policy_revision: z.ZodNullable<z.ZodString>;
890
1154
  rules_error: z.ZodNullable<z.ZodString>;
891
1155
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1156
+ dismissOffer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1157
+ offer_id: z.ZodString;
1158
+ }, z.core.$strip>, z.ZodObject<{
1159
+ available: z.ZodBoolean;
1160
+ due: z.ZodBoolean;
1161
+ visible: z.ZodBoolean;
1162
+ offer_id: z.ZodNullable<z.ZodString>;
1163
+ actions: z.ZodArray<z.ZodEnum<{
1164
+ sign_in: "sign_in";
1165
+ dismiss: "dismiss";
1166
+ }>>;
1167
+ refresh_after: z.ZodNullable<z.ZodNumber>;
1168
+ }, z.core.$strip>, Record<never, never>, Record<never, never>>;
892
1169
  tools: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
893
1170
  connector: z.ZodString;
894
1171
  }, z.core.$strip>, z.ZodObject<{
@@ -922,6 +1199,7 @@ export declare const toolsContract: {
922
1199
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
923
1200
  connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
924
1201
  connector: z.ZodString;
1202
+ nous_account_id: z.ZodOptional<z.ZodString>;
925
1203
  }, z.core.$strip>, z.ZodObject<{
926
1204
  op_id: z.ZodString;
927
1205
  settled: z.ZodBoolean;
@@ -936,20 +1214,20 @@ export declare const toolsContract: {
936
1214
  title: z.ZodString;
937
1215
  kind: z.ZodString;
938
1216
  state: z.ZodEnum<{
1217
+ skipped: "skipped";
939
1218
  pending: "pending";
940
1219
  expired: "expired";
941
- skipped: "skipped";
1220
+ failed: "failed";
942
1221
  initiated: "initiated";
943
1222
  connected: "connected";
944
- failed: "failed";
945
1223
  not_connected: "not_connected";
946
1224
  }>;
947
1225
  detail: z.ZodString;
948
1226
  connect_url: z.ZodNullable<z.ZodString>;
949
1227
  actions: z.ZodArray<z.ZodEnum<{
950
1228
  retry: "retry";
951
- skip: "skip";
952
1229
  approve: "approve";
1230
+ skip: "skip";
953
1231
  }>>;
954
1232
  env_fields: z.ZodArray<z.ZodObject<{
955
1233
  name: z.ZodString;
@@ -980,20 +1258,20 @@ export declare const toolsContract: {
980
1258
  title: z.ZodString;
981
1259
  kind: z.ZodString;
982
1260
  state: z.ZodEnum<{
1261
+ skipped: "skipped";
983
1262
  pending: "pending";
984
1263
  expired: "expired";
985
- skipped: "skipped";
1264
+ failed: "failed";
986
1265
  initiated: "initiated";
987
1266
  connected: "connected";
988
- failed: "failed";
989
1267
  not_connected: "not_connected";
990
1268
  }>;
991
1269
  detail: z.ZodString;
992
1270
  connect_url: z.ZodNullable<z.ZodString>;
993
1271
  actions: z.ZodArray<z.ZodEnum<{
994
1272
  retry: "retry";
995
- skip: "skip";
996
1273
  approve: "approve";
1274
+ skip: "skip";
997
1275
  }>>;
998
1276
  env_fields: z.ZodArray<z.ZodObject<{
999
1277
  name: z.ZodString;
@@ -1007,8 +1285,8 @@ export declare const toolsContract: {
1007
1285
  op_id: z.ZodString;
1008
1286
  action: z.ZodEnum<{
1009
1287
  retry: "retry";
1010
- skip: "skip";
1011
1288
  approve: "approve";
1289
+ skip: "skip";
1012
1290
  continue: "continue";
1013
1291
  }>;
1014
1292
  target: z.ZodOptional<z.ZodString>;
@@ -1027,20 +1305,20 @@ export declare const toolsContract: {
1027
1305
  title: z.ZodString;
1028
1306
  kind: z.ZodString;
1029
1307
  state: z.ZodEnum<{
1308
+ skipped: "skipped";
1030
1309
  pending: "pending";
1031
1310
  expired: "expired";
1032
- skipped: "skipped";
1311
+ failed: "failed";
1033
1312
  initiated: "initiated";
1034
1313
  connected: "connected";
1035
- failed: "failed";
1036
1314
  not_connected: "not_connected";
1037
1315
  }>;
1038
1316
  detail: z.ZodString;
1039
1317
  connect_url: z.ZodNullable<z.ZodString>;
1040
1318
  actions: z.ZodArray<z.ZodEnum<{
1041
1319
  retry: "retry";
1042
- skip: "skip";
1043
1320
  approve: "approve";
1321
+ skip: "skip";
1044
1322
  }>>;
1045
1323
  env_fields: z.ZodArray<z.ZodObject<{
1046
1324
  name: z.ZodString;
@@ -1195,8 +1473,8 @@ export declare const toolsContract: {
1195
1473
  locked: z.ZodOptional<z.ZodBoolean>;
1196
1474
  }, z.core.$strip>>;
1197
1475
  runtime_application: z.ZodEnum<{
1198
- unknown: "unknown";
1199
1476
  applied: "applied";
1477
+ unknown: "unknown";
1200
1478
  restart_required: "restart_required";
1201
1479
  }>;
1202
1480
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -1204,6 +1482,26 @@ export declare const toolsContract: {
1204
1482
  flow_id: z.ZodString;
1205
1483
  url: z.ZodString;
1206
1484
  }, z.core.$strip>, z.ZodObject<{
1485
+ nous_account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1486
+ account_id: z.ZodString;
1487
+ email: z.ZodNullable<z.ZodString>;
1488
+ state: z.ZodEnum<{
1489
+ unavailable: "unavailable";
1490
+ unknown: "unknown";
1491
+ pending: "pending";
1492
+ failed: "failed";
1493
+ idle: "idle";
1494
+ retrying: "retrying";
1495
+ claimed: "claimed";
1496
+ gone: "gone";
1497
+ paused: "paused";
1498
+ }>;
1499
+ lines: z.ZodArray<z.ZodString>;
1500
+ moved: z.ZodArray<z.ZodString>;
1501
+ dropped: z.ZodArray<z.ZodString>;
1502
+ reconnect: z.ZodArray<z.ZodString>;
1503
+ poll_after: z.ZodNullable<z.ZodNumber>;
1504
+ }, z.core.$strip>>>;
1207
1505
  ok: z.ZodOptional<z.ZodBoolean>;
1208
1506
  status: z.ZodOptional<z.ZodString>;
1209
1507
  url: z.ZodOptional<z.ZodString>;
@@ -1232,13 +1530,35 @@ export declare const toolsContract: {
1232
1530
  phase: z.ZodEnum<{
1233
1531
  blocked: "blocked";
1234
1532
  running: "running";
1235
- waiting: "waiting";
1236
1533
  idle: "idle";
1534
+ waiting: "waiting";
1237
1535
  complete: "complete";
1238
1536
  }>;
1239
1537
  attempt: z.ZodNumber;
1240
1538
  detail: z.ZodString;
1241
1539
  retry_at: z.ZodNullable<z.ZodString>;
1540
+ operation_id: z.ZodOptional<z.ZodUUID>;
1541
+ operation: z.ZodOptional<z.ZodObject<{
1542
+ operation_id: z.ZodUUID;
1543
+ baseline_revision: z.ZodString;
1544
+ target_revision: z.ZodString;
1545
+ stage: z.ZodEnum<{
1546
+ install: "install";
1547
+ gateway_restart: "gateway_restart";
1548
+ agent_ready: "agent_ready";
1549
+ }>;
1550
+ recovered_revision: z.ZodOptional<z.ZodString>;
1551
+ source_moved: z.ZodOptional<z.ZodBoolean>;
1552
+ attempt_error: z.ZodOptional<z.ZodString>;
1553
+ failed_stage: z.ZodOptional<z.ZodEnum<{
1554
+ install: "install";
1555
+ gateway_restart: "gateway_restart";
1556
+ agent_ready: "agent_ready";
1557
+ }>>;
1558
+ }, z.core.$strip>>;
1559
+ verified_revision: z.ZodOptional<z.ZodString>;
1560
+ runtime_revision: z.ZodOptional<z.ZodString>;
1561
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1242
1562
  }, z.core.$strip>>;
1243
1563
  disabled: z.ZodOptional<z.ZodBoolean>;
1244
1564
  cached: z.ZodOptional<z.ZodBoolean>;
@@ -1257,6 +1577,7 @@ export declare const toolsContract: {
1257
1577
  name: z.ZodOptional<z.ZodString>;
1258
1578
  channel: z.ZodOptional<z.ZodEnum<{
1259
1579
  stable: "stable";
1580
+ nightly: "nightly";
1260
1581
  experimental: "experimental";
1261
1582
  }>>;
1262
1583
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -1329,6 +1650,7 @@ export declare const toolsContract: {
1329
1650
  name: z.ZodOptional<z.ZodString>;
1330
1651
  channel: z.ZodOptional<z.ZodEnum<{
1331
1652
  stable: "stable";
1653
+ nightly: "nightly";
1332
1654
  experimental: "experimental";
1333
1655
  }>>;
1334
1656
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -1406,13 +1728,35 @@ export declare const toolsContract: {
1406
1728
  phase: z.ZodEnum<{
1407
1729
  blocked: "blocked";
1408
1730
  running: "running";
1409
- waiting: "waiting";
1410
1731
  idle: "idle";
1732
+ waiting: "waiting";
1411
1733
  complete: "complete";
1412
1734
  }>;
1413
1735
  attempt: z.ZodNumber;
1414
1736
  detail: z.ZodString;
1415
1737
  retry_at: z.ZodNullable<z.ZodString>;
1738
+ operation_id: z.ZodOptional<z.ZodUUID>;
1739
+ operation: z.ZodOptional<z.ZodObject<{
1740
+ operation_id: z.ZodUUID;
1741
+ baseline_revision: z.ZodString;
1742
+ target_revision: z.ZodString;
1743
+ stage: z.ZodEnum<{
1744
+ install: "install";
1745
+ gateway_restart: "gateway_restart";
1746
+ agent_ready: "agent_ready";
1747
+ }>;
1748
+ recovered_revision: z.ZodOptional<z.ZodString>;
1749
+ source_moved: z.ZodOptional<z.ZodBoolean>;
1750
+ attempt_error: z.ZodOptional<z.ZodString>;
1751
+ failed_stage: z.ZodOptional<z.ZodEnum<{
1752
+ install: "install";
1753
+ gateway_restart: "gateway_restart";
1754
+ agent_ready: "agent_ready";
1755
+ }>>;
1756
+ }, z.core.$strip>>;
1757
+ verified_revision: z.ZodOptional<z.ZodString>;
1758
+ runtime_revision: z.ZodOptional<z.ZodString>;
1759
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1416
1760
  }, z.core.$strip>>;
1417
1761
  disabled: z.ZodOptional<z.ZodBoolean>;
1418
1762
  cached: z.ZodOptional<z.ZodBoolean>;
@@ -1431,6 +1775,7 @@ export declare const toolsContract: {
1431
1775
  name: z.ZodOptional<z.ZodString>;
1432
1776
  channel: z.ZodOptional<z.ZodEnum<{
1433
1777
  stable: "stable";
1778
+ nightly: "nightly";
1434
1779
  experimental: "experimental";
1435
1780
  }>>;
1436
1781
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -1503,6 +1848,7 @@ export declare const toolsContract: {
1503
1848
  name: z.ZodOptional<z.ZodString>;
1504
1849
  channel: z.ZodOptional<z.ZodEnum<{
1505
1850
  stable: "stable";
1851
+ nightly: "nightly";
1506
1852
  experimental: "experimental";
1507
1853
  }>>;
1508
1854
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -1580,6 +1926,10 @@ export declare const toolsContract: {
1580
1926
  target: z.ZodOptional<z.ZodString>;
1581
1927
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1582
1928
  }, z.core.$strip>, z.ZodObject<{
1929
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1930
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
1931
+ verified_revision: z.ZodOptional<z.ZodString>;
1932
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1583
1933
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1584
1934
  manual_execution: z.ZodBoolean;
1585
1935
  bot_chat_delivery: z.ZodBoolean;
@@ -1620,6 +1970,10 @@ export declare const toolsContract: {
1620
1970
  target: z.ZodOptional<z.ZodString>;
1621
1971
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1622
1972
  }, z.core.$strip>, z.ZodObject<{
1973
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1974
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
1975
+ verified_revision: z.ZodOptional<z.ZodString>;
1976
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1623
1977
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1624
1978
  manual_execution: z.ZodBoolean;
1625
1979
  bot_chat_delivery: z.ZodBoolean;
@@ -1660,6 +2014,10 @@ export declare const toolsContract: {
1660
2014
  target: z.ZodOptional<z.ZodString>;
1661
2015
  channel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1662
2016
  }, z.core.$strip>, z.ZodObject<{
2017
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
2018
+ recovery_pending: z.ZodOptional<z.ZodBoolean>;
2019
+ verified_revision: z.ZodOptional<z.ZodString>;
2020
+ verified_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
2021
  recovery_compatibility: z.ZodOptional<z.ZodObject<{
1664
2022
  manual_execution: z.ZodBoolean;
1665
2023
  bot_chat_delivery: z.ZodBoolean;
@@ -1747,6 +2105,7 @@ export declare const toolsContract: {
1747
2105
  awaiting_confirmation: "awaiting_confirmation";
1748
2106
  waiting_for_idle: "waiting_for_idle";
1749
2107
  verifying: "verifying";
2108
+ recovering: "recovering";
1750
2109
  succeeded: "succeeded";
1751
2110
  }>, z.ZodString]>;
1752
2111
  severity: z.ZodEnum<{
@@ -1780,24 +2139,56 @@ export declare const toolsContract: {
1780
2139
  verified_revision: z.ZodNullable<z.ZodString>;
1781
2140
  verified_version: z.ZodNullable<z.ZodString>;
1782
2141
  detail: z.ZodNullable<z.ZodString>;
2142
+ recovery: z.ZodOptional<z.ZodObject<{
2143
+ operation: z.ZodObject<{
2144
+ operation_id: z.ZodUUID;
2145
+ baseline_revision: z.ZodString;
2146
+ target_revision: z.ZodString;
2147
+ stage: z.ZodEnum<{
2148
+ install: "install";
2149
+ gateway_restart: "gateway_restart";
2150
+ agent_ready: "agent_ready";
2151
+ }>;
2152
+ recovered_revision: z.ZodOptional<z.ZodString>;
2153
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2154
+ attempt_error: z.ZodOptional<z.ZodString>;
2155
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2156
+ install: "install";
2157
+ gateway_restart: "gateway_restart";
2158
+ agent_ready: "agent_ready";
2159
+ }>>;
2160
+ }, z.core.$strip>;
2161
+ attempt_error: z.ZodNullable<z.ZodString>;
2162
+ runtime_revision: z.ZodNullable<z.ZodString>;
2163
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2164
+ outcome: z.ZodEnum<{
2165
+ unknown: "unknown";
2166
+ blocked: "blocked";
2167
+ recovering: "recovering";
2168
+ target_installed: "target_installed";
2169
+ baseline_restored: "baseline_restored";
2170
+ other_revision: "other_revision";
2171
+ }>;
2172
+ }, z.core.$strip>>;
1783
2173
  unread: z.ZodBoolean;
1784
2174
  active: z.ZodBoolean;
1785
2175
  requires_interaction: z.ZodBoolean;
1786
2176
  can_dismiss: z.ZodBoolean;
1787
2177
  steps: z.ZodArray<z.ZodObject<{
1788
2178
  id: z.ZodEnum<{
1789
- ready: "ready";
1790
- gateway_restart: "gateway_restart";
1791
2179
  install: "install";
2180
+ gateway_restart: "gateway_restart";
2181
+ agent_ready: "agent_ready";
2182
+ ready: "ready";
1792
2183
  web_restart: "web_restart";
1793
2184
  gateway_wait: "gateway_wait";
1794
- agent_ready: "agent_ready";
2185
+ recovery: "recovery";
1795
2186
  }>;
1796
2187
  label: z.ZodString;
1797
2188
  state: z.ZodEnum<{
1798
2189
  pending: "pending";
1799
- active: "active";
1800
2190
  failed: "failed";
2191
+ active: "active";
1801
2192
  done: "done";
1802
2193
  }>;
1803
2194
  }, z.core.$strip>>;
@@ -1825,6 +2216,7 @@ export declare const toolsContract: {
1825
2216
  awaiting_confirmation: "awaiting_confirmation";
1826
2217
  waiting_for_idle: "waiting_for_idle";
1827
2218
  verifying: "verifying";
2219
+ recovering: "recovering";
1828
2220
  succeeded: "succeeded";
1829
2221
  }>, z.ZodString]>;
1830
2222
  severity: z.ZodEnum<{
@@ -1858,24 +2250,56 @@ export declare const toolsContract: {
1858
2250
  verified_revision: z.ZodNullable<z.ZodString>;
1859
2251
  verified_version: z.ZodNullable<z.ZodString>;
1860
2252
  detail: z.ZodNullable<z.ZodString>;
2253
+ recovery: z.ZodOptional<z.ZodObject<{
2254
+ operation: z.ZodObject<{
2255
+ operation_id: z.ZodUUID;
2256
+ baseline_revision: z.ZodString;
2257
+ target_revision: z.ZodString;
2258
+ stage: z.ZodEnum<{
2259
+ install: "install";
2260
+ gateway_restart: "gateway_restart";
2261
+ agent_ready: "agent_ready";
2262
+ }>;
2263
+ recovered_revision: z.ZodOptional<z.ZodString>;
2264
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2265
+ attempt_error: z.ZodOptional<z.ZodString>;
2266
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2267
+ install: "install";
2268
+ gateway_restart: "gateway_restart";
2269
+ agent_ready: "agent_ready";
2270
+ }>>;
2271
+ }, z.core.$strip>;
2272
+ attempt_error: z.ZodNullable<z.ZodString>;
2273
+ runtime_revision: z.ZodNullable<z.ZodString>;
2274
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2275
+ outcome: z.ZodEnum<{
2276
+ unknown: "unknown";
2277
+ blocked: "blocked";
2278
+ recovering: "recovering";
2279
+ target_installed: "target_installed";
2280
+ baseline_restored: "baseline_restored";
2281
+ other_revision: "other_revision";
2282
+ }>;
2283
+ }, z.core.$strip>>;
1861
2284
  unread: z.ZodBoolean;
1862
2285
  active: z.ZodBoolean;
1863
2286
  requires_interaction: z.ZodBoolean;
1864
2287
  can_dismiss: z.ZodBoolean;
1865
2288
  steps: z.ZodArray<z.ZodObject<{
1866
2289
  id: z.ZodEnum<{
1867
- ready: "ready";
1868
- gateway_restart: "gateway_restart";
1869
2290
  install: "install";
2291
+ gateway_restart: "gateway_restart";
2292
+ agent_ready: "agent_ready";
2293
+ ready: "ready";
1870
2294
  web_restart: "web_restart";
1871
2295
  gateway_wait: "gateway_wait";
1872
- agent_ready: "agent_ready";
2296
+ recovery: "recovery";
1873
2297
  }>;
1874
2298
  label: z.ZodString;
1875
2299
  state: z.ZodEnum<{
1876
2300
  pending: "pending";
1877
- active: "active";
1878
2301
  failed: "failed";
2302
+ active: "active";
1879
2303
  done: "done";
1880
2304
  }>;
1881
2305
  }, z.core.$strip>>;
@@ -1912,6 +2336,7 @@ export declare const toolsContract: {
1912
2336
  awaiting_confirmation: "awaiting_confirmation";
1913
2337
  waiting_for_idle: "waiting_for_idle";
1914
2338
  verifying: "verifying";
2339
+ recovering: "recovering";
1915
2340
  succeeded: "succeeded";
1916
2341
  }>, z.ZodString]>;
1917
2342
  severity: z.ZodEnum<{
@@ -1945,24 +2370,56 @@ export declare const toolsContract: {
1945
2370
  verified_revision: z.ZodNullable<z.ZodString>;
1946
2371
  verified_version: z.ZodNullable<z.ZodString>;
1947
2372
  detail: z.ZodNullable<z.ZodString>;
2373
+ recovery: z.ZodOptional<z.ZodObject<{
2374
+ operation: z.ZodObject<{
2375
+ operation_id: z.ZodUUID;
2376
+ baseline_revision: z.ZodString;
2377
+ target_revision: z.ZodString;
2378
+ stage: z.ZodEnum<{
2379
+ install: "install";
2380
+ gateway_restart: "gateway_restart";
2381
+ agent_ready: "agent_ready";
2382
+ }>;
2383
+ recovered_revision: z.ZodOptional<z.ZodString>;
2384
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2385
+ attempt_error: z.ZodOptional<z.ZodString>;
2386
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2387
+ install: "install";
2388
+ gateway_restart: "gateway_restart";
2389
+ agent_ready: "agent_ready";
2390
+ }>>;
2391
+ }, z.core.$strip>;
2392
+ attempt_error: z.ZodNullable<z.ZodString>;
2393
+ runtime_revision: z.ZodNullable<z.ZodString>;
2394
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2395
+ outcome: z.ZodEnum<{
2396
+ unknown: "unknown";
2397
+ blocked: "blocked";
2398
+ recovering: "recovering";
2399
+ target_installed: "target_installed";
2400
+ baseline_restored: "baseline_restored";
2401
+ other_revision: "other_revision";
2402
+ }>;
2403
+ }, z.core.$strip>>;
1948
2404
  unread: z.ZodBoolean;
1949
2405
  active: z.ZodBoolean;
1950
2406
  requires_interaction: z.ZodBoolean;
1951
2407
  can_dismiss: z.ZodBoolean;
1952
2408
  steps: z.ZodArray<z.ZodObject<{
1953
2409
  id: z.ZodEnum<{
1954
- ready: "ready";
1955
- gateway_restart: "gateway_restart";
1956
2410
  install: "install";
2411
+ gateway_restart: "gateway_restart";
2412
+ agent_ready: "agent_ready";
2413
+ ready: "ready";
1957
2414
  web_restart: "web_restart";
1958
2415
  gateway_wait: "gateway_wait";
1959
- agent_ready: "agent_ready";
2416
+ recovery: "recovery";
1960
2417
  }>;
1961
2418
  label: z.ZodString;
1962
2419
  state: z.ZodEnum<{
1963
2420
  pending: "pending";
1964
- active: "active";
1965
2421
  failed: "failed";
2422
+ active: "active";
1966
2423
  done: "done";
1967
2424
  }>;
1968
2425
  }, z.core.$strip>>;
@@ -2009,6 +2466,7 @@ export declare const toolsContract: {
2009
2466
  awaiting_confirmation: "awaiting_confirmation";
2010
2467
  waiting_for_idle: "waiting_for_idle";
2011
2468
  verifying: "verifying";
2469
+ recovering: "recovering";
2012
2470
  succeeded: "succeeded";
2013
2471
  }>, z.ZodString]>;
2014
2472
  severity: z.ZodEnum<{
@@ -2042,24 +2500,56 @@ export declare const toolsContract: {
2042
2500
  verified_revision: z.ZodNullable<z.ZodString>;
2043
2501
  verified_version: z.ZodNullable<z.ZodString>;
2044
2502
  detail: z.ZodNullable<z.ZodString>;
2503
+ recovery: z.ZodOptional<z.ZodObject<{
2504
+ operation: z.ZodObject<{
2505
+ operation_id: z.ZodUUID;
2506
+ baseline_revision: z.ZodString;
2507
+ target_revision: z.ZodString;
2508
+ stage: z.ZodEnum<{
2509
+ install: "install";
2510
+ gateway_restart: "gateway_restart";
2511
+ agent_ready: "agent_ready";
2512
+ }>;
2513
+ recovered_revision: z.ZodOptional<z.ZodString>;
2514
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2515
+ attempt_error: z.ZodOptional<z.ZodString>;
2516
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2517
+ install: "install";
2518
+ gateway_restart: "gateway_restart";
2519
+ agent_ready: "agent_ready";
2520
+ }>>;
2521
+ }, z.core.$strip>;
2522
+ attempt_error: z.ZodNullable<z.ZodString>;
2523
+ runtime_revision: z.ZodNullable<z.ZodString>;
2524
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2525
+ outcome: z.ZodEnum<{
2526
+ unknown: "unknown";
2527
+ blocked: "blocked";
2528
+ recovering: "recovering";
2529
+ target_installed: "target_installed";
2530
+ baseline_restored: "baseline_restored";
2531
+ other_revision: "other_revision";
2532
+ }>;
2533
+ }, z.core.$strip>>;
2045
2534
  unread: z.ZodBoolean;
2046
2535
  active: z.ZodBoolean;
2047
2536
  requires_interaction: z.ZodBoolean;
2048
2537
  can_dismiss: z.ZodBoolean;
2049
2538
  steps: z.ZodArray<z.ZodObject<{
2050
2539
  id: z.ZodEnum<{
2051
- ready: "ready";
2052
- gateway_restart: "gateway_restart";
2053
2540
  install: "install";
2541
+ gateway_restart: "gateway_restart";
2542
+ agent_ready: "agent_ready";
2543
+ ready: "ready";
2054
2544
  web_restart: "web_restart";
2055
2545
  gateway_wait: "gateway_wait";
2056
- agent_ready: "agent_ready";
2546
+ recovery: "recovery";
2057
2547
  }>;
2058
2548
  label: z.ZodString;
2059
2549
  state: z.ZodEnum<{
2060
2550
  pending: "pending";
2061
- active: "active";
2062
2551
  failed: "failed";
2552
+ active: "active";
2063
2553
  done: "done";
2064
2554
  }>;
2065
2555
  }, z.core.$strip>>;
@@ -2087,6 +2577,7 @@ export declare const toolsContract: {
2087
2577
  awaiting_confirmation: "awaiting_confirmation";
2088
2578
  waiting_for_idle: "waiting_for_idle";
2089
2579
  verifying: "verifying";
2580
+ recovering: "recovering";
2090
2581
  succeeded: "succeeded";
2091
2582
  }>, z.ZodString]>;
2092
2583
  severity: z.ZodEnum<{
@@ -2120,24 +2611,56 @@ export declare const toolsContract: {
2120
2611
  verified_revision: z.ZodNullable<z.ZodString>;
2121
2612
  verified_version: z.ZodNullable<z.ZodString>;
2122
2613
  detail: z.ZodNullable<z.ZodString>;
2614
+ recovery: z.ZodOptional<z.ZodObject<{
2615
+ operation: z.ZodObject<{
2616
+ operation_id: z.ZodUUID;
2617
+ baseline_revision: z.ZodString;
2618
+ target_revision: z.ZodString;
2619
+ stage: z.ZodEnum<{
2620
+ install: "install";
2621
+ gateway_restart: "gateway_restart";
2622
+ agent_ready: "agent_ready";
2623
+ }>;
2624
+ recovered_revision: z.ZodOptional<z.ZodString>;
2625
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2626
+ attempt_error: z.ZodOptional<z.ZodString>;
2627
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2628
+ install: "install";
2629
+ gateway_restart: "gateway_restart";
2630
+ agent_ready: "agent_ready";
2631
+ }>>;
2632
+ }, z.core.$strip>;
2633
+ attempt_error: z.ZodNullable<z.ZodString>;
2634
+ runtime_revision: z.ZodNullable<z.ZodString>;
2635
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2636
+ outcome: z.ZodEnum<{
2637
+ unknown: "unknown";
2638
+ blocked: "blocked";
2639
+ recovering: "recovering";
2640
+ target_installed: "target_installed";
2641
+ baseline_restored: "baseline_restored";
2642
+ other_revision: "other_revision";
2643
+ }>;
2644
+ }, z.core.$strip>>;
2123
2645
  unread: z.ZodBoolean;
2124
2646
  active: z.ZodBoolean;
2125
2647
  requires_interaction: z.ZodBoolean;
2126
2648
  can_dismiss: z.ZodBoolean;
2127
2649
  steps: z.ZodArray<z.ZodObject<{
2128
2650
  id: z.ZodEnum<{
2129
- ready: "ready";
2130
- gateway_restart: "gateway_restart";
2131
2651
  install: "install";
2652
+ gateway_restart: "gateway_restart";
2653
+ agent_ready: "agent_ready";
2654
+ ready: "ready";
2132
2655
  web_restart: "web_restart";
2133
2656
  gateway_wait: "gateway_wait";
2134
- agent_ready: "agent_ready";
2657
+ recovery: "recovery";
2135
2658
  }>;
2136
2659
  label: z.ZodString;
2137
2660
  state: z.ZodEnum<{
2138
2661
  pending: "pending";
2139
- active: "active";
2140
2662
  failed: "failed";
2663
+ active: "active";
2141
2664
  done: "done";
2142
2665
  }>;
2143
2666
  }, z.core.$strip>>;
@@ -2173,6 +2696,7 @@ export declare const toolsContract: {
2173
2696
  awaiting_confirmation: "awaiting_confirmation";
2174
2697
  waiting_for_idle: "waiting_for_idle";
2175
2698
  verifying: "verifying";
2699
+ recovering: "recovering";
2176
2700
  succeeded: "succeeded";
2177
2701
  }>, z.ZodString]>;
2178
2702
  severity: z.ZodEnum<{
@@ -2206,24 +2730,56 @@ export declare const toolsContract: {
2206
2730
  verified_revision: z.ZodNullable<z.ZodString>;
2207
2731
  verified_version: z.ZodNullable<z.ZodString>;
2208
2732
  detail: z.ZodNullable<z.ZodString>;
2733
+ recovery: z.ZodOptional<z.ZodObject<{
2734
+ operation: z.ZodObject<{
2735
+ operation_id: z.ZodUUID;
2736
+ baseline_revision: z.ZodString;
2737
+ target_revision: z.ZodString;
2738
+ stage: z.ZodEnum<{
2739
+ install: "install";
2740
+ gateway_restart: "gateway_restart";
2741
+ agent_ready: "agent_ready";
2742
+ }>;
2743
+ recovered_revision: z.ZodOptional<z.ZodString>;
2744
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2745
+ attempt_error: z.ZodOptional<z.ZodString>;
2746
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2747
+ install: "install";
2748
+ gateway_restart: "gateway_restart";
2749
+ agent_ready: "agent_ready";
2750
+ }>>;
2751
+ }, z.core.$strip>;
2752
+ attempt_error: z.ZodNullable<z.ZodString>;
2753
+ runtime_revision: z.ZodNullable<z.ZodString>;
2754
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2755
+ outcome: z.ZodEnum<{
2756
+ unknown: "unknown";
2757
+ blocked: "blocked";
2758
+ recovering: "recovering";
2759
+ target_installed: "target_installed";
2760
+ baseline_restored: "baseline_restored";
2761
+ other_revision: "other_revision";
2762
+ }>;
2763
+ }, z.core.$strip>>;
2209
2764
  unread: z.ZodBoolean;
2210
2765
  active: z.ZodBoolean;
2211
2766
  requires_interaction: z.ZodBoolean;
2212
2767
  can_dismiss: z.ZodBoolean;
2213
2768
  steps: z.ZodArray<z.ZodObject<{
2214
2769
  id: z.ZodEnum<{
2215
- ready: "ready";
2216
- gateway_restart: "gateway_restart";
2217
2770
  install: "install";
2771
+ gateway_restart: "gateway_restart";
2772
+ agent_ready: "agent_ready";
2773
+ ready: "ready";
2218
2774
  web_restart: "web_restart";
2219
2775
  gateway_wait: "gateway_wait";
2220
- agent_ready: "agent_ready";
2776
+ recovery: "recovery";
2221
2777
  }>;
2222
2778
  label: z.ZodString;
2223
2779
  state: z.ZodEnum<{
2224
2780
  pending: "pending";
2225
- active: "active";
2226
2781
  failed: "failed";
2782
+ active: "active";
2227
2783
  done: "done";
2228
2784
  }>;
2229
2785
  }, z.core.$strip>>;
@@ -2256,6 +2812,7 @@ export declare const toolsContract: {
2256
2812
  awaiting_confirmation: "awaiting_confirmation";
2257
2813
  waiting_for_idle: "waiting_for_idle";
2258
2814
  verifying: "verifying";
2815
+ recovering: "recovering";
2259
2816
  succeeded: "succeeded";
2260
2817
  }>, z.ZodString]>;
2261
2818
  severity: z.ZodEnum<{
@@ -2289,24 +2846,56 @@ export declare const toolsContract: {
2289
2846
  verified_revision: z.ZodNullable<z.ZodString>;
2290
2847
  verified_version: z.ZodNullable<z.ZodString>;
2291
2848
  detail: z.ZodNullable<z.ZodString>;
2849
+ recovery: z.ZodOptional<z.ZodObject<{
2850
+ operation: z.ZodObject<{
2851
+ operation_id: z.ZodUUID;
2852
+ baseline_revision: z.ZodString;
2853
+ target_revision: z.ZodString;
2854
+ stage: z.ZodEnum<{
2855
+ install: "install";
2856
+ gateway_restart: "gateway_restart";
2857
+ agent_ready: "agent_ready";
2858
+ }>;
2859
+ recovered_revision: z.ZodOptional<z.ZodString>;
2860
+ source_moved: z.ZodOptional<z.ZodBoolean>;
2861
+ attempt_error: z.ZodOptional<z.ZodString>;
2862
+ failed_stage: z.ZodOptional<z.ZodEnum<{
2863
+ install: "install";
2864
+ gateway_restart: "gateway_restart";
2865
+ agent_ready: "agent_ready";
2866
+ }>>;
2867
+ }, z.core.$strip>;
2868
+ attempt_error: z.ZodNullable<z.ZodString>;
2869
+ runtime_revision: z.ZodNullable<z.ZodString>;
2870
+ rollback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2871
+ outcome: z.ZodEnum<{
2872
+ unknown: "unknown";
2873
+ blocked: "blocked";
2874
+ recovering: "recovering";
2875
+ target_installed: "target_installed";
2876
+ baseline_restored: "baseline_restored";
2877
+ other_revision: "other_revision";
2878
+ }>;
2879
+ }, z.core.$strip>>;
2292
2880
  unread: z.ZodBoolean;
2293
2881
  active: z.ZodBoolean;
2294
2882
  requires_interaction: z.ZodBoolean;
2295
2883
  can_dismiss: z.ZodBoolean;
2296
2884
  steps: z.ZodArray<z.ZodObject<{
2297
2885
  id: z.ZodEnum<{
2298
- ready: "ready";
2299
- gateway_restart: "gateway_restart";
2300
2886
  install: "install";
2887
+ gateway_restart: "gateway_restart";
2888
+ agent_ready: "agent_ready";
2889
+ ready: "ready";
2301
2890
  web_restart: "web_restart";
2302
2891
  gateway_wait: "gateway_wait";
2303
- agent_ready: "agent_ready";
2892
+ recovery: "recovery";
2304
2893
  }>;
2305
2894
  label: z.ZodString;
2306
2895
  state: z.ZodEnum<{
2307
2896
  pending: "pending";
2308
- active: "active";
2309
2897
  failed: "failed";
2898
+ active: "active";
2310
2899
  done: "done";
2311
2900
  }>;
2312
2901
  }, z.core.$strip>>;