@camstack/addon-provider-rtsp 1.2.24 → 1.2.26
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 +76 -6
- package/dist/addon.mjs +76 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
//#endregion
|
|
24
24
|
let node_net = require("node:net");
|
|
25
25
|
node_net = __toESM(node_net);
|
|
26
|
-
//#region ../types/dist/event-category-
|
|
26
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
27
27
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
28
28
|
EventCategory["SystemBoot"] = "system.boot";
|
|
29
29
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -39,6 +39,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
39
39
|
*/
|
|
40
40
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
41
41
|
/**
|
|
42
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
43
|
+
* Emitted only when the material on disk actually changed, so an
|
|
44
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
45
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
46
|
+
*
|
|
47
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
48
|
+
*/
|
|
49
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
50
|
+
/**
|
|
42
51
|
* A newer addon or server-root package version was found by the
|
|
43
52
|
* authoritative registry check. Emitted once when any observed
|
|
44
53
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19037,6 +19046,12 @@ var CameraStatusSchema = object({
|
|
|
19037
19046
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19038
19047
|
fetchedAt: number()
|
|
19039
19048
|
});
|
|
19049
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19050
|
+
"disabled",
|
|
19051
|
+
"unavailable",
|
|
19052
|
+
"cannot-host-camera-root",
|
|
19053
|
+
"accelerator-preferred"
|
|
19054
|
+
]);
|
|
19040
19055
|
var NodeInferenceDeviceSchema = object({
|
|
19041
19056
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19042
19057
|
key: string(),
|
|
@@ -19067,7 +19082,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19067
19082
|
* available per format; this is the stored selection that becomes the
|
|
19068
19083
|
* default for EVERY camera landing on this accelerator.
|
|
19069
19084
|
*/
|
|
19070
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19085
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19086
|
+
/**
|
|
19087
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19088
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19089
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19090
|
+
* never disagree with the election — deriving it in the UI from
|
|
19091
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19092
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19093
|
+
* "an accelerator is serving" predicate).
|
|
19094
|
+
*/
|
|
19095
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19071
19096
|
});
|
|
19072
19097
|
var NodeInferenceDevicesSchema = object({
|
|
19073
19098
|
nodeId: string(),
|
|
@@ -24030,7 +24055,12 @@ var ListResultSchema = object({
|
|
|
24030
24055
|
probedAt: number()
|
|
24031
24056
|
});
|
|
24032
24057
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24033
|
-
|
|
24058
|
+
/**
|
|
24059
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24060
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24061
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24062
|
+
*/
|
|
24063
|
+
var ConnectionEndpointSchema = object({
|
|
24034
24064
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24035
24065
|
label: string(),
|
|
24036
24066
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24073,7 +24103,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24073
24103
|
* ordering between polls.
|
|
24074
24104
|
*/
|
|
24075
24105
|
priority: number()
|
|
24076
|
-
})
|
|
24106
|
+
});
|
|
24107
|
+
/**
|
|
24108
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24109
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24110
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24111
|
+
*/
|
|
24112
|
+
var LocalPortSourceEnum = _enum([
|
|
24113
|
+
"server-config",
|
|
24114
|
+
"server-env",
|
|
24115
|
+
"caller-hint",
|
|
24116
|
+
"default"
|
|
24117
|
+
]);
|
|
24118
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24119
|
+
var AdvertisedLocalPortSchema = object({
|
|
24120
|
+
port: number().int().min(1).max(65535),
|
|
24121
|
+
source: LocalPortSourceEnum
|
|
24122
|
+
});
|
|
24123
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24124
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24125
|
+
/**
|
|
24126
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24127
|
+
* came from.
|
|
24128
|
+
*
|
|
24129
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24130
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24131
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24132
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24133
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24134
|
+
* `caller-hint` is the hub's own socket.
|
|
24135
|
+
*
|
|
24136
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24137
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24138
|
+
* `caller-hint`.
|
|
24139
|
+
*/
|
|
24140
|
+
localPort: AdvertisedLocalPortSchema
|
|
24141
|
+
});
|
|
24077
24142
|
/**
|
|
24078
24143
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24079
24144
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24094,8 +24159,13 @@ var AllowedAddressesSchema = object({
|
|
|
24094
24159
|
*/
|
|
24095
24160
|
addresses: array(string()).readonly() });
|
|
24096
24161
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24097
|
-
/**
|
|
24098
|
-
|
|
24162
|
+
/**
|
|
24163
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24164
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24165
|
+
* only when it cannot read its own port, and says so via
|
|
24166
|
+
* `localPort.source === 'caller-hint'`.
|
|
24167
|
+
*/
|
|
24168
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24099
24169
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24100
24170
|
* candidate. Default `true`. */
|
|
24101
24171
|
includeLoopback: boolean().optional(),
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import net from "node:net";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-CIa_iT6b.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -15,6 +15,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
15
15
|
*/
|
|
16
16
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
17
17
|
/**
|
|
18
|
+
* The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
|
|
19
|
+
* Emitted only when the material on disk actually changed, so an
|
|
20
|
+
* operator who trusted the old certificate by hand is told rather than
|
|
21
|
+
* discovering it as a browser error. Payload `TlsCertChangedPayload`.
|
|
22
|
+
*
|
|
23
|
+
* Rule: docs/decisions/adr-0227-*.md
|
|
24
|
+
*/
|
|
25
|
+
EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
|
|
26
|
+
/**
|
|
18
27
|
* A newer addon or server-root package version was found by the
|
|
19
28
|
* authoritative registry check. Emitted once when any observed
|
|
20
29
|
* `latestVersion` changes (or a package/node first appears behind);
|
|
@@ -19013,6 +19022,12 @@ var CameraStatusSchema = object({
|
|
|
19013
19022
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19014
19023
|
fetchedAt: number()
|
|
19015
19024
|
});
|
|
19025
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19026
|
+
"disabled",
|
|
19027
|
+
"unavailable",
|
|
19028
|
+
"cannot-host-camera-root",
|
|
19029
|
+
"accelerator-preferred"
|
|
19030
|
+
]);
|
|
19016
19031
|
var NodeInferenceDeviceSchema = object({
|
|
19017
19032
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19018
19033
|
key: string(),
|
|
@@ -19043,7 +19058,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19043
19058
|
* available per format; this is the stored selection that becomes the
|
|
19044
19059
|
* default for EVERY camera landing on this accelerator.
|
|
19045
19060
|
*/
|
|
19046
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19061
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19062
|
+
/**
|
|
19063
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19064
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19065
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19066
|
+
* never disagree with the election — deriving it in the UI from
|
|
19067
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19068
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19069
|
+
* "an accelerator is serving" predicate).
|
|
19070
|
+
*/
|
|
19071
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19047
19072
|
});
|
|
19048
19073
|
var NodeInferenceDevicesSchema = object({
|
|
19049
19074
|
nodeId: string(),
|
|
@@ -24006,7 +24031,12 @@ var ListResultSchema = object({
|
|
|
24006
24031
|
probedAt: number()
|
|
24007
24032
|
});
|
|
24008
24033
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
24009
|
-
|
|
24034
|
+
/**
|
|
24035
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24036
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24037
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24038
|
+
*/
|
|
24039
|
+
var ConnectionEndpointSchema = object({
|
|
24010
24040
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
24011
24041
|
label: string(),
|
|
24012
24042
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24049,7 +24079,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24049
24079
|
* ordering between polls.
|
|
24050
24080
|
*/
|
|
24051
24081
|
priority: number()
|
|
24052
|
-
})
|
|
24082
|
+
});
|
|
24083
|
+
/**
|
|
24084
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24085
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24086
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24087
|
+
*/
|
|
24088
|
+
var LocalPortSourceEnum = _enum([
|
|
24089
|
+
"server-config",
|
|
24090
|
+
"server-env",
|
|
24091
|
+
"caller-hint",
|
|
24092
|
+
"default"
|
|
24093
|
+
]);
|
|
24094
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24095
|
+
var AdvertisedLocalPortSchema = object({
|
|
24096
|
+
port: number().int().min(1).max(65535),
|
|
24097
|
+
source: LocalPortSourceEnum
|
|
24098
|
+
});
|
|
24099
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24100
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24101
|
+
/**
|
|
24102
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24103
|
+
* came from.
|
|
24104
|
+
*
|
|
24105
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24106
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24107
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24108
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24109
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24110
|
+
* `caller-hint` is the hub's own socket.
|
|
24111
|
+
*
|
|
24112
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24113
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24114
|
+
* `caller-hint`.
|
|
24115
|
+
*/
|
|
24116
|
+
localPort: AdvertisedLocalPortSchema
|
|
24117
|
+
});
|
|
24053
24118
|
/**
|
|
24054
24119
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24055
24120
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24070,8 +24135,13 @@ var AllowedAddressesSchema = object({
|
|
|
24070
24135
|
*/
|
|
24071
24136
|
addresses: array(string()).readonly() });
|
|
24072
24137
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24073
|
-
/**
|
|
24074
|
-
|
|
24138
|
+
/**
|
|
24139
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24140
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24141
|
+
* only when it cannot read its own port, and says so via
|
|
24142
|
+
* `localPort.source === 'caller-hint'`.
|
|
24143
|
+
*/
|
|
24144
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24075
24145
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24076
24146
|
* candidate. Default `true`. */
|
|
24077
24147
|
includeLoopback: boolean().optional(),
|