@camstack/system 1.2.458 → 1.2.459
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/{agent-https-DOELEug8.js → agent-https-Dnr_nIVx.js} +3 -723
- package/dist/{agent-https-CQA3W-3e.mjs → agent-https-Iw3RSQup.mjs} +4 -616
- 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.js +5 -7
- package/dist/builtins/alerts/alerts.addon.mjs +5 -7
- package/dist/builtins/alerts/record-kinds.d.ts +1 -1
- 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 +242 -4
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +240 -2
- package/dist/builtins/calendars/calendars.addon.js +2 -10
- package/dist/builtins/calendars/calendars.addon.mjs +2 -3
- package/dist/builtins/calendars/record-kinds.d.ts +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 +4 -6
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -6
- package/dist/builtins/device-history/device-history.addon.js +1 -1
- package/dist/builtins/device-history/device-history.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -4
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -4
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +41 -43
- package/dist/builtins/keychain/index.mjs +41 -43
- 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/local-auth.addon.js +24 -40
- package/dist/builtins/local-auth/local-auth.addon.mjs +24 -40
- 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/native-metrics/node-metrics-history-recorder.d.ts +1 -2
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/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/file-host-protocol.d.ts +0 -15
- 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/owned-sqlite-file.d.ts +0 -44
- package/dist/builtins/sqlite-storage/records/records-catalog.d.ts +0 -2
- package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +0 -21
- package/dist/builtins/sqlite-storage/records/records-engine.d.ts +3 -20
- package/dist/builtins/sqlite-storage/records/records-provider.d.ts +4 -18
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -17
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +21 -196
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +21 -196
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +6 -14
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +7 -9
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +7 -9
- package/dist/builtins/system-config/system-config.addon.js +667 -40
- package/dist/builtins/system-config/system-config.addon.mjs +625 -15
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BVguN7VV.mjs → composition-sources-DNRZWR1j.mjs} +1 -1
- package/dist/{composition-sources-DURQNDJ4.js → composition-sources-b0e_2I-D.js} +1 -1
- package/dist/{constants-Njka8Cv6.js → constants-6OeJiZgi.js} +1 -1
- package/dist/{constants-FGjnsE2x.mjs → constants-BnkOdj9Q.mjs} +1 -1
- package/dist/{device-ca-lEaAQ9Xi.mjs → device-ca-Bnkw8GyU.mjs} +1 -1
- package/dist/{device-ca-BrVK_5s3.js → device-ca-CPTDs--d.js} +1 -1
- package/dist/{dist-BZQjLPiz.js → dist-Bn-RNanh.js} +29 -130
- package/dist/{dist-B_GRPhnY.mjs → dist-Wy8cTxg6.mjs} +30 -113
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Bg2HfTwP.mjs → hub-mdns-ciao-CJu0nhla.mjs} +2 -2
- package/dist/{hub-mdns-ciao-nce3TXs_.js → hub-mdns-ciao-CTBTlia4.js} +2 -2
- package/dist/index.js +27 -30
- package/dist/index.mjs +11 -14
- package/dist/{restore-archive-C7kLDI_0.mjs → restore-archive-CmP-iiG9.mjs} +84 -331
- package/dist/{restore-archive-FyfZ8YMC.js → restore-archive-DM1OBYq4.js} +89 -342
- package/dist/{wal-maintenance-DfSIOj24.js → wal-maintenance-DUHEp_09.js} +0 -0
- package/dist/{wal-maintenance-Duejh7Lx.mjs → wal-maintenance-NKbwWovZ.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/records/legacy-table-row-count.d.ts +0 -5
- package/dist/builtins/records/phase6-declare-gate.d.ts +0 -28
- package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +0 -5
- package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +0 -6
- package/dist/phase6-declare-gate-Dag1_WR2.js +0 -98
- package/dist/phase6-declare-gate-Lb-mrVvz.mjs +0 -93
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ni as BaseAddon, zn as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { ni as BaseAddon, zn as logDestinationCapability } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jr as compositionSourceKey, ti as errMsg } from "./dist-
|
|
1
|
+
import { Jr as compositionSourceKey, ti as errMsg } from "./dist-Wy8cTxg6.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/composition-sources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describe what a composition reads and writes for SAVE-time validation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
|
|
2
|
-
var MESH_CA_KEY_REF = require("./dist-
|
|
2
|
+
var MESH_CA_KEY_REF = require("./dist-Bn-RNanh.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Li as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-
|
|
1
|
+
import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Li as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { S as backdatedNotBefore, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-DK__ETIe.mjs";
|
|
3
3
|
import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/auth/jwt-signing-key.ts
|
|
@@ -745,7 +745,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
745
745
|
return EventCategory;
|
|
746
746
|
}({});
|
|
747
747
|
//#endregion
|
|
748
|
-
//#region ../types/dist/sleep-
|
|
748
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
749
749
|
/**
|
|
750
750
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
751
751
|
* window to float samples (D455).
|
|
@@ -3657,7 +3657,13 @@ var RecordKindDeclarationSchema = zod.z.object({
|
|
|
3657
3657
|
secretPaths: zod.z.array(zod.z.string().min(1)).default([]),
|
|
3658
3658
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
3659
3659
|
secretArrayKeys: zod.z.record(zod.z.string(), zod.z.string()).default({}),
|
|
3660
|
-
/**
|
|
3660
|
+
/**
|
|
3661
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
3662
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
3663
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
3664
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
3665
|
+
* removal still sends it. Never set it.
|
|
3666
|
+
*/
|
|
3661
3667
|
adoptsFrom: zod.z.string().min(1).optional(),
|
|
3662
3668
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
3663
3669
|
transactFamily: zod.z.string().min(1).optional(),
|
|
@@ -3732,7 +3738,6 @@ function defineRecordKinds(specs) {
|
|
|
3732
3738
|
maxDataBytes: spec.maxDataBytes,
|
|
3733
3739
|
secretPaths: [...secretPaths],
|
|
3734
3740
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
3735
|
-
adoptsFrom: spec.adoptsFrom,
|
|
3736
3741
|
transactFamily: spec.transactFamily,
|
|
3737
3742
|
entry: spec.entry === void 0 ? void 0 : {
|
|
3738
3743
|
title: spec.entry.title,
|
|
@@ -3749,30 +3754,6 @@ function defineRecordKinds(specs) {
|
|
|
3749
3754
|
}
|
|
3750
3755
|
return out;
|
|
3751
3756
|
}
|
|
3752
|
-
/** The wire form of a package's kinds: name -> declaration. */
|
|
3753
|
-
function declarationsOf(kinds) {
|
|
3754
|
-
return Object.fromEntries(Object.entries(kinds).map(([name, kind]) => [name, kind.declaration]));
|
|
3755
|
-
}
|
|
3756
|
-
/** When non-null, `from` names an addon-settings brokers blob, not a SQL table. */
|
|
3757
|
-
function parseSettingsBrokersAdoptsFrom(from) {
|
|
3758
|
-
if (!from.startsWith("@settings-brokers/")) return null;
|
|
3759
|
-
const addonId = from.slice(18);
|
|
3760
|
-
return addonId.length > 0 ? addonId : null;
|
|
3761
|
-
}
|
|
3762
|
-
/** When non-null, `from` names an addon-settings array blob, not a SQL table. */
|
|
3763
|
-
function parseSettingsArrayAdoptsFrom(from) {
|
|
3764
|
-
if (!from.startsWith("@settings-array/")) return null;
|
|
3765
|
-
const rest = from.slice(16);
|
|
3766
|
-
const slash = rest.indexOf("/");
|
|
3767
|
-
if (slash <= 0 || slash >= rest.length - 1) return null;
|
|
3768
|
-
const addonId = rest.slice(0, slash);
|
|
3769
|
-
const settingsKey = rest.slice(slash + 1);
|
|
3770
|
-
if (addonId.length === 0 || settingsKey.length === 0) return null;
|
|
3771
|
-
return {
|
|
3772
|
-
addonId,
|
|
3773
|
-
settingsKey
|
|
3774
|
-
};
|
|
3775
|
-
}
|
|
3776
3757
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
3777
3758
|
var CamProfileSchema = zod.z.enum([
|
|
3778
3759
|
"high",
|
|
@@ -17227,11 +17208,12 @@ var DeclareKindResultSchema = zod.z.object({
|
|
|
17227
17208
|
kindId: zod.z.number().int(),
|
|
17228
17209
|
state: RecordKindStateSchema,
|
|
17229
17210
|
createdIndexes: zod.z.array(zod.z.string()),
|
|
17230
|
-
/**
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17211
|
+
/**
|
|
17212
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
17213
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
17214
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
17215
|
+
*/
|
|
17216
|
+
adoptionPending: zod.z.null()
|
|
17235
17217
|
});
|
|
17236
17218
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
17237
17219
|
var SecretRefsList = zod.z.array(zod.z.string());
|
|
@@ -17419,13 +17401,13 @@ var StorageKindSchema = zod.z.object({
|
|
|
17419
17401
|
declaration: RecordKindDeclarationSchema
|
|
17420
17402
|
});
|
|
17421
17403
|
/**
|
|
17422
|
-
* The collections retired by exact name
|
|
17423
|
-
*
|
|
17424
|
-
*
|
|
17425
|
-
*
|
|
17426
|
-
*
|
|
17427
|
-
*
|
|
17428
|
-
*
|
|
17404
|
+
* The collections retired by exact name by D870 (their data became keys of the
|
|
17405
|
+
* camera's settings). No addon declares any of them any more; the engine still
|
|
17406
|
+
* refuses one a running addon declared this boot. `dropCollection` may remove
|
|
17407
|
+
* these, the per-addon scoped `addon-settings` / `addon-devices` / `sections`
|
|
17408
|
+
* tables, and the tables of owners that are no longer installed - nothing else.
|
|
17409
|
+
* The records-migration leftovers (D871 `stats-5m`, the phase-0 tables) were
|
|
17410
|
+
* dropped by hand on the operator hubs and left this list with D900.
|
|
17429
17411
|
*/
|
|
17430
17412
|
var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
17431
17413
|
"stream-broker:probe-snapshots",
|
|
@@ -17433,19 +17415,7 @@ var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
|
17433
17415
|
"stream-broker:rtsp-tokens",
|
|
17434
17416
|
"notification-center:device-mutes",
|
|
17435
17417
|
"recorder:recording-configs",
|
|
17436
|
-
"pipeline-orchestrator:device-features"
|
|
17437
|
-
"pipeline-analytics:stats-5m",
|
|
17438
|
-
"pipeline-orchestrator:stats-5m",
|
|
17439
|
-
"vec_object_clip",
|
|
17440
|
-
"addon-devices",
|
|
17441
|
-
"sections",
|
|
17442
|
-
"provider-settings",
|
|
17443
|
-
"device-settings",
|
|
17444
|
-
"ai:budgets",
|
|
17445
|
-
"pipeline-analytics:retrain-dataset-versions",
|
|
17446
|
-
"training:dataset-versions",
|
|
17447
|
-
"benchmark:replay-runs",
|
|
17448
|
-
"viewer-settings-snapshots"
|
|
17418
|
+
"pipeline-orchestrator:device-features"
|
|
17449
17419
|
];
|
|
17450
17420
|
/** The per-addon blob tables a scoped name may carry. */
|
|
17451
17421
|
var STORAGE_ADMIN_SCOPED_BASES = [
|
|
@@ -17509,42 +17479,7 @@ var storageAdminCapability = {
|
|
|
17509
17479
|
readRecords: method(RecordQueryInputSchema.extend({
|
|
17510
17480
|
owner: zod.z.string().min(1),
|
|
17511
17481
|
kind: RecordKindNameSchema
|
|
17512
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17513
|
-
/**
|
|
17514
|
-
* The migration copy path (D881): write rows into a kind AS ITS DECLARED
|
|
17515
|
-
* OWNER. Refused when that owner's manifest does not declare the kind.
|
|
17516
|
-
* Idempotent (a put by id, so a re-run resumes). A secret field carries a
|
|
17517
|
-
* keychain marker bound to the row's own ref - the operator script imports
|
|
17518
|
-
* the value first - and a plain string there is refused.
|
|
17519
|
-
*/
|
|
17520
|
-
adoptRecords: method(zod.z.object({
|
|
17521
|
-
owner: zod.z.string().min(1),
|
|
17522
|
-
kind: RecordKindNameSchema,
|
|
17523
|
-
records: zod.z.array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17524
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17525
|
-
complete: zod.z.boolean().optional()
|
|
17526
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), zod.z.object({ adopted: zod.z.number().int() }), {
|
|
17527
|
-
kind: "mutation",
|
|
17528
|
-
auth: "admin"
|
|
17529
|
-
}),
|
|
17530
|
-
/**
|
|
17531
|
-
* Read rows from a legacy KV table by physical name, without a running
|
|
17532
|
-
* `declareCollection`. Used by `records-adopt.ts` when the owner already
|
|
17533
|
-
* moved to records and the collection door refuses the name.
|
|
17534
|
-
*/
|
|
17535
|
-
readLegacyCollection: method(zod.z.object({
|
|
17536
|
-
collection: zod.z.string().min(1),
|
|
17537
|
-
cursor: zod.z.string().optional(),
|
|
17538
|
-
limit: zod.z.number().int().min(1).max(1e3).optional()
|
|
17539
|
-
}), zod.z.object({
|
|
17540
|
-
rows: zod.z.array(zod.z.object({
|
|
17541
|
-
id: zod.z.string(),
|
|
17542
|
-
data: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
17543
|
-
})),
|
|
17544
|
-
nextCursor: zod.z.string().nullable()
|
|
17545
|
-
}), { auth: "admin" }),
|
|
17546
|
-
/** True when a declared kind lists `collection` as `adoptsFrom` and adoption finished. */
|
|
17547
|
-
isAdoptedLegacyTable: method(zod.z.object({ collection: zod.z.string().min(1) }), zod.z.object({ adopted: zod.z.boolean() }), { auth: "admin" })
|
|
17482
|
+
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17548
17483
|
}
|
|
17549
17484
|
};
|
|
17550
17485
|
/**
|
|
@@ -76966,6 +76901,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
76966
76901
|
addonId: null,
|
|
76967
76902
|
access: "view"
|
|
76968
76903
|
},
|
|
76904
|
+
"deviceHistory.queryMany": {
|
|
76905
|
+
capName: "device-history",
|
|
76906
|
+
capScope: "system",
|
|
76907
|
+
addonId: null,
|
|
76908
|
+
access: "view"
|
|
76909
|
+
},
|
|
76969
76910
|
"deviceHistory.queryNode": {
|
|
76970
76911
|
capName: "device-history",
|
|
76971
76912
|
capScope: "system",
|
|
@@ -82186,24 +82127,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82186
82127
|
addonId: null,
|
|
82187
82128
|
access: "create"
|
|
82188
82129
|
},
|
|
82189
|
-
"storageAdmin.adoptRecords": {
|
|
82190
|
-
capName: "storage-admin",
|
|
82191
|
-
capScope: "system",
|
|
82192
|
-
addonId: null,
|
|
82193
|
-
access: "create"
|
|
82194
|
-
},
|
|
82195
82130
|
"storageAdmin.dropCollection": {
|
|
82196
82131
|
capName: "storage-admin",
|
|
82197
82132
|
capScope: "system",
|
|
82198
82133
|
addonId: null,
|
|
82199
82134
|
access: "delete"
|
|
82200
82135
|
},
|
|
82201
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
82202
|
-
capName: "storage-admin",
|
|
82203
|
-
capScope: "system",
|
|
82204
|
-
addonId: null,
|
|
82205
|
-
access: "view"
|
|
82206
|
-
},
|
|
82207
82136
|
"storageAdmin.listKinds": {
|
|
82208
82137
|
capName: "storage-admin",
|
|
82209
82138
|
capScope: "system",
|
|
@@ -82216,12 +82145,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82216
82145
|
addonId: null,
|
|
82217
82146
|
access: "view"
|
|
82218
82147
|
},
|
|
82219
|
-
"storageAdmin.readLegacyCollection": {
|
|
82220
|
-
capName: "storage-admin",
|
|
82221
|
-
capScope: "system",
|
|
82222
|
-
addonId: null,
|
|
82223
|
-
access: "view"
|
|
82224
|
-
},
|
|
82225
82148
|
"storageAdmin.readRecords": {
|
|
82226
82149
|
capName: "storage-admin",
|
|
82227
82150
|
capScope: "system",
|
|
@@ -86307,12 +86230,6 @@ Object.freeze({
|
|
|
86307
86230
|
form: "single",
|
|
86308
86231
|
optional: false
|
|
86309
86232
|
}],
|
|
86310
|
-
"storageAdmin.adoptRecords": [{
|
|
86311
|
-
name: "records",
|
|
86312
|
-
form: "object-array",
|
|
86313
|
-
optional: false,
|
|
86314
|
-
itemField: "deviceId"
|
|
86315
|
-
}],
|
|
86316
86233
|
"storageAdmin.readRecords": [{
|
|
86317
86234
|
name: "deviceId",
|
|
86318
86235
|
form: "single",
|
|
@@ -89875,12 +89792,6 @@ Object.defineProperty(exports, "declarationOwnerNodeId", {
|
|
|
89875
89792
|
return declarationOwnerNodeId;
|
|
89876
89793
|
}
|
|
89877
89794
|
});
|
|
89878
|
-
Object.defineProperty(exports, "declarationsOf", {
|
|
89879
|
-
enumerable: true,
|
|
89880
|
-
get: function() {
|
|
89881
|
-
return declarationsOf;
|
|
89882
|
-
}
|
|
89883
|
-
});
|
|
89884
89795
|
Object.defineProperty(exports, "decodeVectorBase64", {
|
|
89885
89796
|
enumerable: true,
|
|
89886
89797
|
get: function() {
|
|
@@ -90361,18 +90272,6 @@ Object.defineProperty(exports, "parseSecretRef", {
|
|
|
90361
90272
|
return parseSecretRef;
|
|
90362
90273
|
}
|
|
90363
90274
|
});
|
|
90364
|
-
Object.defineProperty(exports, "parseSettingsArrayAdoptsFrom", {
|
|
90365
|
-
enumerable: true,
|
|
90366
|
-
get: function() {
|
|
90367
|
-
return parseSettingsArrayAdoptsFrom;
|
|
90368
|
-
}
|
|
90369
|
-
});
|
|
90370
|
-
Object.defineProperty(exports, "parseSettingsBrokersAdoptsFrom", {
|
|
90371
|
-
enumerable: true,
|
|
90372
|
-
get: function() {
|
|
90373
|
-
return parseSettingsBrokersAdoptsFrom;
|
|
90374
|
-
}
|
|
90375
|
-
});
|
|
90376
90275
|
Object.defineProperty(exports, "parseStreamParamsFormPatch", {
|
|
90377
90276
|
enumerable: true,
|
|
90378
90277
|
get: function() {
|
|
@@ -745,7 +745,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
745
745
|
return EventCategory;
|
|
746
746
|
}({});
|
|
747
747
|
//#endregion
|
|
748
|
-
//#region ../types/dist/sleep-
|
|
748
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
749
749
|
/**
|
|
750
750
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
751
751
|
* window to float samples (D455).
|
|
@@ -3657,7 +3657,13 @@ var RecordKindDeclarationSchema = z.object({
|
|
|
3657
3657
|
secretPaths: z.array(z.string().min(1)).default([]),
|
|
3658
3658
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
3659
3659
|
secretArrayKeys: z.record(z.string(), z.string()).default({}),
|
|
3660
|
-
/**
|
|
3660
|
+
/**
|
|
3661
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
3662
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
3663
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
3664
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
3665
|
+
* removal still sends it. Never set it.
|
|
3666
|
+
*/
|
|
3661
3667
|
adoptsFrom: z.string().min(1).optional(),
|
|
3662
3668
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
3663
3669
|
transactFamily: z.string().min(1).optional(),
|
|
@@ -3732,7 +3738,6 @@ function defineRecordKinds(specs) {
|
|
|
3732
3738
|
maxDataBytes: spec.maxDataBytes,
|
|
3733
3739
|
secretPaths: [...secretPaths],
|
|
3734
3740
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
3735
|
-
adoptsFrom: spec.adoptsFrom,
|
|
3736
3741
|
transactFamily: spec.transactFamily,
|
|
3737
3742
|
entry: spec.entry === void 0 ? void 0 : {
|
|
3738
3743
|
title: spec.entry.title,
|
|
@@ -3749,30 +3754,6 @@ function defineRecordKinds(specs) {
|
|
|
3749
3754
|
}
|
|
3750
3755
|
return out;
|
|
3751
3756
|
}
|
|
3752
|
-
/** The wire form of a package's kinds: name -> declaration. */
|
|
3753
|
-
function declarationsOf(kinds) {
|
|
3754
|
-
return Object.fromEntries(Object.entries(kinds).map(([name, kind]) => [name, kind.declaration]));
|
|
3755
|
-
}
|
|
3756
|
-
/** When non-null, `from` names an addon-settings brokers blob, not a SQL table. */
|
|
3757
|
-
function parseSettingsBrokersAdoptsFrom(from) {
|
|
3758
|
-
if (!from.startsWith("@settings-brokers/")) return null;
|
|
3759
|
-
const addonId = from.slice(18);
|
|
3760
|
-
return addonId.length > 0 ? addonId : null;
|
|
3761
|
-
}
|
|
3762
|
-
/** When non-null, `from` names an addon-settings array blob, not a SQL table. */
|
|
3763
|
-
function parseSettingsArrayAdoptsFrom(from) {
|
|
3764
|
-
if (!from.startsWith("@settings-array/")) return null;
|
|
3765
|
-
const rest = from.slice(16);
|
|
3766
|
-
const slash = rest.indexOf("/");
|
|
3767
|
-
if (slash <= 0 || slash >= rest.length - 1) return null;
|
|
3768
|
-
const addonId = rest.slice(0, slash);
|
|
3769
|
-
const settingsKey = rest.slice(slash + 1);
|
|
3770
|
-
if (addonId.length === 0 || settingsKey.length === 0) return null;
|
|
3771
|
-
return {
|
|
3772
|
-
addonId,
|
|
3773
|
-
settingsKey
|
|
3774
|
-
};
|
|
3775
|
-
}
|
|
3776
3757
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
3777
3758
|
var CamProfileSchema = z.enum([
|
|
3778
3759
|
"high",
|
|
@@ -17227,11 +17208,12 @@ var DeclareKindResultSchema = z.object({
|
|
|
17227
17208
|
kindId: z.number().int(),
|
|
17228
17209
|
state: RecordKindStateSchema,
|
|
17229
17210
|
createdIndexes: z.array(z.string()),
|
|
17230
|
-
/**
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17211
|
+
/**
|
|
17212
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
17213
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
17214
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
17215
|
+
*/
|
|
17216
|
+
adoptionPending: z.null()
|
|
17235
17217
|
});
|
|
17236
17218
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
17237
17219
|
var SecretRefsList = z.array(z.string());
|
|
@@ -17419,13 +17401,13 @@ var StorageKindSchema = z.object({
|
|
|
17419
17401
|
declaration: RecordKindDeclarationSchema
|
|
17420
17402
|
});
|
|
17421
17403
|
/**
|
|
17422
|
-
* The collections retired by exact name
|
|
17423
|
-
*
|
|
17424
|
-
*
|
|
17425
|
-
*
|
|
17426
|
-
*
|
|
17427
|
-
*
|
|
17428
|
-
*
|
|
17404
|
+
* The collections retired by exact name by D870 (their data became keys of the
|
|
17405
|
+
* camera's settings). No addon declares any of them any more; the engine still
|
|
17406
|
+
* refuses one a running addon declared this boot. `dropCollection` may remove
|
|
17407
|
+
* these, the per-addon scoped `addon-settings` / `addon-devices` / `sections`
|
|
17408
|
+
* tables, and the tables of owners that are no longer installed - nothing else.
|
|
17409
|
+
* The records-migration leftovers (D871 `stats-5m`, the phase-0 tables) were
|
|
17410
|
+
* dropped by hand on the operator hubs and left this list with D900.
|
|
17429
17411
|
*/
|
|
17430
17412
|
var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
17431
17413
|
"stream-broker:probe-snapshots",
|
|
@@ -17433,19 +17415,7 @@ var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
|
17433
17415
|
"stream-broker:rtsp-tokens",
|
|
17434
17416
|
"notification-center:device-mutes",
|
|
17435
17417
|
"recorder:recording-configs",
|
|
17436
|
-
"pipeline-orchestrator:device-features"
|
|
17437
|
-
"pipeline-analytics:stats-5m",
|
|
17438
|
-
"pipeline-orchestrator:stats-5m",
|
|
17439
|
-
"vec_object_clip",
|
|
17440
|
-
"addon-devices",
|
|
17441
|
-
"sections",
|
|
17442
|
-
"provider-settings",
|
|
17443
|
-
"device-settings",
|
|
17444
|
-
"ai:budgets",
|
|
17445
|
-
"pipeline-analytics:retrain-dataset-versions",
|
|
17446
|
-
"training:dataset-versions",
|
|
17447
|
-
"benchmark:replay-runs",
|
|
17448
|
-
"viewer-settings-snapshots"
|
|
17418
|
+
"pipeline-orchestrator:device-features"
|
|
17449
17419
|
];
|
|
17450
17420
|
/** The per-addon blob tables a scoped name may carry. */
|
|
17451
17421
|
var STORAGE_ADMIN_SCOPED_BASES = [
|
|
@@ -17509,42 +17479,7 @@ var storageAdminCapability = {
|
|
|
17509
17479
|
readRecords: method(RecordQueryInputSchema.extend({
|
|
17510
17480
|
owner: z.string().min(1),
|
|
17511
17481
|
kind: RecordKindNameSchema
|
|
17512
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17513
|
-
/**
|
|
17514
|
-
* The migration copy path (D881): write rows into a kind AS ITS DECLARED
|
|
17515
|
-
* OWNER. Refused when that owner's manifest does not declare the kind.
|
|
17516
|
-
* Idempotent (a put by id, so a re-run resumes). A secret field carries a
|
|
17517
|
-
* keychain marker bound to the row's own ref - the operator script imports
|
|
17518
|
-
* the value first - and a plain string there is refused.
|
|
17519
|
-
*/
|
|
17520
|
-
adoptRecords: method(z.object({
|
|
17521
|
-
owner: z.string().min(1),
|
|
17522
|
-
kind: RecordKindNameSchema,
|
|
17523
|
-
records: z.array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17524
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17525
|
-
complete: z.boolean().optional()
|
|
17526
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), z.object({ adopted: z.number().int() }), {
|
|
17527
|
-
kind: "mutation",
|
|
17528
|
-
auth: "admin"
|
|
17529
|
-
}),
|
|
17530
|
-
/**
|
|
17531
|
-
* Read rows from a legacy KV table by physical name, without a running
|
|
17532
|
-
* `declareCollection`. Used by `records-adopt.ts` when the owner already
|
|
17533
|
-
* moved to records and the collection door refuses the name.
|
|
17534
|
-
*/
|
|
17535
|
-
readLegacyCollection: method(z.object({
|
|
17536
|
-
collection: z.string().min(1),
|
|
17537
|
-
cursor: z.string().optional(),
|
|
17538
|
-
limit: z.number().int().min(1).max(1e3).optional()
|
|
17539
|
-
}), z.object({
|
|
17540
|
-
rows: z.array(z.object({
|
|
17541
|
-
id: z.string(),
|
|
17542
|
-
data: z.record(z.string(), z.unknown())
|
|
17543
|
-
})),
|
|
17544
|
-
nextCursor: z.string().nullable()
|
|
17545
|
-
}), { auth: "admin" }),
|
|
17546
|
-
/** True when a declared kind lists `collection` as `adoptsFrom` and adoption finished. */
|
|
17547
|
-
isAdoptedLegacyTable: method(z.object({ collection: z.string().min(1) }), z.object({ adopted: z.boolean() }), { auth: "admin" })
|
|
17482
|
+
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17548
17483
|
}
|
|
17549
17484
|
};
|
|
17550
17485
|
/**
|
|
@@ -76966,6 +76901,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
76966
76901
|
addonId: null,
|
|
76967
76902
|
access: "view"
|
|
76968
76903
|
},
|
|
76904
|
+
"deviceHistory.queryMany": {
|
|
76905
|
+
capName: "device-history",
|
|
76906
|
+
capScope: "system",
|
|
76907
|
+
addonId: null,
|
|
76908
|
+
access: "view"
|
|
76909
|
+
},
|
|
76969
76910
|
"deviceHistory.queryNode": {
|
|
76970
76911
|
capName: "device-history",
|
|
76971
76912
|
capScope: "system",
|
|
@@ -82186,24 +82127,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82186
82127
|
addonId: null,
|
|
82187
82128
|
access: "create"
|
|
82188
82129
|
},
|
|
82189
|
-
"storageAdmin.adoptRecords": {
|
|
82190
|
-
capName: "storage-admin",
|
|
82191
|
-
capScope: "system",
|
|
82192
|
-
addonId: null,
|
|
82193
|
-
access: "create"
|
|
82194
|
-
},
|
|
82195
82130
|
"storageAdmin.dropCollection": {
|
|
82196
82131
|
capName: "storage-admin",
|
|
82197
82132
|
capScope: "system",
|
|
82198
82133
|
addonId: null,
|
|
82199
82134
|
access: "delete"
|
|
82200
82135
|
},
|
|
82201
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
82202
|
-
capName: "storage-admin",
|
|
82203
|
-
capScope: "system",
|
|
82204
|
-
addonId: null,
|
|
82205
|
-
access: "view"
|
|
82206
|
-
},
|
|
82207
82136
|
"storageAdmin.listKinds": {
|
|
82208
82137
|
capName: "storage-admin",
|
|
82209
82138
|
capScope: "system",
|
|
@@ -82216,12 +82145,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82216
82145
|
addonId: null,
|
|
82217
82146
|
access: "view"
|
|
82218
82147
|
},
|
|
82219
|
-
"storageAdmin.readLegacyCollection": {
|
|
82220
|
-
capName: "storage-admin",
|
|
82221
|
-
capScope: "system",
|
|
82222
|
-
addonId: null,
|
|
82223
|
-
access: "view"
|
|
82224
|
-
},
|
|
82225
82148
|
"storageAdmin.readRecords": {
|
|
82226
82149
|
capName: "storage-admin",
|
|
82227
82150
|
capScope: "system",
|
|
@@ -86307,12 +86230,6 @@ Object.freeze({
|
|
|
86307
86230
|
form: "single",
|
|
86308
86231
|
optional: false
|
|
86309
86232
|
}],
|
|
86310
|
-
"storageAdmin.adoptRecords": [{
|
|
86311
|
-
name: "records",
|
|
86312
|
-
form: "object-array",
|
|
86313
|
-
optional: false,
|
|
86314
|
-
itemField: "deviceId"
|
|
86315
|
-
}],
|
|
86316
86233
|
"storageAdmin.readRecords": [{
|
|
86317
86234
|
name: "deviceId",
|
|
86318
86235
|
form: "single",
|
|
@@ -88921,4 +88838,4 @@ function armRemovalReconcile(opts) {
|
|
|
88921
88838
|
return () => clearInterval(timer);
|
|
88922
88839
|
}
|
|
88923
88840
|
//#endregion
|
|
88924
|
-
export { PreferenceDeviceIdSchema as $,
|
|
88841
|
+
export { PreferenceDeviceIdSchema as $, isKeychainStoredField as $i, pickAppLinkHub as $n, DeviceRole as $r, describeComposableCaps as $t, DEVICE_SAN_CREDENTIAL_PREFIX as A, UnindexedFilterError as Ai, isVoidInput as An, streamCatalogCapability as Ar, buildCapabilityLookup as At, HISTORY_CATALOG as B, collectSecretMarkerRefs as Bi, logLevelAtMost as Bn, COMPOSER_ADDON_ID as Br, compositionSourceRefs as Bt, DATABASE_SNAPSHOT_TIMEOUT_MS as C, userError as Ca, ReadinessTimeoutError as Ci, isAppLinkBase as Cn, snapshotCapability as Cr, alertEpisodePayload as Ct, DEVICE_ENROLLMENT_TTL_MS as D, RecordUniqueViolationError as Di, isDefaultAppConnectionEndpoint as Dn, storageMigrationCapability as Dr, backupCapability as Dt, DERIVED_CAMERA_SILENCED_CAP_NAMES as E, RecordTooLargeError as Ei, isCredentialTokenPayload as En, storageCapability as Er, authProviderCapability as Et, DeviceStatusSchema as F, asString$1 as Fi, legacyModeOf as Fn, validateCustomAddress as Fr, cameraGridLayoutCapability as Ft, KeychainResetRecordSchema as G, defineRecordKinds as Gi, metricsProviderCapability as Gn, compositionFeatureEnabled as Gr, coreBlocksCapability as Gt, HUB_MDNS_TXT_KEYS as H, createEvent as Hi, mayReadLocation as Hn, cloneStatefulExpressionMemory as Hr, coreBlockComposition as Ht, DeviceTombstoneSchema as I, assertValidDeclaration as Ii, lifecycleJobSchema as In, vectorDimFromBase64 as Ir, canonicalIconKey as It, METHOD_ACCESS_MAP as J, expandCapMethods as Ji, normalizeCoreBlockWrite as Jn, compositionSourceKey as Jr, databaseSnapshotCapability as Jt, LOG_LEVEL_RANK as K, emitDownForOwnedCaps as Ki, modeMayWrite as Kn, compositionItemFieldPath as Kr, createDeviceExtensionProvider as Kt, FIRST_LEVEL_MACRO_CLASSES as L, buildSecretRef as Li, localNetworkCapability as Ln, vectorIndexDimConflictError as Lr, checkRoleAddress as Lt, DEVICE_TOMBSTONE_RETENTION_MS as M, WELL_KNOWN_TAB_MAP as Mi, keychainAdminCapability as Mn, supportedRuntimes as Mr, buildDeviceSignatureMessage as Mt, DataStoreDatabaseSchema as N, asJsonObject as Ni, keychainCapability as Nn, userManagementCapability as Nr, buildStreamParamsConfigSchema as Nt, DEVICE_HISTORY_ENERGY_KEY as O, RevConflictError as Oi, isLocationEnabled as On, storageOccupancyCapability as Or, bareAddonId as Ot, DeclaredDevices as P, asNumber as Pi, legacyAutoLinkIds as Pn, validateComposition as Pr, calendarsCapability as Pt, PREFERENCES_MAX_VALUE_BYTES as Q, isEvent as Qi, parseStreamParamsFormPatch as Qn, DeviceFeature as Qr, deriveBatteryPresence as Qt, FieldClaimModeSchema as R, collectSecretConfigKeys as Ri, locationIconKey as Rn, vectorStoreCapability as Rr, composerCapability as Rt, DATABASE_SNAPSHOT_SUFFIX as S, transformSecretWrite as Sa, ReadinessRegistry as Si, isAlertEpisodeSeverity as Sn, siteZoneKey as Sr, alertEpisodeId as St, DAY_NAMES as T, EventCategory as Ta, RecordNotFoundError as Ti, isCollectionArrayMethod as Tn, storageAdminCapability as Tr, armRemovalReconcile as Tt, KEYCHAIN_RESET_TRIGGER_ACTOR as U, customAction as Ui, mayWriteToLocation as Un, composedDeviceRef as Ur, coreBlockIdFromAddonId as Ut, HUB_MDNS_SERVICE_TYPE as V, collectZodSecretPaths as Vi, looseSchema as Vn, buildFfmpegArgs as Vr, coreBlockAddonId as Vt, KeychainAuditEntrySchema as W, defineCustomActions as Wi, memoizePinnedFfmpeg as Wn, composedDeviceStableId as Wr, coreBlockSourceKind as Wt, MOTION_CLOSE_AFTER_MS as X, hydrateSchema as Xi, objectInputDeclaresAddonId as Xn, disarmRoseMemory as Xr, decodeVectorBase64 as Xt, MINUTES_PER_DAY as Y, formatSecretScope as Yi, normalizeUnit as Yn, createStatefulExpressionMemory as Yr, declarationOwnerNodeId as Yt, NetworkTunnelStartedDataSchema as Z, isDeviceConfigCap as Zi, objectInputDeclaresRequiredDeviceId as Zn, toExpressionValue as Zr, defineExtensionSlotProvider as Zt, CalendarPreferencesSchema as _, secretTreeFromPaths as _a, RECORD_DELETE_BATCH as _i, formatDeviceRevoker as _n, scopesAllowAddon as _r, UNATTRIBUTED_BUCKET_KEY as _t, ApiKeyRecordSchema as a, mapSecretLeaves as aa, DATAPLANE_SECRET_HEADER as ai, deviceStateCapability as an, recordsCapability as ar, STORAGE_ACCESS_FALLBACK as at, CredentialTokenClaimsSchema as b, toNodeId as ba, REMOVE_LEAF as bi, interpolate as bn, settingsStoreCapability as br, addonSettingsCapability as bt, CAMERA_SWITCH_ORDER as c, normalizeSecretOwner as ca, DeclarationRefusedError as ci, enumerateItemArrayFields as cn, resolveAppConnections as cr, STREAM_PROFILE_META as ct, CATALOG_LANGS as d, parseSecretRef as da, HISTORY_DEFAULT_MIN_INTERVAL_MS as di, evictionPolicyOfLocation as dn, resolveCoreBlockFiles as dr, SsoBridgeClaimsSchema as dt, isSecretClear as ea, DeviceType as ei, deviceCredentialsCapability as en, planComposition as er, PreferenceNamespaceSchema as et, COMPOSED_ITEM_FIXED_FIELDS as f, readinessKey as fa, InvalidRecordError as fi, expandContainer as fn, resolveHubAddressRoles as fr, StorageCleanupJobSchema as ft, CREDENTIAL_TOKEN_AUDIENCE as g, scopeKey as ga, RECORD_BATCH_MAX_BYTES as gi, foldSnapshotByFunction as gn, runtimeStatePolicyFor as gr, TokenScopeSchema as gt, CORE_BLOCK_ADDON_PREFIX as h, resolveSecretMarkers as ha, RECORD_BATCH_MAX as hi, filesystemBrowseCapability as hn, resolveNotificationTapAddress as hr, StorageMigrationJobSchema as ht, AlertSchema as i, makeSecretMarker as ia, CALLER_STAMPED_CAPABILITIES as ii, deviceRemovalHookCapability as in, recordEntriesCapability as ir, RecordingStatusSchema as it, DEVICE_SAN_USER_PREFIX as j, UnknownRecordKindError as ji, kebabToCamel as jn, streamQualityLabel as jr, buildDeviceEnrollmentLink as jt, DEVICE_NONCE_TTL_MS as k, SECRET_CLEAR as ki, isObjectInput as kn, storageProviderCapability as kr, batteryCapability as kt, CAMSTACK_APP_LINK_ORIGIN as l, parseJsonObject as la, FilterRequiredError as li, enumerateSchemaFields as ln, resolveBucketMs as lr, ScopedTokenSchema as lt, CORE_BLOCKS_ADDON_ID as m, resolveCapMount as ma, PlaintextSecretError as mi, extractNestedAddonId as mn, resolveMethodAuth as mr, StorageLocationTypeSchema as mt, AGENT_MDNS_TXT_KEYS as n, isSecretMarkerLike as na, BaseAddon as ni, deviceHistoryCapability as nn, procedureAuthKey as nr, RECORDING_SOURCE_CAMSTACK_ADDON as nt, BaseDevice as o, nodePin as oa, DEVICE_SETTINGS_CONTRIBUTION_METHODS as oi, deviceStatusCapability as on, reducePoints as or, STORAGE_ADMIN_MOVED_COLLECTIONS as ot, COMPOSER_RUNNER_ID as p, recordSecretRef as pa, NoCallerError as pi, expressionContainsBuiltinCall as pn, resolveLocationMode as pr, StorageLocationModeSchema as pt, LegacyStorageLocationDefaultSchema as q, emitReadiness as qi, motionCapability as qn, compositionSliceKey as qr, dataStoreProviderCapability as qt, ALL_CAPABILITY_DEFINITIONS as r, isSecretRefOwnedBy as ra, BatchTooLargeError as ri, deviceManagerCapability as rn, ptzAutotrackCapability as rr, ROOT_BUCKET_KEY as rt, BatteryStatusSchema as s, normalizeNodeId as sa, DEVICE_STATUS_METHOD as si, enumerateInferenceDevices as sn, replacedFieldKeys as sr, STORAGE_ADMIN_SCOPED_BASES as st, AGENT_MDNS_SERVICE_TYPE as t, isSecretMarker as ta, errMsg as ti, deviceExtensionCapability as tn, platformProbeCapability as tr, PreferenceValueSchema as tt, CAP_NAMES_WITH_STATUS as u, parseJsonUnknown as ua, ForeignSecretMarkerError as ui, evaluateCompositionField as un, resolveCoreBlockEntry as ur, ServerNameSchema as ut, CatalogFileSchema as v, secretTreeFromSchema as va, RECORD_SWEEP_INTERVAL_MS as vi, formatMinutes as vn, scopesAllowDeviceCap as vr, UserRecordSchema as vt, DATA_STORE_DATABASES as w, withoutCallerStamp as wa, RecordKindDeclarationSchema as wi, isArrayOutputSchema as wn, splitTranslationRef as wr, alertsCapability as wt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as x, toSecretFieldView as xa, RUNTIME_DEFAULTS as xi, isAlertEpisodeOpen as xn, shortHostname as xr, addonWidgetsCapability as xt, CoreBlockSchema as y, sleep as ya, REDACTED_SECRET as yi, gbToBytes as yn, scoreRuntimes as yr, addonPagesCapability as yt, FieldClaimSchema as z, collectSecretLeaves as zi, logDestinationCapability as zn, withLocationMode as zr, compositionFieldKey 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-DUHEp_09.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 RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-
|
|
1
|
+
import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-NKbwWovZ.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,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Ca as userError } from "./dist-Wy8cTxg6.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-DK__ETIe.mjs";
|
|
4
|
-
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-
|
|
4
|
+
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-Iw3RSQup.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Bn-RNanh.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-C4cOo48M.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-Dnr_nIVx.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|