Sign In

@decionis/presence-types

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decionis/presence-types

Public Presence wire types and Zod schemas for sessions, decisions, and dossiers.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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-types

What'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.

FAQs

Package last updated on 10 Aug 2026

Related posts