Skip to content

VaultAPI

Defined in: namespaces-core-plugins.ts:138

Credential vault (fn-72). Anti-enumeration applies on use(ref:) — unknown refs collapse to a sanitized error.

Scopes: vault.store, vault.read, vault.list, vault.share, vault.audit, plus contributor scopes vault.{type,bridge,rotator}.register and vault.policy.contribute.

fn-72

store(kind, label, material): Promise<CredentialRef>

Defined in: namespaces-core-plugins.ts:140

Stores credential material; returns an opaque ref. [vault.store]

string

string

AnyJSONValue

Promise<CredentialRef>


find(kind?, label?, source?): Promise<CredentialRef[]>

Defined in: namespaces-core-plugins.ts:142

Finds credential refs by kind/label/source. [vault.list]

string

string

string

Promise<CredentialRef[]>


use<T>(refId, purpose, body): Promise<T>

Defined in: namespaces-core-plugins.ts:144

Uses a credential inside a scoped callback. [vault.read]

T

string

string

(handle) => T | Promise<T>

Promise<T>


buildRequest(handleId, descriptor): Promise<string>

Defined in: namespaces-core-plugins.ts:150

Builds a server-held URLRequest from a credential handle. Returns a single-use requestId for network.executeRequest — JS never sees the raw token.

string

AnyJSONValue

Promise<string>


injectHeader(handleId, requestId, headerName, scheme): Promise<string>

Defined in: namespaces-core-plugins.ts:155

Injects an auth header into a server-held request. Returns a NEW requestId; the old one is consumed.

string

string

string

string

Promise<string>


rotate(refId): Promise<void>

Defined in: namespaces-core-plugins.ts:157

Rotates credential material behind a ref.

string

Promise<void>


revoke(refId): Promise<void>

Defined in: namespaces-core-plugins.ts:159

Revokes a credential ref.

string

Promise<void>