import { z } from "zod/v4"; /** * Base session token schema used for JWT minting (no embed-specific fields) */ export declare const SessionTokenDataSchema: z.ZodObject<{ patientId: z.ZodOptional; careflowId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; }, z.core.$strip>; export type ParsedSessionTokenData = z.infer; /** * Convenience schema for contexts that require `sessionId` together with token fields */ export declare const SessionTokenDataWithIdSchema: z.ZodObject<{ patientId: z.ZodOptional; careflowId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; }, z.core.$strip>; export type ParsedSessionTokenDataWithId = z.infer; export declare const EmbedSessionCreatedStartSchema: z.ZodObject<{ patientId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"created">; errorMessage: z.ZodOptional; patientIdentifier: z.ZodOptional>; careflowDefinitionId: z.ZodString; careflowId: z.ZodOptional; }, z.core.$strict>; export declare const EmbedSessionCreatedContinueSchema: z.ZodObject<{ patientId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"created">; errorMessage: z.ZodOptional; patientIdentifier: z.ZodOptional>; careflowId: z.ZodString; careflowDefinitionId: z.ZodOptional; }, z.core.$strict>; export declare const EmbedSessionCreatedIntentSchema: z.ZodUnion; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"created">; errorMessage: z.ZodOptional; patientIdentifier: z.ZodOptional>; careflowDefinitionId: z.ZodString; careflowId: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ patientId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"created">; errorMessage: z.ZodOptional; patientIdentifier: z.ZodOptional>; careflowId: z.ZodString; careflowDefinitionId: z.ZodOptional; }, z.core.$strict>]>; /** * Active session schema (stored in KV) – state must be "active" and has required IDs */ export declare const ActiveSessionTokenDataSchema: z.ZodObject<{ 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"active">; careflowId: z.ZodString; stakeholderId: z.ZodString; patientId: z.ZodOptional; patientIdentifier: z.ZodOptional>; trackId: z.ZodOptional; activityId: z.ZodOptional; careflowData: z.ZodOptional>; }, z.core.$strip>; /** * Union schema for any stored session value in KV */ export declare const SessionValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"active">; careflowId: z.ZodString; stakeholderId: z.ZodString; patientId: z.ZodOptional; patientIdentifier: z.ZodOptional>; trackId: z.ZodOptional; activityId: z.ZodOptional; careflowData: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ patientId: z.ZodOptional; careflowId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"created">; errorMessage: z.ZodOptional; careflowDefinitionId: z.ZodOptional; patientIdentifier: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ patientId: z.ZodOptional; careflowId: z.ZodOptional; stakeholderId: z.ZodOptional; 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; createdAt: z.ZodDefault; exp: z.ZodNumber; sessionId: z.ZodString; state: z.ZodLiteral<"error">; errorMessage: z.ZodString; careflowDefinitionId: z.ZodOptional; patientIdentifier: z.ZodOptional>; }, z.core.$strip>]>; export type ParsedSessionValue = z.infer; /** * Zod schema for validating JWT payload structure at runtime */ export declare const JWTPayloadSchema: z.ZodObject<{ sub: z.ZodString; careflow_id: z.ZodOptional; stakeholder_id: z.ZodOptional; patient_id: z.ZodOptional; 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; iss: z.ZodString; createdAt: z.ZodDefault; exp: z.ZodNumber; iat: z.ZodNumber; }, z.core.$strip>; export type ParsedJWTPayload = z.infer;