@camstack/types 1.2.572 → 1.2.573

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.573] - 2026-11-15
11
+
12
+ ### Changed
13
+
14
+ - plate-gallery and face-gallery: sample mediaId / key frame + box, PlateInfo.cropMissReason, moveVehicleSample and moveIdentitySample
15
+
10
16
  ## [1.2.572] - 2026-11-15
11
17
 
12
18
  ### Added
@@ -17,6 +17,14 @@ declare const IdentitySampleInfoSchema: z.ZodObject<{
17
17
  addedAt: z.ZodNumber;
18
18
  deviceId: z.ZodOptional<z.ZodNumber>;
19
19
  base64: z.ZodOptional<z.ZodString>;
20
+ mediaId: z.ZodOptional<z.ZodNumber>;
21
+ keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
22
+ faceBbox: z.ZodOptional<z.ZodObject<{
23
+ x: z.ZodNumber;
24
+ y: z.ZodNumber;
25
+ w: z.ZodNumber;
26
+ h: z.ZodNumber;
27
+ }, z.core.$strip>>;
20
28
  }, z.core.$strip>;
21
29
  export type IdentitySampleInfo = z.infer<typeof IdentitySampleInfoSchema>;
22
30
  /**
@@ -181,6 +189,14 @@ export declare const faceGalleryCapability: {
181
189
  addedAt: z.ZodNumber;
182
190
  deviceId: z.ZodOptional<z.ZodNumber>;
183
191
  base64: z.ZodOptional<z.ZodString>;
192
+ mediaId: z.ZodOptional<z.ZodNumber>;
193
+ keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
194
+ faceBbox: z.ZodOptional<z.ZodObject<{
195
+ x: z.ZodNumber;
196
+ y: z.ZodNumber;
197
+ w: z.ZodNumber;
198
+ h: z.ZodNumber;
199
+ }, z.core.$strip>>;
184
200
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
185
201
  /**
186
202
  * Re-analyse ONE person's enrolled samples against the whole gallery.
@@ -227,6 +243,15 @@ export declare const faceGalleryCapability: {
227
243
  identityId: z.ZodString;
228
244
  sampleId: z.ZodString;
229
245
  }, z.core.$strip>, z.ZodVoid, "mutation">;
246
+ /**
247
+ * Move an enrolled sample onto another person. The crop is re-owned, the
248
+ * source face keeps its link and follows (`recognizedIdentityId`), and an
249
+ * unknown person is refused.
250
+ */
251
+ readonly moveIdentitySample: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
252
+ sampleId: z.ZodString;
253
+ toIdentityId: z.ZodString;
254
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
230
255
  readonly listRecentFaces: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
231
256
  deviceId: z.ZodOptional<z.ZodNumber>;
232
257
  deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
@@ -15,6 +15,14 @@ declare const VehicleSampleInfoSchema: z.ZodObject<{
15
15
  addedAt: z.ZodNumber;
16
16
  deviceId: z.ZodOptional<z.ZodNumber>;
17
17
  base64: z.ZodOptional<z.ZodString>;
18
+ mediaId: z.ZodOptional<z.ZodNumber>;
19
+ keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
20
+ plateBbox: z.ZodOptional<z.ZodObject<{
21
+ x: z.ZodNumber;
22
+ y: z.ZodNumber;
23
+ w: z.ZodNumber;
24
+ h: z.ZodNumber;
25
+ }, z.core.$strip>>;
18
26
  }, z.core.$strip>;
19
27
  export type VehicleSampleInfo = z.infer<typeof VehicleSampleInfoSchema>;
