@camstack/addon-provider-rtsp 1.2.41 → 1.2.42
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
|
@@ -25110,6 +25110,33 @@ var intercomCapability = {
|
|
|
25110
25110
|
deviceNative: true,
|
|
25111
25111
|
mode: "singleton",
|
|
25112
25112
|
deviceTypes: [DeviceType.Camera],
|
|
25113
|
+
/**
|
|
25114
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25115
|
+
*
|
|
25116
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25117
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25118
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25119
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25120
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25121
|
+
* `admin` because they change what the device IS.
|
|
25122
|
+
*
|
|
25123
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25124
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25125
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25126
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25127
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25128
|
+
* camera 7.
|
|
25129
|
+
*
|
|
25130
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25131
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25132
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25133
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25134
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25135
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25136
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25137
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25138
|
+
* preset promises a cap no row of that preset can reach.
|
|
25139
|
+
*/
|
|
25113
25140
|
methods: {
|
|
25114
25141
|
/**
|
|
25115
25142
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25122,7 +25149,7 @@ var intercomCapability = {
|
|
|
25122
25149
|
sdpOffer: string()
|
|
25123
25150
|
}), {
|
|
25124
25151
|
kind: "mutation",
|
|
25125
|
-
auth: "
|
|
25152
|
+
auth: "protected"
|
|
25126
25153
|
}),
|
|
25127
25154
|
handleAnswer: method(object({
|
|
25128
25155
|
deviceId: number(),
|
|
@@ -25130,7 +25157,7 @@ var intercomCapability = {
|
|
|
25130
25157
|
sdpAnswer: string()
|
|
25131
25158
|
}), _void(), {
|
|
25132
25159
|
kind: "mutation",
|
|
25133
|
-
auth: "
|
|
25160
|
+
auth: "protected"
|
|
25134
25161
|
}),
|
|
25135
25162
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25136
25163
|
stopSession: method(object({
|
|
@@ -25138,7 +25165,7 @@ var intercomCapability = {
|
|
|
25138
25165
|
sessionId: string()
|
|
25139
25166
|
}), _void(), {
|
|
25140
25167
|
kind: "mutation",
|
|
25141
|
-
auth: "
|
|
25168
|
+
auth: "protected"
|
|
25142
25169
|
}),
|
|
25143
25170
|
/**
|
|
25144
25171
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25151,7 +25178,7 @@ var intercomCapability = {
|
|
|
25151
25178
|
*/
|
|
25152
25179
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25153
25180
|
kind: "mutation",
|
|
25154
|
-
auth: "
|
|
25181
|
+
auth: "protected"
|
|
25155
25182
|
}),
|
|
25156
25183
|
/**
|
|
25157
25184
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25186,12 +25213,12 @@ var intercomCapability = {
|
|
|
25186
25213
|
sequenceNumber: number().int()
|
|
25187
25214
|
}), object({ accepted: boolean() }), {
|
|
25188
25215
|
kind: "mutation",
|
|
25189
|
-
auth: "
|
|
25216
|
+
auth: "protected"
|
|
25190
25217
|
}),
|
|
25191
25218
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25192
25219
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25193
25220
|
kind: "mutation",
|
|
25194
|
-
auth: "
|
|
25221
|
+
auth: "protected"
|
|
25195
25222
|
})
|
|
25196
25223
|
},
|
|
25197
25224
|
events: { onStatusChanged: { data: object({
|
package/dist/addon.mjs
CHANGED
|
@@ -25086,6 +25086,33 @@ var intercomCapability = {
|
|
|
25086
25086
|
deviceNative: true,
|
|
25087
25087
|
mode: "singleton",
|
|
25088
25088
|
deviceTypes: [DeviceType.Camera],
|
|
25089
|
+
/**
|
|
25090
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25091
|
+
*
|
|
25092
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25093
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25094
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25095
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25096
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25097
|
+
* `admin` because they change what the device IS.
|
|
25098
|
+
*
|
|
25099
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25100
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25101
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25102
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25103
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25104
|
+
* camera 7.
|
|
25105
|
+
*
|
|
25106
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25107
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25108
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25109
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25110
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25111
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25112
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25113
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25114
|
+
* preset promises a cap no row of that preset can reach.
|
|
25115
|
+
*/
|
|
25089
25116
|
methods: {
|
|
25090
25117
|
/**
|
|
25091
25118
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25098,7 +25125,7 @@ var intercomCapability = {
|
|
|
25098
25125
|
sdpOffer: string()
|
|
25099
25126
|
}), {
|
|
25100
25127
|
kind: "mutation",
|
|
25101
|
-
auth: "
|
|
25128
|
+
auth: "protected"
|
|
25102
25129
|
}),
|
|
25103
25130
|
handleAnswer: method(object({
|
|
25104
25131
|
deviceId: number(),
|
|
@@ -25106,7 +25133,7 @@ var intercomCapability = {
|
|
|
25106
25133
|
sdpAnswer: string()
|
|
25107
25134
|
}), _void(), {
|
|
25108
25135
|
kind: "mutation",
|
|
25109
|
-
auth: "
|
|
25136
|
+
auth: "protected"
|
|
25110
25137
|
}),
|
|
25111
25138
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25112
25139
|
stopSession: method(object({
|
|
@@ -25114,7 +25141,7 @@ var intercomCapability = {
|
|
|
25114
25141
|
sessionId: string()
|
|
25115
25142
|
}), _void(), {
|
|
25116
25143
|
kind: "mutation",
|
|
25117
|
-
auth: "
|
|
25144
|
+
auth: "protected"
|
|
25118
25145
|
}),
|
|
25119
25146
|
/**
|
|
25120
25147
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25127,7 +25154,7 @@ var intercomCapability = {
|
|
|
25127
25154
|
*/
|
|
25128
25155
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25129
25156
|
kind: "mutation",
|
|
25130
|
-
auth: "
|
|
25157
|
+
auth: "protected"
|
|
25131
25158
|
}),
|
|
25132
25159
|
/**
|
|
25133
25160
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25162,12 +25189,12 @@ var intercomCapability = {
|
|
|
25162
25189
|
sequenceNumber: number().int()
|
|
25163
25190
|
}), object({ accepted: boolean() }), {
|
|
25164
25191
|
kind: "mutation",
|
|
25165
|
-
auth: "
|
|
25192
|
+
auth: "protected"
|
|
25166
25193
|
}),
|
|
25167
25194
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25168
25195
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25169
25196
|
kind: "mutation",
|
|
25170
|
-
auth: "
|
|
25197
|
+
auth: "protected"
|
|
25171
25198
|
})
|
|
25172
25199
|
},
|
|
25173
25200
|
events: { onStatusChanged: { data: object({
|