@camstack/types 1.2.27 → 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/capabilities/core-blocks.cap.d.ts +248 -0
- package/dist/capabilities/index.d.ts +3 -1
- 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/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/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.js +203 -0
- package/dist/index.mjs +198 -1
- package/package.json +1 -1
|
@@ -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,6 +74,7 @@ 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 CoreBlock, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockInput, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlocksCapability, type ICoreBlocksProvider, } from './core-blocks.cap.js';
|
|
77
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';
|
|
@@ -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;
|
|
@@ -67,10 +67,10 @@ export declare const PrivacyMaskStatusSchema: z.ZodObject<{
|
|
|
67
67
|
export declare const PrivacyMaskOptionsSchema: z.ZodObject<{
|
|
68
68
|
maxRegions: z.ZodNumber;
|
|
69
69
|
supportedShapes: z.ZodArray<z.ZodEnum<{
|
|
70
|
+
line: "line";
|
|
70
71
|
polygon: "polygon";
|
|
71
72
|
rect: "rect";
|
|
72
73
|
grid: "grid";
|
|
73
|
-
line: "line";
|
|
74
74
|
}>>;
|
|
75
75
|
polygonVertices: z.ZodOptional<z.ZodObject<{
|
|
76
76
|
min: z.ZodNumber;
|
|
@@ -123,10 +123,10 @@ export declare const privacyMaskCapability: {
|
|
|
123
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
124
|
maxRegions: z.ZodNumber;
|
|
125
125
|
supportedShapes: z.ZodArray<z.ZodEnum<{
|
|
126
|
+
line: "line";
|
|
126
127
|
polygon: "polygon";
|
|
127
128
|
rect: "rect";
|
|
128
129
|
grid: "grid";
|
|
129
|
-
line: "line";
|
|
130
130
|
}>>;
|
|
131
131
|
polygonVertices: z.ZodOptional<z.ZodObject<{
|
|
132
132
|
min: z.ZodNumber;
|
|
@@ -28,6 +28,7 @@ import type { climateControlCapability } from '../capabilities/climate-control.c
|
|
|
28
28
|
import type { colorCapability } from '../capabilities/color.cap.js';
|
|
29
29
|
import type { consumablesCapability } from '../capabilities/consumables.cap.js';
|
|
30
30
|
import type { controlCapability } from '../capabilities/control.cap.js';
|
|
31
|
+
import type { coreBlocksCapability } from '../capabilities/core-blocks.cap.js';
|
|
31
32
|
import type { coverCapability } from '../capabilities/cover.cap.js';
|
|
32
33
|
import type { customModelRegistryCapability } from '../capabilities/custom-model-registry.cap.js';
|
|
33
34
|
import type { dataStoreProviderCapability } from '../capabilities/data-store-provider.cap.js';
|
|
@@ -1390,6 +1391,69 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1390
1391
|
meta: object;
|
|
1391
1392
|
}>;
|
|
1392
1393
|
}>>;
|
|
1394
|
+
coreBlocks: TRPCBuiltRouter<{
|
|
1395
|
+
ctx: TrpcContext;
|
|
1396
|
+
meta: object;
|
|
1397
|
+
errorShape: AugmentedErrorShape;
|
|
1398
|
+
transformer: true;
|
|
1399
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
1400
|
+
list: TRPCQueryProcedure<{
|
|
1401
|
+
input: {
|
|
1402
|
+
[x: string]: unknown;
|
|
1403
|
+
} & z.input<typeof coreBlocksCapability.methods.list.input>;
|
|
1404
|
+
output: z.infer<typeof coreBlocksCapability.methods.list.output>;
|
|
1405
|
+
meta: object;
|
|
1406
|
+
}>;
|
|
1407
|
+
get: TRPCQueryProcedure<{
|
|
1408
|
+
input: {
|
|
1409
|
+
[x: string]: unknown;
|
|
1410
|
+
} & z.input<typeof coreBlocksCapability.methods.get.input>;
|
|
1411
|
+
output: z.infer<typeof coreBlocksCapability.methods.get.output>;
|
|
1412
|
+
meta: object;
|
|
1413
|
+
}>;
|
|
1414
|
+
create: TRPCMutationProcedure<{
|
|
1415
|
+
input: {
|
|
1416
|
+
[x: string]: unknown;
|
|
1417
|
+
} & z.input<typeof coreBlocksCapability.methods.create.input>;
|
|
1418
|
+
output: z.infer<typeof coreBlocksCapability.methods.create.output>;
|
|
1419
|
+
meta: object;
|
|
1420
|
+
}>;
|
|
1421
|
+
update: TRPCMutationProcedure<{
|
|
1422
|
+
input: {
|
|
1423
|
+
[x: string]: unknown;
|
|
1424
|
+
} & z.input<typeof coreBlocksCapability.methods.update.input>;
|
|
1425
|
+
output: z.infer<typeof coreBlocksCapability.methods.update.output>;
|
|
1426
|
+
meta: object;
|
|
1427
|
+
}>;
|
|
1428
|
+
delete: TRPCMutationProcedure<{
|
|
1429
|
+
input: {
|
|
1430
|
+
[x: string]: unknown;
|
|
1431
|
+
} & z.input<typeof coreBlocksCapability.methods.delete.input>;
|
|
1432
|
+
output: z.infer<typeof coreBlocksCapability.methods.delete.output>;
|
|
1433
|
+
meta: object;
|
|
1434
|
+
}>;
|
|
1435
|
+
setEnabled: TRPCMutationProcedure<{
|
|
1436
|
+
input: {
|
|
1437
|
+
[x: string]: unknown;
|
|
1438
|
+
} & z.input<typeof coreBlocksCapability.methods.setEnabled.input>;
|
|
1439
|
+
output: z.infer<typeof coreBlocksCapability.methods.setEnabled.output>;
|
|
1440
|
+
meta: object;
|
|
1441
|
+
}>;
|
|
1442
|
+
compile: TRPCMutationProcedure<{
|
|
1443
|
+
input: {
|
|
1444
|
+
[x: string]: unknown;
|
|
1445
|
+
} & z.input<typeof coreBlocksCapability.methods.compile.input>;
|
|
1446
|
+
output: z.infer<typeof coreBlocksCapability.methods.compile.output>;
|
|
1447
|
+
meta: object;
|
|
1448
|
+
}>;
|
|
1449
|
+
getTypeDefs: TRPCQueryProcedure<{
|
|
1450
|
+
input: {
|
|
1451
|
+
[x: string]: unknown;
|
|
1452
|
+
} & z.input<typeof coreBlocksCapability.methods.getTypeDefs.input>;
|
|
1453
|
+
output: z.infer<typeof coreBlocksCapability.methods.getTypeDefs.output>;
|
|
1454
|
+
meta: object;
|
|
1455
|
+
}>;
|
|
1456
|
+
}>>;
|
|
1393
1457
|
cover: TRPCBuiltRouter<{
|
|
1394
1458
|
ctx: TrpcContext;
|
|
1395
1459
|
meta: object;
|
|
@@ -33,6 +33,7 @@ export { connectivityCapability } from '../capabilities/connectivity.cap.js';
|
|
|
33
33
|
export { consumablesCapability } from '../capabilities/consumables.cap.js';
|
|
34
34
|
export { contactCapability } from '../capabilities/contact.cap.js';
|
|
35
35
|
export { controlCapability } from '../capabilities/control.cap.js';
|
|
36
|
+
export { coreBlocksCapability } from '../capabilities/core-blocks.cap.js';
|
|
36
37
|
export { coverCapability } from '../capabilities/cover.cap.js';
|
|
37
38
|
export { customModelRegistryCapability } from '../capabilities/custom-model-registry.cap.js';
|
|
38
39
|
export { dataStoreProviderCapability } from '../capabilities/data-store-provider.cap.js';
|
|
@@ -178,6 +179,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
178
179
|
readonly consumables: "consumables";
|
|
179
180
|
readonly contact: "contact";
|
|
180
181
|
readonly control: "control";
|
|
182
|
+
readonly coreBlocks: "core-blocks";
|
|
181
183
|
readonly cover: "cover";
|
|
182
184
|
readonly customModelRegistry: "custom-model-registry";
|
|
183
185
|
readonly dataStoreProvider: "data-store-provider";
|
|
@@ -336,6 +338,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
336
338
|
readonly consumables: TRouter;
|
|
337
339
|
readonly contact: TRouter;
|
|
338
340
|
readonly control: TRouter;
|
|
341
|
+
readonly coreBlocks: TRouter;
|
|
339
342
|
readonly cover: TRouter;
|
|
340
343
|
readonly customModelRegistry: TRouter;
|
|
341
344
|
readonly dataStoreProvider: TRouter;
|
|
@@ -446,8 +449,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
446
449
|
readonly zoneRules: TRouter;
|
|
447
450
|
readonly zones: TRouter;
|
|
448
451
|
}
|
|
449
|
-
/** Capability names whose mode is `singleton` (
|
|
450
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
452
|
+
/** Capability names whose mode is `singleton` (122 caps). */
|
|
453
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ["accessories", "addon-pages", "addon-settings", "addon-widgets", "addons", "admin-ui", "air-quality-sensor", "alarm-panel", "alerts", "ambient-light-sensor", "audio-analysis", "audio-analyzer", "audio-codec", "audio-metrics", "automation-control", "backup", "battery", "binary", "brightness", "button", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "lawn-mower-control", "llm-runtime", "local-network", "lock-control", "media-player", "metrics-provider", "model-convert", "model-distributor", "motion", "motion-detection", "motion-trigger", "motion-zones", "native-object-detection", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "osd", "pet-feeder", "pipeline-analytics", "pipeline-executor", "pipeline-orchestrator", "pipeline-runner", "plate-gallery", "platform-probe", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "reboot", "recording", "recordingExport", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
451
454
|
/** Union of singleton capability names (literal string union). */
|
|
452
455
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
453
456
|
/** Capability names whose mode is `collection` (23 caps). */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 852 method paths across 119 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -9,6 +9,7 @@ import type { audioAnalyzerCapability } from '../capabilities/audio-analyzer.cap
|
|
|
9
9
|
import type { audioCodecCapability } from '../capabilities/audio-codec.cap.js';
|
|
10
10
|
import type { backupCapability } from '../capabilities/backup.cap.js';
|
|
11
11
|
import type { brokerCapability } from '../capabilities/broker.cap.js';
|
|
12
|
+
import type { coreBlocksCapability } from '../capabilities/core-blocks.cap.js';
|
|
12
13
|
import type { decoderCapability } from '../capabilities/decoder.cap.js';
|
|
13
14
|
import type { deviceAdoptionCapability } from '../capabilities/device-adoption.cap.js';
|
|
14
15
|
import type { deviceExportCapability } from '../capabilities/device-export.cap.js';
|
|
@@ -59,6 +60,7 @@ export interface SystemProxy {
|
|
|
59
60
|
readonly audioCodec: Pick<InferProvider<typeof audioCodecCapability>, 'listSupportedCodecs' | 'canHandle' | 'createDecodeSession' | 'createEncodeSession' | 'closeSession' | 'pushEncodedFrame' | 'pullPcm' | 'pushPcm' | 'pullEncoded' | 'flushEncode' | 'listActiveSessions'>;
|
|
60
61
|
readonly backup: Pick<InferProvider<typeof backupCapability>, 'listDestinations' | 'trigger' | 'list' | 'listLocations' | 'getEntries' | 'restore' | 'delete' | 'listArchives' | 'upsertDestinationPolicy' | 'previewSchedule' | 'listSchedules' | 'upsertSchedule' | 'deleteSchedule'>;
|
|
61
62
|
readonly broker: Pick<InferProvider<typeof brokerCapability>, 'list' | 'get' | 'listProviders' | 'add' | 'remove' | 'testConnection' | 'getSettings' | 'setSettings' | 'getBrokerConfig' | 'getSettingsSchema' | 'testSettings' | 'publish' | 'subscribe' | 'unsubscribe' | 'getState' | 'getStatus'>;
|
|
63
|
+
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'compile' | 'getTypeDefs'>;
|
|
62
64
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
|
|
63
65
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
64
66
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
|
package/dist/index.js
CHANGED
|
@@ -14972,6 +14972,16 @@ function createSystemProxy(api) {
|
|
|
14972
14972
|
getState: (input) => dispatch("broker", "getState", "query", input),
|
|
14973
14973
|
getStatus: (input) => dispatch("broker", "getStatus", "query", input)
|
|
14974
14974
|
},
|
|
14975
|
+
coreBlocks: {
|
|
14976
|
+
list: (input) => dispatch("coreBlocks", "list", "query", input),
|
|
14977
|
+
get: (input) => dispatch("coreBlocks", "get", "query", input),
|
|
14978
|
+
create: (input) => dispatch("coreBlocks", "create", "mutation", input),
|
|
14979
|
+
update: (input) => dispatch("coreBlocks", "update", "mutation", input),
|
|
14980
|
+
delete: (input) => dispatch("coreBlocks", "delete", "mutation", input),
|
|
14981
|
+
setEnabled: (input) => dispatch("coreBlocks", "setEnabled", "mutation", input),
|
|
14982
|
+
compile: (input) => dispatch("coreBlocks", "compile", "mutation", input),
|
|
14983
|
+
getTypeDefs: (input) => dispatch("coreBlocks", "getTypeDefs", "query", input)
|
|
14984
|
+
},
|
|
14975
14985
|
decoder: {
|
|
14976
14986
|
supportsCodec: (input) => dispatch("decoder", "supportsCodec", "query", input),
|
|
14977
14987
|
getInfo: (input) => dispatch("decoder", "getInfo", "query", input),
|
|
@@ -20792,6 +20802,137 @@ var notificationOutputCapability = {
|
|
|
20792
20802
|
}
|
|
20793
20803
|
};
|
|
20794
20804
|
//#endregion
|
|
20805
|
+
//#region src/capabilities/core-blocks.cap.ts
|
|
20806
|
+
/**
|
|
20807
|
+
* core-blocks — user-authored TypeScript, stored in the kernel and executed in
|
|
20808
|
+
* its own process.
|
|
20809
|
+
*
|
|
20810
|
+
* Spec: `docs/superpowers/specs/2026-08-04-core-blocks-and-synthetic-devices-design.md`.
|
|
20811
|
+
*
|
|
20812
|
+
* The first use is **owning devices without being a device provider**: a block
|
|
20813
|
+
* declares devices under a system or custom integration and drives their state,
|
|
20814
|
+
* with the same `ctx` an addon gets. Automations come later; nothing here
|
|
20815
|
+
* models a trigger.
|
|
20816
|
+
*
|
|
20817
|
+
* **Stated plainly, because it does not change by being true:** a block has an
|
|
20818
|
+
* addon's powers — devices, storage, the event bus, `ctx.api`. It is a plugin
|
|
20819
|
+
* with no review step. What makes that survivable is not a sandbox, it is
|
|
20820
|
+
* PROCESS ISOLATION: one process per block, supervised by `CrashSupervisor`,
|
|
20821
|
+
* so a block that throws or never returns is marked `failed` and visible
|
|
20822
|
+
* instead of taking the hub with it (D6). Every method here is admin-only, and
|
|
20823
|
+
* must stay so.
|
|
20824
|
+
*/
|
|
20825
|
+
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
20826
|
+
* agent is the reason placement is not fixed to the hub. */
|
|
20827
|
+
var CoreBlockPlacementSchema = zod.z.union([zod.z.literal("hub"), zod.z.string().min(1)]);
|
|
20828
|
+
/** What a block's process is doing. Mirrors the addon runner's own lifecycle so
|
|
20829
|
+
* a failing block reads the same way a failing addon does. */
|
|
20830
|
+
var CoreBlockStatusSchema = zod.z.enum([
|
|
20831
|
+
"stopped",
|
|
20832
|
+
"starting",
|
|
20833
|
+
"running",
|
|
20834
|
+
"failed"
|
|
20835
|
+
]);
|
|
20836
|
+
/** Client-authored fields. */
|
|
20837
|
+
var CoreBlockInputSchema = zod.z.object({
|
|
20838
|
+
name: zod.z.string().min(1).max(120),
|
|
20839
|
+
/** TypeScript source. Compiled server-side before it is ever stored — a
|
|
20840
|
+
* block that does not compile is a fork failure the operator would meet
|
|
20841
|
+
* minutes later, in a log, instead of in the editor. */
|
|
20842
|
+
code: zod.z.string().max(2e5),
|
|
20843
|
+
enabled: zod.z.boolean(),
|
|
20844
|
+
placement: CoreBlockPlacementSchema,
|
|
20845
|
+
/**
|
|
20846
|
+
* Integration the block's devices hang from. Absent = the system integration
|
|
20847
|
+
* blocks share. A block may declare its own instead.
|
|
20848
|
+
*/
|
|
20849
|
+
integrationId: zod.z.string().optional()
|
|
20850
|
+
});
|
|
20851
|
+
/** A stored block. */
|
|
20852
|
+
var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
20853
|
+
id: zod.z.string(),
|
|
20854
|
+
createdAt: zod.z.number(),
|
|
20855
|
+
updatedAt: zod.z.number(),
|
|
20856
|
+
/** Server-stamped author. */
|
|
20857
|
+
createdBy: zod.z.string(),
|
|
20858
|
+
status: CoreBlockStatusSchema,
|
|
20859
|
+
/**
|
|
20860
|
+
* Why the block is not running, when it is not. The operator's ONLY window
|
|
20861
|
+
* into a block that failed at load — a block that is silently absent is the
|
|
20862
|
+
* failure mode this whole feature has to avoid.
|
|
20863
|
+
*/
|
|
20864
|
+
lastError: zod.z.string().optional(),
|
|
20865
|
+
/** Ms epoch of the last state change. */
|
|
20866
|
+
lastChangedAt: zod.z.number()
|
|
20867
|
+
});
|
|
20868
|
+
/** What a compile attempt produced. */
|
|
20869
|
+
var CoreBlockCompileResultSchema = zod.z.object({
|
|
20870
|
+
ok: zod.z.boolean(),
|
|
20871
|
+
/** Present when `ok` is false — the first error, in the author's words. */
|
|
20872
|
+
error: zod.z.string().optional(),
|
|
20873
|
+
line: zod.z.number().optional(),
|
|
20874
|
+
column: zod.z.number().optional()
|
|
20875
|
+
});
|
|
20876
|
+
var coreBlocksCapability = {
|
|
20877
|
+
name: "core-blocks",
|
|
20878
|
+
scope: "system",
|
|
20879
|
+
mode: "singleton",
|
|
20880
|
+
methods: {
|
|
20881
|
+
list: require_sleep.method(zod.z.object({}), zod.z.object({ blocks: zod.z.array(CoreBlockSchema) }), { auth: "admin" }),
|
|
20882
|
+
get: require_sleep.method(zod.z.object({ blockId: zod.z.string() }), zod.z.object({ block: CoreBlockSchema.nullable() }), { auth: "admin" }),
|
|
20883
|
+
/**
|
|
20884
|
+
* Create a block. The code is COMPILED first: storing source that does not
|
|
20885
|
+
* compile turns an editor error into a fork failure the operator meets
|
|
20886
|
+
* minutes later in a log.
|
|
20887
|
+
*/
|
|
20888
|
+
create: require_sleep.method(zod.z.object({ block: CoreBlockInputSchema }), zod.z.object({ block: CoreBlockSchema }), {
|
|
20889
|
+
kind: "mutation",
|
|
20890
|
+
auth: "admin",
|
|
20891
|
+
caller: "required"
|
|
20892
|
+
}),
|
|
20893
|
+
update: require_sleep.method(zod.z.object({
|
|
20894
|
+
blockId: zod.z.string(),
|
|
20895
|
+
block: CoreBlockInputSchema.partial()
|
|
20896
|
+
}), zod.z.object({ block: CoreBlockSchema }), {
|
|
20897
|
+
kind: "mutation",
|
|
20898
|
+
auth: "admin",
|
|
20899
|
+
caller: "required"
|
|
20900
|
+
}),
|
|
20901
|
+
delete: require_sleep.method(zod.z.object({ blockId: zod.z.string() }), zod.z.object({ success: zod.z.literal(true) }), {
|
|
20902
|
+
kind: "mutation",
|
|
20903
|
+
auth: "admin"
|
|
20904
|
+
}),
|
|
20905
|
+
setEnabled: require_sleep.method(zod.z.object({
|
|
20906
|
+
blockId: zod.z.string(),
|
|
20907
|
+
enabled: zod.z.boolean()
|
|
20908
|
+
}), zod.z.object({ block: CoreBlockSchema }), {
|
|
20909
|
+
kind: "mutation",
|
|
20910
|
+
auth: "admin"
|
|
20911
|
+
}),
|
|
20912
|
+
/**
|
|
20913
|
+
* Type-check without saving — what the editor calls as the author types, so
|
|
20914
|
+
* the compiler's verdict is the same one the server will reach.
|
|
20915
|
+
*/
|
|
20916
|
+
compile: require_sleep.method(zod.z.object({ code: zod.z.string() }), CoreBlockCompileResultSchema, {
|
|
20917
|
+
kind: "mutation",
|
|
20918
|
+
auth: "admin"
|
|
20919
|
+
}),
|
|
20920
|
+
/**
|
|
20921
|
+
* The declaration files the editor type-checks against.
|
|
20922
|
+
*
|
|
20923
|
+
* Served rather than bundled: the graph is 3.4 MB across 344 files, and
|
|
20924
|
+
* bundling it would roughly double the admin remote. Served rather than
|
|
20925
|
+
* hand-stubbed: a block runs with the same `ctx` an addon gets, so a stub
|
|
20926
|
+
* would drift and the editor would confidently autocomplete methods that
|
|
20927
|
+
* do not exist.
|
|
20928
|
+
*/
|
|
20929
|
+
getTypeDefs: require_sleep.method(zod.z.object({}), zod.z.object({ libs: zod.z.array(zod.z.object({
|
|
20930
|
+
filePath: zod.z.string(),
|
|
20931
|
+
content: zod.z.string()
|
|
20932
|
+
})) }), { auth: "admin" })
|
|
20933
|
+
}
|
|
20934
|
+
};
|
|
20935
|
+
//#endregion
|
|
20795
20936
|
//#region src/schemas/auth-records.ts
|
|
20796
20937
|
/**
|
|
20797
20938
|
* Zod schemas for persisted record types.
|
|
@@ -27460,6 +27601,7 @@ var CAPABILITY_NAMES = {
|
|
|
27460
27601
|
consumables: "consumables",
|
|
27461
27602
|
contact: "contact",
|
|
27462
27603
|
control: "control",
|
|
27604
|
+
coreBlocks: "core-blocks",
|
|
27463
27605
|
cover: "cover",
|
|
27464
27606
|
customModelRegistry: "custom-model-registry",
|
|
27465
27607
|
dataStoreProvider: "data-store-provider",
|
|
@@ -27712,6 +27854,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
27712
27854
|
key: "control",
|
|
27713
27855
|
name: "control"
|
|
27714
27856
|
},
|
|
27857
|
+
{
|
|
27858
|
+
key: "coreBlocks",
|
|
27859
|
+
name: "core-blocks"
|
|
27860
|
+
},
|
|
27715
27861
|
{
|
|
27716
27862
|
key: "cover",
|
|
27717
27863
|
name: "cover"
|
|
@@ -28194,6 +28340,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
28194
28340
|
consumablesCapability,
|
|
28195
28341
|
contactCapability,
|
|
28196
28342
|
controlCapability,
|
|
28343
|
+
coreBlocksCapability,
|
|
28197
28344
|
coverCapability,
|
|
28198
28345
|
customModelRegistryCapability,
|
|
28199
28346
|
dataStoreProviderCapability,
|
|
@@ -29170,6 +29317,54 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
29170
29317
|
addonId: null,
|
|
29171
29318
|
access: "create"
|
|
29172
29319
|
},
|
|
29320
|
+
"coreBlocks.compile": {
|
|
29321
|
+
capName: "core-blocks",
|
|
29322
|
+
capScope: "system",
|
|
29323
|
+
addonId: null,
|
|
29324
|
+
access: "create"
|
|
29325
|
+
},
|
|
29326
|
+
"coreBlocks.create": {
|
|
29327
|
+
capName: "core-blocks",
|
|
29328
|
+
capScope: "system",
|
|
29329
|
+
addonId: null,
|
|
29330
|
+
access: "create"
|
|
29331
|
+
},
|
|
29332
|
+
"coreBlocks.delete": {
|
|
29333
|
+
capName: "core-blocks",
|
|
29334
|
+
capScope: "system",
|
|
29335
|
+
addonId: null,
|
|
29336
|
+
access: "delete"
|
|
29337
|
+
},
|
|
29338
|
+
"coreBlocks.get": {
|
|
29339
|
+
capName: "core-blocks",
|
|
29340
|
+
capScope: "system",
|
|
29341
|
+
addonId: null,
|
|
29342
|
+
access: "view"
|
|
29343
|
+
},
|
|
29344
|
+
"coreBlocks.getTypeDefs": {
|
|
29345
|
+
capName: "core-blocks",
|
|
29346
|
+
capScope: "system",
|
|
29347
|
+
addonId: null,
|
|
29348
|
+
access: "view"
|
|
29349
|
+
},
|
|
29350
|
+
"coreBlocks.list": {
|
|
29351
|
+
capName: "core-blocks",
|
|
29352
|
+
capScope: "system",
|
|
29353
|
+
addonId: null,
|
|
29354
|
+
access: "view"
|
|
29355
|
+
},
|
|
29356
|
+
"coreBlocks.setEnabled": {
|
|
29357
|
+
capName: "core-blocks",
|
|
29358
|
+
capScope: "system",
|
|
29359
|
+
addonId: null,
|
|
29360
|
+
access: "create"
|
|
29361
|
+
},
|
|
29362
|
+
"coreBlocks.update": {
|
|
29363
|
+
capName: "core-blocks",
|
|
29364
|
+
capScope: "system",
|
|
29365
|
+
addonId: null,
|
|
29366
|
+
access: "create"
|
|
29367
|
+
},
|
|
29173
29368
|
"cover.close": {
|
|
29174
29369
|
capName: "cover",
|
|
29175
29370
|
capScope: "device",
|
|
@@ -33479,6 +33674,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
33479
33674
|
"color",
|
|
33480
33675
|
"consumables",
|
|
33481
33676
|
"control",
|
|
33677
|
+
"core-blocks",
|
|
33482
33678
|
"cover",
|
|
33483
33679
|
"custom-model-registry",
|
|
33484
33680
|
"data-store-provider",
|
|
@@ -33643,6 +33839,7 @@ var SYSTEM_CAP_NAMES = [
|
|
|
33643
33839
|
"auth-provider",
|
|
33644
33840
|
"backup",
|
|
33645
33841
|
"broker",
|
|
33842
|
+
"core-blocks",
|
|
33646
33843
|
"custom-model-registry",
|
|
33647
33844
|
"data-store-provider",
|
|
33648
33845
|
"decoder",
|
|
@@ -34440,6 +34637,11 @@ exports.ControlStatusSchema = ControlStatusSchema;
|
|
|
34440
34637
|
exports.ConvertArtifactSchema = ConvertArtifactSchema;
|
|
34441
34638
|
exports.ConvertResultSchema = ConvertResultSchema;
|
|
34442
34639
|
exports.ConvertTargetSchema = ConvertTargetSchema;
|
|
34640
|
+
exports.CoreBlockCompileResultSchema = CoreBlockCompileResultSchema;
|
|
34641
|
+
exports.CoreBlockInputSchema = CoreBlockInputSchema;
|
|
34642
|
+
exports.CoreBlockPlacementSchema = CoreBlockPlacementSchema;
|
|
34643
|
+
exports.CoreBlockSchema = CoreBlockSchema;
|
|
34644
|
+
exports.CoreBlockStatusSchema = CoreBlockStatusSchema;
|
|
34443
34645
|
exports.CoverStateSchema = CoverStateSchema;
|
|
34444
34646
|
exports.CoverStatusSchema = CoverStatusSchema;
|
|
34445
34647
|
exports.CreateApiKeyInputSchema = CreateApiKeyInputSchema;
|
|
@@ -35024,6 +35226,7 @@ exports.consumablesCapability = consumablesCapability;
|
|
|
35024
35226
|
exports.contactCapability = contactCapability;
|
|
35025
35227
|
exports.controlCapability = controlCapability;
|
|
35026
35228
|
exports.convertUnit = convertUnit;
|
|
35229
|
+
exports.coreBlocksCapability = coreBlocksCapability;
|
|
35027
35230
|
exports.cosineSimilarity = cosineSimilarity;
|
|
35028
35231
|
exports.coverCapability = coverCapability;
|
|
35029
35232
|
exports.createDeviceProxy = require_sleep.createDeviceProxy;
|
package/dist/index.mjs
CHANGED
|
@@ -14971,6 +14971,16 @@ function createSystemProxy(api) {
|
|
|
14971
14971
|
getState: (input) => dispatch("broker", "getState", "query", input),
|
|
14972
14972
|
getStatus: (input) => dispatch("broker", "getStatus", "query", input)
|
|
14973
14973
|
},
|
|
14974
|
+
coreBlocks: {
|
|
14975
|
+
list: (input) => dispatch("coreBlocks", "list", "query", input),
|
|
14976
|
+
get: (input) => dispatch("coreBlocks", "get", "query", input),
|
|
14977
|
+
create: (input) => dispatch("coreBlocks", "create", "mutation", input),
|
|
14978
|
+
update: (input) => dispatch("coreBlocks", "update", "mutation", input),
|
|
14979
|
+
delete: (input) => dispatch("coreBlocks", "delete", "mutation", input),
|
|
14980
|
+
setEnabled: (input) => dispatch("coreBlocks", "setEnabled", "mutation", input),
|
|
14981
|
+
compile: (input) => dispatch("coreBlocks", "compile", "mutation", input),
|
|
14982
|
+
getTypeDefs: (input) => dispatch("coreBlocks", "getTypeDefs", "query", input)
|
|
14983
|
+
},
|
|
14974
14984
|
decoder: {
|
|
14975
14985
|
supportsCodec: (input) => dispatch("decoder", "supportsCodec", "query", input),
|
|
14976
14986
|
getInfo: (input) => dispatch("decoder", "getInfo", "query", input),
|
|
@@ -20791,6 +20801,137 @@ var notificationOutputCapability = {
|
|
|
20791
20801
|
}
|
|
20792
20802
|
};
|
|
20793
20803
|
//#endregion
|
|
20804
|
+
//#region src/capabilities/core-blocks.cap.ts
|
|
20805
|
+
/**
|
|
20806
|
+
* core-blocks — user-authored TypeScript, stored in the kernel and executed in
|
|
20807
|
+
* its own process.
|
|
20808
|
+
*
|
|
20809
|
+
* Spec: `docs/superpowers/specs/2026-08-04-core-blocks-and-synthetic-devices-design.md`.
|
|
20810
|
+
*
|
|
20811
|
+
* The first use is **owning devices without being a device provider**: a block
|
|
20812
|
+
* declares devices under a system or custom integration and drives their state,
|
|
20813
|
+
* with the same `ctx` an addon gets. Automations come later; nothing here
|
|
20814
|
+
* models a trigger.
|
|
20815
|
+
*
|
|
20816
|
+
* **Stated plainly, because it does not change by being true:** a block has an
|
|
20817
|
+
* addon's powers — devices, storage, the event bus, `ctx.api`. It is a plugin
|
|
20818
|
+
* with no review step. What makes that survivable is not a sandbox, it is
|
|
20819
|
+
* PROCESS ISOLATION: one process per block, supervised by `CrashSupervisor`,
|
|
20820
|
+
* so a block that throws or never returns is marked `failed` and visible
|
|
20821
|
+
* instead of taking the hub with it (D6). Every method here is admin-only, and
|
|
20822
|
+
* must stay so.
|
|
20823
|
+
*/
|
|
20824
|
+
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
20825
|
+
* agent is the reason placement is not fixed to the hub. */
|
|
20826
|
+
var CoreBlockPlacementSchema = z.union([z.literal("hub"), z.string().min(1)]);
|
|
20827
|
+
/** What a block's process is doing. Mirrors the addon runner's own lifecycle so
|
|
20828
|
+
* a failing block reads the same way a failing addon does. */
|
|
20829
|
+
var CoreBlockStatusSchema = z.enum([
|
|
20830
|
+
"stopped",
|
|
20831
|
+
"starting",
|
|
20832
|
+
"running",
|
|
20833
|
+
"failed"
|
|
20834
|
+
]);
|
|
20835
|
+
/** Client-authored fields. */
|
|
20836
|
+
var CoreBlockInputSchema = z.object({
|
|
20837
|
+
name: z.string().min(1).max(120),
|
|
20838
|
+
/** TypeScript source. Compiled server-side before it is ever stored — a
|
|
20839
|
+
* block that does not compile is a fork failure the operator would meet
|
|
20840
|
+
* minutes later, in a log, instead of in the editor. */
|
|
20841
|
+
code: z.string().max(2e5),
|
|
20842
|
+
enabled: z.boolean(),
|
|
20843
|
+
placement: CoreBlockPlacementSchema,
|
|
20844
|
+
/**
|
|
20845
|
+
* Integration the block's devices hang from. Absent = the system integration
|
|
20846
|
+
* blocks share. A block may declare its own instead.
|
|
20847
|
+
*/
|
|
20848
|
+
integrationId: z.string().optional()
|
|
20849
|
+
});
|
|
20850
|
+
/** A stored block. */
|
|
20851
|
+
var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
20852
|
+
id: z.string(),
|
|
20853
|
+
createdAt: z.number(),
|
|
20854
|
+
updatedAt: z.number(),
|
|
20855
|
+
/** Server-stamped author. */
|
|
20856
|
+
createdBy: z.string(),
|
|
20857
|
+
status: CoreBlockStatusSchema,
|
|
20858
|
+
/**
|
|
20859
|
+
* Why the block is not running, when it is not. The operator's ONLY window
|
|
20860
|
+
* into a block that failed at load — a block that is silently absent is the
|
|
20861
|
+
* failure mode this whole feature has to avoid.
|
|
20862
|
+
*/
|
|
20863
|
+
lastError: z.string().optional(),
|
|
20864
|
+
/** Ms epoch of the last state change. */
|
|
20865
|
+
lastChangedAt: z.number()
|
|
20866
|
+
});
|
|
20867
|
+
/** What a compile attempt produced. */
|
|
20868
|
+
var CoreBlockCompileResultSchema = z.object({
|
|
20869
|
+
ok: z.boolean(),
|
|
20870
|
+
/** Present when `ok` is false — the first error, in the author's words. */
|
|
20871
|
+
error: z.string().optional(),
|
|
20872
|
+
line: z.number().optional(),
|
|
20873
|
+
column: z.number().optional()
|
|
20874
|
+
});
|
|
20875
|
+
var coreBlocksCapability = {
|
|
20876
|
+
name: "core-blocks",
|
|
20877
|
+
scope: "system",
|
|
20878
|
+
mode: "singleton",
|
|
20879
|
+
methods: {
|
|
20880
|
+
list: method(z.object({}), z.object({ blocks: z.array(CoreBlockSchema) }), { auth: "admin" }),
|
|
20881
|
+
get: method(z.object({ blockId: z.string() }), z.object({ block: CoreBlockSchema.nullable() }), { auth: "admin" }),
|
|
20882
|
+
/**
|
|
20883
|
+
* Create a block. The code is COMPILED first: storing source that does not
|
|
20884
|
+
* compile turns an editor error into a fork failure the operator meets
|
|
20885
|
+
* minutes later in a log.
|
|
20886
|
+
*/
|
|
20887
|
+
create: method(z.object({ block: CoreBlockInputSchema }), z.object({ block: CoreBlockSchema }), {
|
|
20888
|
+
kind: "mutation",
|
|
20889
|
+
auth: "admin",
|
|
20890
|
+
caller: "required"
|
|
20891
|
+
}),
|
|
20892
|
+
update: method(z.object({
|
|
20893
|
+
blockId: z.string(),
|
|
20894
|
+
block: CoreBlockInputSchema.partial()
|
|
20895
|
+
}), z.object({ block: CoreBlockSchema }), {
|
|
20896
|
+
kind: "mutation",
|
|
20897
|
+
auth: "admin",
|
|
20898
|
+
caller: "required"
|
|
20899
|
+
}),
|
|
20900
|
+
delete: method(z.object({ blockId: z.string() }), z.object({ success: z.literal(true) }), {
|
|
20901
|
+
kind: "mutation",
|
|
20902
|
+
auth: "admin"
|
|
20903
|
+
}),
|
|
20904
|
+
setEnabled: method(z.object({
|
|
20905
|
+
blockId: z.string(),
|
|
20906
|
+
enabled: z.boolean()
|
|
20907
|
+
}), z.object({ block: CoreBlockSchema }), {
|
|
20908
|
+
kind: "mutation",
|
|
20909
|
+
auth: "admin"
|
|
20910
|
+
}),
|
|
20911
|
+
/**
|
|
20912
|
+
* Type-check without saving — what the editor calls as the author types, so
|
|
20913
|
+
* the compiler's verdict is the same one the server will reach.
|
|
20914
|
+
*/
|
|
20915
|
+
compile: method(z.object({ code: z.string() }), CoreBlockCompileResultSchema, {
|
|
20916
|
+
kind: "mutation",
|
|
20917
|
+
auth: "admin"
|
|
20918
|
+
}),
|
|
20919
|
+
/**
|
|
20920
|
+
* The declaration files the editor type-checks against.
|
|
20921
|
+
*
|
|
20922
|
+
* Served rather than bundled: the graph is 3.4 MB across 344 files, and
|
|
20923
|
+
* bundling it would roughly double the admin remote. Served rather than
|
|
20924
|
+
* hand-stubbed: a block runs with the same `ctx` an addon gets, so a stub
|
|
20925
|
+
* would drift and the editor would confidently autocomplete methods that
|
|
20926
|
+
* do not exist.
|
|
20927
|
+
*/
|
|
20928
|
+
getTypeDefs: method(z.object({}), z.object({ libs: z.array(z.object({
|
|
20929
|
+
filePath: z.string(),
|
|
20930
|
+
content: z.string()
|
|
20931
|
+
})) }), { auth: "admin" })
|
|
20932
|
+
}
|
|
20933
|
+
};
|
|
20934
|
+
//#endregion
|
|
20794
20935
|
//#region src/schemas/auth-records.ts
|
|
20795
20936
|
/**
|
|
20796
20937
|
* Zod schemas for persisted record types.
|
|
@@ -27459,6 +27600,7 @@ var CAPABILITY_NAMES = {
|
|
|
27459
27600
|
consumables: "consumables",
|
|
27460
27601
|
contact: "contact",
|
|
27461
27602
|
control: "control",
|
|
27603
|
+
coreBlocks: "core-blocks",
|
|
27462
27604
|
cover: "cover",
|
|
27463
27605
|
customModelRegistry: "custom-model-registry",
|
|
27464
27606
|
dataStoreProvider: "data-store-provider",
|
|
@@ -27711,6 +27853,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
27711
27853
|
key: "control",
|
|
27712
27854
|
name: "control"
|
|
27713
27855
|
},
|
|
27856
|
+
{
|
|
27857
|
+
key: "coreBlocks",
|
|
27858
|
+
name: "core-blocks"
|
|
27859
|
+
},
|
|
27714
27860
|
{
|
|
27715
27861
|
key: "cover",
|
|
27716
27862
|
name: "cover"
|
|
@@ -28193,6 +28339,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
28193
28339
|
consumablesCapability,
|
|
28194
28340
|
contactCapability,
|
|
28195
28341
|
controlCapability,
|
|
28342
|
+
coreBlocksCapability,
|
|
28196
28343
|
coverCapability,
|
|
28197
28344
|
customModelRegistryCapability,
|
|
28198
28345
|
dataStoreProviderCapability,
|
|
@@ -29169,6 +29316,54 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
29169
29316
|
addonId: null,
|
|
29170
29317
|
access: "create"
|
|
29171
29318
|
},
|
|
29319
|
+
"coreBlocks.compile": {
|
|
29320
|
+
capName: "core-blocks",
|
|
29321
|
+
capScope: "system",
|
|
29322
|
+
addonId: null,
|
|
29323
|
+
access: "create"
|
|
29324
|
+
},
|
|
29325
|
+
"coreBlocks.create": {
|
|
29326
|
+
capName: "core-blocks",
|
|
29327
|
+
capScope: "system",
|
|
29328
|
+
addonId: null,
|
|
29329
|
+
access: "create"
|
|
29330
|
+
},
|
|
29331
|
+
"coreBlocks.delete": {
|
|
29332
|
+
capName: "core-blocks",
|
|
29333
|
+
capScope: "system",
|
|
29334
|
+
addonId: null,
|
|
29335
|
+
access: "delete"
|
|
29336
|
+
},
|
|
29337
|
+
"coreBlocks.get": {
|
|
29338
|
+
capName: "core-blocks",
|
|
29339
|
+
capScope: "system",
|
|
29340
|
+
addonId: null,
|
|
29341
|
+
access: "view"
|
|
29342
|
+
},
|
|
29343
|
+
"coreBlocks.getTypeDefs": {
|
|
29344
|
+
capName: "core-blocks",
|
|
29345
|
+
capScope: "system",
|
|
29346
|
+
addonId: null,
|
|
29347
|
+
access: "view"
|
|
29348
|
+
},
|
|
29349
|
+
"coreBlocks.list": {
|
|
29350
|
+
capName: "core-blocks",
|
|
29351
|
+
capScope: "system",
|
|
29352
|
+
addonId: null,
|
|
29353
|
+
access: "view"
|
|
29354
|
+
},
|
|
29355
|
+
"coreBlocks.setEnabled": {
|
|
29356
|
+
capName: "core-blocks",
|
|
29357
|
+
capScope: "system",
|
|
29358
|
+
addonId: null,
|
|
29359
|
+
access: "create"
|
|
29360
|
+
},
|
|
29361
|
+
"coreBlocks.update": {
|
|
29362
|
+
capName: "core-blocks",
|
|
29363
|
+
capScope: "system",
|
|
29364
|
+
addonId: null,
|
|
29365
|
+
access: "create"
|
|
29366
|
+
},
|
|
29172
29367
|
"cover.close": {
|
|
29173
29368
|
capName: "cover",
|
|
29174
29369
|
capScope: "device",
|
|
@@ -33478,6 +33673,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
33478
33673
|
"color",
|
|
33479
33674
|
"consumables",
|
|
33480
33675
|
"control",
|
|
33676
|
+
"core-blocks",
|
|
33481
33677
|
"cover",
|
|
33482
33678
|
"custom-model-registry",
|
|
33483
33679
|
"data-store-provider",
|
|
@@ -33642,6 +33838,7 @@ var SYSTEM_CAP_NAMES = [
|
|
|
33642
33838
|
"auth-provider",
|
|
33643
33839
|
"backup",
|
|
33644
33840
|
"broker",
|
|
33841
|
+
"core-blocks",
|
|
33645
33842
|
"custom-model-registry",
|
|
33646
33843
|
"data-store-provider",
|
|
33647
33844
|
"decoder",
|
|
@@ -34290,4 +34487,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
34290
34487
|
return out;
|
|
34291
34488
|
}
|
|
34292
34489
|
//#endregion
|
|
34293
|
-
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDeviceStateFrom, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
34490
|
+
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlocksCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDeviceStateFrom, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|