@camstack/types 1.2.26 → 1.2.28
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/addon.d.ts +1 -0
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/core-blocks.cap.d.ts +248 -0
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
- package/dist/capabilities/llm.cap.d.ts +4 -4
- package/dist/capabilities/mask-shape.d.ts +1 -1
- package/dist/capabilities/motion-zones.cap.d.ts +2 -2
- package/dist/capabilities/notification-rules.cap.d.ts +256 -0
- package/dist/capabilities/privacy-mask.cap.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +64 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-scoped-caps.d.ts +20 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +282 -2
- package/dist/index.mjs +272 -3
- package/dist/{sleep-BvSjpsfC.js → sleep-6oDIDtYV.js} +117 -0
- package/dist/{sleep-vCXN9wNH.mjs → sleep-CD2Df3i7.mjs} +106 -1
- package/package.json +1 -1
package/dist/addon.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { DATAPLANE_SECRET_HEADER } from './interfaces/addon-data-plane.js';
|
|
|
28
28
|
export { expandCapMethods } from './capabilities/capability-definition.js';
|
|
29
29
|
export { nodePin, readNodePin } from './cap-call-context.js';
|
|
30
30
|
export { COLLECTION_ARRAY_METHODS, isCollectionArrayMethodName, } from './generated/collection-array-methods.js';
|
|
31
|
+
export { DEVICE_SCOPED_CAPS, isDeviceScopedCap } from './generated/device-scoped-caps.js';
|
|
31
32
|
export { CAP_INPUT_DEFAULTS, withCapInputDefaults } from './generated/cap-input-defaults.js';
|
|
32
33
|
export { deviceOpsCapability } from './capabilities/device-ops.cap.js';
|
|
33
34
|
export { createDeviceProxy } from './generated/device-proxy.js';
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-6oDIDtYV.js");
|
|
3
3
|
const require_event_category = require("./event-category-BE4PDZ_3.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/collection-array-methods.ts
|
|
@@ -324,6 +324,7 @@ exports.BaseAddon = require_sleep.BaseAddon;
|
|
|
324
324
|
exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
|
|
325
325
|
exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
|
|
326
326
|
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
|
327
|
+
exports.DEVICE_SCOPED_CAPS = require_sleep.DEVICE_SCOPED_CAPS;
|
|
327
328
|
exports.DeviceType = require_sleep.DeviceType;
|
|
328
329
|
exports.DisposerChain = require_sleep.DisposerChain;
|
|
329
330
|
exports.EventCategory = require_event_category.EventCategory;
|
|
@@ -338,6 +339,7 @@ exports.emitReadiness = require_sleep.emitReadiness;
|
|
|
338
339
|
exports.errMsg = require_err_msg.errMsg;
|
|
339
340
|
exports.expandCapMethods = require_sleep.expandCapMethods;
|
|
340
341
|
exports.isCollectionArrayMethodName = isCollectionArrayMethodName;
|
|
342
|
+
exports.isDeviceScopedCap = require_sleep.isDeviceScopedCap;
|
|
341
343
|
exports.nodePin = require_sleep.nodePin;
|
|
342
344
|
exports.normalizeAddonInitResult = require_sleep.normalizeAddonInitResult;
|
|
343
345
|
exports.parseJsonUnknown = require_sleep.parseJsonUnknown;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as DEVICE_SCOPED_CAPS, D as asJsonObject, F as readNodePin, I as DATAPLANE_SECRET_HEADER, L as ReadinessRegistry, M as parseJsonUnknown, P as nodePin, R as ReadinessTimeoutError, S as DeviceType, Tt as DisposerChain, V as scopeKey, _t as emitReadiness, a as viewerUiCapability, i as deviceOpsCapability, k as asString, m as expandCapMethods, mt as normalizeAddonInitResult, o as adminUiCapability, pt as BaseAddon, s as createDeviceProxy, t as sleep, w as isDeviceScopedCap } from "./sleep-CD2Df3i7.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-41fKf-q9.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/collection-array-methods.ts
|
|
@@ -319,4 +319,4 @@ function materialise(defaults) {
|
|
|
319
319
|
return out;
|
|
320
320
|
}
|
|
321
321
|
//#endregion
|
|
322
|
-
export { BaseAddon, CAP_INPUT_DEFAULTS, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, isCollectionArrayMethodName, nodePin, normalizeAddonInitResult, parseJsonUnknown, readNodePin, scopeKey, sleep, viewerUiCapability, withCapInputDefaults };
|
|
322
|
+
export { BaseAddon, CAP_INPUT_DEFAULTS, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_SCOPED_CAPS, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, isCollectionArrayMethodName, isDeviceScopedCap, nodePin, normalizeAddonInitResult, parseJsonUnknown, readNodePin, scopeKey, sleep, viewerUiCapability, withCapInputDefaults };
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* core-blocks — user-authored TypeScript, stored in the kernel and executed in
|
|
5
|
+
* its own process.
|
|
6
|
+
*
|
|
7
|
+
* Spec: `docs/superpowers/specs/2026-08-04-core-blocks-and-synthetic-devices-design.md`.
|
|
8
|
+
*
|
|
9
|
+
* The first use is **owning devices without being a device provider**: a block
|
|
10
|
+
* declares devices under a system or custom integration and drives their state,
|
|
11
|
+
* with the same `ctx` an addon gets. Automations come later; nothing here
|
|
12
|
+
* models a trigger.
|
|
13
|
+
*
|
|
14
|
+
* **Stated plainly, because it does not change by being true:** a block has an
|
|
15
|
+
* addon's powers — devices, storage, the event bus, `ctx.api`. It is a plugin
|
|
16
|
+
* with no review step. What makes that survivable is not a sandbox, it is
|
|
17
|
+
* PROCESS ISOLATION: one process per block, supervised by `CrashSupervisor`,
|
|
18
|
+
* so a block that throws or never returns is marked `failed` and visible
|
|
19
|
+
* instead of taking the hub with it (D6). Every method here is admin-only, and
|
|
20
|
+
* must stay so.
|
|
21
|
+
*/
|
|
22
|
+
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
23
|
+
* agent is the reason placement is not fixed to the hub. */
|
|
24
|
+
export declare const CoreBlockPlacementSchema: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
25
|
+
export type CoreBlockPlacement = z.infer<typeof CoreBlockPlacementSchema>;
|
|
26
|
+
/** What a block's process is doing. Mirrors the addon runner's own lifecycle so
|
|
27
|
+
* a failing block reads the same way a failing addon does. */
|
|
28
|
+
export declare const CoreBlockStatusSchema: z.ZodEnum<{
|
|
29
|
+
failed: "failed";
|
|
30
|
+
running: "running";
|
|
31
|
+
stopped: "stopped";
|
|
32
|
+
starting: "starting";
|
|
33
|
+
}>;
|
|
34
|
+
export type CoreBlockStatus = z.infer<typeof CoreBlockStatusSchema>;
|
|
35
|
+
/** Client-authored fields. */
|
|
36
|
+
export declare const CoreBlockInputSchema: z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
code: z.ZodString;
|
|
39
|
+
enabled: z.ZodBoolean;
|
|
40
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
41
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type CoreBlockInput = z.infer<typeof CoreBlockInputSchema>;
|
|
44
|
+
/** A stored block. */
|
|
45
|
+
export declare const CoreBlockSchema: z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
code: z.ZodString;
|
|
48
|
+
enabled: z.ZodBoolean;
|
|
49
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
50
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
createdAt: z.ZodNumber;
|
|
53
|
+
updatedAt: z.ZodNumber;
|
|
54
|
+
createdBy: z.ZodString;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
failed: "failed";
|
|
57
|
+
running: "running";
|
|
58
|
+
stopped: "stopped";
|
|
59
|
+
starting: "starting";
|
|
60
|
+
}>;
|
|
61
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
62
|
+
lastChangedAt: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type CoreBlock = z.infer<typeof CoreBlockSchema>;
|
|
65
|
+
/** What a compile attempt produced. */
|
|
66
|
+
export declare const CoreBlockCompileResultSchema: z.ZodObject<{
|
|
67
|
+
ok: z.ZodBoolean;
|
|
68
|
+
error: z.ZodOptional<z.ZodString>;
|
|
69
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type CoreBlockCompileResult = z.infer<typeof CoreBlockCompileResultSchema>;
|
|
73
|
+
export declare const coreBlocksCapability: {
|
|
74
|
+
readonly name: "core-blocks";
|
|
75
|
+
readonly scope: "system";
|
|
76
|
+
readonly mode: "singleton";
|
|
77
|
+
readonly methods: {
|
|
78
|
+
readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
code: z.ZodString;
|
|
82
|
+
enabled: z.ZodBoolean;
|
|
83
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
84
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
createdAt: z.ZodNumber;
|
|
87
|
+
updatedAt: z.ZodNumber;
|
|
88
|
+
createdBy: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
failed: "failed";
|
|
91
|
+
running: "running";
|
|
92
|
+
stopped: "stopped";
|
|
93
|
+
starting: "starting";
|
|
94
|
+
}>;
|
|
95
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
96
|
+
lastChangedAt: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
99
|
+
readonly get: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
100
|
+
blockId: z.ZodString;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
block: z.ZodNullable<z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
code: z.ZodString;
|
|
105
|
+
enabled: z.ZodBoolean;
|
|
106
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
107
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
createdAt: z.ZodNumber;
|
|
110
|
+
updatedAt: z.ZodNumber;
|
|
111
|
+
createdBy: z.ZodString;
|
|
112
|
+
status: z.ZodEnum<{
|
|
113
|
+
failed: "failed";
|
|
114
|
+
running: "running";
|
|
115
|
+
stopped: "stopped";
|
|
116
|
+
starting: "starting";
|
|
117
|
+
}>;
|
|
118
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
119
|
+
lastChangedAt: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
122
|
+
/**
|
|
123
|
+
* Create a block. The code is COMPILED first: storing source that does not
|
|
124
|
+
* compile turns an editor error into a fork failure the operator meets
|
|
125
|
+
* minutes later in a log.
|
|
126
|
+
*/
|
|
127
|
+
readonly create: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
128
|
+
block: z.ZodObject<{
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
code: z.ZodString;
|
|
131
|
+
enabled: z.ZodBoolean;
|
|
132
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
133
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
block: z.ZodObject<{
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
code: z.ZodString;
|
|
139
|
+
enabled: z.ZodBoolean;
|
|
140
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
141
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
createdAt: z.ZodNumber;
|
|
144
|
+
updatedAt: z.ZodNumber;
|
|
145
|
+
createdBy: z.ZodString;
|
|
146
|
+
status: z.ZodEnum<{
|
|
147
|
+
failed: "failed";
|
|
148
|
+
running: "running";
|
|
149
|
+
stopped: "stopped";
|
|
150
|
+
starting: "starting";
|
|
151
|
+
}>;
|
|
152
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
153
|
+
lastChangedAt: z.ZodNumber;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
}, z.core.$strip>, "mutation"> & {
|
|
156
|
+
readonly caller: "required";
|
|
157
|
+
};
|
|
158
|
+
readonly update: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
159
|
+
blockId: z.ZodString;
|
|
160
|
+
block: z.ZodObject<{
|
|
161
|
+
name: z.ZodOptional<z.ZodString>;
|
|
162
|
+
code: z.ZodOptional<z.ZodString>;
|
|
163
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
placement: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>>;
|
|
165
|
+
integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
block: z.ZodObject<{
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
code: z.ZodString;
|
|
171
|
+
enabled: z.ZodBoolean;
|
|
172
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
173
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
createdAt: z.ZodNumber;
|
|
176
|
+
updatedAt: z.ZodNumber;
|
|
177
|
+
createdBy: z.ZodString;
|
|
178
|
+
status: z.ZodEnum<{
|
|
179
|
+
failed: "failed";
|
|
180
|
+
running: "running";
|
|
181
|
+
stopped: "stopped";
|
|
182
|
+
starting: "starting";
|
|
183
|
+
}>;
|
|
184
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
185
|
+
lastChangedAt: z.ZodNumber;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
}, z.core.$strip>, "mutation"> & {
|
|
188
|
+
readonly caller: "required";
|
|
189
|
+
};
|
|
190
|
+
readonly delete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
191
|
+
blockId: z.ZodString;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
success: z.ZodLiteral<true>;
|
|
194
|
+
}, z.core.$strip>, "mutation">;
|
|
195
|
+
readonly setEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
196
|
+
blockId: z.ZodString;
|
|
197
|
+
enabled: z.ZodBoolean;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
block: z.ZodObject<{
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
code: z.ZodString;
|
|
202
|
+
enabled: z.ZodBoolean;
|
|
203
|
+
placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
|
|
204
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
createdAt: z.ZodNumber;
|
|
207
|
+
updatedAt: z.ZodNumber;
|
|
208
|
+
createdBy: z.ZodString;
|
|
209
|
+
status: z.ZodEnum<{
|
|
210
|
+
failed: "failed";
|
|
211
|
+
running: "running";
|
|
212
|
+
stopped: "stopped";
|
|
213
|
+
starting: "starting";
|
|
214
|
+
}>;
|
|
215
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
216
|
+
lastChangedAt: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
}, z.core.$strip>, "mutation">;
|
|
219
|
+
/**
|
|
220
|
+
* Type-check without saving — what the editor calls as the author types, so
|
|
221
|
+
* the compiler's verdict is the same one the server will reach.
|
|
222
|
+
*/
|
|
223
|
+
readonly compile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
224
|
+
code: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
ok: z.ZodBoolean;
|
|
227
|
+
error: z.ZodOptional<z.ZodString>;
|
|
228
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
}, z.core.$strip>, "mutation">;
|
|
231
|
+
/**
|
|
232
|
+
* The declaration files the editor type-checks against.
|
|
233
|
+
*
|
|
234
|
+
* Served rather than bundled: the graph is 3.4 MB across 344 files, and
|
|
235
|
+
* bundling it would roughly double the admin remote. Served rather than
|
|
236
|
+
* hand-stubbed: a block runs with the same `ctx` an addon gets, so a stub
|
|
237
|
+
* would drift and the editor would confidently autocomplete methods that
|
|
238
|
+
* do not exist.
|
|
239
|
+
*/
|
|
240
|
+
readonly getTypeDefs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
libs: z.ZodArray<z.ZodObject<{
|
|
242
|
+
filePath: z.ZodString;
|
|
243
|
+
content: z.ZodString;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
export type ICoreBlocksProvider = InferProvider<typeof coreBlocksCapability>;
|
|
@@ -74,7 +74,8 @@ export { AddBrokerInputSchema, BrokerConnectionDetailsSchema, BrokerInfoSchema,
|
|
|
74
74
|
export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.js';
|
|
75
75
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
76
76
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, NotificationActionSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
|
|
77
|
-
export { type
|
|
77
|
+
export { type CoreBlock, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockInput, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlocksCapability, type ICoreBlocksProvider, } from './core-blocks.cap.js';
|
|
78
|
+
export { type INotificationRulesProvider, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcCrossing, NcCrossingSchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcDelivery, NcDeliverySchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleAction, NcRuleActionSchema, type NcRuleActionSequence, NcRuleActionSequenceSchema, type NcRuleActions, NcRuleActionsSchema, type NcRuleInput, NcRuleInputSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
78
79
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
79
80
|
export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type MediaFile, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
|
|
80
81
|
export type { NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
|
|
@@ -274,6 +275,7 @@ import type { networkAccessCapability } from './network-access.cap.js';
|
|
|
274
275
|
import type { networkQualityCapability } from './network-quality.cap.js';
|
|
275
276
|
import type { nodesCapability } from './nodes.cap.js';
|
|
276
277
|
import type { notificationOutputCapability } from './notification-output.cap.js';
|
|
278
|
+
import type { coreBlocksCapability } from './core-blocks.cap.js';
|
|
277
279
|
import type { notificationRulesCapability } from './notification-rules.cap.js';
|
|
278
280
|
import type { notifierCapability } from './notifier.cap.js';
|
|
279
281
|
import type { numericSensorCapability } from './numeric-sensor.cap.js';
|
|
@@ -326,6 +328,6 @@ import type { webrtcSessionCapability } from './webrtc-session.cap.js';
|
|
|
326
328
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
327
329
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
328
330
|
import type { zonesCapability } from './zones.cap.js';
|
|
329
|
-
type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingExportCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof imageSettingsCapability;
|
|
331
|
+
type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingExportCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof imageSettingsCapability;
|
|
330
332
|
export type CapabilityName = AnyCapability['name'];
|
|
331
333
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -52,8 +52,8 @@ export declare const LlmRuntimeStatusSchema: z.ZodObject<{
|
|
|
52
52
|
state: z.ZodEnum<{
|
|
53
53
|
failed: "failed";
|
|
54
54
|
stopped: "stopped";
|
|
55
|
-
ready: "ready";
|
|
56
55
|
starting: "starting";
|
|
56
|
+
ready: "ready";
|
|
57
57
|
downloading: "downloading";
|
|
58
58
|
crashed: "crashed";
|
|
59
59
|
}>;
|
|
@@ -218,8 +218,8 @@ export declare const llmRuntimeCapability: {
|
|
|
218
218
|
state: z.ZodEnum<{
|
|
219
219
|
failed: "failed";
|
|
220
220
|
stopped: "stopped";
|
|
221
|
-
ready: "ready";
|
|
222
221
|
starting: "starting";
|
|
222
|
+
ready: "ready";
|
|
223
223
|
downloading: "downloading";
|
|
224
224
|
crashed: "crashed";
|
|
225
225
|
}>;
|
|
@@ -239,8 +239,8 @@ export declare const llmRuntimeCapability: {
|
|
|
239
239
|
state: z.ZodEnum<{
|
|
240
240
|
failed: "failed";
|
|
241
241
|
stopped: "stopped";
|
|
242
|
-
ready: "ready";
|
|
243
242
|
starting: "starting";
|
|
243
|
+
ready: "ready";
|
|
244
244
|
downloading: "downloading";
|
|
245
245
|
crashed: "crashed";
|
|
246
246
|
}>;
|
|
@@ -141,8 +141,8 @@ export declare const LlmRuntimeNodeSchema: z.ZodObject<{
|
|
|
141
141
|
state: z.ZodEnum<{
|
|
142
142
|
failed: "failed";
|
|
143
143
|
stopped: "stopped";
|
|
144
|
-
ready: "ready";
|
|
145
144
|
starting: "starting";
|
|
145
|
+
ready: "ready";
|
|
146
146
|
downloading: "downloading";
|
|
147
147
|
crashed: "crashed";
|
|
148
148
|
}>;
|
|
@@ -493,8 +493,8 @@ export declare const llmCapability: {
|
|
|
493
493
|
state: z.ZodEnum<{
|
|
494
494
|
failed: "failed";
|
|
495
495
|
stopped: "stopped";
|
|
496
|
-
ready: "ready";
|
|
497
496
|
starting: "starting";
|
|
497
|
+
ready: "ready";
|
|
498
498
|
downloading: "downloading";
|
|
499
499
|
crashed: "crashed";
|
|
500
500
|
}>;
|
|
@@ -549,8 +549,8 @@ export declare const llmCapability: {
|
|
|
549
549
|
state: z.ZodEnum<{
|
|
550
550
|
failed: "failed";
|
|
551
551
|
stopped: "stopped";
|
|
552
|
-
ready: "ready";
|
|
553
552
|
starting: "starting";
|
|
553
|
+
ready: "ready";
|
|
554
554
|
downloading: "downloading";
|
|
555
555
|
crashed: "crashed";
|
|
556
556
|
}>;
|
|
@@ -572,8 +572,8 @@ export declare const llmCapability: {
|
|
|
572
572
|
state: z.ZodEnum<{
|
|
573
573
|
failed: "failed";
|
|
574
574
|
stopped: "stopped";
|
|
575
|
-
ready: "ready";
|
|
576
575
|
starting: "starting";
|
|
576
|
+
ready: "ready";
|
|
577
577
|
downloading: "downloading";
|
|
578
578
|
crashed: "crashed";
|
|
579
579
|
}>;
|
|
@@ -72,10 +72,10 @@ export declare const MaskShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
72
72
|
}, z.core.$strip>], "kind">;
|
|
73
73
|
/** Every shape-kind discriminant, for `supportedShapes` advertisement. */
|
|
74
74
|
export declare const MaskShapeKindSchema: z.ZodEnum<{
|
|
75
|
+
line: "line";
|
|
75
76
|
polygon: "polygon";
|
|
76
77
|
rect: "rect";
|
|
77
78
|
grid: "grid";
|
|
78
|
-
line: "line";
|
|
79
79
|
}>;
|
|
80
80
|
/** Polygon vertex bounds when a cap supports 'polygon' (e.g. Hikvision {min:4,max:4}). */
|
|
81
81
|
export declare const MaskPolygonVerticesSchema: z.ZodObject<{
|
|
@@ -40,10 +40,10 @@ export declare const MotionZoneStatusSchema: z.ZodObject<{
|
|
|
40
40
|
export declare const MotionZoneOptionsSchema: z.ZodObject<{
|
|
41
41
|
maxRegions: z.ZodNumber;
|
|
42
42
|
supportedShapes: z.ZodArray<z.ZodEnum<{
|
|
43
|
+
line: "line";
|
|
43
44
|
polygon: "polygon";
|
|
44
45
|
rect: "rect";
|
|
45
46
|
grid: "grid";
|
|
46
|
-
line: "line";
|
|
47
47
|
}>>;
|
|
48
48
|
grid: z.ZodObject<{
|
|
49
49
|
width: z.ZodNumber;
|
|
@@ -94,10 +94,10 @@ export declare const motionZonesCapability: {
|
|
|
94
94
|
}, z.core.$strip>, z.ZodObject<{
|
|
95
95
|
maxRegions: z.ZodNumber;
|
|
96
96
|
supportedShapes: z.ZodArray<z.ZodEnum<{
|
|
97
|
+
line: "line";
|
|
97
98
|
polygon: "polygon";
|
|
98
99
|
rect: "rect";
|
|
99
100
|
grid: "grid";
|
|
100
|
-
line: "line";
|
|
101
101
|
}>>;
|
|
102
102
|
grid: z.ZodObject<{
|
|
103
103
|
width: z.ZodNumber;
|