@alemonjs/qq-bot 2.1.33 → 2.1.35

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.
Files changed (132) hide show
  1. package/README.md +46 -8
  2. package/dist/assets/index.css +1 -1
  3. package/dist/assets/index.js +12 -5
  4. package/dist/index.html +1 -1
  5. package/lib/config.d.ts +44 -19
  6. package/lib/config.js +39 -35
  7. package/lib/desktop.d.ts +4 -1
  8. package/lib/desktop.js +53 -57
  9. package/lib/format.d.ts +26 -5
  10. package/lib/format.js +84 -101
  11. package/lib/hook.d.ts +82 -65
  12. package/lib/hook.js +35 -32
  13. package/lib/index.d.ts +6 -4
  14. package/lib/index.js +13 -16
  15. package/lib/index.webhook.d.ts +4 -1
  16. package/lib/index.webhook.js +12 -14
  17. package/lib/index.websoket.d.ts +6 -3
  18. package/lib/index.websoket.js +131 -41
  19. package/lib/message/AT_MESSAGE_CREATE.d.ts +36 -33
  20. package/lib/message/AT_MESSAGE_CREATE.js +1 -1
  21. package/lib/message/CHANNEL_CREATE.d.ts +17 -14
  22. package/lib/message/CHANNEL_CREATE.js +1 -1
  23. package/lib/message/CHANNEL_DELETE.d.ts +22 -14
  24. package/lib/message/CHANNEL_DELETE.js +1 -1
  25. package/lib/message/CHANNEL_UPDATE.d.ts +22 -14
  26. package/lib/message/CHANNEL_UPDATE.js +1 -1
  27. package/lib/message/DIRECT_MESSAGE_CREATE.d.ts +35 -27
  28. package/lib/message/DIRECT_MESSAGE_CREATE.js +1 -1
  29. package/lib/message/DIRECT_MESSAGE_DELETE.d.ts +23 -15
  30. package/lib/message/DIRECT_MESSAGE_DELETE.js +1 -1
  31. package/lib/message/ERROR.d.ts +4 -1
  32. package/lib/message/ERROR.js +1 -1
  33. package/lib/message/GUILD_CREATE.d.ts +22 -14
  34. package/lib/message/GUILD_CREATE.js +1 -1
  35. package/lib/message/GUILD_DELETE.d.ts +22 -14
  36. package/lib/message/GUILD_DELETE.js +1 -1
  37. package/lib/message/GUILD_MEMBER_ADD.d.ts +21 -13
  38. package/lib/message/GUILD_MEMBER_ADD.js +1 -1
  39. package/lib/message/GUILD_MEMBER_REMOVE.d.ts +21 -13
  40. package/lib/message/GUILD_MEMBER_REMOVE.js +1 -1
  41. package/lib/message/GUILD_MEMBER_UPDATE.d.ts +21 -13
  42. package/lib/message/GUILD_MEMBER_UPDATE.js +1 -1
  43. package/lib/message/GUILD_UPDATE.d.ts +22 -14
  44. package/lib/message/GUILD_UPDATE.js +1 -1
  45. package/lib/message/INTERACTION_CREATE.d.ts +52 -44
  46. package/lib/message/INTERACTION_CREATE.js +1 -1
  47. package/lib/message/MESSAGE_CREATE.d.ts +12 -1
  48. package/lib/message/MESSAGE_CREATE.js +1 -1
  49. package/lib/message/MESSAGE_DELETE.d.ts +12 -1
  50. package/lib/message/MESSAGE_DELETE.js +1 -1
  51. package/lib/message/MESSAGE_REACTION_ADD.d.ts +15 -12
  52. package/lib/message/MESSAGE_REACTION_ADD.js +1 -1
  53. package/lib/message/MESSAGE_REACTION_REMOVE.d.ts +15 -12
  54. package/lib/message/MESSAGE_REACTION_REMOVE.js +1 -1
  55. package/lib/message/PUBLIC_MESSAGE_DELETE.d.ts +20 -13
  56. package/lib/message/PUBLIC_MESSAGE_DELETE.js +1 -1
  57. package/lib/message/READY.d.ts +11 -5
  58. package/lib/message/READY.js +1 -1
  59. package/lib/message/group/C2C_MESSAGE_CREATE.d.ts +18 -15
  60. package/lib/message/group/C2C_MESSAGE_CREATE.js +1 -1
  61. package/lib/message/group/C2C_MSG_RECEIVE.d.ts +13 -3
  62. package/lib/message/group/C2C_MSG_RECEIVE.js +1 -1
  63. package/lib/message/group/C2C_MSG_REJECT.d.ts +9 -3
  64. package/lib/message/group/C2C_MSG_REJECT.js +1 -1
  65. package/lib/message/group/FRIEND_ADD.d.ts +13 -3
  66. package/lib/message/group/FRIEND_ADD.js +1 -1
  67. package/lib/message/group/FRIEND_DEL.d.ts +9 -3
  68. package/lib/message/group/FRIEND_DEL.js +1 -1
  69. package/lib/message/group/GROUP_ADD_ROBOT.d.ts +23 -4
  70. package/lib/message/group/GROUP_ADD_ROBOT.js +1 -1
  71. package/lib/message/group/GROUP_AT_MESSAGE_CREATE.d.ts +38 -32
  72. package/lib/message/group/GROUP_AT_MESSAGE_CREATE.js +1 -1
  73. package/lib/message/group/GROUP_DEL_ROBOT.d.ts +19 -4
  74. package/lib/message/group/GROUP_DEL_ROBOT.js +1 -1
  75. package/lib/message/group/GROUP_JOIN_REQUEST.d.ts +83 -22
  76. package/lib/message/group/GROUP_JOIN_REQUEST.js +1 -1
  77. package/lib/message/group/GROUP_MEMBER_ADD.d.ts +8 -5
  78. package/lib/message/group/GROUP_MEMBER_ADD.js +1 -1
  79. package/lib/message/group/GROUP_MEMBER_REMOVE.d.ts +8 -5
  80. package/lib/message/group/GROUP_MEMBER_REMOVE.js +1 -1
  81. package/lib/message/group/GROUP_MESSAGE_CREATE.d.ts +38 -32
  82. package/lib/message/group/GROUP_MESSAGE_CREATE.js +1 -1
  83. package/lib/message/group/GROUP_MSG_RECEIVE.d.ts +14 -4
  84. package/lib/message/group/GROUP_MSG_RECEIVE.js +1 -1
  85. package/lib/message/group/GROUP_MSG_REJECT.d.ts +10 -4
  86. package/lib/message/group/GROUP_MSG_REJECT.js +1 -1
  87. package/lib/message/group/MESSAGE_AUDIT_PASS.d.ts +12 -6
  88. package/lib/message/group/MESSAGE_AUDIT_PASS.js +1 -1
  89. package/lib/message/group/MESSAGE_AUDIT_REJECT.d.ts +12 -6
  90. package/lib/message/group/MESSAGE_AUDIT_REJECT.js +1 -1
  91. package/lib/register.d.ts +12 -9
  92. package/lib/register.js +1246 -1404
  93. package/lib/sdk/api.d.ts +937 -306
  94. package/lib/sdk/api.js +1481 -893
  95. package/lib/sdk/client.webhook.d.ts +25 -8
  96. package/lib/sdk/client.webhook.js +185 -189
  97. package/lib/sdk/client.websoket.d.ts +31 -9
  98. package/lib/sdk/client.websoket.js +369 -392
  99. package/lib/sdk/config.d.ts +6 -2
  100. package/lib/sdk/config.js +9 -6
  101. package/lib/sdk/instance.d.ts +11 -3
  102. package/lib/sdk/instance.js +72 -84
  103. package/lib/sdk/intents.d.ts +89 -3
  104. package/lib/sdk/intents.js +116 -33
  105. package/lib/sdk/message.d.ts +7 -4
  106. package/lib/sdk/message.group.d.ts +38 -35
  107. package/lib/sdk/message.group.js +1 -1
  108. package/lib/sdk/message.guild.d.ts +40 -37
  109. package/lib/sdk/message.guild.js +1 -1
  110. package/lib/sdk/message.js +1 -1
  111. package/lib/sdk/message.public.d.ts +8 -5
  112. package/lib/sdk/message.public.js +1 -1
  113. package/lib/sdk/qr-auth.d.ts +55 -0
  114. package/lib/sdk/qr-auth.js +166 -0
  115. package/lib/sdk/registry.d.ts +34 -24
  116. package/lib/sdk/registry.js +134 -114
  117. package/lib/sdk/session.d.ts +19 -15
  118. package/lib/sdk/session.js +51 -54
  119. package/lib/sdk/typing.d.ts +410 -184
  120. package/lib/sdk/typing.js +1 -1
  121. package/lib/sdk/webhook.secret.d.ts +33 -13
  122. package/lib/sdk/webhook.secret.js +50 -36
  123. package/lib/sends.d.ts +42 -25
  124. package/lib/sends.js +519 -541
  125. package/lib/types.d.ts +52 -41
  126. package/lib/types.js +1 -1
  127. package/lib/upload.d.ts +47 -18
  128. package/lib/upload.js +80 -51
  129. package/lib/utils.d.ts +9 -1
  130. package/lib/utils.js +10 -5
  131. package/package.json +10 -7
  132. package/LICENSE +0 -21
