@camstack/system 1.2.431 → 1.2.432
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/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.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 +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/local-auth.addon.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- 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 +3 -3
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- 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 +2 -2
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-o5MPSlk6.js → composition-sources-CFlUdpO7.js} +1 -1
- package/dist/{composition-sources-Cw_TXEq9.mjs → composition-sources-DpbL38z3.mjs} +1 -1
- package/dist/{constants-CttE77VF.mjs → constants-B89vjrSm.mjs} +1 -1
- package/dist/{constants-BcNaVkvI.js → constants-DfP8V3eX.js} +1 -1
- package/dist/{device-ca-B-BTxeCj.mjs → device-ca-4IY98a_-.mjs} +1 -1
- package/dist/{device-ca-CKiqh2Iu.js → device-ca-BCyAPmIj.js} +1 -1
- package/dist/{dist-DxJdci75.js → dist-BCKOeWu_.js} +317 -1
- package/dist/{dist-CXG6muCR.mjs → dist-Bt8GTRHB.mjs} +317 -1
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/dist/{restore-archive-D_wBL1OO.mjs → restore-archive-Bh34W8J8.mjs} +1 -1
- package/dist/{restore-archive-CQJNoqRK.js → restore-archive-DhHH7VQp.js} +1 -1
- package/dist/{retired-settings-keys-EmDe11cP.mjs → retired-settings-keys-CmcEitC2.mjs} +1 -1
- package/dist/{retired-settings-keys-g1oifXxR.js → retired-settings-keys-u3Wwkdrq.js} +1 -1
- package/dist/{wal-maintenance-BW1LIHi0.js → wal-maintenance-ChzCPUi2.js} +0 -0
- package/dist/{wal-maintenance-vhPZLYuA.mjs → wal-maintenance-uQGuStFW.mjs} +0 -0
- package/package.json +1 -1
|
@@ -718,7 +718,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
718
718
|
return EventCategory;
|
|
719
719
|
}({});
|
|
720
720
|
//#endregion
|
|
721
|
-
//#region ../types/dist/sleep-
|
|
721
|
+
//#region ../types/dist/sleep--g-h2_c_.mjs
|
|
722
722
|
/**
|
|
723
723
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
724
724
|
* window to float samples (D455).
|
|
@@ -16213,6 +16213,241 @@ var keychainCapability = {
|
|
|
16213
16213
|
getState: method(z.object({}), KeychainStateSchema, { auth: "admin" })
|
|
16214
16214
|
}
|
|
16215
16215
|
};
|
|
16216
|
+
/**
|
|
16217
|
+
* device-history — the ONE mechanism for numeric history (D850).
|
|
16218
|
+
*
|
|
16219
|
+
* A device value is recorded because its capability says so (the `history`
|
|
16220
|
+
* block of a `*.cap.ts`, captured hub-side from `DeviceStateChanged`); any
|
|
16221
|
+
* other series is DECLARED by the addon that produces it and fed with points
|
|
16222
|
+
* (`record`) or closed five-minute buckets (`recordBuckets`). Rollups 5m / 1h /
|
|
16223
|
+
* 1d are computed here and nowhere else. Storage is `history.db` (D851).
|
|
16224
|
+
*
|
|
16225
|
+
* Who the PRODUCER is: `declareSeries`, `record` and `recordBuckets` are owner
|
|
16226
|
+
* checked against the `callerAddonId` the transport stamps into a call that
|
|
16227
|
+
* crossed a process (never in an input schema, so a session cannot supply it).
|
|
16228
|
+
* A call with no stamp is refused `not-owner`. The methods are `admin` so a
|
|
16229
|
+
* non-admin session never reaches them; an addon's `ctx.api` call bypasses the
|
|
16230
|
+
* tier by design.
|
|
16231
|
+
*/
|
|
16232
|
+
/** Whose history: a real device, or a cluster node (load, memory). */
|
|
16233
|
+
var DeviceHistorySubjectSchema = z.discriminatedUnion("kind", [z.object({
|
|
16234
|
+
kind: z.literal("device"),
|
|
16235
|
+
deviceId: z.number().int()
|
|
16236
|
+
}), z.object({
|
|
16237
|
+
kind: z.literal("node"),
|
|
16238
|
+
nodeId: z.string().min(1)
|
|
16239
|
+
})]);
|
|
16240
|
+
var DeviceHistoryKindSchema = z.enum([
|
|
16241
|
+
"gauge",
|
|
16242
|
+
"counter",
|
|
16243
|
+
"boolean"
|
|
16244
|
+
]);
|
|
16245
|
+
var DeviceHistoryResolutionSchema = z.enum([
|
|
16246
|
+
"raw",
|
|
16247
|
+
"5m",
|
|
16248
|
+
"1h",
|
|
16249
|
+
"1d"
|
|
16250
|
+
]);
|
|
16251
|
+
/** Why a producer's point or bucket was not stored. Counted, never silent (D391). */
|
|
16252
|
+
var DeviceHistoryRefusalReasonSchema = z.enum([
|
|
16253
|
+
"undeclared",
|
|
16254
|
+
"not-owner",
|
|
16255
|
+
"opted-out",
|
|
16256
|
+
"not-a-real-device",
|
|
16257
|
+
"rate",
|
|
16258
|
+
"ingest-mismatch",
|
|
16259
|
+
"out-of-range"
|
|
16260
|
+
]);
|
|
16261
|
+
var RefusalSchema = z.object({
|
|
16262
|
+
key: z.string(),
|
|
16263
|
+
reason: DeviceHistoryRefusalReasonSchema,
|
|
16264
|
+
count: z.number().int()
|
|
16265
|
+
});
|
|
16266
|
+
var IngestResultSchema = z.object({
|
|
16267
|
+
accepted: z.number().int(),
|
|
16268
|
+
refused: z.array(RefusalSchema).readonly()
|
|
16269
|
+
});
|
|
16270
|
+
var SeriesInfoSchema = z.object({
|
|
16271
|
+
key: z.string(),
|
|
16272
|
+
scope: z.string(),
|
|
16273
|
+
kind: DeviceHistoryKindSchema,
|
|
16274
|
+
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16275
|
+
unit: z.string().nullable(),
|
|
16276
|
+
displayName: z.string(),
|
|
16277
|
+
source: z.enum(["cap", "addon"]),
|
|
16278
|
+
firstTs: z.number(),
|
|
16279
|
+
lastTs: z.number()
|
|
16280
|
+
});
|
|
16281
|
+
var QueryPointSchema = z.object({
|
|
16282
|
+
/** Raw: the point's time. Rollup: the bucket start. */
|
|
16283
|
+
t: z.number(),
|
|
16284
|
+
samples: z.number().int(),
|
|
16285
|
+
/** `sum / samples`. */
|
|
16286
|
+
mean: z.number().nullable(),
|
|
16287
|
+
/** Time-weighted mean (`tw_sum / tw_ms`); `null` for bucket-ingested series. For a boolean: the fraction of time true. */
|
|
16288
|
+
twMean: z.number().nullable(),
|
|
16289
|
+
min: z.number(),
|
|
16290
|
+
max: z.number(),
|
|
16291
|
+
/** `null` is unknown, never zero (D393). */
|
|
16292
|
+
last: z.number().nullable()
|
|
16293
|
+
});
|
|
16294
|
+
var QuerySeriesSchema = z.object({
|
|
16295
|
+
scope: z.string(),
|
|
16296
|
+
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
16297
|
+
before: z.object({
|
|
16298
|
+
t: z.number(),
|
|
16299
|
+
value: z.number().nullable()
|
|
16300
|
+
}).nullable(),
|
|
16301
|
+
points: z.array(QueryPointSchema).readonly()
|
|
16302
|
+
});
|
|
16303
|
+
/** The window part of a query, shared by the device and node forms. */
|
|
16304
|
+
var QueryWindowShape = {
|
|
16305
|
+
key: z.string(),
|
|
16306
|
+
scope: z.string().optional(),
|
|
16307
|
+
from: z.number(),
|
|
16308
|
+
to: z.number(),
|
|
16309
|
+
resolution: z.union([DeviceHistoryResolutionSchema, z.literal("auto")]).default("auto"),
|
|
16310
|
+
maxPoints: z.number().int().positive().max(5e3).default(1e3)
|
|
16311
|
+
};
|
|
16312
|
+
var QueryResultSchema = z.object({
|
|
16313
|
+
resolution: DeviceHistoryResolutionSchema,
|
|
16314
|
+
series: z.array(QuerySeriesSchema).readonly(),
|
|
16315
|
+
truncated: z.boolean()
|
|
16316
|
+
});
|
|
16317
|
+
var TierStatusSchema = z.object({
|
|
16318
|
+
tier: DeviceHistoryResolutionSchema,
|
|
16319
|
+
/** `null` until the first background count answered. */
|
|
16320
|
+
rows: z.number().int().nullable(),
|
|
16321
|
+
/** `rows` times a fixed per-row estimate — approximate, labelled so. */
|
|
16322
|
+
approxBytes: z.number().nullable(),
|
|
16323
|
+
countedAt: z.number().nullable()
|
|
16324
|
+
});
|
|
16325
|
+
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
16326
|
+
var DeviceHistoryStatusSchema = z.object({
|
|
16327
|
+
startedAt: z.number(),
|
|
16328
|
+
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
16329
|
+
ready: z.boolean(),
|
|
16330
|
+
series: z.number().int(),
|
|
16331
|
+
metrics: z.number().int(),
|
|
16332
|
+
optedOutDevices: z.number().int(),
|
|
16333
|
+
tiers: z.array(TierStatusSchema).readonly(),
|
|
16334
|
+
capture: z.object({
|
|
16335
|
+
eventsSeen: z.number().int(),
|
|
16336
|
+
pointsEmitted: z.number().int(),
|
|
16337
|
+
pointsWritten: z.number().int(),
|
|
16338
|
+
pointsDropped: z.number().int(),
|
|
16339
|
+
bufferDepth: z.number().int(),
|
|
16340
|
+
trailingEmitted: z.number().int(),
|
|
16341
|
+
reconciledPoints: z.number().int(),
|
|
16342
|
+
reconcileRuns: z.number().int(),
|
|
16343
|
+
reconcileFailures: z.number().int(),
|
|
16344
|
+
lastReconcileAt: z.number().nullable(),
|
|
16345
|
+
lastFlushAt: z.number().nullable(),
|
|
16346
|
+
flushFailures: z.number().int(),
|
|
16347
|
+
skipped: z.record(z.string(), z.number().int())
|
|
16348
|
+
}),
|
|
16349
|
+
ingest: z.object({
|
|
16350
|
+
accepted: z.number().int(),
|
|
16351
|
+
refused: z.record(z.string(), z.number().int())
|
|
16352
|
+
}),
|
|
16353
|
+
rollup: z.object({
|
|
16354
|
+
last5mAt: z.number().nullable(),
|
|
16355
|
+
last1hAt: z.number().nullable(),
|
|
16356
|
+
last1dAt: z.number().nullable(),
|
|
16357
|
+
errors: z.number().int(),
|
|
16358
|
+
dirty5m: z.number().int(),
|
|
16359
|
+
dirty1h: z.number().int(),
|
|
16360
|
+
dirty1d: z.number().int()
|
|
16361
|
+
}),
|
|
16362
|
+
retention: z.object({
|
|
16363
|
+
lastRunAt: z.number().nullable(),
|
|
16364
|
+
deleted: z.record(z.string(), z.number().int()),
|
|
16365
|
+
purgedSeries: z.number().int()
|
|
16366
|
+
}),
|
|
16367
|
+
directory: z.object({
|
|
16368
|
+
devices: z.number().int(),
|
|
16369
|
+
lastRefreshAt: z.number().nullable()
|
|
16370
|
+
})
|
|
16371
|
+
});
|
|
16372
|
+
var deviceHistoryCapability = {
|
|
16373
|
+
name: "device-history",
|
|
16374
|
+
scope: "system",
|
|
16375
|
+
mode: "singleton",
|
|
16376
|
+
methods: {
|
|
16377
|
+
/**
|
|
16378
|
+
* The series a DEVICE has, and their span. `deviceId` is a flat top-level field
|
|
16379
|
+
* on purpose: the generated device selector (and so the scope gate) only sees
|
|
16380
|
+
* top-level ids, and a nested `subject.deviceId` would let a principal limited
|
|
16381
|
+
* to one device read another's history. Node series are the admin-only
|
|
16382
|
+
* `listNodeSeries` / `queryNode`.
|
|
16383
|
+
*/
|
|
16384
|
+
listSeries: method(z.object({ deviceId: z.number().int() }), z.array(SeriesInfoSchema).readonly()),
|
|
16385
|
+
listNodeSeries: method(z.object({ nodeId: z.string().min(1) }), z.array(SeriesInfoSchema).readonly(), { auth: "admin" }),
|
|
16386
|
+
/**
|
|
16387
|
+
* One series (or every scope of it) at one resolution. `auto` picks the
|
|
16388
|
+
* finest tier whose retention covers `from` and whose point count fits
|
|
16389
|
+
* `maxPoints`; when even the coarsest tier does not fit, the newest
|
|
16390
|
+
* `maxPoints` points are returned and `truncated` is true.
|
|
16391
|
+
*/
|
|
16392
|
+
query: method(z.object({
|
|
16393
|
+
deviceId: z.number().int(),
|
|
16394
|
+
...QueryWindowShape
|
|
16395
|
+
}), QueryResultSchema),
|
|
16396
|
+
queryNode: method(z.object({
|
|
16397
|
+
nodeId: z.string().min(1),
|
|
16398
|
+
...QueryWindowShape
|
|
16399
|
+
}), QueryResultSchema, { auth: "admin" }),
|
|
16400
|
+
/** Producer: declare (idempotent) a series key this addon owns: `addon:<callerAddonId>/<name>`. */
|
|
16401
|
+
declareSeries: method(z.object({
|
|
16402
|
+
name: z.string().regex(/^[a-z0-9-]+$/),
|
|
16403
|
+
subjectKind: z.enum(["device", "node"]),
|
|
16404
|
+
kind: DeviceHistoryKindSchema,
|
|
16405
|
+
unit: z.string().optional(),
|
|
16406
|
+
displayName: z.string().min(1),
|
|
16407
|
+
ingest: z.enum(["points", "buckets"])
|
|
16408
|
+
}), z.object({ key: z.string() }), {
|
|
16409
|
+
kind: "mutation",
|
|
16410
|
+
auth: "admin"
|
|
16411
|
+
}),
|
|
16412
|
+
/** Producer: points. Low rate: at most one per 10 s per series, sustained. */
|
|
16413
|
+
record: method(z.object({ points: z.array(z.object({
|
|
16414
|
+
key: z.string(),
|
|
16415
|
+
subject: DeviceHistorySubjectSchema,
|
|
16416
|
+
scope: z.string().default(""),
|
|
16417
|
+
ts: z.number(),
|
|
16418
|
+
value: z.number()
|
|
16419
|
+
})).max(5e3) }), IngestResultSchema, {
|
|
16420
|
+
kind: "mutation",
|
|
16421
|
+
auth: "admin"
|
|
16422
|
+
}),
|
|
16423
|
+
/** Producer: CLOSED five-minute buckets. Idempotent upsert keyed (series, bucketStart). */
|
|
16424
|
+
recordBuckets: method(z.object({ buckets: z.array(z.object({
|
|
16425
|
+
key: z.string(),
|
|
16426
|
+
subject: DeviceHistorySubjectSchema,
|
|
16427
|
+
scope: z.string().default(""),
|
|
16428
|
+
bucketStart: z.number(),
|
|
16429
|
+
samples: z.number().int().positive(),
|
|
16430
|
+
sum: z.number(),
|
|
16431
|
+
min: z.number(),
|
|
16432
|
+
max: z.number(),
|
|
16433
|
+
last: z.number().nullable(),
|
|
16434
|
+
lastTs: z.number().nullable()
|
|
16435
|
+
})).max(5e3) }), IngestResultSchema, {
|
|
16436
|
+
kind: "mutation",
|
|
16437
|
+
auth: "admin"
|
|
16438
|
+
}),
|
|
16439
|
+
/** Per-device opt-out. This addon IS the authority: the switch stores nothing elsewhere (D62). */
|
|
16440
|
+
getDeviceEnabled: method(z.object({ deviceId: z.number().int() }), z.object({ enabled: z.boolean() })),
|
|
16441
|
+
setDeviceEnabled: method(z.object({
|
|
16442
|
+
deviceId: z.number().int(),
|
|
16443
|
+
enabled: z.boolean()
|
|
16444
|
+
}), z.object({ enabled: z.boolean() }), {
|
|
16445
|
+
kind: "mutation",
|
|
16446
|
+
auth: "admin"
|
|
16447
|
+
}),
|
|
16448
|
+
getStatus: method(z.object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
16449
|
+
}
|
|
16450
|
+
};
|
|
16216
16451
|
var DeviceCaStatusSchema = z.discriminatedUnion("state", [
|
|
16217
16452
|
z.object({ state: z.literal("absent") }),
|
|
16218
16453
|
z.object({
|
|
@@ -74293,6 +74528,66 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
74293
74528
|
addonId: null,
|
|
74294
74529
|
access: "create"
|
|
74295
74530
|
},
|
|
74531
|
+
"deviceHistory.declareSeries": {
|
|
74532
|
+
capName: "device-history",
|
|
74533
|
+
capScope: "system",
|
|
74534
|
+
addonId: null,
|
|
74535
|
+
access: "create"
|
|
74536
|
+
},
|
|
74537
|
+
"deviceHistory.getDeviceEnabled": {
|
|
74538
|
+
capName: "device-history",
|
|
74539
|
+
capScope: "system",
|
|
74540
|
+
addonId: null,
|
|
74541
|
+
access: "view"
|
|
74542
|
+
},
|
|
74543
|
+
"deviceHistory.getStatus": {
|
|
74544
|
+
capName: "device-history",
|
|
74545
|
+
capScope: "system",
|
|
74546
|
+
addonId: null,
|
|
74547
|
+
access: "view"
|
|
74548
|
+
},
|
|
74549
|
+
"deviceHistory.listNodeSeries": {
|
|
74550
|
+
capName: "device-history",
|
|
74551
|
+
capScope: "system",
|
|
74552
|
+
addonId: null,
|
|
74553
|
+
access: "view"
|
|
74554
|
+
},
|
|
74555
|
+
"deviceHistory.listSeries": {
|
|
74556
|
+
capName: "device-history",
|
|
74557
|
+
capScope: "system",
|
|
74558
|
+
addonId: null,
|
|
74559
|
+
access: "view"
|
|
74560
|
+
},
|
|
74561
|
+
"deviceHistory.query": {
|
|
74562
|
+
capName: "device-history",
|
|
74563
|
+
capScope: "system",
|
|
74564
|
+
addonId: null,
|
|
74565
|
+
access: "view"
|
|
74566
|
+
},
|
|
74567
|
+
"deviceHistory.queryNode": {
|
|
74568
|
+
capName: "device-history",
|
|
74569
|
+
capScope: "system",
|
|
74570
|
+
addonId: null,
|
|
74571
|
+
access: "view"
|
|
74572
|
+
},
|
|
74573
|
+
"deviceHistory.record": {
|
|
74574
|
+
capName: "device-history",
|
|
74575
|
+
capScope: "system",
|
|
74576
|
+
addonId: null,
|
|
74577
|
+
access: "create"
|
|
74578
|
+
},
|
|
74579
|
+
"deviceHistory.recordBuckets": {
|
|
74580
|
+
capName: "device-history",
|
|
74581
|
+
capScope: "system",
|
|
74582
|
+
addonId: null,
|
|
74583
|
+
access: "create"
|
|
74584
|
+
},
|
|
74585
|
+
"deviceHistory.setDeviceEnabled": {
|
|
74586
|
+
capName: "device-history",
|
|
74587
|
+
capScope: "system",
|
|
74588
|
+
addonId: null,
|
|
74589
|
+
access: "create"
|
|
74590
|
+
},
|
|
74296
74591
|
"deviceManager.addLocation": {
|
|
74297
74592
|
capName: "device-manager",
|
|
74298
74593
|
capScope: "system",
|
|
@@ -80763,6 +81058,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
80763
81058
|
deviceDiscoveryCapability,
|
|
80764
81059
|
deviceExportCapability,
|
|
80765
81060
|
deviceExtensionCapability,
|
|
81061
|
+
deviceHistoryCapability,
|
|
80766
81062
|
deviceManagerCapability,
|
|
80767
81063
|
deviceOpsCapability,
|
|
80768
81064
|
deviceProviderCapability,
|
|
@@ -81346,6 +81642,26 @@ Object.freeze({
|
|
|
81346
81642
|
form: "single",
|
|
81347
81643
|
optional: false
|
|
81348
81644
|
}],
|
|
81645
|
+
"deviceHistory.getDeviceEnabled": [{
|
|
81646
|
+
name: "deviceId",
|
|
81647
|
+
form: "single",
|
|
81648
|
+
optional: false
|
|
81649
|
+
}],
|
|
81650
|
+
"deviceHistory.listSeries": [{
|
|
81651
|
+
name: "deviceId",
|
|
81652
|
+
form: "single",
|
|
81653
|
+
optional: false
|
|
81654
|
+
}],
|
|
81655
|
+
"deviceHistory.query": [{
|
|
81656
|
+
name: "deviceId",
|
|
81657
|
+
form: "single",
|
|
81658
|
+
optional: false
|
|
81659
|
+
}],
|
|
81660
|
+
"deviceHistory.setDeviceEnabled": [{
|
|
81661
|
+
name: "deviceId",
|
|
81662
|
+
form: "single",
|
|
81663
|
+
optional: false
|
|
81664
|
+
}],
|
|
81349
81665
|
"deviceManager.adoptionRelease": [{
|
|
81350
81666
|
name: "camDeviceId",
|
|
81351
81667
|
form: "single",
|
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-ChzCPUi2.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 callControl, E as controlTargetOf, T as callVector, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, c as SqliteSettingsBackend, h as serializeError, o as createVectorIndex, s as vectorProviderOf, w as callData, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-
|
|
1
|
+
import { C as callControl, E as controlTargetOf, T as callVector, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, c as SqliteSettingsBackend, h as serializeError, o as createVectorIndex, s as vectorProviderOf, w as callData, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-uQGuStFW.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-BCKOeWu_.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-BCyAPmIj.js");
|
|
5
5
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
6
6
|
require("./builtins/alerts/index.js");
|
|
7
7
|
const require_builtins_calendars_calendars_addon = require("./builtins/calendars/calendars.addon.js");
|
|
@@ -22,13 +22,13 @@ require("./builtins/local-auth/index.js");
|
|
|
22
22
|
const require_builtins_loki_logging_index = require("./builtins/loki-logging/index.js");
|
|
23
23
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
24
24
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
25
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
25
|
+
const require_wal_maintenance = require("./wal-maintenance-ChzCPUi2.js");
|
|
26
26
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
27
27
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
28
28
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
29
29
|
require("./builtins/storage-orchestrator/index.js");
|
|
30
30
|
const require_agent_https_names = require("./agent-https-names-CpUSuP4w.js");
|
|
31
|
-
const require_constants = require("./constants-
|
|
31
|
+
const require_constants = require("./constants-DfP8V3eX.js");
|
|
32
32
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
33
33
|
require("./builtins/system-config/index.js");
|
|
34
34
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
@@ -36,7 +36,7 @@ const require_custom_action_registry = require("./custom-action-registry-Bf_Ynag
|
|
|
36
36
|
const require_tls = require("./tls-C5IYg3V5.js");
|
|
37
37
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
38
38
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
39
|
-
const require_restore_archive = require("./restore-archive-
|
|
39
|
+
const require_restore_archive = require("./restore-archive-DhHH7VQp.js");
|
|
40
40
|
let zod = require("zod");
|
|
41
41
|
let node_crypto = require("node:crypto");
|
|
42
42
|
node_crypto = require_chunk.__toESM(node_crypto);
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $r as readinessKey, Cr as ReadinessRegistry, Dr as asJsonObject$1, F as METHOD_ACCESS_MAP, Fn as scopesAllowAddon, Gt as isArrayOutputSchema, In as scopesAllowDeviceCap, Ir as emitDownForOwnedCaps, Kt as isCollectionArrayMethod, Mn as resolveMethodAuth, N as LOG_LEVEL_RANK, Nr as createEvent$1, Or as asNumber, Rr as expandCapMethods, Rt as extractNestedAddonId, Sn as procedureAuthKey, Sr as RUNTIME_DEFAULTS, Xr as parseJsonObject, Xt as isVoidInput, Y as addonSettingsCapability, Yt as isObjectInput, Zr as parseJsonUnknown, Zt as kebabToCamel$1, _n as objectInputDeclaresRequiredDeviceId, br as DEVICE_STATUS_METHOD, ei as resolveCapMount, gn as objectInputDeclaresAddonId, gr as errMsg$1, kr as asString$1, li as EventCategory$1, ni as scopeKey, nn as lifecycleJobSchema, on as logLevelAtMost, qn as supportedRuntimes, sn as looseSchema, t as ALL_CAPABILITY_DEFINITIONS, vr as DATAPLANE_SECRET_HEADER$1, wr as ReadinessTimeoutError, yr as DEVICE_SETTINGS_CONTRIBUTION_METHODS } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { $r as readinessKey, Cr as ReadinessRegistry, Dr as asJsonObject$1, F as METHOD_ACCESS_MAP, Fn as scopesAllowAddon, Gt as isArrayOutputSchema, In as scopesAllowDeviceCap, Ir as emitDownForOwnedCaps, Kt as isCollectionArrayMethod, Mn as resolveMethodAuth, N as LOG_LEVEL_RANK, Nr as createEvent$1, Or as asNumber, Rr as expandCapMethods, Rt as extractNestedAddonId, Sn as procedureAuthKey, Sr as RUNTIME_DEFAULTS, Xr as parseJsonObject, Xt as isVoidInput, Y as addonSettingsCapability, Yt as isObjectInput, Zr as parseJsonUnknown, Zt as kebabToCamel$1, _n as objectInputDeclaresRequiredDeviceId, br as DEVICE_STATUS_METHOD, ei as resolveCapMount, gn as objectInputDeclaresAddonId, gr as errMsg$1, kr as asString$1, li as EventCategory$1, ni as scopeKey, nn as lifecycleJobSchema, on as logLevelAtMost, qn as supportedRuntimes, sn as looseSchema, t as ALL_CAPABILITY_DEFINITIONS, vr as DATAPLANE_SECRET_HEADER$1, wr as ReadinessTimeoutError, yr as DEVICE_SETTINGS_CONTRIBUTION_METHODS } from "./dist-Bt8GTRHB.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-4IY98a_-.mjs";
|
|
4
4
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
5
5
|
import "./builtins/alerts/index.mjs";
|
|
6
6
|
import { CalendarsAddon } from "./builtins/calendars/calendars.addon.mjs";
|
|
@@ -21,13 +21,13 @@ import "./builtins/local-auth/index.mjs";
|
|
|
21
21
|
import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index.mjs";
|
|
22
22
|
import NativeMetricsAddon, { a as NativeMetricsProvider, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
23
23
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
24
|
-
import { c as SqliteSettingsBackend, l as prefixRange } from "./wal-maintenance-
|
|
24
|
+
import { c as SqliteSettingsBackend, l as prefixRange } from "./wal-maintenance-uQGuStFW.mjs";
|
|
25
25
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
26
26
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
27
27
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
28
28
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
29
29
|
import { a as setProcessAgentHttpsNames, i as getProcessAgentHttpsNames, n as AGENT_HTTPS_NAMES_COLUMNS, r as AgentHttpsNames, t as AGENT_HTTPS_NAMES_COLLECTION } from "./agent-https-names-uetr4OQl.mjs";
|
|
30
|
-
import { _ as getProcessClusterSecretGate, a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, d as CLUSTER_SECRET_REF, f as CLUSTER_SECRET_REJECTED_EXIT_CODE, g as clusterSecretMatches, h as checkClusterSecret, i as MESH_CA_FIELD, m as CLUSTER_SECRET_UNAVAILABLE_TYPE, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, p as CLUSTER_SECRET_SETTINGS_KEY, u as CLUSTER_SECRET_MISMATCH_TYPE, v as hashClusterSecret, y as isClusterSecretMismatchError } from "./constants-
|
|
30
|
+
import { _ as getProcessClusterSecretGate, a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, d as CLUSTER_SECRET_REF, f as CLUSTER_SECRET_REJECTED_EXIT_CODE, g as clusterSecretMatches, h as checkClusterSecret, i as MESH_CA_FIELD, m as CLUSTER_SECRET_UNAVAILABLE_TYPE, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, p as CLUSTER_SECRET_SETTINGS_KEY, u as CLUSTER_SECRET_MISMATCH_TYPE, v as hashClusterSecret, y as isClusterSecretMismatchError } from "./constants-B89vjrSm.mjs";
|
|
31
31
|
import { $ as verifyAgentUiUnlockTicket, A as setProcessMeshCertificateRegistry, B as generateMeshCa, C as setProcessMeshTlsListenerState, D as RENEWAL_ABANDONED, E as MeshCertificateRegistry, F as requireProcessMeshCa, G as AGENT_DASHBOARD_ORIGINS_FIELD, H as issueMeshLeafForNode, I as caFingerprint, J as AGENT_UI_UNLOCK_VERSION, K as AGENT_UI_UNLOCK_DOMAIN, L as caFingerprintCompact, M as processMeshCrl, N as MeshCaKeeper, O as describeMeshLeaf, P as getProcessMeshCaState, Q as parseAgentDashboardOrigins, R as createMeshCsrPem, S as openMeshTlsWhenRevocationsLoaded, SystemConfigAddon, T as MESH_NODE_CERTIFICATES_COLUMNS, U as issueMeshLeafFromCsr, V as generateMeshKeyPair, W as loadMeshCa, X as isAllowedAgentDashboardReturnTo, Y as UnlockTicketJtiStore, Z as mintAgentUiUnlockTicket, _ as onProcessNodeRegistered, a as ServiceBroker, at as requestProcessMeshEnforcement, b as revokeMeshCertificate, c as enrollMeshNode, ct as setProcessMeshEnforcer, d as processJoinTokenJtiStore, dt as parseCidrList, et as MESH_AUTH_MODE_FIELD, f as verifyMeshJoinToken, ft as readCidrSetting, g as getProcessPeerLeaf, h as getProcessNodeMeshTransport, i as Errors, it as parseMeshAuthMode, j as MeshCrl, k as getProcessMeshCertificateRegistry, l as JoinTokenJtiStore, lt as createCidrMatcher, m as emitProcessNodeRegistered, n as MESH_TLS_PORT_HELLO_FIELD, nt as getProcessMeshAuthStatus, o as Transporters, ot as setProcessMeshAuthMode, p as dropProcessPeer, q as AGENT_UI_UNLOCK_TTL_MS, r as TlsTcpTransporter, rt as isMeshAuthMode, s as setProcessMeshTlsEnabler, st as setProcessMeshAuthStatusSource, tt as getProcessMeshAuthMode, u as mintMeshJoinToken, ut as normalizeIp, v as setProcessMeshPeerTransportLookup, w as MESH_NODE_CERTIFICATES_COLLECTION, x as getProcessMeshTlsListenerState, y as renewMeshCertificate, z as exportMeshPrivateKeyPem } from "./builtins/system-config/system-config.addon.mjs";
|
|
32
32
|
import "./builtins/system-config/index.mjs";
|
|
33
33
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
@@ -35,7 +35,7 @@ import { C as isModelDownloaded, T as revisionWeightUrl, _ as downloadFile, a as
|
|
|
35
35
|
import { A as readTlsMode, B as CA_VALIDITY_DAYS, C as registerHttpsListener, D as UPLOADED_CA_FILE, E as prepareBootTls, F as loadTlsCert, G as DEFAULT_LAN_HTTP_PORT, H as MAX_LEAF_VALIDITY_DAYS, I as reissueTlsLeaf, J as bindPendingLanHttp, K as allFamiliesListenHost, L as CA_COMMON_NAME, M as writeExtraSans, N as writeTlsMode, O as readExtraSans, P as ensureTlsCert, R as collectCertIdentity, S as leafFingerprintOf, T as servedHttpsLeafFingerprint, U as SERVER_AUTH_OID, V as LEAF_RENEWAL_WINDOW_DAYS, W as evaluateExistingCert, X as readLanHttpState, Y as closeLanHttp, Z as registerLanHttpHandler, _ as regenerateCertificate, a as collectAgentNames, b as validateUploadedTls, c as installAgentHttps, d as isPrivateAddress, f as issueAgentHttpsLeaf, g as applyCertificateToListener, h as pinnedHttpsCaFingerprint, i as certificateNames, j as splitPemCertificates, k as readTlsAccessStatus, l as isContainerBridgeAddress, m as pemDigest, n as acceptAgentSans, o as createAgentHttpsRequest, p as loadAgentHttps, q as applyLanHttp, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isLocalOnlyHostname, v as revertToGeneratedCertificate, w as reloadHttpsListener, x as clearHttpsListener, y as storeUploadedCertificate, z as systemHostFacts } from "./tls-CpcGkeJV.mjs";
|
|
36
36
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
37
37
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
38
|
-
import { c as BackupDecryptError, f as generateBackupKeyPair, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
38
|
+
import { c as BackupDecryptError, f as generateBackupKeyPair, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-Bh34W8J8.mjs";
|
|
39
39
|
import { z } from "zod";
|
|
40
40
|
import * as crypto$1 from "node:crypto";
|
|
41
41
|
import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-
|
|
1
|
+
import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-Bt8GTRHB.mjs";
|
|
2
2
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
3
3
|
import { Buffer as Buffer$1 } from "buffer";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -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-BCKOeWu_.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let buffer = require("buffer");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
Binary file
|
|
Binary file
|