@camstack/core 0.1.41 → 0.1.42
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/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { promisify } from "node:util";
|
|
|
31
31
|
import { errMsg, parseJsonObject } from "@camstack/types";
|
|
32
32
|
import * as vm from "node:vm";
|
|
33
33
|
import * as os from "node:os";
|
|
34
|
-
//#region ../types/dist/index-
|
|
34
|
+
//#region ../types/dist/index-QRlzao1I.mjs
|
|
35
35
|
var MODEL_FORMATS = [
|
|
36
36
|
"onnx",
|
|
37
37
|
"coreml",
|
|
@@ -5486,6 +5486,18 @@ var TopologyProcessSchema = z.object({
|
|
|
5486
5486
|
services: z.array(TopologyServiceSchema).readonly(),
|
|
5487
5487
|
groupId: z.string().optional()
|
|
5488
5488
|
});
|
|
5489
|
+
var TopologyCategoryAddonSchema = z.object({
|
|
5490
|
+
id: z.string(),
|
|
5491
|
+
status: z.string(),
|
|
5492
|
+
cpuPercent: z.number(),
|
|
5493
|
+
memoryRss: z.number()
|
|
5494
|
+
});
|
|
5495
|
+
var TopologyCategorySchema = z.object({
|
|
5496
|
+
category: z.string(),
|
|
5497
|
+
total: z.number(),
|
|
5498
|
+
healthy: z.number(),
|
|
5499
|
+
addons: z.array(TopologyCategoryAddonSchema).readonly()
|
|
5500
|
+
});
|
|
5489
5501
|
var TopologyNodeSchema = z.object({
|
|
5490
5502
|
id: z.string(),
|
|
5491
5503
|
name: z.string(),
|
|
@@ -5508,7 +5520,15 @@ var TopologyNodeSchema = z.object({
|
|
|
5508
5520
|
capabilities: z.array(z.string()).readonly(),
|
|
5509
5521
|
status: z.string()
|
|
5510
5522
|
})).readonly(),
|
|
5511
|
-
processes: z.array(TopologyProcessSchema).readonly()
|
|
5523
|
+
processes: z.array(TopologyProcessSchema).readonly(),
|
|
5524
|
+
categories: z.array(TopologyCategorySchema).readonly()
|
|
5525
|
+
});
|
|
5526
|
+
var CapUsageEdgeSchema = z.object({
|
|
5527
|
+
callerAddonId: z.string(),
|
|
5528
|
+
providerAddonId: z.string(),
|
|
5529
|
+
capName: z.string(),
|
|
5530
|
+
callsPerMin: z.number(),
|
|
5531
|
+
lastCallAtMs: z.number()
|
|
5512
5532
|
});
|
|
5513
5533
|
var ClusterAddonNodeDeploymentSchema = z.object({
|
|
5514
5534
|
nodeId: z.string(),
|
|
@@ -5571,13 +5591,7 @@ method(z.void(), z.array(TopologyNodeSchema).readonly(), { auth: "admin" }), met
|
|
|
5571
5591
|
}), RenameNodeResultSchema, {
|
|
5572
5592
|
kind: "mutation",
|
|
5573
5593
|
auth: "admin"
|
|
5574
|
-
}), method(z.void(), z.record(z.string(), ClusterAddonStatusEntrySchema), { auth: "admin" }), method(z.object({ windowSeconds: z.number().int().positive().max(300).default(60) }), z.array(z.object({
|
|
5575
|
-
callerAddonId: z.string(),
|
|
5576
|
-
providerAddonId: z.string(),
|
|
5577
|
-
capName: z.string(),
|
|
5578
|
-
callsPerMin: z.number(),
|
|
5579
|
-
lastCallAtMs: z.number()
|
|
5580
|
-
})).readonly(), { auth: "admin" }), method(z.object({ nodeId: z.string() }), z.array(NodeAddonEntrySchema).readonly(), { auth: "admin" }), method(z.object({
|
|
5594
|
+
}), method(z.void(), z.record(z.string(), ClusterAddonStatusEntrySchema), { auth: "admin" }), method(z.object({ windowSeconds: z.number().int().positive().max(300).default(60) }), z.array(CapUsageEdgeSchema).readonly(), { auth: "admin" }), method(z.object({ nodeId: z.string() }), z.array(NodeAddonEntrySchema).readonly(), { auth: "admin" }), method(z.object({
|
|
5581
5595
|
nodeId: z.string(),
|
|
5582
5596
|
level: z.string()
|
|
5583
5597
|
}), SuccessSchema, {
|