@xtrape/capsule-contracts-node 0.2.0 → 0.3.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 +48 -2
- package/dist/index.cjs +56 -19
- package/dist/index.d.cts +728 -52
- package/dist/index.d.ts +728 -52
- package/dist/index.js +48 -19
- package/package.json +10 -9
package/dist/index.d.cts
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,6 +1400,41 @@ 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>;
|
|
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">>;
|
|
1019
1438
|
health: z.ZodOptional<z.ZodObject<{
|
|
1020
1439
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1021
1440
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -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<{
|
|
@@ -2506,10 +3166,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2506
3166
|
result: "SUCCESS" | "FAILURE";
|
|
2507
3167
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2508
3168
|
message?: string | null | undefined;
|
|
3169
|
+
metadata?: Record<string, any> | undefined;
|
|
2509
3170
|
actorId?: string | null | undefined;
|
|
2510
3171
|
targetType?: string | null | undefined;
|
|
2511
3172
|
targetId?: string | null | undefined;
|
|
2512
|
-
metadata?: Record<string, any> | undefined;
|
|
2513
3173
|
}, {
|
|
2514
3174
|
id: string;
|
|
2515
3175
|
createdAt: string;
|
|
@@ -2517,10 +3177,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2517
3177
|
result: "SUCCESS" | "FAILURE";
|
|
2518
3178
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2519
3179
|
message?: string | null | undefined;
|
|
3180
|
+
metadata?: Record<string, any> | undefined;
|
|
2520
3181
|
actorId?: string | null | undefined;
|
|
2521
3182
|
targetType?: string | null | undefined;
|
|
2522
3183
|
targetId?: string | null | undefined;
|
|
2523
|
-
metadata?: Record<string, any> | undefined;
|
|
2524
3184
|
}>;
|
|
2525
3185
|
type AuditEvent = z.infer<typeof AuditEventSchema>;
|
|
2526
3186
|
declare const DashboardSummarySchema: z.ZodObject<{
|
|
@@ -2585,10 +3245,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2585
3245
|
result: "SUCCESS" | "FAILURE";
|
|
2586
3246
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2587
3247
|
message?: string | null | undefined;
|
|
3248
|
+
metadata?: Record<string, any> | undefined;
|
|
2588
3249
|
actorId?: string | null | undefined;
|
|
2589
3250
|
targetType?: string | null | undefined;
|
|
2590
3251
|
targetId?: string | null | undefined;
|
|
2591
|
-
metadata?: Record<string, any> | undefined;
|
|
2592
3252
|
}, {
|
|
2593
3253
|
id: string;
|
|
2594
3254
|
createdAt: string;
|
|
@@ -2596,10 +3256,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2596
3256
|
result: "SUCCESS" | "FAILURE";
|
|
2597
3257
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2598
3258
|
message?: string | null | undefined;
|
|
3259
|
+
metadata?: Record<string, any> | undefined;
|
|
2599
3260
|
actorId?: string | null | undefined;
|
|
2600
3261
|
targetType?: string | null | undefined;
|
|
2601
3262
|
targetId?: string | null | undefined;
|
|
2602
|
-
metadata?: Record<string, any> | undefined;
|
|
2603
3263
|
}>, "many">>;
|
|
2604
3264
|
}, "strip", z.ZodTypeAny, {
|
|
2605
3265
|
agentCounts: Record<string, number>;
|
|
@@ -2626,10 +3286,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2626
3286
|
result: "SUCCESS" | "FAILURE";
|
|
2627
3287
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2628
3288
|
message?: string | null | undefined;
|
|
3289
|
+
metadata?: Record<string, any> | undefined;
|
|
2629
3290
|
actorId?: string | null | undefined;
|
|
2630
3291
|
targetType?: string | null | undefined;
|
|
2631
3292
|
targetId?: string | null | undefined;
|
|
2632
|
-
metadata?: Record<string, any> | undefined;
|
|
2633
3293
|
}[] | undefined;
|
|
2634
3294
|
}, {
|
|
2635
3295
|
agentCounts: Record<string, number>;
|
|
@@ -2656,10 +3316,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2656
3316
|
result: "SUCCESS" | "FAILURE";
|
|
2657
3317
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2658
3318
|
message?: string | null | undefined;
|
|
3319
|
+
metadata?: Record<string, any> | undefined;
|
|
2659
3320
|
actorId?: string | null | undefined;
|
|
2660
3321
|
targetType?: string | null | undefined;
|
|
2661
3322
|
targetId?: string | null | undefined;
|
|
2662
|
-
metadata?: Record<string, any> | undefined;
|
|
2663
3323
|
}[] | undefined;
|
|
2664
3324
|
}>;
|
|
2665
3325
|
type DashboardSummary = z.infer<typeof DashboardSummarySchema>;
|
|
@@ -2776,5 +3436,21 @@ declare function paginate<T>(items: T[], page: number, pageSize: number, total:
|
|
|
2776
3436
|
total: number;
|
|
2777
3437
|
};
|
|
2778
3438
|
};
|
|
3439
|
+
declare const ErrorCode: {
|
|
3440
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
3441
|
+
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
3442
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
3443
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
3444
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
3445
|
+
readonly CONFLICT: "CONFLICT";
|
|
3446
|
+
readonly CSRF_INVALID: "CSRF_INVALID";
|
|
3447
|
+
readonly ACTION_REQUIRES_CONFIRMATION: "ACTION_REQUIRES_CONFIRMATION";
|
|
3448
|
+
readonly COMMAND_EXPIRED: "COMMAND_EXPIRED";
|
|
3449
|
+
readonly TOKEN_REVOKED: "TOKEN_REVOKED";
|
|
3450
|
+
readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
|
|
3451
|
+
readonly AGENT_REVOKED: "AGENT_REVOKED";
|
|
3452
|
+
readonly AGENT_DISABLED: "AGENT_DISABLED";
|
|
3453
|
+
};
|
|
3454
|
+
type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
2779
3455
|
|
|
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 };
|
|
3456
|
+
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 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 EventMetadata, EventMetadataSchema, 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 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, configItemInputSchema, createActionCommandRequestSchema, createRegistrationTokenRequestSchema, createUserRequestSchema, eventMetadataSchema, healthReportInputSchema, paginate, parseSort, registerAgentRequestSchema, reportCommandResultRequestSchema, reportedServiceSchema, resetUserPasswordRequestSchema, serviceCapabilitySchema, serviceReportRequestSchema, updateUserRequestSchema };
|