@camstack/types 1.2.265 → 1.2.267

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;
@@ -1851,6 +1851,7 @@ export type EventPruneCounts = z.infer<typeof EventPruneCountsSchema>;
1851
1851
  * - `reads-disagree` — the two reads named different choices.
1852
1852
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
1853
1853
  * index to fill and no dimension to check against (D649).
1854
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
1854
1855
  */
1855
1856
  export declare const RebuildObjectEmbeddingsRefusalSchema: z.ZodEnum<{
1856
1857
  "owner-not-ready": "owner-not-ready";
@@ -1863,6 +1864,7 @@ export declare const RebuildObjectEmbeddingsRefusalSchema: z.ZodEnum<{
1863
1864
  "read-failed": "read-failed";
1864
1865
  "reads-disagree": "reads-disagree";
1865
1866
  "not-a-clip-model": "not-a-clip-model";
1867
+ "force-requires-max-tracks": "force-requires-max-tracks";
1866
1868
  }>;
1867
1869
  export type RebuildObjectEmbeddingsRefusal = z.infer<typeof RebuildObjectEmbeddingsRefusalSchema>;
1868
1870
  /**
@@ -4397,6 +4399,7 @@ export declare const pipelineAnalyticsCapability: {
4397
4399
  maxTracks: z.ZodOptional<z.ZodNumber>;
4398
4400
  executeOnNodeId: z.ZodOptional<z.ZodString>;
4399
4401
  pacingMs: z.ZodOptional<z.ZodNumber>;
4402
+ force: z.ZodOptional<z.ZodBoolean>;
4400
4403
  }, z.core.$strip>, z.ZodObject<{
4401
4404
  started: z.ZodBoolean;
4402
4405
  alreadyRunning: z.ZodBoolean;
@@ -4411,6 +4414,7 @@ export declare const pipelineAnalyticsCapability: {
4411
4414
  "read-failed": "read-failed";
4412
4415
  "reads-disagree": "reads-disagree";
4413
4416
  "not-a-clip-model": "not-a-clip-model";
4417
+ "force-requires-max-tracks": "force-requires-max-tracks";
4414
4418
  }>>;
4415
4419
  modelId: z.ZodOptional<z.ZodString>;
4416
4420
  index: z.ZodOptional<z.ZodString>;
@@ -4420,7 +4424,17 @@ export declare const pipelineAnalyticsCapability: {
4420
4424
  scanned: z.ZodNumber;
4421
4425
  rebuilt: z.ZodNumber;
4422
4426
  missingKeyFrame: z.ZodNumber;
4427
+ missingEvent: z.ZodNumber;
4423
4428
  missingBbox: z.ZodNumber;
4429
+ boxSource: z.ZodObject<{
4430
+ subjectBox: z.ZodNumber;
4431
+ positions: z.ZodNumber;
4432
+ event: z.ZodNumber;
4433
+ refused: z.ZodNumber;
4434
+ }, z.core.$strip>;
4435
+ alreadyInSpace: z.ZodNumber;
4436
+ force: z.ZodNullable<z.ZodBoolean>;
4437
+ forcedInSpace: z.ZodNumber;
4424
4438
  notRunnable: z.ZodNumber;
4425
4439
  noCapableNode: z.ZodNumber;
4426
4440
  failed: z.ZodNumber;
@@ -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):
@@ -22926,7 +22936,15 @@ var RebuildObjectEmbeddingsInput = zod.z.object({
22926
22936
  * force is logged at start and finish so a deliberately slow pass reads
22927
22937
  * differently from a stalled one.
22928
22938
  */
22929
- pacingMs: zod.z.number().int().nonnegative().optional()
22939
+ pacingMs: zod.z.number().int().nonnegative().optional(),
22940
+ /**
22941
+ * Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
22942
+ * space (D664) — the in-space skip inverted. It exists to redo vectors
22943
+ * written from the wrong box, which a normal pass would skip as done
22944
+ * forever. Requires `maxTracks`: a forced pass without a bound is refused
22945
+ * (`force-requires-max-tracks`).
22946
+ */
22947
+ force: zod.z.boolean().optional()
22930
22948
  });
