@camstack/system 1.2.461 → 1.2.462
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 +21 -276
- package/dist/addon-runner.mjs +21 -276
- package/dist/{agent-https-Dnr_nIVx.js → agent-https-C6M6apPV.js} +1 -1
- package/dist/{agent-https-Iw3RSQup.mjs → agent-https-CC7jpktS.mjs} +1 -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.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +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.d.ts +1 -3
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +51 -502
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +51 -502
- package/dist/builtins/backup-orchestrator/destination-policy.d.ts +5 -21
- package/dist/builtins/backup-orchestrator/record-kinds.d.ts +0 -2
- package/dist/builtins/backup-orchestrator/schedule-store.d.ts +5 -13
- package/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +9 -19
- 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/cluster-agent/record-kinds.d.ts +0 -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-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 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- 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 +2 -12
- package/dist/builtins/local-auth/local-auth.addon.js +52 -191
- package/dist/builtins/local-auth/local-auth.addon.mjs +52 -191
- package/dist/builtins/local-auth/oauth-session-manager.d.ts +13 -4
- package/dist/builtins/local-auth/record-kinds.d.ts +1 -1
- 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/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 -9
- 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 -8
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +0 -2
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -28
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +1 -2
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +6 -170
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +6 -170
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +3 -17
- 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 +3 -3
- package/dist/builtins/system-config/system-config.addon.mjs +280 -280
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-b0e_2I-D.js → composition-sources-BPnpB9XG.js} +1 -1
- package/dist/{composition-sources-DNRZWR1j.mjs → composition-sources-BlcYzFwY.mjs} +1 -1
- package/dist/{constants-6OeJiZgi.js → constants-7ZMxWr8Z.js} +1 -1
- package/dist/{constants-BnkOdj9Q.mjs → constants-CH5UXe_G.mjs} +1 -1
- package/dist/{device-ca-Bnkw8GyU.mjs → device-ca-BU_gnd-q.mjs} +1 -1
- package/dist/{device-ca-CPTDs--d.js → device-ca-CUEx7sti.js} +1 -1
- package/dist/{dist-Wy8cTxg6.mjs → dist-8tWIDoWp.mjs} +15 -55
- package/dist/{dist-Bn-RNanh.js → dist-Ct-4tTeX.js} +14 -66
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-CJu0nhla.mjs → hub-mdns-ciao-Cuy7LUdz.mjs} +2 -2
- package/dist/{hub-mdns-ciao-CTBTlia4.js → hub-mdns-ciao-DJ-Amqd7.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +88 -240
- package/dist/index.mjs +89 -236
- package/dist/kernel/index.d.ts +0 -1
- package/dist/kernel/moleculer/runner-addon-settings.d.ts +1 -6
- package/dist/kernel/moleculer/runner-device-settings.d.ts +2 -2
- package/dist/{restore-archive-CM23Pq9B.mjs → restore-archive-BDua3jO6.mjs} +78 -78
- package/dist/{restore-archive-DM1OBYq4.js → restore-archive-HwOA83v3.js} +1 -1
- package/dist/{retired-settings-keys-D_VwZiDt.js → retired-settings-keys-CGUqX-Oz.js} +0 -6
- package/dist/{retired-settings-keys-Bhwe4ymb.mjs → retired-settings-keys-C_Kjp-Bj.mjs} +1 -1
- package/dist/{wal-maintenance-Bj_MmDkr.mjs → wal-maintenance-BvzVehem.mjs} +0 -0
- package/dist/{wal-maintenance-CaJjuLHq.js → wal-maintenance-DBvuVU9s.js} +0 -0
- package/package.json +1 -1
- package/dist/builtins/sqlite-storage/retired-collections.d.ts +0 -146
- package/dist/kernel/legacy-blob-guard.d.ts +0 -63
|
@@ -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-Ct-4tTeX.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 {
|
|
1
|
+
import { Ln as logDestinationCapability, ei as BaseAddon } from "../../dist-8tWIDoWp.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 {
|
|
1
|
+
import { $r as errMsg, Kr as compositionSourceKey } from "./dist-8tWIDoWp.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-Ct-4tTeX.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,
|
|
1
|
+
import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Fi as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-8tWIDoWp.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
|
|
@@ -17401,36 +17401,13 @@ var StorageKindSchema = z.object({
|
|
|
17401
17401
|
declaration: RecordKindDeclarationSchema
|
|
17402
17402
|
});
|
|
17403
17403
|
/**
|
|
17404
|
-
*
|
|
17405
|
-
*
|
|
17406
|
-
*
|
|
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.
|
|
17411
|
-
*/
|
|
17412
|
-
var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
17413
|
-
"stream-broker:probe-snapshots",
|
|
17414
|
-
"stream-broker:profile-map",
|
|
17415
|
-
"stream-broker:rtsp-tokens",
|
|
17416
|
-
"notification-center:device-mutes",
|
|
17417
|
-
"recorder:recording-configs",
|
|
17418
|
-
"pipeline-orchestrator:device-features"
|
|
17419
|
-
];
|
|
17420
|
-
/** The per-addon blob tables a scoped name may carry. */
|
|
17421
|
-
var STORAGE_ADMIN_SCOPED_BASES = [
|
|
17422
|
-
"addon-settings",
|
|
17423
|
-
"addon-devices",
|
|
17424
|
-
"sections"
|
|
17425
|
-
];
|
|
17426
|
-
/**
|
|
17427
|
-
* storage-admin - the operator's maintenance reach into the settings database:
|
|
17428
|
-
* list its tables, drop one that nothing owns any more (D870).
|
|
17404
|
+
* storage-admin - the operator's maintenance reach into the databases: list
|
|
17405
|
+
* their tables and record kinds, read a kind for diagnosis. Read-only: a table
|
|
17406
|
+
* the code no longer creates is dropped by hand, offline (D901).
|
|
17429
17407
|
*
|
|
17430
17408
|
* Hub-only, internal and `auth: 'admin'` explicitly (`internal` does not gate
|
|
17431
|
-
* the mount, see `data-store-provider`).
|
|
17432
|
-
* with the
|
|
17433
|
-
* migration and is marked for removal once the last hub has run it.
|
|
17409
|
+
* the mount, see `data-store-provider`). `listTables` is LOGGED by the engine
|
|
17410
|
+
* with the counts.
|
|
17434
17411
|
*
|
|
17435
17412
|
* `listTables` is READ-ONLY: it never creates a table, which `count` and `get`
|
|
17436
17413
|
* on an undeclared scoped name used to do.
|
|
@@ -17446,26 +17423,6 @@ var storageAdminCapability = {
|
|
|
17446
17423
|
* optionally only those owned by `ownerPrefix`. Reads only.
|
|
17447
17424
|
*/
|
|
17448
17425
|
listTables: method(z.object({ ownerPrefix: z.string().min(1).optional() }), z.object({ tables: z.array(StorageTableSchema) }), { auth: "admin" }),
|
|
17449
|
-
/**
|
|
17450
|
-
* Drop one table. REFUSES when an addon declared it since the engine
|
|
17451
|
-
* started (a running addon still owns it), when it is an engine or
|
|
17452
|
-
* canonical table, when it does not exist, or when its row count is not
|
|
17453
|
-
* `expectRows` - the caller states what it believes it is deleting. The
|
|
17454
|
-
* engine also refuses anything but `<owner>:(addon-settings|addon-devices|
|
|
17455
|
-
* sections)`, the retired collections by name, and tables of owners that
|
|
17456
|
-
* are not installed (and refuses when it cannot read the installed list).
|
|
17457
|
-
* Removed with the D870 migration script once the last hub ran it.
|
|
17458
|
-
*/
|
|
17459
|
-
dropCollection: method(z.object({
|
|
17460
|
-
collection: z.string().min(1),
|
|
17461
|
-
expectRows: z.number().int().nonnegative()
|
|
17462
|
-
}), z.object({
|
|
17463
|
-
dropped: z.literal(true),
|
|
17464
|
-
rows: z.number().int().nonnegative()
|
|
17465
|
-
}), {
|
|
17466
|
-
kind: "mutation",
|
|
17467
|
-
auth: "admin"
|
|
17468
|
-
}),
|
|
17469
17426
|
/** Every record kind of both files with rows, a size estimate, class and retention (D881). */
|
|
17470
17427
|
listKinds: method(z.object({
|
|
17471
17428
|
owner: z.string().min(1).optional(),
|
|
@@ -45847,6 +45804,15 @@ var NcMediaPolicySchema = z.object({
|
|
|
45847
45804
|
* Replaces `zoneCrop`.
|
|
45848
45805
|
*/
|
|
45849
45806
|
showTriggerZone: z.boolean().optional(),
|
|
45807
|
+
/**
|
|
45808
|
+
* Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
|
|
45809
|
+
* through the track's positions up to the frame shown, the same path the
|
|
45810
|
+
* debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
|
|
45811
|
+
* is drawn on: a `crop` maps the path into the crop and clips it. Valid only
|
|
45812
|
+
* on a rule whose subject is a tracked object (refused on a sound rule);
|
|
45813
|
+
* dropped on `image: 'none'`. Absent = off.
|
|
45814
|
+
*/
|
|
45815
|
+
showSubjectPath: z.boolean().optional(),
|
|
45850
45816
|
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
45851
45817
|
attach: z.enum([
|
|
45852
45818
|
"best",
|
|
@@ -82127,12 +82093,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82127
82093
|
addonId: null,
|
|
82128
82094
|
access: "create"
|
|
82129
82095
|
},
|
|
82130
|
-
"storageAdmin.dropCollection": {
|
|
82131
|
-
capName: "storage-admin",
|
|
82132
|
-
capScope: "system",
|
|
82133
|
-
addonId: null,
|
|
82134
|
-
access: "delete"
|
|
82135
|
-
},
|
|
82136
82096
|
"storageAdmin.listKinds": {
|
|
82137
82097
|
capName: "storage-admin",
|
|
82138
82098
|
capScope: "system",
|
|
@@ -88838,4 +88798,4 @@ function armRemovalReconcile(opts) {
|
|
|
88838
88798
|
return () => clearInterval(timer);
|
|
88839
88799
|
}
|
|
88840
88800
|
//#endregion
|
|
88841
|
-
export { PreferenceDeviceIdSchema as $,
|
|
88801
|
+
export { PreferenceDeviceIdSchema as $, isSecretMarker as $i, platformProbeCapability as $n, errMsg as $r, deviceExtensionCapability as $t, DEVICE_SAN_CREDENTIAL_PREFIX as A, WELL_KNOWN_TAB_MAP as Ai, keychainAdminCapability as An, supportedRuntimes as Ar, buildDeviceSignatureMessage as At, HISTORY_CATALOG as B, createEvent as Bi, mayReadLocation as Bn, cloneStatefulExpressionMemory as Br, coreBlockComposition as Bt, DATABASE_SNAPSHOT_TIMEOUT_MS as C, EventCategory as Ca, RecordNotFoundError as Ci, isCollectionArrayMethod as Cn, storageAdminCapability as Cr, armRemovalReconcile as Ct, DEVICE_ENROLLMENT_TTL_MS as D, SECRET_CLEAR as Di, isObjectInput as Dn, storageProviderCapability as Dr, batteryCapability as Dt, DERIVED_CAMERA_SILENCED_CAP_NAMES as E, RevConflictError as Ei, isLocationEnabled as En, storageOccupancyCapability as Er, bareAddonId as Et, DeviceStatusSchema as F, buildSecretRef as Fi, localNetworkCapability as Fn, vectorIndexDimConflictError as Fr, checkRoleAddress as Ft, KeychainResetRecordSchema as G, emitReadiness as Gi, motionCapability as Gn, compositionSliceKey as Gr, dataStoreProviderCapability as Gt, HUB_MDNS_TXT_KEYS as H, defineCustomActions as Hi, memoizePinnedFfmpeg as Hn, composedDeviceStableId as Hr, coreBlockSourceKind as Ht, DeviceTombstoneSchema as I, collectSecretConfigKeys as Ii, locationIconKey as In, vectorStoreCapability as Ir, composerCapability as It, METHOD_ACCESS_MAP as J, hydrateSchema as Ji, objectInputDeclaresAddonId as Jn, disarmRoseMemory as Jr, decodeVectorBase64 as Jt, LOG_LEVEL_RANK as K, expandCapMethods as Ki, normalizeCoreBlockWrite as Kn, compositionSourceKey as Kr, databaseSnapshotCapability as Kt, FIRST_LEVEL_MACRO_CLASSES as L, collectSecretLeaves as Li, logDestinationCapability as Ln, withLocationMode as Lr, compositionFieldKey as Lt, DEVICE_TOMBSTONE_RETENTION_MS as M, asNumber as Mi, legacyAutoLinkIds as Mn, validateComposition as Mr, calendarsCapability as Mt, DataStoreDatabaseSchema as N, asString$1 as Ni, legacyModeOf as Nn, validateCustomAddress as Nr, cameraGridLayoutCapability as Nt, DEVICE_HISTORY_ENERGY_KEY as O, UnindexedFilterError as Oi, isVoidInput as On, streamCatalogCapability as Or, buildCapabilityLookup as Ot, DeclaredDevices as P, assertValidDeclaration as Pi, lifecycleJobSchema as Pn, vectorDimFromBase64 as Pr, canonicalIconKey as Pt, PREFERENCES_MAX_VALUE_BYTES as Q, isSecretClear as Qi, planComposition as Qn, DeviceType as Qr, deviceCredentialsCapability as Qt, FieldClaimModeSchema as R, collectSecretMarkerRefs as Ri, logLevelAtMost as Rn, COMPOSER_ADDON_ID as Rr, compositionSourceRefs as Rt, DATABASE_SNAPSHOT_SUFFIX as S, withoutCallerStamp as Sa, RecordKindDeclarationSchema as Si, isArrayOutputSchema as Sn, splitTranslationRef as Sr, alertsCapability as St, DAY_NAMES as T, RecordUniqueViolationError as Ti, isDefaultAppConnectionEndpoint as Tn, storageMigrationCapability as Tr, backupCapability as Tt, KEYCHAIN_RESET_TRIGGER_ACTOR as U, defineRecordKinds as Ui, metricsProviderCapability as Un, compositionFeatureEnabled as Ur, coreBlocksCapability as Ut, HUB_MDNS_SERVICE_TYPE as V, customAction as Vi, mayWriteToLocation as Vn, composedDeviceRef as Vr, coreBlockIdFromAddonId as Vt, KeychainAuditEntrySchema as W, emitDownForOwnedCaps as Wi, modeMayWrite as Wn, compositionItemFieldPath as Wr, createDeviceExtensionProvider as Wt, MOTION_CLOSE_AFTER_MS as X, isEvent as Xi, parseStreamParamsFormPatch as Xn, DeviceFeature as Xr, deriveBatteryPresence as Xt, MINUTES_PER_DAY as Y, isDeviceConfigCap as Yi, objectInputDeclaresRequiredDeviceId as Yn, toExpressionValue as Yr, defineExtensionSlotProvider as Yt, NetworkTunnelStartedDataSchema as Z, isKeychainStoredField as Zi, pickAppLinkHub as Zn, DeviceRole as Zr, describeComposableCaps as Zt, CalendarPreferencesSchema as _, sleep as _a, REDACTED_SECRET as _i, gbToBytes as _n, scoreRuntimes as _r, addonPagesCapability as _t, ApiKeyRecordSchema as a, normalizeNodeId as aa, DEVICE_STATUS_METHOD as ai, enumerateInferenceDevices as an, replacedFieldKeys as ar, STORAGE_ACCESS_FALLBACK as at, CredentialTokenClaimsSchema as b, transformSecretWrite as ba, ReadinessRegistry as bi, isAlertEpisodeSeverity as bn, siteZoneKey as br, alertEpisodeId as bt, CAMERA_SWITCH_ORDER as c, parseJsonUnknown as ca, ForeignSecretMarkerError as ci, evaluateCompositionField as cn, resolveCoreBlockEntry as cr, ServerNameSchema as ct, CATALOG_LANGS as d, recordSecretRef as da, NoCallerError as di, expressionContainsBuiltinCall as dn, resolveLocationMode as dr, StorageLocationModeSchema as dt, isSecretMarkerLike as ea, BaseAddon as ei, deviceHistoryCapability as en, procedureAuthKey as er, PreferenceNamespaceSchema as et, COMPOSED_ITEM_FIXED_FIELDS as f, resolveCapMount as fa, PlaintextSecretError as fi, extractNestedAddonId as fn, resolveMethodAuth as fr, StorageLocationTypeSchema as ft, CREDENTIAL_TOKEN_AUDIENCE as g, secretTreeFromSchema as ga, RECORD_SWEEP_INTERVAL_MS as gi, formatMinutes as gn, scopesAllowDeviceCap as gr, UserRecordSchema as gt, CORE_BLOCK_ADDON_PREFIX as h, secretTreeFromPaths as ha, RECORD_DELETE_BATCH as hi, formatDeviceRevoker as hn, scopesAllowAddon as hr, UNATTRIBUTED_BUCKET_KEY as ht, AlertSchema as i, nodePin as ia, DEVICE_SETTINGS_CONTRIBUTION_METHODS as ii, deviceStatusCapability as in, reducePoints as ir, RecordingStatusSchema as it, DEVICE_SAN_USER_PREFIX as j, asJsonObject as ji, keychainCapability as jn, userManagementCapability as jr, buildStreamParamsConfigSchema as jt, DEVICE_NONCE_TTL_MS as k, UnknownRecordKindError as ki, kebabToCamel as kn, streamQualityLabel as kr, buildDeviceEnrollmentLink as kt, CAMSTACK_APP_LINK_ORIGIN as l, parseSecretRef as la, HISTORY_DEFAULT_MIN_INTERVAL_MS as li, evictionPolicyOfLocation as ln, resolveCoreBlockFiles as lr, SsoBridgeClaimsSchema as lt, CORE_BLOCKS_ADDON_ID as m, scopeKey as ma, RECORD_BATCH_MAX_BYTES as mi, foldSnapshotByFunction as mn, runtimeStatePolicyFor as mr, TokenScopeSchema as mt, AGENT_MDNS_TXT_KEYS as n, makeSecretMarker as na, CALLER_STAMPED_CAPABILITIES as ni, deviceRemovalHookCapability as nn, recordEntriesCapability as nr, RECORDING_SOURCE_CAMSTACK_ADDON as nt, BaseDevice as o, normalizeSecretOwner as oa, DeclarationRefusedError as oi, enumerateItemArrayFields as on, resolveAppConnections as or, STREAM_PROFILE_META as ot, COMPOSER_RUNNER_ID as p, resolveSecretMarkers as pa, RECORD_BATCH_MAX as pi, filesystemBrowseCapability as pn, resolveNotificationTapAddress as pr, StorageMigrationJobSchema as pt, LegacyStorageLocationDefaultSchema as q, formatSecretScope as qi, normalizeUnit as qn, createStatefulExpressionMemory as qr, declarationOwnerNodeId as qt, ALL_CAPABILITY_DEFINITIONS as r, mapSecretLeaves as ra, DATAPLANE_SECRET_HEADER as ri, deviceStateCapability as rn, recordsCapability as rr, ROOT_BUCKET_KEY as rt, BatteryStatusSchema as s, parseJsonObject as sa, FilterRequiredError as si, enumerateSchemaFields as sn, resolveBucketMs as sr, ScopedTokenSchema as st, AGENT_MDNS_SERVICE_TYPE as t, isSecretRefOwnedBy as ta, BatchTooLargeError as ti, deviceManagerCapability as tn, ptzAutotrackCapability as tr, PreferenceValueSchema as tt, CAP_NAMES_WITH_STATUS as u, readinessKey as ua, InvalidRecordError as ui, expandContainer as un, resolveHubAddressRoles as ur, StorageCleanupJobSchema as ut, CatalogFileSchema as v, toNodeId as va, REMOVE_LEAF as vi, interpolate as vn, settingsStoreCapability as vr, addonSettingsCapability as vt, DATA_STORE_DATABASES as w, RecordTooLargeError as wi, isCredentialTokenPayload as wn, storageCapability as wr, authProviderCapability as wt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as x, userError as xa, ReadinessTimeoutError as xi, isAppLinkBase as xn, snapshotCapability as xr, alertEpisodePayload as xt, CoreBlockSchema as y, toSecretFieldView as ya, RUNTIME_DEFAULTS as yi, isAlertEpisodeOpen as yn, shortHostname as yr, addonWidgetsCapability as yt, FieldClaimSchema as z, collectZodSecretPaths as zi, looseSchema as zn, buildFfmpegArgs as zr, coreBlockAddonId as zt };
|
|
@@ -17401,36 +17401,13 @@ var StorageKindSchema = zod.z.object({
|
|
|
17401
17401
|
declaration: RecordKindDeclarationSchema
|
|
17402
17402
|
});
|
|
17403
17403
|
/**
|
|
17404
|
-
*
|
|
17405
|
-
*
|
|
17406
|
-
*
|
|
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.
|
|
17411
|
-
*/
|
|
17412
|
-
var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
17413
|
-
"stream-broker:probe-snapshots",
|
|
17414
|
-
"stream-broker:profile-map",
|
|
17415
|
-
"stream-broker:rtsp-tokens",
|
|
17416
|
-
"notification-center:device-mutes",
|
|
17417
|
-
"recorder:recording-configs",
|
|
17418
|
-
"pipeline-orchestrator:device-features"
|
|
17419
|
-
];
|
|
17420
|
-
/** The per-addon blob tables a scoped name may carry. */
|
|
17421
|
-
var STORAGE_ADMIN_SCOPED_BASES = [
|
|
17422
|
-
"addon-settings",
|
|
17423
|
-
"addon-devices",
|
|
17424
|
-
"sections"
|
|
17425
|
-
];
|
|
17426
|
-
/**
|
|
17427
|
-
* storage-admin - the operator's maintenance reach into the settings database:
|
|
17428
|
-
* list its tables, drop one that nothing owns any more (D870).
|
|
17404
|
+
* storage-admin - the operator's maintenance reach into the databases: list
|
|
17405
|
+
* their tables and record kinds, read a kind for diagnosis. Read-only: a table
|
|
17406
|
+
* the code no longer creates is dropped by hand, offline (D901).
|
|
17429
17407
|
*
|
|
17430
17408
|
* Hub-only, internal and `auth: 'admin'` explicitly (`internal` does not gate
|
|
17431
|
-
* the mount, see `data-store-provider`).
|
|
17432
|
-
* with the
|
|
17433
|
-
* migration and is marked for removal once the last hub has run it.
|
|
17409
|
+
* the mount, see `data-store-provider`). `listTables` is LOGGED by the engine
|
|
17410
|
+
* with the counts.
|
|
17434
17411
|
*
|
|
17435
17412
|
* `listTables` is READ-ONLY: it never creates a table, which `count` and `get`
|
|
17436
17413
|
* on an undeclared scoped name used to do.
|
|
@@ -17446,26 +17423,6 @@ var storageAdminCapability = {
|
|
|
17446
17423
|
* optionally only those owned by `ownerPrefix`. Reads only.
|
|
17447
17424
|
*/
|
|
17448
17425
|
listTables: method(zod.z.object({ ownerPrefix: zod.z.string().min(1).optional() }), zod.z.object({ tables: zod.z.array(StorageTableSchema) }), { auth: "admin" }),
|
|
17449
|
-
/**
|
|
17450
|
-
* Drop one table. REFUSES when an addon declared it since the engine
|
|
17451
|
-
* started (a running addon still owns it), when it is an engine or
|
|
17452
|
-
* canonical table, when it does not exist, or when its row count is not
|
|
17453
|
-
* `expectRows` - the caller states what it believes it is deleting. The
|
|
17454
|
-
* engine also refuses anything but `<owner>:(addon-settings|addon-devices|
|
|
17455
|
-
* sections)`, the retired collections by name, and tables of owners that
|
|
17456
|
-
* are not installed (and refuses when it cannot read the installed list).
|
|
17457
|
-
* Removed with the D870 migration script once the last hub ran it.
|
|
17458
|
-
*/
|
|
17459
|
-
dropCollection: method(zod.z.object({
|
|
17460
|
-
collection: zod.z.string().min(1),
|
|
17461
|
-
expectRows: zod.z.number().int().nonnegative()
|
|
17462
|
-
}), zod.z.object({
|
|
17463
|
-
dropped: zod.z.literal(true),
|
|
17464
|
-
rows: zod.z.number().int().nonnegative()
|
|
17465
|
-
}), {
|
|
17466
|
-
kind: "mutation",
|
|
17467
|
-
auth: "admin"
|
|
17468
|
-
}),
|
|
17469
17426
|
/** Every record kind of both files with rows, a size estimate, class and retention (D881). */
|
|
17470
17427
|
listKinds: method(zod.z.object({
|
|
17471
17428
|
owner: zod.z.string().min(1).optional(),
|
|
@@ -45847,6 +45804,15 @@ var NcMediaPolicySchema = zod.z.object({
|
|
|
45847
45804
|
* Replaces `zoneCrop`.
|
|
45848
45805
|
*/
|
|
45849
45806
|
showTriggerZone: zod.z.boolean().optional(),
|
|
45807
|
+
/**
|
|
45808
|
+
* Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
|
|
45809
|
+
* through the track's positions up to the frame shown, the same path the
|
|
45810
|
+
* debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
|
|
45811
|
+
* is drawn on: a `crop` maps the path into the crop and clips it. Valid only
|
|
45812
|
+
* on a rule whose subject is a tracked object (refused on a sound rule);
|
|
45813
|
+
* dropped on `image: 'none'`. Absent = off.
|
|
45814
|
+
*/
|
|
45815
|
+
showSubjectPath: zod.z.boolean().optional(),
|
|
45850
45816
|
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
45851
45817
|
attach: zod.z.enum([
|
|
45852
45818
|
"best",
|
|
@@ -82127,12 +82093,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
82127
82093
|
addonId: null,
|
|
82128
82094
|
access: "create"
|
|
82129
82095
|
},
|
|
82130
|
-
"storageAdmin.dropCollection": {
|
|
82131
|
-
capName: "storage-admin",
|
|
82132
|
-
capScope: "system",
|
|
82133
|
-
addonId: null,
|
|
82134
|
-
access: "delete"
|
|
82135
|
-
},
|
|
82136
82096
|
"storageAdmin.listKinds": {
|
|
82137
82097
|
capName: "storage-admin",
|
|
82138
82098
|
capScope: "system",
|
|
@@ -89390,18 +89350,6 @@ Object.defineProperty(exports, "STORAGE_ACCESS_FALLBACK", {
|
|
|
89390
89350
|
return STORAGE_ACCESS_FALLBACK;
|
|
89391
89351
|
}
|
|
89392
89352
|
});
|
|
89393
|
-
Object.defineProperty(exports, "STORAGE_ADMIN_MOVED_COLLECTIONS", {
|
|
89394
|
-
enumerable: true,
|
|
89395
|
-
get: function() {
|
|
89396
|
-
return STORAGE_ADMIN_MOVED_COLLECTIONS;
|
|
89397
|
-
}
|
|
89398
|
-
});
|
|
89399
|
-
Object.defineProperty(exports, "STORAGE_ADMIN_SCOPED_BASES", {
|
|
89400
|
-
enumerable: true,
|
|
89401
|
-
get: function() {
|
|
89402
|
-
return STORAGE_ADMIN_SCOPED_BASES;
|
|
89403
|
-
}
|
|
89404
|
-
});
|
|
89405
89353
|
Object.defineProperty(exports, "STREAM_PROFILE_META", {
|
|
89406
89354
|
enumerable: true,
|
|
89407
89355
|
get: function() {
|
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-DBvuVU9s.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-BvzVehem.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 { xa as userError } from "./dist-8tWIDoWp.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-CC7jpktS.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-Ct-4tTeX.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-C6M6apPV.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");
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export type { HubMdnsAnnouncement, HubMdnsHandle, HubMdnsPublisher } from "./bui
|
|
|
136
136
|
export { IntegrationRegistry } from "./builtins/sqlite-storage/integration-registry.js";
|
|
137
137
|
export type { IntegrationRecordStores } from "./builtins/sqlite-storage/integration-registry.js";
|
|
138
138
|
export { integrationRegistryRecordKinds, INTEGRATIONS_LEGACY, INTEGRATION_SETTINGS_LEGACY } from "./builtins/sqlite-storage/integration-record-kinds.js";
|
|
139
|
-
export { clusterAgentRecordKinds, clusterNodeHistoryRecordKind, ClusterNodeHistoryBodySchema
|
|
139
|
+
export { clusterAgentRecordKinds, clusterNodeHistoryRecordKind, ClusterNodeHistoryBodySchema } from "./builtins/cluster-agent/record-kinds.js";
|
|
140
140
|
export type { ClusterNodeHistoryBody } from "./builtins/cluster-agent/record-kinds.js";
|
|
141
141
|
export { storageOrchestratorRecordKinds, STORAGE_DRAIN_STATE_LEGACY } from "./builtins/storage-orchestrator/record-kinds.js";
|
|
142
142
|
export { backupOrchestratorRecordKinds, backupRecordStoresOf, type BackupRecordStores } from "./builtins/backup-orchestrator/record-kinds.js";
|