Dominevo
ReferenceHTTP API

faceGallery

The faceGallery router: 17 methods of the face-gallery capability, with tier, scope, input and output.

Capability face-gallery · scope system · mode singleton · source packages/types/src/capabilities/face-gallery.cap.ts:217.

Every method is called at /trpc/faceGallery.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
listIdentitiesqueryprotectedviewyes
createIdentitymutationadminadmin onlywith the face-assignment feature
renameIdentitymutationadminadmin onlywith the face-assignment feature
deleteIdentitymutationadminadmin onlywith the face-assignment feature
listIdentitySamplesqueryprotectedviewwith the face-assignment feature
auditIdentitySamplesqueryadminadmin onlywith the face-assignment feature
removeSamplemutationadminadmin onlywith the face-assignment feature
moveIdentitySamplemutationadminadmin onlywith the face-assignment feature
listRecentFacesqueryprotectedviewwith the face-assignment feature
getFaceByTrackqueryprotectedviewyes
getFaceMediaqueryprotectedviewwith the face-assignment feature
assignFacemutationadminadmin onlywith the face-assignment feature
unassignFacemutationadminadmin onlywith the face-assignment feature
deleteFacemutationadminadmin onlywith the face-assignment feature
assignFacesmutationadminadmin onlywith the face-assignment feature
unassignFacesmutationadminadmin onlywith the face-assignment feature
suggestFaceClustersqueryprotectedviewwith the face-assignment feature

faceGallery.listIdentities

  • Kind: query — GET /trpc/faceGallery.listIdentities
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=faceGallery.listIdentities on your hub

Input

{ includeCrops?: boolean }?

Output

({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]

faceGallery.createIdentity

  • Kind: mutation — POST /trpc/faceGallery.createIdentity
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.createIdentity on your hub

Input

{ name: string }

Output

{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }

faceGallery.renameIdentity

  • Kind: mutation — POST /trpc/faceGallery.renameIdentity
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.renameIdentity on your hub

Input

{ id: string; name: string }

Output

void

faceGallery.deleteIdentity

  • Kind: mutation — POST /trpc/faceGallery.deleteIdentity
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.deleteIdentity on your hub

Input

{ id: string }

Output

void

faceGallery.listIdentitySamples

  • Kind: query — GET /trpc/faceGallery.listIdentitySamples
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: with the face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.listIdentitySamples on your hub

Input

{ identityId: string }

Output

({ id: string; source: "detected" | "photo"; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; faceBbox?: BoundingBoxSchema })[]

Shapes: BoundingBoxSchema

faceGallery.auditIdentitySamples

  • Kind: query — GET /trpc/faceGallery.auditIdentitySamples
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.auditIdentitySamples on your hub

Input

{ identityId: string }

Output

{ identityId: string; name: string; modelId: string; totalSamples: number; comparableSamples: number; flagged: number; flagThreshold: number; rows: ({ sampleId: string; enrolledAt: number; deviceId?: number; source: "detected" | "photo"; mediaId?: number; comparable: boolean; selfMean: number | null; bestForeign?: { identityId: string; name: string; score: number }; suspicion: number })[] }

faceGallery.removeSample

  • Kind: mutation — POST /trpc/faceGallery.removeSample
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.removeSample on your hub

Input

{ identityId: string; sampleId: string }

Output

void

faceGallery.moveIdentitySample

  • Kind: mutation — POST /trpc/faceGallery.moveIdentitySample
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.moveIdentitySample on your hub

Input

{ sampleId: string; toIdentityId: string }

Output

void

faceGallery.listRecentFaces

  • Kind: query — GET /trpc/faceGallery.listRecentFaces
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: with the face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.listRecentFaces on your hub

Input

{ deviceId?: number; deviceIds?: number[]; limit?: number; filter?: "unassigned" | "recognized" | "identified" | "all"; since?: number; until?: number; sortBy?: "timestamp" | "suggestionConfidence"; sortDirection?: "asc" | "desc"; includeCrops?: boolean }?

Output

({ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number })[]

Shapes: BoundingBoxSchema

faceGallery.getFaceByTrack

  • Kind: query — GET /trpc/faceGallery.getFaceByTrack
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=faceGallery.getFaceByTrack on your hub

Input

{ deviceId: number; trackId: string }

Output

{ faceId: string; deviceId: number; trackId: string; timestamp: number; recognizedIdentityId?: string; identityName?: string; assigned: boolean; base64?: string; cropUrl?: string; faceBbox?: BoundingBoxSchema; keyFrameMediaId?: number; bestMatchScore?: number; nativeFaceShortSidePx?: number; suggestedIdentityId?: string; suggestedMatchScore?: number } | null

Shapes: BoundingBoxSchema

faceGallery.getFaceMedia

  • Kind: query — GET /trpc/faceGallery.getFaceMedia
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: with the face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.getFaceMedia on your hub

Input

{ faceId: string }

Output

({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]

faceGallery.assignFace

  • Kind: mutation — POST /trpc/faceGallery.assignFace
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.assignFace on your hub

Input

{ faceId: string; identityId: string }

Output

void

faceGallery.unassignFace

  • Kind: mutation — POST /trpc/faceGallery.unassignFace
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.unassignFace on your hub

Input

{ faceId: string }

Output

void

faceGallery.deleteFace

  • Kind: mutation — POST /trpc/faceGallery.deleteFace
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.deleteFace on your hub

Input

{ faceId: string }

Output

void

faceGallery.assignFaces

  • Kind: mutation — POST /trpc/faceGallery.assignFaces
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.assignFaces on your hub

Input

{ faceIds: string[]; identityId: string }

Output

{ assigned: number; failed: string[] }

faceGallery.unassignFaces

  • Kind: mutation — POST /trpc/faceGallery.unassignFaces
  • 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 face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.unassignFaces on your hub

Input

{ faceIds: string[] }

Output

{ unassigned: number; failed: string[] }

faceGallery.suggestFaceClusters

  • Kind: query — GET /trpc/faceGallery.suggestFaceClusters
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability face-gallery, or category system
  • Viewer: with the face-assignment feature
  • Try it: open /system/api-explorer?method=faceGallery.suggestFaceClusters on your hub

Input

{ threshold?: number; minClusterSize?: number; maxClusters?: number; limit?: number; maxFacesScanned?: number }?

Output

({ faceIds: string[]; representativeFaceId: string; size: number; cohesion: number })[]