@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.
Files changed (68) hide show
  1. package/lib/bot.d.ts +5 -5
  2. package/lib/http.d.ts +6 -3
  3. package/lib/index.cjs +634 -261
  4. package/lib/types/acs.d.ts +4 -1
  5. package/lib/types/aily.d.ts +3 -3
  6. package/lib/types/apaas.d.ts +190 -28
  7. package/lib/types/application.d.ts +20 -4
  8. package/lib/types/approval.d.ts +0 -13
  9. package/lib/types/attendance.d.ts +11 -5
  10. package/lib/types/authen.d.ts +8 -2
  11. package/lib/types/bitable.d.ts +25 -4
  12. package/lib/types/board.d.ts +56 -0
  13. package/lib/types/calendar.d.ts +71 -5
  14. package/lib/types/cardkit.d.ts +2 -2
  15. package/lib/types/compensation.d.ts +400 -0
  16. package/lib/types/contact.d.ts +55 -12
  17. package/lib/types/corehr.d.ts +1287 -79
  18. package/lib/types/directory.d.ts +3 -41
  19. package/lib/types/docx.d.ts +23 -0
  20. package/lib/types/drive.d.ts +107 -90
  21. package/lib/types/ehr.d.ts +11 -2
  22. package/lib/types/helpdesk.d.ts +15 -6
  23. package/lib/types/hire.d.ts +52 -3
  24. package/lib/types/human_authentication.d.ts +1 -1
  25. package/lib/types/im.d.ts +77 -21
  26. package/lib/types/index.d.ts +1670 -105
  27. package/lib/types/mail.d.ts +106 -16
  28. package/lib/types/payroll.d.ts +117 -81
  29. package/lib/types/performance.d.ts +1 -1
  30. package/lib/types/search.d.ts +4 -1
  31. package/lib/types/security_and_compliance.d.ts +254 -1
  32. package/lib/ws.d.ts +30 -0
  33. package/package.json +6 -3
  34. package/src/bot.ts +28 -15
  35. package/src/http.ts +10 -4
  36. package/src/types/acs.ts +4 -1
  37. package/src/types/aily.ts +3 -3
  38. package/src/types/apaas.ts +237 -38
  39. package/src/types/application.ts +20 -4
  40. package/src/types/approval.ts +0 -15
  41. package/src/types/attendance.ts +11 -5
  42. package/src/types/authen.ts +8 -2
  43. package/src/types/bitable.ts +25 -4
  44. package/src/types/board.ts +75 -2
  45. package/src/types/calendar.ts +88 -5
  46. package/src/types/cardkit.ts +2 -2
  47. package/src/types/compensation.ts +485 -0
  48. package/src/types/contact.ts +55 -12
  49. package/src/types/corehr.ts +1480 -123
  50. package/src/types/directory.ts +3 -53
  51. package/src/types/docx.ts +29 -0
  52. package/src/types/drive.ts +129 -112
  53. package/src/types/ehr.ts +11 -2
  54. package/src/types/helpdesk.ts +15 -6
  55. package/src/types/hire.ts +66 -3
  56. package/src/types/human_authentication.ts +1 -1
  57. package/src/types/im.ts +77 -21
  58. package/src/types/index.ts +1751 -107
  59. package/src/types/mail.ts +106 -16
  60. package/src/types/payroll.ts +146 -103
  61. package/src/types/performance.ts +1 -1
  62. package/src/types/search.ts +4 -1
  63. package/src/types/security_and_compliance.ts +292 -1
  64. package/src/ws.ts +183 -0
  65. package/lib/types/api.d.ts +0 -28510
  66. package/lib/types/internal.d.ts +0 -21
  67. package/lib/types/message/content.d.ts +0 -433
  68. 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说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) */
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
- /** 消息内容,json结构序列化后的字符串。不同msg_type对应不同内容。消息类型 包括:text、post、image、file、audio、media、sticker、interactive、share_chat、share_user等,具体格式说明参考:[发送消息content说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)<b>请求体大小限制</b>:- 文本消息请求体最大不能超过150KB- 卡片及富文本消息请求体最大不能超过30KB */
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说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json) */
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 说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description) */
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 说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json),参考文档中的卡片格式 */
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
- /** 待查询消息reaction的类型[emoji类型列举](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/emojis-introduce)。- 不传入该参数,表示拉取所有类型reaction */
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
- /** 图片内容 **注意:** 上传的图片大小不能超过10MB */
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,可通过[上传图片](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create)获取(注意:上传图片的 ==image_type== 需要指定为 ==avatar==) */
644
+ /** 群头像对应的 Image Key,可通过[上传图片](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create)获取(注意:上传图片的 ==image_type== 需要指定为 ==avatar==) */
634
645
  avatar?: string;
