@camstack/system 1.2.440 → 1.2.442
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-runner.js +72 -2
- package/dist/addon-runner.mjs +72 -2
- package/dist/auth/totp-manager.d.ts +46 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.d.ts +41 -1
- package/dist/builtins/alerts/alerts.addon.js +638 -26
- package/dist/builtins/alerts/alerts.addon.mjs +638 -26
- package/dist/builtins/alerts/critical-push.d.ts +86 -0
- package/dist/builtins/alerts/runner-alert.d.ts +71 -0
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/auth-schema.d.ts +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +226 -17
- package/dist/builtins/local-auth/local-auth.addon.mjs +226 -17
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +283 -283
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-CS0D7imL.mjs → composition-sources-CftPpY4O.mjs} +1 -1
- package/dist/{composition-sources-cBG8fBTu.js → composition-sources-DmSEMtUD.js} +1 -1
- package/dist/{constants-CIzPjw7L.mjs → constants-2iWQ-Nx-.mjs} +1 -1
- package/dist/{constants-CRI3QzT4.js → constants-b7kpjuO4.js} +1 -1
- package/dist/{device-ca-DLKXYseS.mjs → device-ca-BJpYTAPg.mjs} +1 -1
- package/dist/{device-ca-DNHjts4_.js → device-ca-tKY_ZS9H.js} +1 -1
- package/dist/{dist-BKhlcYz6.js → dist-CyIHDLCg.js} +169 -10
- package/dist/{dist-9fcsrFU3.mjs → dist-DsrQYcLm.mjs} +164 -11
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Dy2YjRqC.mjs → hub-mdns-ciao-BS2akjWx.mjs} +1 -1
- package/dist/{hub-mdns-ciao-3Zc9G9MS.js → hub-mdns-ciao-Da-0NEyr.js} +1 -1
- package/dist/index.js +142 -13
- package/dist/index.mjs +137 -14
- package/dist/kernel/addon-refused-error.d.ts +30 -0
- package/dist/kernel/index.d.ts +3 -0
- package/dist/kernel/legacy-blob-guard.d.ts +6 -1
- package/dist/kernel/moleculer/process-service.d.ts +16 -1
- package/dist/kernel/moleculer/runner-refusal.d.ts +27 -0
- package/dist/{restore-archive-49aZwkp8.js → restore-archive-Cdf09dHm.js} +1 -1
- package/dist/{restore-archive-DgvDecXM.mjs → restore-archive-RaA3uZ7H.mjs} +82 -82
- package/dist/{wal-maintenance-C041zn6V.js → wal-maintenance-C-bmkDhm.js} +0 -0
- package/dist/{wal-maintenance-BZGmF-3U.mjs → wal-maintenance-DE8QrreK.mjs} +0 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import "node:crypto";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-BvOFi6PY.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -64,6 +64,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
64
64
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
65
65
|
*/
|
|
66
66
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
67
|
+
/**
|
|
68
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
69
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
70
|
+
* action. One event per refusal.
|
|
71
|
+
*/
|
|
72
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
73
|
+
/**
|
|
74
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
75
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
76
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
77
|
+
*/
|
|
78
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
79
|
+
/**
|
|
80
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
81
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
82
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
83
|
+
*/
|
|
84
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
67
85
|
EventCategory["AddonError"] = "addon.error";
|
|
68
86
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
69
87
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -718,7 +736,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
718
736
|
return EventCategory;
|
|
719
737
|
}({});
|
|
720
738
|
//#endregion
|
|
721
|
-
//#region ../types/dist/sleep-
|
|
739
|
+
//#region ../types/dist/sleep-bgZLodYc.mjs
|
|
722
740
|
/**
|
|
723
741
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
724
742
|
* window to float samples (D455).
|
|
@@ -4607,7 +4625,7 @@ function sleep(ms) {
|
|
|
4607
4625
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
4608
4626
|
}
|
|
4609
4627
|
//#endregion
|
|
4610
|
-
//#region ../types/dist/err-msg
|
|
4628
|
+
//#region ../types/dist/err-msg--2RrYiLO.mjs
|
|
4611
4629
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
4612
4630
|
DeviceType["Camera"] = "camera";
|
|
4613
4631
|
DeviceType["Hub"] = "hub";
|
|
@@ -4876,6 +4894,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
4876
4894
|
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
4877
4895
|
* real Switch device for UI rendering / export adapters. */
|
|
4878
4896
|
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
4897
|
+
/** A smart plug: a `switch` whose source says it is an outlet (HA
|
|
4898
|
+
* `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
|
|
4899
|
+
DeviceRole["Outlet"] = "outlet";
|
|
4879
4900
|
/** Generic motion / occupancy / moving event source. Distinct from
|
|
4880
4901
|
* the camera accessory PirSensor role: that one is a camera child;
|
|
4881
4902
|
* this is a standalone HA / 3rd-party motion sensor. */
|
|
@@ -4953,7 +4974,7 @@ function errMsg(err) {
|
|
|
4953
4974
|
return String(err);
|
|
4954
4975
|
}
|
|
4955
4976
|
//#endregion
|
|
4956
|
-
//#region ../types/dist/composition-
|
|
4977
|
+
//#region ../types/dist/composition-DOwQB_Ua.mjs
|
|
4957
4978
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
4958
4979
|
opus: "libopus",
|
|
4959
4980
|
aac: "aac",
|
|
@@ -41043,6 +41064,36 @@ var llmRuntimeCapability = {
|
|
|
41043
41064
|
}
|
|
41044
41065
|
};
|
|
41045
41066
|
/**
|
|
41067
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
41068
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
41069
|
+
*
|
|
41070
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
41071
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
41072
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
41073
|
+
*/
|
|
41074
|
+
var RawSecretMigrationInputSchema = z.object({
|
|
41075
|
+
/** `false` (the default of the script) = report only. */
|
|
41076
|
+
apply: z.boolean() });
|
|
41077
|
+
var RawSecretMigrationReportSchema = z.object({
|
|
41078
|
+
apply: z.boolean(),
|
|
41079
|
+
/** Rows that can carry a secret (a profile, an enrolment). */
|
|
41080
|
+
rows: z.number().int(),
|
|
41081
|
+
/** Rows whose secret was plaintext when the run started. */
|
|
41082
|
+
raw: z.number().int(),
|
|
41083
|
+
/** Rows that already held a keychain marker when the run started. */
|
|
41084
|
+
markers: z.number().int(),
|
|
41085
|
+
/** Plaintext rows moved by THIS run (always 0 on a dry run). */
|
|
41086
|
+
migrated: z.number().int(),
|
|
41087
|
+
/** Plaintext rows left in place because the move or its read-back failed. */
|
|
41088
|
+
failed: z.number().int(),
|
|
41089
|
+
/** After the run: rows still holding plaintext. */
|
|
41090
|
+
remainingRaw: z.number().int(),
|
|
41091
|
+
/** After the run: markers the keychain could not resolve right now. */
|
|
41092
|
+
unresolvedMarkers: z.number().int(),
|
|
41093
|
+
/** True when nothing is raw and every marker resolves. */
|
|
41094
|
+
verified: z.boolean()
|
|
41095
|
+
});
|
|
41096
|
+
/**
|
|
41046
41097
|
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
41047
41098
|
* methods concat-fan across providers; single-row methods route to ONE
|
|
41048
41099
|
* provider by the `addonId` in the call input (the notification-output
|
|
@@ -41249,6 +41300,16 @@ var llmCapability = {
|
|
|
41249
41300
|
kind: "mutation",
|
|
41250
41301
|
auth: "admin"
|
|
41251
41302
|
}),
|
|
41303
|
+
/**
|
|
41304
|
+
* D878: move every profile's plaintext `apiKey` into the keychain (owner
|
|
41305
|
+
* `ai`), leaving a marker in the row. Dry run unless `apply`; idempotent;
|
|
41306
|
+
* counts only. The plaintext is cleared only after the keychain read-back
|
|
41307
|
+
* matched.
|
|
41308
|
+
*/
|
|
41309
|
+
migrateRawSecrets: method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
41310
|
+
kind: "mutation",
|
|
41311
|
+
auth: "admin"
|
|
41312
|
+
}),
|
|
41252
41313
|
deleteProfile: method(ProfileRefInputSchema, z.void(), {
|
|
41253
41314
|
kind: "mutation",
|
|
41254
41315
|
auth: "admin"
|
|
@@ -54029,6 +54090,41 @@ var ServerRollbackInfoSchema = z.object({
|
|
|
54029
54090
|
atMs: z.number(),
|
|
54030
54091
|
reason: z.string()
|
|
54031
54092
|
});
|
|
54093
|
+
/**
|
|
54094
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
54095
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
54096
|
+
* service holds, because only the hub plans) against the states the process
|
|
54097
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
54098
|
+
* every boot, served on `getServerPackageStatus`.
|
|
54099
|
+
*
|
|
54100
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
54101
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
54102
|
+
* planned runner the process service has no entry for.
|
|
54103
|
+
*/
|
|
54104
|
+
var RunnerRefusalSchema = z.object({
|
|
54105
|
+
runnerId: z.string(),
|
|
54106
|
+
addonIds: z.array(z.string()),
|
|
54107
|
+
reason: z.string()
|
|
54108
|
+
});
|
|
54109
|
+
var RunnerBootCheckSchema = z.object({
|
|
54110
|
+
checkedAtMs: z.number(),
|
|
54111
|
+
/** Runners planned for this node. */
|
|
54112
|
+
expected: z.number(),
|
|
54113
|
+
/** Planned runners whose process is `running`. */
|
|
54114
|
+
running: z.number(),
|
|
54115
|
+
failed: z.array(z.string()),
|
|
54116
|
+
refused: z.array(RunnerRefusalSchema),
|
|
54117
|
+
missing: z.array(z.string()),
|
|
54118
|
+
/**
|
|
54119
|
+
* Runners still on their way: `starting`, or `crashed` waiting on a backoff
|
|
54120
|
+
* respawn. The check is FINAL only when this is empty; until then nothing is
|
|
54121
|
+
* pushed and the verdict is re-evaluated on the next runner state change.
|
|
54122
|
+
* Optional for version skew (absent = settled).
|
|
54123
|
+
*/
|
|
54124
|
+
pending: z.array(z.string()).optional(),
|
|
54125
|
+
/** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
|
|
54126
|
+
planKnown: z.boolean()
|
|
54127
|
+
});
|
|
54032
54128
|
var ServerPackageStatusSchema = z.object({
|
|
54033
54129
|
/** Root package name (`@camstack/server` on the hub). */
|
|
54034
54130
|
packageName: z.string(),
|
|
@@ -54091,7 +54187,14 @@ var ServerPackageStatusSchema = z.object({
|
|
|
54091
54187
|
* for version skew: an older provider's payload simply omits it, and an
|
|
54092
54188
|
* absent wrapper is unknown — never `native`.
|
|
54093
54189
|
*/
|
|
54094
|
-
wrapper: WrapperIdentitySchema.optional()
|
|
54190
|
+
wrapper: WrapperIdentitySchema.optional(),
|
|
54191
|
+
/**
|
|
54192
|
+
* What this node PLANNED to run against what its process service reports
|
|
54193
|
+
* (D877). Absent until the one-shot boot check has run (~60 s after boot) and
|
|
54194
|
+
* on a provider that predates it. Absent is "not checked yet", never "all
|
|
54195
|
+
* well": a consumer that needs the answer treats it as pending.
|
|
54196
|
+
*/
|
|
54197
|
+
runners: RunnerBootCheckSchema.optional()
|
|
54095
54198
|
});
|
|
54096
54199
|
var ServerUpdateCheckResultSchema = z.object({
|
|
54097
54200
|
packageName: z.string(),
|
|
@@ -54142,6 +54245,13 @@ var ServerUpdateOutcomeSchema = z.enum([
|
|
|
54142
54245
|
"refused",
|
|
54143
54246
|
"failed"
|
|
54144
54247
|
]);
|
|
54248
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
54249
|
+
var UpdateBlockerSchema = z.object({
|
|
54250
|
+
addonId: z.string(),
|
|
54251
|
+
reason: z.string(),
|
|
54252
|
+
/** What the operator does about it. */
|
|
54253
|
+
remedy: z.string()
|
|
54254
|
+
});
|
|
54145
54255
|
var ServerUpdateActionResultSchema = z.object({
|
|
54146
54256
|
accepted: z.boolean(),
|
|
54147
54257
|
targetVersion: z.string().nullable(),
|
|
@@ -54159,7 +54269,13 @@ var ServerUpdateActionResultSchema = z.object({
|
|
|
54159
54269
|
* The failure itself, verbatim enough to act on (the npm output for a
|
|
54160
54270
|
* staging install). Non-null only for `failed`.
|
|
54161
54271
|
*/
|
|
54162
|
-
error: z.string().nullable().optional()
|
|
54272
|
+
error: z.string().nullable().optional(),
|
|
54273
|
+
/**
|
|
54274
|
+
* The addons the target version would refuse to start on this node's live
|
|
54275
|
+
* store (D877), present when the pre-flight refused the update
|
|
54276
|
+
* (`reason: 'addon-would-refuse'`). Optional for version skew.
|
|
54277
|
+
*/
|
|
54278
|
+
blockers: z.array(UpdateBlockerSchema).optional()
|
|
54163
54279
|
});
|
|
54164
54280
|
var serverManagementCapability = {
|
|
54165
54281
|
name: "server-management",
|
|
@@ -54171,9 +54287,16 @@ var serverManagementCapability = {
|
|
|
54171
54287
|
kind: "mutation",
|
|
54172
54288
|
auth: "admin"
|
|
54173
54289
|
}),
|
|
54174
|
-
applyServerUpdate: method(z.object({
|
|
54175
|
-
|
|
54176
|
-
version: z.string().optional()
|
|
54290
|
+
applyServerUpdate: method(z.object({
|
|
54291
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
54292
|
+
version: z.string().optional(),
|
|
54293
|
+
/**
|
|
54294
|
+
* Apply even though the pre-flight (D877) found addons the target would
|
|
54295
|
+
* refuse to start. Off by default: those addons stay down until the
|
|
54296
|
+
* remedy is run, which is the incident this gate exists to prevent.
|
|
54297
|
+
*/
|
|
54298
|
+
acknowledgeRefusals: z.boolean().optional()
|
|
54299
|
+
}), ServerUpdateActionResultSchema, {
|
|
54177
54300
|
kind: "mutation",
|
|
54178
54301
|
auth: "admin",
|
|
54179
54302
|
timeoutMs: 16 * 6e4
|
|
@@ -57495,7 +57618,9 @@ var ManifestShapeSchema = z.object({
|
|
|
57495
57618
|
var AddonProcessSchema = z.object({
|
|
57496
57619
|
pid: z.number().optional(),
|
|
57497
57620
|
mode: z.string(),
|
|
57498
|
-
state: z.string()
|
|
57621
|
+
state: z.string(),
|
|
57622
|
+
/** Why the runner is `refused` (an addon's own words), when it is (D877). */
|
|
57623
|
+
reason: z.string().optional()
|
|
57499
57624
|
});
|
|
57500
57625
|
/**
|
|
57501
57626
|
* Per-addon health snapshot from the kernel's AddonHealthMonitor.
|
|
@@ -59183,6 +59308,12 @@ var ClimateControlStatusSchema = z.object({
|
|
|
59183
59308
|
/** Horizontal louver swing on/off. Null when the device has no
|
|
59184
59309
|
* horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
|
|
59185
59310
|
swingHorizontal: z.boolean().nullable(),
|
|
59311
|
+
/** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
59312
|
+
minTemp: z.number().nullable().optional(),
|
|
59313
|
+
/** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
|
|
59314
|
+
maxTemp: z.number().nullable().optional(),
|
|
59315
|
+
/** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
|
|
59316
|
+
tempStep: z.number().positive().nullable().optional(),
|
|
59186
59317
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
59187
59318
|
lastFetchedAt: z.number()
|
|
59188
59319
|
});
|
|
@@ -70095,6 +70226,16 @@ var userManagementCapability = {
|
|
|
70095
70226
|
access: "delete"
|
|
70096
70227
|
}),
|
|
70097
70228
|
getTotpStatus: method(z.object({ userId: z.string() }), TotpStatusSchema, { auth: "admin" }),
|
|
70229
|
+
/**
|
|
70230
|
+
* D878: move every TOTP seed stored in plaintext into the keychain (owner
|
|
70231
|
+
* `system`), leaving a marker in the row. Dry run unless `apply`;
|
|
70232
|
+
* idempotent; counts only.
|
|
70233
|
+
*/
|
|
70234
|
+
migrateRawSecrets: method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
70235
|
+
kind: "mutation",
|
|
70236
|
+
auth: "admin",
|
|
70237
|
+
access: "create"
|
|
70238
|
+
}),
|
|
70098
70239
|
verifyTotp: method(z.object({
|
|
70099
70240
|
userId: z.string(),
|
|
70100
70241
|
code: z.string()
|
|
@@ -76474,6 +76615,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
76474
76615
|
addonId: null,
|
|
76475
76616
|
access: "view"
|
|
76476
76617
|
},
|
|
76618
|
+
"llm.migrateRawSecrets": {
|
|
76619
|
+
capName: "llm",
|
|
76620
|
+
capScope: "system",
|
|
76621
|
+
addonId: null,
|
|
76622
|
+
access: "create"
|
|
76623
|
+
},
|
|
76477
76624
|
"llm.resolveModelRef": {
|
|
76478
76625
|
capName: "llm",
|
|
76479
76626
|
capScope: "system",
|
|
@@ -81016,6 +81163,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
81016
81163
|
addonId: null,
|
|
81017
81164
|
access: "view"
|
|
81018
81165
|
},
|
|
81166
|
+
"userManagement.migrateRawSecrets": {
|
|
81167
|
+
capName: "user-management",
|
|
81168
|
+
capScope: "system",
|
|
81169
|
+
addonId: null,
|
|
81170
|
+
access: "create"
|
|
81171
|
+
},
|
|
81019
81172
|
"userManagement.oauthExchangeCode": {
|
|
81020
81173
|
capName: "user-management",
|
|
81021
81174
|
capScope: "system",
|
|
@@ -86117,4 +86270,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
86117
86270
|
return out;
|
|
86118
86271
|
}
|
|
86119
86272
|
//#endregion
|
|
86120
|
-
export { StorageCleanupJobSchema as $, splitTranslationRef as $n, formatSecretScope as $r, gbToBytes as $t, DeclaredDevices as A, pickAppLinkHub as An, errMsg as Ar, databaseSnapshotCapability as At, METHOD_ACCESS_MAP as B, resolveCoreBlockFiles as Bn, WELL_KNOWN_TAB_MAP as Br, deviceStatusCapability as Bt, DAY_NAMES as C, modeMayWrite as Cn, compositionSourceKey as Cr, coreBlockAddonId as Ct, DEVICE_SAN_CREDENTIAL_PREFIX as D, objectInputDeclaresAddonId as Dn, DeviceFeature as Dr, coreBlocksCapability as Dt, DEVICE_NONCE_TTL_MS as E, normalizeUnit as En, toExpressionValue as Er, coreBlockSourceKind as Et, HUB_MDNS_SERVICE_TYPE as F, reducePoints as Fn, REDACTED_SECRET as Fr, describeComposableCaps as Ft, RecordingStatusSchema as G, runtimeStatePolicyFor as Gn, collectSecretConfigKeys as Gr, evictionPolicyOfLocation as Gt, MOTION_CLOSE_AFTER_MS as H, resolveLocationMode as Hn, asNumber as Hr, enumerateItemArrayFields as Ht, HUB_MDNS_TXT_KEYS as I, replacedFieldKeys as In, RUNTIME_DEFAULTS as Ir, deviceCredentialsCapability as It, STORAGE_ADMIN_SCOPED_BASES as J, scoreRuntimes as Jn, customAction as Jr, extractNestedAddonId as Jt, STORAGE_ACCESS_FALLBACK as K, scopesAllowAddon as Kn, collectZodSecretPaths as Kr, expandContainer as Kt, KEYCHAIN_RESET_TRIGGER_ACTOR as L, resolveAppConnections as Ln, ReadinessRegistry as Lr, deviceExtensionCapability as Lt, FIRST_LEVEL_MACRO_CLASSES as M, platformProbeCapability as Mn, DATAPLANE_SECRET_HEADER as Mr, decodeVectorBase64 as Mt, FieldClaimModeSchema as N, procedureAuthKey as Nn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Nr, defineExtensionSlotProvider as Nt, DEVICE_SAN_USER_PREFIX as O, objectInputDeclaresRequiredDeviceId as On, DeviceRole as Or, createDeviceExtensionProvider as Ot, FieldClaimSchema as P, ptzAutotrackCapability as Pn, DEVICE_STATUS_METHOD as Pr, deriveBatteryPresence as Pt, SsoBridgeClaimsSchema as Q, snapshotCapability as Qn, expandCapMethods as Qr, formatMinutes as Qt, LOG_LEVEL_RANK as R, resolveBucketMs as Rn, ReadinessTimeoutError as Rr, deviceManagerCapability as Rt, DATA_STORE_DATABASES as S,
|
|
86273
|
+
export { StorageCleanupJobSchema as $, splitTranslationRef as $n, formatSecretScope as $r, gbToBytes as $t, DeclaredDevices as A, pickAppLinkHub as An, errMsg as Ar, databaseSnapshotCapability as At, METHOD_ACCESS_MAP as B, resolveCoreBlockFiles as Bn, WELL_KNOWN_TAB_MAP as Br, deviceStatusCapability as Bt, DAY_NAMES as C, EventCategory as Ci, modeMayWrite as Cn, compositionSourceKey as Cr, coreBlockAddonId as Ct, DEVICE_SAN_CREDENTIAL_PREFIX as D, objectInputDeclaresAddonId as Dn, DeviceFeature as Dr, coreBlocksCapability as Dt, DEVICE_NONCE_TTL_MS as E, normalizeUnit as En, toExpressionValue as Er, coreBlockSourceKind as Et, HUB_MDNS_SERVICE_TYPE as F, reducePoints as Fn, REDACTED_SECRET as Fr, describeComposableCaps as Ft, RecordingStatusSchema as G, runtimeStatePolicyFor as Gn, collectSecretConfigKeys as Gr, evictionPolicyOfLocation as Gt, MOTION_CLOSE_AFTER_MS as H, resolveLocationMode as Hn, asNumber as Hr, enumerateItemArrayFields as Ht, HUB_MDNS_TXT_KEYS as I, replacedFieldKeys as In, RUNTIME_DEFAULTS as Ir, deviceCredentialsCapability as It, STORAGE_ADMIN_SCOPED_BASES as J, scoreRuntimes as Jn, customAction as Jr, extractNestedAddonId as Jt, STORAGE_ACCESS_FALLBACK as K, scopesAllowAddon as Kn, collectZodSecretPaths as Kr, expandContainer as Kt, KEYCHAIN_RESET_TRIGGER_ACTOR as L, resolveAppConnections as Ln, ReadinessRegistry as Lr, deviceExtensionCapability as Lt, FIRST_LEVEL_MACRO_CLASSES as M, platformProbeCapability as Mn, DATAPLANE_SECRET_HEADER as Mr, decodeVectorBase64 as Mt, FieldClaimModeSchema as N, procedureAuthKey as Nn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Nr, defineExtensionSlotProvider as Nt, DEVICE_SAN_USER_PREFIX as O, objectInputDeclaresRequiredDeviceId as On, DeviceRole as Or, createDeviceExtensionProvider as Ot, FieldClaimSchema as P, ptzAutotrackCapability as Pn, DEVICE_STATUS_METHOD as Pr, deriveBatteryPresence as Pt, SsoBridgeClaimsSchema as Q, snapshotCapability as Qn, expandCapMethods as Qr, formatMinutes as Qt, LOG_LEVEL_RANK as R, resolveBucketMs as Rn, ReadinessTimeoutError as Rr, deviceManagerCapability as Rt, DATA_STORE_DATABASES as S, userError as Si, metricsProviderCapability as Sn, compositionSliceKey as Sr, compositionSourceRefs as St, DEVICE_ENROLLMENT_TTL_MS as T, normalizeCoreBlockWrite as Tn, disarmRoseMemory as Tr, coreBlockIdFromAddonId as Tt, NetworkTunnelStartedDataSchema as U, resolveMethodAuth as Un, asString$1 as Ur, enumerateSchemaFields as Ut, MINUTES_PER_DAY as V, resolveHubAddressRoles as Vn, asJsonObject as Vr, enumerateInferenceDevices as Vt, RECORDING_SOURCE_CAMSTACK_ADDON as W, resolveNotificationTapAddress as Wn, buildSecretRef as Wr, evaluateCompositionField as Wt, ScopedTokenSchema as X, shortHostname as Xn, emitDownForOwnedCaps as Xr, foldSnapshotByFunction as Xt, STREAM_PROFILE_META as Y, settingsStoreCapability as Yn, defineCustomActions as Yr, filesystemBrowseCapability as Yt, ServerNameSchema as Z, siteZoneKey as Zn, emitReadiness as Zr, formatDeviceRevoker as Zt, CatalogFileSchema as _, secretTreeFromPaths as _i, logLevelAtMost as _n, cloneStatefulExpressionMemory as _r, cameraGridLayoutCapability as _t, ApiKeyRecordSchema as a, isSecretMarker as ai, isLocationEnabled as an, streamCatalogCapability as ar, addonSettingsCapability as at, DATABASE_SNAPSHOT_SUFFIX as b, toSecretFieldView as bi, mayWriteToLocation as bn, compositionFeatureEnabled as br, composerCapability as bt, CAMERA_SWITCH_ORDER as c, nodePin as ci, kebabToCamel as cn, userManagementCapability as cr, authProviderCapability as ct, CATALOG_LANGS as d, parseJsonUnknown as di, legacyAutoLinkIds as dn, vectorDimFromBase64 as dr, batteryCapability as dt, hydrateSchema as ei, interpolate as en, storageAdminCapability as er, StorageLocationModeSchema as et, COMPOSED_ITEM_FIXED_FIELDS as f, parseSecretRef as fi, legacyModeOf as fn, vectorIndexDimConflictError as fr, buildCapabilityLookup as ft, CalendarPreferencesSchema as g, scopeKey as gi, logDestinationCapability as gn, buildFfmpegArgs as gr, calendarsCapability as gt, CORE_BLOCK_ADDON_PREFIX as h, resolveSecretMarkers as hi, locationIconKey as hn, COMPOSER_ADDON_ID as hr, buildStreamParamsConfigSchema as ht, AlertSchema as i, isSecretClear as ii, isDefaultAppConnectionEndpoint as in, storageProviderCapability as ir, addonPagesCapability as it, DeviceStatusSchema as j, planComposition as jn, BaseAddon as jr, declarationOwnerNodeId as jt, DEVICE_TOMBSTONE_RETENTION_MS as k, parseStreamParamsFormPatch as kn, DeviceType as kr, dataStoreProviderCapability as kt, CAMSTACK_APP_LINK_ORIGIN as l, normalizeSecretOwner as li, keychainAdminCapability as ln, validateComposition as lr, backupCapability as lt, CORE_BLOCKS_ADDON_ID as m, resolveCapMount as mi, localNetworkCapability as mn, withLocationMode as mr, buildDeviceSignatureMessage as mt, AGENT_MDNS_TXT_KEYS as n, isEvent as ni, isArrayOutputSchema as nn, storageMigrationCapability as nr, StorageMigrationJobSchema as nt, BaseDevice as o, isSecretMarkerLike as oi, isObjectInput as on, streamQualityLabel as or, addonWidgetsCapability as ot, COMPOSER_RUNNER_ID as p, readinessKey as pi, lifecycleJobSchema as pn, vectorStoreCapability as pr, buildDeviceEnrollmentLink as pt, STORAGE_ADMIN_MOVED_COLLECTIONS as q, scopesAllowDeviceCap as qn, createEvent as qr, expressionContainsBuiltinCall as qt, ALL_CAPABILITY_DEFINITIONS as r, isKeychainStoredField as ri, isCollectionArrayMethod as rn, storageOccupancyCapability as rr, UserRecordSchema as rt, BatteryStatusSchema as s, makeSecretMarker as si, isVoidInput as sn, supportedRuntimes as sr, alertsCapability as st, AGENT_MDNS_SERVICE_TYPE as t, isDeviceConfigCap as ti, isAppLinkBase as tn, storageCapability as tr, StorageLocationTypeSchema as tt, CAP_NAMES_WITH_STATUS as u, parseJsonObject as ui, keychainCapability as un, validateCustomAddress as ur, bareAddonId as ut, CoreBlockSchema as v, sleep as vi, looseSchema as vn, composedDeviceRef as vr, canonicalIconKey as vt, DERIVED_CAMERA_SILENCED_CAP_NAMES as w, motionCapability as wn, createStatefulExpressionMemory as wr, coreBlockComposition as wt, DATABASE_SNAPSHOT_TIMEOUT_MS as x, transformSecretWrite as xi, memoizePinnedFfmpeg as xn, compositionItemFieldPath as xr, compositionFieldKey as xt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as y, toNodeId as yi, mayReadLocation as yn, composedDeviceStableId as yr, checkRoleAddress as yt, LegacyStorageLocationDefaultSchema as z, resolveCoreBlockEntry as zn, SECRET_CLEAR as zr, deviceStateCapability as zt };
|
package/dist/file-host-worker.js
CHANGED
|
@@ -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-C-bmkDhm.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 { C as callData, S as callControl, T as controlTargetOf, a as WalMaintenance, b as trustInput, c as SqliteSettingsBackend, g as collectTransferables, m as serializeError, o as createVectorIndex, s as vectorProviderOf, v as isFileHostRequest, w as callVector, y as isFileHostWorkerData } from "./wal-maintenance-
|
|
1
|
+
import { C as callData, S as callControl, T as controlTargetOf, a as WalMaintenance, b as trustInput, c as SqliteSettingsBackend, g as collectTransferables, m as serializeError, o as createVectorIndex, s as vectorProviderOf, v as isFileHostRequest, w as callVector, y as isFileHostWorkerData } from "./wal-maintenance-DE8QrreK.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
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Si as userError } from "./dist-DsrQYcLm.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-DK__ETIe.mjs";
|
|
4
4
|
import { A as isConstrainedCa, E as reasonRequiresNewCa, M as permitsIdentity, P as readNameConstraints, T as evaluateExistingCert, _ as issueLeaf, g as generateCa, v as loadCa, y as collectCertIdentity } from "./agent-https-U0d4uvn2.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
@@ -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-CyIHDLCg.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-C4cOo48M.js");
|
|
4
4
|
const require_agent_https = require("./agent-https-DlpTMDqA.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|