@camstack/types 1.1.7 → 1.1.8

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.
@@ -1127,6 +1127,18 @@ export declare const deviceManagerCapability: {
1127
1127
  camDeviceId: z.ZodNumber;
1128
1128
  addonId: z.ZodString;
1129
1129
  }, z.core.$strip>, z.ZodVoid, "mutation">;
1130
+ /**
1131
+ * Re-sync a device with its source via the device-adoption provider of the
1132
+ * device's OWNING addon (resolved from `camDeviceId`). Unlike the singleton
1133
+ * `device-adoption.resync`, this routes to the correct integration so a
1134
+ * Dreame / Matter / … device never hits another integration's provider.
1135
+ */
1136
+ readonly adoptionResync: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1137
+ camDeviceId: z.ZodNumber;
1138
+ }, z.core.$strip>, z.ZodObject<{
1139
+ changed: z.ZodBoolean;
1140
+ rebuiltChildren: z.ZodNumber;
1141
+ }, z.core.$strip>, "mutation">;
1130
1142
  /**
1131
1143
  * Test a field value on an existing device (e.g. probe an RTSP URL).
1132
1144
  * Routes through the device-provider for the owning addon.
@@ -2,15 +2,18 @@ import { z } from 'zod';
2
2
  import { type InferProvider } from './capability-definition.js';
3
3
  import { DeviceType } from '../device/device-type.js';
4
4
  /**
5
- * Image display cap. Models HA `image.*` entities a single still image
6
- * exposed by an integration (a snapshot, a chart, a generated picture).
5
+ * Image display cap. Models a single still image exposed by an integration
6
+ * a snapshot, a chart, a generated picture, or a robot's cleaning-map render.
7
7
  *
8
- * Read-only: there are no setters. The provider resolves the HA
9
- * `entity_picture` (a relative, signed-token path) into an ABSOLUTE URL
10
- * the browser loads directly the token stays in the query string so no
11
- * auth header is required. The slice carries that URL plus the upstream
12
- * last-updated timestamp; the image changes when the entity state (a
13
- * timestamp) changes.
8
+ * Read-only: there are no setters. The provider resolves whatever upstream
9
+ * source it has into an ABSOLUTE URL the browser loads directly:
10
+ * - HA `image.*` entities the `entity_picture` signed-token path
11
+ * (token stays in the query string, so no auth header is needed);
12
+ * - a Dreame/robot map the cloud/OSS map-image URL (or an addon
13
+ * data-plane URL serving the rendered map bytes), exposed as its own
14
+ * Image child device grouped under the robot's container.
15
+ * The slice carries that URL plus the upstream last-updated timestamp; the
16
+ * image changes when the source's last-updated marker changes.
14
17
  */
