View as Markdown

SDK reference · Node SDK

prov.mandate.assessments

prov.mandate.assessments in the Node SDK: 6 methods. provenance.mandate.assessments: the agent builder's runtime check of an intent token (POST /v1/mandate/assessments: the policy decision and its ledger row, what gate relies on), and the ledger read back (/v1/mandate/assessments).

Methods

create

prov.mandate.assessments.create(params: VerifyIntentParams, opts?: IntentCallOptions): Promise<MandateAssessment>

Calls POST /v1/mandate/assessments.

createWithApproval

prov.mandate.assessments.createWithApproval(params: VerifyIntentParams, opts?: { pollMs?: number; timeoutMs?: number } & IntentCallOptions): Promise<MandateAssessment>

Verify, and if the action needs out-of-band step-up approval (reason: "approval_pending"), poll until the human approves, the request is denied/expired, or timeoutMs elapses.

list

prov.mandate.assessments.list(params?: ListDecisionsParams, opts?: { raw?: boolean }): Promise<ListResponse<DecisionRecord> | Record<string, unknown>>

Calls GET /v1/mandate/assessments.

get

prov.mandate.assessments.get(id: string, opts?: { raw?: boolean }): Promise<DecisionRecord | Record<string, unknown>>

Calls GET /v1/mandate/assessments/{id}.

verifyChain

prov.mandate.assessments.verifyChain(range?: { createdGte?: string; createdLte?: string }): Promise<DecisionChainVerification>

Recompute the hash chain over a range; reports the first break, if any.

Calls GET /v1/mandate/assessments/verify_chain.

receipt

prov.mandate.assessments.receipt(id: string): Promise<Receipt<DecisionReceipt>>

A signed, portable receipt for a decision, verifiable offline against the JWKS (also on the console's Verify a proof page).

Calls GET /v1/mandate/assessments/{id}/receipt.

Was this page helpful? Send us feedback

LLM? Read llms.txt.