635
- /** 群名称 **注意:** 公开群名称的长度不得少于2个字符 */
646
+ /**
647
+ * 群名称
648
+ * **注意:** 公开群名称的长度不得少于2个字符
649
+ */
636
650
  name?: string;
637
651
  /** 群描述 */
638
652
  description?: string;
639
653
  /** 群国际化名称 */
640
654
  i18n_names?: Lark.I18nNames;
641
- /** 创建群时指定的群主,不填时指定建群的机器人为群主。群主 ID,ID值与查询参数中的 user_id_type 对应。不同 ID 的说明参见 [用户相关的 ID 概念](/ssl:ttdoc/home/user-identity-introduction/introduction) */
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
- /** 创建群时邀请的群机器人 **注意:** 拉机器人入群请使用 ==app_id== */
663
+ /**
664
+ * 创建群时邀请的群机器人
665
+ * **注意:** 拉机器人入群请使用 ==app_id==
666
+ */
646
667
  bot_id_list?: string[];
647
668
  /** 群消息模式 */
648
669
  group_message_type?: 'chat' | 'thread';
649
- /** 群模式**可选值有**:- `group`:群组 */
670
+ /**
671
+ * 群模式
672
+ * **可选值有**:
673
+ * - `group`:群组
674
+ */
650
675
  chat_mode?: string;
651
- /** 群类型**可选值有**:- `private`:私有群- `public`:公开群 */
676
+ /**
677
+ * 群类型
678
+ * **可选值有**:
679
+ * - `private`:私有群
680
+ * - `public`:公开群
681
+ */
652
682
  chat_type?: string;
653
- /** 入群消息可见性**可选值有**:- `only_owner`:仅群主和管理员可见- `all_members`:所有成员可见- `not_anyone`:任何人均不可见 */
683
+ /**
684
+ * 入群消息可见性
685
+ * **可选值有**:
686
+ * - `only_owner`:仅群主和管理员可见
687
+ * - `all_members`:所有成员可见
688
+ * - `not_anyone`:任何人均不可见
689
+ */
654
690
  join_message_visibility?: string;
655
- /** 退群消息可见性**可选值有**:- `only_owner`:仅群主和管理员可见- `all_members`:所有成员可见- `not_anyone`:任何人均不可见 */
691
+ /**
692
+ * 退群消息可见性
693
+ * **可选值有**:
694
+ * - `only_owner`:仅群主和管理员可见
695
+ * - `all_members`:所有成员可见
696
+ * - `not_anyone`:任何人均不可见
697
+ */
656
698
  leave_message_visibility?: string;
657
- /** 加群审批**可选值有**:- `no_approval_required`:无需审批- `approval_required`:需要审批 */
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
- /** 成员列表<b>注意:</b>每次请求,最多拉50个用户或者5个机器人,并且群组最多容纳15个机器人 */
1036
+ /**
1037
+ * 成员列表
1038
+ * <b>注意:</b>每次请求,最多拉50个用户或者5个机器人,并且群组最多容纳15个机器人
1039
+ */
990
1040
  id_list?: string[];
991
1041
  }
992
1042
  interface CreateQuery {
993
- /** 进群成员 id 类型 open_id/user_id/union_id/app_id<b>注意:</b>拉机器人入群请使用 ==app_id== */
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 概念](/ssl:ttdoc/home/user-identity-introduction/introduction) */
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
- /** 修改文档请求的序列化字段更新公告信息的格式和更新[云文档](/ssl:ttdoc/ukTMukTMukTM/uYDM2YjL2AjN24iNwYjN)格式相同 */
1106
+ /**
1107
+ * 修改文档请求的序列化字段
1108
+ * 更新公告信息的格式和更新[云文档](https://open.feishu.cn/document/ukTMukTMukTM/uYDM2YjL2AjN24iNwYjN)格式相同
1109
+ */
1054
1110
  requests?: string[];
1055
1111
  }
1056
1112
  interface GetQuery {