15
18
  export declare const ImageStatusSchema: z.ZodObject<{
16
19
  url: z.ZodNullable<z.ZodString>;
@@ -151,7 +151,7 @@ export { weatherCapability, WeatherStatusSchema, type WeatherStatus, type IWeath
151
151
  export { imageCapability, ImageStatusSchema, type ImageStatus, type IImageProvider, } from './image.cap.js';
152
152
  export { lockControlCapability, LockControlStatusSchema, LockStateSchema, type LockControlStatus, type LockState, type ILockControlProvider, } from './lock-control.cap.js';
153
153
  export { vacuumControlCapability, VacuumControlStatusSchema, VacuumStateSchema, TankStatusSchema, type VacuumControlStatus, type VacuumState, type TankStatus, type IVacuumControlProvider, } from './vacuum-control.cap.js';
154
- export { lawnMowerControlCapability, LawnMowerControlStatusSchema, LawnMowerActivitySchema, type LawnMowerControlStatus, type LawnMowerActivity, type ILawnMowerControlProvider, } from './lawn-mower-control.cap.js';
154
+ export { lawnMowerControlCapability, LawnMowerControlStatusSchema, LawnMowerActivitySchema, DeviceCodeSeveritySchema, type LawnMowerControlStatus, type LawnMowerActivity, type DeviceCodeSeverity, type ILawnMowerControlProvider, } from './lawn-mower-control.cap.js';
155
155
  export { fanControlCapability, FanControlStatusSchema, FanDirectionSchema, type FanControlStatus, type FanDirection, type IFanControlProvider, } from './fan-control.cap.js';
156
156
  export { controlCapability, ControlStatusSchema, ControlKindSchema, type ControlStatus, type ControlKind, type ControlSetValueInput, type IControlProvider, } from './control.cap.js';
157
157
  export { notifierCapability, NotifierStatusSchema, type NotifierStatus, type NotifierPriority, type NotifierAction, type NotifierSupports, type NotifierSendInput, type NotifierSendResult, type INotifierProvider, } from './notifier.cap.js';
@@ -20,6 +20,13 @@ export declare const LawnMowerActivitySchema: z.ZodEnum<{
20
20
  docked: "docked";
21
21
  }>;
22
22
  export type LawnMowerActivity = z.infer<typeof LawnMowerActivitySchema>;
23
+ /** Severity of the current device/error code — info (status), warning, error. */
24
+ export declare const DeviceCodeSeveritySchema: z.ZodEnum<{
25
+ error: "error";
26
+ info: "info";
27
+ warning: "warning";
28
+ }>;
29
+ export type DeviceCodeSeverity = z.infer<typeof DeviceCodeSeveritySchema>;
23
30
  export declare const LawnMowerControlStatusSchema: z.ZodObject<{
24
31
  activity: z.ZodEnum<{
25
32
  error: "error";
@@ -29,6 +36,14 @@ export declare const LawnMowerControlStatusSchema: z.ZodObject<{
29
36
  docked: "docked";
30
37
  }>;
31
38
  batteryLevel: z.ZodNullable<z.ZodNumber>;
39
+ progressPercent: z.ZodNullable<z.ZodNumber>;
40
+ currentCode: z.ZodNullable<z.ZodNumber>;
41
+ currentCodeLabel: z.ZodNullable<z.ZodString>;
42
+ severity: z.ZodEnum<{
43
+ error: "error";
44
+ info: "info";
45
+ warning: "warning";
46
+ }>;
32
47
  lastChangedAt: z.ZodNumber;
33
48
  }, z.core.$strip>;
34
49
  export type LawnMowerControlStatus = z.infer<typeof LawnMowerControlStatusSchema>;
@@ -59,6 +74,14 @@ export declare const lawnMowerControlCapability: {
59
74
  docked: "docked";
60
75
  }>;
61
76
  batteryLevel: z.ZodNullable<z.ZodNumber>;
77
+ progressPercent: z.ZodNullable<z.ZodNumber>;
78
+ currentCode: z.ZodNullable<z.ZodNumber>;
79
+ currentCodeLabel: z.ZodNullable<z.ZodString>;
80
+ severity: z.ZodEnum<{
81
+ error: "error";
82
+ info: "info";
83
+ warning: "warning";
84
+ }>;
62
85
  lastChangedAt: z.ZodNumber;
63
86
  }, z.core.$strip>;
64
87
  readonly kind: "push";
@@ -76,6 +99,14 @@ export declare const lawnMowerControlCapability: {
76
99
  docked: "docked";
77
100
  }>;
78
101
  batteryLevel: z.ZodNullable<z.ZodNumber>;
102
+ progressPercent: z.ZodNullable<z.ZodNumber>;
103
+ currentCode: z.ZodNullable<z.ZodNumber>;
104
+ currentCodeLabel: z.ZodNullable<z.ZodString>;
105
+ severity: z.ZodEnum<{
106
+ error: "error";
107
+ info: "info";
108
+ warning: "warning";
109
+ }>;
79
110
  lastChangedAt: z.ZodNumber;
80
111
  }, z.core.$strip>;
81
112
  };
