UNPKG

@sphereon/ssi-types

Version:

SSI Common Types

28 lines 1.96 kB
import { MdocDeviceResponse, MdocDocument, MdocOid4vpIssuerSigned, MdocOid4vpMdocVpToken, WrappedMdocCredential, WrappedMdocPresentation } from './mso_mdoc'; import { SdJwtDecodedVerifiableCredential, WrappedSdJwtVerifiableCredential, WrappedSdJwtVerifiablePresentation } from './sd-jwt-vc'; import { JwtDecodedVerifiableCredential, JwtDecodedVerifiablePresentation, W3CVerifiableCredential, W3CVerifiablePresentation, WrappedW3CVerifiableCredential, WrappedW3CVerifiablePresentation } from './w3c-vc'; export type WrappedVerifiableCredential = WrappedW3CVerifiableCredential | WrappedSdJwtVerifiableCredential | WrappedMdocCredential; export type WrappedVerifiablePresentation = WrappedW3CVerifiablePresentation | WrappedSdJwtVerifiablePresentation | WrappedMdocPresentation; export declare enum OriginalType { JSONLD = "json-ld", JWT_ENCODED = "jwt-encoded", JWT_DECODED = "jwt-decoded", SD_JWT_VC_ENCODED = "sd-jwt-vc-encoded", SD_JWT_VC_DECODED = "sd-jwt-vc-decoded", MSO_MDOC_ENCODED = "mso_mdoc-encoded", MSO_MDOC_DECODED = "mso_mdoc-decoded" } export type CredentialFormat = 'jwt_vc' | 'ldp_vc' | 'vc+sd-jwt' | 'jwt' | 'ldp' | 'mso_mdoc' | string; export type PresentationFormat = 'jwt_vp' | 'ldp_vp' | 'vc+sd-jwt' | 'jwt' | 'ldp' | 'mso_mdoc' | string; export type ClaimFormat = CredentialFormat | PresentationFormat; export type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential | SdJwtDecodedVerifiableCredential | MdocOid4vpIssuerSigned | MdocDocument; export type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation | SdJwtDecodedVerifiableCredential | MdocOid4vpMdocVpToken | MdocDeviceResponse; export type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential; export declare const enum DocumentFormat { JWT = 0, JSONLD = 1, SD_JWT_VC = 2, EIP712 = 3, MSO_MDOC = 4 } //# sourceMappingURL=vc.d.ts.map