@camstack/types 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.d.ts +34 -0
- package/dist/addon.js +22 -0
- package/dist/addon.mjs +3 -0
- package/dist/capabilities/addons.cap.d.ts +10 -10
- package/dist/capabilities/advanced-notifier.cap.d.ts +4 -4
- package/dist/capabilities/alerts.cap.d.ts +10 -10
- package/dist/capabilities/audio-codec.cap.d.ts +2 -2
- package/dist/capabilities/camera-streams.cap.d.ts +15 -15
- 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/index.d.ts +2 -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-executor.cap.d.ts +48 -1
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +524 -4
- 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 +9 -9
- 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 +28 -28
- 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/enums/event-category.d.ts +12 -0
- package/dist/err-msg-COpsHMw2.js +18 -0
- package/dist/err-msg-IQTHeDzc.mjs +13 -0
- package/dist/generated/addon-api.d.ts +438 -12
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +3 -3
- package/dist/health/wiring-health.d.ts +16 -16
- package/dist/index.js +1435 -4646
- package/dist/index.mjs +485 -3711
- package/dist/interfaces/event-bus.d.ts +15 -0
- package/dist/interfaces/metrics-provider.d.ts +3 -1
- package/dist/interfaces/pipeline-executor-capability.d.ts +8 -0
- package/dist/lifecycle/job.d.ts +6 -6
- package/dist/node.js +3 -3
- package/dist/node.mjs +1 -1
- package/dist/schemas/auth-records.d.ts +4 -4
- package/dist/sleep-D7JeS58T.mjs +3507 -0
- package/dist/sleep-DnS0eJh_.js +3920 -0
- package/dist/storage/filesystem-storage-provider.d.ts +2 -1
- package/dist/types/agent-pipeline-settings.d.ts +7 -0
- package/package.json +6 -1
|
@@ -46,8 +46,8 @@ export declare const TankStatusSchema: z.ZodObject<{
|
|
|
46
46
|
level: z.ZodNullable<z.ZodNumber>;
|
|
47
47
|
status: z.ZodNullable<z.ZodEnum<{
|
|
48
48
|
ok: "ok";
|
|
49
|
-
full: "full";
|
|
50
49
|
low: "low";
|
|
50
|
+
full: "full";
|
|
51
51
|
}>>;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type TankStatus = z.infer<typeof TankStatusSchema>;
|
|
@@ -67,32 +67,32 @@ export declare const VacuumControlStatusSchema: z.ZodObject<{
|
|
|
67
67
|
level: z.ZodNullable<z.ZodNumber>;
|
|
68
68
|
status: z.ZodNullable<z.ZodEnum<{
|
|
69
69
|
ok: "ok";
|
|
70
|
-
full: "full";
|
|
71
70
|
low: "low";
|
|
71
|
+
full: "full";
|
|
72
72
|
}>>;
|
|
73
73
|
}, z.core.$strip>>;
|
|
74
74
|
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
75
75
|
level: z.ZodNullable<z.ZodNumber>;
|
|
76
76
|
status: z.ZodNullable<z.ZodEnum<{
|
|
77
77
|
ok: "ok";
|
|
78
|
-
full: "full";
|
|
79
78
|
low: "low";
|
|
79
|
+
full: "full";
|
|
80
80
|
}>>;
|
|
81
81
|
}, z.core.$strip>>;
|
|
82
82
|
detergent: z.ZodNullable<z.ZodObject<{
|
|
83
83
|
level: z.ZodNullable<z.ZodNumber>;
|
|
84
84
|
status: z.ZodNullable<z.ZodEnum<{
|
|
85
85
|
ok: "ok";
|
|
86
|
-
full: "full";
|
|
87
86
|
low: "low";
|
|
87
|
+
full: "full";
|
|
88
88
|
}>>;
|
|
89
89
|
}, z.core.$strip>>;
|
|
90
90
|
dustBin: z.ZodNullable<z.ZodObject<{
|
|
91
91
|
level: z.ZodNullable<z.ZodNumber>;
|
|
92
92
|
status: z.ZodNullable<z.ZodEnum<{
|
|
93
93
|
ok: "ok";
|
|
94
|
-
full: "full";
|
|
95
94
|
low: "low";
|
|
95
|
+
full: "full";
|
|
96
96
|
}>>;
|
|
97
97
|
}, z.core.$strip>>;
|
|
98
98
|
lastChangedAt: z.ZodNumber;
|
|
@@ -142,32 +142,32 @@ export declare const vacuumControlCapability: {
|
|
|
142
142
|
level: z.ZodNullable<z.ZodNumber>;
|
|
143
143
|
status: z.ZodNullable<z.ZodEnum<{
|
|
144
144
|
ok: "ok";
|
|
145
|
-
full: "full";
|
|
146
145
|
low: "low";
|
|
146
|
+
full: "full";
|
|
147
147
|
}>>;
|
|
148
148
|
}, z.core.$strip>>;
|
|
149
149
|
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
150
150
|
level: z.ZodNullable<z.ZodNumber>;
|
|
151
151
|
status: z.ZodNullable<z.ZodEnum<{
|
|
152
152
|
ok: "ok";
|
|
153
|
-
full: "full";
|
|
154
153
|
low: "low";
|
|
154
|
+
full: "full";
|
|
155
155
|
}>>;
|
|
156
156
|
}, z.core.$strip>>;
|
|
157
157
|
detergent: z.ZodNullable<z.ZodObject<{
|
|
158
158
|
level: z.ZodNullable<z.ZodNumber>;
|
|
159
159
|
status: z.ZodNullable<z.ZodEnum<{
|
|
160
160
|
ok: "ok";
|
|
161
|
-
full: "full";
|
|
162
161
|
low: "low";
|
|
162
|
+
full: "full";
|
|
163
163
|
}>>;
|
|
164
164
|
}, z.core.$strip>>;
|
|
165
165
|
dustBin: z.ZodNullable<z.ZodObject<{
|
|
166
166
|
level: z.ZodNullable<z.ZodNumber>;
|
|
167
167
|
status: z.ZodNullable<z.ZodEnum<{
|
|
168
168
|
ok: "ok";
|
|
169
|
-
full: "full";
|
|
170
169
|
low: "low";
|
|
170
|
+
full: "full";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
173
|
lastChangedAt: z.ZodNumber;
|
|
@@ -194,32 +194,32 @@ export declare const vacuumControlCapability: {
|
|
|
194
194
|
level: z.ZodNullable<z.ZodNumber>;
|
|
195
195
|
status: z.ZodNullable<z.ZodEnum<{
|
|
196
196
|
ok: "ok";
|
|
197
|
-
full: "full";
|
|
198
197
|
low: "low";
|
|
198
|
+
full: "full";
|
|
199
199
|
}>>;
|
|
200
200
|
}, z.core.$strip>>;
|
|
201
201
|
dirtyWater: z.ZodNullable<z.ZodObject<{
|
|
202
202
|
level: z.ZodNullable<z.ZodNumber>;
|
|
203
203
|
status: z.ZodNullable<z.ZodEnum<{
|
|
204
204
|
ok: "ok";
|
|
205
|
-
full: "full";
|
|
206
205
|
low: "low";
|
|
206
|
+
full: "full";
|
|
207
207
|
}>>;
|
|
208
208
|
}, z.core.$strip>>;
|
|
209
209
|
detergent: z.ZodNullable<z.ZodObject<{
|
|
210
210
|
level: z.ZodNullable<z.ZodNumber>;
|
|
211
211
|
status: z.ZodNullable<z.ZodEnum<{
|
|
212
212
|
ok: "ok";
|
|
213
|
-
full: "full";
|
|
214
213
|
low: "low";
|
|
214
|
+
full: "full";
|
|
215
215
|
}>>;
|
|
216
216
|
}, z.core.$strip>>;
|
|
217
217
|
dustBin: z.ZodNullable<z.ZodObject<{
|
|
218
218
|
level: z.ZodNullable<z.ZodNumber>;
|
|
219
219
|
status: z.ZodNullable<z.ZodEnum<{
|
|
220
220
|
ok: "ok";
|
|
221
|
-
full: "full";
|
|
222
221
|
low: "low";
|
|
222
|
+
full: "full";
|
|
223
223
|
}>>;
|
|
224
224
|
}, z.core.$strip>>;
|
|
225
225
|
lastChangedAt: z.ZodNumber;
|
|
@@ -19,8 +19,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
19
19
|
* - `ValvePositionable` — intermediate `position` slider / drag
|
|
20
20
|
*/
|
|
21
21
|
export declare const ValveStateSchema: z.ZodEnum<{
|
|
22
|
-
open: "open";
|
|
23
22
|
stopped: "stopped";
|
|
23
|
+
open: "open";
|
|
24
24
|
opening: "opening";
|
|
25
25
|
closing: "closing";
|
|
26
26
|
closed: "closed";
|
|
@@ -28,8 +28,8 @@ export declare const ValveStateSchema: z.ZodEnum<{
|
|
|
28
28
|
export type ValveState = z.infer<typeof ValveStateSchema>;
|
|
29
29
|
export declare const ValveStatusSchema: z.ZodObject<{
|
|
30
30
|
state: z.ZodEnum<{
|
|
31
|
-
open: "open";
|
|
32
31
|
stopped: "stopped";
|
|
32
|
+
open: "open";
|
|
33
33
|
opening: "opening";
|
|
34
34
|
closing: "closing";
|
|
35
35
|
closed: "closed";
|
|
@@ -62,8 +62,8 @@ export declare const valveCapability: {
|
|
|
62
62
|
readonly status: {
|
|
63
63
|
readonly schema: z.ZodObject<{
|
|
64
64
|
state: z.ZodEnum<{
|
|
65
|
-
open: "open";
|
|
66
65
|
stopped: "stopped";
|
|
66
|
+
open: "open";
|
|
67
67
|
opening: "opening";
|
|
68
68
|
closing: "closing";
|
|
69
69
|
closed: "closed";
|
|
@@ -79,8 +79,8 @@ export declare const valveCapability: {
|
|
|
79
79
|
*/
|
|
80
80
|
readonly runtimeState: z.ZodObject<{
|
|
81
81
|
state: z.ZodEnum<{
|
|
82
|
-
open: "open";
|
|
83
82
|
stopped: "stopped";
|
|
83
|
+
open: "open";
|
|
84
84
|
opening: "opening";
|
|
85
85
|
closing: "closing";
|
|
86
86
|
closed: "closed";
|
|
@@ -53,10 +53,10 @@ export declare const WebrtcStreamChoiceSchema: z.ZodObject<{
|
|
|
53
53
|
}, z.core.$strip>>;
|
|
54
54
|
status: z.ZodNullable<z.ZodEnum<{
|
|
55
55
|
error: "error";
|
|
56
|
-
streaming: "streaming";
|
|
57
|
-
stopped: "stopped";
|
|
58
56
|
idle: "idle";
|
|
59
57
|
connecting: "connecting";
|
|
58
|
+
streaming: "streaming";
|
|
59
|
+
stopped: "stopped";
|
|
60
60
|
}>>;
|
|
61
61
|
inputFps: z.ZodNullable<z.ZodNumber>;
|
|
62
62
|
decodeFps: z.ZodNullable<z.ZodNumber>;
|
|
@@ -118,10 +118,10 @@ export declare const webrtcSessionCapability: {
|
|
|
118
118
|
}, z.core.$strip>>;
|
|
119
119
|
status: z.ZodNullable<z.ZodEnum<{
|
|
120
120
|
error: "error";
|
|
121
|
-
streaming: "streaming";
|
|
122
|
-
stopped: "stopped";
|
|
123
121
|
idle: "idle";
|
|
124
122
|
connecting: "connecting";
|
|
123
|
+
streaming: "streaming";
|
|
124
|
+
stopped: "stopped";
|
|
125
125
|
}>>;
|
|
126
126
|
inputFps: z.ZodNullable<z.ZodNumber>;
|
|
127
127
|
decodeFps: z.ZodNullable<z.ZodNumber>;
|
|
@@ -160,9 +160,6 @@ export declare const webrtcSessionCapability: {
|
|
|
160
160
|
consumerAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
161
161
|
kind: z.ZodEnum<{
|
|
162
162
|
unknown: "unknown";
|
|
163
|
-
recording: "recording";
|
|
164
|
-
snapshot: "snapshot";
|
|
165
|
-
pipeline: "pipeline";
|
|
166
163
|
alexa: "alexa";
|
|
167
164
|
homekit: "homekit";
|
|
168
165
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -170,13 +167,16 @@ export declare const webrtcSessionCapability: {
|
|
|
170
167
|
"webrtc-whep": "webrtc-whep";
|
|
171
168
|
"rtsp-listen": "rtsp-listen";
|
|
172
169
|
"derived-broker": "derived-broker";
|
|
170
|
+
recording: "recording";
|
|
171
|
+
pipeline: "pipeline";
|
|
172
|
+
snapshot: "snapshot";
|
|
173
173
|
warmup: "warmup";
|
|
174
174
|
}>;
|
|
175
175
|
label: z.ZodOptional<z.ZodString>;
|
|
176
176
|
media: z.ZodOptional<z.ZodEnum<{
|
|
177
|
-
video: "video";
|
|
178
177
|
audio: "audio";
|
|
179
178
|
both: "both";
|
|
179
|
+
video: "video";
|
|
180
180
|
}>>;
|
|
181
181
|
targetCodec: z.ZodOptional<z.ZodString>;
|
|
182
182
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
@@ -231,9 +231,6 @@ export declare const webrtcSessionCapability: {
|
|
|
231
231
|
consumerAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
232
232
|
kind: z.ZodEnum<{
|
|
233
233
|
unknown: "unknown";
|
|
234
|
-
recording: "recording";
|
|
235
|
-
snapshot: "snapshot";
|
|
236
|
-
pipeline: "pipeline";
|
|
237
234
|
alexa: "alexa";
|
|
238
235
|
homekit: "homekit";
|
|
239
236
|
"webrtc-browser": "webrtc-browser";
|
|
@@ -241,13 +238,16 @@ export declare const webrtcSessionCapability: {
|
|
|
241
238
|
"webrtc-whep": "webrtc-whep";
|
|
242
239
|
"rtsp-listen": "rtsp-listen";
|
|
243
240
|
"derived-broker": "derived-broker";
|
|
241
|
+
recording: "recording";
|
|
242
|
+
pipeline: "pipeline";
|
|
243
|
+
snapshot: "snapshot";
|
|
244
244
|
warmup: "warmup";
|
|
245
245
|
}>;
|
|
246
246
|
label: z.ZodOptional<z.ZodString>;
|
|
247
247
|
media: z.ZodOptional<z.ZodEnum<{
|
|
248
|
-
video: "video";
|
|
249
248
|
audio: "audio";
|
|
250
249
|
both: "both";
|
|
250
|
+
video: "video";
|
|
251
251
|
}>>;
|
|
252
252
|
targetCodec: z.ZodOptional<z.ZodString>;
|
|
253
253
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IScopedLogger } from '../
|
|
1
|
+
import type { IScopedLogger } from '../interfaces/logging.js';
|
|
2
2
|
export declare function getFfmpegDownloadUrl(platform: string, arch: string): string;
|
|
3
3
|
export declare function getFfmpegArchiveInfo(platform: string): {
|
|
4
4
|
isArchive: boolean;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type { ProviderRegistration
|
|
1
|
+
import type { ProviderRegistration } from '../interfaces/addon.js';
|
|
2
|
+
import type { ConfigUISchema } from '../interfaces/config-ui.js';
|
|
3
|
+
import type { SavedDevice } from './device-management.js';
|
|
4
|
+
import type { IDevice } from './device.js';
|
|
2
5
|
import { BaseAddon } from '../addon/base-addon.js';
|
|
3
6
|
import { DeviceType } from './device-type.js';
|
|
4
7
|
import type { CreateDeviceSpec } from './device-management.js';
|
package/dist/encode-profile.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export declare const VideoEncodeSchema: z.ZodObject<{
|
|
|
18
18
|
copy: "copy";
|
|
19
19
|
}>;
|
|
20
20
|
profile: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
high: "high";
|
|
21
22
|
baseline: "baseline";
|
|
22
23
|
main: "main";
|
|
23
|
-
high: "high";
|
|
24
24
|
}>>;
|
|
25
25
|
width: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -64,9 +64,9 @@ export declare const EncodeProfileSchema: z.ZodObject<{
|
|
|
64
64
|
copy: "copy";
|
|
65
65
|
}>;
|
|
66
66
|
profile: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
high: "high";
|
|
67
68
|
baseline: "baseline";
|
|
68
69
|
main: "main";
|
|
69
|
-
high: "high";
|
|
70
70
|
}>>;
|
|
71
71
|
width: z.ZodOptional<z.ZodNumber>;
|
|
72
72
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -294,6 +294,18 @@ export declare enum EventCategory {
|
|
|
294
294
|
* without polling `pipelineExecutor.listLoadedEngines`.
|
|
295
295
|
*/
|
|
296
296
|
PipelineEngineMetricsSnapshot = "pipeline.engine-metrics-snapshot",
|
|
297
|
+
/**
|
|
298
|
+
* Per-node detection-engine runtime-provisioning transition. Emitted by
|
|
299
|
+
* the detection-pipeline provider on every state change of its lazy
|
|
300
|
+
* engine-provisioning machine (idle → installing → verifying → ready,
|
|
301
|
+
* or → failed with a `nextRetryAt`). Payload is the
|
|
302
|
+
* `EngineProvisioningState` snapshot; `event.source.nodeId` carries the
|
|
303
|
+
* node. The Pipeline page subscribes to drive a live "installing
|
|
304
|
+
* OpenVINO… / ready" indicator per node without polling
|
|
305
|
+
* `pipelineExecutor.getEngineProvisioning`. Telemetry-grade (D8): the UI
|
|
306
|
+
* also reads the cap snapshot on mount / reconnect. Phase 2.
|
|
307
|
+
*/
|
|
308
|
+
PipelineEngineProvisioning = "pipeline.engine-provisioning",
|
|
297
309
|
/**
|
|
298
310
|
* Cluster topology snapshot. Carries the same payload returned by
|
|
299
311
|
* `nodes.topology` (every reachable node + addons + processes).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/utils/err-msg.ts
|
|
2
|
+
/**
|
|
3
|
+
import { errMsg } from '@camstack/types'
|
|
4
|
+
* Extract a human-readable message from an unknown error value.
|
|
5
|
+
* Replaces the ubiquitous `errMsg(err)` pattern.
|
|
6
|
+
*/
|
|
7
|
+
function errMsg(err) {
|
|
8
|
+
if (err instanceof Error) return err.message;
|
|
9
|
+
if (typeof err === "string") return err;
|
|
10
|
+
return String(err);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, "errMsg", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return errMsg;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/utils/err-msg.ts
|
|
2
|
+
/**
|
|
3
|
+
import { errMsg } from '@camstack/types'
|
|
4
|
+
* Extract a human-readable message from an unknown error value.
|
|
5
|
+
* Replaces the ubiquitous `errMsg(err)` pattern.
|
|
6
|
+
*/
|
|
7
|
+
function errMsg(err) {
|
|
8
|
+
if (err instanceof Error) return err.message;
|
|
9
|
+
if (typeof err === "string") return err;
|
|
10
|
+
return String(err);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { errMsg as t };
|