@camstack/addon-provider-onvif 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.
- package/dist/addon.js +79 -14
- package/dist/addon.mjs +79 -14
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -9076,18 +9076,47 @@ object({
|
|
|
9076
9076
|
lastUpdated: number().nullable()
|
|
9077
9077
|
});
|
|
9078
9078
|
DeviceType.Image;
|
|
9079
|
+
/**
|
|
9080
|
+
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
9081
|
+
* with a mowing lifecycle plus a dock action.
|
|
9082
|
+
*
|
|
9083
|
+
* Activity follows HA's canonical lawn-mower lifecycle: `idle` /
|
|
9084
|
+
* `mowing` / `paused` / `docked` / `error`. `batteryLevel` (0..100) is
|
|
9085
|
+
* nullable — some mowers don't report a battery percentage.
|
|
9086
|
+
*
|
|
9087
|
+
* `startMowing` begins a mowing run, `pause` halts it in place, and
|
|
9088
|
+
* `dock` sends the mower back to its charging station.
|
|
9089
|
+
*/
|
|
9090
|
+
var LawnMowerActivitySchema = _enum([
|
|
9091
|
+
"idle",
|
|
9092
|
+
"mowing",
|
|
9093
|
+
"paused",
|
|
9094
|
+
"docked",
|
|
9095
|
+
"error"
|
|
9096
|
+
]);
|
|
9097
|
+
/** Severity of the current device/error code — info (status), warning, error. */
|
|
9098
|
+
var DeviceCodeSeveritySchema = _enum([
|
|
9099
|
+
"info",
|
|
9100
|
+
"warning",
|
|
9101
|
+
"error"
|
|
9102
|
+
]);
|
|
9079
9103
|
object({
|
|
9080
9104
|
/** Lifecycle activity of the mower. */
|
|
9081
|
-
activity:
|
|
9082
|
-
"idle",
|
|
9083
|
-
"mowing",
|
|
9084
|
-
"paused",
|
|
9085
|
-
"docked",
|
|
9086
|
-
"error"
|
|
9087
|
-
]),
|
|
9105
|
+
activity: LawnMowerActivitySchema,
|
|
9088
9106
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
9089
9107
|
* reading. */
|
|
9090
9108
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
9109
|
+
/** 0..100 mowing-completion percentage of the current task, or null when no
|
|
9110
|
+
* task is active / progress is unavailable. */
|
|
9111
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
9112
|
+
/** Current device/event code (dynamic — mostly status, sometimes an error),
|
|
9113
|
+
* or null when unknown. */
|
|
9114
|
+
currentCode: number().nullable(),
|
|
9115
|
+
/** Human label for {@link currentCode}, or null when undecodable. */
|
|
9116
|
+
currentCodeLabel: string().nullable(),
|
|
9117
|
+
/** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
|
|
9118
|
+
* attention; `info` is normal status. */
|
|
9119
|
+
severity: DeviceCodeSeveritySchema,
|
|
9091
9120
|
/** Ms epoch when the slice was last updated. */
|
|
9092
9121
|
lastChangedAt: number()
|
|
9093
9122
|
});
|
|
@@ -10662,6 +10691,7 @@ var VacuumStateSchema = _enum([
|
|
|
10662
10691
|
"paused",
|
|
10663
10692
|
"returning",
|
|
10664
10693
|
"docked",
|
|
10694
|
+
"drying",
|
|
10665
10695
|
"error"
|
|
10666
10696
|
]);
|
|
10667
10697
|
/**
|
|
@@ -10700,6 +10730,12 @@ object({
|
|
|
10700
10730
|
detergent: TankStatusSchema.nullable(),
|
|
10701
10731
|
/** Dust bin. Null when the hardware has no dust bin. */
|
|
10702
10732
|
dustBin: TankStatusSchema.nullable(),
|
|
10733
|
+
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
10734
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
10735
|
+
/** Current error code (0 / null = no error). */
|
|
10736
|
+
errorCode: number().nullable(),
|
|
10737
|
+
/** Human label for {@link errorCode}, or null when none / undecodable. */
|
|
10738
|
+
errorLabel: string().nullable(),
|
|
10703
10739
|
/** Ms epoch when the slice was last updated. */
|
|
10704
10740
|
lastChangedAt: number()
|
|
10705
10741
|
});
|
|
@@ -12401,17 +12437,32 @@ var ReleaseInputSchema = object({
|
|
|
12401
12437
|
* the parent cascades into every accessory. */
|
|
12402
12438
|
camDeviceId: number().int().nonnegative()
|
|
12403
12439
|
});
|
|
12404
|
-
var ResyncInputSchema = object({
|
|
12405
|
-
/** Parent CamStack device id of an adopted device. The provider resolves its
|
|
12406
|
-
* source (integration/broker + native id) and re-aligns the device's
|
|
12407
|
-
* structural spec (type/role/capabilities/units) with the live mapping,
|
|
12408
|
-
* rebuilding any child whose class changed while preserving operator edits. */
|
|
12409
|
-
camDeviceId: number().int().nonnegative()
|
|
12440
|
+
var ResyncInputSchema = object({
|
|
12441
|
+
/** Parent CamStack device id of an adopted device. The provider resolves its
|
|
12442
|
+
* source (integration/broker + native id) and re-aligns the device's
|
|
12443
|
+
* structural spec (type/role/capabilities/units) with the live mapping,
|
|
12444
|
+
* rebuilding any child whose class changed while preserving operator edits. */
|
|
12445
|
+
camDeviceId: number().int().nonnegative(),
|
|
12446
|
+
/** "Resync from zero" (#19). When true, the kernel PURGES every accessory
|
|
12447
|
+
* child of `camDeviceId` BEFORE the provider re-derives the device, so the
|
|
12448
|
+
* children are rebuilt fresh from source — correct names, coords, and units —
|
|
12449
|
+
* instead of being preserved by the incremental reconcile. Use to recover from
|
|
12450
|
+
* legacy generic/placeholder names that the normal name-precedence keeps frozen
|
|
12451
|
+
* (the operator's explicit reset). Push-driven integrations (no-op resync)
|
|
12452
|
+
* rebuild on their next snapshot; pull/command integrations rebuild in `resync`.
|
|
12453
|
+
* Operator edits on the PARENT (its name, layout, primary-child pick) survive —
|
|
12454
|
+
* only the children are torn down. Omitted/false ⇒ the normal incremental
|
|
12455
|
+
* re-sync that preserves children. */
|
|
12456
|
+
resetToSource: boolean().optional()
|
|
12457
|
+
});
|
|
12410
12458
|
var ResyncResultSchema = object({
|
|
12411
12459
|
/** True when the persisted spec actually changed (children may have been rebuilt). */
|
|
12412
12460
|
changed: boolean(),
|
|
12413
12461
|
/** Number of child devices rebuilt into a new class by this re-sync. */
|
|
12414
|
-
rebuiltChildren: number().int().nonnegative()
|
|
12462
|
+
rebuiltChildren: number().int().nonnegative(),
|
|
12463
|
+
/** Number of accessory children torn down by a `resetToSource` purge before the
|
|
12464
|
+
* provider re-derived the device. 0/absent for a normal incremental re-sync. */
|
|
12465
|
+
removedChildren: number().int().nonnegative().optional()
|
|
12415
12466
|
});
|
|
12416
12467
|
method(object({ integrationId: string() }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }), method(GetCandidateInputSchema, DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }), method(object({ integrationId: string() }), AdoptionStatusSchema, {
|
|
12417
12468
|
kind: "mutation",
|
|
@@ -14110,6 +14161,11 @@ var DeviceMetaSchema = object({
|
|
|
14110
14161
|
addonId: string(),
|
|
14111
14162
|
type: string(),
|
|
14112
14163
|
name: string(),
|
|
14164
|
+
/** True once an operator explicitly renamed the device via `setName`. Drives
|
|
14165
|
+
* reconcile name-precedence (preserve operator name vs adopt fresh provider
|
|
14166
|
+
* name). Absent ⇒ treated as user-named (PRESERVE) for legacy rows. See
|
|
14167
|
+
* `DeviceMeta.userNamed`. */
|
|
14168
|
+
userNamed: boolean().optional(),
|
|
14113
14169
|
location: string().nullable(),
|
|
14114
14170
|
disabled: boolean(),
|
|
14115
14171
|
parentDeviceId: number().nullable(),
|
|
@@ -14420,6 +14476,9 @@ method(object({
|
|
|
14420
14476
|
}), method(ReleaseInputSchema.extend({ addonId: string() }), _void(), {
|
|
14421
14477
|
kind: "mutation",
|
|
14422
14478
|
auth: "admin"
|
|
14479
|
+
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
14480
|
+
kind: "mutation",
|
|
14481
|
+
auth: "admin"
|
|
14423
14482
|
}), method(object({
|
|
14424
14483
|
deviceId: number(),
|
|
14425
14484
|
key: string(),
|
|
@@ -18267,6 +18326,12 @@ Object.freeze({
|
|
|
18267
18326
|
addonId: null,
|
|
18268
18327
|
access: "create"
|
|
18269
18328
|
},
|
|
18329
|
+
"deviceManager.adoptionResync": {
|
|
18330
|
+
capName: "device-manager",
|
|
18331
|
+
capScope: "system",
|
|
18332
|
+
addonId: null,
|
|
18333
|
+
access: "create"
|
|
18334
|
+
},
|
|
18270
18335
|
"deviceManager.allocateDeviceId": {
|
|
18271
18336
|
capName: "device-manager",
|
|
18272
18337
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -9077,18 +9077,47 @@ object({
|
|
|
9077
9077
|
lastUpdated: number().nullable()
|
|
9078
9078
|
});
|
|
9079
9079
|
DeviceType.Image;
|
|
9080
|
+
/**
|
|
9081
|
+
* Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
|
|
9082
|
+
* with a mowing lifecycle plus a dock action.
|
|
9083
|
+
*
|
|
9084
|
+
* Activity follows HA's canonical lawn-mower lifecycle: `idle` /
|
|
9085
|
+
* `mowing` / `paused` / `docked` / `error`. `batteryLevel` (0..100) is
|
|
9086
|
+
* nullable — some mowers don't report a battery percentage.
|
|
9087
|
+
*
|
|
9088
|
+
* `startMowing` begins a mowing run, `pause` halts it in place, and
|
|
9089
|
+
* `dock` sends the mower back to its charging station.
|
|
9090
|
+
*/
|
|
9091
|
+
var LawnMowerActivitySchema = _enum([
|
|
9092
|
+
"idle",
|
|
9093
|
+
"mowing",
|
|
9094
|
+
"paused",
|
|
9095
|
+
"docked",
|
|
9096
|
+
"error"
|
|
9097
|
+
]);
|
|
9098
|
+
/** Severity of the current device/error code — info (status), warning, error. */
|
|
9099
|
+
var DeviceCodeSeveritySchema = _enum([
|
|
9100
|
+
"info",
|
|
9101
|
+
"warning",
|
|
9102
|
+
"error"
|
|
9103
|
+
]);
|
|
9080
9104
|
object({
|
|
9081
9105
|
/** Lifecycle activity of the mower. */
|
|
9082
|
-
activity:
|
|
9083
|
-
"idle",
|
|
9084
|
-
"mowing",
|
|
9085
|
-
"paused",
|
|
9086
|
-
"docked",
|
|
9087
|
-
"error"
|
|
9088
|
-
]),
|
|
9106
|
+
activity: LawnMowerActivitySchema,
|
|
9089
9107
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
9090
9108
|
* reading. */
|
|
9091
9109
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
9110
|
+
/** 0..100 mowing-completion percentage of the current task, or null when no
|
|
9111
|
+
* task is active / progress is unavailable. */
|
|
9112
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
9113
|
+
/** Current device/event code (dynamic — mostly status, sometimes an error),
|
|
9114
|
+
* or null when unknown. */
|
|
9115
|
+
currentCode: number().nullable(),
|
|
9116
|
+
/** Human label for {@link currentCode}, or null when undecodable. */
|
|
9117
|
+
currentCodeLabel: string().nullable(),
|
|
9118
|
+
/** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
|
|
9119
|
+
* attention; `info` is normal status. */
|
|
9120
|
+
severity: DeviceCodeSeveritySchema,
|
|
9092
9121
|
/** Ms epoch when the slice was last updated. */
|
|
9093
9122
|
lastChangedAt: number()
|
|
9094
9123
|
});
|
|
@@ -10663,6 +10692,7 @@ var VacuumStateSchema = _enum([
|
|
|
10663
10692
|
"paused",
|
|
10664
10693
|
"returning",
|
|
10665
10694
|
"docked",
|
|
10695
|
+
"drying",
|
|
10666
10696
|
"error"
|
|
10667
10697
|
]);
|
|
10668
10698
|
/**
|
|
@@ -10701,6 +10731,12 @@ object({
|
|
|
10701
10731
|
detergent: TankStatusSchema.nullable(),
|
|
10702
10732
|
/** Dust bin. Null when the hardware has no dust bin. */
|
|
10703
10733
|
dustBin: TankStatusSchema.nullable(),
|
|
10734
|
+
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
10735
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
10736
|
+
/** Current error code (0 / null = no error). */
|
|
10737
|
+
errorCode: number().nullable(),
|
|
10738
|
+
/** Human label for {@link errorCode}, or null when none / undecodable. */
|
|
10739
|
+
errorLabel: string().nullable(),
|
|
10704
10740
|
/** Ms epoch when the slice was last updated. */
|
|
10705
10741
|
lastChangedAt: number()
|
|
10706
10742
|
});
|
|
@@ -12402,17 +12438,32 @@ var ReleaseInputSchema = object({
|
|
|
12402
12438
|
* the parent cascades into every accessory. */
|
|
12403
12439
|
camDeviceId: number().int().nonnegative()
|
|
12404
12440
|
});
|
|
12405
|
-
var ResyncInputSchema = object({
|
|
12406
|
-
/** Parent CamStack device id of an adopted device. The provider resolves its
|
|
12407
|
-
* source (integration/broker + native id) and re-aligns the device's
|
|
12408
|
-
* structural spec (type/role/capabilities/units) with the live mapping,
|
|
12409
|
-
* rebuilding any child whose class changed while preserving operator edits. */
|
|
12410
|
-
camDeviceId: number().int().nonnegative()
|
|
12441
|
+
var ResyncInputSchema = object({
|
|
12442
|
+
/** Parent CamStack device id of an adopted device. The provider resolves its
|
|
12443
|
+
* source (integration/broker + native id) and re-aligns the device's
|
|
12444
|
+
* structural spec (type/role/capabilities/units) with the live mapping,
|
|
12445
|
+
* rebuilding any child whose class changed while preserving operator edits. */
|
|
12446
|
+
camDeviceId: number().int().nonnegative(),
|
|
12447
|
+
/** "Resync from zero" (#19). When true, the kernel PURGES every accessory
|
|
12448
|
+
* child of `camDeviceId` BEFORE the provider re-derives the device, so the
|
|
12449
|
+
* children are rebuilt fresh from source — correct names, coords, and units —
|
|
12450
|
+
* instead of being preserved by the incremental reconcile. Use to recover from
|
|
12451
|
+
* legacy generic/placeholder names that the normal name-precedence keeps frozen
|
|
12452
|
+
* (the operator's explicit reset). Push-driven integrations (no-op resync)
|
|
12453
|
+
* rebuild on their next snapshot; pull/command integrations rebuild in `resync`.
|
|
12454
|
+
* Operator edits on the PARENT (its name, layout, primary-child pick) survive —
|
|
12455
|
+
* only the children are torn down. Omitted/false ⇒ the normal incremental
|
|
12456
|
+
* re-sync that preserves children. */
|
|
12457
|
+
resetToSource: boolean().optional()
|
|
12458
|
+
});
|
|
12411
12459
|
var ResyncResultSchema = object({
|
|
12412
12460
|
/** True when the persisted spec actually changed (children may have been rebuilt). */
|
|
12413
12461
|
changed: boolean(),
|
|
12414
12462
|
/** Number of child devices rebuilt into a new class by this re-sync. */
|
|
12415
|
-
rebuiltChildren: number().int().nonnegative()
|
|
12463
|
+
rebuiltChildren: number().int().nonnegative(),
|
|
12464
|
+
/** Number of accessory children torn down by a `resetToSource` purge before the
|
|
12465
|
+
* provider re-derived the device. 0/absent for a normal incremental re-sync. */
|
|
12466
|
+
removedChildren: number().int().nonnegative().optional()
|
|
12416
12467
|
});
|
|
12417
12468
|
method(object({ integrationId: string() }), object({ filters: array(AdoptionFilterSchema) }), { auth: "admin" }), method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }), method(GetCandidateInputSchema, DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }), method(object({ integrationId: string() }), AdoptionStatusSchema, {
|
|
12418
12469
|
kind: "mutation",
|
|
@@ -14111,6 +14162,11 @@ var DeviceMetaSchema = object({
|
|
|
14111
14162
|
addonId: string(),
|
|
14112
14163
|
type: string(),
|
|
14113
14164
|
name: string(),
|
|
14165
|
+
/** True once an operator explicitly renamed the device via `setName`. Drives
|
|
14166
|
+
* reconcile name-precedence (preserve operator name vs adopt fresh provider
|
|
14167
|
+
* name). Absent ⇒ treated as user-named (PRESERVE) for legacy rows. See
|
|
14168
|
+
* `DeviceMeta.userNamed`. */
|
|
14169
|
+
userNamed: boolean().optional(),
|
|
14114
14170
|
location: string().nullable(),
|
|
14115
14171
|
disabled: boolean(),
|
|
14116
14172
|
parentDeviceId: number().nullable(),
|
|
@@ -14421,6 +14477,9 @@ method(object({
|
|
|
14421
14477
|
}), method(ReleaseInputSchema.extend({ addonId: string() }), _void(), {
|
|
14422
14478
|
kind: "mutation",
|
|
14423
14479
|
auth: "admin"
|
|
14480
|
+
}), method(ResyncInputSchema, ResyncResultSchema, {
|
|
14481
|
+
kind: "mutation",
|
|
14482
|
+
auth: "admin"
|
|
14424
14483
|
}), method(object({
|
|
14425
14484
|
deviceId: number(),
|
|
14426
14485
|
key: string(),
|
|
@@ -18268,6 +18327,12 @@ Object.freeze({
|
|
|
18268
18327
|
addonId: null,
|
|
18269
18328
|
access: "create"
|
|
18270
18329
|
},
|
|
18330
|
+
"deviceManager.adoptionResync": {
|
|
18331
|
+
capName: "device-manager",
|
|
18332
|
+
capScope: "system",
|
|
18333
|
+
addonId: null,
|
|
18334
|
+
access: "create"
|
|
18335
|
+
},
|
|
18271
18336
|
"deviceManager.allocateDeviceId": {
|
|
18272
18337
|
capName: "device-manager",
|
|
18273
18338
|
capScope: "system",
|