/** * @medicine-wheel/consent-lifecycle — Zod Schemas * * Runtime validation schemas for consent lifecycle types. */ import { z } from 'zod'; export declare const ConsentStateSchema: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; export declare const ConsentScopeSchema: z.ZodObject<{ description: z.ZodString; dataTypes: z.ZodArray; purposes: z.ZodArray; duration: z.ZodOptional; geographic: z.ZodOptional; restrictions: z.ZodArray; }, "strip", z.ZodTypeAny, { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }, { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }>; export declare const ConsentCeremonySchema: z.ZodObject<{ type: z.ZodEnum<["initial", "renewal", "renegotiation", "withdrawal"]>; timestamp: z.ZodString; participants: z.ZodArray; witnessedBy: z.ZodArray; outcome: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; notes: z.ZodOptional; ceremonyId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }, { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }>; export declare const ConsentStateChangeSchema: z.ZodObject<{ from: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; to: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; reason: z.ZodString; timestamp: z.ZodString; initiatedBy: z.ZodString; }, "strip", z.ZodTypeAny, { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }, { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }>; export declare const ConsentCascadeSchema: z.ZodObject<{ triggerId: z.ZodString; affected: z.ZodArray; action: z.ZodEnum<["expire", "review", "withdraw", "narrow"]>; }, "strip", z.ZodTypeAny, { triggerId: string; affected: string[]; action: "expire" | "review" | "withdraw" | "narrow"; }, { triggerId: string; affected: string[]; action: "expire" | "review" | "withdraw" | "narrow"; }>; export declare const ConsentRecordSchema: z.ZodObject<{ id: z.ZodString; grantor: z.ZodString; grantee: z.ZodString; scope: z.ZodObject<{ description: z.ZodString; dataTypes: z.ZodArray; purposes: z.ZodArray; duration: z.ZodOptional; geographic: z.ZodOptional; restrictions: z.ZodArray; }, "strip", z.ZodTypeAny, { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }, { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }>; state: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; grantedAt: z.ZodOptional; renewedAt: z.ZodOptional; expiresAt: z.ZodOptional; renewalInterval: z.ZodOptional; ceremonies: z.ZodArray; timestamp: z.ZodString; participants: z.ZodArray; witnessedBy: z.ZodArray; outcome: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; notes: z.ZodOptional; ceremonyId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }, { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }>, "many">; history: z.ZodArray; to: z.ZodEnum<["pending", "granted", "active", "renewal-needed", "expired", "renegotiating", "withdrawn"]>; reason: z.ZodString; timestamp: z.ZodString; initiatedBy: z.ZodString; }, "strip", z.ZodTypeAny, { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }, { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }>, "many">; communityLevel: z.ZodBoolean; dependentRelations: z.ZodArray; ocapFlags: z.ZodObject<{ ownership: z.ZodString; control: z.ZodString; access: z.ZodEnum<["community", "researchers", "public", "restricted"]>; possession: z.ZodEnum<["on-premise", "community-server", "cloud-sovereign", "cloud-shared"]>; compliant: z.ZodBoolean; steward: z.ZodOptional; consent_given: z.ZodOptional; consent_scope: z.ZodOptional; consent_state: z.ZodOptional>; consent_last_affirmed: z.ZodOptional; }, "strip", z.ZodTypeAny, { ownership: string; control: string; access: "community" | "researchers" | "public" | "restricted"; possession: "on-premise" | "community-server" | "cloud-sovereign" | "cloud-shared"; compliant: boolean; steward?: string | undefined; consent_given?: boolean | undefined; consent_scope?: string | undefined; consent_state?: "active" | "withdrawn" | "expired" | "pending" | undefined; consent_last_affirmed?: string | undefined; }, { ownership: string; control: string; access: "community" | "researchers" | "public" | "restricted"; possession: "on-premise" | "community-server" | "cloud-sovereign" | "cloud-shared"; compliant: boolean; steward?: string | undefined; consent_given?: boolean | undefined; consent_scope?: string | undefined; consent_state?: "active" | "withdrawn" | "expired" | "pending" | undefined; consent_last_affirmed?: string | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; grantor: string; grantee: string; scope: { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }; state: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; ceremonies: { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }[]; history: { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }[]; communityLevel: boolean; dependentRelations: string[]; ocapFlags: { ownership: string; control: string; access: "community" | "researchers" | "public" | "restricted"; possession: "on-premise" | "community-server" | "cloud-sovereign" | "cloud-shared"; compliant: boolean; steward?: string | undefined; consent_given?: boolean | undefined; consent_scope?: string | undefined; consent_state?: "active" | "withdrawn" | "expired" | "pending" | undefined; consent_last_affirmed?: string | undefined; }; grantedAt?: string | undefined; renewedAt?: string | undefined; expiresAt?: string | undefined; renewalInterval?: number | undefined; }, { id: string; grantor: string; grantee: string; scope: { description: string; dataTypes: string[]; purposes: string[]; restrictions: string[]; duration?: string | undefined; geographic?: string | undefined; }; state: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; ceremonies: { type: "initial" | "renewal" | "renegotiation" | "withdrawal"; timestamp: string; participants: string[]; witnessedBy: string[]; outcome: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; notes?: string | undefined; ceremonyId?: string | undefined; }[]; history: { timestamp: string; from: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; to: "pending" | "granted" | "active" | "renewal-needed" | "expired" | "renegotiating" | "withdrawn"; reason: string; initiatedBy: string; }[]; communityLevel: boolean; dependentRelations: string[]; ocapFlags: { ownership: string; control: string; access: "community" | "researchers" | "public" | "restricted"; possession: "on-premise" | "community-server" | "cloud-sovereign" | "cloud-shared"; compliant: boolean; steward?: string | undefined; consent_given?: boolean | undefined; consent_scope?: string | undefined; consent_state?: "active" | "withdrawn" | "expired" | "pending" | undefined; consent_last_affirmed?: string | undefined; }; grantedAt?: string | undefined; renewedAt?: string | undefined; expiresAt?: string | undefined; renewalInterval?: number | undefined; }>; export type ValidatedConsentRecord = z.infer; export type ValidatedConsentScope = z.infer; export type ValidatedConsentCeremony = z.infer; export type ValidatedConsentStateChange = z.infer; export type ValidatedConsentCascade = z.infer; //# sourceMappingURL=schemas.d.ts.map