@camstack/addon-export-alexa 1.0.1 → 1.0.3
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.
|
@@ -12463,7 +12463,7 @@ var deviceExportCapability = {
|
|
|
12463
12463
|
* rebuilds without manual reload.
|
|
12464
12464
|
*
|
|
12465
12465
|
* The hub-local builtin `addon-pages-aggregator` (see
|
|
12466
|
-
* `@camstack/
|
|
12466
|
+
* `@camstack/system/builtins/addon-pages-aggregator`) registers the
|
|
12467
12467
|
* provider. Splitting the public aggregator from the raw collection
|
|
12468
12468
|
* keeps both ends in codegen — there's no hand-written
|
|
12469
12469
|
* `addon-pages.router.ts` wrapper anymore.
|
|
@@ -12646,7 +12646,7 @@ method(_void(), array(WidgetMetadataSchema).readonly());
|
|
|
12646
12646
|
* manual reload — same scheme used by `addon-pages`.
|
|
12647
12647
|
*
|
|
12648
12648
|
* The hub-local builtin `addon-widgets-aggregator` (see
|
|
12649
|
-
* `@camstack/
|
|
12649
|
+
* `@camstack/system/builtins/addon-widgets-aggregator`) registers the
|
|
12650
12650
|
* provider. Splitting the public aggregator from the raw collection
|
|
12651
12651
|
* keeps both ends in codegen — there's no hand-written wrapper.
|
|
12652
12652
|
*/
|
|
@@ -15374,7 +15374,7 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
|
|
|
15374
15374
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
15375
15375
|
* via the same surface would leak internal topology with no upside.
|
|
15376
15376
|
*
|
|
15377
|
-
* Implementation in `@camstack/
|
|
15377
|
+
* Implementation in `@camstack/system/builtins/local-network/`.
|
|
15378
15378
|
*/
|
|
15379
15379
|
/** Coarse classification derived from the interface name + IP range. */
|
|
15380
15380
|
var InterfaceKindEnum = _enum([
|
|
@@ -15921,7 +15921,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
15921
15921
|
* jitter, and observed/peak bandwidth per device + per client.
|
|
15922
15922
|
*
|
|
15923
15923
|
* Implementation lives in the server's `NetworkQualityService` (thin
|
|
15924
|
-
* wrapper over the shared `NetworkQualityTracker` from `@camstack/
|
|
15924
|
+
* wrapper over the shared `NetworkQualityTracker` from `@camstack/system`).
|
|
15925
15925
|
* The provider is registered from `trpc.router.ts` against the existing
|
|
15926
15926
|
* service instance — no addon owns this state.
|
|
15927
15927
|
*
|
|
@@ -22415,8 +22415,8 @@ function extractDirectiveBearer(event) {
|
|
|
22415
22415
|
* any Alexa directive — read, stream, or actuate all require device
|
|
22416
22416
|
* visibility.
|
|
22417
22417
|
*
|
|
22418
|
-
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/
|
|
22419
|
-
* (kept local because addons may not import from `@camstack/
|
|
22418
|
+
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/system`
|
|
22419
|
+
* (kept local because addons may not import from `@camstack/system`).
|
|
22420
22420
|
*/
|
|
22421
22421
|
function assertDeviceScope(scopes) {
|
|
22422
22422
|
if (!scopes.some((s) => s.type === "category" && s.target === "device" && s.access.includes("view"))) throw new Error("token lacks device scope");
|
|
@@ -22425,8 +22425,8 @@ function assertDeviceScope(scopes) {
|
|
|
22425
22425
|
* Guard a device directive against the caller token's scopes.
|
|
22426
22426
|
* `'view'` for read/discovery directives, `'create'` for control.
|
|
22427
22427
|
*
|
|
22428
|
-
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/
|
|
22429
|
-
* (kept local because addons may not import from `@camstack/
|
|
22428
|
+
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/system`
|
|
22429
|
+
* (kept local because addons may not import from `@camstack/system`).
|
|
22430
22430
|
*/
|
|
22431
22431
|
function requireDeviceScope(scopes, access) {
|
|
22432
22432
|
if (!scopes.some((s) => s.type === "category" && s.target === "device" && s.access.includes(access))) throw new Error(`directive token not authorized for device ${access}`);
|
|
@@ -22631,7 +22631,7 @@ function pickHeader(headers, name) {
|
|
|
22631
22631
|
* Lambda once, regenerating invalidates the old value).
|
|
22632
22632
|
*
|
|
22633
22633
|
* Could be unified with the stream-broker primitives into a shared
|
|
22634
|
-
* `@camstack/
|
|
22634
|
+
* `@camstack/system` util — kept local for now to avoid a system-package rebuild
|
|
22635
22635
|
* during this batch (see the completion spec).
|
|
22636
22636
|
*/
|
|
22637
22637
|
/** Generate a fresh high-entropy opaque ingress token (256-bit, base64url). */
|
|
@@ -12437,7 +12437,7 @@ var deviceExportCapability = {
|
|
|
12437
12437
|
* rebuilds without manual reload.
|
|
12438
12438
|
*
|
|
12439
12439
|
* The hub-local builtin `addon-pages-aggregator` (see
|
|
12440
|
-
* `@camstack/
|
|
12440
|
+
* `@camstack/system/builtins/addon-pages-aggregator`) registers the
|
|
12441
12441
|
* provider. Splitting the public aggregator from the raw collection
|
|
12442
12442
|
* keeps both ends in codegen — there's no hand-written
|
|
12443
12443
|
* `addon-pages.router.ts` wrapper anymore.
|
|
@@ -12620,7 +12620,7 @@ method(_void(), array(WidgetMetadataSchema).readonly());
|
|
|
12620
12620
|
* manual reload — same scheme used by `addon-pages`.
|
|
12621
12621
|
*
|
|
12622
12622
|
* The hub-local builtin `addon-widgets-aggregator` (see
|
|
12623
|
-
* `@camstack/
|
|
12623
|
+
* `@camstack/system/builtins/addon-widgets-aggregator`) registers the
|
|
12624
12624
|
* provider. Splitting the public aggregator from the raw collection
|
|
12625
12625
|
* keeps both ends in codegen — there's no hand-written wrapper.
|
|
12626
12626
|
*/
|
|
@@ -15348,7 +15348,7 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
|
|
|
15348
15348
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
15349
15349
|
* via the same surface would leak internal topology with no upside.
|
|
15350
15350
|
*
|
|
15351
|
-
* Implementation in `@camstack/
|
|
15351
|
+
* Implementation in `@camstack/system/builtins/local-network/`.
|
|
15352
15352
|
*/
|
|
15353
15353
|
/** Coarse classification derived from the interface name + IP range. */
|
|
15354
15354
|
var InterfaceKindEnum = _enum([
|
|
@@ -15895,7 +15895,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
15895
15895
|
* jitter, and observed/peak bandwidth per device + per client.
|
|
15896
15896
|
*
|
|
15897
15897
|
* Implementation lives in the server's `NetworkQualityService` (thin
|
|
15898
|
-
* wrapper over the shared `NetworkQualityTracker` from `@camstack/
|
|
15898
|
+
* wrapper over the shared `NetworkQualityTracker` from `@camstack/system`).
|
|
15899
15899
|
* The provider is registered from `trpc.router.ts` against the existing
|
|
15900
15900
|
* service instance — no addon owns this state.
|
|
15901
15901
|
*
|
|
@@ -22389,8 +22389,8 @@ function extractDirectiveBearer(event) {
|
|
|
22389
22389
|
* any Alexa directive — read, stream, or actuate all require device
|
|
22390
22390
|
* visibility.
|
|
22391
22391
|
*
|
|
22392
|
-
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/
|
|
22393
|
-
* (kept local because addons may not import from `@camstack/
|
|
22392
|
+
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/system`
|
|
22393
|
+
* (kept local because addons may not import from `@camstack/system`).
|
|
22394
22394
|
*/
|
|
22395
22395
|
function assertDeviceScope(scopes) {
|
|
22396
22396
|
if (!scopes.some((s) => s.type === "category" && s.target === "device" && s.access.includes("view"))) throw new Error("token lacks device scope");
|
|
@@ -22399,8 +22399,8 @@ function assertDeviceScope(scopes) {
|
|
|
22399
22399
|
* Guard a device directive against the caller token's scopes.
|
|
22400
22400
|
* `'view'` for read/discovery directives, `'create'` for control.
|
|
22401
22401
|
*
|
|
22402
|
-
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/
|
|
22403
|
-
* (kept local because addons may not import from `@camstack/
|
|
22402
|
+
* Mirrors the OR-semantics of `scopesAllowDeviceCap` from `@camstack/system`
|
|
22403
|
+
* (kept local because addons may not import from `@camstack/system`).
|
|
22404
22404
|
*/
|
|
22405
22405
|
function requireDeviceScope(scopes, access) {
|
|
22406
22406
|
if (!scopes.some((s) => s.type === "category" && s.target === "device" && s.access.includes(access))) throw new Error(`directive token not authorized for device ${access}`);
|
|
@@ -22605,7 +22605,7 @@ function pickHeader(headers, name) {
|
|
|
22605
22605
|
* Lambda once, regenerating invalidates the old value).
|
|
22606
22606
|
*
|
|
22607
22607
|
* Could be unified with the stream-broker primitives into a shared
|
|
22608
|
-
* `@camstack/
|
|
22608
|
+
* `@camstack/system` util — kept local for now to avoid a system-package rebuild
|
|
22609
22609
|
* during this batch (see the completion spec).
|
|
22610
22610
|
*/
|
|
22611
22611
|
/** Generate a fresh high-entropy opaque ingress token (256-bit, base64url). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"test:watch": "vitest"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@camstack/types": "
|
|
61
|
+
"@camstack/types": "*"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"zod": "^4.3.6"
|