|
|
@ -1,6 +1,6 @@ |
|
|
|
// similar to VerifiableCredentialSubject... maybe rename this
|
|
|
|
export interface GenericVerifiableCredential { |
|
|
|
"@context": string | string[]; |
|
|
|
"@context"?: string; |
|
|
|
"@type": string; |
|
|
|
[key: string]: unknown; |
|
|
|
} |
|
|
@ -50,7 +50,7 @@ export interface KeyMeta { |
|
|
|
|
|
|
|
export interface QuantitativeValue extends GenericVerifiableCredential { |
|
|
|
"@type": "QuantitativeValue"; |
|
|
|
"@context": string | string[]; |
|
|
|
"@context"?: string; |
|
|
|
amountOfThisGood: number; |
|
|
|
unitCode: string; |
|
|
|
[key: string]: unknown; |
|
|
@ -102,7 +102,7 @@ export interface Agent { |
|
|
|
|
|
|
|
export interface ClaimObject { |
|
|
|
"@type": string; |
|
|
|
"@context"?: string | string[]; |
|
|
|
"@context"?: string; |
|
|
|
fulfills?: Array<{ |
|
|
|
"@type": string; |
|
|
|
identifier?: string; |
|
|
@ -119,7 +119,7 @@ export interface ClaimObject { |
|
|
|
} |
|
|
|
|
|
|
|
export interface VerifiableCredentialClaim { |
|
|
|
"@context": string | string[]; |
|
|
|
"@context"?: string; |
|
|
|
"@type": string; |
|
|
|
type: string[]; |
|
|
|
credentialSubject: ClaimObject; |
|
|
@ -128,7 +128,6 @@ export interface VerifiableCredentialClaim { |
|
|
|
|
|
|
|
export interface GiveVerifiableCredential extends GenericVerifiableCredential { |
|
|
|
"@type": "GiveAction"; |
|
|
|
"@context": string | string[]; |
|
|
|
object?: GenericVerifiableCredential; |
|
|
|
agent?: Agent; |
|
|
|
participant?: { |
|
|
@ -144,8 +143,7 @@ export interface GiveVerifiableCredential extends GenericVerifiableCredential { |
|
|
|
} |
|
|
|
|
|
|
|
export interface OfferVerifiableCredential extends GenericVerifiableCredential { |
|
|
|
"@type": "OfferAction"; |
|
|
|
"@context": string | string[]; |
|
|
|
"@type": "Offer"; |
|
|
|
object?: GenericVerifiableCredential; |
|
|
|
agent?: Agent; |
|
|
|
participant?: { |
|
|
@ -167,7 +165,6 @@ export interface OfferVerifiableCredential extends GenericVerifiableCredential { |
|
|
|
export interface RegisterVerifiableCredential |
|
|
|
extends GenericVerifiableCredential { |
|
|
|
"@type": "RegisterAction"; |
|
|
|
"@context": string | string[]; |
|
|
|
agent: { |
|
|
|
identifier: string; |
|
|
|
}; |
|
|
|