UNPKG

@awell-health/navi-core

Version:

Core utilities and GraphQL client for Navi care flow integration

73 lines (72 loc) 2.32 kB
import { z } from "zod/v4"; /** * Zod schema for validating SessionTokenData structure at runtime */ export declare const SessionTokenDataSchema: z.ZodObject<{ patientId: z.ZodOptional<z.ZodString>; careflowId: z.ZodOptional<z.ZodString>; stakeholderId: z.ZodOptional<z.ZodString>; orgId: z.ZodString; tenantId: z.ZodString; environment: z.ZodEnum<{ local: "local"; test: "test"; development: "development"; staging: "staging"; sandbox: "sandbox"; "production-eu": "production-eu"; "production-us": "production-us"; "production-uk": "production-uk"; }>; naviStytchUserId: z.ZodOptional<z.ZodString>; createdAt: z.ZodDefault<z.ZodNumber>; exp: z.ZodNumber; state: z.ZodDefault<z.ZodEnum<{ created: "created"; active: "active"; error: "error"; }>>; errorMessage: z.ZodOptional<z.ZodString>; careflowDefinitionId: z.ZodOptional<z.ZodString>; patientIdentifier: z.ZodOptional<z.ZodObject<{ system: z.ZodString; value: z.ZodString; }, z.core.$strip>>; trackId: z.ZodOptional<z.ZodString>; activityId: z.ZodOptional<z.ZodString>; careflowData: z.ZodOptional<z.ZodObject<{ id: z.ZodString; releaseId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** * Zod schema for validating JWT payload structure at runtime */ export declare const JWTPayloadSchema: z.ZodObject<{ sub: z.ZodString; careflow_id: z.ZodOptional<z.ZodString>; stakeholder_id: z.ZodOptional<z.ZodString>; patient_id: z.ZodOptional<z.ZodString>; tenant_id: z.ZodString; org_id: z.ZodString; environment: z.ZodEnum<{ local: "local"; test: "test"; development: "development"; staging: "staging"; sandbox: "sandbox"; "production-eu": "production-eu"; "production-us": "production-us"; "production-uk": "production-uk"; }>; authentication_state: z.ZodEnum<{ unauthenticated: "unauthenticated"; verified: "verified"; authenticated: "authenticated"; }>; navi_stytch_user_id: z.ZodOptional<z.ZodString>; iss: z.ZodString; createdAt: z.ZodDefault<z.ZodNumber>; exp: z.ZodNumber; iat: z.ZodNumber; }, z.core.$strip>;