@@ -33,6 +33,7 @@ export declare const VacuumStateSchema: z.ZodEnum<{
33
33
  docked: "docked";
34
34
  cleaning: "cleaning";
35
35
  returning: "returning";
36
+ drying: "drying";
36
37
  }>;
37
38
  export type VacuumState = z.infer<typeof VacuumStateSchema>;
38
39
  /**
@@ -59,6 +60,7 @@ export declare const VacuumControlStatusSchema: z.ZodObject<{
59
60
  docked: "docked";
60
61
  cleaning: "cleaning";
61
62
  returning: "returning";
63
+ drying: "drying";
62
64
  }>;
63
65
  batteryLevel: z.ZodNullable<z.ZodNumber>;
64
66
  fanSpeed: z.ZodNullable<z.ZodString>;
@@ -95,6 +97,9 @@ export declare const VacuumControlStatusSchema: z.ZodObject<{
95
97
  full: "full";
96
98
  }>>;
97
99
  }, z.core.$strip>>;
100
+ progressPercent: z.ZodNullable<z.ZodNumber>;
101
+ errorCode: z.ZodNullable<z.ZodNumber>;
102
+ errorLabel: z.ZodNullable<z.ZodString>;
98
103
  lastChangedAt: z.ZodNumber;
99
104
  }, z.core.$strip>;
100
105
  export type VacuumControlStatus = z.infer<typeof VacuumControlStatusSchema>;
@@ -134,6 +139,7 @@ export declare const vacuumControlCapability: {
134
139
  docked: "docked";
135
140
  cleaning: "cleaning";
136
141
  returning: "returning";
142
+ drying: "drying";
137
143
  }>;
138
144
  batteryLevel: z.ZodNullable<z.ZodNumber>;
139
145
  fanSpeed: z.ZodNullable<z.ZodString>;
@@ -170,6 +176,9 @@ export declare const vacuumControlCapability: {
170
176
  full: "full";
171
177
  }>>;
172
178
  }, z.core.$strip>>;
179
+ progressPercent: z.ZodNullable<z.ZodNumber>;
180
+ errorCode: z.ZodNullable<z.ZodNumber>;
181
+ errorLabel: z.ZodNullable<z.ZodString>;
173
182
  lastChangedAt: z.ZodNumber;
174
183
  }, z.core.$strip>;
175
184
  readonly kind: "push";
@@ -186,6 +195,7 @@ export declare const vacuumControlCapability: {
186
195
  docked: "docked";
187
196
  cleaning: "cleaning";
188
197
  returning: "returning";
198
+ drying: "drying";
189
199
  }>;
190
200
  batteryLevel: z.ZodNullable<z.ZodNumber>;
191
201
  fanSpeed: z.ZodNullable<z.ZodString>;
@@ -222,6 +232,9 @@ export declare const vacuumControlCapability: {
222
232
  full: "full";
223
233
  }>>;
224
234
  }, z.core.$strip>>;
235
+ progressPercent: z.ZodNullable<z.ZodNumber>;
236
+ errorCode: z.ZodNullable<z.ZodNumber>;
237
+ errorLabel: z.ZodNullable<z.ZodString>;
225
238
  lastChangedAt: z.ZodNumber;
226
239
  }, z.core.$strip>;
227
240
  };
@@ -7413,6 +7413,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7413
7413
  output: void;
7414
7414
  meta: object;
7415
7415
  }>;
7416
+ adoptionResync: import("@trpc/server").TRPCMutationProcedure<{
7417
+ input: any;
7418
+ output: any;
7419
+ meta: object;
7420
+ }>;
7416
7421
  testField: import("@trpc/server").TRPCMutationProcedure<{
7417
7422
  input: {
7418
7423
  [x: string]: unknown;
@@ -21106,6 +21111,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
21106
21111
  output: void;
21107
21112
  meta: object;
21108
21113
  }>;
21114
+ adoptionResync: import("@trpc/server").TRPCMutationProcedure<{
21115
+ input: any;
21116
+ output: any;
21117
+ meta: object;
21118
+ }>;
21109
21119
  testField: import("@trpc/server").TRPCMutationProcedure<{
21110
21120
  input: {
21111
21121
  [x: string]: unknown;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 707 method paths across 110 capabilities.
9
+ * Coverage: 708 method paths across 110 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -58,7 +58,7 @@ export interface SystemProxy {
58
58
  readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
59
59
  readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
60
60
  readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
61
- readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'removeByIntegration' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease'>;
61
+ readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'removeByIntegration' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionResync'>;
62
62
  readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'supportsDiscovery' | 'discoverDevices' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
63
63
  readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots'>;
64
64
  readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | 'listRecentFaces' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
package/dist/index.js CHANGED
@@ -5433,15 +5433,18 @@ var humiditySensorCapability = {
5433
5433
  //#endregion
5434
5434
  //#region src/capabilities/image.cap.ts
5435
5435
  /**
5436
- * Image display cap. Models HA `image.*` entities a single still image
5437
- * exposed by an integration (a snapshot, a chart, a generated picture).
5438
- *
5439
- * Read-only: there are no setters. The provider resolves the HA
5440
- * `entity_picture` (a relative, signed-token path) into an ABSOLUTE URL
5441
- * the browser loads directly the token stays in the query string so no
5442
- * auth header is required. The slice carries that URL plus the upstream
5443
- * last-updated timestamp; the image changes when the entity state (a
5444
- * timestamp) changes.
5436
+ * Image display cap. Models a single still image exposed by an integration
5437
+ * a snapshot, a chart, a generated picture, or a robot's cleaning-map render.
5438
+ *
5439
+ * Read-only: there are no setters. The provider resolves whatever upstream
5440
+ * source it has into an ABSOLUTE URL the browser loads directly:
5441
+ * - HA `image.*` entities the `entity_picture` signed-token path
5442
+ * (token stays in the query string, so no auth header is needed);
5443
+ * - a Dreame/robot map the cloud/OSS map-image URL (or an addon
5444
+ * data-plane URL serving the rendered map bytes), exposed as its own
5445
+ * Image child device grouped under the robot's container.
5446
+ * The slice carries that URL plus the upstream last-updated timestamp; the
5447
+ * image changes when the source's last-updated marker changes.
5445
5448
  */
