@camstack/types 1.2.265 → 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.
@@ -97,9 +97,9 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
97
97
  }>>;
98
98
  inputNormalization: z.ZodOptional<z.ZodEnum<{
99
99
  none: "none";
100
- scrfd: "scrfd";
101
100
  "zero-one": "zero-one";
102
101
  imagenet: "imagenet";
102
+ scrfd: "scrfd";
103
103
  }>>;
104
104
  outputProbabilities: z.ZodOptional<z.ZodBoolean>;
105
105
  preprocessMode: z.ZodOptional<z.ZodEnum<{
@@ -107,6 +107,7 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
107
107
  resize: "resize";
108
108
  }>>;
109
109
  postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
110
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
110
111
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
111
112
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
112
113
  url: z.ZodString;
@@ -275,9 +276,9 @@ export declare const customModelRegistryCapability: {
275
276
  }>>;
276
277
  inputNormalization: z.ZodOptional<z.ZodEnum<{
277
278
  none: "none";
278
- scrfd: "scrfd";
279
279
  "zero-one": "zero-one";
280
280
  imagenet: "imagenet";
281
+ scrfd: "scrfd";
281
282
  }>>;
282
283
  outputProbabilities: z.ZodOptional<z.ZodBoolean>;
283
284
  preprocessMode: z.ZodOptional<z.ZodEnum<{
@@ -285,6 +286,7 @@ export declare const customModelRegistryCapability: {
285
286
  resize: "resize";
286
287
  }>>;
287
288
  postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
289
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
288
290
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
289
291
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
290
292
  url: z.ZodString;
@@ -22,9 +22,9 @@ export declare const ModelConvertInputSchema: z.ZodObject<{
22
22
  }>>;
23
23
  inputNormalization: z.ZodOptional<z.ZodEnum<{
24
24
  none: "none";
25
- scrfd: "scrfd";
26
25
  "zero-one": "zero-one";
27
26
  imagenet: "imagenet";
27
+ scrfd: "scrfd";
28
28
  }>>;
29
29
  preprocessMode: z.ZodOptional<z.ZodEnum<{
30
30
  letterbox: "letterbox";
@@ -90,9 +90,9 @@ export declare const modelConvertCapability: {
90
90
  }>>;
91
91
  inputNormalization: z.ZodOptional<z.ZodEnum<{
92
92
  none: "none";
93
- scrfd: "scrfd";
94
93
  "zero-one": "zero-one";
95
94
  imagenet: "imagenet";
95
+ scrfd: "scrfd";
96
96
  }>>;
97
97
  preprocessMode: z.ZodOptional<z.ZodEnum<{
98
98
  letterbox: "letterbox";
@@ -207,9 +207,9 @@ export declare const modelConvertCapability: {
207
207
  }>>;
208
208
  inputNormalization: z.ZodOptional<z.ZodEnum<{
209
209
  none: "none";
210
- scrfd: "scrfd";
211
210
  "zero-one": "zero-one";
212
211
  imagenet: "imagenet";
212
+ scrfd: "scrfd";
213
213
  }>>;
214
214
  outputProbabilities: z.ZodOptional<z.ZodBoolean>;
215
215
  preprocessMode: z.ZodOptional<z.ZodEnum<{
@@ -217,6 +217,7 @@ export declare const modelConvertCapability: {
217
217
  resize: "resize";
218
218
  }>>;
219
219
  postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
220
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
220
221
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
221
222
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
222
223
  url: z.ZodString;
@@ -99,9 +99,9 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
99
99
  }>>;
100
100
  inputNormalization: z.ZodOptional<z.ZodEnum<{
101
101
  none: "none";
102
- scrfd: "scrfd";
103
102
  "zero-one": "zero-one";
104
103
  imagenet: "imagenet";
104
+ scrfd: "scrfd";
105
105
  }>>;
106
106
  outputProbabilities: z.ZodOptional<z.ZodBoolean>;
107
107
  preprocessMode: z.ZodOptional<z.ZodEnum<{
@@ -109,6 +109,7 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
109
109
  resize: "resize";
110
110
  }>>;
111
111
  postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
112
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
112
113
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
113
114
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
114
115
  url: z.ZodString;
@@ -282,9 +283,9 @@ export declare const modelDistributorCapability: {
282
283
  }>>;
283
284
  inputNormalization: z.ZodOptional<z.ZodEnum<{
284
285
  none: "none";
285
- scrfd: "scrfd";
286
286
  "zero-one": "zero-one";
287
287
  imagenet: "imagenet";
288
+ scrfd: "scrfd";
288
289
  }>>;
289
290
  outputProbabilities: z.ZodOptional<z.ZodBoolean>;
290
291
  preprocessMode: z.ZodOptional<z.ZodEnum<{
@@ -292,6 +293,7 @@ export declare const modelDistributorCapability: {
292
293
  resize: "resize";
293
294
  }>>;
294
295
  postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
296
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
295
297
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
296
298
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
297
299
  url: z.ZodString;
@@ -203,6 +203,7 @@ declare const PipelineModelOptionSchema: z.ZodObject<{
203
203
  frigate: "frigate";
204
204
  scrypted: "scrypted";
205
205
  }>>;
206
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
206
207
  }, z.core.$strip>;
207
208
  declare const PipelineAddonSchemaSchema: z.ZodObject<{
208
209
  id: z.ZodString;
@@ -250,6 +251,7 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
250
251
  frigate: "frigate";
251
252
  scrypted: "scrypted";
252
253
  }>>;
254
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
253
255
  }, z.core.$strip>>>;
254
256
  defaultModelId: z.ZodString;
255
257
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -322,6 +324,7 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
322
324
  frigate: "frigate";
323
325
  scrypted: "scrypted";
324
326
  }>>;
327
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
325
328
  }, z.core.$strip>>>;