22931
22949
  /**
22932
22950
  * Result of emptying the CLIP index.
@@ -22962,6 +22980,7 @@ var WipeObjectEmbeddingsResultSchema = zod.z.object({
22962
22980
  * - `reads-disagree` — the two reads named different choices.
22963
22981
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
22964
22982
  * index to fill and no dimension to check against (D649).
22983
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
22965
22984
  */
22966
22985
  var RebuildObjectEmbeddingsRefusalSchema = zod.z.enum([
22967
22986
  "stores-unavailable",
@@ -22969,7 +22988,8 @@ var RebuildObjectEmbeddingsRefusalSchema = zod.z.enum([
22969
22988
  "method-unavailable",
22970
22989
  "read-failed",
22971
22990
  "reads-disagree",
22972
- "not-a-clip-model"
22991
+ "not-a-clip-model",
22992
+ "force-requires-max-tracks"
22973
22993
  ]);
22974
22994
  /**
22975
22995
  * Acknowledgement that a rebuild STARTED.
@@ -22994,11 +23014,32 @@ var RebuildStatusSchema = zod.z.object({
22994
23014
  running: zod.z.boolean(),
22995
23015
  scanned: zod.z.number(),
22996
23016
  rebuilt: zod.z.number(),
22997
- /** Tracks whose key frame is gone — nothing to re-embed from. */
23017
+ /** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
23018
+ * `missingEvent` is its own field since D664, never summed in. */
22998
23019
  missingKeyFrame: zod.z.number(),
22999
- /** Tracks with no usable detection box. */
23020
+ /** Tracks with no object event at all (D664). */
23021
+ missingEvent: zod.z.number(),
23022
+ /** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
23000
23023
  missingBbox: zod.z.number(),
23001
23024
  /**
23025
+ * Which rule placed each judged track's box (D664): the key frame row's own
23026
+ * `subjectBox`, `track.positions` at exactly its instant (older key frames),
23027
+ * the event box (a key frame recovered from the recording, at the event's
23028
+ * instant), or `refused` by name — the reasons are in the tagged log lines.
23029
+ */
23030
+ boxSource: zod.z.object({
23031
+ subjectBox: zod.z.number(),
23032
+ positions: zod.z.number(),
23033
+ event: zod.z.number(),
23034
+ refused: zod.z.number()
23035
+ }),
23036
+ /** Tracks skipped because their vector is already in the pinned space. */
23037
+ alreadyInSpace: zod.z.number(),
23038
+ /** Whether the current / last pass was a `force` pass; `null` before any (D664). */
23039
+ force: zod.z.boolean().nullable(),
23040
+ /** In-space tracks a `force` pass selected for re-embedding. */
23041
+ forcedInSpace: zod.z.number(),
23042
+ /**
23002
23043
  * Tracks an executing node REFUSED rather than broke on — an unreadable key
23003
23044
  * frame, a step that threw. Separate from `failed` because the remedy is
23004
23045
  * different, and because a whole camera silently contributing zero vectors
@@ -24185,7 +24226,8 @@ var PipelineModelOptionSchema = zod.z.object({
24185
24226
  })),
24186
24227
  group: ModelVariantGroupSchema.optional(),
24187
24228
  legacy: zod.z.boolean().optional(),
24188
- provider: ModelProviderIdSchema.optional()
24229
+ provider: ModelProviderIdSchema.optional(),
24230
+ defaultConfidence: zod.z.number().optional()
24189
24231
  });
24190
24232
  var ConfigFieldBridge = zod.z.custom();
24191
24233
  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):
@@ -22925,7 +22935,15 @@ var RebuildObjectEmbeddingsInput = z.object({
22925
22935
  * force is logged at start and finish so a deliberately slow pass reads
22926
22936
  * differently from a stalled one.
22927
22937
  */
22928
- pacingMs: z.number().int().nonnegative().optional()
22938
+ pacingMs: z.number().int().nonnegative().optional(),
22939
+ /**
22940
+ * Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
22941
+ * space (D664) — the in-space skip inverted. It exists to redo vectors
22942
+ * written from the wrong box, which a normal pass would skip as done
22943
+ * forever. Requires `maxTracks`: a forced pass without a bound is refused
22944
+ * (`force-requires-max-tracks`).
22945
+ */
22946
+ force: z.boolean().optional()
22929
22947
  });
