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.
36 lines
708 B
36 lines
708 B
// similar to VerifiableCredentialSubject... maybe rename this
|
|
export interface GenericVerifiableCredential {
|
|
"@context"?: string;
|
|
"@type": string;
|
|
[key: string]: unknown;
|
|
}
|
|
|
|
export interface GenericCredWrapper<T extends GenericVerifiableCredential> {
|
|
claim: T;
|
|
claimType?: string;
|
|
handleId: string;
|
|
id: string;
|
|
issuedAt: string;
|
|
issuer: string;
|
|
publicUrls?: Record<string, string>;
|
|
}
|
|
|
|
export interface ResultWithType {
|
|
type: string;
|
|
}
|
|
|
|
export interface ErrorResponse {
|
|
error?: {
|
|
message?: string;
|
|
};
|
|
}
|
|
|
|
export interface InternalError {
|
|
error: string;
|
|
userMessage?: string;
|
|
}
|
|
|
|
export interface ErrorResult extends ResultWithType {
|
|
type: "error";
|
|
error: InternalError;
|
|
}
|
|
|