happy-server/sources/types.ts
2025-09-16 22:35:09 -07:00

29 lines
641 B
TypeScript

import { GitHubProfile } from "./app/api/types";
import { ImageRef } from "./storage/files";
export type AccountProfile = {
firstName: string | null;
lastName: string | null;
avatar: ImageRef | null;
github: GitHubProfile | null;
settings: {
value: string | null;
version: number;
} | null;
connectedServices: string[];
}
export type ArtifactInfo = {
id: string;
header: string;
headerVersion: number;
dataEncryptionKey: string;
seq: number;
createdAt: number;
updatedAt: number;
}
export type Artifact = ArtifactInfo & {
body: string;
bodyVersion: number;
}