5446
5449
  var ImageStatusSchema = zod.z.object({
5447
5450
  /** Absolute signed URL the browser loads directly. Null when the
@@ -5487,12 +5490,29 @@ var LawnMowerActivitySchema = zod.z.enum([
5487
5490
  "docked",
5488
5491
  "error"
5489
5492
  ]);
5493
+ /** Severity of the current device/error code — info (status), warning, error. */
5494
+ var DeviceCodeSeveritySchema = zod.z.enum([
5495
+ "info",
5496
+ "warning",
5497
+ "error"
5498
+ ]);
5490
5499
  var LawnMowerControlStatusSchema = zod.z.object({
5491
5500
  /** Lifecycle activity of the mower. */
5492
5501
  activity: LawnMowerActivitySchema,
5493
5502
  /** 0..100 battery percentage. Null when the device has no battery
5494
5503
  * reading. */
5495
5504
  batteryLevel: zod.z.number().min(0).max(100).nullable(),
5505
+ /** 0..100 mowing-completion percentage of the current task, or null when no
5506
+ * task is active / progress is unavailable. */
5507
+ progressPercent: zod.z.number().min(0).max(100).nullable(),
5508
+ /** Current device/event code (dynamic — mostly status, sometimes an error),
5509
+ * or null when unknown. */
5510
+ currentCode: zod.z.number().nullable(),
5511
+ /** Human label for {@link currentCode}, or null when undecodable. */
5512
+ currentCodeLabel: zod.z.string().nullable(),
5513
+ /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
5514
+ * attention; `info` is normal status. */
5515
+ severity: DeviceCodeSeveritySchema,
5496
5516
  /** Ms epoch when the slice was last updated. */
5497
5517
  lastChangedAt: zod.z.number()
5498
5518
  });
@@ -8126,6 +8146,7 @@ var VacuumStateSchema = zod.z.enum([
8126
8146
  "paused",
8127
8147
  "returning",
8128
8148
  "docked",
8149
+ "drying",
8129
8150
  "error"
8130
8151
  ]);
8131
8152
  /**
@@ -8164,6 +8185,12 @@ var VacuumControlStatusSchema = zod.z.object({
8164
8185
  detergent: TankStatusSchema.nullable(),
8165
8186
  /** Dust bin. Null when the hardware has no dust bin. */
8166
8187
  dustBin: TankStatusSchema.nullable(),
8188
+ /** 0..100 cleaning-completion percentage of the current task, or null. */
8189
+ progressPercent: zod.z.number().min(0).max(100).nullable(),
8190
+ /** Current error code (0 / null = no error). */
8191
+ errorCode: zod.z.number().nullable(),
8192
+ /** Human label for {@link errorCode}, or null when none / undecodable. */
8193
+ errorLabel: zod.z.string().nullable(),
8167
8194
  /** Ms epoch when the slice was last updated. */
8168
8195
  lastChangedAt: zod.z.number()
8169
8196
  });
