@camstack/addon-export-alexa 1.2.14 → 1.2.16
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.
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
//#endregion
|
|
27
27
|
let node_crypto = require("node:crypto");
|
|
28
28
|
node_crypto = __toESM(node_crypto);
|
|
29
|
-
//#region ../types/dist/event-category-
|
|
29
|
+
//#region ../types/dist/event-category-Cv9dO26A.mjs
|
|
30
30
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
31
31
|
EventCategory["SystemBoot"] = "system.boot";
|
|
32
32
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -42,6 +42,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
42
42
|
*/
|
|
43
43
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
44
44
|
/**
|
|
45
|
+
* A newer addon or server-root package version was found by the
|
|
46
|
+
* authoritative registry check. Emitted once per
|
|
47
|
+
* `(target, packageName, currentVersion, latestVersion)` transition; repeated
|
|
48
|
+
* polling of the same result is deduplicated by the checker.
|
|
49
|
+
*/
|
|
50
|
+
EventCategory["UpdateAvailable"] = "update.available";
|
|
51
|
+
/**
|
|
45
52
|
* Readiness transition for a capability provider. Every producer emits
|
|
46
53
|
* this event on `onInitialize` completion, `onDestroy`, and
|
|
47
54
|
* `$node.reconnect`; every consumer that needs to gate on a cross-process
|
|
@@ -14055,8 +14062,35 @@ var NcDeliverySchema = _enum([
|
|
|
14055
14062
|
"immediate",
|
|
14056
14063
|
"track-end",
|
|
14057
14064
|
"device-event",
|
|
14058
|
-
"package-event"
|
|
14065
|
+
"package-event",
|
|
14066
|
+
"system-event"
|
|
14059
14067
|
]);
|
|
14068
|
+
/**
|
|
14069
|
+
* Stable Notification Center vocabulary over infrastructure/liveness events.
|
|
14070
|
+
* Bus categories are normalized into these intent-level kinds so rules do not
|
|
14071
|
+
* depend on a provider's raw event name or payload shape.
|
|
14072
|
+
*/
|
|
14073
|
+
var NcSystemEventKindSchema = _enum([
|
|
14074
|
+
"camera-online",
|
|
14075
|
+
"camera-offline",
|
|
14076
|
+
"stream-online",
|
|
14077
|
+
"stream-offline",
|
|
14078
|
+
"node-online",
|
|
14079
|
+
"node-offline",
|
|
14080
|
+
"addon-update-available",
|
|
14081
|
+
"server-update-available"
|
|
14082
|
+
]);
|
|
14083
|
+
/**
|
|
14084
|
+
* One coherent system-event condition. `kinds` is the required opt-in safety
|
|
14085
|
+
* gate; the remaining lists are optional narrowing filters relevant to the
|
|
14086
|
+
* selected kinds.
|
|
14087
|
+
*/
|
|
14088
|
+
var NcSystemEventConditionSchema = object({
|
|
14089
|
+
kinds: array(NcSystemEventKindSchema).min(1),
|
|
14090
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
14091
|
+
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14092
|
+
packageNames: array(string().min(1)).min(1).optional()
|
|
14093
|
+
});
|
|
14060
14094
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14061
14095
|
var NcScheduleSchema = object({
|
|
14062
14096
|
windows: array(object({
|
|
@@ -14361,6 +14395,8 @@ var NcConditionsSchema = object({
|
|
|
14361
14395
|
"picked-up",
|
|
14362
14396
|
"both"
|
|
14363
14397
|
]).optional(),
|
|
14398
|
+
/** Infrastructure/liveness/update event matcher (`system-event` delivery). */
|
|
14399
|
+
systemEvent: NcSystemEventConditionSchema.optional(),
|
|
14364
14400
|
/**
|
|
14365
14401
|
* PERSONAL-RULE custom zones (viewer-drawn). Inline normalized polygons
|
|
14366
14402
|
* (MaskShape vocabulary). A record passes when its bbox overlaps ANY
|
|
@@ -14580,7 +14616,8 @@ var NcTestResultSchema = object({
|
|
|
14580
14616
|
"object-event",
|
|
14581
14617
|
"track",
|
|
14582
14618
|
"device-event",
|
|
14583
|
-
"package-event"
|
|
14619
|
+
"package-event",
|
|
14620
|
+
"system-event"
|
|
14584
14621
|
]),
|
|
14585
14622
|
deviceId: number(),
|
|
14586
14623
|
timestamp: number(),
|
|
@@ -14602,7 +14639,8 @@ var NcConditionDescriptorSchema = object({
|
|
|
14602
14639
|
"schedule",
|
|
14603
14640
|
"device",
|
|
14604
14641
|
"package",
|
|
14605
|
-
"occupancy"
|
|
14642
|
+
"occupancy",
|
|
14643
|
+
"system"
|
|
14606
14644
|
]),
|
|
14607
14645
|
label: string(),
|
|
14608
14646
|
/** Editor widget the UI renders — never hardcode per-condition forms. */
|
|
@@ -14620,7 +14658,8 @@ var NcConditionDescriptorSchema = object({
|
|
|
14620
14658
|
"crossingSelect",
|
|
14621
14659
|
"polygonDraw",
|
|
14622
14660
|
"occupancy",
|
|
14623
|
-
"deviceState"
|
|
14661
|
+
"deviceState",
|
|
14662
|
+
"systemEvent"
|
|
14624
14663
|
]),
|
|
14625
14664
|
operator: _enum([
|
|
14626
14665
|
"in",
|
|
@@ -14679,7 +14718,8 @@ var NcHistoryRecordKindSchema = _enum([
|
|
|
14679
14718
|
"object-event",
|
|
14680
14719
|
"track-end",
|
|
14681
14720
|
"device-event",
|
|
14682
|
-
"package-event"
|
|
14721
|
+
"package-event",
|
|
14722
|
+
"system-event"
|
|
14683
14723
|
]);
|
|
14684
14724
|
/** Subject summary frozen on the row at fire time (survives rule/record edits). */
|
|
14685
14725
|
var NcHistorySubjectSchema = object({
|
|
@@ -14687,7 +14727,14 @@ var NcHistorySubjectSchema = object({
|
|
|
14687
14727
|
label: string().optional(),
|
|
14688
14728
|
confidence: number().optional(),
|
|
14689
14729
|
zones: array(string()),
|
|
14690
|
-
timestamp: number()
|
|
14730
|
+
timestamp: number(),
|
|
14731
|
+
systemEvent: object({
|
|
14732
|
+
kind: NcSystemEventKindSchema,
|
|
14733
|
+
subject: string(),
|
|
14734
|
+
title: string(),
|
|
14735
|
+
body: string(),
|
|
14736
|
+
data: record(string(), unknown())
|
|
14737
|
+
}).optional()
|
|
14691
14738
|
});
|
|
14692
14739
|
/**
|
|
14693
14740
|
* One delivery-history row. This is a read-only VIEW over the durable
|
|
@@ -18505,6 +18552,22 @@ var TerminalProfileInfoSchema = object({
|
|
|
18505
18552
|
label: string(),
|
|
18506
18553
|
description: string().optional()
|
|
18507
18554
|
});
|
|
18555
|
+
var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
|
|
18556
|
+
seq: number().int().positive(),
|
|
18557
|
+
kind: literal("data"),
|
|
18558
|
+
data: string()
|
|
18559
|
+
}), object({
|
|
18560
|
+
seq: number().int().positive(),
|
|
18561
|
+
kind: literal("exit"),
|
|
18562
|
+
exitCode: number().int(),
|
|
18563
|
+
signal: number().int().optional()
|
|
18564
|
+
})]);
|
|
18565
|
+
var TerminalOutputBatchSchema = object({
|
|
18566
|
+
cursor: number().int().nonnegative(),
|
|
18567
|
+
reset: boolean(),
|
|
18568
|
+
snapshot: string().optional(),
|
|
18569
|
+
events: array(TerminalOutputEventSchema).readonly()
|
|
18570
|
+
});
|
|
18508
18571
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
18509
18572
|
profileId: string(),
|
|
18510
18573
|
cols: number().int().positive(),
|
|
@@ -18519,6 +18582,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
18519
18582
|
}), _void(), {
|
|
18520
18583
|
kind: "mutation",
|
|
18521
18584
|
auth: "admin"
|
|
18585
|
+
}), method(object({
|
|
18586
|
+
sessionId: string(),
|
|
18587
|
+
afterSeq: number().int().nonnegative(),
|
|
18588
|
+
waitMs: number().int().min(0).max(2e3).default(0)
|
|
18589
|
+
}), TerminalOutputBatchSchema, {
|
|
18590
|
+
kind: "mutation",
|
|
18591
|
+
auth: "admin",
|
|
18592
|
+
timeoutMs: 15e3
|
|
18593
|
+
}), method(object({
|
|
18594
|
+
sessionId: string(),
|
|
18595
|
+
data: string().max(64 * 1024)
|
|
18596
|
+
}), _void(), {
|
|
18597
|
+
kind: "mutation",
|
|
18598
|
+
auth: "admin"
|
|
18522
18599
|
}), method(object({ sessionId: string() }), _void(), {
|
|
18523
18600
|
kind: "mutation",
|
|
18524
18601
|
auth: "admin"
|
|
@@ -29400,12 +29477,24 @@ Object.freeze({
|
|
|
29400
29477
|
addonId: null,
|
|
29401
29478
|
access: "create"
|
|
29402
29479
|
},
|
|
29480
|
+
"terminalSession.pullOutput": {
|
|
29481
|
+
capName: "terminal-session",
|
|
29482
|
+
capScope: "system",
|
|
29483
|
+
addonId: null,
|
|
29484
|
+
access: "create"
|
|
29485
|
+
},
|
|
29403
29486
|
"terminalSession.resize": {
|
|
29404
29487
|
capName: "terminal-session",
|
|
29405
29488
|
capScope: "system",
|
|
29406
29489
|
addonId: null,
|
|
29407
29490
|
access: "create"
|
|
29408
29491
|
},
|
|
29492
|
+
"terminalSession.writeInput": {
|
|
29493
|
+
capName: "terminal-session",
|
|
29494
|
+
capScope: "system",
|
|
29495
|
+
addonId: null,
|
|
29496
|
+
access: "create"
|
|
29497
|
+
},
|
|
29409
29498
|
"toast.onToast": {
|
|
29410
29499
|
capName: "toast",
|
|
29411
29500
|
capScope: "system",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as crypto$1 from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-Cv9dO26A.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -15,6 +15,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
15
15
|
*/
|
|
16
16
|
EventCategory["SystemRestartCompleted"] = "system.restart-completed";
|
|
17
17
|
/**
|
|
18
|
+
* A newer addon or server-root package version was found by the
|
|
19
|
+
* authoritative registry check. Emitted once per
|
|
20
|
+
* `(target, packageName, currentVersion, latestVersion)` transition; repeated
|
|
21
|
+
* polling of the same result is deduplicated by the checker.
|
|
22
|
+
*/
|
|
23
|
+
EventCategory["UpdateAvailable"] = "update.available";
|
|
24
|
+
/**
|
|
18
25
|
* Readiness transition for a capability provider. Every producer emits
|
|
19
26
|
* this event on `onInitialize` completion, `onDestroy`, and
|
|
20
27
|
* `$node.reconnect`; every consumer that needs to gate on a cross-process
|
|
@@ -14028,8 +14035,35 @@ var NcDeliverySchema = _enum([
|
|
|
14028
14035
|
"immediate",
|
|
14029
14036
|
"track-end",
|
|
14030
14037
|
"device-event",
|
|
14031
|
-
"package-event"
|
|
14038
|
+
"package-event",
|
|
14039
|
+
"system-event"
|
|
14032
14040
|
]);
|
|
14041
|
+
/**
|
|
14042
|
+
* Stable Notification Center vocabulary over infrastructure/liveness events.
|
|
14043
|
+
* Bus categories are normalized into these intent-level kinds so rules do not
|
|
14044
|
+
* depend on a provider's raw event name or payload shape.
|
|
14045
|
+
*/
|
|
14046
|
+
var NcSystemEventKindSchema = _enum([
|
|
14047
|
+
"camera-online",
|
|
14048
|
+
"camera-offline",
|
|
14049
|
+
"stream-online",
|
|
14050
|
+
"stream-offline",
|
|
14051
|
+
"node-online",
|
|
14052
|
+
"node-offline",
|
|
14053
|
+
"addon-update-available",
|
|
14054
|
+
"server-update-available"
|
|
14055
|
+
]);
|
|
14056
|
+
/**
|
|
14057
|
+
* One coherent system-event condition. `kinds` is the required opt-in safety
|
|
14058
|
+
* gate; the remaining lists are optional narrowing filters relevant to the
|
|
14059
|
+
* selected kinds.
|
|
14060
|
+
*/
|
|
14061
|
+
var NcSystemEventConditionSchema = object({
|
|
14062
|
+
kinds: array(NcSystemEventKindSchema).min(1),
|
|
14063
|
+
deviceIds: array(number().int()).min(1).optional(),
|
|
14064
|
+
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14065
|
+
packageNames: array(string().min(1)).min(1).optional()
|
|
14066
|
+
});
|
|
14033
14067
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14034
14068
|
var NcScheduleSchema = object({
|
|
14035
14069
|
windows: array(object({
|
|
@@ -14334,6 +14368,8 @@ var NcConditionsSchema = object({
|
|
|
14334
14368
|
"picked-up",
|
|
14335
14369
|
"both"
|
|
14336
14370
|
]).optional(),
|
|
14371
|
+
/** Infrastructure/liveness/update event matcher (`system-event` delivery). */
|
|
14372
|
+
systemEvent: NcSystemEventConditionSchema.optional(),
|
|
14337
14373
|
/**
|
|
14338
14374
|
* PERSONAL-RULE custom zones (viewer-drawn). Inline normalized polygons
|
|
14339
14375
|
* (MaskShape vocabulary). A record passes when its bbox overlaps ANY
|
|
@@ -14553,7 +14589,8 @@ var NcTestResultSchema = object({
|
|
|
14553
14589
|
"object-event",
|
|
14554
14590
|
"track",
|
|
14555
14591
|
"device-event",
|
|
14556
|
-
"package-event"
|
|
14592
|
+
"package-event",
|
|
14593
|
+
"system-event"
|
|
14557
14594
|
]),
|
|
14558
14595
|
deviceId: number(),
|
|
14559
14596
|
timestamp: number(),
|
|
@@ -14575,7 +14612,8 @@ var NcConditionDescriptorSchema = object({
|
|
|
14575
14612
|
"schedule",
|
|
14576
14613
|
"device",
|
|
14577
14614
|
"package",
|
|
14578
|
-
"occupancy"
|
|
14615
|
+
"occupancy",
|
|
14616
|
+
"system"
|
|
14579
14617
|
]),
|
|
14580
14618
|
label: string(),
|
|
14581
14619
|
/** Editor widget the UI renders — never hardcode per-condition forms. */
|
|
@@ -14593,7 +14631,8 @@ var NcConditionDescriptorSchema = object({
|
|
|
14593
14631
|
"crossingSelect",
|
|
14594
14632
|
"polygonDraw",
|
|
14595
14633
|
"occupancy",
|
|
14596
|
-
"deviceState"
|
|
14634
|
+
"deviceState",
|
|
14635
|
+
"systemEvent"
|
|
14597
14636
|
]),
|
|
14598
14637
|
operator: _enum([
|
|
14599
14638
|
"in",
|
|
@@ -14652,7 +14691,8 @@ var NcHistoryRecordKindSchema = _enum([
|
|
|
14652
14691
|
"object-event",
|
|
14653
14692
|
"track-end",
|
|
14654
14693
|
"device-event",
|
|
14655
|
-
"package-event"
|
|
14694
|
+
"package-event",
|
|
14695
|
+
"system-event"
|
|
14656
14696
|
]);
|
|
14657
14697
|
/** Subject summary frozen on the row at fire time (survives rule/record edits). */
|
|
14658
14698
|
var NcHistorySubjectSchema = object({
|
|
@@ -14660,7 +14700,14 @@ var NcHistorySubjectSchema = object({
|
|
|
14660
14700
|
label: string().optional(),
|
|
14661
14701
|
confidence: number().optional(),
|
|
14662
14702
|
zones: array(string()),
|
|
14663
|
-
timestamp: number()
|
|
14703
|
+
timestamp: number(),
|
|
14704
|
+
systemEvent: object({
|
|
14705
|
+
kind: NcSystemEventKindSchema,
|
|
14706
|
+
subject: string(),
|
|
14707
|
+
title: string(),
|
|
14708
|
+
body: string(),
|
|
14709
|
+
data: record(string(), unknown())
|
|
14710
|
+
}).optional()
|
|
14664
14711
|
});
|
|
14665
14712
|
/**
|
|
14666
14713
|
* One delivery-history row. This is a read-only VIEW over the durable
|
|
@@ -18478,6 +18525,22 @@ var TerminalProfileInfoSchema = object({
|
|
|
18478
18525
|
label: string(),
|
|
18479
18526
|
description: string().optional()
|
|
18480
18527
|
});
|
|
18528
|
+
var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
|
|
18529
|
+
seq: number().int().positive(),
|
|
18530
|
+
kind: literal("data"),
|
|
18531
|
+
data: string()
|
|
18532
|
+
}), object({
|
|
18533
|
+
seq: number().int().positive(),
|
|
18534
|
+
kind: literal("exit"),
|
|
18535
|
+
exitCode: number().int(),
|
|
18536
|
+
signal: number().int().optional()
|
|
18537
|
+
})]);
|
|
18538
|
+
var TerminalOutputBatchSchema = object({
|
|
18539
|
+
cursor: number().int().nonnegative(),
|
|
18540
|
+
reset: boolean(),
|
|
18541
|
+
snapshot: string().optional(),
|
|
18542
|
+
events: array(TerminalOutputEventSchema).readonly()
|
|
18543
|
+
});
|
|
18481
18544
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
18482
18545
|
profileId: string(),
|
|
18483
18546
|
cols: number().int().positive(),
|
|
@@ -18492,6 +18555,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
18492
18555
|
}), _void(), {
|
|
18493
18556
|
kind: "mutation",
|
|
18494
18557
|
auth: "admin"
|
|
18558
|
+
}), method(object({
|
|
18559
|
+
sessionId: string(),
|
|
18560
|
+
afterSeq: number().int().nonnegative(),
|
|
18561
|
+
waitMs: number().int().min(0).max(2e3).default(0)
|
|
18562
|
+
}), TerminalOutputBatchSchema, {
|
|
18563
|
+
kind: "mutation",
|
|
18564
|
+
auth: "admin",
|
|
18565
|
+
timeoutMs: 15e3
|
|
18566
|
+
}), method(object({
|
|
18567
|
+
sessionId: string(),
|
|
18568
|
+
data: string().max(64 * 1024)
|
|
18569
|
+
}), _void(), {
|
|
18570
|
+
kind: "mutation",
|
|
18571
|
+
auth: "admin"
|
|
18495
18572
|
}), method(object({ sessionId: string() }), _void(), {
|
|
18496
18573
|
kind: "mutation",
|
|
18497
18574
|
auth: "admin"
|
|
@@ -29373,12 +29450,24 @@ Object.freeze({
|
|
|
29373
29450
|
addonId: null,
|
|
29374
29451
|
access: "create"
|
|
29375
29452
|
},
|
|
29453
|
+
"terminalSession.pullOutput": {
|
|
29454
|
+
capName: "terminal-session",
|
|
29455
|
+
capScope: "system",
|
|
29456
|
+
addonId: null,
|
|
29457
|
+
access: "create"
|
|
29458
|
+
},
|
|
29376
29459
|
"terminalSession.resize": {
|
|
29377
29460
|
capName: "terminal-session",
|
|
29378
29461
|
capScope: "system",
|
|
29379
29462
|
addonId: null,
|
|
29380
29463
|
access: "create"
|
|
29381
29464
|
},
|
|
29465
|
+
"terminalSession.writeInput": {
|
|
29466
|
+
capName: "terminal-session",
|
|
29467
|
+
capScope: "system",
|
|
29468
|
+
addonId: null,
|
|
29469
|
+
access: "create"
|
|
29470
|
+
},
|
|
29382
29471
|
"toast.onToast": {
|
|
29383
29472
|
capName: "toast",
|
|
29384
29473
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
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",
|