@camstack/types 1.2.16 → 1.2.18

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.
Files changed (64) hide show
  1. package/dist/addon.d.ts +1 -0
  2. package/dist/addon.js +266 -2
  3. package/dist/addon.mjs +265 -3
  4. package/dist/capabilities/addons.cap.d.ts +7 -7
  5. package/dist/capabilities/broker.cap.d.ts +8 -8
  6. package/dist/capabilities/camera-streams.cap.d.ts +5 -5
  7. package/dist/capabilities/climate-control.cap.d.ts +8 -8
  8. package/dist/capabilities/day-night.cap.d.ts +8 -8
  9. package/dist/capabilities/decoder.cap.d.ts +2 -2
  10. package/dist/capabilities/device-manager.cap.d.ts +24 -2
  11. package/dist/capabilities/face-gallery.cap.d.ts +1 -1
  12. package/dist/capabilities/image-settings.cap.d.ts +16 -16
  13. package/dist/capabilities/index.d.ts +2 -2
  14. package/dist/capabilities/intercom.cap.d.ts +6 -6
  15. package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
  16. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  17. package/dist/capabilities/llm.cap.d.ts +4 -4
  18. package/dist/capabilities/local-network.cap.d.ts +38 -0
  19. package/dist/capabilities/media-player.cap.d.ts +9 -9
  20. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  21. package/dist/capabilities/mqtt-broker.cap.d.ts +3 -3
  22. package/dist/capabilities/notification-output.cap.d.ts +4 -0
  23. package/dist/capabilities/notification-rules.cap.d.ts +378 -18
  24. package/dist/capabilities/pipeline-analytics.cap.d.ts +133 -27
  25. package/dist/capabilities/pipeline-executor.cap.d.ts +2 -2
  26. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +15 -15
  27. package/dist/capabilities/pipeline-runner.cap.d.ts +2 -2
  28. package/dist/capabilities/recording-export.cap.d.ts +7 -7
  29. package/dist/capabilities/recording.cap.d.ts +102 -129
  30. package/dist/capabilities/schemas/orchestrator-metrics.d.ts +2 -2
  31. package/dist/capabilities/schemas/streaming-shared.d.ts +4 -4
  32. package/dist/capabilities/storage-provider.cap.d.ts +44 -0
  33. package/dist/capabilities/storage.cap.d.ts +17 -1
  34. package/dist/capabilities/stream-broker.cap.d.ts +58 -12
  35. package/dist/capabilities/webrtc-session.cap.d.ts +6 -6
  36. package/dist/enums/event-category.d.ts +13 -0
  37. package/dist/enums.js +1 -1
  38. package/dist/enums.mjs +1 -1
  39. package/dist/{event-category-Cdyife4p.js → event-category-39bpf1r_.js} +13 -0
  40. package/dist/{event-category-BLcNejAE.mjs → event-category-Bz24uP1U.mjs} +13 -0
  41. package/dist/generated/addon-api.d.ts +5358 -30965
  42. package/dist/generated/cap-input-defaults.d.ts +29 -0
  43. package/dist/generated/device-proxy.d.ts +2 -2
  44. package/dist/generated/method-access-map.d.ts +1 -1
  45. package/dist/generated/system-proxy.d.ts +3 -3
  46. package/dist/index.d.ts +2 -1
  47. package/dist/index.js +724 -138
  48. package/dist/index.mjs +711 -135
  49. package/dist/interfaces/addon.d.ts +9 -0
  50. package/dist/interfaces/ops-log.d.ts +2 -0
  51. package/dist/interfaces/recording-config.d.ts +33 -91
  52. package/dist/interfaces/relocate.d.ts +55 -0
  53. package/dist/interfaces/storage-location-declaration.d.ts +1 -1
  54. package/dist/interfaces/storage-location.d.ts +4 -0
  55. package/dist/interfaces/stream-broker.d.ts +1 -1
  56. package/dist/lifecycle/job.d.ts +6 -6
  57. package/dist/node.js +1 -0
  58. package/dist/node.mjs +1 -0
  59. package/dist/notification/condition-taxonomy.d.ts +61 -0
  60. package/dist/notification/format-transcode.d.ts +12 -1
  61. package/dist/{sleep-C3ceNSsf.mjs → sleep-B_Uaqbai.mjs} +7 -1
  62. package/dist/{sleep-DRg9F6JJ.js → sleep-DETsT9rJ.js} +7 -1
  63. package/package.json +1 -1
  64. package/dist/interfaces/recording-config-migrate.d.ts +0 -12
@@ -74,6 +74,16 @@ declare const ConnectionEndpointSchema: z.ZodObject<{
74
74
  plausibleReason: z.ZodString;
75
75
  priority: z.ZodNumber;
76
76
  }, z.core.$strip>;
