Dominevo
ReferenceHTTP API

cameraGridLayout

The cameraGridLayout router: 5 methods of the camera-grid-layout capability, with tier, scope, input and output.

Capability camera-grid-layout · scope device · mode singleton · source packages/types/src/capabilities/camera-grid-layout.cap.ts:152.

Every method is called at /trpc/cameraGridLayout.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getDeviceSettingsContributionqueryprotectedviewyes
getDeviceLiveContributionqueryprotectedviewyes
applyDeviceSettingsPatchmutationadminadmin onlyno
getLayoutqueryadminadmin onlyno
saveLayoutmutationadminadmin onlyno

cameraGridLayout.getDeviceSettingsContribution

  • Kind: query — GET /trpc/cameraGridLayout.getDeviceSettingsContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-grid-layout, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraGridLayout.getDeviceSettingsContribution on your hub

Input

{ deviceId: number }

Output

{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" | "accordion"; defaultCollapsed?: boolean; columns?: 1 | 2 | 3 | 4; tab?: string; location?: "settings" | "top-tab" | "hero"; order?: number; fields: any[] })[] } | null

cameraGridLayout.getDeviceLiveContribution

  • Kind: query — GET /trpc/cameraGridLayout.getDeviceLiveContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-grid-layout, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraGridLayout.getDeviceLiveContribution on your hub

Input

{ deviceId: number }

Output

{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" | "accordion"; defaultCollapsed?: boolean; columns?: 1 | 2 | 3 | 4; tab?: string; location?: "settings" | "top-tab" | "hero"; order?: number; fields: any[] })[] } | null

cameraGridLayout.applyDeviceSettingsPatch

  • Kind: mutation — POST /trpc/cameraGridLayout.applyDeviceSettingsPatch (added by the framework)
  • 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: no
  • Try it: open /system/api-explorer?method=cameraGridLayout.applyDeviceSettingsPatch on your hub

Input

{ deviceId: number; patch: Record<string, unknown> }

Output

{ success: true }

cameraGridLayout.getLayout

  • Kind: query — GET /trpc/cameraGridLayout.getLayout
  • 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: no
  • Try it: open /system/api-explorer?method=cameraGridLayout.getLayout on your hub

Input

{ deviceId: number }

Output

GridLayoutViewSchema | null

Shapes: GridLayoutViewSchema

cameraGridLayout.saveLayout

  • Kind: mutation — POST /trpc/cameraGridLayout.saveLayout
  • 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: no
  • Try it: open /system/api-explorer?method=cameraGridLayout.saveLayout on your hub

Input

GridLayoutPatchSchema

Output

GridLayoutViewSchema

Shapes: GridLayoutPatchSchema · GridLayoutViewSchema