@triveria/wallet / Exports / CredentialPatchPayload
Interface: CredentialPatchPayload
A Credential container used to create credentials with metadata.
Indexable
▪ [key: string]: any
Table of contents
Properties
- contexts
- credentialSchemaType
- credentialSubject
- issuerId
- name
- renderMethod
- validateJsonLd
- validateSchema
- vcdmDescription
- vcdmName
Properties
contexts
• Optional contexts: any[]
Replaces the draft's contexts; the same rules apply as on create.
Defined in
credentialSchemaType
• Optional credentialSchemaType: CredentialSchemaType
Defined in
credentialSubject
• credentialSubject: CredentialSubject
Defined in
issuerId
• Optional issuerId: string
ID of the credential issuer (CredentialIssuerDefinition.id, from the wallet configuration or the trust framework) that issues the draft. When set, the draft can only be queued for issuance by this issuer.
Defined in
name
• name: string
Defined in
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
validateJsonLd
• Optional validateJsonLd: boolean
If true, a VCDM 2.0 draft must define every property in its JSON-LD context, now and when it is issued. Unset keeps what the draft was created with.
Defined in
validateSchema
• Optional validateSchema: boolean
If true, the credential draft is checked against its schema. Defaults to true.
Defined in
vcdmDescription
• Optional vcdmDescription: string
Defined in
vcdmName
• Optional vcdmName: string