@xtrape/capsule-contracts-node 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -2
- package/dist/index.cjs +177 -19
- package/dist/index.d.cts +1535 -67
- package/dist/index.d.ts +1535 -67
- package/dist/index.js +149 -19
- package/dist/src/index.d.ts +4245 -0
- package/dist/src/index.js +210 -0
- package/dist/tests/bus.spec.d.ts +1 -0
- package/dist/tests/bus.spec.js +52 -0
- package/dist/tests/schema-validation.spec.d.ts +1 -0
- package/dist/tests/schema-validation.spec.js +155 -0
- package/dist/tests/schema.spec.d.ts +1 -0
- package/dist/tests/schema.spec.js +223 -0
- package/package.json +10 -9
package/dist/index.d.ts
CHANGED
|
@@ -17,28 +17,18 @@ declare const AuditResult: readonly ["SUCCESS", "FAILURE"];
|
|
|
17
17
|
type AuditResult = typeof AuditResult[number];
|
|
18
18
|
declare const TokenStatus: readonly ["ACTIVE", "REVOKED", "EXPIRED", "USED"];
|
|
19
19
|
type TokenStatus = typeof TokenStatus[number];
|
|
20
|
-
declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly NOT_FOUND: "NOT_FOUND";
|
|
26
|
-
readonly CONFLICT: "CONFLICT";
|
|
27
|
-
readonly CSRF_INVALID: "CSRF_INVALID";
|
|
28
|
-
readonly ACTION_REQUIRES_CONFIRMATION: "ACTION_REQUIRES_CONFIRMATION";
|
|
29
|
-
readonly COMMAND_EXPIRED: "COMMAND_EXPIRED";
|
|
30
|
-
readonly TOKEN_REVOKED: "TOKEN_REVOKED";
|
|
31
|
-
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
32
|
-
readonly AGENT_REVOKED: "AGENT_REVOKED";
|
|
33
|
-
readonly AGENT_DISABLED: "AGENT_DISABLED";
|
|
34
|
-
};
|
|
35
|
-
type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
20
|
+
declare const AgentMode: readonly ["embedded", "ophub"];
|
|
21
|
+
type AgentMode = typeof AgentMode[number];
|
|
22
|
+
declare const ServiceKind: readonly ["business", "infrastructure", "system"];
|
|
23
|
+
type ServiceKind = typeof ServiceKind[number];
|
|
24
|
+
declare const ServiceKindSchema: z.ZodEnum<["business", "infrastructure", "system"]>;
|
|
36
25
|
declare const AnyJson: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
37
26
|
declare const AgentStatusSchema: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
|
|
38
27
|
declare const CapsuleServiceStatusSchema: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
|
|
39
28
|
declare const HealthStatusSchema: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
40
29
|
declare const CommandStatusSchema: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
|
|
41
30
|
declare const DangerLevelSchema: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>;
|
|
31
|
+
declare const AgentModeSchema: z.ZodEnum<["embedded", "ophub"]>;
|
|
42
32
|
declare const UserSchema: z.ZodObject<{
|
|
43
33
|
id: z.ZodString;
|
|
44
34
|
username: z.ZodString;
|
|
@@ -169,7 +159,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
169
159
|
id: z.ZodString;
|
|
170
160
|
code: z.ZodString;
|
|
171
161
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
-
mode: z.ZodEnum<["embedded", "
|
|
162
|
+
mode: z.ZodEnum<["embedded", "ophub"]>;
|
|
173
163
|
runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
164
|
status: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
|
|
175
165
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -181,7 +171,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
181
171
|
createdAt: string;
|
|
182
172
|
updatedAt: string;
|
|
183
173
|
status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
|
|
184
|
-
mode: "embedded" | "
|
|
174
|
+
mode: "embedded" | "ophub";
|
|
185
175
|
name?: string | null | undefined;
|
|
186
176
|
runtime?: string | null | undefined;
|
|
187
177
|
lastHeartbeatAt?: string | null | undefined;
|
|
@@ -191,7 +181,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
191
181
|
createdAt: string;
|
|
192
182
|
updatedAt: string;
|
|
193
183
|
status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
|
|
194
|
-
mode: "embedded" | "
|
|
184
|
+
mode: "embedded" | "ophub";
|
|
195
185
|
name?: string | null | undefined;
|
|
196
186
|
runtime?: string | null | undefined;
|
|
197
187
|
lastHeartbeatAt?: string | null | undefined;
|
|
@@ -268,6 +258,78 @@ declare const CreateRegistrationTokenResponseSchema: z.ZodObject<{
|
|
|
268
258
|
usedAt?: string | null | undefined;
|
|
269
259
|
}>;
|
|
270
260
|
type CreateRegistrationTokenResponse = z.infer<typeof CreateRegistrationTokenResponseSchema>;
|
|
261
|
+
declare const ServiceCapabilitySchema: z.ZodObject<{
|
|
262
|
+
name: z.ZodString;
|
|
263
|
+
label: z.ZodOptional<z.ZodString>;
|
|
264
|
+
description: z.ZodOptional<z.ZodString>;
|
|
265
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
name: string;
|
|
268
|
+
label?: string | undefined;
|
|
269
|
+
description?: string | undefined;
|
|
270
|
+
metadata?: Record<string, any> | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
name: string;
|
|
273
|
+
label?: string | undefined;
|
|
274
|
+
description?: string | undefined;
|
|
275
|
+
metadata?: Record<string, any> | undefined;
|
|
276
|
+
}>;
|
|
277
|
+
type ServiceCapability = z.infer<typeof ServiceCapabilitySchema>;
|
|
278
|
+
declare const serviceCapabilitySchema: z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
label: z.ZodOptional<z.ZodString>;
|
|
281
|
+
description: z.ZodOptional<z.ZodString>;
|
|
282
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
name: string;
|
|
285
|
+
label?: string | undefined;
|
|
286
|
+
description?: string | undefined;
|
|
287
|
+
metadata?: Record<string, any> | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
name: string;
|
|
290
|
+
label?: string | undefined;
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
metadata?: Record<string, any> | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
declare const EventMetadataSchema: z.ZodObject<{
|
|
295
|
+
name: z.ZodString;
|
|
296
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
297
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
298
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
299
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
name: string;
|
|
302
|
+
designOnly: boolean;
|
|
303
|
+
metadata?: Record<string, any> | undefined;
|
|
304
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
305
|
+
schema?: Record<string, any> | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
name: string;
|
|
308
|
+
metadata?: Record<string, any> | undefined;
|
|
309
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
310
|
+
schema?: Record<string, any> | undefined;
|
|
311
|
+
designOnly?: boolean | undefined;
|
|
312
|
+
}>;
|
|
313
|
+
type EventMetadata = z.infer<typeof EventMetadataSchema>;
|
|
314
|
+
declare const eventMetadataSchema: z.ZodObject<{
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
317
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
318
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
319
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
320
|
+
}, "strip", z.ZodTypeAny, {
|
|
321
|
+
name: string;
|
|
322
|
+
designOnly: boolean;
|
|
323
|
+
metadata?: Record<string, any> | undefined;
|
|
324
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
325
|
+
schema?: Record<string, any> | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
name: string;
|
|
328
|
+
metadata?: Record<string, any> | undefined;
|
|
329
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
330
|
+
schema?: Record<string, any> | undefined;
|
|
331
|
+
designOnly?: boolean | undefined;
|
|
332
|
+
}>;
|
|
271
333
|
declare const CapsuleManifestSchema: z.ZodObject<{
|
|
272
334
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
273
335
|
schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -276,8 +338,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
276
338
|
description: z.ZodOptional<z.ZodString>;
|
|
277
339
|
version: z.ZodString;
|
|
278
340
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
279
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
280
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString,
|
|
341
|
+
agentMode: z.ZodEnum<["embedded", "ophub"]>;
|
|
342
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
label: z.ZodOptional<z.ZodString>;
|
|
345
|
+
description: z.ZodOptional<z.ZodString>;
|
|
346
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
name: string;
|
|
349
|
+
label?: string | undefined;
|
|
350
|
+
description?: string | undefined;
|
|
351
|
+
metadata?: Record<string, any> | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
name: string;
|
|
354
|
+
label?: string | undefined;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
metadata?: Record<string, any> | undefined;
|
|
357
|
+
}>]>, "many">>;
|
|
358
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
359
|
+
name: z.ZodString;
|
|
360
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
361
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
362
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
363
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
name: string;
|
|
366
|
+
designOnly: boolean;
|
|
367
|
+
metadata?: Record<string, any> | undefined;
|
|
368
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
369
|
+
schema?: Record<string, any> | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
name: string;
|
|
372
|
+
metadata?: Record<string, any> | undefined;
|
|
373
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
374
|
+
schema?: Record<string, any> | undefined;
|
|
375
|
+
designOnly?: boolean | undefined;
|
|
376
|
+
}>, "many">>;
|
|
281
377
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
282
378
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
283
379
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
@@ -287,8 +383,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
287
383
|
description: z.ZodOptional<z.ZodString>;
|
|
288
384
|
version: z.ZodString;
|
|
289
385
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
290
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
291
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString,
|
|
386
|
+
agentMode: z.ZodEnum<["embedded", "ophub"]>;
|
|
387
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
388
|
+
name: z.ZodString;
|
|
389
|
+
label: z.ZodOptional<z.ZodString>;
|
|
390
|
+
description: z.ZodOptional<z.ZodString>;
|
|
391
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
name: string;
|
|
394
|
+
label?: string | undefined;
|
|
395
|
+
description?: string | undefined;
|
|
396
|
+
metadata?: Record<string, any> | undefined;
|
|
397
|
+
}, {
|
|
398
|
+
name: string;
|
|
399
|
+
label?: string | undefined;
|
|
400
|
+
description?: string | undefined;
|
|
401
|
+
metadata?: Record<string, any> | undefined;
|
|
402
|
+
}>]>, "many">>;
|
|
403
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
406
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
407
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
408
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
409
|
+
}, "strip", z.ZodTypeAny, {
|
|
410
|
+
name: string;
|
|
411
|
+
designOnly: boolean;
|
|
412
|
+
metadata?: Record<string, any> | undefined;
|
|
413
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
414
|
+
schema?: Record<string, any> | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
name: string;
|
|
417
|
+
metadata?: Record<string, any> | undefined;
|
|
418
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
419
|
+
schema?: Record<string, any> | undefined;
|
|
420
|
+
designOnly?: boolean | undefined;
|
|
421
|
+
}>, "many">>;
|
|
292
422
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
293
423
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
294
424
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
@@ -298,8 +428,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
298
428
|
description: z.ZodOptional<z.ZodString>;
|
|
299
429
|
version: z.ZodString;
|
|
300
430
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
301
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
302
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString,
|
|
431
|
+
agentMode: z.ZodEnum<["embedded", "ophub"]>;
|
|
432
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
433
|
+
name: z.ZodString;
|
|
434
|
+
label: z.ZodOptional<z.ZodString>;
|
|
435
|
+
description: z.ZodOptional<z.ZodString>;
|
|
436
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
name: string;
|
|
439
|
+
label?: string | undefined;
|
|
440
|
+
description?: string | undefined;
|
|
441
|
+
metadata?: Record<string, any> | undefined;
|
|
442
|
+
}, {
|
|
443
|
+
name: string;
|
|
444
|
+
label?: string | undefined;
|
|
445
|
+
description?: string | undefined;
|
|
446
|
+
metadata?: Record<string, any> | undefined;
|
|
447
|
+
}>]>, "many">>;
|
|
448
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
451
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
452
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
453
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
454
|
+
}, "strip", z.ZodTypeAny, {
|
|
455
|
+
name: string;
|
|
456
|
+
designOnly: boolean;
|
|
457
|
+
metadata?: Record<string, any> | undefined;
|
|
458
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
459
|
+
schema?: Record<string, any> | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
name: string;
|
|
462
|
+
metadata?: Record<string, any> | undefined;
|
|
463
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
464
|
+
schema?: Record<string, any> | undefined;
|
|
465
|
+
designOnly?: boolean | undefined;
|
|
466
|
+
}>, "many">>;
|
|
303
467
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
304
468
|
}, z.ZodTypeAny, "passthrough">>;
|
|
305
469
|
type CapsuleManifest = z.infer<typeof CapsuleManifestSchema>;
|
|
@@ -469,6 +633,41 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
469
633
|
version: z.ZodOptional<z.ZodString>;
|
|
470
634
|
runtime: z.ZodOptional<z.ZodString>;
|
|
471
635
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
636
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
|
+
name: z.ZodString;
|
|
638
|
+
label: z.ZodOptional<z.ZodString>;
|
|
639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
640
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
name: string;
|
|
643
|
+
label?: string | undefined;
|
|
644
|
+
description?: string | undefined;
|
|
645
|
+
metadata?: Record<string, any> | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
name: string;
|
|
648
|
+
label?: string | undefined;
|
|
649
|
+
description?: string | undefined;
|
|
650
|
+
metadata?: Record<string, any> | undefined;
|
|
651
|
+
}>, "many">>;
|
|
652
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
653
|
+
name: z.ZodString;
|
|
654
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
655
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
656
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
657
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
658
|
+
}, "strip", z.ZodTypeAny, {
|
|
659
|
+
name: string;
|
|
660
|
+
designOnly: boolean;
|
|
661
|
+
metadata?: Record<string, any> | undefined;
|
|
662
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
663
|
+
schema?: Record<string, any> | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
name: string;
|
|
666
|
+
metadata?: Record<string, any> | undefined;
|
|
667
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
668
|
+
schema?: Record<string, any> | undefined;
|
|
669
|
+
designOnly?: boolean | undefined;
|
|
670
|
+
}>, "many">>;
|
|
472
671
|
health: z.ZodOptional<z.ZodObject<{
|
|
473
672
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
474
673
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -547,6 +746,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
547
746
|
outputSchema?: Record<string, any> | undefined;
|
|
548
747
|
timeoutSeconds?: number | undefined;
|
|
549
748
|
}>, "many">>;
|
|
749
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
550
750
|
}, "strip", z.ZodTypeAny, {
|
|
551
751
|
code: string;
|
|
552
752
|
name: string;
|
|
@@ -554,6 +754,19 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
554
754
|
runtime?: string | undefined;
|
|
555
755
|
description?: string | undefined;
|
|
556
756
|
version?: string | undefined;
|
|
757
|
+
capabilities?: {
|
|
758
|
+
name: string;
|
|
759
|
+
label?: string | undefined;
|
|
760
|
+
description?: string | undefined;
|
|
761
|
+
metadata?: Record<string, any> | undefined;
|
|
762
|
+
}[] | undefined;
|
|
763
|
+
events?: {
|
|
764
|
+
name: string;
|
|
765
|
+
designOnly: boolean;
|
|
766
|
+
metadata?: Record<string, any> | undefined;
|
|
767
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
768
|
+
schema?: Record<string, any> | undefined;
|
|
769
|
+
}[] | undefined;
|
|
557
770
|
health?: {
|
|
558
771
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
559
772
|
message?: string | undefined;
|
|
@@ -582,6 +795,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
582
795
|
outputSchema?: Record<string, any> | undefined;
|
|
583
796
|
timeoutSeconds?: number | undefined;
|
|
584
797
|
}[] | undefined;
|
|
798
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
585
799
|
}, {
|
|
586
800
|
code: string;
|
|
587
801
|
name: string;
|
|
@@ -589,6 +803,19 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
589
803
|
runtime?: string | undefined;
|
|
590
804
|
description?: string | undefined;
|
|
591
805
|
version?: string | undefined;
|
|
806
|
+
capabilities?: {
|
|
807
|
+
name: string;
|
|
808
|
+
label?: string | undefined;
|
|
809
|
+
description?: string | undefined;
|
|
810
|
+
metadata?: Record<string, any> | undefined;
|
|
811
|
+
}[] | undefined;
|
|
812
|
+
events?: {
|
|
813
|
+
name: string;
|
|
814
|
+
metadata?: Record<string, any> | undefined;
|
|
815
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
816
|
+
schema?: Record<string, any> | undefined;
|
|
817
|
+
designOnly?: boolean | undefined;
|
|
818
|
+
}[] | undefined;
|
|
592
819
|
health?: {
|
|
593
820
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
594
821
|
message?: string | undefined;
|
|
@@ -617,6 +844,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
617
844
|
outputSchema?: Record<string, any> | undefined;
|
|
618
845
|
timeoutSeconds?: number | undefined;
|
|
619
846
|
}[] | undefined;
|
|
847
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
620
848
|
}>;
|
|
621
849
|
type ReportedService = z.infer<typeof ReportedServiceSchema>;
|
|
622
850
|
declare const reportedServiceSchema: z.ZodObject<{
|
|
@@ -626,6 +854,41 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
626
854
|
version: z.ZodOptional<z.ZodString>;
|
|
627
855
|
runtime: z.ZodOptional<z.ZodString>;
|
|
628
856
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
857
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
858
|
+
name: z.ZodString;
|
|
859
|
+
label: z.ZodOptional<z.ZodString>;
|
|
860
|
+
description: z.ZodOptional<z.ZodString>;
|
|
861
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
862
|
+
}, "strip", z.ZodTypeAny, {
|
|
863
|
+
name: string;
|
|
864
|
+
label?: string | undefined;
|
|
865
|
+
description?: string | undefined;
|
|
866
|
+
metadata?: Record<string, any> | undefined;
|
|
867
|
+
}, {
|
|
868
|
+
name: string;
|
|
869
|
+
label?: string | undefined;
|
|
870
|
+
description?: string | undefined;
|
|
871
|
+
metadata?: Record<string, any> | undefined;
|
|
872
|
+
}>, "many">>;
|
|
873
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
874
|
+
name: z.ZodString;
|
|
875
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
876
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
877
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
878
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
879
|
+
}, "strip", z.ZodTypeAny, {
|
|
880
|
+
name: string;
|
|
881
|
+
designOnly: boolean;
|
|
882
|
+
metadata?: Record<string, any> | undefined;
|
|
883
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
884
|
+
schema?: Record<string, any> | undefined;
|
|
885
|
+
}, {
|
|
886
|
+
name: string;
|
|
887
|
+
metadata?: Record<string, any> | undefined;
|
|
888
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
889
|
+
schema?: Record<string, any> | undefined;
|
|
890
|
+
designOnly?: boolean | undefined;
|
|
891
|
+
}>, "many">>;
|
|
629
892
|
health: z.ZodOptional<z.ZodObject<{
|
|
630
893
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
631
894
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -704,6 +967,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
704
967
|
outputSchema?: Record<string, any> | undefined;
|
|
705
968
|
timeoutSeconds?: number | undefined;
|
|
706
969
|
}>, "many">>;
|
|
970
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
707
971
|
}, "strip", z.ZodTypeAny, {
|
|
708
972
|
code: string;
|
|
709
973
|
name: string;
|
|
@@ -711,6 +975,19 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
711
975
|
runtime?: string | undefined;
|
|
712
976
|
description?: string | undefined;
|
|
713
977
|
version?: string | undefined;
|
|
978
|
+
capabilities?: {
|
|
979
|
+
name: string;
|
|
980
|
+
label?: string | undefined;
|
|
981
|
+
description?: string | undefined;
|
|
982
|
+
metadata?: Record<string, any> | undefined;
|
|
983
|
+
}[] | undefined;
|
|
984
|
+
events?: {
|
|
985
|
+
name: string;
|
|
986
|
+
designOnly: boolean;
|
|
987
|
+
metadata?: Record<string, any> | undefined;
|
|
988
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
989
|
+
schema?: Record<string, any> | undefined;
|
|
990
|
+
}[] | undefined;
|
|
714
991
|
health?: {
|
|
715
992
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
716
993
|
message?: string | undefined;
|
|
@@ -739,6 +1016,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
739
1016
|
outputSchema?: Record<string, any> | undefined;
|
|
740
1017
|
timeoutSeconds?: number | undefined;
|
|
741
1018
|
}[] | undefined;
|
|
1019
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
742
1020
|
}, {
|
|
743
1021
|
code: string;
|
|
744
1022
|
name: string;
|
|
@@ -746,6 +1024,19 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
746
1024
|
runtime?: string | undefined;
|
|
747
1025
|
description?: string | undefined;
|
|
748
1026
|
version?: string | undefined;
|
|
1027
|
+
capabilities?: {
|
|
1028
|
+
name: string;
|
|
1029
|
+
label?: string | undefined;
|
|
1030
|
+
description?: string | undefined;
|
|
1031
|
+
metadata?: Record<string, any> | undefined;
|
|
1032
|
+
}[] | undefined;
|
|
1033
|
+
events?: {
|
|
1034
|
+
name: string;
|
|
1035
|
+
metadata?: Record<string, any> | undefined;
|
|
1036
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1037
|
+
schema?: Record<string, any> | undefined;
|
|
1038
|
+
designOnly?: boolean | undefined;
|
|
1039
|
+
}[] | undefined;
|
|
749
1040
|
health?: {
|
|
750
1041
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
751
1042
|
message?: string | undefined;
|
|
@@ -774,6 +1065,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
774
1065
|
outputSchema?: Record<string, any> | undefined;
|
|
775
1066
|
timeoutSeconds?: number | undefined;
|
|
776
1067
|
}[] | undefined;
|
|
1068
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
777
1069
|
}>;
|
|
778
1070
|
declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
779
1071
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -783,6 +1075,41 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
783
1075
|
version: z.ZodOptional<z.ZodString>;
|
|
784
1076
|
runtime: z.ZodOptional<z.ZodString>;
|
|
785
1077
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1078
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1079
|
+
name: z.ZodString;
|
|
1080
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
name: string;
|
|
1085
|
+
label?: string | undefined;
|
|
1086
|
+
description?: string | undefined;
|
|
1087
|
+
metadata?: Record<string, any> | undefined;
|
|
1088
|
+
}, {
|
|
1089
|
+
name: string;
|
|
1090
|
+
label?: string | undefined;
|
|
1091
|
+
description?: string | undefined;
|
|
1092
|
+
metadata?: Record<string, any> | undefined;
|
|
1093
|
+
}>, "many">>;
|
|
1094
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1095
|
+
name: z.ZodString;
|
|
1096
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
1097
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1098
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1099
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
name: string;
|
|
1102
|
+
designOnly: boolean;
|
|
1103
|
+
metadata?: Record<string, any> | undefined;
|
|
1104
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1105
|
+
schema?: Record<string, any> | undefined;
|
|
1106
|
+
}, {
|
|
1107
|
+
name: string;
|
|
1108
|
+
metadata?: Record<string, any> | undefined;
|
|
1109
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1110
|
+
schema?: Record<string, any> | undefined;
|
|
1111
|
+
designOnly?: boolean | undefined;
|
|
1112
|
+
}>, "many">>;
|
|
786
1113
|
health: z.ZodOptional<z.ZodObject<{
|
|
787
1114
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
788
1115
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -861,6 +1188,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
861
1188
|
outputSchema?: Record<string, any> | undefined;
|
|
862
1189
|
timeoutSeconds?: number | undefined;
|
|
863
1190
|
}>, "many">>;
|
|
1191
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
864
1192
|
}, "strip", z.ZodTypeAny, {
|
|
865
1193
|
code: string;
|
|
866
1194
|
name: string;
|
|
@@ -868,6 +1196,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
868
1196
|
runtime?: string | undefined;
|
|
869
1197
|
description?: string | undefined;
|
|
870
1198
|
version?: string | undefined;
|
|
1199
|
+
capabilities?: {
|
|
1200
|
+
name: string;
|
|
1201
|
+
label?: string | undefined;
|
|
1202
|
+
description?: string | undefined;
|
|
1203
|
+
metadata?: Record<string, any> | undefined;
|
|
1204
|
+
}[] | undefined;
|
|
1205
|
+
events?: {
|
|
1206
|
+
name: string;
|
|
1207
|
+
designOnly: boolean;
|
|
1208
|
+
metadata?: Record<string, any> | undefined;
|
|
1209
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1210
|
+
schema?: Record<string, any> | undefined;
|
|
1211
|
+
}[] | undefined;
|
|
871
1212
|
health?: {
|
|
872
1213
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
873
1214
|
message?: string | undefined;
|
|
@@ -896,6 +1237,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
896
1237
|
outputSchema?: Record<string, any> | undefined;
|
|
897
1238
|
timeoutSeconds?: number | undefined;
|
|
898
1239
|
}[] | undefined;
|
|
1240
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
899
1241
|
}, {
|
|
900
1242
|
code: string;
|
|
901
1243
|
name: string;
|
|
@@ -903,6 +1245,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
903
1245
|
runtime?: string | undefined;
|
|
904
1246
|
description?: string | undefined;
|
|
905
1247
|
version?: string | undefined;
|
|
1248
|
+
capabilities?: {
|
|
1249
|
+
name: string;
|
|
1250
|
+
label?: string | undefined;
|
|
1251
|
+
description?: string | undefined;
|
|
1252
|
+
metadata?: Record<string, any> | undefined;
|
|
1253
|
+
}[] | undefined;
|
|
1254
|
+
events?: {
|
|
1255
|
+
name: string;
|
|
1256
|
+
metadata?: Record<string, any> | undefined;
|
|
1257
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1258
|
+
schema?: Record<string, any> | undefined;
|
|
1259
|
+
designOnly?: boolean | undefined;
|
|
1260
|
+
}[] | undefined;
|
|
906
1261
|
health?: {
|
|
907
1262
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
908
1263
|
message?: string | undefined;
|
|
@@ -931,6 +1286,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
931
1286
|
outputSchema?: Record<string, any> | undefined;
|
|
932
1287
|
timeoutSeconds?: number | undefined;
|
|
933
1288
|
}[] | undefined;
|
|
1289
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
934
1290
|
}>, "many">;
|
|
935
1291
|
}, "strip", z.ZodTypeAny, {
|
|
936
1292
|
services: {
|
|
@@ -940,6 +1296,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
940
1296
|
runtime?: string | undefined;
|
|
941
1297
|
description?: string | undefined;
|
|
942
1298
|
version?: string | undefined;
|
|
1299
|
+
capabilities?: {
|
|
1300
|
+
name: string;
|
|
1301
|
+
label?: string | undefined;
|
|
1302
|
+
description?: string | undefined;
|
|
1303
|
+
metadata?: Record<string, any> | undefined;
|
|
1304
|
+
}[] | undefined;
|
|
1305
|
+
events?: {
|
|
1306
|
+
name: string;
|
|
1307
|
+
designOnly: boolean;
|
|
1308
|
+
metadata?: Record<string, any> | undefined;
|
|
1309
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1310
|
+
schema?: Record<string, any> | undefined;
|
|
1311
|
+
}[] | undefined;
|
|
943
1312
|
health?: {
|
|
944
1313
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
945
1314
|
message?: string | undefined;
|
|
@@ -968,6 +1337,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
968
1337
|
outputSchema?: Record<string, any> | undefined;
|
|
969
1338
|
timeoutSeconds?: number | undefined;
|
|
970
1339
|
}[] | undefined;
|
|
1340
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
971
1341
|
}[];
|
|
972
1342
|
}, {
|
|
973
1343
|
services: {
|
|
@@ -977,6 +1347,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
977
1347
|
runtime?: string | undefined;
|
|
978
1348
|
description?: string | undefined;
|
|
979
1349
|
version?: string | undefined;
|
|
1350
|
+
capabilities?: {
|
|
1351
|
+
name: string;
|
|
1352
|
+
label?: string | undefined;
|
|
1353
|
+
description?: string | undefined;
|
|
1354
|
+
metadata?: Record<string, any> | undefined;
|
|
1355
|
+
}[] | undefined;
|
|
1356
|
+
events?: {
|
|
1357
|
+
name: string;
|
|
1358
|
+
metadata?: Record<string, any> | undefined;
|
|
1359
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1360
|
+
schema?: Record<string, any> | undefined;
|
|
1361
|
+
designOnly?: boolean | undefined;
|
|
1362
|
+
}[] | undefined;
|
|
980
1363
|
health?: {
|
|
981
1364
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
982
1365
|
message?: string | undefined;
|
|
@@ -1005,6 +1388,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
1005
1388
|
outputSchema?: Record<string, any> | undefined;
|
|
1006
1389
|
timeoutSeconds?: number | undefined;
|
|
1007
1390
|
}[] | undefined;
|
|
1391
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1008
1392
|
}[];
|
|
1009
1393
|
}>;
|
|
1010
1394
|
type ServiceReportRequest = z.infer<typeof ServiceReportRequestSchema>;
|
|
@@ -1016,7 +1400,42 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1016
1400
|
version: z.ZodOptional<z.ZodString>;
|
|
1017
1401
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1018
1402
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1019
|
-
|
|
1403
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1404
|
+
name: z.ZodString;
|
|
1405
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1408
|
+
}, "strip", z.ZodTypeAny, {
|
|
1409
|
+
name: string;
|
|
1410
|
+
label?: string | undefined;
|
|
1411
|
+
description?: string | undefined;
|
|
1412
|
+
metadata?: Record<string, any> | undefined;
|
|
1413
|
+
}, {
|
|
1414
|
+
name: string;
|
|
1415
|
+
label?: string | undefined;
|
|
1416
|
+
description?: string | undefined;
|
|
1417
|
+
metadata?: Record<string, any> | undefined;
|
|
1418
|
+
}>, "many">>;
|
|
1419
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1420
|
+
name: z.ZodString;
|
|
1421
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
1422
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1423
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1424
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1425
|
+
}, "strip", z.ZodTypeAny, {
|
|
1426
|
+
name: string;
|
|
1427
|
+
designOnly: boolean;
|
|
1428
|
+
metadata?: Record<string, any> | undefined;
|
|
1429
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1430
|
+
schema?: Record<string, any> | undefined;
|
|
1431
|
+
}, {
|
|
1432
|
+
name: string;
|
|
1433
|
+
metadata?: Record<string, any> | undefined;
|
|
1434
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1435
|
+
schema?: Record<string, any> | undefined;
|
|
1436
|
+
designOnly?: boolean | undefined;
|
|
1437
|
+
}>, "many">>;
|
|
1438
|
+
health: z.ZodOptional<z.ZodObject<{
|
|
1020
1439
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1021
1440
|
message: z.ZodOptional<z.ZodString>;
|
|
1022
1441
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1094,6 +1513,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1094
1513
|
outputSchema?: Record<string, any> | undefined;
|
|
1095
1514
|
timeoutSeconds?: number | undefined;
|
|
1096
1515
|
}>, "many">>;
|
|
1516
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1097
1517
|
}, "strip", z.ZodTypeAny, {
|
|
1098
1518
|
code: string;
|
|
1099
1519
|
name: string;
|
|
@@ -1101,6 +1521,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1101
1521
|
runtime?: string | undefined;
|
|
1102
1522
|
description?: string | undefined;
|
|
1103
1523
|
version?: string | undefined;
|
|
1524
|
+
capabilities?: {
|
|
1525
|
+
name: string;
|
|
1526
|
+
label?: string | undefined;
|
|
1527
|
+
description?: string | undefined;
|
|
1528
|
+
metadata?: Record<string, any> | undefined;
|
|
1529
|
+
}[] | undefined;
|
|
1530
|
+
events?: {
|
|
1531
|
+
name: string;
|
|
1532
|
+
designOnly: boolean;
|
|
1533
|
+
metadata?: Record<string, any> | undefined;
|
|
1534
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1535
|
+
schema?: Record<string, any> | undefined;
|
|
1536
|
+
}[] | undefined;
|
|
1104
1537
|
health?: {
|
|
1105
1538
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1106
1539
|
message?: string | undefined;
|
|
@@ -1129,6 +1562,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1129
1562
|
outputSchema?: Record<string, any> | undefined;
|
|
1130
1563
|
timeoutSeconds?: number | undefined;
|
|
1131
1564
|
}[] | undefined;
|
|
1565
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1132
1566
|
}, {
|
|
1133
1567
|
code: string;
|
|
1134
1568
|
name: string;
|
|
@@ -1136,6 +1570,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1136
1570
|
runtime?: string | undefined;
|
|
1137
1571
|
description?: string | undefined;
|
|
1138
1572
|
version?: string | undefined;
|
|
1573
|
+
capabilities?: {
|
|
1574
|
+
name: string;
|
|
1575
|
+
label?: string | undefined;
|
|
1576
|
+
description?: string | undefined;
|
|
1577
|
+
metadata?: Record<string, any> | undefined;
|
|
1578
|
+
}[] | undefined;
|
|
1579
|
+
events?: {
|
|
1580
|
+
name: string;
|
|
1581
|
+
metadata?: Record<string, any> | undefined;
|
|
1582
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1583
|
+
schema?: Record<string, any> | undefined;
|
|
1584
|
+
designOnly?: boolean | undefined;
|
|
1585
|
+
}[] | undefined;
|
|
1139
1586
|
health?: {
|
|
1140
1587
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1141
1588
|
message?: string | undefined;
|
|
@@ -1164,6 +1611,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1164
1611
|
outputSchema?: Record<string, any> | undefined;
|
|
1165
1612
|
timeoutSeconds?: number | undefined;
|
|
1166
1613
|
}[] | undefined;
|
|
1614
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1167
1615
|
}>, "many">;
|
|
1168
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1169
1617
|
services: {
|
|
@@ -1173,6 +1621,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1173
1621
|
runtime?: string | undefined;
|
|
1174
1622
|
description?: string | undefined;
|
|
1175
1623
|
version?: string | undefined;
|
|
1624
|
+
capabilities?: {
|
|
1625
|
+
name: string;
|
|
1626
|
+
label?: string | undefined;
|
|
1627
|
+
description?: string | undefined;
|
|
1628
|
+
metadata?: Record<string, any> | undefined;
|
|
1629
|
+
}[] | undefined;
|
|
1630
|
+
events?: {
|
|
1631
|
+
name: string;
|
|
1632
|
+
designOnly: boolean;
|
|
1633
|
+
metadata?: Record<string, any> | undefined;
|
|
1634
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1635
|
+
schema?: Record<string, any> | undefined;
|
|
1636
|
+
}[] | undefined;
|
|
1176
1637
|
health?: {
|
|
1177
1638
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1178
1639
|
message?: string | undefined;
|
|
@@ -1201,6 +1662,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1201
1662
|
outputSchema?: Record<string, any> | undefined;
|
|
1202
1663
|
timeoutSeconds?: number | undefined;
|
|
1203
1664
|
}[] | undefined;
|
|
1665
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1204
1666
|
}[];
|
|
1205
1667
|
}, {
|
|
1206
1668
|
services: {
|
|
@@ -1210,6 +1672,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1210
1672
|
runtime?: string | undefined;
|
|
1211
1673
|
description?: string | undefined;
|
|
1212
1674
|
version?: string | undefined;
|
|
1675
|
+
capabilities?: {
|
|
1676
|
+
name: string;
|
|
1677
|
+
label?: string | undefined;
|
|
1678
|
+
description?: string | undefined;
|
|
1679
|
+
metadata?: Record<string, any> | undefined;
|
|
1680
|
+
}[] | undefined;
|
|
1681
|
+
events?: {
|
|
1682
|
+
name: string;
|
|
1683
|
+
metadata?: Record<string, any> | undefined;
|
|
1684
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1685
|
+
schema?: Record<string, any> | undefined;
|
|
1686
|
+
designOnly?: boolean | undefined;
|
|
1687
|
+
}[] | undefined;
|
|
1213
1688
|
health?: {
|
|
1214
1689
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1215
1690
|
message?: string | undefined;
|
|
@@ -1238,6 +1713,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1238
1713
|
outputSchema?: Record<string, any> | undefined;
|
|
1239
1714
|
timeoutSeconds?: number | undefined;
|
|
1240
1715
|
}[] | undefined;
|
|
1716
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1241
1717
|
}[];
|
|
1242
1718
|
}>;
|
|
1243
1719
|
declare const RuntimeKindSchema: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
@@ -1247,18 +1723,18 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1247
1723
|
agent: z.ZodObject<{
|
|
1248
1724
|
code: z.ZodString;
|
|
1249
1725
|
name: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
mode: z.
|
|
1251
|
-
runtime: z.ZodOptional<z.ZodEnum<["nodejs", "java", "python", "go", "other"]>>;
|
|
1726
|
+
mode: z.ZodDefault<z.ZodEnum<["embedded", "ophub"]>>;
|
|
1727
|
+
runtime: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["nodejs", "java", "python", "go", "other"]>, z.ZodString]>>;
|
|
1252
1728
|
}, "strip", z.ZodTypeAny, {
|
|
1253
1729
|
code: string;
|
|
1254
|
-
mode: "embedded";
|
|
1730
|
+
mode: "embedded" | "ophub";
|
|
1255
1731
|
name?: string | undefined;
|
|
1256
|
-
runtime?:
|
|
1732
|
+
runtime?: string | undefined;
|
|
1257
1733
|
}, {
|
|
1258
1734
|
code: string;
|
|
1259
|
-
mode: "embedded";
|
|
1260
1735
|
name?: string | undefined;
|
|
1261
|
-
|
|
1736
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
1737
|
+
runtime?: string | undefined;
|
|
1262
1738
|
}>;
|
|
1263
1739
|
service: z.ZodOptional<z.ZodObject<{
|
|
1264
1740
|
code: z.ZodString;
|
|
@@ -1267,6 +1743,41 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1267
1743
|
version: z.ZodOptional<z.ZodString>;
|
|
1268
1744
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1269
1745
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1746
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1747
|
+
name: z.ZodString;
|
|
1748
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1751
|
+
}, "strip", z.ZodTypeAny, {
|
|
1752
|
+
name: string;
|
|
1753
|
+
label?: string | undefined;
|
|
1754
|
+
description?: string | undefined;
|
|
1755
|
+
metadata?: Record<string, any> | undefined;
|
|
1756
|
+
}, {
|
|
1757
|
+
name: string;
|
|
1758
|
+
label?: string | undefined;
|
|
1759
|
+
description?: string | undefined;
|
|
1760
|
+
metadata?: Record<string, any> | undefined;
|
|
1761
|
+
}>, "many">>;
|
|
1762
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1763
|
+
name: z.ZodString;
|
|
1764
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
1765
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1766
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1767
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1768
|
+
}, "strip", z.ZodTypeAny, {
|
|
1769
|
+
name: string;
|
|
1770
|
+
designOnly: boolean;
|
|
1771
|
+
metadata?: Record<string, any> | undefined;
|
|
1772
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1773
|
+
schema?: Record<string, any> | undefined;
|
|
1774
|
+
}, {
|
|
1775
|
+
name: string;
|
|
1776
|
+
metadata?: Record<string, any> | undefined;
|
|
1777
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1778
|
+
schema?: Record<string, any> | undefined;
|
|
1779
|
+
designOnly?: boolean | undefined;
|
|
1780
|
+
}>, "many">>;
|
|
1270
1781
|
health: z.ZodOptional<z.ZodObject<{
|
|
1271
1782
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1272
1783
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1345,6 +1856,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1345
1856
|
outputSchema?: Record<string, any> | undefined;
|
|
1346
1857
|
timeoutSeconds?: number | undefined;
|
|
1347
1858
|
}>, "many">>;
|
|
1859
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1348
1860
|
}, "strip", z.ZodTypeAny, {
|
|
1349
1861
|
code: string;
|
|
1350
1862
|
name: string;
|
|
@@ -1352,6 +1864,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1352
1864
|
runtime?: string | undefined;
|
|
1353
1865
|
description?: string | undefined;
|
|
1354
1866
|
version?: string | undefined;
|
|
1867
|
+
capabilities?: {
|
|
1868
|
+
name: string;
|
|
1869
|
+
label?: string | undefined;
|
|
1870
|
+
description?: string | undefined;
|
|
1871
|
+
metadata?: Record<string, any> | undefined;
|
|
1872
|
+
}[] | undefined;
|
|
1873
|
+
events?: {
|
|
1874
|
+
name: string;
|
|
1875
|
+
designOnly: boolean;
|
|
1876
|
+
metadata?: Record<string, any> | undefined;
|
|
1877
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1878
|
+
schema?: Record<string, any> | undefined;
|
|
1879
|
+
}[] | undefined;
|
|
1355
1880
|
health?: {
|
|
1356
1881
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1357
1882
|
message?: string | undefined;
|
|
@@ -1380,6 +1905,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1380
1905
|
outputSchema?: Record<string, any> | undefined;
|
|
1381
1906
|
timeoutSeconds?: number | undefined;
|
|
1382
1907
|
}[] | undefined;
|
|
1908
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1383
1909
|
}, {
|
|
1384
1910
|
code: string;
|
|
1385
1911
|
name: string;
|
|
@@ -1387,6 +1913,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1387
1913
|
runtime?: string | undefined;
|
|
1388
1914
|
description?: string | undefined;
|
|
1389
1915
|
version?: string | undefined;
|
|
1916
|
+
capabilities?: {
|
|
1917
|
+
name: string;
|
|
1918
|
+
label?: string | undefined;
|
|
1919
|
+
description?: string | undefined;
|
|
1920
|
+
metadata?: Record<string, any> | undefined;
|
|
1921
|
+
}[] | undefined;
|
|
1922
|
+
events?: {
|
|
1923
|
+
name: string;
|
|
1924
|
+
metadata?: Record<string, any> | undefined;
|
|
1925
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1926
|
+
schema?: Record<string, any> | undefined;
|
|
1927
|
+
designOnly?: boolean | undefined;
|
|
1928
|
+
}[] | undefined;
|
|
1390
1929
|
health?: {
|
|
1391
1930
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1392
1931
|
message?: string | undefined;
|
|
@@ -1415,14 +1954,15 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1415
1954
|
outputSchema?: Record<string, any> | undefined;
|
|
1416
1955
|
timeoutSeconds?: number | undefined;
|
|
1417
1956
|
}[] | undefined;
|
|
1957
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1418
1958
|
}>>;
|
|
1419
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1420
1960
|
registrationToken: string;
|
|
1421
1961
|
agent: {
|
|
1422
1962
|
code: string;
|
|
1423
|
-
mode: "embedded";
|
|
1963
|
+
mode: "embedded" | "ophub";
|
|
1424
1964
|
name?: string | undefined;
|
|
1425
|
-
runtime?:
|
|
1965
|
+
runtime?: string | undefined;
|
|
1426
1966
|
};
|
|
1427
1967
|
service?: {
|
|
1428
1968
|
code: string;
|
|
@@ -1431,6 +1971,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1431
1971
|
runtime?: string | undefined;
|
|
1432
1972
|
description?: string | undefined;
|
|
1433
1973
|
version?: string | undefined;
|
|
1974
|
+
capabilities?: {
|
|
1975
|
+
name: string;
|
|
1976
|
+
label?: string | undefined;
|
|
1977
|
+
description?: string | undefined;
|
|
1978
|
+
metadata?: Record<string, any> | undefined;
|
|
1979
|
+
}[] | undefined;
|
|
1980
|
+
events?: {
|
|
1981
|
+
name: string;
|
|
1982
|
+
designOnly: boolean;
|
|
1983
|
+
metadata?: Record<string, any> | undefined;
|
|
1984
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
1985
|
+
schema?: Record<string, any> | undefined;
|
|
1986
|
+
}[] | undefined;
|
|
1434
1987
|
health?: {
|
|
1435
1988
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1436
1989
|
message?: string | undefined;
|
|
@@ -1459,14 +2012,15 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1459
2012
|
outputSchema?: Record<string, any> | undefined;
|
|
1460
2013
|
timeoutSeconds?: number | undefined;
|
|
1461
2014
|
}[] | undefined;
|
|
2015
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1462
2016
|
} | undefined;
|
|
1463
2017
|
}, {
|
|
1464
2018
|
registrationToken: string;
|
|
1465
2019
|
agent: {
|
|
1466
2020
|
code: string;
|
|
1467
|
-
mode: "embedded";
|
|
1468
2021
|
name?: string | undefined;
|
|
1469
|
-
|
|
2022
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2023
|
+
runtime?: string | undefined;
|
|
1470
2024
|
};
|
|
1471
2025
|
service?: {
|
|
1472
2026
|
code: string;
|
|
@@ -1475,6 +2029,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1475
2029
|
runtime?: string | undefined;
|
|
1476
2030
|
description?: string | undefined;
|
|
1477
2031
|
version?: string | undefined;
|
|
2032
|
+
capabilities?: {
|
|
2033
|
+
name: string;
|
|
2034
|
+
label?: string | undefined;
|
|
2035
|
+
description?: string | undefined;
|
|
2036
|
+
metadata?: Record<string, any> | undefined;
|
|
2037
|
+
}[] | undefined;
|
|
2038
|
+
events?: {
|
|
2039
|
+
name: string;
|
|
2040
|
+
metadata?: Record<string, any> | undefined;
|
|
2041
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2042
|
+
schema?: Record<string, any> | undefined;
|
|
2043
|
+
designOnly?: boolean | undefined;
|
|
2044
|
+
}[] | undefined;
|
|
1478
2045
|
health?: {
|
|
1479
2046
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1480
2047
|
message?: string | undefined;
|
|
@@ -1503,6 +2070,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1503
2070
|
outputSchema?: Record<string, any> | undefined;
|
|
1504
2071
|
timeoutSeconds?: number | undefined;
|
|
1505
2072
|
}[] | undefined;
|
|
2073
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1506
2074
|
} | undefined;
|
|
1507
2075
|
}>;
|
|
1508
2076
|
type RegisterAgentRequest = z.infer<typeof RegisterAgentRequestSchema>;
|
|
@@ -1511,18 +2079,18 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1511
2079
|
agent: z.ZodObject<{
|
|
1512
2080
|
code: z.ZodString;
|
|
1513
2081
|
name: z.ZodOptional<z.ZodString>;
|
|
1514
|
-
mode: z.
|
|
1515
|
-
runtime: z.ZodOptional<z.ZodEnum<["nodejs", "java", "python", "go", "other"]>>;
|
|
2082
|
+
mode: z.ZodDefault<z.ZodEnum<["embedded", "ophub"]>>;
|
|
2083
|
+
runtime: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["nodejs", "java", "python", "go", "other"]>, z.ZodString]>>;
|
|
1516
2084
|
}, "strip", z.ZodTypeAny, {
|
|
1517
2085
|
code: string;
|
|
1518
|
-
mode: "embedded";
|
|
2086
|
+
mode: "embedded" | "ophub";
|
|
1519
2087
|
name?: string | undefined;
|
|
1520
|
-
runtime?:
|
|
2088
|
+
runtime?: string | undefined;
|
|
1521
2089
|
}, {
|
|
1522
2090
|
code: string;
|
|
1523
|
-
mode: "embedded";
|
|
1524
2091
|
name?: string | undefined;
|
|
1525
|
-
|
|
2092
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2093
|
+
runtime?: string | undefined;
|
|
1526
2094
|
}>;
|
|
1527
2095
|
service: z.ZodOptional<z.ZodObject<{
|
|
1528
2096
|
code: z.ZodString;
|
|
@@ -1531,6 +2099,41 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1531
2099
|
version: z.ZodOptional<z.ZodString>;
|
|
1532
2100
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1533
2101
|
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2102
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2103
|
+
name: z.ZodString;
|
|
2104
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2107
|
+
}, "strip", z.ZodTypeAny, {
|
|
2108
|
+
name: string;
|
|
2109
|
+
label?: string | undefined;
|
|
2110
|
+
description?: string | undefined;
|
|
2111
|
+
metadata?: Record<string, any> | undefined;
|
|
2112
|
+
}, {
|
|
2113
|
+
name: string;
|
|
2114
|
+
label?: string | undefined;
|
|
2115
|
+
description?: string | undefined;
|
|
2116
|
+
metadata?: Record<string, any> | undefined;
|
|
2117
|
+
}>, "many">>;
|
|
2118
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2119
|
+
name: z.ZodString;
|
|
2120
|
+
direction: z.ZodOptional<z.ZodEnum<["publish", "subscribe"]>>;
|
|
2121
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2122
|
+
designOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2123
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2124
|
+
}, "strip", z.ZodTypeAny, {
|
|
2125
|
+
name: string;
|
|
2126
|
+
designOnly: boolean;
|
|
2127
|
+
metadata?: Record<string, any> | undefined;
|
|
2128
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2129
|
+
schema?: Record<string, any> | undefined;
|
|
2130
|
+
}, {
|
|
2131
|
+
name: string;
|
|
2132
|
+
metadata?: Record<string, any> | undefined;
|
|
2133
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2134
|
+
schema?: Record<string, any> | undefined;
|
|
2135
|
+
designOnly?: boolean | undefined;
|
|
2136
|
+
}>, "many">>;
|
|
1534
2137
|
health: z.ZodOptional<z.ZodObject<{
|
|
1535
2138
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1536
2139
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1609,6 +2212,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1609
2212
|
outputSchema?: Record<string, any> | undefined;
|
|
1610
2213
|
timeoutSeconds?: number | undefined;
|
|
1611
2214
|
}>, "many">>;
|
|
2215
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1612
2216
|
}, "strip", z.ZodTypeAny, {
|
|
1613
2217
|
code: string;
|
|
1614
2218
|
name: string;
|
|
@@ -1616,6 +2220,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1616
2220
|
runtime?: string | undefined;
|
|
1617
2221
|
description?: string | undefined;
|
|
1618
2222
|
version?: string | undefined;
|
|
2223
|
+
capabilities?: {
|
|
2224
|
+
name: string;
|
|
2225
|
+
label?: string | undefined;
|
|
2226
|
+
description?: string | undefined;
|
|
2227
|
+
metadata?: Record<string, any> | undefined;
|
|
2228
|
+
}[] | undefined;
|
|
2229
|
+
events?: {
|
|
2230
|
+
name: string;
|
|
2231
|
+
designOnly: boolean;
|
|
2232
|
+
metadata?: Record<string, any> | undefined;
|
|
2233
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2234
|
+
schema?: Record<string, any> | undefined;
|
|
2235
|
+
}[] | undefined;
|
|
1619
2236
|
health?: {
|
|
1620
2237
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1621
2238
|
message?: string | undefined;
|
|
@@ -1644,6 +2261,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1644
2261
|
outputSchema?: Record<string, any> | undefined;
|
|
1645
2262
|
timeoutSeconds?: number | undefined;
|
|
1646
2263
|
}[] | undefined;
|
|
2264
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1647
2265
|
}, {
|
|
1648
2266
|
code: string;
|
|
1649
2267
|
name: string;
|
|
@@ -1651,6 +2269,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1651
2269
|
runtime?: string | undefined;
|
|
1652
2270
|
description?: string | undefined;
|
|
1653
2271
|
version?: string | undefined;
|
|
2272
|
+
capabilities?: {
|
|
2273
|
+
name: string;
|
|
2274
|
+
label?: string | undefined;
|
|
2275
|
+
description?: string | undefined;
|
|
2276
|
+
metadata?: Record<string, any> | undefined;
|
|
2277
|
+
}[] | undefined;
|
|
2278
|
+
events?: {
|
|
2279
|
+
name: string;
|
|
2280
|
+
metadata?: Record<string, any> | undefined;
|
|
2281
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2282
|
+
schema?: Record<string, any> | undefined;
|
|
2283
|
+
designOnly?: boolean | undefined;
|
|
2284
|
+
}[] | undefined;
|
|
1654
2285
|
health?: {
|
|
1655
2286
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1656
2287
|
message?: string | undefined;
|
|
@@ -1679,14 +2310,15 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1679
2310
|
outputSchema?: Record<string, any> | undefined;
|
|
1680
2311
|
timeoutSeconds?: number | undefined;
|
|
1681
2312
|
}[] | undefined;
|
|
2313
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1682
2314
|
}>>;
|
|
1683
2315
|
}, "strip", z.ZodTypeAny, {
|
|
1684
2316
|
registrationToken: string;
|
|
1685
2317
|
agent: {
|
|
1686
2318
|
code: string;
|
|
1687
|
-
mode: "embedded";
|
|
2319
|
+
mode: "embedded" | "ophub";
|
|
1688
2320
|
name?: string | undefined;
|
|
1689
|
-
runtime?:
|
|
2321
|
+
runtime?: string | undefined;
|
|
1690
2322
|
};
|
|
1691
2323
|
service?: {
|
|
1692
2324
|
code: string;
|
|
@@ -1695,6 +2327,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1695
2327
|
runtime?: string | undefined;
|
|
1696
2328
|
description?: string | undefined;
|
|
1697
2329
|
version?: string | undefined;
|
|
2330
|
+
capabilities?: {
|
|
2331
|
+
name: string;
|
|
2332
|
+
label?: string | undefined;
|
|
2333
|
+
description?: string | undefined;
|
|
2334
|
+
metadata?: Record<string, any> | undefined;
|
|
2335
|
+
}[] | undefined;
|
|
2336
|
+
events?: {
|
|
2337
|
+
name: string;
|
|
2338
|
+
designOnly: boolean;
|
|
2339
|
+
metadata?: Record<string, any> | undefined;
|
|
2340
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2341
|
+
schema?: Record<string, any> | undefined;
|
|
2342
|
+
}[] | undefined;
|
|
1698
2343
|
health?: {
|
|
1699
2344
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1700
2345
|
message?: string | undefined;
|
|
@@ -1723,14 +2368,15 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1723
2368
|
outputSchema?: Record<string, any> | undefined;
|
|
1724
2369
|
timeoutSeconds?: number | undefined;
|
|
1725
2370
|
}[] | undefined;
|
|
2371
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1726
2372
|
} | undefined;
|
|
1727
2373
|
}, {
|
|
1728
2374
|
registrationToken: string;
|
|
1729
2375
|
agent: {
|
|
1730
2376
|
code: string;
|
|
1731
|
-
mode: "embedded";
|
|
1732
2377
|
name?: string | undefined;
|
|
1733
|
-
|
|
2378
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2379
|
+
runtime?: string | undefined;
|
|
1734
2380
|
};
|
|
1735
2381
|
service?: {
|
|
1736
2382
|
code: string;
|
|
@@ -1739,6 +2385,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1739
2385
|
runtime?: string | undefined;
|
|
1740
2386
|
description?: string | undefined;
|
|
1741
2387
|
version?: string | undefined;
|
|
2388
|
+
capabilities?: {
|
|
2389
|
+
name: string;
|
|
2390
|
+
label?: string | undefined;
|
|
2391
|
+
description?: string | undefined;
|
|
2392
|
+
metadata?: Record<string, any> | undefined;
|
|
2393
|
+
}[] | undefined;
|
|
2394
|
+
events?: {
|
|
2395
|
+
name: string;
|
|
2396
|
+
metadata?: Record<string, any> | undefined;
|
|
2397
|
+
direction?: "publish" | "subscribe" | undefined;
|
|
2398
|
+
schema?: Record<string, any> | undefined;
|
|
2399
|
+
designOnly?: boolean | undefined;
|
|
2400
|
+
}[] | undefined;
|
|
1742
2401
|
health?: {
|
|
1743
2402
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1744
2403
|
message?: string | undefined;
|
|
@@ -1767,6 +2426,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1767
2426
|
outputSchema?: Record<string, any> | undefined;
|
|
1768
2427
|
timeoutSeconds?: number | undefined;
|
|
1769
2428
|
}[] | undefined;
|
|
2429
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1770
2430
|
} | undefined;
|
|
1771
2431
|
}>;
|
|
1772
2432
|
declare const RegisterAgentResponseSchema: z.ZodObject<{
|
|
@@ -2268,6 +2928,798 @@ declare const actionPrepareResultSchema: z.ZodObject<{
|
|
|
2268
2928
|
initialPayload?: Record<string, any> | undefined;
|
|
2269
2929
|
currentState?: Record<string, any> | undefined;
|
|
2270
2930
|
}>;
|
|
2931
|
+
declare const CapsuleBusExperimentalSchema: z.ZodLiteral<"v0.4-experimental">;
|
|
2932
|
+
type CapsuleBusExperimental = z.infer<typeof CapsuleBusExperimentalSchema>;
|
|
2933
|
+
declare const BusRouteStatus: readonly ["ENABLED", "DISABLED", "DRY_RUN"];
|
|
2934
|
+
type BusRouteStatus = typeof BusRouteStatus[number];
|
|
2935
|
+
declare const BusRouteStatusSchema: z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>;
|
|
2936
|
+
declare const BusEventEnvelopeSchema: z.ZodObject<{
|
|
2937
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
2939
|
+
eventType: z.ZodString;
|
|
2940
|
+
sourceServiceCode: z.ZodString;
|
|
2941
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
2942
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2943
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2944
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2946
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2947
|
+
}, "strip", z.ZodTypeAny, {
|
|
2948
|
+
experimental: "v0.4-experimental";
|
|
2949
|
+
eventType: string;
|
|
2950
|
+
sourceServiceCode: string;
|
|
2951
|
+
id?: string | undefined;
|
|
2952
|
+
metadata?: Record<string, any> | undefined;
|
|
2953
|
+
sourceServiceId?: string | undefined;
|
|
2954
|
+
occurredAt?: string | undefined;
|
|
2955
|
+
correlationId?: string | undefined;
|
|
2956
|
+
causationId?: string | undefined;
|
|
2957
|
+
payload?: Record<string, any> | undefined;
|
|
2958
|
+
}, {
|
|
2959
|
+
eventType: string;
|
|
2960
|
+
sourceServiceCode: string;
|
|
2961
|
+
id?: string | undefined;
|
|
2962
|
+
metadata?: Record<string, any> | undefined;
|
|
2963
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
2964
|
+
sourceServiceId?: string | undefined;
|
|
2965
|
+
occurredAt?: string | undefined;
|
|
2966
|
+
correlationId?: string | undefined;
|
|
2967
|
+
causationId?: string | undefined;
|
|
2968
|
+
payload?: Record<string, any> | undefined;
|
|
2969
|
+
}>;
|
|
2970
|
+
type BusEventEnvelope = z.infer<typeof BusEventEnvelopeSchema>;
|
|
2971
|
+
declare const PublishBusEventRequestSchema: z.ZodObject<Omit<{
|
|
2972
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2973
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
2974
|
+
eventType: z.ZodString;
|
|
2975
|
+
sourceServiceCode: z.ZodString;
|
|
2976
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
2977
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2978
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2979
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
2980
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2981
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2982
|
+
}, "id"> & {
|
|
2983
|
+
routePolicy: z.ZodOptional<z.ZodObject<{
|
|
2984
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
2985
|
+
}, "strip", z.ZodTypeAny, {
|
|
2986
|
+
dryRun?: boolean | undefined;
|
|
2987
|
+
}, {
|
|
2988
|
+
dryRun?: boolean | undefined;
|
|
2989
|
+
}>>;
|
|
2990
|
+
}, "strip", z.ZodTypeAny, {
|
|
2991
|
+
experimental: "v0.4-experimental";
|
|
2992
|
+
eventType: string;
|
|
2993
|
+
sourceServiceCode: string;
|
|
2994
|
+
metadata?: Record<string, any> | undefined;
|
|
2995
|
+
sourceServiceId?: string | undefined;
|
|
2996
|
+
occurredAt?: string | undefined;
|
|
2997
|
+
correlationId?: string | undefined;
|
|
2998
|
+
causationId?: string | undefined;
|
|
2999
|
+
payload?: Record<string, any> | undefined;
|
|
3000
|
+
routePolicy?: {
|
|
3001
|
+
dryRun?: boolean | undefined;
|
|
3002
|
+
} | undefined;
|
|
3003
|
+
}, {
|
|
3004
|
+
eventType: string;
|
|
3005
|
+
sourceServiceCode: string;
|
|
3006
|
+
metadata?: Record<string, any> | undefined;
|
|
3007
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3008
|
+
sourceServiceId?: string | undefined;
|
|
3009
|
+
occurredAt?: string | undefined;
|
|
3010
|
+
correlationId?: string | undefined;
|
|
3011
|
+
causationId?: string | undefined;
|
|
3012
|
+
payload?: Record<string, any> | undefined;
|
|
3013
|
+
routePolicy?: {
|
|
3014
|
+
dryRun?: boolean | undefined;
|
|
3015
|
+
} | undefined;
|
|
3016
|
+
}>;
|
|
3017
|
+
type PublishBusEventRequest = z.infer<typeof PublishBusEventRequestSchema>;
|
|
3018
|
+
declare const BusRouteRuleSchema: z.ZodObject<{
|
|
3019
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
name: z.ZodString;
|
|
3021
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3023
|
+
match: z.ZodObject<{
|
|
3024
|
+
eventType: z.ZodString;
|
|
3025
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
}, "strip", z.ZodTypeAny, {
|
|
3027
|
+
eventType: string;
|
|
3028
|
+
sourceServiceCode?: string | undefined;
|
|
3029
|
+
}, {
|
|
3030
|
+
eventType: string;
|
|
3031
|
+
sourceServiceCode?: string | undefined;
|
|
3032
|
+
}>;
|
|
3033
|
+
target: z.ZodObject<{
|
|
3034
|
+
serviceCode: z.ZodString;
|
|
3035
|
+
actionName: z.ZodString;
|
|
3036
|
+
}, "strip", z.ZodTypeAny, {
|
|
3037
|
+
serviceCode: string;
|
|
3038
|
+
actionName: string;
|
|
3039
|
+
}, {
|
|
3040
|
+
serviceCode: string;
|
|
3041
|
+
actionName: string;
|
|
3042
|
+
}>;
|
|
3043
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3044
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3045
|
+
}, "strip", z.ZodTypeAny, {
|
|
3046
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3047
|
+
name: string;
|
|
3048
|
+
match: {
|
|
3049
|
+
eventType: string;
|
|
3050
|
+
sourceServiceCode?: string | undefined;
|
|
3051
|
+
};
|
|
3052
|
+
target: {
|
|
3053
|
+
serviceCode: string;
|
|
3054
|
+
actionName: string;
|
|
3055
|
+
};
|
|
3056
|
+
id?: string | undefined;
|
|
3057
|
+
description?: string | undefined;
|
|
3058
|
+
metadata?: Record<string, any> | undefined;
|
|
3059
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3060
|
+
}, {
|
|
3061
|
+
name: string;
|
|
3062
|
+
match: {
|
|
3063
|
+
eventType: string;
|
|
3064
|
+
sourceServiceCode?: string | undefined;
|
|
3065
|
+
};
|
|
3066
|
+
target: {
|
|
3067
|
+
serviceCode: string;
|
|
3068
|
+
actionName: string;
|
|
3069
|
+
};
|
|
3070
|
+
id?: string | undefined;
|
|
3071
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3072
|
+
description?: string | undefined;
|
|
3073
|
+
metadata?: Record<string, any> | undefined;
|
|
3074
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3075
|
+
}>;
|
|
3076
|
+
type BusRouteRule = z.infer<typeof BusRouteRuleSchema>;
|
|
3077
|
+
declare const CreateBusRouteRuleRequestSchema: z.ZodObject<Omit<{
|
|
3078
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3079
|
+
name: z.ZodString;
|
|
3080
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3081
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3082
|
+
match: z.ZodObject<{
|
|
3083
|
+
eventType: z.ZodString;
|
|
3084
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3085
|
+
}, "strip", z.ZodTypeAny, {
|
|
3086
|
+
eventType: string;
|
|
3087
|
+
sourceServiceCode?: string | undefined;
|
|
3088
|
+
}, {
|
|
3089
|
+
eventType: string;
|
|
3090
|
+
sourceServiceCode?: string | undefined;
|
|
3091
|
+
}>;
|
|
3092
|
+
target: z.ZodObject<{
|
|
3093
|
+
serviceCode: z.ZodString;
|
|
3094
|
+
actionName: z.ZodString;
|
|
3095
|
+
}, "strip", z.ZodTypeAny, {
|
|
3096
|
+
serviceCode: string;
|
|
3097
|
+
actionName: string;
|
|
3098
|
+
}, {
|
|
3099
|
+
serviceCode: string;
|
|
3100
|
+
actionName: string;
|
|
3101
|
+
}>;
|
|
3102
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3103
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3104
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
3105
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3106
|
+
name: string;
|
|
3107
|
+
match: {
|
|
3108
|
+
eventType: string;
|
|
3109
|
+
sourceServiceCode?: string | undefined;
|
|
3110
|
+
};
|
|
3111
|
+
target: {
|
|
3112
|
+
serviceCode: string;
|
|
3113
|
+
actionName: string;
|
|
3114
|
+
};
|
|
3115
|
+
description?: string | undefined;
|
|
3116
|
+
metadata?: Record<string, any> | undefined;
|
|
3117
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3118
|
+
}, {
|
|
3119
|
+
name: string;
|
|
3120
|
+
match: {
|
|
3121
|
+
eventType: string;
|
|
3122
|
+
sourceServiceCode?: string | undefined;
|
|
3123
|
+
};
|
|
3124
|
+
target: {
|
|
3125
|
+
serviceCode: string;
|
|
3126
|
+
actionName: string;
|
|
3127
|
+
};
|
|
3128
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3129
|
+
description?: string | undefined;
|
|
3130
|
+
metadata?: Record<string, any> | undefined;
|
|
3131
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3132
|
+
}>;
|
|
3133
|
+
type CreateBusRouteRuleRequest = z.infer<typeof CreateBusRouteRuleRequestSchema>;
|
|
3134
|
+
declare const BusCommandRequestSchema: z.ZodObject<{
|
|
3135
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3136
|
+
commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
|
|
3137
|
+
targetService: z.ZodString;
|
|
3138
|
+
actionName: z.ZodString;
|
|
3139
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
3140
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3141
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3142
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3143
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
3145
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
3148
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3149
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3150
|
+
}, z.ZodAny, "strip">>>;
|
|
3151
|
+
}, "strip", z.ZodTypeAny, {
|
|
3152
|
+
actionName: string;
|
|
3153
|
+
commandType: "ACTION_EXECUTE";
|
|
3154
|
+
targetService: string;
|
|
3155
|
+
metadata?: z.objectOutputType<{
|
|
3156
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3157
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3158
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3159
|
+
payload?: Record<string, any> | undefined;
|
|
3160
|
+
commandId?: string | undefined;
|
|
3161
|
+
sourceEventId?: string | undefined;
|
|
3162
|
+
}, {
|
|
3163
|
+
actionName: string;
|
|
3164
|
+
targetService: string;
|
|
3165
|
+
metadata?: z.objectInputType<{
|
|
3166
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3167
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3168
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3169
|
+
payload?: Record<string, any> | undefined;
|
|
3170
|
+
commandId?: string | undefined;
|
|
3171
|
+
commandType?: "ACTION_EXECUTE" | undefined;
|
|
3172
|
+
sourceEventId?: string | undefined;
|
|
3173
|
+
}>;
|
|
3174
|
+
type BusCommandRequest = z.infer<typeof BusCommandRequestSchema>;
|
|
3175
|
+
declare const busCommandRequestSchema: z.ZodObject<{
|
|
3176
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3177
|
+
commandType: z.ZodDefault<z.ZodLiteral<"ACTION_EXECUTE">>;
|
|
3178
|
+
targetService: z.ZodString;
|
|
3179
|
+
actionName: z.ZodString;
|
|
3180
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
3181
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3182
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
3183
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3184
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
3186
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3187
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3188
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
3189
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3190
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3191
|
+
}, z.ZodAny, "strip">>>;
|
|
3192
|
+
}, "strip", z.ZodTypeAny, {
|
|
3193
|
+
actionName: string;
|
|
3194
|
+
commandType: "ACTION_EXECUTE";
|
|
3195
|
+
targetService: string;
|
|
3196
|
+
metadata?: z.objectOutputType<{
|
|
3197
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3198
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3199
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3200
|
+
payload?: Record<string, any> | undefined;
|
|
3201
|
+
commandId?: string | undefined;
|
|
3202
|
+
sourceEventId?: string | undefined;
|
|
3203
|
+
}, {
|
|
3204
|
+
actionName: string;
|
|
3205
|
+
targetService: string;
|
|
3206
|
+
metadata?: z.objectInputType<{
|
|
3207
|
+
routingRuleId: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
3210
|
+
payload?: Record<string, any> | undefined;
|
|
3211
|
+
commandId?: string | undefined;
|
|
3212
|
+
commandType?: "ACTION_EXECUTE" | undefined;
|
|
3213
|
+
sourceEventId?: string | undefined;
|
|
3214
|
+
}>;
|
|
3215
|
+
declare const BusRoutingRuleSchema: z.ZodObject<{
|
|
3216
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
name: z.ZodString;
|
|
3218
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3219
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3220
|
+
match: z.ZodObject<{
|
|
3221
|
+
eventType: z.ZodString;
|
|
3222
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3223
|
+
}, "strip", z.ZodTypeAny, {
|
|
3224
|
+
eventType: string;
|
|
3225
|
+
sourceServiceCode?: string | undefined;
|
|
3226
|
+
}, {
|
|
3227
|
+
eventType: string;
|
|
3228
|
+
sourceServiceCode?: string | undefined;
|
|
3229
|
+
}>;
|
|
3230
|
+
target: z.ZodObject<{
|
|
3231
|
+
serviceCode: z.ZodString;
|
|
3232
|
+
actionName: z.ZodString;
|
|
3233
|
+
}, "strip", z.ZodTypeAny, {
|
|
3234
|
+
serviceCode: string;
|
|
3235
|
+
actionName: string;
|
|
3236
|
+
}, {
|
|
3237
|
+
serviceCode: string;
|
|
3238
|
+
actionName: string;
|
|
3239
|
+
}>;
|
|
3240
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3241
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3242
|
+
}, "strip", z.ZodTypeAny, {
|
|
3243
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3244
|
+
name: string;
|
|
3245
|
+
match: {
|
|
3246
|
+
eventType: string;
|
|
3247
|
+
sourceServiceCode?: string | undefined;
|
|
3248
|
+
};
|
|
3249
|
+
target: {
|
|
3250
|
+
serviceCode: string;
|
|
3251
|
+
actionName: string;
|
|
3252
|
+
};
|
|
3253
|
+
id?: string | undefined;
|
|
3254
|
+
description?: string | undefined;
|
|
3255
|
+
metadata?: Record<string, any> | undefined;
|
|
3256
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3257
|
+
}, {
|
|
3258
|
+
name: string;
|
|
3259
|
+
match: {
|
|
3260
|
+
eventType: string;
|
|
3261
|
+
sourceServiceCode?: string | undefined;
|
|
3262
|
+
};
|
|
3263
|
+
target: {
|
|
3264
|
+
serviceCode: string;
|
|
3265
|
+
actionName: string;
|
|
3266
|
+
};
|
|
3267
|
+
id?: string | undefined;
|
|
3268
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3269
|
+
description?: string | undefined;
|
|
3270
|
+
metadata?: Record<string, any> | undefined;
|
|
3271
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3272
|
+
}>;
|
|
3273
|
+
type BusRoutingRule = BusRouteRule;
|
|
3274
|
+
declare const busRoutingRuleSchema: z.ZodObject<{
|
|
3275
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3276
|
+
name: z.ZodString;
|
|
3277
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3278
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3279
|
+
match: z.ZodObject<{
|
|
3280
|
+
eventType: z.ZodString;
|
|
3281
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3282
|
+
}, "strip", z.ZodTypeAny, {
|
|
3283
|
+
eventType: string;
|
|
3284
|
+
sourceServiceCode?: string | undefined;
|
|
3285
|
+
}, {
|
|
3286
|
+
eventType: string;
|
|
3287
|
+
sourceServiceCode?: string | undefined;
|
|
3288
|
+
}>;
|
|
3289
|
+
target: z.ZodObject<{
|
|
3290
|
+
serviceCode: z.ZodString;
|
|
3291
|
+
actionName: z.ZodString;
|
|
3292
|
+
}, "strip", z.ZodTypeAny, {
|
|
3293
|
+
serviceCode: string;
|
|
3294
|
+
actionName: string;
|
|
3295
|
+
}, {
|
|
3296
|
+
serviceCode: string;
|
|
3297
|
+
actionName: string;
|
|
3298
|
+
}>;
|
|
3299
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3300
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3301
|
+
}, "strip", z.ZodTypeAny, {
|
|
3302
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3303
|
+
name: string;
|
|
3304
|
+
match: {
|
|
3305
|
+
eventType: string;
|
|
3306
|
+
sourceServiceCode?: string | undefined;
|
|
3307
|
+
};
|
|
3308
|
+
target: {
|
|
3309
|
+
serviceCode: string;
|
|
3310
|
+
actionName: string;
|
|
3311
|
+
};
|
|
3312
|
+
id?: string | undefined;
|
|
3313
|
+
description?: string | undefined;
|
|
3314
|
+
metadata?: Record<string, any> | undefined;
|
|
3315
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3316
|
+
}, {
|
|
3317
|
+
name: string;
|
|
3318
|
+
match: {
|
|
3319
|
+
eventType: string;
|
|
3320
|
+
sourceServiceCode?: string | undefined;
|
|
3321
|
+
};
|
|
3322
|
+
target: {
|
|
3323
|
+
serviceCode: string;
|
|
3324
|
+
actionName: string;
|
|
3325
|
+
};
|
|
3326
|
+
id?: string | undefined;
|
|
3327
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3328
|
+
description?: string | undefined;
|
|
3329
|
+
metadata?: Record<string, any> | undefined;
|
|
3330
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3331
|
+
}>;
|
|
3332
|
+
declare const BusRoutedCommandSchema: z.ZodObject<{
|
|
3333
|
+
routeId: z.ZodString;
|
|
3334
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
dryRun: z.ZodBoolean;
|
|
3336
|
+
targetServiceCode: z.ZodString;
|
|
3337
|
+
actionName: z.ZodString;
|
|
3338
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3339
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3340
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3341
|
+
}, "strip", z.ZodTypeAny, {
|
|
3342
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3343
|
+
dryRun: boolean;
|
|
3344
|
+
actionName: string;
|
|
3345
|
+
routeId: string;
|
|
3346
|
+
targetServiceCode: string;
|
|
3347
|
+
commandId?: string | undefined;
|
|
3348
|
+
errorCode?: string | undefined;
|
|
3349
|
+
errorMessage?: string | undefined;
|
|
3350
|
+
}, {
|
|
3351
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3352
|
+
dryRun: boolean;
|
|
3353
|
+
actionName: string;
|
|
3354
|
+
routeId: string;
|
|
3355
|
+
targetServiceCode: string;
|
|
3356
|
+
commandId?: string | undefined;
|
|
3357
|
+
errorCode?: string | undefined;
|
|
3358
|
+
errorMessage?: string | undefined;
|
|
3359
|
+
}>;
|
|
3360
|
+
type BusRoutedCommand = z.infer<typeof BusRoutedCommandSchema>;
|
|
3361
|
+
declare const PublishBusEventResponseSchema: z.ZodObject<{
|
|
3362
|
+
eventId: z.ZodString;
|
|
3363
|
+
experimental: z.ZodLiteral<"v0.4-experimental">;
|
|
3364
|
+
routedCommands: z.ZodArray<z.ZodObject<{
|
|
3365
|
+
routeId: z.ZodString;
|
|
3366
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3367
|
+
dryRun: z.ZodBoolean;
|
|
3368
|
+
targetServiceCode: z.ZodString;
|
|
3369
|
+
actionName: z.ZodString;
|
|
3370
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3371
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3372
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3373
|
+
}, "strip", z.ZodTypeAny, {
|
|
3374
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3375
|
+
dryRun: boolean;
|
|
3376
|
+
actionName: string;
|
|
3377
|
+
routeId: string;
|
|
3378
|
+
targetServiceCode: string;
|
|
3379
|
+
commandId?: string | undefined;
|
|
3380
|
+
errorCode?: string | undefined;
|
|
3381
|
+
errorMessage?: string | undefined;
|
|
3382
|
+
}, {
|
|
3383
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3384
|
+
dryRun: boolean;
|
|
3385
|
+
actionName: string;
|
|
3386
|
+
routeId: string;
|
|
3387
|
+
targetServiceCode: string;
|
|
3388
|
+
commandId?: string | undefined;
|
|
3389
|
+
errorCode?: string | undefined;
|
|
3390
|
+
errorMessage?: string | undefined;
|
|
3391
|
+
}>, "many">;
|
|
3392
|
+
}, "strip", z.ZodTypeAny, {
|
|
3393
|
+
experimental: "v0.4-experimental";
|
|
3394
|
+
eventId: string;
|
|
3395
|
+
routedCommands: {
|
|
3396
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3397
|
+
dryRun: boolean;
|
|
3398
|
+
actionName: string;
|
|
3399
|
+
routeId: string;
|
|
3400
|
+
targetServiceCode: string;
|
|
3401
|
+
commandId?: string | undefined;
|
|
3402
|
+
errorCode?: string | undefined;
|
|
3403
|
+
errorMessage?: string | undefined;
|
|
3404
|
+
}[];
|
|
3405
|
+
}, {
|
|
3406
|
+
experimental: "v0.4-experimental";
|
|
3407
|
+
eventId: string;
|
|
3408
|
+
routedCommands: {
|
|
3409
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3410
|
+
dryRun: boolean;
|
|
3411
|
+
actionName: string;
|
|
3412
|
+
routeId: string;
|
|
3413
|
+
targetServiceCode: string;
|
|
3414
|
+
commandId?: string | undefined;
|
|
3415
|
+
errorCode?: string | undefined;
|
|
3416
|
+
errorMessage?: string | undefined;
|
|
3417
|
+
}[];
|
|
3418
|
+
}>;
|
|
3419
|
+
type PublishBusEventResponse = z.infer<typeof PublishBusEventResponseSchema>;
|
|
3420
|
+
declare const BusEventRecordSchema: z.ZodObject<{
|
|
3421
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3422
|
+
eventType: z.ZodString;
|
|
3423
|
+
sourceServiceCode: z.ZodString;
|
|
3424
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3425
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3426
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3427
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3428
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3429
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3430
|
+
} & {
|
|
3431
|
+
id: z.ZodString;
|
|
3432
|
+
agentId: z.ZodString;
|
|
3433
|
+
acceptedAt: z.ZodString;
|
|
3434
|
+
routeCount: z.ZodNumber;
|
|
3435
|
+
}, "strip", z.ZodTypeAny, {
|
|
3436
|
+
id: string;
|
|
3437
|
+
agentId: string;
|
|
3438
|
+
experimental: "v0.4-experimental";
|
|
3439
|
+
eventType: string;
|
|
3440
|
+
sourceServiceCode: string;
|
|
3441
|
+
acceptedAt: string;
|
|
3442
|
+
routeCount: number;
|
|
3443
|
+
metadata?: Record<string, any> | undefined;
|
|
3444
|
+
sourceServiceId?: string | undefined;
|
|
3445
|
+
occurredAt?: string | undefined;
|
|
3446
|
+
correlationId?: string | undefined;
|
|
3447
|
+
causationId?: string | undefined;
|
|
3448
|
+
payload?: Record<string, any> | undefined;
|
|
3449
|
+
}, {
|
|
3450
|
+
id: string;
|
|
3451
|
+
agentId: string;
|
|
3452
|
+
eventType: string;
|
|
3453
|
+
sourceServiceCode: string;
|
|
3454
|
+
acceptedAt: string;
|
|
3455
|
+
routeCount: number;
|
|
3456
|
+
metadata?: Record<string, any> | undefined;
|
|
3457
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3458
|
+
sourceServiceId?: string | undefined;
|
|
3459
|
+
occurredAt?: string | undefined;
|
|
3460
|
+
correlationId?: string | undefined;
|
|
3461
|
+
causationId?: string | undefined;
|
|
3462
|
+
payload?: Record<string, any> | undefined;
|
|
3463
|
+
}>;
|
|
3464
|
+
type BusEventRecord = z.infer<typeof BusEventRecordSchema>;
|
|
3465
|
+
declare const BusErrorCode: {
|
|
3466
|
+
readonly CAPSULE_BUS_DISABLED: "CAPSULE_BUS_DISABLED";
|
|
3467
|
+
readonly BUS_RATE_LIMITED: "BUS_RATE_LIMITED";
|
|
3468
|
+
readonly BUS_DEPTH_EXCEEDED: "BUS_DEPTH_EXCEEDED";
|
|
3469
|
+
};
|
|
3470
|
+
type BusErrorCode = (typeof BusErrorCode)[keyof typeof BusErrorCode];
|
|
3471
|
+
declare const publishBusEventRequestSchema: z.ZodObject<Omit<{
|
|
3472
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3473
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3474
|
+
eventType: z.ZodString;
|
|
3475
|
+
sourceServiceCode: z.ZodString;
|
|
3476
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3477
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3478
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3481
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3482
|
+
}, "id"> & {
|
|
3483
|
+
routePolicy: z.ZodOptional<z.ZodObject<{
|
|
3484
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
3485
|
+
}, "strip", z.ZodTypeAny, {
|
|
3486
|
+
dryRun?: boolean | undefined;
|
|
3487
|
+
}, {
|
|
3488
|
+
dryRun?: boolean | undefined;
|
|
3489
|
+
}>>;
|
|
3490
|
+
}, "strip", z.ZodTypeAny, {
|
|
3491
|
+
experimental: "v0.4-experimental";
|
|
3492
|
+
eventType: string;
|
|
3493
|
+
sourceServiceCode: string;
|
|
3494
|
+
metadata?: Record<string, any> | undefined;
|
|
3495
|
+
sourceServiceId?: string | undefined;
|
|
3496
|
+
occurredAt?: string | undefined;
|
|
3497
|
+
correlationId?: string | undefined;
|
|
3498
|
+
causationId?: string | undefined;
|
|
3499
|
+
payload?: Record<string, any> | undefined;
|
|
3500
|
+
routePolicy?: {
|
|
3501
|
+
dryRun?: boolean | undefined;
|
|
3502
|
+
} | undefined;
|
|
3503
|
+
}, {
|
|
3504
|
+
eventType: string;
|
|
3505
|
+
sourceServiceCode: string;
|
|
3506
|
+
metadata?: Record<string, any> | undefined;
|
|
3507
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3508
|
+
sourceServiceId?: string | undefined;
|
|
3509
|
+
occurredAt?: string | undefined;
|
|
3510
|
+
correlationId?: string | undefined;
|
|
3511
|
+
causationId?: string | undefined;
|
|
3512
|
+
payload?: Record<string, any> | undefined;
|
|
3513
|
+
routePolicy?: {
|
|
3514
|
+
dryRun?: boolean | undefined;
|
|
3515
|
+
} | undefined;
|
|
3516
|
+
}>;
|
|
3517
|
+
declare const publishBusEventResponseSchema: z.ZodObject<{
|
|
3518
|
+
eventId: z.ZodString;
|
|
3519
|
+
experimental: z.ZodLiteral<"v0.4-experimental">;
|
|
3520
|
+
routedCommands: z.ZodArray<z.ZodObject<{
|
|
3521
|
+
routeId: z.ZodString;
|
|
3522
|
+
commandId: z.ZodOptional<z.ZodString>;
|
|
3523
|
+
dryRun: z.ZodBoolean;
|
|
3524
|
+
targetServiceCode: z.ZodString;
|
|
3525
|
+
actionName: z.ZodString;
|
|
3526
|
+
status: z.ZodEnum<["CREATED", "DRY_RUN", "SKIPPED", "FAILED"]>;
|
|
3527
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3528
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3529
|
+
}, "strip", z.ZodTypeAny, {
|
|
3530
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3531
|
+
dryRun: boolean;
|
|
3532
|
+
actionName: string;
|
|
3533
|
+
routeId: string;
|
|
3534
|
+
targetServiceCode: string;
|
|
3535
|
+
commandId?: string | undefined;
|
|
3536
|
+
errorCode?: string | undefined;
|
|
3537
|
+
errorMessage?: string | undefined;
|
|
3538
|
+
}, {
|
|
3539
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3540
|
+
dryRun: boolean;
|
|
3541
|
+
actionName: string;
|
|
3542
|
+
routeId: string;
|
|
3543
|
+
targetServiceCode: string;
|
|
3544
|
+
commandId?: string | undefined;
|
|
3545
|
+
errorCode?: string | undefined;
|
|
3546
|
+
errorMessage?: string | undefined;
|
|
3547
|
+
}>, "many">;
|
|
3548
|
+
}, "strip", z.ZodTypeAny, {
|
|
3549
|
+
experimental: "v0.4-experimental";
|
|
3550
|
+
eventId: string;
|
|
3551
|
+
routedCommands: {
|
|
3552
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3553
|
+
dryRun: boolean;
|
|
3554
|
+
actionName: string;
|
|
3555
|
+
routeId: string;
|
|
3556
|
+
targetServiceCode: string;
|
|
3557
|
+
commandId?: string | undefined;
|
|
3558
|
+
errorCode?: string | undefined;
|
|
3559
|
+
errorMessage?: string | undefined;
|
|
3560
|
+
}[];
|
|
3561
|
+
}, {
|
|
3562
|
+
experimental: "v0.4-experimental";
|
|
3563
|
+
eventId: string;
|
|
3564
|
+
routedCommands: {
|
|
3565
|
+
status: "FAILED" | "DRY_RUN" | "CREATED" | "SKIPPED";
|
|
3566
|
+
dryRun: boolean;
|
|
3567
|
+
actionName: string;
|
|
3568
|
+
routeId: string;
|
|
3569
|
+
targetServiceCode: string;
|
|
3570
|
+
commandId?: string | undefined;
|
|
3571
|
+
errorCode?: string | undefined;
|
|
3572
|
+
errorMessage?: string | undefined;
|
|
3573
|
+
}[];
|
|
3574
|
+
}>;
|
|
3575
|
+
declare const busEventEnvelopeSchema: z.ZodObject<{
|
|
3576
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
experimental: z.ZodDefault<z.ZodLiteral<"v0.4-experimental">>;
|
|
3578
|
+
eventType: z.ZodString;
|
|
3579
|
+
sourceServiceCode: z.ZodString;
|
|
3580
|
+
sourceServiceId: z.ZodOptional<z.ZodString>;
|
|
3581
|
+
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3582
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
3583
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
payload: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3585
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3586
|
+
}, "strip", z.ZodTypeAny, {
|
|
3587
|
+
experimental: "v0.4-experimental";
|
|
3588
|
+
eventType: string;
|
|
3589
|
+
sourceServiceCode: string;
|
|
3590
|
+
id?: string | undefined;
|
|
3591
|
+
metadata?: Record<string, any> | undefined;
|
|
3592
|
+
sourceServiceId?: string | undefined;
|
|
3593
|
+
occurredAt?: string | undefined;
|
|
3594
|
+
correlationId?: string | undefined;
|
|
3595
|
+
causationId?: string | undefined;
|
|
3596
|
+
payload?: Record<string, any> | undefined;
|
|
3597
|
+
}, {
|
|
3598
|
+
eventType: string;
|
|
3599
|
+
sourceServiceCode: string;
|
|
3600
|
+
id?: string | undefined;
|
|
3601
|
+
metadata?: Record<string, any> | undefined;
|
|
3602
|
+
experimental?: "v0.4-experimental" | undefined;
|
|
3603
|
+
sourceServiceId?: string | undefined;
|
|
3604
|
+
occurredAt?: string | undefined;
|
|
3605
|
+
correlationId?: string | undefined;
|
|
3606
|
+
causationId?: string | undefined;
|
|
3607
|
+
payload?: Record<string, any> | undefined;
|
|
3608
|
+
}>;
|
|
3609
|
+
declare const busRouteRuleSchema: z.ZodObject<{
|
|
3610
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3611
|
+
name: z.ZodString;
|
|
3612
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3613
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3614
|
+
match: z.ZodObject<{
|
|
3615
|
+
eventType: z.ZodString;
|
|
3616
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3617
|
+
}, "strip", z.ZodTypeAny, {
|
|
3618
|
+
eventType: string;
|
|
3619
|
+
sourceServiceCode?: string | undefined;
|
|
3620
|
+
}, {
|
|
3621
|
+
eventType: string;
|
|
3622
|
+
sourceServiceCode?: string | undefined;
|
|
3623
|
+
}>;
|
|
3624
|
+
target: z.ZodObject<{
|
|
3625
|
+
serviceCode: z.ZodString;
|
|
3626
|
+
actionName: z.ZodString;
|
|
3627
|
+
}, "strip", z.ZodTypeAny, {
|
|
3628
|
+
serviceCode: string;
|
|
3629
|
+
actionName: string;
|
|
3630
|
+
}, {
|
|
3631
|
+
serviceCode: string;
|
|
3632
|
+
actionName: string;
|
|
3633
|
+
}>;
|
|
3634
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3635
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3636
|
+
}, "strip", z.ZodTypeAny, {
|
|
3637
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3638
|
+
name: string;
|
|
3639
|
+
match: {
|
|
3640
|
+
eventType: string;
|
|
3641
|
+
sourceServiceCode?: string | undefined;
|
|
3642
|
+
};
|
|
3643
|
+
target: {
|
|
3644
|
+
serviceCode: string;
|
|
3645
|
+
actionName: string;
|
|
3646
|
+
};
|
|
3647
|
+
id?: string | undefined;
|
|
3648
|
+
description?: string | undefined;
|
|
3649
|
+
metadata?: Record<string, any> | undefined;
|
|
3650
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3651
|
+
}, {
|
|
3652
|
+
name: string;
|
|
3653
|
+
match: {
|
|
3654
|
+
eventType: string;
|
|
3655
|
+
sourceServiceCode?: string | undefined;
|
|
3656
|
+
};
|
|
3657
|
+
target: {
|
|
3658
|
+
serviceCode: string;
|
|
3659
|
+
actionName: string;
|
|
3660
|
+
};
|
|
3661
|
+
id?: string | undefined;
|
|
3662
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3663
|
+
description?: string | undefined;
|
|
3664
|
+
metadata?: Record<string, any> | undefined;
|
|
3665
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3666
|
+
}>;
|
|
3667
|
+
declare const createBusRouteRuleRequestSchema: z.ZodObject<Omit<{
|
|
3668
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3669
|
+
name: z.ZodString;
|
|
3670
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3671
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ENABLED", "DISABLED", "DRY_RUN"]>>>;
|
|
3672
|
+
match: z.ZodObject<{
|
|
3673
|
+
eventType: z.ZodString;
|
|
3674
|
+
sourceServiceCode: z.ZodOptional<z.ZodString>;
|
|
3675
|
+
}, "strip", z.ZodTypeAny, {
|
|
3676
|
+
eventType: string;
|
|
3677
|
+
sourceServiceCode?: string | undefined;
|
|
3678
|
+
}, {
|
|
3679
|
+
eventType: string;
|
|
3680
|
+
sourceServiceCode?: string | undefined;
|
|
3681
|
+
}>;
|
|
3682
|
+
target: z.ZodObject<{
|
|
3683
|
+
serviceCode: z.ZodString;
|
|
3684
|
+
actionName: z.ZodString;
|
|
3685
|
+
}, "strip", z.ZodTypeAny, {
|
|
3686
|
+
serviceCode: string;
|
|
3687
|
+
actionName: string;
|
|
3688
|
+
}, {
|
|
3689
|
+
serviceCode: string;
|
|
3690
|
+
actionName: string;
|
|
3691
|
+
}>;
|
|
3692
|
+
inputMapping: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3693
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3694
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
3695
|
+
status: "DISABLED" | "ENABLED" | "DRY_RUN";
|
|
3696
|
+
name: string;
|
|
3697
|
+
match: {
|
|
3698
|
+
eventType: string;
|
|
3699
|
+
sourceServiceCode?: string | undefined;
|
|
3700
|
+
};
|
|
3701
|
+
target: {
|
|
3702
|
+
serviceCode: string;
|
|
3703
|
+
actionName: string;
|
|
3704
|
+
};
|
|
3705
|
+
description?: string | undefined;
|
|
3706
|
+
metadata?: Record<string, any> | undefined;
|
|
3707
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3708
|
+
}, {
|
|
3709
|
+
name: string;
|
|
3710
|
+
match: {
|
|
3711
|
+
eventType: string;
|
|
3712
|
+
sourceServiceCode?: string | undefined;
|
|
3713
|
+
};
|
|
3714
|
+
target: {
|
|
3715
|
+
serviceCode: string;
|
|
3716
|
+
actionName: string;
|
|
3717
|
+
};
|
|
3718
|
+
status?: "DISABLED" | "ENABLED" | "DRY_RUN" | undefined;
|
|
3719
|
+
description?: string | undefined;
|
|
3720
|
+
metadata?: Record<string, any> | undefined;
|
|
3721
|
+
inputMapping?: Record<string, any> | undefined;
|
|
3722
|
+
}>;
|
|
2271
3723
|
declare const CreateActionCommandRequestSchema: z.ZodObject<{
|
|
2272
3724
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2273
3725
|
confirmation: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2305,7 +3757,7 @@ declare const CommandSchema: z.ZodObject<{
|
|
|
2305
3757
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2306
3758
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2307
3759
|
}, "strip", z.ZodTypeAny, {
|
|
2308
|
-
type: "
|
|
3760
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2309
3761
|
id: string;
|
|
2310
3762
|
createdAt: string;
|
|
2311
3763
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2318,7 +3770,7 @@ declare const CommandSchema: z.ZodObject<{
|
|
|
2318
3770
|
startedAt?: string | null | undefined;
|
|
2319
3771
|
completedAt?: string | null | undefined;
|
|
2320
3772
|
}, {
|
|
2321
|
-
type: "
|
|
3773
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2322
3774
|
id: string;
|
|
2323
3775
|
createdAt: string;
|
|
2324
3776
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2388,16 +3840,16 @@ declare const CommandResultSchema: z.ZodObject<{
|
|
|
2388
3840
|
}, "strip", z.ZodTypeAny, {
|
|
2389
3841
|
id: string;
|
|
2390
3842
|
reportedAt: string;
|
|
2391
|
-
success: boolean;
|
|
2392
3843
|
commandId: string;
|
|
3844
|
+
success: boolean;
|
|
2393
3845
|
message?: string | null | undefined;
|
|
2394
3846
|
data?: Record<string, any> | undefined;
|
|
2395
3847
|
error?: Record<string, any> | undefined;
|
|
2396
3848
|
}, {
|
|
2397
3849
|
id: string;
|
|
2398
3850
|
reportedAt: string;
|
|
2399
|
-
success: boolean;
|
|
2400
3851
|
commandId: string;
|
|
3852
|
+
success: boolean;
|
|
2401
3853
|
message?: string | null | undefined;
|
|
2402
3854
|
data?: Record<string, any> | undefined;
|
|
2403
3855
|
error?: Record<string, any> | undefined;
|
|
@@ -2428,22 +3880,22 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
2428
3880
|
}, "strip", z.ZodTypeAny, {
|
|
2429
3881
|
id: string;
|
|
2430
3882
|
reportedAt: string;
|
|
2431
|
-
success: boolean;
|
|
2432
3883
|
commandId: string;
|
|
3884
|
+
success: boolean;
|
|
2433
3885
|
message?: string | null | undefined;
|
|
2434
3886
|
data?: Record<string, any> | undefined;
|
|
2435
3887
|
error?: Record<string, any> | undefined;
|
|
2436
3888
|
}, {
|
|
2437
3889
|
id: string;
|
|
2438
3890
|
reportedAt: string;
|
|
2439
|
-
success: boolean;
|
|
2440
3891
|
commandId: string;
|
|
3892
|
+
success: boolean;
|
|
2441
3893
|
message?: string | null | undefined;
|
|
2442
3894
|
data?: Record<string, any> | undefined;
|
|
2443
3895
|
error?: Record<string, any> | undefined;
|
|
2444
3896
|
}>>>;
|
|
2445
3897
|
}, "strip", z.ZodTypeAny, {
|
|
2446
|
-
type: "
|
|
3898
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2447
3899
|
id: string;
|
|
2448
3900
|
createdAt: string;
|
|
2449
3901
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2458,14 +3910,14 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
2458
3910
|
result?: {
|
|
2459
3911
|
id: string;
|
|
2460
3912
|
reportedAt: string;
|
|
2461
|
-
success: boolean;
|
|
2462
3913
|
commandId: string;
|
|
3914
|
+
success: boolean;
|
|
2463
3915
|
message?: string | null | undefined;
|
|
2464
3916
|
data?: Record<string, any> | undefined;
|
|
2465
3917
|
error?: Record<string, any> | undefined;
|
|
2466
3918
|
} | null | undefined;
|
|
2467
3919
|
}, {
|
|
2468
|
-
type: "
|
|
3920
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2469
3921
|
id: string;
|
|
2470
3922
|
createdAt: string;
|
|
2471
3923
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2480,8 +3932,8 @@ declare const CommandDetailSchema: z.ZodObject<{
|
|
|
2480
3932
|
result?: {
|
|
2481
3933
|
id: string;
|
|
2482
3934
|
reportedAt: string;
|
|
2483
|
-
success: boolean;
|
|
2484
3935
|
commandId: string;
|
|
3936
|
+
success: boolean;
|
|
2485
3937
|
message?: string | null | undefined;
|
|
2486
3938
|
data?: Record<string, any> | undefined;
|
|
2487
3939
|
error?: Record<string, any> | undefined;
|
|
@@ -2506,10 +3958,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2506
3958
|
result: "SUCCESS" | "FAILURE";
|
|
2507
3959
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2508
3960
|
message?: string | null | undefined;
|
|
3961
|
+
metadata?: Record<string, any> | undefined;
|
|
2509
3962
|
actorId?: string | null | undefined;
|
|
2510
3963
|
targetType?: string | null | undefined;
|
|
2511
3964
|
targetId?: string | null | undefined;
|
|
2512
|
-
metadata?: Record<string, any> | undefined;
|
|
2513
3965
|
}, {
|
|
2514
3966
|
id: string;
|
|
2515
3967
|
createdAt: string;
|
|
@@ -2517,10 +3969,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2517
3969
|
result: "SUCCESS" | "FAILURE";
|
|
2518
3970
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2519
3971
|
message?: string | null | undefined;
|
|
3972
|
+
metadata?: Record<string, any> | undefined;
|
|
2520
3973
|
actorId?: string | null | undefined;
|
|
2521
3974
|
targetType?: string | null | undefined;
|
|
2522
3975
|
targetId?: string | null | undefined;
|
|
2523
|
-
metadata?: Record<string, any> | undefined;
|
|
2524
3976
|
}>;
|
|
2525
3977
|
type AuditEvent = z.infer<typeof AuditEventSchema>;
|
|
2526
3978
|
declare const DashboardSummarySchema: z.ZodObject<{
|
|
@@ -2541,7 +3993,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2541
3993
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2542
3994
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2543
3995
|
}, "strip", z.ZodTypeAny, {
|
|
2544
|
-
type: "
|
|
3996
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2545
3997
|
id: string;
|
|
2546
3998
|
createdAt: string;
|
|
2547
3999
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2554,7 +4006,7 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2554
4006
|
startedAt?: string | null | undefined;
|
|
2555
4007
|
completedAt?: string | null | undefined;
|
|
2556
4008
|
}, {
|
|
2557
|
-
type: "
|
|
4009
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2558
4010
|
id: string;
|
|
2559
4011
|
createdAt: string;
|
|
2560
4012
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2585,10 +4037,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2585
4037
|
result: "SUCCESS" | "FAILURE";
|
|
2586
4038
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2587
4039
|
message?: string | null | undefined;
|
|
4040
|
+
metadata?: Record<string, any> | undefined;
|
|
2588
4041
|
actorId?: string | null | undefined;
|
|
2589
4042
|
targetType?: string | null | undefined;
|
|
2590
4043
|
targetId?: string | null | undefined;
|
|
2591
|
-
metadata?: Record<string, any> | undefined;
|
|
2592
4044
|
}, {
|
|
2593
4045
|
id: string;
|
|
2594
4046
|
createdAt: string;
|
|
@@ -2596,17 +4048,17 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2596
4048
|
result: "SUCCESS" | "FAILURE";
|
|
2597
4049
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2598
4050
|
message?: string | null | undefined;
|
|
4051
|
+
metadata?: Record<string, any> | undefined;
|
|
2599
4052
|
actorId?: string | null | undefined;
|
|
2600
4053
|
targetType?: string | null | undefined;
|
|
2601
4054
|
targetId?: string | null | undefined;
|
|
2602
|
-
metadata?: Record<string, any> | undefined;
|
|
2603
4055
|
}>, "many">>;
|
|
2604
4056
|
}, "strip", z.ZodTypeAny, {
|
|
2605
4057
|
agentCounts: Record<string, number>;
|
|
2606
4058
|
serviceCounts: Record<string, number>;
|
|
2607
4059
|
commandCounts: Record<string, number>;
|
|
2608
4060
|
recentCommands?: {
|
|
2609
|
-
type: "
|
|
4061
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2610
4062
|
id: string;
|
|
2611
4063
|
createdAt: string;
|
|
2612
4064
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2626,17 +4078,17 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2626
4078
|
result: "SUCCESS" | "FAILURE";
|
|
2627
4079
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2628
4080
|
message?: string | null | undefined;
|
|
4081
|
+
metadata?: Record<string, any> | undefined;
|
|
2629
4082
|
actorId?: string | null | undefined;
|
|
2630
4083
|
targetType?: string | null | undefined;
|
|
2631
4084
|
targetId?: string | null | undefined;
|
|
2632
|
-
metadata?: Record<string, any> | undefined;
|
|
2633
4085
|
}[] | undefined;
|
|
2634
4086
|
}, {
|
|
2635
4087
|
agentCounts: Record<string, number>;
|
|
2636
4088
|
serviceCounts: Record<string, number>;
|
|
2637
4089
|
commandCounts: Record<string, number>;
|
|
2638
4090
|
recentCommands?: {
|
|
2639
|
-
type: "
|
|
4091
|
+
type: "ACTION_EXECUTE" | "ACTION_PREPARE";
|
|
2640
4092
|
id: string;
|
|
2641
4093
|
createdAt: string;
|
|
2642
4094
|
status: "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "EXPIRED" | "CANCELLED";
|
|
@@ -2656,10 +4108,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2656
4108
|
result: "SUCCESS" | "FAILURE";
|
|
2657
4109
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2658
4110
|
message?: string | null | undefined;
|
|
4111
|
+
metadata?: Record<string, any> | undefined;
|
|
2659
4112
|
actorId?: string | null | undefined;
|
|
2660
4113
|
targetType?: string | null | undefined;
|
|
2661
4114
|
targetId?: string | null | undefined;
|
|
2662
|
-
metadata?: Record<string, any> | undefined;
|
|
2663
4115
|
}[] | undefined;
|
|
2664
4116
|
}>;
|
|
2665
4117
|
type DashboardSummary = z.infer<typeof DashboardSummarySchema>;
|
|
@@ -2776,5 +4228,21 @@ declare function paginate<T>(items: T[], page: number, pageSize: number, total:
|
|
|
2776
4228
|
total: number;
|
|
2777
4229
|
};
|
|
2778
4230
|
};
|
|
4231
|
+
declare const ErrorCode: {
|
|
4232
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
4233
|
+
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
4234
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
4235
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
4236
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
4237
|
+
readonly CONFLICT: "CONFLICT";
|
|
4238
|
+
readonly CSRF_INVALID: "CSRF_INVALID";
|
|
4239
|
+
readonly ACTION_REQUIRES_CONFIRMATION: "ACTION_REQUIRES_CONFIRMATION";
|
|
4240
|
+
readonly COMMAND_EXPIRED: "COMMAND_EXPIRED";
|
|
4241
|
+
readonly TOKEN_REVOKED: "TOKEN_REVOKED";
|
|
4242
|
+
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
4243
|
+
readonly AGENT_REVOKED: "AGENT_REVOKED";
|
|
4244
|
+
readonly AGENT_DISABLED: "AGENT_DISABLED";
|
|
4245
|
+
};
|
|
4246
|
+
type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
2779
4247
|
|
|
2780
|
-
export { type ActionDefinition, type ActionDefinitionInput, ActionDefinitionInputSchema, ActionDefinitionSchema, type ActionPrepareResult, ActionPrepareResultSchema, type AdminLoginRequest, AdminLoginRequestSchema, type AdminSession, AdminSessionSchema, type Agent, type AgentHeartbeatRequest, AgentHeartbeatRequestSchema, type AgentHeartbeatResponse, AgentHeartbeatResponseSchema, AgentSchema, AgentStatus, AgentStatusSchema, AnyJson, AuditActorType, type AuditEvent, AuditEventSchema, AuditResult, type CapsuleManifest, CapsuleManifestSchema, type CapsuleService, type CapsuleServiceDetail, CapsuleServiceDetailSchema, CapsuleServiceSchema, CapsuleServiceStatus, CapsuleServiceStatusSchema, type Command, type CommandDetail, CommandDetailSchema, type CommandResult, CommandResultSchema, CommandSchema, CommandStatus, CommandStatusSchema, type CommandType, CommandTypeSchema, type ConfigItem, type ConfigItemInput, ConfigItemInputSchema, ConfigItemSchema, type CreateActionCommandRequest, CreateActionCommandRequestSchema, type CreateRegistrationTokenRequest, CreateRegistrationTokenRequestSchema, type CreateRegistrationTokenResponse, CreateRegistrationTokenResponseSchema, type CreateUserRequest, DangerLevel, DangerLevelSchema, type DashboardSummary, DashboardSummarySchema, ErrorCode, type ErrorEnvelope, type HealthReport, type HealthReportInput, HealthReportInputSchema, HealthReportSchema, HealthStatus, HealthStatusSchema, HttpError, ListQueryBase, type Pagination, type RegisterAgentRequest, RegisterAgentRequestSchema, type RegisterAgentResponse, RegisterAgentResponseSchema, type RegistrationToken, RegistrationTokenSchema, type ReportCommandResultRequest, ReportCommandResultRequestSchema, type ReportedService, ReportedServiceSchema, type ResetUserPasswordRequest, type RuntimeKind, RuntimeKindSchema, type ServiceReportRequest, ServiceReportRequestSchema, type SuccessEnvelope, type SystemHealth, SystemHealthSchema, type SystemVersion, SystemVersionSchema, TokenStatus, type UpdateUserRequest, type User, UserRole, UserSchema, actionDefinitionInputSchema, actionPrepareResultSchema, adminLoginRequestSchema, agentHeartbeatRequestSchema, configItemInputSchema, createActionCommandRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, healthReportInputSchema, paginate, parseSort, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceReportRequestSchema, updateUserRequestSchema };
|
|
4248
|
+
export { type ActionDefinition, type ActionDefinitionInput, ActionDefinitionInputSchema, ActionDefinitionSchema, type ActionPrepareResult, ActionPrepareResultSchema, type AdminLoginRequest, AdminLoginRequestSchema, type AdminSession, AdminSessionSchema, type Agent, type AgentHeartbeatRequest, AgentHeartbeatRequestSchema, type AgentHeartbeatResponse, AgentHeartbeatResponseSchema, AgentMode, AgentModeSchema, AgentSchema, AgentStatus, AgentStatusSchema, AnyJson, AuditActorType, type AuditEvent, AuditEventSchema, AuditResult, type BusCommandRequest, BusCommandRequestSchema, BusErrorCode, type BusEventEnvelope, BusEventEnvelopeSchema, type BusEventRecord, BusEventRecordSchema, type BusRouteRule, BusRouteRuleSchema, BusRouteStatus, BusRouteStatusSchema, type BusRoutedCommand, BusRoutedCommandSchema, type BusRoutingRule, BusRoutingRuleSchema, type CapsuleBusExperimental, CapsuleBusExperimentalSchema, type CapsuleManifest, CapsuleManifestSchema, type CapsuleService, type CapsuleServiceDetail, CapsuleServiceDetailSchema, CapsuleServiceSchema, CapsuleServiceStatus, CapsuleServiceStatusSchema, type Command, type CommandDetail, CommandDetailSchema, type CommandResult, CommandResultSchema, CommandSchema, CommandStatus, CommandStatusSchema, type CommandType, CommandTypeSchema, type ConfigItem, type ConfigItemInput, ConfigItemInputSchema, ConfigItemSchema, type CreateActionCommandRequest, CreateActionCommandRequestSchema, type CreateBusRouteRuleRequest, CreateBusRouteRuleRequestSchema, type CreateRegistrationTokenRequest, CreateRegistrationTokenRequestSchema, type CreateRegistrationTokenResponse, CreateRegistrationTokenResponseSchema, type CreateUserRequest, DangerLevel, DangerLevelSchema, type DashboardSummary, DashboardSummarySchema, ErrorCode, type ErrorEnvelope, type EventMetadata, EventMetadataSchema, type HealthReport, type HealthReportInput, HealthReportInputSchema, HealthReportSchema, HealthStatus, HealthStatusSchema, HttpError, ListQueryBase, type Pagination, type PublishBusEventRequest, PublishBusEventRequestSchema, type PublishBusEventResponse, PublishBusEventResponseSchema, type RegisterAgentRequest, RegisterAgentRequestSchema, type RegisterAgentResponse, RegisterAgentResponseSchema, type RegistrationToken, RegistrationTokenSchema, type ReportCommandResultRequest, ReportCommandResultRequestSchema, type ReportedService, ReportedServiceSchema, type ResetUserPasswordRequest, type RuntimeKind, RuntimeKindSchema, type ServiceCapability, ServiceCapabilitySchema, ServiceKind, ServiceKindSchema, type ServiceReportRequest, ServiceReportRequestSchema, type SuccessEnvelope, type SystemHealth, SystemHealthSchema, type SystemVersion, SystemVersionSchema, TokenStatus, type UpdateUserRequest, type User, UserRole, UserSchema, actionDefinitionInputSchema, actionPrepareResultSchema, adminLoginRequestSchema, agentHeartbeatRequestSchema, busCommandRequestSchema, busEventEnvelopeSchema, busRouteRuleSchema, busRoutingRuleSchema, configItemInputSchema, createActionCommandRequestSchema, createBusRouteRuleRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, eventMetadataSchema, healthReportInputSchema, paginate, parseSort, publishBusEventRequestSchema, publishBusEventResponseSchema, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceCapabilitySchema, serviceReportRequestSchema, updateUserRequestSchema };
|