feat(api): declare identity contract for registration, verification, and sessions
This commit is contained in:
1 parent
197661145e
commit
653f3775f8
86 files changed
+11826
-148
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const ConsentTextVersionMax = 64;
|
||||
|
||||
|
||||
export const ConsentTextVersionRegExp = new RegExp('^[A-Za-z0-9._-]+$');
|
||||
|
||||
export const ConsentTextVersion = zod.string().min(1).max(ConsentTextVersionMax).regex(ConsentTextVersionRegExp).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.')
|
||||
|
||||
export type ConsentTextVersion = zod.input<typeof ConsentTextVersion>;
|
||||
export type ConsentTextVersionOutput = zod.output<typeof ConsentTextVersion>;
|
||||
Reference in new issue
Block a user