@f3liz/rescript-misskey-api 0.6.5 → 0.6.7
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/lib/es6/src/stream/StreamClient.mjs +13 -2
- 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
- package/src/stream/StreamClient.res +14 -2
|
@@ -44,12 +44,12 @@ module UserLite = {
|
|
|
44
44
|
}
|
|
45
45
|
let userLite_1Schema = S.object(s => {
|
|
46
46
|
id: s.field("id", S.string),
|
|
47
|
-
angle: s.
|
|
48
|
-
flipH: s.
|
|
49
|
-
offsetX: s.
|
|
50
|
-
offsetY: s.
|
|
51
|
-
scale: s.
|
|
52
|
-
opacity: s.
|
|
47
|
+
angle: s.field("angle", S.option(S.float)),
|
|
48
|
+
flipH: s.field("flipH", S.option(S.bool)),
|
|
49
|
+
offsetX: s.field("offsetX", S.option(S.float)),
|
|
50
|
+
offsetY: s.field("offsetY", S.option(S.float)),
|
|
51
|
+
scale: s.field("scale", S.option(S.float)),
|
|
52
|
+
opacity: s.field("opacity", S.option(S.float)),
|
|
53
53
|
url: s.field("url", S.string),
|
|
54
54
|
})
|
|
55
55
|
type t = {
|
|
@@ -83,18 +83,18 @@ module UserLite = {
|
|
|
83
83
|
avatarBlurhash: s.field("avatarBlurhash", S.nullableAsOption(S.string)),
|
|
84
84
|
avatarDecorations: s.field("avatarDecorations", S.array(userLite_1Schema)),
|
|
85
85
|
isLocked: s.field("isLocked", S.bool),
|
|
86
|
-
isBot: s.
|
|
87
|
-
isCat: s.
|
|
88
|
-
isProxy: s.
|
|
89
|
-
requireSigninToViewContents: s.
|
|
90
|
-
makeNotesFollowersOnlyBefore: s.
|
|
91
|
-
makeNotesHiddenBefore: s.
|
|
92
|
-
instance: s.
|
|
86
|
+
isBot: s.field("isBot", S.option(S.bool)),
|
|
87
|
+
isCat: s.field("isCat", S.option(S.bool)),
|
|
88
|
+
isProxy: s.field("isProxy", S.option(S.bool)),
|
|
89
|
+
requireSigninToViewContents: s.field("requireSigninToViewContents", S.option(S.bool)),
|
|
90
|
+
makeNotesFollowersOnlyBefore: s.field("makeNotesFollowersOnlyBefore", S.option(S.float)),
|
|
91
|
+
makeNotesHiddenBefore: s.field("makeNotesHiddenBefore", S.option(S.float)),
|
|
92
|
+
instance: s.field("instance", S.option(userLite_2Schema)),
|
|
93
93
|
emojis: s.field("emojis", S.dict(S.json)),
|
|
94
94
|
onlineStatus: s.field("onlineStatus", S.string),
|
|
95
|
-
badgeRoles: s.
|
|
96
|
-
setFederationAvatarShape: s.
|
|
97
|
-
isSquareAvatars: s.
|
|
95
|
+
badgeRoles: s.field("badgeRoles", S.option(S.array(userLite_3Schema))),
|
|
96
|
+
setFederationAvatarShape: s.field("setFederationAvatarShape", S.option(S.bool)),
|
|
97
|
+
isSquareAvatars: s.field("isSquareAvatars", S.option(S.bool)),
|
|
98
98
|
})
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -113,9 +113,9 @@ module DriveFolder = {
|
|
|
113
113
|
createdAt: s.field("createdAt", S.string),
|
|
114
114
|
name: s.field("name", S.string),
|
|
115
115
|
parentId: s.field("parentId", S.nullableAsOption(S.string)),
|
|
116
|
-
foldersCount: s.
|
|
117
|
-
filesCount: s.
|
|
118
|
-
parent: s.
|
|
116
|
+
foldersCount: s.field("foldersCount", S.option(S.float)),
|
|
117
|
+
filesCount: s.field("filesCount", S.option(S.float)),
|
|
118
|
+
parent: s.field("parent", S.option(schema)),
|
|
119
119
|
}))
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -127,10 +127,10 @@ module DriveFile = {
|
|
|
127
127
|
avgColor: option<string>,
|
|
128
128
|
}
|
|
129
129
|
let driveFile_1Schema = S.object(s => {
|
|
130
|
-
width: s.
|
|
131
|
-
height: s.
|
|
132
|
-
orientation: s.
|
|
133
|
-
avgColor: s.
|
|
130
|
+
width: s.field("width", S.option(S.float)),
|
|
131
|
+
height: s.field("height", S.option(S.float)),
|
|
132
|
+
orientation: s.field("orientation", S.option(S.float)),
|
|
133
|
+
avgColor: s.field("avgColor", S.option(S.string)),
|
|
134
134
|
})
|
|
135
135
|
type t = {
|
|
136
136
|
id: string,
|
|
@@ -164,9 +164,9 @@ module DriveFile = {
|
|
|
164
164
|
thumbnailUrl: s.field("thumbnailUrl", S.nullableAsOption(S.string)),
|
|
165
165
|
comment: s.field("comment", S.nullableAsOption(S.string)),
|
|
166
166
|
folderId: s.field("folderId", S.nullableAsOption(S.string)),
|
|
167
|
-
folder: s.
|
|
167
|
+
folder: s.field("folder", S.option(DriveFolder.schema)),
|
|
168
168
|
userId: s.field("userId", S.nullableAsOption(S.string)),
|
|
169
|
-
user: s.
|
|
169
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
170
170
|
})
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -216,13 +216,13 @@ module NoteHistory = {
|
|
|
216
216
|
updatedAt: s.field("updatedAt", S.string),
|
|
217
217
|
userId: s.field("userId", S.string),
|
|
218
218
|
text: s.field("text", S.nullableAsOption(S.string)),
|
|
219
|
-
cw: s.
|
|
220
|
-
poll: s.
|
|
221
|
-
event: s.
|
|
222
|
-
fileIds: s.
|
|
223
|
-
files: s.
|
|
219
|
+
cw: s.field("cw", S.option(S.string)),
|
|
220
|
+
poll: s.field("poll", S.option(noteHistory_1Schema)),
|
|
221
|
+
event: s.field("event", S.option(noteHistory_2Schema)),
|
|
222
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
223
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
224
224
|
visibility: s.field("visibility", S.string),
|
|
225
|
-
visibleUserIds: s.
|
|
225
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
226
226
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
227
227
|
})
|
|
228
228
|
}
|
|
@@ -245,8 +245,8 @@ module ChatRoom = {
|
|
|
245
245
|
owner: s.field("owner", UserLite.schema),
|
|
246
246
|
name: s.field("name", S.string),
|
|
247
247
|
description: s.field("description", S.string),
|
|
248
|
-
isMuted: s.
|
|
249
|
-
invitationExists: s.
|
|
248
|
+
isMuted: s.field("isMuted", S.option(S.bool)),
|
|
249
|
+
invitationExists: s.field("invitationExists", S.option(S.bool)),
|
|
250
250
|
})
|
|
251
251
|
}
|
|
252
252
|
|
|
@@ -263,9 +263,9 @@ module ChatRoomMembership = {
|
|
|
263
263
|
id: s.field("id", S.string),
|
|
264
264
|
createdAt: s.field("createdAt", S.string),
|
|
265
265
|
userId: s.field("userId", S.string),
|
|
266
|
-
user: s.
|
|
266
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
267
267
|
roomId: s.field("roomId", S.string),
|
|
268
|
-
room: s.
|
|
268
|
+
room: s.field("room", S.option(ChatRoom.schema)),
|
|
269
269
|
})
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -315,9 +315,9 @@ module ChatMessageLiteForRoom = {
|
|
|
315
315
|
fromUserId: s.field("fromUserId", S.string),
|
|
316
316
|
fromUser: s.field("fromUser", UserLite.schema),
|
|
317
317
|
toRoomId: s.field("toRoomId", S.string),
|
|
318
|
-
text: s.
|
|
319
|
-
fileId: s.
|
|
320
|
-
file: s.
|
|
318
|
+
text: s.field("text", S.option(S.string)),
|
|
319
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
320
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
321
321
|
reactions: s.field("reactions", S.array(chatMessageLiteForRoom_1Schema)),
|
|
322
322
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
323
323
|
})
|
|
@@ -346,9 +346,9 @@ module ChatMessageLiteFor1on1 = {
|
|
|
346
346
|
createdAt: s.field("createdAt", S.string),
|
|
347
347
|
fromUserId: s.field("fromUserId", S.string),
|
|
348
348
|
toUserId: s.field("toUserId", S.string),
|
|
349
|
-
text: s.
|
|
350
|
-
fileId: s.
|
|
351
|
-
file: s.
|
|
349
|
+
text: s.field("text", S.option(S.string)),
|
|
350
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
351
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
352
352
|
reactions: s.field("reactions", S.array(chatMessageLiteFor1on1_1Schema)),
|
|
353
353
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
354
354
|
})
|
|
@@ -361,7 +361,7 @@ module ChatMessageLite = {
|
|
|
361
361
|
}
|
|
362
362
|
let chatMessageLite_1Schema = S.object(s => {
|
|
363
363
|
reaction: s.field("reaction", S.string),
|
|
364
|
-
user: s.
|
|
364
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
365
365
|
})
|
|
366
366
|
type t = {
|
|
367
367
|
id: string,
|
|
@@ -380,12 +380,12 @@ module ChatMessageLite = {
|
|
|
380
380
|
id: s.field("id", S.string),
|
|
381
381
|
createdAt: s.field("createdAt", S.string),
|
|
382
382
|
fromUserId: s.field("fromUserId", S.string),
|
|
383
|
-
fromUser: s.
|
|
384
|
-
toUserId: s.
|
|
385
|
-
toRoomId: s.
|
|
386
|
-
text: s.
|
|
387
|
-
fileId: s.
|
|
388
|
-
file: s.
|
|
383
|
+
fromUser: s.field("fromUser", S.option(UserLite.schema)),
|
|
384
|
+
toUserId: s.field("toUserId", S.option(S.string)),
|
|
385
|
+
toRoomId: s.field("toRoomId", S.option(S.string)),
|
|
386
|
+
text: s.field("text", S.option(S.string)),
|
|
387
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
388
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
389
389
|
reactions: s.field("reactions", S.array(chatMessageLite_1Schema)),
|
|
390
390
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
391
391
|
})
|
|
@@ -421,14 +421,14 @@ module ChatMessage = {
|
|
|
421
421
|
createdAt: s.field("createdAt", S.string),
|
|
422
422
|
fromUserId: s.field("fromUserId", S.string),
|
|
423
423
|
fromUser: s.field("fromUser", UserLite.schema),
|
|
424
|
-
toUserId: s.
|
|
425
|
-
toUser: s.
|
|
426
|
-
toRoomId: s.
|
|
427
|
-
toRoom: s.
|
|
428
|
-
text: s.
|
|
429
|
-
fileId: s.
|
|
430
|
-
file: s.
|
|
431
|
-
isRead: s.
|
|
424
|
+
toUserId: s.field("toUserId", S.option(S.string)),
|
|
425
|
+
toUser: s.field("toUser", S.option(UserLite.schema)),
|
|
426
|
+
toRoomId: s.field("toRoomId", S.option(S.string)),
|
|
427
|
+
toRoom: s.field("toRoom", S.option(ChatRoom.schema)),
|
|
428
|
+
text: s.field("text", S.option(S.string)),
|
|
429
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
430
|
+
file: s.field("file", S.option(DriveFile.schema)),
|
|
431
|
+
isRead: s.field("isRead", S.option(S.bool)),
|
|
432
432
|
reactions: s.field("reactions", S.array(chatMessage_1Schema)),
|
|
433
433
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
434
434
|
})
|
|
@@ -477,10 +477,10 @@ module AbuseReportNotificationRecipient = {
|
|
|
477
477
|
updatedAt: s.field("updatedAt", S.string),
|
|
478
478
|
name: s.field("name", S.string),
|
|
479
479
|
method_: s.field("method", S.string),
|
|
480
|
-
userId: s.
|
|
481
|
-
user: s.
|
|
482
|
-
systemWebhookId: s.
|
|
483
|
-
systemWebhook: s.
|
|
480
|
+
userId: s.field("userId", S.option(S.string)),
|
|
481
|
+
user: s.field("user", S.option(UserLite.schema)),
|
|
482
|
+
systemWebhookId: s.field("systemWebhookId", S.option(S.string)),
|
|
483
|
+
systemWebhook: s.field("systemWebhook", S.option(SystemWebhook.schema)),
|
|
484
484
|
})
|
|
485
485
|
}
|
|
486
486
|
|
|
@@ -532,7 +532,7 @@ module MetaDetailedOnly = {
|
|
|
532
532
|
recaptcha: s.field("recaptcha", S.bool),
|
|
533
533
|
objectStorage: s.field("objectStorage", S.bool),
|
|
534
534
|
serviceWorker: s.field("serviceWorker", S.bool),
|
|
535
|
-
miauth: s.
|
|
535
|
+
miauth: s.field("miauth", S.option(S.bool)),
|
|
536
536
|
})
|
|
537
537
|
type t = {
|
|
538
538
|
features: option<metaDetailedOnly_1>,
|
|
@@ -542,7 +542,7 @@ module MetaDetailedOnly = {
|
|
|
542
542
|
cacheRemoteSensitiveFiles: bool,
|
|
543
543
|
}
|
|
544
544
|
let schema = S.object(s => {
|
|
545
|
-
features: s.
|
|
545
|
+
features: s.field("features", S.option(metaDetailedOnly_1Schema)),
|
|
546
546
|
proxyAccountName: s.field("proxyAccountName", S.nullableAsOption(S.string)),
|
|
547
547
|
requireSetup: s.field("requireSetup", S.bool),
|
|
548
548
|
cacheRemoteFiles: s.field("cacheRemoteFiles", S.bool),
|
|
@@ -676,7 +676,7 @@ module MetaLite = {
|
|
|
676
676
|
ratio: s.field("ratio", S.float),
|
|
677
677
|
imageUrl: s.field("imageUrl", S.string),
|
|
678
678
|
dayOfWeek: s.field("dayOfWeek", S.int),
|
|
679
|
-
isSensitive: s.
|
|
679
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
680
680
|
})
|
|
681
681
|
type t = {
|
|
682
682
|
maintainerName: option<string>,
|
|
@@ -1109,7 +1109,7 @@ module Flash = {
|
|
|
1109
1109
|
script: s.field("script", S.string),
|
|
1110
1110
|
visibility: s.field("visibility", S.string),
|
|
1111
1111
|
likedCount: s.field("likedCount", S.float),
|
|
1112
|
-
isLiked: s.
|
|
1112
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
1113
1113
|
})
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
@@ -1198,9 +1198,9 @@ module EmojiSimple = {
|
|
|
1198
1198
|
name: s.field("name", S.string),
|
|
1199
1199
|
category: s.field("category", S.nullableAsOption(S.string)),
|
|
1200
1200
|
url: s.field("url", S.string),
|
|
1201
|
-
localOnly: s.
|
|
1202
|
-
isSensitive: s.
|
|
1203
|
-
roleIdsThatCanBeUsedThisEmojiAsReaction: s.
|
|
1201
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
1202
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
1203
|
+
roleIdsThatCanBeUsedThisEmojiAsReaction: s.field("roleIdsThatCanBeUsedThisEmojiAsReaction", S.option(S.array(S.string))),
|
|
1204
1204
|
})
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
@@ -1228,12 +1228,12 @@ module GalleryPost = {
|
|
|
1228
1228
|
user: s.field("user", UserLite.schema),
|
|
1229
1229
|
title: s.field("title", S.string),
|
|
1230
1230
|
description: s.field("description", S.nullableAsOption(S.string)),
|
|
1231
|
-
fileIds: s.
|
|
1232
|
-
files: s.
|
|
1233
|
-
tags: s.
|
|
1231
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
1232
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
1233
|
+
tags: s.field("tags", S.option(S.array(S.string))),
|
|
1234
1234
|
isSensitive: s.field("isSensitive", S.bool),
|
|
1235
1235
|
likedCount: s.field("likedCount", S.float),
|
|
1236
|
-
isLiked: s.
|
|
1236
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
1237
1237
|
})
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
@@ -1292,7 +1292,7 @@ module FederationInstance = {
|
|
|
1292
1292
|
themeColor: s.field("themeColor", S.nullableAsOption(S.string)),
|
|
1293
1293
|
infoUpdatedAt: s.field("infoUpdatedAt", S.nullableAsOption(S.string)),
|
|
1294
1294
|
latestRequestReceivedAt: s.field("latestRequestReceivedAt", S.nullableAsOption(S.string)),
|
|
1295
|
-
moderationNote: s.
|
|
1295
|
+
moderationNote: s.field("moderationNote", S.option(S.string)),
|
|
1296
1296
|
})
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
@@ -1320,8 +1320,8 @@ module Clip = {
|
|
|
1320
1320
|
description: s.field("description", S.nullableAsOption(S.string)),
|
|
1321
1321
|
isPublic: s.field("isPublic", S.bool),
|
|
1322
1322
|
favoritedCount: s.field("favoritedCount", S.float),
|
|
1323
|
-
isFavorited: s.
|
|
1324
|
-
notesCount: s.
|
|
1323
|
+
isFavorited: s.field("isFavorited", S.option(S.bool)),
|
|
1324
|
+
notesCount: s.field("notesCount", S.option(S.int)),
|
|
1325
1325
|
})
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
@@ -1392,9 +1392,9 @@ module QueueJob = {
|
|
|
1392
1392
|
data: s.field("data", S.dict(S.json)),
|
|
1393
1393
|
opts: s.field("opts", S.dict(S.json)),
|
|
1394
1394
|
timestamp: s.field("timestamp", S.float),
|
|
1395
|
-
processedOn: s.
|
|
1396
|
-
processedBy: s.
|
|
1397
|
-
finishedOn: s.
|
|
1395
|
+
processedOn: s.field("processedOn", S.option(S.float)),
|
|
1396
|
+
processedBy: s.field("processedBy", S.option(S.string)),
|
|
1397
|
+
finishedOn: s.field("finishedOn", S.option(S.float)),
|
|
1398
1398
|
progress: s.field("progress", S.dict(S.json)),
|
|
1399
1399
|
attempts: s.field("attempts", S.float),
|
|
1400
1400
|
delay: s.field("delay", S.float),
|
|
@@ -1462,7 +1462,7 @@ module Note = {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
let note_3Schema = S.object(s => {
|
|
1464
1464
|
mode: s.field("mode", S.string),
|
|
1465
|
-
hosts: s.
|
|
1465
|
+
hosts: s.field("hosts", S.option(S.json)),
|
|
1466
1466
|
})
|
|
1467
1467
|
type note_2 = {
|
|
1468
1468
|
id: string,
|
|
@@ -1486,7 +1486,7 @@ module Note = {
|
|
|
1486
1486
|
choices: array<note_4>,
|
|
1487
1487
|
}
|
|
1488
1488
|
let note_1Schema = S.object(s => {
|
|
1489
|
-
expiresAt: s.
|
|
1489
|
+
expiresAt: s.field("expiresAt", S.option(S.string)),
|
|
1490
1490
|
multiple: s.field("multiple", S.bool),
|
|
1491
1491
|
choices: s.field("choices", S.array(note_4Schema)),
|
|
1492
1492
|
})
|
|
@@ -1537,45 +1537,45 @@ module Note = {
|
|
|
1537
1537
|
let schema = S.recursive("Note", schema => S.object(s => {
|
|
1538
1538
|
id: s.field("id", S.string),
|
|
1539
1539
|
createdAt: s.field("createdAt", S.string),
|
|
1540
|
-
updatedAt: s.
|
|
1541
|
-
updatedAtHistory: s.
|
|
1542
|
-
deletedAt: s.
|
|
1540
|
+
updatedAt: s.field("updatedAt", S.option(S.string)),
|
|
1541
|
+
updatedAtHistory: s.field("updatedAtHistory", S.option(S.json)),
|
|
1542
|
+
deletedAt: s.field("deletedAt", S.option(S.string)),
|
|
1543
1543
|
text: s.field("text", S.nullableAsOption(S.string)),
|
|
1544
|
-
cw: s.
|
|
1544
|
+
cw: s.field("cw", S.option(S.string)),
|
|
1545
1545
|
userId: s.field("userId", S.string),
|
|
1546
1546
|
user: s.field("user", UserLite.schema),
|
|
1547
|
-
replyId: s.
|
|
1548
|
-
renoteId: s.
|
|
1549
|
-
reply: s.
|
|
1550
|
-
renote: s.
|
|
1551
|
-
disableRightClick: s.
|
|
1552
|
-
isHidden: s.
|
|
1547
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
1548
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
1549
|
+
reply: s.field("reply", S.option(schema)),
|
|
1550
|
+
renote: s.field("renote", S.option(schema)),
|
|
1551
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
1552
|
+
isHidden: s.field("isHidden", S.option(S.bool)),
|
|
1553
1553
|
visibility: s.field("visibility", S.string),
|
|
1554
|
-
mentions: s.
|
|
1555
|
-
visibleUserIds: s.
|
|
1556
|
-
fileIds: s.
|
|
1557
|
-
files: s.
|
|
1558
|
-
tags: s.
|
|
1559
|
-
poll: s.
|
|
1554
|
+
mentions: s.field("mentions", S.option(S.array(S.string))),
|
|
1555
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
1556
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
1557
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
1558
|
+
tags: s.field("tags", S.option(S.array(S.string))),
|
|
1559
|
+
poll: s.field("poll", S.option(note_1Schema)),
|
|
1560
1560
|
emojis: s.field("emojis", S.option(S.dict(S.json))),
|
|
1561
1561
|
event: s.field("event", S.option(S.dict(S.json))),
|
|
1562
|
-
channelId: s.
|
|
1563
|
-
channel: s.
|
|
1564
|
-
localOnly: s.
|
|
1562
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
1563
|
+
channel: s.field("channel", S.option(note_2Schema)),
|
|
1564
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
1565
1565
|
reactionAcceptance: s.field("reactionAcceptance", S.nullableAsOption(S.string)),
|
|
1566
1566
|
reactionEmojis: s.field("reactionEmojis", S.dict(S.json)),
|
|
1567
1567
|
reactions: s.field("reactions", S.dict(S.json)),
|
|
1568
1568
|
reactionCount: s.field("reactionCount", S.float),
|
|
1569
1569
|
renoteCount: s.field("renoteCount", S.float),
|
|
1570
1570
|
repliesCount: s.field("repliesCount", S.float),
|
|
1571
|
-
uri: s.
|
|
1572
|
-
url: s.
|
|
1573
|
-
reactionAndUserPairCache: s.
|
|
1574
|
-
clippedCount: s.
|
|
1575
|
-
hasPoll: s.
|
|
1576
|
-
myReaction: s.
|
|
1577
|
-
deleteAt: s.
|
|
1578
|
-
deliveryTargets: s.
|
|
1571
|
+
uri: s.field("uri", S.option(S.string)),
|
|
1572
|
+
url: s.field("url", S.option(S.string)),
|
|
1573
|
+
reactionAndUserPairCache: s.field("reactionAndUserPairCache", S.option(S.array(S.string))),
|
|
1574
|
+
clippedCount: s.field("clippedCount", S.option(S.float)),
|
|
1575
|
+
hasPoll: s.field("hasPoll", S.option(S.bool)),
|
|
1576
|
+
myReaction: s.field("myReaction", S.option(S.string)),
|
|
1577
|
+
deleteAt: s.field("deleteAt", S.option(S.string)),
|
|
1578
|
+
deliveryTargets: s.field("deliveryTargets", S.option(note_3Schema)),
|
|
1579
1579
|
hasDeliveryTargets: s.field("hasDeliveryTargets", S.bool),
|
|
1580
1580
|
}))
|
|
1581
1581
|
}
|
|
@@ -1615,9 +1615,9 @@ module Channel = {
|
|
|
1615
1615
|
notesCount: s.field("notesCount", S.float),
|
|
1616
1616
|
isSensitive: s.field("isSensitive", S.bool),
|
|
1617
1617
|
allowRenoteToExternal: s.field("allowRenoteToExternal", S.bool),
|
|
1618
|
-
isFollowing: s.
|
|
1619
|
-
isFavorited: s.
|
|
1620
|
-
pinnedNotes: s.
|
|
1618
|
+
isFollowing: s.field("isFollowing", S.option(S.bool)),
|
|
1619
|
+
isFavorited: s.field("isFavorited", S.option(S.bool)),
|
|
1620
|
+
pinnedNotes: s.field("pinnedNotes", S.option(S.array(Note.schema))),
|
|
1621
1621
|
})
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
@@ -1667,7 +1667,7 @@ module Page = {
|
|
|
1667
1667
|
eyeCatchingImage: s.field("eyeCatchingImage", S.nullableAsOption(DriveFile.schema)),
|
|
1668
1668
|
attachedFiles: s.field("attachedFiles", S.array(DriveFile.schema)),
|
|
1669
1669
|
likedCount: s.field("likedCount", S.float),
|
|
1670
|
-
isLiked: s.
|
|
1670
|
+
isLiked: s.field("isLiked", S.option(S.bool)),
|
|
1671
1671
|
})
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
@@ -1803,22 +1803,22 @@ module UserDetailedNotMeOnly = {
|
|
|
1803
1803
|
chatScope: s.field("chatScope", S.string),
|
|
1804
1804
|
canChat: s.field("canChat", S.bool),
|
|
1805
1805
|
roles: s.field("roles", S.array(RoleLite.schema)),
|
|
1806
|
-
followedMessage: s.
|
|
1806
|
+
followedMessage: s.field("followedMessage", S.option(S.string)),
|
|
1807
1807
|
memo: s.field("memo", S.nullableAsOption(S.string)),
|
|
1808
|
-
moderationNote: s.
|
|
1809
|
-
twoFactorEnabled: s.
|
|
1810
|
-
usePasswordLessLogin: s.
|
|
1811
|
-
securityKeys: s.
|
|
1812
|
-
isFollowing: s.
|
|
1813
|
-
isFollowed: s.
|
|
1814
|
-
hasPendingFollowRequestFromYou: s.
|
|
1815
|
-
hasPendingFollowRequestToYou: s.
|
|
1816
|
-
isBlocking: s.
|
|
1817
|
-
isBlocked: s.
|
|
1818
|
-
isMuted: s.
|
|
1819
|
-
isRenoteMuted: s.
|
|
1820
|
-
notify: s.
|
|
1821
|
-
withReplies: s.
|
|
1808
|
+
moderationNote: s.field("moderationNote", S.option(S.string)),
|
|
1809
|
+
twoFactorEnabled: s.field("twoFactorEnabled", S.option(S.bool)),
|
|
1810
|
+
usePasswordLessLogin: s.field("usePasswordLessLogin", S.option(S.bool)),
|
|
1811
|
+
securityKeys: s.field("securityKeys", S.option(S.bool)),
|
|
1812
|
+
isFollowing: s.field("isFollowing", S.option(S.bool)),
|
|
1813
|
+
isFollowed: s.field("isFollowed", S.option(S.bool)),
|
|
1814
|
+
hasPendingFollowRequestFromYou: s.field("hasPendingFollowRequestFromYou", S.option(S.bool)),
|
|
1815
|
+
hasPendingFollowRequestToYou: s.field("hasPendingFollowRequestToYou", S.option(S.bool)),
|
|
1816
|
+
isBlocking: s.field("isBlocking", S.option(S.bool)),
|
|
1817
|
+
isBlocked: s.field("isBlocked", S.option(S.bool)),
|
|
1818
|
+
isMuted: s.field("isMuted", S.option(S.bool)),
|
|
1819
|
+
isRenoteMuted: s.field("isRenoteMuted", S.option(S.bool)),
|
|
1820
|
+
notify: s.field("notify", S.option(S.string)),
|
|
1821
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
1822
1822
|
})
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
@@ -1888,8 +1888,8 @@ module Following = {
|
|
|
1888
1888
|
createdAt: s.field("createdAt", S.string),
|
|
1889
1889
|
followeeId: s.field("followeeId", S.string),
|
|
1890
1890
|
followerId: s.field("followerId", S.string),
|
|
1891
|
-
followee: s.
|
|
1892
|
-
follower: s.
|
|
1891
|
+
followee: s.field("followee", S.option(UserDetailedNotMe.schema)),
|
|
1892
|
+
follower: s.field("follower", S.option(UserDetailedNotMe.schema)),
|
|
1893
1893
|
})
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
@@ -1952,7 +1952,7 @@ module NoteDraft = {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
let noteDraft_3Schema = S.object(s => {
|
|
1954
1954
|
mode: s.field("mode", S.string),
|
|
1955
|
-
hosts: s.
|
|
1955
|
+
hosts: s.field("hosts", S.option(S.json)),
|
|
1956
1956
|
})
|
|
1957
1957
|
type noteDraft_2 = {
|
|
1958
1958
|
id: string,
|
|
@@ -1977,8 +1977,8 @@ module NoteDraft = {
|
|
|
1977
1977
|
choices: array<string>,
|
|
1978
1978
|
}
|
|
1979
1979
|
let noteDraft_1Schema = S.object(s => {
|
|
1980
|
-
expiresAt: s.
|
|
1981
|
-
expiredAfter: s.
|
|
1980
|
+
expiresAt: s.field("expiresAt", S.option(S.string)),
|
|
1981
|
+
expiredAfter: s.field("expiredAfter", S.option(S.float)),
|
|
1982
1982
|
multiple: s.field("multiple", S.bool),
|
|
1983
1983
|
choices: s.field("choices", S.array(S.string)),
|
|
1984
1984
|
})
|
|
@@ -2019,24 +2019,24 @@ module NoteDraft = {
|
|
|
2019
2019
|
user: s.field("user", UserLite.schema),
|
|
2020
2020
|
replyId: s.field("replyId", S.nullableAsOption(S.string)),
|
|
2021
2021
|
renoteId: s.field("renoteId", S.nullableAsOption(S.string)),
|
|
2022
|
-
reply: s.
|
|
2023
|
-
renote: s.
|
|
2024
|
-
disableRightClick: s.
|
|
2022
|
+
reply: s.field("reply", S.option(Note.schema)),
|
|
2023
|
+
renote: s.field("renote", S.option(Note.schema)),
|
|
2024
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
2025
2025
|
visibility: s.field("visibility", S.string),
|
|
2026
2026
|
visibleUserIds: s.field("visibleUserIds", S.array(S.string)),
|
|
2027
2027
|
fileIds: s.field("fileIds", S.array(S.string)),
|
|
2028
|
-
files: s.
|
|
2028
|
+
files: s.field("files", S.option(S.array(DriveFile.schema))),
|
|
2029
2029
|
hashtag: s.field("hashtag", S.nullableAsOption(S.string)),
|
|
2030
2030
|
poll: s.field("poll", S.nullableAsOption(noteDraft_1Schema)),
|
|
2031
2031
|
event: s.field("event", S.option(S.dict(S.json))),
|
|
2032
2032
|
channelId: s.field("channelId", S.nullableAsOption(S.string)),
|
|
2033
|
-
channel: s.
|
|
2033
|
+
channel: s.field("channel", S.option(noteDraft_2Schema)),
|
|
2034
2034
|
localOnly: s.field("localOnly", S.bool),
|
|
2035
2035
|
reactionAcceptance: s.field("reactionAcceptance", S.nullableAsOption(S.string)),
|
|
2036
2036
|
scheduledAt: s.field("scheduledAt", S.nullableAsOption(S.float)),
|
|
2037
2037
|
isActuallyScheduled: s.field("isActuallyScheduled", S.bool),
|
|
2038
|
-
deleteAt: s.
|
|
2039
|
-
deliveryTargets: s.
|
|
2038
|
+
deleteAt: s.field("deleteAt", S.option(S.string)),
|
|
2039
|
+
deliveryTargets: s.field("deliveryTargets", S.option(noteDraft_3Schema)),
|
|
2040
2040
|
})
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
@@ -2054,8 +2054,8 @@ module App = {
|
|
|
2054
2054
|
name: s.field("name", S.string),
|
|
2055
2055
|
callbackUrl: s.field("callbackUrl", S.nullableAsOption(S.string)),
|
|
2056
2056
|
permission: s.field("permission", S.array(S.string)),
|
|
2057
|
-
secret: s.
|
|
2058
|
-
isAuthorized: s.
|
|
2057
|
+
secret: s.field("secret", S.option(S.string)),
|
|
2058
|
+
isAuthorized: s.field("isAuthorized", S.option(S.bool)),
|
|
2059
2059
|
})
|
|
2060
2060
|
}
|
|
2061
2061
|
|
|
@@ -2086,7 +2086,7 @@ module Announcement = {
|
|
|
2086
2086
|
needConfirmationToRead: s.field("needConfirmationToRead", S.bool),
|
|
2087
2087
|
silence: s.field("silence", S.bool),
|
|
2088
2088
|
forYou: s.field("forYou", S.bool),
|
|
2089
|
-
isRead: s.
|
|
2089
|
+
isRead: s.field("isRead", S.option(S.bool)),
|
|
2090
2090
|
})
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
@@ -2148,7 +2148,7 @@ module UserGroup = {
|
|
|
2148
2148
|
createdAt: s.field("createdAt", S.string),
|
|
2149
2149
|
name: s.field("name", S.string),
|
|
2150
2150
|
ownerId: s.field("ownerId", S.string),
|
|
2151
|
-
userIds: s.
|
|
2151
|
+
userIds: s.field("userIds", S.option(S.array(S.string))),
|
|
2152
2152
|
})
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
@@ -2164,7 +2164,7 @@ module UserList = {
|
|
|
2164
2164
|
id: s.field("id", S.string),
|
|
2165
2165
|
createdAt: s.field("createdAt", S.string),
|
|
2166
2166
|
name: s.field("name", S.string),
|
|
2167
|
-
userIds: s.
|
|
2167
|
+
userIds: s.field("userIds", S.option(S.array(S.string))),
|
|
2168
2168
|
isPublic: s.field("isPublic", S.bool),
|
|
2169
2169
|
})
|
|
2170
2170
|
}
|
|
@@ -2304,9 +2304,9 @@ module MeDetailedOnly = {
|
|
|
2304
2304
|
twoFactorEnabled: s.field("twoFactorEnabled", S.bool),
|
|
2305
2305
|
usePasswordLessLogin: s.field("usePasswordLessLogin", S.bool),
|
|
2306
2306
|
securityKeys: s.field("securityKeys", S.bool),
|
|
2307
|
-
email: s.
|
|
2308
|
-
emailVerified: s.
|
|
2309
|
-
securityKeysList: s.
|
|
2307
|
+
email: s.field("email", S.option(S.string)),
|
|
2308
|
+
emailVerified: s.field("emailVerified", S.option(S.bool)),
|
|
2309
|
+
securityKeysList: s.field("securityKeysList", S.option(S.array(meDetailedOnly_2Schema))),
|
|
2310
2310
|
autoDeleteNotesAfterDays: s.field("autoDeleteNotesAfterDays", S.nullableAsOption(S.float)),
|
|
2311
2311
|
autoDeleteKeepFavorites: s.field("autoDeleteKeepFavorites", S.bool),
|
|
2312
2312
|
})
|