@camstack/types 0.1.31 → 0.1.32
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/admin-ui.cap.d.ts +6 -2
- package/dist/capabilities/admin-ui.cap.d.ts.map +1 -1
- package/dist/capabilities/advanced-notifier.cap.d.ts +202 -29
- package/dist/capabilities/advanced-notifier.cap.d.ts.map +1 -1
- package/dist/capabilities/audio-codec.cap.d.ts +2 -2
- package/dist/capabilities/capability-definition.d.ts +22 -0
- package/dist/capabilities/capability-definition.d.ts.map +1 -1
- package/dist/capabilities/device-export.cap.d.ts +77 -0
- package/dist/capabilities/device-export.cap.d.ts.map +1 -0
- package/dist/capabilities/embedding-encoder.cap.d.ts +14 -7
- package/dist/capabilities/embedding-encoder.cap.d.ts.map +1 -1
- package/dist/capabilities/index.d.ts +15 -11
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/intercom.cap.d.ts +34 -0
- package/dist/capabilities/intercom.cap.d.ts.map +1 -1
- package/dist/capabilities/mesh-network.cap.d.ts +18 -20
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -1
- package/dist/capabilities/mqtt-broker.cap.d.ts +153 -0
- package/dist/capabilities/mqtt-broker.cap.d.ts.map +1 -0
- package/dist/capabilities/network-access.cap.d.ts +41 -1
- package/dist/capabilities/network-access.cap.d.ts.map +1 -1
- package/dist/capabilities/platform-probe.cap.d.ts +234 -15
- package/dist/capabilities/platform-probe.cap.d.ts.map +1 -1
- package/dist/capabilities/smtp-provider.cap.d.ts +11 -10
- package/dist/capabilities/smtp-provider.cap.d.ts.map +1 -1
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
- package/dist/capabilities/sso-bridge.cap.d.ts.map +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +90 -85
- package/dist/capabilities/stream-broker.cap.d.ts.map +1 -1
- package/dist/capabilities/webrtc-session.cap.d.ts +34 -0
- package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -1
- package/dist/enums/event-category.d.ts +1 -8
- package/dist/enums/event-category.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +12923 -10641
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/cap-status-types.d.ts +5 -1
- package/dist/generated/cap-status-types.d.ts.map +1 -1
- package/dist/generated/capability-router-map.d.ts +7 -7
- package/dist/generated/capability-router-map.d.ts.map +1 -1
- package/dist/generated/device-proxy.d.ts +2 -0
- package/dist/generated/device-proxy.d.ts.map +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts.map +1 -1
- package/dist/generated/provider-kind-map.d.ts +22 -0
- package/dist/generated/provider-kind-map.d.ts.map +1 -0
- package/dist/generated/system-proxy.d.ts +7 -3
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/{index-BKnvgAep.mjs → index-BBVUwOlZ.mjs} +641 -610
- package/dist/index-BBVUwOlZ.mjs.map +1 -0
- package/dist/{index-BKifir_y.js → index-BUBhoPUu.js} +381 -350
- package/dist/index-BUBhoPUu.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +108 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +365 -296
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +14 -3
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/advanced-notifier.d.ts +8 -7
- package/dist/interfaces/advanced-notifier.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +6 -6
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/embedding-encoder.d.ts +16 -7
- package/dist/interfaces/embedding-encoder.d.ts.map +1 -1
- package/dist/interfaces/rtp-egress.d.ts +45 -0
- package/dist/interfaces/rtp-egress.d.ts.map +1 -0
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/package.json +1 -1
- package/dist/capabilities/home-assistant.cap.d.ts +0 -138
- package/dist/capabilities/home-assistant.cap.d.ts.map +0 -1
- package/dist/capabilities/mqtt-provider.cap.d.ts +0 -91
- package/dist/capabilities/mqtt-provider.cap.d.ts.map +0 -1
- package/dist/index-BKifir_y.js.map +0 -1
- package/dist/index-BKnvgAep.mjs.map +0 -1
|
@@ -1,11 +1,118 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const HardwareEncoderIdSchema: z.ZodEnum<{
|
|
4
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
5
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
6
|
+
h264_vaapi: "h264_vaapi";
|
|
7
|
+
hevc_vaapi: "hevc_vaapi";
|
|
8
|
+
h264_nvenc: "h264_nvenc";
|
|
9
|
+
hevc_nvenc: "hevc_nvenc";
|
|
10
|
+
h264_qsv: "h264_qsv";
|
|
11
|
+
hevc_qsv: "hevc_qsv";
|
|
12
|
+
h264_amf: "h264_amf";
|
|
13
|
+
hevc_amf: "hevc_amf";
|
|
14
|
+
libx264: "libx264";
|
|
15
|
+
libx265: "libx265";
|
|
16
|
+
}>;
|
|
17
|
+
export type HardwareEncoderId = z.infer<typeof HardwareEncoderIdSchema>;
|
|
18
|
+
declare const HardwareEncoderProbeSchema: z.ZodObject<{
|
|
19
|
+
encoder: z.ZodEnum<{
|
|
20
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
21
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
22
|
+
h264_vaapi: "h264_vaapi";
|
|
23
|
+
hevc_vaapi: "hevc_vaapi";
|
|
24
|
+
h264_nvenc: "h264_nvenc";
|
|
25
|
+
hevc_nvenc: "hevc_nvenc";
|
|
26
|
+
h264_qsv: "h264_qsv";
|
|
27
|
+
hevc_qsv: "hevc_qsv";
|
|
28
|
+
h264_amf: "h264_amf";
|
|
29
|
+
hevc_amf: "hevc_amf";
|
|
30
|
+
libx264: "libx264";
|
|
31
|
+
libx265: "libx265";
|
|
32
|
+
}>;
|
|
33
|
+
codec: z.ZodEnum<{
|
|
34
|
+
H264: "H264";
|
|
35
|
+
H265: "H265";
|
|
36
|
+
}>;
|
|
37
|
+
family: z.ZodEnum<{
|
|
38
|
+
videotoolbox: "videotoolbox";
|
|
39
|
+
vaapi: "vaapi";
|
|
40
|
+
qsv: "qsv";
|
|
41
|
+
amf: "amf";
|
|
42
|
+
nvenc: "nvenc";
|
|
43
|
+
software: "software";
|
|
44
|
+
}>;
|
|
45
|
+
available: z.ZodBoolean;
|
|
46
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type HardwareEncoderProbe = z.infer<typeof HardwareEncoderProbeSchema>;
|
|
49
|
+
declare const HardwareEncodersSchema: z.ZodObject<{
|
|
50
|
+
encoders: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
51
|
+
encoder: z.ZodEnum<{
|
|
52
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
53
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
54
|
+
h264_vaapi: "h264_vaapi";
|
|
55
|
+
hevc_vaapi: "hevc_vaapi";
|
|
56
|
+
h264_nvenc: "h264_nvenc";
|
|
57
|
+
hevc_nvenc: "hevc_nvenc";
|
|
58
|
+
h264_qsv: "h264_qsv";
|
|
59
|
+
hevc_qsv: "hevc_qsv";
|
|
60
|
+
h264_amf: "h264_amf";
|
|
61
|
+
hevc_amf: "hevc_amf";
|
|
62
|
+
libx264: "libx264";
|
|
63
|
+
libx265: "libx265";
|
|
64
|
+
}>;
|
|
65
|
+
codec: z.ZodEnum<{
|
|
66
|
+
H264: "H264";
|
|
67
|
+
H265: "H265";
|
|
68
|
+
}>;
|
|
69
|
+
family: z.ZodEnum<{
|
|
70
|
+
videotoolbox: "videotoolbox";
|
|
71
|
+
vaapi: "vaapi";
|
|
72
|
+
qsv: "qsv";
|
|
73
|
+
amf: "amf";
|
|
74
|
+
nvenc: "nvenc";
|
|
75
|
+
software: "software";
|
|
76
|
+
}>;
|
|
77
|
+
available: z.ZodBoolean;
|
|
78
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
defaultH264: z.ZodEnum<{
|
|
81
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
82
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
83
|
+
h264_vaapi: "h264_vaapi";
|
|
84
|
+
hevc_vaapi: "hevc_vaapi";
|
|
85
|
+
h264_nvenc: "h264_nvenc";
|
|
86
|
+
hevc_nvenc: "hevc_nvenc";
|
|
87
|
+
h264_qsv: "h264_qsv";
|
|
88
|
+
hevc_qsv: "hevc_qsv";
|
|
89
|
+
h264_amf: "h264_amf";
|
|
90
|
+
hevc_amf: "hevc_amf";
|
|
91
|
+
libx264: "libx264";
|
|
92
|
+
libx265: "libx265";
|
|
93
|
+
}>;
|
|
94
|
+
defaultH265: z.ZodEnum<{
|
|
95
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
96
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
97
|
+
h264_vaapi: "h264_vaapi";
|
|
98
|
+
hevc_vaapi: "hevc_vaapi";
|
|
99
|
+
h264_nvenc: "h264_nvenc";
|
|
100
|
+
hevc_nvenc: "hevc_nvenc";
|
|
101
|
+
h264_qsv: "h264_qsv";
|
|
102
|
+
hevc_qsv: "hevc_qsv";
|
|
103
|
+
h264_amf: "h264_amf";
|
|
104
|
+
hevc_amf: "hevc_amf";
|
|
105
|
+
libx264: "libx264";
|
|
106
|
+
libx265: "libx265";
|
|
107
|
+
}>;
|
|
108
|
+
probedAt: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type HardwareEncoders = z.infer<typeof HardwareEncodersSchema>;
|
|
3
111
|
export declare const platformProbeCapability: {
|
|
4
112
|
readonly name: "platform-probe";
|
|
5
113
|
readonly scope: "system";
|
|
6
114
|
readonly mode: "singleton";
|
|
7
115
|
readonly methods: {
|
|
8
|
-
/** Return cached hardware + scored backends for this node. */
|
|
9
116
|
readonly getCapabilities: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
10
117
|
hardware: z.ZodObject<{
|
|
11
118
|
platform: z.ZodEnum<{
|
|
@@ -70,7 +177,6 @@ export declare const platformProbeCapability: {
|
|
|
70
177
|
}, z.core.$strip>;
|
|
71
178
|
pythonPath: z.ZodNullable<z.ZodString>;
|
|
72
179
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
73
|
-
/** Convenience getter — hardware only. */
|
|
74
180
|
readonly getHardware: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
75
181
|
platform: z.ZodEnum<{
|
|
76
182
|
darwin: "darwin";
|
|
@@ -102,12 +208,6 @@ export declare const platformProbeCapability: {
|
|
|
102
208
|
}>;
|
|
103
209
|
}, z.core.$strip>>;
|
|
104
210
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
105
|
-
/**
|
|
106
|
-
* Resolve the best (model, runtime, backend, format) for a given list
|
|
107
|
-
* of requirements, using this node's scored backends as the candidate
|
|
108
|
-
* pool. Always returns a config — falls back to CPU when no preferred
|
|
109
|
-
* backend matches.
|
|
110
|
-
*/
|
|
111
211
|
readonly resolveInferenceConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
112
212
|
requirements: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
113
213
|
modelId: z.ZodString;
|
|
@@ -132,13 +232,6 @@ export declare const platformProbeCapability: {
|
|
|
132
232
|
}>;
|
|
133
233
|
reason: z.ZodString;
|
|
134
234
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
135
|
-
/**
|
|
136
|
-
* Resolve the ordered HW acceleration backend list for this node.
|
|
137
|
-
* Pass `prefer` to hint a specific backend; pass `null` or omit
|
|
138
|
-
* for auto-detection. Replaces the legacy `$hwaccel.resolve`
|
|
139
|
-
* Moleculer action — cap routing handles per-node dispatch via
|
|
140
|
-
* `nodeId`.
|
|
141
|
-
*/
|
|
142
235
|
readonly resolveHwAccel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
143
236
|
prefer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
144
237
|
coreml: "coreml";
|
|
@@ -162,7 +255,133 @@ export declare const platformProbeCapability: {
|
|
|
162
255
|
}, z.core.$strip>, z.ZodObject<{
|
|
163
256
|
preferred: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
164
257
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
258
|
+
/**
|
|
259
|
+
* Hardware-encoder probe — see Task #185. Cached after first call.
|
|
260
|
+
*/
|
|
261
|
+
readonly getHardwareEncoders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
262
|
+
encoders: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
263
|
+
encoder: z.ZodEnum<{
|
|
264
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
265
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
266
|
+
h264_vaapi: "h264_vaapi";
|
|
267
|
+
hevc_vaapi: "hevc_vaapi";
|
|
268
|
+
h264_nvenc: "h264_nvenc";
|
|
269
|
+
hevc_nvenc: "hevc_nvenc";
|
|
270
|
+
h264_qsv: "h264_qsv";
|
|
271
|
+
hevc_qsv: "hevc_qsv";
|
|
272
|
+
h264_amf: "h264_amf";
|
|
273
|
+
hevc_amf: "hevc_amf";
|
|
274
|
+
libx264: "libx264";
|
|
275
|
+
libx265: "libx265";
|
|
276
|
+
}>;
|
|
277
|
+
codec: z.ZodEnum<{
|
|
278
|
+
H264: "H264";
|
|
279
|
+
H265: "H265";
|
|
280
|
+
}>;
|
|
281
|
+
family: z.ZodEnum<{
|
|
282
|
+
videotoolbox: "videotoolbox";
|
|
283
|
+
vaapi: "vaapi";
|
|
284
|
+
qsv: "qsv";
|
|
285
|
+
amf: "amf";
|
|
286
|
+
nvenc: "nvenc";
|
|
287
|
+
software: "software";
|
|
288
|
+
}>;
|
|
289
|
+
available: z.ZodBoolean;
|
|
290
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>>>;
|
|
292
|
+
defaultH264: z.ZodEnum<{
|
|
293
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
294
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
295
|
+
h264_vaapi: "h264_vaapi";
|
|
296
|
+
hevc_vaapi: "hevc_vaapi";
|
|
297
|
+
h264_nvenc: "h264_nvenc";
|
|
298
|
+
hevc_nvenc: "hevc_nvenc";
|
|
299
|
+
h264_qsv: "h264_qsv";
|
|
300
|
+
hevc_qsv: "hevc_qsv";
|
|
301
|
+
h264_amf: "h264_amf";
|
|
302
|
+
hevc_amf: "hevc_amf";
|
|
303
|
+
libx264: "libx264";
|
|
304
|
+
libx265: "libx265";
|
|
305
|
+
}>;
|
|
306
|
+
defaultH265: z.ZodEnum<{
|
|
307
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
308
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
309
|
+
h264_vaapi: "h264_vaapi";
|
|
310
|
+
hevc_vaapi: "hevc_vaapi";
|
|
311
|
+
h264_nvenc: "h264_nvenc";
|
|
312
|
+
hevc_nvenc: "hevc_nvenc";
|
|
313
|
+
h264_qsv: "h264_qsv";
|
|
314
|
+
hevc_qsv: "hevc_qsv";
|
|
315
|
+
h264_amf: "h264_amf";
|
|
316
|
+
hevc_amf: "hevc_amf";
|
|
317
|
+
libx264: "libx264";
|
|
318
|
+
libx265: "libx265";
|
|
319
|
+
}>;
|
|
320
|
+
probedAt: z.ZodNumber;
|
|
321
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
322
|
+
readonly refreshHardwareEncoders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
323
|
+
encoders: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
324
|
+
encoder: z.ZodEnum<{
|
|
325
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
326
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
327
|
+
h264_vaapi: "h264_vaapi";
|
|
328
|
+
hevc_vaapi: "hevc_vaapi";
|
|
329
|
+
h264_nvenc: "h264_nvenc";
|
|
330
|
+
hevc_nvenc: "hevc_nvenc";
|
|
331
|
+
h264_qsv: "h264_qsv";
|
|
332
|
+
hevc_qsv: "hevc_qsv";
|
|
333
|
+
h264_amf: "h264_amf";
|
|
334
|
+
hevc_amf: "hevc_amf";
|
|
335
|
+
libx264: "libx264";
|
|
336
|
+
libx265: "libx265";
|
|
337
|
+
}>;
|
|
338
|
+
codec: z.ZodEnum<{
|
|
339
|
+
H264: "H264";
|
|
340
|
+
H265: "H265";
|
|
341
|
+
}>;
|
|
342
|
+
family: z.ZodEnum<{
|
|
343
|
+
videotoolbox: "videotoolbox";
|
|
344
|
+
vaapi: "vaapi";
|
|
345
|
+
qsv: "qsv";
|
|
346
|
+
amf: "amf";
|
|
347
|
+
nvenc: "nvenc";
|
|
348
|
+
software: "software";
|
|
349
|
+
}>;
|
|
350
|
+
available: z.ZodBoolean;
|
|
351
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
352
|
+
}, z.core.$strip>>>;
|
|
353
|
+
defaultH264: z.ZodEnum<{
|
|
354
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
355
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
356
|
+
h264_vaapi: "h264_vaapi";
|
|
357
|
+
hevc_vaapi: "hevc_vaapi";
|
|
358
|
+
h264_nvenc: "h264_nvenc";
|
|
359
|
+
hevc_nvenc: "hevc_nvenc";
|
|
360
|
+
h264_qsv: "h264_qsv";
|
|
361
|
+
hevc_qsv: "hevc_qsv";
|
|
362
|
+
h264_amf: "h264_amf";
|
|
363
|
+
hevc_amf: "hevc_amf";
|
|
364
|
+
libx264: "libx264";
|
|
365
|
+
libx265: "libx265";
|
|
366
|
+
}>;
|
|
367
|
+
defaultH265: z.ZodEnum<{
|
|
368
|
+
h264_videotoolbox: "h264_videotoolbox";
|
|
369
|
+
hevc_videotoolbox: "hevc_videotoolbox";
|
|
370
|
+
h264_vaapi: "h264_vaapi";
|
|
371
|
+
hevc_vaapi: "hevc_vaapi";
|
|
372
|
+
h264_nvenc: "h264_nvenc";
|
|
373
|
+
hevc_nvenc: "hevc_nvenc";
|
|
374
|
+
h264_qsv: "h264_qsv";
|
|
375
|
+
hevc_qsv: "hevc_qsv";
|
|
376
|
+
h264_amf: "h264_amf";
|
|
377
|
+
hevc_amf: "hevc_amf";
|
|
378
|
+
libx264: "libx264";
|
|
379
|
+
libx265: "libx265";
|
|
380
|
+
}>;
|
|
381
|
+
probedAt: z.ZodNumber;
|
|
382
|
+
}, z.core.$strip>, "mutation">;
|
|
165
383
|
};
|
|
166
384
|
};
|
|
167
385
|
export type IPlatformProbeProvider = InferProvider<typeof platformProbeCapability>;
|
|
386
|
+
export {};
|
|
168
387
|
//# sourceMappingURL=platform-probe.cap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-probe.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/platform-probe.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"platform-probe.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/platform-probe.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAgBlG,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;EAa3B,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AA0DrE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAehC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQkC,CAAA;AAEzC,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
declare const SendEmailInputSchema: z.ZodObject<{
|
|
4
|
-
to: z.ZodUnion<readonly [z.
|
|
5
|
-
cc: z.ZodOptional<z.ZodArray<z.
|
|
6
|
-
bcc: z.ZodOptional<z.ZodArray<z.
|
|
4
|
+
to: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodEmail>]>;
|
|
5
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
|
|
6
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
|
|
7
7
|
from: z.ZodOptional<z.ZodString>;
|
|
8
8
|
replyTo: z.ZodOptional<z.ZodString>;
|
|
9
9
|
subject: z.ZodString;
|
|
@@ -12,8 +12,8 @@ declare const SendEmailInputSchema: z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
declare const SendEmailResultSchema: z.ZodObject<{
|
|
14
14
|
messageId: z.ZodString;
|
|
15
|
-
accepted: z.ZodDefault<z.ZodArray<z.
|
|
16
|
-
rejected: z.ZodDefault<z.ZodArray<z.
|
|
15
|
+
accepted: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
16
|
+
rejected: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
declare const SmtpStatusSchema: z.ZodObject<{
|
|
19
19
|
ready: z.ZodBoolean;
|
|
@@ -26,11 +26,12 @@ export declare const smtpProviderCapability: {
|
|
|
26
26
|
readonly scope: "system";
|
|
27
27
|
readonly mode: "collection";
|
|
28
28
|
readonly internal: true;
|
|
29
|
+
readonly providerKind: "email";
|
|
29
30
|
readonly methods: {
|
|
30
31
|
readonly sendEmail: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
31
|
-
to: z.ZodUnion<readonly [z.
|
|
32
|
-
cc: z.ZodOptional<z.ZodArray<z.
|
|
33
|
-
bcc: z.ZodOptional<z.ZodArray<z.
|
|
32
|
+
to: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodEmail>]>;
|
|
33
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
|
|
34
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
|
|
34
35
|
from: z.ZodOptional<z.ZodString>;
|
|
35
36
|
replyTo: z.ZodOptional<z.ZodString>;
|
|
36
37
|
subject: z.ZodString;
|
|
@@ -38,8 +39,8 @@ export declare const smtpProviderCapability: {
|
|
|
38
39
|
html: z.ZodOptional<z.ZodString>;
|
|
39
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
41
|
messageId: z.ZodString;
|
|
41
|
-
accepted: z.ZodDefault<z.ZodArray<z.
|
|
42
|
-
rejected: z.ZodDefault<z.ZodArray<z.
|
|
42
|
+
accepted: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
43
|
+
rejected: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
43
44
|
}, z.core.$strip>, "mutation">;
|
|
44
45
|
/** Round-trip ping against the SMTP relay (EHLO + AUTH if configured).
|
|
45
46
|
* Used by the operator's "Test connection" button. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smtp-provider.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/smtp-provider.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAiBlG,QAAA,MAAM,oBAAoB;;;;;;;;;iBAgBxB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;iBAIzB,CAAA;AAEF,QAAA,MAAM,gBAAgB;;;;;iBASpB,CAAA;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"smtp-provider.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/smtp-provider.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAiBlG,QAAA,MAAM,oBAAoB;;;;;;;;;iBAgBxB,CAAA;AAEF,QAAA,MAAM,qBAAqB;;;;iBAIzB,CAAA;AAEF,QAAA,MAAM,gBAAgB;;;;;iBASpB,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;QAY/B;+DACuD;;;;;;;;;;;;;;CAYlB,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -21,6 +21,7 @@ declare const SsoBridgeClaimsSchema: z.ZodObject<{
|
|
|
21
21
|
provider: z.ZodString;
|
|
22
22
|
email: z.ZodOptional<z.ZodString>;
|
|
23
23
|
displayName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
hubUrl: z.ZodOptional<z.ZodString>;
|
|
24
25
|
}, z.core.$strip>;
|
|
25
26
|
export declare const ssoBridgeCapability: {
|
|
26
27
|
readonly name: "sso-bridge";
|
|
@@ -36,6 +37,7 @@ export declare const ssoBridgeCapability: {
|
|
|
36
37
|
provider: z.ZodString;
|
|
37
38
|
email: z.ZodOptional<z.ZodString>;
|
|
38
39
|
displayName: z.ZodOptional<z.ZodString>;
|
|
40
|
+
hubUrl: z.ZodOptional<z.ZodString>;
|
|
39
41
|
}, z.core.$strip>;
|
|
40
42
|
ttlSec: z.ZodOptional<z.ZodNumber>;
|
|
41
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -50,6 +52,7 @@ export declare const ssoBridgeCapability: {
|
|
|
50
52
|
provider: z.ZodString;
|
|
51
53
|
email: z.ZodOptional<z.ZodString>;
|
|
52
54
|
displayName: z.ZodOptional<z.ZodString>;
|
|
55
|
+
hubUrl: z.ZodOptional<z.ZodString>;
|
|
53
56
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
54
57
|
};
|
|
55
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-bridge.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/sso-bridge.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"sso-bridge.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/sso-bridge.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,qBAAqB;;;;;;;;iBAgBzB,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBS,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
import type { IStreamBroker } from '../interfaces/stream-broker.js';
|
|
4
|
-
/**
|
|
5
|
-
* Per-broker RTSP restream entry. The broker exposes the public RTSP
|
|
6
|
-
* restream URL for every active profile slot — consumers read the URL
|
|
7
|
-
* here instead of constructing it from broker internals.
|
|
8
|
-
*/
|
|
9
4
|
declare const RtspRestreamEntrySchema: z.ZodObject<{
|
|
10
5
|
brokerId: z.ZodString;
|
|
11
6
|
url: z.ZodString;
|
|
12
7
|
mutedUrl: z.ZodString;
|
|
13
8
|
enabled: z.ZodBoolean;
|
|
14
9
|
}, z.core.$strip>;
|
|
15
|
-
/**
|
|
16
|
-
* Individual-client shapes for the `listClients` roster. One row per
|
|
17
|
-
* consumer of the chosen broker slot (profile) — RTSP sessions,
|
|
18
|
-
* decoded-frame subscribers, audio chunks.
|
|
19
|
-
*/
|
|
20
10
|
export declare const BrokerRtspClientSchema: z.ZodObject<{
|
|
21
11
|
sessionId: z.ZodString;
|
|
22
12
|
remoteAddr: z.ZodString;
|
|
@@ -67,13 +57,6 @@ export type BrokerRtspClient = z.infer<typeof BrokerRtspClientSchema>;
|
|
|
67
57
|
export type BrokerDecodedClient = z.infer<typeof BrokerDecodedClientSchema>;
|
|
68
58
|
export type BrokerAudioClient = z.infer<typeof BrokerAudioClientSchema>;
|
|
69
59
|
export type BrokerClients = z.infer<typeof BrokerClientsSchema>;
|
|
70
|
-
/**
|
|
71
|
-
* Reason rendered by the broker's placeholder image while no live RTP
|
|
72
|
-
* is flowing. Each value maps 1:1 to a pre-encoded H.264 keyframe in
|
|
73
|
-
* `addon-stream-broker/.../placeholder-frames.ts`. Keep aligned with
|
|
74
|
-
* `PlaceholderKind` over there — the union here is the public surface
|
|
75
|
-
* (cap input + provider type) and is the single source of truth.
|
|
76
|
-
*/
|
|
77
60
|
export declare const PlaceholderReasonSchema: z.ZodEnum<{
|
|
78
61
|
disabled: "disabled";
|
|
79
62
|
reconnecting: "reconnecting";
|
|
@@ -82,42 +65,61 @@ export declare const PlaceholderReasonSchema: z.ZodEnum<{
|
|
|
82
65
|
waking: "waking";
|
|
83
66
|
}>;
|
|
84
67
|
export type PlaceholderReason = z.infer<typeof PlaceholderReasonSchema>;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
68
|
+
declare const VideoCodecTargetSchema: z.ZodEnum<{
|
|
69
|
+
auto: "auto";
|
|
70
|
+
H264: "H264";
|
|
71
|
+
H265: "H265";
|
|
72
|
+
}>;
|
|
73
|
+
export type VideoCodecTarget = z.infer<typeof VideoCodecTargetSchema>;
|
|
74
|
+
declare const AudioCodecTargetSchema: z.ZodEnum<{
|
|
75
|
+
none: "none";
|
|
76
|
+
AAC: "AAC";
|
|
77
|
+
Opus: "Opus";
|
|
78
|
+
PCMU: "PCMU";
|
|
79
|
+
}>;
|
|
80
|
+
export type AudioCodecTarget = z.infer<typeof AudioCodecTargetSchema>;
|
|
81
|
+
export declare const GetStreamWithCodecInputSchema: z.ZodObject<{
|
|
82
|
+
deviceId: z.ZodNumber;
|
|
83
|
+
videoCodec: z.ZodEnum<{
|
|
84
|
+
auto: "auto";
|
|
85
|
+
H264: "H264";
|
|
86
|
+
H265: "H265";
|
|
87
|
+
}>;
|
|
88
|
+
audioCodec: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
none: "none";
|
|
90
|
+
AAC: "AAC";
|
|
91
|
+
Opus: "Opus";
|
|
92
|
+
PCMU: "PCMU";
|
|
93
|
+
}>>;
|
|
94
|
+
maxResolution: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
width: z.ZodNumber;
|
|
96
|
+
height: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type GetStreamWithCodecInput = z.infer<typeof GetStreamWithCodecInputSchema>;
|
|
101
|
+
export declare const RtpSourceSchema: z.ZodObject<{
|
|
102
|
+
url: z.ZodString;
|
|
103
|
+
videoCodec: z.ZodEnum<{
|
|
104
|
+
H264: "H264";
|
|
105
|
+
H265: "H265";
|
|
106
|
+
}>;
|
|
107
|
+
audioCodec: z.ZodString;
|
|
108
|
+
resolution: z.ZodObject<{
|
|
109
|
+
width: z.ZodNumber;
|
|
110
|
+
height: z.ZodNumber;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
transcoded: z.ZodBoolean;
|
|
113
|
+
encoder: z.ZodString;
|
|
114
|
+
pipelineKey: z.ZodString;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type RtpSource = z.infer<typeof RtpSourceSchema>;
|
|
107
117
|
export declare const streamBrokerCapability: {
|
|
108
118
|
readonly name: "stream-broker";
|
|
109
119
|
readonly scope: "system";
|
|
110
120
|
readonly mode: "singleton";
|
|
111
121
|
readonly exposesDeviceSettings: true;
|
|
112
122
|
readonly methods: {
|
|
113
|
-
/**
|
|
114
|
-
* Register a physical camera stream as an input option. Idempotent
|
|
115
|
-
* for (deviceId, camStreamId) — re-publishing updates metadata
|
|
116
|
-
* without disturbing profile assignments. The provider calls this
|
|
117
|
-
* in `onInitialize` for each stream it offers. Third-party addons
|
|
118
|
-
* may also publish (e.g. an RTMP discovery layer) — camstack has
|
|
119
|
-
* no notion of "owner" beyond the (deviceId, camStreamId) key.
|
|
120
|
-
*/
|
|
121
123
|
readonly publishCameraStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
122
124
|
deviceId: z.ZodNumber;
|
|
123
125
|
camStreamId: z.ZodString;
|
|
@@ -148,11 +150,6 @@ export declare const streamBrokerCapability: {
|
|
|
148
150
|
}, z.core.$strip>, z.ZodObject<{
|
|
149
151
|
success: z.ZodLiteral<true>;
|
|
150
152
|
}, z.core.$strip>, "mutation">;
|
|
151
|
-
/**
|
|
152
|
-
* Assign a cam stream to a profile slot. Tears down any existing
|
|
153
|
-
* broker for that slot and rebuilds against the new source. Persists
|
|
154
|
-
* the choice — survives reboots.
|
|
155
|
-
*/
|
|
156
153
|
readonly assignProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
157
154
|
deviceId: z.ZodNumber;
|
|
158
155
|
profile: z.ZodEnum<{
|
|
@@ -174,11 +171,6 @@ export declare const streamBrokerCapability: {
|
|
|
174
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
172
|
success: z.ZodLiteral<true>;
|
|
176
173
|
}, z.core.$strip>, "mutation">;
|
|
177
|
-
/**
|
|
178
|
-
* Full dump of every published cam stream across every device.
|
|
179
|
-
* For dashboards and cross-device tooling; per-device reads go
|
|
180
|
-
* through the `camera-streams` cap on the device proxy.
|
|
181
|
-
*/
|
|
182
174
|
readonly listAllCameraStreams: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
183
175
|
camStreamId: z.ZodString;
|
|
184
176
|
deviceId: z.ZodNumber;
|
|
@@ -296,7 +288,6 @@ export declare const streamBrokerCapability: {
|
|
|
296
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
289
|
killed: z.ZodBoolean;
|
|
298
290
|
}, z.core.$strip>, "mutation">;
|
|
299
|
-
/** Rebuild the broker for a profile slot in place (re-dial source). */
|
|
300
291
|
readonly restartProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
301
292
|
deviceId: z.ZodNumber;
|
|
302
293
|
profile: z.ZodEnum<{
|
|
@@ -319,12 +310,48 @@ export declare const streamBrokerCapability: {
|
|
|
319
310
|
url: z.ZodString;
|
|
320
311
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
321
312
|
/**
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
* co-located. BrokerId is `${deviceId}/${camStreamId}` — profile
|
|
325
|
-
* lookup goes through `assignments` if a caller starts from a
|
|
326
|
-
* profile.
|
|
313
|
+
* Shared codec-targeted stream API — see Task #184.
|
|
314
|
+
* Resolution order: source-select → HW transcode → libx264/libx265.
|
|
327
315
|
*/
|
|
316
|
+
readonly getStreamWithCodec: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
317
|
+
deviceId: z.ZodNumber;
|
|
318
|
+
videoCodec: z.ZodEnum<{
|
|
319
|
+
auto: "auto";
|
|
320
|
+
H264: "H264";
|
|
321
|
+
H265: "H265";
|
|
322
|
+
}>;
|
|
323
|
+
audioCodec: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
none: "none";
|
|
325
|
+
AAC: "AAC";
|
|
326
|
+
Opus: "Opus";
|
|
327
|
+
PCMU: "PCMU";
|
|
328
|
+
}>>;
|
|
329
|
+
maxResolution: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
width: z.ZodNumber;
|
|
331
|
+
height: z.ZodNumber;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
+
url: z.ZodString;
|
|
336
|
+
videoCodec: z.ZodEnum<{
|
|
337
|
+
H264: "H264";
|
|
338
|
+
H265: "H265";
|
|
339
|
+
}>;
|
|
340
|
+
audioCodec: z.ZodString;
|
|
341
|
+
resolution: z.ZodObject<{
|
|
342
|
+
width: z.ZodNumber;
|
|
343
|
+
height: z.ZodNumber;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
transcoded: z.ZodBoolean;
|
|
346
|
+
encoder: z.ZodString;
|
|
347
|
+
pipelineKey: z.ZodString;
|
|
348
|
+
}, z.core.$strip>, "mutation">;
|
|
349
|
+
readonly releaseStreamWithCodec: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
350
|
+
pipelineKey: z.ZodString;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
released: z.ZodBoolean;
|
|
353
|
+
refcount: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>, "mutation">;
|
|
328
355
|
readonly getBroker: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
329
356
|
brokerId: z.ZodString;
|
|
330
357
|
}, z.core.$strip>, z.ZodCustom<IStreamBroker | null, IStreamBroker | null>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
@@ -369,12 +396,6 @@ export declare const streamBrokerCapability: {
|
|
|
369
396
|
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
370
397
|
};
|
|
371
398
|
readonly events: {
|
|
372
|
-
/**
|
|
373
|
-
* Emitted when a profile starts consuming a push-kind cam stream.
|
|
374
|
-
* Push-kind providers (e.g. Reolink Baichuan native streams)
|
|
375
|
-
* subscribe and begin emitting packets only on demand — battery
|
|
376
|
-
* cams stay asleep until someone actually watches.
|
|
377
|
-
*/
|
|
378
399
|
readonly onCamStreamDemand: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
379
400
|
deviceId: z.ZodNumber;
|
|
380
401
|
camStreamId: z.ZodString;
|
|
@@ -384,26 +405,10 @@ export declare const streamBrokerCapability: {
|
|
|
384
405
|
low: "low";
|
|
385
406
|
}>;
|
|
386
407
|
}, z.core.$strip>>;
|
|
387
|
-
/**
|
|
388
|
-
* Emitted when the last profile consuming a push-kind cam stream
|
|
389
|
-
* releases it. Providers tear down upstream connections on this
|
|
390
|
-
* signal.
|
|
391
|
-
*/
|
|
392
408
|
readonly onCamStreamIdle: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
393
409
|
deviceId: z.ZodNumber;
|
|
394
410
|
camStreamId: z.ZodString;
|
|
395
411
|
}, z.core.$strip>>;
|
|
396
|
-
/**
|
|
397
|
-
* Emitted by a broker that failed to dial a managed-loopback
|
|
398
|
-
* source (today: `pull-rfc4571`). The publisher's transport (e.g.
|
|
399
|
-
* the Reolink lib's RFC 4571 TCP server) idle-tears-down after
|
|
400
|
-
* ~15s with no clients and may rebind to a different port on
|
|
401
|
-
* recreate, leaving the URL the broker has cached stale. The owning
|
|
402
|
-
* camera provider re-runs its publish pipeline on receipt — that
|
|
403
|
-
* call self-heals the loopback server (`ensureRfc4571Server`) and
|
|
404
|
-
* `publishCameraStream` propagates the fresh URL back into the
|
|
405
|
-
* broker's source resolver.
|
|
406
|
-
*/
|
|
407
412
|
readonly onRequestStreamSourceRefresh: import("./capability-definition.js").CapabilityEventSchema<z.ZodObject<{
|
|
408
413
|
deviceId: z.ZodNumber;
|
|
409
414
|
camStreamId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-broker.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/stream-broker.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAMzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"stream-broker.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/stream-broker.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAMzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE,QAAA,MAAM,uBAAuB;;;;;iBAK3B,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;iBAQjC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAIvE,QAAA,MAAM,sBAAsB;;;;EAAmC,CAAA;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,QAAA,MAAM,sBAAsB;;;;;EAA0C,CAAA;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAOrE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;iBAMxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAQ1B,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqF/B;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEkC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEhF,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|