@@ -1,13 +1,16 @@
1
- export type MESSAGE_REACTION_REMOVE_TYPE = {
2
- channel_id: string;
3
- emoji: {
4
- id: string;
5
- type: number;
6
- };
7
- guild_id: string;
8
- target: {
9
- id: string;
10
- type: string;
11
- };
12
- user_id: string;
1
+ //#region src/message/MESSAGE_REACTION_REMOVE.d.ts
2
+ type MESSAGE_REACTION_REMOVE_TYPE = {
3
+ channel_id: string;
4
+ emoji: {
5
+ id: string;
6
+ type: number;
7
+ };
8
+ guild_id: string;
9
+ target: {
10
+ id: string;
11
+ type: string;
12
+ };
13
+ user_id: string;
13
14
  };
15
+ //#endregion
16
+ export { MESSAGE_REACTION_REMOVE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,15 +1,22 @@
1
- export type PUBLIC_MESSAGE_DELETE_TYPE = {
2
- message: {
3
- author: {
4
- bot: false;
5
- id: string;
6
- username: string;
7
- };
8
- channel_id: string;
9
- guild_id: string;
10
- id: string;
11
- };
12
- op_user: {
13
- id: string;
1
+ //#region src/message/PUBLIC_MESSAGE_DELETE.d.ts
2
+ /**
3
+ * 公域
4
+ * @param event
5
+ */
6
+ type PUBLIC_MESSAGE_DELETE_TYPE = {
7
+ message: {
8
+ author: {
9
+ bot: false;
10
+ id: string;
11
+ username: string;
14
12
  };
13
+ channel_id: string;
14
+ guild_id: string;
15
+ id: string;
16
+ };
17
+ op_user: {
18
+ id: string;
19
+ };
15
20
  };
21
+ //#endregion
22
+ export { PUBLIC_MESSAGE_DELETE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,6 +1,12 @@
1
- export type READY_TYPE = {
2
- user: {
3
- id: string;
4
- name: string;
5
- };
1
+ //#region src/message/READY.d.ts
2
+ /**
3
+ * 登录
4
+ */
5
+ type READY_TYPE = {
6
+ user: {
7
+ id: string;
8
+ name: string;
9
+ };
6
10
  };
11
+ //#endregion
12
+ export { READY_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,17 +1,20 @@
1
- export type C2C_MESSAGE_CREATE_TYPE = {
2
- attachments?: {
3
- id?: string;
4
- url?: string;
5
- content_type?: string;
6
- filename?: string;
7
- size?: number;
8
- }[];
9
- author: {
10
- id: string;
11
- user_openid: string;
12
- username: string;
13
- };
14
- content: string;
1
+ //#region src/message/group/C2C_MESSAGE_CREATE.d.ts
2
+ type C2C_MESSAGE_CREATE_TYPE = {
3
+ attachments?: {
4
+ id?: string;
5
+ url?: string;
6
+ content_type?: string;
7
+ filename?: string;
8
+ size?: number;
9
+ }[];
10
+ author: {
15
11
  id: string;
16
- timestamp: string;
12
+ user_openid: string;
13
+ username: string;
14
+ };
15
+ content: string;
16
+ id: string;
17
+ timestamp: string;
17
18
  };
19
+ //#endregion
20
+ export { C2C_MESSAGE_CREATE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,4 +1,14 @@
1
- export type C2C_MSG_RECEIVE_TYPE = {
2
- openid: string;
3
- timestamp: string;
1
+ //#region src/message/group/C2C_MSG_RECEIVE.d.ts
2
+ /**
3
+ * 推送消息打开
4
+ */
5
+ type C2C_MSG_RECEIVE_TYPE = {
6
+ /**
7
+ * 网关信封事件 ID(SDK 从 payload.id 回填),可用于发送消息时的 event_id 被动回复
8
+ */
9
+ id?: string;
10
+ openid: string;
11
+ timestamp: string;
4
12
  };
13
+ //#endregion
14
+ export { C2C_MSG_RECEIVE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,4 +1,10 @@
1
- export type C2C_MSG_REJECT_TYPE = {
2
- openid: string;
3
- timestamp: string;
1
+ //#region src/message/group/C2C_MSG_REJECT.d.ts
2
+ /**
3
+ * 推送消息关闭
4
+ */
5
+ type C2C_MSG_REJECT_TYPE = {
6
+ openid: string;
7
+ timestamp: string;
4
8
  };
9
+ //#endregion
10
+ export { C2C_MSG_REJECT_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,4 +1,14 @@
1
- export type FRIEND_ADD_TYPE = {
2
- openid: string;
3
- timestamp: string;
1
+ //#region src/message/group/FRIEND_ADD.d.ts
2
+ /**
3
+ * 好友添加
4
+ */
5
+ type FRIEND_ADD_TYPE = {
6
+ /**
7
+ * 网关信封事件 ID(SDK 从 payload.id 回填),可用于发送消息时的 event_id 被动回复
8
+ */
9
+ id?: string;
10
+ openid: string;
11
+ timestamp: string;
4
12
  };
13
+ //#endregion
14
+ export { FRIEND_ADD_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,4 +1,10 @@
1
- export type FRIEND_DEL_TYPE = {
2
- openid: string;
3
- timestamp: string;
1
+ //#region src/message/group/FRIEND_DEL.d.ts
2
+ /**
3
+ * 好友删除
4
+ */
5
+ type FRIEND_DEL_TYPE = {
6
+ openid: string;
7
+ timestamp: string;
4
8
  };
9
+ //#endregion
10
+ export { FRIEND_DEL_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,5 +1,24 @@
1
- export type GROUP_ADD_ROBOT_TYPE = {
2
- group_openid: string;
3
- op_member_openid: string;
4
- timestamp: number;
1
+ //#region src/message/group/GROUP_ADD_ROBOT.d.ts
2
+ /**
3
+ * 群添加机器人
4
+ */
5
+ type GROUP_ADD_ROBOT_TYPE = {
6
+ /**
7
+ * 网关信封事件 ID(SDK 从 payload.id 回填),可用于发送消息时的 event_id 被动回复
8
+ */
9
+ id?: string;
10
+ /**
11
+ * 操作添加机器人进群的群成员openid
12
+ */
13
+ group_openid: string;
14
+ /**
15
+ * 加入群的群openid
16
+ */
17
+ op_member_openid: string;
18
+ /**
19
+ * 加入的时间戳
20
+ */
21
+ timestamp: number;
5
22
  };
23
+ //#endregion
24
+ export { GROUP_ADD_ROBOT_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,34 +1,40 @@
1
- export interface GROUP_AT_MESSAGE_CREATE_TYPE {
2
- attachments?: {
3
- id?: string;
4
- url?: string;
5
- content_type?: string;
6
- filename?: string;
7
- size?: number;
8
- }[];
9
- author: {
10
- bot?: boolean;
11
- id: string;
12
- member_openid: string;
13
- union_openid: string;
14
- username: string;
15
- };
16
- content: string;
17
- group_openid: string;
18
- group_id: string;
1
+ //#region src/message/group/GROUP_AT_MESSAGE_CREATE.d.ts
2
+ /**
3
+ * 群消息事件 AT 事件
4
+ */
5
+ interface GROUP_AT_MESSAGE_CREATE_TYPE {
6
+ attachments?: {
7
+ id?: string;
8
+ url?: string;
9
+ content_type?: string;
10
+ filename?: string;
11
+ size?: number;
12
+ }[];
13
+ author: {
14
+ bot?: boolean;
19
15
  id: string;
20
- mentions?: {
21
- bot?: boolean;
22
- id: string;
23
- is_you?: boolean;
24
- member_openid?: string;
25
- scope?: string;
26
- username: string;
27
- }[];
28
- timestamp: string;
29
- message_scene: {
30
- ext: string[];
31
- source: string;
32
- };
33
- message_type: number;
16
+ member_openid: string;
17
+ union_openid: string;
18
+ username: string;
19
+ };
20
+ content: string;
21
+ group_openid: string;
22
+ group_id: string;
23
+ id: string;
24
+ mentions?: {
25
+ bot?: boolean;
26
+ id: string;
27
+ is_you?: boolean;
28
+ member_openid?: string;
29
+ scope?: string;
30
+ username: string;
31
+ }[];
32
+ timestamp: string;
33
+ message_scene: {
34
+ ext: string[];
35
+ source: string;
36
+ };
37
+ message_type: number;
34
38
  }
39
+ //#endregion
40
+ export { GROUP_AT_MESSAGE_CREATE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,5 +1,20 @@
1
- export type GROUP_DEL_ROBOT_TYPE = {
2
- group_openid: string;
3
- op_member_openid: string;
4
- timestamp: number;
1
+ //#region src/message/group/GROUP_DEL_ROBOT.d.ts
2
+ /**
3
+ * 群移除机器人
4
+ */
5
+ type GROUP_DEL_ROBOT_TYPE = {
6
+ /**
7
+ * 移除的时间戳
8
+ */
9
+ group_openid: string;
10
+ /**
11
+ * 移除群的群openid
12
+ */
13
+ op_member_openid: string;
14
+ /**
15
+ * 操作移除机器人退群的群成员openid
16
+ */
17
+ timestamp: number;
5
18
  };
19
+ //#endregion
20
+ export { GROUP_DEL_ROBOT_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,23 +1,84 @@
1
- export type GROUP_JOIN_REQUEST_TYPE = {
2
- group_openid: string;
3
- join_request_id: string;
4
- risk_tips?: string;
5
- union_openid?: string;
6
- member_openid: string;
7
- username: string;
8
- apply_at: string;
9
- apply_source: string;
10
- invited_by?: string;
11
- bot: boolean;
12
- verify_info?: {
13
- method: string;
14
- verify_message?: string;
15
- review_qa_list?: {
16
- question: string;
17
- answer: string;
18
- }[];
19
- };
20
- auto_approved?: {
21
- strategy_id: string;
22
- };
1
+ //#region src/message/group/GROUP_JOIN_REQUEST.d.ts
2
+ /**
3
+ * 用户申请加群
4
+ * 机器人是群管理员时,用户申请加群会触发此事件
5
+ */
6
+ type GROUP_JOIN_REQUEST_TYPE = {
7
+ /**
8
+ * 群 OpenID
9
+ */
10
+ group_openid: string;
11
+ /**
12
+ * 申请 ID,审批接口需要回传
13
+ */
14
+ join_request_id: string;
15
+ /**
16
+ * 安全提示语;可疑消息返回 warning_tips,普通消息命中安全规则时返回 top_tips
17
+ */
18
+ risk_tips?: string;
19
+ /**
20
+ * 用户在应用或开放平台下的统一标识,如有
21
+ */
22
+ union_openid?: string;
23
+ /**
24
+ * 申请人的 openid
25
+ */
26
+ member_openid: string;
27
+ /**
28
+ * 申请人昵称
29
+ */
30
+ username: string;
31
+ /**
32
+ * 申请时间戳,RFC3339 格式
33
+ */
34
+ apply_at: string;
35
+ /**
36
+ * self_apply 主动申请,invited 被邀请
37
+ */
38
+ apply_source: string;
39
+ /**
40
+ * 邀请人的 openid,仅 apply_source=invited 时生效
41
+ */
42
+ invited_by?: string;
43
+ /**
44
+ * 是否为机器人账号
45
+ */
46
+ bot: boolean;
47
+ /**
48
+ * 用户入群验证信息
49
+ */
50
+ verify_info?: {
51
+ /**
52
+ * 验证方式:verify_message 或 admin_review_qa
53
+ */
54
+ method: string;
55
+ /**
56
+ * 验证消息内容,仅 method=verify_message 时可能携带
57
+ */
58
+ verify_message?: string;
59
+ /**
60
+ * 管理员问答列表,仅 method=admin_review_qa 时可能携带
61
+ */
62
+ review_qa_list?: {
63
+ /**
64
+ * 管理员设置的问题
65
+ */
66
+ question: string;
67
+ /**
68
+ * 申请人填写的答案
69
+ */
70
+ answer: string;
71
+ }[];
72
+ };
73
+ /**
74
+ * 自动审批通过的扩展信息,仅自动通过事件携带
75
+ */
76
+ auto_approved?: {
77
+ /**
78
+ * 自动审批通过所命中的策略 ID
79
+ */
80
+ strategy_id: string;
81
+ };
23
82
  };
83
+ //#endregion
84
+ export { GROUP_JOIN_REQUEST_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,6 +1,9 @@
1
- export type GROUP_MEMBER_ADD = {
2
- op_member_openid: string;
3
- member_openid: string;
4
- group_openid: string;
5
- username: string;
1
+ //#region src/message/group/GROUP_MEMBER_ADD.d.ts
2
+ type GROUP_MEMBER_ADD = {
3
+ op_member_openid: string;
4
+ member_openid: string;
5
+ group_openid: string;
6
+ username: string;
6
7
  };
8
+ //#endregion
9
+ export { GROUP_MEMBER_ADD };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,6 +1,9 @@
1
- export type GROUP_MEMBER_REMOVE = {
2
- op_member_openid: string;
3
- member_openid: string;
4
- group_openid: string;
5
- username: string;
1
+ //#region src/message/group/GROUP_MEMBER_REMOVE.d.ts
2
+ type GROUP_MEMBER_REMOVE = {
3
+ op_member_openid: string;
4
+ member_openid: string;
5
+ group_openid: string;
6
+ username: string;
6
7
  };
8
+ //#endregion
9
+ export { GROUP_MEMBER_REMOVE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,34 +1,40 @@
1
- export interface GROUP_MESSAGE_CREATE_TYPE {
2
- attachments?: {
3
- id?: string;
4
- url?: string;
5
- content_type?: string;
6
- filename?: string;
7
- size?: number;
8
- }[];
9
- author: {
10
- bot?: boolean;
11
- id: string;
12
- member_openid: string;
13
- union_openid: string;
14
- username: string;
15
- };
16
- content: string;
17
- group_openid: string;
18
- group_id: string;
1
+ //#region src/message/group/GROUP_MESSAGE_CREATE.d.ts
2
+ /**
3
+ * 群消息事件
4
+ */
5
+ interface GROUP_MESSAGE_CREATE_TYPE {
6
+ attachments?: {
7
+ id?: string;
8
+ url?: string;
9
+ content_type?: string;
10
+ filename?: string;
11
+ size?: number;
12
+ }[];
13
+ author: {
14
+ bot?: boolean;
19
15
  id: string;
20
- mentions?: {
21
- bot?: boolean;
22
- id: string;
23
- is_you?: boolean;
24
- member_openid?: string;
25
- scope?: string;
26
- username: string;
27
- }[];
28
- timestamp: string;
29
- message_scene: {
30
- ext: string[];
31
- source: string;
32
- };
33
- message_type: number;
16
+ member_openid: string;
17
+ union_openid: string;
18
+ username: string;
19
+ };
20
+ content: string;
21
+ group_openid: string;
22
+ group_id: string;
23
+ id: string;
24
+ mentions?: {
25
+ bot?: boolean;
26
+ id: string;
27
+ is_you?: boolean;
28
+ member_openid?: string;
29
+ scope?: string;
30
+ username: string;
31
+ }[];
32
+ timestamp: string;
33
+ message_scene: {
34
+ ext: string[];
35
+ source: string;
36
+ };
37
+ message_type: number;
34
38
  }
39
+ //#endregion
40
+ export { GROUP_MESSAGE_CREATE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,5 +1,15 @@
1
- export type GROUP_MSG_RECEIVE_TYPE = {
2
- group_openid: string;
3
- op_member_openid: string;
4
- timestamp: string;
1
+ //#region src/message/group/GROUP_MSG_RECEIVE.d.ts
2
+ /**
3
+ * 群打开消息推送
4
+ */
5
+ type GROUP_MSG_RECEIVE_TYPE = {
6
+ /**
7
+ * 网关信封事件 ID(SDK 从 payload.id 回填),可用于发送消息时的 event_id 被动回复
8
+ */
9
+ id?: string;
10
+ group_openid: string;
11
+ op_member_openid: string;
12
+ timestamp: string;
5
13
  };
14
+ //#endregion
15
+ export { GROUP_MSG_RECEIVE_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,5 +1,11 @@
1
- export type GROUP_MSG_REJECT_TYPE = {
2
- group_openid: string;
3
- op_member_openid: string;
4
- timestamp: string;
1
+ //#region src/message/group/GROUP_MSG_REJECT.d.ts
2
+ /**
3
+ * 群关闭消息推送
4
+ */
5
+ type GROUP_MSG_REJECT_TYPE = {
6
+ group_openid: string;
7
+ op_member_openid: string;
8
+ timestamp: string;
5
9
  };
10
+ //#endregion
11
+ export { GROUP_MSG_REJECT_TYPE };
@@ -1 +1 @@
1
-
1
+ export { };
@@ -1,7 +1,13 @@
1
- export type MESSAGE_AUDIT_PASS_TYPE = {
2
- audit_id: string;
3
- audit_time: string;
4
- create_time?: string;
5
- group_openid?: string;
6
- message_id?: string;
1
+ //#region src/message/group/MESSAGE_AUDIT_PASS.d.ts
2
+ /**
3
+ * 群消息审核通过
4
+ */
5
+ type MESSAGE_AUDIT_PASS_TYPE = {
6
+ audit_id: string;
7
+ audit_time: string;
8
+ create_time?: string;
9
+ group_openid?: string;
10
+ message_id?: string;
7
11
  };
12
+ //#endregion
13
+ export { MESSAGE_AUDIT_PASS_TYPE };