@camstack/addon-provider-petkit 0.2.113 → 0.2.114
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 +154 -1
- package/dist/addon.mjs +154 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6462,7 +6462,7 @@ var ZodIssueCode = {
|
|
|
6462
6462
|
var ZodFirstPartyTypeKind;
|
|
6463
6463
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6464
6464
|
//#endregion
|
|
6465
|
-
//#region ../types/dist/sleep-
|
|
6465
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6466
6466
|
/**
|
|
6467
6467
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6468
6468
|
* window to float samples (D455).
|
|
@@ -12952,6 +12952,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12952
12952
|
});
|
|
12953
12953
|
var RtpSourceSchema = object({
|
|
12954
12954
|
url: string(),
|
|
12955
|
+
/**
|
|
12956
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12957
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12958
|
+
*
|
|
12959
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12960
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12961
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12962
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12963
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12964
|
+
* because its own copy of the rule was a release behind.
|
|
12965
|
+
*
|
|
12966
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12967
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12968
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12969
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12970
|
+
* sentry counterpart.
|
|
12971
|
+
*/
|
|
12972
|
+
sentryUrl: string().nullable().optional(),
|
|
12955
12973
|
videoCodec: _enum(["H264", "H265"]),
|
|
12956
12974
|
audioCodec: string(),
|
|
12957
12975
|
resolution: object({
|
|
@@ -29998,6 +30016,114 @@ var motionTriggerCapability = {
|
|
|
29998
30016
|
durability: "session"
|
|
29999
30017
|
};
|
|
30000
30018
|
/**
|
|
30019
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
30020
|
+
* page.
|
|
30021
|
+
*
|
|
30022
|
+
* ## Why this is a capability and not an addon settings schema
|
|
30023
|
+
*
|
|
30024
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
30025
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
30026
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
30027
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
30028
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
30029
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
30030
|
+
* not on it "falls off silently".
|
|
30031
|
+
*
|
|
30032
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
30033
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
30034
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
30035
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
30036
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
30037
|
+
* all use it): the framework emits the structural section and the widget
|
|
30038
|
+
* self-persists through the cap's own mutations.
|
|
30039
|
+
*
|
|
30040
|
+
* ## Why one addon may implement it
|
|
30041
|
+
*
|
|
30042
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
30043
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
30044
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
30045
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
30046
|
+
* reached only by a caller that already knew the addon id.
|
|
30047
|
+
*
|
|
30048
|
+
* ## The tab
|
|
30049
|
+
*
|
|
30050
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
30051
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
30052
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
30053
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
30054
|
+
* next to "PTZ").
|
|
30055
|
+
*/
|
|
30056
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
30057
|
+
var GridNormalizedRectSchema = object({
|
|
30058
|
+
x: number().min(0).max(1),
|
|
30059
|
+
y: number().min(0).max(1),
|
|
30060
|
+
width: number().gt(0).max(1),
|
|
30061
|
+
height: number().gt(0).max(1)
|
|
30062
|
+
});
|
|
30063
|
+
/**
|
|
30064
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
30065
|
+
*
|
|
30066
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
30067
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
30068
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
30069
|
+
* which is the class of bug nobody files.
|
|
30070
|
+
*/
|
|
30071
|
+
var GridLayoutCellSchema = object({
|
|
30072
|
+
deviceId: number().int().positive(),
|
|
30073
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
30074
|
+
source: GridNormalizedRectSchema,
|
|
30075
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
30076
|
+
cell: GridNormalizedRectSchema
|
|
30077
|
+
});
|
|
30078
|
+
/**
|
|
30079
|
+
* Which profiles this grid can actually compose, and why not.
|
|
30080
|
+
*
|
|
30081
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
30082
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
30083
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
30084
|
+
* low" is, and it is the one an operator can act on.
|
|
30085
|
+
*/
|
|
30086
|
+
var GridProfileOfferSchema = object({
|
|
30087
|
+
profile: _enum([
|
|
30088
|
+
"high",
|
|
30089
|
+
"mid",
|
|
30090
|
+
"low"
|
|
30091
|
+
]),
|
|
30092
|
+
offered: boolean(),
|
|
30093
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
30094
|
+
missingSources: array(number().int().positive())
|
|
30095
|
+
});
|
|
30096
|
+
var GridLayoutViewSchema = object({
|
|
30097
|
+
/** The persisted grid row this camera was declared from. */
|
|
30098
|
+
instanceId: string(),
|
|
30099
|
+
deviceId: number().int().nonnegative(),
|
|
30100
|
+
name: string(),
|
|
30101
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
30102
|
+
width: number().int(),
|
|
30103
|
+
height: number().int(),
|
|
30104
|
+
fps: number().int(),
|
|
30105
|
+
cells: array(GridLayoutCellSchema),
|
|
30106
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
30107
|
+
profiles: array(GridProfileOfferSchema)
|
|
30108
|
+
});
|
|
30109
|
+
var GridLayoutPatchSchema = object({
|
|
30110
|
+
deviceId: number().int().nonnegative(),
|
|
30111
|
+
name: string().min(1).max(160).optional(),
|
|
30112
|
+
width: number().int().min(160).max(7680).optional(),
|
|
30113
|
+
height: number().int().min(120).max(4320).optional(),
|
|
30114
|
+
fps: number().int().min(1).max(60).optional(),
|
|
30115
|
+
/**
|
|
30116
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
30117
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
30118
|
+
* for.
|
|
30119
|
+
*/
|
|
30120
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
30121
|
+
});
|
|
30122
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
30123
|
+
kind: "mutation",
|
|
30124
|
+
auth: "admin"
|
|
30125
|
+
});
|
|
30126
|
+
/**
|
|
30001
30127
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
30002
30128
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
30003
30129
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -37724,6 +37850,18 @@ Object.freeze({
|
|
|
37724
37850
|
addonId: null,
|
|
37725
37851
|
access: "view"
|
|
37726
37852
|
},
|
|
37853
|
+
"cameraGridLayout.getLayout": {
|
|
37854
|
+
capName: "camera-grid-layout",
|
|
37855
|
+
capScope: "device",
|
|
37856
|
+
addonId: null,
|
|
37857
|
+
access: "view"
|
|
37858
|
+
},
|
|
37859
|
+
"cameraGridLayout.saveLayout": {
|
|
37860
|
+
capName: "camera-grid-layout",
|
|
37861
|
+
capScope: "device",
|
|
37862
|
+
addonId: null,
|
|
37863
|
+
access: "create"
|
|
37864
|
+
},
|
|
37727
37865
|
"cameraStreams.getBrokerStreams": {
|
|
37728
37866
|
capName: "camera-streams",
|
|
37729
37867
|
capScope: "device",
|
|
@@ -43423,6 +43561,21 @@ Object.freeze({
|
|
|
43423
43561
|
form: "single",
|
|
43424
43562
|
optional: false
|
|
43425
43563
|
}],
|
|
43564
|
+
"cameraGridLayout.getLayout": [{
|
|
43565
|
+
name: "deviceId",
|
|
43566
|
+
form: "single",
|
|
43567
|
+
optional: false
|
|
43568
|
+
}],
|
|
43569
|
+
"cameraGridLayout.saveLayout": [{
|
|
43570
|
+
name: "cells",
|
|
43571
|
+
form: "object-array",
|
|
43572
|
+
optional: false,
|
|
43573
|
+
itemField: "deviceId"
|
|
43574
|
+
}, {
|
|
43575
|
+
name: "deviceId",
|
|
43576
|
+
form: "single",
|
|
43577
|
+
optional: false
|
|
43578
|
+
}],
|
|
43426
43579
|
"cameraStreams.getBrokerStreams": [{
|
|
43427
43580
|
name: "deviceId",
|
|
43428
43581
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -6461,7 +6461,7 @@ var ZodIssueCode = {
|
|
|
6461
6461
|
var ZodFirstPartyTypeKind;
|
|
6462
6462
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6463
6463
|
//#endregion
|
|
6464
|
-
//#region ../types/dist/sleep-
|
|
6464
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6465
6465
|
/**
|
|
6466
6466
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6467
6467
|
* window to float samples (D455).
|
|
@@ -12951,6 +12951,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12951
12951
|
});
|
|
12952
12952
|
var RtpSourceSchema = object({
|
|
12953
12953
|
url: string(),
|
|
12954
|
+
/**
|
|
12955
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12956
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12957
|
+
*
|
|
12958
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12959
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12960
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12961
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12962
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12963
|
+
* because its own copy of the rule was a release behind.
|
|
12964
|
+
*
|
|
12965
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12966
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12967
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12968
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12969
|
+
* sentry counterpart.
|
|
12970
|
+
*/
|
|
12971
|
+
sentryUrl: string().nullable().optional(),
|
|
12954
12972
|
videoCodec: _enum(["H264", "H265"]),
|
|
12955
12973
|
audioCodec: string(),
|
|
12956
12974
|
resolution: object({
|
|
@@ -29997,6 +30015,114 @@ var motionTriggerCapability = {
|
|
|
29997
30015
|
durability: "session"
|
|
29998
30016
|
};
|
|
29999
30017
|
/**
|
|
30018
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
30019
|
+
* page.
|
|
30020
|
+
*
|
|
30021
|
+
* ## Why this is a capability and not an addon settings schema
|
|
30022
|
+
*
|
|
30023
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
30024
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
30025
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
30026
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
30027
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
30028
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
30029
|
+
* not on it "falls off silently".
|
|
30030
|
+
*
|
|
30031
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
30032
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
30033
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
30034
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
30035
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
30036
|
+
* all use it): the framework emits the structural section and the widget
|
|
30037
|
+
* self-persists through the cap's own mutations.
|
|
30038
|
+
*
|
|
30039
|
+
* ## Why one addon may implement it
|
|
30040
|
+
*
|
|
30041
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
30042
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
30043
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
30044
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
30045
|
+
* reached only by a caller that already knew the addon id.
|
|
30046
|
+
*
|
|
30047
|
+
* ## The tab
|
|
30048
|
+
*
|
|
30049
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
30050
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
30051
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
30052
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
30053
|
+
* next to "PTZ").
|
|
30054
|
+
*/
|
|
30055
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
30056
|
+
var GridNormalizedRectSchema = object({
|
|
30057
|
+
x: number().min(0).max(1),
|
|
30058
|
+
y: number().min(0).max(1),
|
|
30059
|
+
width: number().gt(0).max(1),
|
|
30060
|
+
height: number().gt(0).max(1)
|
|
30061
|
+
});
|
|
30062
|
+
/**
|
|
30063
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
30064
|
+
*
|
|
30065
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
30066
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
30067
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
30068
|
+
* which is the class of bug nobody files.
|
|
30069
|
+
*/
|
|
30070
|
+
var GridLayoutCellSchema = object({
|
|
30071
|
+
deviceId: number().int().positive(),
|
|
30072
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
30073
|
+
source: GridNormalizedRectSchema,
|
|
30074
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
30075
|
+
cell: GridNormalizedRectSchema
|
|
30076
|
+
});
|
|
30077
|
+
/**
|
|
30078
|
+
* Which profiles this grid can actually compose, and why not.
|
|
30079
|
+
*
|
|
30080
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
30081
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
30082
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
30083
|
+
* low" is, and it is the one an operator can act on.
|
|
30084
|
+
*/
|
|
30085
|
+
var GridProfileOfferSchema = object({
|
|
30086
|
+
profile: _enum([
|
|
30087
|
+
"high",
|
|
30088
|
+
"mid",
|
|
30089
|
+
"low"
|
|
30090
|
+
]),
|
|
30091
|
+
offered: boolean(),
|
|
30092
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
30093
|
+
missingSources: array(number().int().positive())
|
|
30094
|
+
});
|
|
30095
|
+
var GridLayoutViewSchema = object({
|
|
30096
|
+
/** The persisted grid row this camera was declared from. */
|
|
30097
|
+
instanceId: string(),
|
|
30098
|
+
deviceId: number().int().nonnegative(),
|
|
30099
|
+
name: string(),
|
|
30100
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
30101
|
+
width: number().int(),
|
|
30102
|
+
height: number().int(),
|
|
30103
|
+
fps: number().int(),
|
|
30104
|
+
cells: array(GridLayoutCellSchema),
|
|
30105
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
30106
|
+
profiles: array(GridProfileOfferSchema)
|
|
30107
|
+
});
|
|
30108
|
+
var GridLayoutPatchSchema = object({
|
|
30109
|
+
deviceId: number().int().nonnegative(),
|
|
30110
|
+
name: string().min(1).max(160).optional(),
|
|
30111
|
+
width: number().int().min(160).max(7680).optional(),
|
|
30112
|
+
height: number().int().min(120).max(4320).optional(),
|
|
30113
|
+
fps: number().int().min(1).max(60).optional(),
|
|
30114
|
+
/**
|
|
30115
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
30116
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
30117
|
+
* for.
|
|
30118
|
+
*/
|
|
30119
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
30120
|
+
});
|
|
30121
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
30122
|
+
kind: "mutation",
|
|
30123
|
+
auth: "admin"
|
|
30124
|
+
});
|
|
30125
|
+
/**
|
|
30000
30126
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
30001
30127
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
30002
30128
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -37723,6 +37849,18 @@ Object.freeze({
|
|
|
37723
37849
|
addonId: null,
|
|
37724
37850
|
access: "view"
|
|
37725
37851
|
},
|
|
37852
|
+
"cameraGridLayout.getLayout": {
|
|
37853
|
+
capName: "camera-grid-layout",
|
|
37854
|
+
capScope: "device",
|
|
37855
|
+
addonId: null,
|
|
37856
|
+
access: "view"
|
|
37857
|
+
},
|
|
37858
|
+
"cameraGridLayout.saveLayout": {
|
|
37859
|
+
capName: "camera-grid-layout",
|
|
37860
|
+
capScope: "device",
|
|
37861
|
+
addonId: null,
|
|
37862
|
+
access: "create"
|
|
37863
|
+
},
|
|
37726
37864
|
"cameraStreams.getBrokerStreams": {
|
|
37727
37865
|
capName: "camera-streams",
|
|
37728
37866
|
capScope: "device",
|
|
@@ -43422,6 +43560,21 @@ Object.freeze({
|
|
|
43422
43560
|
form: "single",
|
|
43423
43561
|
optional: false
|
|
43424
43562
|
}],
|
|
43563
|
+
"cameraGridLayout.getLayout": [{
|
|
43564
|
+
name: "deviceId",
|
|
43565
|
+
form: "single",
|
|
43566
|
+
optional: false
|
|
43567
|
+
}],
|
|
43568
|
+
"cameraGridLayout.saveLayout": [{
|
|
43569
|
+
name: "cells",
|
|
43570
|
+
form: "object-array",
|
|
43571
|
+
optional: false,
|
|
43572
|
+
itemField: "deviceId"
|
|
43573
|
+
}, {
|
|
43574
|
+
name: "deviceId",
|
|
43575
|
+
form: "single",
|
|
43576
|
+
optional: false
|
|
43577
|
+
}],
|
|
43425
43578
|
"cameraStreams.getBrokerStreams": [{
|
|
43426
43579
|
name: "deviceId",
|
|
43427
43580
|
form: "single",
|
package/package.json
CHANGED