@satorijs/adapter-lark 3.10.6 → 3.11.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.
Files changed (116) hide show
  1. package/lib/index.cjs +2880 -2370
  2. package/lib/internal.d.ts +4 -4
  3. package/lib/types/acs.d.ts +212 -172
  4. package/lib/types/admin.d.ts +331 -291
  5. package/lib/types/aily.d.ts +331 -216
  6. package/lib/types/apaas.d.ts +646 -494
  7. package/lib/types/application.d.ts +559 -458
  8. package/lib/types/approval.d.ts +826 -791
  9. package/lib/types/attendance.d.ts +1094 -994
  10. package/lib/types/auth.d.ts +66 -61
  11. package/lib/types/authen.d.ts +221 -186
  12. package/lib/types/baike.d.ts +258 -233
  13. package/lib/types/base.d.ts +74 -0
  14. package/lib/types/bitable.d.ts +830 -770
  15. package/lib/types/board.d.ts +29 -14
  16. package/lib/types/calendar.d.ts +660 -605
  17. package/lib/types/cardkit.d.ts +149 -134
  18. package/lib/types/compensation.d.ts +84 -49
  19. package/lib/types/contact.d.ts +1279 -1204
  20. package/lib/types/corehr.d.ts +4982 -4526
  21. package/lib/types/directory.d.ts +447 -0
  22. package/lib/types/docs.d.ts +28 -18
  23. package/lib/types/document_ai.d.ts +347 -252
  24. package/lib/types/docx.d.ts +428 -383
  25. package/lib/types/drive.d.ts +1093 -1048
  26. package/lib/types/ehr.d.ts +66 -51
  27. package/lib/types/event.d.ts +16 -6
  28. package/lib/types/helpdesk.d.ts +816 -741
  29. package/lib/types/hire.d.ts +3955 -3589
  30. package/lib/types/human_authentication.d.ts +32 -22
  31. package/lib/types/im.d.ts +1420 -1295
  32. package/lib/types/index.d.ts +1422 -330
  33. package/lib/types/lingo.d.ts +279 -249
  34. package/lib/types/mail.d.ts +1032 -675
  35. package/lib/types/mdm.d.ts +105 -37
  36. package/lib/types/minutes.d.ts +73 -26
  37. package/lib/types/moments.d.ts +23 -13
  38. package/lib/types/okr.d.ts +266 -225
  39. package/lib/types/optical_char_recognition.d.ts +22 -12
  40. package/lib/types/passport.d.ts +58 -48
  41. package/lib/types/payroll.d.ts +210 -53
  42. package/lib/types/performance.d.ts +463 -414
  43. package/lib/types/personal_settings.d.ts +93 -82
  44. package/lib/types/report.d.ts +79 -58
  45. package/lib/types/search.d.ts +265 -235
  46. package/lib/types/security_and_compliance.d.ts +30 -19
  47. package/lib/types/sheets.d.ts +356 -321
  48. package/lib/types/speech_to_text.d.ts +44 -34
  49. package/lib/types/task.d.ts +998 -1087
  50. package/lib/types/tenant.d.ts +25 -15
  51. package/lib/types/translation.d.ts +42 -32
  52. package/lib/types/trust_party.d.ts +81 -0
  53. package/lib/types/vc.d.ts +1218 -1123
  54. package/lib/types/verification.d.ts +11 -6
  55. package/lib/types/wiki.d.ts +270 -235
  56. package/lib/types/workplace.d.ts +58 -38
  57. package/lib/utils.d.ts +2 -2
  58. package/package.json +4 -4
  59. package/src/bot.ts +15 -15
  60. package/src/internal.ts +29 -12
  61. package/src/message.ts +10 -10
  62. package/src/types/acs.ts +234 -186
  63. package/src/types/admin.ts +353 -305
  64. package/src/types/aily.ts +375 -233
  65. package/src/types/apaas.ts +754 -568
  66. package/src/types/application.ts +633 -507
  67. package/src/types/approval.ts +914 -872
  68. package/src/types/attendance.ts +1226 -1104
  69. package/src/types/auth.ts +72 -66
  70. package/src/types/authen.ts +233 -191
  71. package/src/types/baike.ts +276 -246
  72. package/src/types/base.ts +93 -0
  73. package/src/types/bitable.ts +966 -894
  74. package/src/types/board.ts +34 -16
  75. package/src/types/calendar.ts +751 -685
  76. package/src/types/cardkit.ts +164 -146
  77. package/src/types/compensation.ts +97 -55
  78. package/src/types/contact.ts +1465 -1375
  79. package/src/types/corehr.ts +5664 -5077
  80. package/src/types/directory.ts +569 -0
  81. package/src/types/docs.ts +31 -19
  82. package/src/types/document_ai.ts +401 -287
  83. package/src/types/docx.ts +492 -438
  84. package/src/types/drive.ts +1266 -1213
  85. package/src/types/ehr.ts +71 -53
  86. package/src/types/event.ts +19 -7
  87. package/src/types/helpdesk.ts +930 -840
  88. package/src/types/hire.ts +4453 -4019
  89. package/src/types/human_authentication.ts +35 -23
  90. package/src/types/im.ts +1626 -1476
  91. package/src/types/index.ts +1532 -346
  92. package/src/types/lingo.ts +299 -263
  93. package/src/types/mail.ts +1231 -779
  94. package/src/types/mdm.ts +122 -39
  95. package/src/types/minutes.ts +88 -28
  96. package/src/types/moments.ts +26 -14
  97. package/src/types/okr.ts +286 -238
  98. package/src/types/optical_char_recognition.ts +25 -13
  99. package/src/types/passport.ts +62 -50
  100. package/src/types/payroll.ts +254 -57
  101. package/src/types/performance.ts +528 -467
  102. package/src/types/personal_settings.ts +101 -89
  103. package/src/types/report.ts +86 -62
  104. package/src/types/search.ts +285 -249
  105. package/src/types/security_and_compliance.ts +33 -21
  106. package/src/types/sheets.ts +421 -379
  107. package/src/types/speech_to_text.ts +48 -36
  108. package/src/types/task.ts +1152 -1260
  109. package/src/types/tenant.ts +29 -17
  110. package/src/types/translation.ts +46 -34
  111. package/src/types/trust_party.ts +110 -0
  112. package/src/types/vc.ts +1397 -1283
  113. package/src/types/verification.ts +13 -7
  114. package/src/types/wiki.ts +293 -251
  115. package/src/types/workplace.ts +65 -41
  116. package/src/utils.ts +3 -3
