Dominevo
ReferenceHTTP API

jobs

The jobs router: 8 methods of the jobs capability, with tier, scope, input and output.

Capability jobs · scope system · mode singleton · source packages/types/src/capabilities/jobs.cap.ts:99.

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

MethodKindTierToken scopeViewer
registermutationadminadmin onlyno
updatemutationadminadmin onlyno
listqueryprotectedviewyes
getqueryprotectedviewyes
getSummaryqueryprotectedviewyes
cancelmutationprotectedcreateyes
dismissmutationprotectedcreateyes
collectqueryprotectedviewyes

jobs.register

  • Kind: mutation — POST /trpc/jobs.register
  • 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=jobs.register on your hub

Input

JobRegisterInputSchema

Output

{ jobId: string }

Shapes: JobRegisterInputSchema

jobs.update

  • Kind: mutation — POST /trpc/jobs.update
  • 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=jobs.update on your hub

Input

JobUpdateInputSchema

Output

{ updated: boolean }

Shapes: JobUpdateInputSchema

jobs.list

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

Input

{ states?: JobStateSchema[]; includeDismissed?: boolean = false; entity?: JobEntityRefSchema; limit?: number }

Output

JobSchema[]

Shapes: JobStateSchema · JobEntityRefSchema · JobSchema

jobs.get

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

Input

{ jobId: string }

Output

JobSchema | null

Shapes: JobSchema

jobs.getSummary

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

Input

{}

Output

JobSummarySchema

Shapes: JobSummarySchema

jobs.cancel

  • Kind: mutation — POST /trpc/jobs.cancel
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability jobs, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=jobs.cancel on your hub

Input

{ jobId: string }

Output

{ accepted: boolean; reason: JobCancelReasonSchema | null }

Shapes: JobCancelReasonSchema

jobs.dismiss

  • Kind: mutation — POST /trpc/jobs.dismiss
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability jobs, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=jobs.dismiss on your hub

Input

{ jobId: string }

Output

{ dismissed: boolean }

jobs.collect

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

Input

{ jobId: string }

Output

JobResultSchema | null

Shapes: JobResultSchema