Skip to main content

@triveria/wallet / Exports / CredentialPatchPayload

Interface: CredentialPatchPayload

A Credential container used to create credentials with metadata.

Indexable​

▪ [key: string]: any

Table of contents​

Properties​

Properties​

contexts​

• Optional contexts: any[]

Replaces the draft's contexts; the same rules apply as on create.

Defined in​

api.ts:488


credentialSchemaType​

• Optional credentialSchemaType: CredentialSchemaType

Defined in​

api.ts:499


credentialSubject​

• credentialSubject: CredentialSubject

Defined in​

api.ts:483


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​

api.ts:498


name​

• name: string

Defined in​

api.ts:484


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:494


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​

api.ts:503


validateSchema​

• Optional validateSchema: boolean

If true, the credential draft is checked against its schema. Defaults to true.

Defined in​

api.ts:507


vcdmDescription​

• Optional vcdmDescription: string

Defined in​

api.ts:490


vcdmName​

• Optional vcdmName: string

Defined in​

api.ts:489