@sphereon/ssi-sdk.data-store
Version:
40 lines (37 loc) • 1.13 kB
text/typescript
import { CredentialCorrelationType, CredentialDocumentFormat, CredentialRole, CredentialStateType, DocumentType, RegulationType } from './enums'
/**
* DigitalCredential
*
* @public
*/
export type DigitalCredential = {
id: string
parentId?: string
documentType: DocumentType
documentFormat: CredentialDocumentFormat
credentialRole: CredentialRole
regulationType: RegulationType
rawDocument: string
uniformDocument: string
credentialId?: string
hash: string
kmsKeyRef?: string
identifierMethod?: string
issuerCorrelationType: CredentialCorrelationType
subjectCorrelationType?: CredentialCorrelationType
rpCorrelationType?: CredentialCorrelationType
isIssuerSigned?: boolean
issuerCorrelationId: string
subjectCorrelationId?: string
rpCorrelationId?: string
verifiedState?: CredentialStateType
tenantId?: string
createdAt: Date
presentedAt?: Date
lastUpdatedAt: Date
validUntil?: Date
validFrom?: Date
verifiedAt?: Date
revokedAt?: Date
}
export type NonPersistedDigitalCredential = Omit<DigitalCredential, 'id' | 'regulationType'> & { regulationType?: RegulationType }