@f3liz/rescript-misskey-api 0.6.5 → 0.6.6
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/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +123 -123
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +307 -307
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +1 -1
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +29 -29
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +4 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +47 -47
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.mjs +145 -145
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +44 -44
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +31 -31
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +6 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +13 -13
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +11 -11
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +3 -3
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +8 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +14 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +247 -247
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +13 -13
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +51 -51
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +6 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +100 -100
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +360 -360
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +21 -21
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +1 -1
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +3 -3
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +23 -23
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +48 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +5 -5
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoComponentSchemas.mjs +122 -122
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +42 -42
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +39 -39
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +33 -33
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +85 -85
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +147 -147
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +2 -2
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +18 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +69 -69
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +12 -12
- package/package.json +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +123 -123
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +307 -307
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +1 -1
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +29 -29
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +4 -4
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +47 -47
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.res +145 -145
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +44 -44
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +31 -31
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +6 -6
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +13 -13
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +11 -11
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +3 -3
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +8 -8
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +14 -14
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +247 -247
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +13 -13
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +51 -51
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +6 -6
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +100 -100
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +359 -359
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +21 -21
- package/src/generated/misskey-io/api/MisskeyIoApp.res +1 -1
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +3 -3
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +23 -23
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +48 -48
- package/src/generated/misskey-io/api/MisskeyIoClips.res +5 -5
- package/src/generated/misskey-io/api/MisskeyIoComponentSchemas.res +122 -122
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +42 -42
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +39 -39
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +33 -33
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoLists.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +85 -85
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +147 -147
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +2 -2
- package/src/generated/misskey-io/api/MisskeyIoPages.res +18 -18
- package/src/generated/misskey-io/api/MisskeyIoRole.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +69 -69
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +12 -12
|
@@ -9,8 +9,8 @@ let postAdminAbuseReportNotificationRecipientCreateRequestSchema = S.object(s =>
|
|
|
9
9
|
isActive: s.f("isActive", S.bool),
|
|
10
10
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 255, undefined)),
|
|
11
11
|
method: s.f("method", S.string),
|
|
12
|
-
userId: s.
|
|
13
|
-
systemWebhookId: s.
|
|
12
|
+
userId: s.f("userId", S.option(S.string)),
|
|
13
|
+
systemWebhookId: s.f("systemWebhookId", S.option(S.string))
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
16
|
let postAdminAbuseReportNotificationRecipientCreateResponseSchema = KokonectLinkComponentSchemas.AbuseReportNotificationRecipient.schema;
|
|
@@ -36,8 +36,8 @@ let postAdminAbuseReportNotificationRecipientUpdateRequestSchema = S.object(s =>
|
|
|
36
36
|
isActive: s.f("isActive", S.bool),
|
|
37
37
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 255, undefined)),
|
|
38
38
|
method: s.f("method", S.string),
|
|
39
|
-
userId: s.
|
|
40
|
-
systemWebhookId: s.
|
|
39
|
+
userId: s.f("userId", S.option(S.string)),
|
|
40
|
+
systemWebhookId: s.f("systemWebhookId", S.option(S.string))
|
|
41
41
|
}));
|
|
42
42
|
|
|
43
43
|
let postAdminAbuseReportNotificationRecipientUpdateResponseSchema = KokonectLinkComponentSchemas.AbuseReportNotificationRecipient.schema;
|
|
@@ -48,14 +48,14 @@ function postAdminAbuseReportNotificationRecipientUpdate(body, fetch) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
let postAdminAbuseUserReportsRequestSchema = S.object(s => ({
|
|
51
|
-
limit: s.
|
|
52
|
-
sinceId: s.
|
|
53
|
-
untilId: s.
|
|
54
|
-
sinceDate: s.
|
|
55
|
-
untilDate: s.
|
|
56
|
-
state: s.
|
|
57
|
-
reporterOrigin: s.
|
|
58
|
-
targetUserOrigin: s.
|
|
51
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
52
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
53
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
54
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
55
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
56
|
+
state: s.f("state", S.option(S.string)),
|
|
57
|
+
reporterOrigin: s.f("reporterOrigin", S.option(S.string)),
|
|
58
|
+
targetUserOrigin: s.f("targetUserOrigin", S.option(S.string))
|
|
59
59
|
}));
|
|
60
60
|
|
|
61
61
|
let postAdminAbuseUserReportsResponse_1Schema = S.object(s => ({
|
|
@@ -84,7 +84,7 @@ function postAdminAbuseUserReports(body, fetch) {
|
|
|
84
84
|
let postAdminAccountsCreateRequestSchema = S.object(s => ({
|
|
85
85
|
username: s.f("username", S.pattern(S.string, /^\w{1,20}$/, undefined)),
|
|
86
86
|
password: s.f("password", S.min(S.string, 1, undefined)),
|
|
87
|
-
setupPassword: s.
|
|
87
|
+
setupPassword: s.f("setupPassword", S.option(S.string))
|
|
88
88
|
}));
|
|
89
89
|
|
|
90
90
|
let postAdminAccountsCreateResponseSchema = S.object(s => ({
|
|
@@ -126,7 +126,7 @@ let postAdminAdCreateRequestSchema = S.object(s => ({
|
|
|
126
126
|
startsAt: s.f("startsAt", S.int),
|
|
127
127
|
imageUrl: s.f("imageUrl", S.min(S.string, 1, undefined)),
|
|
128
128
|
dayOfWeek: s.f("dayOfWeek", S.int),
|
|
129
|
-
isSensitive: s.
|
|
129
|
+
isSensitive: s.f("isSensitive", S.option(S.bool))
|
|
130
130
|
}));
|
|
131
131
|
|
|
132
132
|
let postAdminAdCreateResponseSchema = KokonectLinkComponentSchemas.Ad.schema;
|
|
@@ -137,12 +137,12 @@ function postAdminAdCreate(body, fetch) {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
let postAdminAdListRequestSchema = S.object(s => ({
|
|
140
|
-
limit: s.
|
|
141
|
-
sinceId: s.
|
|
142
|
-
untilId: s.
|
|
143
|
-
sinceDate: s.
|
|
144
|
-
untilDate: s.
|
|
145
|
-
publishing: s.
|
|
140
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
141
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
142
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
143
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
144
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
145
|
+
publishing: s.f("publishing", S.option(S.bool))
|
|
146
146
|
}));
|
|
147
147
|
|
|
148
148
|
let postAdminAdListResponseSchema = S.array(KokonectLinkComponentSchemas.Ad.schema);
|
|
@@ -156,12 +156,12 @@ let postAdminAnnouncementsCreateRequestSchema = S.object(s => ({
|
|
|
156
156
|
title: s.f("title", S.min(S.string, 1, undefined)),
|
|
157
157
|
text: s.f("text", S.min(S.string, 1, undefined)),
|
|
158
158
|
imageUrl: s.f("imageUrl", S.nullableAsOption(S.min(S.string, 0, undefined))),
|
|
159
|
-
icon: s.
|
|
160
|
-
display: s.
|
|
161
|
-
forExistingUsers: s.
|
|
162
|
-
silence: s.
|
|
163
|
-
needConfirmationToRead: s.
|
|
164
|
-
userId: s.
|
|
159
|
+
icon: s.f("icon", S.option(S.string)),
|
|
160
|
+
display: s.f("display", S.option(S.string)),
|
|
161
|
+
forExistingUsers: s.f("forExistingUsers", S.option(S.bool)),
|
|
162
|
+
silence: s.f("silence", S.option(S.bool)),
|
|
163
|
+
needConfirmationToRead: s.f("needConfirmationToRead", S.option(S.bool)),
|
|
164
|
+
userId: s.f("userId", S.option(S.string))
|
|
165
165
|
}));
|
|
166
166
|
|
|
167
167
|
let postAdminAnnouncementsCreateResponseSchema = S.object(s => ({
|
|
@@ -179,13 +179,13 @@ function postAdminAnnouncementsCreate(body, fetch) {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
let postAdminAnnouncementsListRequestSchema = S.object(s => ({
|
|
182
|
-
limit: s.
|
|
183
|
-
sinceId: s.
|
|
184
|
-
untilId: s.
|
|
185
|
-
sinceDate: s.
|
|
186
|
-
untilDate: s.
|
|
187
|
-
userId: s.
|
|
188
|
-
status: s.
|
|
182
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
183
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
184
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
185
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
186
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
187
|
+
userId: s.f("userId", S.option(S.string)),
|
|
188
|
+
status: s.f("status", S.option(S.string))
|
|
189
189
|
}));
|
|
190
190
|
|
|
191
191
|
let postAdminAnnouncementsListResponse_1Schema = S.object(s => ({
|
|
@@ -214,15 +214,15 @@ function postAdminAnnouncementsList(body, fetch) {
|
|
|
214
214
|
|
|
215
215
|
let postAdminAnnouncementsUpdateRequestSchema = S.object(s => ({
|
|
216
216
|
id: s.f("id", S.string),
|
|
217
|
-
title: s.
|
|
218
|
-
text: s.
|
|
219
|
-
imageUrl: s.
|
|
220
|
-
icon: s.
|
|
221
|
-
display: s.
|
|
222
|
-
forExistingUsers: s.
|
|
223
|
-
silence: s.
|
|
224
|
-
needConfirmationToRead: s.
|
|
225
|
-
isActive: s.
|
|
217
|
+
title: s.f("title", S.option(S.min(S.string, 1, undefined))),
|
|
218
|
+
text: s.f("text", S.option(S.min(S.string, 1, undefined))),
|
|
219
|
+
imageUrl: s.f("imageUrl", S.option(S.min(S.string, 0, undefined))),
|
|
220
|
+
icon: s.f("icon", S.option(S.string)),
|
|
221
|
+
display: s.f("display", S.option(S.string)),
|
|
222
|
+
forExistingUsers: s.f("forExistingUsers", S.option(S.bool)),
|
|
223
|
+
silence: s.f("silence", S.option(S.bool)),
|
|
224
|
+
needConfirmationToRead: s.f("needConfirmationToRead", S.option(S.bool)),
|
|
225
|
+
isActive: s.f("isActive", S.option(S.bool))
|
|
226
226
|
}));
|
|
227
227
|
|
|
228
228
|
function postAdminAnnouncementsUpdate(body, fetch) {
|
|
@@ -244,12 +244,12 @@ function postAdminAvatarDecorationsCopy(body, fetch) {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
let postAdminAvatarDecorationsListRequestSchema = S.object(s => ({
|
|
247
|
-
limit: s.
|
|
248
|
-
sinceId: s.
|
|
249
|
-
untilId: s.
|
|
250
|
-
sinceDate: s.
|
|
251
|
-
untilDate: s.
|
|
252
|
-
userId: s.
|
|
247
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
248
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
249
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
250
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
251
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
252
|
+
userId: s.f("userId", S.option(S.string))
|
|
253
253
|
}));
|
|
254
254
|
|
|
255
255
|
let postAdminAvatarDecorationsListResponse_1Schema = S.object(s => ({
|
|
@@ -270,10 +270,10 @@ function postAdminAvatarDecorationsList(body, fetch) {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
let postAdminAvatarDecorationsListRemoteRequestSchema = S.object(s => ({
|
|
273
|
-
limit: s.
|
|
274
|
-
sinceId: s.
|
|
275
|
-
untilId: s.
|
|
276
|
-
userId: s.
|
|
273
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
274
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
275
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
276
|
+
userId: s.f("userId", S.option(S.string))
|
|
277
277
|
}));
|
|
278
278
|
|
|
279
279
|
let postAdminAvatarDecorationsListRemoteResponse_1Schema = S.object(s => ({
|
|
@@ -312,15 +312,15 @@ function postAdminDeleteAllFilesOfAUser(body, fetch) {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
let postAdminDriveFilesRequestSchema = S.object(s => ({
|
|
315
|
-
limit: s.
|
|
316
|
-
sinceId: s.
|
|
317
|
-
untilId: s.
|
|
318
|
-
sinceDate: s.
|
|
319
|
-
untilDate: s.
|
|
320
|
-
userId: s.
|
|
321
|
-
type: s.
|
|
322
|
-
origin: s.
|
|
323
|
-
hostname: s.
|
|
315
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
316
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
317
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
318
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
319
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
320
|
+
userId: s.f("userId", S.option(S.string)),
|
|
321
|
+
type: s.f("type", S.option(S.pattern(S.string, /^[a-zA-Z0-9\/\*-]+$/, undefined))),
|
|
322
|
+
origin: s.f("origin", S.option(S.string)),
|
|
323
|
+
hostname: s.f("hostname", S.option(S.string))
|
|
324
324
|
}));
|
|
325
325
|
|
|
326
326
|
let postAdminDriveFilesResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema);
|
|
@@ -335,10 +335,10 @@ let postAdminDriveShowFileRequest_1Schema = S.object(s => ({
|
|
|
335
335
|
}));
|
|
336
336
|
|
|
337
337
|
let postAdminDriveShowFileResponse_1Schema = S.object(s => ({
|
|
338
|
-
width: s.
|
|
339
|
-
height: s.
|
|
340
|
-
orientation: s.
|
|
341
|
-
avgColor: s.
|
|
338
|
+
width: s.f("width", S.option(S.float)),
|
|
339
|
+
height: s.f("height", S.option(S.float)),
|
|
340
|
+
orientation: s.f("orientation", S.option(S.float)),
|
|
341
|
+
avgColor: s.f("avgColor", S.option(S.string))
|
|
342
342
|
}));
|
|
343
343
|
|
|
344
344
|
let postAdminDriveShowFileResponseSchema = S.object(s => ({
|
|
@@ -379,12 +379,12 @@ function postAdminDriveShowFile(body, fetch) {
|
|
|
379
379
|
let postAdminEmojiAddRequestSchema = S.object(s => ({
|
|
380
380
|
name: s.f("name", S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined)),
|
|
381
381
|
fileId: s.f("fileId", S.string),
|
|
382
|
-
category: s.
|
|
383
|
-
aliases: s.
|
|
384
|
-
license: s.
|
|
385
|
-
isSensitive: s.
|
|
386
|
-
localOnly: s.
|
|
387
|
-
roleIdsThatCanBeUsedThisEmojiAsReaction: s.
|
|
382
|
+
category: s.f("category", S.option(S.string)),
|
|
383
|
+
aliases: s.f("aliases", S.option(S.array(S.string))),
|
|
384
|
+
license: s.f("license", S.option(S.string)),
|
|
385
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
386
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
387
|
+
roleIdsThatCanBeUsedThisEmojiAsReaction: s.f("roleIdsThatCanBeUsedThisEmojiAsReaction", S.option(S.array(S.string)))
|
|
388
388
|
}));
|
|
389
389
|
|
|
390
390
|
let postAdminEmojiAddResponseSchema = KokonectLinkComponentSchemas.EmojiDetailed.schema;
|
|
@@ -395,12 +395,12 @@ function postAdminEmojiAdd(body, fetch) {
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
let postAdminEmojiListRequestSchema = S.object(s => ({
|
|
398
|
-
query: s.
|
|
399
|
-
limit: s.
|
|
400
|
-
sinceId: s.
|
|
401
|
-
untilId: s.
|
|
402
|
-
sinceDate: s.
|
|
403
|
-
untilDate: s.
|
|
398
|
+
query: s.f("query", S.option(S.string)),
|
|
399
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
400
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
401
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
402
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
403
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
404
404
|
}));
|
|
405
405
|
|
|
406
406
|
let postAdminEmojiListResponse_1Schema = S.object(s => ({
|
|
@@ -420,13 +420,13 @@ function postAdminEmojiList(body, fetch) {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
let postAdminEmojiListRemoteRequestSchema = S.object(s => ({
|
|
423
|
-
query: s.
|
|
424
|
-
host: s.
|
|
425
|
-
limit: s.
|
|
426
|
-
sinceId: s.
|
|
427
|
-
untilId: s.
|
|
428
|
-
sinceDate: s.
|
|
429
|
-
untilDate: s.
|
|
423
|
+
query: s.f("query", S.option(S.string)),
|
|
424
|
+
host: s.f("host", S.option(S.string)),
|
|
425
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
426
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
427
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
428
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
429
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
430
430
|
}));
|
|
431
431
|
|
|
432
432
|
let postAdminEmojiListRemoteResponse_1Schema = S.object(s => ({
|
|
@@ -460,13 +460,13 @@ function postAdminEmojiSteal(body, fetch) {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
let postAdminEmojiUpdateRequestSchema = S.object(s => ({
|
|
463
|
-
fileId: s.
|
|
464
|
-
category: s.
|
|
465
|
-
aliases: s.
|
|
466
|
-
license: s.
|
|
467
|
-
isSensitive: s.
|
|
468
|
-
localOnly: s.
|
|
469
|
-
roleIdsThatCanBeUsedThisEmojiAsReaction: s.
|
|
463
|
+
fileId: s.f("fileId", S.option(S.string)),
|
|
464
|
+
category: s.f("category", S.option(S.string)),
|
|
465
|
+
aliases: s.f("aliases", S.option(S.array(S.string))),
|
|
466
|
+
license: s.f("license", S.option(S.string)),
|
|
467
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
468
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
469
|
+
roleIdsThatCanBeUsedThisEmojiAsReaction: s.f("roleIdsThatCanBeUsedThisEmojiAsReaction", S.option(S.array(S.string)))
|
|
470
470
|
}));
|
|
471
471
|
|
|
472
472
|
function postAdminEmojiUpdate(body, fetch) {
|
|
@@ -491,7 +491,7 @@ function postAdminQueueClear(body, fetch) {
|
|
|
491
491
|
let postAdminQueueJobsRequestSchema = S.object(s => ({
|
|
492
492
|
queue: s.f("queue", S.string),
|
|
493
493
|
state: s.f("state", S.array(S.string)),
|
|
494
|
-
search: s.
|
|
494
|
+
search: s.f("search", S.option(S.string))
|
|
495
495
|
}));
|
|
496
496
|
|
|
497
497
|
let postAdminQueueJobsResponseSchema = S.array(KokonectLinkComponentSchemas.QueueJob.schema);
|
|
@@ -621,7 +621,7 @@ function postAdminQueueShowJobLogs(body, fetch) {
|
|
|
621
621
|
|
|
622
622
|
let postAdminResolveAbuseUserReportRequestSchema = S.object(s => ({
|
|
623
623
|
reportId: s.f("reportId", S.string),
|
|
624
|
-
resolvedAs: s.
|
|
624
|
+
resolvedAs: s.f("resolvedAs", S.option(S.string))
|
|
625
625
|
}));
|
|
626
626
|
|
|
627
627
|
function postAdminResolveAbuseUserReport(body, fetch) {
|
|
@@ -632,7 +632,7 @@ function postAdminResolveAbuseUserReport(body, fetch) {
|
|
|
632
632
|
let postAdminRolesAssignRequestSchema = S.object(s => ({
|
|
633
633
|
roleId: s.f("roleId", S.string),
|
|
634
634
|
userId: s.f("userId", S.string),
|
|
635
|
-
expiresAt: s.
|
|
635
|
+
expiresAt: s.f("expiresAt", S.option(S.int))
|
|
636
636
|
}));
|
|
637
637
|
|
|
638
638
|
function postAdminRolesAssign(body, fetch) {
|
|
@@ -650,9 +650,9 @@ let postAdminRolesCreateRequestSchema = S.object(s => ({
|
|
|
650
650
|
isPublic: s.f("isPublic", S.bool),
|
|
651
651
|
isModerator: s.f("isModerator", S.bool),
|
|
652
652
|
isAdministrator: s.f("isAdministrator", S.bool),
|
|
653
|
-
isExplorable: s.
|
|
653
|
+
isExplorable: s.f("isExplorable", S.option(S.bool)),
|
|
654
654
|
asBadge: s.f("asBadge", S.bool),
|
|
655
|
-
preserveAssignmentOnMoveAccount: s.
|
|
655
|
+
preserveAssignmentOnMoveAccount: s.f("preserveAssignmentOnMoveAccount", S.option(S.bool)),
|
|
656
656
|
canEditMembersByModerator: s.f("canEditMembersByModerator", S.bool),
|
|
657
657
|
displayOrder: s.f("displayOrder", S.float),
|
|
658
658
|
policies: s.f("policies", S.dict(S.json))
|
|
@@ -678,20 +678,20 @@ function postAdminRolesShow(body, fetch) {
|
|
|
678
678
|
|
|
679
679
|
let postAdminRolesUpdateRequestSchema = S.object(s => ({
|
|
680
680
|
roleId: s.f("roleId", S.string),
|
|
681
|
-
name: s.
|
|
682
|
-
description: s.
|
|
683
|
-
color: s.
|
|
684
|
-
iconUrl: s.
|
|
685
|
-
target: s.
|
|
681
|
+
name: s.f("name", S.option(S.string)),
|
|
682
|
+
description: s.f("description", S.option(S.string)),
|
|
683
|
+
color: s.f("color", S.option(S.string)),
|
|
684
|
+
iconUrl: s.f("iconUrl", S.option(S.string)),
|
|
685
|
+
target: s.f("target", S.option(S.string)),
|
|
686
686
|
condFormula: s.f("condFormula", S.option(S.dict(S.json))),
|
|
687
|
-
isPublic: s.
|
|
688
|
-
isModerator: s.
|
|
689
|
-
isAdministrator: s.
|
|
690
|
-
isExplorable: s.
|
|
691
|
-
asBadge: s.
|
|
692
|
-
preserveAssignmentOnMoveAccount: s.
|
|
693
|
-
canEditMembersByModerator: s.
|
|
694
|
-
displayOrder: s.
|
|
687
|
+
isPublic: s.f("isPublic", S.option(S.bool)),
|
|
688
|
+
isModerator: s.f("isModerator", S.option(S.bool)),
|
|
689
|
+
isAdministrator: s.f("isAdministrator", S.option(S.bool)),
|
|
690
|
+
isExplorable: s.f("isExplorable", S.option(S.bool)),
|
|
691
|
+
asBadge: s.f("asBadge", S.option(S.bool)),
|
|
692
|
+
preserveAssignmentOnMoveAccount: s.f("preserveAssignmentOnMoveAccount", S.option(S.bool)),
|
|
693
|
+
canEditMembersByModerator: s.f("canEditMembersByModerator", S.option(S.bool)),
|
|
694
|
+
displayOrder: s.f("displayOrder", S.option(S.float)),
|
|
695
695
|
policies: s.f("policies", S.option(S.dict(S.json)))
|
|
696
696
|
}));
|
|
697
697
|
|
|
@@ -702,11 +702,11 @@ function postAdminRolesUpdate(body, fetch) {
|
|
|
702
702
|
|
|
703
703
|
let postAdminRolesUsersRequestSchema = S.object(s => ({
|
|
704
704
|
roleId: s.f("roleId", S.string),
|
|
705
|
-
sinceId: s.
|
|
706
|
-
untilId: s.
|
|
707
|
-
sinceDate: s.
|
|
708
|
-
untilDate: s.
|
|
709
|
-
limit: s.
|
|
705
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
706
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
707
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
708
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
709
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
710
710
|
}));
|
|
711
711
|
|
|
712
712
|
let postAdminRolesUsersResponse_1Schema = S.object(s => ({
|
|
@@ -757,14 +757,14 @@ function postAdminServerInfo(fetch) {
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
let postAdminShowModerationLogsRequestSchema = S.object(s => ({
|
|
760
|
-
limit: s.
|
|
761
|
-
sinceId: s.
|
|
762
|
-
untilId: s.
|
|
763
|
-
sinceDate: s.
|
|
764
|
-
untilDate: s.
|
|
765
|
-
type: s.
|
|
766
|
-
userId: s.
|
|
767
|
-
search: s.
|
|
760
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
761
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
762
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
763
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
764
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
765
|
+
type: s.f("type", S.option(S.string)),
|
|
766
|
+
userId: s.f("userId", S.option(S.string)),
|
|
767
|
+
search: s.f("search", S.option(S.string))
|
|
768
768
|
}));
|
|
769
769
|
|
|
770
770
|
let postAdminShowModerationLogsResponse_1Schema = S.object(s => ({
|
|
@@ -853,7 +853,7 @@ let postAdminSystemWebhookCreateRequestSchema = S.object(s => ({
|
|
|
853
853
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 255, undefined)),
|
|
854
854
|
on: s.f("on", S.array(S.string)),
|
|
855
855
|
url: s.f("url", S.max(S.min(S.string, 1, undefined), 1024, undefined)),
|
|
856
|
-
secret: s.
|
|
856
|
+
secret: s.f("secret", S.option(S.max(S.string, 1024, undefined)))
|
|
857
857
|
}));
|
|
858
858
|
|
|
859
859
|
let postAdminSystemWebhookCreateResponseSchema = KokonectLinkComponentSchemas.SystemWebhook.schema;
|
|
@@ -880,7 +880,7 @@ let postAdminSystemWebhookUpdateRequestSchema = S.object(s => ({
|
|
|
880
880
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 255, undefined)),
|
|
881
881
|
on: s.f("on", S.array(S.string)),
|
|
882
882
|
url: s.f("url", S.max(S.min(S.string, 1, undefined), 1024, undefined)),
|
|
883
|
-
secret: s.
|
|
883
|
+
secret: s.f("secret", S.option(S.max(S.string, 1024, undefined)))
|
|
884
884
|
}));
|
|
885
885
|
|
|
886
886
|
let postAdminSystemWebhookUpdateResponseSchema = KokonectLinkComponentSchemas.SystemWebhook.schema;
|
|
@@ -896,166 +896,166 @@ let postAdminUpdateMetaRequest_1Schema = S.object(s => ({
|
|
|
896
896
|
}));
|
|
897
897
|
|
|
898
898
|
let postAdminUpdateMetaRequestSchema = S.object(s => ({
|
|
899
|
-
disableRegistration: s.
|
|
900
|
-
pinnedUsers: s.
|
|
901
|
-
hiddenTags: s.
|
|
902
|
-
blockedHosts: s.
|
|
903
|
-
sensitiveWords: s.
|
|
904
|
-
prohibitedWords: s.
|
|
905
|
-
prohibitedWordsForNameOfUser: s.
|
|
906
|
-
themeColor: s.
|
|
907
|
-
mascotImageUrl: s.
|
|
908
|
-
bannerUrl: s.
|
|
909
|
-
serverErrorImageUrl: s.
|
|
910
|
-
infoImageUrl: s.
|
|
911
|
-
notFoundImageUrl: s.
|
|
912
|
-
youBlockedImageUrl: s.
|
|
913
|
-
iconUrl: s.
|
|
914
|
-
app192IconUrl: s.
|
|
915
|
-
app512IconUrl: s.
|
|
916
|
-
backgroundImageUrl: s.
|
|
917
|
-
logoImageUrl: s.
|
|
918
|
-
name: s.
|
|
919
|
-
shortName: s.
|
|
920
|
-
description: s.
|
|
921
|
-
defaultLightTheme: s.
|
|
922
|
-
defaultDarkTheme: s.
|
|
899
|
+
disableRegistration: s.f("disableRegistration", S.option(S.bool)),
|
|
900
|
+
pinnedUsers: s.f("pinnedUsers", S.option(S.json)),
|
|
901
|
+
hiddenTags: s.f("hiddenTags", S.option(S.json)),
|
|
902
|
+
blockedHosts: s.f("blockedHosts", S.option(S.json)),
|
|
903
|
+
sensitiveWords: s.f("sensitiveWords", S.option(S.json)),
|
|
904
|
+
prohibitedWords: s.f("prohibitedWords", S.option(S.json)),
|
|
905
|
+
prohibitedWordsForNameOfUser: s.f("prohibitedWordsForNameOfUser", S.option(S.json)),
|
|
906
|
+
themeColor: s.f("themeColor", S.option(S.pattern(S.string, /^#[0-9a-fA-F]{6}$/, undefined))),
|
|
907
|
+
mascotImageUrl: s.f("mascotImageUrl", S.option(S.string)),
|
|
908
|
+
bannerUrl: s.f("bannerUrl", S.option(S.string)),
|
|
909
|
+
serverErrorImageUrl: s.f("serverErrorImageUrl", S.option(S.string)),
|
|
910
|
+
infoImageUrl: s.f("infoImageUrl", S.option(S.string)),
|
|
911
|
+
notFoundImageUrl: s.f("notFoundImageUrl", S.option(S.string)),
|
|
912
|
+
youBlockedImageUrl: s.f("youBlockedImageUrl", S.option(S.string)),
|
|
913
|
+
iconUrl: s.f("iconUrl", S.option(S.string)),
|
|
914
|
+
app192IconUrl: s.f("app192IconUrl", S.option(S.string)),
|
|
915
|
+
app512IconUrl: s.f("app512IconUrl", S.option(S.string)),
|
|
916
|
+
backgroundImageUrl: s.f("backgroundImageUrl", S.option(S.string)),
|
|
917
|
+
logoImageUrl: s.f("logoImageUrl", S.option(S.string)),
|
|
918
|
+
name: s.f("name", S.option(S.string)),
|
|
919
|
+
shortName: s.f("shortName", S.option(S.string)),
|
|
920
|
+
description: s.f("description", S.option(S.string)),
|
|
921
|
+
defaultLightTheme: s.f("defaultLightTheme", S.option(S.string)),
|
|
922
|
+
defaultDarkTheme: s.f("defaultDarkTheme", S.option(S.string)),
|
|
923
923
|
clientOptions: s.f("clientOptions", S.option(S.dict(S.json))),
|
|
924
|
-
cacheRemoteFiles: s.
|
|
925
|
-
cacheRemoteSensitiveFiles: s.
|
|
926
|
-
emailRequiredForSignup: s.
|
|
927
|
-
enableHcaptcha: s.
|
|
928
|
-
hcaptchaSiteKey: s.
|
|
929
|
-
hcaptchaSecretKey: s.
|
|
930
|
-
enableMcaptcha: s.
|
|
931
|
-
mcaptchaSiteKey: s.
|
|
932
|
-
mcaptchaInstanceUrl: s.
|
|
933
|
-
mcaptchaSecretKey: s.
|
|
934
|
-
enableRecaptcha: s.
|
|
935
|
-
recaptchaSiteKey: s.
|
|
936
|
-
recaptchaSecretKey: s.
|
|
937
|
-
enableTurnstile: s.
|
|
938
|
-
turnstileSiteKey: s.
|
|
939
|
-
turnstileSecretKey: s.
|
|
940
|
-
enableTestcaptcha: s.
|
|
941
|
-
googleAnalyticsMeasurementId: s.
|
|
942
|
-
sensitiveMediaDetection: s.
|
|
943
|
-
sensitiveMediaDetectionSensitivity: s.
|
|
944
|
-
setSensitiveFlagAutomatically: s.
|
|
945
|
-
enableSensitiveMediaDetectionForVideos: s.
|
|
946
|
-
maintainerName: s.
|
|
947
|
-
maintainerEmail: s.
|
|
948
|
-
langs: s.
|
|
949
|
-
translatorType: s.
|
|
950
|
-
deeplAuthKey: s.
|
|
951
|
-
deeplIsPro: s.
|
|
952
|
-
ctav3SaKey: s.
|
|
953
|
-
ctav3ProjectId: s.
|
|
954
|
-
ctav3Location: s.
|
|
955
|
-
ctav3Model: s.
|
|
956
|
-
ctav3Glossary: s.
|
|
957
|
-
libreTranslateEndPoint: s.
|
|
958
|
-
libreTranslateApiKey: s.
|
|
959
|
-
enableEmail: s.
|
|
960
|
-
email: s.
|
|
961
|
-
smtpSecure: s.
|
|
962
|
-
smtpHost: s.
|
|
963
|
-
smtpPort: s.
|
|
964
|
-
smtpUser: s.
|
|
965
|
-
smtpPass: s.
|
|
966
|
-
enableServiceWorker: s.
|
|
967
|
-
swPublicKey: s.
|
|
968
|
-
swPrivateKey: s.
|
|
969
|
-
tosUrl: s.
|
|
970
|
-
repositoryUrl: s.
|
|
971
|
-
feedbackUrl: s.
|
|
972
|
-
impressumUrl: s.
|
|
973
|
-
privacyPolicyUrl: s.
|
|
974
|
-
inquiryUrl: s.
|
|
975
|
-
useObjectStorage: s.
|
|
976
|
-
objectStorageBaseUrl: s.
|
|
977
|
-
objectStorageBucket: s.
|
|
978
|
-
objectStoragePrefix: s.
|
|
979
|
-
objectStorageEndpoint: s.
|
|
980
|
-
objectStorageRegion: s.
|
|
981
|
-
objectStoragePort: s.
|
|
982
|
-
objectStorageAccessKey: s.
|
|
983
|
-
objectStorageSecretKey: s.
|
|
984
|
-
objectStorageUseSSL: s.
|
|
985
|
-
objectStorageUseProxy: s.
|
|
986
|
-
objectStorageSetPublicRead: s.
|
|
987
|
-
objectStorageS3ForcePathStyle: s.
|
|
988
|
-
useRemoteObjectStorage: s.
|
|
989
|
-
remoteObjectStorageBaseUrl: s.
|
|
990
|
-
remoteObjectStorageBucket: s.
|
|
991
|
-
remoteObjectStoragePrefix: s.
|
|
992
|
-
remoteObjectStorageEndpoint: s.
|
|
993
|
-
remoteObjectStorageRegion: s.
|
|
994
|
-
remoteObjectStoragePort: s.
|
|
995
|
-
remoteObjectStorageAccessKey: s.
|
|
996
|
-
remoteObjectStorageSecretKey: s.
|
|
997
|
-
remoteObjectStorageUseSSL: s.
|
|
998
|
-
remoteObjectStorageUseProxy: s.
|
|
999
|
-
remoteObjectStorageSetPublicRead: s.
|
|
1000
|
-
remoteObjectStorageS3ForcePathStyle: s.
|
|
1001
|
-
enableIpLogging: s.
|
|
1002
|
-
enableActiveEmailValidation: s.
|
|
1003
|
-
enableVerifymailApi: s.
|
|
1004
|
-
verifymailAuthKey: s.
|
|
1005
|
-
enableTruemailApi: s.
|
|
1006
|
-
truemailInstance: s.
|
|
1007
|
-
truemailAuthKey: s.
|
|
1008
|
-
enableChartsForRemoteUser: s.
|
|
1009
|
-
enableChartsForFederatedInstances: s.
|
|
1010
|
-
enableStatsForFederatedInstances: s.
|
|
1011
|
-
enableServerMachineStats: s.
|
|
1012
|
-
enableIdenticonGeneration: s.
|
|
1013
|
-
serverRules: s.
|
|
1014
|
-
bannedEmailDomains: s.
|
|
1015
|
-
preservedUsernames: s.
|
|
1016
|
-
manifestJsonOverride: s.
|
|
1017
|
-
enableFanoutTimeline: s.
|
|
1018
|
-
enableFanoutTimelineDbFallback: s.
|
|
1019
|
-
perLocalUserUserTimelineCacheMax: s.
|
|
1020
|
-
perRemoteUserUserTimelineCacheMax: s.
|
|
1021
|
-
perUserHomeTimelineCacheMax: s.
|
|
1022
|
-
perUserListTimelineCacheMax: s.
|
|
1023
|
-
enableReactionsBuffering: s.
|
|
1024
|
-
notesPerOneAd: s.
|
|
1025
|
-
silencedHosts: s.
|
|
1026
|
-
mediaSilencedHosts: s.
|
|
1027
|
-
summalyProxy: s.
|
|
1028
|
-
urlPreviewEnabled: s.
|
|
1029
|
-
urlPreviewAllowRedirect: s.
|
|
1030
|
-
urlPreviewTimeout: s.
|
|
1031
|
-
urlPreviewMaximumContentLength: s.
|
|
1032
|
-
urlPreviewRequireContentLength: s.
|
|
1033
|
-
urlPreviewUserAgent: s.
|
|
1034
|
-
urlPreviewSummaryProxyUrl: s.
|
|
1035
|
-
federation: s.
|
|
1036
|
-
federationHosts: s.
|
|
1037
|
-
deliverSuspendedSoftware: s.
|
|
1038
|
-
singleUserMode: s.
|
|
1039
|
-
ugcVisibilityForVisitor: s.
|
|
1040
|
-
proxyRemoteFiles: s.
|
|
1041
|
-
signToActivityPubGet: s.
|
|
1042
|
-
allowExternalApRedirect: s.
|
|
1043
|
-
enableRemoteNotesCleaning: s.
|
|
1044
|
-
remoteNotesCleaningExpiryDaysForEachNotes: s.
|
|
1045
|
-
remoteNotesCleaningMaxProcessingDurationInMinutes: s.
|
|
1046
|
-
showRoleBadgesOfRemoteUsers: s.
|
|
1047
|
-
doNotSendNotificationEmailsForAbuseReport: s.
|
|
1048
|
-
emailToReceiveAbuseReport: s.
|
|
1049
|
-
enableReceivePrerelease: s.
|
|
1050
|
-
skipVersion: s.
|
|
1051
|
-
skipCherryPickVersion: s.
|
|
1052
|
-
trustedLinkUrlPatterns: s.
|
|
1053
|
-
customSplashText: s.
|
|
1054
|
-
disableRegistrationWhenInactive: s.
|
|
1055
|
-
disablePublicNoteWhenInactive: s.
|
|
1056
|
-
moderatorInactivityLimitDays: s.
|
|
1057
|
-
bubbleInstances: s.
|
|
1058
|
-
customRobotsTxt: s.
|
|
924
|
+
cacheRemoteFiles: s.f("cacheRemoteFiles", S.option(S.bool)),
|
|
925
|
+
cacheRemoteSensitiveFiles: s.f("cacheRemoteSensitiveFiles", S.option(S.bool)),
|
|
926
|
+
emailRequiredForSignup: s.f("emailRequiredForSignup", S.option(S.bool)),
|
|
927
|
+
enableHcaptcha: s.f("enableHcaptcha", S.option(S.bool)),
|
|
928
|
+
hcaptchaSiteKey: s.f("hcaptchaSiteKey", S.option(S.string)),
|
|
929
|
+
hcaptchaSecretKey: s.f("hcaptchaSecretKey", S.option(S.string)),
|
|
930
|
+
enableMcaptcha: s.f("enableMcaptcha", S.option(S.bool)),
|
|
931
|
+
mcaptchaSiteKey: s.f("mcaptchaSiteKey", S.option(S.string)),
|
|
932
|
+
mcaptchaInstanceUrl: s.f("mcaptchaInstanceUrl", S.option(S.string)),
|
|
933
|
+
mcaptchaSecretKey: s.f("mcaptchaSecretKey", S.option(S.string)),
|
|
934
|
+
enableRecaptcha: s.f("enableRecaptcha", S.option(S.bool)),
|
|
935
|
+
recaptchaSiteKey: s.f("recaptchaSiteKey", S.option(S.string)),
|
|
936
|
+
recaptchaSecretKey: s.f("recaptchaSecretKey", S.option(S.string)),
|
|
937
|
+
enableTurnstile: s.f("enableTurnstile", S.option(S.bool)),
|
|
938
|
+
turnstileSiteKey: s.f("turnstileSiteKey", S.option(S.string)),
|
|
939
|
+
turnstileSecretKey: s.f("turnstileSecretKey", S.option(S.string)),
|
|
940
|
+
enableTestcaptcha: s.f("enableTestcaptcha", S.option(S.bool)),
|
|
941
|
+
googleAnalyticsMeasurementId: s.f("googleAnalyticsMeasurementId", S.option(S.string)),
|
|
942
|
+
sensitiveMediaDetection: s.f("sensitiveMediaDetection", S.option(S.string)),
|
|
943
|
+
sensitiveMediaDetectionSensitivity: s.f("sensitiveMediaDetectionSensitivity", S.option(S.string)),
|
|
944
|
+
setSensitiveFlagAutomatically: s.f("setSensitiveFlagAutomatically", S.option(S.bool)),
|
|
945
|
+
enableSensitiveMediaDetectionForVideos: s.f("enableSensitiveMediaDetectionForVideos", S.option(S.bool)),
|
|
946
|
+
maintainerName: s.f("maintainerName", S.option(S.string)),
|
|
947
|
+
maintainerEmail: s.f("maintainerEmail", S.option(S.string)),
|
|
948
|
+
langs: s.f("langs", S.option(S.array(S.string))),
|
|
949
|
+
translatorType: s.f("translatorType", S.option(S.string)),
|
|
950
|
+
deeplAuthKey: s.f("deeplAuthKey", S.option(S.string)),
|
|
951
|
+
deeplIsPro: s.f("deeplIsPro", S.option(S.bool)),
|
|
952
|
+
ctav3SaKey: s.f("ctav3SaKey", S.option(S.string)),
|
|
953
|
+
ctav3ProjectId: s.f("ctav3ProjectId", S.option(S.string)),
|
|
954
|
+
ctav3Location: s.f("ctav3Location", S.option(S.string)),
|
|
955
|
+
ctav3Model: s.f("ctav3Model", S.option(S.string)),
|
|
956
|
+
ctav3Glossary: s.f("ctav3Glossary", S.option(S.string)),
|
|
957
|
+
libreTranslateEndPoint: s.f("libreTranslateEndPoint", S.option(S.string)),
|
|
958
|
+
libreTranslateApiKey: s.f("libreTranslateApiKey", S.option(S.string)),
|
|
959
|
+
enableEmail: s.f("enableEmail", S.option(S.bool)),
|
|
960
|
+
email: s.f("email", S.option(S.string)),
|
|
961
|
+
smtpSecure: s.f("smtpSecure", S.option(S.bool)),
|
|
962
|
+
smtpHost: s.f("smtpHost", S.option(S.string)),
|
|
963
|
+
smtpPort: s.f("smtpPort", S.option(S.int)),
|
|
964
|
+
smtpUser: s.f("smtpUser", S.option(S.string)),
|
|
965
|
+
smtpPass: s.f("smtpPass", S.option(S.string)),
|
|
966
|
+
enableServiceWorker: s.f("enableServiceWorker", S.option(S.bool)),
|
|
967
|
+
swPublicKey: s.f("swPublicKey", S.option(S.string)),
|
|
968
|
+
swPrivateKey: s.f("swPrivateKey", S.option(S.string)),
|
|
969
|
+
tosUrl: s.f("tosUrl", S.option(S.string)),
|
|
970
|
+
repositoryUrl: s.f("repositoryUrl", S.option(S.string)),
|
|
971
|
+
feedbackUrl: s.f("feedbackUrl", S.option(S.string)),
|
|
972
|
+
impressumUrl: s.f("impressumUrl", S.option(S.string)),
|
|
973
|
+
privacyPolicyUrl: s.f("privacyPolicyUrl", S.option(S.string)),
|
|
974
|
+
inquiryUrl: s.f("inquiryUrl", S.option(S.string)),
|
|
975
|
+
useObjectStorage: s.f("useObjectStorage", S.option(S.bool)),
|
|
976
|
+
objectStorageBaseUrl: s.f("objectStorageBaseUrl", S.option(S.string)),
|
|
977
|
+
objectStorageBucket: s.f("objectStorageBucket", S.option(S.string)),
|
|
978
|
+
objectStoragePrefix: s.f("objectStoragePrefix", S.option(S.pattern(S.string, /^[a-zA-Z0-9._-]*$/, undefined))),
|
|
979
|
+
objectStorageEndpoint: s.f("objectStorageEndpoint", S.option(S.string)),
|
|
980
|
+
objectStorageRegion: s.f("objectStorageRegion", S.option(S.string)),
|
|
981
|
+
objectStoragePort: s.f("objectStoragePort", S.option(S.int)),
|
|
982
|
+
objectStorageAccessKey: s.f("objectStorageAccessKey", S.option(S.string)),
|
|
983
|
+
objectStorageSecretKey: s.f("objectStorageSecretKey", S.option(S.string)),
|
|
984
|
+
objectStorageUseSSL: s.f("objectStorageUseSSL", S.option(S.bool)),
|
|
985
|
+
objectStorageUseProxy: s.f("objectStorageUseProxy", S.option(S.bool)),
|
|
986
|
+
objectStorageSetPublicRead: s.f("objectStorageSetPublicRead", S.option(S.bool)),
|
|
987
|
+
objectStorageS3ForcePathStyle: s.f("objectStorageS3ForcePathStyle", S.option(S.bool)),
|
|
988
|
+
useRemoteObjectStorage: s.f("useRemoteObjectStorage", S.option(S.bool)),
|
|
989
|
+
remoteObjectStorageBaseUrl: s.f("remoteObjectStorageBaseUrl", S.option(S.string)),
|
|
990
|
+
remoteObjectStorageBucket: s.f("remoteObjectStorageBucket", S.option(S.string)),
|
|
991
|
+
remoteObjectStoragePrefix: s.f("remoteObjectStoragePrefix", S.option(S.pattern(S.string, /^[a-zA-Z0-9._-]*$/, undefined))),
|
|
992
|
+
remoteObjectStorageEndpoint: s.f("remoteObjectStorageEndpoint", S.option(S.string)),
|
|
993
|
+
remoteObjectStorageRegion: s.f("remoteObjectStorageRegion", S.option(S.string)),
|
|
994
|
+
remoteObjectStoragePort: s.f("remoteObjectStoragePort", S.option(S.int)),
|
|
995
|
+
remoteObjectStorageAccessKey: s.f("remoteObjectStorageAccessKey", S.option(S.string)),
|
|
996
|
+
remoteObjectStorageSecretKey: s.f("remoteObjectStorageSecretKey", S.option(S.string)),
|
|
997
|
+
remoteObjectStorageUseSSL: s.f("remoteObjectStorageUseSSL", S.option(S.bool)),
|
|
998
|
+
remoteObjectStorageUseProxy: s.f("remoteObjectStorageUseProxy", S.option(S.bool)),
|
|
999
|
+
remoteObjectStorageSetPublicRead: s.f("remoteObjectStorageSetPublicRead", S.option(S.bool)),
|
|
1000
|
+
remoteObjectStorageS3ForcePathStyle: s.f("remoteObjectStorageS3ForcePathStyle", S.option(S.bool)),
|
|
1001
|
+
enableIpLogging: s.f("enableIpLogging", S.option(S.bool)),
|
|
1002
|
+
enableActiveEmailValidation: s.f("enableActiveEmailValidation", S.option(S.bool)),
|
|
1003
|
+
enableVerifymailApi: s.f("enableVerifymailApi", S.option(S.bool)),
|
|
1004
|
+
verifymailAuthKey: s.f("verifymailAuthKey", S.option(S.string)),
|
|
1005
|
+
enableTruemailApi: s.f("enableTruemailApi", S.option(S.bool)),
|
|
1006
|
+
truemailInstance: s.f("truemailInstance", S.option(S.string)),
|
|
1007
|
+
truemailAuthKey: s.f("truemailAuthKey", S.option(S.string)),
|
|
1008
|
+
enableChartsForRemoteUser: s.f("enableChartsForRemoteUser", S.option(S.bool)),
|
|
1009
|
+
enableChartsForFederatedInstances: s.f("enableChartsForFederatedInstances", S.option(S.bool)),
|
|
1010
|
+
enableStatsForFederatedInstances: s.f("enableStatsForFederatedInstances", S.option(S.bool)),
|
|
1011
|
+
enableServerMachineStats: s.f("enableServerMachineStats", S.option(S.bool)),
|
|
1012
|
+
enableIdenticonGeneration: s.f("enableIdenticonGeneration", S.option(S.bool)),
|
|
1013
|
+
serverRules: s.f("serverRules", S.option(S.array(S.string))),
|
|
1014
|
+
bannedEmailDomains: s.f("bannedEmailDomains", S.option(S.array(S.string))),
|
|
1015
|
+
preservedUsernames: s.f("preservedUsernames", S.option(S.array(S.string))),
|
|
1016
|
+
manifestJsonOverride: s.f("manifestJsonOverride", S.option(S.string)),
|
|
1017
|
+
enableFanoutTimeline: s.f("enableFanoutTimeline", S.option(S.bool)),
|
|
1018
|
+
enableFanoutTimelineDbFallback: s.f("enableFanoutTimelineDbFallback", S.option(S.bool)),
|
|
1019
|
+
perLocalUserUserTimelineCacheMax: s.f("perLocalUserUserTimelineCacheMax", S.option(S.int)),
|
|
1020
|
+
perRemoteUserUserTimelineCacheMax: s.f("perRemoteUserUserTimelineCacheMax", S.option(S.int)),
|
|
1021
|
+
perUserHomeTimelineCacheMax: s.f("perUserHomeTimelineCacheMax", S.option(S.int)),
|
|
1022
|
+
perUserListTimelineCacheMax: s.f("perUserListTimelineCacheMax", S.option(S.int)),
|
|
1023
|
+
enableReactionsBuffering: s.f("enableReactionsBuffering", S.option(S.bool)),
|
|
1024
|
+
notesPerOneAd: s.f("notesPerOneAd", S.option(S.int)),
|
|
1025
|
+
silencedHosts: s.f("silencedHosts", S.option(S.json)),
|
|
1026
|
+
mediaSilencedHosts: s.f("mediaSilencedHosts", S.option(S.json)),
|
|
1027
|
+
summalyProxy: s.f("summalyProxy", S.option(S.string)),
|
|
1028
|
+
urlPreviewEnabled: s.f("urlPreviewEnabled", S.option(S.bool)),
|
|
1029
|
+
urlPreviewAllowRedirect: s.f("urlPreviewAllowRedirect", S.option(S.bool)),
|
|
1030
|
+
urlPreviewTimeout: s.f("urlPreviewTimeout", S.option(S.int)),
|
|
1031
|
+
urlPreviewMaximumContentLength: s.f("urlPreviewMaximumContentLength", S.option(S.int)),
|
|
1032
|
+
urlPreviewRequireContentLength: s.f("urlPreviewRequireContentLength", S.option(S.bool)),
|
|
1033
|
+
urlPreviewUserAgent: s.f("urlPreviewUserAgent", S.option(S.string)),
|
|
1034
|
+
urlPreviewSummaryProxyUrl: s.f("urlPreviewSummaryProxyUrl", S.option(S.string)),
|
|
1035
|
+
federation: s.f("federation", S.option(S.string)),
|
|
1036
|
+
federationHosts: s.f("federationHosts", S.option(S.array(S.string))),
|
|
1037
|
+
deliverSuspendedSoftware: s.f("deliverSuspendedSoftware", S.option(S.array(postAdminUpdateMetaRequest_1Schema))),
|
|
1038
|
+
singleUserMode: s.f("singleUserMode", S.option(S.bool)),
|
|
1039
|
+
ugcVisibilityForVisitor: s.f("ugcVisibilityForVisitor", S.option(S.string)),
|
|
1040
|
+
proxyRemoteFiles: s.f("proxyRemoteFiles", S.option(S.bool)),
|
|
1041
|
+
signToActivityPubGet: s.f("signToActivityPubGet", S.option(S.bool)),
|
|
1042
|
+
allowExternalApRedirect: s.f("allowExternalApRedirect", S.option(S.bool)),
|
|
1043
|
+
enableRemoteNotesCleaning: s.f("enableRemoteNotesCleaning", S.option(S.bool)),
|
|
1044
|
+
remoteNotesCleaningExpiryDaysForEachNotes: s.f("remoteNotesCleaningExpiryDaysForEachNotes", S.option(S.float)),
|
|
1045
|
+
remoteNotesCleaningMaxProcessingDurationInMinutes: s.f("remoteNotesCleaningMaxProcessingDurationInMinutes", S.option(S.float)),
|
|
1046
|
+
showRoleBadgesOfRemoteUsers: s.f("showRoleBadgesOfRemoteUsers", S.option(S.bool)),
|
|
1047
|
+
doNotSendNotificationEmailsForAbuseReport: s.f("doNotSendNotificationEmailsForAbuseReport", S.option(S.bool)),
|
|
1048
|
+
emailToReceiveAbuseReport: s.f("emailToReceiveAbuseReport", S.option(S.string)),
|
|
1049
|
+
enableReceivePrerelease: s.f("enableReceivePrerelease", S.option(S.bool)),
|
|
1050
|
+
skipVersion: s.f("skipVersion", S.option(S.bool)),
|
|
1051
|
+
skipCherryPickVersion: s.f("skipCherryPickVersion", S.option(S.string)),
|
|
1052
|
+
trustedLinkUrlPatterns: s.f("trustedLinkUrlPatterns", S.option(S.json)),
|
|
1053
|
+
customSplashText: s.f("customSplashText", S.option(S.json)),
|
|
1054
|
+
disableRegistrationWhenInactive: s.f("disableRegistrationWhenInactive", S.option(S.bool)),
|
|
1055
|
+
disablePublicNoteWhenInactive: s.f("disablePublicNoteWhenInactive", S.option(S.bool)),
|
|
1056
|
+
moderatorInactivityLimitDays: s.f("moderatorInactivityLimitDays", S.option(S.int)),
|
|
1057
|
+
bubbleInstances: s.f("bubbleInstances", S.option(S.array(S.string))),
|
|
1058
|
+
customRobotsTxt: s.f("customRobotsTxt", S.option(S.string))
|
|
1059
1059
|
}));
|
|
1060
1060
|
|
|
1061
1061
|
function postAdminUpdateMeta(body, fetch) {
|
|
@@ -1064,7 +1064,7 @@ function postAdminUpdateMeta(body, fetch) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
let postAdminUpdateProxyAccountRequestSchema = S.object(s => ({
|
|
1067
|
-
description: s.
|
|
1067
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 1500, undefined)))
|
|
1068
1068
|
}));
|
|
1069
1069
|
|
|
1070
1070
|
let postAdminUpdateProxyAccountResponseSchema = KokonectLinkComponentSchemas.UserDetailed.schema;
|
|
@@ -1075,32 +1075,32 @@ function postAdminUpdateProxyAccount(body, fetch) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
1077
|
let postV2AdminEmojiListRequest_1Schema = S.object(s => ({
|
|
1078
|
-
updatedAtFrom: s.
|
|
1079
|
-
updatedAtTo: s.
|
|
1080
|
-
name: s.
|
|
1081
|
-
host: s.
|
|
1082
|
-
uri: s.
|
|
1083
|
-
publicUrl: s.
|
|
1084
|
-
originalUrl: s.
|
|
1085
|
-
type: s.
|
|
1086
|
-
aliases: s.
|
|
1087
|
-
category: s.
|
|
1088
|
-
license: s.
|
|
1089
|
-
isSensitive: s.
|
|
1090
|
-
localOnly: s.
|
|
1091
|
-
hostType: s.
|
|
1092
|
-
roleIds: s.
|
|
1078
|
+
updatedAtFrom: s.f("updatedAtFrom", S.option(S.string)),
|
|
1079
|
+
updatedAtTo: s.f("updatedAtTo", S.option(S.string)),
|
|
1080
|
+
name: s.f("name", S.option(S.string)),
|
|
1081
|
+
host: s.f("host", S.option(S.string)),
|
|
1082
|
+
uri: s.f("uri", S.option(S.string)),
|
|
1083
|
+
publicUrl: s.f("publicUrl", S.option(S.string)),
|
|
1084
|
+
originalUrl: s.f("originalUrl", S.option(S.string)),
|
|
1085
|
+
type: s.f("type", S.option(S.string)),
|
|
1086
|
+
aliases: s.f("aliases", S.option(S.string)),
|
|
1087
|
+
category: s.f("category", S.option(S.string)),
|
|
1088
|
+
license: s.f("license", S.option(S.string)),
|
|
1089
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
1090
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
1091
|
+
hostType: s.f("hostType", S.option(S.string)),
|
|
1092
|
+
roleIds: s.f("roleIds", S.option(S.array(S.string)))
|
|
1093
1093
|
}));
|
|
1094
1094
|
|
|
1095
1095
|
let postV2AdminEmojiListRequestSchema = S.object(s => ({
|
|
1096
|
-
query: s.
|
|
1097
|
-
sinceId: s.
|
|
1098
|
-
untilId: s.
|
|
1099
|
-
sinceDate: s.
|
|
1100
|
-
untilDate: s.
|
|
1101
|
-
limit: s.
|
|
1102
|
-
page: s.
|
|
1103
|
-
sortKeys: s.
|
|
1096
|
+
query: s.f("query", S.option(postV2AdminEmojiListRequest_1Schema)),
|
|
1097
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
1098
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
1099
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
1100
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
1101
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
1102
|
+
page: s.f("page", S.option(S.int)),
|
|
1103
|
+
sortKeys: s.f("sortKeys", S.option(S.array(S.string)))
|
|
1104
1104
|
}));
|
|
1105
1105
|
|
|
1106
1106
|
let postV2AdminEmojiListResponseSchema = S.object(s => ({
|