your personal website on atproto - mirror
blento.app
1import type { Blob } from '@atcute/lexicons';
2import type { AppBskyActorDefs } from '@atcute/bluesky';
3
4export type Item = {
5 id: string;
6
7 w: number;
8 h: number;
9 x: number;
10 y: number;
11
12 mobileW: number;
13 mobileH: number;
14 mobileX: number;
15 mobileY: number;
16
17 cardType: string;
18
19 color?: string;
20
21 cardData: any;
22
23 updatedAt?: string;
24
25 version?: number;
26
27 page?: string;
28};
29
30export type WebsiteData = {
31 page: string;
32 did: string;
33 handle: string;
34
35 cards: Item[];
36 publication:
37 | {
38 url?: string;
39 name?: string;
40 description?: string;
41 icon?: Blob;
42 preferences?: {
43 /**
44 * @deprecated
45 *
46 * use hideProfileSection instead
47 */
48 hideProfile?: boolean;
49
50 // use this instead
51 hideProfileSection?: boolean;
52 };
53 }
54 | undefined;
55 profile: AppBskyActorDefs.ProfileViewDetailed;
56
57 additionalData: Record<string, unknown>;
58 updatedAt: number;
59 version?: number;
60};
61
62export type UserCache = {
63 get: (key: string) => string;
64 put: (key: string, value: string) => void;
65};