@satorijs/adapter-lark 3.11.9 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bot.d.ts +5 -5
- package/lib/http.d.ts +6 -3
- package/lib/index.cjs +293 -223
- package/lib/types/acs.d.ts +4 -1
- package/lib/types/apaas.d.ts +152 -0
- package/lib/types/application.d.ts +20 -4
- package/lib/types/approval.d.ts +0 -13
- package/lib/types/attendance.d.ts +11 -5
- package/lib/types/authen.d.ts +8 -2
- package/lib/types/bitable.d.ts +25 -4
- package/lib/types/board.d.ts +17 -0
- package/lib/types/calendar.d.ts +16 -5
- package/lib/types/contact.d.ts +55 -12
- package/lib/types/corehr.d.ts +754 -142
- package/lib/types/drive.d.ts +20 -3
- package/lib/types/ehr.d.ts +11 -2
- package/lib/types/helpdesk.d.ts +15 -6
- package/lib/types/hire.d.ts +13 -13
- package/lib/types/human_authentication.d.ts +1 -1
- package/lib/types/im.d.ts +76 -20
- package/lib/types/index.d.ts +712 -115
- package/lib/types/mail.d.ts +106 -16
- package/lib/types/search.d.ts +4 -1
- package/lib/ws.d.ts +30 -0
- package/package.json +6 -3
- package/src/bot.ts +28 -15
- package/src/http.ts +10 -4
- package/src/types/acs.ts +4 -1
- package/src/types/apaas.ts +185 -0
- package/src/types/application.ts +20 -4
- package/src/types/approval.ts +0 -15
- package/src/types/attendance.ts +11 -5
- package/src/types/authen.ts +8 -2
- package/src/types/bitable.ts +25 -4
- package/src/types/board.ts +22 -0
- package/src/types/calendar.ts +16 -5
- package/src/types/contact.ts +55 -12
- package/src/types/corehr.ts +796 -142
- package/src/types/drive.ts +20 -3
- package/src/types/ehr.ts +11 -2
- package/src/types/helpdesk.ts +15 -6
- package/src/types/hire.ts +17 -17
- package/src/types/human_authentication.ts +1 -1
- package/src/types/im.ts +76 -20
- package/src/types/index.ts +738 -115
- package/src/types/mail.ts +106 -16
- package/src/types/search.ts +4 -1
- package/src/ws.ts +183 -0
- package/lib/types/api.d.ts +0 -28510
- package/lib/types/internal.d.ts +0 -21
- package/lib/types/message/content.d.ts +0 -433
- package/lib/types/message/index.d.ts +0 -95
package/lib/types/drive.d.ts
CHANGED
|
@@ -191,7 +191,10 @@ export declare namespace Drive {
|
|
|
191
191
|
file_name: string;
|
|
192
192
|
/** 上传点类型。 */
|
|
193
193
|
parent_type: 'explorer';
|
|
194
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* 文件夹token,
|
|
196
|
+
* 获取方式见 [概述](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction)
|
|
197
|
+
*/
|
|
195
198
|
parent_node: string;
|
|
196
199
|
/** 文件大小(以字节为单位)。 */
|
|
197
200
|
size: number;
|
|
@@ -946,7 +949,10 @@ export declare namespace Drive {
|
|
|
946
949
|
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor';
|
|
947
950
|
}
|
|
948
951
|
interface UpdateQuery {
|
|
949
|
-
/**
|
|
952
|
+
/**
|
|
953
|
+
* 更新权限后是否通知对方
|
|
954
|
+
* **注意:** 使用`tenant_access_token`访问不支持该参数
|
|
955
|
+
*/
|
|
950
956
|
need_notification?: boolean;
|
|
951
957
|
/** 文件类型,放于query参数中,如:`?type=doc` */
|
|
952
958
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
@@ -958,7 +964,18 @@ export declare namespace Drive {
|
|
|
958
964
|
interface ListQuery {
|
|
959
965
|
/** 文件类型,需要与文件的 token 相匹配 */
|
|
960
966
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
961
|
-
/**
|
|
967
|
+
/**
|
|
968
|
+
* 指定返回的协作者字段信息,如无指定则默认不返回
|
|
969
|
+
* **可选值有:**
|
|
970
|
+
* - `name`:协作者名
|
|
971
|
+
* - `type`:协作者类型
|
|
972
|
+
* - `avatar`:头像
|
|
973
|
+
* - `external_label`:外部标签
|
|
974
|
+
* **注意:**
|
|
975
|
+
* - 你可以使用特殊值`*`指定返回目前支持的所有字段
|
|
976
|
+
* - 你可以使用`,`分隔若干个你想指定返回的字段,如:`name,avatar`
|
|
977
|
+
* - 按需指定返回字段接口性能更好
|
|
978
|
+
*/
|
|
962
979
|
fields?: string;
|
|
963
980
|
/** 协作者的权限角色类型 */
|
|
964
981
|
perm_type?: 'container' | 'single_page';
|
package/lib/types/ehr.d.ts
CHANGED
|
@@ -45,7 +45,11 @@ export declare namespace Ehr {
|
|
|
45
45
|
interface ListQuery extends Pagination {
|
|
46
46
|
/** 返回数据类型 */
|
|
47
47
|
view?: 'basic' | 'full';
|
|
48
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* 员工状态,不传代表查询所有员工状态
|
|
50
|
+
* 实际在职 = 2&4
|
|
51
|
+
* 可同时查询多个状态的记录,如 status=2&status=4
|
|
52
|
+
*/
|
|
49
53
|
status?: ListQueryStatus[];
|
|
50
54
|
/** 雇员类型,不传代表查询所有雇员类型 */
|
|
51
55
|
type?: ListQueryType[];
|
|
@@ -55,7 +59,12 @@ export declare namespace Ehr {
|
|
|
55
59
|
end_time?: string;
|
|
56
60
|
/** 此次调用中使用的用户ID的类型 */
|
|
57
61
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
58
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* user_id、open_id 或 union_id,默认为 open_id。
|
|
64
|
+
* 如果传入的值不是 open_id,需要一并传入 user_id_type 参数。
|
|
65
|
+
* 可一次查询多个 id 的用户,例如:user_ids=ou_8ebd4f35d7101ffdeb4771d7c8ec517e&user_ids=ou_7abc4f35d7101ffdeb4771dabcde
|
|
66
|
+
* [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
|
|
67
|
+
*/
|
|
59
68
|
user_ids?: string[];
|
|
60
69
|
}
|
|
61
70
|
}
|
package/lib/types/helpdesk.d.ts
CHANGED
|
@@ -202,11 +202,11 @@ export declare namespace Helpdesk {
|
|
|
202
202
|
interface StartServiceRequest {
|
|
203
203
|
/** 是否直接进入人工(若appointed_agents填写了,该值为必填) */
|
|
204
204
|
human_service?: boolean;
|
|
205
|
-
/** 客服 open ids (获取方式参考[获取单个用户信息](/
|
|
205
|
+
/** 客服 open ids (获取方式参考[获取单个用户信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get)),human_service需要为true */
|
|
206
206
|
appointed_agents?: string[];
|
|
207
|
-
/** 用户 open id,(获取方式参考[获取单个用户信息](/
|
|
207
|
+
/** 用户 open id,(获取方式参考[获取单个用户信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get)) */
|
|
208
208
|
open_id: string;
|
|
209
|
-
/** 工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](/
|
|
209
|
+
/** 工单来源自定义信息,长度限制1024字符,如设置,[获取工单详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket/get)会返回此信息 */
|
|
210
210
|
customized_info?: string;
|
|
211
211
|
}
|
|
212
212
|
interface StartServiceResponse {
|
|
@@ -277,7 +277,10 @@ export declare namespace Helpdesk {
|
|
|
277
277
|
interface TicketImageQuery {
|
|
278
278
|
/** 工单ID */
|
|
279
279
|
ticket_id: string;
|
|
280
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* 消息ID
|
|
282
|
+
* [查询消息ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/helpdesk-v1/ticket-message/list)
|
|
283
|
+
*/
|
|
281
284
|
msg_id: string;
|
|
282
285
|
/** index,当消息类型为post时,需指定图片index,index从0开始。当消息类型为img时,无需index */
|
|
283
286
|
index?: number;
|
|
@@ -314,7 +317,10 @@ export declare namespace Helpdesk {
|
|
|
314
317
|
interface CreateRequest {
|
|
315
318
|
/** 消息类型;text:纯文本;post:富文本 */
|
|
316
319
|
msg_type: string;
|
|
317
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* - 纯文本,参考[发送文本消息](https://open.feishu.cn/document/ukTMukTMukTM/uUjNz4SN2MjL1YzM)中的content;
|
|
322
|
+
* - 富文本,参考[发送富文本消息](https://open.feishu.cn/document/ukTMukTMukTM/uMDMxEjLzATMx4yMwETM)中的content
|
|
323
|
+
*/
|
|
318
324
|
content: string;
|
|
319
325
|
}
|
|
320
326
|
interface CreateResponse {
|
|
@@ -551,7 +557,10 @@ export declare namespace Helpdesk {
|
|
|
551
557
|
items?: Lark.Faq[];
|
|
552
558
|
}
|
|
553
559
|
interface SearchQuery extends Pagination {
|
|
554
|
-
/**
|
|
560
|
+
/**
|
|
561
|
+
* 搜索query
|
|
562
|
+
* ,query内容如果不是英文,包含中文空格等有两种编码策略:1. url编码 2. base64编码,同时加上base64=true参数
|
|
563
|
+
*/
|
|
555
564
|
query: string;
|
|
556
565
|
/** 是否转换为base64,输入true表示是,不填写表示否,中文需要转换为base64 */
|
|
557
566
|
base64?: string;
|
package/lib/types/hire.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ declare module '../internal' {
|
|
|
7
7
|
}
|
|
8
8
|
export declare namespace Hire {
|
|
9
9
|
interface Methods {
|
|
10
|
-
portalApplySchema: PortalApplySchema.Methods;
|
|
11
10
|
location: Location.Methods;
|
|
12
11
|
role: Role.Methods;
|
|
13
12
|
userRole: UserRole.Methods;
|
|
@@ -32,6 +31,7 @@ export declare namespace Hire {
|
|
|
32
31
|
offerApplicationForm: OfferApplicationForm.Methods;
|
|
33
32
|
referral: Referral.Methods;
|
|
34
33
|
referralWebsite: ReferralWebsite.Methods;
|
|
34
|
+
portalApplySchema: PortalApplySchema.Methods;
|
|
35
35
|
website: Website.Methods;
|
|
36
36
|
agency: Agency.Methods;
|
|
37
37
|
talent: Talent.Methods;
|
|
@@ -77,15 +77,6 @@ export declare namespace Hire {
|
|
|
77
77
|
talentOperationLog: TalentOperationLog.Methods;
|
|
78
78
|
offerSchema: OfferSchema.Methods;
|
|
79
79
|
}
|
|
80
|
-
namespace PortalApplySchema {
|
|
81
|
-
interface Methods {
|
|
82
|
-
/**
|
|
83
|
-
* 获取申请表模板列表
|
|
84
|
-
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/portal_apply_schema/list
|
|
85
|
-
*/
|
|
86
|
-
list(query?: Pagination): Paginated<Lark.RegistrationSchema>;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
80
|
namespace Location {
|
|
90
81
|
interface Methods {
|
|
91
82
|
/**
|
|
@@ -1287,6 +1278,15 @@ export declare namespace Hire {
|
|
|
1287
1278
|
}
|
|
1288
1279
|
}
|
|
1289
1280
|
}
|
|
1281
|
+
namespace PortalApplySchema {
|
|
1282
|
+
interface Methods {
|
|
1283
|
+
/**
|
|
1284
|
+
* 获取申请表模板列表
|
|
1285
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/portal_apply_schema/list
|
|
1286
|
+
*/
|
|
1287
|
+
list(query?: Pagination): Paginated<Lark.RegistrationSchema>;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
1290
|
namespace Website {
|
|
1291
1291
|
interface Methods {
|
|
1292
1292
|
channel: Channel.Methods;
|
|
@@ -1727,7 +1727,7 @@ export declare namespace Hire {
|
|
|
1727
1727
|
tag_id_list: string[];
|
|
1728
1728
|
}
|
|
1729
1729
|
interface CombinedCreateRequest {
|
|
1730
|
-
/** 简历来源 ID,可通过[获取简历来源列表](/
|
|
1730
|
+
/** 简历来源 ID,可通过[获取简历来源列表](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query)接口查询 */
|
|
1731
1731
|
init_source_id?: string;
|
|
1732
1732
|
/** 简历来源 ID */
|
|
1733
1733
|
resume_source_id?: string;
|
|
@@ -1777,7 +1777,7 @@ export declare namespace Hire {
|
|
|
1777
1777
|
interface CombinedUpdateRequest {
|
|
1778
1778
|
/** 人才 ID */
|
|
1779
1779
|
talent_id: string;
|
|
1780
|
-
/** 简历来源 ID,可通过[获取简历来源列表](/
|
|
1780
|
+
/** 简历来源 ID,可通过[获取简历来源列表](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query)接口查询 */
|
|
1781
1781
|
init_source_id?: string;
|
|
1782
1782
|
/** 文件夹 ID 列表 */
|
|
1783
1783
|
folder_id_list?: string[];
|
|
@@ -2816,7 +2816,7 @@ export declare namespace Hire {
|
|
|
2816
2816
|
exam_resource_name: string;
|
|
2817
2817
|
/** 笔试分数 */
|
|
2818
2818
|
score: number;
|
|
2819
|
-
/** 报告附件,使用[创建附件](/
|
|
2819
|
+
/** 报告附件,使用[创建附件](https://open.feishu.cn/document/ukTMukTMukTM/uIDN1YjLyQTN24iM0UjN/create_attachment)上传,获取附件ID,支持的文件格式:JPG、JPEG、PNG、PDF,不超过 100MB。 */
|
|
2820
2820
|
uuid?: string;
|
|
2821
2821
|
/** 添加人 ID */
|
|
2822
2822
|
operator_id: string;
|
|
@@ -24,7 +24,7 @@ export declare namespace HumanAuthentication {
|
|
|
24
24
|
mobile?: string;
|
|
25
25
|
}
|
|
26
26
|
interface CreateQuery {
|
|
27
|
-
/** 用户的唯一标识(使用的ID类型见下一参数描述,不同ID类型的区别和获取,参考文档:[如何获得 User ID、Open ID 和 Union ID?](/
|
|
27
|
+
/** 用户的唯一标识(使用的ID类型见下一参数描述,不同ID类型的区别和获取,参考文档:[如何获得 User ID、Open ID 和 Union ID?](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)) */
|
|
28
28
|
user_id: string;
|
|
29
29
|
/** 用户ID类型 open_id/user_id/union_id */
|
|
30
30
|
user_id_type?: 'open_id' | 'user_id' | 'union_id';
|
package/lib/types/im.d.ts
CHANGED
|
@@ -99,9 +99,14 @@ export declare namespace Im {
|
|
|
99
99
|
interface CreateRequest {
|
|
100
100
|
/** 依据receive_id_type的值,填写对应的消息接收者id */
|
|
101
101
|
receive_id: string;
|
|
102
|
-
/** 消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user等,类型定义请参考[发送消息content说明](/
|
|
102
|
+
/** 消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user等,类型定义请参考[发送消息content说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) */
|
|
103
103
|
msg_type: string;
|
|
104
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* 消息内容,json结构序列化后的字符串。不同msg_type对应不同内容。消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user等,具体格式说明参考:[发送消息content说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)
|
|
106
|
+
* <b>请求体大小限制</b>:
|
|
107
|
+
* - 文本消息请求体最大不能超过150KB
|
|
108
|
+
* - 卡片及富文本消息请求体最大不能超过30KB
|
|
109
|
+
*/
|
|
105
110
|
content: string;
|
|
106
111
|
/** 由开发者生成的唯一字符串序列,用于发送消息请求去重;持有相同uuid的请求1小时内至多成功执行一次 */
|
|
107
112
|
uuid?: string;
|
|
@@ -141,7 +146,7 @@ export declare namespace Im {
|
|
|
141
146
|
upper_message_id?: string;
|
|
142
147
|
}
|
|
143
148
|
interface ReplyRequest {
|
|
144
|
-
/** 消息内容 json 格式,格式说明参考: [发送消息content说明](/
|
|
149
|
+
/** 消息内容 json 格式,格式说明参考: [发送消息content说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) */
|
|
145
150
|
content: string;
|
|
146
151
|
/** 消息类型,包括:text、post、image、file、audio、media、sticker、interactive、share_card、share_user */
|
|
147
152
|
msg_type: string;
|
|
@@ -285,7 +290,7 @@ export declare namespace Im {
|
|
|
285
290
|
interface ListQuery extends Pagination {
|
|
286
291
|
/** 容器类型 ,目前可选值仅有"chat",包含单聊(p2p)和群聊(group) */
|
|
287
292
|
container_id_type: string;
|
|
288
|
-
/** 容器的id,即chat的id,详情参见[群ID 说明](/
|
|
293
|
+
/** 容器的id,即chat的id,详情参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description) */
|
|
289
294
|
container_id: string;
|
|
290
295
|
/** 历史信息的起始时间(秒级时间戳) */
|
|
291
296
|
start_time?: string;
|
|
@@ -339,7 +344,7 @@ export declare namespace Im {
|
|
|
339
344
|
invalid_user_id_list: string[];
|
|
340
345
|
}
|
|
341
346
|
interface PatchRequest {
|
|
342
|
-
/** 消息内容 json 格式,[发送消息 content 说明](/
|
|
347
|
+
/** 消息内容 json 格式,[发送消息 content 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json),参考文档中的卡片格式 */
|
|
343
348
|
content: string;
|
|
344
349
|
}
|
|
345
350
|
namespace Resource {
|
|
@@ -388,7 +393,10 @@ export declare namespace Im {
|
|
|
388
393
|
reaction_type?: Lark.Emoji;
|
|
389
394
|
}
|
|
390
395
|
interface ListQuery extends Pagination {
|
|
391
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* 待查询消息reaction的类型[emoji类型列举](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/emojis-introduce)。
|
|
398
|
+
* - 不传入该参数,表示拉取所有类型reaction
|
|
399
|
+
*/
|
|
392
400
|
reaction_type?: string;
|
|
393
401
|
/** 当操作人为用户时返回用户ID的类型 */
|
|
394
402
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
@@ -498,7 +506,10 @@ export declare namespace Im {
|
|
|
498
506
|
interface CreateForm {
|
|
499
507
|
/** 图片类型 */
|
|
500
508
|
image_type: 'message' | 'avatar';
|
|
501
|
-
/**
|
|
509
|
+
/**
|
|
510
|
+
* 图片内容
|
|
511
|
+
* **注意:** 上传的图片大小不能超过10MB
|
|
512
|
+
*/
|
|
502
513
|
image: Blob;
|
|
503
514
|
}
|
|
504
515
|
interface CreateResponse {
|
|
@@ -630,31 +641,67 @@ export declare namespace Im {
|
|
|
630
641
|
link(chat_id: string, body: LinkRequest): Promise<LinkResponse>;
|
|
631
642
|
}
|
|
632
643
|
interface CreateRequest {
|
|
633
|
-
/** 群头像对应的 Image Key,可通过[上传图片](/
|
|
644
|
+
/** 群头像对应的 Image Key,可通过[上传图片](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create)获取(注意:上传图片的 ==image_type== 需要指定为 ==avatar==) */
|
|
634
645
|
avatar?: string;
|
|
635
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* 群名称
|
|
648
|
+
* **注意:** 公开群名称的长度不得少于2个字符
|
|
649
|
+
*/
|
|
636
650
|
name?: string;
|
|
637
651
|
/** 群描述 */
|
|
638
652
|
description?: string;
|
|
639
653
|
/** 群国际化名称 */
|
|
640
654
|
i18n_names?: Lark.I18nNames;
|
|
641
|
-
/**
|
|
655
|
+
/**
|
|
656
|
+
* 创建群时指定的群主,不填时指定建群的机器人为群主。
|
|
657
|
+
* 群主 ID,ID值与查询参数中的 user_id_type 对应。
|
|
658
|
+
* 不同 ID 的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
|
|
659
|
+
*/
|
|
642
660
|
owner_id?: string;
|
|
643
661
|
/** 创建群时邀请的群成员,id 类型为 user_id_type */
|
|
644
662
|
user_id_list?: string[];
|
|
645
|
-
/**
|
|
663
|
+
/**
|
|
664
|
+
* 创建群时邀请的群机器人
|
|
665
|
+
* **注意:** 拉机器人入群请使用 ==app_id==
|
|
666
|
+
*/
|
|
646
667
|
bot_id_list?: string[];
|
|
647
668
|
/** 群消息模式 */
|
|
648
669
|
group_message_type?: 'chat' | 'thread';
|
|
649
|
-
/**
|
|
670
|
+
/**
|
|
671
|
+
* 群模式
|
|
672
|
+
* **可选值有**:
|
|
673
|
+
* - `group`:群组
|
|
674
|
+
*/
|
|
650
675
|
chat_mode?: string;
|
|
651
|
-
/**
|
|
676
|
+
/**
|
|
677
|
+
* 群类型
|
|
678
|
+
* **可选值有**:
|
|
679
|
+
* - `private`:私有群
|
|
680
|
+
* - `public`:公开群
|
|
681
|
+
*/
|
|
652
682
|
chat_type?: string;
|
|
653
|
-
/**
|
|
683
|
+
/**
|
|
684
|
+
* 入群消息可见性
|
|
685
|
+
* **可选值有**:
|
|
686
|
+
* - `only_owner`:仅群主和管理员可见
|
|
687
|
+
* - `all_members`:所有成员可见
|
|
688
|
+
* - `not_anyone`:任何人均不可见
|
|
689
|
+
*/
|
|
654
690
|
join_message_visibility?: string;
|
|
655
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* 退群消息可见性
|
|
693
|
+
* **可选值有**:
|
|
694
|
+
* - `only_owner`:仅群主和管理员可见
|
|
695
|
+
* - `all_members`:所有成员可见
|
|
696
|
+
* - `not_anyone`:任何人均不可见
|
|
697
|
+
*/
|
|
656
698
|
leave_message_visibility?: string;
|
|
657
|
-
/**
|
|
699
|
+
/**
|
|
700
|
+
* 加群审批
|
|
701
|
+
* **可选值有**:
|
|
702
|
+
* - `no_approval_required`:无需审批
|
|
703
|
+
* - `approval_required`:需要审批
|
|
704
|
+
*/
|
|
658
705
|
membership_approval?: string;
|
|
659
706
|
/** 防泄密模式设置 */
|
|
660
707
|
restricted_mode_setting?: Lark.RestrictedModeSetting;
|
|
@@ -986,11 +1033,17 @@ export declare namespace Im {
|
|
|
986
1033
|
isInChat(chat_id: string): Promise<IsInChatResponse>;
|
|
987
1034
|
}
|
|
988
1035
|
interface CreateRequest {
|
|
989
|
-
/**
|
|
1036
|
+
/**
|
|
1037
|
+
* 成员列表
|
|
1038
|
+
* <b>注意:</b>每次请求,最多拉50个用户或者5个机器人,并且群组最多容纳15个机器人
|
|
1039
|
+
*/
|
|
990
1040
|
id_list?: string[];
|
|
991
1041
|
}
|
|
992
1042
|
interface CreateQuery {
|
|
993
|
-
/**
|
|
1043
|
+
/**
|
|
1044
|
+
* 进群成员 id 类型 open_id/user_id/union_id/app_id
|
|
1045
|
+
* <b>注意:</b>拉机器人入群请使用 ==app_id==
|
|
1046
|
+
*/
|
|
994
1047
|
member_id_type?: 'user_id' | 'union_id' | 'open_id' | 'app_id';
|
|
995
1048
|
/** 出现不可用ID后的处理方式 0/1/2 */
|
|
996
1049
|
succeed_type?: 0 | 1 | 2;
|
|
@@ -1016,7 +1069,7 @@ export declare namespace Im {
|
|
|
1016
1069
|
invalid_id_list?: string[];
|
|
1017
1070
|
}
|
|
1018
1071
|
interface GetQuery extends Pagination {
|
|
1019
|
-
/** 群成员 用户 ID 类型,详情参见 [用户相关的 ID 概念](/
|
|
1072
|
+
/** 群成员 用户 ID 类型,详情参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction) */
|
|
1020
1073
|
member_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
1021
1074
|
}
|
|
1022
1075
|
interface GetResponse {
|
|
@@ -1050,7 +1103,10 @@ export declare namespace Im {
|
|
|
1050
1103
|
interface PatchRequest {
|
|
1051
1104
|
/** 文档当前版本号 int64 类型,get 接口会返回 */
|
|
1052
1105
|
revision: string;
|
|
1053
|
-
/**
|
|
1106
|
+
/**
|
|
1107
|
+
* 修改文档请求的序列化字段
|
|
1108
|
+
* 更新公告信息的格式和更新[云文档](https://open.feishu.cn/document/ukTMukTMukTM/uYDM2YjL2AjN24iNwYjN)格式相同
|
|
1109
|
+
*/
|
|
1054
1110
|
requests?: string[];
|
|
1055
1111
|
}
|
|
1056
1112
|
interface GetQuery {
|