-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
types.ts
39 lines (35 loc) · 601 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export interface PasteConfig {
language?: string;
encrypted?: boolean;
expiresAfter?: number;
burnAfterRead?: boolean;
}
export interface Paste {
content: string;
config?: PasteConfig;
passwordProtected?: boolean;
initVector?: string;
}
export interface PastePatch {
key: string;
content: string;
encrypted?: boolean;
initVector?: string;
}
export interface PasteCreateResponse {
success: boolean;
data?: {
key: string;
};
error?: {
message: string;
code: number;
};
}
export interface PastePatchResponse {
success: boolean;
data?: {
key: string;
};
error?: string;
}