@camstack/addon-provider-dreame 0.2.41 → 0.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
|
@@ -75489,6 +75489,33 @@ var intercomCapability = {
|
|
|
75489
75489
|
deviceNative: true,
|
|
75490
75490
|
mode: "singleton",
|
|
75491
75491
|
deviceTypes: [DeviceType.Camera],
|
|
75492
|
+
/**
|
|
75493
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
75494
|
+
*
|
|
75495
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
75496
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
75497
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
75498
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
75499
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
75500
|
+
* `admin` because they change what the device IS.
|
|
75501
|
+
*
|
|
75502
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
75503
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
75504
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
75505
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
75506
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
75507
|
+
* camera 7.
|
|
75508
|
+
*
|
|
75509
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
75510
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
75511
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
75512
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
75513
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
75514
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
75515
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
75516
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
75517
|
+
* preset promises a cap no row of that preset can reach.
|
|
75518
|
+
*/
|
|
75492
75519
|
methods: {
|
|
75493
75520
|
/**
|
|
75494
75521
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -75501,7 +75528,7 @@ var intercomCapability = {
|
|
|
75501
75528
|
sdpOffer: string()
|
|
75502
75529
|
}), {
|
|
75503
75530
|
kind: "mutation",
|
|
75504
|
-
auth: "
|
|
75531
|
+
auth: "protected"
|
|
75505
75532
|
}),
|
|
75506
75533
|
handleAnswer: method(object({
|
|
75507
75534
|
deviceId: number(),
|
|
@@ -75509,7 +75536,7 @@ var intercomCapability = {
|
|
|
75509
75536
|
sdpAnswer: string()
|
|
75510
75537
|
}), _void(), {
|
|
75511
75538
|
kind: "mutation",
|
|
75512
|
-
auth: "
|
|
75539
|
+
auth: "protected"
|
|
75513
75540
|
}),
|
|
75514
75541
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
75515
75542
|
stopSession: method(object({
|
|
@@ -75517,7 +75544,7 @@ var intercomCapability = {
|
|
|
75517
75544
|
sessionId: string()
|
|
75518
75545
|
}), _void(), {
|
|
75519
75546
|
kind: "mutation",
|
|
75520
|
-
auth: "
|
|
75547
|
+
auth: "protected"
|
|
75521
75548
|
}),
|
|
75522
75549
|
/**
|
|
75523
75550
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -75530,7 +75557,7 @@ var intercomCapability = {
|
|
|
75530
75557
|
*/
|
|
75531
75558
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
75532
75559
|
kind: "mutation",
|
|
75533
|
-
auth: "
|
|
75560
|
+
auth: "protected"
|
|
75534
75561
|
}),
|
|
75535
75562
|
/**
|
|
75536
75563
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -75565,12 +75592,12 @@ var intercomCapability = {
|
|
|
75565
75592
|
sequenceNumber: number().int()
|
|
75566
75593
|
}), object({ accepted: boolean() }), {
|
|
75567
75594
|
kind: "mutation",
|
|
75568
|
-
auth: "
|
|
75595
|
+
auth: "protected"
|
|
75569
75596
|
}),
|
|
75570
75597
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
75571
75598
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
75572
75599
|
kind: "mutation",
|
|
75573
|
-
auth: "
|
|
75600
|
+
auth: "protected"
|
|
75574
75601
|
})
|
|
75575
75602
|
},
|
|
75576
75603
|
events: { onStatusChanged: { data: object({
|
package/dist/addon.mjs
CHANGED
|
@@ -75489,6 +75489,33 @@ var intercomCapability = {
|
|
|
75489
75489
|
deviceNative: true,
|
|
75490
75490
|
mode: "singleton",
|
|
75491
75491
|
deviceTypes: [DeviceType.Camera],
|
|
75492
|
+
/**
|
|
75493
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
75494
|
+
*
|
|
75495
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
75496
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
75497
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
75498
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
75499
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
75500
|
+
* `admin` because they change what the device IS.
|
|
75501
|
+
*
|
|
75502
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
75503
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
75504
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
75505
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
75506
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
75507
|
+
* camera 7.
|
|
75508
|
+
*
|
|
75509
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
75510
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
75511
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
75512
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
75513
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
75514
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
75515
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
75516
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
75517
|
+
* preset promises a cap no row of that preset can reach.
|
|
75518
|
+
*/
|
|
75492
75519
|
methods: {
|
|
75493
75520
|
/**
|
|
75494
75521
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -75501,7 +75528,7 @@ var intercomCapability = {
|
|
|
75501
75528
|
sdpOffer: string()
|
|
75502
75529
|
}), {
|
|
75503
75530
|
kind: "mutation",
|
|
75504
|
-
auth: "
|
|
75531
|
+
auth: "protected"
|
|
75505
75532
|
}),
|
|
75506
75533
|
handleAnswer: method(object({
|
|
75507
75534
|
deviceId: number(),
|
|
@@ -75509,7 +75536,7 @@ var intercomCapability = {
|
|
|
75509
75536
|
sdpAnswer: string()
|
|
75510
75537
|
}), _void(), {
|
|
75511
75538
|
kind: "mutation",
|
|
75512
|
-
auth: "
|
|
75539
|
+
auth: "protected"
|
|
75513
75540
|
}),
|
|
75514
75541
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
75515
75542
|
stopSession: method(object({
|
|
@@ -75517,7 +75544,7 @@ var intercomCapability = {
|
|
|
75517
75544
|
sessionId: string()
|
|
75518
75545
|
}), _void(), {
|
|
75519
75546
|
kind: "mutation",
|
|
75520
|
-
auth: "
|
|
75547
|
+
auth: "protected"
|
|
75521
75548
|
}),
|
|
75522
75549
|
/**
|
|
75523
75550
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -75530,7 +75557,7 @@ var intercomCapability = {
|
|
|
75530
75557
|
*/
|
|
75531
75558
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
75532
75559
|
kind: "mutation",
|
|
75533
|
-
auth: "
|
|
75560
|
+
auth: "protected"
|
|
75534
75561
|
}),
|
|
75535
75562
|
/**
|
|
75536
75563
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -75565,12 +75592,12 @@ var intercomCapability = {
|
|
|
75565
75592
|
sequenceNumber: number().int()
|
|
75566
75593
|
}), object({ accepted: boolean() }), {
|
|
75567
75594
|
kind: "mutation",
|
|
75568
|
-
auth: "
|
|
75595
|
+
auth: "protected"
|
|
75569
75596
|
}),
|
|
75570
75597
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
75571
75598
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
75572
75599
|
kind: "mutation",
|
|
75573
|
-
auth: "
|
|
75600
|
+
auth: "protected"
|
|
75574
75601
|
})
|
|
75575
75602
|
},
|
|
75576
75603
|
events: { onStatusChanged: { data: object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|