@xtrape/capsule-contracts-node 0.1.0-public-review.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2741 @@
1
+ import { z } from 'zod';
2
+ export { z } from 'zod';
3
+
4
+ declare const AgentStatus: readonly ["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"];
5
+ type AgentStatus = typeof AgentStatus[number];
6
+ declare const CapsuleServiceStatus: readonly ["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"];
7
+ type CapsuleServiceStatus = typeof CapsuleServiceStatus[number];
8
+ declare const HealthStatus: readonly ["UP", "DEGRADED", "DOWN", "UNKNOWN"];
9
+ type HealthStatus = typeof HealthStatus[number];
10
+ declare const CommandStatus: readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"];
11
+ type CommandStatus = typeof CommandStatus[number];
12
+ declare const DangerLevel: readonly ["LOW", "MEDIUM", "HIGH"];
13
+ type DangerLevel = typeof DangerLevel[number];
14
+ declare const AuditActorType: readonly ["USER", "AGENT", "SYSTEM"];
15
+ type AuditActorType = typeof AuditActorType[number];
16
+ declare const AuditResult: readonly ["SUCCESS", "FAILURE"];
17
+ type AuditResult = typeof AuditResult[number];
18
+ declare const TokenStatus: readonly ["ACTIVE", "REVOKED", "EXPIRED", "USED"];
19
+ type TokenStatus = typeof TokenStatus[number];
20
+ declare const ErrorCode: {
21
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
22
+ readonly VALIDATION_FAILED: "VALIDATION_FAILED";
23
+ readonly UNAUTHORIZED: "UNAUTHORIZED";
24
+ readonly FORBIDDEN: "FORBIDDEN";
25
+ readonly NOT_FOUND: "NOT_FOUND";
26
+ readonly CONFLICT: "CONFLICT";
27
+ readonly CSRF_INVALID: "CSRF_INVALID";
28
+ readonly ACTION_REQUIRES_CONFIRMATION: "ACTION_REQUIRES_CONFIRMATION";
29
+ readonly COMMAND_EXPIRED: "COMMAND_EXPIRED";
30
+ readonly TOKEN_REVOKED: "TOKEN_REVOKED";
31
+ readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
32
+ readonly AGENT_REVOKED: "AGENT_REVOKED";
33
+ readonly AGENT_DISABLED: "AGENT_DISABLED";
34
+ };
35
+ type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
36
+ declare const idPrefixes: readonly ["wks_", "usr_", "agt_", "tok_", "svc_", "hlr_", "cfg_", "act_", "cmd_", "crs_", "aud_"];
37
+ type IdPrefix = typeof idPrefixes[number];
38
+
39
+ declare function newId<P extends IdPrefix>(prefix: P): `${P}${string}`;
40
+ declare const AnyJson: z.ZodRecord<z.ZodString, z.ZodAny>;
41
+ declare const AgentStatusSchema: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
42
+ declare const CapsuleServiceStatusSchema: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
43
+ declare const HealthStatusSchema: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
44
+ declare const CommandStatusSchema: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
45
+ declare const DangerLevelSchema: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>;
46
+ declare const UserSchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ username: z.ZodString;
49
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ createdAt: z.ZodString;
51
+ updatedAt: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ id: string;
54
+ username: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ displayName?: string | null | undefined;
58
+ }, {
59
+ id: string;
60
+ username: string;
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ displayName?: string | null | undefined;
64
+ }>;
65
+ type User = z.infer<typeof UserSchema>;
66
+ declare const UserRole: z.ZodEnum<["owner", "operator", "viewer"]>;
67
+ type UserRole = z.infer<typeof UserRole>;
68
+ declare const createUserRequestSchema: z.ZodObject<{
69
+ username: z.ZodString;
70
+ password: z.ZodString;
71
+ displayName: z.ZodOptional<z.ZodString>;
72
+ role: z.ZodDefault<z.ZodEnum<["owner", "operator", "viewer"]>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ username: string;
75
+ password: string;
76
+ role: "owner" | "operator" | "viewer";
77
+ displayName?: string | undefined;
78
+ }, {
79
+ username: string;
80
+ password: string;
81
+ displayName?: string | undefined;
82
+ role?: "owner" | "operator" | "viewer" | undefined;
83
+ }>;
84
+ type CreateUserRequest = z.infer<typeof createUserRequestSchema>;
85
+ declare const updateUserRequestSchema: z.ZodObject<{
86
+ displayName: z.ZodOptional<z.ZodString>;
87
+ role: z.ZodOptional<z.ZodEnum<["owner", "operator", "viewer"]>>;
88
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "DISABLED"]>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ displayName?: string | undefined;
91
+ status?: "DISABLED" | "ACTIVE" | undefined;
92
+ role?: "owner" | "operator" | "viewer" | undefined;
93
+ }, {
94
+ displayName?: string | undefined;
95
+ status?: "DISABLED" | "ACTIVE" | undefined;
96
+ role?: "owner" | "operator" | "viewer" | undefined;
97
+ }>;
98
+ type UpdateUserRequest = z.infer<typeof updateUserRequestSchema>;
99
+ declare const resetUserPasswordRequestSchema: z.ZodObject<{
100
+ password: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ password: string;
103
+ }, {
104
+ password: string;
105
+ }>;
106
+ type ResetUserPasswordRequest = z.infer<typeof resetUserPasswordRequestSchema>;
107
+ declare const AdminLoginRequestSchema: z.ZodObject<{
108
+ username: z.ZodString;
109
+ password: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ username: string;
112
+ password: string;
113
+ }, {
114
+ username: string;
115
+ password: string;
116
+ }>;
117
+ type AdminLoginRequest = z.infer<typeof AdminLoginRequestSchema>;
118
+ declare const adminLoginRequestSchema: z.ZodObject<{
119
+ username: z.ZodString;
120
+ password: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ username: string;
123
+ password: string;
124
+ }, {
125
+ username: string;
126
+ password: string;
127
+ }>;
128
+ declare const AdminSessionSchema: z.ZodObject<{
129
+ user: z.ZodObject<{
130
+ id: z.ZodString;
131
+ username: z.ZodString;
132
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ createdAt: z.ZodString;
134
+ updatedAt: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id: string;
137
+ username: string;
138
+ createdAt: string;
139
+ updatedAt: string;
140
+ displayName?: string | null | undefined;
141
+ }, {
142
+ id: string;
143
+ username: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
+ displayName?: string | null | undefined;
147
+ }>;
148
+ csrfToken: z.ZodString;
149
+ expiresAt: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ user: {
152
+ id: string;
153
+ username: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ displayName?: string | null | undefined;
157
+ };
158
+ csrfToken: string;
159
+ expiresAt: string;
160
+ }, {
161
+ user: {
162
+ id: string;
163
+ username: string;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ displayName?: string | null | undefined;
167
+ };
168
+ csrfToken: string;
169
+ expiresAt: string;
170
+ }>;
171
+ type AdminSession = z.infer<typeof AdminSessionSchema>;
172
+ declare const AgentSchema: z.ZodObject<{
173
+ id: z.ZodString;
174
+ code: z.ZodString;
175
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ mode: z.ZodEnum<["embedded", "sidecar", "external"]>;
177
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ status: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
179
+ lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ createdAt: z.ZodString;
181
+ updatedAt: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ code: string;
184
+ id: string;
185
+ createdAt: string;
186
+ updatedAt: string;
187
+ status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
188
+ mode: "embedded" | "sidecar" | "external";
189
+ name?: string | null | undefined;
190
+ runtime?: string | null | undefined;
191
+ lastHeartbeatAt?: string | null | undefined;
192
+ }, {
193
+ code: string;
194
+ id: string;
195
+ createdAt: string;
196
+ updatedAt: string;
197
+ status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
198
+ mode: "embedded" | "sidecar" | "external";
199
+ name?: string | null | undefined;
200
+ runtime?: string | null | undefined;
201
+ lastHeartbeatAt?: string | null | undefined;
202
+ }>;
203
+ type Agent = z.infer<typeof AgentSchema>;
204
+ declare const RegistrationTokenSchema: z.ZodObject<{
205
+ id: z.ZodString;
206
+ name: z.ZodString;
207
+ status: z.ZodEnum<["ACTIVE", "REVOKED", "EXPIRED", "USED"]>;
208
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ usedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ createdAt: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ id: string;
213
+ createdAt: string;
214
+ status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
215
+ name: string;
216
+ expiresAt?: string | null | undefined;
217
+ usedAt?: string | null | undefined;
218
+ }, {
219
+ id: string;
220
+ createdAt: string;
221
+ status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
222
+ name: string;
223
+ expiresAt?: string | null | undefined;
224
+ usedAt?: string | null | undefined;
225
+ }>;
226
+ type RegistrationToken = z.infer<typeof RegistrationTokenSchema>;
227
+ declare const CreateRegistrationTokenRequestSchema: z.ZodObject<{
228
+ name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
229
+ expiresInSeconds: z.ZodOptional<z.ZodNumber>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ name?: string | undefined;
232
+ expiresInSeconds?: number | undefined;
233
+ }, {
234
+ name?: string | undefined;
235
+ expiresInSeconds?: number | undefined;
236
+ }>;
237
+ type CreateRegistrationTokenRequest = z.infer<typeof CreateRegistrationTokenRequestSchema>;
238
+ declare const createRegistrationTokenRequestSchema: z.ZodObject<{
239
+ name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
240
+ expiresInSeconds: z.ZodOptional<z.ZodNumber>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ name?: string | undefined;
243
+ expiresInSeconds?: number | undefined;
244
+ }, {
245
+ name?: string | undefined;
246
+ expiresInSeconds?: number | undefined;
247
+ }>;
248
+ declare const CreateRegistrationTokenResponseSchema: z.ZodObject<{
249
+ id: z.ZodString;
250
+ name: z.ZodString;
251
+ status: z.ZodEnum<["ACTIVE", "REVOKED", "EXPIRED", "USED"]>;
252
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ usedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ createdAt: z.ZodString;
255
+ } & {
256
+ rawToken: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ id: string;
259
+ createdAt: string;
260
+ status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
261
+ name: string;
262
+ rawToken: string;
263
+ expiresAt?: string | null | undefined;
264
+ usedAt?: string | null | undefined;
265
+ }, {
266
+ id: string;
267
+ createdAt: string;
268
+ status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
269
+ name: string;
270
+ rawToken: string;
271
+ expiresAt?: string | null | undefined;
272
+ usedAt?: string | null | undefined;
273
+ }>;
274
+ type CreateRegistrationTokenResponse = z.infer<typeof CreateRegistrationTokenResponseSchema>;
275
+ declare const CapsuleManifestSchema: z.ZodObject<{
276
+ kind: z.ZodLiteral<"CapsuleService">;
277
+ schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
278
+ code: z.ZodString;
279
+ name: z.ZodString;
280
+ description: z.ZodOptional<z.ZodString>;
281
+ version: z.ZodString;
282
+ runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
283
+ agentMode: z.ZodEnum<["embedded", "sidecar", "external"]>;
284
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
285
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
286
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
287
+ kind: z.ZodLiteral<"CapsuleService">;
288
+ schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
289
+ code: z.ZodString;
290
+ name: z.ZodString;
291
+ description: z.ZodOptional<z.ZodString>;
292
+ version: z.ZodString;
293
+ runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
294
+ agentMode: z.ZodEnum<["embedded", "sidecar", "external"]>;
295
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
296
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
297
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
298
+ kind: z.ZodLiteral<"CapsuleService">;
299
+ schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
300
+ code: z.ZodString;
301
+ name: z.ZodString;
302
+ description: z.ZodOptional<z.ZodString>;
303
+ version: z.ZodString;
304
+ runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
305
+ agentMode: z.ZodEnum<["embedded", "sidecar", "external"]>;
306
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
+ }, z.ZodTypeAny, "passthrough">>;
309
+ type CapsuleManifest = z.infer<typeof CapsuleManifestSchema>;
310
+ declare const HealthReportInputSchema: z.ZodObject<{
311
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
312
+ message: z.ZodOptional<z.ZodString>;
313
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
316
+ message?: string | undefined;
317
+ details?: Record<string, any> | undefined;
318
+ }, {
319
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
320
+ message?: string | undefined;
321
+ details?: Record<string, any> | undefined;
322
+ }>;
323
+ type HealthReportInput = z.infer<typeof HealthReportInputSchema>;
324
+ declare const healthReportInputSchema: z.ZodObject<{
325
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
326
+ message: z.ZodOptional<z.ZodString>;
327
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
330
+ message?: string | undefined;
331
+ details?: Record<string, any> | undefined;
332
+ }, {
333
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
334
+ message?: string | undefined;
335
+ details?: Record<string, any> | undefined;
336
+ }>;
337
+ declare const ConfigItemInputSchema: z.ZodObject<{
338
+ key: z.ZodString;
339
+ label: z.ZodOptional<z.ZodString>;
340
+ type: z.ZodString;
341
+ source: z.ZodOptional<z.ZodString>;
342
+ editable: z.ZodOptional<z.ZodBoolean>;
343
+ sensitive: z.ZodOptional<z.ZodBoolean>;
344
+ valuePreview: z.ZodOptional<z.ZodString>;
345
+ defaultValue: z.ZodOptional<z.ZodString>;
346
+ secretRef: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: string;
349
+ key: string;
350
+ label?: string | undefined;
351
+ source?: string | undefined;
352
+ editable?: boolean | undefined;
353
+ sensitive?: boolean | undefined;
354
+ valuePreview?: string | undefined;
355
+ defaultValue?: string | undefined;
356
+ secretRef?: string | undefined;
357
+ }, {
358
+ type: string;
359
+ key: string;
360
+ label?: string | undefined;
361
+ source?: string | undefined;
362
+ editable?: boolean | undefined;
363
+ sensitive?: boolean | undefined;
364
+ valuePreview?: string | undefined;
365
+ defaultValue?: string | undefined;
366
+ secretRef?: string | undefined;
367
+ }>;
368
+ type ConfigItemInput = z.infer<typeof ConfigItemInputSchema>;
369
+ declare const configItemInputSchema: z.ZodObject<{
370
+ key: z.ZodString;
371
+ label: z.ZodOptional<z.ZodString>;
372
+ type: z.ZodString;
373
+ source: z.ZodOptional<z.ZodString>;
374
+ editable: z.ZodOptional<z.ZodBoolean>;
375
+ sensitive: z.ZodOptional<z.ZodBoolean>;
376
+ valuePreview: z.ZodOptional<z.ZodString>;
377
+ defaultValue: z.ZodOptional<z.ZodString>;
378
+ secretRef: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ type: string;
381
+ key: string;
382
+ label?: string | undefined;
383
+ source?: string | undefined;
384
+ editable?: boolean | undefined;
385
+ sensitive?: boolean | undefined;
386
+ valuePreview?: string | undefined;
387
+ defaultValue?: string | undefined;
388
+ secretRef?: string | undefined;
389
+ }, {
390
+ type: string;
391
+ key: string;
392
+ label?: string | undefined;
393
+ source?: string | undefined;
394
+ editable?: boolean | undefined;
395
+ sensitive?: boolean | undefined;
396
+ valuePreview?: string | undefined;
397
+ defaultValue?: string | undefined;
398
+ secretRef?: string | undefined;
399
+ }>;
400
+ declare const ActionDefinitionInputSchema: z.ZodObject<{
401
+ name: z.ZodString;
402
+ label: z.ZodString;
403
+ description: z.ZodOptional<z.ZodString>;
404
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
405
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
406
+ category: z.ZodOptional<z.ZodString>;
407
+ order: z.ZodOptional<z.ZodNumber>;
408
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
409
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
410
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ name: string;
413
+ label: string;
414
+ description?: string | undefined;
415
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
416
+ requiresConfirmation?: boolean | undefined;
417
+ category?: string | undefined;
418
+ order?: number | undefined;
419
+ inputSchema?: Record<string, any> | undefined;
420
+ outputSchema?: Record<string, any> | undefined;
421
+ timeoutSeconds?: number | undefined;
422
+ }, {
423
+ name: string;
424
+ label: string;
425
+ description?: string | undefined;
426
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
427
+ requiresConfirmation?: boolean | undefined;
428
+ category?: string | undefined;
429
+ order?: number | undefined;
430
+ inputSchema?: Record<string, any> | undefined;
431
+ outputSchema?: Record<string, any> | undefined;
432
+ timeoutSeconds?: number | undefined;
433
+ }>;
434
+ type ActionDefinitionInput = z.infer<typeof ActionDefinitionInputSchema>;
435
+ declare const actionDefinitionInputSchema: z.ZodObject<{
436
+ name: z.ZodString;
437
+ label: z.ZodString;
438
+ description: z.ZodOptional<z.ZodString>;
439
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
440
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
441
+ category: z.ZodOptional<z.ZodString>;
442
+ order: z.ZodOptional<z.ZodNumber>;
443
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
444
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
445
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ name: string;
448
+ label: string;
449
+ description?: string | undefined;
450
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
451
+ requiresConfirmation?: boolean | undefined;
452
+ category?: string | undefined;
453
+ order?: number | undefined;
454
+ inputSchema?: Record<string, any> | undefined;
455
+ outputSchema?: Record<string, any> | undefined;
456
+ timeoutSeconds?: number | undefined;
457
+ }, {
458
+ name: string;
459
+ label: string;
460
+ description?: string | undefined;
461
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
462
+ requiresConfirmation?: boolean | undefined;
463
+ category?: string | undefined;
464
+ order?: number | undefined;
465
+ inputSchema?: Record<string, any> | undefined;
466
+ outputSchema?: Record<string, any> | undefined;
467
+ timeoutSeconds?: number | undefined;
468
+ }>;
469
+ declare const ReportedServiceSchema: z.ZodObject<{
470
+ code: z.ZodString;
471
+ name: z.ZodString;
472
+ description: z.ZodOptional<z.ZodString>;
473
+ version: z.ZodOptional<z.ZodString>;
474
+ runtime: z.ZodOptional<z.ZodString>;
475
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
476
+ health: z.ZodOptional<z.ZodObject<{
477
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
478
+ message: z.ZodOptional<z.ZodString>;
479
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
482
+ message?: string | undefined;
483
+ details?: Record<string, any> | undefined;
484
+ }, {
485
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
486
+ message?: string | undefined;
487
+ details?: Record<string, any> | undefined;
488
+ }>>;
489
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
+ key: z.ZodString;
491
+ label: z.ZodOptional<z.ZodString>;
492
+ type: z.ZodString;
493
+ source: z.ZodOptional<z.ZodString>;
494
+ editable: z.ZodOptional<z.ZodBoolean>;
495
+ sensitive: z.ZodOptional<z.ZodBoolean>;
496
+ valuePreview: z.ZodOptional<z.ZodString>;
497
+ defaultValue: z.ZodOptional<z.ZodString>;
498
+ secretRef: z.ZodOptional<z.ZodString>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: string;
501
+ key: string;
502
+ label?: string | undefined;
503
+ source?: string | undefined;
504
+ editable?: boolean | undefined;
505
+ sensitive?: boolean | undefined;
506
+ valuePreview?: string | undefined;
507
+ defaultValue?: string | undefined;
508
+ secretRef?: string | undefined;
509
+ }, {
510
+ type: string;
511
+ key: string;
512
+ label?: string | undefined;
513
+ source?: string | undefined;
514
+ editable?: boolean | undefined;
515
+ sensitive?: boolean | undefined;
516
+ valuePreview?: string | undefined;
517
+ defaultValue?: string | undefined;
518
+ secretRef?: string | undefined;
519
+ }>, "many">>;
520
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
+ name: z.ZodString;
522
+ label: z.ZodString;
523
+ description: z.ZodOptional<z.ZodString>;
524
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
525
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
526
+ category: z.ZodOptional<z.ZodString>;
527
+ order: z.ZodOptional<z.ZodNumber>;
528
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
529
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
530
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ name: string;
533
+ label: string;
534
+ description?: string | undefined;
535
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
536
+ requiresConfirmation?: boolean | undefined;
537
+ category?: string | undefined;
538
+ order?: number | undefined;
539
+ inputSchema?: Record<string, any> | undefined;
540
+ outputSchema?: Record<string, any> | undefined;
541
+ timeoutSeconds?: number | undefined;
542
+ }, {
543
+ name: string;
544
+ label: string;
545
+ description?: string | undefined;
546
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
547
+ requiresConfirmation?: boolean | undefined;
548
+ category?: string | undefined;
549
+ order?: number | undefined;
550
+ inputSchema?: Record<string, any> | undefined;
551
+ outputSchema?: Record<string, any> | undefined;
552
+ timeoutSeconds?: number | undefined;
553
+ }>, "many">>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ code: string;
556
+ name: string;
557
+ manifest: Record<string, any>;
558
+ runtime?: string | undefined;
559
+ description?: string | undefined;
560
+ version?: string | undefined;
561
+ health?: {
562
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
563
+ message?: string | undefined;
564
+ details?: Record<string, any> | undefined;
565
+ } | undefined;
566
+ configs?: {
567
+ type: string;
568
+ key: string;
569
+ label?: string | undefined;
570
+ source?: string | undefined;
571
+ editable?: boolean | undefined;
572
+ sensitive?: boolean | undefined;
573
+ valuePreview?: string | undefined;
574
+ defaultValue?: string | undefined;
575
+ secretRef?: string | undefined;
576
+ }[] | undefined;
577
+ actions?: {
578
+ name: string;
579
+ label: string;
580
+ description?: string | undefined;
581
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
582
+ requiresConfirmation?: boolean | undefined;
583
+ category?: string | undefined;
584
+ order?: number | undefined;
585
+ inputSchema?: Record<string, any> | undefined;
586
+ outputSchema?: Record<string, any> | undefined;
587
+ timeoutSeconds?: number | undefined;
588
+ }[] | undefined;
589
+ }, {
590
+ code: string;
591
+ name: string;
592
+ manifest: Record<string, any>;
593
+ runtime?: string | undefined;
594
+ description?: string | undefined;
595
+ version?: string | undefined;
596
+ health?: {
597
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
598
+ message?: string | undefined;
599
+ details?: Record<string, any> | undefined;
600
+ } | undefined;
601
+ configs?: {
602
+ type: string;
603
+ key: string;
604
+ label?: string | undefined;
605
+ source?: string | undefined;
606
+ editable?: boolean | undefined;
607
+ sensitive?: boolean | undefined;
608
+ valuePreview?: string | undefined;
609
+ defaultValue?: string | undefined;
610
+ secretRef?: string | undefined;
611
+ }[] | undefined;
612
+ actions?: {
613
+ name: string;
614
+ label: string;
615
+ description?: string | undefined;
616
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
617
+ requiresConfirmation?: boolean | undefined;
618
+ category?: string | undefined;
619
+ order?: number | undefined;
620
+ inputSchema?: Record<string, any> | undefined;
621
+ outputSchema?: Record<string, any> | undefined;
622
+ timeoutSeconds?: number | undefined;
623
+ }[] | undefined;
624
+ }>;
625
+ type ReportedService = z.infer<typeof ReportedServiceSchema>;
626
+ declare const reportedServiceSchema: z.ZodObject<{
627
+ code: z.ZodString;
628
+ name: z.ZodString;
629
+ description: z.ZodOptional<z.ZodString>;
630
+ version: z.ZodOptional<z.ZodString>;
631
+ runtime: z.ZodOptional<z.ZodString>;
632
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
633
+ health: z.ZodOptional<z.ZodObject<{
634
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
635
+ message: z.ZodOptional<z.ZodString>;
636
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
639
+ message?: string | undefined;
640
+ details?: Record<string, any> | undefined;
641
+ }, {
642
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
643
+ message?: string | undefined;
644
+ details?: Record<string, any> | undefined;
645
+ }>>;
646
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
647
+ key: z.ZodString;
648
+ label: z.ZodOptional<z.ZodString>;
649
+ type: z.ZodString;
650
+ source: z.ZodOptional<z.ZodString>;
651
+ editable: z.ZodOptional<z.ZodBoolean>;
652
+ sensitive: z.ZodOptional<z.ZodBoolean>;
653
+ valuePreview: z.ZodOptional<z.ZodString>;
654
+ defaultValue: z.ZodOptional<z.ZodString>;
655
+ secretRef: z.ZodOptional<z.ZodString>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ type: string;
658
+ key: string;
659
+ label?: string | undefined;
660
+ source?: string | undefined;
661
+ editable?: boolean | undefined;
662
+ sensitive?: boolean | undefined;
663
+ valuePreview?: string | undefined;
664
+ defaultValue?: string | undefined;
665
+ secretRef?: string | undefined;
666
+ }, {
667
+ type: string;
668
+ key: string;
669
+ label?: string | undefined;
670
+ source?: string | undefined;
671
+ editable?: boolean | undefined;
672
+ sensitive?: boolean | undefined;
673
+ valuePreview?: string | undefined;
674
+ defaultValue?: string | undefined;
675
+ secretRef?: string | undefined;
676
+ }>, "many">>;
677
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
678
+ name: z.ZodString;
679
+ label: z.ZodString;
680
+ description: z.ZodOptional<z.ZodString>;
681
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
682
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
683
+ category: z.ZodOptional<z.ZodString>;
684
+ order: z.ZodOptional<z.ZodNumber>;
685
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
686
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
687
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ name: string;
690
+ label: string;
691
+ description?: string | undefined;
692
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
693
+ requiresConfirmation?: boolean | undefined;
694
+ category?: string | undefined;
695
+ order?: number | undefined;
696
+ inputSchema?: Record<string, any> | undefined;
697
+ outputSchema?: Record<string, any> | undefined;
698
+ timeoutSeconds?: number | undefined;
699
+ }, {
700
+ name: string;
701
+ label: string;
702
+ description?: string | undefined;
703
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
704
+ requiresConfirmation?: boolean | undefined;
705
+ category?: string | undefined;
706
+ order?: number | undefined;
707
+ inputSchema?: Record<string, any> | undefined;
708
+ outputSchema?: Record<string, any> | undefined;
709
+ timeoutSeconds?: number | undefined;
710
+ }>, "many">>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ code: string;
713
+ name: string;
714
+ manifest: Record<string, any>;
715
+ runtime?: string | undefined;
716
+ description?: string | undefined;
717
+ version?: string | undefined;
718
+ health?: {
719
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
720
+ message?: string | undefined;
721
+ details?: Record<string, any> | undefined;
722
+ } | undefined;
723
+ configs?: {
724
+ type: string;
725
+ key: string;
726
+ label?: string | undefined;
727
+ source?: string | undefined;
728
+ editable?: boolean | undefined;
729
+ sensitive?: boolean | undefined;
730
+ valuePreview?: string | undefined;
731
+ defaultValue?: string | undefined;
732
+ secretRef?: string | undefined;
733
+ }[] | undefined;
734
+ actions?: {
735
+ name: string;
736
+ label: string;
737
+ description?: string | undefined;
738
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
739
+ requiresConfirmation?: boolean | undefined;
740
+ category?: string | undefined;
741
+ order?: number | undefined;
742
+ inputSchema?: Record<string, any> | undefined;
743
+ outputSchema?: Record<string, any> | undefined;
744
+ timeoutSeconds?: number | undefined;
745
+ }[] | undefined;
746
+ }, {
747
+ code: string;
748
+ name: string;
749
+ manifest: Record<string, any>;
750
+ runtime?: string | undefined;
751
+ description?: string | undefined;
752
+ version?: string | undefined;
753
+ health?: {
754
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
755
+ message?: string | undefined;
756
+ details?: Record<string, any> | undefined;
757
+ } | undefined;
758
+ configs?: {
759
+ type: string;
760
+ key: string;
761
+ label?: string | undefined;
762
+ source?: string | undefined;
763
+ editable?: boolean | undefined;
764
+ sensitive?: boolean | undefined;
765
+ valuePreview?: string | undefined;
766
+ defaultValue?: string | undefined;
767
+ secretRef?: string | undefined;
768
+ }[] | undefined;
769
+ actions?: {
770
+ name: string;
771
+ label: string;
772
+ description?: string | undefined;
773
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
774
+ requiresConfirmation?: boolean | undefined;
775
+ category?: string | undefined;
776
+ order?: number | undefined;
777
+ inputSchema?: Record<string, any> | undefined;
778
+ outputSchema?: Record<string, any> | undefined;
779
+ timeoutSeconds?: number | undefined;
780
+ }[] | undefined;
781
+ }>;
782
+ declare const ServiceReportRequestSchema: z.ZodObject<{
783
+ services: z.ZodArray<z.ZodObject<{
784
+ code: z.ZodString;
785
+ name: z.ZodString;
786
+ description: z.ZodOptional<z.ZodString>;
787
+ version: z.ZodOptional<z.ZodString>;
788
+ runtime: z.ZodOptional<z.ZodString>;
789
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
790
+ health: z.ZodOptional<z.ZodObject<{
791
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
792
+ message: z.ZodOptional<z.ZodString>;
793
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
796
+ message?: string | undefined;
797
+ details?: Record<string, any> | undefined;
798
+ }, {
799
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
800
+ message?: string | undefined;
801
+ details?: Record<string, any> | undefined;
802
+ }>>;
803
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
+ key: z.ZodString;
805
+ label: z.ZodOptional<z.ZodString>;
806
+ type: z.ZodString;
807
+ source: z.ZodOptional<z.ZodString>;
808
+ editable: z.ZodOptional<z.ZodBoolean>;
809
+ sensitive: z.ZodOptional<z.ZodBoolean>;
810
+ valuePreview: z.ZodOptional<z.ZodString>;
811
+ defaultValue: z.ZodOptional<z.ZodString>;
812
+ secretRef: z.ZodOptional<z.ZodString>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ type: string;
815
+ key: string;
816
+ label?: string | undefined;
817
+ source?: string | undefined;
818
+ editable?: boolean | undefined;
819
+ sensitive?: boolean | undefined;
820
+ valuePreview?: string | undefined;
821
+ defaultValue?: string | undefined;
822
+ secretRef?: string | undefined;
823
+ }, {
824
+ type: string;
825
+ key: string;
826
+ label?: string | undefined;
827
+ source?: string | undefined;
828
+ editable?: boolean | undefined;
829
+ sensitive?: boolean | undefined;
830
+ valuePreview?: string | undefined;
831
+ defaultValue?: string | undefined;
832
+ secretRef?: string | undefined;
833
+ }>, "many">>;
834
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ name: z.ZodString;
836
+ label: z.ZodString;
837
+ description: z.ZodOptional<z.ZodString>;
838
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
839
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
840
+ category: z.ZodOptional<z.ZodString>;
841
+ order: z.ZodOptional<z.ZodNumber>;
842
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
843
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
844
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ name: string;
847
+ label: string;
848
+ description?: string | undefined;
849
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
850
+ requiresConfirmation?: boolean | undefined;
851
+ category?: string | undefined;
852
+ order?: number | undefined;
853
+ inputSchema?: Record<string, any> | undefined;
854
+ outputSchema?: Record<string, any> | undefined;
855
+ timeoutSeconds?: number | undefined;
856
+ }, {
857
+ name: string;
858
+ label: string;
859
+ description?: string | undefined;
860
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
861
+ requiresConfirmation?: boolean | undefined;
862
+ category?: string | undefined;
863
+ order?: number | undefined;
864
+ inputSchema?: Record<string, any> | undefined;
865
+ outputSchema?: Record<string, any> | undefined;
866
+ timeoutSeconds?: number | undefined;
867
+ }>, "many">>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ code: string;
870
+ name: string;
871
+ manifest: Record<string, any>;
872
+ runtime?: string | undefined;
873
+ description?: string | undefined;
874
+ version?: string | undefined;
875
+ health?: {
876
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
877
+ message?: string | undefined;
878
+ details?: Record<string, any> | undefined;
879
+ } | undefined;
880
+ configs?: {
881
+ type: string;
882
+ key: string;
883
+ label?: string | undefined;
884
+ source?: string | undefined;
885
+ editable?: boolean | undefined;
886
+ sensitive?: boolean | undefined;
887
+ valuePreview?: string | undefined;
888
+ defaultValue?: string | undefined;
889
+ secretRef?: string | undefined;
890
+ }[] | undefined;
891
+ actions?: {
892
+ name: string;
893
+ label: string;
894
+ description?: string | undefined;
895
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
896
+ requiresConfirmation?: boolean | undefined;
897
+ category?: string | undefined;
898
+ order?: number | undefined;
899
+ inputSchema?: Record<string, any> | undefined;
900
+ outputSchema?: Record<string, any> | undefined;
901
+ timeoutSeconds?: number | undefined;
902
+ }[] | undefined;
903
+ }, {
904
+ code: string;
905
+ name: string;
906
+ manifest: Record<string, any>;
907
+ runtime?: string | undefined;
908
+ description?: string | undefined;
909
+ version?: string | undefined;
910
+ health?: {
911
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
912
+ message?: string | undefined;
913
+ details?: Record<string, any> | undefined;
914
+ } | undefined;
915
+ configs?: {
916
+ type: string;
917
+ key: string;
918
+ label?: string | undefined;
919
+ source?: string | undefined;
920
+ editable?: boolean | undefined;
921
+ sensitive?: boolean | undefined;
922
+ valuePreview?: string | undefined;
923
+ defaultValue?: string | undefined;
924
+ secretRef?: string | undefined;
925
+ }[] | undefined;
926
+ actions?: {
927
+ name: string;
928
+ label: string;
929
+ description?: string | undefined;
930
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
931
+ requiresConfirmation?: boolean | undefined;
932
+ category?: string | undefined;
933
+ order?: number | undefined;
934
+ inputSchema?: Record<string, any> | undefined;
935
+ outputSchema?: Record<string, any> | undefined;
936
+ timeoutSeconds?: number | undefined;
937
+ }[] | undefined;
938
+ }>, "many">;
939
+ }, "strip", z.ZodTypeAny, {
940
+ services: {
941
+ code: string;
942
+ name: string;
943
+ manifest: Record<string, any>;
944
+ runtime?: string | undefined;
945
+ description?: string | undefined;
946
+ version?: string | undefined;
947
+ health?: {
948
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
949
+ message?: string | undefined;
950
+ details?: Record<string, any> | undefined;
951
+ } | undefined;
952
+ configs?: {
953
+ type: string;
954
+ key: string;
955
+ label?: string | undefined;
956
+ source?: string | undefined;
957
+ editable?: boolean | undefined;
958
+ sensitive?: boolean | undefined;
959
+ valuePreview?: string | undefined;
960
+ defaultValue?: string | undefined;
961
+ secretRef?: string | undefined;
962
+ }[] | undefined;
963
+ actions?: {
964
+ name: string;
965
+ label: string;
966
+ description?: string | undefined;
967
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
968
+ requiresConfirmation?: boolean | undefined;
969
+ category?: string | undefined;
970
+ order?: number | undefined;
971
+ inputSchema?: Record<string, any> | undefined;
972
+ outputSchema?: Record<string, any> | undefined;
973
+ timeoutSeconds?: number | undefined;
974
+ }[] | undefined;
975
+ }[];
976
+ }, {
977
+ services: {
978
+ code: string;
979
+ name: string;
980
+ manifest: Record<string, any>;
981
+ runtime?: string | undefined;
982
+ description?: string | undefined;
983
+ version?: string | undefined;
984
+ health?: {
985
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
986
+ message?: string | undefined;
987
+ details?: Record<string, any> | undefined;
988
+ } | undefined;
989
+ configs?: {
990
+ type: string;
991
+ key: string;
992
+ label?: string | undefined;
993
+ source?: string | undefined;
994
+ editable?: boolean | undefined;
995
+ sensitive?: boolean | undefined;
996
+ valuePreview?: string | undefined;
997
+ defaultValue?: string | undefined;
998
+ secretRef?: string | undefined;
999
+ }[] | undefined;
1000
+ actions?: {
1001
+ name: string;
1002
+ label: string;
1003
+ description?: string | undefined;
1004
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1005
+ requiresConfirmation?: boolean | undefined;
1006
+ category?: string | undefined;
1007
+ order?: number | undefined;
1008
+ inputSchema?: Record<string, any> | undefined;
1009
+ outputSchema?: Record<string, any> | undefined;
1010
+ timeoutSeconds?: number | undefined;
1011
+ }[] | undefined;
1012
+ }[];
1013
+ }>;
1014
+ type ServiceReportRequest = z.infer<typeof ServiceReportRequestSchema>;
1015
+ declare const serviceReportRequestSchema: z.ZodObject<{
1016
+ services: z.ZodArray<z.ZodObject<{
1017
+ code: z.ZodString;
1018
+ name: z.ZodString;
1019
+ description: z.ZodOptional<z.ZodString>;
1020
+ version: z.ZodOptional<z.ZodString>;
1021
+ runtime: z.ZodOptional<z.ZodString>;
1022
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1023
+ health: z.ZodOptional<z.ZodObject<{
1024
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1025
+ message: z.ZodOptional<z.ZodString>;
1026
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1027
+ }, "strip", z.ZodTypeAny, {
1028
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1029
+ message?: string | undefined;
1030
+ details?: Record<string, any> | undefined;
1031
+ }, {
1032
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1033
+ message?: string | undefined;
1034
+ details?: Record<string, any> | undefined;
1035
+ }>>;
1036
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1037
+ key: z.ZodString;
1038
+ label: z.ZodOptional<z.ZodString>;
1039
+ type: z.ZodString;
1040
+ source: z.ZodOptional<z.ZodString>;
1041
+ editable: z.ZodOptional<z.ZodBoolean>;
1042
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1043
+ valuePreview: z.ZodOptional<z.ZodString>;
1044
+ defaultValue: z.ZodOptional<z.ZodString>;
1045
+ secretRef: z.ZodOptional<z.ZodString>;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ type: string;
1048
+ key: string;
1049
+ label?: string | undefined;
1050
+ source?: string | undefined;
1051
+ editable?: boolean | undefined;
1052
+ sensitive?: boolean | undefined;
1053
+ valuePreview?: string | undefined;
1054
+ defaultValue?: string | undefined;
1055
+ secretRef?: string | undefined;
1056
+ }, {
1057
+ type: string;
1058
+ key: string;
1059
+ label?: string | undefined;
1060
+ source?: string | undefined;
1061
+ editable?: boolean | undefined;
1062
+ sensitive?: boolean | undefined;
1063
+ valuePreview?: string | undefined;
1064
+ defaultValue?: string | undefined;
1065
+ secretRef?: string | undefined;
1066
+ }>, "many">>;
1067
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1068
+ name: z.ZodString;
1069
+ label: z.ZodString;
1070
+ description: z.ZodOptional<z.ZodString>;
1071
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1072
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1073
+ category: z.ZodOptional<z.ZodString>;
1074
+ order: z.ZodOptional<z.ZodNumber>;
1075
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1076
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1077
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ name: string;
1080
+ label: string;
1081
+ description?: string | undefined;
1082
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1083
+ requiresConfirmation?: boolean | undefined;
1084
+ category?: string | undefined;
1085
+ order?: number | undefined;
1086
+ inputSchema?: Record<string, any> | undefined;
1087
+ outputSchema?: Record<string, any> | undefined;
1088
+ timeoutSeconds?: number | undefined;
1089
+ }, {
1090
+ name: string;
1091
+ label: string;
1092
+ description?: string | undefined;
1093
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1094
+ requiresConfirmation?: boolean | undefined;
1095
+ category?: string | undefined;
1096
+ order?: number | undefined;
1097
+ inputSchema?: Record<string, any> | undefined;
1098
+ outputSchema?: Record<string, any> | undefined;
1099
+ timeoutSeconds?: number | undefined;
1100
+ }>, "many">>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ code: string;
1103
+ name: string;
1104
+ manifest: Record<string, any>;
1105
+ runtime?: string | undefined;
1106
+ description?: string | undefined;
1107
+ version?: string | undefined;
1108
+ health?: {
1109
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1110
+ message?: string | undefined;
1111
+ details?: Record<string, any> | undefined;
1112
+ } | undefined;
1113
+ configs?: {
1114
+ type: string;
1115
+ key: string;
1116
+ label?: string | undefined;
1117
+ source?: string | undefined;
1118
+ editable?: boolean | undefined;
1119
+ sensitive?: boolean | undefined;
1120
+ valuePreview?: string | undefined;
1121
+ defaultValue?: string | undefined;
1122
+ secretRef?: string | undefined;
1123
+ }[] | undefined;
1124
+ actions?: {
1125
+ name: string;
1126
+ label: string;
1127
+ description?: string | undefined;
1128
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1129
+ requiresConfirmation?: boolean | undefined;
1130
+ category?: string | undefined;
1131
+ order?: number | undefined;
1132
+ inputSchema?: Record<string, any> | undefined;
1133
+ outputSchema?: Record<string, any> | undefined;
1134
+ timeoutSeconds?: number | undefined;
1135
+ }[] | undefined;
1136
+ }, {
1137
+ code: string;
1138
+ name: string;
1139
+ manifest: Record<string, any>;
1140
+ runtime?: string | undefined;
1141
+ description?: string | undefined;
1142
+ version?: string | undefined;
1143
+ health?: {
1144
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1145
+ message?: string | undefined;
1146
+ details?: Record<string, any> | undefined;
1147
+ } | undefined;
1148
+ configs?: {
1149
+ type: string;
1150
+ key: string;
1151
+ label?: string | undefined;
1152
+ source?: string | undefined;
1153
+ editable?: boolean | undefined;
1154
+ sensitive?: boolean | undefined;
1155
+ valuePreview?: string | undefined;
1156
+ defaultValue?: string | undefined;
1157
+ secretRef?: string | undefined;
1158
+ }[] | undefined;
1159
+ actions?: {
1160
+ name: string;
1161
+ label: string;
1162
+ description?: string | undefined;
1163
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1164
+ requiresConfirmation?: boolean | undefined;
1165
+ category?: string | undefined;
1166
+ order?: number | undefined;
1167
+ inputSchema?: Record<string, any> | undefined;
1168
+ outputSchema?: Record<string, any> | undefined;
1169
+ timeoutSeconds?: number | undefined;
1170
+ }[] | undefined;
1171
+ }>, "many">;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ services: {
1174
+ code: string;
1175
+ name: string;
1176
+ manifest: Record<string, any>;
1177
+ runtime?: string | undefined;
1178
+ description?: string | undefined;
1179
+ version?: string | undefined;
1180
+ health?: {
1181
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1182
+ message?: string | undefined;
1183
+ details?: Record<string, any> | undefined;
1184
+ } | undefined;
1185
+ configs?: {
1186
+ type: string;
1187
+ key: string;
1188
+ label?: string | undefined;
1189
+ source?: string | undefined;
1190
+ editable?: boolean | undefined;
1191
+ sensitive?: boolean | undefined;
1192
+ valuePreview?: string | undefined;
1193
+ defaultValue?: string | undefined;
1194
+ secretRef?: string | undefined;
1195
+ }[] | undefined;
1196
+ actions?: {
1197
+ name: string;
1198
+ label: string;
1199
+ description?: string | undefined;
1200
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1201
+ requiresConfirmation?: boolean | undefined;
1202
+ category?: string | undefined;
1203
+ order?: number | undefined;
1204
+ inputSchema?: Record<string, any> | undefined;
1205
+ outputSchema?: Record<string, any> | undefined;
1206
+ timeoutSeconds?: number | undefined;
1207
+ }[] | undefined;
1208
+ }[];
1209
+ }, {
1210
+ services: {
1211
+ code: string;
1212
+ name: string;
1213
+ manifest: Record<string, any>;
1214
+ runtime?: string | undefined;
1215
+ description?: string | undefined;
1216
+ version?: string | undefined;
1217
+ health?: {
1218
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1219
+ message?: string | undefined;
1220
+ details?: Record<string, any> | undefined;
1221
+ } | undefined;
1222
+ configs?: {
1223
+ type: string;
1224
+ key: string;
1225
+ label?: string | undefined;
1226
+ source?: string | undefined;
1227
+ editable?: boolean | undefined;
1228
+ sensitive?: boolean | undefined;
1229
+ valuePreview?: string | undefined;
1230
+ defaultValue?: string | undefined;
1231
+ secretRef?: string | undefined;
1232
+ }[] | undefined;
1233
+ actions?: {
1234
+ name: string;
1235
+ label: string;
1236
+ description?: string | undefined;
1237
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1238
+ requiresConfirmation?: boolean | undefined;
1239
+ category?: string | undefined;
1240
+ order?: number | undefined;
1241
+ inputSchema?: Record<string, any> | undefined;
1242
+ outputSchema?: Record<string, any> | undefined;
1243
+ timeoutSeconds?: number | undefined;
1244
+ }[] | undefined;
1245
+ }[];
1246
+ }>;
1247
+ declare const RegisterAgentRequestSchema: z.ZodObject<{
1248
+ registrationToken: z.ZodString;
1249
+ agent: z.ZodObject<{
1250
+ code: z.ZodString;
1251
+ name: z.ZodOptional<z.ZodString>;
1252
+ mode: z.ZodLiteral<"embedded">;
1253
+ runtime: z.ZodOptional<z.ZodString>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ code: string;
1256
+ mode: "embedded";
1257
+ name?: string | undefined;
1258
+ runtime?: string | undefined;
1259
+ }, {
1260
+ code: string;
1261
+ mode: "embedded";
1262
+ name?: string | undefined;
1263
+ runtime?: string | undefined;
1264
+ }>;
1265
+ service: z.ZodOptional<z.ZodObject<{
1266
+ code: z.ZodString;
1267
+ name: z.ZodString;
1268
+ description: z.ZodOptional<z.ZodString>;
1269
+ version: z.ZodOptional<z.ZodString>;
1270
+ runtime: z.ZodOptional<z.ZodString>;
1271
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1272
+ health: z.ZodOptional<z.ZodObject<{
1273
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1274
+ message: z.ZodOptional<z.ZodString>;
1275
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1278
+ message?: string | undefined;
1279
+ details?: Record<string, any> | undefined;
1280
+ }, {
1281
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1282
+ message?: string | undefined;
1283
+ details?: Record<string, any> | undefined;
1284
+ }>>;
1285
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1286
+ key: z.ZodString;
1287
+ label: z.ZodOptional<z.ZodString>;
1288
+ type: z.ZodString;
1289
+ source: z.ZodOptional<z.ZodString>;
1290
+ editable: z.ZodOptional<z.ZodBoolean>;
1291
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1292
+ valuePreview: z.ZodOptional<z.ZodString>;
1293
+ defaultValue: z.ZodOptional<z.ZodString>;
1294
+ secretRef: z.ZodOptional<z.ZodString>;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ type: string;
1297
+ key: string;
1298
+ label?: string | undefined;
1299
+ source?: string | undefined;
1300
+ editable?: boolean | undefined;
1301
+ sensitive?: boolean | undefined;
1302
+ valuePreview?: string | undefined;
1303
+ defaultValue?: string | undefined;
1304
+ secretRef?: string | undefined;
1305
+ }, {
1306
+ type: string;
1307
+ key: string;
1308
+ label?: string | undefined;
1309
+ source?: string | undefined;
1310
+ editable?: boolean | undefined;
1311
+ sensitive?: boolean | undefined;
1312
+ valuePreview?: string | undefined;
1313
+ defaultValue?: string | undefined;
1314
+ secretRef?: string | undefined;
1315
+ }>, "many">>;
1316
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1317
+ name: z.ZodString;
1318
+ label: z.ZodString;
1319
+ description: z.ZodOptional<z.ZodString>;
1320
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1321
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1322
+ category: z.ZodOptional<z.ZodString>;
1323
+ order: z.ZodOptional<z.ZodNumber>;
1324
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1325
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1326
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ name: string;
1329
+ label: string;
1330
+ description?: string | undefined;
1331
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1332
+ requiresConfirmation?: boolean | undefined;
1333
+ category?: string | undefined;
1334
+ order?: number | undefined;
1335
+ inputSchema?: Record<string, any> | undefined;
1336
+ outputSchema?: Record<string, any> | undefined;
1337
+ timeoutSeconds?: number | undefined;
1338
+ }, {
1339
+ name: string;
1340
+ label: string;
1341
+ description?: string | undefined;
1342
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1343
+ requiresConfirmation?: boolean | undefined;
1344
+ category?: string | undefined;
1345
+ order?: number | undefined;
1346
+ inputSchema?: Record<string, any> | undefined;
1347
+ outputSchema?: Record<string, any> | undefined;
1348
+ timeoutSeconds?: number | undefined;
1349
+ }>, "many">>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ code: string;
1352
+ name: string;
1353
+ manifest: Record<string, any>;
1354
+ runtime?: string | undefined;
1355
+ description?: string | undefined;
1356
+ version?: string | undefined;
1357
+ health?: {
1358
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1359
+ message?: string | undefined;
1360
+ details?: Record<string, any> | undefined;
1361
+ } | undefined;
1362
+ configs?: {
1363
+ type: string;
1364
+ key: string;
1365
+ label?: string | undefined;
1366
+ source?: string | undefined;
1367
+ editable?: boolean | undefined;
1368
+ sensitive?: boolean | undefined;
1369
+ valuePreview?: string | undefined;
1370
+ defaultValue?: string | undefined;
1371
+ secretRef?: string | undefined;
1372
+ }[] | undefined;
1373
+ actions?: {
1374
+ name: string;
1375
+ label: string;
1376
+ description?: string | undefined;
1377
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1378
+ requiresConfirmation?: boolean | undefined;
1379
+ category?: string | undefined;
1380
+ order?: number | undefined;
1381
+ inputSchema?: Record<string, any> | undefined;
1382
+ outputSchema?: Record<string, any> | undefined;
1383
+ timeoutSeconds?: number | undefined;
1384
+ }[] | undefined;
1385
+ }, {
1386
+ code: string;
1387
+ name: string;
1388
+ manifest: Record<string, any>;
1389
+ runtime?: string | undefined;
1390
+ description?: string | undefined;
1391
+ version?: string | undefined;
1392
+ health?: {
1393
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1394
+ message?: string | undefined;
1395
+ details?: Record<string, any> | undefined;
1396
+ } | undefined;
1397
+ configs?: {
1398
+ type: string;
1399
+ key: string;
1400
+ label?: string | undefined;
1401
+ source?: string | undefined;
1402
+ editable?: boolean | undefined;
1403
+ sensitive?: boolean | undefined;
1404
+ valuePreview?: string | undefined;
1405
+ defaultValue?: string | undefined;
1406
+ secretRef?: string | undefined;
1407
+ }[] | undefined;
1408
+ actions?: {
1409
+ name: string;
1410
+ label: string;
1411
+ description?: string | undefined;
1412
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1413
+ requiresConfirmation?: boolean | undefined;
1414
+ category?: string | undefined;
1415
+ order?: number | undefined;
1416
+ inputSchema?: Record<string, any> | undefined;
1417
+ outputSchema?: Record<string, any> | undefined;
1418
+ timeoutSeconds?: number | undefined;
1419
+ }[] | undefined;
1420
+ }>>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ registrationToken: string;
1423
+ agent: {
1424
+ code: string;
1425
+ mode: "embedded";
1426
+ name?: string | undefined;
1427
+ runtime?: string | undefined;
1428
+ };
1429
+ service?: {
1430
+ code: string;
1431
+ name: string;
1432
+ manifest: Record<string, any>;
1433
+ runtime?: string | undefined;
1434
+ description?: string | undefined;
1435
+ version?: string | undefined;
1436
+ health?: {
1437
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1438
+ message?: string | undefined;
1439
+ details?: Record<string, any> | undefined;
1440
+ } | undefined;
1441
+ configs?: {
1442
+ type: string;
1443
+ key: string;
1444
+ label?: string | undefined;
1445
+ source?: string | undefined;
1446
+ editable?: boolean | undefined;
1447
+ sensitive?: boolean | undefined;
1448
+ valuePreview?: string | undefined;
1449
+ defaultValue?: string | undefined;
1450
+ secretRef?: string | undefined;
1451
+ }[] | undefined;
1452
+ actions?: {
1453
+ name: string;
1454
+ label: string;
1455
+ description?: string | undefined;
1456
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1457
+ requiresConfirmation?: boolean | undefined;
1458
+ category?: string | undefined;
1459
+ order?: number | undefined;
1460
+ inputSchema?: Record<string, any> | undefined;
1461
+ outputSchema?: Record<string, any> | undefined;
1462
+ timeoutSeconds?: number | undefined;
1463
+ }[] | undefined;
1464
+ } | undefined;
1465
+ }, {
1466
+ registrationToken: string;
1467
+ agent: {
1468
+ code: string;
1469
+ mode: "embedded";
1470
+ name?: string | undefined;
1471
+ runtime?: string | undefined;
1472
+ };
1473
+ service?: {
1474
+ code: string;
1475
+ name: string;
1476
+ manifest: Record<string, any>;
1477
+ runtime?: string | undefined;
1478
+ description?: string | undefined;
1479
+ version?: string | undefined;
1480
+ health?: {
1481
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1482
+ message?: string | undefined;
1483
+ details?: Record<string, any> | undefined;
1484
+ } | undefined;
1485
+ configs?: {
1486
+ type: string;
1487
+ key: string;
1488
+ label?: string | undefined;
1489
+ source?: string | undefined;
1490
+ editable?: boolean | undefined;
1491
+ sensitive?: boolean | undefined;
1492
+ valuePreview?: string | undefined;
1493
+ defaultValue?: string | undefined;
1494
+ secretRef?: string | undefined;
1495
+ }[] | undefined;
1496
+ actions?: {
1497
+ name: string;
1498
+ label: string;
1499
+ description?: string | undefined;
1500
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1501
+ requiresConfirmation?: boolean | undefined;
1502
+ category?: string | undefined;
1503
+ order?: number | undefined;
1504
+ inputSchema?: Record<string, any> | undefined;
1505
+ outputSchema?: Record<string, any> | undefined;
1506
+ timeoutSeconds?: number | undefined;
1507
+ }[] | undefined;
1508
+ } | undefined;
1509
+ }>;
1510
+ type RegisterAgentRequest = z.infer<typeof RegisterAgentRequestSchema>;
1511
+ declare const registerAgentRequestSchema: z.ZodObject<{
1512
+ registrationToken: z.ZodString;
1513
+ agent: z.ZodObject<{
1514
+ code: z.ZodString;
1515
+ name: z.ZodOptional<z.ZodString>;
1516
+ mode: z.ZodLiteral<"embedded">;
1517
+ runtime: z.ZodOptional<z.ZodString>;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ code: string;
1520
+ mode: "embedded";
1521
+ name?: string | undefined;
1522
+ runtime?: string | undefined;
1523
+ }, {
1524
+ code: string;
1525
+ mode: "embedded";
1526
+ name?: string | undefined;
1527
+ runtime?: string | undefined;
1528
+ }>;
1529
+ service: z.ZodOptional<z.ZodObject<{
1530
+ code: z.ZodString;
1531
+ name: z.ZodString;
1532
+ description: z.ZodOptional<z.ZodString>;
1533
+ version: z.ZodOptional<z.ZodString>;
1534
+ runtime: z.ZodOptional<z.ZodString>;
1535
+ manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1536
+ health: z.ZodOptional<z.ZodObject<{
1537
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1538
+ message: z.ZodOptional<z.ZodString>;
1539
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1542
+ message?: string | undefined;
1543
+ details?: Record<string, any> | undefined;
1544
+ }, {
1545
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1546
+ message?: string | undefined;
1547
+ details?: Record<string, any> | undefined;
1548
+ }>>;
1549
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1550
+ key: z.ZodString;
1551
+ label: z.ZodOptional<z.ZodString>;
1552
+ type: z.ZodString;
1553
+ source: z.ZodOptional<z.ZodString>;
1554
+ editable: z.ZodOptional<z.ZodBoolean>;
1555
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1556
+ valuePreview: z.ZodOptional<z.ZodString>;
1557
+ defaultValue: z.ZodOptional<z.ZodString>;
1558
+ secretRef: z.ZodOptional<z.ZodString>;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ type: string;
1561
+ key: string;
1562
+ label?: string | undefined;
1563
+ source?: string | undefined;
1564
+ editable?: boolean | undefined;
1565
+ sensitive?: boolean | undefined;
1566
+ valuePreview?: string | undefined;
1567
+ defaultValue?: string | undefined;
1568
+ secretRef?: string | undefined;
1569
+ }, {
1570
+ type: string;
1571
+ key: string;
1572
+ label?: string | undefined;
1573
+ source?: string | undefined;
1574
+ editable?: boolean | undefined;
1575
+ sensitive?: boolean | undefined;
1576
+ valuePreview?: string | undefined;
1577
+ defaultValue?: string | undefined;
1578
+ secretRef?: string | undefined;
1579
+ }>, "many">>;
1580
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1581
+ name: z.ZodString;
1582
+ label: z.ZodString;
1583
+ description: z.ZodOptional<z.ZodString>;
1584
+ dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1585
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1586
+ category: z.ZodOptional<z.ZodString>;
1587
+ order: z.ZodOptional<z.ZodNumber>;
1588
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1589
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1590
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ name: string;
1593
+ label: string;
1594
+ description?: string | undefined;
1595
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1596
+ requiresConfirmation?: boolean | undefined;
1597
+ category?: string | undefined;
1598
+ order?: number | undefined;
1599
+ inputSchema?: Record<string, any> | undefined;
1600
+ outputSchema?: Record<string, any> | undefined;
1601
+ timeoutSeconds?: number | undefined;
1602
+ }, {
1603
+ name: string;
1604
+ label: string;
1605
+ description?: string | undefined;
1606
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1607
+ requiresConfirmation?: boolean | undefined;
1608
+ category?: string | undefined;
1609
+ order?: number | undefined;
1610
+ inputSchema?: Record<string, any> | undefined;
1611
+ outputSchema?: Record<string, any> | undefined;
1612
+ timeoutSeconds?: number | undefined;
1613
+ }>, "many">>;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ code: string;
1616
+ name: string;
1617
+ manifest: Record<string, any>;
1618
+ runtime?: string | undefined;
1619
+ description?: string | undefined;
1620
+ version?: string | undefined;
1621
+ health?: {
1622
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1623
+ message?: string | undefined;
1624
+ details?: Record<string, any> | undefined;
1625
+ } | undefined;
1626
+ configs?: {
1627
+ type: string;
1628
+ key: string;
1629
+ label?: string | undefined;
1630
+ source?: string | undefined;
1631
+ editable?: boolean | undefined;
1632
+ sensitive?: boolean | undefined;
1633
+ valuePreview?: string | undefined;
1634
+ defaultValue?: string | undefined;
1635
+ secretRef?: string | undefined;
1636
+ }[] | undefined;
1637
+ actions?: {
1638
+ name: string;
1639
+ label: string;
1640
+ description?: string | undefined;
1641
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1642
+ requiresConfirmation?: boolean | undefined;
1643
+ category?: string | undefined;
1644
+ order?: number | undefined;
1645
+ inputSchema?: Record<string, any> | undefined;
1646
+ outputSchema?: Record<string, any> | undefined;
1647
+ timeoutSeconds?: number | undefined;
1648
+ }[] | undefined;
1649
+ }, {
1650
+ code: string;
1651
+ name: string;
1652
+ manifest: Record<string, any>;
1653
+ runtime?: string | undefined;
1654
+ description?: string | undefined;
1655
+ version?: string | undefined;
1656
+ health?: {
1657
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1658
+ message?: string | undefined;
1659
+ details?: Record<string, any> | undefined;
1660
+ } | undefined;
1661
+ configs?: {
1662
+ type: string;
1663
+ key: string;
1664
+ label?: string | undefined;
1665
+ source?: string | undefined;
1666
+ editable?: boolean | undefined;
1667
+ sensitive?: boolean | undefined;
1668
+ valuePreview?: string | undefined;
1669
+ defaultValue?: string | undefined;
1670
+ secretRef?: string | undefined;
1671
+ }[] | undefined;
1672
+ actions?: {
1673
+ name: string;
1674
+ label: string;
1675
+ description?: string | undefined;
1676
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1677
+ requiresConfirmation?: boolean | undefined;
1678
+ category?: string | undefined;
1679
+ order?: number | undefined;
1680
+ inputSchema?: Record<string, any> | undefined;
1681
+ outputSchema?: Record<string, any> | undefined;
1682
+ timeoutSeconds?: number | undefined;
1683
+ }[] | undefined;
1684
+ }>>;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ registrationToken: string;
1687
+ agent: {
1688
+ code: string;
1689
+ mode: "embedded";
1690
+ name?: string | undefined;
1691
+ runtime?: string | undefined;
1692
+ };
1693
+ service?: {
1694
+ code: string;
1695
+ name: string;
1696
+ manifest: Record<string, any>;
1697
+ runtime?: string | undefined;
1698
+ description?: string | undefined;
1699
+ version?: string | undefined;
1700
+ health?: {
1701
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1702
+ message?: string | undefined;
1703
+ details?: Record<string, any> | undefined;
1704
+ } | undefined;
1705
+ configs?: {
1706
+ type: string;
1707
+ key: string;
1708
+ label?: string | undefined;
1709
+ source?: string | undefined;
1710
+ editable?: boolean | undefined;
1711
+ sensitive?: boolean | undefined;
1712
+ valuePreview?: string | undefined;
1713
+ defaultValue?: string | undefined;
1714
+ secretRef?: string | undefined;
1715
+ }[] | undefined;
1716
+ actions?: {
1717
+ name: string;
1718
+ label: string;
1719
+ description?: string | undefined;
1720
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1721
+ requiresConfirmation?: boolean | undefined;
1722
+ category?: string | undefined;
1723
+ order?: number | undefined;
1724
+ inputSchema?: Record<string, any> | undefined;
1725
+ outputSchema?: Record<string, any> | undefined;
1726
+ timeoutSeconds?: number | undefined;
1727
+ }[] | undefined;
1728
+ } | undefined;
1729
+ }, {
1730
+ registrationToken: string;
1731
+ agent: {
1732
+ code: string;
1733
+ mode: "embedded";
1734
+ name?: string | undefined;
1735
+ runtime?: string | undefined;
1736
+ };
1737
+ service?: {
1738
+ code: string;
1739
+ name: string;
1740
+ manifest: Record<string, any>;
1741
+ runtime?: string | undefined;
1742
+ description?: string | undefined;
1743
+ version?: string | undefined;
1744
+ health?: {
1745
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1746
+ message?: string | undefined;
1747
+ details?: Record<string, any> | undefined;
1748
+ } | undefined;
1749
+ configs?: {
1750
+ type: string;
1751
+ key: string;
1752
+ label?: string | undefined;
1753
+ source?: string | undefined;
1754
+ editable?: boolean | undefined;
1755
+ sensitive?: boolean | undefined;
1756
+ valuePreview?: string | undefined;
1757
+ defaultValue?: string | undefined;
1758
+ secretRef?: string | undefined;
1759
+ }[] | undefined;
1760
+ actions?: {
1761
+ name: string;
1762
+ label: string;
1763
+ description?: string | undefined;
1764
+ dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1765
+ requiresConfirmation?: boolean | undefined;
1766
+ category?: string | undefined;
1767
+ order?: number | undefined;
1768
+ inputSchema?: Record<string, any> | undefined;
1769
+ outputSchema?: Record<string, any> | undefined;
1770
+ timeoutSeconds?: number | undefined;
1771
+ }[] | undefined;
1772
+ } | undefined;
1773
+ }>;
1774
+ declare const RegisterAgentResponseSchema: z.ZodObject<{
1775
+ agentId: z.ZodString;
1776
+ agentToken: z.ZodString;
1777
+ heartbeatIntervalSeconds: z.ZodNumber;
1778
+ commandPollIntervalSeconds: z.ZodNumber;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ agentId: string;
1781
+ agentToken: string;
1782
+ heartbeatIntervalSeconds: number;
1783
+ commandPollIntervalSeconds: number;
1784
+ }, {
1785
+ agentId: string;
1786
+ agentToken: string;
1787
+ heartbeatIntervalSeconds: number;
1788
+ commandPollIntervalSeconds: number;
1789
+ }>;
1790
+ type RegisterAgentResponse = z.infer<typeof RegisterAgentResponseSchema>;
1791
+ declare const AgentHeartbeatResponseSchema: z.ZodObject<{
1792
+ heartbeatIntervalSeconds: z.ZodNumber;
1793
+ commandPollIntervalSeconds: z.ZodNumber;
1794
+ }, "strip", z.ZodTypeAny, {
1795
+ heartbeatIntervalSeconds: number;
1796
+ commandPollIntervalSeconds: number;
1797
+ }, {
1798
+ heartbeatIntervalSeconds: number;
1799
+ commandPollIntervalSeconds: number;
1800
+ }>;
1801
+ type AgentHeartbeatResponse = z.infer<typeof AgentHeartbeatResponseSchema>;
1802
+ declare const AgentHeartbeatRequestSchema: z.ZodObject<{
1803
+ serviceId: z.ZodOptional<z.ZodString>;
1804
+ health: z.ZodOptional<z.ZodObject<{
1805
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1806
+ message: z.ZodOptional<z.ZodString>;
1807
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1810
+ message?: string | undefined;
1811
+ details?: Record<string, any> | undefined;
1812
+ }, {
1813
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1814
+ message?: string | undefined;
1815
+ details?: Record<string, any> | undefined;
1816
+ }>>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ health?: {
1819
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1820
+ message?: string | undefined;
1821
+ details?: Record<string, any> | undefined;
1822
+ } | undefined;
1823
+ serviceId?: string | undefined;
1824
+ }, {
1825
+ health?: {
1826
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1827
+ message?: string | undefined;
1828
+ details?: Record<string, any> | undefined;
1829
+ } | undefined;
1830
+ serviceId?: string | undefined;
1831
+ }>;
1832
+ type AgentHeartbeatRequest = z.infer<typeof AgentHeartbeatRequestSchema>;
1833
+ declare const agentHeartbeatRequestSchema: z.ZodObject<{
1834
+ serviceId: z.ZodOptional<z.ZodString>;
1835
+ health: z.ZodOptional<z.ZodObject<{
1836
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1837
+ message: z.ZodOptional<z.ZodString>;
1838
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1841
+ message?: string | undefined;
1842
+ details?: Record<string, any> | undefined;
1843
+ }, {
1844
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1845
+ message?: string | undefined;
1846
+ details?: Record<string, any> | undefined;
1847
+ }>>;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ health?: {
1850
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1851
+ message?: string | undefined;
1852
+ details?: Record<string, any> | undefined;
1853
+ } | undefined;
1854
+ serviceId?: string | undefined;
1855
+ }, {
1856
+ health?: {
1857
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1858
+ message?: string | undefined;
1859
+ details?: Record<string, any> | undefined;
1860
+ } | undefined;
1861
+ serviceId?: string | undefined;
1862
+ }>;
1863
+ declare const CapsuleServiceSchema: z.ZodObject<{
1864
+ id: z.ZodString;
1865
+ agentId: z.ZodOptional<z.ZodString>;
1866
+ code: z.ZodString;
1867
+ name: z.ZodString;
1868
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1869
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1870
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1871
+ status: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
1872
+ healthStatus: z.ZodOptional<z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>>;
1873
+ lastReportedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1874
+ lastHealthAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1875
+ createdAt: z.ZodString;
1876
+ updatedAt: z.ZodString;
1877
+ }, "strip", z.ZodTypeAny, {
1878
+ code: string;
1879
+ id: string;
1880
+ createdAt: string;
1881
+ updatedAt: string;
1882
+ status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
1883
+ name: string;
1884
+ runtime?: string | null | undefined;
1885
+ description?: string | null | undefined;
1886
+ version?: string | null | undefined;
1887
+ agentId?: string | undefined;
1888
+ healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
1889
+ lastReportedAt?: string | null | undefined;
1890
+ lastHealthAt?: string | null | undefined;
1891
+ }, {
1892
+ code: string;
1893
+ id: string;
1894
+ createdAt: string;
1895
+ updatedAt: string;
1896
+ status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
1897
+ name: string;
1898
+ runtime?: string | null | undefined;
1899
+ description?: string | null | undefined;
1900
+ version?: string | null | undefined;
1901
+ agentId?: string | undefined;
1902
+ healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
1903
+ lastReportedAt?: string | null | undefined;
1904
+ lastHealthAt?: string | null | undefined;
1905
+ }>;
1906
+ type CapsuleService = z.infer<typeof CapsuleServiceSchema>;
1907
+ declare const HealthReportSchema: z.ZodObject<{
1908
+ id: z.ZodString;
1909
+ serviceId: z.ZodString;
1910
+ agentId: z.ZodOptional<z.ZodString>;
1911
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1912
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1914
+ reportedAt: z.ZodString;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ id: string;
1917
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1918
+ serviceId: string;
1919
+ reportedAt: string;
1920
+ message?: string | null | undefined;
1921
+ details?: Record<string, any> | undefined;
1922
+ agentId?: string | undefined;
1923
+ }, {
1924
+ id: string;
1925
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1926
+ serviceId: string;
1927
+ reportedAt: string;
1928
+ message?: string | null | undefined;
1929
+ details?: Record<string, any> | undefined;
1930
+ agentId?: string | undefined;
1931
+ }>;
1932
+ type HealthReport = z.infer<typeof HealthReportSchema>;
1933
+ declare const ConfigItemSchema: z.ZodObject<{
1934
+ id: z.ZodString;
1935
+ serviceId: z.ZodString;
1936
+ key: z.ZodString;
1937
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1938
+ type: z.ZodString;
1939
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1940
+ editable: z.ZodDefault<z.ZodBoolean>;
1941
+ sensitive: z.ZodBoolean;
1942
+ valuePreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1943
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1944
+ secretRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ type: string;
1947
+ id: string;
1948
+ key: string;
1949
+ editable: boolean;
1950
+ sensitive: boolean;
1951
+ serviceId: string;
1952
+ label?: string | null | undefined;
1953
+ source?: string | null | undefined;
1954
+ valuePreview?: string | null | undefined;
1955
+ defaultValue?: string | null | undefined;
1956
+ secretRef?: string | null | undefined;
1957
+ }, {
1958
+ type: string;
1959
+ id: string;
1960
+ key: string;
1961
+ sensitive: boolean;
1962
+ serviceId: string;
1963
+ label?: string | null | undefined;
1964
+ source?: string | null | undefined;
1965
+ editable?: boolean | undefined;
1966
+ valuePreview?: string | null | undefined;
1967
+ defaultValue?: string | null | undefined;
1968
+ secretRef?: string | null | undefined;
1969
+ }>;
1970
+ type ConfigItem = z.infer<typeof ConfigItemSchema>;
1971
+ declare const ActionDefinitionSchema: z.ZodObject<{
1972
+ id: z.ZodString;
1973
+ serviceId: z.ZodString;
1974
+ name: z.ZodString;
1975
+ label: z.ZodString;
1976
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1977
+ dangerLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
1978
+ requiresConfirmation: z.ZodBoolean;
1979
+ category: z.ZodOptional<z.ZodString>;
1980
+ order: z.ZodOptional<z.ZodNumber>;
1981
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1982
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1983
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ id: string;
1986
+ name: string;
1987
+ label: string;
1988
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
1989
+ requiresConfirmation: boolean;
1990
+ serviceId: string;
1991
+ description?: string | null | undefined;
1992
+ category?: string | undefined;
1993
+ order?: number | undefined;
1994
+ inputSchema?: Record<string, any> | undefined;
1995
+ outputSchema?: Record<string, any> | undefined;
1996
+ timeoutSeconds?: number | undefined;
1997
+ }, {
1998
+ id: string;
1999
+ name: string;
2000
+ label: string;
2001
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2002
+ requiresConfirmation: boolean;
2003
+ serviceId: string;
2004
+ description?: string | null | undefined;
2005
+ category?: string | undefined;
2006
+ order?: number | undefined;
2007
+ inputSchema?: Record<string, any> | undefined;
2008
+ outputSchema?: Record<string, any> | undefined;
2009
+ timeoutSeconds?: number | undefined;
2010
+ }>;
2011
+ type ActionDefinition = z.infer<typeof ActionDefinitionSchema>;
2012
+ declare const CapsuleServiceDetailSchema: z.ZodObject<{
2013
+ id: z.ZodString;
2014
+ agentId: z.ZodOptional<z.ZodString>;
2015
+ code: z.ZodString;
2016
+ name: z.ZodString;
2017
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2018
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2020
+ status: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
2021
+ healthStatus: z.ZodOptional<z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>>;
2022
+ lastReportedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2023
+ lastHealthAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ createdAt: z.ZodString;
2025
+ updatedAt: z.ZodString;
2026
+ } & {
2027
+ manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2028
+ health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2029
+ id: z.ZodString;
2030
+ serviceId: z.ZodString;
2031
+ agentId: z.ZodOptional<z.ZodString>;
2032
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2033
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2034
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2035
+ reportedAt: z.ZodString;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ id: string;
2038
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2039
+ serviceId: string;
2040
+ reportedAt: string;
2041
+ message?: string | null | undefined;
2042
+ details?: Record<string, any> | undefined;
2043
+ agentId?: string | undefined;
2044
+ }, {
2045
+ id: string;
2046
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2047
+ serviceId: string;
2048
+ reportedAt: string;
2049
+ message?: string | null | undefined;
2050
+ details?: Record<string, any> | undefined;
2051
+ agentId?: string | undefined;
2052
+ }>>>;
2053
+ configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2054
+ id: z.ZodString;
2055
+ serviceId: z.ZodString;
2056
+ key: z.ZodString;
2057
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2058
+ type: z.ZodString;
2059
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2060
+ editable: z.ZodDefault<z.ZodBoolean>;
2061
+ sensitive: z.ZodBoolean;
2062
+ valuePreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2063
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2064
+ secretRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ type: string;
2067
+ id: string;
2068
+ key: string;
2069
+ editable: boolean;
2070
+ sensitive: boolean;
2071
+ serviceId: string;
2072
+ label?: string | null | undefined;
2073
+ source?: string | null | undefined;
2074
+ valuePreview?: string | null | undefined;
2075
+ defaultValue?: string | null | undefined;
2076
+ secretRef?: string | null | undefined;
2077
+ }, {
2078
+ type: string;
2079
+ id: string;
2080
+ key: string;
2081
+ sensitive: boolean;
2082
+ serviceId: string;
2083
+ label?: string | null | undefined;
2084
+ source?: string | null | undefined;
2085
+ editable?: boolean | undefined;
2086
+ valuePreview?: string | null | undefined;
2087
+ defaultValue?: string | null | undefined;
2088
+ secretRef?: string | null | undefined;
2089
+ }>, "many">>;
2090
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2091
+ id: z.ZodString;
2092
+ serviceId: z.ZodString;
2093
+ name: z.ZodString;
2094
+ label: z.ZodString;
2095
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2096
+ dangerLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
2097
+ requiresConfirmation: z.ZodBoolean;
2098
+ category: z.ZodOptional<z.ZodString>;
2099
+ order: z.ZodOptional<z.ZodNumber>;
2100
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2101
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2102
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ id: string;
2105
+ name: string;
2106
+ label: string;
2107
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2108
+ requiresConfirmation: boolean;
2109
+ serviceId: string;
2110
+ description?: string | null | undefined;
2111
+ category?: string | undefined;
2112
+ order?: number | undefined;
2113
+ inputSchema?: Record<string, any> | undefined;
2114
+ outputSchema?: Record<string, any> | undefined;
2115
+ timeoutSeconds?: number | undefined;
2116
+ }, {
2117
+ id: string;
2118
+ name: string;
2119
+ label: string;
2120
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2121
+ requiresConfirmation: boolean;
2122
+ serviceId: string;
2123
+ description?: string | null | undefined;
2124
+ category?: string | undefined;
2125
+ order?: number | undefined;
2126
+ inputSchema?: Record<string, any> | undefined;
2127
+ outputSchema?: Record<string, any> | undefined;
2128
+ timeoutSeconds?: number | undefined;
2129
+ }>, "many">>;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ code: string;
2132
+ id: string;
2133
+ createdAt: string;
2134
+ updatedAt: string;
2135
+ status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2136
+ name: string;
2137
+ runtime?: string | null | undefined;
2138
+ description?: string | null | undefined;
2139
+ version?: string | null | undefined;
2140
+ manifest?: Record<string, any> | undefined;
2141
+ health?: {
2142
+ id: string;
2143
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2144
+ serviceId: string;
2145
+ reportedAt: string;
2146
+ message?: string | null | undefined;
2147
+ details?: Record<string, any> | undefined;
2148
+ agentId?: string | undefined;
2149
+ } | null | undefined;
2150
+ configs?: {
2151
+ type: string;
2152
+ id: string;
2153
+ key: string;
2154
+ editable: boolean;
2155
+ sensitive: boolean;
2156
+ serviceId: string;
2157
+ label?: string | null | undefined;
2158
+ source?: string | null | undefined;
2159
+ valuePreview?: string | null | undefined;
2160
+ defaultValue?: string | null | undefined;
2161
+ secretRef?: string | null | undefined;
2162
+ }[] | undefined;
2163
+ actions?: {
2164
+ id: string;
2165
+ name: string;
2166
+ label: string;
2167
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2168
+ requiresConfirmation: boolean;
2169
+ serviceId: string;
2170
+ description?: string | null | undefined;
2171
+ category?: string | undefined;
2172
+ order?: number | undefined;
2173
+ inputSchema?: Record<string, any> | undefined;
2174
+ outputSchema?: Record<string, any> | undefined;
2175
+ timeoutSeconds?: number | undefined;
2176
+ }[] | undefined;
2177
+ agentId?: string | undefined;
2178
+ healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2179
+ lastReportedAt?: string | null | undefined;
2180
+ lastHealthAt?: string | null | undefined;
2181
+ }, {
2182
+ code: string;
2183
+ id: string;
2184
+ createdAt: string;
2185
+ updatedAt: string;
2186
+ status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2187
+ name: string;
2188
+ runtime?: string | null | undefined;
2189
+ description?: string | null | undefined;
2190
+ version?: string | null | undefined;
2191
+ manifest?: Record<string, any> | undefined;
2192
+ health?: {
2193
+ id: string;
2194
+ status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2195
+ serviceId: string;
2196
+ reportedAt: string;
2197
+ message?: string | null | undefined;
2198
+ details?: Record<string, any> | undefined;
2199
+ agentId?: string | undefined;
2200
+ } | null | undefined;
2201
+ configs?: {
2202
+ type: string;
2203
+ id: string;
2204
+ key: string;
2205
+ sensitive: boolean;
2206
+ serviceId: string;
2207
+ label?: string | null | undefined;
2208
+ source?: string | null | undefined;
2209
+ editable?: boolean | undefined;
2210
+ valuePreview?: string | null | undefined;
2211
+ defaultValue?: string | null | undefined;
2212
+ secretRef?: string | null | undefined;
2213
+ }[] | undefined;
2214
+ actions?: {
2215
+ id: string;
2216
+ name: string;
2217
+ label: string;
2218
+ dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2219
+ requiresConfirmation: boolean;
2220
+ serviceId: string;
2221
+ description?: string | null | undefined;
2222
+ category?: string | undefined;
2223
+ order?: number | undefined;
2224
+ inputSchema?: Record<string, any> | undefined;
2225
+ outputSchema?: Record<string, any> | undefined;
2226
+ timeoutSeconds?: number | undefined;
2227
+ }[] | undefined;
2228
+ agentId?: string | undefined;
2229
+ healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2230
+ lastReportedAt?: string | null | undefined;
2231
+ lastHealthAt?: string | null | undefined;
2232
+ }>;
2233
+ type CapsuleServiceDetail = z.infer<typeof CapsuleServiceDetailSchema>;
2234
+ declare const CreateActionCommandRequestSchema: z.ZodObject<{
2235
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2236
+ confirmation: z.ZodOptional<z.ZodBoolean>;
2237
+ }, "strip", z.ZodTypeAny, {
2238
+ payload?: Record<string, any> | undefined;
2239
+ confirmation?: boolean | undefined;
2240
+ }, {
2241
+ payload?: Record<string, any> | undefined;
2242
+ confirmation?: boolean | undefined;
2243
+ }>;
2244
+ type CreateActionCommandRequest = z.infer<typeof CreateActionCommandRequestSchema>;
2245
+ declare const createActionCommandRequestSchema: z.ZodObject<{
2246
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2247
+ confirmation: z.ZodOptional<z.ZodBoolean>;
2248
+ }, "strip", z.ZodTypeAny, {
2249
+ payload?: Record<string, any> | undefined;
2250
+ confirmation?: boolean | undefined;
2251
+ }, {
2252
+ payload?: Record<string, any> | undefined;
2253
+ confirmation?: boolean | undefined;
2254
+ }>;
2255
+ declare const CommandSchema: z.ZodObject<{
2256
+ id: z.ZodString;
2257
+ agentId: z.ZodString;
2258
+ serviceId: z.ZodString;
2259
+ type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE", "ACTION"]>;
2260
+ actionName: z.ZodString;
2261
+ status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
2262
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2263
+ createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2264
+ createdAt: z.ZodString;
2265
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2266
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2267
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2268
+ }, "strip", z.ZodTypeAny, {
2269
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2270
+ id: string;
2271
+ createdAt: string;
2272
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2273
+ agentId: string;
2274
+ serviceId: string;
2275
+ actionName: string;
2276
+ expiresAt?: string | null | undefined;
2277
+ payload?: Record<string, any> | undefined;
2278
+ createdByUserId?: string | null | undefined;
2279
+ startedAt?: string | null | undefined;
2280
+ completedAt?: string | null | undefined;
2281
+ }, {
2282
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2283
+ id: string;
2284
+ createdAt: string;
2285
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2286
+ agentId: string;
2287
+ serviceId: string;
2288
+ actionName: string;
2289
+ expiresAt?: string | null | undefined;
2290
+ payload?: Record<string, any> | undefined;
2291
+ createdByUserId?: string | null | undefined;
2292
+ startedAt?: string | null | undefined;
2293
+ completedAt?: string | null | undefined;
2294
+ }>;
2295
+ type Command = z.infer<typeof CommandSchema>;
2296
+ declare const ReportCommandResultRequestSchema: z.ZodObject<{
2297
+ success: z.ZodBoolean;
2298
+ message: z.ZodOptional<z.ZodString>;
2299
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2300
+ error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2301
+ startedAt: z.ZodOptional<z.ZodString>;
2302
+ finishedAt: z.ZodOptional<z.ZodString>;
2303
+ }, "strip", z.ZodTypeAny, {
2304
+ success: boolean;
2305
+ message?: string | undefined;
2306
+ startedAt?: string | undefined;
2307
+ data?: Record<string, any> | undefined;
2308
+ error?: Record<string, any> | undefined;
2309
+ finishedAt?: string | undefined;
2310
+ }, {
2311
+ success: boolean;
2312
+ message?: string | undefined;
2313
+ startedAt?: string | undefined;
2314
+ data?: Record<string, any> | undefined;
2315
+ error?: Record<string, any> | undefined;
2316
+ finishedAt?: string | undefined;
2317
+ }>;
2318
+ type ReportCommandResultRequest = z.infer<typeof ReportCommandResultRequestSchema>;
2319
+ declare const reportCommandResultRequestSchema: z.ZodObject<{
2320
+ success: z.ZodBoolean;
2321
+ message: z.ZodOptional<z.ZodString>;
2322
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2323
+ error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2324
+ startedAt: z.ZodOptional<z.ZodString>;
2325
+ finishedAt: z.ZodOptional<z.ZodString>;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ success: boolean;
2328
+ message?: string | undefined;
2329
+ startedAt?: string | undefined;
2330
+ data?: Record<string, any> | undefined;
2331
+ error?: Record<string, any> | undefined;
2332
+ finishedAt?: string | undefined;
2333
+ }, {
2334
+ success: boolean;
2335
+ message?: string | undefined;
2336
+ startedAt?: string | undefined;
2337
+ data?: Record<string, any> | undefined;
2338
+ error?: Record<string, any> | undefined;
2339
+ finishedAt?: string | undefined;
2340
+ }>;
2341
+ declare const CommandResultSchema: z.ZodObject<{
2342
+ id: z.ZodString;
2343
+ commandId: z.ZodString;
2344
+ success: z.ZodBoolean;
2345
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2346
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2347
+ error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2348
+ reportedAt: z.ZodString;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ id: string;
2351
+ reportedAt: string;
2352
+ success: boolean;
2353
+ commandId: string;
2354
+ message?: string | null | undefined;
2355
+ data?: Record<string, any> | undefined;
2356
+ error?: Record<string, any> | undefined;
2357
+ }, {
2358
+ id: string;
2359
+ reportedAt: string;
2360
+ success: boolean;
2361
+ commandId: string;
2362
+ message?: string | null | undefined;
2363
+ data?: Record<string, any> | undefined;
2364
+ error?: Record<string, any> | undefined;
2365
+ }>;
2366
+ type CommandResult = z.infer<typeof CommandResultSchema>;
2367
+ declare const CommandDetailSchema: z.ZodObject<{
2368
+ id: z.ZodString;
2369
+ agentId: z.ZodString;
2370
+ serviceId: z.ZodString;
2371
+ type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE", "ACTION"]>;
2372
+ actionName: z.ZodString;
2373
+ status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
2374
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2375
+ createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2376
+ createdAt: z.ZodString;
2377
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2379
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2380
+ } & {
2381
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2382
+ id: z.ZodString;
2383
+ commandId: z.ZodString;
2384
+ success: z.ZodBoolean;
2385
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2386
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2387
+ error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2388
+ reportedAt: z.ZodString;
2389
+ }, "strip", z.ZodTypeAny, {
2390
+ id: string;
2391
+ reportedAt: string;
2392
+ success: boolean;
2393
+ commandId: string;
2394
+ message?: string | null | undefined;
2395
+ data?: Record<string, any> | undefined;
2396
+ error?: Record<string, any> | undefined;
2397
+ }, {
2398
+ id: string;
2399
+ reportedAt: string;
2400
+ success: boolean;
2401
+ commandId: string;
2402
+ message?: string | null | undefined;
2403
+ data?: Record<string, any> | undefined;
2404
+ error?: Record<string, any> | undefined;
2405
+ }>>>;
2406
+ }, "strip", z.ZodTypeAny, {
2407
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2408
+ id: string;
2409
+ createdAt: string;
2410
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2411
+ agentId: string;
2412
+ serviceId: string;
2413
+ actionName: string;
2414
+ expiresAt?: string | null | undefined;
2415
+ payload?: Record<string, any> | undefined;
2416
+ createdByUserId?: string | null | undefined;
2417
+ startedAt?: string | null | undefined;
2418
+ completedAt?: string | null | undefined;
2419
+ result?: {
2420
+ id: string;
2421
+ reportedAt: string;
2422
+ success: boolean;
2423
+ commandId: string;
2424
+ message?: string | null | undefined;
2425
+ data?: Record<string, any> | undefined;
2426
+ error?: Record<string, any> | undefined;
2427
+ } | null | undefined;
2428
+ }, {
2429
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2430
+ id: string;
2431
+ createdAt: string;
2432
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2433
+ agentId: string;
2434
+ serviceId: string;
2435
+ actionName: string;
2436
+ expiresAt?: string | null | undefined;
2437
+ payload?: Record<string, any> | undefined;
2438
+ createdByUserId?: string | null | undefined;
2439
+ startedAt?: string | null | undefined;
2440
+ completedAt?: string | null | undefined;
2441
+ result?: {
2442
+ id: string;
2443
+ reportedAt: string;
2444
+ success: boolean;
2445
+ commandId: string;
2446
+ message?: string | null | undefined;
2447
+ data?: Record<string, any> | undefined;
2448
+ error?: Record<string, any> | undefined;
2449
+ } | null | undefined;
2450
+ }>;
2451
+ type CommandDetail = z.infer<typeof CommandDetailSchema>;
2452
+ declare const AuditEventSchema: z.ZodObject<{
2453
+ id: z.ZodString;
2454
+ actorType: z.ZodEnum<["USER", "AGENT", "SYSTEM"]>;
2455
+ actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
+ action: z.ZodString;
2457
+ targetType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2458
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2459
+ result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
2460
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2461
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2462
+ createdAt: z.ZodString;
2463
+ }, "strip", z.ZodTypeAny, {
2464
+ id: string;
2465
+ createdAt: string;
2466
+ result: "SUCCESS" | "FAILURE";
2467
+ actorType: "USER" | "AGENT" | "SYSTEM";
2468
+ action: string;
2469
+ message?: string | null | undefined;
2470
+ actorId?: string | null | undefined;
2471
+ targetType?: string | null | undefined;
2472
+ targetId?: string | null | undefined;
2473
+ metadata?: Record<string, any> | undefined;
2474
+ }, {
2475
+ id: string;
2476
+ createdAt: string;
2477
+ result: "SUCCESS" | "FAILURE";
2478
+ actorType: "USER" | "AGENT" | "SYSTEM";
2479
+ action: string;
2480
+ message?: string | null | undefined;
2481
+ actorId?: string | null | undefined;
2482
+ targetType?: string | null | undefined;
2483
+ targetId?: string | null | undefined;
2484
+ metadata?: Record<string, any> | undefined;
2485
+ }>;
2486
+ type AuditEvent = z.infer<typeof AuditEventSchema>;
2487
+ declare const DashboardSummarySchema: z.ZodObject<{
2488
+ agentCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
2489
+ serviceCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
2490
+ commandCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
2491
+ recentCommands: z.ZodOptional<z.ZodArray<z.ZodObject<{
2492
+ id: z.ZodString;
2493
+ agentId: z.ZodString;
2494
+ serviceId: z.ZodString;
2495
+ type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE", "ACTION"]>;
2496
+ actionName: z.ZodString;
2497
+ status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
2498
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2499
+ createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2500
+ createdAt: z.ZodString;
2501
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2502
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2503
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2506
+ id: string;
2507
+ createdAt: string;
2508
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2509
+ agentId: string;
2510
+ serviceId: string;
2511
+ actionName: string;
2512
+ expiresAt?: string | null | undefined;
2513
+ payload?: Record<string, any> | undefined;
2514
+ createdByUserId?: string | null | undefined;
2515
+ startedAt?: string | null | undefined;
2516
+ completedAt?: string | null | undefined;
2517
+ }, {
2518
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2519
+ id: string;
2520
+ createdAt: string;
2521
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2522
+ agentId: string;
2523
+ serviceId: string;
2524
+ actionName: string;
2525
+ expiresAt?: string | null | undefined;
2526
+ payload?: Record<string, any> | undefined;
2527
+ createdByUserId?: string | null | undefined;
2528
+ startedAt?: string | null | undefined;
2529
+ completedAt?: string | null | undefined;
2530
+ }>, "many">>;
2531
+ recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2532
+ id: z.ZodString;
2533
+ actorType: z.ZodEnum<["USER", "AGENT", "SYSTEM"]>;
2534
+ actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2535
+ action: z.ZodString;
2536
+ targetType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2537
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2538
+ result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
2539
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2540
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2541
+ createdAt: z.ZodString;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ id: string;
2544
+ createdAt: string;
2545
+ result: "SUCCESS" | "FAILURE";
2546
+ actorType: "USER" | "AGENT" | "SYSTEM";
2547
+ action: string;
2548
+ message?: string | null | undefined;
2549
+ actorId?: string | null | undefined;
2550
+ targetType?: string | null | undefined;
2551
+ targetId?: string | null | undefined;
2552
+ metadata?: Record<string, any> | undefined;
2553
+ }, {
2554
+ id: string;
2555
+ createdAt: string;
2556
+ result: "SUCCESS" | "FAILURE";
2557
+ actorType: "USER" | "AGENT" | "SYSTEM";
2558
+ action: string;
2559
+ message?: string | null | undefined;
2560
+ actorId?: string | null | undefined;
2561
+ targetType?: string | null | undefined;
2562
+ targetId?: string | null | undefined;
2563
+ metadata?: Record<string, any> | undefined;
2564
+ }>, "many">>;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ agentCounts: Record<string, number>;
2567
+ serviceCounts: Record<string, number>;
2568
+ commandCounts: Record<string, number>;
2569
+ recentCommands?: {
2570
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2571
+ id: string;
2572
+ createdAt: string;
2573
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2574
+ agentId: string;
2575
+ serviceId: string;
2576
+ actionName: string;
2577
+ expiresAt?: string | null | undefined;
2578
+ payload?: Record<string, any> | undefined;
2579
+ createdByUserId?: string | null | undefined;
2580
+ startedAt?: string | null | undefined;
2581
+ completedAt?: string | null | undefined;
2582
+ }[] | undefined;
2583
+ recentAuditEvents?: {
2584
+ id: string;
2585
+ createdAt: string;
2586
+ result: "SUCCESS" | "FAILURE";
2587
+ actorType: "USER" | "AGENT" | "SYSTEM";
2588
+ action: string;
2589
+ message?: string | null | undefined;
2590
+ actorId?: string | null | undefined;
2591
+ targetType?: string | null | undefined;
2592
+ targetId?: string | null | undefined;
2593
+ metadata?: Record<string, any> | undefined;
2594
+ }[] | undefined;
2595
+ }, {
2596
+ agentCounts: Record<string, number>;
2597
+ serviceCounts: Record<string, number>;
2598
+ commandCounts: Record<string, number>;
2599
+ recentCommands?: {
2600
+ type: "ACTION_PREPARE" | "ACTION_EXECUTE" | "ACTION";
2601
+ id: string;
2602
+ createdAt: string;
2603
+ status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
2604
+ agentId: string;
2605
+ serviceId: string;
2606
+ actionName: string;
2607
+ expiresAt?: string | null | undefined;
2608
+ payload?: Record<string, any> | undefined;
2609
+ createdByUserId?: string | null | undefined;
2610
+ startedAt?: string | null | undefined;
2611
+ completedAt?: string | null | undefined;
2612
+ }[] | undefined;
2613
+ recentAuditEvents?: {
2614
+ id: string;
2615
+ createdAt: string;
2616
+ result: "SUCCESS" | "FAILURE";
2617
+ actorType: "USER" | "AGENT" | "SYSTEM";
2618
+ action: string;
2619
+ message?: string | null | undefined;
2620
+ actorId?: string | null | undefined;
2621
+ targetType?: string | null | undefined;
2622
+ targetId?: string | null | undefined;
2623
+ metadata?: Record<string, any> | undefined;
2624
+ }[] | undefined;
2625
+ }>;
2626
+ type DashboardSummary = z.infer<typeof DashboardSummarySchema>;
2627
+ declare const SystemHealthSchema: z.ZodObject<{
2628
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN"]>;
2629
+ timestamp: z.ZodString;
2630
+ version: z.ZodString;
2631
+ edition: z.ZodLiteral<"ce">;
2632
+ database: z.ZodObject<{
2633
+ status: z.ZodEnum<["UP", "DEGRADED", "DOWN"]>;
2634
+ kind: z.ZodOptional<z.ZodEnum<["sqlite", "postgres", "mysql"]>>;
2635
+ latencyMs: z.ZodOptional<z.ZodNumber>;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ status: "UP" | "DEGRADED" | "DOWN";
2638
+ kind?: "sqlite" | "postgres" | "mysql" | undefined;
2639
+ latencyMs?: number | undefined;
2640
+ }, {
2641
+ status: "UP" | "DEGRADED" | "DOWN";
2642
+ kind?: "sqlite" | "postgres" | "mysql" | undefined;
2643
+ latencyMs?: number | undefined;
2644
+ }>;
2645
+ uptimeSeconds: z.ZodOptional<z.ZodNumber>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ status: "UP" | "DEGRADED" | "DOWN";
2648
+ version: string;
2649
+ timestamp: string;
2650
+ edition: "ce";
2651
+ database: {
2652
+ status: "UP" | "DEGRADED" | "DOWN";
2653
+ kind?: "sqlite" | "postgres" | "mysql" | undefined;
2654
+ latencyMs?: number | undefined;
2655
+ };
2656
+ uptimeSeconds?: number | undefined;
2657
+ }, {
2658
+ status: "UP" | "DEGRADED" | "DOWN";
2659
+ version: string;
2660
+ timestamp: string;
2661
+ edition: "ce";
2662
+ database: {
2663
+ status: "UP" | "DEGRADED" | "DOWN";
2664
+ kind?: "sqlite" | "postgres" | "mysql" | undefined;
2665
+ latencyMs?: number | undefined;
2666
+ };
2667
+ uptimeSeconds?: number | undefined;
2668
+ }>;
2669
+ type SystemHealth = z.infer<typeof SystemHealthSchema>;
2670
+ declare const SystemVersionSchema: z.ZodObject<{
2671
+ version: z.ZodString;
2672
+ edition: z.ZodLiteral<"ce">;
2673
+ commit: z.ZodOptional<z.ZodString>;
2674
+ buildTime: z.ZodOptional<z.ZodString>;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ version: string;
2677
+ edition: "ce";
2678
+ commit?: string | undefined;
2679
+ buildTime?: string | undefined;
2680
+ }, {
2681
+ version: string;
2682
+ edition: "ce";
2683
+ commit?: string | undefined;
2684
+ buildTime?: string | undefined;
2685
+ }>;
2686
+ type SystemVersion = z.infer<typeof SystemVersionSchema>;
2687
+ type Pagination = {
2688
+ page: number;
2689
+ pageSize: number;
2690
+ total: number;
2691
+ };
2692
+ type SuccessEnvelope<T> = {
2693
+ success?: true;
2694
+ data: T;
2695
+ pagination?: Pagination;
2696
+ } | {
2697
+ data: T;
2698
+ pagination?: Pagination;
2699
+ };
2700
+ type ErrorEnvelope = {
2701
+ success: false;
2702
+ error: {
2703
+ code: string;
2704
+ message: string;
2705
+ details?: unknown;
2706
+ };
2707
+ };
2708
+ declare const ListQueryBase: z.ZodObject<{
2709
+ page: z.ZodDefault<z.ZodNumber>;
2710
+ pageSize: z.ZodDefault<z.ZodNumber>;
2711
+ sort: z.ZodOptional<z.ZodString>;
2712
+ }, "strip", z.ZodTypeAny, {
2713
+ page: number;
2714
+ pageSize: number;
2715
+ sort?: string | undefined;
2716
+ }, {
2717
+ sort?: string | undefined;
2718
+ page?: number | undefined;
2719
+ pageSize?: number | undefined;
2720
+ }>;
2721
+ declare class HttpError extends Error {
2722
+ readonly httpStatus: number;
2723
+ readonly code: string;
2724
+ readonly publicMessage: string;
2725
+ readonly details?: unknown | undefined;
2726
+ constructor(httpStatus: number, code: string, publicMessage: string, details?: unknown | undefined);
2727
+ }
2728
+ declare function parseSort(value: string | undefined, allowed: readonly string[]): {
2729
+ readonly field: string;
2730
+ readonly direction: "desc" | "asc";
2731
+ }[];
2732
+ declare function paginate<T>(items: T[], page: number, pageSize: number, total: number): {
2733
+ data: T[];
2734
+ pagination: {
2735
+ page: number;
2736
+ pageSize: number;
2737
+ total: number;
2738
+ };
2739
+ };
2740
+
2741
+ export { type ActionDefinition, type ActionDefinitionInput, ActionDefinitionInputSchema, ActionDefinitionSchema, type AdminLoginRequest, AdminLoginRequestSchema, type AdminSession, AdminSessionSchema, type Agent, type AgentHeartbeatRequest, AgentHeartbeatRequestSchema, type AgentHeartbeatResponse, AgentHeartbeatResponseSchema, AgentSchema, AgentStatus, AgentStatusSchema, AnyJson, AuditActorType, type AuditEvent, AuditEventSchema, AuditResult, type CapsuleManifest, CapsuleManifestSchema, type CapsuleService, type CapsuleServiceDetail, CapsuleServiceDetailSchema, CapsuleServiceSchema, CapsuleServiceStatus, CapsuleServiceStatusSchema, type Command, type CommandDetail, CommandDetailSchema, type CommandResult, CommandResultSchema, CommandSchema, CommandStatus, CommandStatusSchema, type ConfigItem, type ConfigItemInput, ConfigItemInputSchema, ConfigItemSchema, type CreateActionCommandRequest, CreateActionCommandRequestSchema, type CreateRegistrationTokenRequest, CreateRegistrationTokenRequestSchema, type CreateRegistrationTokenResponse, CreateRegistrationTokenResponseSchema, type CreateUserRequest, DangerLevel, DangerLevelSchema, type DashboardSummary, DashboardSummarySchema, ErrorCode, type ErrorEnvelope, type HealthReport, type HealthReportInput, HealthReportInputSchema, HealthReportSchema, HealthStatus, HealthStatusSchema, HttpError, type IdPrefix, ListQueryBase, type Pagination, type RegisterAgentRequest, RegisterAgentRequestSchema, type RegisterAgentResponse, RegisterAgentResponseSchema, type RegistrationToken, RegistrationTokenSchema, type ReportCommandResultRequest, ReportCommandResultRequestSchema, type ReportedService, ReportedServiceSchema, type ResetUserPasswordRequest, type ServiceReportRequest, ServiceReportRequestSchema, type SuccessEnvelope, type SystemHealth, SystemHealthSchema, type SystemVersion, SystemVersionSchema, TokenStatus, type UpdateUserRequest, type User, UserRole, UserSchema, actionDefinitionInputSchema, adminLoginRequestSchema, agentHeartbeatRequestSchema, configItemInputSchema, createActionCommandRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, healthReportInputSchema, idPrefixes, newId, paginate, parseSort, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceReportRequestSchema, updateUserRequestSchema };