@camstack/types 1.2.264 → 1.2.266
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/automation/recipe.d.ts +1 -1
- package/dist/capabilities/composer.cap.d.ts +328 -0
- package/dist/capabilities/control.cap.d.ts +4 -4
- package/dist/capabilities/core-blocks.cap.d.ts +2339 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +4 -2
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/device-extension.cap.d.ts +8 -8
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/model-convert.cap.d.ts +4 -3
- package/dist/capabilities/model-distributor.cap.d.ts +4 -2
- package/dist/capabilities/notification-rules.cap.d.ts +74 -74
- package/dist/capabilities/osd-manager.cap.d.ts +13 -13
- package/dist/capabilities/pipeline-executor.cap.d.ts +5 -0
- package/dist/composition/composition-graph.d.ts +36 -0
- package/dist/composition/composition-report.d.ts +264 -0
- package/dist/composition/composition.d.ts +362 -0
- package/dist/composition/evaluate-field.d.ts +63 -0
- package/dist/composition/examples.d.ts +10 -0
- package/dist/composition/expression-kinds.d.ts +36 -0
- package/dist/composition/index.d.ts +12 -0
- package/dist/composition/state-fields.d.ts +19 -0
- package/dist/composition/validate-composition.d.ts +46 -0
- package/dist/device/schema-fields.d.ts +3 -0
- package/dist/expression/builtins.d.ts +30 -2
- package/dist/generated/addon-api.d.ts +57 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1350 -80
- package/dist/index.mjs +1278 -81
- package/dist/notification/rule-kinds.d.ts +3 -2
- package/dist/types/models.d.ts +5 -3
- package/dist/types/pipeline-step.d.ts +6 -1
- package/package.json +1 -1
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
* families — or name a legacy kind, or none — derives `mixed`: it keeps firing,
|
|
72
72
|
* it is listed and deletable, and it is never edited.
|
|
73
73
|
*/
|
|
74
|
-
import
|
|
74
|
+
import type { z } from 'zod';
|
|
75
|
+
import { type NcAudioCondition, type NcConditions, type NcDelivery, type NcOccupancyCondition, type NcRuleKindSchema } from '../capabilities/notification-rules.cap.js';
|
|
75
76
|
import { type NcSystemEventFamily } from './system-event-families.js';
|
|
76
77
|
/**
|
|
77
78
|
* The kind of rule an operator is authoring.
|
|
@@ -82,7 +83,7 @@ import { type NcSystemEventFamily } from './system-event-families.js';
|
|
|
82
83
|
* and `immediate` each split in two on their discriminating condition, and
|
|
83
84
|
* `system-event` splits by the FAMILY of the event kinds it names (D637).
|
|
84
85
|
*/
|
|
85
|
-
export type NcRuleKind =
|
|
86
|
+
export type NcRuleKind = z.infer<typeof NcRuleKindSchema>;
|
|
86
87
|
/** Every kind a `system-event` rule can derive — the three families and `mixed`. */
|
|
87
88
|
export declare const NC_SYSTEM_RULE_KINDS: readonly ["device-events", "system", "alarm", "mixed"];
|
|
88
89
|
/** Is this a kind a `system-event` rule derives (any family, or `mixed`)? */
|
package/dist/types/models.d.ts
CHANGED
|
@@ -260,9 +260,9 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
|
|
|
260
260
|
}>>;
|
|
261
261
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
262
262
|
none: "none";
|
|
263
|
-
scrfd: "scrfd";
|
|
264
263
|
"zero-one": "zero-one";
|
|
265
264
|
imagenet: "imagenet";
|
|
265
|
+
scrfd: "scrfd";
|
|
266
266
|
}>>;
|
|
267
267
|
outputProbabilities: z.ZodOptional<z.ZodBoolean>;
|
|
268
268
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -270,6 +270,7 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
|
|
|
270
270
|
resize: "resize";
|
|
271
271
|
}>>;
|
|
272
272
|
postprocessor: z.ZodOptional<z.ZodCustom<PostprocessorType, PostprocessorType>>;
|
|
273
|
+
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
273
274
|
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
274
275
|
extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
275
276
|
url: z.ZodString;
|
|
@@ -406,9 +407,9 @@ export declare const ModelConvertMetadataSchema: z.ZodObject<{
|
|
|
406
407
|
}>>;
|
|
407
408
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
408
409
|
none: "none";
|
|
409
|
-
scrfd: "scrfd";
|
|
410
410
|
"zero-one": "zero-one";
|
|
411
411
|
imagenet: "imagenet";
|
|
412
|
+
scrfd: "scrfd";
|
|
412
413
|
}>>;
|
|
413
414
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
414
415
|
letterbox: "letterbox";
|
|
@@ -531,9 +532,9 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
531
532
|
}>>;
|
|
532
533
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
533
534
|
none: "none";
|
|
534
|
-
scrfd: "scrfd";
|
|
535
535
|
"zero-one": "zero-one";
|
|
536
536
|
imagenet: "imagenet";
|
|
537
|
+
scrfd: "scrfd";
|
|
537
538
|
}>>;
|
|
538
539
|
outputProbabilities: z.ZodOptional<z.ZodBoolean>;
|
|
539
540
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -541,6 +542,7 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
541
542
|
resize: "resize";
|
|
542
543
|
}>>;
|
|
543
544
|
postprocessor: z.ZodOptional<z.ZodCustom<PostprocessorType, PostprocessorType>>;
|
|
545
|
+
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
544
546
|
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
545
547
|
extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
546
548
|
url: z.ZodString;
|
|
@@ -11,7 +11,12 @@ import type { PipelineSlot } from './pipeline.js';
|
|
|
11
11
|
*/
|
|
12
12
|
export interface IPipelineStep {
|
|
13
13
|
readonly definition: StepDefinition;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `model` — the catalog entry the step runs, when the caller knows it. A
|
|
16
|
+
* threshold slider's `default` is the MODEL's floor when it declares one
|
|
17
|
+
* (`ModelCatalogEntry.defaultConfidence`, D662); absent ⇒ the step's.
|
|
18
|
+
*/
|
|
19
|
+
getConfigSchema(model?: ModelCatalogEntry): readonly ConfigField[];
|
|
15
20
|
}
|
|
16
21
|
export type PostprocessorType = 'yolo' | 'ssd' | 'rfdetr' | 'yolonas' | 'yolo-seg' | 'scrfd' | 'yunet' | 'arcface' | 'clip' | 'softmax' | 'ctc' | 'plate-slots' | 'saliency' | 'yamnet';
|
|
17
22
|
export interface StepDefinition {
|