@camstack/types 1.2.47 → 1.2.49
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/capabilities/face-gallery.cap.d.ts +4 -0
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +95 -1
- package/dist/device/runtime-state-helpers.d.ts +50 -0
- package/dist/generated/addon-api.d.ts +4 -4
- package/dist/index.js +143 -5
- package/dist/index.mjs +141 -6
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ declare const FaceInfoSchema: z.ZodObject<{
|
|
|
28
28
|
identityName: z.ZodOptional<z.ZodString>;
|
|
29
29
|
assigned: z.ZodBoolean;
|
|
30
30
|
base64: z.ZodOptional<z.ZodString>;
|
|
31
|
+
cropUrl: z.ZodOptional<z.ZodString>;
|
|
31
32
|
faceBbox: z.ZodOptional<z.ZodObject<{
|
|
32
33
|
x: z.ZodNumber;
|
|
33
34
|
y: z.ZodNumber;
|
|
@@ -92,6 +93,7 @@ export declare const faceGalleryCapability: {
|
|
|
92
93
|
recognized: "recognized";
|
|
93
94
|
all: "all";
|
|
94
95
|
}>>;
|
|
96
|
+
includeCrops: z.ZodOptional<z.ZodBoolean>;
|
|
95
97
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
96
98
|
faceId: z.ZodString;
|
|
97
99
|
deviceId: z.ZodNumber;
|
|
@@ -101,6 +103,7 @@ export declare const faceGalleryCapability: {
|
|
|
101
103
|
identityName: z.ZodOptional<z.ZodString>;
|
|
102
104
|
assigned: z.ZodBoolean;
|
|
103
105
|
base64: z.ZodOptional<z.ZodString>;
|
|
106
|
+
cropUrl: z.ZodOptional<z.ZodString>;
|
|
104
107
|
faceBbox: z.ZodOptional<z.ZodObject<{
|
|
105
108
|
x: z.ZodNumber;
|
|
106
109
|
y: z.ZodNumber;
|
|
@@ -125,6 +128,7 @@ export declare const faceGalleryCapability: {
|
|
|
125
128
|
identityName: z.ZodOptional<z.ZodString>;
|
|
126
129
|
assigned: z.ZodBoolean;
|
|
127
130
|
base64: z.ZodOptional<z.ZodString>;
|
|
131
|
+
cropUrl: z.ZodOptional<z.ZodString>;
|
|
128
132
|
faceBbox: z.ZodOptional<z.ZodObject<{
|
|
129
133
|
x: z.ZodNumber;
|
|
130
134
|
y: z.ZodNumber;
|
|
@@ -79,8 +79,8 @@ export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthI
|
|
|
79
79
|
export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, type MediaFile, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
|
|
80
80
|
export type { NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
|
|
81
81
|
export { ModelSubstitutionSchema, NativeCropRefSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, } from './pipeline-executor.cap.js';
|
|
82
|
-
export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, } from './pipeline-orchestrator.cap.js';
|
|
83
|
-
export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
|
|
82
|
+
export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, } from './pipeline-orchestrator.cap.js';
|
|
83
|
+
export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
|
|
84
84
|
export type { DetailParent, DetailResult, MotionSource, MotionSources, ReportMotionInput, RunDetailSubtreeInput, RunDetailSubtreeResult, RunnerFrameSource, RunnerInferenceDevice, RunStatelessStepInput, RunStatelessStepResult, StatelessStepRefusal, } from './pipeline-runner.cap.js';
|
|
85
85
|
export { MotionSourceEnum, MotionSourcesSchema, type NativeCropBbox, NativeCropBboxSchema, NativeCropResultSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
|
|
86
86
|
export { AudioChunkInputSchema, AudioClassificationLabelSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
|
|
@@ -336,6 +336,52 @@ declare const CameraRecordingStatusSchema: z.ZodObject<{
|
|
|
336
336
|
active: z.ZodBoolean;
|
|
337
337
|
storageBytes: z.ZodNumber;
|
|
338
338
|
}, z.core.$strip>;
|
|
339
|
+
/**
|
|
340
|
+
* The stages of the status fan-out that issue a BOUNDED remote read, and can
|
|
341
|
+
* therefore be cut short. Every other block (`assignment`, `decoder`, `motion`,
|
|
342
|
+
* `audio`) is composed from orchestrator-local state and cannot time out.
|
|
343
|
+
*
|
|
344
|
+
* `switches` is the operator's per-camera function switches — the read behind
|
|
345
|
+
* `switchedOff`, not a block of its own.
|
|
346
|
+
*/
|
|
347
|
+
declare const CameraStatusStageSchema: z.ZodEnum<{
|
|
348
|
+
broker: "broker";
|
|
349
|
+
source: "source";
|
|
350
|
+
recording: "recording";
|
|
351
|
+
detection: "detection";
|
|
352
|
+
switches: "switches";
|
|
353
|
+
}>;
|
|
354
|
+
/**
|
|
355
|
+
* WHY a stage could not be trusted.
|
|
356
|
+
*
|
|
357
|
+
* - `timeout` — the stage never answered and the whole status call paid the
|
|
358
|
+
* full per-stage bound for it. This is the one that used to be invisible.
|
|
359
|
+
* - `error` — the source answered with a rejection.
|
|
360
|
+
* - `partial` — the stage RETURNED, but from an incomplete set of sources: its
|
|
361
|
+
* value is a floor, not a total. `switchedOff` derived from a partial switch
|
|
362
|
+
* read can be empty while the operator has switches off.
|
|
363
|
+
*/
|
|
364
|
+
declare const CameraStatusDegradationReasonSchema: z.ZodEnum<{
|
|
365
|
+
error: "error";
|
|
366
|
+
timeout: "timeout";
|
|
367
|
+
partial: "partial";
|
|
368
|
+
}>;
|
|
369
|
+
/** One stage of the fan-out that could NOT be read, and how long it cost. */
|
|
370
|
+
declare const CameraStatusDegradationSchema: z.ZodObject<{
|
|
371
|
+
stage: z.ZodEnum<{
|
|
372
|
+
broker: "broker";
|
|
373
|
+
source: "source";
|
|
374
|
+
recording: "recording";
|
|
375
|
+
detection: "detection";
|
|
376
|
+
switches: "switches";
|
|
377
|
+
}>;
|
|
378
|
+
reason: z.ZodEnum<{
|
|
379
|
+
error: "error";
|
|
380
|
+
timeout: "timeout";
|
|
381
|
+
partial: "partial";
|
|
382
|
+
}>;
|
|
383
|
+
elapsedMs: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>;
|
|
339
385
|
/**
|
|
340
386
|
* Aggregated per-camera pipeline status — server-composed, single call.
|
|
341
387
|
*
|
|
@@ -451,6 +497,21 @@ declare const CameraStatusSchema: z.ZodObject<{
|
|
|
451
497
|
"device-audio": "device-audio";
|
|
452
498
|
"broker-audio": "broker-audio";
|
|
453
499
|
}>>>;
|
|
500
|
+
degraded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
501
|
+
stage: z.ZodEnum<{
|
|
502
|
+
broker: "broker";
|
|
503
|
+
source: "source";
|
|
504
|
+
recording: "recording";
|
|
505
|
+
detection: "detection";
|
|
506
|
+
switches: "switches";
|
|
507
|
+
}>;
|
|
508
|
+
reason: z.ZodEnum<{
|
|
509
|
+
error: "error";
|
|
510
|
+
timeout: "timeout";
|
|
511
|
+
partial: "partial";
|
|
512
|
+
}>;
|
|
513
|
+
elapsedMs: z.ZodNumber;
|
|
514
|
+
}, z.core.$strip>>>;
|
|
454
515
|
fetchedAt: z.ZodNumber;
|
|
455
516
|
}, z.core.$strip>;
|
|
456
517
|
declare const NodeInferenceDeviceSchema: z.ZodObject<{
|
|
@@ -1320,6 +1381,21 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1320
1381
|
"device-audio": "device-audio";
|
|
1321
1382
|
"broker-audio": "broker-audio";
|
|
1322
1383
|
}>>>;
|
|
1384
|
+
degraded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1385
|
+
stage: z.ZodEnum<{
|
|
1386
|
+
broker: "broker";
|
|
1387
|
+
source: "source";
|
|
1388
|
+
recording: "recording";
|
|
1389
|
+
detection: "detection";
|
|
1390
|
+
switches: "switches";
|
|
1391
|
+
}>;
|
|
1392
|
+
reason: z.ZodEnum<{
|
|
1393
|
+
error: "error";
|
|
1394
|
+
timeout: "timeout";
|
|
1395
|
+
partial: "partial";
|
|
1396
|
+
}>;
|
|
1397
|
+
elapsedMs: z.ZodNumber;
|
|
1398
|
+
}, z.core.$strip>>>;
|
|
1323
1399
|
fetchedAt: z.ZodNumber;
|
|
1324
1400
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1325
1401
|
/**
|
|
@@ -1440,6 +1516,21 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1440
1516
|
"device-audio": "device-audio";
|
|
1441
1517
|
"broker-audio": "broker-audio";
|
|
1442
1518
|
}>>>;
|
|
1519
|
+
degraded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1520
|
+
stage: z.ZodEnum<{
|
|
1521
|
+
broker: "broker";
|
|
1522
|
+
source: "source";
|
|
1523
|
+
recording: "recording";
|
|
1524
|
+
detection: "detection";
|
|
1525
|
+
switches: "switches";
|
|
1526
|
+
}>;
|
|
1527
|
+
reason: z.ZodEnum<{
|
|
1528
|
+
error: "error";
|
|
1529
|
+
timeout: "timeout";
|
|
1530
|
+
partial: "partial";
|
|
1531
|
+
}>;
|
|
1532
|
+
elapsedMs: z.ZodNumber;
|
|
1533
|
+
}, z.core.$strip>>>;
|
|
1443
1534
|
fetchedAt: z.ZodNumber;
|
|
1444
1535
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1445
1536
|
/** List every template the operator has saved. */
|
|
@@ -1683,6 +1774,9 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1683
1774
|
};
|
|
1684
1775
|
export type IPipelineOrchestratorProvider = InferProvider<typeof pipelineOrchestratorCapability>;
|
|
1685
1776
|
export type CameraStatus = z.infer<typeof CameraStatusSchema>;
|
|
1777
|
+
export type CameraStatusDegradation = z.infer<typeof CameraStatusDegradationSchema>;
|
|
1778
|
+
export type CameraStatusStage = z.infer<typeof CameraStatusStageSchema>;
|
|
1779
|
+
export type CameraStatusDegradationReason = z.infer<typeof CameraStatusDegradationReasonSchema>;
|
|
1686
1780
|
export type CameraAssignmentStatus = z.infer<typeof CameraAssignmentStatusSchema>;
|
|
1687
1781
|
export type CameraSourceStatus = z.infer<typeof CameraSourceStatusSchema>;
|
|
1688
1782
|
export type CameraSourceStream = z.infer<typeof CameraSourceStreamSchema>;
|
|
@@ -1701,4 +1795,4 @@ export type CameraRecordingMode = z.infer<typeof CameraRecordingModeSchema>;
|
|
|
1701
1795
|
export type IngestOwner = z.infer<typeof IngestOwnerSchema>;
|
|
1702
1796
|
export type NodeInferenceDevice = z.infer<typeof NodeInferenceDeviceSchema>;
|
|
1703
1797
|
export type NodeInferenceDevices = z.infer<typeof NodeInferenceDevicesSchema>;
|
|
1704
|
-
export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStepOverridePatchSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, PipelineTemplateSchema as OrchestratorPipelineTemplateSchema, };
|
|
1798
|
+
export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStepOverridePatchSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, PipelineTemplateSchema as OrchestratorPipelineTemplateSchema, };
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { CapabilityDefinition } from '../capabilities/capability-definition.js';
|
|
3
3
|
import type { IDeviceRuntimeState } from './device-runtime-state.js';
|
|
4
|
+
/**
|
|
5
|
+
* How long a bridge stops re-attempting a refresh that did not land.
|
|
6
|
+
*
|
|
7
|
+
* Sized against the failure it exists for: a camera whose control plane
|
|
8
|
+
* is unreachable costs the FULL connect give-up (~3s on Linux when the
|
|
9
|
+
* neighbour never answers, up to the client's own timeout otherwise) on
|
|
10
|
+
* every attempt, and a failed refresh never advances `lastFetchedAt`, so
|
|
11
|
+
* without a cooldown the slice is permanently stale and EVERY read pays
|
|
12
|
+
* that price. One attempt per minute is enough to notice the camera
|
|
13
|
+
* coming back; per-read is enough to stall the viewer's first paint.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS = 60000;
|
|
16
|
+
/**
|
|
17
|
+
* Minimal logger surface the bridge uses. Declared with METHOD syntax
|
|
18
|
+
* (not a property arrow) so the parameter check is bivariant — a scoped
|
|
19
|
+
* logger whose `warn` takes a structured `LogExtras` second argument
|
|
20
|
+
* satisfies this without the caller importing the logger types.
|
|
21
|
+
*/
|
|
22
|
+
export interface RuntimeStateBridgeExtras {
|
|
23
|
+
readonly tags?: Record<string, unknown>;
|
|
24
|
+
readonly meta?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
export interface RuntimeStateBridgeLogger {
|
|
27
|
+
warn(message: string, extras?: RuntimeStateBridgeExtras): void;
|
|
28
|
+
info(message: string, extras?: RuntimeStateBridgeExtras): void;
|
|
29
|
+
}
|
|
4
30
|
/**
|
|
5
31
|
* Bridge a cap's `runtimeState` slice to its read-side methods.
|
|
6
32
|
*
|
|
@@ -42,6 +68,26 @@ import type { IDeviceRuntimeState } from './device-runtime-state.js';
|
|
|
42
68
|
* INSIDE `refresh` — the camera client owns its own promise slot. This
|
|
43
69
|
* helper stays thin so a single provider can host multiple cap-bridged
|
|
44
70
|
* readers without fighting over a shared promise.
|
|
71
|
+
*
|
|
72
|
+
* ## A refresh that does not LAND is a miss, and a miss costs the caller
|
|
73
|
+
*
|
|
74
|
+
* Providers swallow their own camera errors (they keep the last slice
|
|
75
|
+
* rather than failing a read), so `refresh()` resolving proves nothing.
|
|
76
|
+
* The bridge gates on what it can verify: did `lastFetchedAt` advance.
|
|
77
|
+
* If it did not, the slice is still stale, so the very next read would
|
|
78
|
+
* call `refresh()` again — and on an unreachable camera each of those
|
|
79
|
+
* calls burns the full connect give-up. Measured on the live hub:
|
|
80
|
+
* `privacyMask.getStatus` for a camera whose IP stopped answering took
|
|
81
|
+
* 3.27s EVERY call (vs 0.20s for a reachable one), and that latency was
|
|
82
|
+
* inherited by the per-camera status aggregation the viewer runs on
|
|
83
|
+
* first paint.
|
|
84
|
+
*
|
|
85
|
+
* So a miss opens a cooldown ({@link RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS}):
|
|
86
|
+
* reads inside it answer immediately from the last (possibly `empty()`)
|
|
87
|
+
* slice with no camera I/O. The answer is unchanged — only the wait is
|
|
88
|
+
* gone. And the miss is LOGGED with `tags.deviceId`: a read that quietly
|
|
89
|
+
* returns defaults forever is exactly the silence that makes a dead
|
|
90
|
+
* camera look like a working one.
|
|
45
91
|
*/
|
|
46
92
|
export interface RuntimeStateBridge<TStatus> {
|
|
47
93
|
/** Run a stale-check; if the slice is missing or older than
|
|
@@ -65,4 +111,8 @@ export declare function createRuntimeStateBridge<TCap extends CapabilityDefiniti
|
|
|
65
111
|
readonly refresh: () => Promise<void>;
|
|
66
112
|
readonly staleMs: number;
|
|
67
113
|
readonly empty: () => z.infer<TCap['status']['schema']>;
|
|
114
|
+
/** Override the miss cooldown (tests, or a cap whose fetch is cheap). */
|
|
115
|
+
readonly refreshMissCooldownMs?: number;
|
|
116
|
+
/** Scoped logger so a refresh that never lands is visible per-device. */
|
|
117
|
+
readonly logger?: RuntimeStateBridgeLogger;
|
|
68
118
|
}): RuntimeStateBridge<z.infer<TCap['status']['schema']>>;
|
|
@@ -9304,7 +9304,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9304
9304
|
createShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
9305
9305
|
input: {
|
|
9306
9306
|
scope: {
|
|
9307
|
-
kind: "grid-view";
|
|
9307
|
+
kind: "grid-view" | "events-view";
|
|
9308
9308
|
deviceIds: number[];
|
|
9309
9309
|
};
|
|
9310
9310
|
ttlSec?: number | "never" | undefined;
|
|
@@ -9332,7 +9332,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9332
9332
|
userId: string;
|
|
9333
9333
|
tokenPrefix: string;
|
|
9334
9334
|
scope: {
|
|
9335
|
-
kind: "grid-view";
|
|
9335
|
+
kind: "grid-view" | "events-view";
|
|
9336
9336
|
deviceIds: number[];
|
|
9337
9337
|
};
|
|
9338
9338
|
createdAt: number;
|
|
@@ -9617,7 +9617,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9617
9617
|
createShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
9618
9618
|
input: {
|
|
9619
9619
|
scope: {
|
|
9620
|
-
kind: "grid-view";
|
|
9620
|
+
kind: "grid-view" | "events-view";
|
|
9621
9621
|
deviceIds: number[];
|
|
9622
9622
|
};
|
|
9623
9623
|
ttlSec?: number | "never" | undefined;
|
|
@@ -9645,7 +9645,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9645
9645
|
userId: string;
|
|
9646
9646
|
tokenPrefix: string;
|
|
9647
9647
|
scope: {
|
|
9648
|
-
kind: "grid-view";
|
|
9648
|
+
kind: "grid-view" | "events-view";
|
|
9649
9649
|
deviceIds: number[];
|
|
9650
9650
|
};
|
|
9651
9651
|
createdAt: number;
|
package/dist/index.js
CHANGED
|
@@ -14753,6 +14753,43 @@ var CameraRecordingStatusSchema = zod.z.object({
|
|
|
14753
14753
|
storageBytes: zod.z.number()
|
|
14754
14754
|
});
|
|
14755
14755
|
/**
|
|
14756
|
+
* The stages of the status fan-out that issue a BOUNDED remote read, and can
|
|
14757
|
+
* therefore be cut short. Every other block (`assignment`, `decoder`, `motion`,
|
|
14758
|
+
* `audio`) is composed from orchestrator-local state and cannot time out.
|
|
14759
|
+
*
|
|
14760
|
+
* `switches` is the operator's per-camera function switches — the read behind
|
|
14761
|
+
* `switchedOff`, not a block of its own.
|
|
14762
|
+
*/
|
|
14763
|
+
var CameraStatusStageSchema = zod.z.enum([
|
|
14764
|
+
"source",
|
|
14765
|
+
"broker",
|
|
14766
|
+
"detection",
|
|
14767
|
+
"recording",
|
|
14768
|
+
"switches"
|
|
14769
|
+
]);
|
|
14770
|
+
/**
|
|
14771
|
+
* WHY a stage could not be trusted.
|
|
14772
|
+
*
|
|
14773
|
+
* - `timeout` — the stage never answered and the whole status call paid the
|
|
14774
|
+
* full per-stage bound for it. This is the one that used to be invisible.
|
|
14775
|
+
* - `error` — the source answered with a rejection.
|
|
14776
|
+
* - `partial` — the stage RETURNED, but from an incomplete set of sources: its
|
|
14777
|
+
* value is a floor, not a total. `switchedOff` derived from a partial switch
|
|
14778
|
+
* read can be empty while the operator has switches off.
|
|
14779
|
+
*/
|
|
14780
|
+
var CameraStatusDegradationReasonSchema = zod.z.enum([
|
|
14781
|
+
"timeout",
|
|
14782
|
+
"error",
|
|
14783
|
+
"partial"
|
|
14784
|
+
]);
|
|
14785
|
+
/** One stage of the fan-out that could NOT be read, and how long it cost. */
|
|
14786
|
+
var CameraStatusDegradationSchema = zod.z.object({
|
|
14787
|
+
stage: CameraStatusStageSchema,
|
|
14788
|
+
reason: CameraStatusDegradationReasonSchema,
|
|
14789
|
+
/** Wall-clock ms spent on the stage before it was abandoned. */
|
|
14790
|
+
elapsedMs: zod.z.number()
|
|
14791
|
+
});
|
|
14792
|
+
/**
|
|
14756
14793
|
* Aggregated per-camera pipeline status — server-composed, single call.
|
|
14757
14794
|
*
|
|
14758
14795
|
* The `assignment` and `source` blocks are always present.
|
|
@@ -14782,9 +14819,28 @@ var CameraStatusSchema = zod.z.object({
|
|
|
14782
14819
|
* differently — a quiet camera that looks identical to a dead one is the
|
|
14783
14820
|
* silence-reads-as-never-happened trap this repo keeps paying for.
|
|
14784
14821
|
*
|
|
14785
|
-
* Empty when nothing is off
|
|
14822
|
+
* Empty when nothing is off, and never contains a switch no provider offers
|
|
14823
|
+
* — but an empty list is only a POSITIVE claim when `degraded` does not name
|
|
14824
|
+
* `'switches'`. When it does, the switch set could not be read and nothing
|
|
14825
|
+
* here may be rendered as "the operator turned nothing off": that is the
|
|
14826
|
+
* D62 failure (a camera we could not read painted as broken) in the very
|
|
14827
|
+
* field that exists to prevent it.
|
|
14786
14828
|
*/
|
|
14787
14829
|
switchedOff: zod.z.array(CameraSwitchIdSchema).readonly(),
|
|
14830
|
+
/**
|
|
14831
|
+
* Stages of the bounded fan-out that were CUT SHORT — a timeout or a
|
|
14832
|
+
* rejection — and whose block is therefore `null` because we could not
|
|
14833
|
+
* READ it, not because there is nothing there.
|
|
14834
|
+
*
|
|
14835
|
+
* Without this, three different facts arrive as the same `null`: "the stage
|
|
14836
|
+
* timed out", "the stage failed", and "this camera legitimately has no
|
|
14837
|
+
* decoder / no recording". Every surface that draws a conclusion from a null
|
|
14838
|
+
* block (or from an empty `switchedOff`) must consult this first; a stage
|
|
14839
|
+
* named here supports no conclusion at all, only "unknown".
|
|
14840
|
+
*
|
|
14841
|
+
* Empty on a clean read — the overwhelmingly common case.
|
|
14842
|
+
*/
|
|
14843
|
+
degraded: zod.z.array(CameraStatusDegradationSchema).readonly(),
|
|
14788
14844
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
14789
14845
|
fetchedAt: zod.z.number()
|
|
14790
14846
|
});
|
|
@@ -19114,7 +19170,29 @@ var FaceInfoSchema = zod.z.object({
|
|
|
19114
19170
|
recognizedIdentityId: zod.z.string().optional(),
|
|
19115
19171
|
identityName: zod.z.string().optional(),
|
|
19116
19172
|
assigned: zod.z.boolean(),
|
|
19173
|
+
/**
|
|
19174
|
+
* The crop, inline, base64.
|
|
19175
|
+
*
|
|
19176
|
+
* **Prefer {@link cropUrl}.** At the 500 rows the Faces view asks for this
|
|
19177
|
+
* field alone is ~2.87 MiB, re-sent in full on every operator assign and
|
|
19178
|
+
* every 30 s poll, base64-inflated over the msgpack socket and held in the
|
|
19179
|
+
* query heap. It stays for callers that have not migrated; `includeCrops:
|
|
19180
|
+
* false` turns it off once they have.
|
|
19181
|
+
*/
|
|
19117
19182
|
base64: zod.z.string().optional(),
|
|
19183
|
+
/**
|
|
19184
|
+
* Same crop, as a data-plane URL for `<img src>` — the move the admin
|
|
19185
|
+
* snapshot surfaces made on 2026-08-08.
|
|
19186
|
+
*
|
|
19187
|
+
* Served by the `event-media` plane, which resolves a raw MediaStore key and
|
|
19188
|
+
* is `access: 'authenticated'`: a bare `<img>` carries the `camstack_session`
|
|
19189
|
+
* cookie, so no header plumbing is needed. The bytes then ride the browser's
|
|
19190
|
+
* HTTP cache with an ETag and `immutable`, instead of the WebSocket.
|
|
19191
|
+
*
|
|
19192
|
+
* Absent when the face has no stored crop, or when the addon has no data
|
|
19193
|
+
* plane — callers fall back to {@link base64}.
|
|
19194
|
+
*/
|
|
19195
|
+
cropUrl: zod.z.string().optional(),
|
|
19118
19196
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
19119
19197
|
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
19120
19198
|
* legacy rows written before design B. */
|
|
@@ -19190,7 +19268,23 @@ var faceGalleryCapability = {
|
|
|
19190
19268
|
}),
|
|
19191
19269
|
listRecentFaces: require_sleep.method(zod.z.object({
|
|
19192
19270
|
limit: zod.z.number().int().positive().optional(),
|
|
19193
|
-
filter: FaceFilterEnum.optional()
|
|
19271
|
+
filter: FaceFilterEnum.optional(),
|
|
19272
|
+
/**
|
|
19273
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
19274
|
+
* behaviour, kept so no caller breaks.
|
|
19275
|
+
*
|
|
19276
|
+
* Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
|
|
19277
|
+
* drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
|
|
19278
|
+
* the browser cache the images.
|
|
19279
|
+
*
|
|
19280
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
19281
|
+
* next train.** The hub router validates cap inputs against its own
|
|
19282
|
+
* compiled Zod, which strips a key it does not know — verified today
|
|
19283
|
+
* on the OUTPUT side, where an additive field DOES arrive immediately
|
|
19284
|
+
* (`Track.hasFace`). Until the train ships, sending `false` is
|
|
19285
|
+
* harmless and simply keeps the crops inline.
|
|
19286
|
+
*/
|
|
19287
|
+
includeCrops: zod.z.boolean().optional()
|
|
19194
19288
|
}).optional(), zod.z.array(FaceInfoSchema).readonly()),
|
|
19195
19289
|
getFaceByTrack: require_sleep.method(zod.z.object({
|
|
19196
19290
|
deviceId: zod.z.number().int(),
|
|
@@ -27190,11 +27284,52 @@ function startReachabilityPoll(options) {
|
|
|
27190
27284
|
//#region src/device/runtime-state-helpers.ts
|
|
27191
27285
|
var LAST_FETCHED_FIELD = "lastFetchedAt";
|
|
27192
27286
|
function createRuntimeStateBridge(params) {
|
|
27193
|
-
const { runtimeState, cap, ownDeviceId, refresh, staleMs, empty } = params;
|
|
27287
|
+
const { runtimeState, cap, ownDeviceId, refresh, staleMs, empty, logger } = params;
|
|
27288
|
+
const missCooldownMs = params.refreshMissCooldownMs ?? 6e4;
|
|
27289
|
+
/** Epoch ms until which a refresh is not re-attempted. 0 = no cooldown. */
|
|
27290
|
+
let missCooldownUntil = 0;
|
|
27291
|
+
const readFetchedAt = () => {
|
|
27292
|
+
const value = runtimeState.getCapState(cap.name)?.[LAST_FETCHED_FIELD];
|
|
27293
|
+
return typeof value === "number" ? value : 0;
|
|
27294
|
+
};
|
|
27295
|
+
/**
|
|
27296
|
+
* Stop re-reading this camera for `missCooldownMs`, and say so. The
|
|
27297
|
+
* warn is the ONLY line an operator gets for a cap that has silently
|
|
27298
|
+
* been answering with defaults, so it names the cap and carries
|
|
27299
|
+
* `tags.deviceId` — a miss is always asked per-camera.
|
|
27300
|
+
*/
|
|
27301
|
+
const openMissCooldown = (err) => {
|
|
27302
|
+
missCooldownUntil = Date.now() + missCooldownMs;
|
|
27303
|
+
logger?.warn(`${cap.name}: refresh did not land — serving the last slice and not re-reading the camera for ${String(missCooldownMs)}ms`, {
|
|
27304
|
+
tags: { deviceId: ownDeviceId },
|
|
27305
|
+
meta: {
|
|
27306
|
+
cooldownMs: missCooldownMs,
|
|
27307
|
+
error: err === void 0 ? null : err instanceof Error ? err.message : String(err)
|
|
27308
|
+
}
|
|
27309
|
+
});
|
|
27310
|
+
};
|
|
27194
27311
|
const ensureFresh = async () => {
|
|
27195
27312
|
const slice = runtimeState.getCapState(cap.name);
|
|
27196
|
-
const fetchedAt =
|
|
27197
|
-
if (
|
|
27313
|
+
const fetchedAt = readFetchedAt();
|
|
27314
|
+
if (slice && Date.now() - fetchedAt <= staleMs) {
|
|
27315
|
+
missCooldownUntil = 0;
|
|
27316
|
+
return;
|
|
27317
|
+
}
|
|
27318
|
+
if (Date.now() < missCooldownUntil) return;
|
|
27319
|
+
try {
|
|
27320
|
+
await refresh();
|
|
27321
|
+
} catch (err) {
|
|
27322
|
+
openMissCooldown(err);
|
|
27323
|
+
throw err;
|
|
27324
|
+
}
|
|
27325
|
+
if (readFetchedAt() > fetchedAt) {
|
|
27326
|
+
if (missCooldownUntil !== 0) {
|
|
27327
|
+
missCooldownUntil = 0;
|
|
27328
|
+
logger?.info(`${cap.name}: refresh landed again — resuming normal polling`, { tags: { deviceId: ownDeviceId } });
|
|
27329
|
+
}
|
|
27330
|
+
return;
|
|
27331
|
+
}
|
|
27332
|
+
openMissCooldown(void 0);
|
|
27198
27333
|
};
|
|
27199
27334
|
const projectStatus = () => {
|
|
27200
27335
|
const slice = runtimeState.getCapState(cap.name);
|
|
@@ -38515,7 +38650,10 @@ exports.CameraRecordingModeSchema = CameraRecordingModeSchema;
|
|
|
38515
38650
|
exports.CameraRecordingStatusSchema = CameraRecordingStatusSchema;
|
|
38516
38651
|
exports.CameraSourceStatusSchema = CameraSourceStatusSchema;
|
|
38517
38652
|
exports.CameraSourceStreamSchema = CameraSourceStreamSchema;
|
|
38653
|
+
exports.CameraStatusDegradationReasonSchema = CameraStatusDegradationReasonSchema;
|
|
38654
|
+
exports.CameraStatusDegradationSchema = CameraStatusDegradationSchema;
|
|
38518
38655
|
exports.CameraStatusSchema = CameraStatusSchema;
|
|
38656
|
+
exports.CameraStatusStageSchema = CameraStatusStageSchema;
|
|
38519
38657
|
exports.CameraStreamSchema = require_sleep.CameraStreamSchema;
|
|
38520
38658
|
exports.CameraSwitchAuthoritySchema = CameraSwitchAuthoritySchema;
|
|
38521
38659
|
exports.CameraSwitchGroupSchema = CameraSwitchGroupSchema;
|
package/dist/index.mjs
CHANGED
|
@@ -14752,6 +14752,43 @@ var CameraRecordingStatusSchema = z.object({
|
|
|
14752
14752
|
storageBytes: z.number()
|
|
14753
14753
|
});
|
|
14754
14754
|
/**
|
|
14755
|
+
* The stages of the status fan-out that issue a BOUNDED remote read, and can
|
|
14756
|
+
* therefore be cut short. Every other block (`assignment`, `decoder`, `motion`,
|
|
14757
|
+
* `audio`) is composed from orchestrator-local state and cannot time out.
|
|
14758
|
+
*
|
|
14759
|
+
* `switches` is the operator's per-camera function switches — the read behind
|
|
14760
|
+
* `switchedOff`, not a block of its own.
|
|
14761
|
+
*/
|
|
14762
|
+
var CameraStatusStageSchema = z.enum([
|
|
14763
|
+
"source",
|
|
14764
|
+
"broker",
|
|
14765
|
+
"detection",
|
|
14766
|
+
"recording",
|
|
14767
|
+
"switches"
|
|
14768
|
+
]);
|
|
14769
|
+
/**
|
|
14770
|
+
* WHY a stage could not be trusted.
|
|
14771
|
+
*
|
|
14772
|
+
* - `timeout` — the stage never answered and the whole status call paid the
|
|
14773
|
+
* full per-stage bound for it. This is the one that used to be invisible.
|
|
14774
|
+
* - `error` — the source answered with a rejection.
|
|
14775
|
+
* - `partial` — the stage RETURNED, but from an incomplete set of sources: its
|
|
14776
|
+
* value is a floor, not a total. `switchedOff` derived from a partial switch
|
|
14777
|
+
* read can be empty while the operator has switches off.
|
|
14778
|
+
*/
|
|
14779
|
+
var CameraStatusDegradationReasonSchema = z.enum([
|
|
14780
|
+
"timeout",
|
|
14781
|
+
"error",
|
|
14782
|
+
"partial"
|
|
14783
|
+
]);
|
|
14784
|
+
/** One stage of the fan-out that could NOT be read, and how long it cost. */
|
|
14785
|
+
var CameraStatusDegradationSchema = z.object({
|
|
14786
|
+
stage: CameraStatusStageSchema,
|
|
14787
|
+
reason: CameraStatusDegradationReasonSchema,
|
|
14788
|
+
/** Wall-clock ms spent on the stage before it was abandoned. */
|
|
14789
|
+
elapsedMs: z.number()
|
|
14790
|
+
});
|
|
14791
|
+
/**
|
|
14755
14792
|
* Aggregated per-camera pipeline status — server-composed, single call.
|
|
14756
14793
|
*
|
|
14757
14794
|
* The `assignment` and `source` blocks are always present.
|
|
@@ -14781,9 +14818,28 @@ var CameraStatusSchema = z.object({
|
|
|
14781
14818
|
* differently — a quiet camera that looks identical to a dead one is the
|
|
14782
14819
|
* silence-reads-as-never-happened trap this repo keeps paying for.
|
|
14783
14820
|
*
|
|
14784
|
-
* Empty when nothing is off
|
|
14821
|
+
* Empty when nothing is off, and never contains a switch no provider offers
|
|
14822
|
+
* — but an empty list is only a POSITIVE claim when `degraded` does not name
|
|
14823
|
+
* `'switches'`. When it does, the switch set could not be read and nothing
|
|
14824
|
+
* here may be rendered as "the operator turned nothing off": that is the
|
|
14825
|
+
* D62 failure (a camera we could not read painted as broken) in the very
|
|
14826
|
+
* field that exists to prevent it.
|
|
14785
14827
|
*/
|
|
14786
14828
|
switchedOff: z.array(CameraSwitchIdSchema).readonly(),
|
|
14829
|
+
/**
|
|
14830
|
+
* Stages of the bounded fan-out that were CUT SHORT — a timeout or a
|
|
14831
|
+
* rejection — and whose block is therefore `null` because we could not
|
|
14832
|
+
* READ it, not because there is nothing there.
|
|
14833
|
+
*
|
|
14834
|
+
* Without this, three different facts arrive as the same `null`: "the stage
|
|
14835
|
+
* timed out", "the stage failed", and "this camera legitimately has no
|
|
14836
|
+
* decoder / no recording". Every surface that draws a conclusion from a null
|
|
14837
|
+
* block (or from an empty `switchedOff`) must consult this first; a stage
|
|
14838
|
+
* named here supports no conclusion at all, only "unknown".
|
|
14839
|
+
*
|
|
14840
|
+
* Empty on a clean read — the overwhelmingly common case.
|
|
14841
|
+
*/
|
|
14842
|
+
degraded: z.array(CameraStatusDegradationSchema).readonly(),
|
|
14787
14843
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
14788
14844
|
fetchedAt: z.number()
|
|
14789
14845
|
});
|
|
@@ -19113,7 +19169,29 @@ var FaceInfoSchema = z.object({
|
|
|
19113
19169
|
recognizedIdentityId: z.string().optional(),
|
|
19114
19170
|
identityName: z.string().optional(),
|
|
19115
19171
|
assigned: z.boolean(),
|
|
19172
|
+
/**
|
|
19173
|
+
* The crop, inline, base64.
|
|
19174
|
+
*
|
|
19175
|
+
* **Prefer {@link cropUrl}.** At the 500 rows the Faces view asks for this
|
|
19176
|
+
* field alone is ~2.87 MiB, re-sent in full on every operator assign and
|
|
19177
|
+
* every 30 s poll, base64-inflated over the msgpack socket and held in the
|
|
19178
|
+
* query heap. It stays for callers that have not migrated; `includeCrops:
|
|
19179
|
+
* false` turns it off once they have.
|
|
19180
|
+
*/
|
|
19116
19181
|
base64: z.string().optional(),
|
|
19182
|
+
/**
|
|
19183
|
+
* Same crop, as a data-plane URL for `<img src>` — the move the admin
|
|
19184
|
+
* snapshot surfaces made on 2026-08-08.
|
|
19185
|
+
*
|
|
19186
|
+
* Served by the `event-media` plane, which resolves a raw MediaStore key and
|
|
19187
|
+
* is `access: 'authenticated'`: a bare `<img>` carries the `camstack_session`
|
|
19188
|
+
* cookie, so no header plumbing is needed. The bytes then ride the browser's
|
|
19189
|
+
* HTTP cache with an ETag and `immutable`, instead of the WebSocket.
|
|
19190
|
+
*
|
|
19191
|
+
* Absent when the face has no stored crop, or when the addon has no data
|
|
19192
|
+
* plane — callers fall back to {@link base64}.
|
|
19193
|
+
*/
|
|
19194
|
+
cropUrl: z.string().optional(),
|
|
19117
19195
|
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
19118
19196
|
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
19119
19197
|
* legacy rows written before design B. */
|
|
@@ -19189,7 +19267,23 @@ var faceGalleryCapability = {
|
|
|
19189
19267
|
}),
|
|
19190
19268
|
listRecentFaces: method(z.object({
|
|
19191
19269
|
limit: z.number().int().positive().optional(),
|
|
19192
|
-
filter: FaceFilterEnum.optional()
|
|
19270
|
+
filter: FaceFilterEnum.optional(),
|
|
19271
|
+
/**
|
|
19272
|
+
* Inline the base64 crop on every row. Default `true` — the existing
|
|
19273
|
+
* behaviour, kept so no caller breaks.
|
|
19274
|
+
*
|
|
19275
|
+
* Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
|
|
19276
|
+
* drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
|
|
19277
|
+
* the browser cache the images.
|
|
19278
|
+
*
|
|
19279
|
+
* **This is an INPUT field, so it does not reach the addon until the
|
|
19280
|
+
* next train.** The hub router validates cap inputs against its own
|
|
19281
|
+
* compiled Zod, which strips a key it does not know — verified today
|
|
19282
|
+
* on the OUTPUT side, where an additive field DOES arrive immediately
|
|
19283
|
+
* (`Track.hasFace`). Until the train ships, sending `false` is
|
|
19284
|
+
* harmless and simply keeps the crops inline.
|
|
19285
|
+
*/
|
|
19286
|
+
includeCrops: z.boolean().optional()
|
|
19193
19287
|
}).optional(), z.array(FaceInfoSchema).readonly()),
|
|
19194
19288
|
getFaceByTrack: method(z.object({
|
|
19195
19289
|
deviceId: z.number().int(),
|
|
@@ -27189,11 +27283,52 @@ function startReachabilityPoll(options) {
|
|
|
27189
27283
|
//#region src/device/runtime-state-helpers.ts
|
|
27190
27284
|
var LAST_FETCHED_FIELD = "lastFetchedAt";
|
|
27191
27285
|
function createRuntimeStateBridge(params) {
|
|
27192
|
-
const { runtimeState, cap, ownDeviceId, refresh, staleMs, empty } = params;
|
|
27286
|
+
const { runtimeState, cap, ownDeviceId, refresh, staleMs, empty, logger } = params;
|
|
27287
|
+
const missCooldownMs = params.refreshMissCooldownMs ?? 6e4;
|
|
27288
|
+
/** Epoch ms until which a refresh is not re-attempted. 0 = no cooldown. */
|
|
27289
|
+
let missCooldownUntil = 0;
|
|
27290
|
+
const readFetchedAt = () => {
|
|
27291
|
+
const value = runtimeState.getCapState(cap.name)?.[LAST_FETCHED_FIELD];
|
|
27292
|
+
return typeof value === "number" ? value : 0;
|
|
27293
|
+
};
|
|
27294
|
+
/**
|
|
27295
|
+
* Stop re-reading this camera for `missCooldownMs`, and say so. The
|
|
27296
|
+
* warn is the ONLY line an operator gets for a cap that has silently
|
|
27297
|
+
* been answering with defaults, so it names the cap and carries
|
|
27298
|
+
* `tags.deviceId` — a miss is always asked per-camera.
|
|
27299
|
+
*/
|
|
27300
|
+
const openMissCooldown = (err) => {
|
|
27301
|
+
missCooldownUntil = Date.now() + missCooldownMs;
|
|
27302
|
+
logger?.warn(`${cap.name}: refresh did not land — serving the last slice and not re-reading the camera for ${String(missCooldownMs)}ms`, {
|
|
27303
|
+
tags: { deviceId: ownDeviceId },
|
|
27304
|
+
meta: {
|
|
27305
|
+
cooldownMs: missCooldownMs,
|
|
27306
|
+
error: err === void 0 ? null : err instanceof Error ? err.message : String(err)
|
|
27307
|
+
}
|
|
27308
|
+
});
|
|
27309
|
+
};
|
|
27193
27310
|
const ensureFresh = async () => {
|
|
27194
27311
|
const slice = runtimeState.getCapState(cap.name);
|
|
27195
|
-
const fetchedAt =
|
|
27196
|
-
if (
|
|
27312
|
+
const fetchedAt = readFetchedAt();
|
|
27313
|
+
if (slice && Date.now() - fetchedAt <= staleMs) {
|
|
27314
|
+
missCooldownUntil = 0;
|
|
27315
|
+
return;
|
|
27316
|
+
}
|
|
27317
|
+
if (Date.now() < missCooldownUntil) return;
|
|
27318
|
+
try {
|
|
27319
|
+
await refresh();
|
|
27320
|
+
} catch (err) {
|
|
27321
|
+
openMissCooldown(err);
|
|
27322
|
+
throw err;
|
|
27323
|
+
}
|
|
27324
|
+
if (readFetchedAt() > fetchedAt) {
|
|
27325
|
+
if (missCooldownUntil !== 0) {
|
|
27326
|
+
missCooldownUntil = 0;
|
|
27327
|
+
logger?.info(`${cap.name}: refresh landed again — resuming normal polling`, { tags: { deviceId: ownDeviceId } });
|
|
27328
|
+
}
|
|
27329
|
+
return;
|
|
27330
|
+
}
|
|
27331
|
+
openMissCooldown(void 0);
|
|
27197
27332
|
};
|
|
27198
27333
|
const projectStatus = () => {
|
|
27199
27334
|
const slice = runtimeState.getCapState(cap.name);
|
|
@@ -38386,4 +38521,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
38386
38521
|
return out;
|
|
38387
38522
|
}
|
|
38388
38523
|
//#endregion
|
|
38389
|
-
export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
38524
|
+
export { ACCESSORY_LABEL, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AUDIO_PRESETS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CORE_BLOCK_ADDON_PREFIX, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileResultSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_PIPELINE_CAP_NAME, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SCOPED_CAPS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, EngineInfoSchema as DataStoreEngineInfoSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DeclaredDevices, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetailCropConventionSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, Fmp4BoxSplitter, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LOG_LEVEL_RANK, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TTL_FIELD, NATIVE_LEASE_TTL_KEY, NC_BASE_CONDITION_KEYS, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_SNOOZE_MAX_MINUTES, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcAlarmConfigSchema, NcAlarmModeCoverageSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaFrameSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionSchema, NcRuleActionSequenceSchema, NcRuleActionsSchema, NcRuleInputSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceOptionSchema, OsdSourceSchema, OsdSourceValueTypeEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PRIVACY_MASK_CAP_NAME, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RenderedAsSchema, ReportMotionInputSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainMacroClassSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTransitionResultSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackProjectionSchema, TrackSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainingExportDeviceTotalsSchema, TrainingExportSummarySchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VibrationStatusSchema, VideoEncodeSchema, WEBRTC_EGRESS_PROFILE, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, audioPlanFromEncodeProfile, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildAudioArgs, buildEventKindDescriptor, buildFfmpegArgs, buildInputArgs, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buildVideoArgs, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dataStoreProviderCapability, dayNightCapability, declarationOwnerNodeId, decodeVectorBase64, decoderCapability, defaultDeviceFor, defineCustomActions, deriveCameraSwitches, deriveDetailCropRect, deriveRecordingMode, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, egressTranscodeSharingKey, egressTransportFromRequest, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, encodeVectorBase64, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateExpressionSource, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, invocationFromEncodeProfile, isAgentOnlyPlacement, isArrayOutputSchema, isBaseConditionKey, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isDeviceScopedCap, isEvent, isNode, isObjectInput, isSameAddonId, isScheduleActive, isSoftwareDecode, isVoidInput, jobKindSchema, kebabToCamel, knownValues, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logBannerArgs, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, osdManagerCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickDetailCropConvention, pickNativeLeaseOverride, pickPreferredRtspEntry, pickVideoEncoder, pickerForCondition, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readDetailCropConvention, readDeviceStateFrom, readNativeLeaseOverride, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveEgressDecodeHwAccel, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, stateVocabularyFor, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, summarisePrivacyAudio, supportedRuntimes, switchCapability, switchedOffIds, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, terminalSessionCapability, textToHtml, toDeviceSummary, toExpressionValue, toNodeId, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vectorDimFromBase64, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|