@camstack/types 1.2.333 → 1.2.335
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/capabilities/nodes.cap.d.ts +8 -0
- package/dist/client.js +27 -1
- package/dist/client.mjs +27 -1
- package/dist/generated/addon-api.d.ts +30 -0
- package/dist/index.js +27 -1
- package/dist/index.mjs +27 -1
- package/dist/interfaces/event-bus.d.ts +13 -0
- package/package.json +1 -1
|
@@ -93,6 +93,10 @@ declare const TopologyNodeSchema: z.ZodObject<{
|
|
|
93
93
|
name: z.ZodString;
|
|
94
94
|
version: z.ZodString;
|
|
95
95
|
}, z.core.$strip>>;
|
|
96
|
+
meshTransport: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
clear: "clear";
|
|
98
|
+
tls: "tls";
|
|
99
|
+
}>>;
|
|
96
100
|
}, z.core.$strip>;
|
|
97
101
|
declare const ClusterAddonNodeDeploymentSchema: z.ZodObject<{
|
|
98
102
|
nodeId: z.ZodString;
|
|
@@ -222,6 +226,10 @@ export declare const nodesCapability: {
|
|
|
222
226
|
name: z.ZodString;
|
|
223
227
|
version: z.ZodString;
|
|
224
228
|
}, z.core.$strip>>;
|
|
229
|
+
meshTransport: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
clear: "clear";
|
|
231
|
+
tls: "tls";
|
|
232
|
+
}>>;
|
|
225
233
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
226
234
|
/**
|
|
227
235
|
* The cheap node list for pickers (D637): the hub's in-memory registry plus
|
package/dist/client.js
CHANGED
|
@@ -4723,7 +4723,13 @@ var TopologyNodeSchema = zod.z.object({
|
|
|
4723
4723
|
})).readonly(),
|
|
4724
4724
|
processes: zod.z.array(TopologyProcessSchema).readonly(),
|
|
4725
4725
|
categories: zod.z.array(TopologyCategorySchema).readonly(),
|
|
4726
|
-
rootPackage: TopologyRootPackageSchema.nullable()
|
|
4726
|
+
rootPackage: TopologyRootPackageSchema.nullable(),
|
|
4727
|
+
/**
|
|
4728
|
+
* How an online AGENT reaches the hub (mesh mTLS Release A): `tls` once it has
|
|
4729
|
+
* completed a mutual-TLS handshake, `clear` otherwise. Absent for the hub,
|
|
4730
|
+
* for offline rows and when the hub cannot tell.
|
|
4731
|
+
*/
|
|
4732
|
+
meshTransport: zod.z.enum(["tls", "clear"]).optional()
|
|
4727
4733
|
});
|
|
4728
4734
|
var CapUsageEdgeSchema = zod.z.object({
|
|
4729
4735
|
callerAddonId: zod.z.string(),
|
|
@@ -9475,6 +9481,26 @@ var NC_TEMPLATE_VARS = [
|
|
|
9475
9481
|
"server-updated"
|
|
9476
9482
|
]
|
|
9477
9483
|
},
|
|
9484
|
+
{
|
|
9485
|
+
name: "nodeName",
|
|
9486
|
+
label: "Node name",
|
|
9487
|
+
example: "little-unraid",
|
|
9488
|
+
group: "system",
|
|
9489
|
+
families: ["rule"],
|
|
9490
|
+
fields: [...RULE_TEXT],
|
|
9491
|
+
kinds: ["system"],
|
|
9492
|
+
systemEventKinds: ["node-online", "node-offline"]
|
|
9493
|
+
},
|
|
9494
|
+
{
|
|
9495
|
+
name: "offlineFor",
|
|
9496
|
+
label: "Offline for",
|
|
9497
|
+
example: "44 min",
|
|
9498
|
+
group: "system",
|
|
9499
|
+
families: ["rule"],
|
|
9500
|
+
fields: [...RULE_TEXT],
|
|
9501
|
+
kinds: ["system"],
|
|
9502
|
+
systemEventKinds: ["node-online"]
|
|
9503
|
+
},
|
|
9478
9504
|
{
|
|
9479
9505
|
name: "devices",
|
|
9480
9506
|
label: "Devices",
|
package/dist/client.mjs
CHANGED
|
@@ -4722,7 +4722,13 @@ var TopologyNodeSchema = z.object({
|
|
|
4722
4722
|
})).readonly(),
|
|
4723
4723
|
processes: z.array(TopologyProcessSchema).readonly(),
|
|
4724
4724
|
categories: z.array(TopologyCategorySchema).readonly(),
|
|
4725
|
-
rootPackage: TopologyRootPackageSchema.nullable()
|
|
4725
|
+
rootPackage: TopologyRootPackageSchema.nullable(),
|
|
4726
|
+
/**
|
|
4727
|
+
* How an online AGENT reaches the hub (mesh mTLS Release A): `tls` once it has
|
|
4728
|
+
* completed a mutual-TLS handshake, `clear` otherwise. Absent for the hub,
|
|
4729
|
+
* for offline rows and when the hub cannot tell.
|
|
4730
|
+
*/
|
|
4731
|
+
meshTransport: z.enum(["tls", "clear"]).optional()
|
|
4726
4732
|
});
|
|
4727
4733
|
var CapUsageEdgeSchema = z.object({
|
|
4728
4734
|
callerAddonId: z.string(),
|
|
@@ -9474,6 +9480,26 @@ var NC_TEMPLATE_VARS = [
|
|
|
9474
9480
|
"server-updated"
|
|
9475
9481
|
]
|
|
9476
9482
|
},
|
|
9483
|
+
{
|
|
9484
|
+
name: "nodeName",
|
|
9485
|
+
label: "Node name",
|
|
9486
|
+
example: "little-unraid",
|
|
9487
|
+
group: "system",
|
|
9488
|
+
families: ["rule"],
|
|
9489
|
+
fields: [...RULE_TEXT],
|
|
9490
|
+
kinds: ["system"],
|
|
9491
|
+
systemEventKinds: ["node-online", "node-offline"]
|
|
9492
|
+
},
|
|
9493
|
+
{
|
|
9494
|
+
name: "offlineFor",
|
|
9495
|
+
label: "Offline for",
|
|
9496
|
+
example: "44 min",
|
|
9497
|
+
group: "system",
|
|
9498
|
+
families: ["rule"],
|
|
9499
|
+
fields: [...RULE_TEXT],
|
|
9500
|
+
kinds: ["system"],
|
|
9501
|
+
systemEventKinds: ["node-online"]
|
|
9502
|
+
},
|
|
9477
9503
|
{
|
|
9478
9504
|
name: "devices",
|
|
9479
9505
|
label: "Devices",
|
|
@@ -11283,6 +11283,21 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11283
11283
|
})[];
|
|
11284
11284
|
meta: object;
|
|
11285
11285
|
}>;
|
|
11286
|
+
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
11287
|
+
input: {
|
|
11288
|
+
kind: "share-link" | "admin-token" | "login-session";
|
|
11289
|
+
ids: string[];
|
|
11290
|
+
confirmCount: number;
|
|
11291
|
+
};
|
|
11292
|
+
output: {
|
|
11293
|
+
revoked: string[];
|
|
11294
|
+
skipped: {
|
|
11295
|
+
id: string;
|
|
11296
|
+
reason: "current-session" | "not-active";
|
|
11297
|
+
}[];
|
|
11298
|
+
};
|
|
11299
|
+
meta: object;
|
|
11300
|
+
}>;
|
|
11286
11301
|
createAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11287
11302
|
input: {
|
|
11288
11303
|
name: string;
|
|
@@ -11912,6 +11927,21 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11912
11927
|
})[];
|
|
11913
11928
|
meta: object;
|
|
11914
11929
|
}>;
|
|
11930
|
+
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
11931
|
+
input: {
|
|
11932
|
+
kind: "share-link" | "admin-token" | "login-session";
|
|
11933
|
+
ids: string[];
|
|
11934
|
+
confirmCount: number;
|
|
11935
|
+
};
|
|
11936
|
+
output: {
|
|
11937
|
+
revoked: string[];
|
|
11938
|
+
skipped: {
|
|
11939
|
+
id: string;
|
|
11940
|
+
reason: "current-session" | "not-active";
|
|
11941
|
+
}[];
|
|
11942
|
+
};
|
|
11943
|
+
meta: object;
|
|
11944
|
+
}>;
|
|
11915
11945
|
createAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11916
11946
|
input: {
|
|
11917
11947
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -42307,7 +42307,13 @@ var TopologyNodeSchema = zod.z.object({
|
|
|
42307
42307
|
})).readonly(),
|
|
42308
42308
|
processes: zod.z.array(TopologyProcessSchema).readonly(),
|
|
42309
42309
|
categories: zod.z.array(TopologyCategorySchema).readonly(),
|
|
42310
|
-
rootPackage: TopologyRootPackageSchema.nullable()
|
|
42310
|
+
rootPackage: TopologyRootPackageSchema.nullable(),
|
|
42311
|
+
/**
|
|
42312
|
+
* How an online AGENT reaches the hub (mesh mTLS Release A): `tls` once it has
|
|
42313
|
+
* completed a mutual-TLS handshake, `clear` otherwise. Absent for the hub,
|
|
42314
|
+
* for offline rows and when the hub cannot tell.
|
|
42315
|
+
*/
|
|
42316
|
+
meshTransport: zod.z.enum(["tls", "clear"]).optional()
|
|
42311
42317
|
});
|
|
42312
42318
|
var CapUsageEdgeSchema = zod.z.object({
|
|
42313
42319
|
callerAddonId: zod.z.string(),
|
|
@@ -73398,6 +73404,26 @@ var NC_TEMPLATE_VARS = [
|
|
|
73398
73404
|
"server-updated"
|
|
73399
73405
|
]
|
|
73400
73406
|
},
|
|
73407
|
+
{
|
|
73408
|
+
name: "nodeName",
|
|
73409
|
+
label: "Node name",
|
|
73410
|
+
example: "little-unraid",
|
|
73411
|
+
group: "system",
|
|
73412
|
+
families: ["rule"],
|
|
73413
|
+
fields: [...RULE_TEXT],
|
|
73414
|
+
kinds: ["system"],
|
|
73415
|
+
systemEventKinds: ["node-online", "node-offline"]
|
|
73416
|
+
},
|
|
73417
|
+
{
|
|
73418
|
+
name: "offlineFor",
|
|
73419
|
+
label: "Offline for",
|
|
73420
|
+
example: "44 min",
|
|
73421
|
+
group: "system",
|
|
73422
|
+
families: ["rule"],
|
|
73423
|
+
fields: [...RULE_TEXT],
|
|
73424
|
+
kinds: ["system"],
|
|
73425
|
+
systemEventKinds: ["node-online"]
|
|
73426
|
+
},
|
|
73401
73427
|
{
|
|
73402
73428
|
name: "devices",
|
|
73403
73429
|
label: "Devices",
|
package/dist/index.mjs
CHANGED
|
@@ -42306,7 +42306,13 @@ var TopologyNodeSchema = z.object({
|
|
|
42306
42306
|
})).readonly(),
|
|
42307
42307
|
processes: z.array(TopologyProcessSchema).readonly(),
|
|
42308
42308
|
categories: z.array(TopologyCategorySchema).readonly(),
|
|
42309
|
-
rootPackage: TopologyRootPackageSchema.nullable()
|
|
42309
|
+
rootPackage: TopologyRootPackageSchema.nullable(),
|
|
42310
|
+
/**
|
|
42311
|
+
* How an online AGENT reaches the hub (mesh mTLS Release A): `tls` once it has
|
|
42312
|
+
* completed a mutual-TLS handshake, `clear` otherwise. Absent for the hub,
|
|
42313
|
+
* for offline rows and when the hub cannot tell.
|
|
42314
|
+
*/
|
|
42315
|
+
meshTransport: z.enum(["tls", "clear"]).optional()
|
|
42310
42316
|
});
|
|
42311
42317
|
var CapUsageEdgeSchema = z.object({
|
|
42312
42318
|
callerAddonId: z.string(),
|
|
@@ -73397,6 +73403,26 @@ var NC_TEMPLATE_VARS = [
|
|
|
73397
73403
|
"server-updated"
|
|
73398
73404
|
]
|
|
73399
73405
|
},
|
|
73406
|
+
{
|
|
73407
|
+
name: "nodeName",
|
|
73408
|
+
label: "Node name",
|
|
73409
|
+
example: "little-unraid",
|
|
73410
|
+
group: "system",
|
|
73411
|
+
families: ["rule"],
|
|
73412
|
+
fields: [...RULE_TEXT],
|
|
73413
|
+
kinds: ["system"],
|
|
73414
|
+
systemEventKinds: ["node-online", "node-offline"]
|
|
73415
|
+
},
|
|
73416
|
+
{
|
|
73417
|
+
name: "offlineFor",
|
|
73418
|
+
label: "Offline for",
|
|
73419
|
+
example: "44 min",
|
|
73420
|
+
group: "system",
|
|
73421
|
+
families: ["rule"],
|
|
73422
|
+
fields: [...RULE_TEXT],
|
|
73423
|
+
kinds: ["system"],
|
|
73424
|
+
systemEventKinds: ["node-online"]
|
|
73425
|
+
},
|
|
73400
73426
|
{
|
|
73401
73427
|
name: "devices",
|
|
73402
73428
|
label: "Devices",
|
|
@@ -718,6 +718,11 @@ export interface TopologyNode {
|
|
|
718
718
|
readonly name: string;
|
|
719
719
|
readonly version: string;
|
|
720
720
|
} | null;
|
|
721
|
+
/**
|
|
722
|
+
* How an online agent reaches the hub (mesh mTLS Release A). Absent for the
|
|
723
|
+
* hub, offline rows, and when the hub cannot tell. Mirrors `TopologyNodeSchema`.
|
|
724
|
+
*/
|
|
725
|
+
readonly meshTransport?: 'tls' | 'clear';
|
|
721
726
|
}
|
|
722
727
|
/**
|
|
723
728
|
* Why a broker's stream health flipped — the discriminator that separates an
|
|
@@ -1398,9 +1403,17 @@ export interface EventCatalog {
|
|
|
1398
1403
|
};
|
|
1399
1404
|
'agent.online': {
|
|
1400
1405
|
agentId: string;
|
|
1406
|
+
nodeName?: string;
|
|
1401
1407
|
};
|
|
1408
|
+
/**
|
|
1409
|
+
* `reason`: Moleculer's verdict — `connection-lost` (heartbeat / socket gone,
|
|
1410
|
+
* `$node.disconnected` with `unexpected: true`) or `shutdown` (the agent said
|
|
1411
|
+
* goodbye). `nodeName` is the durable history's display name when known.
|
|
1412
|
+
*/
|
|
1402
1413
|
'agent.offline': {
|
|
1403
1414
|
agentId: string;
|
|
1415
|
+
nodeName?: string;
|
|
1416
|
+
reason?: 'connection-lost' | 'shutdown';
|
|
1404
1417
|
};
|
|
1405
1418
|
'worker.online': {
|
|
1406
1419
|
workerId: string;
|