@camstack/types 1.2.108 → 1.2.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/addons.cap.d.ts +9 -9
- package/dist/capabilities/broker.cap.d.ts +4 -4
- package/dist/capabilities/camera-streams.cap.d.ts +5 -5
- package/dist/capabilities/cap-router-predicates.d.ts +38 -1
- package/dist/capabilities/capability-definition.d.ts +15 -2
- package/dist/capabilities/climate-control.cap.d.ts +8 -8
- package/dist/capabilities/core-blocks.cap.d.ts +16 -16
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/decoder.cap.d.ts +13 -13
- package/dist/capabilities/device-manager.cap.d.ts +5 -5
- package/dist/capabilities/face-gallery.cap.d.ts +1 -1
- package/dist/capabilities/image-settings.cap.d.ts +16 -16
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
- package/dist/capabilities/llm.cap.d.ts +4 -4
- package/dist/capabilities/media-player.cap.d.ts +9 -9
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +3 -3
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/notification-output.cap.d.ts +9 -9
- package/dist/capabilities/notification-rules.cap.d.ts +10 -10
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/osd-manager.cap.d.ts +2 -2
- package/dist/capabilities/pipeline-analytics.cap.d.ts +96 -54
- package/dist/capabilities/pipeline-executor.cap.d.ts +67 -19
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +21 -21
- package/dist/capabilities/pipeline-runner.cap.d.ts +6 -6
- package/dist/capabilities/platform-probe.cap.d.ts +2 -2
- package/dist/capabilities/recording-export.cap.d.ts +7 -7
- package/dist/capabilities/recording.cap.d.ts +7 -7
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts +2 -2
- package/dist/capabilities/schemas/streaming-shared.d.ts +11 -11
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/storage-migration.cap.d.ts +4 -4
- package/dist/capabilities/storage.cap.d.ts +2 -2
- package/dist/capabilities/stream-broker.cap.d.ts +50 -50
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/capabilities/vacuum-control.cap.d.ts +26 -26
- package/dist/capabilities/webrtc-session.cap.d.ts +4 -4
- package/dist/generated/addon-api.d.ts +29 -8
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +109 -5
- package/dist/index.mjs +108 -5
- package/dist/interfaces/adoption-job.d.ts +2 -2
- package/dist/interfaces/relocate.d.ts +10 -10
- package/dist/interfaces/stream-broker.d.ts +2 -2
- package/dist/lifecycle/job.d.ts +8 -8
- package/dist/{sleep-OOwhyQIx.js → sleep-DnbNfEhn.js} +4 -1
- package/dist/{sleep-DCBRhx0s.mjs → sleep-swxwnJmL.mjs} +4 -1
- package/dist/types/frame-view.d.ts +10 -24
- package/dist/types/labels.d.ts +30 -1
- package/dist/types/models.d.ts +4 -4
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-EY0GNjV9.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-DnbNfEhn.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
|
|
2
|
-
import { B as ReadinessRegistry, E as adminUiCapability, L as nodePin, R as readNodePin, St as emitReadiness, T as DeviceType, V as ReadinessTimeoutError, W as scopeKey, _t as DisposerChain, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DATAPLANE_SECRET_HEADER, h as createEventBusSliceSource, j as expandCapMethods, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as BaseAddon, x as viewerUiCapability, yt as normalizeAddonInitResult } from "./sleep-
|
|
2
|
+
import { B as ReadinessRegistry, E as adminUiCapability, L as nodePin, R as readNodePin, St as emitReadiness, T as DeviceType, V as ReadinessTimeoutError, W as scopeKey, _t as DisposerChain, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DATAPLANE_SECRET_HEADER, h as createEventBusSliceSource, j as expandCapMethods, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as BaseAddon, x as viewerUiCapability, yt as normalizeAddonInitResult } from "./sleep-swxwnJmL.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
@@ -129,9 +129,9 @@ declare const AddonAutoUpdateSchema: z.ZodEnum<{
|
|
|
129
129
|
inherit: "inherit";
|
|
130
130
|
}>;
|
|
131
131
|
declare const BulkUpdateItemStatusSchema: z.ZodEnum<{
|
|
132
|
+
failed: "failed";
|
|
132
133
|
queued: "queued";
|
|
133
134
|
done: "done";
|
|
134
|
-
failed: "failed";
|
|
135
135
|
updating: "updating";
|
|
136
136
|
"done-pending-restart": "done-pending-restart";
|
|
137
137
|
}>;
|
|
@@ -141,9 +141,9 @@ declare const BulkUpdateItemSchema: z.ZodObject<{
|
|
|
141
141
|
fromVersion: z.ZodString;
|
|
142
142
|
toVersion: z.ZodString;
|
|
143
143
|
status: z.ZodEnum<{
|
|
144
|
+
failed: "failed";
|
|
144
145
|
queued: "queued";
|
|
145
146
|
done: "done";
|
|
146
|
-
failed: "failed";
|
|
147
147
|
updating: "updating";
|
|
148
148
|
"done-pending-restart": "done-pending-restart";
|
|
149
149
|
}>;
|
|
@@ -179,9 +179,9 @@ declare const BulkUpdateStateSchema: z.ZodObject<{
|
|
|
179
179
|
fromVersion: z.ZodString;
|
|
180
180
|
toVersion: z.ZodString;
|
|
181
181
|
status: z.ZodEnum<{
|
|
182
|
+
failed: "failed";
|
|
182
183
|
queued: "queued";
|
|
183
184
|
done: "done";
|
|
184
|
-
failed: "failed";
|
|
185
185
|
updating: "updating";
|
|
186
186
|
"done-pending-restart": "done-pending-restart";
|
|
187
187
|
}>;
|
|
@@ -601,6 +601,7 @@ export declare const addonsCapability: {
|
|
|
601
601
|
addon: "addon";
|
|
602
602
|
}>;
|
|
603
603
|
phase: z.ZodEnum<{
|
|
604
|
+
failed: "failed";
|
|
604
605
|
queued: "queued";
|
|
605
606
|
fetching: "fetching";
|
|
606
607
|
staged: "staged";
|
|
@@ -609,7 +610,6 @@ export declare const addonsCapability: {
|
|
|
609
610
|
restarting: "restarting";
|
|
610
611
|
applied: "applied";
|
|
611
612
|
done: "done";
|
|
612
|
-
failed: "failed";
|
|
613
613
|
skipped: "skipped";
|
|
614
614
|
}>;
|
|
615
615
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -619,6 +619,7 @@ export declare const addonsCapability: {
|
|
|
619
619
|
nodeId: z.ZodString;
|
|
620
620
|
packageName: z.ZodString;
|
|
621
621
|
phase: z.ZodEnum<{
|
|
622
|
+
failed: "failed";
|
|
622
623
|
queued: "queued";
|
|
623
624
|
fetching: "fetching";
|
|
624
625
|
staged: "staged";
|
|
@@ -627,7 +628,6 @@ export declare const addonsCapability: {
|
|
|
627
628
|
restarting: "restarting";
|
|
628
629
|
applied: "applied";
|
|
629
630
|
done: "done";
|
|
630
|
-
failed: "failed";
|
|
631
631
|
skipped: "skipped";
|
|
632
632
|
}>;
|
|
633
633
|
message: z.ZodString;
|
|
@@ -637,8 +637,8 @@ export declare const addonsCapability: {
|
|
|
637
637
|
finishedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
638
638
|
}, z.core.$strip>>;
|
|
639
639
|
state: z.ZodEnum<{
|
|
640
|
-
running: "running";
|
|
641
640
|
failed: "failed";
|
|
641
|
+
running: "running";
|
|
642
642
|
completed: "completed";
|
|
643
643
|
"partially-failed": "partially-failed";
|
|
644
644
|
cancelled: "cancelled";
|
|
@@ -677,6 +677,7 @@ export declare const addonsCapability: {
|
|
|
677
677
|
addon: "addon";
|
|
678
678
|
}>;
|
|
679
679
|
phase: z.ZodEnum<{
|
|
680
|
+
failed: "failed";
|
|
680
681
|
queued: "queued";
|
|
681
682
|
fetching: "fetching";
|
|
682
683
|
staged: "staged";
|
|
@@ -685,7 +686,6 @@ export declare const addonsCapability: {
|
|
|
685
686
|
restarting: "restarting";
|
|
686
687
|
applied: "applied";
|
|
687
688
|
done: "done";
|
|
688
|
-
failed: "failed";
|
|
689
689
|
skipped: "skipped";
|
|
690
690
|
}>;
|
|
691
691
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -695,6 +695,7 @@ export declare const addonsCapability: {
|
|
|
695
695
|
nodeId: z.ZodString;
|
|
696
696
|
packageName: z.ZodString;
|
|
697
697
|
phase: z.ZodEnum<{
|
|
698
|
+
failed: "failed";
|
|
698
699
|
queued: "queued";
|
|
699
700
|
fetching: "fetching";
|
|
700
701
|
staged: "staged";
|
|
@@ -703,7 +704,6 @@ export declare const addonsCapability: {
|
|
|
703
704
|
restarting: "restarting";
|
|
704
705
|
applied: "applied";
|
|
705
706
|
done: "done";
|
|
706
|
-
failed: "failed";
|
|
707
707
|
skipped: "skipped";
|
|
708
708
|
}>;
|
|
709
709
|
message: z.ZodString;
|
|
@@ -713,8 +713,8 @@ export declare const addonsCapability: {
|
|
|
713
713
|
finishedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
714
714
|
}, z.core.$strip>>;
|
|
715
715
|
state: z.ZodEnum<{
|
|
716
|
-
running: "running";
|
|
717
716
|
failed: "failed";
|
|
717
|
+
running: "running";
|
|
718
718
|
completed: "completed";
|
|
719
719
|
"partially-failed": "partially-failed";
|
|
720
720
|
cancelled: "cancelled";
|
|
@@ -47,9 +47,9 @@ import { type InferProvider } from './capability-definition.js';
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const BrokerStatusEnum: z.ZodEnum<{
|
|
49
49
|
error: "error";
|
|
50
|
+
connecting: "connecting";
|
|
50
51
|
connected: "connected";
|
|
51
52
|
disconnected: "disconnected";
|
|
52
|
-
connecting: "connecting";
|
|
53
53
|
"auth-failed": "auth-failed";
|
|
54
54
|
unreachable: "unreachable";
|
|
55
55
|
}>;
|
|
@@ -61,9 +61,9 @@ declare const BrokerInfoSchema: z.ZodObject<{
|
|
|
61
61
|
kind: z.ZodString;
|
|
62
62
|
status: z.ZodEnum<{
|
|
63
63
|
error: "error";
|
|
64
|
+
connecting: "connecting";
|
|
64
65
|
connected: "connected";
|
|
65
66
|
disconnected: "disconnected";
|
|
66
|
-
connecting: "connecting";
|
|
67
67
|
"auth-failed": "auth-failed";
|
|
68
68
|
unreachable: "unreachable";
|
|
69
69
|
}>;
|
|
@@ -162,9 +162,9 @@ export declare const brokerCapability: {
|
|
|
162
162
|
kind: z.ZodString;
|
|
163
163
|
status: z.ZodEnum<{
|
|
164
164
|
error: "error";
|
|
165
|
+
connecting: "connecting";
|
|
165
166
|
connected: "connected";
|
|
166
167
|
disconnected: "disconnected";
|
|
167
|
-
connecting: "connecting";
|
|
168
168
|
"auth-failed": "auth-failed";
|
|
169
169
|
unreachable: "unreachable";
|
|
170
170
|
}>;
|
|
@@ -181,9 +181,9 @@ export declare const brokerCapability: {
|
|
|
181
181
|
kind: z.ZodString;
|
|
182
182
|
status: z.ZodEnum<{
|
|
183
183
|
error: "error";
|
|
184
|
+
connecting: "connecting";
|
|
184
185
|
connected: "connected";
|
|
185
186
|
disconnected: "disconnected";
|
|
186
|
-
connecting: "connecting";
|
|
187
187
|
"auth-failed": "auth-failed";
|
|
188
188
|
unreachable: "unreachable";
|
|
189
189
|
}>;
|
|
@@ -116,9 +116,9 @@ export declare const cameraStreamsCapability: {
|
|
|
116
116
|
sourceCamStreamId: z.ZodNullable<z.ZodString>;
|
|
117
117
|
status: z.ZodEnum<{
|
|
118
118
|
error: "error";
|
|
119
|
-
connecting: "connecting";
|
|
120
119
|
unassigned: "unassigned";
|
|
121
120
|
idle: "idle";
|
|
121
|
+
connecting: "connecting";
|
|
122
122
|
streaming: "streaming";
|
|
123
123
|
}>;
|
|
124
124
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
@@ -280,9 +280,9 @@ export declare const cameraStreamsCapability: {
|
|
|
280
280
|
sourceCamStreamId: z.ZodNullable<z.ZodString>;
|
|
281
281
|
status: z.ZodEnum<{
|
|
282
282
|
error: "error";
|
|
283
|
-
connecting: "connecting";
|
|
284
283
|
unassigned: "unassigned";
|
|
285
284
|
idle: "idle";
|
|
285
|
+
connecting: "connecting";
|
|
286
286
|
streaming: "streaming";
|
|
287
287
|
}>;
|
|
288
288
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
@@ -323,23 +323,23 @@ export declare const cameraStreamsCapability: {
|
|
|
323
323
|
slotStatuses: z.ZodObject<{
|
|
324
324
|
high: z.ZodOptional<z.ZodEnum<{
|
|
325
325
|
error: "error";
|
|
326
|
-
connecting: "connecting";
|
|
327
326
|
unassigned: "unassigned";
|
|
328
327
|
idle: "idle";
|
|
328
|
+
connecting: "connecting";
|
|
329
329
|
streaming: "streaming";
|
|
330
330
|
}>>;
|
|
331
331
|
mid: z.ZodOptional<z.ZodEnum<{
|
|
332
332
|
error: "error";
|
|
333
|
-
connecting: "connecting";
|
|
334
333
|
unassigned: "unassigned";
|
|
335
334
|
idle: "idle";
|
|
335
|
+
connecting: "connecting";
|
|
336
336
|
streaming: "streaming";
|
|
337
337
|
}>>;
|
|
338
338
|
low: z.ZodOptional<z.ZodEnum<{
|
|
339
339
|
error: "error";
|
|
340
|
-
connecting: "connecting";
|
|
341
340
|
unassigned: "unassigned";
|
|
342
341
|
idle: "idle";
|
|
342
|
+
connecting: "connecting";
|
|
343
343
|
streaming: "streaming";
|
|
344
344
|
}>>;
|
|
345
345
|
}, z.core.$strip>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* makes the two paths provably agree. Each predicate accepts both Zod 4
|
|
11
11
|
* (`_def.type`) and legacy Zod 3 (`_def.typeName` / `constructor.name`) shapes.
|
|
12
12
|
*/
|
|
13
|
-
import type { CapabilityDefinition } from './capability-definition.js';
|
|
13
|
+
import type { CapabilityDefinition, CapabilityMethodAuth } from './capability-definition.js';
|
|
14
14
|
/** `z.void()` — input carries no data. */
|
|
15
15
|
export declare function isVoidInput(schema: unknown): boolean;
|
|
16
16
|
/** `z.object()` — supports `.loose()` for out-of-band `nodeId`/`addonId` keys. */
|
|
@@ -86,6 +86,43 @@ export declare function extractNestedAddonId(input: unknown): string | undefined
|
|
|
86
86
|
* for non-object schemas.
|
|
87
87
|
*/
|
|
88
88
|
export declare function objectInputDeclaresAddonId(schema: unknown): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Effective auth for a cap method — the `internal: true` floor (Task 7.5c).
|
|
91
|
+
*
|
|
92
|
+
* `internal: true` on a cap def is a DECLARATION that its methods are for
|
|
93
|
+
* in-process (`ctx.api`) consumption only. Nothing enforced that:
|
|
94
|
+
* `resolveCapMount` never reads `internal` (an internal cap still gets a
|
|
95
|
+
* full tRPC router), and a method that omitted an explicit `auth` used to
|
|
96
|
+
* default — permanently, at `method()`-call time — to `'protected'`,
|
|
97
|
+
* reachable by any authenticated session regardless of `internal`. That
|
|
98
|
+
* silent default is how 45 procedures across 13 internal caps ended up
|
|
99
|
+
* exposed, including `ssoBridge.signBridgeToken`: it accepted
|
|
100
|
+
* caller-supplied claims (including `isAdmin`), was reachable by any
|
|
101
|
+
* authenticated session, and its token is redeemed at
|
|
102
|
+
* `/api/auth/sso/finish` to mint a session — a full privilege escalation.
|
|
103
|
+
* See `docs/decisions/adr-0240-an-internal-cap-floors-its-unannotated-methods-to-admin.md`
|
|
104
|
+
* (D240) for the record.
|
|
105
|
+
*
|
|
106
|
+
* The floor, exactly: an `internal` cap's method with NO explicit `auth`
|
|
107
|
+
* resolves to `'admin'` instead of `'protected'`. A method that DELIBERATELY
|
|
108
|
+
* declares an explicit `auth` — public, protected, or admin — keeps it
|
|
109
|
+
* unconditionally; the author already said what they meant, and an
|
|
110
|
+
* annotation that happens to agree with the floor is documentation, not
|
|
111
|
+
* redundancy. A non-`internal` cap's un-annotated method is unaffected
|
|
112
|
+
* (still `'protected'`). This is a FLOOR, not a hard `mount: 'skip'` — that
|
|
113
|
+
* would also override a deliberate `auth: 'public'`/`'protected'` choice,
|
|
114
|
+
* which is not the defect being closed.
|
|
115
|
+
*
|
|
116
|
+
* `method()` (`capability-definition.ts`) deliberately leaves `auth`
|
|
117
|
+
* UNSET when the caller omits it (rather than defaulting there) so the
|
|
118
|
+
* "was this explicit" bit survives to this single resolution point. Single
|
|
119
|
+
* source of truth shared by the runtime builder (`cap-router-builder.ts`)
|
|
120
|
+
* and the codegen (`generate-cap-routers.ts`, `gen-api-reference.ts`) — the
|
|
121
|
+
* two must never disagree, a documented failure mode in this repo.
|
|
122
|
+
*/
|
|
123
|
+
export declare function resolveMethodAuth(def: Pick<CapabilityDefinition, 'internal'>, method: {
|
|
124
|
+
readonly auth?: CapabilityMethodAuth;
|
|
125
|
+
}): CapabilityMethodAuth;
|
|
89
126
|
/** Auth level → base-procedure key. `superAdmin` collapses to `admin`. */
|
|
90
127
|
export declare function procedureAuthKey(auth: string): 'public' | 'protected' | 'admin';
|
|
91
128
|
/** kebab-case cap name → camelCase router-map key. */
|
|
@@ -80,8 +80,21 @@ export interface CapabilityMethodSchema<TInput extends z.ZodType = z.ZodType, TO
|
|
|
80
80
|
readonly output: TOutput;
|
|
81
81
|
/** tRPC procedure kind. Default: 'query'. */
|
|
82
82
|
readonly kind: TKind;
|
|
83
|
-
/**
|
|
84
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Auth level. OPTIONAL and left unset by `method()` when the caller
|
|
85
|
+
* doesn't pass one — the DEFAULT is resolved later, per-cap, by
|
|
86
|
+
* {@link resolveMethodAuth} (`cap-router-predicates.ts`), never baked in
|
|
87
|
+
* here. That deferral is load-bearing: `resolveMethodAuth` floors an
|
|
88
|
+
* un-set `auth` to `'admin'` on an `internal: true` cap and to
|
|
89
|
+
* `'protected'` otherwise (Task 7.5c). Baking a `'protected'` default in
|
|
90
|
+
* at THIS layer would erase the "did the author actually decide this"
|
|
91
|
+
* bit before it ever reached that floor — which is exactly how 45
|
|
92
|
+
* procedures across 13 internal caps (including
|
|
93
|
+
* `ssoBridge.signBridgeToken`, a caller-suppliable-`isAdmin` privilege
|
|
94
|
+
* escalation) ended up reachable by any authenticated session. An
|
|
95
|
+
* EXPLICIT `auth` here — of any value — always wins over the floor.
|
|
96
|
+
*/
|
|
97
|
+
readonly auth?: CapabilityMethodAuth;
|
|
85
98
|
/** Per-method access flavour. When unset, codegen derives it from `kind` + name heuristic. */
|
|
86
99
|
readonly access?: CapabilityMethodAccess;
|
|
87
100
|
/** Moleculer action timeout override (ms). Overrides broker global requestTimeout for this action only. */
|
|
@@ -33,8 +33,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
33
33
|
* — any climate device (not just Gree) can advertise either / both axes.
|
|
34
34
|
*/
|
|
35
35
|
export declare const HvacModeSchema: z.ZodEnum<{
|
|
36
|
-
off: "off";
|
|
37
36
|
auto: "auto";
|
|
37
|
+
off: "off";
|
|
38
38
|
heat: "heat";
|
|
39
39
|
cool: "cool";
|
|
40
40
|
heat_cool: "heat_cool";
|
|
@@ -44,8 +44,8 @@ export declare const HvacModeSchema: z.ZodEnum<{
|
|
|
44
44
|
export type HvacMode = z.infer<typeof HvacModeSchema>;
|
|
45
45
|
export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
46
46
|
mode: z.ZodEnum<{
|
|
47
|
-
off: "off";
|
|
48
47
|
auto: "auto";
|
|
48
|
+
off: "off";
|
|
49
49
|
heat: "heat";
|
|
50
50
|
cool: "cool";
|
|
51
51
|
heat_cool: "heat_cool";
|
|
@@ -53,8 +53,8 @@ export declare const ClimateControlStatusSchema: z.ZodObject<{
|
|
|
53
53
|
dry: "dry";
|
|
54
54
|
}>;
|
|
55
55
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
56
|
-
off: "off";
|
|
57
56
|
auto: "auto";
|
|
57
|
+
off: "off";
|
|
58
58
|
heat: "heat";
|
|
59
59
|
cool: "cool";
|
|
60
60
|
heat_cool: "heat_cool";
|
|
@@ -86,8 +86,8 @@ export declare const climateControlCapability: {
|
|
|
86
86
|
readonly setMode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
87
87
|
deviceId: z.ZodNumber;
|
|
88
88
|
mode: z.ZodEnum<{
|
|
89
|
-
off: "off";
|
|
90
89
|
auto: "auto";
|
|
90
|
+
off: "off";
|
|
91
91
|
heat: "heat";
|
|
92
92
|
cool: "cool";
|
|
93
93
|
heat_cool: "heat_cool";
|
|
@@ -128,8 +128,8 @@ export declare const climateControlCapability: {
|
|
|
128
128
|
readonly status: {
|
|
129
129
|
readonly schema: z.ZodObject<{
|
|
130
130
|
mode: z.ZodEnum<{
|
|
131
|
-
off: "off";
|
|
132
131
|
auto: "auto";
|
|
132
|
+
off: "off";
|
|
133
133
|
heat: "heat";
|
|
134
134
|
cool: "cool";
|
|
135
135
|
heat_cool: "heat_cool";
|
|
@@ -137,8 +137,8 @@ export declare const climateControlCapability: {
|
|
|
137
137
|
dry: "dry";
|
|
138
138
|
}>;
|
|
139
139
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
140
|
-
off: "off";
|
|
141
140
|
auto: "auto";
|
|
141
|
+
off: "off";
|
|
142
142
|
heat: "heat";
|
|
143
143
|
cool: "cool";
|
|
144
144
|
heat_cool: "heat_cool";
|
|
@@ -168,8 +168,8 @@ export declare const climateControlCapability: {
|
|
|
168
168
|
*/
|
|
169
169
|
readonly runtimeState: z.ZodObject<{
|
|
170
170
|
mode: z.ZodEnum<{
|
|
171
|
-
off: "off";
|
|
172
171
|
auto: "auto";
|
|
172
|
+
off: "off";
|
|
173
173
|
heat: "heat";
|
|
174
174
|
cool: "cool";
|
|
175
175
|
heat_cool: "heat_cool";
|
|
@@ -177,8 +177,8 @@ export declare const climateControlCapability: {
|
|
|
177
177
|
dry: "dry";
|
|
178
178
|
}>;
|
|
179
179
|
availableModes: z.ZodArray<z.ZodEnum<{
|
|
180
|
-
off: "off";
|
|
181
180
|
auto: "auto";
|
|
181
|
+
off: "off";
|
|
182
182
|
heat: "heat";
|
|
183
183
|
cool: "cool";
|
|
184
184
|
heat_cool: "heat_cool";
|
|
@@ -59,9 +59,9 @@ export type CoreBlockPlacement = z.infer<typeof CoreBlockPlacementSchema>;
|
|
|
59
59
|
/** What a block's process is doing. Mirrors the addon runner's own lifecycle so
|
|
60
60
|
* a failing block reads the same way a failing addon does. */
|
|
61
61
|
export declare const CoreBlockStatusSchema: z.ZodEnum<{
|
|
62
|
-
running: "running";
|
|
63
|
-
failed: "failed";
|
|
64
62
|
stopped: "stopped";
|
|
63
|
+
failed: "failed";
|
|
64
|
+
running: "running";
|
|
65
65
|
starting: "starting";
|
|
66
66
|
}>;
|
|
67
67
|
export type CoreBlockStatus = z.infer<typeof CoreBlockStatusSchema>;
|
|
@@ -86,9 +86,9 @@ export declare const CoreBlockSchema: z.ZodObject<{
|
|
|
86
86
|
updatedAt: z.ZodNumber;
|
|
87
87
|
createdBy: z.ZodString;
|
|
88
88
|
status: z.ZodEnum<{
|
|
89
|
-
running: "running";
|
|
90
|
-
failed: "failed";
|
|
91
89
|
stopped: "stopped";
|
|
90
|
+
failed: "failed";
|
|
91
|
+
running: "running";
|
|
92
92
|
starting: "starting";
|
|
93
93
|
}>;
|
|
94
94
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -120,9 +120,9 @@ export declare const coreBlocksCapability: {
|
|
|
120
120
|
updatedAt: z.ZodNumber;
|
|
121
121
|
createdBy: z.ZodString;
|
|
122
122
|
status: z.ZodEnum<{
|
|
123
|
-
running: "running";
|
|
124
|
-
failed: "failed";
|
|
125
123
|
stopped: "stopped";
|
|
124
|
+
failed: "failed";
|
|
125
|
+
running: "running";
|
|
126
126
|
starting: "starting";
|
|
127
127
|
}>;
|
|
128
128
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -143,9 +143,9 @@ export declare const coreBlocksCapability: {
|
|
|
143
143
|
updatedAt: z.ZodNumber;
|
|
144
144
|
createdBy: z.ZodString;
|
|
145
145
|
status: z.ZodEnum<{
|
|
146
|
-
running: "running";
|
|
147
|
-
failed: "failed";
|
|
148
146
|
stopped: "stopped";
|
|
147
|
+
failed: "failed";
|
|
148
|
+
running: "running";
|
|
149
149
|
starting: "starting";
|
|
150
150
|
}>;
|
|
151
151
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -177,9 +177,9 @@ export declare const coreBlocksCapability: {
|
|
|
177
177
|
updatedAt: z.ZodNumber;
|
|
178
178
|
createdBy: z.ZodString;
|
|
179
179
|
status: z.ZodEnum<{
|
|
180
|
-
running: "running";
|
|
181
|
-
failed: "failed";
|
|
182
180
|
stopped: "stopped";
|
|
181
|
+
failed: "failed";
|
|
182
|
+
running: "running";
|
|
183
183
|
starting: "starting";
|
|
184
184
|
}>;
|
|
185
185
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -209,9 +209,9 @@ export declare const coreBlocksCapability: {
|
|
|
209
209
|
updatedAt: z.ZodNumber;
|
|
210
210
|
createdBy: z.ZodString;
|
|
211
211
|
status: z.ZodEnum<{
|
|
212
|
-
running: "running";
|
|
213
|
-
failed: "failed";
|
|
214
212
|
stopped: "stopped";
|
|
213
|
+
failed: "failed";
|
|
214
|
+
running: "running";
|
|
215
215
|
starting: "starting";
|
|
216
216
|
}>;
|
|
217
217
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -240,9 +240,9 @@ export declare const coreBlocksCapability: {
|
|
|
240
240
|
updatedAt: z.ZodNumber;
|
|
241
241
|
createdBy: z.ZodString;
|
|
242
242
|
status: z.ZodEnum<{
|
|
243
|
-
running: "running";
|
|
244
|
-
failed: "failed";
|
|
245
243
|
stopped: "stopped";
|
|
244
|
+
failed: "failed";
|
|
245
|
+
running: "running";
|
|
246
246
|
starting: "starting";
|
|
247
247
|
}>;
|
|
248
248
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -276,9 +276,9 @@ export declare const coreBlocksCapability: {
|
|
|
276
276
|
updatedAt: z.ZodNumber;
|
|
277
277
|
createdBy: z.ZodString;
|
|
278
278
|
status: z.ZodEnum<{
|
|
279
|
-
running: "running";
|
|
280
|
-
failed: "failed";
|
|
281
279
|
stopped: "stopped";
|
|
280
|
+
failed: "failed";
|
|
281
|
+
running: "running";
|
|
282
282
|
starting: "starting";
|
|
283
283
|
}>;
|
|
284
284
|
lastError: z.ZodOptional<z.ZodString>;
|
|
@@ -18,8 +18,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
18
18
|
*/
|
|
19
19
|
/** IR-cut switching mode. `schedule` = time-of-day table configured on the camera. */
|
|
20
20
|
export declare const DayNightModeSchema: z.ZodEnum<{
|
|
21
|
-
night: "night";
|
|
22
21
|
auto: "auto";
|
|
22
|
+
night: "night";
|
|
23
23
|
day: "day";
|
|
24
24
|
schedule: "schedule";
|
|
25
25
|
}>;
|
|
@@ -30,8 +30,8 @@ export declare const DayNightModeSchema: z.ZodEnum<{
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const DayNightStatusSchema: z.ZodObject<{
|
|
32
32
|
mode: z.ZodEnum<{
|
|
33
|
-
night: "night";
|
|
34
33
|
auto: "auto";
|
|
34
|
+
night: "night";
|
|
35
35
|
day: "day";
|
|
36
36
|
schedule: "schedule";
|
|
37
37
|
}>;
|
|
@@ -47,8 +47,8 @@ export declare const DayNightStatusSchema: z.ZodObject<{
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const DayNightOptionsSchema: z.ZodObject<{
|
|
49
49
|
modes: z.ZodArray<z.ZodEnum<{
|
|
50
|
-
night: "night";
|
|
51
50
|
auto: "auto";
|
|
51
|
+
night: "night";
|
|
52
52
|
day: "day";
|
|
53
53
|
schedule: "schedule";
|
|
54
54
|
}>>;
|
|
@@ -71,8 +71,8 @@ export declare const DayNightOptionsSchema: z.ZodObject<{
|
|
|
71
71
|
*/
|
|
72
72
|
export declare const DayNightSettingsPatchSchema: z.ZodObject<{
|
|
73
73
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
74
|
-
night: "night";
|
|
75
74
|
auto: "auto";
|
|
75
|
+
night: "night";
|
|
76
76
|
day: "day";
|
|
77
77
|
schedule: "schedule";
|
|
78
78
|
}>>;
|
|
@@ -101,8 +101,8 @@ export declare const dayNightCapability: {
|
|
|
101
101
|
deviceId: z.ZodNumber;
|
|
102
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
103
103
|
modes: z.ZodArray<z.ZodEnum<{
|
|
104
|
-
night: "night";
|
|
105
104
|
auto: "auto";
|
|
105
|
+
night: "night";
|
|
106
106
|
day: "day";
|
|
107
107
|
schedule: "schedule";
|
|
108
108
|
}>>;
|
|
@@ -123,8 +123,8 @@ export declare const dayNightCapability: {
|
|
|
123
123
|
deviceId: z.ZodNumber;
|
|
124
124
|
settings: z.ZodObject<{
|
|
125
125
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
126
|
-
night: "night";
|
|
127
126
|
auto: "auto";
|
|
127
|
+
night: "night";
|
|
128
128
|
day: "day";
|
|
129
129
|
schedule: "schedule";
|
|
130
130
|
}>>;
|
|
@@ -136,8 +136,8 @@ export declare const dayNightCapability: {
|
|
|
136
136
|
readonly status: {
|
|
137
137
|
readonly schema: z.ZodObject<{
|
|
138
138
|
mode: z.ZodEnum<{
|
|
139
|
-
night: "night";
|
|
140
139
|
auto: "auto";
|
|
140
|
+
night: "night";
|
|
141
141
|
day: "day";
|
|
142
142
|
schedule: "schedule";
|
|
143
143
|
}>;
|
|
@@ -149,8 +149,8 @@ export declare const dayNightCapability: {
|
|
|
149
149
|
};
|
|
150
150
|
readonly runtimeState: z.ZodObject<{
|
|
151
151
|
mode: z.ZodEnum<{
|
|
152
|
-
night: "night";
|
|
153
152
|
auto: "auto";
|
|
153
|
+
night: "night";
|
|
154
154
|
day: "day";
|
|
155
155
|
schedule: "schedule";
|
|
156
156
|
}>;
|
|
@@ -68,11 +68,11 @@ export declare const decoderCapability: {
|
|
|
68
68
|
codec: z.ZodString;
|
|
69
69
|
maxFps: z.ZodDefault<z.ZodNumber>;
|
|
70
70
|
outputFormat: z.ZodDefault<z.ZodEnum<{
|
|
71
|
-
rgb: "rgb";
|
|
72
|
-
gray: "gray";
|
|
73
71
|
jpeg: "jpeg";
|
|
72
|
+
rgb: "rgb";
|
|
74
73
|
bgr: "bgr";
|
|
75
74
|
yuv420: "yuv420";
|
|
75
|
+
gray: "gray";
|
|
76
76
|
}>>;
|
|
77
77
|
scale: z.ZodDefault<z.ZodNumber>;
|
|
78
78
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -95,8 +95,8 @@ export declare const decoderCapability: {
|
|
|
95
95
|
sessionId: z.ZodString;
|
|
96
96
|
packet: z.ZodObject<{
|
|
97
97
|
type: z.ZodEnum<{
|
|
98
|
-
audio: "audio";
|
|
99
98
|
video: "video";
|
|
99
|
+
audio: "audio";
|
|
100
100
|
}>;
|
|
101
101
|
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
102
102
|
pts: z.ZodNumber;
|
|
@@ -118,11 +118,11 @@ export declare const decoderCapability: {
|
|
|
118
118
|
width: z.ZodNumber;
|
|
119
119
|
height: z.ZodNumber;
|
|
120
120
|
format: z.ZodEnum<{
|
|
121
|
-
rgb: "rgb";
|
|
122
|
-
gray: "gray";
|
|
123
121
|
jpeg: "jpeg";
|
|
122
|
+
rgb: "rgb";
|
|
124
123
|
bgr: "bgr";
|
|
125
124
|
yuv420: "yuv420";
|
|
125
|
+
gray: "gray";
|
|
126
126
|
}>;
|
|
127
127
|
timestamp: z.ZodNumber;
|
|
128
128
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
@@ -137,11 +137,11 @@ export declare const decoderCapability: {
|
|
|
137
137
|
width: z.ZodNumber;
|
|
138
138
|
height: z.ZodNumber;
|
|
139
139
|
format: z.ZodEnum<{
|
|
140
|
-
rgb: "rgb";
|
|
141
|
-
gray: "gray";
|
|
142
140
|
jpeg: "jpeg";
|
|
141
|
+
rgb: "rgb";
|
|
143
142
|
bgr: "bgr";
|
|
144
143
|
yuv420: "yuv420";
|
|
144
|
+
gray: "gray";
|
|
145
145
|
}>;
|
|
146
146
|
pts: z.ZodNumber;
|
|
147
147
|
byteLength: z.ZodNumber;
|
|
@@ -156,11 +156,11 @@ export declare const decoderCapability: {
|
|
|
156
156
|
width: z.ZodNumber;
|
|
157
157
|
height: z.ZodNumber;
|
|
158
158
|
format: z.ZodEnum<{
|
|
159
|
-
rgb: "rgb";
|
|
160
|
-
gray: "gray";
|
|
161
159
|
jpeg: "jpeg";
|
|
160
|
+
rgb: "rgb";
|
|
162
161
|
bgr: "bgr";
|
|
163
162
|
yuv420: "yuv420";
|
|
163
|
+
gray: "gray";
|
|
164
164
|
}>;
|
|
165
165
|
pts: z.ZodNumber;
|
|
166
166
|
byteLength: z.ZodNumber;
|
|
@@ -172,11 +172,11 @@ export declare const decoderCapability: {
|
|
|
172
172
|
width: z.ZodNumber;
|
|
173
173
|
height: z.ZodNumber;
|
|
174
174
|
format: z.ZodEnum<{
|
|
175
|
-
rgb: "rgb";
|
|
176
|
-
gray: "gray";
|
|
177
175
|
jpeg: "jpeg";
|
|
176
|
+
rgb: "rgb";
|
|
178
177
|
bgr: "bgr";
|
|
179
178
|
yuv420: "yuv420";
|
|
179
|
+
gray: "gray";
|
|
180
180
|
}>;
|
|
181
181
|
timestamp: z.ZodNumber;
|
|
182
182
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
@@ -198,11 +198,11 @@ export declare const decoderCapability: {
|
|
|
198
198
|
codec: z.ZodOptional<z.ZodString>;
|
|
199
199
|
maxFps: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
200
200
|
outputFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
201
|
-
rgb: "rgb";
|
|
202
|
-
gray: "gray";
|
|
203
201
|
jpeg: "jpeg";
|
|
202
|
+
rgb: "rgb";
|
|
204
203
|
bgr: "bgr";
|
|
205
204
|
yuv420: "yuv420";
|
|
205
|
+
gray: "gray";
|
|
206
206
|
}>>>;
|
|
207
207
|
scale: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
208
208
|
width: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|