@camstack/addon-provider-wyze 0.2.27 → 0.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 +173 -10
- package/dist/addon.mjs +173 -10
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7598,7 +7598,7 @@ var RecordingBandSchema = object({
|
|
|
7598
7598
|
postBufferSec: number().min(0).optional()
|
|
7599
7599
|
});
|
|
7600
7600
|
({
|
|
7601
|
-
preBufferSec:
|
|
7601
|
+
preBufferSec: 15,
|
|
7602
7602
|
postBufferSec: 30
|
|
7603
7603
|
}).postBufferSec * 1e3;
|
|
7604
7604
|
/**
|
|
@@ -16416,7 +16416,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16416
16416
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16417
16417
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16418
16418
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16419
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16419
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16420
16420
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16421
16421
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16422
16422
|
* (`getObjectEvents` et al.).
|
|
@@ -16711,6 +16711,35 @@ var TrackSchema = object({
|
|
|
16711
16711
|
*/
|
|
16712
16712
|
hasFace: boolean().optional(),
|
|
16713
16713
|
/**
|
|
16714
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16715
|
+
* face an operator could ASSIGN to an identity.
|
|
16716
|
+
*
|
|
16717
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16718
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16719
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16720
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16721
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16722
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16723
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16724
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16725
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16726
|
+
* operator something to assign and delivers nothing.
|
|
16727
|
+
*
|
|
16728
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16729
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16730
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16731
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16732
|
+
*
|
|
16733
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16734
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16735
|
+
*
|
|
16736
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16737
|
+
* before the column omits it, and so does every server that predates the
|
|
16738
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16739
|
+
* never infer "no assignable face".
|
|
16740
|
+
*/
|
|
16741
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16742
|
+
/**
|
|
16714
16743
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16715
16744
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16716
16745
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18106,6 +18135,26 @@ var DetailResultSchema = object({
|
|
|
18106
18135
|
* the consuming gate treats as accept — never as reject.
|
|
18107
18136
|
*/
|
|
18108
18137
|
embeddingMagnitude: number().optional(),
|
|
18138
|
+
/**
|
|
18139
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18140
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18141
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18142
|
+
* the inference this model exists to forbid.
|
|
18143
|
+
*
|
|
18144
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18145
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18146
|
+
* its previous assumption instead of refusing.
|
|
18147
|
+
*
|
|
18148
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18149
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18150
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18151
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18152
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18153
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18154
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18155
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18156
|
+
*/
|
|
18157
|
+
embeddingModelId: string().optional(),
|
|
18109
18158
|
label: string().optional(),
|
|
18110
18159
|
/**
|
|
18111
18160
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18981,6 +19030,12 @@ var CameraStatusSchema = object({
|
|
|
18981
19030
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18982
19031
|
fetchedAt: number()
|
|
18983
19032
|
});
|
|
19033
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19034
|
+
"disabled",
|
|
19035
|
+
"unavailable",
|
|
19036
|
+
"cannot-host-camera-root",
|
|
19037
|
+
"accelerator-preferred"
|
|
19038
|
+
]);
|
|
18984
19039
|
var NodeInferenceDeviceSchema = object({
|
|
18985
19040
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18986
19041
|
key: string(),
|
|
@@ -19011,7 +19066,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19011
19066
|
* available per format; this is the stored selection that becomes the
|
|
19012
19067
|
* default for EVERY camera landing on this accelerator.
|
|
19013
19068
|
*/
|
|
19014
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19069
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19070
|
+
/**
|
|
19071
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19072
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19073
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19074
|
+
* never disagree with the election — deriving it in the UI from
|
|
19075
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19076
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19077
|
+
* "an accelerator is serving" predicate).
|
|
19078
|
+
*/
|
|
19079
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19015
19080
|
});
|
|
19016
19081
|
var NodeInferenceDevicesSchema = object({
|
|
19017
19082
|
nodeId: string(),
|
|
@@ -19570,6 +19635,7 @@ var snapshotCapability = {
|
|
|
19570
19635
|
isBattery: boolean(),
|
|
19571
19636
|
reason: _enum([
|
|
19572
19637
|
"disabled",
|
|
19638
|
+
"offline",
|
|
19573
19639
|
"sleeping",
|
|
19574
19640
|
"unreachable",
|
|
19575
19641
|
"waking"
|
|
@@ -19659,9 +19725,17 @@ targets: array(object({
|
|
|
19659
19725
|
sleeping: boolean(),
|
|
19660
19726
|
/** Current device state rendered over the cached frame. State images
|
|
19661
19727
|
* remain authoritative even when their photographic background is
|
|
19662
|
-
* old; null means the link must carry a current camera frame.
|
|
19728
|
+
* old; null means the link must carry a current camera frame.
|
|
19729
|
+
*
|
|
19730
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19731
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19732
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19733
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19734
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19735
|
+
* state. */
|
|
19663
19736
|
stateReason: _enum([
|
|
19664
19737
|
"disabled",
|
|
19738
|
+
"offline",
|
|
19665
19739
|
"sleeping",
|
|
19666
19740
|
"unreachable",
|
|
19667
19741
|
"waking"
|
|
@@ -23965,7 +24039,12 @@ var ListResultSchema = object({
|
|
|
23965
24039
|
probedAt: number()
|
|
23966
24040
|
});
|
|
23967
24041
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23968
|
-
|
|
24042
|
+
/**
|
|
24043
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24044
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24045
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24046
|
+
*/
|
|
24047
|
+
var ConnectionEndpointSchema = object({
|
|
23969
24048
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23970
24049
|
label: string(),
|
|
23971
24050
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24008,7 +24087,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24008
24087
|
* ordering between polls.
|
|
24009
24088
|
*/
|
|
24010
24089
|
priority: number()
|
|
24011
|
-
})
|
|
24090
|
+
});
|
|
24091
|
+
/**
|
|
24092
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24093
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24094
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24095
|
+
*/
|
|
24096
|
+
var LocalPortSourceEnum = _enum([
|
|
24097
|
+
"server-config",
|
|
24098
|
+
"server-env",
|
|
24099
|
+
"caller-hint",
|
|
24100
|
+
"default"
|
|
24101
|
+
]);
|
|
24102
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24103
|
+
var AdvertisedLocalPortSchema = object({
|
|
24104
|
+
port: number().int().min(1).max(65535),
|
|
24105
|
+
source: LocalPortSourceEnum
|
|
24106
|
+
});
|
|
24107
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24108
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24109
|
+
/**
|
|
24110
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24111
|
+
* came from.
|
|
24112
|
+
*
|
|
24113
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24114
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24115
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24116
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24117
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24118
|
+
* `caller-hint` is the hub's own socket.
|
|
24119
|
+
*
|
|
24120
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24121
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24122
|
+
* `caller-hint`.
|
|
24123
|
+
*/
|
|
24124
|
+
localPort: AdvertisedLocalPortSchema
|
|
24125
|
+
});
|
|
24012
24126
|
/**
|
|
24013
24127
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24014
24128
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24029,8 +24143,13 @@ var AllowedAddressesSchema = object({
|
|
|
24029
24143
|
*/
|
|
24030
24144
|
addresses: array(string()).readonly() });
|
|
24031
24145
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24032
|
-
/**
|
|
24033
|
-
|
|
24146
|
+
/**
|
|
24147
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24148
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24149
|
+
* only when it cannot read its own port, and says so via
|
|
24150
|
+
* `localPort.source === 'caller-hint'`.
|
|
24151
|
+
*/
|
|
24152
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24034
24153
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24035
24154
|
* candidate. Default `true`. */
|
|
24036
24155
|
includeLoopback: boolean().optional(),
|
|
@@ -37451,6 +37570,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37451
37570
|
createdAt: number(),
|
|
37452
37571
|
updatedAt: number()
|
|
37453
37572
|
});
|
|
37573
|
+
Object.freeze(Object.fromEntries([{
|
|
37574
|
+
stepId: "face-embedding",
|
|
37575
|
+
label: "Face recognition model",
|
|
37576
|
+
defaultModelId: "arcface-r100",
|
|
37577
|
+
indexName: "the enrolled face gallery",
|
|
37578
|
+
options: [
|
|
37579
|
+
{
|
|
37580
|
+
id: "arcface-r100",
|
|
37581
|
+
label: "ArcFace (ResNet34)"
|
|
37582
|
+
},
|
|
37583
|
+
{
|
|
37584
|
+
id: "auraface-r100",
|
|
37585
|
+
label: "AuraFace R100"
|
|
37586
|
+
},
|
|
37587
|
+
{
|
|
37588
|
+
id: "inception-resnet-v1",
|
|
37589
|
+
label: "Inception ResNet V1"
|
|
37590
|
+
}
|
|
37591
|
+
]
|
|
37592
|
+
}, {
|
|
37593
|
+
stepId: "clip-embedding",
|
|
37594
|
+
label: "Semantic search model",
|
|
37595
|
+
defaultModelId: "mobileclip-s1",
|
|
37596
|
+
indexName: "the object semantic-search index",
|
|
37597
|
+
options: [{
|
|
37598
|
+
id: "mobileclip-s1",
|
|
37599
|
+
label: "MobileCLIP S1"
|
|
37600
|
+
}, {
|
|
37601
|
+
id: "mobileclip-s2",
|
|
37602
|
+
label: "MobileCLIP S2"
|
|
37603
|
+
}]
|
|
37604
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37605
|
+
string().min(1);
|
|
37454
37606
|
object({
|
|
37455
37607
|
/**
|
|
37456
37608
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37471,10 +37623,21 @@ object({
|
|
|
37471
37623
|
*/
|
|
37472
37624
|
square: boolean()
|
|
37473
37625
|
});
|
|
37474
|
-
|
|
37626
|
+
/**
|
|
37627
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37628
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37629
|
+
*/
|
|
37630
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37475
37631
|
paddingRatio: .15,
|
|
37476
37632
|
square: false
|
|
37477
|
-
}
|
|
37633
|
+
};
|
|
37634
|
+
Object.freeze({
|
|
37635
|
+
x: 0,
|
|
37636
|
+
y: 0,
|
|
37637
|
+
w: 1,
|
|
37638
|
+
h: 1
|
|
37639
|
+
});
|
|
37640
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37478
37641
|
/**
|
|
37479
37642
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37480
37643
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7577,7 +7577,7 @@ var RecordingBandSchema = object({
|
|
|
7577
7577
|
postBufferSec: number().min(0).optional()
|
|
7578
7578
|
});
|
|
7579
7579
|
({
|
|
7580
|
-
preBufferSec:
|
|
7580
|
+
preBufferSec: 15,
|
|
7581
7581
|
postBufferSec: 30
|
|
7582
7582
|
}).postBufferSec * 1e3;
|
|
7583
7583
|
/**
|
|
@@ -16395,7 +16395,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16395
16395
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16396
16396
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16397
16397
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16398
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16398
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16399
16399
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16400
16400
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16401
16401
|
* (`getObjectEvents` et al.).
|
|
@@ -16690,6 +16690,35 @@ var TrackSchema = object({
|
|
|
16690
16690
|
*/
|
|
16691
16691
|
hasFace: boolean().optional(),
|
|
16692
16692
|
/**
|
|
16693
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16694
|
+
* face an operator could ASSIGN to an identity.
|
|
16695
|
+
*
|
|
16696
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16697
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16698
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16699
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16700
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16701
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16702
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16703
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16704
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16705
|
+
* operator something to assign and delivers nothing.
|
|
16706
|
+
*
|
|
16707
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16708
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16709
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16710
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16711
|
+
*
|
|
16712
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16713
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16714
|
+
*
|
|
16715
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16716
|
+
* before the column omits it, and so does every server that predates the
|
|
16717
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16718
|
+
* never infer "no assignable face".
|
|
16719
|
+
*/
|
|
16720
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16721
|
+
/**
|
|
16693
16722
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16694
16723
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16695
16724
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18085,6 +18114,26 @@ var DetailResultSchema = object({
|
|
|
18085
18114
|
* the consuming gate treats as accept — never as reject.
|
|
18086
18115
|
*/
|
|
18087
18116
|
embeddingMagnitude: number().optional(),
|
|
18117
|
+
/**
|
|
18118
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18119
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18120
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18121
|
+
* the inference this model exists to forbid.
|
|
18122
|
+
*
|
|
18123
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18124
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18125
|
+
* its previous assumption instead of refusing.
|
|
18126
|
+
*
|
|
18127
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18128
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18129
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18130
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18131
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18132
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18133
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18134
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18135
|
+
*/
|
|
18136
|
+
embeddingModelId: string().optional(),
|
|
18088
18137
|
label: string().optional(),
|
|
18089
18138
|
/**
|
|
18090
18139
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18960,6 +19009,12 @@ var CameraStatusSchema = object({
|
|
|
18960
19009
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18961
19010
|
fetchedAt: number()
|
|
18962
19011
|
});
|
|
19012
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19013
|
+
"disabled",
|
|
19014
|
+
"unavailable",
|
|
19015
|
+
"cannot-host-camera-root",
|
|
19016
|
+
"accelerator-preferred"
|
|
19017
|
+
]);
|
|
18963
19018
|
var NodeInferenceDeviceSchema = object({
|
|
18964
19019
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18965
19020
|
key: string(),
|
|
@@ -18990,7 +19045,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18990
19045
|
* available per format; this is the stored selection that becomes the
|
|
18991
19046
|
* default for EVERY camera landing on this accelerator.
|
|
18992
19047
|
*/
|
|
18993
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19048
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19049
|
+
/**
|
|
19050
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19051
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19052
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19053
|
+
* never disagree with the election — deriving it in the UI from
|
|
19054
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19055
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19056
|
+
* "an accelerator is serving" predicate).
|
|
19057
|
+
*/
|
|
19058
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18994
19059
|
});
|
|
18995
19060
|
var NodeInferenceDevicesSchema = object({
|
|
18996
19061
|
nodeId: string(),
|
|
@@ -19549,6 +19614,7 @@ var snapshotCapability = {
|
|
|
19549
19614
|
isBattery: boolean(),
|
|
19550
19615
|
reason: _enum([
|
|
19551
19616
|
"disabled",
|
|
19617
|
+
"offline",
|
|
19552
19618
|
"sleeping",
|
|
19553
19619
|
"unreachable",
|
|
19554
19620
|
"waking"
|
|
@@ -19638,9 +19704,17 @@ targets: array(object({
|
|
|
19638
19704
|
sleeping: boolean(),
|
|
19639
19705
|
/** Current device state rendered over the cached frame. State images
|
|
19640
19706
|
* remain authoritative even when their photographic background is
|
|
19641
|
-
* old; null means the link must carry a current camera frame.
|
|
19707
|
+
* old; null means the link must carry a current camera frame.
|
|
19708
|
+
*
|
|
19709
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19710
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19711
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19712
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19713
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19714
|
+
* state. */
|
|
19642
19715
|
stateReason: _enum([
|
|
19643
19716
|
"disabled",
|
|
19717
|
+
"offline",
|
|
19644
19718
|
"sleeping",
|
|
19645
19719
|
"unreachable",
|
|
19646
19720
|
"waking"
|
|
@@ -23944,7 +24018,12 @@ var ListResultSchema = object({
|
|
|
23944
24018
|
probedAt: number()
|
|
23945
24019
|
});
|
|
23946
24020
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23947
|
-
|
|
24021
|
+
/**
|
|
24022
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24023
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24024
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24025
|
+
*/
|
|
24026
|
+
var ConnectionEndpointSchema = object({
|
|
23948
24027
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23949
24028
|
label: string(),
|
|
23950
24029
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23987,7 +24066,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23987
24066
|
* ordering between polls.
|
|
23988
24067
|
*/
|
|
23989
24068
|
priority: number()
|
|
23990
|
-
})
|
|
24069
|
+
});
|
|
24070
|
+
/**
|
|
24071
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24072
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24073
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24074
|
+
*/
|
|
24075
|
+
var LocalPortSourceEnum = _enum([
|
|
24076
|
+
"server-config",
|
|
24077
|
+
"server-env",
|
|
24078
|
+
"caller-hint",
|
|
24079
|
+
"default"
|
|
24080
|
+
]);
|
|
24081
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24082
|
+
var AdvertisedLocalPortSchema = object({
|
|
24083
|
+
port: number().int().min(1).max(65535),
|
|
24084
|
+
source: LocalPortSourceEnum
|
|
24085
|
+
});
|
|
24086
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24087
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24088
|
+
/**
|
|
24089
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24090
|
+
* came from.
|
|
24091
|
+
*
|
|
24092
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24093
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24094
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24095
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24096
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24097
|
+
* `caller-hint` is the hub's own socket.
|
|
24098
|
+
*
|
|
24099
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24100
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24101
|
+
* `caller-hint`.
|
|
24102
|
+
*/
|
|
24103
|
+
localPort: AdvertisedLocalPortSchema
|
|
24104
|
+
});
|
|
23991
24105
|
/**
|
|
23992
24106
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23993
24107
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24008,8 +24122,13 @@ var AllowedAddressesSchema = object({
|
|
|
24008
24122
|
*/
|
|
24009
24123
|
addresses: array(string()).readonly() });
|
|
24010
24124
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24011
|
-
/**
|
|
24012
|
-
|
|
24125
|
+
/**
|
|
24126
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24127
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24128
|
+
* only when it cannot read its own port, and says so via
|
|
24129
|
+
* `localPort.source === 'caller-hint'`.
|
|
24130
|
+
*/
|
|
24131
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24013
24132
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24014
24133
|
* candidate. Default `true`. */
|
|
24015
24134
|
includeLoopback: boolean().optional(),
|
|
@@ -37430,6 +37549,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37430
37549
|
createdAt: number(),
|
|
37431
37550
|
updatedAt: number()
|
|
37432
37551
|
});
|
|
37552
|
+
Object.freeze(Object.fromEntries([{
|
|
37553
|
+
stepId: "face-embedding",
|
|
37554
|
+
label: "Face recognition model",
|
|
37555
|
+
defaultModelId: "arcface-r100",
|
|
37556
|
+
indexName: "the enrolled face gallery",
|
|
37557
|
+
options: [
|
|
37558
|
+
{
|
|
37559
|
+
id: "arcface-r100",
|
|
37560
|
+
label: "ArcFace (ResNet34)"
|
|
37561
|
+
},
|
|
37562
|
+
{
|
|
37563
|
+
id: "auraface-r100",
|
|
37564
|
+
label: "AuraFace R100"
|
|
37565
|
+
},
|
|
37566
|
+
{
|
|
37567
|
+
id: "inception-resnet-v1",
|
|
37568
|
+
label: "Inception ResNet V1"
|
|
37569
|
+
}
|
|
37570
|
+
]
|
|
37571
|
+
}, {
|
|
37572
|
+
stepId: "clip-embedding",
|
|
37573
|
+
label: "Semantic search model",
|
|
37574
|
+
defaultModelId: "mobileclip-s1",
|
|
37575
|
+
indexName: "the object semantic-search index",
|
|
37576
|
+
options: [{
|
|
37577
|
+
id: "mobileclip-s1",
|
|
37578
|
+
label: "MobileCLIP S1"
|
|
37579
|
+
}, {
|
|
37580
|
+
id: "mobileclip-s2",
|
|
37581
|
+
label: "MobileCLIP S2"
|
|
37582
|
+
}]
|
|
37583
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37584
|
+
string().min(1);
|
|
37433
37585
|
object({
|
|
37434
37586
|
/**
|
|
37435
37587
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37450,10 +37602,21 @@ object({
|
|
|
37450
37602
|
*/
|
|
37451
37603
|
square: boolean()
|
|
37452
37604
|
});
|
|
37453
|
-
|
|
37605
|
+
/**
|
|
37606
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37607
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37608
|
+
*/
|
|
37609
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37454
37610
|
paddingRatio: .15,
|
|
37455
37611
|
square: false
|
|
37456
|
-
}
|
|
37612
|
+
};
|
|
37613
|
+
Object.freeze({
|
|
37614
|
+
x: 0,
|
|
37615
|
+
y: 0,
|
|
37616
|
+
w: 1,
|
|
37617
|
+
h: 1
|
|
37618
|
+
});
|
|
37619
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37457
37620
|
/**
|
|
37458
37621
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37459
37622
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|