@@ -10096,7 +10123,8 @@ function createSystemProxy(api) {
10096
10123
  adoptionListCandidates: (input) => dispatch("deviceManager", "adoptionListCandidates", "query", input),
10097
10124
  adoptionRefresh: (input) => dispatch("deviceManager", "adoptionRefresh", "mutation", input),
10098
10125
  adoptionAdopt: (input) => dispatch("deviceManager", "adoptionAdopt", "mutation", input),
10099
- adoptionRelease: (input) => dispatch("deviceManager", "adoptionRelease", "mutation", input)
10126
+ adoptionRelease: (input) => dispatch("deviceManager", "adoptionRelease", "mutation", input),
10127
+ adoptionResync: (input) => dispatch("deviceManager", "adoptionResync", "mutation", input)
10100
10128
  },
10101
10129
  deviceProvider: {
10102
10130
  start: (input) => dispatch("deviceProvider", "start", "mutation", input),
@@ -15447,6 +15475,16 @@ var deviceManagerCapability = {
15447
15475
  auth: "admin"
15448
15476
  }),
15449
15477
  /**
15478
+ * Re-sync a device with its source via the device-adoption provider of the
15479
+ * device's OWNING addon (resolved from `camDeviceId`). Unlike the singleton
15480
+ * `device-adoption.resync`, this routes to the correct integration so a
15481
+ * Dreame / Matter / … device never hits another integration's provider.
15482
+ */
15483
+ adoptionResync: require_sleep.method(ResyncInputSchema, ResyncResultSchema, {
15484
+ kind: "mutation",
15485
+ auth: "admin"
15486
+ }),
15487
+ /**
15450
15488
  * Test a field value on an existing device (e.g. probe an RTSP URL).
15451
15489
  * Routes through the device-provider for the owning addon.
15452
15490
  */
@@ -21725,6 +21763,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
21725
21763
  addonId: null,
21726
21764
  access: "create"
21727
21765
  },
