@xtrape/capsule-contracts-node 0.4.0 → 0.5.1

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.
@@ -1,4245 +0,0 @@
1
- import { z } from "zod";
2
- export { z };
3
- export declare const AgentStatus: readonly ["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"];
4
- export declare const CapsuleServiceStatus: readonly ["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"];
5
- export declare const HealthStatus: readonly ["UP", "DEGRADED", "DOWN", "UNKNOWN"];
6
- export declare const CommandStatus: readonly ["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"];
7
- export declare const DangerLevel: readonly ["LOW", "MEDIUM", "HIGH"];
8
- export declare const AuditActorType: readonly ["USER", "AGENT", "SYSTEM"];
9
- export declare const AuditResult: readonly ["SUCCESS", "FAILURE"];
10
- export declare const TokenStatus: readonly ["ACTIVE", "REVOKED", "EXPIRED", "USED"];
11
- export declare const AgentMode: readonly ["embedded", "ophub"];
12
- export type AgentStatus = typeof AgentStatus[number];
13
- export type CapsuleServiceStatus = typeof CapsuleServiceStatus[number];
14
- export type HealthStatus = typeof HealthStatus[number];
15
- export type CommandStatus = typeof CommandStatus[number];
16
- export type DangerLevel = typeof DangerLevel[number];
17
- export type AuditActorType = typeof AuditActorType[number];
18
- export type AuditResult = typeof AuditResult[number];
19
- export type TokenStatus = typeof TokenStatus[number];
20
- export type AgentMode = typeof AgentMode[number];
21
- export declare const ServiceKind: readonly ["business", "infrastructure", "system"];
22
- export type ServiceKind = typeof ServiceKind[number];
23
- export declare const ServiceKindSchema: z.ZodEnum<["business", "infrastructure", "system"]>;
24
- export declare const AnyJson: z.ZodRecord<z.ZodString, z.ZodAny>;
25
- export declare const AgentStatusSchema: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
26
- export declare const CapsuleServiceStatusSchema: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
27
- export declare const HealthStatusSchema: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
28
- export declare const CommandStatusSchema: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
29
- export declare const DangerLevelSchema: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>;
30
- export declare const AgentModeSchema: z.ZodEnum<["embedded", "ophub"]>;
31
- export declare const UserSchema: z.ZodObject<{
32
- id: z.ZodString;
33
- username: z.ZodString;
34
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- createdAt: z.ZodString;
36
- updatedAt: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- id: string;
39
- username: string;
40
- createdAt: string;
41
- updatedAt: string;
42
- displayName?: string | null | undefined;
43
- }, {
44
- id: string;
45
- username: string;
46
- createdAt: string;
47
- updatedAt: string;
48
- displayName?: string | null | undefined;
49
- }>;
50
- export type User = z.infer<typeof UserSchema>;
51
- export declare const UserRole: z.ZodEnum<["owner", "operator", "viewer"]>;
52
- export type UserRole = z.infer<typeof UserRole>;
53
- export declare const createUserRequestSchema: z.ZodObject<{
54
- username: z.ZodString;
55
- password: z.ZodString;
56
- displayName: z.ZodOptional<z.ZodString>;
57
- role: z.ZodDefault<z.ZodEnum<["owner", "operator", "viewer"]>>;
58
- }, "strip", z.ZodTypeAny, {
59
- username: string;
60
- password: string;
61
- role: "owner" | "operator" | "viewer";
62
- displayName?: string | undefined;
63
- }, {
64
- username: string;
65
- password: string;
66
- displayName?: string | undefined;
67
- role?: "owner" | "operator" | "viewer" | undefined;
68
- }>;
69
- export type CreateUserRequest = z.infer<typeof createUserRequestSchema>;
70
- export declare const updateUserRequestSchema: z.ZodObject<{
71
- displayName: z.ZodOptional<z.ZodString>;
72
- role: z.ZodOptional<z.ZodEnum<["owner", "operator", "viewer"]>>;
73
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "DISABLED"]>>;
74
- }, "strip", z.ZodTypeAny, {
75
- displayName?: string | undefined;
76
- status?: "DISABLED" | "ACTIVE" | undefined;
77
- role?: "owner" | "operator" | "viewer" | undefined;
78
- }, {
79
- displayName?: string | undefined;
80
- status?: "DISABLED" | "ACTIVE" | undefined;
81
- role?: "owner" | "operator" | "viewer" | undefined;
82
- }>;
83
- export type UpdateUserRequest = z.infer<typeof updateUserRequestSchema>;
84
- export declare const resetUserPasswordRequestSchema: z.ZodObject<{
85
- password: z.ZodString;
86
- }, "strip", z.ZodTypeAny, {
87
- password: string;
88
- }, {
89
- password: string;
90
- }>;
91
- export type ResetUserPasswordRequest = z.infer<typeof resetUserPasswordRequestSchema>;
92
- export declare const AdminLoginRequestSchema: z.ZodObject<{
93
- username: z.ZodString;
94
- password: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- username: string;
97
- password: string;
98
- }, {
99
- username: string;
100
- password: string;
101
- }>;
102
- export type AdminLoginRequest = z.infer<typeof AdminLoginRequestSchema>;
103
- export declare const adminLoginRequestSchema: z.ZodObject<{
104
- username: z.ZodString;
105
- password: z.ZodString;
106
- }, "strip", z.ZodTypeAny, {
107
- username: string;
108
- password: string;
109
- }, {
110
- username: string;
111
- password: string;
112
- }>;
113
- export declare const AdminSessionSchema: z.ZodObject<{
114
- user: z.ZodObject<{
115
- id: z.ZodString;
116
- username: z.ZodString;
117
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- createdAt: z.ZodString;
119
- updatedAt: z.ZodString;
120
- }, "strip", z.ZodTypeAny, {
121
- id: string;
122
- username: string;
123
- createdAt: string;
124
- updatedAt: string;
125
- displayName?: string | null | undefined;
126
- }, {
127
- id: string;
128
- username: string;
129
- createdAt: string;
130
- updatedAt: string;
131
- displayName?: string | null | undefined;
132
- }>;
133
- csrfToken: z.ZodString;
134
- expiresAt: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- user: {
137
- id: string;
138
- username: string;
139
- createdAt: string;
140
- updatedAt: string;
141
- displayName?: string | null | undefined;
142
- };
143
- csrfToken: string;
144
- expiresAt: string;
145
- }, {
146
- user: {
147
- id: string;
148
- username: string;
149
- createdAt: string;
150
- updatedAt: string;
151
- displayName?: string | null | undefined;
152
- };
153
- csrfToken: string;
154
- expiresAt: string;
155
- }>;
156
- export type AdminSession = z.infer<typeof AdminSessionSchema>;
157
- export declare const AgentSchema: z.ZodObject<{
158
- id: z.ZodString;
159
- code: z.ZodString;
160
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
- mode: z.ZodEnum<["embedded", "ophub"]>;
162
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
- status: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
164
- lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- createdAt: z.ZodString;
166
- updatedAt: z.ZodString;
167
- }, "strip", z.ZodTypeAny, {
168
- code: string;
169
- id: string;
170
- createdAt: string;
171
- updatedAt: string;
172
- status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
173
- mode: "embedded" | "ophub";
174
- name?: string | null | undefined;
175
- runtime?: string | null | undefined;
176
- lastHeartbeatAt?: string | null | undefined;
177
- }, {
178
- code: string;
179
- id: string;
180
- createdAt: string;
181
- updatedAt: string;
182
- status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
183
- mode: "embedded" | "ophub";
184
- name?: string | null | undefined;
185
- runtime?: string | null | undefined;
186
- lastHeartbeatAt?: string | null | undefined;
187
- }>;
188
- export type Agent = z.infer<typeof AgentSchema>;
189
- export declare const RegistrationTokenSchema: z.ZodObject<{
190
- id: z.ZodString;
191
- name: z.ZodString;
192
- status: z.ZodEnum<["ACTIVE", "REVOKED", "EXPIRED", "USED"]>;
193
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- usedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
- createdAt: z.ZodString;
196
- }, "strip", z.ZodTypeAny, {
197
- id: string;
198
- createdAt: string;
199
- status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
200
- name: string;
201
- expiresAt?: string | null | undefined;
202
- usedAt?: string | null | undefined;
203
- }, {
204
- id: string;
205
- createdAt: string;
206
- status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
207
- name: string;
208
- expiresAt?: string | null | undefined;
209
- usedAt?: string | null | undefined;
210
- }>;
211
- export type RegistrationToken = z.infer<typeof RegistrationTokenSchema>;
212
- export declare const CreateRegistrationTokenRequestSchema: z.ZodObject<{
213
- name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
214
- expiresInSeconds: z.ZodOptional<z.ZodNumber>;
215
- }, "strip", z.ZodTypeAny, {
216
- name?: string | undefined;
217
- expiresInSeconds?: number | undefined;
218
- }, {
219
- name?: string | undefined;
220
- expiresInSeconds?: number | undefined;
221
- }>;
222
- export type CreateRegistrationTokenRequest = z.infer<typeof CreateRegistrationTokenRequestSchema>;
223
- export declare const createRegistrationTokenRequestSchema: z.ZodObject<{
224
- name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
225
- expiresInSeconds: z.ZodOptional<z.ZodNumber>;
226
- }, "strip", z.ZodTypeAny, {
227
- name?: string | undefined;
228
- expiresInSeconds?: number | undefined;
229
- }, {
230
- name?: string | undefined;
231
- expiresInSeconds?: number | undefined;
232
- }>;
233
- export declare const CreateRegistrationTokenResponseSchema: z.ZodObject<{
234
- id: z.ZodString;
235
- name: z.ZodString;
236
- status: z.ZodEnum<["ACTIVE", "REVOKED", "EXPIRED", "USED"]>;
237
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
- usedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
- createdAt: z.ZodString;
240
- } & {
241
- rawToken: z.ZodString;
242
- }, "strip", z.ZodTypeAny, {
243
- id: string;
244
- createdAt: string;
245
- status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
246
- name: string;
247
- rawToken: string;
248
- expiresAt?: string | null | undefined;
249
- usedAt?: string | null | undefined;
250
- }, {
251
- id: string;
252
- createdAt: string;
253
- status: "REVOKED" | "EXPIRED" | "ACTIVE" | "USED";
254
- name: string;
255
- rawToken: string;
256
- expiresAt?: string | null | undefined;
257
- usedAt?: string | null | undefined;
258
- }>;
259
- export type CreateRegistrationTokenResponse = z.infer<typeof CreateRegistrationTokenResponseSchema>;
260
- export declare const ServiceCapabilitySchema: z.ZodObject<{
261
- name: z.ZodString;
262
- label: z.ZodOptional<z.ZodString>;
263
- description: z.ZodOptional<z.ZodString>;
264
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
265
- }, "strip", z.ZodTypeAny, {
266
- name: string;
267
- label?: string | undefined;
268
- description?: string | undefined;
269
- metadata?: Record<string, any> | undefined;
270
- }, {
271
- name: string;
272
- label?: string | undefined;
273
- description?: string | undefined;
274
- metadata?: Record<string, any> | undefined;
275
- }>;
276
- export type ServiceCapability = z.infer<typeof ServiceCapabilitySchema>;
277
- export declare const serviceCapabilitySchema: z.ZodObject<{
278
- name: z.ZodString;
279
- label: z.ZodOptional<z.ZodString>;
280
- description: z.ZodOptional<z.ZodString>;
281
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
282
- }, "strip", z.ZodTypeAny, {
283
- name: string;
284
- label?: string | undefined;
285
- description?: string | undefined;
286
- metadata?: Record<string, any> | undefined;
287
- }, {
288
- name: string;
289
- label?: string | undefined;
290
- description?: string | undefined;
291
- metadata?: Record<string, any> | undefined;
292
- }>;
293
- export declare const EventMetadataSchema: z.ZodObject<{
294
- name: z.ZodString;
295
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
296
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
297
- designOnly: z.ZodDefault<z.ZodBoolean>;
298
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
299
- }, "strip", z.ZodTypeAny, {
300
- name: string;
301
- designOnly: boolean;
302
- metadata?: Record<string, any> | undefined;
303
- direction?: "publish" | "subscribe" | undefined;
304
- schema?: Record<string, any> | undefined;
305
- }, {
306
- name: string;
307
- metadata?: Record<string, any> | undefined;
308
- direction?: "publish" | "subscribe" | undefined;
309
- schema?: Record<string, any> | undefined;
310
- designOnly?: boolean | undefined;
311
- }>;
312
- export type EventMetadata = z.infer<typeof EventMetadataSchema>;
313
- export declare const eventMetadataSchema: z.ZodObject<{
314
- name: z.ZodString;
315
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
316
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
317
- designOnly: z.ZodDefault<z.ZodBoolean>;
318
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
319
- }, "strip", z.ZodTypeAny, {
320
- name: string;
321
- designOnly: boolean;
322
- metadata?: Record<string, any> | undefined;
323
- direction?: "publish" | "subscribe" | undefined;
324
- schema?: Record<string, any> | undefined;
325
- }, {
326
- name: string;
327
- metadata?: Record<string, any> | undefined;
328
- direction?: "publish" | "subscribe" | undefined;
329
- schema?: Record<string, any> | undefined;
330
- designOnly?: boolean | undefined;
331
- }>;
332
- export declare const CapsuleManifestSchema: z.ZodObject<{
333
- kind: z.ZodLiteral<"CapsuleService">;
334
- schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
335
- code: z.ZodString;
336
- name: z.ZodString;
337
- description: z.ZodOptional<z.ZodString>;
338
- version: z.ZodString;
339
- runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
340
- agentMode: z.ZodEnum<["embedded", "ophub"]>;
341
- capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
342
- name: z.ZodString;
343
- label: z.ZodOptional<z.ZodString>;
344
- description: z.ZodOptional<z.ZodString>;
345
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
346
- }, "strip", z.ZodTypeAny, {
347
- name: string;
348
- label?: string | undefined;
349
- description?: string | undefined;
350
- metadata?: Record<string, any> | undefined;
351
- }, {
352
- name: string;
353
- label?: string | undefined;
354
- description?: string | undefined;
355
- metadata?: Record<string, any> | undefined;
356
- }>]>, "many">>;
357
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
358
- name: z.ZodString;
359
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
360
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
361
- designOnly: z.ZodDefault<z.ZodBoolean>;
362
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
363
- }, "strip", z.ZodTypeAny, {
364
- name: string;
365
- designOnly: boolean;
366
- metadata?: Record<string, any> | undefined;
367
- direction?: "publish" | "subscribe" | undefined;
368
- schema?: Record<string, any> | undefined;
369
- }, {
370
- name: string;
371
- metadata?: Record<string, any> | undefined;
372
- direction?: "publish" | "subscribe" | undefined;
373
- schema?: Record<string, any> | undefined;
374
- designOnly?: boolean | undefined;
375
- }>, "many">>;
376
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
377
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
378
- kind: z.ZodLiteral<"CapsuleService">;
379
- schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
380
- code: z.ZodString;
381
- name: z.ZodString;
382
- description: z.ZodOptional<z.ZodString>;
383
- version: z.ZodString;
384
- runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
385
- agentMode: z.ZodEnum<["embedded", "ophub"]>;
386
- capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
387
- name: z.ZodString;
388
- label: z.ZodOptional<z.ZodString>;
389
- description: z.ZodOptional<z.ZodString>;
390
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
391
- }, "strip", z.ZodTypeAny, {
392
- name: string;
393
- label?: string | undefined;
394
- description?: string | undefined;
395
- metadata?: Record<string, any> | undefined;
396
- }, {
397
- name: string;
398
- label?: string | undefined;
399
- description?: string | undefined;
400
- metadata?: Record<string, any> | undefined;
401
- }>]>, "many">>;
402
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
403
- name: z.ZodString;
404
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
405
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
406
- designOnly: z.ZodDefault<z.ZodBoolean>;
407
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
408
- }, "strip", z.ZodTypeAny, {
409
- name: string;
410
- designOnly: boolean;
411
- metadata?: Record<string, any> | undefined;
412
- direction?: "publish" | "subscribe" | undefined;
413
- schema?: Record<string, any> | undefined;
414
- }, {
415
- name: string;
416
- metadata?: Record<string, any> | undefined;
417
- direction?: "publish" | "subscribe" | undefined;
418
- schema?: Record<string, any> | undefined;
419
- designOnly?: boolean | undefined;
420
- }>, "many">>;
421
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
422
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
423
- kind: z.ZodLiteral<"CapsuleService">;
424
- schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
425
- code: z.ZodString;
426
- name: z.ZodString;
427
- description: z.ZodOptional<z.ZodString>;
428
- version: z.ZodString;
429
- runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
430
- agentMode: z.ZodEnum<["embedded", "ophub"]>;
431
- capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
432
- name: z.ZodString;
433
- label: z.ZodOptional<z.ZodString>;
434
- description: z.ZodOptional<z.ZodString>;
435
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
436
- }, "strip", z.ZodTypeAny, {
437
- name: string;
438
- label?: string | undefined;
439
- description?: string | undefined;
440
- metadata?: Record<string, any> | undefined;
441
- }, {
442
- name: string;
443
- label?: string | undefined;
444
- description?: string | undefined;
445
- metadata?: Record<string, any> | undefined;
446
- }>]>, "many">>;
447
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
448
- name: z.ZodString;
449
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
450
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
451
- designOnly: z.ZodDefault<z.ZodBoolean>;
452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
453
- }, "strip", z.ZodTypeAny, {
454
- name: string;
455
- designOnly: boolean;
456
- metadata?: Record<string, any> | undefined;
457
- direction?: "publish" | "subscribe" | undefined;
458
- schema?: Record<string, any> | undefined;
459
- }, {
460
- name: string;
461
- metadata?: Record<string, any> | undefined;
462
- direction?: "publish" | "subscribe" | undefined;
463
- schema?: Record<string, any> | undefined;
464
- designOnly?: boolean | undefined;
465
- }>, "many">>;
466
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
467
- }, z.ZodTypeAny, "passthrough">>;
468
- export type CapsuleManifest = z.infer<typeof CapsuleManifestSchema>;
469
- export declare const HealthReportInputSchema: z.ZodObject<{
470
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
471
- message: z.ZodOptional<z.ZodString>;
472
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
473
- }, "strip", z.ZodTypeAny, {
474
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
475
- message?: string | undefined;
476
- details?: Record<string, any> | undefined;
477
- }, {
478
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
479
- message?: string | undefined;
480
- details?: Record<string, any> | undefined;
481
- }>;
482
- export type HealthReportInput = z.infer<typeof HealthReportInputSchema>;
483
- export declare const healthReportInputSchema: z.ZodObject<{
484
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
485
- message: z.ZodOptional<z.ZodString>;
486
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
487
- }, "strip", z.ZodTypeAny, {
488
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
489
- message?: string | undefined;
490
- details?: Record<string, any> | undefined;
491
- }, {
492
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
493
- message?: string | undefined;
494
- details?: Record<string, any> | undefined;
495
- }>;
496
- export declare const ConfigItemInputSchema: z.ZodObject<{
497
- key: z.ZodString;
498
- label: z.ZodOptional<z.ZodString>;
499
- type: z.ZodString;
500
- source: z.ZodOptional<z.ZodString>;
501
- editable: z.ZodOptional<z.ZodBoolean>;
502
- sensitive: z.ZodOptional<z.ZodBoolean>;
503
- valuePreview: z.ZodOptional<z.ZodString>;
504
- defaultValue: z.ZodOptional<z.ZodString>;
505
- secretRef: z.ZodOptional<z.ZodString>;
506
- }, "strip", z.ZodTypeAny, {
507
- type: string;
508
- key: string;
509
- label?: string | undefined;
510
- source?: string | undefined;
511
- editable?: boolean | undefined;
512
- sensitive?: boolean | undefined;
513
- valuePreview?: string | undefined;
514
- defaultValue?: string | undefined;
515
- secretRef?: string | undefined;
516
- }, {
517
- type: string;
518
- key: string;
519
- label?: string | undefined;
520
- source?: string | undefined;
521
- editable?: boolean | undefined;
522
- sensitive?: boolean | undefined;
523
- valuePreview?: string | undefined;
524
- defaultValue?: string | undefined;
525
- secretRef?: string | undefined;
526
- }>;
527
- export type ConfigItemInput = z.infer<typeof ConfigItemInputSchema>;
528
- export declare const configItemInputSchema: z.ZodObject<{
529
- key: z.ZodString;
530
- label: z.ZodOptional<z.ZodString>;
531
- type: z.ZodString;
532
- source: z.ZodOptional<z.ZodString>;
533
- editable: z.ZodOptional<z.ZodBoolean>;
534
- sensitive: z.ZodOptional<z.ZodBoolean>;
535
- valuePreview: z.ZodOptional<z.ZodString>;
536
- defaultValue: z.ZodOptional<z.ZodString>;
537
- secretRef: z.ZodOptional<z.ZodString>;
538
- }, "strip", z.ZodTypeAny, {
539
- type: string;
540
- key: string;
541
- label?: string | undefined;
542
- source?: string | undefined;
543
- editable?: boolean | undefined;
544
- sensitive?: boolean | undefined;
545
- valuePreview?: string | undefined;
546
- defaultValue?: string | undefined;
547
- secretRef?: string | undefined;
548
- }, {
549
- type: string;
550
- key: string;
551
- label?: string | undefined;
552
- source?: string | undefined;
553
- editable?: boolean | undefined;
554
- sensitive?: boolean | undefined;
555
- valuePreview?: string | undefined;
556
- defaultValue?: string | undefined;
557
- secretRef?: string | undefined;
558
- }>;
559
- export declare const ActionDefinitionInputSchema: z.ZodObject<{
560
- name: z.ZodString;
561
- label: z.ZodString;
562
- description: z.ZodOptional<z.ZodString>;
563
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
564
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
565
- category: z.ZodOptional<z.ZodString>;
566
- order: z.ZodOptional<z.ZodNumber>;
567
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
568
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
569
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
570
- }, "strip", z.ZodTypeAny, {
571
- name: string;
572
- label: string;
573
- description?: string | undefined;
574
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
575
- requiresConfirmation?: boolean | undefined;
576
- category?: string | undefined;
577
- order?: number | undefined;
578
- inputSchema?: Record<string, any> | undefined;
579
- outputSchema?: Record<string, any> | undefined;
580
- timeoutSeconds?: number | undefined;
581
- }, {
582
- name: string;
583
- label: string;
584
- description?: string | undefined;
585
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
586
- requiresConfirmation?: boolean | undefined;
587
- category?: string | undefined;
588
- order?: number | undefined;
589
- inputSchema?: Record<string, any> | undefined;
590
- outputSchema?: Record<string, any> | undefined;
591
- timeoutSeconds?: number | undefined;
592
- }>;
593
- export type ActionDefinitionInput = z.infer<typeof ActionDefinitionInputSchema>;
594
- export declare const actionDefinitionInputSchema: z.ZodObject<{
595
- name: z.ZodString;
596
- label: z.ZodString;
597
- description: z.ZodOptional<z.ZodString>;
598
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
599
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
600
- category: z.ZodOptional<z.ZodString>;
601
- order: z.ZodOptional<z.ZodNumber>;
602
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
603
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
604
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
605
- }, "strip", z.ZodTypeAny, {
606
- name: string;
607
- label: string;
608
- description?: string | undefined;
609
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
610
- requiresConfirmation?: boolean | undefined;
611
- category?: string | undefined;
612
- order?: number | undefined;
613
- inputSchema?: Record<string, any> | undefined;
614
- outputSchema?: Record<string, any> | undefined;
615
- timeoutSeconds?: number | undefined;
616
- }, {
617
- name: string;
618
- label: string;
619
- description?: string | undefined;
620
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
621
- requiresConfirmation?: boolean | undefined;
622
- category?: string | undefined;
623
- order?: number | undefined;
624
- inputSchema?: Record<string, any> | undefined;
625
- outputSchema?: Record<string, any> | undefined;
626
- timeoutSeconds?: number | undefined;
627
- }>;
628
- export declare const ReportedServiceSchema: z.ZodObject<{
629
- code: z.ZodString;
630
- name: z.ZodString;
631
- description: z.ZodOptional<z.ZodString>;
632
- version: z.ZodOptional<z.ZodString>;
633
- runtime: z.ZodOptional<z.ZodString>;
634
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
635
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
636
- name: z.ZodString;
637
- label: z.ZodOptional<z.ZodString>;
638
- description: z.ZodOptional<z.ZodString>;
639
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
640
- }, "strip", z.ZodTypeAny, {
641
- name: string;
642
- label?: string | undefined;
643
- description?: string | undefined;
644
- metadata?: Record<string, any> | undefined;
645
- }, {
646
- name: string;
647
- label?: string | undefined;
648
- description?: string | undefined;
649
- metadata?: Record<string, any> | undefined;
650
- }>, "many">>;
651
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
652
- name: z.ZodString;
653
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
654
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
655
- designOnly: z.ZodDefault<z.ZodBoolean>;
656
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
657
- }, "strip", z.ZodTypeAny, {
658
- name: string;
659
- designOnly: boolean;
660
- metadata?: Record<string, any> | undefined;
661
- direction?: "publish" | "subscribe" | undefined;
662
- schema?: Record<string, any> | undefined;
663
- }, {
664
- name: string;
665
- metadata?: Record<string, any> | undefined;
666
- direction?: "publish" | "subscribe" | undefined;
667
- schema?: Record<string, any> | undefined;
668
- designOnly?: boolean | undefined;
669
- }>, "many">>;
670
- health: z.ZodOptional<z.ZodObject<{
671
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
672
- message: z.ZodOptional<z.ZodString>;
673
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
674
- }, "strip", z.ZodTypeAny, {
675
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
676
- message?: string | undefined;
677
- details?: Record<string, any> | undefined;
678
- }, {
679
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
680
- message?: string | undefined;
681
- details?: Record<string, any> | undefined;
682
- }>>;
683
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
684
- key: z.ZodString;
685
- label: z.ZodOptional<z.ZodString>;
686
- type: z.ZodString;
687
- source: z.ZodOptional<z.ZodString>;
688
- editable: z.ZodOptional<z.ZodBoolean>;
689
- sensitive: z.ZodOptional<z.ZodBoolean>;
690
- valuePreview: z.ZodOptional<z.ZodString>;
691
- defaultValue: z.ZodOptional<z.ZodString>;
692
- secretRef: z.ZodOptional<z.ZodString>;
693
- }, "strip", z.ZodTypeAny, {
694
- type: string;
695
- key: string;
696
- label?: string | undefined;
697
- source?: string | undefined;
698
- editable?: boolean | undefined;
699
- sensitive?: boolean | undefined;
700
- valuePreview?: string | undefined;
701
- defaultValue?: string | undefined;
702
- secretRef?: string | undefined;
703
- }, {
704
- type: string;
705
- key: string;
706
- label?: string | undefined;
707
- source?: string | undefined;
708
- editable?: boolean | undefined;
709
- sensitive?: boolean | undefined;
710
- valuePreview?: string | undefined;
711
- defaultValue?: string | undefined;
712
- secretRef?: string | undefined;
713
- }>, "many">>;
714
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
715
- name: z.ZodString;
716
- label: z.ZodString;
717
- description: z.ZodOptional<z.ZodString>;
718
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
719
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
720
- category: z.ZodOptional<z.ZodString>;
721
- order: z.ZodOptional<z.ZodNumber>;
722
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
723
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
724
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
725
- }, "strip", z.ZodTypeAny, {
726
- name: string;
727
- label: string;
728
- description?: string | undefined;
729
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
730
- requiresConfirmation?: boolean | undefined;
731
- category?: string | undefined;
732
- order?: number | undefined;
733
- inputSchema?: Record<string, any> | undefined;
734
- outputSchema?: Record<string, any> | undefined;
735
- timeoutSeconds?: number | undefined;
736
- }, {
737
- name: string;
738
- label: string;
739
- description?: string | undefined;
740
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
741
- requiresConfirmation?: boolean | undefined;
742
- category?: string | undefined;
743
- order?: number | undefined;
744
- inputSchema?: Record<string, any> | undefined;
745
- outputSchema?: Record<string, any> | undefined;
746
- timeoutSeconds?: number | undefined;
747
- }>, "many">>;
748
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
749
- }, "strip", z.ZodTypeAny, {
750
- code: string;
751
- name: string;
752
- manifest: Record<string, any>;
753
- runtime?: string | undefined;
754
- description?: string | undefined;
755
- version?: string | undefined;
756
- capabilities?: {
757
- name: string;
758
- label?: string | undefined;
759
- description?: string | undefined;
760
- metadata?: Record<string, any> | undefined;
761
- }[] | undefined;
762
- events?: {
763
- name: string;
764
- designOnly: boolean;
765
- metadata?: Record<string, any> | undefined;
766
- direction?: "publish" | "subscribe" | undefined;
767
- schema?: Record<string, any> | undefined;
768
- }[] | undefined;
769
- health?: {
770
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
771
- message?: string | undefined;
772
- details?: Record<string, any> | undefined;
773
- } | undefined;
774
- configs?: {
775
- type: string;
776
- key: string;
777
- label?: string | undefined;
778
- source?: string | undefined;
779
- editable?: boolean | undefined;
780
- sensitive?: boolean | undefined;
781
- valuePreview?: string | undefined;
782
- defaultValue?: string | undefined;
783
- secretRef?: string | undefined;
784
- }[] | undefined;
785
- actions?: {
786
- name: string;
787
- label: string;
788
- description?: string | undefined;
789
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
790
- requiresConfirmation?: boolean | undefined;
791
- category?: string | undefined;
792
- order?: number | undefined;
793
- inputSchema?: Record<string, any> | undefined;
794
- outputSchema?: Record<string, any> | undefined;
795
- timeoutSeconds?: number | undefined;
796
- }[] | undefined;
797
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
798
- }, {
799
- code: string;
800
- name: string;
801
- manifest: Record<string, any>;
802
- runtime?: string | undefined;
803
- description?: string | undefined;
804
- version?: string | undefined;
805
- capabilities?: {
806
- name: string;
807
- label?: string | undefined;
808
- description?: string | undefined;
809
- metadata?: Record<string, any> | undefined;
810
- }[] | undefined;
811
- events?: {
812
- name: string;
813
- metadata?: Record<string, any> | undefined;
814
- direction?: "publish" | "subscribe" | undefined;
815
- schema?: Record<string, any> | undefined;
816
- designOnly?: boolean | undefined;
817
- }[] | undefined;
818
- health?: {
819
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
820
- message?: string | undefined;
821
- details?: Record<string, any> | undefined;
822
- } | undefined;
823
- configs?: {
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
- }[] | undefined;
834
- actions?: {
835
- name: string;
836
- label: string;
837
- description?: string | undefined;
838
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
839
- requiresConfirmation?: boolean | undefined;
840
- category?: string | undefined;
841
- order?: number | undefined;
842
- inputSchema?: Record<string, any> | undefined;
843
- outputSchema?: Record<string, any> | undefined;
844
- timeoutSeconds?: number | undefined;
845
- }[] | undefined;
846
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
847
- }>;
848
- export type ReportedService = z.infer<typeof ReportedServiceSchema>;
849
- export declare const reportedServiceSchema: z.ZodObject<{
850
- code: z.ZodString;
851
- name: z.ZodString;
852
- description: z.ZodOptional<z.ZodString>;
853
- version: z.ZodOptional<z.ZodString>;
854
- runtime: z.ZodOptional<z.ZodString>;
855
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
856
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
857
- name: z.ZodString;
858
- label: z.ZodOptional<z.ZodString>;
859
- description: z.ZodOptional<z.ZodString>;
860
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
861
- }, "strip", z.ZodTypeAny, {
862
- name: string;
863
- label?: string | undefined;
864
- description?: string | undefined;
865
- metadata?: Record<string, any> | undefined;
866
- }, {
867
- name: string;
868
- label?: string | undefined;
869
- description?: string | undefined;
870
- metadata?: Record<string, any> | undefined;
871
- }>, "many">>;
872
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
- name: z.ZodString;
874
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
875
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
876
- designOnly: z.ZodDefault<z.ZodBoolean>;
877
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
878
- }, "strip", z.ZodTypeAny, {
879
- name: string;
880
- designOnly: boolean;
881
- metadata?: Record<string, any> | undefined;
882
- direction?: "publish" | "subscribe" | undefined;
883
- schema?: Record<string, any> | undefined;
884
- }, {
885
- name: string;
886
- metadata?: Record<string, any> | undefined;
887
- direction?: "publish" | "subscribe" | undefined;
888
- schema?: Record<string, any> | undefined;
889
- designOnly?: boolean | undefined;
890
- }>, "many">>;
891
- health: z.ZodOptional<z.ZodObject<{
892
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
893
- message: z.ZodOptional<z.ZodString>;
894
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
895
- }, "strip", z.ZodTypeAny, {
896
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
897
- message?: string | undefined;
898
- details?: Record<string, any> | undefined;
899
- }, {
900
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
901
- message?: string | undefined;
902
- details?: Record<string, any> | undefined;
903
- }>>;
904
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
905
- key: z.ZodString;
906
- label: z.ZodOptional<z.ZodString>;
907
- type: z.ZodString;
908
- source: z.ZodOptional<z.ZodString>;
909
- editable: z.ZodOptional<z.ZodBoolean>;
910
- sensitive: z.ZodOptional<z.ZodBoolean>;
911
- valuePreview: z.ZodOptional<z.ZodString>;
912
- defaultValue: z.ZodOptional<z.ZodString>;
913
- secretRef: z.ZodOptional<z.ZodString>;
914
- }, "strip", z.ZodTypeAny, {
915
- type: string;
916
- key: string;
917
- label?: string | undefined;
918
- source?: string | undefined;
919
- editable?: boolean | undefined;
920
- sensitive?: boolean | undefined;
921
- valuePreview?: string | undefined;
922
- defaultValue?: string | undefined;
923
- secretRef?: string | undefined;
924
- }, {
925
- type: string;
926
- key: string;
927
- label?: string | undefined;
928
- source?: string | undefined;
929
- editable?: boolean | undefined;
930
- sensitive?: boolean | undefined;
931
- valuePreview?: string | undefined;
932
- defaultValue?: string | undefined;
933
- secretRef?: string | undefined;
934
- }>, "many">>;
935
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
936
- name: z.ZodString;
937
- label: z.ZodString;
938
- description: z.ZodOptional<z.ZodString>;
939
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
940
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
941
- category: z.ZodOptional<z.ZodString>;
942
- order: z.ZodOptional<z.ZodNumber>;
943
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
944
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
945
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
946
- }, "strip", z.ZodTypeAny, {
947
- name: string;
948
- label: string;
949
- description?: string | undefined;
950
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
951
- requiresConfirmation?: boolean | undefined;
952
- category?: string | undefined;
953
- order?: number | undefined;
954
- inputSchema?: Record<string, any> | undefined;
955
- outputSchema?: Record<string, any> | undefined;
956
- timeoutSeconds?: number | undefined;
957
- }, {
958
- name: string;
959
- label: string;
960
- description?: string | undefined;
961
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
962
- requiresConfirmation?: boolean | undefined;
963
- category?: string | undefined;
964
- order?: number | undefined;
965
- inputSchema?: Record<string, any> | undefined;
966
- outputSchema?: Record<string, any> | undefined;
967
- timeoutSeconds?: number | undefined;
968
- }>, "many">>;
969
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
970
- }, "strip", z.ZodTypeAny, {
971
- code: string;
972
- name: string;
973
- manifest: Record<string, any>;
974
- runtime?: string | undefined;
975
- description?: string | undefined;
976
- version?: string | undefined;
977
- capabilities?: {
978
- name: string;
979
- label?: string | undefined;
980
- description?: string | undefined;
981
- metadata?: Record<string, any> | undefined;
982
- }[] | undefined;
983
- events?: {
984
- name: string;
985
- designOnly: boolean;
986
- metadata?: Record<string, any> | undefined;
987
- direction?: "publish" | "subscribe" | undefined;
988
- schema?: Record<string, any> | undefined;
989
- }[] | undefined;
990
- health?: {
991
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
992
- message?: string | undefined;
993
- details?: Record<string, any> | undefined;
994
- } | undefined;
995
- configs?: {
996
- type: string;
997
- key: string;
998
- label?: string | undefined;
999
- source?: string | undefined;
1000
- editable?: boolean | undefined;
1001
- sensitive?: boolean | undefined;
1002
- valuePreview?: string | undefined;
1003
- defaultValue?: string | undefined;
1004
- secretRef?: string | undefined;
1005
- }[] | undefined;
1006
- actions?: {
1007
- name: string;
1008
- label: string;
1009
- description?: string | undefined;
1010
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1011
- requiresConfirmation?: boolean | undefined;
1012
- category?: string | undefined;
1013
- order?: number | undefined;
1014
- inputSchema?: Record<string, any> | undefined;
1015
- outputSchema?: Record<string, any> | undefined;
1016
- timeoutSeconds?: number | undefined;
1017
- }[] | undefined;
1018
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1019
- }, {
1020
- code: string;
1021
- name: string;
1022
- manifest: Record<string, any>;
1023
- runtime?: string | undefined;
1024
- description?: string | undefined;
1025
- version?: string | undefined;
1026
- capabilities?: {
1027
- name: string;
1028
- label?: string | undefined;
1029
- description?: string | undefined;
1030
- metadata?: Record<string, any> | undefined;
1031
- }[] | undefined;
1032
- events?: {
1033
- name: string;
1034
- metadata?: Record<string, any> | undefined;
1035
- direction?: "publish" | "subscribe" | undefined;
1036
- schema?: Record<string, any> | undefined;
1037
- designOnly?: boolean | undefined;
1038
- }[] | undefined;
1039
- health?: {
1040
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1041
- message?: string | undefined;
1042
- details?: Record<string, any> | undefined;
1043
- } | undefined;
1044
- configs?: {
1045
- type: string;
1046
- key: string;
1047
- label?: string | undefined;
1048
- source?: string | undefined;
1049
- editable?: boolean | undefined;
1050
- sensitive?: boolean | undefined;
1051
- valuePreview?: string | undefined;
1052
- defaultValue?: string | undefined;
1053
- secretRef?: string | undefined;
1054
- }[] | undefined;
1055
- actions?: {
1056
- name: string;
1057
- label: string;
1058
- description?: string | undefined;
1059
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1060
- requiresConfirmation?: boolean | undefined;
1061
- category?: string | undefined;
1062
- order?: number | undefined;
1063
- inputSchema?: Record<string, any> | undefined;
1064
- outputSchema?: Record<string, any> | undefined;
1065
- timeoutSeconds?: number | undefined;
1066
- }[] | undefined;
1067
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1068
- }>;
1069
- export declare const ServiceReportRequestSchema: z.ZodObject<{
1070
- services: z.ZodArray<z.ZodObject<{
1071
- code: z.ZodString;
1072
- name: z.ZodString;
1073
- description: z.ZodOptional<z.ZodString>;
1074
- version: z.ZodOptional<z.ZodString>;
1075
- runtime: z.ZodOptional<z.ZodString>;
1076
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1077
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1078
- name: z.ZodString;
1079
- label: z.ZodOptional<z.ZodString>;
1080
- description: z.ZodOptional<z.ZodString>;
1081
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1082
- }, "strip", z.ZodTypeAny, {
1083
- name: string;
1084
- label?: string | undefined;
1085
- description?: string | undefined;
1086
- metadata?: Record<string, any> | undefined;
1087
- }, {
1088
- name: string;
1089
- label?: string | undefined;
1090
- description?: string | undefined;
1091
- metadata?: Record<string, any> | undefined;
1092
- }>, "many">>;
1093
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1094
- name: z.ZodString;
1095
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
1096
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1097
- designOnly: z.ZodDefault<z.ZodBoolean>;
1098
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1099
- }, "strip", z.ZodTypeAny, {
1100
- name: string;
1101
- designOnly: boolean;
1102
- metadata?: Record<string, any> | undefined;
1103
- direction?: "publish" | "subscribe" | undefined;
1104
- schema?: Record<string, any> | undefined;
1105
- }, {
1106
- name: string;
1107
- metadata?: Record<string, any> | undefined;
1108
- direction?: "publish" | "subscribe" | undefined;
1109
- schema?: Record<string, any> | undefined;
1110
- designOnly?: boolean | undefined;
1111
- }>, "many">>;
1112
- health: z.ZodOptional<z.ZodObject<{
1113
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1114
- message: z.ZodOptional<z.ZodString>;
1115
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1116
- }, "strip", z.ZodTypeAny, {
1117
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1118
- message?: string | undefined;
1119
- details?: Record<string, any> | undefined;
1120
- }, {
1121
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1122
- message?: string | undefined;
1123
- details?: Record<string, any> | undefined;
1124
- }>>;
1125
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1126
- key: z.ZodString;
1127
- label: z.ZodOptional<z.ZodString>;
1128
- type: z.ZodString;
1129
- source: z.ZodOptional<z.ZodString>;
1130
- editable: z.ZodOptional<z.ZodBoolean>;
1131
- sensitive: z.ZodOptional<z.ZodBoolean>;
1132
- valuePreview: z.ZodOptional<z.ZodString>;
1133
- defaultValue: z.ZodOptional<z.ZodString>;
1134
- secretRef: z.ZodOptional<z.ZodString>;
1135
- }, "strip", z.ZodTypeAny, {
1136
- type: string;
1137
- key: string;
1138
- label?: string | undefined;
1139
- source?: string | undefined;
1140
- editable?: boolean | undefined;
1141
- sensitive?: boolean | undefined;
1142
- valuePreview?: string | undefined;
1143
- defaultValue?: string | undefined;
1144
- secretRef?: string | undefined;
1145
- }, {
1146
- type: string;
1147
- key: string;
1148
- label?: string | undefined;
1149
- source?: string | undefined;
1150
- editable?: boolean | undefined;
1151
- sensitive?: boolean | undefined;
1152
- valuePreview?: string | undefined;
1153
- defaultValue?: string | undefined;
1154
- secretRef?: string | undefined;
1155
- }>, "many">>;
1156
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1157
- name: z.ZodString;
1158
- label: z.ZodString;
1159
- description: z.ZodOptional<z.ZodString>;
1160
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1161
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1162
- category: z.ZodOptional<z.ZodString>;
1163
- order: z.ZodOptional<z.ZodNumber>;
1164
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1165
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1166
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1167
- }, "strip", z.ZodTypeAny, {
1168
- name: string;
1169
- label: string;
1170
- description?: string | undefined;
1171
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1172
- requiresConfirmation?: boolean | undefined;
1173
- category?: string | undefined;
1174
- order?: number | undefined;
1175
- inputSchema?: Record<string, any> | undefined;
1176
- outputSchema?: Record<string, any> | undefined;
1177
- timeoutSeconds?: number | undefined;
1178
- }, {
1179
- name: string;
1180
- label: string;
1181
- description?: string | undefined;
1182
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1183
- requiresConfirmation?: boolean | undefined;
1184
- category?: string | undefined;
1185
- order?: number | undefined;
1186
- inputSchema?: Record<string, any> | undefined;
1187
- outputSchema?: Record<string, any> | undefined;
1188
- timeoutSeconds?: number | undefined;
1189
- }>, "many">>;
1190
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
1191
- }, "strip", z.ZodTypeAny, {
1192
- code: string;
1193
- name: string;
1194
- manifest: Record<string, any>;
1195
- runtime?: string | undefined;
1196
- description?: string | undefined;
1197
- version?: string | undefined;
1198
- capabilities?: {
1199
- name: string;
1200
- label?: string | undefined;
1201
- description?: string | undefined;
1202
- metadata?: Record<string, any> | undefined;
1203
- }[] | undefined;
1204
- events?: {
1205
- name: string;
1206
- designOnly: boolean;
1207
- metadata?: Record<string, any> | undefined;
1208
- direction?: "publish" | "subscribe" | undefined;
1209
- schema?: Record<string, any> | undefined;
1210
- }[] | undefined;
1211
- health?: {
1212
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1213
- message?: string | undefined;
1214
- details?: Record<string, any> | undefined;
1215
- } | undefined;
1216
- configs?: {
1217
- type: string;
1218
- key: string;
1219
- label?: string | undefined;
1220
- source?: string | undefined;
1221
- editable?: boolean | undefined;
1222
- sensitive?: boolean | undefined;
1223
- valuePreview?: string | undefined;
1224
- defaultValue?: string | undefined;
1225
- secretRef?: string | undefined;
1226
- }[] | undefined;
1227
- actions?: {
1228
- name: string;
1229
- label: string;
1230
- description?: string | undefined;
1231
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1232
- requiresConfirmation?: boolean | undefined;
1233
- category?: string | undefined;
1234
- order?: number | undefined;
1235
- inputSchema?: Record<string, any> | undefined;
1236
- outputSchema?: Record<string, any> | undefined;
1237
- timeoutSeconds?: number | undefined;
1238
- }[] | undefined;
1239
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1240
- }, {
1241
- code: string;
1242
- name: string;
1243
- manifest: Record<string, any>;
1244
- runtime?: string | undefined;
1245
- description?: string | undefined;
1246
- version?: string | undefined;
1247
- capabilities?: {
1248
- name: string;
1249
- label?: string | undefined;
1250
- description?: string | undefined;
1251
- metadata?: Record<string, any> | undefined;
1252
- }[] | undefined;
1253
- events?: {
1254
- name: string;
1255
- metadata?: Record<string, any> | undefined;
1256
- direction?: "publish" | "subscribe" | undefined;
1257
- schema?: Record<string, any> | undefined;
1258
- designOnly?: boolean | undefined;
1259
- }[] | undefined;
1260
- health?: {
1261
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1262
- message?: string | undefined;
1263
- details?: Record<string, any> | undefined;
1264
- } | undefined;
1265
- configs?: {
1266
- type: string;
1267
- key: string;
1268
- label?: string | undefined;
1269
- source?: string | undefined;
1270
- editable?: boolean | undefined;
1271
- sensitive?: boolean | undefined;
1272
- valuePreview?: string | undefined;
1273
- defaultValue?: string | undefined;
1274
- secretRef?: string | undefined;
1275
- }[] | undefined;
1276
- actions?: {
1277
- name: string;
1278
- label: string;
1279
- description?: string | undefined;
1280
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1281
- requiresConfirmation?: boolean | undefined;
1282
- category?: string | undefined;
1283
- order?: number | undefined;
1284
- inputSchema?: Record<string, any> | undefined;
1285
- outputSchema?: Record<string, any> | undefined;
1286
- timeoutSeconds?: number | undefined;
1287
- }[] | undefined;
1288
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1289
- }>, "many">;
1290
- }, "strip", z.ZodTypeAny, {
1291
- services: {
1292
- code: string;
1293
- name: string;
1294
- manifest: Record<string, any>;
1295
- runtime?: string | undefined;
1296
- description?: string | undefined;
1297
- version?: string | undefined;
1298
- capabilities?: {
1299
- name: string;
1300
- label?: string | undefined;
1301
- description?: string | undefined;
1302
- metadata?: Record<string, any> | undefined;
1303
- }[] | undefined;
1304
- events?: {
1305
- name: string;
1306
- designOnly: boolean;
1307
- metadata?: Record<string, any> | undefined;
1308
- direction?: "publish" | "subscribe" | undefined;
1309
- schema?: Record<string, any> | undefined;
1310
- }[] | undefined;
1311
- health?: {
1312
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1313
- message?: string | undefined;
1314
- details?: Record<string, any> | undefined;
1315
- } | undefined;
1316
- configs?: {
1317
- type: string;
1318
- key: string;
1319
- label?: string | undefined;
1320
- source?: string | undefined;
1321
- editable?: boolean | undefined;
1322
- sensitive?: boolean | undefined;
1323
- valuePreview?: string | undefined;
1324
- defaultValue?: string | undefined;
1325
- secretRef?: string | undefined;
1326
- }[] | undefined;
1327
- actions?: {
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
- }[] | undefined;
1339
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1340
- }[];
1341
- }, {
1342
- services: {
1343
- code: string;
1344
- name: string;
1345
- manifest: Record<string, any>;
1346
- runtime?: string | undefined;
1347
- description?: string | undefined;
1348
- version?: string | undefined;
1349
- capabilities?: {
1350
- name: string;
1351
- label?: string | undefined;
1352
- description?: string | undefined;
1353
- metadata?: Record<string, any> | undefined;
1354
- }[] | undefined;
1355
- events?: {
1356
- name: string;
1357
- metadata?: Record<string, any> | undefined;
1358
- direction?: "publish" | "subscribe" | undefined;
1359
- schema?: Record<string, any> | undefined;
1360
- designOnly?: boolean | undefined;
1361
- }[] | undefined;
1362
- health?: {
1363
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1364
- message?: string | undefined;
1365
- details?: Record<string, any> | undefined;
1366
- } | undefined;
1367
- configs?: {
1368
- type: string;
1369
- key: string;
1370
- label?: string | undefined;
1371
- source?: string | undefined;
1372
- editable?: boolean | undefined;
1373
- sensitive?: boolean | undefined;
1374
- valuePreview?: string | undefined;
1375
- defaultValue?: string | undefined;
1376
- secretRef?: string | undefined;
1377
- }[] | undefined;
1378
- actions?: {
1379
- name: string;
1380
- label: string;
1381
- description?: string | undefined;
1382
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1383
- requiresConfirmation?: boolean | undefined;
1384
- category?: string | undefined;
1385
- order?: number | undefined;
1386
- inputSchema?: Record<string, any> | undefined;
1387
- outputSchema?: Record<string, any> | undefined;
1388
- timeoutSeconds?: number | undefined;
1389
- }[] | undefined;
1390
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1391
- }[];
1392
- }>;
1393
- export type ServiceReportRequest = z.infer<typeof ServiceReportRequestSchema>;
1394
- export declare const serviceReportRequestSchema: z.ZodObject<{
1395
- services: z.ZodArray<z.ZodObject<{
1396
- code: z.ZodString;
1397
- name: z.ZodString;
1398
- description: z.ZodOptional<z.ZodString>;
1399
- version: z.ZodOptional<z.ZodString>;
1400
- runtime: z.ZodOptional<z.ZodString>;
1401
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1402
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1403
- name: z.ZodString;
1404
- label: z.ZodOptional<z.ZodString>;
1405
- description: z.ZodOptional<z.ZodString>;
1406
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1407
- }, "strip", z.ZodTypeAny, {
1408
- name: string;
1409
- label?: string | undefined;
1410
- description?: string | undefined;
1411
- metadata?: Record<string, any> | undefined;
1412
- }, {
1413
- name: string;
1414
- label?: string | undefined;
1415
- description?: string | undefined;
1416
- metadata?: Record<string, any> | undefined;
1417
- }>, "many">>;
1418
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1419
- name: z.ZodString;
1420
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
1421
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1422
- designOnly: z.ZodDefault<z.ZodBoolean>;
1423
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1424
- }, "strip", z.ZodTypeAny, {
1425
- name: string;
1426
- designOnly: boolean;
1427
- metadata?: Record<string, any> | undefined;
1428
- direction?: "publish" | "subscribe" | undefined;
1429
- schema?: Record<string, any> | undefined;
1430
- }, {
1431
- name: string;
1432
- metadata?: Record<string, any> | undefined;
1433
- direction?: "publish" | "subscribe" | undefined;
1434
- schema?: Record<string, any> | undefined;
1435
- designOnly?: boolean | undefined;
1436
- }>, "many">>;
1437
- health: z.ZodOptional<z.ZodObject<{
1438
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1439
- message: z.ZodOptional<z.ZodString>;
1440
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1441
- }, "strip", z.ZodTypeAny, {
1442
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1443
- message?: string | undefined;
1444
- details?: Record<string, any> | undefined;
1445
- }, {
1446
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1447
- message?: string | undefined;
1448
- details?: Record<string, any> | undefined;
1449
- }>>;
1450
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1451
- key: z.ZodString;
1452
- label: z.ZodOptional<z.ZodString>;
1453
- type: z.ZodString;
1454
- source: z.ZodOptional<z.ZodString>;
1455
- editable: z.ZodOptional<z.ZodBoolean>;
1456
- sensitive: z.ZodOptional<z.ZodBoolean>;
1457
- valuePreview: z.ZodOptional<z.ZodString>;
1458
- defaultValue: z.ZodOptional<z.ZodString>;
1459
- secretRef: z.ZodOptional<z.ZodString>;
1460
- }, "strip", z.ZodTypeAny, {
1461
- type: string;
1462
- key: string;
1463
- label?: string | undefined;
1464
- source?: string | undefined;
1465
- editable?: boolean | undefined;
1466
- sensitive?: boolean | undefined;
1467
- valuePreview?: string | undefined;
1468
- defaultValue?: string | undefined;
1469
- secretRef?: string | undefined;
1470
- }, {
1471
- type: string;
1472
- key: string;
1473
- label?: string | undefined;
1474
- source?: string | undefined;
1475
- editable?: boolean | undefined;
1476
- sensitive?: boolean | undefined;
1477
- valuePreview?: string | undefined;
1478
- defaultValue?: string | undefined;
1479
- secretRef?: string | undefined;
1480
- }>, "many">>;
1481
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1482
- name: z.ZodString;
1483
- label: z.ZodString;
1484
- description: z.ZodOptional<z.ZodString>;
1485
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1486
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1487
- category: z.ZodOptional<z.ZodString>;
1488
- order: z.ZodOptional<z.ZodNumber>;
1489
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1490
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1491
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1492
- }, "strip", z.ZodTypeAny, {
1493
- name: string;
1494
- label: string;
1495
- description?: string | undefined;
1496
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1497
- requiresConfirmation?: boolean | undefined;
1498
- category?: string | undefined;
1499
- order?: number | undefined;
1500
- inputSchema?: Record<string, any> | undefined;
1501
- outputSchema?: Record<string, any> | undefined;
1502
- timeoutSeconds?: number | undefined;
1503
- }, {
1504
- name: string;
1505
- label: string;
1506
- description?: string | undefined;
1507
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1508
- requiresConfirmation?: boolean | undefined;
1509
- category?: string | undefined;
1510
- order?: number | undefined;
1511
- inputSchema?: Record<string, any> | undefined;
1512
- outputSchema?: Record<string, any> | undefined;
1513
- timeoutSeconds?: number | undefined;
1514
- }>, "many">>;
1515
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
1516
- }, "strip", z.ZodTypeAny, {
1517
- code: string;
1518
- name: string;
1519
- manifest: Record<string, any>;
1520
- runtime?: string | undefined;
1521
- description?: string | undefined;
1522
- version?: string | undefined;
1523
- capabilities?: {
1524
- name: string;
1525
- label?: string | undefined;
1526
- description?: string | undefined;
1527
- metadata?: Record<string, any> | undefined;
1528
- }[] | undefined;
1529
- events?: {
1530
- name: string;
1531
- designOnly: boolean;
1532
- metadata?: Record<string, any> | undefined;
1533
- direction?: "publish" | "subscribe" | undefined;
1534
- schema?: Record<string, any> | undefined;
1535
- }[] | undefined;
1536
- health?: {
1537
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1538
- message?: string | undefined;
1539
- details?: Record<string, any> | undefined;
1540
- } | undefined;
1541
- configs?: {
1542
- type: string;
1543
- key: string;
1544
- label?: string | undefined;
1545
- source?: string | undefined;
1546
- editable?: boolean | undefined;
1547
- sensitive?: boolean | undefined;
1548
- valuePreview?: string | undefined;
1549
- defaultValue?: string | undefined;
1550
- secretRef?: string | undefined;
1551
- }[] | undefined;
1552
- actions?: {
1553
- name: string;
1554
- label: string;
1555
- description?: string | undefined;
1556
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1557
- requiresConfirmation?: boolean | undefined;
1558
- category?: string | undefined;
1559
- order?: number | undefined;
1560
- inputSchema?: Record<string, any> | undefined;
1561
- outputSchema?: Record<string, any> | undefined;
1562
- timeoutSeconds?: number | undefined;
1563
- }[] | undefined;
1564
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1565
- }, {
1566
- code: string;
1567
- name: string;
1568
- manifest: Record<string, any>;
1569
- runtime?: string | undefined;
1570
- description?: string | undefined;
1571
- version?: string | undefined;
1572
- capabilities?: {
1573
- name: string;
1574
- label?: string | undefined;
1575
- description?: string | undefined;
1576
- metadata?: Record<string, any> | undefined;
1577
- }[] | undefined;
1578
- events?: {
1579
- name: string;
1580
- metadata?: Record<string, any> | undefined;
1581
- direction?: "publish" | "subscribe" | undefined;
1582
- schema?: Record<string, any> | undefined;
1583
- designOnly?: boolean | undefined;
1584
- }[] | undefined;
1585
- health?: {
1586
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1587
- message?: string | undefined;
1588
- details?: Record<string, any> | undefined;
1589
- } | undefined;
1590
- configs?: {
1591
- type: string;
1592
- key: string;
1593
- label?: string | undefined;
1594
- source?: string | undefined;
1595
- editable?: boolean | undefined;
1596
- sensitive?: boolean | undefined;
1597
- valuePreview?: string | undefined;
1598
- defaultValue?: string | undefined;
1599
- secretRef?: string | undefined;
1600
- }[] | undefined;
1601
- actions?: {
1602
- name: string;
1603
- label: string;
1604
- description?: string | undefined;
1605
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1606
- requiresConfirmation?: boolean | undefined;
1607
- category?: string | undefined;
1608
- order?: number | undefined;
1609
- inputSchema?: Record<string, any> | undefined;
1610
- outputSchema?: Record<string, any> | undefined;
1611
- timeoutSeconds?: number | undefined;
1612
- }[] | undefined;
1613
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1614
- }>, "many">;
1615
- }, "strip", z.ZodTypeAny, {
1616
- services: {
1617
- code: string;
1618
- name: string;
1619
- manifest: Record<string, any>;
1620
- runtime?: string | undefined;
1621
- description?: string | undefined;
1622
- version?: string | undefined;
1623
- capabilities?: {
1624
- name: string;
1625
- label?: string | undefined;
1626
- description?: string | undefined;
1627
- metadata?: Record<string, any> | undefined;
1628
- }[] | undefined;
1629
- events?: {
1630
- name: string;
1631
- designOnly: boolean;
1632
- metadata?: Record<string, any> | undefined;
1633
- direction?: "publish" | "subscribe" | undefined;
1634
- schema?: Record<string, any> | undefined;
1635
- }[] | undefined;
1636
- health?: {
1637
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1638
- message?: string | undefined;
1639
- details?: Record<string, any> | undefined;
1640
- } | undefined;
1641
- configs?: {
1642
- type: string;
1643
- key: string;
1644
- label?: string | undefined;
1645
- source?: string | undefined;
1646
- editable?: boolean | undefined;
1647
- sensitive?: boolean | undefined;
1648
- valuePreview?: string | undefined;
1649
- defaultValue?: string | undefined;
1650
- secretRef?: string | undefined;
1651
- }[] | undefined;
1652
- actions?: {
1653
- name: string;
1654
- label: string;
1655
- description?: string | undefined;
1656
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1657
- requiresConfirmation?: boolean | undefined;
1658
- category?: string | undefined;
1659
- order?: number | undefined;
1660
- inputSchema?: Record<string, any> | undefined;
1661
- outputSchema?: Record<string, any> | undefined;
1662
- timeoutSeconds?: number | undefined;
1663
- }[] | undefined;
1664
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1665
- }[];
1666
- }, {
1667
- services: {
1668
- code: string;
1669
- name: string;
1670
- manifest: Record<string, any>;
1671
- runtime?: string | undefined;
1672
- description?: string | undefined;
1673
- version?: string | undefined;
1674
- capabilities?: {
1675
- name: string;
1676
- label?: string | undefined;
1677
- description?: string | undefined;
1678
- metadata?: Record<string, any> | undefined;
1679
- }[] | undefined;
1680
- events?: {
1681
- name: string;
1682
- metadata?: Record<string, any> | undefined;
1683
- direction?: "publish" | "subscribe" | undefined;
1684
- schema?: Record<string, any> | undefined;
1685
- designOnly?: boolean | undefined;
1686
- }[] | undefined;
1687
- health?: {
1688
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1689
- message?: string | undefined;
1690
- details?: Record<string, any> | undefined;
1691
- } | undefined;
1692
- configs?: {
1693
- type: string;
1694
- key: string;
1695
- label?: string | undefined;
1696
- source?: string | undefined;
1697
- editable?: boolean | undefined;
1698
- sensitive?: boolean | undefined;
1699
- valuePreview?: string | undefined;
1700
- defaultValue?: string | undefined;
1701
- secretRef?: string | undefined;
1702
- }[] | undefined;
1703
- actions?: {
1704
- name: string;
1705
- label: string;
1706
- description?: string | undefined;
1707
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1708
- requiresConfirmation?: boolean | undefined;
1709
- category?: string | undefined;
1710
- order?: number | undefined;
1711
- inputSchema?: Record<string, any> | undefined;
1712
- outputSchema?: Record<string, any> | undefined;
1713
- timeoutSeconds?: number | undefined;
1714
- }[] | undefined;
1715
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1716
- }[];
1717
- }>;
1718
- export declare const RuntimeKindSchema: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
1719
- export type RuntimeKind = z.infer<typeof RuntimeKindSchema>;
1720
- export declare const RegisterAgentRequestSchema: z.ZodObject<{
1721
- registrationToken: z.ZodString;
1722
- agent: z.ZodObject<{
1723
- code: z.ZodString;
1724
- name: z.ZodOptional<z.ZodString>;
1725
- mode: z.ZodDefault<z.ZodEnum<["embedded", "ophub"]>>;
1726
- runtime: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["nodejs", "java", "python", "go", "other"]>, z.ZodString]>>;
1727
- }, "strip", z.ZodTypeAny, {
1728
- code: string;
1729
- mode: "embedded" | "ophub";
1730
- name?: string | undefined;
1731
- runtime?: string | undefined;
1732
- }, {
1733
- code: string;
1734
- name?: string | undefined;
1735
- mode?: "embedded" | "ophub" | undefined;
1736
- runtime?: string | undefined;
1737
- }>;
1738
- service: z.ZodOptional<z.ZodObject<{
1739
- code: z.ZodString;
1740
- name: z.ZodString;
1741
- description: z.ZodOptional<z.ZodString>;
1742
- version: z.ZodOptional<z.ZodString>;
1743
- runtime: z.ZodOptional<z.ZodString>;
1744
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
1745
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
1746
- name: z.ZodString;
1747
- label: z.ZodOptional<z.ZodString>;
1748
- description: z.ZodOptional<z.ZodString>;
1749
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1750
- }, "strip", z.ZodTypeAny, {
1751
- name: string;
1752
- label?: string | undefined;
1753
- description?: string | undefined;
1754
- metadata?: Record<string, any> | undefined;
1755
- }, {
1756
- name: string;
1757
- label?: string | undefined;
1758
- description?: string | undefined;
1759
- metadata?: Record<string, any> | undefined;
1760
- }>, "many">>;
1761
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1762
- name: z.ZodString;
1763
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
1764
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1765
- designOnly: z.ZodDefault<z.ZodBoolean>;
1766
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1767
- }, "strip", z.ZodTypeAny, {
1768
- name: string;
1769
- designOnly: boolean;
1770
- metadata?: Record<string, any> | undefined;
1771
- direction?: "publish" | "subscribe" | undefined;
1772
- schema?: Record<string, any> | undefined;
1773
- }, {
1774
- name: string;
1775
- metadata?: Record<string, any> | undefined;
1776
- direction?: "publish" | "subscribe" | undefined;
1777
- schema?: Record<string, any> | undefined;
1778
- designOnly?: boolean | undefined;
1779
- }>, "many">>;
1780
- health: z.ZodOptional<z.ZodObject<{
1781
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
1782
- message: z.ZodOptional<z.ZodString>;
1783
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1784
- }, "strip", z.ZodTypeAny, {
1785
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1786
- message?: string | undefined;
1787
- details?: Record<string, any> | undefined;
1788
- }, {
1789
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1790
- message?: string | undefined;
1791
- details?: Record<string, any> | undefined;
1792
- }>>;
1793
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1794
- key: z.ZodString;
1795
- label: z.ZodOptional<z.ZodString>;
1796
- type: z.ZodString;
1797
- source: z.ZodOptional<z.ZodString>;
1798
- editable: z.ZodOptional<z.ZodBoolean>;
1799
- sensitive: z.ZodOptional<z.ZodBoolean>;
1800
- valuePreview: z.ZodOptional<z.ZodString>;
1801
- defaultValue: z.ZodOptional<z.ZodString>;
1802
- secretRef: z.ZodOptional<z.ZodString>;
1803
- }, "strip", z.ZodTypeAny, {
1804
- type: string;
1805
- key: string;
1806
- label?: string | undefined;
1807
- source?: string | undefined;
1808
- editable?: boolean | undefined;
1809
- sensitive?: boolean | undefined;
1810
- valuePreview?: string | undefined;
1811
- defaultValue?: string | undefined;
1812
- secretRef?: string | undefined;
1813
- }, {
1814
- type: string;
1815
- key: string;
1816
- label?: string | undefined;
1817
- source?: string | undefined;
1818
- editable?: boolean | undefined;
1819
- sensitive?: boolean | undefined;
1820
- valuePreview?: string | undefined;
1821
- defaultValue?: string | undefined;
1822
- secretRef?: string | undefined;
1823
- }>, "many">>;
1824
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1825
- name: z.ZodString;
1826
- label: z.ZodString;
1827
- description: z.ZodOptional<z.ZodString>;
1828
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
1829
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1830
- category: z.ZodOptional<z.ZodString>;
1831
- order: z.ZodOptional<z.ZodNumber>;
1832
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1833
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1834
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1835
- }, "strip", z.ZodTypeAny, {
1836
- name: string;
1837
- label: string;
1838
- description?: string | undefined;
1839
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1840
- requiresConfirmation?: boolean | undefined;
1841
- category?: string | undefined;
1842
- order?: number | undefined;
1843
- inputSchema?: Record<string, any> | undefined;
1844
- outputSchema?: Record<string, any> | undefined;
1845
- timeoutSeconds?: number | undefined;
1846
- }, {
1847
- name: string;
1848
- label: string;
1849
- description?: string | undefined;
1850
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1851
- requiresConfirmation?: boolean | undefined;
1852
- category?: string | undefined;
1853
- order?: number | undefined;
1854
- inputSchema?: Record<string, any> | undefined;
1855
- outputSchema?: Record<string, any> | undefined;
1856
- timeoutSeconds?: number | undefined;
1857
- }>, "many">>;
1858
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
1859
- }, "strip", z.ZodTypeAny, {
1860
- code: string;
1861
- name: string;
1862
- manifest: Record<string, any>;
1863
- runtime?: string | undefined;
1864
- description?: string | undefined;
1865
- version?: string | undefined;
1866
- capabilities?: {
1867
- name: string;
1868
- label?: string | undefined;
1869
- description?: string | undefined;
1870
- metadata?: Record<string, any> | undefined;
1871
- }[] | undefined;
1872
- events?: {
1873
- name: string;
1874
- designOnly: boolean;
1875
- metadata?: Record<string, any> | undefined;
1876
- direction?: "publish" | "subscribe" | undefined;
1877
- schema?: Record<string, any> | undefined;
1878
- }[] | undefined;
1879
- health?: {
1880
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1881
- message?: string | undefined;
1882
- details?: Record<string, any> | undefined;
1883
- } | undefined;
1884
- configs?: {
1885
- type: string;
1886
- key: string;
1887
- label?: string | undefined;
1888
- source?: string | undefined;
1889
- editable?: boolean | undefined;
1890
- sensitive?: boolean | undefined;
1891
- valuePreview?: string | undefined;
1892
- defaultValue?: string | undefined;
1893
- secretRef?: string | undefined;
1894
- }[] | undefined;
1895
- actions?: {
1896
- name: string;
1897
- label: string;
1898
- description?: string | undefined;
1899
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1900
- requiresConfirmation?: boolean | undefined;
1901
- category?: string | undefined;
1902
- order?: number | undefined;
1903
- inputSchema?: Record<string, any> | undefined;
1904
- outputSchema?: Record<string, any> | undefined;
1905
- timeoutSeconds?: number | undefined;
1906
- }[] | undefined;
1907
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1908
- }, {
1909
- code: string;
1910
- name: string;
1911
- manifest: Record<string, any>;
1912
- runtime?: string | undefined;
1913
- description?: string | undefined;
1914
- version?: string | undefined;
1915
- capabilities?: {
1916
- name: string;
1917
- label?: string | undefined;
1918
- description?: string | undefined;
1919
- metadata?: Record<string, any> | undefined;
1920
- }[] | undefined;
1921
- events?: {
1922
- name: string;
1923
- metadata?: Record<string, any> | undefined;
1924
- direction?: "publish" | "subscribe" | undefined;
1925
- schema?: Record<string, any> | undefined;
1926
- designOnly?: boolean | undefined;
1927
- }[] | undefined;
1928
- health?: {
1929
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1930
- message?: string | undefined;
1931
- details?: Record<string, any> | undefined;
1932
- } | undefined;
1933
- configs?: {
1934
- type: string;
1935
- key: string;
1936
- label?: string | undefined;
1937
- source?: string | undefined;
1938
- editable?: boolean | undefined;
1939
- sensitive?: boolean | undefined;
1940
- valuePreview?: string | undefined;
1941
- defaultValue?: string | undefined;
1942
- secretRef?: string | undefined;
1943
- }[] | undefined;
1944
- actions?: {
1945
- name: string;
1946
- label: string;
1947
- description?: string | undefined;
1948
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1949
- requiresConfirmation?: boolean | undefined;
1950
- category?: string | undefined;
1951
- order?: number | undefined;
1952
- inputSchema?: Record<string, any> | undefined;
1953
- outputSchema?: Record<string, any> | undefined;
1954
- timeoutSeconds?: number | undefined;
1955
- }[] | undefined;
1956
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
1957
- }>>;
1958
- }, "strip", z.ZodTypeAny, {
1959
- registrationToken: string;
1960
- agent: {
1961
- code: string;
1962
- mode: "embedded" | "ophub";
1963
- name?: string | undefined;
1964
- runtime?: string | undefined;
1965
- };
1966
- service?: {
1967
- code: string;
1968
- name: string;
1969
- manifest: Record<string, any>;
1970
- runtime?: string | undefined;
1971
- description?: string | undefined;
1972
- version?: string | undefined;
1973
- capabilities?: {
1974
- name: string;
1975
- label?: string | undefined;
1976
- description?: string | undefined;
1977
- metadata?: Record<string, any> | undefined;
1978
- }[] | undefined;
1979
- events?: {
1980
- name: string;
1981
- designOnly: boolean;
1982
- metadata?: Record<string, any> | undefined;
1983
- direction?: "publish" | "subscribe" | undefined;
1984
- schema?: Record<string, any> | undefined;
1985
- }[] | undefined;
1986
- health?: {
1987
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
1988
- message?: string | undefined;
1989
- details?: Record<string, any> | undefined;
1990
- } | undefined;
1991
- configs?: {
1992
- type: string;
1993
- key: string;
1994
- label?: string | undefined;
1995
- source?: string | undefined;
1996
- editable?: boolean | undefined;
1997
- sensitive?: boolean | undefined;
1998
- valuePreview?: string | undefined;
1999
- defaultValue?: string | undefined;
2000
- secretRef?: string | undefined;
2001
- }[] | undefined;
2002
- actions?: {
2003
- name: string;
2004
- label: string;
2005
- description?: string | undefined;
2006
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2007
- requiresConfirmation?: boolean | undefined;
2008
- category?: string | undefined;
2009
- order?: number | undefined;
2010
- inputSchema?: Record<string, any> | undefined;
2011
- outputSchema?: Record<string, any> | undefined;
2012
- timeoutSeconds?: number | undefined;
2013
- }[] | undefined;
2014
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2015
- } | undefined;
2016
- }, {
2017
- registrationToken: string;
2018
- agent: {
2019
- code: string;
2020
- name?: string | undefined;
2021
- mode?: "embedded" | "ophub" | undefined;
2022
- runtime?: string | undefined;
2023
- };
2024
- service?: {
2025
- code: string;
2026
- name: string;
2027
- manifest: Record<string, any>;
2028
- runtime?: string | undefined;
2029
- description?: string | undefined;
2030
- version?: string | undefined;
2031
- capabilities?: {
2032
- name: string;
2033
- label?: string | undefined;
2034
- description?: string | undefined;
2035
- metadata?: Record<string, any> | undefined;
2036
- }[] | undefined;
2037
- events?: {
2038
- name: string;
2039
- metadata?: Record<string, any> | undefined;
2040
- direction?: "publish" | "subscribe" | undefined;
2041
- schema?: Record<string, any> | undefined;
2042
- designOnly?: boolean | undefined;
2043
- }[] | undefined;
2044
- health?: {
2045
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2046
- message?: string | undefined;
2047
- details?: Record<string, any> | undefined;
2048
- } | undefined;
2049
- configs?: {
2050
- type: string;
2051
- key: string;
2052
- label?: string | undefined;
2053
- source?: string | undefined;
2054
- editable?: boolean | undefined;
2055
- sensitive?: boolean | undefined;
2056
- valuePreview?: string | undefined;
2057
- defaultValue?: string | undefined;
2058
- secretRef?: string | undefined;
2059
- }[] | undefined;
2060
- actions?: {
2061
- name: string;
2062
- label: string;
2063
- description?: string | undefined;
2064
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2065
- requiresConfirmation?: boolean | undefined;
2066
- category?: string | undefined;
2067
- order?: number | undefined;
2068
- inputSchema?: Record<string, any> | undefined;
2069
- outputSchema?: Record<string, any> | undefined;
2070
- timeoutSeconds?: number | undefined;
2071
- }[] | undefined;
2072
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2073
- } | undefined;
2074
- }>;
2075
- export type RegisterAgentRequest = z.infer<typeof RegisterAgentRequestSchema>;
2076
- export declare const registerAgentRequestSchema: z.ZodObject<{
2077
- registrationToken: z.ZodString;
2078
- agent: z.ZodObject<{
2079
- code: z.ZodString;
2080
- name: z.ZodOptional<z.ZodString>;
2081
- mode: z.ZodDefault<z.ZodEnum<["embedded", "ophub"]>>;
2082
- runtime: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["nodejs", "java", "python", "go", "other"]>, z.ZodString]>>;
2083
- }, "strip", z.ZodTypeAny, {
2084
- code: string;
2085
- mode: "embedded" | "ophub";
2086
- name?: string | undefined;
2087
- runtime?: string | undefined;
2088
- }, {
2089
- code: string;
2090
- name?: string | undefined;
2091
- mode?: "embedded" | "ophub" | undefined;
2092
- runtime?: string | undefined;
2093
- }>;
2094
- service: z.ZodOptional<z.ZodObject<{
2095
- code: z.ZodString;
2096
- name: z.ZodString;
2097
- description: z.ZodOptional<z.ZodString>;
2098
- version: z.ZodOptional<z.ZodString>;
2099
- runtime: z.ZodOptional<z.ZodString>;
2100
- manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
2101
- capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
2102
- name: z.ZodString;
2103
- label: z.ZodOptional<z.ZodString>;
2104
- description: z.ZodOptional<z.ZodString>;
2105
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2106
- }, "strip", z.ZodTypeAny, {
2107
- name: string;
2108
- label?: string | undefined;
2109
- description?: string | undefined;
2110
- metadata?: Record<string, any> | undefined;
2111
- }, {
2112
- name: string;
2113
- label?: string | undefined;
2114
- description?: string | undefined;
2115
- metadata?: Record<string, any> | undefined;
2116
- }>, "many">>;
2117
- events: z.ZodOptional<z.ZodArray<z.ZodObject<{
2118
- name: z.ZodString;
2119
- direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
2120
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2121
- designOnly: z.ZodDefault<z.ZodBoolean>;
2122
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2123
- }, "strip", z.ZodTypeAny, {
2124
- name: string;
2125
- designOnly: boolean;
2126
- metadata?: Record<string, any> | undefined;
2127
- direction?: "publish" | "subscribe" | undefined;
2128
- schema?: Record<string, any> | undefined;
2129
- }, {
2130
- name: string;
2131
- metadata?: Record<string, any> | undefined;
2132
- direction?: "publish" | "subscribe" | undefined;
2133
- schema?: Record<string, any> | undefined;
2134
- designOnly?: boolean | undefined;
2135
- }>, "many">>;
2136
- health: z.ZodOptional<z.ZodObject<{
2137
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2138
- message: z.ZodOptional<z.ZodString>;
2139
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2140
- }, "strip", z.ZodTypeAny, {
2141
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2142
- message?: string | undefined;
2143
- details?: Record<string, any> | undefined;
2144
- }, {
2145
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2146
- message?: string | undefined;
2147
- details?: Record<string, any> | undefined;
2148
- }>>;
2149
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2150
- key: z.ZodString;
2151
- label: z.ZodOptional<z.ZodString>;
2152
- type: z.ZodString;
2153
- source: z.ZodOptional<z.ZodString>;
2154
- editable: z.ZodOptional<z.ZodBoolean>;
2155
- sensitive: z.ZodOptional<z.ZodBoolean>;
2156
- valuePreview: z.ZodOptional<z.ZodString>;
2157
- defaultValue: z.ZodOptional<z.ZodString>;
2158
- secretRef: z.ZodOptional<z.ZodString>;
2159
- }, "strip", z.ZodTypeAny, {
2160
- type: string;
2161
- key: string;
2162
- label?: string | undefined;
2163
- source?: string | undefined;
2164
- editable?: boolean | undefined;
2165
- sensitive?: boolean | undefined;
2166
- valuePreview?: string | undefined;
2167
- defaultValue?: string | undefined;
2168
- secretRef?: string | undefined;
2169
- }, {
2170
- type: string;
2171
- key: string;
2172
- label?: string | undefined;
2173
- source?: string | undefined;
2174
- editable?: boolean | undefined;
2175
- sensitive?: boolean | undefined;
2176
- valuePreview?: string | undefined;
2177
- defaultValue?: string | undefined;
2178
- secretRef?: string | undefined;
2179
- }>, "many">>;
2180
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2181
- name: z.ZodString;
2182
- label: z.ZodString;
2183
- description: z.ZodOptional<z.ZodString>;
2184
- dangerLevel: z.ZodOptional<z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>>;
2185
- requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
2186
- category: z.ZodOptional<z.ZodString>;
2187
- order: z.ZodOptional<z.ZodNumber>;
2188
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2189
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2190
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2191
- }, "strip", z.ZodTypeAny, {
2192
- name: string;
2193
- label: string;
2194
- description?: string | undefined;
2195
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2196
- requiresConfirmation?: boolean | undefined;
2197
- category?: string | undefined;
2198
- order?: number | undefined;
2199
- inputSchema?: Record<string, any> | undefined;
2200
- outputSchema?: Record<string, any> | undefined;
2201
- timeoutSeconds?: number | undefined;
2202
- }, {
2203
- name: string;
2204
- label: string;
2205
- description?: string | undefined;
2206
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2207
- requiresConfirmation?: boolean | undefined;
2208
- category?: string | undefined;
2209
- order?: number | undefined;
2210
- inputSchema?: Record<string, any> | undefined;
2211
- outputSchema?: Record<string, any> | undefined;
2212
- timeoutSeconds?: number | undefined;
2213
- }>, "many">>;
2214
- serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
2215
- }, "strip", z.ZodTypeAny, {
2216
- code: string;
2217
- name: string;
2218
- manifest: Record<string, any>;
2219
- runtime?: string | undefined;
2220
- description?: string | undefined;
2221
- version?: string | undefined;
2222
- capabilities?: {
2223
- name: string;
2224
- label?: string | undefined;
2225
- description?: string | undefined;
2226
- metadata?: Record<string, any> | undefined;
2227
- }[] | undefined;
2228
- events?: {
2229
- name: string;
2230
- designOnly: boolean;
2231
- metadata?: Record<string, any> | undefined;
2232
- direction?: "publish" | "subscribe" | undefined;
2233
- schema?: Record<string, any> | undefined;
2234
- }[] | undefined;
2235
- health?: {
2236
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2237
- message?: string | undefined;
2238
- details?: Record<string, any> | undefined;
2239
- } | undefined;
2240
- configs?: {
2241
- type: string;
2242
- key: string;
2243
- label?: string | undefined;
2244
- source?: string | undefined;
2245
- editable?: boolean | undefined;
2246
- sensitive?: boolean | undefined;
2247
- valuePreview?: string | undefined;
2248
- defaultValue?: string | undefined;
2249
- secretRef?: string | undefined;
2250
- }[] | undefined;
2251
- actions?: {
2252
- name: string;
2253
- label: string;
2254
- description?: string | undefined;
2255
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2256
- requiresConfirmation?: boolean | undefined;
2257
- category?: string | undefined;
2258
- order?: number | undefined;
2259
- inputSchema?: Record<string, any> | undefined;
2260
- outputSchema?: Record<string, any> | undefined;
2261
- timeoutSeconds?: number | undefined;
2262
- }[] | undefined;
2263
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2264
- }, {
2265
- code: string;
2266
- name: string;
2267
- manifest: Record<string, any>;
2268
- runtime?: string | undefined;
2269
- description?: string | undefined;
2270
- version?: string | undefined;
2271
- capabilities?: {
2272
- name: string;
2273
- label?: string | undefined;
2274
- description?: string | undefined;
2275
- metadata?: Record<string, any> | undefined;
2276
- }[] | undefined;
2277
- events?: {
2278
- name: string;
2279
- metadata?: Record<string, any> | undefined;
2280
- direction?: "publish" | "subscribe" | undefined;
2281
- schema?: Record<string, any> | undefined;
2282
- designOnly?: boolean | undefined;
2283
- }[] | undefined;
2284
- health?: {
2285
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2286
- message?: string | undefined;
2287
- details?: Record<string, any> | undefined;
2288
- } | undefined;
2289
- configs?: {
2290
- type: string;
2291
- key: string;
2292
- label?: string | undefined;
2293
- source?: string | undefined;
2294
- editable?: boolean | undefined;
2295
- sensitive?: boolean | undefined;
2296
- valuePreview?: string | undefined;
2297
- defaultValue?: string | undefined;
2298
- secretRef?: string | undefined;
2299
- }[] | undefined;
2300
- actions?: {
2301
- name: string;
2302
- label: string;
2303
- description?: string | undefined;
2304
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2305
- requiresConfirmation?: boolean | undefined;
2306
- category?: string | undefined;
2307
- order?: number | undefined;
2308
- inputSchema?: Record<string, any> | undefined;
2309
- outputSchema?: Record<string, any> | undefined;
2310
- timeoutSeconds?: number | undefined;
2311
- }[] | undefined;
2312
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2313
- }>>;
2314
- }, "strip", z.ZodTypeAny, {
2315
- registrationToken: string;
2316
- agent: {
2317
- code: string;
2318
- mode: "embedded" | "ophub";
2319
- name?: string | undefined;
2320
- runtime?: string | undefined;
2321
- };
2322
- service?: {
2323
- code: string;
2324
- name: string;
2325
- manifest: Record<string, any>;
2326
- runtime?: string | undefined;
2327
- description?: string | undefined;
2328
- version?: string | undefined;
2329
- capabilities?: {
2330
- name: string;
2331
- label?: string | undefined;
2332
- description?: string | undefined;
2333
- metadata?: Record<string, any> | undefined;
2334
- }[] | undefined;
2335
- events?: {
2336
- name: string;
2337
- designOnly: boolean;
2338
- metadata?: Record<string, any> | undefined;
2339
- direction?: "publish" | "subscribe" | undefined;
2340
- schema?: Record<string, any> | undefined;
2341
- }[] | undefined;
2342
- health?: {
2343
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2344
- message?: string | undefined;
2345
- details?: Record<string, any> | undefined;
2346
- } | undefined;
2347
- configs?: {
2348
- type: string;
2349
- key: string;
2350
- label?: string | undefined;
2351
- source?: string | undefined;
2352
- editable?: boolean | undefined;
2353
- sensitive?: boolean | undefined;
2354
- valuePreview?: string | undefined;
2355
- defaultValue?: string | undefined;
2356
- secretRef?: string | undefined;
2357
- }[] | undefined;
2358
- actions?: {
2359
- name: string;
2360
- label: string;
2361
- description?: string | undefined;
2362
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2363
- requiresConfirmation?: boolean | undefined;
2364
- category?: string | undefined;
2365
- order?: number | undefined;
2366
- inputSchema?: Record<string, any> | undefined;
2367
- outputSchema?: Record<string, any> | undefined;
2368
- timeoutSeconds?: number | undefined;
2369
- }[] | undefined;
2370
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2371
- } | undefined;
2372
- }, {
2373
- registrationToken: string;
2374
- agent: {
2375
- code: string;
2376
- name?: string | undefined;
2377
- mode?: "embedded" | "ophub" | undefined;
2378
- runtime?: string | undefined;
2379
- };
2380
- service?: {
2381
- code: string;
2382
- name: string;
2383
- manifest: Record<string, any>;
2384
- runtime?: string | undefined;
2385
- description?: string | undefined;
2386
- version?: string | undefined;
2387
- capabilities?: {
2388
- name: string;
2389
- label?: string | undefined;
2390
- description?: string | undefined;
2391
- metadata?: Record<string, any> | undefined;
2392
- }[] | undefined;
2393
- events?: {
2394
- name: string;
2395
- metadata?: Record<string, any> | undefined;
2396
- direction?: "publish" | "subscribe" | undefined;
2397
- schema?: Record<string, any> | undefined;
2398
- designOnly?: boolean | undefined;
2399
- }[] | undefined;
2400
- health?: {
2401
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2402
- message?: string | undefined;
2403
- details?: Record<string, any> | undefined;
2404
- } | undefined;
2405
- configs?: {
2406
- type: string;
2407
- key: string;
2408
- label?: string | undefined;
2409
- source?: string | undefined;
2410
- editable?: boolean | undefined;
2411
- sensitive?: boolean | undefined;
2412
- valuePreview?: string | undefined;
2413
- defaultValue?: string | undefined;
2414
- secretRef?: string | undefined;
2415
- }[] | undefined;
2416
- actions?: {
2417
- name: string;
2418
- label: string;
2419
- description?: string | undefined;
2420
- dangerLevel?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2421
- requiresConfirmation?: boolean | undefined;
2422
- category?: string | undefined;
2423
- order?: number | undefined;
2424
- inputSchema?: Record<string, any> | undefined;
2425
- outputSchema?: Record<string, any> | undefined;
2426
- timeoutSeconds?: number | undefined;
2427
- }[] | undefined;
2428
- serviceKind?: "business" | "infrastructure" | "system" | undefined;
2429
- } | undefined;
2430
- }>;
2431
- export declare const RegisterAgentResponseSchema: z.ZodObject<{
2432
- agentId: z.ZodString;
2433
- agentToken: z.ZodString;
2434
- heartbeatIntervalSeconds: z.ZodNumber;
2435
- commandPollIntervalSeconds: z.ZodNumber;
2436
- }, "strip", z.ZodTypeAny, {
2437
- agentId: string;
2438
- agentToken: string;
2439
- heartbeatIntervalSeconds: number;
2440
- commandPollIntervalSeconds: number;
2441
- }, {
2442
- agentId: string;
2443
- agentToken: string;
2444
- heartbeatIntervalSeconds: number;
2445
- commandPollIntervalSeconds: number;
2446
- }>;
2447
- export type RegisterAgentResponse = z.infer<typeof RegisterAgentResponseSchema>;
2448
- export declare const AgentHeartbeatResponseSchema: z.ZodObject<{
2449
- heartbeatIntervalSeconds: z.ZodNumber;
2450
- commandPollIntervalSeconds: z.ZodNumber;
2451
- }, "strip", z.ZodTypeAny, {
2452
- heartbeatIntervalSeconds: number;
2453
- commandPollIntervalSeconds: number;
2454
- }, {
2455
- heartbeatIntervalSeconds: number;
2456
- commandPollIntervalSeconds: number;
2457
- }>;
2458
- export type AgentHeartbeatResponse = z.infer<typeof AgentHeartbeatResponseSchema>;
2459
- export declare const AgentHeartbeatRequestSchema: z.ZodObject<{
2460
- serviceId: z.ZodOptional<z.ZodString>;
2461
- health: z.ZodOptional<z.ZodObject<{
2462
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2463
- message: z.ZodOptional<z.ZodString>;
2464
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2465
- }, "strip", z.ZodTypeAny, {
2466
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2467
- message?: string | undefined;
2468
- details?: Record<string, any> | undefined;
2469
- }, {
2470
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2471
- message?: string | undefined;
2472
- details?: Record<string, any> | undefined;
2473
- }>>;
2474
- }, "strip", z.ZodTypeAny, {
2475
- health?: {
2476
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2477
- message?: string | undefined;
2478
- details?: Record<string, any> | undefined;
2479
- } | undefined;
2480
- serviceId?: string | undefined;
2481
- }, {
2482
- health?: {
2483
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2484
- message?: string | undefined;
2485
- details?: Record<string, any> | undefined;
2486
- } | undefined;
2487
- serviceId?: string | undefined;
2488
- }>;
2489
- export type AgentHeartbeatRequest = z.infer<typeof AgentHeartbeatRequestSchema>;
2490
- export declare const agentHeartbeatRequestSchema: z.ZodObject<{
2491
- serviceId: z.ZodOptional<z.ZodString>;
2492
- health: z.ZodOptional<z.ZodObject<{
2493
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2494
- message: z.ZodOptional<z.ZodString>;
2495
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2496
- }, "strip", z.ZodTypeAny, {
2497
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2498
- message?: string | undefined;
2499
- details?: Record<string, any> | undefined;
2500
- }, {
2501
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2502
- message?: string | undefined;
2503
- details?: Record<string, any> | undefined;
2504
- }>>;
2505
- }, "strip", z.ZodTypeAny, {
2506
- health?: {
2507
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2508
- message?: string | undefined;
2509
- details?: Record<string, any> | undefined;
2510
- } | undefined;
2511
- serviceId?: string | undefined;
2512
- }, {
2513
- health?: {
2514
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2515
- message?: string | undefined;
2516
- details?: Record<string, any> | undefined;
2517
- } | undefined;
2518
- serviceId?: string | undefined;
2519
- }>;
2520
- export declare const CapsuleServiceSchema: z.ZodObject<{
2521
- id: z.ZodString;
2522
- agentId: z.ZodOptional<z.ZodString>;
2523
- code: z.ZodString;
2524
- name: z.ZodString;
2525
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2526
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2527
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2528
- status: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
2529
- healthStatus: z.ZodOptional<z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>>;
2530
- lastReportedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2531
- lastHealthAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2532
- createdAt: z.ZodString;
2533
- updatedAt: z.ZodString;
2534
- }, "strip", z.ZodTypeAny, {
2535
- code: string;
2536
- id: string;
2537
- createdAt: string;
2538
- updatedAt: string;
2539
- status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2540
- name: string;
2541
- runtime?: string | null | undefined;
2542
- description?: string | null | undefined;
2543
- version?: string | null | undefined;
2544
- agentId?: string | undefined;
2545
- healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2546
- lastReportedAt?: string | null | undefined;
2547
- lastHealthAt?: string | null | undefined;
2548
- }, {
2549
- code: string;
2550
- id: string;
2551
- createdAt: string;
2552
- updatedAt: string;
2553
- status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2554
- name: string;
2555
- runtime?: string | null | undefined;
2556
- description?: string | null | undefined;
2557
- version?: string | null | undefined;
2558
- agentId?: string | undefined;
2559
- healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2560
- lastReportedAt?: string | null | undefined;
2561
- lastHealthAt?: string | null | undefined;
2562
- }>;
2563
- export type CapsuleService = z.infer<typeof CapsuleServiceSchema>;
2564
- export declare const HealthReportSchema: z.ZodObject<{
2565
- id: z.ZodString;
2566
- serviceId: z.ZodString;
2567
- agentId: z.ZodOptional<z.ZodString>;
2568
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2569
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2570
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2571
- reportedAt: z.ZodString;
2572
- }, "strip", z.ZodTypeAny, {
2573
- id: string;
2574
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2575
- serviceId: string;
2576
- reportedAt: string;
2577
- message?: string | null | undefined;
2578
- details?: Record<string, any> | undefined;
2579
- agentId?: string | undefined;
2580
- }, {
2581
- id: string;
2582
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2583
- serviceId: string;
2584
- reportedAt: string;
2585
- message?: string | null | undefined;
2586
- details?: Record<string, any> | undefined;
2587
- agentId?: string | undefined;
2588
- }>;
2589
- export type HealthReport = z.infer<typeof HealthReportSchema>;
2590
- export declare const ConfigItemSchema: z.ZodObject<{
2591
- id: z.ZodString;
2592
- serviceId: z.ZodString;
2593
- key: z.ZodString;
2594
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2595
- type: z.ZodString;
2596
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2597
- editable: z.ZodDefault<z.ZodBoolean>;
2598
- sensitive: z.ZodBoolean;
2599
- valuePreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2600
- defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2601
- secretRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2602
- }, "strip", z.ZodTypeAny, {
2603
- type: string;
2604
- id: string;
2605
- key: string;
2606
- editable: boolean;
2607
- sensitive: boolean;
2608
- serviceId: string;
2609
- label?: string | null | undefined;
2610
- source?: string | null | undefined;
2611
- valuePreview?: string | null | undefined;
2612
- defaultValue?: string | null | undefined;
2613
- secretRef?: string | null | undefined;
2614
- }, {
2615
- type: string;
2616
- id: string;
2617
- key: string;
2618
- sensitive: boolean;
2619
- serviceId: string;
2620
- label?: string | null | undefined;
2621
- source?: string | null | undefined;
2622
- editable?: boolean | undefined;
2623
- valuePreview?: string | null | undefined;
2624
- defaultValue?: string | null | undefined;
2625
- secretRef?: string | null | undefined;
2626
- }>;
2627
- export type ConfigItem = z.infer<typeof ConfigItemSchema>;
2628
- export declare const ActionDefinitionSchema: z.ZodObject<{
2629
- id: z.ZodString;
2630
- serviceId: z.ZodString;
2631
- name: z.ZodString;
2632
- label: z.ZodString;
2633
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2634
- dangerLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
2635
- requiresConfirmation: z.ZodBoolean;
2636
- category: z.ZodOptional<z.ZodString>;
2637
- order: z.ZodOptional<z.ZodNumber>;
2638
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2639
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2640
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2641
- }, "strip", z.ZodTypeAny, {
2642
- id: string;
2643
- name: string;
2644
- label: string;
2645
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2646
- requiresConfirmation: boolean;
2647
- serviceId: string;
2648
- description?: string | null | undefined;
2649
- category?: string | undefined;
2650
- order?: number | undefined;
2651
- inputSchema?: Record<string, any> | undefined;
2652
- outputSchema?: Record<string, any> | undefined;
2653
- timeoutSeconds?: number | undefined;
2654
- }, {
2655
- id: string;
2656
- name: string;
2657
- label: string;
2658
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2659
- requiresConfirmation: boolean;
2660
- serviceId: string;
2661
- description?: string | null | undefined;
2662
- category?: string | undefined;
2663
- order?: number | undefined;
2664
- inputSchema?: Record<string, any> | undefined;
2665
- outputSchema?: Record<string, any> | undefined;
2666
- timeoutSeconds?: number | undefined;
2667
- }>;
2668
- export type ActionDefinition = z.infer<typeof ActionDefinitionSchema>;
2669
- export declare const CapsuleServiceDetailSchema: z.ZodObject<{
2670
- id: z.ZodString;
2671
- agentId: z.ZodOptional<z.ZodString>;
2672
- code: z.ZodString;
2673
- name: z.ZodString;
2674
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2675
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2677
- status: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
2678
- healthStatus: z.ZodOptional<z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>>;
2679
- lastReportedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2680
- lastHealthAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2681
- createdAt: z.ZodString;
2682
- updatedAt: z.ZodString;
2683
- } & {
2684
- manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2685
- health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2686
- id: z.ZodString;
2687
- serviceId: z.ZodString;
2688
- agentId: z.ZodOptional<z.ZodString>;
2689
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
2690
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2691
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2692
- reportedAt: z.ZodString;
2693
- }, "strip", z.ZodTypeAny, {
2694
- id: string;
2695
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2696
- serviceId: string;
2697
- reportedAt: string;
2698
- message?: string | null | undefined;
2699
- details?: Record<string, any> | undefined;
2700
- agentId?: string | undefined;
2701
- }, {
2702
- id: string;
2703
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2704
- serviceId: string;
2705
- reportedAt: string;
2706
- message?: string | null | undefined;
2707
- details?: Record<string, any> | undefined;
2708
- agentId?: string | undefined;
2709
- }>>>;
2710
- configs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2711
- id: z.ZodString;
2712
- serviceId: z.ZodString;
2713
- key: z.ZodString;
2714
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
- type: z.ZodString;
2716
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
- editable: z.ZodDefault<z.ZodBoolean>;
2718
- sensitive: z.ZodBoolean;
2719
- valuePreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2720
- defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2721
- secretRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2722
- }, "strip", z.ZodTypeAny, {
2723
- type: string;
2724
- id: string;
2725
- key: string;
2726
- editable: boolean;
2727
- sensitive: boolean;
2728
- serviceId: string;
2729
- label?: string | null | undefined;
2730
- source?: string | null | undefined;
2731
- valuePreview?: string | null | undefined;
2732
- defaultValue?: string | null | undefined;
2733
- secretRef?: string | null | undefined;
2734
- }, {
2735
- type: string;
2736
- id: string;
2737
- key: string;
2738
- sensitive: boolean;
2739
- serviceId: string;
2740
- label?: string | null | undefined;
2741
- source?: string | null | undefined;
2742
- editable?: boolean | undefined;
2743
- valuePreview?: string | null | undefined;
2744
- defaultValue?: string | null | undefined;
2745
- secretRef?: string | null | undefined;
2746
- }>, "many">>;
2747
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2748
- id: z.ZodString;
2749
- serviceId: z.ZodString;
2750
- name: z.ZodString;
2751
- label: z.ZodString;
2752
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2753
- dangerLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
2754
- requiresConfirmation: z.ZodBoolean;
2755
- category: z.ZodOptional<z.ZodString>;
2756
- order: z.ZodOptional<z.ZodNumber>;
2757
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2758
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2759
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2760
- }, "strip", z.ZodTypeAny, {
2761
- id: string;
2762
- name: string;
2763
- label: string;
2764
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2765
- requiresConfirmation: boolean;
2766
- serviceId: string;
2767
- description?: string | null | undefined;
2768
- category?: string | undefined;
2769
- order?: number | undefined;
2770
- inputSchema?: Record<string, any> | undefined;
2771
- outputSchema?: Record<string, any> | undefined;
2772
- timeoutSeconds?: number | undefined;
2773
- }, {
2774
- id: string;
2775
- name: string;
2776
- label: string;
2777
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2778
- requiresConfirmation: boolean;
2779
- serviceId: string;
2780
- description?: string | null | undefined;
2781
- category?: string | undefined;
2782
- order?: number | undefined;
2783
- inputSchema?: Record<string, any> | undefined;
2784
- outputSchema?: Record<string, any> | undefined;
2785
- timeoutSeconds?: number | undefined;
2786
- }>, "many">>;
2787
- }, "strip", z.ZodTypeAny, {
2788
- code: string;
2789
- id: string;
2790
- createdAt: string;
2791
- updatedAt: string;
2792
- status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2793
- name: string;
2794
- runtime?: string | null | undefined;
2795
- description?: string | null | undefined;
2796
- version?: string | null | undefined;
2797
- manifest?: Record<string, any> | undefined;
2798
- health?: {
2799
- id: string;
2800
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2801
- serviceId: string;
2802
- reportedAt: string;
2803
- message?: string | null | undefined;
2804
- details?: Record<string, any> | undefined;
2805
- agentId?: string | undefined;
2806
- } | null | undefined;
2807
- configs?: {
2808
- type: string;
2809
- id: string;
2810
- key: string;
2811
- editable: boolean;
2812
- sensitive: boolean;
2813
- serviceId: string;
2814
- label?: string | null | undefined;
2815
- source?: string | null | undefined;
2816
- valuePreview?: string | null | undefined;
2817
- defaultValue?: string | null | undefined;
2818
- secretRef?: string | null | undefined;
2819
- }[] | undefined;
2820
- actions?: {
2821
- id: string;
2822
- name: string;
2823
- label: string;
2824
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2825
- requiresConfirmation: boolean;
2826
- serviceId: string;
2827
- description?: string | null | undefined;
2828
- category?: string | undefined;
2829
- order?: number | undefined;
2830
- inputSchema?: Record<string, any> | undefined;
2831
- outputSchema?: Record<string, any> | undefined;
2832
- timeoutSeconds?: number | undefined;
2833
- }[] | undefined;
2834
- agentId?: string | undefined;
2835
- healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2836
- lastReportedAt?: string | null | undefined;
2837
- lastHealthAt?: string | null | undefined;
2838
- }, {
2839
- code: string;
2840
- id: string;
2841
- createdAt: string;
2842
- updatedAt: string;
2843
- status: "OFFLINE" | "UNKNOWN" | "HEALTHY" | "UNHEALTHY" | "STALE";
2844
- name: string;
2845
- runtime?: string | null | undefined;
2846
- description?: string | null | undefined;
2847
- version?: string | null | undefined;
2848
- manifest?: Record<string, any> | undefined;
2849
- health?: {
2850
- id: string;
2851
- status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
2852
- serviceId: string;
2853
- reportedAt: string;
2854
- message?: string | null | undefined;
2855
- details?: Record<string, any> | undefined;
2856
- agentId?: string | undefined;
2857
- } | null | undefined;
2858
- configs?: {
2859
- type: string;
2860
- id: string;
2861
- key: string;
2862
- sensitive: boolean;
2863
- serviceId: string;
2864
- label?: string | null | undefined;
2865
- source?: string | null | undefined;
2866
- editable?: boolean | undefined;
2867
- valuePreview?: string | null | undefined;
2868
- defaultValue?: string | null | undefined;
2869
- secretRef?: string | null | undefined;
2870
- }[] | undefined;
2871
- actions?: {
2872
- id: string;
2873
- name: string;
2874
- label: string;
2875
- dangerLevel: "LOW" | "MEDIUM" | "HIGH";
2876
- requiresConfirmation: boolean;
2877
- serviceId: string;
2878
- description?: string | null | undefined;
2879
- category?: string | undefined;
2880
- order?: number | undefined;
2881
- inputSchema?: Record<string, any> | undefined;
2882
- outputSchema?: Record<string, any> | undefined;
2883
- timeoutSeconds?: number | undefined;
2884
- }[] | undefined;
2885
- agentId?: string | undefined;
2886
- healthStatus?: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN" | undefined;
2887
- lastReportedAt?: string | null | undefined;
2888
- lastHealthAt?: string | null | undefined;
2889
- }>;
2890
- export type CapsuleServiceDetail = z.infer<typeof CapsuleServiceDetailSchema>;
2891
- /**
2892
- * Shape returned by an Agent's action `prepare` handler when responding to an
2893
- * `ACTION_PREPARE` command. Used by the SDK as the contract between
2894
- * `prepare()` callbacks and the backend; the backend forwards it to the UI as
2895
- * the `data` field of the prepare command result.
2896
- */
2897
- export declare const ActionPrepareResultSchema: z.ZodObject<{
2898
- action: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2899
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2900
- initialPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2901
- currentState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2902
- }, "strip", z.ZodTypeAny, {
2903
- inputSchema?: Record<string, any> | undefined;
2904
- action?: Record<string, any> | undefined;
2905
- initialPayload?: Record<string, any> | undefined;
2906
- currentState?: Record<string, any> | undefined;
2907
- }, {
2908
- inputSchema?: Record<string, any> | undefined;
2909
- action?: Record<string, any> | undefined;
2910
- initialPayload?: Record<string, any> | undefined;
2911
- currentState?: Record<string, any> | undefined;
2912
- }>;
2913
- export type ActionPrepareResult = z.infer<typeof ActionPrepareResultSchema>;
2914
- export declare const actionPrepareResultSchema: z.ZodObject<{
2915
- action: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2916
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2917
- initialPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2918
- currentState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2919
- }, "strip", z.ZodTypeAny, {
2920
- inputSchema?: Record<string, any> | undefined;
2921
- action?: Record<string, any> | undefined;
2922
- initialPayload?: Record<string, any> | undefined;
2923
- currentState?: Record<string, any> | undefined;
2924
- }, {
2925
- inputSchema?: Record<string, any> | undefined;
2926
- action?: Record<string, any> | undefined;
2927
- initialPayload?: Record<string, any> | undefined;
2928
- currentState?: Record<string, any> | undefined;
2929
- }>;
2930
- export declare const CapsuleBusExperimentalSchema: z.ZodLiteral<"v0.4-experimental">;
2931
- export type CapsuleBusExperimental = z.infer<typeof CapsuleBusExperimentalSchema>;
2932
- export declare const BusRouteStatus: readonly ["ENABLED", "DISABLED", "DRY_RUN"];
2933
- export type BusRouteStatus = typeof BusRouteStatus[number];
2934
- export declare const BusRouteStatusSchema: z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>;
2935
- export declare const BusEventEnvelopeSchema: z.ZodObject<{
2936
- id: z.ZodOptional<z.ZodString>;
2937
- experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
2938
- eventType: z.ZodString;
2939
- sourceServiceCode: z.ZodString;
2940
- sourceServiceId: z.ZodOptional<z.ZodString>;
2941
- occurredAt: z.ZodOptional<z.ZodString>;
2942
- correlationId: z.ZodOptional<z.ZodString>;
2943
- causationId: z.ZodOptional<z.ZodString>;
2944
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2945
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2946
- }, "strip", z.ZodTypeAny, {
2947
- experimental: "v0.4-experimental";
2948
- eventType: string;
2949
- sourceServiceCode: string;
2950
- id?: string | undefined;
2951
- metadata?: Record<string, any> | undefined;
2952
- sourceServiceId?: string | undefined;
2953
- occurredAt?: string | undefined;
2954
- correlationId?: string | undefined;
2955
- causationId?: string | undefined;
2956
- payload?: Record<string, any> | undefined;
2957
- }, {
2958
- eventType: string;
2959
- sourceServiceCode: string;
2960
- id?: string | undefined;
2961
- metadata?: Record<string, any> | undefined;
2962
- experimental?: "v0.4-experimental" | undefined;
2963
- sourceServiceId?: string | undefined;
2964
- occurredAt?: string | undefined;
2965
- correlationId?: string | undefined;
2966
- causationId?: string | undefined;
2967
- payload?: Record<string, any> | undefined;
2968
- }>;
2969
- export type BusEventEnvelope = z.infer<typeof BusEventEnvelopeSchema>;
2970
- export declare const PublishBusEventRequestSchema: z.ZodObject<Omit<{
2971
- id: z.ZodOptional<z.ZodString>;
2972
- experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
2973
- eventType: z.ZodString;
2974
- sourceServiceCode: z.ZodString;
2975
- sourceServiceId: z.ZodOptional<z.ZodString>;
2976
- occurredAt: z.ZodOptional<z.ZodString>;
2977
- correlationId: z.ZodOptional<z.ZodString>;
2978
- causationId: z.ZodOptional<z.ZodString>;
2979
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2980
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2981
- }, "id"> & {
2982
- routePolicy: z.ZodOptional<z.ZodObject<{
2983
- dryRun: z.ZodOptional<z.ZodBoolean>;
2984
- }, "strip", z.ZodTypeAny, {
2985
- dryRun?: boolean | undefined;
2986
- }, {
2987
- dryRun?: boolean | undefined;
2988
- }>>;
2989
- }, "strip", z.ZodTypeAny, {
2990
- experimental: "v0.4-experimental";
2991
- eventType: string;
2992
- sourceServiceCode: string;
2993
- metadata?: Record<string, any> | undefined;
2994
- sourceServiceId?: string | undefined;
2995
- occurredAt?: string | undefined;
2996
- correlationId?: string | undefined;
2997
- causationId?: string | undefined;
2998
- payload?: Record<string, any> | undefined;
2999
- routePolicy?: {
3000
- dryRun?: boolean | undefined;
3001
- } | undefined;
3002
- }, {
3003
- eventType: string;
3004
- sourceServiceCode: string;
3005
- metadata?: Record<string, any> | undefined;
3006
- experimental?: "v0.4-experimental" | undefined;
3007
- sourceServiceId?: string | undefined;
3008
- occurredAt?: string | undefined;
3009
- correlationId?: string | undefined;
3010
- causationId?: string | undefined;
3011
- payload?: Record<string, any> | undefined;
3012
- routePolicy?: {
3013
- dryRun?: boolean | undefined;
3014
- } | undefined;
3015
- }>;
3016
- export type PublishBusEventRequest = z.infer<typeof PublishBusEventRequestSchema>;
3017
- export declare const BusRouteRuleSchema: z.ZodObject<{
3018
- id: z.ZodOptional<z.ZodString>;
3019
- name: z.ZodString;
3020
- description: z.ZodOptional<z.ZodString>;
3021
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3022
- match: z.ZodObject<{
3023
- eventType: z.ZodString;
3024
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3025
- }, "strip", z.ZodTypeAny, {
3026
- eventType: string;
3027
- sourceServiceCode?: string | undefined;
3028
- }, {
3029
- eventType: string;
3030
- sourceServiceCode?: string | undefined;
3031
- }>;
3032
- target: z.ZodObject<{
3033
- serviceCode: z.ZodString;
3034
- actionName: z.ZodString;
3035
- }, "strip", z.ZodTypeAny, {
3036
- serviceCode: string;
3037
- actionName: string;
3038
- }, {
3039
- serviceCode: string;
3040
- actionName: string;
3041
- }>;
3042
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3043
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3044
- }, "strip", z.ZodTypeAny, {
3045
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3046
- name: string;
3047
- match: {
3048
- eventType: string;
3049
- sourceServiceCode?: string | undefined;
3050
- };
3051
- target: {
3052
- serviceCode: string;
3053
- actionName: string;
3054
- };
3055
- id?: string | undefined;
3056
- description?: string | undefined;
3057
- metadata?: Record<string, any> | undefined;
3058
- inputMapping?: Record<string, any> | undefined;
3059
- }, {
3060
- name: string;
3061
- match: {
3062
- eventType: string;
3063
- sourceServiceCode?: string | undefined;
3064
- };
3065
- target: {
3066
- serviceCode: string;
3067
- actionName: string;
3068
- };
3069
- id?: string | undefined;
3070
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3071
- description?: string | undefined;
3072
- metadata?: Record<string, any> | undefined;
3073
- inputMapping?: Record<string, any> | undefined;
3074
- }>;
3075
- export type BusRouteRule = z.infer<typeof BusRouteRuleSchema>;
3076
- export declare const CreateBusRouteRuleRequestSchema: z.ZodObject<Omit<{
3077
- id: z.ZodOptional<z.ZodString>;
3078
- name: z.ZodString;
3079
- description: z.ZodOptional<z.ZodString>;
3080
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3081
- match: z.ZodObject<{
3082
- eventType: z.ZodString;
3083
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3084
- }, "strip", z.ZodTypeAny, {
3085
- eventType: string;
3086
- sourceServiceCode?: string | undefined;
3087
- }, {
3088
- eventType: string;
3089
- sourceServiceCode?: string | undefined;
3090
- }>;
3091
- target: z.ZodObject<{
3092
- serviceCode: z.ZodString;
3093
- actionName: z.ZodString;
3094
- }, "strip", z.ZodTypeAny, {
3095
- serviceCode: string;
3096
- actionName: string;
3097
- }, {
3098
- serviceCode: string;
3099
- actionName: string;
3100
- }>;
3101
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3102
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3103
- }, "id">, "strip", z.ZodTypeAny, {
3104
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3105
- name: string;
3106
- match: {
3107
- eventType: string;
3108
- sourceServiceCode?: string | undefined;
3109
- };
3110
- target: {
3111
- serviceCode: string;
3112
- actionName: string;
3113
- };
3114
- description?: string | undefined;
3115
- metadata?: Record<string, any> | undefined;
3116
- inputMapping?: Record<string, any> | undefined;
3117
- }, {
3118
- name: string;
3119
- match: {
3120
- eventType: string;
3121
- sourceServiceCode?: string | undefined;
3122
- };
3123
- target: {
3124
- serviceCode: string;
3125
- actionName: string;
3126
- };
3127
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3128
- description?: string | undefined;
3129
- metadata?: Record<string, any> | undefined;
3130
- inputMapping?: Record<string, any> | undefined;
3131
- }>;
3132
- export type CreateBusRouteRuleRequest = z.infer<typeof CreateBusRouteRuleRequestSchema>;
3133
- export declare const BusCommandRequestSchema: z.ZodObject<{
3134
- commandId: z.ZodOptional<z.ZodString>;
3135
- commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
3136
- targetService: z.ZodString;
3137
- actionName: z.ZodString;
3138
- sourceEventId: z.ZodOptional<z.ZodString>;
3139
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3140
- metadata: z.ZodOptional<z.ZodObject<{
3141
- routingRuleId: z.ZodOptional<z.ZodString>;
3142
- correlationId: z.ZodOptional<z.ZodString>;
3143
- }, "strip", z.ZodAny, z.objectOutputType<{
3144
- routingRuleId: z.ZodOptional<z.ZodString>;
3145
- correlationId: z.ZodOptional<z.ZodString>;
3146
- }, z.ZodAny, "strip">, z.objectInputType<{
3147
- routingRuleId: z.ZodOptional<z.ZodString>;
3148
- correlationId: z.ZodOptional<z.ZodString>;
3149
- }, z.ZodAny, "strip">>>;
3150
- }, "strip", z.ZodTypeAny, {
3151
- actionName: string;
3152
- commandType: "ACTION_EXECUTE";
3153
- targetService: string;
3154
- metadata?: z.objectOutputType<{
3155
- routingRuleId: z.ZodOptional<z.ZodString>;
3156
- correlationId: z.ZodOptional<z.ZodString>;
3157
- }, z.ZodAny, "strip"> | undefined;
3158
- payload?: Record<string, any> | undefined;
3159
- commandId?: string | undefined;
3160
- sourceEventId?: string | undefined;
3161
- }, {
3162
- actionName: string;
3163
- targetService: string;
3164
- metadata?: z.objectInputType<{
3165
- routingRuleId: z.ZodOptional<z.ZodString>;
3166
- correlationId: z.ZodOptional<z.ZodString>;
3167
- }, z.ZodAny, "strip"> | undefined;
3168
- payload?: Record<string, any> | undefined;
3169
- commandId?: string | undefined;
3170
- commandType?: "ACTION_EXECUTE" | undefined;
3171
- sourceEventId?: string | undefined;
3172
- }>;
3173
- export type BusCommandRequest = z.infer<typeof BusCommandRequestSchema>;
3174
- export declare const busCommandRequestSchema: z.ZodObject<{
3175
- commandId: z.ZodOptional<z.ZodString>;
3176
- commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
3177
- targetService: z.ZodString;
3178
- actionName: z.ZodString;
3179
- sourceEventId: z.ZodOptional<z.ZodString>;
3180
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3181
- metadata: z.ZodOptional<z.ZodObject<{
3182
- routingRuleId: z.ZodOptional<z.ZodString>;
3183
- correlationId: z.ZodOptional<z.ZodString>;
3184
- }, "strip", z.ZodAny, z.objectOutputType<{
3185
- routingRuleId: z.ZodOptional<z.ZodString>;
3186
- correlationId: z.ZodOptional<z.ZodString>;
3187
- }, z.ZodAny, "strip">, z.objectInputType<{
3188
- routingRuleId: z.ZodOptional<z.ZodString>;
3189
- correlationId: z.ZodOptional<z.ZodString>;
3190
- }, z.ZodAny, "strip">>>;
3191
- }, "strip", z.ZodTypeAny, {
3192
- actionName: string;
3193
- commandType: "ACTION_EXECUTE";
3194
- targetService: string;
3195
- metadata?: z.objectOutputType<{
3196
- routingRuleId: z.ZodOptional<z.ZodString>;
3197
- correlationId: z.ZodOptional<z.ZodString>;
3198
- }, z.ZodAny, "strip"> | undefined;
3199
- payload?: Record<string, any> | undefined;
3200
- commandId?: string | undefined;
3201
- sourceEventId?: string | undefined;
3202
- }, {
3203
- actionName: string;
3204
- targetService: string;
3205
- metadata?: z.objectInputType<{
3206
- routingRuleId: z.ZodOptional<z.ZodString>;
3207
- correlationId: z.ZodOptional<z.ZodString>;
3208
- }, z.ZodAny, "strip"> | undefined;
3209
- payload?: Record<string, any> | undefined;
3210
- commandId?: string | undefined;
3211
- commandType?: "ACTION_EXECUTE" | undefined;
3212
- sourceEventId?: string | undefined;
3213
- }>;
3214
- export declare const BusRoutingRuleSchema: z.ZodObject<{
3215
- id: z.ZodOptional<z.ZodString>;
3216
- name: z.ZodString;
3217
- description: z.ZodOptional<z.ZodString>;
3218
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3219
- match: z.ZodObject<{
3220
- eventType: z.ZodString;
3221
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3222
- }, "strip", z.ZodTypeAny, {
3223
- eventType: string;
3224
- sourceServiceCode?: string | undefined;
3225
- }, {
3226
- eventType: string;
3227
- sourceServiceCode?: string | undefined;
3228
- }>;
3229
- target: z.ZodObject<{
3230
- serviceCode: z.ZodString;
3231
- actionName: z.ZodString;
3232
- }, "strip", z.ZodTypeAny, {
3233
- serviceCode: string;
3234
- actionName: string;
3235
- }, {
3236
- serviceCode: string;
3237
- actionName: string;
3238
- }>;
3239
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3240
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3241
- }, "strip", z.ZodTypeAny, {
3242
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3243
- name: string;
3244
- match: {
3245
- eventType: string;
3246
- sourceServiceCode?: string | undefined;
3247
- };
3248
- target: {
3249
- serviceCode: string;
3250
- actionName: string;
3251
- };
3252
- id?: string | undefined;
3253
- description?: string | undefined;
3254
- metadata?: Record<string, any> | undefined;
3255
- inputMapping?: Record<string, any> | undefined;
3256
- }, {
3257
- name: string;
3258
- match: {
3259
- eventType: string;
3260
- sourceServiceCode?: string | undefined;
3261
- };
3262
- target: {
3263
- serviceCode: string;
3264
- actionName: string;
3265
- };
3266
- id?: string | undefined;
3267
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3268
- description?: string | undefined;
3269
- metadata?: Record<string, any> | undefined;
3270
- inputMapping?: Record<string, any> | undefined;
3271
- }>;
3272
- export type BusRoutingRule = BusRouteRule;
3273
- export declare const busRoutingRuleSchema: z.ZodObject<{
3274
- id: z.ZodOptional<z.ZodString>;
3275
- name: z.ZodString;
3276
- description: z.ZodOptional<z.ZodString>;
3277
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3278
- match: z.ZodObject<{
3279
- eventType: z.ZodString;
3280
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3281
- }, "strip", z.ZodTypeAny, {
3282
- eventType: string;
3283
- sourceServiceCode?: string | undefined;
3284
- }, {
3285
- eventType: string;
3286
- sourceServiceCode?: string | undefined;
3287
- }>;
3288
- target: z.ZodObject<{
3289
- serviceCode: z.ZodString;
3290
- actionName: z.ZodString;
3291
- }, "strip", z.ZodTypeAny, {
3292
- serviceCode: string;
3293
- actionName: string;
3294
- }, {
3295
- serviceCode: string;
3296
- actionName: string;
3297
- }>;
3298
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3299
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3300
- }, "strip", z.ZodTypeAny, {
3301
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3302
- name: string;
3303
- match: {
3304
- eventType: string;
3305
- sourceServiceCode?: string | undefined;
3306
- };
3307
- target: {
3308
- serviceCode: string;
3309
- actionName: string;
3310
- };
3311
- id?: string | undefined;
3312
- description?: string | undefined;
3313
- metadata?: Record<string, any> | undefined;
3314
- inputMapping?: Record<string, any> | undefined;
3315
- }, {
3316
- name: string;
3317
- match: {
3318
- eventType: string;
3319
- sourceServiceCode?: string | undefined;
3320
- };
3321
- target: {
3322
- serviceCode: string;
3323
- actionName: string;
3324
- };
3325
- id?: string | undefined;
3326
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3327
- description?: string | undefined;
3328
- metadata?: Record<string, any> | undefined;
3329
- inputMapping?: Record<string, any> | undefined;
3330
- }>;
3331
- export declare const BusRoutedCommandSchema: z.ZodObject<{
3332
- routeId: z.ZodString;
3333
- commandId: z.ZodOptional<z.ZodString>;
3334
- dryRun: z.ZodBoolean;
3335
- targetServiceCode: z.ZodString;
3336
- actionName: z.ZodString;
3337
- status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
3338
- errorCode: z.ZodOptional<z.ZodString>;
3339
- errorMessage: z.ZodOptional<z.ZodString>;
3340
- }, "strip", z.ZodTypeAny, {
3341
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3342
- dryRun: boolean;
3343
- actionName: string;
3344
- routeId: string;
3345
- targetServiceCode: string;
3346
- commandId?: string | undefined;
3347
- errorCode?: string | undefined;
3348
- errorMessage?: string | undefined;
3349
- }, {
3350
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3351
- dryRun: boolean;
3352
- actionName: string;
3353
- routeId: string;
3354
- targetServiceCode: string;
3355
- commandId?: string | undefined;
3356
- errorCode?: string | undefined;
3357
- errorMessage?: string | undefined;
3358
- }>;
3359
- export type BusRoutedCommand = z.infer<typeof BusRoutedCommandSchema>;
3360
- export declare const PublishBusEventResponseSchema: z.ZodObject<{
3361
- eventId: z.ZodString;
3362
- experimental: z.ZodLiteral<"v0.4-experimental">;
3363
- routedCommands: z.ZodArray<z.ZodObject<{
3364
- routeId: z.ZodString;
3365
- commandId: z.ZodOptional<z.ZodString>;
3366
- dryRun: z.ZodBoolean;
3367
- targetServiceCode: z.ZodString;
3368
- actionName: z.ZodString;
3369
- status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
3370
- errorCode: z.ZodOptional<z.ZodString>;
3371
- errorMessage: z.ZodOptional<z.ZodString>;
3372
- }, "strip", z.ZodTypeAny, {
3373
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3374
- dryRun: boolean;
3375
- actionName: string;
3376
- routeId: string;
3377
- targetServiceCode: string;
3378
- commandId?: string | undefined;
3379
- errorCode?: string | undefined;
3380
- errorMessage?: string | undefined;
3381
- }, {
3382
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3383
- dryRun: boolean;
3384
- actionName: string;
3385
- routeId: string;
3386
- targetServiceCode: string;
3387
- commandId?: string | undefined;
3388
- errorCode?: string | undefined;
3389
- errorMessage?: string | undefined;
3390
- }>, "many">;
3391
- }, "strip", z.ZodTypeAny, {
3392
- experimental: "v0.4-experimental";
3393
- eventId: string;
3394
- routedCommands: {
3395
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3396
- dryRun: boolean;
3397
- actionName: string;
3398
- routeId: string;
3399
- targetServiceCode: string;
3400
- commandId?: string | undefined;
3401
- errorCode?: string | undefined;
3402
- errorMessage?: string | undefined;
3403
- }[];
3404
- }, {
3405
- experimental: "v0.4-experimental";
3406
- eventId: string;
3407
- routedCommands: {
3408
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3409
- dryRun: boolean;
3410
- actionName: string;
3411
- routeId: string;
3412
- targetServiceCode: string;
3413
- commandId?: string | undefined;
3414
- errorCode?: string | undefined;
3415
- errorMessage?: string | undefined;
3416
- }[];
3417
- }>;
3418
- export type PublishBusEventResponse = z.infer<typeof PublishBusEventResponseSchema>;
3419
- export declare const BusEventRecordSchema: z.ZodObject<{
3420
- experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
3421
- eventType: z.ZodString;
3422
- sourceServiceCode: z.ZodString;
3423
- sourceServiceId: z.ZodOptional<z.ZodString>;
3424
- occurredAt: z.ZodOptional<z.ZodString>;
3425
- correlationId: z.ZodOptional<z.ZodString>;
3426
- causationId: z.ZodOptional<z.ZodString>;
3427
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3428
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3429
- } & {
3430
- id: z.ZodString;
3431
- agentId: z.ZodString;
3432
- acceptedAt: z.ZodString;
3433
- routeCount: z.ZodNumber;
3434
- }, "strip", z.ZodTypeAny, {
3435
- id: string;
3436
- agentId: string;
3437
- experimental: "v0.4-experimental";
3438
- eventType: string;
3439
- sourceServiceCode: string;
3440
- acceptedAt: string;
3441
- routeCount: number;
3442
- metadata?: Record<string, any> | undefined;
3443
- sourceServiceId?: string | undefined;
3444
- occurredAt?: string | undefined;
3445
- correlationId?: string | undefined;
3446
- causationId?: string | undefined;
3447
- payload?: Record<string, any> | undefined;
3448
- }, {
3449
- id: string;
3450
- agentId: string;
3451
- eventType: string;
3452
- sourceServiceCode: string;
3453
- acceptedAt: string;
3454
- routeCount: number;
3455
- metadata?: Record<string, any> | undefined;
3456
- experimental?: "v0.4-experimental" | undefined;
3457
- sourceServiceId?: string | undefined;
3458
- occurredAt?: string | undefined;
3459
- correlationId?: string | undefined;
3460
- causationId?: string | undefined;
3461
- payload?: Record<string, any> | undefined;
3462
- }>;
3463
- export type BusEventRecord = z.infer<typeof BusEventRecordSchema>;
3464
- export declare const BusErrorCode: {
3465
- readonly CAPSULE_BUS_DISABLED: "CAPSULE_BUS_DISABLED";
3466
- readonly BUS_RATE_LIMITED: "BUS_RATE_LIMITED";
3467
- readonly BUS_DEPTH_EXCEEDED: "BUS_DEPTH_EXCEEDED";
3468
- };
3469
- export type BusErrorCode = (typeof BusErrorCode)[keyof typeof BusErrorCode];
3470
- export declare const publishBusEventRequestSchema: z.ZodObject<Omit<{
3471
- id: z.ZodOptional<z.ZodString>;
3472
- experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
3473
- eventType: z.ZodString;
3474
- sourceServiceCode: z.ZodString;
3475
- sourceServiceId: z.ZodOptional<z.ZodString>;
3476
- occurredAt: z.ZodOptional<z.ZodString>;
3477
- correlationId: z.ZodOptional<z.ZodString>;
3478
- causationId: z.ZodOptional<z.ZodString>;
3479
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3480
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3481
- }, "id"> & {
3482
- routePolicy: z.ZodOptional<z.ZodObject<{
3483
- dryRun: z.ZodOptional<z.ZodBoolean>;
3484
- }, "strip", z.ZodTypeAny, {
3485
- dryRun?: boolean | undefined;
3486
- }, {
3487
- dryRun?: boolean | undefined;
3488
- }>>;
3489
- }, "strip", z.ZodTypeAny, {
3490
- experimental: "v0.4-experimental";
3491
- eventType: string;
3492
- sourceServiceCode: string;
3493
- metadata?: Record<string, any> | undefined;
3494
- sourceServiceId?: string | undefined;
3495
- occurredAt?: string | undefined;
3496
- correlationId?: string | undefined;
3497
- causationId?: string | undefined;
3498
- payload?: Record<string, any> | undefined;
3499
- routePolicy?: {
3500
- dryRun?: boolean | undefined;
3501
- } | undefined;
3502
- }, {
3503
- eventType: string;
3504
- sourceServiceCode: string;
3505
- metadata?: Record<string, any> | undefined;
3506
- experimental?: "v0.4-experimental" | undefined;
3507
- sourceServiceId?: string | undefined;
3508
- occurredAt?: string | undefined;
3509
- correlationId?: string | undefined;
3510
- causationId?: string | undefined;
3511
- payload?: Record<string, any> | undefined;
3512
- routePolicy?: {
3513
- dryRun?: boolean | undefined;
3514
- } | undefined;
3515
- }>;
3516
- export declare const publishBusEventResponseSchema: z.ZodObject<{
3517
- eventId: z.ZodString;
3518
- experimental: z.ZodLiteral<"v0.4-experimental">;
3519
- routedCommands: z.ZodArray<z.ZodObject<{
3520
- routeId: z.ZodString;
3521
- commandId: z.ZodOptional<z.ZodString>;
3522
- dryRun: z.ZodBoolean;
3523
- targetServiceCode: z.ZodString;
3524
- actionName: z.ZodString;
3525
- status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
3526
- errorCode: z.ZodOptional<z.ZodString>;
3527
- errorMessage: z.ZodOptional<z.ZodString>;
3528
- }, "strip", z.ZodTypeAny, {
3529
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3530
- dryRun: boolean;
3531
- actionName: string;
3532
- routeId: string;
3533
- targetServiceCode: string;
3534
- commandId?: string | undefined;
3535
- errorCode?: string | undefined;
3536
- errorMessage?: string | undefined;
3537
- }, {
3538
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3539
- dryRun: boolean;
3540
- actionName: string;
3541
- routeId: string;
3542
- targetServiceCode: string;
3543
- commandId?: string | undefined;
3544
- errorCode?: string | undefined;
3545
- errorMessage?: string | undefined;
3546
- }>, "many">;
3547
- }, "strip", z.ZodTypeAny, {
3548
- experimental: "v0.4-experimental";
3549
- eventId: string;
3550
- routedCommands: {
3551
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3552
- dryRun: boolean;
3553
- actionName: string;
3554
- routeId: string;
3555
- targetServiceCode: string;
3556
- commandId?: string | undefined;
3557
- errorCode?: string | undefined;
3558
- errorMessage?: string | undefined;
3559
- }[];
3560
- }, {
3561
- experimental: "v0.4-experimental";
3562
- eventId: string;
3563
- routedCommands: {
3564
- status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
3565
- dryRun: boolean;
3566
- actionName: string;
3567
- routeId: string;
3568
- targetServiceCode: string;
3569
- commandId?: string | undefined;
3570
- errorCode?: string | undefined;
3571
- errorMessage?: string | undefined;
3572
- }[];
3573
- }>;
3574
- export declare const busEventEnvelopeSchema: z.ZodObject<{
3575
- id: z.ZodOptional<z.ZodString>;
3576
- experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
3577
- eventType: z.ZodString;
3578
- sourceServiceCode: z.ZodString;
3579
- sourceServiceId: z.ZodOptional<z.ZodString>;
3580
- occurredAt: z.ZodOptional<z.ZodString>;
3581
- correlationId: z.ZodOptional<z.ZodString>;
3582
- causationId: z.ZodOptional<z.ZodString>;
3583
- payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3584
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3585
- }, "strip", z.ZodTypeAny, {
3586
- experimental: "v0.4-experimental";
3587
- eventType: string;
3588
- sourceServiceCode: string;
3589
- id?: string | undefined;
3590
- metadata?: Record<string, any> | undefined;
3591
- sourceServiceId?: string | undefined;
3592
- occurredAt?: string | undefined;
3593
- correlationId?: string | undefined;
3594
- causationId?: string | undefined;
3595
- payload?: Record<string, any> | undefined;
3596
- }, {
3597
- eventType: string;
3598
- sourceServiceCode: string;
3599
- id?: string | undefined;
3600
- metadata?: Record<string, any> | undefined;
3601
- experimental?: "v0.4-experimental" | undefined;
3602
- sourceServiceId?: string | undefined;
3603
- occurredAt?: string | undefined;
3604
- correlationId?: string | undefined;
3605
- causationId?: string | undefined;
3606
- payload?: Record<string, any> | undefined;
3607
- }>;
3608
- export declare const busRouteRuleSchema: z.ZodObject<{
3609
- id: z.ZodOptional<z.ZodString>;
3610
- name: z.ZodString;
3611
- description: z.ZodOptional<z.ZodString>;
3612
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3613
- match: z.ZodObject<{
3614
- eventType: z.ZodString;
3615
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3616
- }, "strip", z.ZodTypeAny, {
3617
- eventType: string;
3618
- sourceServiceCode?: string | undefined;
3619
- }, {
3620
- eventType: string;
3621
- sourceServiceCode?: string | undefined;
3622
- }>;
3623
- target: z.ZodObject<{
3624
- serviceCode: z.ZodString;
3625
- actionName: z.ZodString;
3626
- }, "strip", z.ZodTypeAny, {
3627
- serviceCode: string;
3628
- actionName: string;
3629
- }, {
3630
- serviceCode: string;
3631
- actionName: string;
3632
- }>;
3633
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3634
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3635
- }, "strip", z.ZodTypeAny, {
3636
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3637
- name: string;
3638
- match: {
3639
- eventType: string;
3640
- sourceServiceCode?: string | undefined;
3641
- };
3642
- target: {
3643
- serviceCode: string;
3644
- actionName: string;
3645
- };
3646
- id?: string | undefined;
3647
- description?: string | undefined;
3648
- metadata?: Record<string, any> | undefined;
3649
- inputMapping?: Record<string, any> | undefined;
3650
- }, {
3651
- name: string;
3652
- match: {
3653
- eventType: string;
3654
- sourceServiceCode?: string | undefined;
3655
- };
3656
- target: {
3657
- serviceCode: string;
3658
- actionName: string;
3659
- };
3660
- id?: string | undefined;
3661
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3662
- description?: string | undefined;
3663
- metadata?: Record<string, any> | undefined;
3664
- inputMapping?: Record<string, any> | undefined;
3665
- }>;
3666
- export declare const createBusRouteRuleRequestSchema: z.ZodObject<Omit<{
3667
- id: z.ZodOptional<z.ZodString>;
3668
- name: z.ZodString;
3669
- description: z.ZodOptional<z.ZodString>;
3670
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
3671
- match: z.ZodObject<{
3672
- eventType: z.ZodString;
3673
- sourceServiceCode: z.ZodOptional<z.ZodString>;
3674
- }, "strip", z.ZodTypeAny, {
3675
- eventType: string;
3676
- sourceServiceCode?: string | undefined;
3677
- }, {
3678
- eventType: string;
3679
- sourceServiceCode?: string | undefined;
3680
- }>;
3681
- target: z.ZodObject<{
3682
- serviceCode: z.ZodString;
3683
- actionName: z.ZodString;
3684
- }, "strip", z.ZodTypeAny, {
3685
- serviceCode: string;
3686
- actionName: string;
3687
- }, {
3688
- serviceCode: string;
3689
- actionName: string;
3690
- }>;
3691
- inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3692
- metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3693
- }, "id">, "strip", z.ZodTypeAny, {
3694
- status: "DISABLED" | "ENABLED" | "DRY_RUN";
3695
- name: string;
3696
- match: {
3697
- eventType: string;
3698
- sourceServiceCode?: string | undefined;
3699
- };
3700
- target: {
3701
- serviceCode: string;
3702
- actionName: string;
3703
- };
3704
- description?: string | undefined;
3705
- metadata?: Record<string, any> | undefined;
3706
- inputMapping?: Record<string, any> | undefined;
3707
- }, {
3708
- name: string;
3709
- match: {
3710
- eventType: string;
3711
- sourceServiceCode?: string | undefined;
3712
- };
3713
- target: {
3714
- serviceCode: string;
3715
- actionName: string;
3716
- };
3717
- status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
3718
- description?: string | undefined;
3719
- metadata?: Record<string, any> | undefined;
3720
- inputMapping?: Record<string, any> | undefined;
3721
- }>;
3722
- export declare const CreateActionCommandRequestSchema: z.ZodObject<{
3723
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3724
- confirmation: z.ZodOptional<z.ZodBoolean>;
3725
- }, "strip", z.ZodTypeAny, {
3726
- payload?: Record<string, any> | undefined;
3727
- confirmation?: boolean | undefined;
3728
- }, {
3729
- payload?: Record<string, any> | undefined;
3730
- confirmation?: boolean | undefined;
3731
- }>;
3732
- export type CreateActionCommandRequest = z.infer<typeof CreateActionCommandRequestSchema>;
3733
- export declare const createActionCommandRequestSchema: z.ZodObject<{
3734
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3735
- confirmation: z.ZodOptional<z.ZodBoolean>;
3736
- }, "strip", z.ZodTypeAny, {
3737
- payload?: Record<string, any> | undefined;
3738
- confirmation?: boolean | undefined;
3739
- }, {
3740
- payload?: Record<string, any> | undefined;
3741
- confirmation?: boolean | undefined;
3742
- }>;
3743
- export declare const CommandTypeSchema: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE"]>;
3744
- export type CommandType = z.infer<typeof CommandTypeSchema>;
3745
- export declare const CommandSchema: z.ZodObject<{
3746
- id: z.ZodString;
3747
- agentId: z.ZodString;
3748
- serviceId: z.ZodString;
3749
- type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE"]>;
3750
- actionName: z.ZodString;
3751
- status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
3752
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3753
- createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3754
- createdAt: z.ZodString;
3755
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3756
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3757
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3758
- }, "strip", z.ZodTypeAny, {
3759
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
3760
- id: string;
3761
- createdAt: string;
3762
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
3763
- agentId: string;
3764
- serviceId: string;
3765
- actionName: string;
3766
- expiresAt?: string | null | undefined;
3767
- payload?: Record<string, any> | undefined;
3768
- createdByUserId?: string | null | undefined;
3769
- startedAt?: string | null | undefined;
3770
- completedAt?: string | null | undefined;
3771
- }, {
3772
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
3773
- id: string;
3774
- createdAt: string;
3775
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
3776
- agentId: string;
3777
- serviceId: string;
3778
- actionName: string;
3779
- expiresAt?: string | null | undefined;
3780
- payload?: Record<string, any> | undefined;
3781
- createdByUserId?: string | null | undefined;
3782
- startedAt?: string | null | undefined;
3783
- completedAt?: string | null | undefined;
3784
- }>;
3785
- export type Command = z.infer<typeof CommandSchema>;
3786
- export declare const ReportCommandResultRequestSchema: z.ZodObject<{
3787
- success: z.ZodBoolean;
3788
- message: z.ZodOptional<z.ZodString>;
3789
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3790
- error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3791
- startedAt: z.ZodOptional<z.ZodString>;
3792
- finishedAt: z.ZodOptional<z.ZodString>;
3793
- }, "strip", z.ZodTypeAny, {
3794
- success: boolean;
3795
- message?: string | undefined;
3796
- startedAt?: string | undefined;
3797
- data?: Record<string, any> | undefined;
3798
- error?: Record<string, any> | undefined;
3799
- finishedAt?: string | undefined;
3800
- }, {
3801
- success: boolean;
3802
- message?: string | undefined;
3803
- startedAt?: string | undefined;
3804
- data?: Record<string, any> | undefined;
3805
- error?: Record<string, any> | undefined;
3806
- finishedAt?: string | undefined;
3807
- }>;
3808
- export type ReportCommandResultRequest = z.infer<typeof ReportCommandResultRequestSchema>;
3809
- export declare const reportCommandResultRequestSchema: z.ZodObject<{
3810
- success: z.ZodBoolean;
3811
- message: z.ZodOptional<z.ZodString>;
3812
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3813
- error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3814
- startedAt: z.ZodOptional<z.ZodString>;
3815
- finishedAt: z.ZodOptional<z.ZodString>;
3816
- }, "strip", z.ZodTypeAny, {
3817
- success: boolean;
3818
- message?: string | undefined;
3819
- startedAt?: string | undefined;
3820
- data?: Record<string, any> | undefined;
3821
- error?: Record<string, any> | undefined;
3822
- finishedAt?: string | undefined;
3823
- }, {
3824
- success: boolean;
3825
- message?: string | undefined;
3826
- startedAt?: string | undefined;
3827
- data?: Record<string, any> | undefined;
3828
- error?: Record<string, any> | undefined;
3829
- finishedAt?: string | undefined;
3830
- }>;
3831
- export declare const CommandResultSchema: z.ZodObject<{
3832
- id: z.ZodString;
3833
- commandId: z.ZodString;
3834
- success: z.ZodBoolean;
3835
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3836
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3837
- error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3838
- reportedAt: z.ZodString;
3839
- }, "strip", z.ZodTypeAny, {
3840
- id: string;
3841
- reportedAt: string;
3842
- commandId: string;
3843
- success: boolean;
3844
- message?: string | null | undefined;
3845
- data?: Record<string, any> | undefined;
3846
- error?: Record<string, any> | undefined;
3847
- }, {
3848
- id: string;
3849
- reportedAt: string;
3850
- commandId: string;
3851
- success: boolean;
3852
- message?: string | null | undefined;
3853
- data?: Record<string, any> | undefined;
3854
- error?: Record<string, any> | undefined;
3855
- }>;
3856
- export type CommandResult = z.infer<typeof CommandResultSchema>;
3857
- export declare const CommandDetailSchema: z.ZodObject<{
3858
- id: z.ZodString;
3859
- agentId: z.ZodString;
3860
- serviceId: z.ZodString;
3861
- type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE"]>;
3862
- actionName: z.ZodString;
3863
- status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
3864
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3865
- createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3866
- createdAt: z.ZodString;
3867
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3868
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3869
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3870
- } & {
3871
- result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3872
- id: z.ZodString;
3873
- commandId: z.ZodString;
3874
- success: z.ZodBoolean;
3875
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3876
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3877
- error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3878
- reportedAt: z.ZodString;
3879
- }, "strip", z.ZodTypeAny, {
3880
- id: string;
3881
- reportedAt: string;
3882
- commandId: string;
3883
- success: boolean;
3884
- message?: string | null | undefined;
3885
- data?: Record<string, any> | undefined;
3886
- error?: Record<string, any> | undefined;
3887
- }, {
3888
- id: string;
3889
- reportedAt: string;
3890
- commandId: string;
3891
- success: boolean;
3892
- message?: string | null | undefined;
3893
- data?: Record<string, any> | undefined;
3894
- error?: Record<string, any> | undefined;
3895
- }>>>;
3896
- }, "strip", z.ZodTypeAny, {
3897
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
3898
- id: string;
3899
- createdAt: string;
3900
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
3901
- agentId: string;
3902
- serviceId: string;
3903
- actionName: string;
3904
- expiresAt?: string | null | undefined;
3905
- payload?: Record<string, any> | undefined;
3906
- createdByUserId?: string | null | undefined;
3907
- startedAt?: string | null | undefined;
3908
- completedAt?: string | null | undefined;
3909
- result?: {
3910
- id: string;
3911
- reportedAt: string;
3912
- commandId: string;
3913
- success: boolean;
3914
- message?: string | null | undefined;
3915
- data?: Record<string, any> | undefined;
3916
- error?: Record<string, any> | undefined;
3917
- } | null | undefined;
3918
- }, {
3919
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
3920
- id: string;
3921
- createdAt: string;
3922
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
3923
- agentId: string;
3924
- serviceId: string;
3925
- actionName: string;
3926
- expiresAt?: string | null | undefined;
3927
- payload?: Record<string, any> | undefined;
3928
- createdByUserId?: string | null | undefined;
3929
- startedAt?: string | null | undefined;
3930
- completedAt?: string | null | undefined;
3931
- result?: {
3932
- id: string;
3933
- reportedAt: string;
3934
- commandId: string;
3935
- success: boolean;
3936
- message?: string | null | undefined;
3937
- data?: Record<string, any> | undefined;
3938
- error?: Record<string, any> | undefined;
3939
- } | null | undefined;
3940
- }>;
3941
- export type CommandDetail = z.infer<typeof CommandDetailSchema>;
3942
- export declare const AuditEventSchema: z.ZodObject<{
3943
- id: z.ZodString;
3944
- actorType: z.ZodEnum<["USER", "AGENT", "SYSTEM"]>;
3945
- actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3946
- action: z.ZodString;
3947
- targetType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3948
- targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3949
- result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
3950
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3951
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3952
- createdAt: z.ZodString;
3953
- }, "strip", z.ZodTypeAny, {
3954
- id: string;
3955
- createdAt: string;
3956
- action: string;
3957
- result: "SUCCESS" | "FAILURE";
3958
- actorType: "USER" | "AGENT" | "SYSTEM";
3959
- message?: string | null | undefined;
3960
- metadata?: Record<string, any> | undefined;
3961
- actorId?: string | null | undefined;
3962
- targetType?: string | null | undefined;
3963
- targetId?: string | null | undefined;
3964
- }, {
3965
- id: string;
3966
- createdAt: string;
3967
- action: string;
3968
- result: "SUCCESS" | "FAILURE";
3969
- actorType: "USER" | "AGENT" | "SYSTEM";
3970
- message?: string | null | undefined;
3971
- metadata?: Record<string, any> | undefined;
3972
- actorId?: string | null | undefined;
3973
- targetType?: string | null | undefined;
3974
- targetId?: string | null | undefined;
3975
- }>;
3976
- export type AuditEvent = z.infer<typeof AuditEventSchema>;
3977
- export declare const DashboardSummarySchema: z.ZodObject<{
3978
- agentCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
3979
- serviceCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
3980
- commandCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
3981
- recentCommands: z.ZodOptional<z.ZodArray<z.ZodObject<{
3982
- id: z.ZodString;
3983
- agentId: z.ZodString;
3984
- serviceId: z.ZodString;
3985
- type: z.ZodEnum<["ACTION_PREPARE", "ACTION_EXECUTE"]>;
3986
- actionName: z.ZodString;
3987
- status: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
3988
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3989
- createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3990
- createdAt: z.ZodString;
3991
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3992
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3993
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3994
- }, "strip", z.ZodTypeAny, {
3995
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
3996
- id: string;
3997
- createdAt: string;
3998
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
3999
- agentId: string;
4000
- serviceId: string;
4001
- actionName: string;
4002
- expiresAt?: string | null | undefined;
4003
- payload?: Record<string, any> | undefined;
4004
- createdByUserId?: string | null | undefined;
4005
- startedAt?: string | null | undefined;
4006
- completedAt?: string | null | undefined;
4007
- }, {
4008
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
4009
- id: string;
4010
- createdAt: string;
4011
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
4012
- agentId: string;
4013
- serviceId: string;
4014
- actionName: string;
4015
- expiresAt?: string | null | undefined;
4016
- payload?: Record<string, any> | undefined;
4017
- createdByUserId?: string | null | undefined;
4018
- startedAt?: string | null | undefined;
4019
- completedAt?: string | null | undefined;
4020
- }>, "many">>;
4021
- recentAuditEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
4022
- id: z.ZodString;
4023
- actorType: z.ZodEnum<["USER", "AGENT", "SYSTEM"]>;
4024
- actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4025
- action: z.ZodString;
4026
- targetType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4027
- targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4028
- result: z.ZodEnum<["SUCCESS", "FAILURE"]>;
4029
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4030
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4031
- createdAt: z.ZodString;
4032
- }, "strip", z.ZodTypeAny, {
4033
- id: string;
4034
- createdAt: string;
4035
- action: string;
4036
- result: "SUCCESS" | "FAILURE";
4037
- actorType: "USER" | "AGENT" | "SYSTEM";
4038
- message?: string | null | undefined;
4039
- metadata?: Record<string, any> | undefined;
4040
- actorId?: string | null | undefined;
4041
- targetType?: string | null | undefined;
4042
- targetId?: string | null | undefined;
4043
- }, {
4044
- id: string;
4045
- createdAt: string;
4046
- action: string;
4047
- result: "SUCCESS" | "FAILURE";
4048
- actorType: "USER" | "AGENT" | "SYSTEM";
4049
- message?: string | null | undefined;
4050
- metadata?: Record<string, any> | undefined;
4051
- actorId?: string | null | undefined;
4052
- targetType?: string | null | undefined;
4053
- targetId?: string | null | undefined;
4054
- }>, "many">>;
4055
- }, "strip", z.ZodTypeAny, {
4056
- agentCounts: Record<string, number>;
4057
- serviceCounts: Record<string, number>;
4058
- commandCounts: Record<string, number>;
4059
- recentCommands?: {
4060
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
4061
- id: string;
4062
- createdAt: string;
4063
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
4064
- agentId: string;
4065
- serviceId: string;
4066
- actionName: string;
4067
- expiresAt?: string | null | undefined;
4068
- payload?: Record<string, any> | undefined;
4069
- createdByUserId?: string | null | undefined;
4070
- startedAt?: string | null | undefined;
4071
- completedAt?: string | null | undefined;
4072
- }[] | undefined;
4073
- recentAuditEvents?: {
4074
- id: string;
4075
- createdAt: string;
4076
- action: string;
4077
- result: "SUCCESS" | "FAILURE";
4078
- actorType: "USER" | "AGENT" | "SYSTEM";
4079
- message?: string | null | undefined;
4080
- metadata?: Record<string, any> | undefined;
4081
- actorId?: string | null | undefined;
4082
- targetType?: string | null | undefined;
4083
- targetId?: string | null | undefined;
4084
- }[] | undefined;
4085
- }, {
4086
- agentCounts: Record<string, number>;
4087
- serviceCounts: Record<string, number>;
4088
- commandCounts: Record<string, number>;
4089
- recentCommands?: {
4090
- type: "ACTION_EXECUTE" | "ACTION_PREPARE";
4091
- id: string;
4092
- createdAt: string;
4093
- status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
4094
- agentId: string;
4095
- serviceId: string;
4096
- actionName: string;
4097
- expiresAt?: string | null | undefined;
4098
- payload?: Record<string, any> | undefined;
4099
- createdByUserId?: string | null | undefined;
4100
- startedAt?: string | null | undefined;
4101
- completedAt?: string | null | undefined;
4102
- }[] | undefined;
4103
- recentAuditEvents?: {
4104
- id: string;
4105
- createdAt: string;
4106
- action: string;
4107
- result: "SUCCESS" | "FAILURE";
4108
- actorType: "USER" | "AGENT" | "SYSTEM";
4109
- message?: string | null | undefined;
4110
- metadata?: Record<string, any> | undefined;
4111
- actorId?: string | null | undefined;
4112
- targetType?: string | null | undefined;
4113
- targetId?: string | null | undefined;
4114
- }[] | undefined;
4115
- }>;
4116
- export type DashboardSummary = z.infer<typeof DashboardSummarySchema>;
4117
- export declare const SystemHealthSchema: z.ZodObject<{
4118
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN"]>;
4119
- timestamp: z.ZodString;
4120
- version: z.ZodString;
4121
- edition: z.ZodLiteral<"ce">;
4122
- database: z.ZodObject<{
4123
- status: z.ZodEnum<["UP", "DEGRADED", "DOWN"]>;
4124
- kind: z.ZodOptional<z.ZodEnum<["sqlite", "postgres", "mysql"]>>;
4125
- latencyMs: z.ZodOptional<z.ZodNumber>;
4126
- }, "strip", z.ZodTypeAny, {
4127
- status: "UP" | "DEGRADED" | "DOWN";
4128
- kind?: "sqlite" | "postgres" | "mysql" | undefined;
4129
- latencyMs?: number | undefined;
4130
- }, {
4131
- status: "UP" | "DEGRADED" | "DOWN";
4132
- kind?: "sqlite" | "postgres" | "mysql" | undefined;
4133
- latencyMs?: number | undefined;
4134
- }>;
4135
- uptimeSeconds: z.ZodOptional<z.ZodNumber>;
4136
- }, "strip", z.ZodTypeAny, {
4137
- status: "UP" | "DEGRADED" | "DOWN";
4138
- version: string;
4139
- timestamp: string;
4140
- edition: "ce";
4141
- database: {
4142
- status: "UP" | "DEGRADED" | "DOWN";
4143
- kind?: "sqlite" | "postgres" | "mysql" | undefined;
4144
- latencyMs?: number | undefined;
4145
- };
4146
- uptimeSeconds?: number | undefined;
4147
- }, {
4148
- status: "UP" | "DEGRADED" | "DOWN";
4149
- version: string;
4150
- timestamp: string;
4151
- edition: "ce";
4152
- database: {
4153
- status: "UP" | "DEGRADED" | "DOWN";
4154
- kind?: "sqlite" | "postgres" | "mysql" | undefined;
4155
- latencyMs?: number | undefined;
4156
- };
4157
- uptimeSeconds?: number | undefined;
4158
- }>;
4159
- export type SystemHealth = z.infer<typeof SystemHealthSchema>;
4160
- export declare const SystemVersionSchema: z.ZodObject<{
4161
- version: z.ZodString;
4162
- edition: z.ZodLiteral<"ce">;
4163
- commit: z.ZodOptional<z.ZodString>;
4164
- buildTime: z.ZodOptional<z.ZodString>;
4165
- }, "strip", z.ZodTypeAny, {
4166
- version: string;
4167
- edition: "ce";
4168
- commit?: string | undefined;
4169
- buildTime?: string | undefined;
4170
- }, {
4171
- version: string;
4172
- edition: "ce";
4173
- commit?: string | undefined;
4174
- buildTime?: string | undefined;
4175
- }>;
4176
- export type SystemVersion = z.infer<typeof SystemVersionSchema>;
4177
- export type Pagination = {
4178
- page: number;
4179
- pageSize: number;
4180
- total: number;
4181
- };
4182
- export type SuccessEnvelope<T> = {
4183
- success?: true;
4184
- data: T;
4185
- pagination?: Pagination;
4186
- } | {
4187
- data: T;
4188
- pagination?: Pagination;
4189
- };
4190
- export type ErrorEnvelope = {
4191
- success: false;
4192
- error: {
4193
- code: string;
4194
- message: string;
4195
- details?: unknown;
4196
- };
4197
- };
4198
- export declare const ListQueryBase: z.ZodObject<{
4199
- page: z.ZodDefault<z.ZodNumber>;
4200
- pageSize: z.ZodDefault<z.ZodNumber>;
4201
- sort: z.ZodOptional<z.ZodString>;
4202
- }, "strip", z.ZodTypeAny, {
4203
- page: number;
4204
- pageSize: number;
4205
- sort?: string | undefined;
4206
- }, {
4207
- sort?: string | undefined;
4208
- page?: number | undefined;
4209
- pageSize?: number | undefined;
4210
- }>;
4211
- export declare class HttpError extends Error {
4212
- readonly httpStatus: number;
4213
- readonly code: string;
4214
- readonly publicMessage: string;
4215
- readonly details?: unknown | undefined;
4216
- constructor(httpStatus: number, code: string, publicMessage: string, details?: unknown | undefined);
4217
- }
4218
- export declare function parseSort(value: string | undefined, allowed: readonly string[]): {
4219
- readonly field: string;
4220
- readonly direction: "desc" | "asc";
4221
- }[];
4222
- export declare function paginate<T>(items: T[], page: number, pageSize: number, total: number): {
4223
- data: T[];
4224
- pagination: {
4225
- page: number;
4226
- pageSize: number;
4227
- total: number;
4228
- };
4229
- };
4230
- export declare const ErrorCode: {
4231
- readonly INTERNAL_ERROR: "INTERNAL_ERROR";
4232
- readonly VALIDATION_FAILED: "VALIDATION_FAILED";
4233
- readonly UNAUTHORIZED: "UNAUTHORIZED";
4234
- readonly FORBIDDEN: "FORBIDDEN";
4235
- readonly NOT_FOUND: "NOT_FOUND";
4236
- readonly CONFLICT: "CONFLICT";
4237
- readonly CSRF_INVALID: "CSRF_INVALID";
4238
- readonly ACTION_REQUIRES_CONFIRMATION: "ACTION_REQUIRES_CONFIRMATION";
4239
- readonly COMMAND_EXPIRED: "COMMAND_EXPIRED";
4240
- readonly TOKEN_REVOKED: "TOKEN_REVOKED";
4241
- readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
4242
- readonly AGENT_REVOKED: "AGENT_REVOKED";
4243
- readonly AGENT_DISABLED: "AGENT_DISABLED";
4244
- };
4245
- export type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];