22930
22948
  /**
22931
22949
  * Result of emptying the CLIP index.
@@ -22961,6 +22979,7 @@ var WipeObjectEmbeddingsResultSchema = z.object({
22961
22979
  * - `reads-disagree` — the two reads named different choices.
22962
22980
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
22963
22981
  * index to fill and no dimension to check against (D649).
22982
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
22964
22983
  */
22965
22984
  var RebuildObjectEmbeddingsRefusalSchema = z.enum([
22966
22985
  "stores-unavailable",
@@ -22968,7 +22987,8 @@ var RebuildObjectEmbeddingsRefusalSchema = z.enum([
22968
22987
  "method-unavailable",
22969
22988
  "read-failed",
22970
22989
  "reads-disagree",
22971
- "not-a-clip-model"
22990
+ "not-a-clip-model",
22991
+ "force-requires-max-tracks"
22972
22992
  ]);
22973
22993
  /**
22974
22994
  * Acknowledgement that a rebuild STARTED.
@@ -22993,11 +23013,32 @@ var RebuildStatusSchema = z.object({
22993
23013
  running: z.boolean(),
22994
23014
  scanned: z.number(),
22995
23015
  rebuilt: z.number(),
22996
- /** Tracks whose key frame is gone — nothing to re-embed from. */
23016
+ /** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
23017
+ * `missingEvent` is its own field since D664, never summed in. */
22997
23018
  missingKeyFrame: z.number(),
22998
- /** Tracks with no usable detection box. */
23019
+ /** Tracks with no object event at all (D664). */
23020
+ missingEvent: z.number(),
23021
+ /** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
22999
23022
  missingBbox: z.number(),
23000
23023
  /**
23024
+ * Which rule placed each judged track's box (D664): the key frame row's own
23025
+ * `subjectBox`, `track.positions` at exactly its instant (older key frames),
23026
+ * the event box (a key frame recovered from the recording, at the event's
23027
+ * instant), or `refused` by name — the reasons are in the tagged log lines.
23028
+ */
23029
+ boxSource: z.object({
23030
+ subjectBox: z.number(),
23031
+ positions: z.number(),
23032
+ event: z.number(),
23033
+ refused: z.number()
23034
+ }),
23035
+ /** Tracks skipped because their vector is already in the pinned space. */
23036
+ alreadyInSpace: z.number(),
23037
+ /** Whether the current / last pass was a `force` pass; `null` before any (D664). */
23038
+ force: z.boolean().nullable(),
23039
+ /** In-space tracks a `force` pass selected for re-embedding. */
23040
+ forcedInSpace: z.number(),
23041
+ /**
23001
23042
  * Tracks an executing node REFUSED rather than broke on — an unreadable key
23002
23043
  * frame, a step that threw. Separate from `failed` because the remedy is
23003
23044
  * different, and because a whole camera silently contributing zero vectors
@@ -24184,7 +24225,8 @@ var PipelineModelOptionSchema = z.object({
24184
24225
  })),
24185
24226
  group: ModelVariantGroupSchema.optional(),
24186
24227
  legacy: z.boolean().optional(),
24187
- provider: ModelProviderIdSchema.optional()
24228
+ provider: ModelProviderIdSchema.optional(),
24229
+ defaultConfidence: z.number().optional()
24188
24230
  });
24189
24231
  var ConfigFieldBridge = z.custom();
24190
24232
  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.267",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",