@camstack/addon-provider-amcrest 0.2.42 → 0.2.43
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 +33 -6
- package/dist/addon.mjs +33 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -25039,6 +25039,33 @@ var intercomCapability = {
|
|
|
25039
25039
|
deviceNative: true,
|
|
25040
25040
|
mode: "singleton",
|
|
25041
25041
|
deviceTypes: [DeviceType.Camera],
|
|
25042
|
+
/**
|
|
25043
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25044
|
+
*
|
|
25045
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25046
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25047
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25048
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25049
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25050
|
+
* `admin` because they change what the device IS.
|
|
25051
|
+
*
|
|
25052
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25053
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25054
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25055
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25056
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25057
|
+
* camera 7.
|
|
25058
|
+
*
|
|
25059
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25060
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25061
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25062
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25063
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25064
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25065
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25066
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25067
|
+
* preset promises a cap no row of that preset can reach.
|
|
25068
|
+
*/
|
|
25042
25069
|
methods: {
|
|
25043
25070
|
/**
|
|
25044
25071
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25051,7 +25078,7 @@ var intercomCapability = {
|
|
|
25051
25078
|
sdpOffer: string()
|
|
25052
25079
|
}), {
|
|
25053
25080
|
kind: "mutation",
|
|
25054
|
-
auth: "
|
|
25081
|
+
auth: "protected"
|
|
25055
25082
|
}),
|
|
25056
25083
|
handleAnswer: method(object({
|
|
25057
25084
|
deviceId: number(),
|
|
@@ -25059,7 +25086,7 @@ var intercomCapability = {
|
|
|
25059
25086
|
sdpAnswer: string()
|
|
25060
25087
|
}), _void(), {
|
|
25061
25088
|
kind: "mutation",
|
|
25062
|
-
auth: "
|
|
25089
|
+
auth: "protected"
|
|
25063
25090
|
}),
|
|
25064
25091
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25065
25092
|
stopSession: method(object({
|
|
@@ -25067,7 +25094,7 @@ var intercomCapability = {
|
|
|
25067
25094
|
sessionId: string()
|
|
25068
25095
|
}), _void(), {
|
|
25069
25096
|
kind: "mutation",
|
|
25070
|
-
auth: "
|
|
25097
|
+
auth: "protected"
|
|
25071
25098
|
}),
|
|
25072
25099
|
/**
|
|
25073
25100
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25080,7 +25107,7 @@ var intercomCapability = {
|
|
|
25080
25107
|
*/
|
|
25081
25108
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25082
25109
|
kind: "mutation",
|
|
25083
|
-
auth: "
|
|
25110
|
+
auth: "protected"
|
|
25084
25111
|
}),
|
|
25085
25112
|
/**
|
|
25086
25113
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25115,12 +25142,12 @@ var intercomCapability = {
|
|
|
25115
25142
|
sequenceNumber: number().int()
|
|
25116
25143
|
}), object({ accepted: boolean() }), {
|
|
25117
25144
|
kind: "mutation",
|
|
25118
|
-
auth: "
|
|
25145
|
+
auth: "protected"
|
|
25119
25146
|
}),
|
|
25120
25147
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25121
25148
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25122
25149
|
kind: "mutation",
|
|
25123
|
-
auth: "
|
|
25150
|
+
auth: "protected"
|
|
25124
25151
|
})
|
|
25125
25152
|
},
|
|
25126
25153
|
events: { onStatusChanged: { data: object({
|
package/dist/addon.mjs
CHANGED
|
@@ -25040,6 +25040,33 @@ var intercomCapability = {
|
|
|
25040
25040
|
deviceNative: true,
|
|
25041
25041
|
mode: "singleton",
|
|
25042
25042
|
deviceTypes: [DeviceType.Camera],
|
|
25043
|
+
/**
|
|
25044
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25045
|
+
*
|
|
25046
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25047
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25048
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25049
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25050
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25051
|
+
* `admin` because they change what the device IS.
|
|
25052
|
+
*
|
|
25053
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25054
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25055
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25056
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25057
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25058
|
+
* camera 7.
|
|
25059
|
+
*
|
|
25060
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25061
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25062
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25063
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25064
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25065
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25066
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25067
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25068
|
+
* preset promises a cap no row of that preset can reach.
|
|
25069
|
+
*/
|
|
25043
25070
|
methods: {
|
|
25044
25071
|
/**
|
|
25045
25072
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25052,7 +25079,7 @@ var intercomCapability = {
|
|
|
25052
25079
|
sdpOffer: string()
|
|
25053
25080
|
}), {
|
|
25054
25081
|
kind: "mutation",
|
|
25055
|
-
auth: "
|
|
25082
|
+
auth: "protected"
|
|
25056
25083
|
}),
|
|
25057
25084
|
handleAnswer: method(object({
|
|
25058
25085
|
deviceId: number(),
|
|
@@ -25060,7 +25087,7 @@ var intercomCapability = {
|
|
|
25060
25087
|
sdpAnswer: string()
|
|
25061
25088
|
}), _void(), {
|
|
25062
25089
|
kind: "mutation",
|
|
25063
|
-
auth: "
|
|
25090
|
+
auth: "protected"
|
|
25064
25091
|
}),
|
|
25065
25092
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25066
25093
|
stopSession: method(object({
|
|
@@ -25068,7 +25095,7 @@ var intercomCapability = {
|
|
|
25068
25095
|
sessionId: string()
|
|
25069
25096
|
}), _void(), {
|
|
25070
25097
|
kind: "mutation",
|
|
25071
|
-
auth: "
|
|
25098
|
+
auth: "protected"
|
|
25072
25099
|
}),
|
|
25073
25100
|
/**
|
|
25074
25101
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25081,7 +25108,7 @@ var intercomCapability = {
|
|
|
25081
25108
|
*/
|
|
25082
25109
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25083
25110
|
kind: "mutation",
|
|
25084
|
-
auth: "
|
|
25111
|
+
auth: "protected"
|
|
25085
25112
|
}),
|
|
25086
25113
|
/**
|
|
25087
25114
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25116,12 +25143,12 @@ var intercomCapability = {
|
|
|
25116
25143
|
sequenceNumber: number().int()
|
|
25117
25144
|
}), object({ accepted: boolean() }), {
|
|
25118
25145
|
kind: "mutation",
|
|
25119
|
-
auth: "
|
|
25146
|
+
auth: "protected"
|
|
25120
25147
|
}),
|
|
25121
25148
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25122
25149
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25123
25150
|
kind: "mutation",
|
|
25124
|
-
auth: "
|
|
25151
|
+
auth: "protected"
|
|
25125
25152
|
})
|
|
25126
25153
|
},
|
|
25127
25154
|
events: { onStatusChanged: { data: object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.43",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|