20
28
  declare const PlateInfoSchema: z.ZodObject<{
@@ -37,6 +45,7 @@ declare const PlateInfoSchema: z.ZodObject<{
37
45
  keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
38
46
  base64: z.ZodOptional<z.ZodString>;
39
47
  cropUrl: z.ZodOptional<z.ZodString>;
48
+ cropMissReason: z.ZodOptional<z.ZodString>;
40
49
  }, z.core.$strip>;
41
50
  export type PlateInfo = z.infer<typeof PlateInfoSchema>;
42
51
  /**
@@ -79,6 +88,7 @@ export declare const plateGalleryCapability: {
79
88
  keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
80
89
  base64: z.ZodOptional<z.ZodString>;
81
90
  cropUrl: z.ZodOptional<z.ZodString>;
91
+ cropMissReason: z.ZodOptional<z.ZodString>;
82
92
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
83
93
  readonly getPlateByTrack: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
84
94
  deviceId: z.ZodNumber;
@@ -103,6 +113,7 @@ export declare const plateGalleryCapability: {
103
113
  keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
104
114
  base64: z.ZodOptional<z.ZodString>;
105
115
  cropUrl: z.ZodOptional<z.ZodString>;
116
+ cropMissReason: z.ZodOptional<z.ZodString>;
106
117
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
107
118
  readonly getPlateMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
108
119
  plateId: z.ZodString;
@@ -139,6 +150,7 @@ export declare const plateGalleryCapability: {
139
150
  keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
140
151
  base64: z.ZodOptional<z.ZodString>;
141
152
  cropUrl: z.ZodOptional<z.ZodString>;
153
+ cropMissReason: z.ZodOptional<z.ZodString>;
142
154
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
143
155
  /** Suggest groups of near-identical reads (same physical plate) for review/merge. */
144
156
  readonly suggestPlateClusters: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
@@ -194,11 +206,28 @@ export declare const plateGalleryCapability: {
194
206
  addedAt: z.ZodNumber;
195
207
  deviceId: z.ZodOptional<z.ZodNumber>;
196
208
  base64: z.ZodOptional<z.ZodString>;
209
+ mediaId: z.ZodOptional<z.ZodNumber>;
210
+ keyFrameMediaId: z.ZodOptional<z.ZodNumber>;
211
+ plateBbox: z.ZodOptional<z.ZodObject<{
212
+ x: z.ZodNumber;
213
+ y: z.ZodNumber;
214
+ w: z.ZodNumber;
215
+ h: z.ZodNumber;
216
+ }, z.core.$strip>>;
197
217
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
198
218
  readonly removeVehicleSample: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
199
219
  vehicleId: z.ZodString;
200
220
  sampleId: z.ZodString;
201
221
  }, z.core.$strip>, z.ZodVoid, "mutation">;
222
+ /**
223
+ * Move an enrolled sample onto another vehicle. The crop is re-owned, the
224
+ * source plate keeps its link and follows (`recognizedVehicleId`), and an
225
+ * unknown vehicle is refused.
226
+ */
227
+ readonly moveVehicleSample: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
228
+ sampleId: z.ZodString;
229
+ toVehicleId: z.ZodString;
230
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
202
231
  readonly assignPlate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
203
232
  plateId: z.ZodString;
204
233
  vehicleId: z.ZodString;
package/dist/client.js CHANGED
@@ -29495,6 +29495,7 @@ function createSystemProxy(api) {
29495
29495
  listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
29496
29496
  auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
29497
29497
  removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
29498
+ moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
29498
29499
  getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
29499
29500
  assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
29500
29501
  unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
@@ -29788,6 +29789,7 @@ function createSystemProxy(api) {
29788
29789
  deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
29789
29790
  listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
29790
29791
  removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
29792
+ moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
29791
29793
  assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
29792
29794
  unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
29793
29795
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
package/dist/client.mjs CHANGED
@@ -29494,6 +29494,7 @@ function createSystemProxy(api) {
29494
29494
  listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
29495
29495
  auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
29496
29496
  removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
29497
+ moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
29497
29498
  getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
29498
29499
  assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
29499
29500
  unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
@@ -29787,6 +29788,7 @@ function createSystemProxy(api) {
29787
29788
  deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
29788
29789
  listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
29789
29790
  removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
29791
+ moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
29790
29792
  assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
29791
29793
  unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
29792
29794
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
@@ -4009,6 +4009,13 @@ export type AppRouter = TrpcCoreRouter<{
4009
4009
  output: z.infer<typeof faceGalleryCapability.methods.removeSample.output>;
4010
4010
  meta: object;
4011
4011
  }>;
4012
+ moveIdentitySample: TRPCMutationProcedure<{
4013
+ input: {
4014
+ [x: string]: unknown;
4015
+ } & z.input<typeof faceGalleryCapability.methods.moveIdentitySample.input>;
4016
+ output: z.infer<typeof faceGalleryCapability.methods.moveIdentitySample.output>;
4017
+ meta: object;
4018
+ }>;
4012
4019
  listRecentFaces: TRPCQueryProcedure<{
4013
4020
  input: z.input<typeof faceGalleryCapability.methods.listRecentFaces.input>;
4014
4021
  output: z.infer<typeof faceGalleryCapability.methods.listRecentFaces.output>;
@@ -8410,6 +8417,13 @@ export type AppRouter = TrpcCoreRouter<{
8410
8417
  output: z.infer<typeof plateGalleryCapability.methods.removeVehicleSample.output>;
8411
8418
  meta: object;
8412
8419
  }>;
8420
+ moveVehicleSample: TRPCMutationProcedure<{
8421
+ input: {
8422
+ [x: string]: unknown;
8423
+ } & z.input<typeof plateGalleryCapability.methods.moveVehicleSample.input>;
8424
+ output: z.infer<typeof plateGalleryCapability.methods.moveVehicleSample.output>;
8425
+ meta: object;
8426
+ }>;
8413
8427
  assignPlate: TRPCMutationProcedure<{
8414
8428
  input: {
8415
8429
  [x: string]: unknown;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1494 method paths across 208 capabilities.
9
+ * Coverage: 1496 method paths across 208 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
@@ -97,7 +97,7 @@ export interface SystemProxy {
97
97
  readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'reloadDevice' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryModes' | 'classifyDiscoveryHits' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
98
98
  readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots' | 'listClaims'>;
99
99
  readonly displayPalette: Pick<InferProvider<typeof displayPaletteCapability>, 'getPalette' | 'listPresets' | 'setPalette'>;
100
- readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'auditIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
100
+ readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'auditIdentitySamples' | 'removeSample' | 'moveIdentitySample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
101
101
  readonly fanPresets: Pick<InferProvider<typeof fanPresetsCapability>, 'getPresets' | 'setPresets' | 'applyPreset' | 'capturePreset'>;
102
102
  readonly heroLayout: Pick<InferProvider<typeof heroLayoutCapability>, 'getHeroModel' | 'getRowModels' | 'getLayout'>;
103
103
  readonly integrationInstances: Pick<InferProvider<typeof integrationInstancesCapability>, 'describe' | 'instanceFormSchema' | 'listInstances' | 'getInstance' | 'createInstance' | 'updateInstance' | 'setInstanceEnabled' | 'deleteInstance' | 'testInstance'>;
@@ -117,7 +117,7 @@ export interface SystemProxy {
117
117
  readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'getInferenceDeviceHealth' | 'rearmInferenceDevice' | 'getSchema' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
118
118
  readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'requestOccupancyLook' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getClusterModelChoice' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAudioAssignments' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentCapabilities' | 'setAgentDecodeLimits' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'setNodeStepSettings' | 'getNodeInferenceDevices' | 'forgetInferenceDevice' | 'resetNodePipelineDefaults' | 'planAutoTune' | 'applyAutoTune' | 'setLoadBalancingShares' | 'getPlacementStats' | 'suggestShares' | 'getEffectiveShares' | 'setShareSource' | 'getNodeBenchmarkPreflight' | 'startNodeBenchmark' | 'getNodeBenchmarkStatus' | 'abortNodeBenchmark' | 'getNodeBenchmarkCandidates' | 'listNodeBenchmarkResults' | 'deleteNodeBenchmarkResult' | 'getCameraStatuses' | 'setCameraSensors' | 'reconcileFromDisk' | 'getReconcileFromDiskStatus'>;
119
119
  readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop' | 'runStatelessStep' | 'startNodeBench' | 'getNodeBenchStatus' | 'abortNodeBench'>;
120
- readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
120
+ readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'moveVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
121
121
  readonly platformProbe: Pick<InferProvider<typeof platformProbeCapability>, 'getCapabilities' | 'getHardware' | 'resolveInferenceConfig' | 'resolveHwAccel' | 'rescanAccelerators'>;
122
122
  readonly recordEntries: Pick<InferProvider<typeof recordEntriesCapability>, 'listEntryKinds' | 'listEntries' | 'putEntry' | 'deleteEntry'>;
123
123
  readonly recordingArchive: Pick<InferProvider<typeof recordingArchiveCapability>, 'getAvailabilityBatch' | 'getDaysWithRecordingsBatch' | 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove' | 'relocateFootage' | 'listRelocateJobs' | 'getRelocateResidue' | 'reconcileLedgerAgainstDisk' | 'cancelRelocateJob' | 'planStorageRebalance' | 'startStorageRebalance' | 'getPlacement' | 'setDevicePlacement'>;
package/dist/index.js CHANGED
@@ -60835,7 +60835,19 @@ var IdentitySampleInfoSchema = zod.z.object({
60835
60835
  source: zod.z.enum(["detected", "photo"]),
60836
60836
  addedAt: zod.z.number().int(),
60837
60837
  deviceId: zod.z.number().int().optional(),
60838
- base64: zod.z.string().optional()
60838
+ base64: zod.z.string().optional(),
60839
+ /**
60840
+ * The sample's own crop, when it has one. The bytes stay on the event-media
60841
+ * plane — this list does not inline them.
60842
+ */
60843
+ mediaId: zod.z.number().int().optional(),
60844
+ /**
60845
+ * The source face's key frame (or the photo the sample was cut from), when
60846
+ * the sample has no crop of its own. Draw {@link faceBbox} on it.
60847
+ */
60848
+ keyFrameMediaId: zod.z.number().int().optional(),
60849
+ /** The face box on {@link keyFrameMediaId}, pixel space. */
60850
+ faceBbox: BoundingBoxSchema.optional()
60839
60851
  });
60840
60852
  /**
60841
60853
  * One enrolled sample, judged against the gallery it lives in.
@@ -61075,6 +61087,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
61075
61087
  kind: "mutation",
61076
61088
  auth: "admin"
61077
61089
  }),
61090
+ /**
61091
+ * Move an enrolled sample onto another person. The crop is re-owned, the
61092
+ * source face keeps its link and follows (`recognizedIdentityId`), and an
61093
+ * unknown person is refused.
61094
+ */
61095
+ moveIdentitySample: require_sleep.method(zod.z.object({
61096
+ sampleId: zod.z.string().min(1),
61097
+ toIdentityId: zod.z.string().min(1)
61098
+ }), zod.z.void(), {
61099
+ kind: "mutation",
61100
+ auth: "admin"
61101
+ }),
61078
61102
  listRecentFaces: require_sleep.method(zod.z.object({
61079
61103
  /**
61080
61104
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -86070,7 +86094,19 @@ var VehicleSampleInfoSchema = zod.z.object({
86070
86094
  score: zod.z.number(),
86071
86095
  addedAt: zod.z.number().int(),
86072
86096
  deviceId: zod.z.number().int().optional(),
86073
- base64: zod.z.string().optional()
86097
+ base64: zod.z.string().optional(),
86098
+ /**
86099
+ * The sample's own crop, when it has one. Prefer this over {@link base64}:
86100
+ * the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
86101
+ */
86102
+ mediaId: zod.z.number().int().optional(),
86103
+ /**
86104
+ * The source plate's key frame, when the sample has no crop of its own.
86105
+ * Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
86106
+ */
86107
+ keyFrameMediaId: zod.z.number().int().optional(),
86108
+ /** The plate box on {@link keyFrameMediaId}, pixel space. */
86109
+ plateBbox: BoundingBoxSchema.optional()
86074
86110
  });
86075
86111
  var PlateInfoSchema = zod.z.object({
86076
86112
  plateId: zod.z.string(),
@@ -86100,7 +86136,17 @@ var PlateInfoSchema = zod.z.object({
86100
86136
  * and `searchPlates` inline the crop only when their `includeCrops` input is
86101
86137
  * left at its `true` default.
86102
86138
  */
86103
- cropUrl: zod.z.string().optional()
86139
+ cropUrl: zod.z.string().optional(),
86140
+ /**
86141
+ * Why {@link cropUrl} is absent. One of `no-frame-handle`,
86142
+ * `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
86143
+ * `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
86144
+ * `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
86145
+ * `put-failed`. A crossing vehicle whose live capture missed is
86146
+ * `subject-moved`: the key frame is a different instant, and the crop is
86147
+ * legitimately absent.
86148
+ */
86149
+ cropMissReason: zod.z.string().optional()
86104
86150
  });
86105
86151
  /**
86106
86152
  * One gallery media row: what the crop is, how big it is, and WHERE its bytes
@@ -86230,6 +86276,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(VehicleSchem
86230
86276
  kind: "mutation",
86231
86277
  auth: "admin"
86232
86278
  }),
86279
+ /**
86280
+ * Move an enrolled sample onto another vehicle. The crop is re-owned, the
86281
+ * source plate keeps its link and follows (`recognizedVehicleId`), and an
86282
+ * unknown vehicle is refused.
86283
+ */
86284
+ moveVehicleSample: require_sleep.method(zod.z.object({
86285
+ sampleId: zod.z.string().min(1),
86286
+ toVehicleId: zod.z.string().min(1)
86287
+ }), zod.z.void(), {
86288
+ kind: "mutation",
86289
+ auth: "admin"
86290
+ }),
86233
86291
  assignPlate: require_sleep.method(zod.z.object({
86234
86292
  plateId: zod.z.string(),
86235
86293
  vehicleId: zod.z.string()
@@ -120108,6 +120166,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
120108
120166
  access: "view",
120109
120167
  role: "feature:face-assignment"
120110
120168
  },
120169
+ "faceGallery.moveIdentitySample": {
120170
+ capName: "face-gallery",
120171
+ capScope: "system",
120172
+ addonId: null,
120173
+ access: "create",
120174
+ role: "feature:face-assignment"
120175
+ },
120111
120176
  "faceGallery.removeSample": {
120112
120177
  capName: "face-gallery",
120113
120178
  capScope: "system",
@@ -124028,6 +124093,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
124028
124093
  access: "view",
124029
124094
  role: "feature:plate-assignment"
124030
124095
  },
124096
+ "plateGallery.moveVehicleSample": {
124097
+ capName: "plate-gallery",
124098
+ capScope: "system",
124099
+ addonId: null,
124100
+ access: "create",
124101
+ role: "feature:plate-assignment"
124102
+ },
124031
124103
  "plateGallery.removeVehicleSample": {
124032
124104
  capName: "plate-gallery",
124033
124105
  capScope: "system",
@@ -134285,6 +134357,7 @@ function createSystemProxy(api) {
134285
134357
  listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
134286
134358
  auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
134287
134359
  removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
134360
+ moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
134288
134361
  getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
134289
134362
  assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
134290
134363
  unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
@@ -134578,6 +134651,7 @@ function createSystemProxy(api) {
134578
134651
  deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
134579
134652
  listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
134580
134653
  removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
134654
+ moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
134581
134655
  assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
134582
134656
  unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
134583
134657
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
package/dist/index.mjs CHANGED
@@ -60834,7 +60834,19 @@ var IdentitySampleInfoSchema = z.object({
60834
60834
  source: z.enum(["detected", "photo"]),
60835
60835
  addedAt: z.number().int(),
60836
60836
  deviceId: z.number().int().optional(),
60837
- base64: z.string().optional()
60837
+ base64: z.string().optional(),
60838
+ /**
60839
+ * The sample's own crop, when it has one. The bytes stay on the event-media
60840
+ * plane — this list does not inline them.
60841
+ */
60842
+ mediaId: z.number().int().optional(),
60843
+ /**
60844
+ * The source face's key frame (or the photo the sample was cut from), when
60845
+ * the sample has no crop of its own. Draw {@link faceBbox} on it.
60846
+ */
60847
+ keyFrameMediaId: z.number().int().optional(),
60848
+ /** The face box on {@link keyFrameMediaId}, pixel space. */
60849
+ faceBbox: BoundingBoxSchema.optional()
60838
60850
  });
60839
60851
  /**
60840
60852
  * One enrolled sample, judged against the gallery it lives in.
@@ -61074,6 +61086,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(IdentitySchema).read
61074
61086
  kind: "mutation",
61075
61087
  auth: "admin"
61076
61088
  }),
61089
+ /**
61090
+ * Move an enrolled sample onto another person. The crop is re-owned, the
61091
+ * source face keeps its link and follows (`recognizedIdentityId`), and an
61092
+ * unknown person is refused.
61093
+ */
61094
+ moveIdentitySample: method(z.object({
61095
+ sampleId: z.string().min(1),
61096
+ toIdentityId: z.string().min(1)
61097
+ }), z.void(), {
61098
+ kind: "mutation",
61099
+ auth: "admin"
61100
+ }),
61077
61101
  listRecentFaces: method(z.object({
61078
61102
  /**
61079
61103
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -86069,7 +86093,19 @@ var VehicleSampleInfoSchema = z.object({
86069
86093
  score: z.number(),
86070
86094
  addedAt: z.number().int(),
86071
86095
  deviceId: z.number().int().optional(),
86072
- base64: z.string().optional()
86096
+ base64: z.string().optional(),
86097
+ /**
86098
+ * The sample's own crop, when it has one. Prefer this over {@link base64}:
86099
+ * the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
86100
+ */
86101
+ mediaId: z.number().int().optional(),
86102
+ /**
86103
+ * The source plate's key frame, when the sample has no crop of its own.
86104
+ * Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
86105
+ */
86106
+ keyFrameMediaId: z.number().int().optional(),
86107
+ /** The plate box on {@link keyFrameMediaId}, pixel space. */
86108
+ plateBbox: BoundingBoxSchema.optional()
86073
86109
  });
86074
86110
  var PlateInfoSchema = z.object({
86075
86111
  plateId: z.string(),
@@ -86099,7 +86135,17 @@ var PlateInfoSchema = z.object({
86099
86135
  * and `searchPlates` inline the crop only when their `includeCrops` input is
86100
86136
  * left at its `true` default.
86101
86137
  */
86102
- cropUrl: z.string().optional()
86138
+ cropUrl: z.string().optional(),
86139
+ /**
86140
+ * Why {@link cropUrl} is absent. One of `no-frame-handle`,
86141
+ * `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
86142
+ * `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
86143
+ * `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
86144
+ * `put-failed`. A crossing vehicle whose live capture missed is
86145
+ * `subject-moved`: the key frame is a different instant, and the crop is
86146
+ * legitimately absent.
86147
+ */
86148
+ cropMissReason: z.string().optional()
86103
86149
  });
86104
86150
  /**
86105
86151
  * One gallery media row: what the crop is, how big it is, and WHERE its bytes
@@ -86229,6 +86275,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(VehicleSchema).reado
86229
86275
  kind: "mutation",
86230
86276
  auth: "admin"
86231
86277
  }),
86278
+ /**
86279
+ * Move an enrolled sample onto another vehicle. The crop is re-owned, the
86280
+ * source plate keeps its link and follows (`recognizedVehicleId`), and an
86281
+ * unknown vehicle is refused.
86282
+ */
86283
+ moveVehicleSample: method(z.object({
86284
+ sampleId: z.string().min(1),
86285
+ toVehicleId: z.string().min(1)
86286
+ }), z.void(), {
86287
+ kind: "mutation",
86288
+ auth: "admin"
86289
+ }),
86232
86290
  assignPlate: method(z.object({
86233
86291
  plateId: z.string(),
86234
86292
  vehicleId: z.string()
@@ -120107,6 +120165,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
120107
120165
  access: "view",
120108
120166
  role: "feature:face-assignment"
120109
120167
  },
120168
+ "faceGallery.moveIdentitySample": {
120169
+ capName: "face-gallery",
120170
+ capScope: "system",
120171
+ addonId: null,
120172
+ access: "create",
120173
+ role: "feature:face-assignment"
120174
+ },
120110
120175
  "faceGallery.removeSample": {
120111
120176
  capName: "face-gallery",
120112
120177
  capScope: "system",
@@ -124027,6 +124092,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
124027
124092
  access: "view",
124028
124093
  role: "feature:plate-assignment"
124029
124094
  },
124095
+ "plateGallery.moveVehicleSample": {
124096
+ capName: "plate-gallery",
124097
+ capScope: "system",
124098
+ addonId: null,
124099
+ access: "create",
124100
+ role: "feature:plate-assignment"
124101
+ },
124030
124102
  "plateGallery.removeVehicleSample": {
124031
124103
  capName: "plate-gallery",
124032
124104
  capScope: "system",
@@ -134284,6 +134356,7 @@ function createSystemProxy(api) {
134284
134356
  listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
134285
134357
  auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
134286
134358
  removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
134359
+ moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
134287
134360
  getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
134288
134361
  assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
134289
134362
  unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
@@ -134577,6 +134650,7 @@ function createSystemProxy(api) {
134577
134650
  deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
134578
134651
  listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
134579
134652
  removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
134653
+ moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
134580
134654
  assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
134581
134655
  unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
134582
134656
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.572",
3
+ "version": "1.2.573",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",