ReferenceHTTP API
plateGallery
The plateGallery router: 18 methods of the plate-gallery capability, with tier, scope, input and output.
Capability plate-gallery · scope system · mode singleton · source packages/types/src/capabilities/plate-gallery.cap.ts:122.
Every method is called at /trpc/plateGallery.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listPlates | query | protected | view | with the plate-assignment feature |
getPlateByTrack | query | protected | view | yes |
getPlateMedia | query | protected | view | with the plate-assignment feature |
searchPlates | query | protected | view | with the plate-assignment feature |
suggestPlateClusters | query | protected | view | with the plate-assignment feature |
correctPlateText | mutation | admin | admin only | with the plate-assignment feature |
deletePlate | mutation | admin | admin only | with the plate-assignment feature |
listVehicles | query | protected | view | with the plate-assignment feature |
createVehicle | mutation | admin | admin only | with the plate-assignment feature |
renameVehicle | mutation | admin | admin only | with the plate-assignment feature |
deleteVehicle | mutation | admin | admin only | with the plate-assignment feature |
listVehicleSamples | query | protected | view | with the plate-assignment feature |
removeVehicleSample | mutation | admin | admin only | with the plate-assignment feature |
moveVehicleSample | mutation | admin | admin only | with the plate-assignment feature |
assignPlate | mutation | admin | admin only | with the plate-assignment feature |
unassignPlate | mutation | admin | admin only | with the plate-assignment feature |
assignPlates | mutation | admin | admin only | with the plate-assignment feature |
unassignPlates | mutation | admin | admin only | with the plate-assignment feature |
plateGallery.listPlates
- Kind: query —
GET /trpc/plateGallery.listPlates - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.listPlateson your hub
Input
{ deviceId?: number; limit?: number; includeCrops?: boolean }?Output
({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]Shapes: BoundingBoxSchema
plateGallery.getPlateByTrack
- Kind: query —
GET /trpc/plateGallery.getPlateByTrack - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=plateGallery.getPlateByTrackon your hub
Input
{ deviceId: number; trackId: string }Output
{ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string } | nullShapes: BoundingBoxSchema
plateGallery.getPlateMedia
- Kind: query —
GET /trpc/plateGallery.getPlateMedia - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.getPlateMediaon your hub
Input
{ plateId: string }Output
({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]plateGallery.searchPlates
- Kind: query —
GET /trpc/plateGallery.searchPlates - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.searchPlateson your hub
Input
{ text: string; maxDistance?: number; limit?: number; includeCrops?: boolean }Output
({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]Shapes: BoundingBoxSchema
plateGallery.suggestPlateClusters
- Kind: query —
GET /trpc/plateGallery.suggestPlateClusters - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.suggestPlateClusterson your hub
Input
{ maxDistance?: number; minClusterSize?: number; limit?: number }?Output
({ plateIds: string[]; representativePlateId: string; representativeText: string; size: number; cohesion: number })[]plateGallery.correctPlateText
- Kind: mutation —
POST /trpc/plateGallery.correctPlateText - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.correctPlateTexton your hub
Input
{ plateId: string; text: string }Output
voidplateGallery.deletePlate
- Kind: mutation —
POST /trpc/plateGallery.deletePlate - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.deletePlateon your hub
Input
{ plateId: string }Output
voidplateGallery.listVehicles
- Kind: query —
GET /trpc/plateGallery.listVehicles - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.listVehicleson your hub
Input
{ includeCrops?: boolean }?Output
({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]plateGallery.createVehicle
- Kind: mutation —
POST /trpc/plateGallery.createVehicle - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.createVehicleon your hub
Input
{ name: string }Output
{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }plateGallery.renameVehicle
- Kind: mutation —
POST /trpc/plateGallery.renameVehicle - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.renameVehicleon your hub
Input
{ id: string; name: string }Output
voidplateGallery.deleteVehicle
- Kind: mutation —
POST /trpc/plateGallery.deleteVehicle - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.deleteVehicleon your hub
Input
{ id: string }Output
voidplateGallery.listVehicleSamples
- Kind: query —
GET /trpc/plateGallery.listVehicleSamples - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplate-gallery, or categorysystem - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.listVehicleSampleson your hub
Input
{ vehicleId: string }Output
({ id: string; text: string; score: number; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; plateBbox?: BoundingBoxSchema })[]Shapes: BoundingBoxSchema
plateGallery.removeVehicleSample
- Kind: mutation —
POST /trpc/plateGallery.removeVehicleSample - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.removeVehicleSampleon your hub
Input
{ vehicleId: string; sampleId: string }Output
voidplateGallery.moveVehicleSample
- Kind: mutation —
POST /trpc/plateGallery.moveVehicleSample - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.moveVehicleSampleon your hub
Input
{ sampleId: string; toVehicleId: string }Output
voidplateGallery.assignPlate
- Kind: mutation —
POST /trpc/plateGallery.assignPlate - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.assignPlateon your hub
Input
{ plateId: string; vehicleId: string }Output
voidplateGallery.unassignPlate
- Kind: mutation —
POST /trpc/plateGallery.unassignPlate - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.unassignPlateon your hub
Input
{ plateId: string }Output
voidplateGallery.assignPlates
- Kind: mutation —
POST /trpc/plateGallery.assignPlates - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.assignPlateson your hub
Input
{ plateIds: string[]; vehicleId: string }Output
{ assigned: number; failed: string[] }plateGallery.unassignPlates
- Kind: mutation —
POST /trpc/plateGallery.unassignPlates - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
plate-assignmentfeature - Try it: open
/system/api-explorer?method=plateGallery.unassignPlateson your hub
Input
{ plateIds: string[] }Output
{ unassigned: number; failed: string[] }