@saltify/milky-types 1.0.0-draft.14 → 1.0.0-draft.16
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 +1 -1
- package/dist/{index-K0tPH0xY.d.ts → index-DN2wVEjK.d.ts} +88 -80
- package/dist/index.d.ts +1 -1
- package/dist/index.js +50 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { au as AcceptFriendRequestInput, aS as AcceptGroupInvitationInput, aQ as AcceptGroupRequestInput, B as BotOfflineEvent, b5 as CreateGroupFolderInput, b6 as CreateGroupFolderOutput, aH as DeleteGroupAnnouncementInput, b4 as DeleteGroupFileInput, b8 as DeleteGroupFolderInput, R as Event, F as FriendCategoryEntity, h as FriendEntity, A as FriendFileUploadEvent, z as FriendNudgeEvent, m as FriendRequest, v as FriendRequestEvent, aa as GetCSRFTokenOutput, a8 as GetCookiesInput, a9 as GetCookiesOutput, an as GetForwardedMessagesInput, ao as GetForwardedMessagesOutput, _ as GetFriendInfoInput, $ as GetFriendInfoOutput, X as GetFriendListInput, Y as GetFriendListOutput, as as GetFriendRequestsInput, at as GetFriendRequestsOutput, aE as GetGroupAnnouncementListInput, aF as GetGroupAnnouncementListOutput, aI as GetGroupEssenceMessagesInput, aJ as GetGroupEssenceMessagesOutput, a_ as GetGroupFileDownloadUrlInput, a$ as GetGroupFileDownloadUrlOutput, b0 as GetGroupFilesInput, b1 as GetGroupFilesOutput, a2 as GetGroupInfoInput, a3 as GetGroupInfoOutput, a0 as GetGroupListInput, a1 as GetGroupListOutput, a6 as GetGroupMemberInfoInput, a7 as GetGroupMemberInfoOutput, a4 as GetGroupMemberListInput, a5 as GetGroupMemberListOutput, aO as GetGroupNotificationsInput, aP as GetGroupNotificationsOutput, aj as GetHistoryMessagesInput, ak as GetHistoryMessagesOutput, U as GetImplInfoOutput, T as GetLoginInfoOutput, ah as GetMessageInput, ai as GetMessageOutput, aY as GetPrivateFileDownloadUrlInput, aZ as GetPrivateFileDownloadUrlOutput, al as GetResourceTempUrlInput, am as GetResourceTempUrlOutput, V as GetUserProfileInput, W as GetUserProfileOutput, C as GroupAdminChangeEvent, j as GroupAnnouncementEntity, G as GroupEntity, u as GroupEssenceMessage, D as GroupEssenceMessageChangeEvent, k as GroupFileEntity, Q as GroupFileUploadEvent, l as GroupFolderEntity, y as GroupInvitationEvent, x as GroupInvitedJoinRequestEvent, w as GroupJoinRequestEvent, H as GroupMemberDecreaseEvent, i as GroupMemberEntity, E as GroupMemberIncreaseEvent, K as GroupMessageReactionEvent, L as GroupMuteEvent, J as GroupNameChangeEvent, n as GroupNotification, P as GroupNudgeEvent, N as GroupWholeMuteEvent, p as IncomingForwardedMessage, s as IncomingMessage, I as IncomingResourceSegmentBase, o as IncomingSegment, aD as KickGroupMemberInput, ap as MarkMessageAsReadInput, M as MessageRecallEvent, b2 as MoveGroupFileInput, r as OutgoingForwardedMessage, O as OutgoingResourceSegmentBase, q as OutgoingSegment, aL as QuitGroupInput, ag as RecallGroupMessageInput, af as RecallPrivateMessageInput, av as RejectFriendRequestInput, aT as RejectGroupInvitationInput, aR as RejectGroupRequestInput, b3 as RenameGroupFileInput, b7 as RenameGroupFolderInput, aq as SendFriendNudgeInput, aG as SendGroupAnnouncementInput, ad as SendGroupMessageInput, ae as SendGroupMessageOutput, aM as SendGroupMessageReactionInput, aN as SendGroupNudgeInput, ab as SendPrivateMessageInput, ac as SendPrivateMessageOutput, ar as SendProfileLikeInput, ax as SetGroupAvatarInput, aK as SetGroupEssenceMessageInput, aA as SetGroupMemberAdminInput, ay as SetGroupMemberCardInput, aB as SetGroupMemberMuteInput, az as SetGroupMemberSpecialTitleInput, aw as SetGroupNameInput, aC as SetGroupWholeMuteInput, S as SharedSegment, aW as UploadGroupFileInput, aX as UploadGroupFileOutput, aU as UploadPrivateFileInput, aV as UploadPrivateFileOutput, b as ZBoolean, f as ZBooleanWithDefault, Z as ZInt32, d as ZInt32WithDefault, a as ZInt64, e as ZInt64WithDefault, c as ZString, g as ZStringWithDefault, ba as milkyPackageVersion, b9 as milkyVersion } from './index-DN2wVEjK.js';
|
|
2
2
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,10 @@ var ZInt32 = z.number().int().min(-2147483648).max(2147483647).meta({ scalarType
|
|
|
4
4
|
var ZInt64 = z.number().int().meta({ scalarType: "int64" });
|
|
5
5
|
var ZBoolean = z.boolean().meta({ scalarType: "boolean" });
|
|
6
6
|
var ZString = z.string().meta({ scalarType: "string" });
|
|
7
|
+
var ZInt32WithDefault = (defaultValue) => z.number().int().min(-2147483648).max(2147483647).nullish().default(defaultValue).transform((v) => v ?? defaultValue).meta({ scalarType: "int32" });
|
|
8
|
+
var ZInt64WithDefault = (defaultValue) => z.number().int().nullish().default(defaultValue).transform((v) => v ?? defaultValue).meta({ scalarType: "int64" });
|
|
9
|
+
var ZBooleanWithDefault = (defaultValue) => z.boolean().nullish().default(defaultValue).transform((v) => v ?? defaultValue).meta({ scalarType: "boolean" });
|
|
10
|
+
var ZStringWithDefault = (defaultValue) => z.string().nullish().default(defaultValue).transform((v) => v ?? defaultValue).meta({ scalarType: "string" });
|
|
7
11
|
|
|
8
12
|
// src/common.ts
|
|
9
13
|
import { z as z2 } from "zod";
|
|
@@ -35,7 +39,7 @@ var GroupMemberEntity = UserEntityBase.extend({
|
|
|
35
39
|
role: z2.enum(["owner", "admin", "member"]).describe("\u6743\u9650\u7B49\u7EA7"),
|
|
36
40
|
join_time: ZInt64.describe("\u5165\u7FA4\u65F6\u95F4\uFF0CUnix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
37
41
|
last_sent_time: ZInt64.describe("\u6700\u540E\u53D1\u8A00\u65F6\u95F4\uFF0CUnix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
38
|
-
shut_up_end_time: ZInt64.
|
|
42
|
+
shut_up_end_time: ZInt64.nullish().describe("\u7981\u8A00\u7ED3\u675F\u65F6\u95F4\uFF0CUnix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09")
|
|
39
43
|
}).describe("\u7FA4\u6210\u5458\u5B9E\u4F53");
|
|
40
44
|
var GroupAnnouncementEntity = z2.object({
|
|
41
45
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
@@ -43,7 +47,7 @@ var GroupAnnouncementEntity = z2.object({
|
|
|
43
47
|
user_id: ZInt64.describe("\u53D1\u9001\u8005 QQ \u53F7"),
|
|
44
48
|
time: ZInt64.describe("Unix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
45
49
|
content: ZString.describe("\u516C\u544A\u5185\u5BB9"),
|
|
46
|
-
image_url: ZString.
|
|
50
|
+
image_url: ZString.nullish().describe("\u516C\u544A\u56FE\u7247 URL")
|
|
47
51
|
}).describe("\u7FA4\u516C\u544A\u5B9E\u4F53");
|
|
48
52
|
var GroupFileEntity = z2.object({
|
|
49
53
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
@@ -52,7 +56,7 @@ var GroupFileEntity = z2.object({
|
|
|
52
56
|
parent_folder_id: ZString.describe("\u7236\u6587\u4EF6\u5939 ID"),
|
|
53
57
|
file_size: ZInt64.describe("\u6587\u4EF6\u5927\u5C0F\uFF08\u5B57\u8282\uFF09"),
|
|
54
58
|
uploaded_time: ZInt64.describe("\u4E0A\u4F20\u65F6\u7684 Unix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
55
|
-
expire_time: ZInt64.
|
|
59
|
+
expire_time: ZInt64.nullish().describe("\u8FC7\u671F\u65F6\u7684 Unix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
56
60
|
uploader_id: ZInt64.describe("\u4E0A\u4F20\u8005 QQ \u53F7"),
|
|
57
61
|
downloaded_times: ZInt32.describe("\u4E0B\u8F7D\u6B21\u6570")
|
|
58
62
|
}).describe("\u7FA4\u6587\u4EF6\u5B9E\u4F53");
|
|
@@ -86,7 +90,7 @@ var GroupNotification = z2.discriminatedUnion("type", [
|
|
|
86
90
|
is_filtered: ZBoolean.describe("\u8BF7\u6C42\u662F\u5426\u88AB\u8FC7\u6EE4\uFF08\u53D1\u8D77\u81EA\u98CE\u9669\u8D26\u6237\uFF09"),
|
|
87
91
|
initiator_id: ZInt64.describe("\u53D1\u8D77\u8005 QQ \u53F7"),
|
|
88
92
|
state: z2.enum(["pending", "accepted", "rejected", "ignored"]).describe("\u8BF7\u6C42\u72B6\u6001"),
|
|
89
|
-
operator_id: ZInt64.
|
|
93
|
+
operator_id: ZInt64.nullish().describe("\u5904\u7406\u8BF7\u6C42\u7684\u7BA1\u7406\u5458 QQ \u53F7"),
|
|
90
94
|
comment: ZString.describe("\u5165\u7FA4\u8BF7\u6C42\u9644\u52A0\u4FE1\u606F")
|
|
91
95
|
}).describe("\u7528\u6237\u5165\u7FA4\u8BF7\u6C42"),
|
|
92
96
|
z2.object({
|
|
@@ -121,7 +125,7 @@ var GroupNotification = z2.discriminatedUnion("type", [
|
|
|
121
125
|
initiator_id: ZInt64.describe("\u9080\u8BF7\u8005 QQ \u53F7"),
|
|
122
126
|
target_user_id: ZInt64.describe("\u88AB\u9080\u8BF7\u7528\u6237 QQ \u53F7"),
|
|
123
127
|
state: z2.enum(["pending", "accepted", "rejected", "ignored"]).describe("\u8BF7\u6C42\u72B6\u6001"),
|
|
124
|
-
operator_id: ZInt64.
|
|
128
|
+
operator_id: ZInt64.nullish().describe("\u5904\u7406\u8BF7\u6C42\u7684\u7BA1\u7406\u5458 QQ \u53F7")
|
|
125
129
|
}).describe("\u7FA4\u6210\u5458\u9080\u8BF7\u4ED6\u4EBA\u5165\u7FA4\u8BF7\u6C42")
|
|
126
130
|
]).describe("\u7FA4\u901A\u77E5\u5B9E\u4F53");
|
|
127
131
|
|
|
@@ -254,7 +258,7 @@ var OutgoingSegment = z3.discriminatedUnion("type", [
|
|
|
254
258
|
z3.object({
|
|
255
259
|
type: z3.literal("image"),
|
|
256
260
|
data: OutgoingResourceSegmentBase.extend({
|
|
257
|
-
summary: ZString.
|
|
261
|
+
summary: ZString.nullish().describe("\u56FE\u7247\u9884\u89C8\u6587\u672C"),
|
|
258
262
|
sub_type: z3.enum(["normal", "sticker"]).describe("\u56FE\u7247\u7C7B\u578B")
|
|
259
263
|
}).describe("\u56FE\u7247\u6D88\u606F\u6BB5")
|
|
260
264
|
}).describe("\u56FE\u7247\u6D88\u606F\u6BB5"),
|
|
@@ -265,7 +269,7 @@ var OutgoingSegment = z3.discriminatedUnion("type", [
|
|
|
265
269
|
z3.object({
|
|
266
270
|
type: z3.literal("video"),
|
|
267
271
|
data: OutgoingResourceSegmentBase.extend({
|
|
268
|
-
thumb_uri: ZString.
|
|
272
|
+
thumb_uri: ZString.nullish().describe("\u5C01\u9762\u56FE\u7247 URI")
|
|
269
273
|
}).describe("\u89C6\u9891\u6D88\u606F\u6BB5")
|
|
270
274
|
}).describe("\u89C6\u9891\u6D88\u606F\u6BB5"),
|
|
271
275
|
z3.object({
|
|
@@ -309,7 +313,7 @@ var IncomingMessage = z3.discriminatedUnion("message_scene", [
|
|
|
309
313
|
sender_id: ZInt64.describe("\u53D1\u9001\u8005 QQ \u53F7"),
|
|
310
314
|
time: ZInt64.describe("\u6D88\u606F Unix \u65F6\u95F4\u6233\uFF08\u79D2\uFF09"),
|
|
311
315
|
segments: z3.array(z3.lazy(() => IncomingSegment)).describe("\u6D88\u606F\u6BB5\u5217\u8868"),
|
|
312
|
-
group: z3.lazy(() => GroupEntity).
|
|
316
|
+
group: z3.lazy(() => GroupEntity).nullish().describe("\u4E34\u65F6\u4F1A\u8BDD\u53D1\u9001\u8005\u7684\u6240\u5728\u7684\u7FA4\u4FE1\u606F")
|
|
313
317
|
}).describe("\u4E34\u65F6\u4F1A\u8BDD\u6D88\u606F")
|
|
314
318
|
]).describe("\u63A5\u6536\u6D88\u606F");
|
|
315
319
|
var GroupEssenceMessage = z3.object({
|
|
@@ -390,13 +394,13 @@ var GroupEssenceMessageChangeEvent = z4.object({
|
|
|
390
394
|
var GroupMemberIncreaseEvent = z4.object({
|
|
391
395
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
392
396
|
user_id: ZInt64.describe("\u53D1\u751F\u53D8\u66F4\u7684\u7528\u6237 QQ \u53F7"),
|
|
393
|
-
operator_id: ZInt64.
|
|
394
|
-
invitor_id: ZInt64.
|
|
397
|
+
operator_id: ZInt64.nullish().describe("\u7BA1\u7406\u5458 QQ \u53F7\uFF0C\u5982\u679C\u662F\u7BA1\u7406\u5458\u540C\u610F\u5165\u7FA4"),
|
|
398
|
+
invitor_id: ZInt64.nullish().describe("\u9080\u8BF7\u8005 QQ \u53F7\uFF0C\u5982\u679C\u662F\u9080\u8BF7\u5165\u7FA4")
|
|
395
399
|
}).describe("\u7FA4\u6210\u5458\u589E\u52A0\u4E8B\u4EF6");
|
|
396
400
|
var GroupMemberDecreaseEvent = z4.object({
|
|
397
401
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
398
402
|
user_id: ZInt64.describe("\u53D1\u751F\u53D8\u66F4\u7684\u7528\u6237 QQ \u53F7"),
|
|
399
|
-
operator_id: ZInt64.
|
|
403
|
+
operator_id: ZInt64.nullish().describe("\u7BA1\u7406\u5458 QQ \u53F7\uFF0C\u5982\u679C\u662F\u7BA1\u7406\u5458\u8E22\u51FA")
|
|
400
404
|
}).describe("\u7FA4\u6210\u5458\u51CF\u5C11\u4E8B\u4EF6");
|
|
401
405
|
var GroupNameChangeEvent = z4.object({
|
|
402
406
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
@@ -560,7 +564,7 @@ import { z as z5 } from "zod";
|
|
|
560
564
|
var package_default = {
|
|
561
565
|
name: "@saltify/milky-types",
|
|
562
566
|
type: "module",
|
|
563
|
-
version: "1.0.0-draft.
|
|
567
|
+
version: "1.0.0-draft.16",
|
|
564
568
|
description: "Type definitions for Milky protocol",
|
|
565
569
|
main: "src/index.ts",
|
|
566
570
|
exports: {
|
|
@@ -612,7 +616,7 @@ var milkyPackageVersion = package_default.version;
|
|
|
612
616
|
|
|
613
617
|
// src/api/system.ts
|
|
614
618
|
var CachedApiBase = z5.object({
|
|
615
|
-
no_cache:
|
|
619
|
+
no_cache: ZBooleanWithDefault(false).describe("\u662F\u5426\u5F3A\u5236\u4E0D\u4F7F\u7528\u7F13\u5B58")
|
|
616
620
|
});
|
|
617
621
|
var GetLoginInfoOutput = z5.object({
|
|
618
622
|
uin: ZInt64.describe("\u767B\u5F55 QQ \u53F7"),
|
|
@@ -729,12 +733,12 @@ var GetMessageOutput = z6.object({
|
|
|
729
733
|
var GetHistoryMessagesInput = z6.object({
|
|
730
734
|
message_scene: z6.enum(["friend", "group", "temp"]).describe("\u6D88\u606F\u573A\u666F"),
|
|
731
735
|
peer_id: ZInt64.describe("\u597D\u53CB QQ \u53F7\u6216\u7FA4\u53F7"),
|
|
732
|
-
start_message_seq: ZInt64.
|
|
733
|
-
limit:
|
|
736
|
+
start_message_seq: ZInt64.nullish().describe("\u8D77\u59CB\u6D88\u606F\u5E8F\u5217\u53F7\uFF0C\u7531\u6B64\u5F00\u59CB\u4ECE\u65B0\u5230\u65E7\u67E5\u8BE2\uFF0C\u4E0D\u63D0\u4F9B\u5219\u4ECE\u6700\u65B0\u6D88\u606F\u5F00\u59CB"),
|
|
737
|
+
limit: z6.number().int().min(1).max(30).nullish().default(20).transform((v) => v ?? 20).meta({ scalarType: "int32" }).describe("\u671F\u671B\u83B7\u53D6\u5230\u7684\u6D88\u606F\u6570\u91CF\uFF0C\u6700\u591A 30 \u6761")
|
|
734
738
|
});
|
|
735
739
|
var GetHistoryMessagesOutput = z6.object({
|
|
736
740
|
messages: z6.array(z6.lazy(() => IncomingMessage)).describe("\u83B7\u53D6\u5230\u7684\u6D88\u606F\uFF08message_seq \u5347\u5E8F\u6392\u5217\uFF09\uFF0C\u90E8\u5206\u6D88\u606F\u53EF\u80FD\u4E0D\u5B58\u5728\uFF0C\u5982\u64A4\u56DE\u7684\u6D88\u606F"),
|
|
737
|
-
next_message_seq: ZInt64.
|
|
741
|
+
next_message_seq: ZInt64.nullish().describe("\u4E0B\u4E00\u9875\u8D77\u59CB\u6D88\u606F\u5E8F\u5217\u53F7")
|
|
738
742
|
});
|
|
739
743
|
var GetResourceTempUrlInput = z6.object({
|
|
740
744
|
resource_id: ZString.describe("\u8D44\u6E90 ID")
|
|
@@ -758,27 +762,27 @@ var MarkMessageAsReadInput = z6.object({
|
|
|
758
762
|
import { z as z7 } from "zod";
|
|
759
763
|
var SendFriendNudgeInput = z7.object({
|
|
760
764
|
user_id: ZInt64.describe("\u597D\u53CB QQ \u53F7"),
|
|
761
|
-
is_self:
|
|
765
|
+
is_self: ZBooleanWithDefault(false).describe("\u662F\u5426\u6233\u81EA\u5DF1")
|
|
762
766
|
});
|
|
763
767
|
var SendProfileLikeInput = z7.object({
|
|
764
768
|
user_id: ZInt64.describe("\u597D\u53CB QQ \u53F7"),
|
|
765
|
-
count:
|
|
769
|
+
count: ZInt32WithDefault(1).describe("\u70B9\u8D5E\u6570\u91CF")
|
|
766
770
|
});
|
|
767
771
|
var GetFriendRequestsInput = z7.object({
|
|
768
|
-
limit:
|
|
769
|
-
is_filtered:
|
|
772
|
+
limit: ZInt32WithDefault(20).describe("\u83B7\u53D6\u7684\u6700\u5927\u8BF7\u6C42\u6570\u91CF"),
|
|
773
|
+
is_filtered: ZBooleanWithDefault(false).describe("`true` \u8868\u793A\u53EA\u83B7\u53D6\u88AB\u8FC7\u6EE4\uFF08\u7531\u98CE\u9669\u8D26\u53F7\u53D1\u8D77\uFF09\u7684\u901A\u77E5\uFF0C`false` \u8868\u793A\u53EA\u83B7\u53D6\u672A\u88AB\u8FC7\u6EE4\u7684\u901A\u77E5")
|
|
770
774
|
});
|
|
771
775
|
var GetFriendRequestsOutput = z7.object({
|
|
772
776
|
requests: z7.array(z7.lazy(() => FriendRequest)).describe("\u597D\u53CB\u8BF7\u6C42\u5217\u8868")
|
|
773
777
|
});
|
|
774
778
|
var AcceptFriendRequestInput = z7.object({
|
|
775
779
|
initiator_uid: ZString.describe("\u8BF7\u6C42\u53D1\u8D77\u8005 UID"),
|
|
776
|
-
is_filtered:
|
|
780
|
+
is_filtered: ZBooleanWithDefault(false).describe("\u662F\u5426\u662F\u88AB\u8FC7\u6EE4\u7684\u8BF7\u6C42")
|
|
777
781
|
});
|
|
778
782
|
var RejectFriendRequestInput = z7.object({
|
|
779
783
|
initiator_uid: ZString.describe("\u8BF7\u6C42\u53D1\u8D77\u8005 UID"),
|
|
780
|
-
is_filtered:
|
|
781
|
-
reason: ZString.
|
|
784
|
+
is_filtered: ZBooleanWithDefault(false).describe("\u662F\u5426\u662F\u88AB\u8FC7\u6EE4\u7684\u8BF7\u6C42"),
|
|
785
|
+
reason: ZString.nullish().describe("\u62D2\u7EDD\u7406\u7531")
|
|
782
786
|
});
|
|
783
787
|
|
|
784
788
|
// src/api/group.ts
|
|
@@ -804,21 +808,21 @@ var SetGroupMemberSpecialTitleInput = z8.object({
|
|
|
804
808
|
var SetGroupMemberAdminInput = z8.object({
|
|
805
809
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
806
810
|
user_id: ZInt64.describe("\u88AB\u8BBE\u7F6E\u7684 QQ \u53F7"),
|
|
807
|
-
is_set:
|
|
811
|
+
is_set: ZBooleanWithDefault(true).describe("\u662F\u5426\u8BBE\u7F6E\u4E3A\u7BA1\u7406\u5458\uFF0C`false` \u8868\u793A\u53D6\u6D88\u7BA1\u7406\u5458")
|
|
808
812
|
});
|
|
809
813
|
var SetGroupMemberMuteInput = z8.object({
|
|
810
814
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
811
815
|
user_id: ZInt64.describe("\u88AB\u8BBE\u7F6E\u7684 QQ \u53F7"),
|
|
812
|
-
duration:
|
|
816
|
+
duration: ZInt64WithDefault(0).describe("\u7981\u8A00\u6301\u7EED\u65F6\u95F4\uFF08\u79D2\uFF09\uFF0C\u8BBE\u4E3A `0` \u4E3A\u53D6\u6D88\u7981\u8A00")
|
|
813
817
|
});
|
|
814
818
|
var SetGroupWholeMuteInput = z8.object({
|
|
815
819
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
816
|
-
is_mute:
|
|
820
|
+
is_mute: ZBooleanWithDefault(true).describe("\u662F\u5426\u5F00\u542F\u5168\u5458\u7981\u8A00\uFF0C`false` \u8868\u793A\u53D6\u6D88\u5168\u5458\u7981\u8A00")
|
|
817
821
|
});
|
|
818
822
|
var KickGroupMemberInput = z8.object({
|
|
819
823
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
820
824
|
user_id: ZInt64.describe("\u88AB\u8E22\u7684 QQ \u53F7"),
|
|
821
|
-
reject_add_request:
|
|
825
|
+
reject_add_request: ZBooleanWithDefault(false).describe("\u662F\u5426\u62D2\u7EDD\u52A0\u7FA4\u7533\u8BF7\uFF0C`false` \u8868\u793A\u4E0D\u62D2\u7EDD")
|
|
822
826
|
});
|
|
823
827
|
var GetGroupAnnouncementListInput = z8.object({
|
|
824
828
|
group_id: ZInt64.describe("\u7FA4\u53F7")
|
|
@@ -829,7 +833,7 @@ var GetGroupAnnouncementListOutput = z8.object({
|
|
|
829
833
|
var SendGroupAnnouncementInput = z8.object({
|
|
830
834
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
831
835
|
content: ZString.describe("\u516C\u544A\u5185\u5BB9"),
|
|
832
|
-
image_uri: ZString.
|
|
836
|
+
image_uri: ZString.nullish().describe("\u516C\u544A\u9644\u5E26\u56FE\u50CF\u6587\u4EF6 URI\uFF0C\u652F\u6301 `file://` `http(s)://` `base64://` \u4E09\u79CD\u683C\u5F0F")
|
|
833
837
|
});
|
|
834
838
|
var DeleteGroupAnnouncementInput = z8.object({
|
|
835
839
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
@@ -847,7 +851,7 @@ var GetGroupEssenceMessagesOutput = z8.object({
|
|
|
847
851
|
var SetGroupEssenceMessageInput = z8.object({
|
|
848
852
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
849
853
|
message_seq: ZInt64.describe("\u6D88\u606F\u5E8F\u5217\u53F7"),
|
|
850
|
-
is_set:
|
|
854
|
+
is_set: ZBooleanWithDefault(true).describe("\u662F\u5426\u8BBE\u7F6E\u4E3A\u7CBE\u534E\u6D88\u606F\uFF0C`false` \u8868\u793A\u53D6\u6D88\u7CBE\u534E")
|
|
851
855
|
});
|
|
852
856
|
var QuitGroupInput = z8.object({
|
|
853
857
|
group_id: ZInt64.describe("\u7FA4\u53F7")
|
|
@@ -856,33 +860,33 @@ var SendGroupMessageReactionInput = z8.object({
|
|
|
856
860
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
857
861
|
message_seq: ZInt64.describe("\u8981\u56DE\u5E94\u7684\u6D88\u606F\u5E8F\u5217\u53F7"),
|
|
858
862
|
reaction: ZString.describe("\u8868\u60C5 ID"),
|
|
859
|
-
is_add:
|
|
863
|
+
is_add: ZBooleanWithDefault(true).describe("\u662F\u5426\u6DFB\u52A0\u8868\u60C5\uFF0C`false` \u8868\u793A\u53D6\u6D88")
|
|
860
864
|
});
|
|
861
865
|
var SendGroupNudgeInput = z8.object({
|
|
862
866
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
863
867
|
user_id: ZInt64.describe("\u88AB\u6233\u7684\u7FA4\u6210\u5458 QQ \u53F7")
|
|
864
868
|
});
|
|
865
869
|
var GetGroupNotificationsInput = z8.object({
|
|
866
|
-
start_notification_seq: ZInt64.
|
|
867
|
-
is_filtered:
|
|
868
|
-
limit:
|
|
870
|
+
start_notification_seq: ZInt64.nullish().describe("\u8D77\u59CB\u901A\u77E5\u5E8F\u5217\u53F7"),
|
|
871
|
+
is_filtered: ZBooleanWithDefault(false).describe("`true` \u8868\u793A\u53EA\u83B7\u53D6\u88AB\u8FC7\u6EE4\uFF08\u7531\u98CE\u9669\u8D26\u53F7\u53D1\u8D77\uFF09\u7684\u901A\u77E5\uFF0C`false` \u8868\u793A\u53EA\u83B7\u53D6\u672A\u88AB\u8FC7\u6EE4\u7684\u901A\u77E5"),
|
|
872
|
+
limit: ZInt32WithDefault(20).describe("\u83B7\u53D6\u7684\u6700\u5927\u901A\u77E5\u6570\u91CF")
|
|
869
873
|
});
|
|
870
874
|
var GetGroupNotificationsOutput = z8.object({
|
|
871
875
|
notifications: z8.array(z8.lazy(() => GroupNotification)).describe("\u83B7\u53D6\u5230\u7684\u7FA4\u901A\u77E5\uFF08notification_seq \u964D\u5E8F\u6392\u5217\uFF09\uFF0C\u5E8F\u5217\u53F7\u4E0D\u4E00\u5B9A\u8FDE\u7EED"),
|
|
872
|
-
next_notification_seq: ZInt64.
|
|
876
|
+
next_notification_seq: ZInt64.nullish().describe("\u4E0B\u4E00\u9875\u8D77\u59CB\u901A\u77E5\u5E8F\u5217\u53F7")
|
|
873
877
|
});
|
|
874
878
|
var AcceptGroupRequestInput = z8.object({
|
|
875
879
|
notification_seq: ZInt64.describe("\u8BF7\u6C42\u5BF9\u5E94\u7684\u901A\u77E5\u5E8F\u5217\u53F7"),
|
|
876
880
|
notification_type: z8.enum(["join_request", "invited_join_request"]).describe("\u8BF7\u6C42\u5BF9\u5E94\u7684\u901A\u77E5\u7C7B\u578B"),
|
|
877
881
|
group_id: ZInt64.describe("\u8BF7\u6C42\u6240\u5728\u7684\u7FA4\u53F7"),
|
|
878
|
-
is_filtered:
|
|
882
|
+
is_filtered: ZBooleanWithDefault(false).describe("\u662F\u5426\u662F\u88AB\u8FC7\u6EE4\u7684\u8BF7\u6C42")
|
|
879
883
|
});
|
|
880
884
|
var RejectGroupRequestInput = z8.object({
|
|
881
885
|
notification_seq: ZInt64.describe("\u8BF7\u6C42\u5BF9\u5E94\u7684\u901A\u77E5\u5E8F\u5217\u53F7"),
|
|
882
886
|
notification_type: z8.enum(["join_request", "invited_join_request"]).describe("\u8BF7\u6C42\u5BF9\u5E94\u7684\u901A\u77E5\u7C7B\u578B"),
|
|
883
887
|
group_id: ZInt64.describe("\u8BF7\u6C42\u6240\u5728\u7684\u7FA4\u53F7"),
|
|
884
|
-
is_filtered:
|
|
885
|
-
reason: ZString.
|
|
888
|
+
is_filtered: ZBooleanWithDefault(false).describe("\u662F\u5426\u662F\u88AB\u8FC7\u6EE4\u7684\u8BF7\u6C42"),
|
|
889
|
+
reason: ZString.nullish().describe("\u62D2\u7EDD\u7406\u7531")
|
|
886
890
|
});
|
|
887
891
|
var AcceptGroupInvitationInput = z8.object({
|
|
888
892
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
@@ -905,7 +909,7 @@ var UploadPrivateFileOutput = z9.object({
|
|
|
905
909
|
});
|
|
906
910
|
var UploadGroupFileInput = z9.object({
|
|
907
911
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
908
|
-
parent_folder_id:
|
|
912
|
+
parent_folder_id: ZStringWithDefault("/").describe("\u76EE\u6807\u6587\u4EF6\u5939 ID"),
|
|
909
913
|
file_uri: ZString.describe("\u6587\u4EF6 URI\uFF0C\u652F\u6301 `file://` `http(s)://` `base64://` \u4E09\u79CD\u683C\u5F0F"),
|
|
910
914
|
file_name: ZString.describe("\u6587\u4EF6\u540D\u79F0")
|
|
911
915
|
});
|
|
@@ -929,7 +933,7 @@ var GetGroupFileDownloadUrlOutput = z9.object({
|
|
|
929
933
|
});
|
|
930
934
|
var GetGroupFilesInput = z9.object({
|
|
931
935
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
932
|
-
parent_folder_id:
|
|
936
|
+
parent_folder_id: ZStringWithDefault("/").describe("\u7236\u6587\u4EF6\u5939 ID")
|
|
933
937
|
});
|
|
934
938
|
var GetGroupFilesOutput = z9.object({
|
|
935
939
|
files: z9.array(z9.lazy(() => GroupFileEntity)).describe("\u6587\u4EF6\u5217\u8868"),
|
|
@@ -938,13 +942,13 @@ var GetGroupFilesOutput = z9.object({
|
|
|
938
942
|
var MoveGroupFileInput = z9.object({
|
|
939
943
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
940
944
|
file_id: ZString.describe("\u6587\u4EF6 ID"),
|
|
941
|
-
parent_folder_id:
|
|
942
|
-
target_folder_id:
|
|
945
|
+
parent_folder_id: ZStringWithDefault("/").describe("\u6587\u4EF6\u6240\u5728\u7684\u6587\u4EF6\u5939 ID"),
|
|
946
|
+
target_folder_id: ZStringWithDefault("/").describe("\u76EE\u6807\u6587\u4EF6\u5939 ID")
|
|
943
947
|
});
|
|
944
948
|
var RenameGroupFileInput = z9.object({
|
|
945
949
|
group_id: ZInt64.describe("\u7FA4\u53F7"),
|
|
946
950
|
file_id: ZString.describe("\u6587\u4EF6 ID"),
|
|
947
|
-
parent_folder_id:
|
|
951
|
+
parent_folder_id: ZStringWithDefault("/").describe("\u6587\u4EF6\u6240\u5728\u7684\u6587\u4EF6\u5939 ID"),
|
|
948
952
|
new_file_name: ZString.describe("\u65B0\u6587\u4EF6\u540D\u79F0")
|
|
949
953
|
});
|
|
950
954
|
var DeleteGroupFileInput = z9.object({
|
|
@@ -1087,9 +1091,13 @@ export {
|
|
|
1087
1091
|
UploadPrivateFileInput,
|
|
1088
1092
|
UploadPrivateFileOutput,
|
|
1089
1093
|
ZBoolean,
|
|
1094
|
+
ZBooleanWithDefault,
|
|
1090
1095
|
ZInt32,
|
|
1096
|
+
ZInt32WithDefault,
|
|
1091
1097
|
ZInt64,
|
|
1098
|
+
ZInt64WithDefault,
|
|
1092
1099
|
ZString,
|
|
1100
|
+
ZStringWithDefault,
|
|
1093
1101
|
milkyPackageVersion,
|
|
1094
1102
|
milkyVersion
|
|
1095
1103
|
};
|