forked from jsnbuchanan/crowd-funder-for-time-pwa
WIP: BROKEN FOR ELECTRON: Fixes in progress
This commit is contained in:
@@ -43,14 +43,14 @@ export interface KeyMeta {
|
||||
derivationPath: string;
|
||||
registered?: boolean;
|
||||
profileImageUrl?: string;
|
||||
identity?: string; // Stringified IIdentifier object from Veramo
|
||||
passkeyCredIdHex?: string; // The Webauthn credential ID in hex, if this is from a passkey
|
||||
identity?: string; // Stringified IIdentifier object from Veramo
|
||||
passkeyCredIdHex?: string; // The Webauthn credential ID in hex, if this is from a passkey
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface QuantitativeValue extends GenericVerifiableCredential {
|
||||
'@type': 'QuantitativeValue';
|
||||
'@context': string | string[];
|
||||
"@type": "QuantitativeValue";
|
||||
"@context": string | string[];
|
||||
amountOfThisGood: number;
|
||||
unitCode: string;
|
||||
[key: string]: unknown;
|
||||
@@ -101,10 +101,10 @@ export interface Agent {
|
||||
}
|
||||
|
||||
export interface ClaimObject {
|
||||
'@type': string;
|
||||
'@context'?: string | string[];
|
||||
"@type": string;
|
||||
"@context"?: string | string[];
|
||||
fulfills?: Array<{
|
||||
'@type': string;
|
||||
"@type": string;
|
||||
identifier?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
@@ -119,16 +119,16 @@ export interface ClaimObject {
|
||||
}
|
||||
|
||||
export interface VerifiableCredentialClaim {
|
||||
'@context': string | string[];
|
||||
'@type': string;
|
||||
"@context": string | string[];
|
||||
"@type": string;
|
||||
type: string[];
|
||||
credentialSubject: ClaimObject;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface GiveVerifiableCredential extends GenericVerifiableCredential {
|
||||
'@type': 'GiveAction';
|
||||
'@context': string | string[];
|
||||
"@type": "GiveAction";
|
||||
"@context": string | string[];
|
||||
object?: GenericVerifiableCredential;
|
||||
agent?: Agent;
|
||||
participant?: {
|
||||
@@ -136,7 +136,7 @@ export interface GiveVerifiableCredential extends GenericVerifiableCredential {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
fulfills?: Array<{
|
||||
'@type': string;
|
||||
"@type": string;
|
||||
identifier?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
@@ -144,8 +144,8 @@ export interface GiveVerifiableCredential extends GenericVerifiableCredential {
|
||||
}
|
||||
|
||||
export interface OfferVerifiableCredential extends GenericVerifiableCredential {
|
||||
'@type': 'OfferAction';
|
||||
'@context': string | string[];
|
||||
"@type": "OfferAction";
|
||||
"@context": string | string[];
|
||||
object?: GenericVerifiableCredential;
|
||||
agent?: Agent;
|
||||
participant?: {
|
||||
@@ -155,7 +155,7 @@ export interface OfferVerifiableCredential extends GenericVerifiableCredential {
|
||||
itemOffered?: {
|
||||
description?: string;
|
||||
isPartOf?: {
|
||||
'@type': string;
|
||||
"@type": string;
|
||||
identifier: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
@@ -164,9 +164,10 @@ export interface OfferVerifiableCredential extends GenericVerifiableCredential {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface RegisterVerifiableCredential extends GenericVerifiableCredential {
|
||||
'@type': 'RegisterAction';
|
||||
'@context': string | string[];
|
||||
export interface RegisterVerifiableCredential
|
||||
extends GenericVerifiableCredential {
|
||||
"@type": "RegisterAction";
|
||||
"@context": string | string[];
|
||||
agent: {
|
||||
identifier: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user