Files
lincodex/frontend/src/shared/api/schemas/invitation/contactConsentText.zod.ts
T

23 lines
1.4 KiB
TypeScript

/**
* Generated by orval 🍺
* Do not edit manually.
* Lincodex API
* OpenAPI spec version: 0.1.0
*/
import * as zod from 'zod';
export const contactConsentTextTextVersionMax = 64;
export const contactConsentTextTextVersionRegExp = new RegExp('^[A-Za-z0-9._-]+$');
export const contactConsentTextTextMax = 100000;
export const ContactConsentText = zod.object({
"text_version": zod.string().min(1).max(contactConsentTextTextVersionMax).regex(contactConsentTextTextVersionRegExp).describe('Identifier of the published consent text that the user saw and accepted. The server stores the acceptance with this version and the hash of its text; the client never sends or receives the hash.'),
"text": zod.string().min(1).max(contactConsentTextTextMax).describe('Full consent text in plain UTF-8 with the name of the organization; paragraphs are separated by an empty line. The client shows it as text, never as HTML, next to the field choice.')
}).describe('Currently published text of the consent C4 for this invitation. The server stores an acceptance with `text_version` and the hash of exactly this text, together with the organization, the selected fields, the invitation, and its terms version (the ledger of TASK-062).')
export type ContactConsentText = zod.input<typeof ContactConsentText>;
export type ContactConsentTextOutput = zod.output<typeof ContactConsentText>;