//#region src/models/StatusListCredential.d.ts /** * StatusList2021 Credential Types * * Types for managing credential status using StatusList2021 specification. * Supports both revocation and suspension purposes. * * @see https://www.w3.org/TR/vc-status-list/ */ /** * Status purposes supported by StatusList2021 */ type StatusPurpose = 'revocation' | 'suspension'; /** * StatusList2021 credential subject */ interface StatusListCredentialSubject { /** URI identifying this status list */ id: string; /** Must be 'StatusList2021' */ type: 'StatusList2021'; /** Purpose of the status list */ statusPurpose: StatusPurpose; /** GZIP-compressed, base64url-encoded bitstring */ encodedList: string; } /** * StatusList2021Entry - added to credentials to indicate their status */ interface StatusListEntry { /** URI for this status entry */ id: string; /** Must be 'StatusList2021Entry' */ type: 'StatusList2021Entry'; /** Purpose (revocation or suspension) */ statusPurpose: StatusPurpose; /** Index in the status list bitstring */ statusListIndex: string; /** URL to the status list credential */ statusListCredential: string; } /** * Full StatusList2021Credential structure (unsigned) */ interface StatusListCredential { '@context': string[]; type: ['VerifiableCredential', 'StatusList2021Credential']; id: string; issuer: string | { id: string; [key: string]: unknown; }; validFrom: string; credentialSubject: StatusListCredentialSubject; } /** * Input for creating a new status list */ interface CreateStatusListInput { /** Unique identifier for this status list */ listId: string; /** Purpose of the status list */ purpose: StatusPurpose; /** Capacity in bits (default: 131072 = 16KB bitstring) */ capacity?: number; /** DID of the issuer */ issuerDid: string; /** Base URL where the status list will be hosted */ baseUrl: string; } /** * Default capacity for status lists (16KB = 131072 bits) */ declare const DEFAULT_STATUS_LIST_CAPACITY = 131072; /** * StatusList2021 context URL */ declare const STATUS_LIST_2021_CONTEXT = "https://w3id.org/vc/status-list/2021/v1"; /** * Build the contexts array for a StatusList2021Credential */ declare function buildStatusListContexts(): string[]; //#endregion export { CreateStatusListInput, DEFAULT_STATUS_LIST_CAPACITY, STATUS_LIST_2021_CONTEXT, StatusListCredential, StatusListCredentialSubject, StatusListEntry, StatusPurpose, buildStatusListContexts }; //# sourceMappingURL=StatusListCredential.d.mts.map