@camstack/addon-export-alexa 1.2.30 → 1.2.31
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.
|
@@ -18940,6 +18940,12 @@ var CameraStatusSchema = object({
|
|
|
18940
18940
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18941
18941
|
fetchedAt: number()
|
|
18942
18942
|
});
|
|
18943
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18944
|
+
"disabled",
|
|
18945
|
+
"unavailable",
|
|
18946
|
+
"cannot-host-camera-root",
|
|
18947
|
+
"accelerator-preferred"
|
|
18948
|
+
]);
|
|
18943
18949
|
var NodeInferenceDeviceSchema = object({
|
|
18944
18950
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18945
18951
|
key: string(),
|
|
@@ -18970,7 +18976,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18970
18976
|
* available per format; this is the stored selection that becomes the
|
|
18971
18977
|
* default for EVERY camera landing on this accelerator.
|
|
18972
18978
|
*/
|
|
18973
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18979
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18980
|
+
/**
|
|
18981
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18982
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18983
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18984
|
+
* never disagree with the election — deriving it in the UI from
|
|
18985
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18986
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18987
|
+
* "an accelerator is serving" predicate).
|
|
18988
|
+
*/
|
|
18989
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18974
18990
|
});
|
|
18975
18991
|
var NodeInferenceDevicesSchema = object({
|
|
18976
18992
|
nodeId: string(),
|
|
@@ -22728,7 +22744,12 @@ var ListResultSchema = object({
|
|
|
22728
22744
|
probedAt: number()
|
|
22729
22745
|
});
|
|
22730
22746
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22731
|
-
|
|
22747
|
+
/**
|
|
22748
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22749
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22750
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22751
|
+
*/
|
|
22752
|
+
var ConnectionEndpointSchema = object({
|
|
22732
22753
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22733
22754
|
label: string(),
|
|
22734
22755
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22771,7 +22792,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22771
22792
|
* ordering between polls.
|
|
22772
22793
|
*/
|
|
22773
22794
|
priority: number()
|
|
22774
|
-
})
|
|
22795
|
+
});
|
|
22796
|
+
/**
|
|
22797
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22798
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22799
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22800
|
+
*/
|
|
22801
|
+
var LocalPortSourceEnum = _enum([
|
|
22802
|
+
"server-config",
|
|
22803
|
+
"server-env",
|
|
22804
|
+
"caller-hint",
|
|
22805
|
+
"default"
|
|
22806
|
+
]);
|
|
22807
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22808
|
+
var AdvertisedLocalPortSchema = object({
|
|
22809
|
+
port: number().int().min(1).max(65535),
|
|
22810
|
+
source: LocalPortSourceEnum
|
|
22811
|
+
});
|
|
22812
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22813
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22814
|
+
/**
|
|
22815
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22816
|
+
* came from.
|
|
22817
|
+
*
|
|
22818
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22819
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22820
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22821
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22822
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22823
|
+
* `caller-hint` is the hub's own socket.
|
|
22824
|
+
*
|
|
22825
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22826
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22827
|
+
* `caller-hint`.
|
|
22828
|
+
*/
|
|
22829
|
+
localPort: AdvertisedLocalPortSchema
|
|
22830
|
+
});
|
|
22775
22831
|
/**
|
|
22776
22832
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22777
22833
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22792,8 +22848,13 @@ var AllowedAddressesSchema = object({
|
|
|
22792
22848
|
*/
|
|
22793
22849
|
addresses: array(string()).readonly() });
|
|
22794
22850
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22795
|
-
/**
|
|
22796
|
-
|
|
22851
|
+
/**
|
|
22852
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22853
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22854
|
+
* only when it cannot read its own port, and says so via
|
|
22855
|
+
* `localPort.source === 'caller-hint'`.
|
|
22856
|
+
*/
|
|
22857
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22797
22858
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22798
22859
|
* candidate. Default `true`. */
|
|
22799
22860
|
includeLoopback: boolean().optional(),
|
|
@@ -18913,6 +18913,12 @@ var CameraStatusSchema = object({
|
|
|
18913
18913
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18914
18914
|
fetchedAt: number()
|
|
18915
18915
|
});
|
|
18916
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18917
|
+
"disabled",
|
|
18918
|
+
"unavailable",
|
|
18919
|
+
"cannot-host-camera-root",
|
|
18920
|
+
"accelerator-preferred"
|
|
18921
|
+
]);
|
|
18916
18922
|
var NodeInferenceDeviceSchema = object({
|
|
18917
18923
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18918
18924
|
key: string(),
|
|
@@ -18943,7 +18949,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18943
18949
|
* available per format; this is the stored selection that becomes the
|
|
18944
18950
|
* default for EVERY camera landing on this accelerator.
|
|
18945
18951
|
*/
|
|
18946
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18952
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18953
|
+
/**
|
|
18954
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18955
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18956
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18957
|
+
* never disagree with the election — deriving it in the UI from
|
|
18958
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18959
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18960
|
+
* "an accelerator is serving" predicate).
|
|
18961
|
+
*/
|
|
18962
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18947
18963
|
});
|
|
18948
18964
|
var NodeInferenceDevicesSchema = object({
|
|
18949
18965
|
nodeId: string(),
|
|
@@ -22701,7 +22717,12 @@ var ListResultSchema = object({
|
|
|
22701
22717
|
probedAt: number()
|
|
22702
22718
|
});
|
|
22703
22719
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22704
|
-
|
|
22720
|
+
/**
|
|
22721
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22722
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22723
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22724
|
+
*/
|
|
22725
|
+
var ConnectionEndpointSchema = object({
|
|
22705
22726
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22706
22727
|
label: string(),
|
|
22707
22728
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22744,7 +22765,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22744
22765
|
* ordering between polls.
|
|
22745
22766
|
*/
|
|
22746
22767
|
priority: number()
|
|
22747
|
-
})
|
|
22768
|
+
});
|
|
22769
|
+
/**
|
|
22770
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22771
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22772
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22773
|
+
*/
|
|
22774
|
+
var LocalPortSourceEnum = _enum([
|
|
22775
|
+
"server-config",
|
|
22776
|
+
"server-env",
|
|
22777
|
+
"caller-hint",
|
|
22778
|
+
"default"
|
|
22779
|
+
]);
|
|
22780
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22781
|
+
var AdvertisedLocalPortSchema = object({
|
|
22782
|
+
port: number().int().min(1).max(65535),
|
|
22783
|
+
source: LocalPortSourceEnum
|
|
22784
|
+
});
|
|
22785
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22786
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22787
|
+
/**
|
|
22788
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22789
|
+
* came from.
|
|
22790
|
+
*
|
|
22791
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22792
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22793
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22794
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22795
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22796
|
+
* `caller-hint` is the hub's own socket.
|
|
22797
|
+
*
|
|
22798
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22799
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22800
|
+
* `caller-hint`.
|
|
22801
|
+
*/
|
|
22802
|
+
localPort: AdvertisedLocalPortSchema
|
|
22803
|
+
});
|
|
22748
22804
|
/**
|
|
22749
22805
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22750
22806
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22765,8 +22821,13 @@ var AllowedAddressesSchema = object({
|
|
|
22765
22821
|
*/
|
|
22766
22822
|
addresses: array(string()).readonly() });
|
|
22767
22823
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22768
|
-
/**
|
|
22769
|
-
|
|
22824
|
+
/**
|
|
22825
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22826
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22827
|
+
* only when it cannot read its own port, and says so via
|
|
22828
|
+
* `localPort.source === 'caller-hint'`.
|
|
22829
|
+
*/
|
|
22830
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22770
22831
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22771
22832
|
* candidate. Default `true`. */
|
|
22772
22833
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|