@camstack/addon-provider-vesync 0.2.24 → 0.2.25
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 +66 -5
- package/dist/addon.mjs +66 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -18981,6 +18981,12 @@ var CameraStatusSchema = object({
|
|
|
18981
18981
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18982
18982
|
fetchedAt: number()
|
|
18983
18983
|
});
|
|
18984
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18985
|
+
"disabled",
|
|
18986
|
+
"unavailable",
|
|
18987
|
+
"cannot-host-camera-root",
|
|
18988
|
+
"accelerator-preferred"
|
|
18989
|
+
]);
|
|
18984
18990
|
var NodeInferenceDeviceSchema = object({
|
|
18985
18991
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18986
18992
|
key: string(),
|
|
@@ -19011,7 +19017,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19011
19017
|
* available per format; this is the stored selection that becomes the
|
|
19012
19018
|
* default for EVERY camera landing on this accelerator.
|
|
19013
19019
|
*/
|
|
19014
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19020
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19021
|
+
/**
|
|
19022
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19023
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19024
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19025
|
+
* never disagree with the election — deriving it in the UI from
|
|
19026
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19027
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19028
|
+
* "an accelerator is serving" predicate).
|
|
19029
|
+
*/
|
|
19030
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19015
19031
|
});
|
|
19016
19032
|
var NodeInferenceDevicesSchema = object({
|
|
19017
19033
|
nodeId: string(),
|
|
@@ -23862,7 +23878,12 @@ var ListResultSchema = object({
|
|
|
23862
23878
|
probedAt: number()
|
|
23863
23879
|
});
|
|
23864
23880
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23865
|
-
|
|
23881
|
+
/**
|
|
23882
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23883
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23884
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23885
|
+
*/
|
|
23886
|
+
var ConnectionEndpointSchema = object({
|
|
23866
23887
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23867
23888
|
label: string(),
|
|
23868
23889
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23905,7 +23926,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23905
23926
|
* ordering between polls.
|
|
23906
23927
|
*/
|
|
23907
23928
|
priority: number()
|
|
23908
|
-
})
|
|
23929
|
+
});
|
|
23930
|
+
/**
|
|
23931
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23932
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23933
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23934
|
+
*/
|
|
23935
|
+
var LocalPortSourceEnum = _enum([
|
|
23936
|
+
"server-config",
|
|
23937
|
+
"server-env",
|
|
23938
|
+
"caller-hint",
|
|
23939
|
+
"default"
|
|
23940
|
+
]);
|
|
23941
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23942
|
+
var AdvertisedLocalPortSchema = object({
|
|
23943
|
+
port: number().int().min(1).max(65535),
|
|
23944
|
+
source: LocalPortSourceEnum
|
|
23945
|
+
});
|
|
23946
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23947
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23948
|
+
/**
|
|
23949
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23950
|
+
* came from.
|
|
23951
|
+
*
|
|
23952
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23953
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23954
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23955
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23956
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23957
|
+
* `caller-hint` is the hub's own socket.
|
|
23958
|
+
*
|
|
23959
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23960
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23961
|
+
* `caller-hint`.
|
|
23962
|
+
*/
|
|
23963
|
+
localPort: AdvertisedLocalPortSchema
|
|
23964
|
+
});
|
|
23909
23965
|
/**
|
|
23910
23966
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23911
23967
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23926,8 +23982,13 @@ var AllowedAddressesSchema = object({
|
|
|
23926
23982
|
*/
|
|
23927
23983
|
addresses: array(string()).readonly() });
|
|
23928
23984
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23929
|
-
/**
|
|
23930
|
-
|
|
23985
|
+
/**
|
|
23986
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23987
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23988
|
+
* only when it cannot read its own port, and says so via
|
|
23989
|
+
* `localPort.source === 'caller-hint'`.
|
|
23990
|
+
*/
|
|
23991
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23931
23992
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23932
23993
|
* candidate. Default `true`. */
|
|
23933
23994
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -18980,6 +18980,12 @@ var CameraStatusSchema = object({
|
|
|
18980
18980
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18981
18981
|
fetchedAt: number()
|
|
18982
18982
|
});
|
|
18983
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18984
|
+
"disabled",
|
|
18985
|
+
"unavailable",
|
|
18986
|
+
"cannot-host-camera-root",
|
|
18987
|
+
"accelerator-preferred"
|
|
18988
|
+
]);
|
|
18983
18989
|
var NodeInferenceDeviceSchema = object({
|
|
18984
18990
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18985
18991
|
key: string(),
|
|
@@ -19010,7 +19016,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19010
19016
|
* available per format; this is the stored selection that becomes the
|
|
19011
19017
|
* default for EVERY camera landing on this accelerator.
|
|
19012
19018
|
*/
|
|
19013
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19019
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19020
|
+
/**
|
|
19021
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19022
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19023
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19024
|
+
* never disagree with the election — deriving it in the UI from
|
|
19025
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19026
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19027
|
+
* "an accelerator is serving" predicate).
|
|
19028
|
+
*/
|
|
19029
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19014
19030
|
});
|
|
19015
19031
|
var NodeInferenceDevicesSchema = object({
|
|
19016
19032
|
nodeId: string(),
|
|
@@ -23861,7 +23877,12 @@ var ListResultSchema = object({
|
|
|
23861
23877
|
probedAt: number()
|
|
23862
23878
|
});
|
|
23863
23879
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23864
|
-
|
|
23880
|
+
/**
|
|
23881
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23882
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23883
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23884
|
+
*/
|
|
23885
|
+
var ConnectionEndpointSchema = object({
|
|
23865
23886
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23866
23887
|
label: string(),
|
|
23867
23888
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23904,7 +23925,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23904
23925
|
* ordering between polls.
|
|
23905
23926
|
*/
|
|
23906
23927
|
priority: number()
|
|
23907
|
-
})
|
|
23928
|
+
});
|
|
23929
|
+
/**
|
|
23930
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23931
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23932
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23933
|
+
*/
|
|
23934
|
+
var LocalPortSourceEnum = _enum([
|
|
23935
|
+
"server-config",
|
|
23936
|
+
"server-env",
|
|
23937
|
+
"caller-hint",
|
|
23938
|
+
"default"
|
|
23939
|
+
]);
|
|
23940
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23941
|
+
var AdvertisedLocalPortSchema = object({
|
|
23942
|
+
port: number().int().min(1).max(65535),
|
|
23943
|
+
source: LocalPortSourceEnum
|
|
23944
|
+
});
|
|
23945
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23946
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23947
|
+
/**
|
|
23948
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23949
|
+
* came from.
|
|
23950
|
+
*
|
|
23951
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23952
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23953
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23954
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23955
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23956
|
+
* `caller-hint` is the hub's own socket.
|
|
23957
|
+
*
|
|
23958
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23959
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23960
|
+
* `caller-hint`.
|
|
23961
|
+
*/
|
|
23962
|
+
localPort: AdvertisedLocalPortSchema
|
|
23963
|
+
});
|
|
23908
23964
|
/**
|
|
23909
23965
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23910
23966
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23925,8 +23981,13 @@ var AllowedAddressesSchema = object({
|
|
|
23925
23981
|
*/
|
|
23926
23982
|
addresses: array(string()).readonly() });
|
|
23927
23983
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23928
|
-
/**
|
|
23929
|
-
|
|
23984
|
+
/**
|
|
23985
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23986
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23987
|
+
* only when it cannot read its own port, and says so via
|
|
23988
|
+
* `localPort.source === 'caller-hint'`.
|
|
23989
|
+
*/
|
|
23990
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23930
23991
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23931
23992
|
* candidate. Default `true`. */
|
|
23932
23993
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-vesync",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "VeSync cloud-account device-provider addon for CamStack — Levoit / Cosori air purifiers as Fan devices (power, speed, preset, child-lock, display, air-quality + filter-life sensors)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|