Dominevo
ReferenceHTTP API

petFeeder

The petFeeder router: 11 methods of the pet-feeder capability, with tier, scope, input and output.

Capability pet-feeder · scope device · mode singleton · source packages/types/src/capabilities/pet-feeder.cap.ts:139.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
feedmutationprotectedcreateyes
cancelFeedmutationprotectedcreateyes
callPetmutationprotectedcreateyes
playSoundmutationprotectedcreateyes
resetDesiccantmutationprotecteddeleteyes
markFoodReplenishedmutationprotectedcreateyes
setChildLockmutationprotectedcreateyes
setIndicatorLightmutationprotectedcreateyes
setFeedSoundmutationprotectedcreateyes
setVolumemutationprotectedcreateyes

petFeeder.getStatus

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

Input

{ deviceId: number }

Output

PetFeederStatusSchema

Shapes: PetFeederStatusSchema

petFeeder.feed

  • Kind: mutation — POST /trpc/petFeeder.feed
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.feed on your hub

Input

{ deviceId: number; grams?: number; hopper1?: number; hopper2?: number }

Output

void

petFeeder.cancelFeed

  • Kind: mutation — POST /trpc/petFeeder.cancelFeed
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.cancelFeed on your hub

Input

{ deviceId: number }

Output

void

petFeeder.callPet

  • Kind: mutation — POST /trpc/petFeeder.callPet
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.callPet on your hub

Input

{ deviceId: number }

Output

void

petFeeder.playSound

  • Kind: mutation — POST /trpc/petFeeder.playSound
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.playSound on your hub

Input

{ deviceId: number; soundId: number }

Output

void

petFeeder.resetDesiccant

  • Kind: mutation — POST /trpc/petFeeder.resetDesiccant
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: delete on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.resetDesiccant on your hub

Input

{ deviceId: number }

Output

void

petFeeder.markFoodReplenished

  • Kind: mutation — POST /trpc/petFeeder.markFoodReplenished
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.markFoodReplenished on your hub

Input

{ deviceId: number }

Output

void

petFeeder.setChildLock

  • Kind: mutation — POST /trpc/petFeeder.setChildLock
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.setChildLock on your hub

Input

{ deviceId: number; on: boolean }

Output

void

petFeeder.setIndicatorLight

  • Kind: mutation — POST /trpc/petFeeder.setIndicatorLight
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.setIndicatorLight on your hub

Input

{ deviceId: number; on: boolean }

Output

void

petFeeder.setFeedSound

  • Kind: mutation — POST /trpc/petFeeder.setFeedSound
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.setFeedSound on your hub

Input

{ deviceId: number; on: boolean }

Output

void

petFeeder.setVolume

  • Kind: mutation — POST /trpc/petFeeder.setVolume
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability pet-feeder, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=petFeeder.setVolume on your hub

Input

{ deviceId: number; level: number }

Output

void