@uug-ai/models 1.6.4 → 1.6.7

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 (2) hide show
  1. package/dist/types.d.ts +116 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -16773,6 +16773,45 @@ export interface paths {
16773
16773
  patch?: never;
16774
16774
  trace?: never;
16775
16775
  };
16776
+ "/internal/markerbox": {
16777
+ parameters: {
16778
+ query?: never;
16779
+ header?: never;
16780
+ path?: never;
16781
+ cookie?: never;
16782
+ };
16783
+ /**
16784
+ * Get MarkerBox (schema generation only)
16785
+ * @description Internal endpoint used only to ensure MarkerBox schema is generated in OpenAPI spec
16786
+ */
16787
+ get: {
16788
+ parameters: {
16789
+ query?: never;
16790
+ header?: never;
16791
+ path?: never;
16792
+ cookie?: never;
16793
+ };
16794
+ requestBody?: never;
16795
+ responses: {
16796
+ /** @description OK */
16797
+ 200: {
16798
+ headers: {
16799
+ [name: string]: unknown;
16800
+ };
16801
+ content: {
16802
+ "application/json": components["schemas"]["models.MarkerBox"];
16803
+ };
16804
+ };
16805
+ };
16806
+ };
16807
+ put?: never;
16808
+ post?: never;
16809
+ delete?: never;
16810
+ options?: never;
16811
+ head?: never;
16812
+ patch?: never;
16813
+ trace?: never;
16814
+ };
16776
16815
  "/internal/markercategory": {
16777
16816
  parameters: {
16778
16817
  query?: never;
@@ -31046,6 +31085,19 @@ export interface components {
31046
31085
  * @example 507f1f77bcf86cd799439011
31047
31086
  */
31048
31087
  id?: string;
31088
+ /**
31089
+ * @description MediaKeys optionally pins this marker to specific recordings by their stable
31090
+ * key (media.videoFile). When set, the marker writer links the marker to
31091
+ * exactly these recordings — scoped to the marker's device and organisation —
31092
+ * instead of inferring the link from timestamp overlap. This is authoritative:
31093
+ * the producer (e.g. a stage worker) knows precisely which recording a
31094
+ * detection came from, so it is immune to timing/fps drift. Leave empty to keep
31095
+ * the default timestamp-overlap association.
31096
+ * @example [
31097
+ * "1752482068_...device_1920_1080_10000.mp4"
31098
+ * ]
31099
+ */
31100
+ mediaKeys?: string[];
31049
31101
  /** @description Additional metadata */
31050
31102
  metadata?: components["schemas"]["models.MarkerMetadata"];
31051
31103
  /**
@@ -31078,6 +31130,28 @@ export interface components {
31078
31130
  markerRanges?: components["schemas"]["models.MarkerOptionTimeRange"][];
31079
31131
  tagRanges?: components["schemas"]["models.MarkerTagTimeRange"][];
31080
31132
  };
31133
+ "models.MarkerBox": {
31134
+ /**
31135
+ * @description Box height, fraction of frame height
31136
+ * @example 0.1
31137
+ */
31138
+ height?: number;
31139
+ /**
31140
+ * @description Box width, fraction of frame width
31141
+ * @example 0.2
31142
+ */
31143
+ width?: number;
31144
+ /**
31145
+ * @description Left edge, fraction of frame width
31146
+ * @example 0.12
31147
+ */
31148
+ x?: number;
31149
+ /**
31150
+ * @description Top edge, fraction of frame height
31151
+ * @example 0.34
31152
+ */
31153
+ y?: number;
31154
+ };
31081
31155
  "models.MarkerCategory": {
31082
31156
  /** @example security */
31083
31157
  name?: string;
@@ -31175,8 +31249,48 @@ export interface components {
31175
31249
  startTimestamp?: number;
31176
31250
  };
31177
31251
  "models.MarkerMetadata": {
31252
+ /**
31253
+ * @description BoundingBox is the normalized [0,1] region of the detection within the frame,
31254
+ * suitable for drawing overlays. Nil when no spatial information is available.
31255
+ */
31256
+ boundingBox?: components["schemas"]["models.MarkerBox"];
31178
31257
  /** @description Additional comments or description of the marker */
31179
31258
  comments?: components["schemas"]["models.Comment"];
31259
+ /**
31260
+ * @description Confidence is the certainty of the detection that produced this marker, in the
31261
+ * range [0,1] (e.g. an ANPR plate-read or object-detection score). A nil pointer
31262
+ * means no confidence was reported; this keeps the value optional and lets a
31263
+ * genuine 0 be distinguished from "unset".
31264
+ * @example 0.92
31265
+ */
31266
+ confidence?: number;
31267
+ /**
31268
+ * @description Engine identifies the concrete backend used within the pipeline
31269
+ * (e.g. "fast-onnx", "tesseract", "http").
31270
+ * @example fast-onnx
31271
+ */
31272
+ engine?: string;
31273
+ /**
31274
+ * @description ModelVersion records the version of the model that produced the detection,
31275
+ * so detections can be correlated with model changes after the fact.
31276
+ * @example v1.4.0
31277
+ */
31278
+ modelVersion?: string;
31279
+ /**
31280
+ * @description Raw is an escape hatch for pipeline-specific metadata that does not warrant a
31281
+ * first-class field. Values here are not indexed or validated; promote anything
31282
+ * you need to query into a typed field instead.
31283
+ */
31284
+ raw?: {
31285
+ [key: string]: unknown;
31286
+ };
31287
+ /**
31288
+ * @description Source identifies the pipeline that produced this marker (e.g. "anpr",
31289
+ * "loitering", "dominantcolors"). This is provenance, distinct from the
31290
+ * user-facing Categories on the marker.
31291
+ * @example anpr
31292
+ */
31293
+ source?: string;
31180
31294
  };
31181
31295
  "models.MarkerOption": {
31182
31296
  categories?: string[];
@@ -32815,7 +32929,7 @@ export interface components {
32815
32929
  * Storage block used to resolve a per-recording vault override. Copied (and
32816
32930
  * scrubbed) from the analysis monitor stage — credential/secret fields and the
32817
32931
  * individual user id never cross the boundary. Wire-only; the persisted scope
32818
- * is UserId (which holds the organisation id).
32932
+ * is OrganisationId.
32819
32933
  */
32820
32934
  user?: components["schemas"]["models.WorkflowUser"];
32821
32935
  /**
@@ -33090,6 +33204,7 @@ export declare namespace models {
33090
33204
  type Location = components['schemas']['models.Location'];
33091
33205
  type Marker = components['schemas']['models.Marker'];
33092
33206
  type MarkerAtRuntimeMetadata = components['schemas']['models.MarkerAtRuntimeMetadata'];
33207
+ type MarkerBox = components['schemas']['models.MarkerBox'];
33093
33208
  type MarkerCategory = components['schemas']['models.MarkerCategory'];
33094
33209
  type MarkerCategoryOption = components['schemas']['models.MarkerCategoryOption'];
33095
33210
  type MarkerEvent = components['schemas']['models.MarkerEvent'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.6.4",
3
+ "version": "1.6.7",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",