326
329
  defaultModelId: z.ZodString;
327
330
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -430,6 +433,7 @@ declare const PipelineSchemaSchema: z.ZodObject<{
430
433
  frigate: "frigate";
431
434
  scrypted: "scrypted";
432
435
  }>>;
436
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
433
437
  }, z.core.$strip>>>;
434
438
  defaultModelId: z.ZodString;
435
439
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -784,6 +788,7 @@ export declare const pipelineExecutorCapability: {
784
788
  frigate: "frigate";
785
789
  scrypted: "scrypted";
786
790
  }>>;
791
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
787
792
  }, z.core.$strip>>>;
788
793
  defaultModelId: z.ZodString;
789
794
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
package/dist/index.js CHANGED
@@ -5314,6 +5314,16 @@ var ModelCatalogEntrySchema = zod.z.object({
5314
5314
  */
5315
5315
  postprocessor: zod.z.custom().optional(),
5316
5316
  /**
5317
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
5318
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
5319
+ * model's output scale, not of the step slot it sits in: YuNet's
5320
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
5321
+ * face gallery with wheels and hands (D662, amends D645). An operator's
5322
+ * explicit value still wins over it. Resolved in ONE place —
5323
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
5324
+ */
5325
+ defaultConfidence: zod.z.number().min(0).max(1).optional(),
5326
+ /**
5317
5327
  * When true, the executor produces a landmark-aligned crop (similarity warp
5318
5328
  * onto the canonical template) before this step runs, instead of a plain
5319
5329
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -24185,7 +24195,8 @@ var PipelineModelOptionSchema = zod.z.object({
24185
24195
  })),
24186
24196
  group: ModelVariantGroupSchema.optional(),
24187
24197
  legacy: zod.z.boolean().optional(),
24188
- provider: ModelProviderIdSchema.optional()
24198
+ provider: ModelProviderIdSchema.optional(),
24199
+ defaultConfidence: zod.z.number().optional()
24189
24200
  });
24190
24201
  var ConfigFieldBridge = zod.z.custom();
24191
24202
  var PipelineAddonSchemaSchema = zod.z.object({
package/dist/index.mjs CHANGED
@@ -5313,6 +5313,16 @@ var ModelCatalogEntrySchema = z.object({
5313
5313
  */
5314
5314
  postprocessor: z.custom().optional(),
5315
5315
  /**
5316
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
5317
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
5318
+ * model's output scale, not of the step slot it sits in: YuNet's
5319
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
5320
+ * face gallery with wheels and hands (D662, amends D645). An operator's
5321
+ * explicit value still wins over it. Resolved in ONE place —
5322
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
5323
+ */
5324
+ defaultConfidence: z.number().min(0).max(1).optional(),
5325
+ /**
5316
5326
  * When true, the executor produces a landmark-aligned crop (similarity warp
5317
5327
  * onto the canonical template) before this step runs, instead of a plain
5318
5328
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -24184,7 +24194,8 @@ var PipelineModelOptionSchema = z.object({
24184
24194
  })),
24185
24195
  group: ModelVariantGroupSchema.optional(),
24186
24196
  legacy: z.boolean().optional(),
24187
- provider: ModelProviderIdSchema.optional()
24197
+ provider: ModelProviderIdSchema.optional(),
24198
+ defaultConfidence: z.number().optional()
24188
24199
  });
24189
24200
  var ConfigFieldBridge = z.custom();
24190
24201
  var PipelineAddonSchemaSchema = z.object({
@@ -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.265",
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",