SDK reference · Node SDK
prov.mandate.runs
prov.mandate.runs in the Node SDK: 5 methods. The mandate.runs methods.
Methods
create
prov.mandate.runs.create(params?: { name?: string; rootGrantId?: string }): Promise<Run>Start a run, optionally rooted at the person's mandate (its budget feeds the guard's budget pressure).
Calls POST /v1/mandate/runs.
list
prov.mandate.runs.list(params?: ListRunsParams): Promise<Run[]>One page of your runs, newest first (20 by default; pass cursor from the previous page's next_cursor).
Calls GET /v1/mandate/runs.
get
prov.mandate.runs.get(runId: string): Promise<RunDetail & Record<string, unknown>>The run with its team tree, the guard's counters, and its escalations and delegation proposals.
Calls GET /v1/mandate/runs/{id}.
halt
prov.mandate.runs.halt(runId: string, params: { reason: string }): Promise<Run & Record<string, unknown>>Halt the run: every member stops on its next verify, and its mandates are revoked.
Calls POST /v1/mandate/runs/{id}/pause.
end
prov.mandate.runs.end(runId: string): Promise<Run & Record<string, unknown>>End the run: it takes no new members.
Calls POST /v1/mandate/runs/{id}/end.