Skip to content

@saflib/jobs-db


Type Alias: JobAuthority

JobAuthority = { assertion: JobAuthorityAssertion; kind: "request"; request_id: string; user_id: string; } | { assertion: JobAuthorityAssertion; kind: "resource"; resource_id: string; resource_kind: string; user_id: string; } | { assertion: JobAuthorityAssertion; cron_job_name: string; kind: "cron"; user_id: string; }

Root grant for the job chain, including the embedded enqueue assertion. Wire form omits assertion (returned separately as authority_assertion).