@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.
Files changed (35) hide show
  1. package/dist/automation/recipe.d.ts +1 -1
  2. package/dist/capabilities/composer.cap.d.ts +328 -0
  3. package/dist/capabilities/control.cap.d.ts +4 -4
  4. package/dist/capabilities/core-blocks.cap.d.ts +2339 -0
  5. package/dist/capabilities/custom-model-registry.cap.d.ts +4 -2
  6. package/dist/capabilities/day-night.cap.d.ts +8 -8
  7. package/dist/capabilities/device-extension.cap.d.ts +8 -8
  8. package/dist/capabilities/index.d.ts +4 -2
  9. package/dist/capabilities/model-convert.cap.d.ts +4 -3
  10. package/dist/capabilities/model-distributor.cap.d.ts +4 -2
  11. package/dist/capabilities/notification-rules.cap.d.ts +74 -74
  12. package/dist/capabilities/osd-manager.cap.d.ts +13 -13
  13. package/dist/capabilities/pipeline-executor.cap.d.ts +5 -0
  14. package/dist/composition/composition-graph.d.ts +36 -0
  15. package/dist/composition/composition-report.d.ts +264 -0
  16. package/dist/composition/composition.d.ts +362 -0
  17. package/dist/composition/evaluate-field.d.ts +63 -0
  18. package/dist/composition/examples.d.ts +10 -0
  19. package/dist/composition/expression-kinds.d.ts +36 -0
  20. package/dist/composition/index.d.ts +12 -0
  21. package/dist/composition/state-fields.d.ts +19 -0
  22. package/dist/composition/validate-composition.d.ts +46 -0
  23. package/dist/device/schema-fields.d.ts +3 -0
  24. package/dist/expression/builtins.d.ts +30 -2
  25. package/dist/generated/addon-api.d.ts +57 -0
  26. package/dist/generated/capability-router-map.d.ts +5 -2
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/system-proxy.d.ts +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1350 -80
  31. package/dist/index.mjs +1278 -81
  32. package/dist/notification/rule-kinds.d.ts +3 -2
  33. package/dist/types/models.d.ts +5 -3
  34. package/dist/types/pipeline-step.d.ts +6 -1
  35. 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 { type NcAudioCondition, type NcConditions, type NcDelivery, type NcOccupancyCondition } from '../capabilities/notification-rules.cap.js';
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 = 'detection' | 'sensor' | 'occupancy' | 'sound' | NcSystemEventFamily | 'mixed';
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`)? */
@@ -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
- getConfigSchema(): readonly ConfigField[];
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.264",
3
+ "version": "1.2.266",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",