@camstack/addon-notifiers 1.2.28 → 1.2.29
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
|
@@ -18827,6 +18827,12 @@ var CameraStatusSchema = object({
|
|
|
18827
18827
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18828
18828
|
fetchedAt: number()
|
|
18829
18829
|
});
|
|
18830
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18831
|
+
"disabled",
|
|
18832
|
+
"unavailable",
|
|
18833
|
+
"cannot-host-camera-root",
|
|
18834
|
+
"accelerator-preferred"
|
|
18835
|
+
]);
|
|
18830
18836
|
var NodeInferenceDeviceSchema = object({
|
|
18831
18837
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18832
18838
|
key: string(),
|
|
@@ -18857,7 +18863,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18857
18863
|
* available per format; this is the stored selection that becomes the
|
|
18858
18864
|
* default for EVERY camera landing on this accelerator.
|
|
18859
18865
|
*/
|
|
18860
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18866
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18867
|
+
/**
|
|
18868
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18869
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18870
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18871
|
+
* never disagree with the election — deriving it in the UI from
|
|
18872
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18873
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18874
|
+
* "an accelerator is serving" predicate).
|
|
18875
|
+
*/
|
|
18876
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18861
18877
|
});
|
|
18862
18878
|
var NodeInferenceDevicesSchema = object({
|
|
18863
18879
|
nodeId: string(),
|
|
@@ -22615,7 +22631,12 @@ var ListResultSchema = object({
|
|
|
22615
22631
|
probedAt: number()
|
|
22616
22632
|
});
|
|
22617
22633
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22618
|
-
|
|
22634
|
+
/**
|
|
22635
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22636
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22637
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22638
|
+
*/
|
|
22639
|
+
var ConnectionEndpointSchema = object({
|
|
22619
22640
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22620
22641
|
label: string(),
|
|
22621
22642
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22658,7 +22679,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22658
22679
|
* ordering between polls.
|
|
22659
22680
|
*/
|
|
22660
22681
|
priority: number()
|
|
22661
|
-
})
|
|
22682
|
+
});
|
|
22683
|
+
/**
|
|
22684
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22685
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22686
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22687
|
+
*/
|
|
22688
|
+
var LocalPortSourceEnum = _enum([
|
|
22689
|
+
"server-config",
|
|
22690
|
+
"server-env",
|
|
22691
|
+
"caller-hint",
|
|
22692
|
+
"default"
|
|
22693
|
+
]);
|
|
22694
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22695
|
+
var AdvertisedLocalPortSchema = object({
|
|
22696
|
+
port: number().int().min(1).max(65535),
|
|
22697
|
+
source: LocalPortSourceEnum
|
|
22698
|
+
});
|
|
22699
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22700
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22701
|
+
/**
|
|
22702
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22703
|
+
* came from.
|
|
22704
|
+
*
|
|
22705
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22706
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22707
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22708
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22709
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22710
|
+
* `caller-hint` is the hub's own socket.
|
|
22711
|
+
*
|
|
22712
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22713
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22714
|
+
* `caller-hint`.
|
|
22715
|
+
*/
|
|
22716
|
+
localPort: AdvertisedLocalPortSchema
|
|
22717
|
+
});
|
|
22662
22718
|
/**
|
|
22663
22719
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22664
22720
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22679,8 +22735,13 @@ var AllowedAddressesSchema = object({
|
|
|
22679
22735
|
*/
|
|
22680
22736
|
addresses: array(string()).readonly() });
|
|
22681
22737
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22682
|
-
/**
|
|
22683
|
-
|
|
22738
|
+
/**
|
|
22739
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22740
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22741
|
+
* only when it cannot read its own port, and says so via
|
|
22742
|
+
* `localPort.source === 'caller-hint'`.
|
|
22743
|
+
*/
|
|
22744
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22684
22745
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22685
22746
|
* candidate. Default `true`. */
|
|
22686
22747
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -18800,6 +18800,12 @@ var CameraStatusSchema = object({
|
|
|
18800
18800
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18801
18801
|
fetchedAt: number()
|
|
18802
18802
|
});
|
|
18803
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18804
|
+
"disabled",
|
|
18805
|
+
"unavailable",
|
|
18806
|
+
"cannot-host-camera-root",
|
|
18807
|
+
"accelerator-preferred"
|
|
18808
|
+
]);
|
|
18803
18809
|
var NodeInferenceDeviceSchema = object({
|
|
18804
18810
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18805
18811
|
key: string(),
|
|
@@ -18830,7 +18836,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18830
18836
|
* available per format; this is the stored selection that becomes the
|
|
18831
18837
|
* default for EVERY camera landing on this accelerator.
|
|
18832
18838
|
*/
|
|
18833
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18839
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18840
|
+
/**
|
|
18841
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18842
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18843
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18844
|
+
* never disagree with the election — deriving it in the UI from
|
|
18845
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18846
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18847
|
+
* "an accelerator is serving" predicate).
|
|
18848
|
+
*/
|
|
18849
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18834
18850
|
});
|
|
18835
18851
|
var NodeInferenceDevicesSchema = object({
|
|
18836
18852
|
nodeId: string(),
|
|
@@ -22588,7 +22604,12 @@ var ListResultSchema = object({
|
|
|
22588
22604
|
probedAt: number()
|
|
22589
22605
|
});
|
|
22590
22606
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22591
|
-
|
|
22607
|
+
/**
|
|
22608
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22609
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22610
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22611
|
+
*/
|
|
22612
|
+
var ConnectionEndpointSchema = object({
|
|
22592
22613
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22593
22614
|
label: string(),
|
|
22594
22615
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22631,7 +22652,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22631
22652
|
* ordering between polls.
|
|
22632
22653
|
*/
|
|
22633
22654
|
priority: number()
|
|
22634
|
-
})
|
|
22655
|
+
});
|
|
22656
|
+
/**
|
|
22657
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22658
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22659
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22660
|
+
*/
|
|
22661
|
+
var LocalPortSourceEnum = _enum([
|
|
22662
|
+
"server-config",
|
|
22663
|
+
"server-env",
|
|
22664
|
+
"caller-hint",
|
|
22665
|
+
"default"
|
|
22666
|
+
]);
|
|
22667
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22668
|
+
var AdvertisedLocalPortSchema = object({
|
|
22669
|
+
port: number().int().min(1).max(65535),
|
|
22670
|
+
source: LocalPortSourceEnum
|
|
22671
|
+
});
|
|
22672
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22673
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22674
|
+
/**
|
|
22675
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22676
|
+
* came from.
|
|
22677
|
+
*
|
|
22678
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22679
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22680
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22681
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22682
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22683
|
+
* `caller-hint` is the hub's own socket.
|
|
22684
|
+
*
|
|
22685
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22686
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22687
|
+
* `caller-hint`.
|
|
22688
|
+
*/
|
|
22689
|
+
localPort: AdvertisedLocalPortSchema
|
|
22690
|
+
});
|
|
22635
22691
|
/**
|
|
22636
22692
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22637
22693
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22652,8 +22708,13 @@ var AllowedAddressesSchema = object({
|
|
|
22652
22708
|
*/
|
|
22653
22709
|
addresses: array(string()).readonly() });
|
|
22654
22710
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22655
|
-
/**
|
|
22656
|
-
|
|
22711
|
+
/**
|
|
22712
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22713
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22714
|
+
* only when it cannot read its own port, and says so via
|
|
22715
|
+
* `localPort.source === 'caller-hint'`.
|
|
22716
|
+
*/
|
|
22717
|
+
port: number().int().min(1).max(65535).optional(),
|
|
22657
22718
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22658
22719
|
* candidate. Default `true`. */
|
|
22659
22720
|
includeLoopback: boolean().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|