@camstack/types 1.2.109 → 1.2.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/addons.cap.d.ts +9 -9
- package/dist/capabilities/broker.cap.d.ts +4 -4
- package/dist/capabilities/camera-streams.cap.d.ts +5 -5
- package/dist/capabilities/climate-control.cap.d.ts +8 -8
- package/dist/capabilities/core-blocks.cap.d.ts +16 -16
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/decoder.cap.d.ts +13 -13
- package/dist/capabilities/device-manager.cap.d.ts +5 -5
- package/dist/capabilities/face-gallery.cap.d.ts +1 -1
- package/dist/capabilities/image-settings.cap.d.ts +16 -16
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
- package/dist/capabilities/llm.cap.d.ts +4 -4
- package/dist/capabilities/media-player.cap.d.ts +9 -9
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +3 -3
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/notification-output.cap.d.ts +9 -9
- package/dist/capabilities/notification-rules.cap.d.ts +10 -10
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/osd-manager.cap.d.ts +2 -2
- package/dist/capabilities/pipeline-analytics.cap.d.ts +96 -54
- package/dist/capabilities/pipeline-executor.cap.d.ts +67 -19
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +21 -21
- package/dist/capabilities/pipeline-runner.cap.d.ts +6 -6
- package/dist/capabilities/platform-probe.cap.d.ts +2 -2
- package/dist/capabilities/recording-export.cap.d.ts +7 -7
- package/dist/capabilities/recording.cap.d.ts +7 -7
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/orchestrator-metrics.d.ts +2 -2
- package/dist/capabilities/schemas/streaming-shared.d.ts +11 -11
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/storage-migration.cap.d.ts +4 -4
- package/dist/capabilities/storage.cap.d.ts +2 -2
- package/dist/capabilities/stream-broker.cap.d.ts +50 -50
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/capabilities/vacuum-control.cap.d.ts +26 -26
- package/dist/capabilities/webrtc-session.cap.d.ts +4 -4
- package/dist/generated/addon-api.d.ts +29 -8
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +70 -5
- package/dist/index.mjs +70 -5
- package/dist/interfaces/adoption-job.d.ts +2 -2
- package/dist/interfaces/relocate.d.ts +10 -10
- package/dist/interfaces/stream-broker.d.ts +2 -2
- package/dist/lifecycle/job.d.ts +8 -8
- package/dist/{sleep-BJTBu5cu.js → sleep-DnbNfEhn.js} +3 -0
- package/dist/{sleep-Dj1DG9Od.mjs → sleep-swxwnJmL.mjs} +3 -0
- package/dist/types/frame-view.d.ts +10 -24
- package/dist/types/labels.d.ts +30 -1
- package/dist/types/models.d.ts +4 -4
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ export declare const DecoderSessionConfigSchema: z.ZodObject<{
|
|
|
17
17
|
codec: z.ZodString;
|
|
18
18
|
maxFps: z.ZodDefault<z.ZodNumber>;
|
|
19
19
|
outputFormat: z.ZodDefault<z.ZodEnum<{
|
|
20
|
-
rgb: "rgb";
|
|
21
|
-
gray: "gray";
|
|
22
20
|
jpeg: "jpeg";
|
|
21
|
+
rgb: "rgb";
|
|
23
22
|
bgr: "bgr";
|
|
24
23
|
yuv420: "yuv420";
|
|
24
|
+
gray: "gray";
|
|
25
25
|
}>>;
|
|
26
26
|
scale: z.ZodDefault<z.ZodNumber>;
|
|
27
27
|
width: z.ZodOptional<z.ZodNumber>;
|
package/dist/lifecycle/job.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const jobKindSchema: z.ZodEnum<{
|
|
|
7
7
|
}>;
|
|
8
8
|
export type JobKind = z.infer<typeof jobKindSchema>;
|
|
9
9
|
export declare const taskPhaseSchema: z.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
10
11
|
queued: "queued";
|
|
11
12
|
fetching: "fetching";
|
|
12
13
|
staged: "staged";
|
|
@@ -15,7 +16,6 @@ export declare const taskPhaseSchema: z.ZodEnum<{
|
|
|
15
16
|
restarting: "restarting";
|
|
16
17
|
applied: "applied";
|
|
17
18
|
done: "done";
|
|
18
|
-
failed: "failed";
|
|
19
19
|
skipped: "skipped";
|
|
20
20
|
}>;
|
|
21
21
|
export type TaskPhase = z.infer<typeof taskPhaseSchema>;
|
|
@@ -29,6 +29,7 @@ export declare const taskLogEntrySchema: z.ZodObject<{
|
|
|
29
29
|
nodeId: z.ZodString;
|
|
30
30
|
packageName: z.ZodString;
|
|
31
31
|
phase: z.ZodEnum<{
|
|
32
|
+
failed: "failed";
|
|
32
33
|
queued: "queued";
|
|
33
34
|
fetching: "fetching";
|
|
34
35
|
staged: "staged";
|
|
@@ -37,7 +38,6 @@ export declare const taskLogEntrySchema: z.ZodObject<{
|
|
|
37
38
|
restarting: "restarting";
|
|
38
39
|
applied: "applied";
|
|
39
40
|
done: "done";
|
|
40
|
-
failed: "failed";
|
|
41
41
|
skipped: "skipped";
|
|
42
42
|
}>;
|
|
43
43
|
message: z.ZodString;
|
|
@@ -54,6 +54,7 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
54
54
|
addon: "addon";
|
|
55
55
|
}>;
|
|
56
56
|
phase: z.ZodEnum<{
|
|
57
|
+
failed: "failed";
|
|
57
58
|
queued: "queued";
|
|
58
59
|
fetching: "fetching";
|
|
59
60
|
staged: "staged";
|
|
@@ -62,7 +63,6 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
62
63
|
restarting: "restarting";
|
|
63
64
|
applied: "applied";
|
|
64
65
|
done: "done";
|
|
65
|
-
failed: "failed";
|
|
66
66
|
skipped: "skipped";
|
|
67
67
|
}>;
|
|
68
68
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -72,6 +72,7 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
72
72
|
nodeId: z.ZodString;
|
|
73
73
|
packageName: z.ZodString;
|
|
74
74
|
phase: z.ZodEnum<{
|
|
75
|
+
failed: "failed";
|
|
75
76
|
queued: "queued";
|
|
76
77
|
fetching: "fetching";
|
|
77
78
|
staged: "staged";
|
|
@@ -80,7 +81,6 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
80
81
|
restarting: "restarting";
|
|
81
82
|
applied: "applied";
|
|
82
83
|
done: "done";
|
|
83
|
-
failed: "failed";
|
|
84
84
|
skipped: "skipped";
|
|
85
85
|
}>;
|
|
86
86
|
message: z.ZodString;
|
|
@@ -91,8 +91,8 @@ export declare const lifecycleTaskSchema: z.ZodObject<{
|
|
|
91
91
|
}, z.core.$strip>;
|
|
92
92
|
export type LifecycleTask = z.infer<typeof lifecycleTaskSchema>;
|
|
93
93
|
export declare const lifecycleJobStateSchema: z.ZodEnum<{
|
|
94
|
-
running: "running";
|
|
95
94
|
failed: "failed";
|
|
95
|
+
running: "running";
|
|
96
96
|
completed: "completed";
|
|
97
97
|
"partially-failed": "partially-failed";
|
|
98
98
|
cancelled: "cancelled";
|
|
@@ -130,6 +130,7 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
130
130
|
addon: "addon";
|
|
131
131
|
}>;
|
|
132
132
|
phase: z.ZodEnum<{
|
|
133
|
+
failed: "failed";
|
|
133
134
|
queued: "queued";
|
|
134
135
|
fetching: "fetching";
|
|
135
136
|
staged: "staged";
|
|
@@ -138,7 +139,6 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
138
139
|
restarting: "restarting";
|
|
139
140
|
applied: "applied";
|
|
140
141
|
done: "done";
|
|
141
|
-
failed: "failed";
|
|
142
142
|
skipped: "skipped";
|
|
143
143
|
}>;
|
|
144
144
|
stagedPath: z.ZodNullable<z.ZodString>;
|
|
@@ -148,6 +148,7 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
148
148
|
nodeId: z.ZodString;
|
|
149
149
|
packageName: z.ZodString;
|
|
150
150
|
phase: z.ZodEnum<{
|
|
151
|
+
failed: "failed";
|
|
151
152
|
queued: "queued";
|
|
152
153
|
fetching: "fetching";
|
|
153
154
|
staged: "staged";
|
|
@@ -156,7 +157,6 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
156
157
|
restarting: "restarting";
|
|
157
158
|
applied: "applied";
|
|
158
159
|
done: "done";
|
|
159
|
-
failed: "failed";
|
|
160
160
|
skipped: "skipped";
|
|
161
161
|
}>;
|
|
162
162
|
message: z.ZodString;
|
|
@@ -166,8 +166,8 @@ export declare const lifecycleJobSchema: z.ZodObject<{
|
|
|
166
166
|
finishedAtMs: z.ZodNullable<z.ZodNumber>;
|
|
167
167
|
}, z.core.$strip>>;
|
|
168
168
|
state: z.ZodEnum<{
|
|
169
|
-
running: "running";
|
|
170
169
|
failed: "failed";
|
|
170
|
+
running: "running";
|
|
171
171
|
completed: "completed";
|
|
172
172
|
"partially-failed": "partially-failed";
|
|
173
173
|
cancelled: "cancelled";
|
|
@@ -3325,6 +3325,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3325
3325
|
startStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "startStorageMigrationMove", "mutation", input),
|
|
3326
3326
|
getStorageMigrationMoveStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getStorageMigrationMoveStatus", "query", input),
|
|
3327
3327
|
cancelStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelStorageMigrationMove", "mutation", input),
|
|
3328
|
+
relocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "relocateMedia", "mutation", input),
|
|
3329
|
+
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3330
|
+
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3328
3331
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3329
3332
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3330
3333
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
@@ -3325,6 +3325,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3325
3325
|
startStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "startStorageMigrationMove", "mutation", input),
|
|
3326
3326
|
getStorageMigrationMoveStatus: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getStorageMigrationMoveStatus", "query", input),
|
|
3327
3327
|
cancelStorageMigrationMove: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelStorageMigrationMove", "mutation", input),
|
|
3328
|
+
relocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "relocateMedia", "mutation", input),
|
|
3329
|
+
listRelocateMediaJobs: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listRelocateMediaJobs", "query", input),
|
|
3330
|
+
cancelRelocateMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "cancelRelocateMedia", "mutation", input),
|
|
3328
3331
|
listOpsLog: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "listOpsLog", "query", input),
|
|
3329
3332
|
getTrainingExportSummary: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportSummary", "query", input),
|
|
3330
3333
|
getTrainingExportUrl: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrainingExportUrl", "query", input),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `FrameViewSpec` and `FrameRef` are DERIVED from their wire schemas
|
|
3
|
+
* (`FrameViewSpecSchema` / `FrameRefSchema`) in `capabilities/pipeline-executor.cap.ts`
|
|
4
|
+
* — that is where the schema and the type both live, so re-export rather than
|
|
5
|
+
* redeclare here. See the schema-type-twin guard
|
|
6
|
+
* (`scripts/check-schema-type-twins.ts`): a hand-written duplicate of a Zod
|
|
7
|
+
* shape drifts silently and strips fields on the wire.
|
|
8
|
+
*/
|
|
9
|
+
export type { FrameRef, FrameViewSpec } from '../capabilities/pipeline-executor.cap.js';
|
|
10
|
+
import type { FrameViewSpec } from '../capabilities/pipeline-executor.cap.js';
|
|
2
11
|
export interface FrameViewCrop {
|
|
3
12
|
readonly left: number;
|
|
4
13
|
readonly top: number;
|
|
5
14
|
readonly width: number;
|
|
6
15
|
readonly height: number;
|
|
7
16
|
}
|
|
8
|
-
export interface FrameViewSpec {
|
|
9
|
-
readonly crop?: FrameViewCrop;
|
|
10
|
-
readonly content: {
|
|
11
|
-
readonly width: number;
|
|
12
|
-
readonly height: number;
|
|
13
|
-
};
|
|
14
|
-
readonly fit: 'stretch' | 'contain';
|
|
15
|
-
readonly format: 'rgb' | 'gray' | 'jpeg';
|
|
16
|
-
}
|
|
17
17
|
export interface FrameViewGeometry {
|
|
18
18
|
readonly source: {
|
|
19
19
|
readonly width: number;
|
|
@@ -29,20 +29,6 @@ export interface FrameViewGeometry {
|
|
|
29
29
|
readonly y: number;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Process-local frame identity. It is serializable so it can ride an in-process
|
|
34
|
-
* capability call, but `registryId` deliberately prevents resolution in any
|
|
35
|
-
* other process or execution group.
|
|
36
|
-
*/
|
|
37
|
-
export interface FrameRef {
|
|
38
|
-
readonly registryId: string;
|
|
39
|
-
readonly id: string;
|
|
40
|
-
readonly width: number;
|
|
41
|
-
readonly height: number;
|
|
42
|
-
readonly format: Extract<FrameFormat, 'rgb' | 'gray'>;
|
|
43
|
-
readonly timestamp: number;
|
|
44
|
-
readonly capturedAt?: number;
|
|
45
|
-
}
|
|
46
32
|
export interface MaterializedFrameView {
|
|
47
33
|
readonly data: Uint8Array;
|
|
48
34
|
readonly width: number;
|
package/dist/types/labels.d.ts
CHANGED
|
@@ -7,13 +7,41 @@ export declare const LabelDefinitionSchema: z.ZodObject<{
|
|
|
7
7
|
icon: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type LabelDefinition = z.infer<typeof LabelDefinitionSchema>;
|
|
10
|
+
/**
|
|
11
|
+
* General raw-label → macro-label map. Deliberately loose (`mapping` values
|
|
12
|
+
* are plain `string`) — it covers both video detection macros
|
|
13
|
+
* (`person`/`vehicle`/`animal`/`package`, see `COCO_TO_MACRO`) and audio
|
|
14
|
+
* classification macros (`speech`/`scream`/`crying`/…, see `YAMNET_TO_MACRO`),
|
|
15
|
+
* which are disjoint vocabularies. Do NOT constrain this to
|
|
16
|
+
* {@link CLASS_MAP_MACRO_TARGETS} — that set is scoped to the narrower,
|
|
17
|
+
* wire-validated {@link DetectionCatalogClassMapSchema} below.
|
|
18
|
+
*/
|
|
10
19
|
export interface ClassMapDefinition {
|
|
11
20
|
readonly mapping: Readonly<Record<string, string>>;
|
|
12
21
|
readonly preserveOriginal: boolean;
|
|
13
22
|
}
|
|
14
23
|
/** Detection-macro targets a catalog `classMap` may resolve to. */
|
|
15
24
|
export declare const CLASS_MAP_MACRO_TARGETS: readonly ["person", "vehicle", "animal", "package"];
|
|
16
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Wire schema for a per-model CATALOG classMap override
|
|
27
|
+
* (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
|
|
28
|
+
* restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
|
|
29
|
+
* detection pipeline executor actually routes.
|
|
30
|
+
*
|
|
31
|
+
* This is deliberately a DIFFERENT, narrower shape than the general-purpose
|
|
32
|
+
* `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
|
|
33
|
+
* and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
|
|
34
|
+
* enum) — the two used to share the name `ClassMapDefinition`/
|
|
35
|
+
* `ClassMapDefinitionSchema`, which made the schema-type-twin guard
|
|
36
|
+
* (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
|
|
37
|
+
* are not: it is two different concepts colliding on a name. Keep this type
|
|
38
|
+
* under its own name rather than reusing `ClassMapDefinition` — reusing it
|
|
39
|
+
* would either narrow every `ClassMapDefinition` consumer to the four
|
|
40
|
+
* detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
|
|
41
|
+
* schema exists for (see the "rejects a classMap whose target is not a
|
|
42
|
+
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
43
|
+
*/
|
|
44
|
+
export declare const DetectionCatalogClassMapSchema: z.ZodObject<{
|
|
17
45
|
mapping: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
18
46
|
person: "person";
|
|
19
47
|
vehicle: "vehicle";
|
|
@@ -22,3 +50,4 @@ export declare const ClassMapDefinitionSchema: z.ZodObject<{
|
|
|
22
50
|
}>>;
|
|
23
51
|
preserveOriginal: z.ZodBoolean;
|
|
24
52
|
}, z.core.$strip>;
|
|
53
|
+
export type DetectionCatalogClassMap = z.infer<typeof DetectionCatalogClassMapSchema>;
|
package/dist/types/models.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ export declare const ModelProviderIdSchema: z.ZodEnum<{
|
|
|
140
140
|
frigate: "frigate";
|
|
141
141
|
scrypted: "scrypted";
|
|
142
142
|
}>;
|
|
143
|
-
export type ModelProviderId =
|
|
143
|
+
export type ModelProviderId = z.infer<typeof ModelProviderIdSchema>;
|
|
144
144
|
export interface InferModelProviderInput {
|
|
145
145
|
readonly id: string;
|
|
146
146
|
readonly provider?: ModelProviderId;
|
|
@@ -325,8 +325,8 @@ export interface CustomModelMetadata {
|
|
|
325
325
|
export declare const ConvertTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
326
326
|
format: z.ZodLiteral<"openvino">;
|
|
327
327
|
precisions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
328
|
-
int8: "int8";
|
|
329
328
|
fp16: "fp16";
|
|
329
|
+
int8: "int8";
|
|
330
330
|
}>>>;
|
|
331
331
|
}, z.core.$strip>, z.ZodObject<{
|
|
332
332
|
format: z.ZodLiteral<"coreml">;
|
|
@@ -389,8 +389,8 @@ export declare const ConvertArtifactSchema: z.ZodObject<{
|
|
|
389
389
|
gguf: "gguf";
|
|
390
390
|
}>;
|
|
391
391
|
precision: z.ZodOptional<z.ZodEnum<{
|
|
392
|
-
int8: "int8";
|
|
393
392
|
fp16: "fp16";
|
|
393
|
+
int8: "int8";
|
|
394
394
|
}>>;
|
|
395
395
|
sizeMB: z.ZodNumber;
|
|
396
396
|
validated: z.ZodBoolean;
|
|
@@ -542,8 +542,8 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
542
542
|
gguf: "gguf";
|
|
543
543
|
}>;
|
|
544
544
|
precision: z.ZodOptional<z.ZodEnum<{
|
|
545
|
-
int8: "int8";
|
|
546
545
|
fp16: "fp16";
|
|
546
|
+
int8: "int8";
|
|
547
547
|
}>>;
|
|
548
548
|
sizeMB: z.ZodNumber;
|
|
549
549
|
validated: z.ZodBoolean;
|