@satorijs/adapter-lark 3.11.8 → 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 +634 -261
- package/lib/types/acs.d.ts +4 -1
- package/lib/types/aily.d.ts +3 -3
- package/lib/types/apaas.d.ts +190 -28
- 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 +56 -0
- package/lib/types/calendar.d.ts +71 -5
- package/lib/types/cardkit.d.ts +2 -2
- package/lib/types/compensation.d.ts +400 -0
- package/lib/types/contact.d.ts +55 -12
- package/lib/types/corehr.d.ts +1287 -79
- package/lib/types/directory.d.ts +3 -41
- package/lib/types/docx.d.ts +23 -0
- package/lib/types/drive.d.ts +107 -90
- package/lib/types/ehr.d.ts +11 -2
- package/lib/types/helpdesk.d.ts +15 -6
- package/lib/types/hire.d.ts +52 -3
- package/lib/types/human_authentication.d.ts +1 -1
- package/lib/types/im.d.ts +77 -21
- package/lib/types/index.d.ts +1670 -105
- package/lib/types/mail.d.ts +106 -16
- package/lib/types/payroll.d.ts +117 -81
- package/lib/types/performance.d.ts +1 -1
- package/lib/types/search.d.ts +4 -1
- package/lib/types/security_and_compliance.d.ts +254 -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/aily.ts +3 -3
- package/src/types/apaas.ts +237 -38
- 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 +75 -2
- package/src/types/calendar.ts +88 -5
- package/src/types/cardkit.ts +2 -2
- package/src/types/compensation.ts +485 -0
- package/src/types/contact.ts +55 -12
- package/src/types/corehr.ts +1480 -123
- package/src/types/directory.ts +3 -53
- package/src/types/docx.ts +29 -0
- package/src/types/drive.ts +129 -112
- package/src/types/ehr.ts +11 -2
- package/src/types/helpdesk.ts +15 -6
- package/src/types/hire.ts +66 -3
- package/src/types/human_authentication.ts +1 -1
- package/src/types/im.ts +77 -21
- package/src/types/index.ts +1751 -107
- package/src/types/mail.ts +106 -16
- package/src/types/payroll.ts +146 -103
- package/src/types/performance.ts +1 -1
- package/src/types/search.ts +4 -1
- package/src/types/security_and_compliance.ts +292 -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/im.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare namespace Im {
|
|
|
91
91
|
*/
|
|
92
92
|
urgentPhone(message_id: string, body: UrgentPhoneRequest, query?: UrgentPhoneQuery): Promise<UrgentPhoneResponse>;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* 更新已发送的消息卡片
|
|
95
95
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/patch
|
|
96
96
|
*/
|
|
97
97
|
patch(message_id: string, body: PatchRequest): Promise<void>;
|
|
@@ -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 {
|