@@ -1,680 +1,1037 @@
1
- import { Attachment, EmailAlias, MailAddress, Mailgroup, MailgroupManager, MailgroupMember, MailgroupPermissionMember, PublicMailbox, PublicMailboxMember, User } from '.';
2
- import { Pagination } from '../internal';
1
+ import * as Lark from '.';
2
+ import { Paginated, Pagination } from '../internal';
3
3
  declare module '../internal' {
4
4
  interface Internal {
5
- /**
6
- * 发送邮件
7
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message/send
8
- */
9
- sendMailUserMailboxMessage(user_mailbox_id: string, body: SendMailUserMailboxMessageRequest): Promise<void>;
10
- /**
11
- * 创建邮件组
12
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/create
13
- */
14
- createMailMailgroup(body: CreateMailMailgroupRequest): Promise<CreateMailMailgroupResponse>;
15
- /**
16
- * 删除邮件组
17
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/delete
18
- */
19
- deleteMailMailgroup(mailgroup_id: string): Promise<void>;
20
- /**
21
- * 修改邮件组部分信息
22
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch
23
- */
24
- patchMailMailgroup(mailgroup_id: string, body: PatchMailMailgroupRequest): Promise<PatchMailMailgroupResponse>;
25
- /**
26
- * 修改邮件组全部信息
27
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update
28
- */
29
- updateMailMailgroup(mailgroup_id: string, body: UpdateMailMailgroupRequest): Promise<UpdateMailMailgroupResponse>;
30
- /**
31
- * 查询指定邮件组
32
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/get
33
- */
34
- getMailMailgroup(mailgroup_id: string): Promise<GetMailMailgroupResponse>;
35
- /**
36
- * 批量获取邮件组
37
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list
38
- */
39
- listMailMailgroup(query?: ListMailMailgroupQuery): Paginated<Mailgroup>;
40
- /**
41
- * 批量创建邮件组管理员
42
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create
43
- */
44
- batchCreateMailMailgroupManager(mailgroup_id: string, body: BatchCreateMailMailgroupManagerRequest, query?: BatchCreateMailMailgroupManagerQuery): Promise<void>;
45
- /**
46
- * 批量删除邮件组管理员
47
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete
48
- */
49
- batchDeleteMailMailgroupManager(mailgroup_id: string, body: BatchDeleteMailMailgroupManagerRequest, query?: BatchDeleteMailMailgroupManagerQuery): Promise<void>;
50
- /**
51
- * 批量获取邮件组管理员
52
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list
53
- */
54
- listMailMailgroupManager(mailgroup_id: string, query?: ListMailMailgroupManagerQuery): Paginated<MailgroupManager>;
55
- /**
56
- * 创建邮件组成员
57
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/create
58
- */
59
- createMailMailgroupMember(mailgroup_id: string, body: CreateMailMailgroupMemberRequest, query?: CreateMailMailgroupMemberQuery): Promise<CreateMailMailgroupMemberResponse>;
60
- /**
61
- * 删除邮件组成员
62
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/delete
63
- */
64
- deleteMailMailgroupMember(mailgroup_id: string, member_id: string): Promise<void>;
65
- /**
66
- * 查询指定邮件组成员
67
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/get
68
- */
69
- getMailMailgroupMember(mailgroup_id: string, member_id: string, query?: GetMailMailgroupMemberQuery): Promise<GetMailMailgroupMemberResponse>;
70
- /**
71
- * 获取所有邮件组成员
72
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/list
73
- */
74
- listMailMailgroupMember(mailgroup_id: string, query?: ListMailMailgroupMemberQuery): Paginated<MailgroupMember>;
75
- /**
76
- * 批量创建邮件组成员
77
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/batch_create
78
- */
79
- batchCreateMailMailgroupMember(mailgroup_id: string, body: BatchCreateMailMailgroupMemberRequest, query?: BatchCreateMailMailgroupMemberQuery): Promise<BatchCreateMailMailgroupMemberResponse>;
80
- /**
81
- * 批量删除邮件组成员
82
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/batch_delete
83
- */
84
- batchDeleteMailMailgroupMember(mailgroup_id: string, body: BatchDeleteMailMailgroupMemberRequest): Promise<void>;
85
- /**
86
- * 创建邮件组别名
87
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/create
88
- */
89
- createMailMailgroupAlias(mailgroup_id: string, body: CreateMailMailgroupAliasRequest): Promise<CreateMailMailgroupAliasResponse>;
90
- /**
91
- * 删除邮件组别名
92
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/delete
93
- */
94
- deleteMailMailgroupAlias(mailgroup_id: string, alias_id: string): Promise<void>;
95
- /**
96
- * 获取邮件组所有别名
97
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/list
98
- */
99
- listMailMailgroupAlias(mailgroup_id: string): Promise<ListMailMailgroupAliasResponse>;
100
- /**
101
- * 创建邮件组权限成员
102
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/create
103
- */
104
- createMailMailgroupPermissionMember(mailgroup_id: string, body: CreateMailMailgroupPermissionMemberRequest, query?: CreateMailMailgroupPermissionMemberQuery): Promise<CreateMailMailgroupPermissionMemberResponse>;
105
- /**
106
- * 删除邮件组权限成员
107
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/delete
108
- */
109
- deleteMailMailgroupPermissionMember(mailgroup_id: string, permission_member_id: string): Promise<void>;
110
- /**
111
- * 获取邮件组权限成员
112
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/get
113
- */
114
- getMailMailgroupPermissionMember(mailgroup_id: string, permission_member_id: string, query?: GetMailMailgroupPermissionMemberQuery): Promise<GetMailMailgroupPermissionMemberResponse>;
115
- /**
116
- * 批量获取邮件组权限成员
117
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/list
118
- */
119
- listMailMailgroupPermissionMember(mailgroup_id: string, query?: ListMailMailgroupPermissionMemberQuery): Paginated<MailgroupPermissionMember>;
120
- /**
121
- * 批量创建邮件组权限成员
122
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/batch_create
123
- */
124
- batchCreateMailMailgroupPermissionMember(mailgroup_id: string, body: BatchCreateMailMailgroupPermissionMemberRequest, query?: BatchCreateMailMailgroupPermissionMemberQuery): Promise<BatchCreateMailMailgroupPermissionMemberResponse>;
125
- /**
126
- * 批量删除邮件组权限成员
127
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/batch_delete
128
- */
129
- batchDeleteMailMailgroupPermissionMember(mailgroup_id: string, body: BatchDeleteMailMailgroupPermissionMemberRequest): Promise<void>;
130
- /**
131
- * 创建公共邮箱
132
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/create
133
- */
134
- createMailPublicMailbox(body: CreateMailPublicMailboxRequest): Promise<CreateMailPublicMailboxResponse>;
135
- /**
136
- * 修改公共邮箱部分信息
137
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/patch
138
- */
139
- patchMailPublicMailbox(public_mailbox_id: string, body: PatchMailPublicMailboxRequest): Promise<PatchMailPublicMailboxResponse>;
140
- /**
141
- * 修改公共邮箱全部信息
142
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/update
143
- */
144
- updateMailPublicMailbox(public_mailbox_id: string, body: UpdateMailPublicMailboxRequest): Promise<UpdateMailPublicMailboxResponse>;
145
- /**
146
- * 查询指定公共邮箱
147
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/get
148
- */
149
- getMailPublicMailbox(public_mailbox_id: string): Promise<GetMailPublicMailboxResponse>;
150
- /**
151
- * 查询所有公共邮箱
152
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/list
153
- */
154
- listMailPublicMailbox(query?: Pagination): Paginated<PublicMailbox>;
155
- /**
156
- * 永久删除公共邮箱
157
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/delete
158
- */
159
- deleteMailPublicMailbox(public_mailbox_id: string): Promise<void>;
160
- /**
161
- * 添加公共邮箱成员
162
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/create
163
- */
164
- createMailPublicMailboxMember(public_mailbox_id: string, body: CreateMailPublicMailboxMemberRequest, query?: CreateMailPublicMailboxMemberQuery): Promise<CreateMailPublicMailboxMemberResponse>;
165
- /**
166
- * 删除公共邮箱单个成员
167
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/delete
168
- */
169
- deleteMailPublicMailboxMember(public_mailbox_id: string, member_id: string): Promise<void>;
170
- /**
171
- * 删除公共邮箱所有成员
172
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/clear
173
- */
174
- clearMailPublicMailboxMember(public_mailbox_id: string): Promise<void>;
175
- /**
176
- * 查询指定公共邮箱成员信息
177
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/get
178
- */
179
- getMailPublicMailboxMember(public_mailbox_id: string, member_id: string, query?: GetMailPublicMailboxMemberQuery): Promise<GetMailPublicMailboxMemberResponse>;
180
- /**
181
- * 查询所有公共邮箱成员信息
182
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/list
183
- */
184
- listMailPublicMailboxMember(public_mailbox_id: string, query?: ListMailPublicMailboxMemberQuery): Paginated<PublicMailboxMember>;
185
- /**
186
- * 批量添加公共邮箱成员
187
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/batch_create
188
- */
189
- batchCreateMailPublicMailboxMember(public_mailbox_id: string, body: BatchCreateMailPublicMailboxMemberRequest, query?: BatchCreateMailPublicMailboxMemberQuery): Promise<BatchCreateMailPublicMailboxMemberResponse>;
190
- /**
191
- * 批量删除公共邮箱成员
192
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/batch_delete
193
- */
194
- batchDeleteMailPublicMailboxMember(public_mailbox_id: string, body: BatchDeleteMailPublicMailboxMemberRequest): Promise<void>;
195
- /**
196
- * 创建公共邮箱别名
197
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/create
198
- */
199
- createMailPublicMailboxAlias(public_mailbox_id: string, body: CreateMailPublicMailboxAliasRequest): Promise<CreateMailPublicMailboxAliasResponse>;
200
- /**
201
- * 删除公共邮箱别名
202
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/delete
203
- */
204
- deleteMailPublicMailboxAlias(public_mailbox_id: string, alias_id: string): Promise<void>;
205
- /**
206
- * 查询公共邮箱的所有别名
207
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/list
208
- */
209
- listMailPublicMailboxAlias(public_mailbox_id: string): Promise<ListMailPublicMailboxAliasResponse>;
210
- /**
211
- * 从回收站删除用户邮箱地址
212
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox/delete
213
- */
214
- deleteMailUserMailbox(user_mailbox_id: string, query?: DeleteMailUserMailboxQuery): Promise<void>;
215
- /**
216
- * 创建用户邮箱别名
217
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/create
218
- */
219
- createMailUserMailboxAlias(user_mailbox_id: string, body: CreateMailUserMailboxAliasRequest): Promise<CreateMailUserMailboxAliasResponse>;
220
- /**
221
- * 删除用户邮箱别名
222
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/delete
223
- */
224
- deleteMailUserMailboxAlias(user_mailbox_id: string, alias_id: string): Promise<void>;
225
- /**
226
- * 获取用户邮箱所有别名
227
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/list
228
- */
229
- listMailUserMailboxAlias(user_mailbox_id: string, query?: Pagination): Promise<ListMailUserMailboxAliasResponse>;
230
- /**
231
- * 查询邮箱地址状态
232
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user/query
233
- */
234
- queryMailUser(body: QueryMailUserRequest): Promise<QueryMailUserResponse>;
5
+ mail: Mail.Methods;
235
6
  }
236
7
  }
