@saltify/milky-types 1.2.0 → 1.2.1-rc.2

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.
@@ -1 +0,0 @@
1
- {"version":3,"file":"namings.mjs","names":[],"sources":["../src/namings.ts"],"sourcesContent":["import type * as schema from '.';\n\nexport type MilkyStructName = keyof typeof schema;\n\nexport const commonStructNames: MilkyStructName[] = [\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 ApiSpecCategory {\n key: string;\n name: string;\n apiSpecs: ApiSpec[];\n}\n\nexport interface ApiSpec {\n endpoint: string;\n description: string;\n inputStructName: MilkyStructName | null;\n outputStructName: MilkyStructName | null;\n}\n\nexport const apiSpecCategories: ApiSpecCategory[] = [\n {\n key: 'system',\n name: '系统 API',\n apiSpecs: [\n {\n endpoint: 'get_login_info',\n description: '获取登录信息',\n inputStructName: null,\n outputStructName: 'GetLoginInfoOutput',\n },\n {\n endpoint: 'get_impl_info',\n description: '获取协议端信息',\n inputStructName: null,\n outputStructName: 'GetImplInfoOutput',\n },\n {\n endpoint: 'get_user_profile',\n description: '获取用户个人信息',\n inputStructName: 'GetUserProfileInput',\n outputStructName: 'GetUserProfileOutput',\n },\n {\n endpoint: 'get_friend_list',\n description: '获取好友列表',\n inputStructName: 'GetFriendListInput',\n outputStructName: 'GetFriendListOutput',\n },\n {\n endpoint: 'get_friend_info',\n description: '获取好友信息',\n inputStructName: 'GetFriendInfoInput',\n outputStructName: 'GetFriendInfoOutput',\n },\n {\n endpoint: 'get_group_list',\n description: '获取群列表',\n inputStructName: 'GetGroupListInput',\n outputStructName: 'GetGroupListOutput',\n },\n {\n endpoint: 'get_group_info',\n description: '获取群信息',\n inputStructName: 'GetGroupInfoInput',\n outputStructName: 'GetGroupInfoOutput',\n },\n {\n endpoint: 'get_group_member_list',\n description: '获取群成员列表',\n inputStructName: 'GetGroupMemberListInput',\n outputStructName: 'GetGroupMemberListOutput',\n },\n {\n endpoint: 'get_group_member_info',\n description: '获取群成员信息',\n inputStructName: 'GetGroupMemberInfoInput',\n outputStructName: 'GetGroupMemberInfoOutput',\n },\n {\n endpoint: 'get_peer_pins',\n description: '获取置顶的好友和群列表',\n inputStructName: null,\n outputStructName: 'GetPeerPinsOutput',\n },\n {\n endpoint: 'set_peer_pin',\n description: '设置好友或群的置顶状态',\n inputStructName: 'SetPeerPinInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_avatar',\n description: '设置 QQ 账号头像',\n inputStructName: 'SetAvatarInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_nickname',\n description: '设置 QQ 账号昵称',\n inputStructName: 'SetNicknameInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_bio',\n description: '设置 QQ 账号个性签名',\n inputStructName: 'SetBioInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_custom_face_url_list',\n description: '获取自定义表情 URL 列表',\n inputStructName: null,\n outputStructName: 'GetCustomFaceUrlListOutput',\n },\n {\n endpoint: 'get_cookies',\n description: '获取 Cookies',\n inputStructName: 'GetCookiesInput',\n outputStructName: 'GetCookiesOutput',\n },\n {\n endpoint: 'get_csrf_token',\n description: '获取 CSRF Token',\n inputStructName: null,\n outputStructName: 'GetCSRFTokenOutput',\n },\n ],\n },\n {\n key: 'message',\n name: '消息 API',\n apiSpecs: [\n {\n endpoint: 'send_private_message',\n description: '发送私聊消息',\n inputStructName: 'SendPrivateMessageInput',\n outputStructName: 'SendPrivateMessageOutput',\n },\n {\n endpoint: 'send_group_message',\n description: '发送群聊消息',\n inputStructName: 'SendGroupMessageInput',\n outputStructName: 'SendGroupMessageOutput',\n },\n {\n endpoint: 'recall_private_message',\n description: '撤回私聊消息',\n inputStructName: 'RecallPrivateMessageInput',\n outputStructName: null,\n },\n {\n endpoint: 'recall_group_message',\n description: '撤回群聊消息',\n inputStructName: 'RecallGroupMessageInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_message',\n description: '获取消息',\n inputStructName: 'GetMessageInput',\n outputStructName: 'GetMessageOutput',\n },\n {\n endpoint: 'get_history_messages',\n description: '获取历史消息列表',\n inputStructName: 'GetHistoryMessagesInput',\n outputStructName: 'GetHistoryMessagesOutput',\n },\n {\n endpoint: 'get_resource_temp_url',\n description: '获取临时资源链接',\n inputStructName: 'GetResourceTempUrlInput',\n outputStructName: 'GetResourceTempUrlOutput',\n },\n {\n endpoint: 'get_forwarded_messages',\n description: '获取合并转发消息内容',\n inputStructName: 'GetForwardedMessagesInput',\n outputStructName: 'GetForwardedMessagesOutput',\n },\n {\n endpoint: 'mark_message_as_read',\n description: '标记消息为已读',\n inputStructName: 'MarkMessageAsReadInput',\n outputStructName: null,\n },\n ],\n },\n {\n key: 'friend',\n name: '好友 API',\n apiSpecs: [\n {\n endpoint: 'send_friend_nudge',\n description: '发送好友戳一戳',\n inputStructName: 'SendFriendNudgeInput',\n outputStructName: null,\n },\n {\n endpoint: 'send_profile_like',\n description: '发送名片点赞',\n inputStructName: 'SendProfileLikeInput',\n outputStructName: null,\n },\n {\n endpoint: 'delete_friend',\n description: '删除好友',\n inputStructName: 'DeleteFriendInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_friend_requests',\n description: '获取好友请求列表',\n inputStructName: 'GetFriendRequestsInput',\n outputStructName: 'GetFriendRequestsOutput',\n },\n {\n endpoint: 'accept_friend_request',\n description: '同意好友请求',\n inputStructName: 'AcceptFriendRequestInput',\n outputStructName: null,\n },\n {\n endpoint: 'reject_friend_request',\n description: '拒绝好友请求',\n inputStructName: 'RejectFriendRequestInput',\n outputStructName: null,\n },\n ],\n },\n {\n key: 'group',\n name: '群聊 API',\n apiSpecs: [\n {\n endpoint: 'set_group_name',\n description: '设置群名称',\n inputStructName: 'SetGroupNameInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_avatar',\n description: '设置群头像',\n inputStructName: 'SetGroupAvatarInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_member_card',\n description: '设置群名片',\n inputStructName: 'SetGroupMemberCardInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_member_special_title',\n description: '设置群成员专属头衔',\n inputStructName: 'SetGroupMemberSpecialTitleInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_member_admin',\n description: '设置群管理员',\n inputStructName: 'SetGroupMemberAdminInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_member_mute',\n description: '设置群成员禁言',\n inputStructName: 'SetGroupMemberMuteInput',\n outputStructName: null,\n },\n {\n endpoint: 'set_group_whole_mute',\n description: '设置群全员禁言',\n inputStructName: 'SetGroupWholeMuteInput',\n outputStructName: null,\n },\n {\n endpoint: 'kick_group_member',\n description: '踢出群成员',\n inputStructName: 'KickGroupMemberInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_group_announcements',\n description: '获取群公告列表',\n inputStructName: 'GetGroupAnnouncementsInput',\n outputStructName: 'GetGroupAnnouncementsOutput',\n },\n {\n endpoint: 'send_group_announcement',\n description: '发送群公告',\n inputStructName: 'SendGroupAnnouncementInput',\n outputStructName: null,\n },\n {\n endpoint: 'delete_group_announcement',\n description: '删除群公告',\n inputStructName: 'DeleteGroupAnnouncementInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_group_essence_messages',\n description: '获取群精华消息列表',\n inputStructName: 'GetGroupEssenceMessagesInput',\n outputStructName: 'GetGroupEssenceMessagesOutput',\n },\n {\n endpoint: 'set_group_essence_message',\n description: '设置群精华消息',\n inputStructName: 'SetGroupEssenceMessageInput',\n outputStructName: null,\n },\n {\n endpoint: 'quit_group',\n description: '退出群',\n inputStructName: 'QuitGroupInput',\n outputStructName: null,\n },\n {\n endpoint: 'send_group_message_reaction',\n description: '发送群消息表情回应',\n inputStructName: 'SendGroupMessageReactionInput',\n outputStructName: null,\n },\n {\n endpoint: 'send_group_nudge',\n description: '发送群戳一戳',\n inputStructName: 'SendGroupNudgeInput',\n outputStructName: null,\n },\n {\n endpoint: 'get_group_notifications',\n description: '获取群通知列表',\n inputStructName: 'GetGroupNotificationsInput',\n outputStructName: 'GetGroupNotificationsOutput',\n },\n {\n endpoint: 'accept_group_request',\n description: '同意入群/邀请他人入群请求',\n inputStructName: 'AcceptGroupRequestInput',\n outputStructName: null,\n },\n {\n endpoint: 'reject_group_request',\n description: '拒绝入群/邀请他人入群请求',\n inputStructName: 'RejectGroupRequestInput',\n outputStructName: null,\n },\n {\n endpoint: 'accept_group_invitation',\n description: '同意他人邀请自身入群',\n inputStructName: 'AcceptGroupInvitationInput',\n outputStructName: null,\n },\n {\n endpoint: 'reject_group_invitation',\n description: '拒绝他人邀请自身入群',\n inputStructName: 'RejectGroupInvitationInput',\n outputStructName: null,\n },\n ],\n },\n {\n key: 'file',\n name: '文件 API',\n apiSpecs: [\n {\n endpoint: 'upload_private_file',\n description: '上传私聊文件',\n inputStructName: 'UploadPrivateFileInput',\n outputStructName: 'UploadPrivateFileOutput',\n },\n {\n endpoint: 'upload_group_file',\n description: '上传群文件',\n inputStructName: 'UploadGroupFileInput',\n outputStructName: 'UploadGroupFileOutput',\n },\n {\n endpoint: 'get_private_file_download_url',\n description: '获取私聊文件下载链接',\n inputStructName: 'GetPrivateFileDownloadUrlInput',\n outputStructName: 'GetPrivateFileDownloadUrlOutput',\n },\n {\n endpoint: 'get_group_file_download_url',\n description: '获取群文件下载链接',\n inputStructName: 'GetGroupFileDownloadUrlInput',\n outputStructName: 'GetGroupFileDownloadUrlOutput',\n },\n {\n endpoint: 'get_group_files',\n description: '获取群文件列表',\n inputStructName: 'GetGroupFilesInput',\n outputStructName: 'GetGroupFilesOutput',\n },\n {\n endpoint: 'move_group_file',\n description: '移动群文件',\n inputStructName: 'MoveGroupFileInput',\n outputStructName: null,\n },\n {\n endpoint: 'rename_group_file',\n description: '重命名群文件',\n inputStructName: 'RenameGroupFileInput',\n outputStructName: null,\n },\n {\n endpoint: 'delete_group_file',\n description: '删除群文件',\n inputStructName: 'DeleteGroupFileInput',\n outputStructName: null,\n },\n {\n endpoint: 'create_group_folder',\n description: '创建群文件夹',\n inputStructName: 'CreateGroupFolderInput',\n outputStructName: 'CreateGroupFolderOutput',\n },\n {\n endpoint: 'rename_group_folder',\n description: '重命名群文件夹',\n inputStructName: 'RenameGroupFolderInput',\n outputStructName: null,\n },\n {\n endpoint: 'delete_group_folder',\n description: '删除群文件夹',\n inputStructName: 'DeleteGroupFolderInput',\n outputStructName: null,\n },\n ],\n },\n];\n"],"mappings":";AAIA,MAAa,oBAAuC;CAClD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAeD,MAAa,oBAAuC;CAClD;EACE,KAAK;EACL,MAAM;EACN,UAAU;GACR;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACF;EACF;CACD;EACE,KAAK;EACL,MAAM;EACN,UAAU;GACR;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACF;EACF;CACD;EACE,KAAK;EACL,MAAM;EACN,UAAU;GACR;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACF;EACF;CACD;EACE,KAAK;EACL,MAAM;EACN,UAAU;GACR;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACF;EACF;CACD;EACE,KAAK;EACL,MAAM;EACN,UAAU;GACR;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACD;IACE,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IACnB;GACF;EACF;CACF"}