@llun/activities.schema 0.2.34 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +22 -0
- package/.yarn/install-state.gz +0 -0
- package/dist/cjs/announce.js +1 -1
- package/dist/cjs/mastodon/account/field.js +4 -9
- package/dist/cjs/mastodon/account/source.js +4 -12
- package/dist/cjs/mastodon/account.js +27 -66
- package/dist/cjs/mastodon/customEmoji.js +6 -15
- package/dist/cjs/mastodon/filter/index.js +4 -7
- package/dist/cjs/mastodon/filter/keyword.js +3 -5
- package/dist/cjs/mastodon/filter/status.js +2 -4
- package/dist/cjs/mastodon/mediaAttachment/base.js +10 -18
- package/dist/cjs/mastodon/mediaAttachment/gifv.js +2 -6
- package/dist/cjs/mastodon/mediaAttachment/video.js +2 -6
- package/dist/cjs/mastodon/poll/index.js +9 -11
- package/dist/cjs/mastodon/poll/option.js +3 -4
- package/dist/cjs/mastodon/previewCard.js +15 -28
- package/dist/cjs/mastodon/status/application.js +3 -6
- package/dist/cjs/mastodon/status/base.js +31 -54
- package/dist/cjs/mastodon/status/mention.js +4 -8
- package/dist/cjs/mastodon/status/tag.js +2 -6
- package/dist/cjs/note/baseContent.js +11 -12
- package/dist/cjs/question.js +1 -1
- package/dist/esm/announce.js +1 -1
- package/dist/esm/mastodon/account/field.js +4 -9
- package/dist/esm/mastodon/account/source.js +4 -12
- package/dist/esm/mastodon/account.js +27 -66
- package/dist/esm/mastodon/customEmoji.js +6 -15
- package/dist/esm/mastodon/filter/index.js +4 -7
- package/dist/esm/mastodon/filter/keyword.js +3 -5
- package/dist/esm/mastodon/filter/status.js +2 -4
- package/dist/esm/mastodon/mediaAttachment/base.js +10 -18
- package/dist/esm/mastodon/mediaAttachment/gifv.js +2 -6
- package/dist/esm/mastodon/mediaAttachment/video.js +2 -6
- package/dist/esm/mastodon/poll/index.js +9 -11
- package/dist/esm/mastodon/poll/option.js +3 -4
- package/dist/esm/mastodon/previewCard.js +15 -28
- package/dist/esm/mastodon/status/application.js +3 -6
- package/dist/esm/mastodon/status/base.js +31 -54
- package/dist/esm/mastodon/status/mention.js +4 -8
- package/dist/esm/mastodon/status/tag.js +2 -6
- package/dist/esm/note/baseContent.js +11 -12
- package/dist/esm/question.js +1 -1
- package/dist/types/accept.d.ts +2 -32
- package/dist/types/actor.d.ts +18 -288
- package/dist/types/announce.d.ts +3 -19
- package/dist/types/collection.d.ts +11 -87
- package/dist/types/follow.d.ts +1 -11
- package/dist/types/image.d.ts +1 -9
- package/dist/types/like.d.ts +27 -576
- package/dist/types/mastodon/account/field.d.ts +1 -9
- package/dist/types/mastodon/account/relationship.d.ts +2 -34
- package/dist/types/mastodon/account/source.d.ts +8 -33
- package/dist/types/mastodon/account.d.ts +22 -397
- package/dist/types/mastodon/customEmoji.d.ts +1 -13
- package/dist/types/mastodon/filter/index.d.ts +14 -49
- package/dist/types/mastodon/filter/keyword.d.ts +1 -9
- package/dist/types/mastodon/filter/status.d.ts +1 -7
- package/dist/types/mastodon/filterResult.d.ts +17 -90
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -68
- package/dist/types/mastodon/mediaAttachment/base.d.ts +1 -15
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +4 -129
- package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -118
- package/dist/types/mastodon/mediaAttachment/index.d.ts +35 -949
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +1 -18
- package/dist/types/mastodon/mediaAttachment/video.d.ts +4 -141
- package/dist/types/mastodon/poll/index.d.ts +4 -62
- package/dist/types/mastodon/poll/option.d.ts +1 -7
- package/dist/types/mastodon/previewCard.d.ts +7 -32
- package/dist/types/mastodon/status/application.d.ts +1 -7
- package/dist/types/mastodon/status/base.d.ts +79 -1722
- package/dist/types/mastodon/status/index.d.ts +158 -4073
- package/dist/types/mastodon/status/mention.d.ts +1 -11
- package/dist/types/mastodon/status/tag.d.ts +1 -7
- package/dist/types/mastodon/visibility.d.ts +6 -1
- package/dist/types/note/attachment.d.ts +3 -29
- package/dist/types/note/baseContent.d.ts +25 -379
- package/dist/types/note/document.d.ts +1 -19
- package/dist/types/note/emoji.d.ts +2 -28
- package/dist/types/note/hashtag.d.ts +1 -9
- package/dist/types/note/mention.d.ts +1 -9
- package/dist/types/note/propertyValue.d.ts +1 -9
- package/dist/types/note/tag.d.ts +5 -47
- package/dist/types/note.d.ts +25 -382
- package/dist/types/question/note.d.ts +2 -22
- package/dist/types/question.d.ts +27 -422
- package/dist/types/reject.d.ts +2 -32
- package/dist/types/tombstone.d.ts +1 -7
- package/dist/types/undo.d.ts +30 -801
- package/package.json +2 -2
- package/src/announce.ts +1 -1
- package/src/mastodon/account/field.ts +6 -10
- package/src/mastodon/account/source.ts +4 -12
- package/src/mastodon/account.ts +71 -78
- package/src/mastodon/customEmoji.ts +8 -16
- package/src/mastodon/filter/index.ts +6 -8
- package/src/mastodon/filter/keyword.ts +5 -6
- package/src/mastodon/filter/status.ts +2 -4
- package/src/mastodon/mediaAttachment/base.ts +16 -21
- package/src/mastodon/mediaAttachment/gifv.ts +2 -6
- package/src/mastodon/mediaAttachment/video.ts +2 -6
- package/src/mastodon/poll/index.ts +13 -13
- package/src/mastodon/poll/option.ts +5 -5
- package/src/mastodon/previewCard.ts +17 -29
- package/src/mastodon/status/application.ts +5 -7
- package/src/mastodon/status/base.ts +53 -65
- package/src/mastodon/status/mention.ts +6 -9
- package/src/mastodon/status/tag.ts +2 -6
- package/src/note/baseContent.ts +13 -13
- package/src/question.ts +1 -1
|
@@ -8,7 +8,7 @@ export declare const Relationship: z.ZodObject<{
|
|
|
8
8
|
following: z.ZodBoolean;
|
|
9
9
|
showing_reblogs: z.ZodBoolean;
|
|
10
10
|
notifying: z.ZodBoolean;
|
|
11
|
-
languages: z.ZodArray<z.ZodString
|
|
11
|
+
languages: z.ZodArray<z.ZodString>;
|
|
12
12
|
followed_by: z.ZodBoolean;
|
|
13
13
|
blocking: z.ZodBoolean;
|
|
14
14
|
blocked_by: z.ZodBoolean;
|
|
@@ -19,37 +19,5 @@ export declare const Relationship: z.ZodObject<{
|
|
|
19
19
|
domain_blocking: z.ZodBoolean;
|
|
20
20
|
endorsed: z.ZodBoolean;
|
|
21
21
|
note: z.ZodString;
|
|
22
|
-
},
|
|
23
|
-
id: string;
|
|
24
|
-
following: boolean;
|
|
25
|
-
note: string;
|
|
26
|
-
showing_reblogs: boolean;
|
|
27
|
-
notifying: boolean;
|
|
28
|
-
languages: string[];
|
|
29
|
-
followed_by: boolean;
|
|
30
|
-
blocking: boolean;
|
|
31
|
-
blocked_by: boolean;
|
|
32
|
-
muting: boolean;
|
|
33
|
-
muting_notifications: boolean;
|
|
34
|
-
requested: boolean;
|
|
35
|
-
requested_by: boolean;
|
|
36
|
-
domain_blocking: boolean;
|
|
37
|
-
endorsed: boolean;
|
|
38
|
-
}, {
|
|
39
|
-
id: string;
|
|
40
|
-
following: boolean;
|
|
41
|
-
note: string;
|
|
42
|
-
showing_reblogs: boolean;
|
|
43
|
-
notifying: boolean;
|
|
44
|
-
languages: string[];
|
|
45
|
-
followed_by: boolean;
|
|
46
|
-
blocking: boolean;
|
|
47
|
-
blocked_by: boolean;
|
|
48
|
-
muting: boolean;
|
|
49
|
-
muting_notifications: boolean;
|
|
50
|
-
requested: boolean;
|
|
51
|
-
requested_by: boolean;
|
|
52
|
-
domain_blocking: boolean;
|
|
53
|
-
endorsed: boolean;
|
|
54
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
55
23
|
export type Relationship = z.infer<typeof Relationship>;
|
|
@@ -5,40 +5,15 @@ export declare const Source: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
value: z.ZodString;
|
|
7
7
|
verified_at: z.ZodNullable<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
verified_at: string | null;
|
|
16
|
-
}>, "many">;
|
|
17
|
-
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
privacy: z.ZodEnum<{
|
|
10
|
+
public: "public";
|
|
11
|
+
unlist: "unlist";
|
|
12
|
+
private: "private";
|
|
13
|
+
direct: "direct";
|
|
14
|
+
}>;
|
|
18
15
|
sensitive: z.ZodBoolean;
|
|
19
16
|
language: z.ZodString;
|
|
20
17
|
follow_requests_count: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
note: string;
|
|
23
|
-
fields: {
|
|
24
|
-
value: string;
|
|
25
|
-
name: string;
|
|
26
|
-
verified_at: string | null;
|
|
27
|
-
}[];
|
|
28
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
29
|
-
sensitive: boolean;
|
|
30
|
-
language: string;
|
|
31
|
-
follow_requests_count: number;
|
|
32
|
-
}, {
|
|
33
|
-
note: string;
|
|
34
|
-
fields: {
|
|
35
|
-
value: string;
|
|
36
|
-
name: string;
|
|
37
|
-
verified_at: string | null;
|
|
38
|
-
}[];
|
|
39
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
40
|
-
sensitive: boolean;
|
|
41
|
-
language: string;
|
|
42
|
-
follow_requests_count: number;
|
|
43
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
44
19
|
export type Source = z.infer<typeof Source>;
|
|
@@ -17,74 +17,29 @@ export declare const Account: z.ZodObject<{
|
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
value: z.ZodString;
|
|
19
19
|
verified_at: z.ZodNullable<z.ZodString>;
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
verified_at: string | null;
|
|
28
|
-
}>, "many">;
|
|
29
|
-
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
privacy: z.ZodEnum<{
|
|
22
|
+
public: "public";
|
|
23
|
+
unlist: "unlist";
|
|
24
|
+
private: "private";
|
|
25
|
+
direct: "direct";
|
|
26
|
+
}>;
|
|
30
27
|
sensitive: z.ZodBoolean;
|
|
31
28
|
language: z.ZodString;
|
|
32
29
|
follow_requests_count: z.ZodNumber;
|
|
33
|
-
},
|
|
34
|
-
note: string;
|
|
35
|
-
fields: {
|
|
36
|
-
value: string;
|
|
37
|
-
name: string;
|
|
38
|
-
verified_at: string | null;
|
|
39
|
-
}[];
|
|
40
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
41
|
-
sensitive: boolean;
|
|
42
|
-
language: string;
|
|
43
|
-
follow_requests_count: number;
|
|
44
|
-
}, {
|
|
45
|
-
note: string;
|
|
46
|
-
fields: {
|
|
47
|
-
value: string;
|
|
48
|
-
name: string;
|
|
49
|
-
verified_at: string | null;
|
|
50
|
-
}[];
|
|
51
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
52
|
-
sensitive: boolean;
|
|
53
|
-
language: string;
|
|
54
|
-
follow_requests_count: number;
|
|
55
|
-
}>;
|
|
30
|
+
}, z.core.$strip>;
|
|
56
31
|
fields: z.ZodArray<z.ZodObject<{
|
|
57
32
|
name: z.ZodString;
|
|
58
33
|
value: z.ZodString;
|
|
59
34
|
verified_at: z.ZodNullable<z.ZodString>;
|
|
60
|
-
},
|
|
61
|
-
value: string;
|
|
62
|
-
name: string;
|
|
63
|
-
verified_at: string | null;
|
|
64
|
-
}, {
|
|
65
|
-
value: string;
|
|
66
|
-
name: string;
|
|
67
|
-
verified_at: string | null;
|
|
68
|
-
}>, "many">;
|
|
35
|
+
}, z.core.$strip>>;
|
|
69
36
|
emojis: z.ZodArray<z.ZodObject<{
|
|
70
37
|
shortcode: z.ZodString;
|
|
71
38
|
static_url: z.ZodString;
|
|
72
39
|
url: z.ZodString;
|
|
73
40
|
visible_in_picker: z.ZodBoolean;
|
|
74
41
|
category: z.ZodNullable<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
url: string;
|
|
77
|
-
shortcode: string;
|
|
78
|
-
static_url: string;
|
|
79
|
-
visible_in_picker: boolean;
|
|
80
|
-
category: string | null;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
shortcode: string;
|
|
84
|
-
static_url: string;
|
|
85
|
-
visible_in_picker: boolean;
|
|
86
|
-
category: string | null;
|
|
87
|
-
}>, "many">;
|
|
42
|
+
}, z.core.$strip>>;
|
|
88
43
|
bot: z.ZodBoolean;
|
|
89
44
|
group: z.ZodBoolean;
|
|
90
45
|
discoverable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -96,7 +51,6 @@ export declare const Account: z.ZodObject<{
|
|
|
96
51
|
statuses_count: z.ZodNumber;
|
|
97
52
|
followers_count: z.ZodNumber;
|
|
98
53
|
following_count: z.ZodNumber;
|
|
99
|
-
} & {
|
|
100
54
|
moved: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
55
|
id: z.ZodString;
|
|
102
56
|
username: z.ZodString;
|
|
@@ -115,74 +69,29 @@ export declare const Account: z.ZodObject<{
|
|
|
115
69
|
name: z.ZodString;
|
|
116
70
|
value: z.ZodString;
|
|
117
71
|
verified_at: z.ZodNullable<z.ZodString>;
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
verified_at: string | null;
|
|
126
|
-
}>, "many">;
|
|
127
|
-
privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
privacy: z.ZodEnum<{
|
|
74
|
+
public: "public";
|
|
75
|
+
unlist: "unlist";
|
|
76
|
+
private: "private";
|
|
77
|
+
direct: "direct";
|
|
78
|
+
}>;
|
|
128
79
|
sensitive: z.ZodBoolean;
|
|
129
80
|
language: z.ZodString;
|
|
130
81
|
follow_requests_count: z.ZodNumber;
|
|
131
|
-
},
|
|
132
|
-
note: string;
|
|
133
|
-
fields: {
|
|
134
|
-
value: string;
|
|
135
|
-
name: string;
|
|
136
|
-
verified_at: string | null;
|
|
137
|
-
}[];
|
|
138
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
139
|
-
sensitive: boolean;
|
|
140
|
-
language: string;
|
|
141
|
-
follow_requests_count: number;
|
|
142
|
-
}, {
|
|
143
|
-
note: string;
|
|
144
|
-
fields: {
|
|
145
|
-
value: string;
|
|
146
|
-
name: string;
|
|
147
|
-
verified_at: string | null;
|
|
148
|
-
}[];
|
|
149
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
150
|
-
sensitive: boolean;
|
|
151
|
-
language: string;
|
|
152
|
-
follow_requests_count: number;
|
|
153
|
-
}>;
|
|
82
|
+
}, z.core.$strip>;
|
|
154
83
|
fields: z.ZodArray<z.ZodObject<{
|
|
155
84
|
name: z.ZodString;
|
|
156
85
|
value: z.ZodString;
|
|
157
86
|
verified_at: z.ZodNullable<z.ZodString>;
|
|
158
|
-
},
|
|
159
|
-
value: string;
|
|
160
|
-
name: string;
|
|
161
|
-
verified_at: string | null;
|
|
162
|
-
}, {
|
|
163
|
-
value: string;
|
|
164
|
-
name: string;
|
|
165
|
-
verified_at: string | null;
|
|
166
|
-
}>, "many">;
|
|
87
|
+
}, z.core.$strip>>;
|
|
167
88
|
emojis: z.ZodArray<z.ZodObject<{
|
|
168
89
|
shortcode: z.ZodString;
|
|
169
90
|
static_url: z.ZodString;
|
|
170
91
|
url: z.ZodString;
|
|
171
92
|
visible_in_picker: z.ZodBoolean;
|
|
172
93
|
category: z.ZodNullable<z.ZodString>;
|
|
173
|
-
},
|
|
174
|
-
url: string;
|
|
175
|
-
shortcode: string;
|
|
176
|
-
static_url: string;
|
|
177
|
-
visible_in_picker: boolean;
|
|
178
|
-
category: string | null;
|
|
179
|
-
}, {
|
|
180
|
-
url: string;
|
|
181
|
-
shortcode: string;
|
|
182
|
-
static_url: string;
|
|
183
|
-
visible_in_picker: boolean;
|
|
184
|
-
category: string | null;
|
|
185
|
-
}>, "many">;
|
|
94
|
+
}, z.core.$strip>>;
|
|
186
95
|
bot: z.ZodBoolean;
|
|
187
96
|
group: z.ZodBoolean;
|
|
188
97
|
discoverable: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -194,290 +103,6 @@ export declare const Account: z.ZodObject<{
|
|
|
194
103
|
statuses_count: z.ZodNumber;
|
|
195
104
|
followers_count: z.ZodNumber;
|
|
196
105
|
following_count: z.ZodNumber;
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
url: string;
|
|
200
|
-
note: string;
|
|
201
|
-
fields: {
|
|
202
|
-
value: string;
|
|
203
|
-
name: string;
|
|
204
|
-
verified_at: string | null;
|
|
205
|
-
}[];
|
|
206
|
-
username: string;
|
|
207
|
-
acct: string;
|
|
208
|
-
display_name: string;
|
|
209
|
-
avatar: string;
|
|
210
|
-
avatar_static: string;
|
|
211
|
-
header: string;
|
|
212
|
-
header_static: string;
|
|
213
|
-
locked: boolean;
|
|
214
|
-
source: {
|
|
215
|
-
note: string;
|
|
216
|
-
fields: {
|
|
217
|
-
value: string;
|
|
218
|
-
name: string;
|
|
219
|
-
verified_at: string | null;
|
|
220
|
-
}[];
|
|
221
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
222
|
-
sensitive: boolean;
|
|
223
|
-
language: string;
|
|
224
|
-
follow_requests_count: number;
|
|
225
|
-
};
|
|
226
|
-
emojis: {
|
|
227
|
-
url: string;
|
|
228
|
-
shortcode: string;
|
|
229
|
-
static_url: string;
|
|
230
|
-
visible_in_picker: boolean;
|
|
231
|
-
category: string | null;
|
|
232
|
-
}[];
|
|
233
|
-
bot: boolean;
|
|
234
|
-
group: boolean;
|
|
235
|
-
discoverable: boolean | null;
|
|
236
|
-
created_at: string;
|
|
237
|
-
last_status_at: string | null;
|
|
238
|
-
statuses_count: number;
|
|
239
|
-
followers_count: number;
|
|
240
|
-
following_count: number;
|
|
241
|
-
noindex?: boolean | null | undefined;
|
|
242
|
-
suspended?: boolean | undefined;
|
|
243
|
-
limited?: boolean | undefined;
|
|
244
|
-
}, {
|
|
245
|
-
id: string;
|
|
246
|
-
url: string;
|
|
247
|
-
note: string;
|
|
248
|
-
fields: {
|
|
249
|
-
value: string;
|
|
250
|
-
name: string;
|
|
251
|
-
verified_at: string | null;
|
|
252
|
-
}[];
|
|
253
|
-
username: string;
|
|
254
|
-
acct: string;
|
|
255
|
-
display_name: string;
|
|
256
|
-
avatar: string;
|
|
257
|
-
avatar_static: string;
|
|
258
|
-
header: string;
|
|
259
|
-
header_static: string;
|
|
260
|
-
locked: boolean;
|
|
261
|
-
source: {
|
|
262
|
-
note: string;
|
|
263
|
-
fields: {
|
|
264
|
-
value: string;
|
|
265
|
-
name: string;
|
|
266
|
-
verified_at: string | null;
|
|
267
|
-
}[];
|
|
268
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
269
|
-
sensitive: boolean;
|
|
270
|
-
language: string;
|
|
271
|
-
follow_requests_count: number;
|
|
272
|
-
};
|
|
273
|
-
emojis: {
|
|
274
|
-
url: string;
|
|
275
|
-
shortcode: string;
|
|
276
|
-
static_url: string;
|
|
277
|
-
visible_in_picker: boolean;
|
|
278
|
-
category: string | null;
|
|
279
|
-
}[];
|
|
280
|
-
bot: boolean;
|
|
281
|
-
group: boolean;
|
|
282
|
-
discoverable: boolean | null;
|
|
283
|
-
created_at: string;
|
|
284
|
-
last_status_at: string | null;
|
|
285
|
-
statuses_count: number;
|
|
286
|
-
followers_count: number;
|
|
287
|
-
following_count: number;
|
|
288
|
-
noindex?: boolean | null | undefined;
|
|
289
|
-
suspended?: boolean | undefined;
|
|
290
|
-
limited?: boolean | undefined;
|
|
291
|
-
}>>>;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
id: string;
|
|
294
|
-
url: string;
|
|
295
|
-
note: string;
|
|
296
|
-
fields: {
|
|
297
|
-
value: string;
|
|
298
|
-
name: string;
|
|
299
|
-
verified_at: string | null;
|
|
300
|
-
}[];
|
|
301
|
-
username: string;
|
|
302
|
-
acct: string;
|
|
303
|
-
display_name: string;
|
|
304
|
-
avatar: string;
|
|
305
|
-
avatar_static: string;
|
|
306
|
-
header: string;
|
|
307
|
-
header_static: string;
|
|
308
|
-
locked: boolean;
|
|
309
|
-
source: {
|
|
310
|
-
note: string;
|
|
311
|
-
fields: {
|
|
312
|
-
value: string;
|
|
313
|
-
name: string;
|
|
314
|
-
verified_at: string | null;
|
|
315
|
-
}[];
|
|
316
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
317
|
-
sensitive: boolean;
|
|
318
|
-
language: string;
|
|
319
|
-
follow_requests_count: number;
|
|
320
|
-
};
|
|
321
|
-
emojis: {
|
|
322
|
-
url: string;
|
|
323
|
-
shortcode: string;
|
|
324
|
-
static_url: string;
|
|
325
|
-
visible_in_picker: boolean;
|
|
326
|
-
category: string | null;
|
|
327
|
-
}[];
|
|
328
|
-
bot: boolean;
|
|
329
|
-
group: boolean;
|
|
330
|
-
discoverable: boolean | null;
|
|
331
|
-
created_at: string;
|
|
332
|
-
last_status_at: string | null;
|
|
333
|
-
statuses_count: number;
|
|
334
|
-
followers_count: number;
|
|
335
|
-
following_count: number;
|
|
336
|
-
noindex?: boolean | null | undefined;
|
|
337
|
-
suspended?: boolean | undefined;
|
|
338
|
-
limited?: boolean | undefined;
|
|
339
|
-
moved?: {
|
|
340
|
-
id: string;
|
|
341
|
-
url: string;
|
|
342
|
-
note: string;
|
|
343
|
-
fields: {
|
|
344
|
-
value: string;
|
|
345
|
-
name: string;
|
|
346
|
-
verified_at: string | null;
|
|
347
|
-
}[];
|
|
348
|
-
username: string;
|
|
349
|
-
acct: string;
|
|
350
|
-
display_name: string;
|
|
351
|
-
avatar: string;
|
|
352
|
-
avatar_static: string;
|
|
353
|
-
header: string;
|
|
354
|
-
header_static: string;
|
|
355
|
-
locked: boolean;
|
|
356
|
-
source: {
|
|
357
|
-
note: string;
|
|
358
|
-
fields: {
|
|
359
|
-
value: string;
|
|
360
|
-
name: string;
|
|
361
|
-
verified_at: string | null;
|
|
362
|
-
}[];
|
|
363
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
364
|
-
sensitive: boolean;
|
|
365
|
-
language: string;
|
|
366
|
-
follow_requests_count: number;
|
|
367
|
-
};
|
|
368
|
-
emojis: {
|
|
369
|
-
url: string;
|
|
370
|
-
shortcode: string;
|
|
371
|
-
static_url: string;
|
|
372
|
-
visible_in_picker: boolean;
|
|
373
|
-
category: string | null;
|
|
374
|
-
}[];
|
|
375
|
-
bot: boolean;
|
|
376
|
-
group: boolean;
|
|
377
|
-
discoverable: boolean | null;
|
|
378
|
-
created_at: string;
|
|
379
|
-
last_status_at: string | null;
|
|
380
|
-
statuses_count: number;
|
|
381
|
-
followers_count: number;
|
|
382
|
-
following_count: number;
|
|
383
|
-
noindex?: boolean | null | undefined;
|
|
384
|
-
suspended?: boolean | undefined;
|
|
385
|
-
limited?: boolean | undefined;
|
|
386
|
-
} | null | undefined;
|
|
387
|
-
}, {
|
|
388
|
-
id: string;
|
|
389
|
-
url: string;
|
|
390
|
-
note: string;
|
|
391
|
-
fields: {
|
|
392
|
-
value: string;
|
|
393
|
-
name: string;
|
|
394
|
-
verified_at: string | null;
|
|
395
|
-
}[];
|
|
396
|
-
username: string;
|
|
397
|
-
acct: string;
|
|
398
|
-
display_name: string;
|
|
399
|
-
avatar: string;
|
|
400
|
-
avatar_static: string;
|
|
401
|
-
header: string;
|
|
402
|
-
header_static: string;
|
|
403
|
-
locked: boolean;
|
|
404
|
-
source: {
|
|
405
|
-
note: string;
|
|
406
|
-
fields: {
|
|
407
|
-
value: string;
|
|
408
|
-
name: string;
|
|
409
|
-
verified_at: string | null;
|
|
410
|
-
}[];
|
|
411
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
412
|
-
sensitive: boolean;
|
|
413
|
-
language: string;
|
|
414
|
-
follow_requests_count: number;
|
|
415
|
-
};
|
|
416
|
-
emojis: {
|
|
417
|
-
url: string;
|
|
418
|
-
shortcode: string;
|
|
419
|
-
static_url: string;
|
|
420
|
-
visible_in_picker: boolean;
|
|
421
|
-
category: string | null;
|
|
422
|
-
}[];
|
|
423
|
-
bot: boolean;
|
|
424
|
-
group: boolean;
|
|
425
|
-
discoverable: boolean | null;
|
|
426
|
-
created_at: string;
|
|
427
|
-
last_status_at: string | null;
|
|
428
|
-
statuses_count: number;
|
|
429
|
-
followers_count: number;
|
|
430
|
-
following_count: number;
|
|
431
|
-
noindex?: boolean | null | undefined;
|
|
432
|
-
suspended?: boolean | undefined;
|
|
433
|
-
limited?: boolean | undefined;
|
|
434
|
-
moved?: {
|
|
435
|
-
id: string;
|
|
436
|
-
url: string;
|
|
437
|
-
note: string;
|
|
438
|
-
fields: {
|
|
439
|
-
value: string;
|
|
440
|
-
name: string;
|
|
441
|
-
verified_at: string | null;
|
|
442
|
-
}[];
|
|
443
|
-
username: string;
|
|
444
|
-
acct: string;
|
|
445
|
-
display_name: string;
|
|
446
|
-
avatar: string;
|
|
447
|
-
avatar_static: string;
|
|
448
|
-
header: string;
|
|
449
|
-
header_static: string;
|
|
450
|
-
locked: boolean;
|
|
451
|
-
source: {
|
|
452
|
-
note: string;
|
|
453
|
-
fields: {
|
|
454
|
-
value: string;
|
|
455
|
-
name: string;
|
|
456
|
-
verified_at: string | null;
|
|
457
|
-
}[];
|
|
458
|
-
privacy: "public" | "unlist" | "private" | "direct";
|
|
459
|
-
sensitive: boolean;
|
|
460
|
-
language: string;
|
|
461
|
-
follow_requests_count: number;
|
|
462
|
-
};
|
|
463
|
-
emojis: {
|
|
464
|
-
url: string;
|
|
465
|
-
shortcode: string;
|
|
466
|
-
static_url: string;
|
|
467
|
-
visible_in_picker: boolean;
|
|
468
|
-
category: string | null;
|
|
469
|
-
}[];
|
|
470
|
-
bot: boolean;
|
|
471
|
-
group: boolean;
|
|
472
|
-
discoverable: boolean | null;
|
|
473
|
-
created_at: string;
|
|
474
|
-
last_status_at: string | null;
|
|
475
|
-
statuses_count: number;
|
|
476
|
-
followers_count: number;
|
|
477
|
-
following_count: number;
|
|
478
|
-
noindex?: boolean | null | undefined;
|
|
479
|
-
suspended?: boolean | undefined;
|
|
480
|
-
limited?: boolean | undefined;
|
|
481
|
-
} | null | undefined;
|
|
482
|
-
}>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
}, z.core.$strip>;
|
|
483
108
|
export type Account = z.infer<typeof Account>;
|
|
@@ -5,17 +5,5 @@ export declare const CustomEmoji: z.ZodObject<{
|
|
|
5
5
|
url: z.ZodString;
|
|
6
6
|
visible_in_picker: z.ZodBoolean;
|
|
7
7
|
category: z.ZodNullable<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
url: string;
|
|
10
|
-
shortcode: string;
|
|
11
|
-
static_url: string;
|
|
12
|
-
visible_in_picker: boolean;
|
|
13
|
-
category: string | null;
|
|
14
|
-
}, {
|
|
15
|
-
url: string;
|
|
16
|
-
shortcode: string;
|
|
17
|
-
static_url: string;
|
|
18
|
-
visible_in_picker: boolean;
|
|
19
|
-
category: string | null;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export type CustomEmoji = z.infer<typeof CustomEmoji>;
|
|
@@ -2,61 +2,26 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const Filter: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
|
-
context: z.ZodArray<z.ZodEnum<
|
|
5
|
+
context: z.ZodArray<z.ZodEnum<{
|
|
6
|
+
public: "public";
|
|
7
|
+
home: "home";
|
|
8
|
+
notifications: "notifications";
|
|
9
|
+
thread: "thread";
|
|
10
|
+
account: "account";
|
|
11
|
+
}>>;
|
|
6
12
|
expires_at: z.ZodNullable<z.ZodString>;
|
|
7
|
-
filter_action: z.ZodEnum<
|
|
13
|
+
filter_action: z.ZodEnum<{
|
|
14
|
+
warn: "warn";
|
|
15
|
+
hide: "hide";
|
|
16
|
+
}>;
|
|
8
17
|
keywords: z.ZodArray<z.ZodObject<{
|
|
9
18
|
id: z.ZodString;
|
|
10
19
|
keyword: z.ZodString;
|
|
11
20
|
whole_word: z.ZodBoolean;
|
|
12
|
-
},
|
|
13
|
-
id: string;
|
|
14
|
-
keyword: string;
|
|
15
|
-
whole_word: boolean;
|
|
16
|
-
}, {
|
|
17
|
-
id: string;
|
|
18
|
-
keyword: string;
|
|
19
|
-
whole_word: boolean;
|
|
20
|
-
}>, "many">;
|
|
21
|
+
}, z.core.$strip>>;
|
|
21
22
|
statuses: z.ZodArray<z.ZodObject<{
|
|
22
23
|
id: z.ZodString;
|
|
23
24
|
status_id: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
status_id: string;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
|
-
status_id: string;
|
|
30
|
-
}>, "many">;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
id: string;
|
|
33
|
-
title: string;
|
|
34
|
-
context: ("public" | "home" | "notifications" | "thread" | "account")[];
|
|
35
|
-
expires_at: string | null;
|
|
36
|
-
filter_action: "warn" | "hide";
|
|
37
|
-
keywords: {
|
|
38
|
-
id: string;
|
|
39
|
-
keyword: string;
|
|
40
|
-
whole_word: boolean;
|
|
41
|
-
}[];
|
|
42
|
-
statuses: {
|
|
43
|
-
id: string;
|
|
44
|
-
status_id: string;
|
|
45
|
-
}[];
|
|
46
|
-
}, {
|
|
47
|
-
id: string;
|
|
48
|
-
title: string;
|
|
49
|
-
context: ("public" | "home" | "notifications" | "thread" | "account")[];
|
|
50
|
-
expires_at: string | null;
|
|
51
|
-
filter_action: "warn" | "hide";
|
|
52
|
-
keywords: {
|
|
53
|
-
id: string;
|
|
54
|
-
keyword: string;
|
|
55
|
-
whole_word: boolean;
|
|
56
|
-
}[];
|
|
57
|
-
statuses: {
|
|
58
|
-
id: string;
|
|
59
|
-
status_id: string;
|
|
60
|
-
}[];
|
|
61
|
-
}>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
62
27
|
export type Filter = z.infer<typeof Filter>;
|
|
@@ -3,13 +3,5 @@ export declare const FilterKeyword: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
keyword: z.ZodString;
|
|
5
5
|
whole_word: z.ZodBoolean;
|
|
6
|
-
},
|
|
7
|
-
id: string;
|
|
8
|
-
keyword: string;
|
|
9
|
-
whole_word: boolean;
|
|
10
|
-
}, {
|
|
11
|
-
id: string;
|
|
12
|
-
keyword: string;
|
|
13
|
-
whole_word: boolean;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type FilterKeyword = z.infer<typeof FilterKeyword>;
|
|
@@ -2,11 +2,5 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const FilterStatus: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
status_id: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
id: string;
|
|
7
|
-
status_id: string;
|
|
8
|
-
}, {
|
|
9
|
-
id: string;
|
|
10
|
-
status_id: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type FilterStatus = z.infer<typeof FilterStatus>;
|