@agent-phonon/protocol 0.9.1 → 0.10.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 (145) hide show
  1. package/README.md +35 -1
  2. package/dist/index.d.ts +12 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +12 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/native-version.d.ts +6 -0
  7. package/dist/native-version.d.ts.map +1 -0
  8. package/dist/native-version.js +41 -0
  9. package/dist/native-version.js.map +1 -0
  10. package/dist/schemas/capabilities.d.ts +9 -0
  11. package/dist/schemas/capabilities.d.ts.map +1 -1
  12. package/dist/schemas/capabilities.js +3 -0
  13. package/dist/schemas/capabilities.js.map +1 -1
  14. package/dist/schemas/common.d.ts +4 -4
  15. package/dist/schemas/common.d.ts.map +1 -1
  16. package/dist/schemas/common.js +9 -0
  17. package/dist/schemas/common.js.map +1 -1
  18. package/dist/schemas/compression.d.ts +191 -0
  19. package/dist/schemas/compression.d.ts.map +1 -0
  20. package/dist/schemas/compression.js +18 -0
  21. package/dist/schemas/compression.js.map +1 -0
  22. package/dist/schemas/conversation-archive.d.ts +1021 -0
  23. package/dist/schemas/conversation-archive.d.ts.map +1 -0
  24. package/dist/schemas/conversation-archive.js +148 -0
  25. package/dist/schemas/conversation-archive.js.map +1 -0
  26. package/dist/schemas/conversation-board.d.ts +428 -0
  27. package/dist/schemas/conversation-board.d.ts.map +1 -0
  28. package/dist/schemas/conversation-board.js +32 -0
  29. package/dist/schemas/conversation-board.js.map +1 -0
  30. package/dist/schemas/conversation-message.d.ts +658 -0
  31. package/dist/schemas/conversation-message.d.ts.map +1 -0
  32. package/dist/schemas/conversation-message.js +42 -0
  33. package/dist/schemas/conversation-message.js.map +1 -0
  34. package/dist/schemas/conversation-workflow.d.ts +1201 -0
  35. package/dist/schemas/conversation-workflow.d.ts.map +1 -0
  36. package/dist/schemas/conversation-workflow.js +68 -0
  37. package/dist/schemas/conversation-workflow.js.map +1 -0
  38. package/dist/schemas/device.d.ts +198 -2
  39. package/dist/schemas/device.d.ts.map +1 -1
  40. package/dist/schemas/device.js +29 -1
  41. package/dist/schemas/device.js.map +1 -1
  42. package/dist/schemas/discovery.d.ts +107 -0
  43. package/dist/schemas/discovery.d.ts.map +1 -1
  44. package/dist/schemas/discovery.js +2 -0
  45. package/dist/schemas/discovery.js.map +1 -1
  46. package/dist/schemas/document.d.ts +56 -26
  47. package/dist/schemas/document.d.ts.map +1 -1
  48. package/dist/schemas/document.js +11 -0
  49. package/dist/schemas/document.js.map +1 -1
  50. package/dist/schemas/employee.d.ts +139 -0
  51. package/dist/schemas/employee.d.ts.map +1 -0
  52. package/dist/schemas/employee.js +17 -0
  53. package/dist/schemas/employee.js.map +1 -0
  54. package/dist/schemas/env.d.ts +15 -15
  55. package/dist/schemas/env.d.ts.map +1 -1
  56. package/dist/schemas/env.js +1 -1
  57. package/dist/schemas/env.js.map +1 -1
  58. package/dist/schemas/file.d.ts +6 -6
  59. package/dist/schemas/hook.d.ts +4 -4
  60. package/dist/schemas/interaction.d.ts +363 -2
  61. package/dist/schemas/interaction.d.ts.map +1 -1
  62. package/dist/schemas/interaction.js +28 -1
  63. package/dist/schemas/interaction.js.map +1 -1
  64. package/dist/schemas/jsonrpc.d.ts +19 -19
  65. package/dist/schemas/maintenance.d.ts +822 -0
  66. package/dist/schemas/maintenance.d.ts.map +1 -0
  67. package/dist/schemas/maintenance.js +166 -0
  68. package/dist/schemas/maintenance.js.map +1 -0
  69. package/dist/schemas/managed-mcp.d.ts +116 -0
  70. package/dist/schemas/managed-mcp.d.ts.map +1 -0
  71. package/dist/schemas/managed-mcp.js +23 -0
  72. package/dist/schemas/managed-mcp.js.map +1 -0
  73. package/dist/schemas/methods.d.ts +22186 -2362
  74. package/dist/schemas/methods.d.ts.map +1 -1
  75. package/dist/schemas/methods.js +181 -6
  76. package/dist/schemas/methods.js.map +1 -1
  77. package/dist/schemas/native-stop.d.ts +162 -0
  78. package/dist/schemas/native-stop.d.ts.map +1 -0
  79. package/dist/schemas/native-stop.js +14 -0
  80. package/dist/schemas/native-stop.js.map +1 -0
  81. package/dist/schemas/policy.d.ts +42 -2
  82. package/dist/schemas/policy.d.ts.map +1 -1
  83. package/dist/schemas/policy.js +20 -0
  84. package/dist/schemas/policy.js.map +1 -1
  85. package/dist/schemas/project-coordination.d.ts +1956 -0
  86. package/dist/schemas/project-coordination.d.ts.map +1 -0
  87. package/dist/schemas/project-coordination.js +81 -0
  88. package/dist/schemas/project-coordination.js.map +1 -0
  89. package/dist/schemas/project.d.ts +771 -53
  90. package/dist/schemas/project.d.ts.map +1 -1
  91. package/dist/schemas/project.js +60 -5
  92. package/dist/schemas/project.js.map +1 -1
  93. package/dist/schemas/reasoning.d.ts +26 -0
  94. package/dist/schemas/reasoning.d.ts.map +1 -0
  95. package/dist/schemas/reasoning.js +10 -0
  96. package/dist/schemas/reasoning.js.map +1 -0
  97. package/dist/schemas/schedule.d.ts +15148 -5022
  98. package/dist/schemas/schedule.d.ts.map +1 -1
  99. package/dist/schemas/schedule.js +46 -5
  100. package/dist/schemas/schedule.js.map +1 -1
  101. package/dist/schemas/session.d.ts +1558 -49
  102. package/dist/schemas/session.d.ts.map +1 -1
  103. package/dist/schemas/session.js +27 -16
  104. package/dist/schemas/session.js.map +1 -1
  105. package/dist/schemas/skill.d.ts +1009 -8
  106. package/dist/schemas/skill.d.ts.map +1 -1
  107. package/dist/schemas/skill.js +39 -0
  108. package/dist/schemas/skill.js.map +1 -1
  109. package/dist/schemas/stream.d.ts +1060 -67
  110. package/dist/schemas/stream.d.ts.map +1 -1
  111. package/dist/schemas/stream.js +18 -3
  112. package/dist/schemas/stream.js.map +1 -1
  113. package/dist/schemas/workflow.d.ts +2764 -255
  114. package/dist/schemas/workflow.d.ts.map +1 -1
  115. package/dist/schemas/workflow.js +69 -1
  116. package/dist/schemas/workflow.js.map +1 -1
  117. package/package.json +1 -1
  118. package/src/index.ts +12 -0
  119. package/src/native-version.ts +30 -0
  120. package/src/schemas/capabilities.ts +3 -0
  121. package/src/schemas/common.ts +9 -0
  122. package/src/schemas/compression.ts +19 -0
  123. package/src/schemas/conversation-archive.ts +155 -0
  124. package/src/schemas/conversation-board.ts +36 -0
  125. package/src/schemas/conversation-message.ts +46 -0
  126. package/src/schemas/conversation-workflow.ts +62 -0
  127. package/src/schemas/device.ts +32 -1
  128. package/src/schemas/discovery.ts +2 -0
  129. package/src/schemas/document.ts +13 -0
  130. package/src/schemas/employee.ts +19 -0
  131. package/src/schemas/env.ts +1 -1
  132. package/src/schemas/interaction.ts +32 -1
  133. package/src/schemas/maintenance.ts +204 -0
  134. package/src/schemas/managed-mcp.ts +25 -0
  135. package/src/schemas/methods.ts +208 -1
  136. package/src/schemas/native-stop.ts +16 -0
  137. package/src/schemas/policy.ts +20 -0
  138. package/src/schemas/project-coordination.ts +90 -0
  139. package/src/schemas/project.ts +72 -5
  140. package/src/schemas/reasoning.ts +13 -0
  141. package/src/schemas/schedule.ts +54 -5
  142. package/src/schemas/session.ts +30 -18
  143. package/src/schemas/skill.ts +52 -0
  144. package/src/schemas/stream.ts +22 -3
  145. package/src/schemas/workflow.ts +82 -1