21766
+ "deviceManager.adoptionResync": {
21767
+ capName: "device-manager",
21768
+ capScope: "system",
21769
+ addonId: null,
21770
+ access: "create"
21771
+ },
21728
21772
  "deviceManager.allocateDeviceId": {
21729
21773
  capName: "device-manager",
21730
21774
  capScope: "system",
@@ -25883,6 +25927,7 @@ exports.DecoderStatsSchema = DecoderStatsSchema;
25883
25927
  exports.DeleteIntegrationResultSchema = DeleteIntegrationResultSchema;
25884
25928
  exports.DetectionSourceSchema = DetectionSourceSchema;
25885
25929
  exports.DetectorOutputSchema = DetectorOutputSchema;
25930
+ exports.DeviceCodeSeveritySchema = DeviceCodeSeveritySchema;
25886
25931
  exports.DeviceConfig = DeviceConfig;
25887
25932
  exports.DeviceDiscoveryStatusSchema = DeviceDiscoveryStatusSchema;
25888
25933
  exports.DeviceExportExposeInputSchema = ExposeInputSchema;
package/dist/index.mjs CHANGED
@@ -5432,15 +5432,18 @@ var humiditySensorCapability = {
5432
5432
  //#endregion
5433
5433
  //#region src/capabilities/image.cap.ts
5434
5434
  /**
5435
- * Image display cap. Models HA `image.*` entities a single still image
5436
- * exposed by an integration (a snapshot, a chart, a generated picture).
5437
- *
5438
- * Read-only: there are no setters. The provider resolves the HA
5439
- * `entity_picture` (a relative, signed-token path) into an ABSOLUTE URL
5440
- * the browser loads directly the token stays in the query string so no
5441
- * auth header is required. The slice carries that URL plus the upstream
5442
- * last-updated timestamp; the image changes when the entity state (a
5443
- * timestamp) changes.
5435
+ * Image display cap. Models a single still image exposed by an integration
5436
+ * a snapshot, a chart, a generated picture, or a robot's cleaning-map render.
5437
+ *
5438
+ * Read-only: there are no setters. The provider resolves whatever upstream
5439
+ * source it has into an ABSOLUTE URL the browser loads directly:
5440
+ * - HA `image.*` entities the `entity_picture` signed-token path
5441
+ * (token stays in the query string, so no auth header is needed);
5442
+ * - a Dreame/robot map the cloud/OSS map-image URL (or an addon
5443
+ * data-plane URL serving the rendered map bytes), exposed as its own
5444
+ * Image child device grouped under the robot's container.
5445
+ * The slice carries that URL plus the upstream last-updated timestamp; the
5446
+ * image changes when the source's last-updated marker changes.
5444
5447
  */
5445
5448
  var ImageStatusSchema = z.object({
5446
5449
  /** Absolute signed URL the browser loads directly. Null when the
@@ -5486,12 +5489,29 @@ var LawnMowerActivitySchema = z.enum([
5486
5489
  "docked",
5487
5490
  "error"
5488
5491
  ]);
5492
+ /** Severity of the current device/error code — info (status), warning, error. */
5493
+ var DeviceCodeSeveritySchema = z.enum([
5494
+ "info",
5495
+ "warning",
5496
+ "error"
5497
+ ]);
5489
5498
  var LawnMowerControlStatusSchema = z.object({
5490
5499
  /** Lifecycle activity of the mower. */
5491
5500
  activity: LawnMowerActivitySchema,
5492
5501
  /** 0..100 battery percentage. Null when the device has no battery
5493
5502
  * reading. */
5494
5503
  batteryLevel: z.number().min(0).max(100).nullable(),
5504
+ /** 0..100 mowing-completion percentage of the current task, or null when no
5505
+ * task is active / progress is unavailable. */
5506
+ progressPercent: z.number().min(0).max(100).nullable(),
5507
+ /** Current device/event code (dynamic — mostly status, sometimes an error),
5508
+ * or null when unknown. */
5509
+ currentCode: z.number().nullable(),
5510
+ /** Human label for {@link currentCode}, or null when undecodable. */
5511
+ currentCodeLabel: z.string().nullable(),
5512
+ /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
5513
+ * attention; `info` is normal status. */
5514
+ severity: DeviceCodeSeveritySchema,
5495
5515
  /** Ms epoch when the slice was last updated. */
5496
5516
  lastChangedAt: z.number()
5497
5517
  });
@@ -8125,6 +8145,7 @@ var VacuumStateSchema = z.enum([
8125
8145
  "paused",
8126
8146
  "returning",
8127
8147
  "docked",
8148
+ "drying",
8128
8149
  "error"
8129
8150
  ]);
8130
8151
  /**
@@ -8163,6 +8184,12 @@ var VacuumControlStatusSchema = z.object({
8163
8184
  detergent: TankStatusSchema.nullable(),
8164
8185
  /** Dust bin. Null when the hardware has no dust bin. */
8165
8186
  dustBin: TankStatusSchema.nullable(),
8187
+ /** 0..100 cleaning-completion percentage of the current task, or null. */
8188
+ progressPercent: z.number().min(0).max(100).nullable(),
8189
+ /** Current error code (0 / null = no error). */
8190
+ errorCode: z.number().nullable(),
8191
+ /** Human label for {@link errorCode}, or null when none / undecodable. */
8192
+ errorLabel: z.string().nullable(),
8166
8193
  /** Ms epoch when the slice was last updated. */
8167
8194
  lastChangedAt: z.number()
8168
8195
  });
@@ -10095,7 +10122,8 @@ function createSystemProxy(api) {
10095
10122
  adoptionListCandidates: (input) => dispatch("deviceManager", "adoptionListCandidates", "query", input),
10096
10123
  adoptionRefresh: (input) => dispatch("deviceManager", "adoptionRefresh", "mutation", input),
10097
10124
  adoptionAdopt: (input) => dispatch("deviceManager", "adoptionAdopt", "mutation", input),
10098
- adoptionRelease: (input) => dispatch("deviceManager", "adoptionRelease", "mutation", input)
10125
+ adoptionRelease: (input) => dispatch("deviceManager", "adoptionRelease", "mutation", input),
10126
+ adoptionResync: (input) => dispatch("deviceManager", "adoptionResync", "mutation", input)
10099
10127
  },
10100
10128
  deviceProvider: {
10101
10129
  start: (input) => dispatch("deviceProvider", "start", "mutation", input),
@@ -15446,6 +15474,16 @@ var deviceManagerCapability = {
15446
15474
  auth: "admin"
15447
15475
  }),
15448
15476
  /**
15477
+ * Re-sync a device with its source via the device-adoption provider of the
15478
+ * device's OWNING addon (resolved from `camDeviceId`). Unlike the singleton
15479
+ * `device-adoption.resync`, this routes to the correct integration so a
15480
+ * Dreame / Matter / … device never hits another integration's provider.
15481
+ */
15482
+ adoptionResync: method(ResyncInputSchema, ResyncResultSchema, {
15483
+ kind: "mutation",
15484
+ auth: "admin"
15485
+ }),
15486
+ /**
15449
15487
  * Test a field value on an existing device (e.g. probe an RTSP URL).
15450
15488
  * Routes through the device-provider for the owning addon.
15451
15489
  */
@@ -21724,6 +21762,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
21724
21762
  addonId: null,
21725
21763
  access: "create"
21726
21764
  },
21765
+ "deviceManager.adoptionResync": {
21766
+ capName: "device-manager",
21767
+ capScope: "system",
21768
+ addonId: null,
21769
+ access: "create"
21770
+ },
21727
21771
  "deviceManager.allocateDeviceId": {
21728
21772
  capName: "device-manager",
21729
21773
  capScope: "system",
@@ -25707,4 +25751,4 @@ function scoreRuntimes(hw) {
25707
25751
  };
25708
25752
  }
25709
25753
  //#endregion
25710
- export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, decoderCapability, defaultDeviceFor, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, jobKindSchema, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, runtimeDevices, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
25754
+ export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, decoderCapability, defaultDeviceFor, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, jobKindSchema, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, runtimeDevices, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",