Changes: - Move deep link types from types/ to interfaces/ - Export baseUrlSchema for external use - Add trailing commas for better git diffs - Fix type inference for deepLinkSchemas - Add deepLinks export to interfaces/index.ts - Remove duplicate SuccessResult interface - Update import paths in services/deepLinks.ts This improves code organization by centralizing interface definitions and fixing type inference issues.
37 lines
708 B
TypeScript
37 lines
708 B
TypeScript
// 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;
|
|
}
|