Skip to main content

@triveria/wallet / Exports / CredentialDraftMetadata

Interface: CredentialDraftMetadata

Accompanying information about the verifiable credential draft - schema, type, format etc.

Table of contents​

Properties​

Properties​

contexts​

• Optional contexts: any[]

Context URLs or inline context objects. When the first item is not a base VC context (https://www.w3.org/2018/credentials/v1 or https://www.w3.org/ns/credentials/v2), the base context of vcdmVersion is put in front of them.

Defined in​

api.ts:185


credentialSchema​

• Optional credentialSchema: string

Defined in​

api.ts:202


credentialSchemaType​

• Optional credentialSchemaType: CredentialSchemaType

Defined in​

api.ts:193


expirationDate​

• Optional expirationDate: string

Defined in​

api.ts:200


format​

• format: CredentialFormat

Defined in​

api.ts:201


id​

• id: string

When empty, a urn:uuid:<UUIDv7> is generated.

Defined in​

api.ts:197


name​

• name: string

Defined in​

api.ts:198


renderMethod​

• Optional renderMethod: { [key: string]: any; }[]

The credential's VCDM renderMethod entries (W3C VCDM only): UNTP RenderTemplate2024 (type, name, mediaQuery, template, url, mediaType text/html or text/plain, digestMultibase, nothing else, and a template or an https url with a digestMultibase) or W3C TemplateRenderMethod (renderSuite html, card or nfc, renderProperty JSON pointers, template a data: URL or an https URL, with a digestMultibase when remote). Other types are kept as given. Replaces the draft's render methods; an empty array removes them.

Defined in​

api.ts:192


type​

• type: string

Defined in​

api.ts:199


vcdmDescription​

• Optional vcdmDescription: string

Defined in​

api.ts:188


vcdmName​

• Optional vcdmName: string

Defined in​

api.ts:187


vcdmVersion​

• Optional vcdmVersion: VcdmVersion

Defined in​

api.ts:186