UNPKG

covid-certificate

Version:

Parse and verify a european digital covid certificate (dcc)

274 lines (273 loc) 7.27 kB
export declare const schema: { $id: string; title: string; description: string; $comment: string; type: string; oneOf: { required: string[]; }[]; properties: { ver: { title: string; description: string; type: string; pattern: string; examples: string[]; }; nam: { description: string; $ref: string; }; dob: { title: string; description: string; type: string; pattern: string; examples: string[]; }; v: { description: string; type: string; items: { $ref: string; }; minItems: number; maxItems: number; }; t: { description: string; type: string; items: { $ref: string; }; minItems: number; maxItems: number; }; r: { description: string; type: string; items: { $ref: string; }; minItems: number; maxItems: number; }; }; $defs: { dose_posint: { description: string; type: string; minimum: number; }; issuer: { description: string; type: string; maxLength: number; }; person_name: { description: string; required: string[]; type: string; properties: { fn: { title: string; description: string; type: string; maxLength: number; examples: string[]; }; fnt: { title: string; description: string; type: string; pattern: string; maxLength: number; examples: string[]; }; gn: { title: string; description: string; type: string; maxLength: number; examples: string[]; }; gnt: { title: string; description: string; type: string; pattern: string; maxLength: number; examples: string[]; }; }; }; certificate_id: { description: string; type: string; maxLength: number; }; vaccination_entry: { description: string; required: string[]; type: string; properties: { tg: { description: string; $ref: string; }; vp: { description: string; $ref: string; }; mp: { description: string; $ref: string; }; ma: { description: string; $ref: string; }; dn: { description: string; $ref: string; }; sd: { description: string; $ref: string; }; dt: { description: string; type: string; }; co: { description: string; $ref: string; }; is: { description: string; $ref: string; }; ci: { description: string; $ref: string; }; }; }; test_entry: { description: string; required: string[]; type: string; properties: { tg: { $ref: string; }; tt: { description: string; $ref: string; }; nm: { description: string; type: string; maxLength: number; }; ma: { description: string; $ref: string; }; sc: { description: string; type: string; }; tr: { description: string; $ref: string; }; tc: { description: string; type: string; maxLength: number; }; co: { description: string; $ref: string; }; is: { description: string; $ref: string; }; ci: { description: string; $ref: string; }; }; }; recovery_entry: { description: string; required: string[]; type: string; properties: { tg: { $ref: string; }; fr: { description: string; type: string; }; co: { description: string; $ref: string; }; is: { description: string; $ref: string; }; df: { description: string; type: string; }; du: { description: string; type: string; }; ci: { description: string; $ref: string; }; }; }; "disease-agent-targeted": { description: string; type: string; }; "vaccine-prophylaxis": { description: string; type: string; }; "vaccine-medicinal-product": { description: string; type: string; }; "vaccine-mah-manf": { description: string; type: string; }; country_vt: { description: string; type: string; pattern: string; }; "test-manf": { description: string; type: string; }; "test-result": { description: string; type: string; }; "test-type": { description: string; type: string; }; }; };