@camstack/types 1.2.193 → 1.2.195
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.d.ts +1 -0
- package/dist/addon.js +2 -1
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/addons.cap.d.ts +23 -23
- package/dist/capabilities/backup.cap.d.ts +6 -6
- package/dist/capabilities/core-blocks.cap.d.ts +16 -16
- package/dist/capabilities/custom-model-registry.cap.d.ts +2 -2
- package/dist/capabilities/decoder.cap.d.ts +13 -13
- package/dist/capabilities/device-manager.cap.d.ts +6 -6
- package/dist/capabilities/image-settings.cap.d.ts +16 -16
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
- package/dist/capabilities/llm.cap.d.ts +4 -4
- package/dist/capabilities/load-contribution.cap.d.ts +4 -4
- package/dist/capabilities/mask-shape.d.ts +2 -2
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +5 -5
- package/dist/capabilities/model-distributor.cap.d.ts +2 -2
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/motion-zones.cap.d.ts +4 -4
- package/dist/capabilities/navigation.cap.d.ts +7 -7
- package/dist/capabilities/notification-output.cap.d.ts +13 -13
- package/dist/capabilities/notification-rules.cap.d.ts +17 -17
- package/dist/capabilities/notifier.cap.d.ts +3 -3
- package/dist/capabilities/osd-manager.cap.d.ts +14 -14
- package/dist/capabilities/pipeline-analytics.cap.d.ts +73 -73
- package/dist/capabilities/pipeline-executor.cap.d.ts +16 -16
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +39 -39
- package/dist/capabilities/pipeline-runner.cap.d.ts +6 -6
- package/dist/capabilities/privacy-mask.cap.d.ts +4 -4
- package/dist/capabilities/recording-export.cap.d.ts +14 -14
- package/dist/capabilities/recording.cap.d.ts +12 -12
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/streaming-shared.d.ts +7 -7
- package/dist/capabilities/storage-migration.cap.d.ts +13 -13
- package/dist/capabilities/storage.cap.d.ts +6 -6
- package/dist/capabilities/stream-broker.cap.d.ts +59 -59
- package/dist/capabilities/stream-signals.cap.d.ts +15 -0
- package/dist/capabilities/system.cap.d.ts +4 -4
- package/dist/capabilities/videoclips.cap.d.ts +2 -2
- package/dist/capabilities/webrtc-session.cap.d.ts +8 -8
- package/dist/index.js +20 -52
- package/dist/index.mjs +16 -48
- package/dist/interfaces/adoption-job.d.ts +2 -2
- package/dist/interfaces/camera-switches.d.ts +3 -3
- package/dist/interfaces/event-bus.d.ts +21 -0
- package/dist/interfaces/ops-log.d.ts +2 -2
- package/dist/interfaces/recording-config.d.ts +2 -2
- package/dist/interfaces/relocate.d.ts +18 -18
- package/dist/interfaces/storage-location-declaration.d.ts +1 -1
- package/dist/interfaces/stream-broker.d.ts +2 -2
- package/dist/lifecycle/job.d.ts +24 -24
- package/dist/{sleep-B8nfmQ8a.js → sleep-9Ix5MtX4.js} +71 -0
- package/dist/{sleep-BEyvfshj.mjs → sleep-B9qx0cEV.mjs} +48 -1
- package/dist/types/detection.d.ts +24 -3
- package/dist/types/models.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-9Ix5MtX4.js");
|
|
3
3
|
const require_event_category = require("./event-category-BVfsrBYA.js");
|
|
4
4
|
const require_canonical_hash = require("./canonical-hash-9lydiEzx.js");
|
|
5
5
|
const require_enums = require("./enums.js");
|
|
@@ -8370,6 +8370,21 @@ var streamSignalsCapability = {
|
|
|
8370
8370
|
mode: "singleton",
|
|
8371
8371
|
deviceTypes: Object.values(require_sleep.DeviceType),
|
|
8372
8372
|
runtimeState: StreamSignalsStatusSchema,
|
|
8373
|
+
/**
|
|
8374
|
+
* Runtime-state durability: **session** — mirrored in RAM, never written.
|
|
8375
|
+
*
|
|
8376
|
+
* The slice holds what the DEVICE says it can emit. That is a probed fact,
|
|
8377
|
+
* not an operator choice: the provider re-declares it on every registration,
|
|
8378
|
+
* so losing it loses nothing and persisting it would freeze an answer the
|
|
8379
|
+
* camera is entitled to change. Measured the same day on the sibling case —
|
|
8380
|
+
* `native-object-detection.supportedClasses` was persisted, and a firmware
|
|
8381
|
+
* class the camera really detected stayed missing for the life of the row
|
|
8382
|
+
* because the fix could not reach it.
|
|
8383
|
+
*
|
|
8384
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
8385
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
8386
|
+
*/
|
|
8387
|
+
durability: "session",
|
|
8373
8388
|
methods: {
|
|
8374
8389
|
/**
|
|
8375
8390
|
* What this device can emit. Empty is a valid and common answer — most
|
|
@@ -9875,53 +9890,6 @@ var coreBlocksCapability = {
|
|
|
9875
9890
|
}
|
|
9876
9891
|
};
|
|
9877
9892
|
//#endregion
|
|
9878
|
-
//#region src/capabilities/custom-actions.ts
|
|
9879
|
-
/**
|
|
9880
|
-
* Identity — preserves literal types for downstream inference.
|
|
9881
|
-
*
|
|
9882
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
9883
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
9884
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
9885
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
9886
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
9887
|
-
*/
|
|
9888
|
-
function defineCustomActions(spec) {
|
|
9889
|
-
return spec;
|
|
9890
|
-
}
|
|
9891
|
-
function customAction(input, output, options) {
|
|
9892
|
-
return {
|
|
9893
|
-
input,
|
|
9894
|
-
output,
|
|
9895
|
-
kind: options?.kind ?? "query",
|
|
9896
|
-
auth: options?.auth ?? "protected",
|
|
9897
|
-
scope: options?.scope ?? { kind: "system" },
|
|
9898
|
-
...options?.caller ? { caller: "required" } : {}
|
|
9899
|
-
};
|
|
9900
|
-
}
|
|
9901
|
-
function deviceCustomAction(input, output, options) {
|
|
9902
|
-
return {
|
|
9903
|
-
input,
|
|
9904
|
-
output,
|
|
9905
|
-
kind: options?.kind ?? "query",
|
|
9906
|
-
auth: options?.auth ?? "protected",
|
|
9907
|
-
scope: {
|
|
9908
|
-
kind: "device",
|
|
9909
|
-
...options?.deviceTypes ? { deviceTypes: options.deviceTypes } : {}
|
|
9910
|
-
}
|
|
9911
|
-
};
|
|
9912
|
-
}
|
|
9913
|
-
/** Strip a catalog to what crosses the wire. Pure; the schemas are not touched. */
|
|
9914
|
-
function describeCustomActions(catalog) {
|
|
9915
|
-
const out = {};
|
|
9916
|
-
for (const [name, spec] of Object.entries(catalog)) out[name] = {
|
|
9917
|
-
kind: spec.kind,
|
|
9918
|
-
auth: spec.auth,
|
|
9919
|
-
scope: spec.scope,
|
|
9920
|
-
...spec.caller === "required" ? { caller: "required" } : {}
|
|
9921
|
-
};
|
|
9922
|
-
return out;
|
|
9923
|
-
}
|
|
9924
|
-
//#endregion
|
|
9925
9893
|
//#region src/capabilities/custom-model-registry.cap.ts
|
|
9926
9894
|
/**
|
|
9927
9895
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
@@ -57976,7 +57944,7 @@ exports.createMirrorSource = require_sleep.createMirrorSource;
|
|
|
57976
57944
|
exports.createRuntimeStateBridge = createRuntimeStateBridge;
|
|
57977
57945
|
exports.createSliceHandle = require_sleep.createSliceHandle;
|
|
57978
57946
|
exports.createSystemProxy = createSystemProxy;
|
|
57979
|
-
exports.customAction = customAction;
|
|
57947
|
+
exports.customAction = require_sleep.customAction;
|
|
57980
57948
|
exports.customModelRegistryCapability = customModelRegistryCapability;
|
|
57981
57949
|
exports.dataStoreProviderCapability = dataStoreProviderCapability;
|
|
57982
57950
|
exports.dayNightCapability = dayNightCapability;
|
|
@@ -57986,18 +57954,18 @@ exports.decodeVectorBase64 = decodeVectorBase64;
|
|
|
57986
57954
|
exports.decoderCapability = decoderCapability;
|
|
57987
57955
|
exports.defaultDeliveryForSection = defaultDeliveryForSection;
|
|
57988
57956
|
exports.defaultDeviceFor = defaultDeviceFor;
|
|
57989
|
-
exports.defineCustomActions = defineCustomActions;
|
|
57957
|
+
exports.defineCustomActions = require_sleep.defineCustomActions;
|
|
57990
57958
|
exports.deriveBatteryPresence = deriveBatteryPresence;
|
|
57991
57959
|
exports.deriveCameraSwitches = deriveCameraSwitches;
|
|
57992
57960
|
exports.deriveDetailCropRect = deriveDetailCropRect;
|
|
57993
57961
|
exports.deriveRecordingMode = deriveRecordingMode;
|
|
57994
|
-
exports.describeCustomActions = describeCustomActions;
|
|
57962
|
+
exports.describeCustomActions = require_sleep.describeCustomActions;
|
|
57995
57963
|
exports.describeModelVariant = describeModelVariant;
|
|
57996
57964
|
exports.detectAccessRole = detectAccessRole;
|
|
57997
57965
|
exports.detectionPipelineCapability = detectionPipelineCapability;
|
|
57998
57966
|
exports.deviceAdoptionCapability = deviceAdoptionCapability;
|
|
57999
57967
|
exports.deviceBackendToFormat = deviceBackendToFormat;
|
|
58000
|
-
exports.deviceCustomAction = deviceCustomAction;
|
|
57968
|
+
exports.deviceCustomAction = require_sleep.deviceCustomAction;
|
|
58001
57969
|
exports.deviceDiscoveryCapability = deviceDiscoveryCapability;
|
|
58002
57970
|
exports.deviceExportCapability = deviceExportCapability;
|
|
58003
57971
|
exports.deviceManagerCapability = deviceManagerCapability;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as CAM_PROFILE_ORDER, A as DeviceType, At as isEvent, B as systemMethod, Bt as isAudioChunkFormat, C as customAction, Ct as SHARE_VIEW_KINDS, D as ChargingStatus, Dt as createDurableState, E as deviceCustomAction, Et as normalizeAddonInitResult, F as event, Ft as hydrateSchema, G as ReadinessRegistry, H as nodePin, I as expandCapMethods, It as resolveHydratedFieldValue, J as readinessKey, K as ReadinessTimeoutError, L as isDeviceConfigCap, Lt as AUDIO_CHUNK_FORMATS, M as DEFAULT_RUNTIME_STATE_DURABILITY, Mt as WELL_KNOWN_TAB_MAP, N as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Nt as collectHydratedFieldEntries, O as DeviceFeature, Ot as createEvent, P as DEVICE_STATUS_METHOD, Pt as collectHydratedFieldValues, Q as BrokerStatusSchema, R as method, Rt as audioChunkBytesPerSample, S as DEVICE_CHILDREN_BATCH_MAX, St as DATAPLANE_SECRET_HEADER, T as describeCustomActions, Tt as BaseAddon, U as readNodePin, V as CAP_NODE_PIN_CONTEXT_KEY, W as toNodeId, X as AudioChunkFormatSchema, Y as scopeKey, Z as BrokerStatsSchema, _ as createMirrorSource, _t as SubscribeFramesResultSchema, a as asJsonObject, at as DecodedFrameSchema, b as deviceOpsCapability, bt as parseProfileBrokerId, c as parseJsonArray, ct as FrameHandleSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as ProfileSlotStatusSchema, et as CamProfileSchema, f as DEVICE_SCOPED_CAPS, ft as StreamSourceEntrySchema, g as createLazyTrpcSource, gt as SubscribeFramesInputSchema, h as createEventBusSliceSource, ht as SubscribeAudioChunksResultSchema, i as asJsonArray, it as DecodedAudioChunkSchema, j as adminUiCapability, jt as WELL_KNOWN_TABS, k as DeviceRole, kt as emitReadiness, l as parseJsonObject, lt as ProfileRtspEntrySchema, m as createDeviceProxy, mt as SubscribeAudioChunksInputSchema, n as sleepCancellable, nt as CamStreamResolutionSchema, o as asNumber, ot as EncodedPacketSchema, p as isDeviceScopedCap, pt as StreamSourceSchema, q as emitDownForOwnedCaps, r as asBoolean, rt as CameraStreamSchema, s as asString, st as FrameHandleFormatSchema, t as sleep, tt as CamStreamKindSchema, u as parseJsonUnknown, ut as ProfileSlotSchema, v as createSliceHandle, vt as makeProfileBrokerId, w as defineCustomActions, wt as DisposerChain, x as viewerUiCapability, xt as selectAssignedProfileSlots, y as RawStateResultSchema, yt as makeSourceBrokerId, z as resolveCapMount, zt as expandAudioChunkToF32le } from "./sleep-B9qx0cEV.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-BVDXG4tB.mjs";
|
|
3
3
|
import { a as buildAudioArgs, c as buildVideoArgs, d as logBannerArgs, f as pickVideoEncoder, i as audioPlanFromEncodeProfile, l as invocationFromEncodeProfile, n as Fmp4BoxSplitter, o as buildFfmpegArgs, r as AUDIO_PRESETS, s as buildInputArgs, t as canonicalHash, u as isSoftwareDecode } from "./canonical-hash-Ch5bSjFG.mjs";
|
|
4
4
|
import { EventSourceType } from "./enums.mjs";
|
|
@@ -8369,6 +8369,21 @@ var streamSignalsCapability = {
|
|
|
8369
8369
|
mode: "singleton",
|
|
8370
8370
|
deviceTypes: Object.values(DeviceType),
|
|
8371
8371
|
runtimeState: StreamSignalsStatusSchema,
|
|
8372
|
+
/**
|
|
8373
|
+
* Runtime-state durability: **session** — mirrored in RAM, never written.
|
|
8374
|
+
*
|
|
8375
|
+
* The slice holds what the DEVICE says it can emit. That is a probed fact,
|
|
8376
|
+
* not an operator choice: the provider re-declares it on every registration,
|
|
8377
|
+
* so losing it loses nothing and persisting it would freeze an answer the
|
|
8378
|
+
* camera is entitled to change. Measured the same day on the sibling case —
|
|
8379
|
+
* `native-object-detection.supportedClasses` was persisted, and a firmware
|
|
8380
|
+
* class the camera really detected stayed missing for the life of the row
|
|
8381
|
+
* because the fix could not reach it.
|
|
8382
|
+
*
|
|
8383
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
8384
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
8385
|
+
*/
|
|
8386
|
+
durability: "session",
|
|
8372
8387
|
methods: {
|
|
8373
8388
|
/**
|
|
8374
8389
|
* What this device can emit. Empty is a valid and common answer — most
|
|
@@ -9874,53 +9889,6 @@ var coreBlocksCapability = {
|
|
|
9874
9889
|
}
|
|
9875
9890
|
};
|
|
9876
9891
|
//#endregion
|
|
9877
|
-
//#region src/capabilities/custom-actions.ts
|
|
9878
|
-
/**
|
|
9879
|
-
* Identity — preserves literal types for downstream inference.
|
|
9880
|
-
*
|
|
9881
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
9882
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
9883
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
9884
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
9885
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
9886
|
-
*/
|
|
9887
|
-
function defineCustomActions(spec) {
|
|
9888
|
-
return spec;
|
|
9889
|
-
}
|
|
9890
|
-
function customAction(input, output, options) {
|
|
9891
|
-
return {
|
|
9892
|
-
input,
|
|
9893
|
-
output,
|
|
9894
|
-
kind: options?.kind ?? "query",
|
|
9895
|
-
auth: options?.auth ?? "protected",
|
|
9896
|
-
scope: options?.scope ?? { kind: "system" },
|
|
9897
|
-
...options?.caller ? { caller: "required" } : {}
|
|
9898
|
-
};
|
|
9899
|
-
}
|
|
9900
|
-
function deviceCustomAction(input, output, options) {
|
|
9901
|
-
return {
|
|
9902
|
-
input,
|
|
9903
|
-
output,
|
|
9904
|
-
kind: options?.kind ?? "query",
|
|
9905
|
-
auth: options?.auth ?? "protected",
|
|
9906
|
-
scope: {
|
|
9907
|
-
kind: "device",
|
|
9908
|
-
...options?.deviceTypes ? { deviceTypes: options.deviceTypes } : {}
|
|
9909
|
-
}
|
|
9910
|
-
};
|
|
9911
|
-
}
|
|
9912
|
-
/** Strip a catalog to what crosses the wire. Pure; the schemas are not touched. */
|
|
9913
|
-
function describeCustomActions(catalog) {
|
|
9914
|
-
const out = {};
|
|
9915
|
-
for (const [name, spec] of Object.entries(catalog)) out[name] = {
|
|
9916
|
-
kind: spec.kind,
|
|
9917
|
-
auth: spec.auth,
|
|
9918
|
-
scope: spec.scope,
|
|
9919
|
-
...spec.caller === "required" ? { caller: "required" } : {}
|
|
9920
|
-
};
|
|
9921
|
-
return out;
|
|
9922
|
-
}
|
|
9923
|
-
//#endregion
|
|
9924
9892
|
//#region src/capabilities/custom-model-registry.cap.ts
|
|
9925
9893
|
/**
|
|
9926
9894
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
@@ -40,9 +40,9 @@ import { z } from 'zod';
|
|
|
40
40
|
* never a duplicate device, and never an error the operator has to interpret.
|
|
41
41
|
*/
|
|
42
42
|
export declare const AdoptionJobStateSchema: z.ZodEnum<{
|
|
43
|
-
failed: "failed";
|
|
44
43
|
running: "running";
|
|
45
44
|
done: "done";
|
|
45
|
+
failed: "failed";
|
|
46
46
|
cancelled: "cancelled";
|
|
47
47
|
}>;
|
|
48
48
|
export type AdoptionJobState = z.infer<typeof AdoptionJobStateSchema>;
|
|
@@ -82,9 +82,9 @@ export declare const AdoptionJobSchema: z.ZodObject<{
|
|
|
82
82
|
addonId: z.ZodString;
|
|
83
83
|
integrationId: z.ZodString;
|
|
84
84
|
state: z.ZodEnum<{
|
|
85
|
-
failed: "failed";
|
|
86
85
|
running: "running";
|
|
87
86
|
done: "done";
|
|
87
|
+
failed: "failed";
|
|
88
88
|
cancelled: "cancelled";
|
|
89
89
|
}>;
|
|
90
90
|
total: z.ZodNumber;
|
|
@@ -113,8 +113,8 @@ import { z } from 'zod';
|
|
|
113
113
|
*/
|
|
114
114
|
export declare const CameraSwitchIdSchema: z.ZodEnum<{
|
|
115
115
|
"privacy-mask": "privacy-mask";
|
|
116
|
-
"audio-analysis": "audio-analysis";
|
|
117
116
|
recording: "recording";
|
|
117
|
+
"audio-analysis": "audio-analysis";
|
|
118
118
|
"stream-broker": "stream-broker";
|
|
119
119
|
notifications: "notifications";
|
|
120
120
|
"object-detection": "object-detection";
|
|
@@ -187,8 +187,8 @@ export type CameraSwitchUnavailableReason = z.infer<typeof CameraSwitchUnavailab
|
|
|
187
187
|
export declare const CameraSwitchSchema: z.ZodObject<{
|
|
188
188
|
id: z.ZodEnum<{
|
|
189
189
|
"privacy-mask": "privacy-mask";
|
|
190
|
-
"audio-analysis": "audio-analysis";
|
|
191
190
|
recording: "recording";
|
|
191
|
+
"audio-analysis": "audio-analysis";
|
|
192
192
|
"stream-broker": "stream-broker";
|
|
193
193
|
notifications: "notifications";
|
|
194
194
|
"object-detection": "object-detection";
|
|
@@ -231,8 +231,8 @@ export declare const CameraSwitchGroupSchema: z.ZodObject<{
|
|
|
231
231
|
switches: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
232
232
|
id: z.ZodEnum<{
|
|
233
233
|
"privacy-mask": "privacy-mask";
|
|
234
|
-
"audio-analysis": "audio-analysis";
|
|
235
234
|
recording: "recording";
|
|
235
|
+
"audio-analysis": "audio-analysis";
|
|
236
236
|
"stream-broker": "stream-broker";
|
|
237
237
|
notifications: "notifications";
|
|
238
238
|
"object-detection": "object-detection";
|
|
@@ -317,6 +317,11 @@ export interface PipelineAnalyticsPackagePickedUpPayload {
|
|
|
317
317
|
* dispatch via `pipelineRunner.runDetailSubtree` and on what cadence,
|
|
318
318
|
* without a separate round-trip to the executor's schema/config caps.
|
|
319
319
|
*/
|
|
320
|
+
/**
|
|
321
|
+
* Why a detection frame was inferred — the one vocabulary for it, shared by the
|
|
322
|
+
* runner that produces the frame and the stationary ledger that folds it.
|
|
323
|
+
*/
|
|
324
|
+
export type InferenceOccasion = 'session' | 'burst';
|
|
320
325
|
export interface DetailStepAnnounce {
|
|
321
326
|
readonly stepId: string;
|
|
322
327
|
readonly inputClasses: readonly string[];
|
|
@@ -381,6 +386,22 @@ export interface PipelineInferenceResultPayload {
|
|
|
381
386
|
* the moment one replaces the other.
|
|
382
387
|
*/
|
|
383
388
|
readonly source?: DetectionSource;
|
|
389
|
+
/**
|
|
390
|
+
* WHY this frame was inferred.
|
|
391
|
+
*
|
|
392
|
+
* `'session'` — a motion session is running and the pipeline was decoding
|
|
393
|
+
* anyway, so the inference was free at the margin. `'burst'` — the periodic
|
|
394
|
+
* occupancy recheck (`occupancyRecheckSec`), which re-dials or taps a camera
|
|
395
|
+
* that nothing is watching purely to look at a STILL scene.
|
|
396
|
+
*
|
|
397
|
+
* Absent means `'session'`: a runner older than this field only ever emitted
|
|
398
|
+
* session frames as far as any consumer could tell, which is precisely the
|
|
399
|
+
* defect. The stationary ledger keeps per-occasion tallies so "is the recheck
|
|
400
|
+
* earning its keep on this camera?" has an answer — and it counted every
|
|
401
|
+
* burst as a session for the whole time the field did not exist, so the
|
|
402
|
+
* answer was structurally zero.
|
|
403
|
+
*/
|
|
404
|
+
readonly occasion?: InferenceOccasion;
|
|
384
405
|
readonly [key: string]: unknown;
|
|
385
406
|
}
|
|
386
407
|
/**
|
|
@@ -28,9 +28,9 @@ export declare const OpsLogOpSchema: z.ZodEnum<{
|
|
|
28
28
|
export type OpsLogOp = z.infer<typeof OpsLogOpSchema>;
|
|
29
29
|
/** Why the operation ran. */
|
|
30
30
|
export declare const OpsLogReasonSchema: z.ZodEnum<{
|
|
31
|
-
manual: "manual";
|
|
32
31
|
retention: "retention";
|
|
33
32
|
quota: "quota";
|
|
33
|
+
manual: "manual";
|
|
34
34
|
operator: "operator";
|
|
35
35
|
maintenance: "maintenance";
|
|
36
36
|
"orphaned-device": "orphaned-device";
|
|
@@ -53,9 +53,9 @@ export declare const OpsLogEntrySchema: z.ZodObject<{
|
|
|
53
53
|
"orphan-audit": "orphan-audit";
|
|
54
54
|
}>;
|
|
55
55
|
reason: z.ZodEnum<{
|
|
56
|
-
manual: "manual";
|
|
57
56
|
retention: "retention";
|
|
58
57
|
quota: "quota";
|
|
58
|
+
manual: "manual";
|
|
59
59
|
operator: "operator";
|
|
60
60
|
maintenance: "maintenance";
|
|
61
61
|
"orphaned-device": "orphaned-device";
|
|
@@ -48,8 +48,8 @@ export type RecordingWeekday = z.infer<typeof RecordingWeekdaySchema>;
|
|
|
48
48
|
* device actually does is the D62 shape — a control nobody can predict.
|
|
49
49
|
*/
|
|
50
50
|
export declare const RecordingStorageModeSchema: z.ZodEnum<{
|
|
51
|
-
off: "off";
|
|
52
51
|
events: "events";
|
|
52
|
+
off: "off";
|
|
53
53
|
continuous: "continuous";
|
|
54
54
|
"on-device-decision": "on-device-decision";
|
|
55
55
|
}>;
|
|
@@ -267,8 +267,8 @@ export type RecordingRetention = z.infer<typeof RecordingRetentionSchema>;
|
|
|
267
267
|
export declare const RecordingConfigSchema: z.ZodObject<{
|
|
268
268
|
enabled: z.ZodBoolean;
|
|
269
269
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
270
|
-
off: "off";
|
|
271
270
|
events: "events";
|
|
271
|
+
off: "off";
|
|
272
272
|
continuous: "continuous";
|
|
273
273
|
"on-device-decision": "on-device-decision";
|
|
274
274
|
}>>;
|
|
@@ -16,20 +16,20 @@ import { z } from 'zod';
|
|
|
16
16
|
* runs at all.
|
|
17
17
|
*/
|
|
18
18
|
export declare const RelocateJobStateSchema: z.ZodEnum<{
|
|
19
|
-
failed: "failed";
|
|
20
|
-
running: "running";
|
|
21
19
|
queued: "queued";
|
|
20
|
+
running: "running";
|
|
22
21
|
done: "done";
|
|
22
|
+
failed: "failed";
|
|
23
23
|
cancelled: "cancelled";
|
|
24
24
|
}>;
|
|
25
25
|
export type RelocateJobState = z.infer<typeof RelocateJobStateSchema>;
|
|
26
26
|
export declare const RelocateJobSchema: z.ZodObject<{
|
|
27
27
|
jobId: z.ZodString;
|
|
28
28
|
state: z.ZodEnum<{
|
|
29
|
-
failed: "failed";
|
|
30
|
-
running: "running";
|
|
31
29
|
queued: "queued";
|
|
30
|
+
running: "running";
|
|
32
31
|
done: "done";
|
|
32
|
+
failed: "failed";
|
|
33
33
|
cancelled: "cancelled";
|
|
34
34
|
}>;
|
|
35
35
|
fromLocationId: z.ZodString;
|
|
@@ -287,15 +287,15 @@ export type StorageMigrationInput = z.infer<typeof StorageMigrationInputSchema>;
|
|
|
287
287
|
* `repointing` is still the only phase that changes a default location.
|
|
288
288
|
*/
|
|
289
289
|
export declare const StorageMigrationPhaseSchema: z.ZodEnum<{
|
|
290
|
-
moving: "moving";
|
|
291
|
-
verifying: "verifying";
|
|
292
|
-
failed: "failed";
|
|
293
290
|
done: "done";
|
|
291
|
+
failed: "failed";
|
|
294
292
|
cancelled: "cancelled";
|
|
295
293
|
planning: "planning";
|
|
296
294
|
sealing: "sealing";
|
|
297
295
|
pausing: "pausing";
|
|
296
|
+
moving: "moving";
|
|
298
297
|
draining: "draining";
|
|
298
|
+
verifying: "verifying";
|
|
299
299
|
repointing: "repointing";
|
|
300
300
|
refreshing: "refreshing";
|
|
301
301
|
resuming: "resuming";
|
|
@@ -349,10 +349,10 @@ export declare const StorageMigrationMoveSchema: z.ZodObject<{
|
|
|
349
349
|
freezeSource: z.ZodOptional<z.ZodBoolean>;
|
|
350
350
|
moverJobId: z.ZodNullable<z.ZodString>;
|
|
351
351
|
state: z.ZodNullable<z.ZodEnum<{
|
|
352
|
-
failed: "failed";
|
|
353
|
-
running: "running";
|
|
354
352
|
queued: "queued";
|
|
353
|
+
running: "running";
|
|
355
354
|
done: "done";
|
|
355
|
+
failed: "failed";
|
|
356
356
|
cancelled: "cancelled";
|
|
357
357
|
}>>;
|
|
358
358
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -369,15 +369,15 @@ export type StorageMigrationMove = z.infer<typeof StorageMigrationMoveSchema>;
|
|
|
369
369
|
export declare const StorageMigrationJobSchema: z.ZodObject<{
|
|
370
370
|
jobId: z.ZodString;
|
|
371
371
|
phase: z.ZodEnum<{
|
|
372
|
-
moving: "moving";
|
|
373
|
-
verifying: "verifying";
|
|
374
|
-
failed: "failed";
|
|
375
372
|
done: "done";
|
|
373
|
+
failed: "failed";
|
|
376
374
|
cancelled: "cancelled";
|
|
377
375
|
planning: "planning";
|
|
378
376
|
sealing: "sealing";
|
|
379
377
|
pausing: "pausing";
|
|
378
|
+
moving: "moving";
|
|
380
379
|
draining: "draining";
|
|
380
|
+
verifying: "verifying";
|
|
381
381
|
repointing: "repointing";
|
|
382
382
|
refreshing: "refreshing";
|
|
383
383
|
resuming: "resuming";
|
|
@@ -414,10 +414,10 @@ export declare const StorageMigrationJobSchema: z.ZodObject<{
|
|
|
414
414
|
freezeSource: z.ZodOptional<z.ZodBoolean>;
|
|
415
415
|
moverJobId: z.ZodNullable<z.ZodString>;
|
|
416
416
|
state: z.ZodNullable<z.ZodEnum<{
|
|
417
|
-
failed: "failed";
|
|
418
|
-
running: "running";
|
|
419
417
|
queued: "queued";
|
|
418
|
+
running: "running";
|
|
420
419
|
done: "done";
|
|
420
|
+
failed: "failed";
|
|
421
421
|
cancelled: "cancelled";
|
|
422
422
|
}>>;
|
|
423
423
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -576,10 +576,10 @@ export declare const StorageMigrationMoverSchema: z.ZodObject<{
|
|
|
576
576
|
job: z.ZodObject<{
|
|
577
577
|
jobId: z.ZodString;
|
|
578
578
|
state: z.ZodEnum<{
|
|
579
|
-
failed: "failed";
|
|
580
|
-
running: "running";
|
|
581
579
|
queued: "queued";
|
|
580
|
+
running: "running";
|
|
582
581
|
done: "done";
|
|
582
|
+
failed: "failed";
|
|
583
583
|
cancelled: "cancelled";
|
|
584
584
|
}>;
|
|
585
585
|
fromLocationId: z.ZodString;
|
|
@@ -802,8 +802,8 @@ export type RelocatableMediaCountInput = z.infer<typeof RelocatableMediaCountInp
|
|
|
802
802
|
* with no operator-visible status.
|
|
803
803
|
*/
|
|
804
804
|
export declare const StorageCleanupPhaseSchema: z.ZodEnum<{
|
|
805
|
-
failed: "failed";
|
|
806
805
|
done: "done";
|
|
806
|
+
failed: "failed";
|
|
807
807
|
cancelled: "cancelled";
|
|
808
808
|
orphans: "orphans";
|
|
809
809
|
"debug-media": "debug-media";
|
|
@@ -817,8 +817,8 @@ export type StorageCleanupInput = z.infer<typeof StorageCleanupInputSchema>;
|
|
|
817
817
|
export declare const StorageCleanupJobSchema: z.ZodObject<{
|
|
818
818
|
jobId: z.ZodString;
|
|
819
819
|
phase: z.ZodEnum<{
|
|
820
|
-
failed: "failed";
|
|
821
820
|
done: "done";
|
|
821
|
+
failed: "failed";
|
|
822
822
|
cancelled: "cancelled";
|
|
823
823
|
orphans: "orphans";
|
|
824
824
|
"debug-media": "debug-media";
|
|
@@ -69,9 +69,9 @@ export declare const StorageLocationDeclarationSchema: z.ZodObject<{
|
|
|
69
69
|
}>>;
|
|
70
70
|
defaultsTo: z.ZodOptional<z.ZodString>;
|
|
71
71
|
defaultRoot: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
media: "media";
|
|
72
73
|
data: "data";
|
|
73
74
|
backup: "backup";
|
|
74
|
-
media: "media";
|
|
75
75
|
}>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
/** Inferred TypeScript type for `StorageLocationDeclarationSchema`. */
|
|
@@ -18,11 +18,11 @@ export declare const DecoderSessionConfigSchema: z.ZodObject<{
|
|
|
18
18
|
codec: z.ZodString;
|
|
19
19
|
maxFps: z.ZodDefault<z.ZodNumber>;
|
|
20
20
|
outputFormat: z.ZodDefault<z.ZodEnum<{
|
|
21
|
-
jpeg: "jpeg";
|
|
22
21
|
rgb: "rgb";
|
|
22
|
+
gray: "gray";
|
|
23
|
+
jpeg: "jpeg";
|
|
23
24
|
bgr: "bgr";
|
|
24
25
|
yuv420: "yuv420";
|
|
25
|
-
gray: "gray";
|
|
26
26
|
}>>;
|
|
27
27
|
scale: z.ZodDefault<z.ZodNumber>;
|
|
28
28
|
width: z.ZodOptional<z.ZodNumber>;
|
package/dist/lifecycle/job.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const jobKindSchema: z.ZodEnum<{
|
|
3
3
|
update: "update";
|
|
4
|
+
restart: "restart";
|
|
4
5
|
install: "install";
|
|
5
6
|
uninstall: "uninstall";
|
|
6
|
-
restart: "restart";
|
|
7
7
|
}>;
|
|
8
8
|
export type JobKind = z.infer<typeof jobKindSchema>;
|
|
9
9
|
export declare const taskPhaseSchema: z.ZodEnum<{
|
|
10
|
-
failed: "failed";
|
|
11
10
|
queued: "queued";
|
|
11
|
+
done: "done";
|
|
12
|
+
failed: "failed";
|
|
13
|
+
applied: "applied";
|
|
12
14
|
fetching: "fetching";
|
|
13
15
|
staged: "staged";
|
|
14
16
|
validating: "validating";
|
|
15
17
|
applying: "applying";
|
|
16
18
|
restarting: "restarting";
|
|
17
|
-
applied: "applied";
|
|
18
|
-
done: "done";
|
|
19
19
|
skipped: "skipped";
|
|
20
20
|
}>;
|
|
21
21
|
export type TaskPhase = z.infer<typeof taskPhaseSchema>;
|
|
@@ -29,15 +29,15 @@ export declare const taskLogEntrySchema: z.ZodObject<{
|
|
|
29
29
|
nodeId: z.ZodString;
|
|
30
30
|
packageName: z.ZodString;
|
|
31
31
|
phase: z.ZodEnum<{
|
|
32
|
-
failed: "failed";
|
|
33
32
|
queued: "queued";
|
|
33
|
+
done: "done";
|
|
34
|
+
failed: "failed";
|
|
35
|
+
applied: "applied";
|
|
34
36
|
fetching: "fetching";
|
|
35
37
|
staged: "staged";
|
|
36
38
|
validating: "validating";
|
|
37
39
|
applying: "applying";
|
|
38
40
|
restarting: "restarting";
|
|
39
|
-
applied: "applied";
|
|
40
|
-
done: "done";
|
|
41
41
|
skipped: "skipped";
|
|
42
42
|
}>;
|
|
43
43
|
message: z.ZodString;
|
|
@@ -54,15 +54,15 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
54
54
|
addon: "addon";
|
|
55
55
|
}>;
|
|
56
56
|
phase: z.ZodEnum<{
|
|
57
|
-
failed: "failed";
|
|
58
57
|
queued: "queued";
|
|
58
|
+
done: "done";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
applied: "applied";
|
|
59
61
|
fetching: "fetching";
|
|
60
62
|
staged: "staged";
|
|
61
63
|
validating: "validating";
|
|
62
64
|
applying: "applying";
|
|
63
65
|
restarting: "restarting";
|
|
64
|
-
applied: "applied";
|
|
65
|
-
done: "done";
|
|
66
66
|
skipped: "skipped";
|
|
67
67
|
}>;
|
|
68
68
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -72,15 +72,15 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
72
72
|
nodeId: z.ZodString;
|
|
73
73
|
packageName: z.ZodString;
|
|
74
74
|
phase: z.ZodEnum<{
|
|
75
|
-
failed: "failed";
|
|
76
75
|
queued: "queued";
|
|
76
|
+
done: "done";
|
|
77
|
+
failed: "failed";
|
|
78
|
+
applied: "applied";
|
|
77
79
|
fetching: "fetching";
|
|
78
80
|
staged: "staged";
|
|
79
81
|
validating: "validating";
|
|
80
82
|
applying: "applying";
|
|
81
83
|
restarting: "restarting";
|
|
82
|
-
applied: "applied";
|
|
83
|
-
done: "done";
|
|
84
84
|
skipped: "skipped";
|
|
85
85
|
}>;
|
|
86
86
|
message: z.ZodString;
|
|
@@ -91,11 +91,11 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
91
91
|
}, z.core.$strip>;
|
|
92
92
|
export type LifecycleTask = z.infer<typeof lifecycleTaskSchema>;
|
|
93
93
|
export declare const lifecycleJobStateSchema: z.ZodEnum<{
|
|
94
|
-
failed: "failed";
|
|
95
94
|
running: "running";
|
|
95
|
+
failed: "failed";
|
|
96
|
+
cancelled: "cancelled";
|
|
96
97
|
completed: "completed";
|
|
97
98
|
"partially-failed": "partially-failed";
|
|
98
|
-
cancelled: "cancelled";
|
|
99
99
|
}>;
|
|
100
100
|
export type LifecycleJobState = z.infer<typeof lifecycleJobStateSchema>;
|
|
101
101
|
export declare const lifecycleJobScopeSchema: z.ZodEnum<{
|
|
@@ -108,9 +108,9 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
108
108
|
jobId: z.ZodString;
|
|
109
109
|
kind: z.ZodEnum<{
|
|
110
110
|
update: "update";
|
|
111
|
+
restart: "restart";
|
|
111
112
|
install: "install";
|
|
112
113
|
uninstall: "uninstall";
|
|
113
|
-
restart: "restart";
|
|
114
114
|
}>;
|
|
115
115
|
createdAtMs: z.ZodNumber;
|
|
116
116
|
createdBy: z.ZodString;
|
|
@@ -130,15 +130,15 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
130
130
|
addon: "addon";
|
|
131
131
|
}>;
|
|
132
132
|
phase: z.ZodEnum<{
|
|
133
|
-
failed: "failed";
|
|
134
133
|
queued: "queued";
|
|
134
|
+
done: "done";
|
|
135
|
+
failed: "failed";
|
|
136
|
+
applied: "applied";
|
|
135
137
|
fetching: "fetching";
|
|
136
138
|
staged: "staged";
|
|
137
139
|
validating: "validating";
|
|
138
140
|
applying: "applying";
|
|
139
141
|
restarting: "restarting";
|
|
140
|
-
applied: "applied";
|
|
141
|
-
done: "done";
|
|
142
142
|
skipped: "skipped";
|
|
143
143
|
}>;
|
|
144
144
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -148,15 +148,15 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
148
148
|
nodeId: z.ZodString;
|
|
149
149
|
packageName: z.ZodString;
|
|
150
150
|
phase: z.ZodEnum<{
|
|
151
|
-
failed: "failed";
|
|
152
151
|
queued: "queued";
|
|
152
|
+
done: "done";
|
|
153
|
+
failed: "failed";
|
|
154
|
+
applied: "applied";
|
|
153
155
|
fetching: "fetching";
|
|
154
156
|
staged: "staged";
|
|
155
157
|
validating: "validating";
|
|
156
158
|
applying: "applying";
|
|
157
159
|
restarting: "restarting";
|
|
158
|
-
applied: "applied";
|
|
159
|
-
done: "done";
|
|
160
160
|
skipped: "skipped";
|
|
161
161
|
}>;
|
|
162
162
|
message: z.ZodString;
|
|
@@ -166,11 +166,11 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
166
166
|
finishedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
167
167
|
}, z.core.$strip>>;
|
|
168
168
|
state: z.ZodEnum<{
|
|
169
|
-
failed: "failed";
|
|
170
169
|
running: "running";
|
|
170
|
+
failed: "failed";
|
|
171
|
+
cancelled: "cancelled";
|
|
171
172
|
completed: "completed";
|
|
172
173
|
"partially-failed": "partially-failed";
|
|
173
|
-
cancelled: "cancelled";
|
|
174
174
|
}>;
|
|
175
175
|
schemaVersion: z.ZodLiteral<1>;
|
|
176
176
|
}, z.core.$strip>;
|