@saltify/milky-types 1.0.0-draft.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-endpoints.d.ts +18 -0
- package/dist/api-endpoints.js +393 -0
- package/dist/api-endpoints.js.map +1 -0
- package/dist/index-D5fMPyRS.d.ts +3309 -0
- package/dist/index.d.ts +2 -3027
- package/dist/index.js +98 -57
- package/dist/index.js.map +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as types } from './index-D5fMPyRS.js';
|
|
2
|
+
import 'zod';
|
|
3
|
+
|
|
4
|
+
type TypeName = keyof typeof types;
|
|
5
|
+
declare const commonStructs: TypeName[];
|
|
6
|
+
interface Api {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
description: string;
|
|
9
|
+
inputStruct: TypeName | null;
|
|
10
|
+
outputStruct: TypeName | null;
|
|
11
|
+
}
|
|
12
|
+
interface ApiCategory {
|
|
13
|
+
name: string;
|
|
14
|
+
apis: Api[];
|
|
15
|
+
}
|
|
16
|
+
declare const apiCategories: Record<string, ApiCategory>;
|
|
17
|
+
|
|
18
|
+
export { type Api, type ApiCategory, apiCategories, commonStructs };
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
// src/api-endpoints.ts
|
|
2
|
+
var commonStructs = [
|
|
3
|
+
"Event",
|
|
4
|
+
"FriendEntity",
|
|
5
|
+
"FriendCategoryEntity",
|
|
6
|
+
"GroupEntity",
|
|
7
|
+
"GroupMemberEntity",
|
|
8
|
+
"GroupAnnouncementEntity",
|
|
9
|
+
"GroupFileEntity",
|
|
10
|
+
"GroupFolderEntity",
|
|
11
|
+
"FriendRequest",
|
|
12
|
+
"GroupNotification",
|
|
13
|
+
"IncomingMessage",
|
|
14
|
+
"IncomingForwardedMessage",
|
|
15
|
+
"GroupEssenceMessage",
|
|
16
|
+
"IncomingSegment",
|
|
17
|
+
"OutgoingForwardedMessage",
|
|
18
|
+
"OutgoingSegment"
|
|
19
|
+
];
|
|
20
|
+
var apiCategories = {
|
|
21
|
+
system: {
|
|
22
|
+
name: "\u7CFB\u7EDF API",
|
|
23
|
+
apis: [
|
|
24
|
+
{
|
|
25
|
+
endpoint: "get_login_info",
|
|
26
|
+
description: "\u83B7\u53D6\u767B\u5F55\u4FE1\u606F",
|
|
27
|
+
inputStruct: null,
|
|
28
|
+
outputStruct: "GetLoginInfoOutput"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
endpoint: "get_impl_info",
|
|
32
|
+
description: "\u83B7\u53D6\u534F\u8BAE\u7AEF\u4FE1\u606F",
|
|
33
|
+
inputStruct: null,
|
|
34
|
+
outputStruct: "GetImplInfoOutput"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
endpoint: "get_user_profile",
|
|
38
|
+
description: "\u83B7\u53D6\u7528\u6237\u4E2A\u4EBA\u4FE1\u606F",
|
|
39
|
+
inputStruct: "GetUserProfileInput",
|
|
40
|
+
outputStruct: "GetUserProfileOutput"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
endpoint: "get_friend_list",
|
|
44
|
+
description: "\u83B7\u53D6\u597D\u53CB\u5217\u8868",
|
|
45
|
+
inputStruct: "GetFriendListInput",
|
|
46
|
+
outputStruct: "GetFriendListOutput"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
endpoint: "get_friend_info",
|
|
50
|
+
description: "\u83B7\u53D6\u597D\u53CB\u4FE1\u606F",
|
|
51
|
+
inputStruct: "GetFriendInfoInput",
|
|
52
|
+
outputStruct: "GetFriendInfoOutput"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
endpoint: "get_group_list",
|
|
56
|
+
description: "\u83B7\u53D6\u7FA4\u5217\u8868",
|
|
57
|
+
inputStruct: "GetGroupListInput",
|
|
58
|
+
outputStruct: "GetGroupListOutput"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
endpoint: "get_group_info",
|
|
62
|
+
description: "\u83B7\u53D6\u7FA4\u4FE1\u606F",
|
|
63
|
+
inputStruct: "GetGroupInfoInput",
|
|
64
|
+
outputStruct: "GetGroupInfoOutput"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
endpoint: "get_group_member_list",
|
|
68
|
+
description: "\u83B7\u53D6\u7FA4\u6210\u5458\u5217\u8868",
|
|
69
|
+
inputStruct: "GetGroupMemberListInput",
|
|
70
|
+
outputStruct: "GetGroupMemberListOutput"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
endpoint: "get_group_member_info",
|
|
74
|
+
description: "\u83B7\u53D6\u7FA4\u6210\u5458\u4FE1\u606F",
|
|
75
|
+
inputStruct: "GetGroupMemberInfoInput",
|
|
76
|
+
outputStruct: "GetGroupMemberInfoOutput"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
endpoint: "get_cookies",
|
|
80
|
+
description: "\u83B7\u53D6 Cookies",
|
|
81
|
+
inputStruct: "GetCookiesInput",
|
|
82
|
+
outputStruct: "GetCookiesOutput"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
endpoint: "get_csrf_token",
|
|
86
|
+
description: "\u83B7\u53D6 CSRF Token",
|
|
87
|
+
inputStruct: null,
|
|
88
|
+
outputStruct: "GetCSRFTokenOutput"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
message: {
|
|
93
|
+
name: "\u6D88\u606F API",
|
|
94
|
+
apis: [
|
|
95
|
+
{
|
|
96
|
+
endpoint: "send_private_message",
|
|
97
|
+
description: "\u53D1\u9001\u79C1\u804A\u6D88\u606F",
|
|
98
|
+
inputStruct: "SendPrivateMessageInput",
|
|
99
|
+
outputStruct: "SendPrivateMessageOutput"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
endpoint: "send_group_message",
|
|
103
|
+
description: "\u53D1\u9001\u7FA4\u804A\u6D88\u606F",
|
|
104
|
+
inputStruct: "SendGroupMessageInput",
|
|
105
|
+
outputStruct: "SendGroupMessageOutput"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
endpoint: "recall_private_message",
|
|
109
|
+
description: "\u64A4\u56DE\u79C1\u804A\u6D88\u606F",
|
|
110
|
+
inputStruct: "RecallPrivateMessageInput",
|
|
111
|
+
outputStruct: null
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
endpoint: "recall_group_message",
|
|
115
|
+
description: "\u64A4\u56DE\u7FA4\u804A\u6D88\u606F",
|
|
116
|
+
inputStruct: "RecallGroupMessageInput",
|
|
117
|
+
outputStruct: null
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
endpoint: "get_message",
|
|
121
|
+
description: "\u83B7\u53D6\u6D88\u606F",
|
|
122
|
+
inputStruct: "GetMessageInput",
|
|
123
|
+
outputStruct: "GetMessageOutput"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
endpoint: "get_history_messages",
|
|
127
|
+
description: "\u83B7\u53D6\u5386\u53F2\u6D88\u606F\u5217\u8868",
|
|
128
|
+
inputStruct: "GetHistoryMessagesInput",
|
|
129
|
+
outputStruct: "GetHistoryMessagesOutput"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
endpoint: "get_resource_temp_url",
|
|
133
|
+
description: "\u83B7\u53D6\u4E34\u65F6\u8D44\u6E90\u94FE\u63A5",
|
|
134
|
+
inputStruct: "GetResourceTempUrlInput",
|
|
135
|
+
outputStruct: "GetResourceTempUrlOutput"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
endpoint: "get_forwarded_messages",
|
|
139
|
+
description: "\u83B7\u53D6\u5408\u5E76\u8F6C\u53D1\u6D88\u606F\u5185\u5BB9",
|
|
140
|
+
inputStruct: "GetForwardedMessagesInput",
|
|
141
|
+
outputStruct: "GetForwardedMessagesOutput"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
endpoint: "mark_message_as_read",
|
|
145
|
+
description: "\u6807\u8BB0\u6D88\u606F\u4E3A\u5DF2\u8BFB",
|
|
146
|
+
inputStruct: "MarkMessageAsReadInput",
|
|
147
|
+
outputStruct: null
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
friend: {
|
|
152
|
+
name: "\u597D\u53CB API",
|
|
153
|
+
apis: [
|
|
154
|
+
{
|
|
155
|
+
endpoint: "send_friend_nudge",
|
|
156
|
+
description: "\u53D1\u9001\u597D\u53CB\u6233\u4E00\u6233",
|
|
157
|
+
inputStruct: "SendFriendNudgeInput",
|
|
158
|
+
outputStruct: null
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
endpoint: "send_profile_like",
|
|
162
|
+
description: "\u53D1\u9001\u540D\u7247\u70B9\u8D5E",
|
|
163
|
+
inputStruct: "SendProfileLikeInput",
|
|
164
|
+
outputStruct: null
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
endpoint: "get_friend_requests",
|
|
168
|
+
description: "\u83B7\u53D6\u597D\u53CB\u8BF7\u6C42\u5217\u8868",
|
|
169
|
+
inputStruct: "GetFriendRequestsInput",
|
|
170
|
+
outputStruct: "GetFriendRequestsOutput"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
endpoint: "accept_friend_request",
|
|
174
|
+
description: "\u540C\u610F\u597D\u53CB\u8BF7\u6C42",
|
|
175
|
+
inputStruct: "AcceptFriendRequestInput",
|
|
176
|
+
outputStruct: null
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
endpoint: "reject_friend_request",
|
|
180
|
+
description: "\u62D2\u7EDD\u597D\u53CB\u8BF7\u6C42",
|
|
181
|
+
inputStruct: "RejectFriendRequestInput",
|
|
182
|
+
outputStruct: null
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
group: {
|
|
187
|
+
name: "\u7FA4\u804A API",
|
|
188
|
+
apis: [
|
|
189
|
+
{
|
|
190
|
+
endpoint: "set_group_name",
|
|
191
|
+
description: "\u8BBE\u7F6E\u7FA4\u540D\u79F0",
|
|
192
|
+
inputStruct: "SetGroupNameInput",
|
|
193
|
+
outputStruct: null
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
endpoint: "set_group_avatar",
|
|
197
|
+
description: "\u8BBE\u7F6E\u7FA4\u5934\u50CF",
|
|
198
|
+
inputStruct: "SetGroupAvatarInput",
|
|
199
|
+
outputStruct: null
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
endpoint: "set_group_member_card",
|
|
203
|
+
description: "\u8BBE\u7F6E\u7FA4\u540D\u7247",
|
|
204
|
+
inputStruct: "SetGroupMemberCardInput",
|
|
205
|
+
outputStruct: null
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
endpoint: "set_group_member_special_title",
|
|
209
|
+
description: "\u8BBE\u7F6E\u7FA4\u6210\u5458\u4E13\u5C5E\u5934\u8854",
|
|
210
|
+
inputStruct: "SetGroupMemberSpecialTitleInput",
|
|
211
|
+
outputStruct: null
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
endpoint: "set_group_member_admin",
|
|
215
|
+
description: "\u8BBE\u7F6E\u7FA4\u7BA1\u7406\u5458",
|
|
216
|
+
inputStruct: "SetGroupMemberAdminInput",
|
|
217
|
+
outputStruct: null
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
endpoint: "set_group_member_mute",
|
|
221
|
+
description: "\u8BBE\u7F6E\u7FA4\u6210\u5458\u7981\u8A00",
|
|
222
|
+
inputStruct: "SetGroupMemberMuteInput",
|
|
223
|
+
outputStruct: null
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
endpoint: "set_group_whole_mute",
|
|
227
|
+
description: "\u8BBE\u7F6E\u7FA4\u5168\u5458\u7981\u8A00",
|
|
228
|
+
inputStruct: "SetGroupWholeMuteInput",
|
|
229
|
+
outputStruct: null
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
endpoint: "kick_group_member",
|
|
233
|
+
description: "\u8E22\u51FA\u7FA4\u6210\u5458",
|
|
234
|
+
inputStruct: "KickGroupMemberInput",
|
|
235
|
+
outputStruct: null
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
endpoint: "get_group_announcements",
|
|
239
|
+
description: "\u83B7\u53D6\u7FA4\u516C\u544A\u5217\u8868",
|
|
240
|
+
inputStruct: "GetGroupAnnouncementsInput",
|
|
241
|
+
outputStruct: "GetGroupAnnouncementsOutput"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
endpoint: "send_group_announcement",
|
|
245
|
+
description: "\u53D1\u9001\u7FA4\u516C\u544A",
|
|
246
|
+
inputStruct: "SendGroupAnnouncementInput",
|
|
247
|
+
outputStruct: null
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
endpoint: "delete_group_announcement",
|
|
251
|
+
description: "\u5220\u9664\u7FA4\u516C\u544A",
|
|
252
|
+
inputStruct: "DeleteGroupAnnouncementInput",
|
|
253
|
+
outputStruct: null
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
endpoint: "get_group_essence_messages",
|
|
257
|
+
description: "\u83B7\u53D6\u7FA4\u7CBE\u534E\u6D88\u606F\u5217\u8868",
|
|
258
|
+
inputStruct: "GetGroupEssenceMessagesInput",
|
|
259
|
+
outputStruct: "GetGroupEssenceMessagesOutput"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
endpoint: "set_group_essence_message",
|
|
263
|
+
description: "\u8BBE\u7F6E\u7FA4\u7CBE\u534E\u6D88\u606F",
|
|
264
|
+
inputStruct: "SetGroupEssenceMessageInput",
|
|
265
|
+
outputStruct: null
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
endpoint: "quit_group",
|
|
269
|
+
description: "\u9000\u51FA\u7FA4",
|
|
270
|
+
inputStruct: "QuitGroupInput",
|
|
271
|
+
outputStruct: null
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
endpoint: "send_group_message_reaction",
|
|
275
|
+
description: "\u53D1\u9001\u7FA4\u6D88\u606F\u8868\u60C5\u56DE\u5E94",
|
|
276
|
+
inputStruct: "SendGroupMessageReactionInput",
|
|
277
|
+
outputStruct: null
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
endpoint: "send_group_nudge",
|
|
281
|
+
description: "\u53D1\u9001\u7FA4\u6233\u4E00\u6233",
|
|
282
|
+
inputStruct: "SendGroupNudgeInput",
|
|
283
|
+
outputStruct: null
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
endpoint: "get_group_notifications",
|
|
287
|
+
description: "\u83B7\u53D6\u7FA4\u901A\u77E5\u5217\u8868",
|
|
288
|
+
inputStruct: "GetGroupNotificationsInput",
|
|
289
|
+
outputStruct: "GetGroupNotificationsOutput"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
endpoint: "accept_group_request",
|
|
293
|
+
description: "\u540C\u610F\u5165\u7FA4/\u9080\u8BF7\u4ED6\u4EBA\u5165\u7FA4\u8BF7\u6C42",
|
|
294
|
+
inputStruct: "AcceptGroupRequestInput",
|
|
295
|
+
outputStruct: null
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
endpoint: "reject_group_request",
|
|
299
|
+
description: "\u62D2\u7EDD\u5165\u7FA4/\u9080\u8BF7\u4ED6\u4EBA\u5165\u7FA4\u8BF7\u6C42",
|
|
300
|
+
inputStruct: "RejectGroupRequestInput",
|
|
301
|
+
outputStruct: null
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
endpoint: "accept_group_invitation",
|
|
305
|
+
description: "\u540C\u610F\u4ED6\u4EBA\u9080\u8BF7\u81EA\u8EAB\u5165\u7FA4",
|
|
306
|
+
inputStruct: "AcceptGroupInvitationInput",
|
|
307
|
+
outputStruct: null
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
endpoint: "reject_group_invitation",
|
|
311
|
+
description: "\u62D2\u7EDD\u4ED6\u4EBA\u9080\u8BF7\u81EA\u8EAB\u5165\u7FA4",
|
|
312
|
+
inputStruct: "RejectGroupInvitationInput",
|
|
313
|
+
outputStruct: null
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
file: {
|
|
318
|
+
name: "\u6587\u4EF6 API",
|
|
319
|
+
apis: [
|
|
320
|
+
{
|
|
321
|
+
endpoint: "upload_private_file",
|
|
322
|
+
description: "\u4E0A\u4F20\u79C1\u804A\u6587\u4EF6",
|
|
323
|
+
inputStruct: "UploadPrivateFileInput",
|
|
324
|
+
outputStruct: "UploadPrivateFileOutput"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
endpoint: "upload_group_file",
|
|
328
|
+
description: "\u4E0A\u4F20\u7FA4\u6587\u4EF6",
|
|
329
|
+
inputStruct: "UploadGroupFileInput",
|
|
330
|
+
outputStruct: "UploadGroupFileOutput"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
endpoint: "get_private_file_download_url",
|
|
334
|
+
description: "\u83B7\u53D6\u79C1\u804A\u6587\u4EF6\u4E0B\u8F7D\u94FE\u63A5",
|
|
335
|
+
inputStruct: "GetPrivateFileDownloadUrlInput",
|
|
336
|
+
outputStruct: "GetPrivateFileDownloadUrlOutput"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
endpoint: "get_group_file_download_url",
|
|
340
|
+
description: "\u83B7\u53D6\u7FA4\u6587\u4EF6\u4E0B\u8F7D\u94FE\u63A5",
|
|
341
|
+
inputStruct: "GetGroupFileDownloadUrlInput",
|
|
342
|
+
outputStruct: "GetGroupFileDownloadUrlOutput"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
endpoint: "get_group_files",
|
|
346
|
+
description: "\u83B7\u53D6\u7FA4\u6587\u4EF6\u5217\u8868",
|
|
347
|
+
inputStruct: "GetGroupFilesInput",
|
|
348
|
+
outputStruct: "GetGroupFilesOutput"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
endpoint: "move_group_file",
|
|
352
|
+
description: "\u79FB\u52A8\u7FA4\u6587\u4EF6",
|
|
353
|
+
inputStruct: "MoveGroupFileInput",
|
|
354
|
+
outputStruct: null
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
endpoint: "rename_group_file",
|
|
358
|
+
description: "\u91CD\u547D\u540D\u7FA4\u6587\u4EF6",
|
|
359
|
+
inputStruct: "RenameGroupFileInput",
|
|
360
|
+
outputStruct: null
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
endpoint: "delete_group_file",
|
|
364
|
+
description: "\u5220\u9664\u7FA4\u6587\u4EF6",
|
|
365
|
+
inputStruct: "DeleteGroupFileInput",
|
|
366
|
+
outputStruct: null
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
endpoint: "create_group_folder",
|
|
370
|
+
description: "\u521B\u5EFA\u7FA4\u6587\u4EF6\u5939",
|
|
371
|
+
inputStruct: "CreateGroupFolderInput",
|
|
372
|
+
outputStruct: "CreateGroupFolderOutput"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
endpoint: "rename_group_folder",
|
|
376
|
+
description: "\u91CD\u547D\u540D\u7FA4\u6587\u4EF6\u5939",
|
|
377
|
+
inputStruct: "RenameGroupFolderInput",
|
|
378
|
+
outputStruct: null
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
endpoint: "delete_group_folder",
|
|
382
|
+
description: "\u5220\u9664\u7FA4\u6587\u4EF6\u5939",
|
|
383
|
+
inputStruct: "DeleteGroupFolderInput",
|
|
384
|
+
outputStruct: null
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
export {
|
|
390
|
+
apiCategories,
|
|
391
|
+
commonStructs
|
|
392
|
+
};
|
|
393
|
+
//# sourceMappingURL=api-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/api-endpoints.ts"],"sourcesContent":["import type * as types from '.';\ntype TypeName = keyof typeof types;\n\nexport const commonStructs: TypeName[] = [\n 'Event',\n 'FriendEntity',\n 'FriendCategoryEntity',\n 'GroupEntity',\n 'GroupMemberEntity',\n 'GroupAnnouncementEntity',\n 'GroupFileEntity',\n 'GroupFolderEntity',\n 'FriendRequest',\n 'GroupNotification',\n 'IncomingMessage',\n 'IncomingForwardedMessage',\n 'GroupEssenceMessage',\n 'IncomingSegment',\n 'OutgoingForwardedMessage',\n 'OutgoingSegment',\n];\n\nexport interface Api {\n endpoint: string;\n description: string;\n inputStruct: TypeName | null;\n outputStruct: TypeName | null;\n}\n\nexport interface ApiCategory {\n name: string;\n apis: Api[];\n}\n\nexport const apiCategories: Record<string, ApiCategory> = {\n system: {\n name: '系统 API',\n apis: [\n {\n endpoint: 'get_login_info',\n description: '获取登录信息',\n inputStruct: null,\n outputStruct: 'GetLoginInfoOutput',\n },\n {\n endpoint: 'get_impl_info',\n description: '获取协议端信息',\n inputStruct: null,\n outputStruct: 'GetImplInfoOutput',\n },\n {\n endpoint: 'get_user_profile',\n description: '获取用户个人信息',\n inputStruct: 'GetUserProfileInput',\n outputStruct: 'GetUserProfileOutput',\n },\n {\n endpoint: 'get_friend_list',\n description: '获取好友列表',\n inputStruct: 'GetFriendListInput',\n outputStruct: 'GetFriendListOutput',\n },\n {\n endpoint: 'get_friend_info',\n description: '获取好友信息',\n inputStruct: 'GetFriendInfoInput',\n outputStruct: 'GetFriendInfoOutput',\n },\n {\n endpoint: 'get_group_list',\n description: '获取群列表',\n inputStruct: 'GetGroupListInput',\n outputStruct: 'GetGroupListOutput',\n },\n {\n endpoint: 'get_group_info',\n description: '获取群信息',\n inputStruct: 'GetGroupInfoInput',\n outputStruct: 'GetGroupInfoOutput',\n },\n {\n endpoint: 'get_group_member_list',\n description: '获取群成员列表',\n inputStruct: 'GetGroupMemberListInput',\n outputStruct: 'GetGroupMemberListOutput',\n },\n {\n endpoint: 'get_group_member_info',\n description: '获取群成员信息',\n inputStruct: 'GetGroupMemberInfoInput',\n outputStruct: 'GetGroupMemberInfoOutput',\n },\n {\n endpoint: 'get_cookies',\n description: '获取 Cookies',\n inputStruct: 'GetCookiesInput',\n outputStruct: 'GetCookiesOutput',\n },\n {\n endpoint: 'get_csrf_token',\n description: '获取 CSRF Token',\n inputStruct: null,\n outputStruct: 'GetCSRFTokenOutput',\n },\n ],\n },\n message: {\n name: '消息 API',\n apis: [\n {\n endpoint: 'send_private_message',\n description: '发送私聊消息',\n inputStruct: 'SendPrivateMessageInput',\n outputStruct: 'SendPrivateMessageOutput',\n },\n {\n endpoint: 'send_group_message',\n description: '发送群聊消息',\n inputStruct: 'SendGroupMessageInput',\n outputStruct: 'SendGroupMessageOutput',\n },\n {\n endpoint: 'recall_private_message',\n description: '撤回私聊消息',\n inputStruct: 'RecallPrivateMessageInput',\n outputStruct: null,\n },\n {\n endpoint: 'recall_group_message',\n description: '撤回群聊消息',\n inputStruct: 'RecallGroupMessageInput',\n outputStruct: null,\n },\n {\n endpoint: 'get_message',\n description: '获取消息',\n inputStruct: 'GetMessageInput',\n outputStruct: 'GetMessageOutput',\n },\n {\n endpoint: 'get_history_messages',\n description: '获取历史消息列表',\n inputStruct: 'GetHistoryMessagesInput',\n outputStruct: 'GetHistoryMessagesOutput',\n },\n {\n endpoint: 'get_resource_temp_url',\n description: '获取临时资源链接',\n inputStruct: 'GetResourceTempUrlInput',\n outputStruct: 'GetResourceTempUrlOutput',\n },\n {\n endpoint: 'get_forwarded_messages',\n description: '获取合并转发消息内容',\n inputStruct: 'GetForwardedMessagesInput',\n outputStruct: 'GetForwardedMessagesOutput',\n },\n {\n endpoint: 'mark_message_as_read',\n description: '标记消息为已读',\n inputStruct: 'MarkMessageAsReadInput',\n outputStruct: null,\n },\n ],\n },\n friend: {\n name: '好友 API',\n apis: [\n {\n endpoint: 'send_friend_nudge',\n description: '发送好友戳一戳',\n inputStruct: 'SendFriendNudgeInput',\n outputStruct: null,\n },\n {\n endpoint: 'send_profile_like',\n description: '发送名片点赞',\n inputStruct: 'SendProfileLikeInput',\n outputStruct: null,\n },\n {\n endpoint: 'get_friend_requests',\n description: '获取好友请求列表',\n inputStruct: 'GetFriendRequestsInput',\n outputStruct: 'GetFriendRequestsOutput',\n },\n {\n endpoint: 'accept_friend_request',\n description: '同意好友请求',\n inputStruct: 'AcceptFriendRequestInput',\n outputStruct: null,\n },\n {\n endpoint: 'reject_friend_request',\n description: '拒绝好友请求',\n inputStruct: 'RejectFriendRequestInput',\n outputStruct: null,\n },\n ],\n },\n group: {\n name: '群聊 API',\n apis: [\n {\n endpoint: 'set_group_name',\n description: '设置群名称',\n inputStruct: 'SetGroupNameInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_avatar',\n description: '设置群头像',\n inputStruct: 'SetGroupAvatarInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_member_card',\n description: '设置群名片',\n inputStruct: 'SetGroupMemberCardInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_member_special_title',\n description: '设置群成员专属头衔',\n inputStruct: 'SetGroupMemberSpecialTitleInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_member_admin',\n description: '设置群管理员',\n inputStruct: 'SetGroupMemberAdminInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_member_mute',\n description: '设置群成员禁言',\n inputStruct: 'SetGroupMemberMuteInput',\n outputStruct: null,\n },\n {\n endpoint: 'set_group_whole_mute',\n description: '设置群全员禁言',\n inputStruct: 'SetGroupWholeMuteInput',\n outputStruct: null,\n },\n {\n endpoint: 'kick_group_member',\n description: '踢出群成员',\n inputStruct: 'KickGroupMemberInput',\n outputStruct: null,\n },\n {\n endpoint: 'get_group_announcements',\n description: '获取群公告列表',\n inputStruct: 'GetGroupAnnouncementsInput',\n outputStruct: 'GetGroupAnnouncementsOutput',\n },\n {\n endpoint: 'send_group_announcement',\n description: '发送群公告',\n inputStruct: 'SendGroupAnnouncementInput',\n outputStruct: null,\n },\n {\n endpoint: 'delete_group_announcement',\n description: '删除群公告',\n inputStruct: 'DeleteGroupAnnouncementInput',\n outputStruct: null,\n },\n {\n endpoint: 'get_group_essence_messages',\n description: '获取群精华消息列表',\n inputStruct: 'GetGroupEssenceMessagesInput',\n outputStruct: 'GetGroupEssenceMessagesOutput',\n },\n {\n endpoint: 'set_group_essence_message',\n description: '设置群精华消息',\n inputStruct: 'SetGroupEssenceMessageInput',\n outputStruct: null,\n },\n {\n endpoint: 'quit_group',\n description: '退出群',\n inputStruct: 'QuitGroupInput',\n outputStruct: null,\n },\n {\n endpoint: 'send_group_message_reaction',\n description: '发送群消息表情回应',\n inputStruct: 'SendGroupMessageReactionInput',\n outputStruct: null,\n },\n {\n endpoint: 'send_group_nudge',\n description: '发送群戳一戳',\n inputStruct: 'SendGroupNudgeInput',\n outputStruct: null,\n },\n {\n endpoint: 'get_group_notifications',\n description: '获取群通知列表',\n inputStruct: 'GetGroupNotificationsInput',\n outputStruct: 'GetGroupNotificationsOutput',\n },\n {\n endpoint: 'accept_group_request',\n description: '同意入群/邀请他人入群请求',\n inputStruct: 'AcceptGroupRequestInput',\n outputStruct: null,\n },\n {\n endpoint: 'reject_group_request',\n description: '拒绝入群/邀请他人入群请求',\n inputStruct: 'RejectGroupRequestInput',\n outputStruct: null,\n },\n {\n endpoint: 'accept_group_invitation',\n description: '同意他人邀请自身入群',\n inputStruct: 'AcceptGroupInvitationInput',\n outputStruct: null,\n },\n {\n endpoint: 'reject_group_invitation',\n description: '拒绝他人邀请自身入群',\n inputStruct: 'RejectGroupInvitationInput',\n outputStruct: null,\n },\n ],\n },\n file: {\n name: '文件 API',\n apis: [\n {\n endpoint: 'upload_private_file',\n description: '上传私聊文件',\n inputStruct: 'UploadPrivateFileInput',\n outputStruct: 'UploadPrivateFileOutput',\n },\n {\n endpoint: 'upload_group_file',\n description: '上传群文件',\n inputStruct: 'UploadGroupFileInput',\n outputStruct: 'UploadGroupFileOutput',\n },\n {\n endpoint: 'get_private_file_download_url',\n description: '获取私聊文件下载链接',\n inputStruct: 'GetPrivateFileDownloadUrlInput',\n outputStruct: 'GetPrivateFileDownloadUrlOutput',\n },\n {\n endpoint: 'get_group_file_download_url',\n description: '获取群文件下载链接',\n inputStruct: 'GetGroupFileDownloadUrlInput',\n outputStruct: 'GetGroupFileDownloadUrlOutput',\n },\n {\n endpoint: 'get_group_files',\n description: '获取群文件列表',\n inputStruct: 'GetGroupFilesInput',\n outputStruct: 'GetGroupFilesOutput',\n },\n {\n endpoint: 'move_group_file',\n description: '移动群文件',\n inputStruct: 'MoveGroupFileInput',\n outputStruct: null,\n },\n {\n endpoint: 'rename_group_file',\n description: '重命名群文件',\n inputStruct: 'RenameGroupFileInput',\n outputStruct: null,\n },\n {\n endpoint: 'delete_group_file',\n description: '删除群文件',\n inputStruct: 'DeleteGroupFileInput',\n outputStruct: null,\n },\n {\n endpoint: 'create_group_folder',\n description: '创建群文件夹',\n inputStruct: 'CreateGroupFolderInput',\n outputStruct: 'CreateGroupFolderOutput',\n },\n {\n endpoint: 'rename_group_folder',\n description: '重命名群文件夹',\n inputStruct: 'RenameGroupFolderInput',\n outputStruct: null,\n },\n {\n endpoint: 'delete_group_folder',\n description: '删除群文件夹',\n inputStruct: 'DeleteGroupFolderInput',\n outputStruct: null,\n },\n ],\n },\n};\n"],"mappings":";AAGO,IAAM,gBAA4B;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAcO,IAAM,gBAA6C;AAAA,EACxD,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ;AAAA,QACE,UAAU;AAAA,QACV,aAAa;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,MAChB;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,aAAa;AAAA,QACb,aAAa;AAAA,QACb,cAAc;AAAA,MAChB;A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