You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
959 B
47 lines
959 B
import { GiverReceiverInputInfo } from "../libs/util";
|
|
|
|
export interface GiverOutputInfo {
|
|
action: string;
|
|
giver?: GiverReceiverInputInfo;
|
|
description?: string;
|
|
amount?: number;
|
|
unitCode?: string;
|
|
}
|
|
|
|
export interface ClaimResult {
|
|
success: { claimId: string; handleId: string };
|
|
error: { code: string; message: string };
|
|
}
|
|
|
|
export interface VerifiableCredential {
|
|
exp?: number;
|
|
iat: number;
|
|
iss: string;
|
|
vc: {
|
|
"@context": string[];
|
|
type: string[];
|
|
credentialSubject: VerifiableCredentialSubject;
|
|
};
|
|
}
|
|
|
|
export interface VerifiableCredentialSubject {
|
|
"@context": string;
|
|
"@type": string;
|
|
[key: string]: unknown;
|
|
}
|
|
|
|
export interface WorldProperties {
|
|
startTime?: string;
|
|
endTime?: string;
|
|
}
|
|
|
|
export interface ProviderInfo {
|
|
/**
|
|
* Could be a DID or a handleId that identifies the provider
|
|
*/
|
|
identifier: string;
|
|
/**
|
|
* Indicates if the provider link has been confirmed
|
|
*/
|
|
linkConfirmed: boolean;
|
|
}
|
|
|