237
- export interface SendMailUserMailboxMessageRequest {
238
- /** MIME邮件数据,基于base64url编码 */
239
- raw?: string;
240
- /** 主题 */
241
- subject?: string;
242
- /** 收件人 */
243
- to?: MailAddress[];
244
- /** 抄送 */
245
- cc?: MailAddress[];
246
- /** 秘送 */
247
- bcc?: MailAddress[];
248
- /** 发件人 */
249
- head_from?: MailAddress;
250
- /** 正文(base64url) */
251
- body_html?: string;
252
- /** 正文纯文本(base64url) */
253
- body_plain_text?: string;
254
- /** 邮件附件列表 */
255
- attachments?: Attachment[];
256
- /** 会话id */
257
- thread_id?: string;
258
- }
259
- export interface CreateMailMailgroupRequest {
260
- /** The mail group's email address */
261
- email?: string;
262
- /** The mail group's display name */
263
- name?: string;
264
- /** The mail group's description */
265
- description?: string;
266
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
267
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
268
- }
269
- export interface CreateMailMailgroupResponse {
270
- /** The unique ID of a mail group */
271
- mailgroup_id?: string;
272
- /** The mail group's email address */
273
- email?: string;
274
- /** The mail group's display name */
275
- name?: string;
276
- /** The mail group's description */
277
- description?: string;
278
- /** The number of mail group's direct members */
279
- direct_members_count?: string;
280
- /** Value is true if this mail group has external member */
281
- include_external_member?: boolean;
282
- /** Value is true if all company members are in this mail group */
283
- include_all_company_member?: boolean;
284
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
285
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
286
- }
287
- export interface PatchMailMailgroupRequest {
288
- /** The public mailbox's new primary email address */
289
- email?: string;
290
- /** The mail group's display name */
291
- name?: string;
292
- /** The mail group's description */
293
- description?: string;
294
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
295
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
296
- }
297
- export interface PatchMailMailgroupResponse {
298
- /** The unique ID of a mail group */
299
- mailgroup_id?: string;
300
- /** The mail group's email address */
301
- email?: string;
302
- /** The mail group's display name */
303
- name?: string;
304
- /** The mail group's description */
305
- description?: string;
306
- /** The number of mail group's direct members */
307
- direct_members_count?: string;
308
- /** Value is true if this mail group has external member */
309
- include_external_member?: boolean;
310
- /** Value is true if all company members are in this mail group */
311
- include_all_company_member?: boolean;
312
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
313
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
314
- }
315
- export interface UpdateMailMailgroupRequest {
316
- /** The public mailbox's new primary email address */
317
- email?: string;
318
- /** The mail group's display name */
319
- name?: string;
320
- /** The mail group's description */
321
- description?: string;
322
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
323
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
324
- }
325
- export interface UpdateMailMailgroupResponse {
326
- /** The unique ID of a mail group */
327
- mailgroup_id?: string;
328
- /** The mail group's email address */
329
- email?: string;
330
- /** The mail group's display name */
331
- name?: string;
332
- /** The mail group's description */
333
- description?: string;
334
- /** The number of mail group's direct members */
335
- direct_members_count?: string;
336
- /** Value is true if this mail group has external member */
337
- include_external_member?: boolean;
338
- /** Value is true if all company members are in this mail group */
339
- include_all_company_member?: boolean;
340
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
341
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
342
- }
343
- export interface GetMailMailgroupResponse {
344
- /** The unique ID of a mail group */
345
- mailgroup_id?: string;
346
- /** The mail group's email address */
347
- email?: string;
348
- /** The mail group's display name */
349
- name?: string;
350
- /** The mail group's description */
351
- description?: string;
352
- /** The number of mail group's direct members */
353
- direct_members_count?: string;
354
- /** Value is true if this mail group has external member */
355
- include_external_member?: boolean;
356
- /** Value is true if all company members are in this mail group */
357
- include_all_company_member?: boolean;
358
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
359
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
360
- }
361
- export interface ListMailMailgroupQuery extends Pagination {
362
- /** 邮件组管理员用户ID,用于获取该用户有管理权限的邮件组 */
363
- manager_user_id?: string;
364
- /** 此次调用中使用的用户ID的类型 */
365
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
366
- }
367
- export interface BatchCreateMailMailgroupManagerRequest {
368
- /** 邮件组管理员列表 */
369
- mailgroup_manager_list?: MailgroupManager[];
370
- }
371
- export interface BatchCreateMailMailgroupManagerQuery {
372
- /** 此次调用中使用的用户ID的类型 */
373
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
374
- }
375
- export interface BatchDeleteMailMailgroupManagerRequest {
376
- /** 邮件组管理员列表 */
377
- mailgroup_manager_list?: MailgroupManager[];
378
- }
379
- export interface BatchDeleteMailMailgroupManagerQuery {
380
- /** 此次调用中使用的用户ID的类型 */
381
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
382
- }
383
- export interface ListMailMailgroupManagerQuery extends Pagination {
384
- /** 此次调用中使用的用户ID的类型 */
385
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
386
- }
387
- export interface CreateMailMailgroupMemberRequest {
388
- /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
389
- email?: string;
390
- /** The member's user id. Value is valid when type is USER */
391
- user_id?: string;
392
- /** The member's department id. Value is valid when type is DEPARTMENT */
393
- department_id?: string;
394
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
395
- type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
396
- }
397
- export interface CreateMailMailgroupMemberQuery {
398
- /** 此次调用中使用的用户ID的类型 */
399
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
400
- /** 此次调用中使用的部门ID的类型 */
401
- department_id_type?: 'department_id' | 'open_department_id';
402
- }
403
- export interface CreateMailMailgroupMemberResponse {
404
- /** The unique ID of a member in this mail group */
405
- member_id?: string;
406
- /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
407
- email?: string;
408
- /** The member's user id. Value is valid when type is USER */
409
- user_id?: string;
410
- /** The member's department id. Value is valid when type is DEPARTMENT */
411
- department_id?: string;
412
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
413
- type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
414
- }
415
- export interface GetMailMailgroupMemberQuery {
416
- /** 此次调用中使用的用户ID的类型 */
417
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
418
- /** 此次调用中使用的部门ID的类型 */
419
- department_id_type?: 'department_id' | 'open_department_id';
420
- }
421
- export interface GetMailMailgroupMemberResponse {
422
- /** The unique ID of a member in this mail group */
423
- member_id?: string;
424
- /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
425
- email?: string;
426
- /** The member's user id. Value is valid when type is USER */
427
- user_id?: string;
428
- /** The member's department id. Value is valid when type is DEPARTMENT */
429
- department_id?: string;
430
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
431
- type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
432
- }
433
- export interface ListMailMailgroupMemberQuery extends Pagination {
434
- /** 此次调用中使用的用户ID的类型 */
435
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
436
- /** 此次调用中使用的部门ID的类型 */
437
- department_id_type?: 'department_id' | 'open_department_id';
438
- }
439
- export interface BatchCreateMailMailgroupMemberRequest {
440
- /** 本次添加的邮件组成员列表 */
441
- items?: MailgroupMember[];
442
- }
443
- export interface BatchCreateMailMailgroupMemberQuery {
444
- /** 此次调用中使用的用户ID的类型 */
445
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
446
- /** 此次调用中使用的部门ID的类型 */
447
- department_id_type?: 'department_id' | 'open_department_id';
448
- }
449
- export interface BatchCreateMailMailgroupMemberResponse {
450
- /** 添加成功后的邮件组成员信息列表 */
451
- items?: MailgroupMember[];
452
- }
453
- export interface BatchDeleteMailMailgroupMemberRequest {
454
- /** 本次调用删除的成员ID列表 */
455
- member_id_list?: string[];
456
- }
457
- export interface CreateMailMailgroupAliasRequest {
458
- /** 邮箱别名 */
459
- email_alias?: string;
460
- }
461
- export interface CreateMailMailgroupAliasResponse {
462
- /** 邮件组别名 */
463
- mailgroup_alias?: EmailAlias;
464
- }
465
- export interface ListMailMailgroupAliasResponse {
466
- /** 邮件组别名 */
467
- items?: EmailAlias[];
468
- }
469
- export interface CreateMailMailgroupPermissionMemberRequest {
470
- /** The member's user id. Value is valid when type is USER */
471
- user_id?: string;
472
- /** The member's department id. Value is valid when type is DEPARTMENT */
473
- department_id?: string;
474
- /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
475
- email?: string;
476
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
477
- type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
478
- }
479
- export interface CreateMailMailgroupPermissionMemberQuery {
480
- /** 此次调用中使用的用户ID的类型 */
481
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
482
- /** 此次调用中使用的部门ID的类型 */
483
- department_id_type?: 'department_id' | 'open_department_id';
484
- }
485
- export interface CreateMailMailgroupPermissionMemberResponse {
486
- /** The unique ID of a member in this permission group */
487
- permission_member_id?: string;
488
- /** The member's user id. Value is valid when type is USER */
489
- user_id?: string;
490
- /** The member's department id. Value is valid when type is DEPARTMENT */
491
- department_id?: string;
492
- /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
493
- email?: string;
494
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
495
- type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
496
- }
497
- export interface GetMailMailgroupPermissionMemberQuery {
498
- /** 此次调用中使用的用户ID的类型 */
499
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
500
- /** 此次调用中使用的部门ID的类型 */
501
- department_id_type?: 'department_id' | 'open_department_id';
502
- }
503
- export interface GetMailMailgroupPermissionMemberResponse {
504
- /** The unique ID of a member in this permission group */
505
- permission_member_id?: string;
506
- /** The member's user id. Value is valid when type is USER */
507
- user_id?: string;
508
- /** The member's department id. Value is valid when type is DEPARTMENT */
509
- department_id?: string;
510
- /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
511
- email?: string;
512
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
513
- type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
514
- }
515
- export interface ListMailMailgroupPermissionMemberQuery extends Pagination {
516
- /** 此次调用中使用的用户ID的类型 */
517
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
518
- /** 此次调用中使用的部门ID的类型 */
519
- department_id_type?: 'department_id' | 'open_department_id';
520
- }
521
- export interface BatchCreateMailMailgroupPermissionMemberRequest {
522
- /** 本次添加的邮件组权限成员列表 */
523
- items?: MailgroupPermissionMember[];
524
- }
525
- export interface BatchCreateMailMailgroupPermissionMemberQuery {
526
- /** 此次调用中使用的用户ID的类型 */
527
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
528
- /** 此次调用中使用的部门ID的类型 */
529
- department_id_type?: 'department_id' | 'open_department_id';
530
- }
531
- export interface BatchCreateMailMailgroupPermissionMemberResponse {
532
- /** 添加成功后的邮件组权限成员信息列表 */
533
- items?: MailgroupPermissionMember[];
534
- }
535
- export interface BatchDeleteMailMailgroupPermissionMemberRequest {
536
- /** 本次调用删除的权限成员ID列表 */
537
- permission_member_id_list: string[];
538
- }
539
- export interface CreateMailPublicMailboxRequest {
540
- /** The public mailbox's email address */
541
- email?: string;
542
- /** The public mailbox's display name */
543
- name?: string;
544
- /** 数据驻留地 */
545
- geo?: string;
546
- }
547
- export interface CreateMailPublicMailboxResponse {
548
- /** The unique ID of a public mailbox */
549
- public_mailbox_id?: string;
550
- /** The public mailbox's email address */
551
- email?: string;
552
- /** The public mailbox's display name */
553
- name?: string;
554
- /** 数据驻留地 */
555
- geo?: string;
556
- }
557
- export interface PatchMailPublicMailboxRequest {
558
- /** The public mailbox's new primary email address */
559
- email?: string;
560
- /** The public mailbox's display name */
561
- name?: string;
562
- }
563
- export interface PatchMailPublicMailboxResponse {
564
- /** The unique ID of a public mailbox */
565
- public_mailbox_id?: string;
566
- /** The public mailbox's email address */
567
- email?: string;
568
- /** The public mailbox's display name */
569
- name?: string;
570
- }
571
- export interface UpdateMailPublicMailboxRequest {
572
- /** The public mailbox's new primary email address */
573
- email?: string;
574
- /** The public mailbox's display name */
575
- name?: string;
576
- }
577
- export interface UpdateMailPublicMailboxResponse {
578
- /** The unique ID of a public mailbox */
579
- public_mailbox_id?: string;
580
- /** The public mailbox's email address */
581
- email?: string;
582
- /** The public mailbox's display name */
583
- name?: string;
584
- }
585
- export interface GetMailPublicMailboxResponse {
586
- /** The unique ID of a public mailbox */
587
- public_mailbox_id?: string;
588
- /** The public mailbox's email address */
589
- email?: string;
590
- /** The public mailbox's display name */
591
- name?: string;
592
- /** 数据驻留地 */
593
- geo?: string;
594
- }
595
- export interface CreateMailPublicMailboxMemberRequest {
596
- /** The member's user id. Value is valid when type is USER */
597
- user_id?: string;
598
- /** The type of member. Possible values are:- USER: internal user in the team */
599
- type?: 'USER';
600
- }
601
- export interface CreateMailPublicMailboxMemberQuery {
602
- /** 此次调用中使用的用户ID的类型 */
603
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
604
- }
605
- export interface CreateMailPublicMailboxMemberResponse {
606
- /** The unique ID of a member in this public mailbox */
607
- member_id?: string;
608
- /** The member's user id. Value is valid when type is USER */
609
- user_id?: string;
610
- /** The type of member. Possible values are:- USER: internal user in the team */
611
- type?: 'USER';
612
- }
613
- export interface GetMailPublicMailboxMemberQuery {
614
- /** 此次调用中使用的用户ID的类型 */
615
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
616
- }
617
- export interface GetMailPublicMailboxMemberResponse {
618
- /** The unique ID of a member in this public mailbox */
619
- member_id?: string;
620
- /** The member's user id. Value is valid when type is USER */
621
- user_id?: string;
622
- /** The type of member. Possible values are:- USER: internal user in the team */
623
- type?: 'USER';
624
- }
625
- export interface ListMailPublicMailboxMemberQuery extends Pagination {
626
- /** 此次调用中使用的用户ID的类型 */
627
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
628
- }
629
- export interface BatchCreateMailPublicMailboxMemberRequest {
630
- /** 本次调用添加的公共邮箱成员列表 */
631
- items: PublicMailboxMember[];
632
- }
633
- export interface BatchCreateMailPublicMailboxMemberQuery {
634
- /** 此次调用中使用的用户ID的类型 */
635
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
636
- }
637
- export interface BatchCreateMailPublicMailboxMemberResponse {
638
- /** 添加成功后的公共邮箱成员信息列表 */
639
- items?: PublicMailboxMember[];
640
- }
641
- export interface BatchDeleteMailPublicMailboxMemberRequest {
642
- /** 本次调用删除的公共邮箱成员ID列表 */
643
- member_id_list: string[];
644
- }
645
- export interface CreateMailPublicMailboxAliasRequest {
646
- /** 邮箱别名 */
647
- email_alias?: string;
648
- }
649
- export interface CreateMailPublicMailboxAliasResponse {
650
- /** 公共邮箱别名 */
651
- public_mailbox_alias?: EmailAlias;
652
- }
653
- export interface ListMailPublicMailboxAliasResponse {
654
- /** 公共邮箱别名 */
655
- items?: EmailAlias[];
656
- }
657
- export interface DeleteMailUserMailboxQuery {
658
- /** 用于接受转移的邮箱地址 */
659
- transfer_mailbox?: string;
660
- }
661
- export interface CreateMailUserMailboxAliasRequest {
662
- /** 邮箱别名 */
663
- email_alias?: string;
664
- }
665
- export interface CreateMailUserMailboxAliasResponse {
666
- /** 用户邮箱别名 */
667
- user_mailbox_alias?: EmailAlias;
668
- }
669
- export interface ListMailUserMailboxAliasResponse {
670
- /** 用户邮箱别名 */
671
- items?: EmailAlias[];
672
- }
673
- export interface QueryMailUserRequest {
674
- /** 需要查询的邮箱地址列表 */
675
- email_list: string[];
676
- }
677
- export interface QueryMailUserResponse {
678
- /** 邮箱地址返回 */
679
- user_list?: User[];
8
+ export declare namespace Mail {
9
+ interface Methods {
10
+ userMailbox: UserMailbox.Methods;
11
+ mailgroup: Mailgroup.Methods;
12
+ publicMailbox: PublicMailbox.Methods;
13
+ user: User.Methods;
14
+ }
15
+ namespace UserMailbox {
16
+ interface Methods {
17
+ folder: Folder.Methods;
18
+ message: Message.Methods;
19
+ event: Event.Methods;
20
+ rule: Rule.Methods;
21
+ mailContact: MailContact.Methods;
22
+ alias: Alias.Methods;
23
+ /**
24
+ * 从回收站删除用户邮箱地址
25
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox/delete
26
+ */
27
+ delete(user_mailbox_id: string, query?: DeleteQuery): Promise<void>;
28
+ }
29
+ interface DeleteQuery {
30
+ /** 用于接受转移的邮箱地址 */
31
+ transfer_mailbox?: string;
32
+ }
33
+ namespace Folder {
34
+ interface Methods {
35
+ /**
36
+ * 创建邮箱文件夹
37
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-folder/create
38
+ */
39
+ create(user_mailbox_id: string, body: CreateRequest): Promise<CreateResponse>;
40
+ /**
41
+ * 删除邮箱文件夹
42
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-folder/delete
43
+ */
44
+ delete(user_mailbox_id: string, folder_id: string): Promise<void>;
45
+ /**
46
+ * 修改邮箱文件夹
47
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-folder/patch
48
+ */
49
+ patch(user_mailbox_id: string, folder_id: string, body: PatchRequest): Promise<void>;
50
+ /**
51
+ * 列出邮箱文件夹
52
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-folder/list
53
+ */
54
+ list(user_mailbox_id: string, query?: ListQuery): Promise<ListResponse>;
55
+ }
56
+ interface CreateRequest {
57
+ /** 文件夹名称 */
58
+ name: string;
59
+ /** 父文件夹 id,该值为 0 表示根文件夹 */
60
+ parent_folder_id: string;
61
+ }
62
+ interface CreateResponse {
63
+ /** 文件夹实体 */
64
+ folder?: Lark.Folder;
65
+ }
66
+ interface PatchRequest {
67
+ /** 文件夹名称 */
68
+ name?: string;
69
+ /** 父文件夹 id,该值为 0 表示根文件夹 */
70
+ parent_folder_id?: string;
71
+ }
72
+ const enum ListQueryFolderType {
73
+ /** 系统文件夹 */
74
+ System = 1,
75
+ /** 用户文件夹 */
76
+ User = 2
77
+ }
78
+ interface ListQuery {
79
+ /** 文件夹类型 */
80
+ folder_type?: ListQueryFolderType;
81
+ }
82
+ interface ListResponse {
83
+ /** 文件夹列表 */
84
+ items?: Lark.Folder[];
85
+ }
86
+ }
87
+ namespace Message {
88
+ interface Methods {
89
+ attachment: Attachment.Methods;
90
+ /**
91
+ * 获取邮件卡片的邮件列表
92
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message/get_by_card
93
+ */
94
+ getByCard(user_mailbox_id: string, query?: GetByCardQuery): Promise<GetByCardResponse>;
95
+ /**
96
+ * 列出邮件
97
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message/list
98
+ */
99
+ list(user_mailbox_id: string, query?: ListQuery): Paginated<string>;
100
+ /**
101
+ * 获取邮件详情
102
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message/get
103
+ */
104
+ get(user_mailbox_id: string, message_id: string): Promise<GetResponse>;
105
+ /**
106
+ * 发送邮件
107
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message/send
108
+ */
109
+ send(user_mailbox_id: string, body: SendRequest): Promise<void>;
110
+ }
111
+ interface GetByCardQuery {
112
+ /** 卡片ID */
113
+ card_id: string;
114
+ /** 卡片OwnerID */
115
+ owner_id: string;
116
+ /** 用户ID类型 */
117
+ user_id_type?: 'open_id' | 'user_id' | 'union_id';
118
+ }
119
+ interface GetByCardResponse {
120
+ /** 邮件Owner信息 */
121
+ owner_info: Lark.UserInfo;
122
+ /** 邮件ID列表 */
123
+ message_ids: string[];
124
+ /** 卡片ID */
125
+ card_id: string;
126
+ }
127
+ interface ListQuery extends Pagination {
128
+ /** 文件夹 id */
129
+ folder_id: string;
130
+ /** 是否只查询未读邮件 */
131
+ only_unread?: boolean;
132
+ }
133
+ interface GetResponse {
134
+ /** 邮件体 */
135
+ message?: Lark.Message;
136
+ }
137
+ interface SendRequest {
138
+ /** MIME邮件数据,基于base64url编码 */
139
+ raw?: string;
140
+ /** 主题 */
141
+ subject?: string;
142
+ /** 收件人 */
143
+ to?: Lark.MailAddress[];
144
+ /** 抄送 */
145
+ cc?: Lark.MailAddress[];
146
+ /** 秘送 */
147
+ bcc?: Lark.MailAddress[];
148
+ /** 发件人 */
149
+ head_from?: Lark.MailAddress;
150
+ /** 正文(base64url) */
151
+ body_html?: string;
152
+ /** 正文纯文本(base64url) */
153
+ body_plain_text?: string;
154
+ /** 邮件附件列表 */
155
+ attachments?: Lark.Attachment[];
156
+ /** 会话id */
157
+ thread_id?: string;
158
+ }
159
+ namespace Attachment {
160
+ interface Methods {
161
+ /**
162
+ * 获取附件下载链接
163
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-message-attachment/download_url
164
+ */
165
+ downloadUrl(user_mailbox_id: string, message_id: string, query?: DownloadUrlQuery): Promise<DownloadUrlResponse>;
166
+ }
167
+ interface DownloadUrlQuery {
168
+ /** 附件 id 列表 */
169
+ attachment_ids: string[];
170
+ }
171
+ interface DownloadUrlResponse {
172
+ /** 下载链接列表 */
173
+ download_urls?: Lark.AttachmentDownloadUrlItem[];
174
+ /** 获取失败的附件 id 列表 */
175
+ failed_ids?: string[];
176
+ }
177
+ }
178
+ }
179
+ namespace Event {
180
+ interface Methods {
181
+ /**
182
+ * 订阅事件
183
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-event/subscribe
184
+ */
185
+ subscribe(user_mailbox_id: string, body: SubscribeRequest): Promise<void>;
186
+ /**
187
+ * 获取订阅状态
188
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-event/subscription
189
+ */
190
+ subscription(user_mailbox_id: string): Promise<SubscriptionResponse>;
191
+ /**
192
+ * 取消订阅
193
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-event/unsubscribe
194
+ */
195
+ unsubscribe(user_mailbox_id: string, body: UnsubscribeRequest): Promise<void>;
196
+ }
197
+ const enum SubscribeRequestEventType {
198
+ /** 邮件相关事件 */
199
+ Message = 1
200
+ }
201
+ interface SubscribeRequest {
202
+ /** 事件类型 */
203
+ event_type: SubscribeRequestEventType;
204
+ }
205
+ interface SubscriptionResponse {
206
+ /** 订阅的事件列表 */
207
+ event_types?: number[];
208
+ }
209
+ const enum UnsubscribeRequestEventType {
210
+ /** 邮件相关事件 */
211
+ Message = 1
212
+ }
213
+ interface UnsubscribeRequest {
214
+ /** 事件类型 */
215
+ event_type: UnsubscribeRequestEventType;
216
+ }
217
+ }
218
+ namespace Rule {
219
+ interface Methods {
220
+ /**
221
+ * 创建收信规则
222
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-rule/create
223
+ */
224
+ create(user_mailbox_id: string, body: CreateRequest): Promise<CreateResponse>;
225
+ /**
226
+ * 删除收信规则
227
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-rule/delete
228
+ */
229
+ delete(user_mailbox_id: string, rule_id: string): Promise<void>;
230
+ /**
231
+ * 更新收信规则
232
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-rule/update
233
+ */
234
+ update(user_mailbox_id: string, rule_id: string, body: UpdateRequest): Promise<void>;
235
+ /**
236
+ * 列出收信规则
237
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-rule/list
238
+ */
239
+ list(user_mailbox_id: string): Promise<ListResponse>;
240
+ /**
241
+ * 对收信规则进行排序
242
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-rule/reorder
243
+ */
244
+ reorder(user_mailbox_id: string, body: ReorderRequest): Promise<void>;
245
+ }
246
+ interface CreateRequest {
247
+ /** 匹配条件 */
248
+ condition: Lark.RuleCondition;
249
+ /** 匹配命中后的操作 */
250
+ action: Lark.RuleAction;
251
+ /** 是否终点规则 */
252
+ ignore_the_rest_of_rules: boolean;
253
+ /** 规则名称 */
254
+ name: string;
255
+ /** 是否启用 */
256
+ is_enable: boolean;
257
+ }
258
+ interface CreateResponse {
259
+ /** 规则实体 */
260
+ rule?: Lark.Rule;
261
+ }
262
+ interface UpdateRequest {
263
+ /** 匹配条件 */
264
+ condition: Lark.RuleCondition;
265
+ /** 匹配命中后的操作 */
266
+ action: Lark.RuleAction;
267
+ /** 是否终点规则 */
268
+ ignore_the_rest_of_rules: boolean;
269
+ /** 规则名称 */
270
+ name: string;
271
+ /** 是否启用 */
272
+ is_enable: boolean;
273
+ }
274
+ interface ListResponse {
275
+ /** 规则列表 */
276
+ items?: Lark.Rule[];
277
+ }
278
+ interface ReorderRequest {
279
+ /** 规则 id 列表 */
280
+ rule_ids: string[];
281
+ }
282
+ }
283
+ namespace MailContact {
284
+ interface Methods {
285
+ /**
286
+ * 创建邮箱联系人
287
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-mail_contact/create
288
+ */
289
+ create(user_mailbox_id: string, body: CreateRequest): Promise<CreateResponse>;
290
+ /**
291
+ * 删除邮箱联系人
292
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-mail_contact/delete
293
+ */
294
+ delete(user_mailbox_id: string, mail_contact_id: string): Promise<void>;
295
+ /**
296
+ * 修改邮箱联系人信息
297
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-mail_contact/patch
298
+ */
299
+ patch(user_mailbox_id: string, mail_contact_id: string, body: PatchRequest): Promise<void>;
300
+ /**
301
+ * 列出邮箱联系人
302
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-mail_contact/list
303
+ */
304
+ list(user_mailbox_id: string, query?: Pagination): Paginated<Lark.MailContact>;
305
+ }
306
+ interface CreateRequest {
307
+ /** 联系人姓名 */
308
+ name: string;
309
+ /** 联系人公司 */
310
+ company?: string;
311
+ /** 联系人手机号 */
312
+ phone?: string;
313
+ /** 联系人邮箱 */
314
+ mail_address?: string;
315
+ /** 联系人标签 */
316
+ tag?: string;
317
+ /** 联系人备注 */
318
+ remark?: string;
319
+ /** 联系人职位 */
320
+ position?: string;
321
+ }
322
+ interface CreateResponse {
323
+ /** 联系人实体 */
324
+ mail_contact?: Lark.MailContact;
325
+ }
326
+ interface PatchRequest {
327
+ /** 联系人姓名 */
328
+ name: string;
329
+ /** 联系人公司 */
330
+ company?: string;
331
+ /** 联系人手机号 */
332
+ phone?: string;
333
+ /** 联系人邮箱 */
334
+ mail_address?: string;
335
+ /** 联系人标签 */
336
+ tag?: string;
337
+ /** 联系人备注 */
338
+ remark?: string;
339
+ /** 联系人职位 */
340
+ position?: string;
341
+ }
342
+ }
343
+ namespace Alias {
344
+ interface Methods {
345
+ /**
346
+ * 创建用户邮箱别名
347
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/create
348
+ */
349
+ create(user_mailbox_id: string, body: CreateRequest): Promise<CreateResponse>;
350
+ /**
351
+ * 删除用户邮箱别名
352
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/delete
353
+ */
354
+ delete(user_mailbox_id: string, alias_id: string): Promise<void>;
355
+ /**
356
+ * 获取用户邮箱所有别名
357
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user_mailbox-alias/list
358
+ */
359
+ list(user_mailbox_id: string, query?: Pagination): Promise<ListResponse>;
360
+ }
361
+ interface CreateRequest {
362
+ /** 邮箱别名 */
363
+ email_alias?: string;
364
+ }
365
+ interface CreateResponse {
366
+ /** 用户邮箱别名 */
367
+ user_mailbox_alias?: Lark.EmailAlias;
368
+ }
369
+ interface ListResponse {
370
+ /** 用户邮箱别名 */
371
+ items?: Lark.EmailAlias[];
372
+ }
373
+ }
374
+ }
375
+ namespace Mailgroup {
376
+ interface Methods {
377
+ manager: Manager.Methods;
378
+ member: Member.Methods;
379
+ alias: Alias.Methods;
380
+ permissionMember: PermissionMember.Methods;
381
+ /**
382
+ * 创建邮件组
383
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/create
384
+ */
385
+ create(body: CreateRequest): Promise<CreateResponse>;
386
+ /**
387
+ * 删除邮件组
388
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/delete
389
+ */
390
+ delete(mailgroup_id: string): Promise<void>;
391
+ /**
392
+ * 修改邮件组部分信息
393
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch
394
+ */
395
+ patch(mailgroup_id: string, body: PatchRequest): Promise<PatchResponse>;
396
+ /**
397
+ * 修改邮件组全部信息
398
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update
399
+ */
400
+ update(mailgroup_id: string, body: UpdateRequest): Promise<UpdateResponse>;
401
+ /**
402
+ * 查询指定邮件组
403
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/get
404
+ */
405
+ get(mailgroup_id: string): Promise<GetResponse>;
406
+ /**
407
+ * 批量获取邮件组
408
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list
409
+ */
410
+ list(query?: ListQuery): Paginated<Lark.Mailgroup>;
411
+ }
412
+ interface CreateRequest {
413
+ /** The mail group's email address */
414
+ email?: string;
415
+ /** The mail group's display name */
416
+ name?: string;
417
+ /** The mail group's description */
418
+ description?: string;
419
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
420
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
421
+ }
422
+ interface CreateResponse {
423
+ /** The unique ID of a mail group */
424
+ mailgroup_id?: string;
425
+ /** The mail group's email address */
426
+ email?: string;
427
+ /** The mail group's display name */
428
+ name?: string;
429
+ /** The mail group's description */
430
+ description?: string;
431
+ /** The number of mail group's direct members */
432
+ direct_members_count?: string;
433
+ /** Value is true if this mail group has external member */
434
+ include_external_member?: boolean;
435
+ /** Value is true if all company members are in this mail group */
436
+ include_all_company_member?: boolean;
437
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
438
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
439
+ }
440
+ interface PatchRequest {
441
+ /** The public mailbox's new primary email address */
442
+ email?: string;
443
+ /** The mail group's display name */
444
+ name?: string;
445
+ /** The mail group's description */
446
+ description?: string;
447
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
448
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
449
+ }
450
+ interface PatchResponse {
451
+ /** The unique ID of a mail group */
452
+ mailgroup_id?: string;
453
+ /** The mail group's email address */
454
+ email?: string;
455
+ /** The mail group's display name */
456
+ name?: string;
457
+ /** The mail group's description */
458
+ description?: string;
459
+ /** The number of mail group's direct members */
460
+ direct_members_count?: string;
461
+ /** Value is true if this mail group has external member */
462
+ include_external_member?: boolean;
463
+ /** Value is true if all company members are in this mail group */
464
+ include_all_company_member?: boolean;
465
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
466
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
467
+ }
468
+ interface UpdateRequest {
469
+ /** The public mailbox's new primary email address */
470
+ email?: string;
471
+ /** The mail group's display name */
472
+ name?: string;
473
+ /** The mail group's description */
474
+ description?: string;
475
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
476
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
477
+ }
478
+ interface UpdateResponse {
479
+ /** The unique ID of a mail group */
480
+ mailgroup_id?: string;
481
+ /** The mail group's email address */
482
+ email?: string;
483
+ /** The mail group's display name */
484
+ name?: string;
485
+ /** The mail group's description */
486
+ description?: string;
487
+ /** The number of mail group's direct members */
488
+ direct_members_count?: string;
489
+ /** Value is true if this mail group has external member */
490
+ include_external_member?: boolean;
491
+ /** Value is true if all company members are in this mail group */
492
+ include_all_company_member?: boolean;
493
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
494
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
495
+ }
496
+ interface GetResponse {
497
+ /** The unique ID of a mail group */
498
+ mailgroup_id?: string;
499
+ /** The mail group's email address */
500
+ email?: string;
501
+ /** The mail group's display name */
502
+ name?: string;
503
+ /** The mail group's description */
504
+ description?: string;
505
+ /** The number of mail group's direct members */
506
+ direct_members_count?: string;
507
+ /** Value is true if this mail group has external member */
508
+ include_external_member?: boolean;
509
+ /** Value is true if all company members are in this mail group */
510
+ include_all_company_member?: boolean;
511
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
512
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS';
513
+ }
514
+ interface ListQuery extends Pagination {
515
+ /** 邮件组管理员用户ID,用于获取该用户有管理权限的邮件组 */
516
+ manager_user_id?: string;
517
+ /** 此次调用中使用的用户ID的类型 */
518
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
519
+ }
520
+ namespace Manager {
521
+ interface Methods {
522
+ /**
523
+ * 批量创建邮件组管理员
524
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create
525
+ */
526
+ batchCreate(mailgroup_id: string, body: BatchCreateRequest, query?: BatchCreateQuery): Promise<void>;
527
+ /**
528
+ * 批量删除邮件组管理员
529
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete
530
+ */
531
+ batchDelete(mailgroup_id: string, body: BatchDeleteRequest, query?: BatchDeleteQuery): Promise<void>;
532
+ /**
533
+ * 批量获取邮件组管理员
534
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list
535
+ */
536
+ list(mailgroup_id: string, query?: ListQuery): Paginated<Lark.MailgroupManager>;
537
+ }
538
+ interface BatchCreateRequest {
539
+ /** 邮件组管理员列表 */
540
+ mailgroup_manager_list?: Lark.MailgroupManager[];
541
+ }
542
+ interface BatchCreateQuery {
543
+ /** 此次调用中使用的用户ID的类型 */
544
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
545
+ }
546
+ interface BatchDeleteRequest {
547
+ /** 邮件组管理员列表 */
548
+ mailgroup_manager_list?: Lark.MailgroupManager[];
549
+ }
550
+ interface BatchDeleteQuery {
551
+ /** 此次调用中使用的用户ID的类型 */
552
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
553
+ }
554
+ interface ListQuery extends Pagination {
555
+ /** 此次调用中使用的用户ID的类型 */
556
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
557
+ }
558
+ }
559
+ namespace Member {
560
+ interface Methods {
561
+ /**
562
+ * 创建邮件组成员
563
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/create
564
+ */
565
+ create(mailgroup_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
566
+ /**
567
+ * 删除邮件组成员
568
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/delete
569
+ */
570
+ delete(mailgroup_id: string, member_id: string): Promise<void>;
571
+ /**
572
+ * 查询指定邮件组成员
573
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/get
574
+ */
575
+ get(mailgroup_id: string, member_id: string, query?: GetQuery): Promise<GetResponse>;
576
+ /**
577
+ * 获取所有邮件组成员
578
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/list
579
+ */
580
+ list(mailgroup_id: string, query?: ListQuery): Paginated<Lark.MailgroupMember>;
581
+ /**
582
+ * 批量创建邮件组成员
583
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/batch_create
584
+ */
585
+ batchCreate(mailgroup_id: string, body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>;
586
+ /**
587
+ * 批量删除邮件组成员
588
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-member/batch_delete
589
+ */
590
+ batchDelete(mailgroup_id: string, body: BatchDeleteRequest): Promise<void>;
591
+ }
592
+ interface CreateRequest {
593
+ /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
594
+ email?: string;
595
+ /** The member's user id. Value is valid when type is USER */
596
+ user_id?: string;
597
+ /** The member's department id. Value is valid when type is DEPARTMENT */
598
+ department_id?: string;
599
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
600
+ type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
601
+ }
602
+ interface CreateQuery {
603
+ /** 此次调用中使用的用户ID的类型 */
604
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
605
+ /** 此次调用中使用的部门ID的类型 */
606
+ department_id_type?: 'department_id' | 'open_department_id';
607
+ }
608
+ interface CreateResponse {
609
+ /** The unique ID of a member in this mail group */
610
+ member_id?: string;
611
+ /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
612
+ email?: string;
613
+ /** The member's user id. Value is valid when type is USER */
614
+ user_id?: string;
615
+ /** The member's department id. Value is valid when type is DEPARTMENT */
616
+ department_id?: string;
617
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
618
+ type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
619
+ }
620
+ interface GetQuery {
621
+ /** 此次调用中使用的用户ID的类型 */
622
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
623
+ /** 此次调用中使用的部门ID的类型 */
624
+ department_id_type?: 'department_id' | 'open_department_id';
625
+ }
626
+ interface GetResponse {
627
+ /** The unique ID of a member in this mail group */
628
+ member_id?: string;
629
+ /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
630
+ email?: string;
631
+ /** The member's user id. Value is valid when type is USER */
632
+ user_id?: string;
633
+ /** The member's department id. Value is valid when type is DEPARTMENT */
634
+ department_id?: string;
635
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
636
+ type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER';
637
+ }
638
+ interface ListQuery extends Pagination {
639
+ /** 此次调用中使用的用户ID的类型 */
640
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
641
+ /** 此次调用中使用的部门ID的类型 */
642
+ department_id_type?: 'department_id' | 'open_department_id';
643
+ }
644
+ interface BatchCreateRequest {
645
+ /** 本次添加的邮件组成员列表 */
646
+ items?: Lark.MailgroupMember[];
647
+ }
648
+ interface BatchCreateQuery {
649
+ /** 此次调用中使用的用户ID的类型 */
650
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
651
+ /** 此次调用中使用的部门ID的类型 */
652
+ department_id_type?: 'department_id' | 'open_department_id';
653
+ }
654
+ interface BatchCreateResponse {
655
+ /** 添加成功后的邮件组成员信息列表 */
656
+ items?: Lark.MailgroupMember[];
657
+ }
658
+ interface BatchDeleteRequest {
659
+ /** 本次调用删除的成员ID列表 */
660
+ member_id_list?: string[];
661
+ }
662
+ }
663
+ namespace Alias {
664
+ interface Methods {
665
+ /**
666
+ * 创建邮件组别名
667
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/create
668
+ */
669
+ create(mailgroup_id: string, body: CreateRequest): Promise<CreateResponse>;
670
+ /**
671
+ * 删除邮件组别名
672
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/delete
673
+ */
674
+ delete(mailgroup_id: string, alias_id: string): Promise<void>;
675
+ /**
676
+ * 获取邮件组所有别名
677
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-alias/list
678
+ */
679
+ list(mailgroup_id: string): Promise<ListResponse>;
680
+ }
681
+ interface CreateRequest {
682
+ /** 邮箱别名 */
683
+ email_alias?: string;
684
+ }
685
+ interface CreateResponse {
686
+ /** 邮件组别名 */
687
+ mailgroup_alias?: Lark.EmailAlias;
688
+ }
689
+ interface ListResponse {
690
+ /** 邮件组别名 */
691
+ items?: Lark.EmailAlias[];
692
+ }
693
+ }
694
+ namespace PermissionMember {
695
+ interface Methods {
696
+ /**
697
+ * 创建邮件组权限成员
698
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/create
699
+ */
700
+ create(mailgroup_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
701
+ /**
702
+ * 删除邮件组权限成员
703
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/delete
704
+ */
705
+ delete(mailgroup_id: string, permission_member_id: string): Promise<void>;
706
+ /**
707
+ * 获取邮件组权限成员
708
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/get
709
+ */
710
+ get(mailgroup_id: string, permission_member_id: string, query?: GetQuery): Promise<GetResponse>;
711
+ /**
712
+ * 批量获取邮件组权限成员
713
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/list
714
+ */
715
+ list(mailgroup_id: string, query?: ListQuery): Paginated<Lark.MailgroupPermissionMember>;
716
+ /**
717
+ * 批量创建邮件组权限成员
718
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/batch_create
719
+ */
720
+ batchCreate(mailgroup_id: string, body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>;
721
+ /**
722
+ * 批量删除邮件组权限成员
723
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-permission_member/batch_delete
724
+ */
725
+ batchDelete(mailgroup_id: string, body: BatchDeleteRequest): Promise<void>;
726
+ }
727
+ interface CreateRequest {
728
+ /** The member's user id. Value is valid when type is USER */
729
+ user_id?: string;
730
+ /** The member's department id. Value is valid when type is DEPARTMENT */
731
+ department_id?: string;
732
+ /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
733
+ email?: string;
734
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
735
+ type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
736
+ }
737
+ interface CreateQuery {
738
+ /** 此次调用中使用的用户ID的类型 */
739
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
740
+ /** 此次调用中使用的部门ID的类型 */
741
+ department_id_type?: 'department_id' | 'open_department_id';
742
+ }
743
+ interface CreateResponse {
744
+ /** The unique ID of a member in this permission group */
745
+ permission_member_id?: string;
746
+ /** The member's user id. Value is valid when type is USER */
747
+ user_id?: string;
748
+ /** The member's department id. Value is valid when type is DEPARTMENT */
749
+ department_id?: string;
750
+ /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
751
+ email?: string;
752
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
753
+ type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
754
+ }
755
+ interface GetQuery {
756
+ /** 此次调用中使用的用户ID的类型 */
757
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
758
+ /** 此次调用中使用的部门ID的类型 */
759
+ department_id_type?: 'department_id' | 'open_department_id';
760
+ }
761
+ interface GetResponse {
762
+ /** The unique ID of a member in this permission group */
763
+ permission_member_id?: string;
764
+ /** The member's user id. Value is valid when type is USER */
765
+ user_id?: string;
766
+ /** The member's department id. Value is valid when type is DEPARTMENT */
767
+ department_id?: string;
768
+ /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
769
+ email?: string;
770
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
771
+ type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX';
772
+ }
773
+ interface ListQuery extends Pagination {
774
+ /** 此次调用中使用的用户ID的类型 */
775
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
776
+ /** 此次调用中使用的部门ID的类型 */
777
+ department_id_type?: 'department_id' | 'open_department_id';
778
+ }
779
+ interface BatchCreateRequest {
780
+ /** 本次添加的邮件组权限成员列表 */
781
+ items?: Lark.MailgroupPermissionMember[];
782
+ }
783
+ interface BatchCreateQuery {
784
+ /** 此次调用中使用的用户ID的类型 */
785
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
786
+ /** 此次调用中使用的部门ID的类型 */
787
+ department_id_type?: 'department_id' | 'open_department_id';
788
+ }
789
+ interface BatchCreateResponse {
790
+ /** 添加成功后的邮件组权限成员信息列表 */
791
+ items?: Lark.MailgroupPermissionMember[];
792
+ }
793
+ interface BatchDeleteRequest {
794
+ /** 本次调用删除的权限成员ID列表 */
795
+ permission_member_id_list: string[];
796
+ }
797
+ }
798
+ }
799
+ namespace PublicMailbox {
800
+ interface Methods {
801
+ member: Member.Methods;
802
+ alias: Alias.Methods;
803
+ /**
804
+ * 创建公共邮箱
805
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/create
806
+ */
807
+ create(body: CreateRequest): Promise<CreateResponse>;
808
+ /**
809
+ * 修改公共邮箱部分信息
810
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/patch
811
+ */
812
+ patch(public_mailbox_id: string, body: PatchRequest): Promise<PatchResponse>;
813
+ /**
814
+ * 修改公共邮箱全部信息
815
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/update
816
+ */
817
+ update(public_mailbox_id: string, body: UpdateRequest): Promise<UpdateResponse>;
818
+ /**
819
+ * 查询指定公共邮箱
820
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/get
821
+ */
822
+ get(public_mailbox_id: string): Promise<GetResponse>;
823
+ /**
824
+ * 查询所有公共邮箱
825
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/list
826
+ */
827
+ list(query?: Pagination): Paginated<Lark.PublicMailbox>;
828
+ /**
829
+ * 将公共邮箱移至回收站
830
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/remove_to_recycle_bin
831
+ */
832
+ removeToRecycleBin(public_mailbox_id: string, body: RemoveToRecycleBinRequest): Promise<void>;
833
+ /**
834
+ * 永久删除公共邮箱
835
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox/delete
836
+ */
837
+ delete(public_mailbox_id: string): Promise<void>;
838
+ }
839
+ interface CreateRequest {
840
+ /** The public mailbox's email address */
841
+ email?: string;
842
+ /** The public mailbox's display name */
843
+ name?: string;
844
+ /** 数据驻留地 */
845
+ geo?: string;
846
+ }
847
+ interface CreateResponse {
848
+ /** The unique ID of a public mailbox */
849
+ public_mailbox_id?: string;
850
+ /** The public mailbox's email address */
851
+ email?: string;
852
+ /** The public mailbox's display name */
853
+ name?: string;
854
+ /** 数据驻留地 */
855
+ geo?: string;
856
+ }
857
+ interface PatchRequest {
858
+ /** The public mailbox's new primary email address */
859
+ email?: string;
860
+ /** The public mailbox's display name */
861
+ name?: string;
862
+ }
863
+ interface PatchResponse {
864
+ /** The unique ID of a public mailbox */
865
+ public_mailbox_id?: string;
866
+ /** The public mailbox's email address */
867
+ email?: string;
868
+ /** The public mailbox's display name */
869
+ name?: string;
870
+ }
871
+ interface UpdateRequest {
872
+ /** The public mailbox's new primary email address */
873
+ email?: string;
874
+ /** The public mailbox's display name */
875
+ name?: string;
876
+ }
877
+ interface UpdateResponse {
878
+ /** The unique ID of a public mailbox */
879
+ public_mailbox_id?: string;
880
+ /** The public mailbox's email address */
881
+ email?: string;
882
+ /** The public mailbox's display name */
883
+ name?: string;
884
+ }
885
+ interface GetResponse {
886
+ /** The unique ID of a public mailbox */
887
+ public_mailbox_id?: string;
888
+ /** The public mailbox's email address */
889
+ email?: string;
890
+ /** The public mailbox's display name */
891
+ name?: string;
892
+ /** 数据驻留地 */
893
+ geo?: string;
894
+ }
895
+ interface RemoveToRecycleBinRequest {
896
+ /** 接收删除邮件的邮箱地址,不填则删除该公共邮箱的邮件 */
897
+ to_mail_address?: string;
898
+ }
899
+ namespace Member {
900
+ interface Methods {
901
+ /**
902
+ * 添加公共邮箱成员
903
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/create
904
+ */
905
+ create(public_mailbox_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
906
+ /**
907
+ * 删除公共邮箱单个成员
908
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/delete
909
+ */
910
+ delete(public_mailbox_id: string, member_id: string): Promise<void>;
911
+ /**
912
+ * 删除公共邮箱所有成员
913
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/clear
914
+ */
915
+ clear(public_mailbox_id: string): Promise<void>;
916
+ /**
917
+ * 查询指定公共邮箱成员信息
918
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/get
919
+ */
920
+ get(public_mailbox_id: string, member_id: string, query?: GetQuery): Promise<GetResponse>;
921
+ /**
922
+ * 查询所有公共邮箱成员信息
923
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/list
924
+ */
925
+ list(public_mailbox_id: string, query?: ListQuery): Paginated<Lark.PublicMailboxMember>;
926
+ /**
927
+ * 批量添加公共邮箱成员
928
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/batch_create
929
+ */
930
+ batchCreate(public_mailbox_id: string, body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>;
931
+ /**
932
+ * 批量删除公共邮箱成员
933
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-member/batch_delete
934
+ */
935
+ batchDelete(public_mailbox_id: string, body: BatchDeleteRequest): Promise<void>;
936
+ }
937
+ interface CreateRequest {
938
+ /** The member's user id. Value is valid when type is USER */
939
+ user_id?: string;
940
+ /** The type of member. Possible values are:- USER: internal user in the team */
941
+ type?: 'USER';
942
+ }
943
+ interface CreateQuery {
944
+ /** 此次调用中使用的用户ID的类型 */
945
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
946
+ }
947
+ interface CreateResponse {
948
+ /** The unique ID of a member in this public mailbox */
949
+ member_id?: string;
950
+ /** The member's user id. Value is valid when type is USER */
951
+ user_id?: string;
952
+ /** The type of member. Possible values are:- USER: internal user in the team */
953
+ type?: 'USER';
954
+ }
955
+ interface GetQuery {
956
+ /** 此次调用中使用的用户ID的类型 */
957
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
958
+ }
959
+ interface GetResponse {
960
+ /** The unique ID of a member in this public mailbox */
961
+ member_id?: string;
962
+ /** The member's user id. Value is valid when type is USER */
963
+ user_id?: string;
964
+ /** The type of member. Possible values are:- USER: internal user in the team */
965
+ type?: 'USER';
966
+ }
967
+ interface ListQuery extends Pagination {
968
+ /** 此次调用中使用的用户ID的类型 */
969
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
970
+ }
971
+ interface BatchCreateRequest {
972
+ /** 本次调用添加的公共邮箱成员列表 */
973
+ items: Lark.PublicMailboxMember[];
974
+ }
975
+ interface BatchCreateQuery {
976
+ /** 此次调用中使用的用户ID的类型 */
977
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
978
+ }
979
+ interface BatchCreateResponse {
980
+ /** 添加成功后的公共邮箱成员信息列表 */
981
+ items?: Lark.PublicMailboxMember[];
982
+ }
983
+ interface BatchDeleteRequest {
984
+ /** 本次调用删除的公共邮箱成员ID列表 */
985
+ member_id_list: string[];
986
+ }
987
+ }
988
+ namespace Alias {
989
+ interface Methods {
990
+ /**
991
+ * 创建公共邮箱别名
992
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/create
993
+ */
994
+ create(public_mailbox_id: string, body: CreateRequest): Promise<CreateResponse>;
995
+ /**
996
+ * 删除公共邮箱别名
997
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/delete
998
+ */
999
+ delete(public_mailbox_id: string, alias_id: string): Promise<void>;
1000
+ /**
1001
+ * 查询公共邮箱的所有别名
1002
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/public_mailbox-alias/list
1003
+ */
1004
+ list(public_mailbox_id: string): Promise<ListResponse>;
1005
+ }
1006
+ interface CreateRequest {
1007
+ /** 邮箱别名 */
1008
+ email_alias?: string;
1009
+ }
1010
+ interface CreateResponse {
1011
+ /** 公共邮箱别名 */
1012
+ public_mailbox_alias?: Lark.EmailAlias;
1013
+ }
1014
+ interface ListResponse {
1015
+ /** 公共邮箱别名 */
1016
+ items?: Lark.EmailAlias[];
1017
+ }
1018
+ }
1019
+ }
1020
+ namespace User {
1021
+ interface Methods {
1022
+ /**
1023
+ * 查询邮箱地址状态
1024
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/user/query
1025
+ */
1026
+ query(body: QueryRequest): Promise<QueryResponse>;
1027
+ }
1028
+ interface QueryRequest {
1029
+ /** 需要查询的邮箱地址列表 */
1030
+ email_list: string[];
1031
+ }
1032
+ interface QueryResponse {
1033
+ /** 邮箱地址返回 */
1034
+ user_list?: Lark.User[];
1035
+ }
1036
+ }
680
1037
  }