OperationsJobsGuard — @gj-kit/nest-operations-jobs
A public class from @gj-kit/nest-operations-jobs. The signature below is taken directly from the 0.1.1 release declaration.
Verified import example
Section titled “Verified import example”import { OperationsJobsGuard } from '@gj-kit/nest-operations-jobs';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Authenticates every job trigger. Applied by the controller factory, so a * handler cannot forget it — the structural fix for per-handler assert calls. * * A rejected credential is a 401 with one fixed body, mapped by * {@link toHttpException} like every other library outcome — this class decides * no status codes of its own. A verifier that throws is an outage, not a * rejection: it becomes a 503 so the scheduler retries, and its body carries * `reason: 'verifier_unavailable'` so an alert rule can tell "the caller's token * was refused" from "our verifier is down". */declare class OperationsJobsGuard implements CanActivate { private readonly authenticate; constructor(authenticate: JobTriggerAuthenticator); canActivate(context: ExecutionContext): Promise<boolean>;}This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.
Release context
Section titled “Release context”- Package:
@gj-kit/nest-operations-jobs - Version:
0.1.1 - Public entry:
. - Source: GitHub