@xtrape/capsule-contracts-node 0.1.0-public-review.1 → 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 +82 -11
- package/dist/index.cjs +56 -29
- package/dist/index.d.cts +728 -56
- package/dist/index.d.ts +728 -56
- package/dist/index.js +48 -27
- package/package.json +1 -2
package/dist/index.d.cts
CHANGED
|
@@ -17,32 +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];
|
|
36
|
-
declare const idPrefixes: readonly ["wks_", "usr_", "agt_", "tok_", "svc_", "hlr_", "cfg_", "act_", "cmd_", "crs_", "aud_"];
|
|
37
|
-
type IdPrefix = typeof idPrefixes[number];
|
|
38
|
-
|
|
39
|
-
declare function newId<P extends IdPrefix>(prefix: P): `${P}${string}`;
|
|
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"]>;
|
|
40
25
|
declare const AnyJson: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
41
26
|
declare const AgentStatusSchema: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
|
|
42
27
|
declare const CapsuleServiceStatusSchema: z.ZodEnum<["UNKNOWN", "HEALTHY", "UNHEALTHY", "STALE", "OFFLINE"]>;
|
|
43
28
|
declare const HealthStatusSchema: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
44
29
|
declare const CommandStatusSchema: z.ZodEnum<["PENDING", "RUNNING", "SUCCEEDED", "FAILED", "EXPIRED", "CANCELLED"]>;
|
|
45
30
|
declare const DangerLevelSchema: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>>;
|
|
31
|
+
declare const AgentModeSchema: z.ZodEnum<["embedded", "ophub"]>;
|
|
46
32
|
declare const UserSchema: z.ZodObject<{
|
|
47
33
|
id: z.ZodString;
|
|
48
34
|
username: z.ZodString;
|
|
@@ -173,7 +159,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
173
159
|
id: z.ZodString;
|
|
174
160
|
code: z.ZodString;
|
|
175
161
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
-
mode: z.ZodEnum<["embedded", "
|
|
162
|
+
mode: z.ZodEnum<["embedded", "ophub"]>;
|
|
177
163
|
runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
164
|
status: z.ZodEnum<["PENDING", "ONLINE", "OFFLINE", "DISABLED", "REVOKED"]>;
|
|
179
165
|
lastHeartbeatAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -185,7 +171,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
185
171
|
createdAt: string;
|
|
186
172
|
updatedAt: string;
|
|
187
173
|
status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
|
|
188
|
-
mode: "embedded" | "
|
|
174
|
+
mode: "embedded" | "ophub";
|
|
189
175
|
name?: string | null | undefined;
|
|
190
176
|
runtime?: string | null | undefined;
|
|
191
177
|
lastHeartbeatAt?: string | null | undefined;
|
|
@@ -195,7 +181,7 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
195
181
|
createdAt: string;
|
|
196
182
|
updatedAt: string;
|
|
197
183
|
status: "PENDING" | "ONLINE" | "OFFLINE" | "DISABLED" | "REVOKED";
|
|
198
|
-
mode: "embedded" | "
|
|
184
|
+
mode: "embedded" | "ophub";
|
|
199
185
|
name?: string | null | undefined;
|
|
200
186
|
runtime?: string | null | undefined;
|
|
201
187
|
lastHeartbeatAt?: string | null | undefined;
|
|
@@ -272,6 +258,78 @@ declare const CreateRegistrationTokenResponseSchema: z.ZodObject<{
|
|
|
272
258
|
usedAt?: string | null | undefined;
|
|
273
259
|
}>;
|
|
274
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
|
+
}>;
|
|
275
333
|
declare const CapsuleManifestSchema: z.ZodObject<{
|
|
276
334
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
277
335
|
schemaVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -280,8 +338,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
280
338
|
description: z.ZodOptional<z.ZodString>;
|
|
281
339
|
version: z.ZodString;
|
|
282
340
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
283
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
284
|
-
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">>;
|
|
285
377
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
286
378
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
287
379
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
@@ -291,8 +383,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
291
383
|
description: z.ZodOptional<z.ZodString>;
|
|
292
384
|
version: z.ZodString;
|
|
293
385
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
294
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
295
|
-
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">>;
|
|
296
422
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
297
423
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
298
424
|
kind: z.ZodLiteral<"CapsuleService">;
|
|
@@ -302,8 +428,42 @@ declare const CapsuleManifestSchema: z.ZodObject<{
|
|
|
302
428
|
description: z.ZodOptional<z.ZodString>;
|
|
303
429
|
version: z.ZodString;
|
|
304
430
|
runtime: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
305
|
-
agentMode: z.ZodEnum<["embedded", "
|
|
306
|
-
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">>;
|
|
307
467
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
308
468
|
}, z.ZodTypeAny, "passthrough">>;
|
|
309
469
|
type CapsuleManifest = z.infer<typeof CapsuleManifestSchema>;
|
|
@@ -473,6 +633,41 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
473
633
|
version: z.ZodOptional<z.ZodString>;
|
|
474
634
|
runtime: z.ZodOptional<z.ZodString>;
|
|
475
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">>;
|
|
476
671
|
health: z.ZodOptional<z.ZodObject<{
|
|
477
672
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
478
673
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -551,6 +746,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
551
746
|
outputSchema?: Record<string, any> | undefined;
|
|
552
747
|
timeoutSeconds?: number | undefined;
|
|
553
748
|
}>, "many">>;
|
|
749
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
554
750
|
}, "strip", z.ZodTypeAny, {
|
|
555
751
|
code: string;
|
|
556
752
|
name: string;
|
|
@@ -558,6 +754,19 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
558
754
|
runtime?: string | undefined;
|
|
559
755
|
description?: string | undefined;
|
|
560
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;
|
|
561
770
|
health?: {
|
|
562
771
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
563
772
|
message?: string | undefined;
|
|
@@ -586,6 +795,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
586
795
|
outputSchema?: Record<string, any> | undefined;
|
|
587
796
|
timeoutSeconds?: number | undefined;
|
|
588
797
|
}[] | undefined;
|
|
798
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
589
799
|
}, {
|
|
590
800
|
code: string;
|
|
591
801
|
name: string;
|
|
@@ -593,6 +803,19 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
593
803
|
runtime?: string | undefined;
|
|
594
804
|
description?: string | undefined;
|
|
595
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;
|
|
596
819
|
health?: {
|
|
597
820
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
598
821
|
message?: string | undefined;
|
|
@@ -621,6 +844,7 @@ declare const ReportedServiceSchema: z.ZodObject<{
|
|
|
621
844
|
outputSchema?: Record<string, any> | undefined;
|
|
622
845
|
timeoutSeconds?: number | undefined;
|
|
623
846
|
}[] | undefined;
|
|
847
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
624
848
|
}>;
|
|
625
849
|
type ReportedService = z.infer<typeof ReportedServiceSchema>;
|
|
626
850
|
declare const reportedServiceSchema: z.ZodObject<{
|
|
@@ -630,6 +854,41 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
630
854
|
version: z.ZodOptional<z.ZodString>;
|
|
631
855
|
runtime: z.ZodOptional<z.ZodString>;
|
|
632
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">>;
|
|
633
892
|
health: z.ZodOptional<z.ZodObject<{
|
|
634
893
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
635
894
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -708,6 +967,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
708
967
|
outputSchema?: Record<string, any> | undefined;
|
|
709
968
|
timeoutSeconds?: number | undefined;
|
|
710
969
|
}>, "many">>;
|
|
970
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
711
971
|
}, "strip", z.ZodTypeAny, {
|
|
712
972
|
code: string;
|
|
713
973
|
name: string;
|
|
@@ -715,6 +975,19 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
715
975
|
runtime?: string | undefined;
|
|
716
976
|
description?: string | undefined;
|
|
717
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;
|
|
718
991
|
health?: {
|
|
719
992
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
720
993
|
message?: string | undefined;
|
|
@@ -743,6 +1016,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
743
1016
|
outputSchema?: Record<string, any> | undefined;
|
|
744
1017
|
timeoutSeconds?: number | undefined;
|
|
745
1018
|
}[] | undefined;
|
|
1019
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
746
1020
|
}, {
|
|
747
1021
|
code: string;
|
|
748
1022
|
name: string;
|
|
@@ -750,6 +1024,19 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
750
1024
|
runtime?: string | undefined;
|
|
751
1025
|
description?: string | undefined;
|
|
752
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;
|
|
753
1040
|
health?: {
|
|
754
1041
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
755
1042
|
message?: string | undefined;
|
|
@@ -778,6 +1065,7 @@ declare const reportedServiceSchema: z.ZodObject<{
|
|
|
778
1065
|
outputSchema?: Record<string, any> | undefined;
|
|
779
1066
|
timeoutSeconds?: number | undefined;
|
|
780
1067
|
}[] | undefined;
|
|
1068
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
781
1069
|
}>;
|
|
782
1070
|
declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
783
1071
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -787,6 +1075,41 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
787
1075
|
version: z.ZodOptional<z.ZodString>;
|
|
788
1076
|
runtime: z.ZodOptional<z.ZodString>;
|
|
789
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">>;
|
|
790
1113
|
health: z.ZodOptional<z.ZodObject<{
|
|
791
1114
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
792
1115
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -865,6 +1188,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
865
1188
|
outputSchema?: Record<string, any> | undefined;
|
|
866
1189
|
timeoutSeconds?: number | undefined;
|
|
867
1190
|
}>, "many">>;
|
|
1191
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
868
1192
|
}, "strip", z.ZodTypeAny, {
|
|
869
1193
|
code: string;
|
|
870
1194
|
name: string;
|
|
@@ -872,6 +1196,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
872
1196
|
runtime?: string | undefined;
|
|
873
1197
|
description?: string | undefined;
|
|
874
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;
|
|
875
1212
|
health?: {
|
|
876
1213
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
877
1214
|
message?: string | undefined;
|
|
@@ -900,6 +1237,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
900
1237
|
outputSchema?: Record<string, any> | undefined;
|
|
901
1238
|
timeoutSeconds?: number | undefined;
|
|
902
1239
|
}[] | undefined;
|
|
1240
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
903
1241
|
}, {
|
|
904
1242
|
code: string;
|
|
905
1243
|
name: string;
|
|
@@ -907,6 +1245,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
907
1245
|
runtime?: string | undefined;
|
|
908
1246
|
description?: string | undefined;
|
|
909
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;
|
|
910
1261
|
health?: {
|
|
911
1262
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
912
1263
|
message?: string | undefined;
|
|
@@ -935,6 +1286,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
935
1286
|
outputSchema?: Record<string, any> | undefined;
|
|
936
1287
|
timeoutSeconds?: number | undefined;
|
|
937
1288
|
}[] | undefined;
|
|
1289
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
938
1290
|
}>, "many">;
|
|
939
1291
|
}, "strip", z.ZodTypeAny, {
|
|
940
1292
|
services: {
|
|
@@ -944,6 +1296,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
944
1296
|
runtime?: string | undefined;
|
|
945
1297
|
description?: string | undefined;
|
|
946
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;
|
|
947
1312
|
health?: {
|
|
948
1313
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
949
1314
|
message?: string | undefined;
|
|
@@ -972,6 +1337,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
972
1337
|
outputSchema?: Record<string, any> | undefined;
|
|
973
1338
|
timeoutSeconds?: number | undefined;
|
|
974
1339
|
}[] | undefined;
|
|
1340
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
975
1341
|
}[];
|
|
976
1342
|
}, {
|
|
977
1343
|
services: {
|
|
@@ -981,6 +1347,19 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
981
1347
|
runtime?: string | undefined;
|
|
982
1348
|
description?: string | undefined;
|
|
983
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;
|
|
984
1363
|
health?: {
|
|
985
1364
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
986
1365
|
message?: string | undefined;
|
|
@@ -1009,6 +1388,7 @@ declare const ServiceReportRequestSchema: z.ZodObject<{
|
|
|
1009
1388
|
outputSchema?: Record<string, any> | undefined;
|
|
1010
1389
|
timeoutSeconds?: number | undefined;
|
|
1011
1390
|
}[] | undefined;
|
|
1391
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1012
1392
|
}[];
|
|
1013
1393
|
}>;
|
|
1014
1394
|
type ServiceReportRequest = z.infer<typeof ServiceReportRequestSchema>;
|
|
@@ -1020,6 +1400,41 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1020
1400
|
version: z.ZodOptional<z.ZodString>;
|
|
1021
1401
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1022
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">>;
|
|
1023
1438
|
health: z.ZodOptional<z.ZodObject<{
|
|
1024
1439
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1025
1440
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1098,6 +1513,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1098
1513
|
outputSchema?: Record<string, any> | undefined;
|
|
1099
1514
|
timeoutSeconds?: number | undefined;
|
|
1100
1515
|
}>, "many">>;
|
|
1516
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1101
1517
|
}, "strip", z.ZodTypeAny, {
|
|
1102
1518
|
code: string;
|
|
1103
1519
|
name: string;
|
|
@@ -1105,6 +1521,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1105
1521
|
runtime?: string | undefined;
|
|
1106
1522
|
description?: string | undefined;
|
|
1107
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;
|
|
1108
1537
|
health?: {
|
|
1109
1538
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1110
1539
|
message?: string | undefined;
|
|
@@ -1133,6 +1562,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1133
1562
|
outputSchema?: Record<string, any> | undefined;
|
|
1134
1563
|
timeoutSeconds?: number | undefined;
|
|
1135
1564
|
}[] | undefined;
|
|
1565
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1136
1566
|
}, {
|
|
1137
1567
|
code: string;
|
|
1138
1568
|
name: string;
|
|
@@ -1140,6 +1570,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1140
1570
|
runtime?: string | undefined;
|
|
1141
1571
|
description?: string | undefined;
|
|
1142
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;
|
|
1143
1586
|
health?: {
|
|
1144
1587
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1145
1588
|
message?: string | undefined;
|
|
@@ -1168,6 +1611,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1168
1611
|
outputSchema?: Record<string, any> | undefined;
|
|
1169
1612
|
timeoutSeconds?: number | undefined;
|
|
1170
1613
|
}[] | undefined;
|
|
1614
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1171
1615
|
}>, "many">;
|
|
1172
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1173
1617
|
services: {
|
|
@@ -1177,6 +1621,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1177
1621
|
runtime?: string | undefined;
|
|
1178
1622
|
description?: string | undefined;
|
|
1179
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;
|
|
1180
1637
|
health?: {
|
|
1181
1638
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1182
1639
|
message?: string | undefined;
|
|
@@ -1205,6 +1662,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1205
1662
|
outputSchema?: Record<string, any> | undefined;
|
|
1206
1663
|
timeoutSeconds?: number | undefined;
|
|
1207
1664
|
}[] | undefined;
|
|
1665
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1208
1666
|
}[];
|
|
1209
1667
|
}, {
|
|
1210
1668
|
services: {
|
|
@@ -1214,6 +1672,19 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1214
1672
|
runtime?: string | undefined;
|
|
1215
1673
|
description?: string | undefined;
|
|
1216
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;
|
|
1217
1688
|
health?: {
|
|
1218
1689
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1219
1690
|
message?: string | undefined;
|
|
@@ -1242,6 +1713,7 @@ declare const serviceReportRequestSchema: z.ZodObject<{
|
|
|
1242
1713
|
outputSchema?: Record<string, any> | undefined;
|
|
1243
1714
|
timeoutSeconds?: number | undefined;
|
|
1244
1715
|
}[] | undefined;
|
|
1716
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1245
1717
|
}[];
|
|
1246
1718
|
}>;
|
|
1247
1719
|
declare const RuntimeKindSchema: z.ZodEnum<["nodejs", "java", "python", "go", "other"]>;
|
|
@@ -1251,18 +1723,18 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1251
1723
|
agent: z.ZodObject<{
|
|
1252
1724
|
code: z.ZodString;
|
|
1253
1725
|
name: z.ZodOptional<z.ZodString>;
|
|
1254
|
-
mode: z.
|
|
1255
|
-
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]>>;
|
|
1256
1728
|
}, "strip", z.ZodTypeAny, {
|
|
1257
1729
|
code: string;
|
|
1258
|
-
mode: "embedded";
|
|
1730
|
+
mode: "embedded" | "ophub";
|
|
1259
1731
|
name?: string | undefined;
|
|
1260
|
-
runtime?:
|
|
1732
|
+
runtime?: string | undefined;
|
|
1261
1733
|
}, {
|
|
1262
1734
|
code: string;
|
|
1263
|
-
mode: "embedded";
|
|
1264
1735
|
name?: string | undefined;
|
|
1265
|
-
|
|
1736
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
1737
|
+
runtime?: string | undefined;
|
|
1266
1738
|
}>;
|
|
1267
1739
|
service: z.ZodOptional<z.ZodObject<{
|
|
1268
1740
|
code: z.ZodString;
|
|
@@ -1271,6 +1743,41 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1271
1743
|
version: z.ZodOptional<z.ZodString>;
|
|
1272
1744
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1273
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">>;
|
|
1274
1781
|
health: z.ZodOptional<z.ZodObject<{
|
|
1275
1782
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1276
1783
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1349,6 +1856,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1349
1856
|
outputSchema?: Record<string, any> | undefined;
|
|
1350
1857
|
timeoutSeconds?: number | undefined;
|
|
1351
1858
|
}>, "many">>;
|
|
1859
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1352
1860
|
}, "strip", z.ZodTypeAny, {
|
|
1353
1861
|
code: string;
|
|
1354
1862
|
name: string;
|
|
@@ -1356,6 +1864,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1356
1864
|
runtime?: string | undefined;
|
|
1357
1865
|
description?: string | undefined;
|
|
1358
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;
|
|
1359
1880
|
health?: {
|
|
1360
1881
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1361
1882
|
message?: string | undefined;
|
|
@@ -1384,6 +1905,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1384
1905
|
outputSchema?: Record<string, any> | undefined;
|
|
1385
1906
|
timeoutSeconds?: number | undefined;
|
|
1386
1907
|
}[] | undefined;
|
|
1908
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1387
1909
|
}, {
|
|
1388
1910
|
code: string;
|
|
1389
1911
|
name: string;
|
|
@@ -1391,6 +1913,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1391
1913
|
runtime?: string | undefined;
|
|
1392
1914
|
description?: string | undefined;
|
|
1393
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;
|
|
1394
1929
|
health?: {
|
|
1395
1930
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1396
1931
|
message?: string | undefined;
|
|
@@ -1419,14 +1954,15 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1419
1954
|
outputSchema?: Record<string, any> | undefined;
|
|
1420
1955
|
timeoutSeconds?: number | undefined;
|
|
1421
1956
|
}[] | undefined;
|
|
1957
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1422
1958
|
}>>;
|
|
1423
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1424
1960
|
registrationToken: string;
|
|
1425
1961
|
agent: {
|
|
1426
1962
|
code: string;
|
|
1427
|
-
mode: "embedded";
|
|
1963
|
+
mode: "embedded" | "ophub";
|
|
1428
1964
|
name?: string | undefined;
|
|
1429
|
-
runtime?:
|
|
1965
|
+
runtime?: string | undefined;
|
|
1430
1966
|
};
|
|
1431
1967
|
service?: {
|
|
1432
1968
|
code: string;
|
|
@@ -1435,6 +1971,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1435
1971
|
runtime?: string | undefined;
|
|
1436
1972
|
description?: string | undefined;
|
|
1437
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;
|
|
1438
1987
|
health?: {
|
|
1439
1988
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1440
1989
|
message?: string | undefined;
|
|
@@ -1463,14 +2012,15 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1463
2012
|
outputSchema?: Record<string, any> | undefined;
|
|
1464
2013
|
timeoutSeconds?: number | undefined;
|
|
1465
2014
|
}[] | undefined;
|
|
2015
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1466
2016
|
} | undefined;
|
|
1467
2017
|
}, {
|
|
1468
2018
|
registrationToken: string;
|
|
1469
2019
|
agent: {
|
|
1470
2020
|
code: string;
|
|
1471
|
-
mode: "embedded";
|
|
1472
2021
|
name?: string | undefined;
|
|
1473
|
-
|
|
2022
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2023
|
+
runtime?: string | undefined;
|
|
1474
2024
|
};
|
|
1475
2025
|
service?: {
|
|
1476
2026
|
code: string;
|
|
@@ -1479,6 +2029,19 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1479
2029
|
runtime?: string | undefined;
|
|
1480
2030
|
description?: string | undefined;
|
|
1481
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;
|
|
1482
2045
|
health?: {
|
|
1483
2046
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1484
2047
|
message?: string | undefined;
|
|
@@ -1507,6 +2070,7 @@ declare const RegisterAgentRequestSchema: z.ZodObject<{
|
|
|
1507
2070
|
outputSchema?: Record<string, any> | undefined;
|
|
1508
2071
|
timeoutSeconds?: number | undefined;
|
|
1509
2072
|
}[] | undefined;
|
|
2073
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1510
2074
|
} | undefined;
|
|
1511
2075
|
}>;
|
|
1512
2076
|
type RegisterAgentRequest = z.infer<typeof RegisterAgentRequestSchema>;
|
|
@@ -1515,18 +2079,18 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1515
2079
|
agent: z.ZodObject<{
|
|
1516
2080
|
code: z.ZodString;
|
|
1517
2081
|
name: z.ZodOptional<z.ZodString>;
|
|
1518
|
-
mode: z.
|
|
1519
|
-
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]>>;
|
|
1520
2084
|
}, "strip", z.ZodTypeAny, {
|
|
1521
2085
|
code: string;
|
|
1522
|
-
mode: "embedded";
|
|
2086
|
+
mode: "embedded" | "ophub";
|
|
1523
2087
|
name?: string | undefined;
|
|
1524
|
-
runtime?:
|
|
2088
|
+
runtime?: string | undefined;
|
|
1525
2089
|
}, {
|
|
1526
2090
|
code: string;
|
|
1527
|
-
mode: "embedded";
|
|
1528
2091
|
name?: string | undefined;
|
|
1529
|
-
|
|
2092
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2093
|
+
runtime?: string | undefined;
|
|
1530
2094
|
}>;
|
|
1531
2095
|
service: z.ZodOptional<z.ZodObject<{
|
|
1532
2096
|
code: z.ZodString;
|
|
@@ -1535,6 +2099,41 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1535
2099
|
version: z.ZodOptional<z.ZodString>;
|
|
1536
2100
|
runtime: z.ZodOptional<z.ZodString>;
|
|
1537
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">>;
|
|
1538
2137
|
health: z.ZodOptional<z.ZodObject<{
|
|
1539
2138
|
status: z.ZodEnum<["UP", "DEGRADED", "DOWN", "UNKNOWN"]>;
|
|
1540
2139
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1613,6 +2212,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1613
2212
|
outputSchema?: Record<string, any> | undefined;
|
|
1614
2213
|
timeoutSeconds?: number | undefined;
|
|
1615
2214
|
}>, "many">>;
|
|
2215
|
+
serviceKind: z.ZodOptional<z.ZodEnum<["business", "infrastructure", "system"]>>;
|
|
1616
2216
|
}, "strip", z.ZodTypeAny, {
|
|
1617
2217
|
code: string;
|
|
1618
2218
|
name: string;
|
|
@@ -1620,6 +2220,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1620
2220
|
runtime?: string | undefined;
|
|
1621
2221
|
description?: string | undefined;
|
|
1622
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;
|
|
1623
2236
|
health?: {
|
|
1624
2237
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1625
2238
|
message?: string | undefined;
|
|
@@ -1648,6 +2261,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1648
2261
|
outputSchema?: Record<string, any> | undefined;
|
|
1649
2262
|
timeoutSeconds?: number | undefined;
|
|
1650
2263
|
}[] | undefined;
|
|
2264
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1651
2265
|
}, {
|
|
1652
2266
|
code: string;
|
|
1653
2267
|
name: string;
|
|
@@ -1655,6 +2269,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1655
2269
|
runtime?: string | undefined;
|
|
1656
2270
|
description?: string | undefined;
|
|
1657
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;
|
|
1658
2285
|
health?: {
|
|
1659
2286
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1660
2287
|
message?: string | undefined;
|
|
@@ -1683,14 +2310,15 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1683
2310
|
outputSchema?: Record<string, any> | undefined;
|
|
1684
2311
|
timeoutSeconds?: number | undefined;
|
|
1685
2312
|
}[] | undefined;
|
|
2313
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1686
2314
|
}>>;
|
|
1687
2315
|
}, "strip", z.ZodTypeAny, {
|
|
1688
2316
|
registrationToken: string;
|
|
1689
2317
|
agent: {
|
|
1690
2318
|
code: string;
|
|
1691
|
-
mode: "embedded";
|
|
2319
|
+
mode: "embedded" | "ophub";
|
|
1692
2320
|
name?: string | undefined;
|
|
1693
|
-
runtime?:
|
|
2321
|
+
runtime?: string | undefined;
|
|
1694
2322
|
};
|
|
1695
2323
|
service?: {
|
|
1696
2324
|
code: string;
|
|
@@ -1699,6 +2327,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1699
2327
|
runtime?: string | undefined;
|
|
1700
2328
|
description?: string | undefined;
|
|
1701
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;
|
|
1702
2343
|
health?: {
|
|
1703
2344
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1704
2345
|
message?: string | undefined;
|
|
@@ -1727,14 +2368,15 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1727
2368
|
outputSchema?: Record<string, any> | undefined;
|
|
1728
2369
|
timeoutSeconds?: number | undefined;
|
|
1729
2370
|
}[] | undefined;
|
|
2371
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1730
2372
|
} | undefined;
|
|
1731
2373
|
}, {
|
|
1732
2374
|
registrationToken: string;
|
|
1733
2375
|
agent: {
|
|
1734
2376
|
code: string;
|
|
1735
|
-
mode: "embedded";
|
|
1736
2377
|
name?: string | undefined;
|
|
1737
|
-
|
|
2378
|
+
mode?: "embedded" | "ophub" | undefined;
|
|
2379
|
+
runtime?: string | undefined;
|
|
1738
2380
|
};
|
|
1739
2381
|
service?: {
|
|
1740
2382
|
code: string;
|
|
@@ -1743,6 +2385,19 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1743
2385
|
runtime?: string | undefined;
|
|
1744
2386
|
description?: string | undefined;
|
|
1745
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;
|
|
1746
2401
|
health?: {
|
|
1747
2402
|
status: "UNKNOWN" | "UP" | "DEGRADED" | "DOWN";
|
|
1748
2403
|
message?: string | undefined;
|
|
@@ -1771,6 +2426,7 @@ declare const registerAgentRequestSchema: z.ZodObject<{
|
|
|
1771
2426
|
outputSchema?: Record<string, any> | undefined;
|
|
1772
2427
|
timeoutSeconds?: number | undefined;
|
|
1773
2428
|
}[] | undefined;
|
|
2429
|
+
serviceKind?: "business" | "infrastructure" | "system" | undefined;
|
|
1774
2430
|
} | undefined;
|
|
1775
2431
|
}>;
|
|
1776
2432
|
declare const RegisterAgentResponseSchema: z.ZodObject<{
|
|
@@ -2510,10 +3166,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2510
3166
|
result: "SUCCESS" | "FAILURE";
|
|
2511
3167
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2512
3168
|
message?: string | null | undefined;
|
|
3169
|
+
metadata?: Record<string, any> | undefined;
|
|
2513
3170
|
actorId?: string | null | undefined;
|
|
2514
3171
|
targetType?: string | null | undefined;
|
|
2515
3172
|
targetId?: string | null | undefined;
|
|
2516
|
-
metadata?: Record<string, any> | undefined;
|
|
2517
3173
|
}, {
|
|
2518
3174
|
id: string;
|
|
2519
3175
|
createdAt: string;
|
|
@@ -2521,10 +3177,10 @@ declare const AuditEventSchema: z.ZodObject<{
|
|
|
2521
3177
|
result: "SUCCESS" | "FAILURE";
|
|
2522
3178
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2523
3179
|
message?: string | null | undefined;
|
|
3180
|
+
metadata?: Record<string, any> | undefined;
|
|
2524
3181
|
actorId?: string | null | undefined;
|
|
2525
3182
|
targetType?: string | null | undefined;
|
|
2526
3183
|
targetId?: string | null | undefined;
|
|
2527
|
-
metadata?: Record<string, any> | undefined;
|
|
2528
3184
|
}>;
|
|
2529
3185
|
type AuditEvent = z.infer<typeof AuditEventSchema>;
|
|
2530
3186
|
declare const DashboardSummarySchema: z.ZodObject<{
|
|
@@ -2589,10 +3245,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2589
3245
|
result: "SUCCESS" | "FAILURE";
|
|
2590
3246
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2591
3247
|
message?: string | null | undefined;
|
|
3248
|
+
metadata?: Record<string, any> | undefined;
|
|
2592
3249
|
actorId?: string | null | undefined;
|
|
2593
3250
|
targetType?: string | null | undefined;
|
|
2594
3251
|
targetId?: string | null | undefined;
|
|
2595
|
-
metadata?: Record<string, any> | undefined;
|
|
2596
3252
|
}, {
|
|
2597
3253
|
id: string;
|
|
2598
3254
|
createdAt: string;
|
|
@@ -2600,10 +3256,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2600
3256
|
result: "SUCCESS" | "FAILURE";
|
|
2601
3257
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2602
3258
|
message?: string | null | undefined;
|
|
3259
|
+
metadata?: Record<string, any> | undefined;
|
|
2603
3260
|
actorId?: string | null | undefined;
|
|
2604
3261
|
targetType?: string | null | undefined;
|
|
2605
3262
|
targetId?: string | null | undefined;
|
|
2606
|
-
metadata?: Record<string, any> | undefined;
|
|
2607
3263
|
}>, "many">>;
|
|
2608
3264
|
}, "strip", z.ZodTypeAny, {
|
|
2609
3265
|
agentCounts: Record<string, number>;
|
|
@@ -2630,10 +3286,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2630
3286
|
result: "SUCCESS" | "FAILURE";
|
|
2631
3287
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2632
3288
|
message?: string | null | undefined;
|
|
3289
|
+
metadata?: Record<string, any> | undefined;
|
|
2633
3290
|
actorId?: string | null | undefined;
|
|
2634
3291
|
targetType?: string | null | undefined;
|
|
2635
3292
|
targetId?: string | null | undefined;
|
|
2636
|
-
metadata?: Record<string, any> | undefined;
|
|
2637
3293
|
}[] | undefined;
|
|
2638
3294
|
}, {
|
|
2639
3295
|
agentCounts: Record<string, number>;
|
|
@@ -2660,10 +3316,10 @@ declare const DashboardSummarySchema: z.ZodObject<{
|
|
|
2660
3316
|
result: "SUCCESS" | "FAILURE";
|
|
2661
3317
|
actorType: "USER" | "AGENT" | "SYSTEM";
|
|
2662
3318
|
message?: string | null | undefined;
|
|
3319
|
+
metadata?: Record<string, any> | undefined;
|
|
2663
3320
|
actorId?: string | null | undefined;
|
|
2664
3321
|
targetType?: string | null | undefined;
|
|
2665
3322
|
targetId?: string | null | undefined;
|
|
2666
|
-
metadata?: Record<string, any> | undefined;
|
|
2667
3323
|
}[] | undefined;
|
|
2668
3324
|
}>;
|
|
2669
3325
|
type DashboardSummary = z.infer<typeof DashboardSummarySchema>;
|
|
@@ -2780,5 +3436,21 @@ declare function paginate<T>(items: T[], page: number, pageSize: number, total:
|
|
|
2780
3436
|
total: number;
|
|
2781
3437
|
};
|
|
2782
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];
|
|
2783
3455
|
|
|
2784
|
-
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,
|
|
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 };
|