@@ -0,0 +1,822 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Deterministic host-maintenance plane.
4
+ *
5
+ * Requests address locally configured target/config/service ids; the server can
6
+ * never supply raw host paths, package names, service names, or shell strings.
7
+ * Device policy remains authoritative for every action.
8
+ */
9
+ export declare const MaintenancePermission: z.ZodObject<{
10
+ read: z.ZodBoolean;
11
+ configWrite: z.ZodBoolean;
12
+ packageUpdate: z.ZodBoolean;
13
+ serviceRestart: z.ZodBoolean;
14
+ }, "strip", z.ZodTypeAny, {
15
+ read: boolean;
16
+ configWrite: boolean;
17
+ packageUpdate: boolean;
18
+ serviceRestart: boolean;
19
+ }, {
20
+ read: boolean;
21
+ configWrite: boolean;
22
+ packageUpdate: boolean;
23
+ serviceRestart: boolean;
24
+ }>;
25
+ export type MaintenancePermission = z.infer<typeof MaintenancePermission>;
26
+ export declare const MaintenanceConfigFormat: z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>;
27
+ export type MaintenanceConfigFormat = z.infer<typeof MaintenanceConfigFormat>;
28
+ export declare const MaintenanceConfigDescriptor: z.ZodObject<{
29
+ configId: z.ZodString;
30
+ label: z.ZodOptional<z.ZodString>;
31
+ format: z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>;
32
+ textVisibility: z.ZodOptional<z.ZodEnum<["hidden", "public"]>>;
33
+ wholeFileWritable: z.ZodOptional<z.ZodBoolean>;
34
+ allowedRootKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ exists: z.ZodBoolean;
36
+ writable: z.ZodBoolean;
37
+ }, "strip", z.ZodTypeAny, {
38
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
39
+ exists: boolean;
40
+ configId: string;
41
+ writable: boolean;
42
+ label?: string | undefined;
43
+ textVisibility?: "public" | "hidden" | undefined;
44
+ wholeFileWritable?: boolean | undefined;
45
+ allowedRootKeys?: string[] | undefined;
46
+ }, {
47
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
48
+ exists: boolean;
49
+ configId: string;
50
+ writable: boolean;
51
+ label?: string | undefined;
52
+ textVisibility?: "public" | "hidden" | undefined;
53
+ wholeFileWritable?: boolean | undefined;
54
+ allowedRootKeys?: string[] | undefined;
55
+ }>;
56
+ export type MaintenanceConfigDescriptor = z.infer<typeof MaintenanceConfigDescriptor>;
57
+ export declare const MaintenanceServiceDescriptor: z.ZodObject<{
58
+ serviceId: z.ZodString;
59
+ label: z.ZodOptional<z.ZodString>;
60
+ configured: z.ZodBoolean;
61
+ }, "strip", z.ZodTypeAny, {
62
+ configured: boolean;
63
+ serviceId: string;
64
+ label?: string | undefined;
65
+ }, {
66
+ configured: boolean;
67
+ serviceId: string;
68
+ label?: string | undefined;
69
+ }>;
70
+ export type MaintenanceServiceDescriptor = z.infer<typeof MaintenanceServiceDescriptor>;
71
+ export declare const MaintenanceTargetDescriptor: z.ZodObject<{
72
+ targetId: z.ZodString;
73
+ label: z.ZodString;
74
+ command: z.ZodOptional<z.ZodString>;
75
+ packageUpdateConfigured: z.ZodBoolean;
76
+ configs: z.ZodArray<z.ZodObject<{
77
+ configId: z.ZodString;
78
+ label: z.ZodOptional<z.ZodString>;
79
+ format: z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>;
80
+ textVisibility: z.ZodOptional<z.ZodEnum<["hidden", "public"]>>;
81
+ wholeFileWritable: z.ZodOptional<z.ZodBoolean>;
82
+ allowedRootKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ exists: z.ZodBoolean;
84
+ writable: z.ZodBoolean;
85
+ }, "strip", z.ZodTypeAny, {
86
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
87
+ exists: boolean;
88
+ configId: string;
89
+ writable: boolean;
90
+ label?: string | undefined;
91
+ textVisibility?: "public" | "hidden" | undefined;
92
+ wholeFileWritable?: boolean | undefined;
93
+ allowedRootKeys?: string[] | undefined;
94
+ }, {
95
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
96
+ exists: boolean;
97
+ configId: string;
98
+ writable: boolean;
99
+ label?: string | undefined;
100
+ textVisibility?: "public" | "hidden" | undefined;
101
+ wholeFileWritable?: boolean | undefined;
102
+ allowedRootKeys?: string[] | undefined;
103
+ }>, "many">;
104
+ services: z.ZodArray<z.ZodObject<{
105
+ serviceId: z.ZodString;
106
+ label: z.ZodOptional<z.ZodString>;
107
+ configured: z.ZodBoolean;
108
+ }, "strip", z.ZodTypeAny, {
109
+ configured: boolean;
110
+ serviceId: string;
111
+ label?: string | undefined;
112
+ }, {
113
+ configured: boolean;
114
+ serviceId: string;
115
+ label?: string | undefined;
116
+ }>, "many">;
117
+ }, "strip", z.ZodTypeAny, {
118
+ label: string;
119
+ targetId: string;
120
+ packageUpdateConfigured: boolean;
121
+ configs: {
122
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
123
+ exists: boolean;
124
+ configId: string;
125
+ writable: boolean;
126
+ label?: string | undefined;
127
+ textVisibility?: "public" | "hidden" | undefined;
128
+ wholeFileWritable?: boolean | undefined;
129
+ allowedRootKeys?: string[] | undefined;
130
+ }[];
131
+ services: {
132
+ configured: boolean;
133
+ serviceId: string;
134
+ label?: string | undefined;
135
+ }[];
136
+ command?: string | undefined;
137
+ }, {
138
+ label: string;
139
+ targetId: string;
140
+ packageUpdateConfigured: boolean;
141
+ configs: {
142
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
143
+ exists: boolean;
144
+ configId: string;
145
+ writable: boolean;
146
+ label?: string | undefined;
147
+ textVisibility?: "public" | "hidden" | undefined;
148
+ wholeFileWritable?: boolean | undefined;
149
+ allowedRootKeys?: string[] | undefined;
150
+ }[];
151
+ services: {
152
+ configured: boolean;
153
+ serviceId: string;
154
+ label?: string | undefined;
155
+ }[];
156
+ command?: string | undefined;
157
+ }>;
158
+ export type MaintenanceTargetDescriptor = z.infer<typeof MaintenanceTargetDescriptor>;
159
+ export declare const MaintenanceTargetsParams: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
160
+ export declare const MaintenanceTargetsResult: z.ZodObject<{
161
+ permissions: z.ZodObject<{
162
+ read: z.ZodBoolean;
163
+ configWrite: z.ZodBoolean;
164
+ packageUpdate: z.ZodBoolean;
165
+ serviceRestart: z.ZodBoolean;
166
+ }, "strip", z.ZodTypeAny, {
167
+ read: boolean;
168
+ configWrite: boolean;
169
+ packageUpdate: boolean;
170
+ serviceRestart: boolean;
171
+ }, {
172
+ read: boolean;
173
+ configWrite: boolean;
174
+ packageUpdate: boolean;
175
+ serviceRestart: boolean;
176
+ }>;
177
+ targets: z.ZodArray<z.ZodObject<{
178
+ targetId: z.ZodString;
179
+ label: z.ZodString;
180
+ command: z.ZodOptional<z.ZodString>;
181
+ packageUpdateConfigured: z.ZodBoolean;
182
+ configs: z.ZodArray<z.ZodObject<{
183
+ configId: z.ZodString;
184
+ label: z.ZodOptional<z.ZodString>;
185
+ format: z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>;
186
+ textVisibility: z.ZodOptional<z.ZodEnum<["hidden", "public"]>>;
187
+ wholeFileWritable: z.ZodOptional<z.ZodBoolean>;
188
+ allowedRootKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ exists: z.ZodBoolean;
190
+ writable: z.ZodBoolean;
191
+ }, "strip", z.ZodTypeAny, {
192
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
193
+ exists: boolean;
194
+ configId: string;
195
+ writable: boolean;
196
+ label?: string | undefined;
197
+ textVisibility?: "public" | "hidden" | undefined;
198
+ wholeFileWritable?: boolean | undefined;
199
+ allowedRootKeys?: string[] | undefined;
200
+ }, {
201
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
202
+ exists: boolean;
203
+ configId: string;
204
+ writable: boolean;
205
+ label?: string | undefined;
206
+ textVisibility?: "public" | "hidden" | undefined;
207
+ wholeFileWritable?: boolean | undefined;
208
+ allowedRootKeys?: string[] | undefined;
209
+ }>, "many">;
210
+ services: z.ZodArray<z.ZodObject<{
211
+ serviceId: z.ZodString;
212
+ label: z.ZodOptional<z.ZodString>;
213
+ configured: z.ZodBoolean;
214
+ }, "strip", z.ZodTypeAny, {
215
+ configured: boolean;
216
+ serviceId: string;
217
+ label?: string | undefined;
218
+ }, {
219
+ configured: boolean;
220
+ serviceId: string;
221
+ label?: string | undefined;
222
+ }>, "many">;
223
+ }, "strip", z.ZodTypeAny, {
224
+ label: string;
225
+ targetId: string;
226
+ packageUpdateConfigured: boolean;
227
+ configs: {
228
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
229
+ exists: boolean;
230
+ configId: string;
231
+ writable: boolean;
232
+ label?: string | undefined;
233
+ textVisibility?: "public" | "hidden" | undefined;
234
+ wholeFileWritable?: boolean | undefined;
235
+ allowedRootKeys?: string[] | undefined;
236
+ }[];
237
+ services: {
238
+ configured: boolean;
239
+ serviceId: string;
240
+ label?: string | undefined;
241
+ }[];
242
+ command?: string | undefined;
243
+ }, {
244
+ label: string;
245
+ targetId: string;
246
+ packageUpdateConfigured: boolean;
247
+ configs: {
248
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
249
+ exists: boolean;
250
+ configId: string;
251
+ writable: boolean;
252
+ label?: string | undefined;
253
+ textVisibility?: "public" | "hidden" | undefined;
254
+ wholeFileWritable?: boolean | undefined;
255
+ allowedRootKeys?: string[] | undefined;
256
+ }[];
257
+ services: {
258
+ configured: boolean;
259
+ serviceId: string;
260
+ label?: string | undefined;
261
+ }[];
262
+ command?: string | undefined;
263
+ }>, "many">;
264
+ }, "strip", z.ZodTypeAny, {
265
+ targets: {
266
+ label: string;
267
+ targetId: string;
268
+ packageUpdateConfigured: boolean;
269
+ configs: {
270
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
271
+ exists: boolean;
272
+ configId: string;
273
+ writable: boolean;
274
+ label?: string | undefined;
275
+ textVisibility?: "public" | "hidden" | undefined;
276
+ wholeFileWritable?: boolean | undefined;
277
+ allowedRootKeys?: string[] | undefined;
278
+ }[];
279
+ services: {
280
+ configured: boolean;
281
+ serviceId: string;
282
+ label?: string | undefined;
283
+ }[];
284
+ command?: string | undefined;
285
+ }[];
286
+ permissions: {
287
+ read: boolean;
288
+ configWrite: boolean;
289
+ packageUpdate: boolean;
290
+ serviceRestart: boolean;
291
+ };
292
+ }, {
293
+ targets: {
294
+ label: string;
295
+ targetId: string;
296
+ packageUpdateConfigured: boolean;
297
+ configs: {
298
+ format: "text" | "json" | "jsonc" | "yaml" | "toml";
299
+ exists: boolean;
300
+ configId: string;
301
+ writable: boolean;
302
+ label?: string | undefined;
303
+ textVisibility?: "public" | "hidden" | undefined;
304
+ wholeFileWritable?: boolean | undefined;
305
+ allowedRootKeys?: string[] | undefined;
306
+ }[];
307
+ services: {
308
+ configured: boolean;
309
+ serviceId: string;
310
+ label?: string | undefined;
311
+ }[];
312
+ command?: string | undefined;
313
+ }[];
314
+ permissions: {
315
+ read: boolean;
316
+ configWrite: boolean;
317
+ packageUpdate: boolean;
318
+ serviceRestart: boolean;
319
+ };
320
+ }>;
321
+ export declare const MaintenanceDiagnoseParams: z.ZodObject<{
322
+ targetId: z.ZodOptional<z.ZodString>;
323
+ }, "strict", z.ZodTypeAny, {
324
+ targetId?: string | undefined;
325
+ }, {
326
+ targetId?: string | undefined;
327
+ }>;
328
+ export declare const MaintenanceDiagnostic: z.ZodObject<{
329
+ targetId: z.ZodString;
330
+ available: z.ZodBoolean;
331
+ version: z.ZodOptional<z.ZodString>;
332
+ versionError: z.ZodOptional<z.ZodString>;
333
+ configs: z.ZodArray<z.ZodObject<{
334
+ configId: z.ZodString;
335
+ exists: z.ZodBoolean;
336
+ valid: z.ZodOptional<z.ZodBoolean>;
337
+ sha256: z.ZodOptional<z.ZodString>;
338
+ error: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ exists: boolean;
341
+ configId: string;
342
+ valid?: boolean | undefined;
343
+ sha256?: string | undefined;
344
+ error?: string | undefined;
345
+ }, {
346
+ exists: boolean;
347
+ configId: string;
348
+ valid?: boolean | undefined;
349
+ sha256?: string | undefined;
350
+ error?: string | undefined;
351
+ }>, "many">;
352
+ services: z.ZodArray<z.ZodObject<{
353
+ serviceId: z.ZodString;
354
+ status: z.ZodEnum<["running", "stopped", "unknown", "not_configured"]>;
355
+ detail: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ status: "unknown" | "running" | "stopped" | "not_configured";
358
+ serviceId: string;
359
+ detail?: string | undefined;
360
+ }, {
361
+ status: "unknown" | "running" | "stopped" | "not_configured";
362
+ serviceId: string;
363
+ detail?: string | undefined;
364
+ }>, "many">;
365
+ }, "strip", z.ZodTypeAny, {
366
+ available: boolean;
367
+ targetId: string;
368
+ configs: {
369
+ exists: boolean;
370
+ configId: string;
371
+ valid?: boolean | undefined;
372
+ sha256?: string | undefined;
373
+ error?: string | undefined;
374
+ }[];
375
+ services: {
376
+ status: "unknown" | "running" | "stopped" | "not_configured";
377
+ serviceId: string;
378
+ detail?: string | undefined;
379
+ }[];
380
+ version?: string | undefined;
381
+ versionError?: string | undefined;
382
+ }, {
383
+ available: boolean;
384
+ targetId: string;
385
+ configs: {
386
+ exists: boolean;
387
+ configId: string;
388
+ valid?: boolean | undefined;
389
+ sha256?: string | undefined;
390
+ error?: string | undefined;
391
+ }[];
392
+ services: {
393
+ status: "unknown" | "running" | "stopped" | "not_configured";
394
+ serviceId: string;
395
+ detail?: string | undefined;
396
+ }[];
397
+ version?: string | undefined;
398
+ versionError?: string | undefined;
399
+ }>;
400
+ export declare const MaintenanceDiagnoseResult: z.ZodObject<{
401
+ diagnostics: z.ZodArray<z.ZodObject<{
402
+ targetId: z.ZodString;
403
+ available: z.ZodBoolean;
404
+ version: z.ZodOptional<z.ZodString>;
405
+ versionError: z.ZodOptional<z.ZodString>;
406
+ configs: z.ZodArray<z.ZodObject<{
407
+ configId: z.ZodString;
408
+ exists: z.ZodBoolean;
409
+ valid: z.ZodOptional<z.ZodBoolean>;
410
+ sha256: z.ZodOptional<z.ZodString>;
411
+ error: z.ZodOptional<z.ZodString>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ exists: boolean;
414
+ configId: string;
415
+ valid?: boolean | undefined;
416
+ sha256?: string | undefined;
417
+ error?: string | undefined;
418
+ }, {
419
+ exists: boolean;
420
+ configId: string;
421
+ valid?: boolean | undefined;
422
+ sha256?: string | undefined;
423
+ error?: string | undefined;
424
+ }>, "many">;
425
+ services: z.ZodArray<z.ZodObject<{
426
+ serviceId: z.ZodString;
427
+ status: z.ZodEnum<["running", "stopped", "unknown", "not_configured"]>;
428
+ detail: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ status: "unknown" | "running" | "stopped" | "not_configured";
431
+ serviceId: string;
432
+ detail?: string | undefined;
433
+ }, {
434
+ status: "unknown" | "running" | "stopped" | "not_configured";
435
+ serviceId: string;
436
+ detail?: string | undefined;
437
+ }>, "many">;
438
+ }, "strip", z.ZodTypeAny, {
439
+ available: boolean;
440
+ targetId: string;
441
+ configs: {
442
+ exists: boolean;
443
+ configId: string;
444
+ valid?: boolean | undefined;
445
+ sha256?: string | undefined;
446
+ error?: string | undefined;
447
+ }[];
448
+ services: {
449
+ status: "unknown" | "running" | "stopped" | "not_configured";
450
+ serviceId: string;
451
+ detail?: string | undefined;
452
+ }[];
453
+ version?: string | undefined;
454
+ versionError?: string | undefined;
455
+ }, {
456
+ available: boolean;
457
+ targetId: string;
458
+ configs: {
459
+ exists: boolean;
460
+ configId: string;
461
+ valid?: boolean | undefined;
462
+ sha256?: string | undefined;
463
+ error?: string | undefined;
464
+ }[];
465
+ services: {
466
+ status: "unknown" | "running" | "stopped" | "not_configured";
467
+ serviceId: string;
468
+ detail?: string | undefined;
469
+ }[];
470
+ version?: string | undefined;
471
+ versionError?: string | undefined;
472
+ }>, "many">;
473
+ at: z.ZodString;
474
+ }, "strip", z.ZodTypeAny, {
475
+ at: string;
476
+ diagnostics: {
477
+ available: boolean;
478
+ targetId: string;
479
+ configs: {
480
+ exists: boolean;
481
+ configId: string;
482
+ valid?: boolean | undefined;
483
+ sha256?: string | undefined;
484
+ error?: string | undefined;
485
+ }[];
486
+ services: {
487
+ status: "unknown" | "running" | "stopped" | "not_configured";
488
+ serviceId: string;
489
+ detail?: string | undefined;
490
+ }[];
491
+ version?: string | undefined;
492
+ versionError?: string | undefined;
493
+ }[];
494
+ }, {
495
+ at: string;
496
+ diagnostics: {
497
+ available: boolean;
498
+ targetId: string;
499
+ configs: {
500
+ exists: boolean;
501
+ configId: string;
502
+ valid?: boolean | undefined;
503
+ sha256?: string | undefined;
504
+ error?: string | undefined;
505
+ }[];
506
+ services: {
507
+ status: "unknown" | "running" | "stopped" | "not_configured";
508
+ serviceId: string;
509
+ detail?: string | undefined;
510
+ }[];
511
+ version?: string | undefined;
512
+ versionError?: string | undefined;
513
+ }[];
514
+ }>;
515
+ export declare const MaintenanceConfigGetParams: z.ZodObject<{
516
+ targetId: z.ZodString;
517
+ configId: z.ZodString;
518
+ }, "strict", z.ZodTypeAny, {
519
+ configId: string;
520
+ targetId: string;
521
+ }, {
522
+ configId: string;
523
+ targetId: string;
524
+ }>;
525
+ export declare const MaintenanceConfigGetResult: z.ZodObject<{
526
+ targetId: z.ZodString;
527
+ configId: z.ZodString;
528
+ exists: z.ZodBoolean;
529
+ sha256: z.ZodOptional<z.ZodString>;
530
+ format: z.ZodOptional<z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>>;
531
+ text: z.ZodOptional<z.ZodString>;
532
+ textWithheld: z.ZodOptional<z.ZodBoolean>;
533
+ /** Parsed value with secret-looking fields recursively redacted; TOML special types use tagged diagnostic projections. */
534
+ value: z.ZodOptional<z.ZodUnknown>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ exists: boolean;
537
+ configId: string;
538
+ targetId: string;
539
+ value?: unknown;
540
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
541
+ sha256?: string | undefined;
542
+ text?: string | undefined;
543
+ textWithheld?: boolean | undefined;
544
+ }, {
545
+ exists: boolean;
546
+ configId: string;
547
+ targetId: string;
548
+ value?: unknown;
549
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
550
+ sha256?: string | undefined;
551
+ text?: string | undefined;
552
+ textWithheld?: boolean | undefined;
553
+ }>;
554
+ export declare const MaintenanceConfigPatchParams: z.ZodObject<{
555
+ targetId: z.ZodString;
556
+ configId: z.ZodString;
557
+ /** Optimistic lock from maintenance.config.get. Required to prevent stale overwrite. */
558
+ expectedSha256: z.ZodString;
559
+ /** RFC 7396-style JSON merge patch. Arrays are replaced as a whole. */
560
+ patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
561
+ reason: z.ZodOptional<z.ZodString>;
562
+ clientRequestId: z.ZodOptional<z.ZodString>;
563
+ }, "strict", z.ZodTypeAny, {
564
+ patch: Record<string, unknown>;
565
+ configId: string;
566
+ targetId: string;
567
+ expectedSha256: string;
568
+ clientRequestId?: string | undefined;
569
+ reason?: string | undefined;
570
+ }, {
571
+ patch: Record<string, unknown>;
572
+ configId: string;
573
+ targetId: string;
574
+ expectedSha256: string;
575
+ clientRequestId?: string | undefined;
576
+ reason?: string | undefined;
577
+ }>;
578
+ export declare const MaintenanceConfigPatchResult: z.ZodObject<{
579
+ targetId: z.ZodString;
580
+ configId: z.ZodString;
581
+ format: z.ZodOptional<z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>>;
582
+ changed: z.ZodBoolean;
583
+ previousSha256: z.ZodString;
584
+ sha256: z.ZodString;
585
+ backupId: z.ZodOptional<z.ZodString>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ sha256: string;
588
+ configId: string;
589
+ targetId: string;
590
+ changed: boolean;
591
+ previousSha256: string;
592
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
593
+ backupId?: string | undefined;
594
+ }, {
595
+ sha256: string;
596
+ configId: string;
597
+ targetId: string;
598
+ changed: boolean;
599
+ previousSha256: string;
600
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
601
+ backupId?: string | undefined;
602
+ }>;
603
+ export declare const MaintenanceConfigEditParams: z.ZodObject<{
604
+ targetId: z.ZodString;
605
+ configId: z.ZodString;
606
+ expectedSha256: z.ZodString;
607
+ edits: z.ZodArray<z.ZodObject<{
608
+ oldText: z.ZodString;
609
+ newText: z.ZodString;
610
+ }, "strict", z.ZodTypeAny, {
611
+ oldText: string;
612
+ newText: string;
613
+ }, {
614
+ oldText: string;
615
+ newText: string;
616
+ }>, "many">;
617
+ reason: z.ZodOptional<z.ZodString>;
618
+ clientRequestId: z.ZodOptional<z.ZodString>;
619
+ }, "strict", z.ZodTypeAny, {
620
+ configId: string;
621
+ targetId: string;
622
+ expectedSha256: string;
623
+ edits: {
624
+ oldText: string;
625
+ newText: string;
626
+ }[];
627
+ clientRequestId?: string | undefined;
628
+ reason?: string | undefined;
629
+ }, {
630
+ configId: string;
631
+ targetId: string;
632
+ expectedSha256: string;
633
+ edits: {
634
+ oldText: string;
635
+ newText: string;
636
+ }[];
637
+ clientRequestId?: string | undefined;
638
+ reason?: string | undefined;
639
+ }>;
640
+ export declare const MaintenanceConfigEditResult: z.ZodObject<{
641
+ targetId: z.ZodString;
642
+ configId: z.ZodString;
643
+ format: z.ZodOptional<z.ZodEnum<["json", "jsonc", "yaml", "toml", "text"]>>;
644
+ changed: z.ZodBoolean;
645
+ previousSha256: z.ZodString;
646
+ sha256: z.ZodString;
647
+ backupId: z.ZodOptional<z.ZodString>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ sha256: string;
650
+ configId: string;
651
+ targetId: string;
652
+ changed: boolean;
653
+ previousSha256: string;
654
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
655
+ backupId?: string | undefined;
656
+ }, {
657
+ sha256: string;
658
+ configId: string;
659
+ targetId: string;
660
+ changed: boolean;
661
+ previousSha256: string;
662
+ format?: "text" | "json" | "jsonc" | "yaml" | "toml" | undefined;
663
+ backupId?: string | undefined;
664
+ }>;
665
+ export type MaintenanceConfigEditParams = z.infer<typeof MaintenanceConfigEditParams>;
666
+ export type MaintenanceConfigEditResult = z.infer<typeof MaintenanceConfigEditResult>;
667
+ export declare const MaintenanceRollbackParams: z.ZodObject<{
668
+ backupId: z.ZodString;
669
+ /** Current config hash, preventing a stale rollback from clobbering later edits. */
670
+ expectedCurrentSha256: z.ZodString;
671
+ reason: z.ZodOptional<z.ZodString>;
672
+ clientRequestId: z.ZodOptional<z.ZodString>;
673
+ }, "strict", z.ZodTypeAny, {
674
+ backupId: string;
675
+ expectedCurrentSha256: string;
676
+ clientRequestId?: string | undefined;
677
+ reason?: string | undefined;
678
+ }, {
679
+ backupId: string;
680
+ expectedCurrentSha256: string;
681
+ clientRequestId?: string | undefined;
682
+ reason?: string | undefined;
683
+ }>;
684
+ export declare const MaintenanceRollbackResult: z.ZodObject<{
685
+ backupId: z.ZodString;
686
+ targetId: z.ZodString;
687
+ configId: z.ZodString;
688
+ restored: z.ZodLiteral<true>;
689
+ sha256: z.ZodString;
690
+ /** Backup of the state replaced by rollback, allowing an immediate roll-forward. */
691
+ reversibleBackupId: z.ZodOptional<z.ZodString>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ sha256: string;
694
+ configId: string;
695
+ targetId: string;
696
+ backupId: string;
697
+ restored: true;
698
+ reversibleBackupId?: string | undefined;
699
+ }, {
700
+ sha256: string;
701
+ configId: string;
702
+ targetId: string;
703
+ backupId: string;
704
+ restored: true;
705
+ reversibleBackupId?: string | undefined;
706
+ }>;
707
+ export declare const MaintenancePackageUpdateParams: z.ZodObject<{
708
+ targetId: z.ZodString;
709
+ version: z.ZodOptional<z.ZodString>;
710
+ clientRequestId: z.ZodOptional<z.ZodString>;
711
+ }, "strict", z.ZodTypeAny, {
712
+ targetId: string;
713
+ version?: string | undefined;
714
+ clientRequestId?: string | undefined;
715
+ }, {
716
+ targetId: string;
717
+ version?: string | undefined;
718
+ clientRequestId?: string | undefined;
719
+ }>;
720
+ export declare const MaintenancePackageUpdateResult: z.ZodObject<{
721
+ targetId: z.ZodString;
722
+ manager: z.ZodEnum<["npm", "pnpm"]>;
723
+ packageName: z.ZodString;
724
+ requestedVersion: z.ZodString;
725
+ exitCode: z.ZodNumber;
726
+ stdout: z.ZodString;
727
+ stderr: z.ZodString;
728
+ versionAfter: z.ZodOptional<z.ZodString>;
729
+ }, "strip", z.ZodTypeAny, {
730
+ exitCode: number;
731
+ stdout: string;
732
+ stderr: string;
733
+ targetId: string;
734
+ manager: "npm" | "pnpm";
735
+ packageName: string;
736
+ requestedVersion: string;
737
+ versionAfter?: string | undefined;
738
+ }, {
739
+ exitCode: number;
740
+ stdout: string;
741
+ stderr: string;
742
+ targetId: string;
743
+ manager: "npm" | "pnpm";
744
+ packageName: string;
745
+ requestedVersion: string;
746
+ versionAfter?: string | undefined;
747
+ }>;
748
+ export declare const MaintenanceServiceStatusParams: z.ZodObject<{
749
+ targetId: z.ZodString;
750
+ serviceId: z.ZodString;
751
+ }, "strict", z.ZodTypeAny, {
752
+ serviceId: string;
753
+ targetId: string;
754
+ }, {
755
+ serviceId: string;
756
+ targetId: string;
757
+ }>;
758
+ export declare const MaintenanceServiceStatusResult: z.ZodObject<{
759
+ targetId: z.ZodString;
760
+ serviceId: z.ZodString;
761
+ status: z.ZodEnum<["running", "stopped", "unknown", "not_configured"]>;
762
+ detail: z.ZodOptional<z.ZodString>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ status: "unknown" | "running" | "stopped" | "not_configured";
765
+ serviceId: string;
766
+ targetId: string;
767
+ detail?: string | undefined;
768
+ }, {
769
+ status: "unknown" | "running" | "stopped" | "not_configured";
770
+ serviceId: string;
771
+ targetId: string;
772
+ detail?: string | undefined;
773
+ }>;
774
+ export declare const MaintenanceServiceRestartParams: z.ZodObject<{
775
+ targetId: z.ZodString;
776
+ serviceId: z.ZodString;
777
+ clientRequestId: z.ZodOptional<z.ZodString>;
778
+ }, "strict", z.ZodTypeAny, {
779
+ serviceId: string;
780
+ targetId: string;
781
+ clientRequestId?: string | undefined;
782
+ }, {
783
+ serviceId: string;
784
+ targetId: string;
785
+ clientRequestId?: string | undefined;
786
+ }>;
787
+ export declare const MaintenanceServiceRestartResult: z.ZodObject<{
788
+ targetId: z.ZodString;
789
+ serviceId: z.ZodString;
790
+ restarted: z.ZodBoolean;
791
+ status: z.ZodEnum<["running", "stopped", "unknown", "not_configured"]>;
792
+ detail: z.ZodOptional<z.ZodString>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ status: "unknown" | "running" | "stopped" | "not_configured";
795
+ serviceId: string;
796
+ targetId: string;
797
+ restarted: boolean;
798
+ detail?: string | undefined;
799
+ }, {
800
+ status: "unknown" | "running" | "stopped" | "not_configured";
801
+ serviceId: string;
802
+ targetId: string;
803
+ restarted: boolean;
804
+ detail?: string | undefined;
805
+ }>;
806
+ export type MaintenanceTargetsParams = z.infer<typeof MaintenanceTargetsParams>;
807
+ export type MaintenanceTargetsResult = z.infer<typeof MaintenanceTargetsResult>;
808
+ export type MaintenanceDiagnoseParams = z.infer<typeof MaintenanceDiagnoseParams>;
809
+ export type MaintenanceDiagnoseResult = z.infer<typeof MaintenanceDiagnoseResult>;
810
+ export type MaintenanceConfigGetParams = z.infer<typeof MaintenanceConfigGetParams>;
811
+ export type MaintenanceConfigGetResult = z.infer<typeof MaintenanceConfigGetResult>;
812
+ export type MaintenanceConfigPatchParams = z.infer<typeof MaintenanceConfigPatchParams>;
813
+ export type MaintenanceConfigPatchResult = z.infer<typeof MaintenanceConfigPatchResult>;
814
+ export type MaintenanceRollbackParams = z.infer<typeof MaintenanceRollbackParams>;
815
+ export type MaintenanceRollbackResult = z.infer<typeof MaintenanceRollbackResult>;
816
+ export type MaintenancePackageUpdateParams = z.infer<typeof MaintenancePackageUpdateParams>;
817
+ export type MaintenancePackageUpdateResult = z.infer<typeof MaintenancePackageUpdateResult>;
818
+ export type MaintenanceServiceStatusParams = z.infer<typeof MaintenanceServiceStatusParams>;
819
+ export type MaintenanceServiceStatusResult = z.infer<typeof MaintenanceServiceStatusResult>;
820
+ export type MaintenanceServiceRestartParams = z.infer<typeof MaintenanceServiceRestartParams>;
821
+ export type MaintenanceServiceRestartResult = z.infer<typeof MaintenanceServiceRestartResult>;
822
+ //# sourceMappingURL=maintenance.d.ts.map