@camstack/server 1.2.889 → 1.2.891
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/CHANGELOG.md +13 -0
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +547 -487
- package/package.json +14 -10
- package/system/assets/loki-logging/icon.png +0 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +112 -15
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +112 -15
- package/system/dist/builtins/core-blocks/tags-service.d.ts +20 -3
- package/system/dist/builtins/core-blocks/tags-wiring.d.ts +15 -2
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +12 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +12 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-DFKcC7u_.js → capture-engine-DXz37Mjg.js} +1 -1
- package/system/dist/{capture-engine-BHLvY_so.mjs → capture-engine-nmelnj-Y.mjs} +1 -1
- package/system/dist/{composition-sources-CYqL1SdI.js → composition-sources-BLn3cU74.js} +1 -1
- package/system/dist/{composition-sources-BcZ0PuBm.mjs → composition-sources-uphZtYtN.mjs} +1 -1
- package/system/dist/{constants-dh68e2ow.js → constants-BAaGwvKn.js} +1 -1
- package/system/dist/{constants-DCE0x9nO.mjs → constants-DWU46D02.mjs} +1 -1
- package/system/dist/{device-ca-CcrlsWuX.mjs → device-ca-CK6mLB2w.mjs} +1 -1
- package/system/dist/{device-ca-C8sDWceS.js → device-ca-jbH_rqZh.js} +1 -1
- package/system/dist/{dist-DgxQ6Idk.mjs → dist-Dgq9nuvh.mjs} +408 -18
- package/system/dist/{dist-FcwhAIev.js → dist-m5beNMze.js} +413 -17
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DfjMN5C2.js → hub-identity-CKCA89XP.js} +1 -1
- package/system/dist/{hub-identity-D3tZfKDY.mjs → hub-identity-DlBBoHJC.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-CyPgxnZJ.mjs → hub-mdns-ciao-B8uFW-RG.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-Do2L9s3a.js → hub-mdns-ciao-CqcCGPdi.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-CT8Fnd_j.js → legacy-integration-rows-door-Co0gj1Lm.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-C7uH7SxY.mjs → legacy-integration-rows-door-HI4nmSe_.mjs} +1 -1
- package/system/dist/{rename-composition-block-PCs14KlF.mjs → rename-composition-block-BthBMrXA.mjs} +1 -1
- package/system/dist/{rename-composition-block-B7JR3e61.js → rename-composition-block-UeVUYCwx.js} +1 -1
- package/system/dist/{restore-archive-CpDjTbxg.js → restore-archive-CJLsfBwK.js} +1 -1
- package/system/dist/{restore-archive-h6SFclX8.mjs → restore-archive-P-ICnU58.mjs} +1 -1
- package/system/dist/{wal-maintenance-BQa-P90H.js → wal-maintenance-CUtwx-2Z.js} +0 -0
- package/system/dist/{wal-maintenance-B7C7iaqf.mjs → wal-maintenance-qWjb7_f2.mjs} +0 -0
- package/system/package.json +2 -2
- package/system/assets/loki-logging/icon.svg +0 -7
|
@@ -1274,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1276
1276
|
//#endregion
|
|
1277
|
-
//#region ../types/dist/sleep-
|
|
1277
|
+
//#region ../types/dist/sleep-Ch7Q7UtE.mjs
|
|
1278
1278
|
/**
|
|
1279
1279
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1280
1280
|
* window to float samples (D455).
|
|
@@ -2724,7 +2724,7 @@ var RecordIntegrationInstances = class {
|
|
|
2724
2724
|
kindOfBody(body) {
|
|
2725
2725
|
if (this.hooks.kindOf !== void 0) {
|
|
2726
2726
|
const id = this.hooks.kindOf(body);
|
|
2727
|
-
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare
|
|
2727
|
+
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare`);
|
|
2728
2728
|
return id;
|
|
2729
2729
|
}
|
|
2730
2730
|
const only = this.hooks.description.kinds[0];
|
|
@@ -2754,8 +2754,15 @@ var RecordIntegrationInstances = class {
|
|
|
2754
2754
|
field: link.field,
|
|
2755
2755
|
to: link.to
|
|
2756
2756
|
})) };
|
|
2757
|
+
const wired = this.hooks.test !== void 0;
|
|
2758
|
+
const stated = this.hooks.description;
|
|
2757
2759
|
return {
|
|
2758
|
-
...
|
|
2760
|
+
...stated,
|
|
2761
|
+
...stated.canTest && !wired ? { canTest: false } : {},
|
|
2762
|
+
...stated.kinds === void 0 ? {} : { kinds: stated.kinds.map((kind) => kind.canTest === true && !wired ? {
|
|
2763
|
+
...kind,
|
|
2764
|
+
canTest: false
|
|
2765
|
+
} : kind) },
|
|
2759
2766
|
...links,
|
|
2760
2767
|
...this.hooks.mintId === void 0 ? {} : { mintsId: true }
|
|
2761
2768
|
};
|
|
@@ -5691,6 +5698,20 @@ var RuleFireOriginSchema = zod.z.object({
|
|
|
5691
5698
|
cameraId: zod.z.number().int()
|
|
5692
5699
|
})).optional()
|
|
5693
5700
|
});
|
|
5701
|
+
/** The ecosystems an exporter speaks for. */
|
|
5702
|
+
var OnBehalfSourceSchema = zod.z.enum([
|
|
5703
|
+
"homeassistant",
|
|
5704
|
+
"homekit",
|
|
5705
|
+
"alexa",
|
|
5706
|
+
"google",
|
|
5707
|
+
"matter"
|
|
5708
|
+
]);
|
|
5709
|
+
/** WHO an exporter acts for: the ecosystem and the principal it reported, never invented. */
|
|
5710
|
+
var OnBehalfSchema = zod.z.object({
|
|
5711
|
+
source: OnBehalfSourceSchema,
|
|
5712
|
+
principalId: zod.z.string(),
|
|
5713
|
+
principalName: zod.z.string().optional()
|
|
5714
|
+
});
|
|
5694
5715
|
zod.z.discriminatedUnion("kind", [
|
|
5695
5716
|
zod.z.object({
|
|
5696
5717
|
kind: zod.z.literal("action"),
|
|
@@ -5707,7 +5728,8 @@ zod.z.discriminatedUnion("kind", [
|
|
|
5707
5728
|
zod.z.object({
|
|
5708
5729
|
kind: zod.z.literal("rule"),
|
|
5709
5730
|
fire: RuleFireOriginSchema
|
|
5710
|
-
})
|
|
5731
|
+
}),
|
|
5732
|
+
OnBehalfSchema.extend({ kind: zod.z.literal("on-behalf") })
|
|
5711
5733
|
]);
|
|
5712
5734
|
/** The rule fire a claim carries, if it carries one. */
|
|
5713
5735
|
function ruleFireOfClaim(claim) {
|
|
@@ -5749,7 +5771,9 @@ var TransitionActorSchema = zod.z.discriminatedUnion("kind", [
|
|
|
5749
5771
|
zod.z.object({
|
|
5750
5772
|
kind: zod.z.literal("addon"),
|
|
5751
5773
|
addonId: zod.z.string(),
|
|
5752
|
-
nodeId: zod.z.string().optional()
|
|
5774
|
+
nodeId: zod.z.string().optional(),
|
|
5775
|
+
/** The ecosystem principal an exporter relayed, when it reported one. */
|
|
5776
|
+
onBehalf: OnBehalfSchema.optional()
|
|
5753
5777
|
}),
|
|
5754
5778
|
zod.z.object({
|
|
5755
5779
|
kind: zod.z.literal("action"),
|
|
@@ -9571,6 +9595,62 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
9571
9595
|
}],
|
|
9572
9596
|
events: { onMotionTriggerChanged: { notOperatorFacing: "the `enabled` state trigger phrases both edges of this change" } }
|
|
9573
9597
|
},
|
|
9598
|
+
"siren": {
|
|
9599
|
+
scope: "device",
|
|
9600
|
+
noun: {
|
|
9601
|
+
en: "Siren",
|
|
9602
|
+
it: "Sirena"
|
|
9603
|
+
},
|
|
9604
|
+
actions: [{
|
|
9605
|
+
id: "siren.trigger",
|
|
9606
|
+
method: "trigger",
|
|
9607
|
+
label: {
|
|
9608
|
+
en: "Sound the siren",
|
|
9609
|
+
it: "Fai suonare la sirena"
|
|
9610
|
+
},
|
|
9611
|
+
phrase: {
|
|
9612
|
+
en: "Sound {device}",
|
|
9613
|
+
it: "Fai suonare {device}"
|
|
9614
|
+
},
|
|
9615
|
+
icon: "siren",
|
|
9616
|
+
args: {}
|
|
9617
|
+
}, {
|
|
9618
|
+
id: "siren.stop",
|
|
9619
|
+
method: "stop",
|
|
9620
|
+
label: {
|
|
9621
|
+
en: "Silence the siren",
|
|
9622
|
+
it: "Zittisci la sirena"
|
|
9623
|
+
},
|
|
9624
|
+
phrase: {
|
|
9625
|
+
en: "Silence {device}",
|
|
9626
|
+
it: "Zittisci {device}"
|
|
9627
|
+
},
|
|
9628
|
+
icon: "siren",
|
|
9629
|
+
args: {},
|
|
9630
|
+
effect: {
|
|
9631
|
+
field: "active",
|
|
9632
|
+
value: false
|
|
9633
|
+
}
|
|
9634
|
+
}],
|
|
9635
|
+
state: [{
|
|
9636
|
+
kind: "boolean",
|
|
9637
|
+
field: "active",
|
|
9638
|
+
label: {
|
|
9639
|
+
en: "Siren sounding",
|
|
9640
|
+
it: "Sirena in funzione"
|
|
9641
|
+
},
|
|
9642
|
+
whenTrue: {
|
|
9643
|
+
en: "When {device} starts sounding",
|
|
9644
|
+
it: "Quando {device} inizia a suonare"
|
|
9645
|
+
},
|
|
9646
|
+
whenFalse: {
|
|
9647
|
+
en: "When {device} falls silent",
|
|
9648
|
+
it: "Quando {device} smette di suonare"
|
|
9649
|
+
},
|
|
9650
|
+
icon: "siren"
|
|
9651
|
+
}],
|
|
9652
|
+
events: { onSirenChanged: { notOperatorFacing: "the `active` state trigger phrases both edges of this change" } }
|
|
9653
|
+
},
|
|
9574
9654
|
"vacuum-control": {
|
|
9575
9655
|
scope: "device",
|
|
9576
9656
|
noun: {
|
|
@@ -16311,6 +16391,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
16311
16391
|
"script-runner",
|
|
16312
16392
|
"server-management",
|
|
16313
16393
|
"settings-store",
|
|
16394
|
+
"siren",
|
|
16314
16395
|
"smoke",
|
|
16315
16396
|
"smtp-provider",
|
|
16316
16397
|
"snapshot",
|
|
@@ -18035,6 +18116,24 @@ Object.freeze({
|
|
|
18035
18116
|
"valueType": "string"
|
|
18036
18117
|
}
|
|
18037
18118
|
],
|
|
18119
|
+
"siren": [
|
|
18120
|
+
{
|
|
18121
|
+
"path": "active",
|
|
18122
|
+
"valueType": "boolean"
|
|
18123
|
+
},
|
|
18124
|
+
{
|
|
18125
|
+
"path": "activeUntil",
|
|
18126
|
+
"valueType": "number"
|
|
18127
|
+
},
|
|
18128
|
+
{
|
|
18129
|
+
"path": "durationSeconds",
|
|
18130
|
+
"valueType": "number"
|
|
18131
|
+
},
|
|
18132
|
+
{
|
|
18133
|
+
"path": "lastTriggeredAt",
|
|
18134
|
+
"valueType": "number"
|
|
18135
|
+
}
|
|
18136
|
+
],
|
|
18038
18137
|
"smoke": [{
|
|
18039
18138
|
"path": "detected",
|
|
18040
18139
|
"valueType": "boolean"
|
|
@@ -65684,7 +65783,7 @@ function groupTemplate(id) {
|
|
|
65684
65783
|
}
|
|
65685
65784
|
/**
|
|
65686
65785
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
65687
|
-
* 46 caps with series (124 series),
|
|
65786
|
+
* 46 caps with series (124 series), 39 caps answered `'none'`.
|
|
65688
65787
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
65689
65788
|
*/
|
|
65690
65789
|
var HISTORY_CATALOG = {
|
|
@@ -93940,7 +94039,32 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
93940
94039
|
* authored before this field meant. An editor turns it off by writing
|
|
93941
94040
|
* `false`, so it needs no `clear` key.
|
|
93942
94041
|
*/
|
|
93943
|
-
askVerdict: zod.z.boolean().optional()
|
|
94042
|
+
askVerdict: zod.z.boolean().optional(),
|
|
94043
|
+
/**
|
|
94044
|
+
* Operator tags (D1054), kept on the rule like a core block's. Absent = no
|
|
94045
|
+
* tags. `.optional()`, never `.default()`: a partial `updateRule` patch that
|
|
94046
|
+
* does not name `tags` keeps the stored ones (the store merges), and an
|
|
94047
|
+
* editor empties them by sending `[]` (the store drops an empty list).
|
|
94048
|
+
* Renamed or removed fleet-wide only through the `tags` cap, which writes
|
|
94049
|
+
* here with `setRuleTags`.
|
|
94050
|
+
*/
|
|
94051
|
+
tags: TagsFieldSchema.optional()
|
|
94052
|
+
});
|
|
94053
|
+
/**
|
|
94054
|
+
* The rule kinds that carry tags (D1054) — each one its own store. Every kind
|
|
94055
|
+
* labels its rules the same way; this names which store a tag write goes to.
|
|
94056
|
+
*/
|
|
94057
|
+
var NcTaggedRuleKindSchema = zod.z.enum([
|
|
94058
|
+
"event",
|
|
94059
|
+
"summary",
|
|
94060
|
+
"timelapse",
|
|
94061
|
+
"calendar-events"
|
|
94062
|
+
]);
|
|
94063
|
+
/** One rule's tags, as the `tags` cap reads them across every kind. */
|
|
94064
|
+
var NcRuleTagsEntrySchema = zod.z.object({
|
|
94065
|
+
kind: NcTaggedRuleKindSchema,
|
|
94066
|
+
ruleId: zod.z.string(),
|
|
94067
|
+
tags: zod.z.array(zod.z.string())
|
|
93944
94068
|
});
|
|
93945
94069
|
/**
|
|
93946
94070
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -94990,6 +95114,29 @@ var notificationRulesCapability = {
|
|
|
94990
95114
|
auth: "admin"
|
|
94991
95115
|
}),
|
|
94992
95116
|
/**
|
|
95117
|
+
* Every rule of every kind with its tags (D1054) — event rules, summaries,
|
|
95118
|
+
* timelapses and calendar-events rules. The `tags` cap counts and rewrites
|
|
95119
|
+
* from this one read; a rule without tags is listed with `[]`.
|
|
95120
|
+
*/
|
|
95121
|
+
listRuleTags: method(zod.z.object({}), zod.z.object({ rules: zod.z.array(NcRuleTagsEntrySchema) }), {
|
|
95122
|
+
kind: "query",
|
|
95123
|
+
auth: "admin"
|
|
95124
|
+
}),
|
|
95125
|
+
/**
|
|
95126
|
+
* Replace ONE rule's tags (D1054) and nothing else — the `tags` cap's rename
|
|
95127
|
+
* and remove write through this. `kind` names the store the rule lives in.
|
|
95128
|
+
* Normalised on write (trimmed, deduplicated case-insensitively); `[]`
|
|
95129
|
+
* clears them.
|
|
95130
|
+
*/
|
|
95131
|
+
setRuleTags: method(zod.z.object({
|
|
95132
|
+
kind: NcTaggedRuleKindSchema,
|
|
95133
|
+
ruleId: zod.z.string(),
|
|
95134
|
+
tags: TagsFieldSchema
|
|
95135
|
+
}), zod.z.object({ success: zod.z.literal(true) }), {
|
|
95136
|
+
kind: "mutation",
|
|
95137
|
+
auth: "admin"
|
|
95138
|
+
}),
|
|
95139
|
+
/**
|
|
94993
95140
|
* WHAT THE RULES ACTUALLY ASK the stream broker to retain, per camera.
|
|
94994
95141
|
*
|
|
94995
95142
|
* The notification centre owns the rules, so it is the only thing that can
|
|
@@ -104815,6 +104962,150 @@ var serverManagementCapability = {
|
|
|
104815
104962
|
vocabulary: { notOperatorFacing: NOT_A_DEVICE.CLUSTER }
|
|
104816
104963
|
};
|
|
104817
104964
|
/**
|
|
104965
|
+
* Timed siren: trigger the siren for a duration and know until when it sounds.
|
|
104966
|
+
*
|
|
104967
|
+
* The plain on/off `switch` of a siren stays as it is (HomeKit / Alexa see a
|
|
104968
|
+
* switch); this cap adds the part a switch cannot say — HOW LONG, and the
|
|
104969
|
+
* moment the siren is expected to fall silent (`activeUntil`, epoch ms), so a
|
|
104970
|
+
* UI can show the activation with a countdown.
|
|
104971
|
+
*
|
|
104972
|
+
* The allowed durations are never hardcoded: `getOptions` answers what the
|
|
104973
|
+
* CAMERA reports (a discrete list or `{min,max,step}`), the default, and the
|
|
104974
|
+
* unit truth — a camera that counts plays rather than seconds says so, with the
|
|
104975
|
+
* seconds-per-play factor used to convert, and whether that factor was read
|
|
104976
|
+
* from the camera or is an estimate.
|
|
104977
|
+
*/
|
|
104978
|
+
/** What the camera counts natively. */
|
|
104979
|
+
var SirenDurationUnit = {
|
|
104980
|
+
Seconds: "seconds",
|
|
104981
|
+
Plays: "plays"
|
|
104982
|
+
};
|
|
104983
|
+
/** Where the numbers of an options answer come from. */
|
|
104984
|
+
var SirenOptionsSource = {
|
|
104985
|
+
/** Read from the camera by this fetch. */
|
|
104986
|
+
Camera: "camera",
|
|
104987
|
+
/** The camera did not answer or does not advertise it; a documented fallback. */
|
|
104988
|
+
Fallback: "fallback"
|
|
104989
|
+
};
|
|
104990
|
+
var SirenDurationRangeSchema = zod.z.object({
|
|
104991
|
+
min: zod.z.number().positive(),
|
|
104992
|
+
max: zod.z.number().positive(),
|
|
104993
|
+
step: zod.z.number().positive()
|
|
104994
|
+
});
|
|
104995
|
+
var SirenOptionsSchema = zod.z.object({
|
|
104996
|
+
/** Discrete durations in seconds the operator may pick; `null` when the camera gives a range. */
|
|
104997
|
+
allowedSeconds: zod.z.array(zod.z.number().positive()).nullable(),
|
|
104998
|
+
/** Continuous range in seconds; `null` when the camera gives a discrete list. */
|
|
104999
|
+
rangeSeconds: SirenDurationRangeSchema.nullable(),
|
|
105000
|
+
/** The camera's default duration, seconds. */
|
|
105001
|
+
defaultSeconds: zod.z.number().positive(),
|
|
105002
|
+
/** What the camera counts natively. */
|
|
105003
|
+
unit: zod.z.enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
|
|
105004
|
+
/** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
|
|
105005
|
+
secondsPerPlay: zod.z.number().positive().nullable(),
|
|
105006
|
+
/** `camera` when the values were read from it, `fallback` when the camera could not say. */
|
|
105007
|
+
source: zod.z.enum([SirenOptionsSource.Camera, SirenOptionsSource.Fallback]),
|
|
105008
|
+
/** Ms epoch of the read that produced this answer. */
|
|
105009
|
+
fetchedAt: zod.z.number()
|
|
105010
|
+
});
|
|
105011
|
+
var SirenStatusSchema = zod.z.object({
|
|
105012
|
+
/** True while the siren is sounding by a timed trigger or switched on. */
|
|
105013
|
+
active: zod.z.boolean(),
|
|
105014
|
+
/** Ms epoch the siren is expected to fall silent; `null` when not active or open-ended. */
|
|
105015
|
+
activeUntil: zod.z.number().nullable(),
|
|
105016
|
+
/** Duration of the current / last activation, seconds; `null` when none yet. */
|
|
105017
|
+
durationSeconds: zod.z.number().nullable(),
|
|
105018
|
+
/** Ms epoch of the last trigger (0 = never). */
|
|
105019
|
+
lastTriggeredAt: zod.z.number()
|
|
105020
|
+
});
|
|
105021
|
+
var SirenRuntimeStateSchema = SirenStatusSchema.extend({
|
|
105022
|
+
/** Ms epoch of the last successful camera read of the options (0 = never). */
|
|
105023
|
+
lastFetchedAt: zod.z.number() });
|
|
105024
|
+
var sirenCapability = {
|
|
105025
|
+
name: "siren",
|
|
105026
|
+
scope: "device",
|
|
105027
|
+
deviceNative: true,
|
|
105028
|
+
mode: "singleton",
|
|
105029
|
+
deviceTypes: [DeviceType.Siren],
|
|
105030
|
+
methods: {
|
|
105031
|
+
/** The durations the camera allows, read from the camera. */
|
|
105032
|
+
getOptions: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenOptionsSchema, {
|
|
105033
|
+
kind: "query",
|
|
105034
|
+
auth: "protected"
|
|
105035
|
+
}),
|
|
105036
|
+
/**
|
|
105037
|
+
* Sound the siren. Without `durationSeconds` the camera default applies.
|
|
105038
|
+
* Answers the state at the moment of the trigger (`activeUntil` included).
|
|
105039
|
+
*/
|
|
105040
|
+
trigger: method(zod.z.object({
|
|
105041
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
105042
|
+
durationSeconds: zod.z.number().positive().optional()
|
|
105043
|
+
}), SirenStatusSchema, {
|
|
105044
|
+
kind: "mutation",
|
|
105045
|
+
auth: "protected",
|
|
105046
|
+
actions: [{
|
|
105047
|
+
id: "siren.trigger",
|
|
105048
|
+
label: t("Sound the siren", "Fai suonare la sirena"),
|
|
105049
|
+
phrase: t("Sound {device}", "Fai suonare {device}"),
|
|
105050
|
+
icon: "siren",
|
|
105051
|
+
args: {}
|
|
105052
|
+
}]
|
|
105053
|
+
}),
|
|
105054
|
+
/** Silence the siren now. */
|
|
105055
|
+
stop: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenStatusSchema, {
|
|
105056
|
+
kind: "mutation",
|
|
105057
|
+
auth: "protected",
|
|
105058
|
+
actions: [{
|
|
105059
|
+
id: "siren.stop",
|
|
105060
|
+
label: t("Silence the siren", "Zittisci la sirena"),
|
|
105061
|
+
phrase: t("Silence {device}", "Zittisci {device}"),
|
|
105062
|
+
icon: "siren",
|
|
105063
|
+
effect: {
|
|
105064
|
+
field: "active",
|
|
105065
|
+
value: false
|
|
105066
|
+
},
|
|
105067
|
+
args: {}
|
|
105068
|
+
}]
|
|
105069
|
+
})
|
|
105070
|
+
},
|
|
105071
|
+
events: { onSirenChanged: {
|
|
105072
|
+
data: zod.z.object({
|
|
105073
|
+
deviceId: zod.z.number(),
|
|
105074
|
+
active: zod.z.boolean(),
|
|
105075
|
+
activeUntil: zod.z.number().nullable()
|
|
105076
|
+
}),
|
|
105077
|
+
notOperatorFacing: "the `active` state trigger phrases both edges of this change"
|
|
105078
|
+
} },
|
|
105079
|
+
status: {
|
|
105080
|
+
schema: SirenStatusSchema,
|
|
105081
|
+
kind: "command-driven"
|
|
105082
|
+
},
|
|
105083
|
+
runtimeState: SirenRuntimeStateSchema,
|
|
105084
|
+
/**
|
|
105085
|
+
* Runtime-state durability: **session** — a siren activation is a moment, not a fact to restore after a restart.
|
|
105086
|
+
*
|
|
105087
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
105088
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
105089
|
+
*/
|
|
105090
|
+
durability: "session",
|
|
105091
|
+
/**
|
|
105092
|
+
* History (D850): none — an activation is already recorded by the switch / alarm events.
|
|
105093
|
+
*/
|
|
105094
|
+
history: "none",
|
|
105095
|
+
vocabulary: {
|
|
105096
|
+
noun: t("Siren", "Sirena"),
|
|
105097
|
+
order: 1170,
|
|
105098
|
+
state: [{
|
|
105099
|
+
kind: "boolean",
|
|
105100
|
+
field: "active",
|
|
105101
|
+
label: t("Siren sounding", "Sirena in funzione"),
|
|
105102
|
+
whenTrue: t("When {device} starts sounding", "Quando {device} inizia a suonare"),
|
|
105103
|
+
whenFalse: t("When {device} falls silent", "Quando {device} smette di suonare"),
|
|
105104
|
+
icon: "siren"
|
|
105105
|
+
}]
|
|
105106
|
+
}
|
|
105107
|
+
};
|
|
105108
|
+
/**
|
|
104818
105109
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
104819
105110
|
* timestamp of the last transition. Drives Home Assistant
|
|
104820
105111
|
* `binary_sensor` entries with `device_class: smoke`.
|
|
@@ -107311,10 +107602,11 @@ var systemCapability = {
|
|
|
107311
107602
|
/**
|
|
107312
107603
|
* tags — the registry of tag STYLES and the one place that renames or removes a
|
|
107313
107604
|
* tag everywhere (D1054). A tag itself lives in the `tags` array of the record it
|
|
107314
|
-
* labels (a core block, a scheduler, a template, an action, a device
|
|
107605
|
+
* labels (a core block, a scheduler, a template, an action, a device, a
|
|
107606
|
+
* notification rule); only its
|
|
107315
107607
|
* colour token and icon are registered here. Provided by the core-blocks builtin,
|
|
107316
|
-
* the one place that knows every owner kind; devices
|
|
107317
|
-
* `deviceManager` over `ctx.api`.
|
|
107608
|
+
* the one place that knows every owner kind; devices and notification rules
|
|
107609
|
+
* are reached through `deviceManager` / `notificationRules` over `ctx.api`.
|
|
107318
107610
|
*
|
|
107319
107611
|
* Tags compare trimmed and case-insensitively. `list` is the union of styled tags
|
|
107320
107612
|
* and tags in use; a tag with no style answers a colour derived from its name and
|
|
@@ -107325,7 +107617,21 @@ var TagUsageCountsSchema = zod.z.object({
|
|
|
107325
107617
|
schedulers: zod.z.number().int().nonnegative(),
|
|
107326
107618
|
templates: zod.z.number().int().nonnegative(),
|
|
107327
107619
|
actions: zod.z.number().int().nonnegative(),
|
|
107328
|
-
devices: zod.z.number().int().nonnegative()
|
|
107620
|
+
devices: zod.z.number().int().nonnegative(),
|
|
107621
|
+
notificationRules: zod.z.number().int().nonnegative()
|
|
107622
|
+
});
|
|
107623
|
+
/**
|
|
107624
|
+
* The counts `list` answers. An owner that could not be read (a forked addon
|
|
107625
|
+
* that is down, redeploying or not installed) is `null` — unknown, never `0`
|
|
107626
|
+
* (D393) — and `list` still answers with the other owners' tags.
|
|
107627
|
+
*/
|
|
107628
|
+
var TagListCountsSchema = zod.z.object({
|
|
107629
|
+
coreBlocks: zod.z.number().int().nonnegative().nullable(),
|
|
107630
|
+
schedulers: zod.z.number().int().nonnegative().nullable(),
|
|
107631
|
+
templates: zod.z.number().int().nonnegative().nullable(),
|
|
107632
|
+
actions: zod.z.number().int().nonnegative().nullable(),
|
|
107633
|
+
devices: zod.z.number().int().nonnegative().nullable(),
|
|
107634
|
+
notificationRules: zod.z.number().int().nonnegative().nullable()
|
|
107329
107635
|
});
|
|
107330
107636
|
var TagEntrySchema = zod.z.object({
|
|
107331
107637
|
name: TagNameSchema,
|
|
@@ -107333,14 +107639,19 @@ var TagEntrySchema = zod.z.object({
|
|
|
107333
107639
|
icon: IconKeySchema,
|
|
107334
107640
|
/** `false` when the operator never chose a style: colour and icon are the derived defaults. */
|
|
107335
107641
|
styled: zod.z.boolean(),
|
|
107336
|
-
|
|
107642
|
+
/** Per owner kind; `null` = that owner could not be read on this call. */
|
|
107643
|
+
counts: TagListCountsSchema
|
|
107337
107644
|
});
|
|
107338
107645
|
var tagsCapability = {
|
|
107339
107646
|
name: "tags",
|
|
107340
107647
|
scope: "system",
|
|
107341
107648
|
mode: "singleton",
|
|
107342
107649
|
methods: {
|
|
107343
|
-
/**
|
|
107650
|
+
/**
|
|
107651
|
+
* Every tag: styled or in use, with how many records of each kind carry it.
|
|
107652
|
+
* An unreachable owner degrades that kind's count to `null`; the call still
|
|
107653
|
+
* answers.
|
|
107654
|
+
*/
|
|
107344
107655
|
list: method(zod.z.object({}), zod.z.array(TagEntrySchema), { auth: "protected" }),
|
|
107345
107656
|
/** Choose the colour and icon of a tag. The tag need not be in use. */
|
|
107346
107657
|
setStyle: method(zod.z.object({
|
|
@@ -107354,7 +107665,9 @@ var tagsCapability = {
|
|
|
107354
107665
|
/**
|
|
107355
107666
|
* Rename a tag on EVERY owner in one call. When `to` already exists the two
|
|
107356
107667
|
* merge and the TARGET's style wins (like `renameLocation`). An empty `to`
|
|
107357
|
-
* is refused before anything is written
|
|
107668
|
+
* is refused before anything is written, and so is any call while an owner
|
|
107669
|
+
* cannot be read (the error names the owner): a rename applied to
|
|
107670
|
+
* only some owners would split the fleet across two spellings.
|
|
107358
107671
|
*/
|
|
107359
107672
|
rename: method(zod.z.object({
|
|
107360
107673
|
from: zod.z.string(),
|
|
@@ -107363,7 +107676,7 @@ var tagsCapability = {
|
|
|
107363
107676
|
kind: "mutation",
|
|
107364
107677
|
auth: "admin"
|
|
107365
107678
|
}),
|
|
107366
|
-
/** Drop a tag from every owner and delete its style. */
|
|
107679
|
+
/** Drop a tag from every owner and delete its style. Refused like `rename` while an owner cannot be read. */
|
|
107367
107680
|
remove: method(zod.z.object({ name: zod.z.string() }), zod.z.object({ updated: TagUsageCountsSchema }), {
|
|
107368
107681
|
kind: "mutation",
|
|
107369
107682
|
auth: "admin"
|
|
@@ -108338,7 +108651,11 @@ var TerminalSessionInfoSchema = zod.z.object({
|
|
|
108338
108651
|
cols: zod.z.number().int().positive(),
|
|
108339
108652
|
rows: zod.z.number().int().positive(),
|
|
108340
108653
|
/** ms-epoch the session's pty was spawned. */
|
|
108341
|
-
startedAt: zod.z.number()
|
|
108654
|
+
startedAt: zod.z.number(),
|
|
108655
|
+
/** User id of the admin who opened it; `unattributed` when the caller was not passed. */
|
|
108656
|
+
openedBy: zod.z.string().optional(),
|
|
108657
|
+
/** ms-epoch of the last pty input or output — what the idle timeout measures. */
|
|
108658
|
+
lastActivityAt: zod.z.number().optional()
|
|
108342
108659
|
});
|
|
108343
108660
|
/**
|
|
108344
108661
|
* A profile the operator may open — a pre-declared, allowlisted program
|
|
@@ -112215,6 +112532,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
112215
112532
|
scriptRunnerCapability,
|
|
112216
112533
|
serverManagementCapability,
|
|
112217
112534
|
settingsStoreCapability,
|
|
112535
|
+
sirenCapability,
|
|
112218
112536
|
smokeCapability,
|
|
112219
112537
|
smtpProviderCapability,
|
|
112220
112538
|
snapshotCapability,
|
|
@@ -114900,6 +115218,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
114900
115218
|
runningState: runningStateCapability,
|
|
114901
115219
|
sceneMonitor: sceneMonitorCapability,
|
|
114902
115220
|
scriptRunner: scriptRunnerCapability,
|
|
115221
|
+
siren: sirenCapability,
|
|
114903
115222
|
smoke: smokeCapability,
|
|
114904
115223
|
streamCatalog: streamCatalogCapability,
|
|
114905
115224
|
streamParams: streamParamsCapability,
|
|
@@ -125685,6 +126004,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
125685
126004
|
access: "view",
|
|
125686
126005
|
role: "admin"
|
|
125687
126006
|
},
|
|
126007
|
+
"notificationRules.listRuleTags": {
|
|
126008
|
+
capName: "notification-rules",
|
|
126009
|
+
capScope: "system",
|
|
126010
|
+
addonId: null,
|
|
126011
|
+
access: "view",
|
|
126012
|
+
role: "admin"
|
|
126013
|
+
},
|
|
125688
126014
|
"notificationRules.listSnoozes": {
|
|
125689
126015
|
capName: "notification-rules",
|
|
125690
126016
|
capScope: "system",
|
|
@@ -125741,6 +126067,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
125741
126067
|
access: "create",
|
|
125742
126068
|
role: "admin"
|
|
125743
126069
|
},
|
|
126070
|
+
"notificationRules.setRuleTags": {
|
|
126071
|
+
capName: "notification-rules",
|
|
126072
|
+
capScope: "system",
|
|
126073
|
+
addonId: null,
|
|
126074
|
+
access: "create",
|
|
126075
|
+
role: "admin"
|
|
126076
|
+
},
|
|
125744
126077
|
"notificationRules.testRule": {
|
|
125745
126078
|
capName: "notification-rules",
|
|
125746
126079
|
capScope: "system",
|
|
@@ -128702,6 +129035,34 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
128702
129035
|
access: "create",
|
|
128703
129036
|
role: "admin"
|
|
128704
129037
|
},
|
|
129038
|
+
"siren.getOptions": {
|
|
129039
|
+
capName: "siren",
|
|
129040
|
+
capScope: "device",
|
|
129041
|
+
addonId: null,
|
|
129042
|
+
access: "view",
|
|
129043
|
+
role: "viewer"
|
|
129044
|
+
},
|
|
129045
|
+
"siren.getStatus": {
|
|
129046
|
+
capName: "siren",
|
|
129047
|
+
capScope: "device",
|
|
129048
|
+
addonId: null,
|
|
129049
|
+
access: "view",
|
|
129050
|
+
role: "viewer"
|
|
129051
|
+
},
|
|
129052
|
+
"siren.stop": {
|
|
129053
|
+
capName: "siren",
|
|
129054
|
+
capScope: "device",
|
|
129055
|
+
addonId: null,
|
|
129056
|
+
access: "create",
|
|
129057
|
+
role: "viewer"
|
|
129058
|
+
},
|
|
129059
|
+
"siren.trigger": {
|
|
129060
|
+
capName: "siren",
|
|
129061
|
+
capScope: "device",
|
|
129062
|
+
addonId: null,
|
|
129063
|
+
access: "create",
|
|
129064
|
+
role: "viewer"
|
|
129065
|
+
},
|
|
128705
129066
|
"smoke.getStatus": {
|
|
128706
129067
|
capName: "smoke",
|
|
128707
129068
|
capScope: "device",
|
|
@@ -131036,6 +131397,7 @@ var CAP_NAMES_WITH_STATUS = [
|
|
|
131036
131397
|
"running-state",
|
|
131037
131398
|
"scene-monitor",
|
|
131038
131399
|
"script-runner",
|
|
131400
|
+
"siren",
|
|
131039
131401
|
"smoke",
|
|
131040
131402
|
"snapshot",
|
|
131041
131403
|
"stream-params",
|
|
@@ -133739,6 +134101,26 @@ Object.freeze({
|
|
|
133739
134101
|
form: "single",
|
|
133740
134102
|
optional: false
|
|
133741
134103
|
}],
|
|
134104
|
+
"siren.getOptions": [{
|
|
134105
|
+
name: "deviceId",
|
|
134106
|
+
form: "single",
|
|
134107
|
+
optional: false
|
|
134108
|
+
}],
|
|
134109
|
+
"siren.getStatus": [{
|
|
134110
|
+
name: "deviceId",
|
|
134111
|
+
form: "single",
|
|
134112
|
+
optional: false
|
|
134113
|
+
}],
|
|
134114
|
+
"siren.stop": [{
|
|
134115
|
+
name: "deviceId",
|
|
134116
|
+
form: "single",
|
|
134117
|
+
optional: false
|
|
134118
|
+
}],
|
|
134119
|
+
"siren.trigger": [{
|
|
134120
|
+
name: "deviceId",
|
|
134121
|
+
form: "single",
|
|
134122
|
+
optional: false
|
|
134123
|
+
}],
|
|
133742
134124
|
"smoke.getStatus": [{
|
|
133743
134125
|
name: "deviceId",
|
|
133744
134126
|
form: "single",
|
|
@@ -134219,7 +134601,7 @@ Object.freeze({
|
|
|
134219
134601
|
});
|
|
134220
134602
|
/**
|
|
134221
134603
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
134222
|
-
* `runtimeState`.
|
|
134604
|
+
* `runtimeState`. 86 caps: 43 `restored`, 43 `session`.
|
|
134223
134605
|
*
|
|
134224
134606
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
134225
134607
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -134494,6 +134876,10 @@ var RUNTIME_STATE_POLICY = {
|
|
|
134494
134876
|
durability: "session",
|
|
134495
134877
|
volatileFields: []
|
|
134496
134878
|
},
|
|
134879
|
+
"siren": {
|
|
134880
|
+
durability: "session",
|
|
134881
|
+
volatileFields: []
|
|
134882
|
+
},
|
|
134497
134883
|
"smoke": {
|
|
134498
134884
|
durability: "restored",
|
|
134499
134885
|
volatileFields: ["lastChangedAt"]
|
|
@@ -135799,6 +136185,8 @@ var TimelapseRuleInputSchema = zod.z.object({
|
|
|
135799
136185
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
135800
136186
|
priority: PriorityField.default(3),
|
|
135801
136187
|
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
136188
|
+
/** Operator labels (D1054) — optional and NEVER defaulted: an absent key leaves the stored tags alone; `[]` clears them. Admin-only. */
|
|
136189
|
+
tags: TagsFieldSchema.optional(),
|
|
135802
136190
|
targetOverrides: NcTargetOverridesSchema.optional()
|
|
135803
136191
|
});
|
|
135804
136192
|
zod.z.object({
|
|
@@ -135817,6 +136205,8 @@ zod.z.object({
|
|
|
135817
136205
|
reportClasses: ReportClassesField.optional(),
|
|
135818
136206
|
priority: PriorityField.optional(),
|
|
135819
136207
|
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
136208
|
+
/** Absent = keep the stored tags; `[]` clears them (D1054). Never defaulted. */
|
|
136209
|
+
tags: TagsFieldSchema.optional(),
|
|
135820
136210
|
targetOverrides: NcTargetOverridesSchema.optional()
|
|
135821
136211
|
});
|
|
135822
136212
|
TimelapseRuleInputSchema.extend({
|
|
@@ -137312,6 +137702,12 @@ Object.defineProperty(exports, "MigrationMetaSchema", {
|
|
|
137312
137702
|
return MigrationMetaSchema;
|
|
137313
137703
|
}
|
|
137314
137704
|
});
|
|
137705
|
+
Object.defineProperty(exports, "NcTaggedRuleKindSchema", {
|
|
137706
|
+
enumerable: true,
|
|
137707
|
+
get: function() {
|
|
137708
|
+
return NcTaggedRuleKindSchema;
|
|
137709
|
+
}
|
|
137710
|
+
});
|
|
137315
137711
|
Object.defineProperty(exports, "NetworkTunnelStartedDataSchema", {
|
|
137316
137712
|
enumerable: true,
|
|
137317
137713
|
get: function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-CUtwx-2Z.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-qWjb7_f2.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-m5beNMze.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Yc as defineRecordKinds } from "./dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { zl as userError } from "./dist-Dgq9nuvh.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-DlBBoHJC.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|