77
+ /**
78
+ * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
79
+ * AUTO (resolved from the candidate ranking at send time); `resolved` reports
80
+ * what AUTO currently picks, so the UI can show the effective value either way.
81
+ */
82
+ declare const NotificationEndpointSchema: z.ZodObject<{
83
+ baseUrl: z.ZodNullable<z.ZodString>;
84
+ resolved: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>;
86
+ export type NotificationEndpoint = z.infer<typeof NotificationEndpointSchema>;
77
87
  export declare const localNetworkCapability: {
78
88
  readonly name: "local-network";
79
89
  readonly scope: "system";
@@ -180,6 +190,34 @@ export declare const localNetworkCapability: {
180
190
  priority: z.ZodNumber;
181
191
  }, z.core.$strip>>>;
182
192
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
193
+ /**
194
+ * The endpoint OUTBOUND artifacts must be addressed by — notification
195
+ * attachment links and deep links. `baseUrl: null` means AUTO: the first
196
+ * public candidate (a configured origin, then a connected tunnel, then the
197
+ * LAN), never loopback.
198
+ *
199
+ * Why an explicit marker: the automatic ranking cannot know which of
200
+ * several reachable addresses the RECIPIENT can actually open. A link is
201
+ * consumed on someone's phone, off the LAN, possibly hours later — and a
202
+ * link nobody can open is worse than no link, because the notification
203
+ * arrives advertising media that 404s.
204
+ */
205
+ readonly getNotificationEndpoint: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
206
+ baseUrl: z.ZodNullable<z.ZodString>;
207
+ resolved: z.ZodNullable<z.ZodString>;
208
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
209
+ /**
210
+ * Mark which endpoint notification artifacts use. `baseUrl: null` restores
211
+ * AUTO. The value is stored verbatim (not an index into the candidate
212
+ * list): interfaces come and go, and an index would silently re-point at a
213
+ * different address after a reboot.
214
+ */
215
+ readonly setNotificationEndpoint: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
216
+ baseUrl: z.ZodNullable<z.ZodString>;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ baseUrl: z.ZodNullable<z.ZodString>;
219
+ resolved: z.ZodNullable<z.ZodString>;
220
+ }, z.core.$strip>, "mutation">;
183
221
  /**
184
222
  * Read the operator's allowlist. Empty = "auto" (no filter). Used
185
223
  * by the admin UI's address selector to seed its checkbox state.
@@ -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";
17
18
  idle: "idle";
18
19
  playing: "playing";
19
- off: "off";
20
20
  on: "on";
21
21
  paused: "paused";
22
22
  buffering: "buffering";
@@ -24,8 +24,8 @@ export declare const MediaPlayerStateSchema: z.ZodEnum<{
24
24
  }>;
25
25
  export type MediaPlayerState = z.infer<typeof MediaPlayerStateSchema>;
26
26
  export declare const MediaPlayerRepeatSchema: z.ZodEnum<{
27
- all: "all";
28
27
  off: "off";
28
+ all: "all";
29
29
  one: "one";
30
30
  }>;
31
31
  export type MediaPlayerRepeat = z.infer<typeof MediaPlayerRepeatSchema>;
@@ -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";
42
43
  idle: "idle";
43
44
  playing: "playing";
44
- off: "off";
45
45
  on: "on";
46
46
  paused: "paused";
47
47
  buffering: "buffering";
@@ -62,8 +62,8 @@ export declare const MediaPlayerStatusSchema: z.ZodObject<{
62
62
  durationMs: z.ZodNullable<z.ZodNumber>;
63
63
  shuffle: z.ZodNullable<z.ZodBoolean>;
64
64
  repeat: z.ZodNullable<z.ZodEnum<{
65
- all: "all";
66
65
  off: "off";
66
+ all: "all";
67
67
  one: "one";
68
68
  }>>;
69
69
  lastChangedAt: z.ZodNumber;
@@ -110,8 +110,8 @@ export declare const mediaPlayerCapability: {
110
110
  readonly setRepeat: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
111
111
  deviceId: z.ZodNumber;
112
112
  repeat: z.ZodEnum<{
113
- all: "all";
114
113
  off: "off";
114
+ all: "all";
115
115
  one: "one";
116
116
  }>;
117
117
  }, z.core.$strip>, z.ZodVoid, "mutation">;
@@ -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";
131
132
  idle: "idle";
132
133
  playing: "playing";
133
- off: "off";
134
134
  on: "on";
135
135
  paused: "paused";
136
136
  buffering: "buffering";
@@ -151,8 +151,8 @@ export declare const mediaPlayerCapability: {
151
151
  durationMs: z.ZodNullable<z.ZodNumber>;
152
152
  shuffle: z.ZodNullable<z.ZodBoolean>;
153
153
  repeat: z.ZodNullable<z.ZodEnum<{
154
- all: "all";
155
154
  off: "off";
155
+ all: "all";
156
156
  one: "one";
157
157
  }>>;
158
158
  lastChangedAt: z.ZodNumber;
@@ -166,9 +166,9 @@ export declare const mediaPlayerCapability: {
166
166
  */
167
167
  readonly runtimeState: z.ZodObject<{
168
168
  state: z.ZodEnum<{
169
+ off: "off";
169
170
  idle: "idle";
170
171
  playing: "playing";
171
- off: "off";
172
172
  on: "on";
173
173
  paused: "paused";
174
174
  buffering: "buffering";
@@ -189,8 +189,8 @@ export declare const mediaPlayerCapability: {
189
189
  durationMs: z.ZodNullable<z.ZodNumber>;
190
190
  shuffle: z.ZodNullable<z.ZodBoolean>;
191
191
  repeat: z.ZodNullable<z.ZodEnum<{
192
- all: "all";
193
192
  off: "off";
193
+ all: "all";
194
194
  one: "one";
195
195
  }>>;
196
196
  lastChangedAt: z.ZodNumber;
@@ -172,8 +172,8 @@ declare const AddonInstanceSchema: z.ZodObject<{
172
172
  running: "running";
173
173
  stopped: "stopped";
174
174
  starting: "starting";
175
- stopping: "stopping";
176
175
  crashed: "crashed";
176
+ stopping: "stopping";
177
177
  }>;
178
178
  uptimeSec: z.ZodNumber;
179
179
  }, z.core.$strip>;
@@ -468,8 +468,8 @@ export declare const metricsProviderCapability: {
468
468
  running: "running";
469
469
  stopped: "stopped";
470
470
  starting: "starting";
471
- stopping: "stopping";
472
471
  crashed: "crashed";
472
+ stopping: "stopping";
473
473
  }>;
474
474
  uptimeSec: z.ZodNumber;
475
475
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -10,10 +10,10 @@ import { type InferProvider } from './capability-definition.js';
10
10
  * - `tls-error` — TLS handshake failed (cert / SNI / cipher)
11
11
  */
12
12
  declare const BrokerStatusSchema: z.ZodEnum<{
13
- unreachable: "unreachable";
14
13
  connected: "connected";
15
14
  disconnected: "disconnected";
16
15
  "auth-failed": "auth-failed";
16
+ unreachable: "unreachable";
17
17
  "tls-error": "tls-error";
18
18
  }>;
19
19
  declare const BrokerInfoSchema: z.ZodObject<{
@@ -25,10 +25,10 @@ declare const BrokerInfoSchema: z.ZodObject<{
25
25
  embedded: "embedded";
26
26
  }>;
27
27
  status: z.ZodEnum<{
28
- unreachable: "unreachable";
29
28
  connected: "connected";
30
29
  disconnected: "disconnected";
31
30
  "auth-failed": "auth-failed";
31
+ unreachable: "unreachable";
32
32
  "tls-error": "tls-error";
33
33
  }>;
34
34
  latencyMs: z.ZodNullable<z.ZodNumber>;
@@ -90,10 +90,10 @@ export declare const mqttBrokerCapability: {
90
90
  embedded: "embedded";
91
91
  }>;
92
92
  status: z.ZodEnum<{
93
- unreachable: "unreachable";
94
93
  connected: "connected";
95
94
  disconnected: "disconnected";
96
95
  "auth-failed": "auth-failed";
96
+ unreachable: "unreachable";
97
97
  "tls-error": "tls-error";
98
98
  }>;
99
99
  latencyMs: z.ZodNullable<z.ZodNumber>;
@@ -199,6 +199,8 @@ export declare const TargetKindSchema: z.ZodObject<{
199
199
  label: z.ZodString;
200
200
  icon: z.ZodString;
201
201
  addonId: z.ZodString;
202
+ iconUrl: z.ZodOptional<z.ZodString>;
203
+ iconMediaType: z.ZodOptional<z.ZodString>;
202
204
  configSchema: z.ZodUnknown;
203
205
  supportsDiscovery: z.ZodBoolean;
204
206
  caps: z.ZodObject<{
@@ -326,6 +328,8 @@ export declare const notificationOutputCapability: {
326
328
  label: z.ZodString;
327
329
  icon: z.ZodString;
328
330
  addonId: z.ZodString;
331
+ iconUrl: z.ZodOptional<z.ZodString>;
332
+ iconMediaType: z.ZodOptional<z.ZodString>;
329
333
  configSchema: z.ZodUnknown;
330
334
  supportsDiscovery: z.ZodBoolean;
331
335
  caps: z.ZodObject<{