@camstack/addon-decoder-nodeav 1.2.59 → 1.2.61
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/index.js +32 -3
- package/dist/index.mjs +32 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12677,7 +12677,26 @@ var DiscoveryCandidateSchema = object({
|
|
|
12677
12677
|
* identity ahead of adoption. Rendering metadata (unit, precision)
|
|
12678
12678
|
* flows live through the cap STATUS SLICE after adoption.
|
|
12679
12679
|
*/
|
|
12680
|
-
sourceInfo: SourceInfoSchema.optional()
|
|
12680
|
+
sourceInfo: SourceInfoSchema.optional(),
|
|
12681
|
+
/**
|
|
12682
|
+
* Set when this candidate is a device the provider ALREADY owns.
|
|
12683
|
+
*
|
|
12684
|
+
* A scan cannot generally produce the identity a device was onboarded under
|
|
12685
|
+
* (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
|
|
12686
|
+
* comparison never matches and an owned device looks addable. Re-adopting one
|
|
12687
|
+
* overwrites its config with scan-derived values — that is how a Home Hub's
|
|
12688
|
+
* Baichuan port was overwritten with its ONVIF port, taking the hub and its
|
|
12689
|
+
* three child cameras offline for four hours.
|
|
12690
|
+
*
|
|
12691
|
+
* A provider that can recognise its own devices says so here. Absent means
|
|
12692
|
+
* "not recognised", which is not the same as "known to be new" — a provider
|
|
12693
|
+
* that cannot tell simply never sets it.
|
|
12694
|
+
*/
|
|
12695
|
+
alreadyOnboarded: boolean().optional(),
|
|
12696
|
+
/** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
|
|
12697
|
+
onboardedDeviceId: number().optional(),
|
|
12698
|
+
/** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
|
|
12699
|
+
onboardedName: string().optional()
|
|
12681
12700
|
});
|
|
12682
12701
|
/**
|
|
12683
12702
|
* Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
|
|
@@ -12724,7 +12743,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12724
12743
|
id: string(),
|
|
12725
12744
|
name: string(),
|
|
12726
12745
|
type: string()
|
|
12727
|
-
}))), method(object({
|
|
12746
|
+
}))), method(object({ stableId: string() }), object({ deviceId: number() }), {
|
|
12747
|
+
kind: "mutation",
|
|
12748
|
+
timeoutMs: 3 * 6e4
|
|
12749
|
+
}), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
12728
12750
|
kind: "mutation",
|
|
12729
12751
|
auth: "admin"
|
|
12730
12752
|
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
@@ -13005,7 +13027,8 @@ method(object({
|
|
|
13005
13027
|
targetId: number()
|
|
13006
13028
|
}), MigrateDeviceResultSchema, {
|
|
13007
13029
|
kind: "mutation",
|
|
13008
|
-
auth: "admin"
|
|
13030
|
+
auth: "admin",
|
|
13031
|
+
timeoutMs: 12 * 6e4
|
|
13009
13032
|
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
13010
13033
|
deviceId: number(),
|
|
13011
13034
|
name: string()
|
|
@@ -30864,6 +30887,12 @@ Object.freeze({
|
|
|
30864
30887
|
addonId: null,
|
|
30865
30888
|
access: "view"
|
|
30866
30889
|
},
|
|
30890
|
+
"deviceProvider.reloadDevice": {
|
|
30891
|
+
capName: "device-provider",
|
|
30892
|
+
capScope: "system",
|
|
30893
|
+
addonId: null,
|
|
30894
|
+
access: "create"
|
|
30895
|
+
},
|
|
30867
30896
|
"deviceProvider.start": {
|
|
30868
30897
|
capName: "device-provider",
|
|
30869
30898
|
capScope: "system",
|
package/dist/index.mjs
CHANGED
|
@@ -12673,7 +12673,26 @@ var DiscoveryCandidateSchema = object({
|
|
|
12673
12673
|
* identity ahead of adoption. Rendering metadata (unit, precision)
|
|
12674
12674
|
* flows live through the cap STATUS SLICE after adoption.
|
|
12675
12675
|
*/
|
|
12676
|
-
sourceInfo: SourceInfoSchema.optional()
|
|
12676
|
+
sourceInfo: SourceInfoSchema.optional(),
|
|
12677
|
+
/**
|
|
12678
|
+
* Set when this candidate is a device the provider ALREADY owns.
|
|
12679
|
+
*
|
|
12680
|
+
* A scan cannot generally produce the identity a device was onboarded under
|
|
12681
|
+
* (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
|
|
12682
|
+
* comparison never matches and an owned device looks addable. Re-adopting one
|
|
12683
|
+
* overwrites its config with scan-derived values — that is how a Home Hub's
|
|
12684
|
+
* Baichuan port was overwritten with its ONVIF port, taking the hub and its
|
|
12685
|
+
* three child cameras offline for four hours.
|
|
12686
|
+
*
|
|
12687
|
+
* A provider that can recognise its own devices says so here. Absent means
|
|
12688
|
+
* "not recognised", which is not the same as "known to be new" — a provider
|
|
12689
|
+
* that cannot tell simply never sets it.
|
|
12690
|
+
*/
|
|
12691
|
+
alreadyOnboarded: boolean().optional(),
|
|
12692
|
+
/** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
|
|
12693
|
+
onboardedDeviceId: number().optional(),
|
|
12694
|
+
/** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
|
|
12695
|
+
onboardedName: string().optional()
|
|
12677
12696
|
});
|
|
12678
12697
|
/**
|
|
12679
12698
|
* Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
|
|
@@ -12720,7 +12739,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12720
12739
|
id: string(),
|
|
12721
12740
|
name: string(),
|
|
12722
12741
|
type: string()
|
|
12723
|
-
}))), method(object({
|
|
12742
|
+
}))), method(object({ stableId: string() }), object({ deviceId: number() }), {
|
|
12743
|
+
kind: "mutation",
|
|
12744
|
+
timeoutMs: 3 * 6e4
|
|
12745
|
+
}), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
12724
12746
|
kind: "mutation",
|
|
12725
12747
|
auth: "admin"
|
|
12726
12748
|
}), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
|
|
@@ -13001,7 +13023,8 @@ method(object({
|
|
|
13001
13023
|
targetId: number()
|
|
13002
13024
|
}), MigrateDeviceResultSchema, {
|
|
13003
13025
|
kind: "mutation",
|
|
13004
|
-
auth: "admin"
|
|
13026
|
+
auth: "admin",
|
|
13027
|
+
timeoutMs: 12 * 6e4
|
|
13005
13028
|
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
13006
13029
|
deviceId: number(),
|
|
13007
13030
|
name: string()
|
|
@@ -30860,6 +30883,12 @@ Object.freeze({
|
|
|
30860
30883
|
addonId: null,
|
|
30861
30884
|
access: "view"
|
|
30862
30885
|
},
|
|
30886
|
+
"deviceProvider.reloadDevice": {
|
|
30887
|
+
capName: "device-provider",
|
|
30888
|
+
capScope: "system",
|
|
30889
|
+
addonId: null,
|
|
30890
|
+
access: "create"
|
|
30891
|
+
},
|
|
30863
30892
|
"deviceProvider.start": {
|
|
30864
30893
|
capName: "device-provider",
|
|
30865
30894
|
capScope: "system",
|