@larksuiteoapi/node-sdk 1.5.0 → 1.6.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/es/index.js +589 -98
- package/lib/index.js +589 -98
- package/package.json +1 -1
- package/types/index.d.ts +1095 -140
package/lib/index.js
CHANGED
|
@@ -576,7 +576,7 @@ class Client$1 {
|
|
|
576
576
|
},
|
|
577
577
|
};
|
|
578
578
|
/**
|
|
579
|
-
*
|
|
579
|
+
* 管理后台-数据报表
|
|
580
580
|
*/
|
|
581
581
|
this.admin = {
|
|
582
582
|
/**
|
|
@@ -1444,7 +1444,7 @@ class Client$1 {
|
|
|
1444
1444
|
*/
|
|
1445
1445
|
this.approval = {
|
|
1446
1446
|
/**
|
|
1447
|
-
*
|
|
1447
|
+
* 原生审批定义
|
|
1448
1448
|
*/
|
|
1449
1449
|
approval: {
|
|
1450
1450
|
/**
|
|
@@ -2928,7 +2928,7 @@ class Client$1 {
|
|
|
2928
2928
|
*
|
|
2929
2929
|
* 由于部分企业使用的是自己的审批系统,而不是飞书审批系统,因此员工的请假、加班等数据无法流入到飞书考勤系统中,导致员工在请假时间段内依然收到打卡提醒,并且被记为缺卡。;;对于这些只使用飞书考勤系统,而未使用飞书审批系统的企业,可以通过考勤开放接口的形式,将三方审批结果数据回写到飞书考勤系统中。
|
|
2930
2930
|
*
|
|
2931
|
-
* 目前支持写入加班、请假、出差和外出这四种审批结果,写入只会追加(insert),不会覆盖(update)
|
|
2931
|
+
* 目前支持写入加班、请假、出差和外出这四种审批结果,写入只会追加(insert),不会覆盖(update)(开放接口导入的加班假期记录,在管理后台的假期加班里查不到,只能通过[获取审批通过数据](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query)来查询)
|
|
2932
2932
|
*/
|
|
2933
2933
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2934
2934
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -3549,6 +3549,30 @@ class Client$1 {
|
|
|
3549
3549
|
throw e;
|
|
3550
3550
|
});
|
|
3551
3551
|
}),
|
|
3552
|
+
/**
|
|
3553
|
+
* {@link https://open.feishu.cn/api-explorer?project=baike&resource=entity&apiName=extract&version=v1 click to debug }
|
|
3554
|
+
*
|
|
3555
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/extract document }
|
|
3556
|
+
*
|
|
3557
|
+
* 提取潜在的百科词条
|
|
3558
|
+
*
|
|
3559
|
+
* 提取文本中可能成为百科词条的词语,且不会过滤已经成为百科词条的词语。同时,会返回推荐的别名。
|
|
3560
|
+
*/
|
|
3561
|
+
extract: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3562
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3563
|
+
return httpInstance
|
|
3564
|
+
.request({
|
|
3565
|
+
url: fillApiPath(`${this.domain}/open-apis/baike/v1/entities/extract`, path),
|
|
3566
|
+
method: "POST",
|
|
3567
|
+
data,
|
|
3568
|
+
params,
|
|
3569
|
+
headers,
|
|
3570
|
+
})
|
|
3571
|
+
.catch((e) => {
|
|
3572
|
+
this.logger.error(formatErrors(e));
|
|
3573
|
+
throw e;
|
|
3574
|
+
});
|
|
3575
|
+
}),
|
|
3552
3576
|
/**
|
|
3553
3577
|
* {@link https://open.feishu.cn/api-explorer?project=baike&resource=entity&apiName=get&version=v1 click to debug }
|
|
3554
3578
|
*
|
|
@@ -3863,7 +3887,7 @@ class Client$1 {
|
|
|
3863
3887
|
},
|
|
3864
3888
|
};
|
|
3865
3889
|
/**
|
|
3866
|
-
*
|
|
3890
|
+
* 云文档-多维表格
|
|
3867
3891
|
*/
|
|
3868
3892
|
this.bitable = {
|
|
3869
3893
|
/**
|
|
@@ -6786,13 +6810,7 @@ class Client$1 {
|
|
|
6786
6810
|
/**
|
|
6787
6811
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=list&version=v3 click to debug }
|
|
6788
6812
|
*
|
|
6789
|
-
* {@link https://open.feishu.cn/
|
|
6790
|
-
*
|
|
6791
|
-
* 获取部门信息列表
|
|
6792
|
-
*
|
|
6793
|
-
* 该接口用于获取当前部门子部门列表。[常见问题答疑](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN)。
|
|
6794
|
-
*
|
|
6795
|
-
* - 使用 user_access_token 时,返回该用户组织架构可见性范围([登陆企业管理后台进行权限配置](https://www.feishu.cn/admin/security/permission/visibility))内的所有可见部门。当进行递归查询时,只筛查最多1000个部门的可见性。;;- 使用 ; tenant_access_token 则基于应用的通讯录权限范围进行权限校验与过滤。由于 ; parent_department_id 是非必填参数,填与不填存在<b>两种数据权限校验与返回</b>情况:;<br> <br>1、请求设置了 ; parent_department_id 为A(根部门0),会检验A是否在通讯录权限内,若在( parent_department_id=0 时会校验是否为全员权限),则返回部门下子部门列表(根据fetch_child决定是否递归),否则返回无部门通讯录权限错误码。;<br> <br>2、请求未带 ; parent_department_id 参数,如通讯录范围为全员权限,只返回根部门ID(部门ID为0),否则返回根据通讯录范围配置的部门ID及子部门(根据 ; fetch_child 决定是否递归)。
|
|
6813
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=department&version=v3 document }
|
|
6796
6814
|
*/
|
|
6797
6815
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
6798
6816
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8014,13 +8032,7 @@ class Client$1 {
|
|
|
8014
8032
|
/**
|
|
8015
8033
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=list&version=v3 click to debug }
|
|
8016
8034
|
*
|
|
8017
|
-
* {@link https://open.feishu.cn/
|
|
8018
|
-
*
|
|
8019
|
-
* 获取用户列表
|
|
8020
|
-
*
|
|
8021
|
-
* 基于部门ID获取部门下直属用户列表。;[常见问题答疑](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN)。
|
|
8022
|
-
*
|
|
8023
|
-
* - 使用 user_access_token 情况下根据个人组织架构的通讯录可见范围进行权限过滤,返回个人组织架构通讯录范围([登陆企业管理后台进行权限配置](https://www.feishu.cn/admin/security/permission/visibility))内可见的用户数据。;- tenant_access_token 基于应用通讯录范围进行权限鉴定。由于 department_id 是非必填参数,填与不填存在<b>两种数据权限校验与返回</b>情况:<br>1、请求设置了 department_id ;(根部门为0),会检验所带部门ID是否具有通讯录权限(如果带上 ; department_id=0 会校验是否有全员权限),有则返回部门下直属的成员列表, 否则提示无部门权限的错误码返回。<br>2、请求未带 ; department_id 参数,则会返回权限范围内的独立用户(权限范围直接包含了某用户,则该用户视为权限范围内的独立用户)。
|
|
8035
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=user&version=v3 document }
|
|
8024
8036
|
*/
|
|
8025
8037
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8026
8038
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8516,7 +8528,7 @@ class Client$1 {
|
|
|
8516
8528
|
*
|
|
8517
8529
|
* 创建导出任务
|
|
8518
8530
|
*
|
|
8519
|
-
*
|
|
8531
|
+
* 创建导出任务,将云文件导出为指定格式的本地文件。该接口为异步接口,需要通过轮询 [查询导出任务结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/get) 接口获取任务结果。
|
|
8520
8532
|
*/
|
|
8521
8533
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8522
8534
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8579,7 +8591,7 @@ class Client$1 {
|
|
|
8579
8591
|
*
|
|
8580
8592
|
* 查询导出任务结果
|
|
8581
8593
|
*
|
|
8582
|
-
*
|
|
8594
|
+
* 根据[创建导出任务](/ssl::ttdoc//uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/create)的ticket查询导出任务的结果,前提条件需要先调用创建导出任务接口。;;通过该接口获取到下载文件的 token 后调用[下载导出文件接口](/ssl::ttdoc//uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/download)将文件进行下载
|
|
8583
8595
|
*/
|
|
8584
8596
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8585
8597
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8800,7 +8812,7 @@ class Client$1 {
|
|
|
8800
8812
|
}),
|
|
8801
8813
|
},
|
|
8802
8814
|
/**
|
|
8803
|
-
*
|
|
8815
|
+
* 下载
|
|
8804
8816
|
*/
|
|
8805
8817
|
file: {
|
|
8806
8818
|
/**
|
|
@@ -9339,7 +9351,7 @@ class Client$1 {
|
|
|
9339
9351
|
}),
|
|
9340
9352
|
},
|
|
9341
9353
|
/**
|
|
9342
|
-
*
|
|
9354
|
+
* 素材
|
|
9343
9355
|
*/
|
|
9344
9356
|
media: {
|
|
9345
9357
|
/**
|
|
@@ -11545,7 +11557,7 @@ class Client$1 {
|
|
|
11545
11557
|
/**
|
|
11546
11558
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
|
|
11547
11559
|
*
|
|
11548
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11560
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/create document }
|
|
11549
11561
|
*
|
|
11550
11562
|
* 创建投递
|
|
11551
11563
|
*
|
|
@@ -11569,7 +11581,7 @@ class Client$1 {
|
|
|
11569
11581
|
/**
|
|
11570
11582
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get&version=v1 click to debug }
|
|
11571
11583
|
*
|
|
11572
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11584
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/get document }
|
|
11573
11585
|
*
|
|
11574
11586
|
* 获取投递信息
|
|
11575
11587
|
*
|
|
@@ -11593,7 +11605,7 @@ class Client$1 {
|
|
|
11593
11605
|
/**
|
|
11594
11606
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
11595
11607
|
*
|
|
11596
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11608
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/list document }
|
|
11597
11609
|
*
|
|
11598
11610
|
* 获取投递列表
|
|
11599
11611
|
*
|
|
@@ -11617,7 +11629,7 @@ class Client$1 {
|
|
|
11617
11629
|
/**
|
|
11618
11630
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=offer&version=v1 click to debug }
|
|
11619
11631
|
*
|
|
11620
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11632
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/offer document }
|
|
11621
11633
|
*
|
|
11622
11634
|
* 获取 Offer 信息
|
|
11623
11635
|
*
|
|
@@ -11641,7 +11653,7 @@ class Client$1 {
|
|
|
11641
11653
|
/**
|
|
11642
11654
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=terminate&version=v1 click to debug }
|
|
11643
11655
|
*
|
|
11644
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11656
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/terminate document }
|
|
11645
11657
|
*
|
|
11646
11658
|
* 终止投递
|
|
11647
11659
|
*
|
|
@@ -11665,7 +11677,7 @@ class Client$1 {
|
|
|
11665
11677
|
/**
|
|
11666
11678
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=transfer_onboard&version=v1 click to debug }
|
|
11667
11679
|
*
|
|
11668
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11680
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/transfer_onboard document }
|
|
11669
11681
|
*
|
|
11670
11682
|
* 操作候选人入职
|
|
11671
11683
|
*
|
|
@@ -11688,17 +11700,13 @@ class Client$1 {
|
|
|
11688
11700
|
}),
|
|
11689
11701
|
},
|
|
11690
11702
|
/**
|
|
11691
|
-
*
|
|
11703
|
+
* application.interview
|
|
11692
11704
|
*/
|
|
11693
11705
|
applicationInterview: {
|
|
11694
11706
|
/**
|
|
11695
11707
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
|
|
11696
11708
|
*
|
|
11697
|
-
* {@link https://open.feishu.cn/
|
|
11698
|
-
*
|
|
11699
|
-
* 获取面试记录列表
|
|
11700
|
-
*
|
|
11701
|
-
* 根据投递 ID 获取面试记录列表
|
|
11709
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=application.interview&version=v1 document }
|
|
11702
11710
|
*/
|
|
11703
11711
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11704
11712
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -11853,7 +11861,7 @@ class Client$1 {
|
|
|
11853
11861
|
/**
|
|
11854
11862
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
|
|
11855
11863
|
*
|
|
11856
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/job/get
|
|
11864
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get document }
|
|
11857
11865
|
*
|
|
11858
11866
|
* 获取职位信息
|
|
11859
11867
|
*
|
|
@@ -11911,7 +11919,7 @@ class Client$1 {
|
|
|
11911
11919
|
/**
|
|
11912
11920
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
|
|
11913
11921
|
*
|
|
11914
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/
|
|
11922
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_process/list document }
|
|
11915
11923
|
*
|
|
11916
11924
|
* 获取招聘流程信息
|
|
11917
11925
|
*
|
|
@@ -12035,17 +12043,13 @@ class Client$1 {
|
|
|
12035
12043
|
}),
|
|
12036
12044
|
},
|
|
12037
12045
|
/**
|
|
12038
|
-
*
|
|
12046
|
+
* offer_schema
|
|
12039
12047
|
*/
|
|
12040
12048
|
offerSchema: {
|
|
12041
12049
|
/**
|
|
12042
12050
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_schema&apiName=get&version=v1 click to debug }
|
|
12043
12051
|
*
|
|
12044
|
-
* {@link https://open.feishu.cn/
|
|
12045
|
-
*
|
|
12046
|
-
* 获取 Offer 申请表详细信息
|
|
12047
|
-
*
|
|
12048
|
-
* 根据 Offer 申请表 ID,获取 Offer 申请表的详细信息
|
|
12052
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=offer_schema&version=v1 document }
|
|
12049
12053
|
*/
|
|
12050
12054
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12051
12055
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12176,7 +12180,7 @@ class Client$1 {
|
|
|
12176
12180
|
/**
|
|
12177
12181
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
|
|
12178
12182
|
*
|
|
12179
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
12183
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/get document }
|
|
12180
12184
|
*
|
|
12181
12185
|
* 获取人才信息
|
|
12182
12186
|
*
|
|
@@ -12418,7 +12422,7 @@ class Client$1 {
|
|
|
12418
12422
|
*
|
|
12419
12423
|
* 解散群组。
|
|
12420
12424
|
*
|
|
12421
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 如果使用tenant_access_token,需要机器人符合以下任一情况才可解散群:; - 机器人是群主; - 机器人是群的创建者且具备==更新应用所创建群的群信息==权限;- 如果使用user_access_token
|
|
12425
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 如果使用tenant_access_token,需要机器人符合以下任一情况才可解散群:; - 机器人是群主; - 机器人是群的创建者且具备==更新应用所创建群的群信息==权限;- 如果使用user_access_token,需要对应的用户是群主才可解散群
|
|
12422
12426
|
*/
|
|
12423
12427
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12424
12428
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12444,7 +12448,7 @@ class Client$1 {
|
|
|
12444
12448
|
*
|
|
12445
12449
|
* 获取群名称、群描述、群头像、群主 ID 等群基本信息。
|
|
12446
12450
|
*
|
|
12447
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群里(否则只会返回群名称、群头像等基本信息);-
|
|
12451
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群里(否则只会返回群名称、群头像等基本信息);- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12448
12452
|
*/
|
|
12449
12453
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12450
12454
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12470,7 +12474,7 @@ class Client$1 {
|
|
|
12470
12474
|
*
|
|
12471
12475
|
* 获取指定群的分享链接
|
|
12472
12476
|
*
|
|
12473
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;-
|
|
12477
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
|
|
12474
12478
|
*/
|
|
12475
12479
|
link: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12476
12480
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12644,7 +12648,7 @@ class Client$1 {
|
|
|
12644
12648
|
*
|
|
12645
12649
|
* 更新群头像、群名称、群描述、群配置、转让群主等。
|
|
12646
12650
|
*
|
|
12647
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 对于群主/群管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可更新所有信息;- 对于不满足上述权限条件的群成员或机器人:; - 若未开启 ==仅群主和群管理员可编辑群信息== 配置,仅可更新群头像、群名称、群描述、群国际化名称信息; - 若开启了 ==仅群主和群管理员可编辑群信息==
|
|
12651
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 对于群主/群管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可更新所有信息;- 对于不满足上述权限条件的群成员或机器人:; - 若未开启 ==仅群主和群管理员可编辑群信息== 配置,仅可更新群头像、群名称、群描述、群国际化名称信息; - 若开启了 ==仅群主和群管理员可编辑群信息== 配置,任何群信息都不能修改
|
|
12648
12652
|
*/
|
|
12649
12653
|
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12650
12654
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12732,7 +12736,7 @@ class Client$1 {
|
|
|
12732
12736
|
*
|
|
12733
12737
|
* 将用户或机器人拉入群聊。
|
|
12734
12738
|
*
|
|
12735
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 如需拉用户进群,需要机器人对用户有[可用性](https://open.feishu.cn/document/home/introduction-to-scope-and-authorization/availability); - 机器人或授权用户必须在群组中;- 外部租户不能被加入到内部群中;-
|
|
12739
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 如需拉用户进群,需要机器人对用户有[可用性](https://open.feishu.cn/document/home/introduction-to-scope-and-authorization/availability); - 机器人或授权用户必须在群组中;- 外部租户不能被加入到内部群中;- 操作内部群时,操作者须与群组在同一租户下; - 在开启 ==仅群主和群管理员可添加群成员== 的设置时,仅有群主/管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可以拉用户或者机器人进群; - 在未开启 ==仅群主和群管理员可添加群成员== 的设置时,所有群成员都可以拉用户或机器人进群
|
|
12736
12740
|
*/
|
|
12737
12741
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12738
12742
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12758,7 +12762,7 @@ class Client$1 {
|
|
|
12758
12762
|
*
|
|
12759
12763
|
* 将用户或机器人移出群聊。
|
|
12760
12764
|
*
|
|
12761
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 用户或机器人在任何条件下均可移除自己出群(即主动退群);- 仅有群主/管理员 或 创建群组并且具备 ==更新应用所创建群的群信息== 权限的机器人,可以移除其他用户或者机器人;- 每次请求,最多移除50个用户或者5个机器人;-
|
|
12765
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 用户或机器人在任何条件下均可移除自己出群(即主动退群);- 仅有群主/管理员 或 创建群组并且具备 ==更新应用所创建群的群信息== 权限的机器人,可以移除其他用户或者机器人;- 每次请求,最多移除50个用户或者5个机器人;- 操作内部群时,操作者须与群组在同一租户下
|
|
12762
12766
|
*/
|
|
12763
12767
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12764
12768
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12832,7 +12836,7 @@ class Client$1 {
|
|
|
12832
12836
|
*
|
|
12833
12837
|
* 获取用户/机器人所在群的群成员列表。
|
|
12834
12838
|
*
|
|
12835
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中; - 该接口不会返回群内的机器人成员; - 由于返回的群成员列表会过滤掉机器人成员,因此返回的群成员个数可能会小于指定的page_size; - 如果有同一时间加入群的群成员,会一次性返回,这会导致返回的群成员个数可能会大于指定的page_size;-
|
|
12839
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中; - 该接口不会返回群内的机器人成员; - 由于返回的群成员列表会过滤掉机器人成员,因此返回的群成员个数可能会小于指定的page_size; - 如果有同一时间加入群的群成员,会一次性返回,这会导致返回的群成员个数可能会大于指定的page_size;- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12836
12840
|
*/
|
|
12837
12841
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12838
12842
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12858,7 +12862,7 @@ class Client$1 {
|
|
|
12858
12862
|
*
|
|
12859
12863
|
* 根据使用的access_token判断对应的用户或者机器人是否在群里。
|
|
12860
12864
|
*
|
|
12861
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);-
|
|
12865
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12862
12866
|
*/
|
|
12863
12867
|
isInChat: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12864
12868
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13020,7 +13024,7 @@ class Client$1 {
|
|
|
13020
13024
|
*
|
|
13021
13025
|
* 添加自定义会话标签页。
|
|
13022
13026
|
*
|
|
13023
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;-
|
|
13027
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许添加类型为`doc`和`url`的会话标签页;- 添加doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;- tab_config字段当前只对`url`类型的会话标签页生效;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以添加会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13024
13028
|
*/
|
|
13025
13029
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13026
13030
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13046,7 +13050,7 @@ class Client$1 {
|
|
|
13046
13050
|
*
|
|
13047
13051
|
* 删除会话标签页。
|
|
13048
13052
|
*
|
|
13049
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许删除类型为`doc`和`url`的会话标签页;-
|
|
13053
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许删除类型为`doc`和`url`的会话标签页;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以删除会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13050
13054
|
*/
|
|
13051
13055
|
deleteTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13052
13056
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13072,7 +13076,7 @@ class Client$1 {
|
|
|
13072
13076
|
*
|
|
13073
13077
|
* 拉取会话标签页。
|
|
13074
13078
|
*
|
|
13075
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;-
|
|
13079
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 操作内部群时,操作者须与群组在同一租户下
|
|
13076
13080
|
*/
|
|
13077
13081
|
listTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13078
13082
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13098,7 +13102,7 @@ class Client$1 {
|
|
|
13098
13102
|
*
|
|
13099
13103
|
* 会话标签页排序。
|
|
13100
13104
|
*
|
|
13101
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 消息标签页强制固定为第一顺位,不参与排序,但是请求体中必须包含该标签页的Tab ID;-
|
|
13105
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 消息标签页强制固定为第一顺位,不参与排序,但是请求体中必须包含该标签页的Tab ID;- 操作内部群时,操作者须与群组在同一租户下
|
|
13102
13106
|
*/
|
|
13103
13107
|
sortTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13104
13108
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13124,7 +13128,7 @@ class Client$1 {
|
|
|
13124
13128
|
*
|
|
13125
13129
|
* 更新会话标签页
|
|
13126
13130
|
*
|
|
13127
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许更新类型为`doc`和`url`的会话标签页;- 更新doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;-
|
|
13131
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许更新类型为`doc`和`url`的会话标签页;- 更新doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以更新会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13128
13132
|
*/
|
|
13129
13133
|
updateTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13130
13134
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13155,7 +13159,7 @@ class Client$1 {
|
|
|
13155
13159
|
*
|
|
13156
13160
|
* 撤销会话中的置顶。
|
|
13157
13161
|
*
|
|
13158
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;-
|
|
13162
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 撤销内部群置顶时,操作者须与群组在同一租户下
|
|
13159
13163
|
*/
|
|
13160
13164
|
deleteTopNotice: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13161
13165
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13181,7 +13185,7 @@ class Client$1 {
|
|
|
13181
13185
|
*
|
|
13182
13186
|
* 更新会话中的群置顶信息,可以将群中的某一条消息,或者群公告置顶显示。
|
|
13183
13187
|
*
|
|
13184
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;-
|
|
13188
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 更新内部群置顶时,操作者须与群组在同一租户下
|
|
13185
13189
|
*/
|
|
13186
13190
|
putTopNotice: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13187
13191
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13346,7 +13350,7 @@ class Client$1 {
|
|
|
13346
13350
|
}),
|
|
13347
13351
|
},
|
|
13348
13352
|
/**
|
|
13349
|
-
*
|
|
13353
|
+
* 消息加急
|
|
13350
13354
|
*/
|
|
13351
13355
|
message: {
|
|
13352
13356
|
/**
|
|
@@ -13478,7 +13482,7 @@ class Client$1 {
|
|
|
13478
13482
|
/**
|
|
13479
13483
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=list&version=v1 click to debug }
|
|
13480
13484
|
*
|
|
13481
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
13485
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/list document }
|
|
13482
13486
|
*
|
|
13483
13487
|
* 获取会话历史消息
|
|
13484
13488
|
*
|
|
@@ -16322,7 +16326,7 @@ class Client$1 {
|
|
|
16322
16326
|
}),
|
|
16323
16327
|
},
|
|
16324
16328
|
/**
|
|
16325
|
-
*
|
|
16329
|
+
* 工作表
|
|
16326
16330
|
*/
|
|
16327
16331
|
spreadsheetSheet: {
|
|
16328
16332
|
/**
|
|
@@ -16713,7 +16717,7 @@ class Client$1 {
|
|
|
16713
16717
|
*
|
|
16714
16718
|
* 完成任务
|
|
16715
16719
|
*
|
|
16716
|
-
*
|
|
16720
|
+
* 该接口用于将任务状态修改为“已完成”。;完成任务是指整个任务全部完成,而不支持执行者分别完成任务,执行成功后,任务对所有关联用户都变为完成状态。
|
|
16717
16721
|
*/
|
|
16718
16722
|
complete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16719
16723
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -16737,7 +16741,7 @@ class Client$1 {
|
|
|
16737
16741
|
*
|
|
16738
16742
|
* 创建任务
|
|
16739
16743
|
*
|
|
16740
|
-
*
|
|
16744
|
+
* 该接口可以创建一个任务,支持填写任务的基本信息,包括任务的标题,描述及协作者等。;在此基础上,创建任务时可以设置截止时间和重复规则,将任务设置为定期执行的重复任务。通过添加协作者,则可以让其他用户协同完成该任务。;此外,接口也提供了一些支持自定义内容的字段,调用方可以实现定制化效果,如完成任务后跳转到指定结束界面。
|
|
16741
16745
|
*/
|
|
16742
16746
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16743
16747
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -16934,7 +16938,7 @@ class Client$1 {
|
|
|
16934
16938
|
*
|
|
16935
16939
|
* 新增执行者
|
|
16936
16940
|
*
|
|
16937
|
-
*
|
|
16941
|
+
* 该接口用于新增任务执行者,一次性可以添加多个执行者。;只有任务的创建者和执行者才能添加执行者,关注人无权限添加。
|
|
16938
16942
|
*/
|
|
16939
16943
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16940
16944
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18379,19 +18383,234 @@ class Client$1 {
|
|
|
18379
18383
|
}),
|
|
18380
18384
|
},
|
|
18381
18385
|
/**
|
|
18382
|
-
*
|
|
18386
|
+
* 会议室
|
|
18383
18387
|
*/
|
|
18384
|
-
|
|
18388
|
+
room: {
|
|
18385
18389
|
/**
|
|
18386
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=
|
|
18390
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=create&version=v1 click to debug }
|
|
18387
18391
|
*
|
|
18388
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/
|
|
18392
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/create document }
|
|
18389
18393
|
*
|
|
18390
|
-
*
|
|
18394
|
+
* 创建会议室
|
|
18395
|
+
*
|
|
18396
|
+
* 该接口用于创建会议室
|
|
18397
|
+
*/
|
|
18398
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18399
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18400
|
+
return httpInstance
|
|
18401
|
+
.request({
|
|
18402
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18403
|
+
method: "POST",
|
|
18404
|
+
data,
|
|
18405
|
+
params,
|
|
18406
|
+
headers,
|
|
18407
|
+
})
|
|
18408
|
+
.catch((e) => {
|
|
18409
|
+
this.logger.error(formatErrors(e));
|
|
18410
|
+
throw e;
|
|
18411
|
+
});
|
|
18412
|
+
}),
|
|
18413
|
+
/**
|
|
18414
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=delete&version=v1 click to debug }
|
|
18415
|
+
*
|
|
18416
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/delete document }
|
|
18417
|
+
*
|
|
18418
|
+
* 删除会议室
|
|
18419
|
+
*
|
|
18420
|
+
* 该接口可以用来删除某个会议室
|
|
18421
|
+
*/
|
|
18422
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18423
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18424
|
+
return httpInstance
|
|
18425
|
+
.request({
|
|
18426
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18427
|
+
method: "DELETE",
|
|
18428
|
+
data,
|
|
18429
|
+
params,
|
|
18430
|
+
headers,
|
|
18431
|
+
})
|
|
18432
|
+
.catch((e) => {
|
|
18433
|
+
this.logger.error(formatErrors(e));
|
|
18434
|
+
throw e;
|
|
18435
|
+
});
|
|
18436
|
+
}),
|
|
18437
|
+
/**
|
|
18438
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=get&version=v1 click to debug }
|
|
18439
|
+
*
|
|
18440
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/get document }
|
|
18441
|
+
*
|
|
18442
|
+
* 查询会议室详情
|
|
18443
|
+
*
|
|
18444
|
+
* 该接口可以使用会议室ID查询会议室详情
|
|
18445
|
+
*/
|
|
18446
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18447
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18448
|
+
return httpInstance
|
|
18449
|
+
.request({
|
|
18450
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18451
|
+
method: "GET",
|
|
18452
|
+
data,
|
|
18453
|
+
params,
|
|
18454
|
+
headers,
|
|
18455
|
+
})
|
|
18456
|
+
.catch((e) => {
|
|
18457
|
+
this.logger.error(formatErrors(e));
|
|
18458
|
+
throw e;
|
|
18459
|
+
});
|
|
18460
|
+
}),
|
|
18461
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18462
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18463
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18464
|
+
const res = yield httpInstance
|
|
18465
|
+
.request({
|
|
18466
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18467
|
+
method: "GET",
|
|
18468
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
18469
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
18470
|
+
})
|
|
18471
|
+
.catch((e) => {
|
|
18472
|
+
this.logger.error(formatErrors(e));
|
|
18473
|
+
});
|
|
18474
|
+
return res;
|
|
18475
|
+
});
|
|
18476
|
+
const Iterable = {
|
|
18477
|
+
[Symbol.asyncIterator]() {
|
|
18478
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
18479
|
+
let hasMore = true;
|
|
18480
|
+
let pageToken;
|
|
18481
|
+
while (hasMore) {
|
|
18482
|
+
try {
|
|
18483
|
+
const res = yield __await(sendRequest({
|
|
18484
|
+
headers,
|
|
18485
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18486
|
+
data,
|
|
18487
|
+
}));
|
|
18488
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
18489
|
+
// @ts-ignore
|
|
18490
|
+
has_more,
|
|
18491
|
+
// @ts-ignore
|
|
18492
|
+
page_token,
|
|
18493
|
+
// @ts-ignore
|
|
18494
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18495
|
+
yield yield __await(rest);
|
|
18496
|
+
hasMore = Boolean(has_more);
|
|
18497
|
+
pageToken = page_token || next_page_token;
|
|
18498
|
+
}
|
|
18499
|
+
catch (e) {
|
|
18500
|
+
yield yield __await(null);
|
|
18501
|
+
break;
|
|
18502
|
+
}
|
|
18503
|
+
}
|
|
18504
|
+
});
|
|
18505
|
+
},
|
|
18506
|
+
};
|
|
18507
|
+
return Iterable;
|
|
18508
|
+
}),
|
|
18509
|
+
/**
|
|
18510
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=list&version=v1 click to debug }
|
|
18511
|
+
*
|
|
18512
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/list document }
|
|
18513
|
+
*
|
|
18514
|
+
* 查询会议室列表
|
|
18391
18515
|
*
|
|
18392
|
-
*
|
|
18516
|
+
* 该接口可以用来查询某个会议室层级下会议室列表
|
|
18517
|
+
*/
|
|
18518
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18519
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18520
|
+
return httpInstance
|
|
18521
|
+
.request({
|
|
18522
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18523
|
+
method: "GET",
|
|
18524
|
+
data,
|
|
18525
|
+
params,
|
|
18526
|
+
headers,
|
|
18527
|
+
})
|
|
18528
|
+
.catch((e) => {
|
|
18529
|
+
this.logger.error(formatErrors(e));
|
|
18530
|
+
throw e;
|
|
18531
|
+
});
|
|
18532
|
+
}),
|
|
18533
|
+
/**
|
|
18534
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=mget&version=v1 click to debug }
|
|
18535
|
+
*
|
|
18536
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/mget document }
|
|
18537
|
+
*
|
|
18538
|
+
* 批量查询会议室详情
|
|
18393
18539
|
*
|
|
18394
|
-
*
|
|
18540
|
+
* 该接口可以使用会议室ID批量查询会议室详情
|
|
18541
|
+
*/
|
|
18542
|
+
mget: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18543
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18544
|
+
return httpInstance
|
|
18545
|
+
.request({
|
|
18546
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/mget`, path),
|
|
18547
|
+
method: "POST",
|
|
18548
|
+
data,
|
|
18549
|
+
params,
|
|
18550
|
+
headers,
|
|
18551
|
+
})
|
|
18552
|
+
.catch((e) => {
|
|
18553
|
+
this.logger.error(formatErrors(e));
|
|
18554
|
+
throw e;
|
|
18555
|
+
});
|
|
18556
|
+
}),
|
|
18557
|
+
/**
|
|
18558
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=patch&version=v1 click to debug }
|
|
18559
|
+
*
|
|
18560
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/patch document }
|
|
18561
|
+
*
|
|
18562
|
+
* 更新会议室
|
|
18563
|
+
*
|
|
18564
|
+
* 该接口可以用来更新某个会议室的信息
|
|
18565
|
+
*/
|
|
18566
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18567
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18568
|
+
return httpInstance
|
|
18569
|
+
.request({
|
|
18570
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18571
|
+
method: "PATCH",
|
|
18572
|
+
data,
|
|
18573
|
+
params,
|
|
18574
|
+
headers,
|
|
18575
|
+
})
|
|
18576
|
+
.catch((e) => {
|
|
18577
|
+
this.logger.error(formatErrors(e));
|
|
18578
|
+
throw e;
|
|
18579
|
+
});
|
|
18580
|
+
}),
|
|
18581
|
+
/**
|
|
18582
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=search&version=v1 click to debug }
|
|
18583
|
+
*
|
|
18584
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/search document }
|
|
18585
|
+
*
|
|
18586
|
+
* 搜索会议室
|
|
18587
|
+
*
|
|
18588
|
+
* 该接口可以用来搜索会议室,支持使用关键词进行搜索,也支持使用自定义会议室ID进行查询
|
|
18589
|
+
*/
|
|
18590
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18591
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18592
|
+
return httpInstance
|
|
18593
|
+
.request({
|
|
18594
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/search`, path),
|
|
18595
|
+
method: "POST",
|
|
18596
|
+
data,
|
|
18597
|
+
params,
|
|
18598
|
+
headers,
|
|
18599
|
+
})
|
|
18600
|
+
.catch((e) => {
|
|
18601
|
+
this.logger.error(formatErrors(e));
|
|
18602
|
+
throw e;
|
|
18603
|
+
});
|
|
18604
|
+
}),
|
|
18605
|
+
},
|
|
18606
|
+
/**
|
|
18607
|
+
* room_config
|
|
18608
|
+
*/
|
|
18609
|
+
roomConfig: {
|
|
18610
|
+
/**
|
|
18611
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=query&version=v1 click to debug }
|
|
18612
|
+
*
|
|
18613
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=vc&resource=room_config&version=v1 document }
|
|
18395
18614
|
*/
|
|
18396
18615
|
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18397
18616
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18411,19 +18630,66 @@ class Client$1 {
|
|
|
18411
18630
|
/**
|
|
18412
18631
|
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set&version=v1 click to debug }
|
|
18413
18632
|
*
|
|
18414
|
-
* {@link https://open.feishu.cn/
|
|
18633
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set&project=vc&resource=room_config&version=v1 document }
|
|
18634
|
+
*/
|
|
18635
|
+
set: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18636
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18637
|
+
return httpInstance
|
|
18638
|
+
.request({
|
|
18639
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set`, path),
|
|
18640
|
+
method: "POST",
|
|
18641
|
+
data,
|
|
18642
|
+
params,
|
|
18643
|
+
headers,
|
|
18644
|
+
})
|
|
18645
|
+
.catch((e) => {
|
|
18646
|
+
this.logger.error(formatErrors(e));
|
|
18647
|
+
throw e;
|
|
18648
|
+
});
|
|
18649
|
+
}),
|
|
18650
|
+
},
|
|
18651
|
+
/**
|
|
18652
|
+
* 会议室层级
|
|
18653
|
+
*/
|
|
18654
|
+
roomLevel: {
|
|
18655
|
+
/**
|
|
18656
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=create&version=v1 click to debug }
|
|
18415
18657
|
*
|
|
18416
|
-
*
|
|
18658
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/create document }
|
|
18417
18659
|
*
|
|
18418
|
-
*
|
|
18660
|
+
* 创建会议室层级
|
|
18419
18661
|
*
|
|
18420
|
-
*
|
|
18662
|
+
* 该接口用于创建会议室层级
|
|
18421
18663
|
*/
|
|
18422
|
-
|
|
18664
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18423
18665
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18424
18666
|
return httpInstance
|
|
18425
18667
|
.request({
|
|
18426
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/
|
|
18668
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18669
|
+
method: "POST",
|
|
18670
|
+
data,
|
|
18671
|
+
params,
|
|
18672
|
+
headers,
|
|
18673
|
+
})
|
|
18674
|
+
.catch((e) => {
|
|
18675
|
+
this.logger.error(formatErrors(e));
|
|
18676
|
+
throw e;
|
|
18677
|
+
});
|
|
18678
|
+
}),
|
|
18679
|
+
/**
|
|
18680
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=del&version=v1 click to debug }
|
|
18681
|
+
*
|
|
18682
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/del document }
|
|
18683
|
+
*
|
|
18684
|
+
* 删除会议室层级
|
|
18685
|
+
*
|
|
18686
|
+
* 该接口可以用来删除某个会议室层级
|
|
18687
|
+
*/
|
|
18688
|
+
del: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18689
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18690
|
+
return httpInstance
|
|
18691
|
+
.request({
|
|
18692
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/del`, path),
|
|
18427
18693
|
method: "POST",
|
|
18428
18694
|
data,
|
|
18429
18695
|
params,
|
|
@@ -18434,6 +18700,227 @@ class Client$1 {
|
|
|
18434
18700
|
throw e;
|
|
18435
18701
|
});
|
|
18436
18702
|
}),
|
|
18703
|
+
/**
|
|
18704
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=get&version=v1 click to debug }
|
|
18705
|
+
*
|
|
18706
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/get document }
|
|
18707
|
+
*
|
|
18708
|
+
* 查询会议室层级详情
|
|
18709
|
+
*
|
|
18710
|
+
* 该接口可以使用会议室层级ID查询会议室层级详情
|
|
18711
|
+
*/
|
|
18712
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18713
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18714
|
+
return httpInstance
|
|
18715
|
+
.request({
|
|
18716
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`, path),
|
|
18717
|
+
method: "GET",
|
|
18718
|
+
data,
|
|
18719
|
+
params,
|
|
18720
|
+
headers,
|
|
18721
|
+
})
|
|
18722
|
+
.catch((e) => {
|
|
18723
|
+
this.logger.error(formatErrors(e));
|
|
18724
|
+
throw e;
|
|
18725
|
+
});
|
|
18726
|
+
}),
|
|
18727
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18728
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18729
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18730
|
+
const res = yield httpInstance
|
|
18731
|
+
.request({
|
|
18732
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18733
|
+
method: "GET",
|
|
18734
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
18735
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
18736
|
+
})
|
|
18737
|
+
.catch((e) => {
|
|
18738
|
+
this.logger.error(formatErrors(e));
|
|
18739
|
+
});
|
|
18740
|
+
return res;
|
|
18741
|
+
});
|
|
18742
|
+
const Iterable = {
|
|
18743
|
+
[Symbol.asyncIterator]() {
|
|
18744
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
18745
|
+
let hasMore = true;
|
|
18746
|
+
let pageToken;
|
|
18747
|
+
while (hasMore) {
|
|
18748
|
+
try {
|
|
18749
|
+
const res = yield __await(sendRequest({
|
|
18750
|
+
headers,
|
|
18751
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18752
|
+
data,
|
|
18753
|
+
}));
|
|
18754
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
18755
|
+
// @ts-ignore
|
|
18756
|
+
has_more,
|
|
18757
|
+
// @ts-ignore
|
|
18758
|
+
page_token,
|
|
18759
|
+
// @ts-ignore
|
|
18760
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18761
|
+
yield yield __await(rest);
|
|
18762
|
+
hasMore = Boolean(has_more);
|
|
18763
|
+
pageToken = page_token || next_page_token;
|
|
18764
|
+
}
|
|
18765
|
+
catch (e) {
|
|
18766
|
+
yield yield __await(null);
|
|
18767
|
+
break;
|
|
18768
|
+
}
|
|
18769
|
+
}
|
|
18770
|
+
});
|
|
18771
|
+
},
|
|
18772
|
+
};
|
|
18773
|
+
return Iterable;
|
|
18774
|
+
}),
|
|
18775
|
+
/**
|
|
18776
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=list&version=v1 click to debug }
|
|
18777
|
+
*
|
|
18778
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/list document }
|
|
18779
|
+
*
|
|
18780
|
+
* 查询会议室层级列表
|
|
18781
|
+
*
|
|
18782
|
+
* 该接口用来查询某个会议室层级下的子层级列表
|
|
18783
|
+
*/
|
|
18784
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18785
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18786
|
+
return httpInstance
|
|
18787
|
+
.request({
|
|
18788
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18789
|
+
method: "GET",
|
|
18790
|
+
data,
|
|
18791
|
+
params,
|
|
18792
|
+
headers,
|
|
18793
|
+
})
|
|
18794
|
+
.catch((e) => {
|
|
18795
|
+
this.logger.error(formatErrors(e));
|
|
18796
|
+
throw e;
|
|
18797
|
+
});
|
|
18798
|
+
}),
|
|
18799
|
+
/**
|
|
18800
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=mget&version=v1 click to debug }
|
|
18801
|
+
*
|
|
18802
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/mget document }
|
|
18803
|
+
*
|
|
18804
|
+
* 批量查询会议室层级详情
|
|
18805
|
+
*
|
|
18806
|
+
* 该接口可以使用会议室层级ID批量查询会议室层级详情
|
|
18807
|
+
*/
|
|
18808
|
+
mget: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18809
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18810
|
+
return httpInstance
|
|
18811
|
+
.request({
|
|
18812
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/mget`, path),
|
|
18813
|
+
method: "POST",
|
|
18814
|
+
data,
|
|
18815
|
+
params,
|
|
18816
|
+
headers,
|
|
18817
|
+
})
|
|
18818
|
+
.catch((e) => {
|
|
18819
|
+
this.logger.error(formatErrors(e));
|
|
18820
|
+
throw e;
|
|
18821
|
+
});
|
|
18822
|
+
}),
|
|
18823
|
+
/**
|
|
18824
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=patch&version=v1 click to debug }
|
|
18825
|
+
*
|
|
18826
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/patch document }
|
|
18827
|
+
*
|
|
18828
|
+
* 更新会议室层级
|
|
18829
|
+
*
|
|
18830
|
+
* 该接口可以用来更新某个会议室层级的信息
|
|
18831
|
+
*/
|
|
18832
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18833
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18834
|
+
return httpInstance
|
|
18835
|
+
.request({
|
|
18836
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`, path),
|
|
18837
|
+
method: "PATCH",
|
|
18838
|
+
data,
|
|
18839
|
+
params,
|
|
18840
|
+
headers,
|
|
18841
|
+
})
|
|
18842
|
+
.catch((e) => {
|
|
18843
|
+
this.logger.error(formatErrors(e));
|
|
18844
|
+
throw e;
|
|
18845
|
+
});
|
|
18846
|
+
}),
|
|
18847
|
+
/**
|
|
18848
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=search&version=v1 click to debug }
|
|
18849
|
+
*
|
|
18850
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/search document }
|
|
18851
|
+
*
|
|
18852
|
+
* 搜索会议室层级
|
|
18853
|
+
*
|
|
18854
|
+
* 该接口可以用来搜索会议室层级,支持使用自定义会议室层级ID进行查询
|
|
18855
|
+
*/
|
|
18856
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18857
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18858
|
+
return httpInstance
|
|
18859
|
+
.request({
|
|
18860
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/search`, path),
|
|
18861
|
+
method: "GET",
|
|
18862
|
+
data,
|
|
18863
|
+
params,
|
|
18864
|
+
headers,
|
|
18865
|
+
})
|
|
18866
|
+
.catch((e) => {
|
|
18867
|
+
this.logger.error(formatErrors(e));
|
|
18868
|
+
throw e;
|
|
18869
|
+
});
|
|
18870
|
+
}),
|
|
18871
|
+
},
|
|
18872
|
+
/**
|
|
18873
|
+
* 会议室配置
|
|
18874
|
+
*/
|
|
18875
|
+
scopeConfig: {
|
|
18876
|
+
/**
|
|
18877
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=scope_config&apiName=create&version=v1 click to debug }
|
|
18878
|
+
*
|
|
18879
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/scope_config/create document }
|
|
18880
|
+
*
|
|
18881
|
+
* 设置会议室配置
|
|
18882
|
+
*
|
|
18883
|
+
* 该接口可以用来设置某个会议层级范围下或者某个会议室的配置
|
|
18884
|
+
*/
|
|
18885
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18886
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18887
|
+
return httpInstance
|
|
18888
|
+
.request({
|
|
18889
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/scope_config`, path),
|
|
18890
|
+
method: "POST",
|
|
18891
|
+
data,
|
|
18892
|
+
params,
|
|
18893
|
+
headers,
|
|
18894
|
+
})
|
|
18895
|
+
.catch((e) => {
|
|
18896
|
+
this.logger.error(formatErrors(e));
|
|
18897
|
+
throw e;
|
|
18898
|
+
});
|
|
18899
|
+
}),
|
|
18900
|
+
/**
|
|
18901
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=scope_config&apiName=get&version=v1 click to debug }
|
|
18902
|
+
*
|
|
18903
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/scope_config/get document }
|
|
18904
|
+
*
|
|
18905
|
+
* 查询会议室配置
|
|
18906
|
+
*
|
|
18907
|
+
* 该接口可以用来查询某个会议层级范围下或者某个会议室的配置
|
|
18908
|
+
*/
|
|
18909
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18910
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18911
|
+
return httpInstance
|
|
18912
|
+
.request({
|
|
18913
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/scope_config`, path),
|
|
18914
|
+
method: "GET",
|
|
18915
|
+
data,
|
|
18916
|
+
params,
|
|
18917
|
+
headers,
|
|
18918
|
+
})
|
|
18919
|
+
.catch((e) => {
|
|
18920
|
+
this.logger.error(formatErrors(e));
|
|
18921
|
+
throw e;
|
|
18922
|
+
});
|
|
18923
|
+
}),
|
|
18437
18924
|
},
|
|
18438
18925
|
};
|
|
18439
18926
|
/**
|
|
@@ -18501,11 +18988,11 @@ class Client$1 {
|
|
|
18501
18988
|
*
|
|
18502
18989
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space/get_node document }
|
|
18503
18990
|
*
|
|
18504
|
-
*
|
|
18991
|
+
* 获取知识空间节点信息
|
|
18505
18992
|
*
|
|
18506
|
-
*
|
|
18993
|
+
* 获取知识空间节点信息
|
|
18507
18994
|
*
|
|
18508
|
-
*
|
|
18995
|
+
* 知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 节点阅读权限
|
|
18509
18996
|
*/
|
|
18510
18997
|
getNode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18511
18998
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18608,9 +19095,9 @@ class Client$1 {
|
|
|
18608
19095
|
*
|
|
18609
19096
|
* 添加知识空间成员
|
|
18610
19097
|
*
|
|
18611
|
-
*
|
|
19098
|
+
* 添加知识空间成员或管理员。
|
|
18612
19099
|
*
|
|
18613
|
-
*
|
|
19100
|
+
* 知识空间具有[类型](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)和[可见性](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)的概念。不同的类型或可见性可以对本操作做出限制:;- 可见性限制:公开知识空间(visibility为public)对租户所有用户可见,因此不支持再添加成员,但可以添加管理员。;- 类型限制:个人知识空间 (type为person)为个人管理的知识空间,不支持添加其他管理员(包括应用/机器人)。但可以添加成员。;;;知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 为知识空间管理员
|
|
18614
19101
|
*/
|
|
18615
19102
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18616
19103
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18634,9 +19121,9 @@ class Client$1 {
|
|
|
18634
19121
|
*
|
|
18635
19122
|
* 删除知识空间成员
|
|
18636
19123
|
*
|
|
18637
|
-
*
|
|
19124
|
+
* 此接口用于删除知识空间成员或管理员。
|
|
18638
19125
|
*
|
|
18639
|
-
*
|
|
19126
|
+
* 知识空间具有[类型](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)和[可见性](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)的概念。不同的类型或可见性可以对本操作做出限制:;- 可见性限制:公开知识空间(visibility为public)对租户所有用户可见,因此不支持再删除成员,但可以删除管理员。;- 类型限制:个人知识空间 (type为person)为个人管理的知识空间,不支持删除管理员。但可以删除成员。;;;知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 为知识空间管理员
|
|
18640
19127
|
*/
|
|
18641
19128
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18642
19129
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18663,9 +19150,9 @@ class Client$1 {
|
|
|
18663
19150
|
*
|
|
18664
19151
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/copy document }
|
|
18665
19152
|
*
|
|
18666
|
-
*
|
|
19153
|
+
* 创建知识空间节点副本
|
|
18667
19154
|
*
|
|
18668
|
-
*
|
|
19155
|
+
* 此接口用于在知识空间创建节点副本到指定位置。
|
|
18669
19156
|
*/
|
|
18670
19157
|
copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18671
19158
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18687,11 +19174,11 @@ class Client$1 {
|
|
|
18687
19174
|
*
|
|
18688
19175
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/create document }
|
|
18689
19176
|
*
|
|
18690
|
-
*
|
|
19177
|
+
* 创建知识空间节点
|
|
18691
19178
|
*
|
|
18692
|
-
*
|
|
19179
|
+
* 此接口用于在知识节点里创建[节点](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)到指定位置。
|
|
18693
19180
|
*
|
|
18694
|
-
*
|
|
19181
|
+
* 知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- **父节点**容器编辑权限
|
|
18695
19182
|
*/
|
|
18696
19183
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18697
19184
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18761,11 +19248,11 @@ class Client$1 {
|
|
|
18761
19248
|
*
|
|
18762
19249
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/list document }
|
|
18763
19250
|
*
|
|
18764
|
-
*
|
|
19251
|
+
* 获取知识空间子节点列表
|
|
18765
19252
|
*
|
|
18766
19253
|
* 此接口用于分页获取Wiki节点的子节点列表。;;此接口为分页接口。由于权限过滤,可能返回列表为空,但分页标记(has_more)为true,可以继续分页请求。
|
|
18767
19254
|
*
|
|
18768
|
-
*
|
|
19255
|
+
* 知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 父节点阅读权限
|
|
18769
19256
|
*/
|
|
18770
19257
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18771
19258
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18813,13 +19300,13 @@ class Client$1 {
|
|
|
18813
19300
|
*
|
|
18814
19301
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move_docs_to_wiki document }
|
|
18815
19302
|
*
|
|
18816
|
-
*
|
|
19303
|
+
* 移动云空间文档至知识空间
|
|
18817
19304
|
*
|
|
18818
|
-
*
|
|
19305
|
+
* 该接口允许移动云空间文档至知识空间,并挂载在指定位置
|
|
18819
19306
|
*
|
|
18820
|
-
*
|
|
19307
|
+
* 此接口为异步接口。若移动已完成(或文档已在Wiki中),则直接返回结果(Wiki token)。若尚未完成,则返回task id。请使用[获取任务结果](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/task/get)接口进行查询。;;知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 文档可管理权限;- 原文件夹编辑权限;- 目标父节点容器编辑权限
|
|
18821
19308
|
*
|
|
18822
|
-
* ### 移动操作
|
|
19309
|
+
* ### 移动操作 ###;移动后,文档将从“我的空间”或“共享空间”转移至“知识库”后,无法从下列入口查看到文档:;- 云空间主页:快速访问;- 我的空间;- 共享空间;;### 权限变更 ###;移动后,文档会向所有可查看“页面树”的用户显示,默认继承父页面的权限设置。;</md-alert
|
|
18823
19310
|
*/
|
|
18824
19311
|
moveDocsToWiki: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18825
19312
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18907,7 +19394,7 @@ class Client$1 {
|
|
|
18907
19394
|
*
|
|
18908
19395
|
* 该方法用于获取wiki异步任务的结果
|
|
18909
19396
|
*
|
|
18910
|
-
*
|
|
19397
|
+
* 知识库权限要求,当前 access token 所代表的用户或应用(机器人):;- 为任务创建者
|
|
18911
19398
|
*/
|
|
18912
19399
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18913
19400
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -19068,7 +19555,9 @@ class TokenManager {
|
|
|
19068
19555
|
.catch((e) => {
|
|
19069
19556
|
this.logger.error(e);
|
|
19070
19557
|
});
|
|
19071
|
-
yield ((_b = this.cache) === null || _b === void 0 ? void 0 : _b.set(CTenantAccessToken, tenant_access_token,
|
|
19558
|
+
yield ((_b = this.cache) === null || _b === void 0 ? void 0 : _b.set(CTenantAccessToken, tenant_access_token,
|
|
19559
|
+
// Due to the time-consuming network, the expiration time needs to be 3 minutes earlier
|
|
19560
|
+
new Date().getTime() + expire * 1000 - 3 * 60 * 1000));
|
|
19072
19561
|
return tenant_access_token;
|
|
19073
19562
|
});
|
|
19074
19563
|
}
|
|
@@ -19114,7 +19603,9 @@ class TokenManager {
|
|
|
19114
19603
|
this.logger.error(e);
|
|
19115
19604
|
});
|
|
19116
19605
|
// 设置tenant_access_token
|
|
19117
|
-
yield this.cache.set(`larkMarketAccessToken${tenantKey}`, tenant_access_token,
|
|
19606
|
+
yield this.cache.set(`larkMarketAccessToken${tenantKey}`, tenant_access_token,
|
|
19607
|
+
// Due to the time-consuming network, the expiration time needs to be 3 minutes earlier
|
|
19608
|
+
new Date().getTime() + expire * 1000 - 3 * 60 * 1000);
|
|
19118
19609
|
return tenant_access_token;
|
|
19119
19610
|
});
|
|
19120
19611
|
}
|