@decionis/presence-types
v0.2.0
Published
Public Presence wire types and Zod schemas for sessions, decisions, and dossiers.
Readme
Presence Wire Types for TypeScript
Presence SDK — verify human presence before consequential actions execute.
Applications send intent and context. Presence verifies the person. Decionis decides whether execution proceeds.
Public TypeScript types and Zod schemas for the Presence API wire contract: sessions,
decisions, Verdicts, enforcement, intent envelopes, and Presence Records (wire name:
dossier).
Install
npm install @decionis/presence-typesWhat's inside
import {
DecideRequestSchema,
DecideResponseSchema,
ActionContextSchema,
VerdictSchema, // "AUTHORIZED" | "RESTRAIN" | "ESCALATE" | "BLOCKED"
EnforcementModeSchema, // "SHADOW" | "RESTRAIN_ONLY" | "ENFORCE_HIGH_STAKES" | "ENFORCE"
DecisionDossierSchema,
VerificationBundleSchema,
IntentEnvelopeSchema,
VerificationRequestSchema,
} from "@decionis/presence-types";Every schema exports its inferred type (DecideRequest, DecideResponse, Verdict, …).
Wire fields are snake_case to match the Presence protocol. Requires Node.js 22.14 or
later; ESM only.
Where the types are used
This is a support package. Start with the SDKs that consume it:
@decionis/presence-node— server-side Presence Checks.@decionis/presence-web— the subject-side browser ceremony.
The canonical cross-language contract is the published OpenAPI document at presence.decionis.com/.well-known/openapi.json. Tenant credentials must remain on a trusted server.
Support
License
Apache-2.0. Use of the hosted Presence service is governed separately.
