@camstack/types 1.0.5 → 1.0.7
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/base-addon.d.ts +2 -2
- package/dist/addon.d.ts +34 -0
- package/dist/addon.js +22 -0
- package/dist/addon.mjs +3 -0
- package/dist/cap-call-context.d.ts +37 -0
- package/dist/capabilities/addons.cap.d.ts +3 -3
- package/dist/capabilities/advanced-notifier.cap.d.ts +4 -4
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/audio-codec.cap.d.ts +2 -2
- package/dist/capabilities/camera-streams.cap.d.ts +10 -10
- package/dist/capabilities/consumables.cap.d.ts +4 -4
- package/dist/capabilities/cover.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +6 -6
- package/dist/capabilities/log-destination.cap.d.ts +5 -5
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/mesh-network.cap.d.ts +3 -3
- package/dist/capabilities/metrics-provider.cap.d.ts +33 -3
- package/dist/capabilities/network-access.cap.d.ts +7 -7
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -3
- package/dist/capabilities/platform-probe.cap.d.ts +1 -1
- package/dist/capabilities/restreamer.cap.d.ts +2 -2
- package/dist/capabilities/schemas/streaming-shared.d.ts +7 -7
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/storage.cap.d.ts +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +27 -27
- package/dist/capabilities/stream-params.cap.d.ts +14 -14
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
- package/dist/capabilities/valve.cap.d.ts +4 -4
- package/dist/capabilities/webrtc-session.cap.d.ts +12 -12
- package/dist/deps/binary-downloader.d.ts +1 -1
- package/dist/deps/ffmpeg-downloader.d.ts +1 -1
- package/dist/deps/python-downloader.d.ts +1 -1
- package/dist/device/base-device-provider.d.ts +4 -1
- package/dist/encode-profile.d.ts +2 -2
- package/dist/err-msg-COpsHMw2.js +18 -0
- package/dist/err-msg-IQTHeDzc.mjs +13 -0
- package/dist/generated/addon-api.d.ts +22 -12
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/health/wiring-health.d.ts +16 -16
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1271 -4538
- package/dist/index.mjs +371 -3645
- package/dist/inference/runtime-capabilities.d.ts +54 -0
- package/dist/interfaces/addon.d.ts +2 -2
- package/dist/interfaces/metrics-provider.d.ts +3 -1
- package/dist/node.js +3 -3
- package/dist/node.mjs +1 -1
- package/dist/schemas/auth-records.d.ts +4 -4
- package/dist/sleep-B1dKJAMJ.mjs +3507 -0
- package/dist/sleep-p-5TJ_dy.js +3920 -0
- package/dist/storage/filesystem-storage-provider.d.ts +2 -1
- package/package.json +6 -1
|
@@ -182,8 +182,8 @@ export declare abstract class BaseAddon<TConfig extends object = Record<string,
|
|
|
182
182
|
protected globalSettingsSchema(_cap?: string): ConfigUISchema | null;
|
|
183
183
|
/** Override to provide device-level settings UI schema. */
|
|
184
184
|
protected deviceSettingsSchema(): ConfigUISchema | null;
|
|
185
|
-
getGlobalSettings(overlay?: Record<string, unknown>, cap?: string): Promise<ConfigUISchemaWithValues>;
|
|
186
|
-
updateGlobalSettings(patch: Partial<TConfig
|
|
185
|
+
getGlobalSettings(overlay?: Record<string, unknown>, cap?: string, _nodeId?: string): Promise<ConfigUISchemaWithValues | null>;
|
|
186
|
+
updateGlobalSettings(patch: Partial<TConfig>, _nodeId?: string): Promise<void>;
|
|
187
187
|
/**
|
|
188
188
|
* If any field in `patch` is marked `requiresRestart` in `schema`,
|
|
189
189
|
* schedule an addon restart for the next tick. Deferred via
|
package/dist/addon.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight addon-authoring + addon-runner entry point.
|
|
3
|
+
*
|
|
4
|
+
* Importing the root barrel (`@camstack/types`) eagerly constructs the entire
|
|
5
|
+
* schema graph (~1963 `z.object/enum/union(...)` builders across 378 files),
|
|
6
|
+
* costing ~47MB of V8 heap PER process. Every forked addon-runner paid that
|
|
7
|
+
* even though it only needs a handful of runtime helpers — 8 runners ≈ 1.4GB
|
|
8
|
+
* on the agent. There is no runtime tree-shaking in Node, and the package is
|
|
9
|
+
* externalized (loaded as the prebuilt barrel), so the bundler cannot drop the
|
|
10
|
+
* unused schemas. This subpath is the manual fix: it pulls ONLY the light,
|
|
11
|
+
* schema-free modules the runner + addons actually need at runtime.
|
|
12
|
+
*
|
|
13
|
+
* Each symbol below is imported from its DEEP source module (not the barrel and
|
|
14
|
+
* not `generated/capability-router-map`, which re-exports all 266 capabilities)
|
|
15
|
+
* so this entry's runtime graph stays small.
|
|
16
|
+
*
|
|
17
|
+
* See memory: camstack_runner_ram_and_build_rootcause.
|
|
18
|
+
*/
|
|
19
|
+
export { errMsg } from './utils/err-msg.js';
|
|
20
|
+
export { asJsonObject, asString, parseJsonUnknown } from './utils/json-safe.js';
|
|
21
|
+
export { sleep } from './utils/sleep.js';
|
|
22
|
+
export { EventCategory } from './enums/event-category.js';
|
|
23
|
+
export { DeviceType } from './device/device-type.js';
|
|
24
|
+
export { emitReadiness } from './interfaces/event-bus.js';
|
|
25
|
+
export { DisposerChain } from './disposer-chain.js';
|
|
26
|
+
export { ReadinessRegistry, ReadinessTimeoutError, scopeKey, } from './readiness/readiness-registry.js';
|
|
27
|
+
export { DATAPLANE_SECRET_HEADER } from './interfaces/addon-data-plane.js';
|
|
28
|
+
export { expandCapMethods } from './capabilities/capability-definition.js';
|
|
29
|
+
export { deviceOpsCapability } from './capabilities/device-ops.cap.js';
|
|
30
|
+
export { createDeviceProxy } from './generated/device-proxy.js';
|
|
31
|
+
export { BaseAddon, normalizeAddonInitResult } from './addon/base-addon.js';
|
|
32
|
+
export { adminUiCapability } from './capabilities/admin-ui.cap.js';
|
|
33
|
+
export type { IAdminUiProvider } from './capabilities/admin-ui.cap.js';
|
|
34
|
+
export type { ICamstackAddon, AddonDeclaration, AddonInitResult, ProviderRegistration, } from './interfaces/addon.js';
|
package/dist/addon.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_sleep = require("./sleep-p-5TJ_dy.js");
|
|
3
|
+
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
4
|
+
exports.BaseAddon = require_sleep.BaseAddon;
|
|
5
|
+
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
|
6
|
+
exports.DeviceType = require_sleep.DeviceType;
|
|
7
|
+
exports.DisposerChain = require_sleep.DisposerChain;
|
|
8
|
+
exports.EventCategory = require_sleep.EventCategory;
|
|
9
|
+
exports.ReadinessRegistry = require_sleep.ReadinessRegistry;
|
|
10
|
+
exports.ReadinessTimeoutError = require_sleep.ReadinessTimeoutError;
|
|
11
|
+
exports.adminUiCapability = require_sleep.adminUiCapability;
|
|
12
|
+
exports.asJsonObject = require_sleep.asJsonObject;
|
|
13
|
+
exports.asString = require_sleep.asString;
|
|
14
|
+
exports.createDeviceProxy = require_sleep.createDeviceProxy;
|
|
15
|
+
exports.deviceOpsCapability = require_sleep.deviceOpsCapability;
|
|
16
|
+
exports.emitReadiness = require_sleep.emitReadiness;
|
|
17
|
+
exports.errMsg = require_err_msg.errMsg;
|
|
18
|
+
exports.expandCapMethods = require_sleep.expandCapMethods;
|
|
19
|
+
exports.normalizeAddonInitResult = require_sleep.normalizeAddonInitResult;
|
|
20
|
+
exports.parseJsonUnknown = require_sleep.parseJsonUnknown;
|
|
21
|
+
exports.scopeKey = require_sleep.scopeKey;
|
|
22
|
+
exports.sleep = require_sleep.sleep;
|
package/dist/addon.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { A as ReadinessTimeoutError, D as parseJsonUnknown, N as scopeKey, O as DATAPLANE_SECRET_HEADER, S as asJsonObject, a as adminUiCapability, at as BaseAddon, ht as DisposerChain, i as deviceOpsCapability, k as ReadinessRegistry, lt as emitReadiness, mt as EventCategory, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, t as sleep, w as asString, y as DeviceType } from "./sleep-B1dKJAMJ.mjs";
|
|
2
|
+
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
3
|
+
export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-call node pinning for `ctx.api` capability calls.
|
|
3
|
+
*
|
|
4
|
+
* A capability call normally resolves to its DEFAULT provider — a `singleton`
|
|
5
|
+
* cap resolves to the hub, a device-scoped cap to the device's owning node. To
|
|
6
|
+
* query a SPECIFIC node's provider instead (e.g. a remote agent's own
|
|
7
|
+
* in-process `platform-probe` hardware, which the hub cannot probe), pin the
|
|
8
|
+
* call to that node.
|
|
9
|
+
*
|
|
10
|
+
* The nodeId rides OUT-OF-BAND in the tRPC call context (NOT in the validated
|
|
11
|
+
* method args), so capability method signatures stay `nodeId`-free — node
|
|
12
|
+
* targeting is a property of the CALL, not of the method. The transport lifts
|
|
13
|
+
* it from `op.context` onto the `CapCallInput.nodeId` field (`ipcParentLink`),
|
|
14
|
+
* and the hub parent's `onUnownedCall` passes it to the `CapRouteResolver`,
|
|
15
|
+
* which classifies a pinned agent node as `agent-child-forward`
|
|
16
|
+
* (`$agent-cap-fwd.forward` → the agent's in-process provider).
|
|
17
|
+
*
|
|
18
|
+
* Usage at a call site:
|
|
19
|
+
*
|
|
20
|
+
* await api.platformProbe.getCapabilities.query(undefined, nodePin(nodeId))
|
|
21
|
+
*/
|
|
22
|
+
/** tRPC `op.context` key carrying a per-call node pin. */
|
|
23
|
+
export declare const CAP_NODE_PIN_CONTEXT_KEY = "__camstackNodePin";
|
|
24
|
+
/** The tRPC request-options shape produced by {@link nodePin}. */
|
|
25
|
+
export interface NodePinnedRequestOptions {
|
|
26
|
+
readonly context: Readonly<Record<string, string>>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Build the tRPC request options that pin a single capability call to `nodeId`.
|
|
30
|
+
* Pass as the second argument to `.query(input, …)` / `.mutate(input, …)`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function nodePin(nodeId: string): NodePinnedRequestOptions;
|
|
33
|
+
/**
|
|
34
|
+
* Read a per-call node pin out of a tRPC `op.context` (transport side).
|
|
35
|
+
* Returns the pinned nodeId, or `undefined` when no pin is present.
|
|
36
|
+
*/
|
|
37
|
+
export declare function readNodePin(context: unknown): string | undefined;
|
|
@@ -16,9 +16,9 @@ import { type InferProvider } from './capability-definition.js';
|
|
|
16
16
|
* as every other cap.
|
|
17
17
|
*/
|
|
18
18
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
19
|
-
info: "info";
|
|
20
19
|
error: "error";
|
|
21
20
|
debug: "debug";
|
|
21
|
+
info: "info";
|
|
22
22
|
warn: "warn";
|
|
23
23
|
}>;
|
|
24
24
|
declare const ChannelSchema: z.ZodEnum<{
|
|
@@ -302,9 +302,9 @@ export declare const addonsCapability: {
|
|
|
302
302
|
addonId: z.ZodString;
|
|
303
303
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
304
304
|
level: z.ZodOptional<z.ZodEnum<{
|
|
305
|
-
info: "info";
|
|
306
305
|
error: "error";
|
|
307
306
|
debug: "debug";
|
|
307
|
+
info: "info";
|
|
308
308
|
warn: "warn";
|
|
309
309
|
}>>;
|
|
310
310
|
}, z.core.$strip>, z.ZodArray<z.ZodUnknown>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
@@ -768,9 +768,9 @@ export declare const addonsCapability: {
|
|
|
768
768
|
readonly onAddonLogs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
769
769
|
addonId: z.ZodString;
|
|
770
770
|
level: z.ZodOptional<z.ZodEnum<{
|
|
771
|
-
info: "info";
|
|
772
771
|
error: "error";
|
|
773
772
|
debug: "debug";
|
|
773
|
+
info: "info";
|
|
774
774
|
warn: "warn";
|
|
775
775
|
}>>;
|
|
776
776
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -24,9 +24,9 @@ declare const NotificationRuleTemplateSchema: z.ZodObject<{
|
|
|
24
24
|
body: z.ZodString;
|
|
25
25
|
imageMode: z.ZodEnum<{
|
|
26
26
|
none: "none";
|
|
27
|
-
full: "full";
|
|
28
27
|
crop: "crop";
|
|
29
28
|
annotated: "annotated";
|
|
29
|
+
full: "full";
|
|
30
30
|
}>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
declare const NotificationRuleSchema: z.ZodObject<{
|
|
@@ -59,9 +59,9 @@ declare const NotificationRuleSchema: z.ZodObject<{
|
|
|
59
59
|
body: z.ZodString;
|
|
60
60
|
imageMode: z.ZodEnum<{
|
|
61
61
|
none: "none";
|
|
62
|
-
full: "full";
|
|
63
62
|
crop: "crop";
|
|
64
63
|
annotated: "annotated";
|
|
64
|
+
full: "full";
|
|
65
65
|
}>;
|
|
66
66
|
}, z.core.$strip>>;
|
|
67
67
|
priority: z.ZodEnum<{
|
|
@@ -133,9 +133,9 @@ export declare const advancedNotifierCapability: {
|
|
|
133
133
|
body: z.ZodString;
|
|
134
134
|
imageMode: z.ZodEnum<{
|
|
135
135
|
none: "none";
|
|
136
|
-
full: "full";
|
|
137
136
|
crop: "crop";
|
|
138
137
|
annotated: "annotated";
|
|
138
|
+
full: "full";
|
|
139
139
|
}>;
|
|
140
140
|
}, z.core.$strip>>;
|
|
141
141
|
priority: z.ZodEnum<{
|
|
@@ -177,9 +177,9 @@ export declare const advancedNotifierCapability: {
|
|
|
177
177
|
body: z.ZodString;
|
|
178
178
|
imageMode: z.ZodEnum<{
|
|
179
179
|
none: "none";
|
|
180
|
-
full: "full";
|
|
181
180
|
crop: "crop";
|
|
182
181
|
annotated: "annotated";
|
|
182
|
+
full: "full";
|
|
183
183
|
}>;
|
|
184
184
|
}, z.core.$strip>>;
|
|
185
185
|
priority: z.ZodEnum<{
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { type InferProvider } from './capability-definition.js';
|
|
10
10
|
export declare const AlertSeveritySchema: z.ZodEnum<{
|
|
11
|
-
info: "info";
|
|
12
11
|
error: "error";
|
|
13
12
|
success: "success";
|
|
13
|
+
info: "info";
|
|
14
14
|
warning: "warning";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const AlertStatusSchema: z.ZodEnum<{
|
|
@@ -28,9 +28,9 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
category: z.ZodString;
|
|
30
30
|
severity: z.ZodEnum<{
|
|
31
|
-
info: "info";
|
|
32
31
|
error: "error";
|
|
33
32
|
success: "success";
|
|
33
|
+
info: "info";
|
|
34
34
|
warning: "warning";
|
|
35
35
|
}>;
|
|
36
36
|
title: z.ZodString;
|
|
@@ -64,9 +64,9 @@ export declare const alertsCapability: {
|
|
|
64
64
|
id: z.ZodString;
|
|
65
65
|
category: z.ZodString;
|
|
66
66
|
severity: z.ZodEnum<{
|
|
67
|
-
info: "info";
|
|
68
67
|
error: "error";
|
|
69
68
|
success: "success";
|
|
69
|
+
info: "info";
|
|
70
70
|
warning: "warning";
|
|
71
71
|
}>;
|
|
72
72
|
title: z.ZodString;
|
|
@@ -94,9 +94,9 @@ export declare const alertsCapability: {
|
|
|
94
94
|
id: z.ZodOptional<z.ZodString>;
|
|
95
95
|
category: z.ZodOptional<z.ZodString>;
|
|
96
96
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
97
|
-
info: "info";
|
|
98
97
|
error: "error";
|
|
99
98
|
success: "success";
|
|
99
|
+
info: "info";
|
|
100
100
|
warning: "warning";
|
|
101
101
|
}>>;
|
|
102
102
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -126,9 +126,9 @@ export declare const alertsCapability: {
|
|
|
126
126
|
id: z.ZodString;
|
|
127
127
|
category: z.ZodString;
|
|
128
128
|
severity: z.ZodEnum<{
|
|
129
|
-
info: "info";
|
|
130
129
|
error: "error";
|
|
131
130
|
success: "success";
|
|
131
|
+
info: "info";
|
|
132
132
|
warning: "warning";
|
|
133
133
|
}>;
|
|
134
134
|
title: z.ZodString;
|
|
@@ -82,8 +82,8 @@ export declare const audioCodecCapability: {
|
|
|
82
82
|
readonly canHandle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
83
83
|
codec: z.ZodString;
|
|
84
84
|
kind: z.ZodEnum<{
|
|
85
|
-
encode: "encode";
|
|
86
85
|
decode: "decode";
|
|
86
|
+
encode: "encode";
|
|
87
87
|
}>;
|
|
88
88
|
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
89
89
|
readonly createDecodeSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -177,8 +177,8 @@ export declare const audioCodecCapability: {
|
|
|
177
177
|
readonly listActiveSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
178
178
|
sessionId: z.ZodString;
|
|
179
179
|
kind: z.ZodEnum<{
|
|
180
|
-
encode: "encode";
|
|
181
180
|
decode: "decode";
|
|
181
|
+
encode: "encode";
|
|
182
182
|
}>;
|
|
183
183
|
codec: z.ZodString;
|
|
184
184
|
sourceSampleRate: z.ZodNumber;
|
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
import { DeviceType } from '../device/device-type.js';
|
|
4
4
|
export declare const StreamCodecSchema: z.ZodEnum<{
|
|
5
|
+
mjpeg: "mjpeg";
|
|
5
6
|
h264: "h264";
|
|
6
7
|
h265: "h265";
|
|
7
8
|
hevc: "hevc";
|
|
8
|
-
mjpeg: "mjpeg";
|
|
9
9
|
av1: "av1";
|
|
10
10
|
vp8: "vp8";
|
|
11
11
|
vp9: "vp9";
|
|
@@ -13,10 +13,10 @@ export declare const StreamCodecSchema: z.ZodEnum<{
|
|
|
13
13
|
export type StreamCodec = z.infer<typeof StreamCodecSchema>;
|
|
14
14
|
export declare const PickStreamRequirementsSchema: z.ZodReadonly<z.ZodObject<{
|
|
15
15
|
acceptCodecs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
16
|
+
mjpeg: "mjpeg";
|
|
16
17
|
h264: "h264";
|
|
17
18
|
h265: "h265";
|
|
18
19
|
hevc: "hevc";
|
|
19
|
-
mjpeg: "mjpeg";
|
|
20
20
|
av1: "av1";
|
|
21
21
|
vp8: "vp8";
|
|
22
22
|
vp9: "vp9";
|
|
@@ -25,10 +25,10 @@ export declare const PickStreamRequirementsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
25
25
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
excludeDerived: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
requireSiblingCodec: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
28
|
+
mjpeg: "mjpeg";
|
|
28
29
|
h264: "h264";
|
|
29
30
|
h265: "h265";
|
|
30
31
|
hevc: "hevc";
|
|
31
|
-
mjpeg: "mjpeg";
|
|
32
32
|
av1: "av1";
|
|
33
33
|
vp8: "vp8";
|
|
34
34
|
vp9: "vp9";
|
|
@@ -115,10 +115,10 @@ export declare const cameraStreamsCapability: {
|
|
|
115
115
|
sourceCamStreamId: z.ZodNullable<z.ZodString>;
|
|
116
116
|
status: z.ZodEnum<{
|
|
117
117
|
error: "error";
|
|
118
|
-
streaming: "streaming";
|
|
119
118
|
idle: "idle";
|
|
120
119
|
unassigned: "unassigned";
|
|
121
120
|
connecting: "connecting";
|
|
121
|
+
streaming: "streaming";
|
|
122
122
|
}>;
|
|
123
123
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
124
124
|
width: z.ZodNumber;
|
|
@@ -198,10 +198,10 @@ export declare const cameraStreamsCapability: {
|
|
|
198
198
|
deviceId: z.ZodNumber;
|
|
199
199
|
requirements: z.ZodReadonly<z.ZodObject<{
|
|
200
200
|
acceptCodecs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
201
|
+
mjpeg: "mjpeg";
|
|
201
202
|
h264: "h264";
|
|
202
203
|
h265: "h265";
|
|
203
204
|
hevc: "hevc";
|
|
204
|
-
mjpeg: "mjpeg";
|
|
205
205
|
av1: "av1";
|
|
206
206
|
vp8: "vp8";
|
|
207
207
|
vp9: "vp9";
|
|
@@ -210,10 +210,10 @@ export declare const cameraStreamsCapability: {
|
|
|
210
210
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
211
211
|
excludeDerived: z.ZodOptional<z.ZodBoolean>;
|
|
212
212
|
requireSiblingCodec: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
213
|
+
mjpeg: "mjpeg";
|
|
213
214
|
h264: "h264";
|
|
214
215
|
h265: "h265";
|
|
215
216
|
hevc: "hevc";
|
|
216
|
-
mjpeg: "mjpeg";
|
|
217
217
|
av1: "av1";
|
|
218
218
|
vp8: "vp8";
|
|
219
219
|
vp9: "vp9";
|
|
@@ -278,10 +278,10 @@ export declare const cameraStreamsCapability: {
|
|
|
278
278
|
sourceCamStreamId: z.ZodNullable<z.ZodString>;
|
|
279
279
|
status: z.ZodEnum<{
|
|
280
280
|
error: "error";
|
|
281
|
-
streaming: "streaming";
|
|
282
281
|
idle: "idle";
|
|
283
282
|
unassigned: "unassigned";
|
|
284
283
|
connecting: "connecting";
|
|
284
|
+
streaming: "streaming";
|
|
285
285
|
}>;
|
|
286
286
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
287
287
|
width: z.ZodNumber;
|
|
@@ -321,24 +321,24 @@ export declare const cameraStreamsCapability: {
|
|
|
321
321
|
slotStatuses: z.ZodObject<{
|
|
322
322
|
high: z.ZodOptional<z.ZodEnum<{
|
|
323
323
|
error: "error";
|
|
324
|
-
streaming: "streaming";
|
|
325
324
|
idle: "idle";
|
|
326
325
|
unassigned: "unassigned";
|
|
327
326
|
connecting: "connecting";
|
|
327
|
+
streaming: "streaming";
|
|
328
328
|
}>>;
|
|
329
329
|
mid: z.ZodOptional<z.ZodEnum<{
|
|
330
330
|
error: "error";
|
|
331
|
-
streaming: "streaming";
|
|
332
331
|
idle: "idle";
|
|
333
332
|
unassigned: "unassigned";
|
|
334
333
|
connecting: "connecting";
|
|
334
|
+
streaming: "streaming";
|
|
335
335
|
}>>;
|
|
336
336
|
low: z.ZodOptional<z.ZodEnum<{
|
|
337
337
|
error: "error";
|
|
338
|
-
streaming: "streaming";
|
|
339
338
|
idle: "idle";
|
|
340
339
|
unassigned: "unassigned";
|
|
341
340
|
connecting: "connecting";
|
|
341
|
+
streaming: "streaming";
|
|
342
342
|
}>>;
|
|
343
343
|
}, z.core.$strip>;
|
|
344
344
|
slotErrors: z.ZodObject<{
|
|
@@ -22,8 +22,8 @@ export declare const ConsumableItemSchema: z.ZodObject<{
|
|
|
22
22
|
label: z.ZodString;
|
|
23
23
|
level: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
-
ok: "ok";
|
|
26
25
|
replace: "replace";
|
|
26
|
+
ok: "ok";
|
|
27
27
|
}>>;
|
|
28
28
|
lastResetAt: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
resettable: z.ZodBoolean;
|
|
@@ -34,8 +34,8 @@ export declare const ConsumablesStatusSchema: z.ZodObject<{
|
|
|
34
34
|
label: z.ZodString;
|
|
35
35
|
level: z.ZodNullable<z.ZodNumber>;
|
|
36
36
|
status: z.ZodNullable<z.ZodEnum<{
|
|
37
|
-
ok: "ok";
|
|
38
37
|
replace: "replace";
|
|
38
|
+
ok: "ok";
|
|
39
39
|
}>>;
|
|
40
40
|
lastResetAt: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
resettable: z.ZodBoolean;
|
|
@@ -75,8 +75,8 @@ export declare const consumablesCapability: {
|
|
|
75
75
|
label: z.ZodString;
|
|
76
76
|
level: z.ZodNullable<z.ZodNumber>;
|
|
77
77
|
status: z.ZodNullable<z.ZodEnum<{
|
|
78
|
-
ok: "ok";
|
|
79
78
|
replace: "replace";
|
|
79
|
+
ok: "ok";
|
|
80
80
|
}>>;
|
|
81
81
|
lastResetAt: z.ZodNullable<z.ZodNumber>;
|
|
82
82
|
resettable: z.ZodBoolean;
|
|
@@ -91,8 +91,8 @@ export declare const consumablesCapability: {
|
|
|
91
91
|
label: z.ZodString;
|
|
92
92
|
level: z.ZodNullable<z.ZodNumber>;
|
|
93
93
|
status: z.ZodNullable<z.ZodEnum<{
|
|
94
|
-
ok: "ok";
|
|
95
94
|
replace: "replace";
|
|
95
|
+
ok: "ok";
|
|
96
96
|
}>>;
|
|
97
97
|
lastResetAt: z.ZodNullable<z.ZodNumber>;
|
|
98
98
|
resettable: z.ZodBoolean;
|
|
@@ -23,8 +23,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
23
23
|
* - `CoverTilt` — slat-tilt slider
|
|
24
24
|
*/
|
|
25
25
|
export declare const CoverStateSchema: z.ZodEnum<{
|
|
26
|
-
open: "open";
|
|
27
26
|
stopped: "stopped";
|
|
27
|
+
open: "open";
|
|
28
28
|
opening: "opening";
|
|
29
29
|
closing: "closing";
|
|
30
30
|
closed: "closed";
|
|
@@ -32,8 +32,8 @@ export declare const CoverStateSchema: z.ZodEnum<{
|
|
|
32
32
|
export type CoverState = z.infer<typeof CoverStateSchema>;
|
|
33
33
|
export declare const CoverStatusSchema: z.ZodObject<{
|
|
34
34
|
state: z.ZodEnum<{
|
|
35
|
-
open: "open";
|
|
36
35
|
stopped: "stopped";
|
|
36
|
+
open: "open";
|
|
37
37
|
opening: "opening";
|
|
38
38
|
closing: "closing";
|
|
39
39
|
closed: "closed";
|
|
@@ -71,8 +71,8 @@ export declare const coverCapability: {
|
|
|
71
71
|
readonly status: {
|
|
72
72
|
readonly schema: z.ZodObject<{
|
|
73
73
|
state: z.ZodEnum<{
|
|
74
|
-
open: "open";
|
|
75
74
|
stopped: "stopped";
|
|
75
|
+
open: "open";
|
|
76
76
|
opening: "opening";
|
|
77
77
|
closing: "closing";
|
|
78
78
|
closed: "closed";
|
|
@@ -89,8 +89,8 @@ export declare const coverCapability: {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly runtimeState: z.ZodObject<{
|
|
91
91
|
state: z.ZodEnum<{
|
|
92
|
-
open: "open";
|
|
93
92
|
stopped: "stopped";
|
|
93
|
+
open: "open";
|
|
94
94
|
opening: "opening";
|
|
95
95
|
closing: "closing";
|
|
96
96
|
closed: "closed";
|
|
@@ -91,8 +91,8 @@ export declare const decoderCapability: {
|
|
|
91
91
|
sessionId: z.ZodString;
|
|
92
92
|
packet: z.ZodObject<{
|
|
93
93
|
type: z.ZodEnum<{
|
|
94
|
-
video: "video";
|
|
95
94
|
audio: "audio";
|
|
95
|
+
video: "video";
|
|
96
96
|
}>;
|
|
97
97
|
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
98
98
|
pts: z.ZodNumber;
|
|
@@ -36,12 +36,12 @@ declare const LocalInterfaceSchema: z.ZodObject<{
|
|
|
36
36
|
internal: z.ZodBoolean;
|
|
37
37
|
mac: z.ZodString;
|
|
38
38
|
kind: z.ZodEnum<{
|
|
39
|
-
other: "other";
|
|
40
39
|
lan: "lan";
|
|
41
40
|
wifi: "wifi";
|
|
42
41
|
docker: "docker";
|
|
43
42
|
vpn: "vpn";
|
|
44
43
|
loopback: "loopback";
|
|
44
|
+
other: "other";
|
|
45
45
|
}>;
|
|
46
46
|
preferred: z.ZodBoolean;
|
|
47
47
|
plausible: z.ZodBoolean;
|
|
@@ -63,12 +63,12 @@ declare const ConnectionEndpointSchema: z.ZodObject<{
|
|
|
63
63
|
}>;
|
|
64
64
|
interfaceKind: z.ZodEnum<{
|
|
65
65
|
public: "public";
|
|
66
|
-
other: "other";
|
|
67
66
|
lan: "lan";
|
|
68
67
|
wifi: "wifi";
|
|
69
68
|
docker: "docker";
|
|
70
69
|
vpn: "vpn";
|
|
71
70
|
loopback: "loopback";
|
|
71
|
+
other: "other";
|
|
72
72
|
}>;
|
|
73
73
|
plausible: z.ZodBoolean;
|
|
74
74
|
plausibleReason: z.ZodString;
|
|
@@ -93,12 +93,12 @@ export declare const localNetworkCapability: {
|
|
|
93
93
|
internal: z.ZodBoolean;
|
|
94
94
|
mac: z.ZodString;
|
|
95
95
|
kind: z.ZodEnum<{
|
|
96
|
-
other: "other";
|
|
97
96
|
lan: "lan";
|
|
98
97
|
wifi: "wifi";
|
|
99
98
|
docker: "docker";
|
|
100
99
|
vpn: "vpn";
|
|
101
100
|
loopback: "loopback";
|
|
101
|
+
other: "other";
|
|
102
102
|
}>;
|
|
103
103
|
preferred: z.ZodBoolean;
|
|
104
104
|
plausible: z.ZodBoolean;
|
|
@@ -128,12 +128,12 @@ export declare const localNetworkCapability: {
|
|
|
128
128
|
internal: z.ZodBoolean;
|
|
129
129
|
mac: z.ZodString;
|
|
130
130
|
kind: z.ZodEnum<{
|
|
131
|
-
other: "other";
|
|
132
131
|
lan: "lan";
|
|
133
132
|
wifi: "wifi";
|
|
134
133
|
docker: "docker";
|
|
135
134
|
vpn: "vpn";
|
|
136
135
|
loopback: "loopback";
|
|
136
|
+
other: "other";
|
|
137
137
|
}>;
|
|
138
138
|
preferred: z.ZodBoolean;
|
|
139
139
|
plausible: z.ZodBoolean;
|
|
@@ -153,8 +153,8 @@ export declare const localNetworkCapability: {
|
|
|
153
153
|
includeLoopback: z.ZodOptional<z.ZodBoolean>;
|
|
154
154
|
ipv4Only: z.ZodOptional<z.ZodBoolean>;
|
|
155
155
|
scheme: z.ZodOptional<z.ZodEnum<{
|
|
156
|
-
https: "https";
|
|
157
156
|
http: "http";
|
|
157
|
+
https: "https";
|
|
158
158
|
}>>;
|
|
159
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
160
160
|
endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -168,12 +168,12 @@ export declare const localNetworkCapability: {
|
|
|
168
168
|
}>;
|
|
169
169
|
interfaceKind: z.ZodEnum<{
|
|
170
170
|
public: "public";
|
|
171
|
-
other: "other";
|
|
172
171
|
lan: "lan";
|
|
173
172
|
wifi: "wifi";
|
|
174
173
|
docker: "docker";
|
|
175
174
|
vpn: "vpn";
|
|
176
175
|
loopback: "loopback";
|
|
176
|
+
other: "other";
|
|
177
177
|
}>;
|
|
178
178
|
plausible: z.ZodBoolean;
|
|
179
179
|
plausibleReason: z.ZodString;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
4
|
-
info: "info";
|
|
5
4
|
error: "error";
|
|
6
5
|
debug: "debug";
|
|
6
|
+
info: "info";
|
|
7
7
|
warn: "warn";
|
|
8
8
|
}>;
|
|
9
9
|
declare const LogEntrySchema: z.ZodObject<{
|
|
10
10
|
timestamp: z.ZodDate;
|
|
11
11
|
level: z.ZodEnum<{
|
|
12
|
-
info: "info";
|
|
13
12
|
error: "error";
|
|
14
13
|
debug: "debug";
|
|
14
|
+
info: "info";
|
|
15
15
|
warn: "warn";
|
|
16
16
|
}>;
|
|
17
17
|
scope: z.ZodArray<z.ZodString>;
|
|
@@ -28,9 +28,9 @@ export declare const logDestinationCapability: {
|
|
|
28
28
|
readonly write: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
29
29
|
timestamp: z.ZodDate;
|
|
30
30
|
level: z.ZodEnum<{
|
|
31
|
-
info: "info";
|
|
32
31
|
error: "error";
|
|
33
32
|
debug: "debug";
|
|
33
|
+
info: "info";
|
|
34
34
|
warn: "warn";
|
|
35
35
|
}>;
|
|
36
36
|
scope: z.ZodArray<z.ZodString>;
|
|
@@ -41,9 +41,9 @@ export declare const logDestinationCapability: {
|
|
|
41
41
|
readonly query: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
42
42
|
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
43
|
level: z.ZodOptional<z.ZodEnum<{
|
|
44
|
-
info: "info";
|
|
45
44
|
error: "error";
|
|
46
45
|
debug: "debug";
|
|
46
|
+
info: "info";
|
|
47
47
|
warn: "warn";
|
|
48
48
|
}>>;
|
|
49
49
|
since: z.ZodOptional<z.ZodDate>;
|
|
@@ -53,9 +53,9 @@ export declare const logDestinationCapability: {
|
|
|
53
53
|
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
54
54
|
timestamp: z.ZodDate;
|
|
55
55
|
level: z.ZodEnum<{
|
|
56
|
-
info: "info";
|
|
57
56
|
error: "error";
|
|
58
57
|
debug: "debug";
|
|
58
|
+
info: "info";
|
|
59
59
|
warn: "warn";
|
|
60
60
|
}>;
|
|
61
61
|
scope: z.ZodArray<z.ZodString>;
|
|
@@ -14,9 +14,9 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
14
14
|
* fetch — same pattern as `PanTiltZoom` for cameras.
|
|
15
15
|
*/
|
|
16
16
|
export declare const MediaPlayerStateSchema: z.ZodEnum<{
|
|
17
|
-
off: "off";
|
|
18
17
|
idle: "idle";
|
|
19
18
|
playing: "playing";
|
|
19
|
+
off: "off";
|
|
20
20
|
paused: "paused";
|
|
21
21
|
on: "on";
|
|
22
22
|
buffering: "buffering";
|
|
@@ -39,9 +39,9 @@ declare const MediaInfoSchema: z.ZodObject<{
|
|
|
39
39
|
export type MediaInfo = z.infer<typeof MediaInfoSchema>;
|
|
40
40
|
export declare const MediaPlayerStatusSchema: z.ZodObject<{
|
|
41
41
|
state: z.ZodEnum<{
|
|
42
|
-
off: "off";
|
|
43
42
|
idle: "idle";
|
|
44
43
|
playing: "playing";
|
|
44
|
+
off: "off";
|
|
45
45
|
paused: "paused";
|
|
46
46
|
on: "on";
|
|
47
47
|
buffering: "buffering";
|
|
@@ -128,9 +128,9 @@ export declare const mediaPlayerCapability: {
|
|
|
128
128
|
readonly status: {
|
|
129
129
|
readonly schema: z.ZodObject<{
|
|
130
130
|
state: z.ZodEnum<{
|
|
131
|
-
off: "off";
|
|
132
131
|
idle: "idle";
|
|
133
132
|
playing: "playing";
|
|
133
|
+
off: "off";
|
|
134
134
|
paused: "paused";
|
|
135
135
|
on: "on";
|
|
136
136
|
buffering: "buffering";
|
|
@@ -166,9 +166,9 @@ export declare const mediaPlayerCapability: {
|
|
|
166
166
|
*/
|
|
167
167
|
readonly runtimeState: z.ZodObject<{
|
|
168
168
|
state: z.ZodEnum<{
|
|
169
|
-
off: "off";
|
|
170
169
|
idle: "idle";
|
|
171
170
|
playing: "playing";
|
|
171
|
+
off: "off";
|
|
172
172
|
paused: "paused";
|
|
173
173
|
on: "on";
|
|
174
174
|
buffering: "buffering";
|
|
@@ -34,8 +34,8 @@ declare const MeshEndpointSchema: z.ZodObject<{
|
|
|
34
34
|
hostname: z.ZodString;
|
|
35
35
|
port: z.ZodNumber;
|
|
36
36
|
protocol: z.ZodEnum<{
|
|
37
|
-
https: "https";
|
|
38
37
|
http: "http";
|
|
38
|
+
https: "https";
|
|
39
39
|
}>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
export type MeshEndpoint = z.infer<typeof MeshEndpointSchema>;
|
|
@@ -80,8 +80,8 @@ export declare const MeshStatusSchema: z.ZodObject<{
|
|
|
80
80
|
hostname: z.ZodString;
|
|
81
81
|
port: z.ZodNumber;
|
|
82
82
|
protocol: z.ZodEnum<{
|
|
83
|
-
https: "https";
|
|
84
83
|
http: "http";
|
|
84
|
+
https: "https";
|
|
85
85
|
}>;
|
|
86
86
|
}, z.core.$strip>>>;
|
|
87
87
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -123,8 +123,8 @@ export declare const meshNetworkCapability: {
|
|
|
123
123
|
hostname: z.ZodString;
|
|
124
124
|
port: z.ZodNumber;
|
|
125
125
|
protocol: z.ZodEnum<{
|
|
126
|
-
https: "https";
|
|
127
126
|
http: "http";
|
|
127
|
+
https: "https";
|
|
128
128
|
}>;
|
|
129
129
|
}, z.core.$strip>>>;
|
|
130
130
|
error: z.ZodOptional<z.ZodString>;
|