@camstack/addon-provider-homematic 1.2.42 → 1.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
|
@@ -25017,6 +25017,33 @@ var intercomCapability = {
|
|
|
25017
25017
|
deviceNative: true,
|
|
25018
25018
|
mode: "singleton",
|
|
25019
25019
|
deviceTypes: [DeviceType.Camera],
|
|
25020
|
+
/**
|
|
25021
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25022
|
+
*
|
|
25023
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25024
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25025
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25026
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25027
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25028
|
+
* `admin` because they change what the device IS.
|
|
25029
|
+
*
|
|
25030
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25031
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25032
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25033
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25034
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25035
|
+
* camera 7.
|
|
25036
|
+
*
|
|
25037
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25038
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25039
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25040
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25041
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25042
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25043
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25044
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25045
|
+
* preset promises a cap no row of that preset can reach.
|
|
25046
|
+
*/
|
|
25020
25047
|
methods: {
|
|
25021
25048
|
/**
|
|
25022
25049
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25029,7 +25056,7 @@ var intercomCapability = {
|
|
|
25029
25056
|
sdpOffer: string()
|
|
25030
25057
|
}), {
|
|
25031
25058
|
kind: "mutation",
|
|
25032
|
-
auth: "
|
|
25059
|
+
auth: "protected"
|
|
25033
25060
|
}),
|
|
25034
25061
|
handleAnswer: method(object({
|
|
25035
25062
|
deviceId: number(),
|
|
@@ -25037,7 +25064,7 @@ var intercomCapability = {
|
|
|
25037
25064
|
sdpAnswer: string()
|
|
25038
25065
|
}), _void(), {
|
|
25039
25066
|
kind: "mutation",
|
|
25040
|
-
auth: "
|
|
25067
|
+
auth: "protected"
|
|
25041
25068
|
}),
|
|
25042
25069
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25043
25070
|
stopSession: method(object({
|
|
@@ -25045,7 +25072,7 @@ var intercomCapability = {
|
|
|
25045
25072
|
sessionId: string()
|
|
25046
25073
|
}), _void(), {
|
|
25047
25074
|
kind: "mutation",
|
|
25048
|
-
auth: "
|
|
25075
|
+
auth: "protected"
|
|
25049
25076
|
}),
|
|
25050
25077
|
/**
|
|
25051
25078
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25058,7 +25085,7 @@ var intercomCapability = {
|
|
|
25058
25085
|
*/
|
|
25059
25086
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25060
25087
|
kind: "mutation",
|
|
25061
|
-
auth: "
|
|
25088
|
+
auth: "protected"
|
|
25062
25089
|
}),
|
|
25063
25090
|
/**
|
|
25064
25091
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25093,12 +25120,12 @@ var intercomCapability = {
|
|
|
25093
25120
|
sequenceNumber: number().int()
|
|
25094
25121
|
}), object({ accepted: boolean() }), {
|
|
25095
25122
|
kind: "mutation",
|
|
25096
|
-
auth: "
|
|
25123
|
+
auth: "protected"
|
|
25097
25124
|
}),
|
|
25098
25125
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25099
25126
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25100
25127
|
kind: "mutation",
|
|
25101
|
-
auth: "
|
|
25128
|
+
auth: "protected"
|
|
25102
25129
|
})
|
|
25103
25130
|
},
|
|
25104
25131
|
events: { onStatusChanged: { data: object({
|
package/dist/addon.mjs
CHANGED
|
@@ -25018,6 +25018,33 @@ var intercomCapability = {
|
|
|
25018
25018
|
deviceNative: true,
|
|
25019
25019
|
mode: "singleton",
|
|
25020
25020
|
deviceTypes: [DeviceType.Camera],
|
|
25021
|
+
/**
|
|
25022
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25023
|
+
*
|
|
25024
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25025
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25026
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25027
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25028
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25029
|
+
* `admin` because they change what the device IS.
|
|
25030
|
+
*
|
|
25031
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25032
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25033
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25034
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25035
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25036
|
+
* camera 7.
|
|
25037
|
+
*
|
|
25038
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25039
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25040
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25041
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25042
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25043
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25044
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25045
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25046
|
+
* preset promises a cap no row of that preset can reach.
|
|
25047
|
+
*/
|
|
25021
25048
|
methods: {
|
|
25022
25049
|
/**
|
|
25023
25050
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25030,7 +25057,7 @@ var intercomCapability = {
|
|
|
25030
25057
|
sdpOffer: string()
|
|
25031
25058
|
}), {
|
|
25032
25059
|
kind: "mutation",
|
|
25033
|
-
auth: "
|
|
25060
|
+
auth: "protected"
|
|
25034
25061
|
}),
|
|
25035
25062
|
handleAnswer: method(object({
|
|
25036
25063
|
deviceId: number(),
|
|
@@ -25038,7 +25065,7 @@ var intercomCapability = {
|
|
|
25038
25065
|
sdpAnswer: string()
|
|
25039
25066
|
}), _void(), {
|
|
25040
25067
|
kind: "mutation",
|
|
25041
|
-
auth: "
|
|
25068
|
+
auth: "protected"
|
|
25042
25069
|
}),
|
|
25043
25070
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25044
25071
|
stopSession: method(object({
|
|
@@ -25046,7 +25073,7 @@ var intercomCapability = {
|
|
|
25046
25073
|
sessionId: string()
|
|
25047
25074
|
}), _void(), {
|
|
25048
25075
|
kind: "mutation",
|
|
25049
|
-
auth: "
|
|
25076
|
+
auth: "protected"
|
|
25050
25077
|
}),
|
|
25051
25078
|
/**
|
|
25052
25079
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25059,7 +25086,7 @@ var intercomCapability = {
|
|
|
25059
25086
|
*/
|
|
25060
25087
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25061
25088
|
kind: "mutation",
|
|
25062
|
-
auth: "
|
|
25089
|
+
auth: "protected"
|
|
25063
25090
|
}),
|
|
25064
25091
|
/**
|
|
25065
25092
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25094,12 +25121,12 @@ var intercomCapability = {
|
|
|
25094
25121
|
sequenceNumber: number().int()
|
|
25095
25122
|
}), object({ accepted: boolean() }), {
|
|
25096
25123
|
kind: "mutation",
|
|
25097
|
-
auth: "
|
|
25124
|
+
auth: "protected"
|
|
25098
25125
|
}),
|
|
25099
25126
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25100
25127
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25101
25128
|
kind: "mutation",
|
|
25102
|
-
auth: "
|
|
25129
|
+
auth: "protected"
|
|
25103
25130
|
})
|
|
25104
25131
|
},
|
|
25105
25132
|
events: { onStatusChanged: { data: object({
|
package/package.json
CHANGED