@camstack/types 1.2.438 → 1.2.440
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/CHANGELOG.md +12 -0
- package/dist/capabilities/alerts.cap.d.ts +36 -0
- package/dist/capabilities/hub-address.d.ts +2 -0
- package/dist/generated/addon-api.d.ts +4 -0
- package/dist/index.js +14 -0
- package/dist/index.mjs +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.440] - 2026-10-28
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Agents advertise their display name over mDNS so a hub can show which machine is which
|
|
15
|
+
|
|
16
|
+
## [1.2.439] - 2026-10-28
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- An alert action can now run an addon's custom action as well as link to a page
|
|
21
|
+
|
|
10
22
|
## [1.2.438] - 2026-10-28
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -14,9 +14,25 @@ export declare const AlertSeveritySchema: z.ZodEnum<{
|
|
|
14
14
|
success: "success";
|
|
15
15
|
warning: "warning";
|
|
16
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* An action that RUNS something instead of going somewhere: the admin UI calls
|
|
19
|
+
* the addon's custom action (`addons.custom`) with exactly these fields. The
|
|
20
|
+
* producer owns the meaning; the UI knows nothing about the addon or the kind.
|
|
21
|
+
*/
|
|
22
|
+
export declare const AlertActionInvokeSchema: z.ZodObject<{
|
|
23
|
+
addonId: z.ZodString;
|
|
24
|
+
action: z.ZodString;
|
|
25
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
/** An action has `href` (a link) OR `invoke` (a button that runs a custom action). */
|
|
17
28
|
export declare const AlertActionSchema: z.ZodObject<{
|
|
18
29
|
label: z.ZodString;
|
|
19
30
|
href: z.ZodOptional<z.ZodString>;
|
|
31
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
addonId: z.ZodString;
|
|
33
|
+
action: z.ZodString;
|
|
34
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
20
36
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
21
37
|
app: "app";
|
|
22
38
|
server: "server";
|
|
@@ -48,6 +64,11 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
48
64
|
action: z.ZodOptional<z.ZodObject<{
|
|
49
65
|
label: z.ZodString;
|
|
50
66
|
href: z.ZodOptional<z.ZodString>;
|
|
67
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
addonId: z.ZodString;
|
|
69
|
+
action: z.ZodString;
|
|
70
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
51
72
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
52
73
|
app: "app";
|
|
53
74
|
server: "server";
|
|
@@ -93,6 +114,11 @@ export declare const alertsCapability: {
|
|
|
93
114
|
action: z.ZodOptional<z.ZodObject<{
|
|
94
115
|
label: z.ZodString;
|
|
95
116
|
href: z.ZodOptional<z.ZodString>;
|
|
117
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
addonId: z.ZodString;
|
|
119
|
+
action: z.ZodString;
|
|
120
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
96
122
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
97
123
|
app: "app";
|
|
98
124
|
server: "server";
|
|
@@ -132,6 +158,11 @@ export declare const alertsCapability: {
|
|
|
132
158
|
action: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
133
159
|
label: z.ZodString;
|
|
134
160
|
href: z.ZodOptional<z.ZodString>;
|
|
161
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
addonId: z.ZodString;
|
|
163
|
+
action: z.ZodString;
|
|
164
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
135
166
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
136
167
|
app: "app";
|
|
137
168
|
server: "server";
|
|
@@ -173,6 +204,11 @@ export declare const alertsCapability: {
|
|
|
173
204
|
action: z.ZodOptional<z.ZodObject<{
|
|
174
205
|
label: z.ZodString;
|
|
175
206
|
href: z.ZodOptional<z.ZodString>;
|
|
207
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
addonId: z.ZodString;
|
|
209
|
+
action: z.ZodString;
|
|
210
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
176
212
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
177
213
|
app: "app";
|
|
178
214
|
server: "server";
|
|
@@ -161,6 +161,8 @@ export declare const AGENT_MDNS_QUERY_NAME = "_camstack-agent._tcp.local";
|
|
|
161
161
|
export declare const AGENT_MDNS_TXT_KEYS: {
|
|
162
162
|
readonly nodeId: 'nodeId';
|
|
163
163
|
readonly version: 'version';
|
|
164
|
+
/** The agent's display name; absent on an older agent. */
|
|
165
|
+
readonly name: 'name';
|
|
164
166
|
/** `unpaired` | `pending` | `paired`. */
|
|
165
167
|
readonly state: 'state';
|
|
166
168
|
/** First 16 hex chars of the SHA-256 of the agent's mesh leaf; present once paired. */
|
|
@@ -12605,6 +12605,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12605
12605
|
host: string;
|
|
12606
12606
|
port: number;
|
|
12607
12607
|
version: string | null;
|
|
12608
|
+
name: string | null;
|
|
12608
12609
|
state: "unpaired" | "pending" | "paired";
|
|
12609
12610
|
fingerprint: string | null;
|
|
12610
12611
|
source: "mdns" | "address";
|
|
@@ -12638,6 +12639,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12638
12639
|
host: string;
|
|
12639
12640
|
port: number;
|
|
12640
12641
|
version: string | null;
|
|
12642
|
+
name: string | null;
|
|
12641
12643
|
state: "unpaired" | "pending" | "paired";
|
|
12642
12644
|
fingerprint: string | null;
|
|
12643
12645
|
source: "mdns" | "address";
|
|
@@ -12783,6 +12785,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12783
12785
|
host: string;
|
|
12784
12786
|
port: number;
|
|
12785
12787
|
version: string | null;
|
|
12788
|
+
name: string | null;
|
|
12786
12789
|
state: "unpaired" | "pending" | "paired";
|
|
12787
12790
|
fingerprint: string | null;
|
|
12788
12791
|
source: "mdns" | "address";
|
|
@@ -12816,6 +12819,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12816
12819
|
host: string;
|
|
12817
12820
|
port: number;
|
|
12818
12821
|
version: string | null;
|
|
12822
|
+
name: string | null;
|
|
12819
12823
|
state: "unpaired" | "pending" | "paired";
|
|
12820
12824
|
fingerprint: string | null;
|
|
12821
12825
|
source: "mdns" | "address";
|
package/dist/index.js
CHANGED
|
@@ -11180,9 +11180,21 @@ var AlertSeveritySchema = zod.z.enum([
|
|
|
11180
11180
|
"error",
|
|
11181
11181
|
"critical"
|
|
11182
11182
|
]);
|
|
11183
|
+
/**
|
|
11184
|
+
* An action that RUNS something instead of going somewhere: the admin UI calls
|
|
11185
|
+
* the addon's custom action (`addons.custom`) with exactly these fields. The
|
|
11186
|
+
* producer owns the meaning; the UI knows nothing about the addon or the kind.
|
|
11187
|
+
*/
|
|
11188
|
+
var AlertActionInvokeSchema = zod.z.object({
|
|
11189
|
+
addonId: zod.z.string().min(1),
|
|
11190
|
+
action: zod.z.string().min(1),
|
|
11191
|
+
input: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
11192
|
+
});
|
|
11193
|
+
/** An action has `href` (a link) OR `invoke` (a button that runs a custom action). */
|
|
11183
11194
|
var AlertActionSchema = zod.z.object({
|
|
11184
11195
|
label: zod.z.string(),
|
|
11185
11196
|
href: zod.z.string().optional(),
|
|
11197
|
+
invoke: AlertActionInvokeSchema.optional(),
|
|
11186
11198
|
/**
|
|
11187
11199
|
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
11188
11200
|
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
@@ -44098,6 +44110,8 @@ var AGENT_MDNS_QUERY_NAME = "_camstack-agent._tcp.local";
|
|
|
44098
44110
|
var AGENT_MDNS_TXT_KEYS = {
|
|
44099
44111
|
nodeId: "nodeId",
|
|
44100
44112
|
version: "version",
|
|
44113
|
+
/** The agent's display name; absent on an older agent. */
|
|
44114
|
+
name: "name",
|
|
44101
44115
|
/** `unpaired` | `pending` | `paired`. */
|
|
44102
44116
|
state: "state",
|
|
44103
44117
|
/** First 16 hex chars of the SHA-256 of the agent's mesh leaf; present once paired. */
|
package/dist/index.mjs
CHANGED
|
@@ -11179,9 +11179,21 @@ var AlertSeveritySchema = z.enum([
|
|
|
11179
11179
|
"error",
|
|
11180
11180
|
"critical"
|
|
11181
11181
|
]);
|
|
11182
|
+
/**
|
|
11183
|
+
* An action that RUNS something instead of going somewhere: the admin UI calls
|
|
11184
|
+
* the addon's custom action (`addons.custom`) with exactly these fields. The
|
|
11185
|
+
* producer owns the meaning; the UI knows nothing about the addon or the kind.
|
|
11186
|
+
*/
|
|
11187
|
+
var AlertActionInvokeSchema = z.object({
|
|
11188
|
+
addonId: z.string().min(1),
|
|
11189
|
+
action: z.string().min(1),
|
|
11190
|
+
input: z.record(z.string(), z.unknown()).optional()
|
|
11191
|
+
});
|
|
11192
|
+
/** An action has `href` (a link) OR `invoke` (a button that runs a custom action). */
|
|
11182
11193
|
var AlertActionSchema = z.object({
|
|
11183
11194
|
label: z.string(),
|
|
11184
11195
|
href: z.string().optional(),
|
|
11196
|
+
invoke: AlertActionInvokeSchema.optional(),
|
|
11185
11197
|
/**
|
|
11186
11198
|
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
11187
11199
|
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
@@ -44097,6 +44109,8 @@ var AGENT_MDNS_QUERY_NAME = "_camstack-agent._tcp.local";
|
|
|
44097
44109
|
var AGENT_MDNS_TXT_KEYS = {
|
|
44098
44110
|
nodeId: "nodeId",
|
|
44099
44111
|
version: "version",
|
|
44112
|
+
/** The agent's display name; absent on an older agent. */
|
|
44113
|
+
name: "name",
|
|
44100
44114
|
/** `unpaired` | `pending` | `paired`. */
|
|
44101
44115
|
state: "state",
|
|
44102
44116
|
/** First 16 hex chars of the SHA-256 of the agent's mesh leaf; present once paired. */
|