// similar to VerifiableCredentialSubject... maybe rename this export interface GenericVerifiableCredential { "@context"?: string; "@type": string; [key: string]: unknown; } export interface GenericCredWrapper { claim: T; claimType?: string; handleId: string; id: string; issuedAt: string; issuer: string; publicUrls?: Record; } export interface ErrorResponse { error?: { message?: string; }; } export interface InternalError { error: string; userMessage?: string; } export interface KeyMeta { did: string; publicKeyHex: string; derivationPath?: string; passkeyCredIdHex?: string; // The Webauthn credential ID in hex, if this is from a passkey } export interface KeyMetaMaybeWithPrivate extends KeyMeta { mnemonic?: string; // 12 or 24 words encoding the seed identity?: string; // Stringified IIdentifier object from Veramo } export interface KeyMetaWithPrivate extends KeyMeta { mnemonic: string; // 12 or 24 words encoding the seed identity: string; // Stringified IIdentifier object from Veramo } export interface QuantitativeValue extends GenericVerifiableCredential { "@type": "QuantitativeValue"; "@context"?: string; amountOfThisGood: number; unitCode: string; } export interface AxiosErrorResponse { message?: string; response?: { data?: { error?: { message?: string; }; [key: string]: unknown; }; status?: number; config?: unknown; }; config?: unknown; [key: string]: unknown; } export interface UserInfo { did: string; name: string; publicEncKey: string; registered: boolean; profileImageUrl?: string; nextPublicEncKeyHash?: string; } export interface CreateAndSubmitClaimResult { success: boolean; error?: string; handleId?: string; } export interface Agent { identifier?: string; did?: string; } export interface ClaimObject { "@type": string; "@context"?: string; [key: string]: unknown; } export interface VerifiableCredentialClaim { "@context"?: string; "@type": string; type: string[]; credentialSubject: ClaimObject; [key: string]: unknown; }