ReferenceHTTP APIShapes
Shapes: J
Named input and output shapes starting with J, referenced from the router pages.
Each shape is a TypeScript-style rendering of the validation schema. ? marks an optional field; self is a recursive reference.
JobAudienceSchema
"owner" | "admins"JobCancelReasonSchema
"not-found" | "not-cancellable" | "terminal" | "not-allowed" | "producer-refused" | "producer-unreachable"JobEntityRefSchema
{
kind: string
id: string
}JobFailureSchema
{
reason: "error" | "interrupted"
message: string
}JobProgressSchema
{
done: number
total: number | null
unit: string
}JobRegisterInputSchema
{
kind: string
producerAddonId: string
ownerUserId: string
audience: JobAudienceSchema
subject?: JobSubjectSchema
titleKey: string
titleParams?: Record<string, string | number> = {}
state?: "queued" | "running" = "running"
progress?: JobProgressSchema | null
cancellable: boolean
idempotencyKey: string
}JobResultSchema
{
href: string
navigation?: "app" | "server"
}JobSchema
{
jobId: string
kind: string
producerAddonId: string
ownerUserId: string
audience: JobAudienceSchema
subject?: JobSubjectSchema
titleKey: string
titleParams: Record<string, string | number>
state: JobStateSchema
failure: JobFailureSchema | null
progress: JobProgressSchema | null
cancellable: boolean
createdAt: number
updatedAt: number
lastConfirmedAt: number
finishedAt: number | null
}JobSnapshotSchema
{
state: JobStateSchema
failure: JobFailureSchema | null
progress: JobProgressSchema | null
cancellable: boolean
finishedAt: number | null
}JobSourceEntrySchema
| { jobId: string; snapshot: JobSnapshotSchema }
| { jobId: string; unknown: true }JobStateSchema
"queued" | "running" | "done" | "failed" | "cancelled"JobSubjectSchema
{
deviceId?: number
nodeId?: string
entity?: JobEntityRefSchema
}JobSummarySchema
{
running: number
unseenFinished: number | null
}JobUpdateInputSchema
{
jobId: string
state?: JobStateSchema
progress?: JobProgressSchema | null
failure?: JobFailureSchema | null
}