@f3liz/rescript-misskey-api 0.6.4 → 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 +141 -141
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +328 -328
- 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 +174 -174
- 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 +251 -251
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +15 -15
- 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 +115 -115
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +377 -377
- 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 +148 -148
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +44 -44
- 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 +20 -20
- 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 +141 -141
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +328 -328
- 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 +174 -174
- 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 +251 -251
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +15 -15
- 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 +115 -115
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +376 -376
- 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 +148 -148
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +44 -44
- 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 +20 -20
- 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
|
@@ -18,9 +18,9 @@ module ChatRoomMembership = {
|
|
|
18
18
|
id: s.field("id", S.string),
|
|
19
19
|
createdAt: s.field("createdAt", S.string),
|
|
20
20
|
userId: s.field("userId", S.string),
|
|
21
|
-
user: s.
|
|
21
|
+
user: s.field("user", S.option(S.dict(S.json))),
|
|
22
22
|
roomId: s.field("roomId", S.string),
|
|
23
|
-
room: s.
|
|
23
|
+
room: s.field("room", S.option(S.dict(S.json))),
|
|
24
24
|
})
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -35,7 +35,7 @@ module UserLite = {
|
|
|
35
35
|
name: s.field("name", S.string),
|
|
36
36
|
iconUrl: s.field("iconUrl", S.nullableAsOption(S.string)),
|
|
37
37
|
displayOrder: s.field("displayOrder", S.float),
|
|
38
|
-
behavior: s.
|
|
38
|
+
behavior: s.field("behavior", S.option(S.string)),
|
|
39
39
|
})
|
|
40
40
|
type userLite_2 = {
|
|
41
41
|
name: option<string>,
|
|
@@ -63,11 +63,11 @@ module UserLite = {
|
|
|
63
63
|
}
|
|
64
64
|
let userLite_1Schema = S.object(s => {
|
|
65
65
|
id: s.field("id", S.string),
|
|
66
|
-
angle: s.
|
|
67
|
-
flipH: s.
|
|
66
|
+
angle: s.field("angle", S.option(S.float)),
|
|
67
|
+
flipH: s.field("flipH", S.option(S.bool)),
|
|
68
68
|
url: s.field("url", S.string),
|
|
69
|
-
offsetX: s.
|
|
70
|
-
offsetY: s.
|
|
69
|
+
offsetX: s.field("offsetX", S.option(S.float)),
|
|
70
|
+
offsetY: s.field("offsetY", S.option(S.float)),
|
|
71
71
|
})
|
|
72
72
|
type t = {
|
|
73
73
|
id: string,
|
|
@@ -95,15 +95,15 @@ module UserLite = {
|
|
|
95
95
|
avatarUrl: s.field("avatarUrl", S.nullableAsOption(S.string)),
|
|
96
96
|
avatarBlurhash: s.field("avatarBlurhash", S.nullableAsOption(S.string)),
|
|
97
97
|
avatarDecorations: s.field("avatarDecorations", S.array(userLite_1Schema)),
|
|
98
|
-
isBot: s.
|
|
99
|
-
isCat: s.
|
|
100
|
-
requireSigninToViewContents: s.
|
|
101
|
-
makeNotesFollowersOnlyBefore: s.
|
|
102
|
-
makeNotesHiddenBefore: s.
|
|
103
|
-
instance: s.
|
|
98
|
+
isBot: s.field("isBot", S.option(S.bool)),
|
|
99
|
+
isCat: s.field("isCat", S.option(S.bool)),
|
|
100
|
+
requireSigninToViewContents: s.field("requireSigninToViewContents", S.option(S.bool)),
|
|
101
|
+
makeNotesFollowersOnlyBefore: s.field("makeNotesFollowersOnlyBefore", S.option(S.float)),
|
|
102
|
+
makeNotesHiddenBefore: s.field("makeNotesHiddenBefore", S.option(S.float)),
|
|
103
|
+
instance: s.field("instance", S.option(userLite_2Schema)),
|
|
104
104
|
emojis: s.field("emojis", S.dict(S.json)),
|
|
105
105
|
onlineStatus: s.field("onlineStatus", S.string),
|
|
106
|
-
badgeRoles: s.
|
|
106
|
+
badgeRoles: s.field("badgeRoles", S.option(S.array(userLite_3Schema))),
|
|
107
107
|
})
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -124,7 +124,7 @@ module ChatRoom = {
|
|
|
124
124
|
owner: s.field("owner", UserLite.schema),
|
|
125
125
|
name: s.field("name", S.string),
|
|
126
126
|
description: s.field("description", S.string),
|
|
127
|
-
isMuted: s.
|
|
127
|
+
isMuted: s.field("isMuted", S.option(S.bool)),
|
|
128
128
|
})
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -162,9 +162,9 @@ module DriveFolder = {
|
|
|
162
162
|
createdAt: s.field("createdAt", S.string),
|
|
163
163
|
name: s.field("name", S.string),
|
|
164
164
|
parentId: s.field("parentId", S.nullableAsOption(S.string)),
|
|
165
|
-
foldersCount: s.
|
|
166
|
-
filesCount: s.
|
|
167
|
-
parent: s.
|
|
165
|
+
foldersCount: s.field("foldersCount", S.option(S.float)),
|
|
166
|
+
filesCount: s.field("filesCount", S.option(S.float)),
|
|
167
|
+
parent: s.field("parent", S.option(schema)),
|
|
168
168
|
}))
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -176,10 +176,10 @@ module DriveFile = {
|
|
|
176
176
|
avgColor: option<string>,
|
|
177
177
|
}
|
|
178
178
|
let driveFile_1Schema = S.object(s => {
|
|
179
|
-
width: s.
|
|
180
|
-
height: s.
|
|
181
|
-
orientation: s.
|
|
182
|
-
avgColor: s.
|
|
179
|
+
width: s.field("width", S.option(S.float)),
|
|
180
|
+
height: s.field("height", S.option(S.float)),
|
|
181
|
+
orientation: s.field("orientation", S.option(S.float)),
|
|
182
|
+
avgColor: s.field("avgColor", S.option(S.string)),
|
|
183
183
|
})
|
|
184
184
|
type t = {
|
|
185
185
|
id: string,
|
|
@@ -208,16 +208,16 @@ module DriveFile = {
|
|
|
208
208
|
md5: s.field("md5", S.string),
|
|
209
209
|
size: s.field("size", S.float),
|
|
210
210
|
isSensitive: s.field("isSensitive", S.bool),
|
|
211
|
-
isSensitiveByModerator: s.
|
|
211
|
+
isSensitiveByModerator: s.field("isSensitiveByModerator", S.option(S.bool)),
|
|
212
212
|
blurhash: s.field("blurhash", S.nullableAsOption(S.string)),
|
|
213
213
|
properties: s.field("properties", driveFile_1Schema),
|
|
214
214
|
url: s.field("url", S.string),
|
|
215
215
|
thumbnailUrl: s.field("thumbnailUrl", S.nullableAsOption(S.string)),
|
|
216
216
|
comment: s.field("comment", S.nullableAsOption(S.string)),
|
|
217
217
|
folderId: s.field("folderId", S.nullableAsOption(S.string)),
|
|
218
|
-
folder: s.
|
|
218
|
+
folder: s.field("folder", S.option(DriveFolder.schema)),
|
|
219
219
|
userId: s.field("userId", S.nullableAsOption(S.string)),
|
|
220
|
-
user: s.
|
|
220
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
221
221
|
})
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -247,9 +247,9 @@ module ChatMessageLiteForRoom = {
|
|
|
247
247
|
fromUserId: s.field("fromUserId", S.string),
|
|
248
248
|
fromUser: s.field("fromUser", UserLite.schema),
|
|
249
249
|
toRoomId: s.field("toRoomId", S.string),
|
|
250
|
-
text: s.
|
|
251
|
-
fileId: s.
|
|
252
|
-
file: s.
|
|
250
|
+
text: s.field("text", S.option(S.string)),
|
|
251
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
252
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
253
253
|
reactions: s.field("reactions", S.array(chatMessageLiteForRoom_1Schema)),
|
|
254
254
|
})
|
|
255
255
|
}
|
|
@@ -276,9 +276,9 @@ module ChatMessageLiteFor1on1 = {
|
|
|
276
276
|
createdAt: s.field("createdAt", S.string),
|
|
277
277
|
fromUserId: s.field("fromUserId", S.string),
|
|
278
278
|
toUserId: s.field("toUserId", S.string),
|
|
279
|
-
text: s.
|
|
280
|
-
fileId: s.
|
|
281
|
-
file: s.
|
|
279
|
+
text: s.field("text", S.option(S.string)),
|
|
280
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
281
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
282
282
|
reactions: s.field("reactions", S.array(chatMessageLiteFor1on1_1Schema)),
|
|
283
283
|
})
|
|
284
284
|
}
|
|
@@ -290,7 +290,7 @@ module ChatMessageLite = {
|
|
|
290
290
|
}
|
|
291
291
|
let chatMessageLite_1Schema = S.object(s => {
|
|
292
292
|
reaction: s.field("reaction", S.string),
|
|
293
|
-
user: s.
|
|
293
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
294
294
|
})
|
|
295
295
|
type t = {
|
|
296
296
|
id: string,
|
|
@@ -308,12 +308,12 @@ module ChatMessageLite = {
|
|
|
308
308
|
id: s.field("id", S.string),
|
|
309
309
|
createdAt: s.field("createdAt", S.string),
|
|
310
310
|
fromUserId: s.field("fromUserId", S.string),
|
|
311
|
-
fromUser: s.
|
|
312
|
-
toUserId: s.
|
|
313
|
-
toRoomId: s.
|
|
314
|
-
text: s.
|
|
315
|
-
fileId: s.
|
|
316
|
-
file: s.
|
|
311
|
+
fromUser: s.field("fromUser", S.option(S.dict(S.json))),
|
|
312
|
+
toUserId: s.field("toUserId", S.option(S.string)),
|
|
313
|
+
toRoomId: s.field("toRoomId", S.option(S.string)),
|
|
314
|
+
text: s.field("text", S.option(S.string)),
|
|
315
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
316
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
317
317
|
reactions: s.field("reactions", S.array(chatMessageLite_1Schema)),
|
|
318
318
|
})
|
|
319
319
|
}
|
|
@@ -347,14 +347,14 @@ module ChatMessage = {
|
|
|
347
347
|
createdAt: s.field("createdAt", S.string),
|
|
348
348
|
fromUserId: s.field("fromUserId", S.string),
|
|
349
349
|
fromUser: s.field("fromUser", UserLite.schema),
|
|
350
|
-
toUserId: s.
|
|
351
|
-
toUser: s.
|
|
352
|
-
toRoomId: s.
|
|
353
|
-
toRoom: s.
|
|
354
|
-
text: s.
|
|
355
|
-
fileId: s.
|
|
356
|
-
file: s.
|
|
357
|
-
isRead: s.
|
|
350
|
+
toUserId: s.field("toUserId", S.option(S.string)),
|
|
351
|
+
toUser: s.field("toUser", S.option(UserLite.schema)),
|
|
352
|
+
toRoomId: s.field("toRoomId", S.option(S.string)),
|
|
353
|
+
toRoom: s.field("toRoom", S.option(ChatRoom.schema)),
|
|
354
|
+
text: s.field("text", S.option(S.string)),
|
|
355
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
356
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
357
|
+
isRead: s.field("isRead", S.option(S.bool)),
|
|
358
358
|
reactions: s.field("reactions", S.array(chatMessage_1Schema)),
|
|
359
359
|
})
|
|
360
360
|
}
|
|
@@ -377,10 +377,10 @@ module AbuseReportNotificationRecipient = {
|
|
|
377
377
|
updatedAt: s.field("updatedAt", S.string),
|
|
378
378
|
name: s.field("name", S.string),
|
|
379
379
|
method_: s.field("method", S.string),
|
|
380
|
-
userId: s.
|
|
381
|
-
user: s.
|
|
382
|
-
systemWebhookId: s.
|
|
383
|
-
systemWebhook: s.
|
|
380
|
+
userId: s.field("userId", S.option(S.string)),
|
|
381
|
+
user: s.field("user", S.option(S.dict(S.json))),
|
|
382
|
+
systemWebhookId: s.field("systemWebhookId", S.option(S.string)),
|
|
383
|
+
systemWebhook: s.field("systemWebhook", S.option(S.dict(S.json))),
|
|
384
384
|
})
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -547,7 +547,7 @@ module Announcement = {
|
|
|
547
547
|
closeDuration: s.field("closeDuration", S.float),
|
|
548
548
|
displayOrder: s.field("displayOrder", S.float),
|
|
549
549
|
silence: s.field("silence", S.bool),
|
|
550
|
-
isRead: s.
|
|
550
|
+
isRead: s.field("isRead", S.option(S.bool)),
|
|
551
551
|
})
|
|
552
552
|
}
|
|
553
553
|
|
|
@@ -588,21 +588,21 @@ module MeDetailedOnly = {
|
|
|
588
588
|
test: option<dict<JSON.t>>,
|
|
589
589
|
}
|
|
590
590
|
let meDetailedOnly_1Schema = S.object(s => {
|
|
591
|
-
note: s.
|
|
592
|
-
follow: s.
|
|
593
|
-
mention: s.
|
|
594
|
-
reply: s.
|
|
595
|
-
renote: s.
|
|
596
|
-
quote: s.
|
|
597
|
-
reaction: s.
|
|
598
|
-
pollEnded: s.
|
|
599
|
-
receiveFollowRequest: s.
|
|
600
|
-
followRequestAccepted: s.
|
|
601
|
-
roleAssigned: s.
|
|
602
|
-
chatRoomInvitationReceived: s.
|
|
603
|
-
achievementEarned: s.
|
|
604
|
-
app: s.
|
|
605
|
-
test: s.
|
|
591
|
+
note: s.field("note", S.option(S.dict(S.json))),
|
|
592
|
+
follow: s.field("follow", S.option(S.dict(S.json))),
|
|
593
|
+
mention: s.field("mention", S.option(S.dict(S.json))),
|
|
594
|
+
reply: s.field("reply", S.option(S.dict(S.json))),
|
|
595
|
+
renote: s.field("renote", S.option(S.dict(S.json))),
|
|
596
|
+
quote: s.field("quote", S.option(S.dict(S.json))),
|
|
597
|
+
reaction: s.field("reaction", S.option(S.dict(S.json))),
|
|
598
|
+
pollEnded: s.field("pollEnded", S.option(S.dict(S.json))),
|
|
599
|
+
receiveFollowRequest: s.field("receiveFollowRequest", S.option(S.dict(S.json))),
|
|
600
|
+
followRequestAccepted: s.field("followRequestAccepted", S.option(S.dict(S.json))),
|
|
601
|
+
roleAssigned: s.field("roleAssigned", S.option(S.dict(S.json))),
|
|
602
|
+
chatRoomInvitationReceived: s.field("chatRoomInvitationReceived", S.option(S.dict(S.json))),
|
|
603
|
+
achievementEarned: s.field("achievementEarned", S.option(S.dict(S.json))),
|
|
604
|
+
app: s.field("app", S.option(S.dict(S.json))),
|
|
605
|
+
test: s.field("test", S.option(S.dict(S.json))),
|
|
606
606
|
})
|
|
607
607
|
type t = {
|
|
608
608
|
avatarId: option<string>,
|
|
@@ -692,9 +692,9 @@ module MeDetailedOnly = {
|
|
|
692
692
|
twoFactorEnabled: s.field("twoFactorEnabled", S.bool),
|
|
693
693
|
usePasswordLessLogin: s.field("usePasswordLessLogin", S.bool),
|
|
694
694
|
securityKeys: s.field("securityKeys", S.bool),
|
|
695
|
-
email: s.
|
|
696
|
-
emailVerified: s.
|
|
697
|
-
securityKeysList: s.
|
|
695
|
+
email: s.field("email", S.option(S.string)),
|
|
696
|
+
emailVerified: s.field("emailVerified", S.option(S.bool)),
|
|
697
|
+
securityKeysList: s.field("securityKeysList", S.option(S.array(meDetailedOnly_3Schema))),
|
|
698
698
|
})
|
|
699
699
|
}
|
|
700
700
|
|
|
@@ -768,7 +768,7 @@ module Page = {
|
|
|
768
768
|
eyeCatchingImage: s.field("eyeCatchingImage", S.nullableAsOption(DriveFile.schema)),
|
|
769
769
|
attachedFiles: s.field("attachedFiles", S.array(DriveFile.schema)),
|
|
770
770
|
likedCount: s.field("likedCount", S.float),
|
|
771
|
-
isLiked: s.
|
|
771
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
772
772
|
visibility: s.field("visibility", S.string),
|
|
773
773
|
})
|
|
774
774
|
}
|
|
@@ -806,7 +806,7 @@ module Note = {
|
|
|
806
806
|
choices: array<note_3>,
|
|
807
807
|
}
|
|
808
808
|
let note_1Schema = S.object(s => {
|
|
809
|
-
expiresAt: s.
|
|
809
|
+
expiresAt: s.field("expiresAt", S.option(S.string)),
|
|
810
810
|
multiple: s.field("multiple", S.bool),
|
|
811
811
|
choices: s.field("choices", S.array(note_3Schema)),
|
|
812
812
|
})
|
|
@@ -850,39 +850,39 @@ module Note = {
|
|
|
850
850
|
let schema = S.recursive("Note", schema => S.object(s => {
|
|
851
851
|
id: s.field("id", S.string),
|
|
852
852
|
createdAt: s.field("createdAt", S.string),
|
|
853
|
-
deletedAt: s.
|
|
853
|
+
deletedAt: s.field("deletedAt", S.option(S.string)),
|
|
854
854
|
text: s.field("text", S.nullableAsOption(S.string)),
|
|
855
|
-
cw: s.
|
|
855
|
+
cw: s.field("cw", S.option(S.string)),
|
|
856
856
|
userId: s.field("userId", S.string),
|
|
857
857
|
user: s.field("user", UserLite.schema),
|
|
858
|
-
replyId: s.
|
|
859
|
-
renoteId: s.
|
|
860
|
-
reply: s.
|
|
861
|
-
renote: s.
|
|
862
|
-
isHidden: s.
|
|
858
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
859
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
860
|
+
reply: s.field("reply", S.option(schema)),
|
|
861
|
+
renote: s.field("renote", S.option(schema)),
|
|
862
|
+
isHidden: s.field("isHidden", S.option(S.bool)),
|
|
863
863
|
visibility: s.field("visibility", S.string),
|
|
864
|
-
mentions: s.
|
|
865
|
-
visibleUserIds: s.
|
|
866
|
-
fileIds: s.
|
|
867
|
-
files: s.
|
|
868
|
-
tags: s.
|
|
869
|
-
poll: s.
|
|
870
|
-
emojis: s.
|
|
871
|
-
channelId: s.
|
|
872
|
-
channel: s.
|
|
873
|
-
localOnly: s.
|
|
874
|
-
dimension: s.
|
|
864
|
+
mentions: s.field("mentions", S.option(S.array(S.string))),
|
|
865
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
866
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
867
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
868
|
+
tags: s.field("tags", S.option(S.array(S.string))),
|
|
869
|
+
poll: s.field("poll", S.option(note_1Schema)),
|
|
870
|
+
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
871
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
872
|
+
channel: s.field("channel", S.option(note_2Schema)),
|
|
873
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
874
|
+
dimension: s.field("dimension", S.option(S.int)),
|
|
875
875
|
reactionAcceptance: s.field("reactionAcceptance", S.nullableAsOption(S.string)),
|
|
876
876
|
reactionEmojis: s.field("reactionEmojis", S.dict(S.json)),
|
|
877
877
|
reactions: s.field("reactions", S.dict(S.json)),
|
|
878
878
|
reactionCount: s.field("reactionCount", S.float),
|
|
879
879
|
renoteCount: s.field("renoteCount", S.float),
|
|
880
880
|
repliesCount: s.field("repliesCount", S.float),
|
|
881
|
-
uri: s.
|
|
882
|
-
url: s.
|
|
883
|
-
reactionAndUserPairCache: s.
|
|
884
|
-
clippedCount: s.
|
|
885
|
-
myReaction: s.
|
|
881
|
+
uri: s.field("uri", S.option(S.string)),
|
|
882
|
+
url: s.field("url", S.option(S.string)),
|
|
883
|
+
reactionAndUserPairCache: s.field("reactionAndUserPairCache", S.option(S.array(S.string))),
|
|
884
|
+
clippedCount: s.field("clippedCount", S.option(S.float)),
|
|
885
|
+
myReaction: s.field("myReaction", S.option(S.string)),
|
|
886
886
|
}))
|
|
887
887
|
}
|
|
888
888
|
|
|
@@ -1001,23 +1001,23 @@ module UserDetailedNotMeOnly = {
|
|
|
1001
1001
|
chatScope: s.field("chatScope", S.string),
|
|
1002
1002
|
canChat: s.field("canChat", S.bool),
|
|
1003
1003
|
roles: s.field("roles", S.array(RoleLite.schema)),
|
|
1004
|
-
followedMessage: s.
|
|
1004
|
+
followedMessage: s.field("followedMessage", S.option(S.string)),
|
|
1005
1005
|
memo: s.field("memo", S.nullableAsOption(S.string)),
|
|
1006
|
-
moderationNote: s.
|
|
1007
|
-
twoFactorEnabled: s.
|
|
1008
|
-
usePasswordLessLogin: s.
|
|
1009
|
-
securityKeys: s.
|
|
1006
|
+
moderationNote: s.field("moderationNote", S.option(S.string)),
|
|
1007
|
+
twoFactorEnabled: s.field("twoFactorEnabled", S.option(S.bool)),
|
|
1008
|
+
usePasswordLessLogin: s.field("usePasswordLessLogin", S.option(S.bool)),
|
|
1009
|
+
securityKeys: s.field("securityKeys", S.option(S.bool)),
|
|
1010
1010
|
mutualLinkSections: s.field("mutualLinkSections", S.array(userDetailedNotMeOnly_2Schema)),
|
|
1011
|
-
isFollowing: s.
|
|
1012
|
-
isFollowed: s.
|
|
1013
|
-
hasPendingFollowRequestFromYou: s.
|
|
1014
|
-
hasPendingFollowRequestToYou: s.
|
|
1015
|
-
isBlocking: s.
|
|
1016
|
-
isBlocked: s.
|
|
1017
|
-
isMuted: s.
|
|
1018
|
-
isRenoteMuted: s.
|
|
1019
|
-
notify: s.
|
|
1020
|
-
withReplies: s.
|
|
1011
|
+
isFollowing: s.field("isFollowing", S.option(S.bool)),
|
|
1012
|
+
isFollowed: s.field("isFollowed", S.option(S.bool)),
|
|
1013
|
+
hasPendingFollowRequestFromYou: s.field("hasPendingFollowRequestFromYou", S.option(S.bool)),
|
|
1014
|
+
hasPendingFollowRequestToYou: s.field("hasPendingFollowRequestToYou", S.option(S.bool)),
|
|
1015
|
+
isBlocking: s.field("isBlocking", S.option(S.bool)),
|
|
1016
|
+
isBlocked: s.field("isBlocked", S.option(S.bool)),
|
|
1017
|
+
isMuted: s.field("isMuted", S.option(S.bool)),
|
|
1018
|
+
isRenoteMuted: s.field("isRenoteMuted", S.option(S.bool)),
|
|
1019
|
+
notify: s.field("notify", S.option(S.string)),
|
|
1020
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
1021
1021
|
})
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
@@ -1082,7 +1082,7 @@ module AbuseUserReport = {
|
|
|
1082
1082
|
targetUserId: s.field("targetUserId", S.string),
|
|
1083
1083
|
targetUser: s.field("targetUser", UserDetailed.schema),
|
|
1084
1084
|
assigneeId: s.field("assigneeId", S.nullableAsOption(S.string)),
|
|
1085
|
-
assignee: s.
|
|
1085
|
+
assignee: s.field("assignee", S.option(UserDetailed.schema)),
|
|
1086
1086
|
forwarded: s.field("forwarded", S.bool),
|
|
1087
1087
|
moderationNote: s.field("moderationNote", S.string),
|
|
1088
1088
|
})
|
|
@@ -1119,7 +1119,7 @@ module MetaDetailedOnly = {
|
|
|
1119
1119
|
turnstile: s.field("turnstile", S.bool),
|
|
1120
1120
|
objectStorage: s.field("objectStorage", S.bool),
|
|
1121
1121
|
serviceWorker: s.field("serviceWorker", S.bool),
|
|
1122
|
-
miauth: s.
|
|
1122
|
+
miauth: s.field("miauth", S.option(S.bool)),
|
|
1123
1123
|
})
|
|
1124
1124
|
type t = {
|
|
1125
1125
|
features: option<metaDetailedOnly_1>,
|
|
@@ -1129,7 +1129,7 @@ module MetaDetailedOnly = {
|
|
|
1129
1129
|
cacheRemoteSensitiveFiles: bool,
|
|
1130
1130
|
}
|
|
1131
1131
|
let schema = S.object(s => {
|
|
1132
|
-
features: s.
|
|
1132
|
+
features: s.field("features", S.option(metaDetailedOnly_1Schema)),
|
|
1133
1133
|
proxyAccountName: s.field("proxyAccountName", S.nullableAsOption(S.string)),
|
|
1134
1134
|
requireSetup: s.field("requireSetup", S.bool),
|
|
1135
1135
|
cacheRemoteFiles: s.field("cacheRemoteFiles", S.bool),
|
|
@@ -1152,9 +1152,9 @@ module MetaLite = {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
let metaLite_2Schema = S.object(s => {
|
|
1154
1154
|
options: s.field("options", metaLite_3Schema),
|
|
1155
|
-
vueIntegration: s.
|
|
1156
|
-
browserTracingIntegration: s.
|
|
1157
|
-
replayIntegration: s.
|
|
1155
|
+
vueIntegration: s.field("vueIntegration", S.option(S.dict(S.json))),
|
|
1156
|
+
browserTracingIntegration: s.field("browserTracingIntegration", S.option(S.dict(S.json))),
|
|
1157
|
+
replayIntegration: s.field("replayIntegration", S.option(S.dict(S.json))),
|
|
1158
1158
|
})
|
|
1159
1159
|
type metaLite_1 = {
|
|
1160
1160
|
id: string,
|
|
@@ -1574,7 +1574,7 @@ module Flash = {
|
|
|
1574
1574
|
script: s.field("script", S.string),
|
|
1575
1575
|
visibility: s.field("visibility", S.string),
|
|
1576
1576
|
likedCount: s.field("likedCount", S.nullableAsOption(S.float)),
|
|
1577
|
-
isLiked: s.
|
|
1577
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
1578
1578
|
})
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
@@ -1652,8 +1652,8 @@ module EmojiDetailed = {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
let schema = S.object(s => {
|
|
1654
1654
|
id: s.field("id", S.string),
|
|
1655
|
-
createdAt: s.
|
|
1656
|
-
updatedAt: s.
|
|
1655
|
+
createdAt: s.field("createdAt", S.option(S.string)),
|
|
1656
|
+
updatedAt: s.field("updatedAt", S.option(S.string)),
|
|
1657
1657
|
aliases: s.field("aliases", S.array(S.string)),
|
|
1658
1658
|
name: s.field("name", S.string),
|
|
1659
1659
|
category: s.field("category", S.nullableAsOption(S.string)),
|
|
@@ -1662,10 +1662,10 @@ module EmojiDetailed = {
|
|
|
1662
1662
|
license: s.field("license", S.nullableAsOption(S.string)),
|
|
1663
1663
|
isSensitive: s.field("isSensitive", S.bool),
|
|
1664
1664
|
localOnly: s.field("localOnly", S.bool),
|
|
1665
|
-
requestedBy: s.
|
|
1666
|
-
memo: s.
|
|
1667
|
-
roleIdsThatCanBeUsedThisEmojiAsReaction: s.
|
|
1668
|
-
roleIdsThatCanNotBeUsedThisEmojiAsReaction: s.
|
|
1665
|
+
requestedBy: s.field("requestedBy", S.option(S.string)),
|
|
1666
|
+
memo: s.field("memo", S.option(S.string)),
|
|
1667
|
+
roleIdsThatCanBeUsedThisEmojiAsReaction: s.field("roleIdsThatCanBeUsedThisEmojiAsReaction", S.option(S.array(S.string))),
|
|
1668
|
+
roleIdsThatCanNotBeUsedThisEmojiAsReaction: s.field("roleIdsThatCanNotBeUsedThisEmojiAsReaction", S.option(S.array(S.string))),
|
|
1669
1669
|
})
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
@@ -1685,10 +1685,10 @@ module EmojiSimple = {
|
|
|
1685
1685
|
name: s.field("name", S.string),
|
|
1686
1686
|
category: s.field("category", S.nullableAsOption(S.string)),
|
|
1687
1687
|
url: s.field("url", S.string),
|
|
1688
|
-
localOnly: s.
|
|
1689
|
-
isSensitive: s.
|
|
1690
|
-
roleIdsThatCanBeUsedThisEmojiAsReaction: s.
|
|
1691
|
-
roleIdsThatCanNotBeUsedThisEmojiAsReaction: s.
|
|
1688
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
1689
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
1690
|
+
roleIdsThatCanBeUsedThisEmojiAsReaction: s.field("roleIdsThatCanBeUsedThisEmojiAsReaction", S.option(S.array(S.string))),
|
|
1691
|
+
roleIdsThatCanNotBeUsedThisEmojiAsReaction: s.field("roleIdsThatCanNotBeUsedThisEmojiAsReaction", S.option(S.array(S.string))),
|
|
1692
1692
|
})
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
@@ -1716,12 +1716,12 @@ module GalleryPost = {
|
|
|
1716
1716
|
user: s.field("user", UserLite.schema),
|
|
1717
1717
|
title: s.field("title", S.string),
|
|
1718
1718
|
description: s.field("description", S.nullableAsOption(S.string)),
|
|
1719
|
-
fileIds: s.
|
|
1720
|
-
files: s.
|
|
1721
|
-
tags: s.
|
|
1719
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
1720
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
1721
|
+
tags: s.field("tags", S.option(S.array(S.string))),
|
|
1722
1722
|
isSensitive: s.field("isSensitive", S.bool),
|
|
1723
1723
|
likedCount: s.field("likedCount", S.float),
|
|
1724
|
-
isLiked: s.
|
|
1724
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
1725
1725
|
})
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
@@ -1791,7 +1791,7 @@ module FederationInstance = {
|
|
|
1791
1791
|
themeColor: s.field("themeColor", S.nullableAsOption(S.string)),
|
|
1792
1792
|
infoUpdatedAt: s.field("infoUpdatedAt", S.nullableAsOption(S.string)),
|
|
1793
1793
|
latestRequestReceivedAt: s.field("latestRequestReceivedAt", S.nullableAsOption(S.string)),
|
|
1794
|
-
moderationNote: s.
|
|
1794
|
+
moderationNote: s.field("moderationNote", S.option(S.string)),
|
|
1795
1795
|
})
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
@@ -1819,8 +1819,8 @@ module Clip = {
|
|
|
1819
1819
|
description: s.field("description", S.nullableAsOption(S.string)),
|
|
1820
1820
|
isPublic: s.field("isPublic", S.bool),
|
|
1821
1821
|
favoritedCount: s.field("favoritedCount", S.float),
|
|
1822
|
-
isFavorited: s.
|
|
1823
|
-
notesCount: s.
|
|
1822
|
+
isFavorited: s.field("isFavorited", S.option(S.bool)),
|
|
1823
|
+
notesCount: s.field("notesCount", S.option(S.int)),
|
|
1824
1824
|
})
|
|
1825
1825
|
}
|
|
1826
1826
|
|
|
@@ -1917,9 +1917,9 @@ module Channel = {
|
|
|
1917
1917
|
notesCount: s.field("notesCount", S.float),
|
|
1918
1918
|
isSensitive: s.field("isSensitive", S.bool),
|
|
1919
1919
|
allowRenoteToExternal: s.field("allowRenoteToExternal", S.bool),
|
|
1920
|
-
isFollowing: s.
|
|
1921
|
-
isFavorited: s.
|
|
1922
|
-
pinnedNotes: s.
|
|
1920
|
+
isFollowing: s.field("isFollowing", S.option(S.bool)),
|
|
1921
|
+
isFavorited: s.field("isFavorited", S.option(S.bool)),
|
|
1922
|
+
pinnedNotes: s.field("pinnedNotes", S.option(S.array(Note.schema))),
|
|
1923
1923
|
})
|
|
1924
1924
|
}
|
|
1925
1925
|
|
|
@@ -2052,8 +2052,8 @@ module Following = {
|
|
|
2052
2052
|
createdAt: s.field("createdAt", S.string),
|
|
2053
2053
|
followeeId: s.field("followeeId", S.string),
|
|
2054
2054
|
followerId: s.field("followerId", S.string),
|
|
2055
|
-
followee: s.
|
|
2056
|
-
follower: s.
|
|
2055
|
+
followee: s.field("followee", S.option(S.dict(S.json))),
|
|
2056
|
+
follower: s.field("follower", S.option(S.dict(S.json))),
|
|
2057
2057
|
})
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
@@ -2133,11 +2133,11 @@ module NoteDraft = {
|
|
|
2133
2133
|
cw: s.field("cw", S.nullableAsOption(S.string)),
|
|
2134
2134
|
visibility: s.field("visibility", S.string),
|
|
2135
2135
|
localOnly: s.field("localOnly", S.bool),
|
|
2136
|
-
lang: s.
|
|
2137
|
-
dimension: s.
|
|
2136
|
+
lang: s.field("lang", S.option(S.string)),
|
|
2137
|
+
dimension: s.field("dimension", S.option(S.int)),
|
|
2138
2138
|
files: s.field("files", S.array(DriveFile.schema)),
|
|
2139
2139
|
poll: s.field("poll", S.nullableAsOption(noteDraft_5Schema)),
|
|
2140
|
-
visibleUserIds: s.
|
|
2140
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
2141
2141
|
})
|
|
2142
2142
|
type noteDraft_2 = {
|
|
2143
2143
|
id: string,
|
|
@@ -2171,10 +2171,10 @@ module NoteDraft = {
|
|
|
2171
2171
|
id: s.field("id", S.string),
|
|
2172
2172
|
updatedAt: s.field("updatedAt", S.string),
|
|
2173
2173
|
scheduledAt: s.field("scheduledAt", S.nullableAsOption(S.string)),
|
|
2174
|
-
reason: s.
|
|
2175
|
-
channel: s.
|
|
2176
|
-
renote: s.
|
|
2177
|
-
reply: s.
|
|
2174
|
+
reason: s.field("reason", S.option(S.string)),
|
|
2175
|
+
channel: s.field("channel", S.option(noteDraft_1Schema)),
|
|
2176
|
+
renote: s.field("renote", S.option(noteDraft_2Schema)),
|
|
2177
|
+
reply: s.field("reply", S.option(noteDraft_2Schema)),
|
|
2178
2178
|
data: s.field("data", noteDraft_3Schema),
|
|
2179
2179
|
})
|
|
2180
2180
|
}
|
|
@@ -2193,8 +2193,8 @@ module App = {
|
|
|
2193
2193
|
name: s.field("name", S.string),
|
|
2194
2194
|
callbackUrl: s.field("callbackUrl", S.nullableAsOption(S.string)),
|
|
2195
2195
|
permission: s.field("permission", S.array(S.string)),
|
|
2196
|
-
secret: s.
|
|
2197
|
-
isAuthorized: s.
|
|
2196
|
+
secret: s.field("secret", S.option(S.string)),
|
|
2197
|
+
isAuthorized: s.field("isAuthorized", S.option(S.bool)),
|
|
2198
2198
|
})
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
@@ -2277,7 +2277,7 @@ module UserList = {
|
|
|
2277
2277
|
id: s.field("id", S.string),
|
|
2278
2278
|
createdAt: s.field("createdAt", S.string),
|
|
2279
2279
|
name: s.field("name", S.string),
|
|
2280
|
-
userIds: s.
|
|
2280
|
+
userIds: s.field("userIds", S.option(S.array(S.string))),
|
|
2281
2281
|
isPublic: s.field("isPublic", S.bool),
|
|
2282
2282
|
})
|
|
2283
2283
|
}
|