@larksuiteoapi/node-sdk 1.5.0 → 1.6.1
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 +590 -99
- package/lib/index.js +590 -98
- package/package.json +1 -1
- package/types/index.d.ts +1105 -141
package/es/index.js
CHANGED
|
@@ -561,7 +561,7 @@ class Client$1 {
|
|
|
561
561
|
},
|
|
562
562
|
};
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* 管理后台-数据报表
|
|
565
565
|
*/
|
|
566
566
|
this.admin = {
|
|
567
567
|
/**
|
|
@@ -1429,7 +1429,7 @@ class Client$1 {
|
|
|
1429
1429
|
*/
|
|
1430
1430
|
this.approval = {
|
|
1431
1431
|
/**
|
|
1432
|
-
*
|
|
1432
|
+
* 原生审批定义
|
|
1433
1433
|
*/
|
|
1434
1434
|
approval: {
|
|
1435
1435
|
/**
|
|
@@ -2913,7 +2913,7 @@ class Client$1 {
|
|
|
2913
2913
|
*
|
|
2914
2914
|
* 由于部分企业使用的是自己的审批系统,而不是飞书审批系统,因此员工的请假、加班等数据无法流入到飞书考勤系统中,导致员工在请假时间段内依然收到打卡提醒,并且被记为缺卡。;;对于这些只使用飞书考勤系统,而未使用飞书审批系统的企业,可以通过考勤开放接口的形式,将三方审批结果数据回写到飞书考勤系统中。
|
|
2915
2915
|
*
|
|
2916
|
-
* 目前支持写入加班、请假、出差和外出这四种审批结果,写入只会追加(insert),不会覆盖(update)
|
|
2916
|
+
* 目前支持写入加班、请假、出差和外出这四种审批结果,写入只会追加(insert),不会覆盖(update)(开放接口导入的加班假期记录,在管理后台的假期加班里查不到,只能通过[获取审批通过数据](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query)来查询)
|
|
2917
2917
|
*/
|
|
2918
2918
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2919
2919
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -3534,6 +3534,30 @@ class Client$1 {
|
|
|
3534
3534
|
throw e;
|
|
3535
3535
|
});
|
|
3536
3536
|
}),
|
|
3537
|
+
/**
|
|
3538
|
+
* {@link https://open.feishu.cn/api-explorer?project=baike&resource=entity&apiName=extract&version=v1 click to debug }
|
|
3539
|
+
*
|
|
3540
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/extract document }
|
|
3541
|
+
*
|
|
3542
|
+
* 提取潜在的百科词条
|
|
3543
|
+
*
|
|
3544
|
+
* 提取文本中可能成为百科词条的词语,且不会过滤已经成为百科词条的词语。同时,会返回推荐的别名。
|
|
3545
|
+
*/
|
|
3546
|
+
extract: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3547
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3548
|
+
return httpInstance
|
|
3549
|
+
.request({
|
|
3550
|
+
url: fillApiPath(`${this.domain}/open-apis/baike/v1/entities/extract`, path),
|
|
3551
|
+
method: "POST",
|
|
3552
|
+
data,
|
|
3553
|
+
params,
|
|
3554
|
+
headers,
|
|
3555
|
+
})
|
|
3556
|
+
.catch((e) => {
|
|
3557
|
+
this.logger.error(formatErrors(e));
|
|
3558
|
+
throw e;
|
|
3559
|
+
});
|
|
3560
|
+
}),
|
|
3537
3561
|
/**
|
|
3538
3562
|
* {@link https://open.feishu.cn/api-explorer?project=baike&resource=entity&apiName=get&version=v1 click to debug }
|
|
3539
3563
|
*
|
|
@@ -3848,7 +3872,7 @@ class Client$1 {
|
|
|
3848
3872
|
},
|
|
3849
3873
|
};
|
|
3850
3874
|
/**
|
|
3851
|
-
*
|
|
3875
|
+
* 云文档-多维表格
|
|
3852
3876
|
*/
|
|
3853
3877
|
this.bitable = {
|
|
3854
3878
|
/**
|
|
@@ -6771,13 +6795,7 @@ class Client$1 {
|
|
|
6771
6795
|
/**
|
|
6772
6796
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=list&version=v3 click to debug }
|
|
6773
6797
|
*
|
|
6774
|
-
* {@link https://open.feishu.cn/
|
|
6775
|
-
*
|
|
6776
|
-
* 获取部门信息列表
|
|
6777
|
-
*
|
|
6778
|
-
* 该接口用于获取当前部门子部门列表。[常见问题答疑](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN)。
|
|
6779
|
-
*
|
|
6780
|
-
* - 使用 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 决定是否递归)。
|
|
6798
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=department&version=v3 document }
|
|
6781
6799
|
*/
|
|
6782
6800
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
6783
6801
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -7999,13 +8017,7 @@ class Client$1 {
|
|
|
7999
8017
|
/**
|
|
8000
8018
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=list&version=v3 click to debug }
|
|
8001
8019
|
*
|
|
8002
|
-
* {@link https://open.feishu.cn/
|
|
8003
|
-
*
|
|
8004
|
-
* 获取用户列表
|
|
8005
|
-
*
|
|
8006
|
-
* 基于部门ID获取部门下直属用户列表。;[常见问题答疑](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN)。
|
|
8007
|
-
*
|
|
8008
|
-
* - 使用 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 参数,则会返回权限范围内的独立用户(权限范围直接包含了某用户,则该用户视为权限范围内的独立用户)。
|
|
8020
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=user&version=v3 document }
|
|
8009
8021
|
*/
|
|
8010
8022
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8011
8023
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8501,7 +8513,7 @@ class Client$1 {
|
|
|
8501
8513
|
*
|
|
8502
8514
|
* 创建导出任务
|
|
8503
8515
|
*
|
|
8504
|
-
*
|
|
8516
|
+
* 创建导出任务,将云文件导出为指定格式的本地文件。该接口为异步接口,需要通过轮询 [查询导出任务结果](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/get) 接口获取任务结果。
|
|
8505
8517
|
*/
|
|
8506
8518
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8507
8519
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8564,7 +8576,7 @@ class Client$1 {
|
|
|
8564
8576
|
*
|
|
8565
8577
|
* 查询导出任务结果
|
|
8566
8578
|
*
|
|
8567
|
-
*
|
|
8579
|
+
* 根据[创建导出任务](/ssl::ttdoc//uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/create)的ticket查询导出任务的结果,前提条件需要先调用创建导出任务接口。;;通过该接口获取到下载文件的 token 后调用[下载导出文件接口](/ssl::ttdoc//uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/download)将文件进行下载
|
|
8568
8580
|
*/
|
|
8569
8581
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8570
8582
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -8785,7 +8797,7 @@ class Client$1 {
|
|
|
8785
8797
|
}),
|
|
8786
8798
|
},
|
|
8787
8799
|
/**
|
|
8788
|
-
*
|
|
8800
|
+
* 下载
|
|
8789
8801
|
*/
|
|
8790
8802
|
file: {
|
|
8791
8803
|
/**
|
|
@@ -9324,7 +9336,7 @@ class Client$1 {
|
|
|
9324
9336
|
}),
|
|
9325
9337
|
},
|
|
9326
9338
|
/**
|
|
9327
|
-
*
|
|
9339
|
+
* 素材
|
|
9328
9340
|
*/
|
|
9329
9341
|
media: {
|
|
9330
9342
|
/**
|
|
@@ -11530,7 +11542,7 @@ class Client$1 {
|
|
|
11530
11542
|
/**
|
|
11531
11543
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
|
|
11532
11544
|
*
|
|
11533
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11545
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/create document }
|
|
11534
11546
|
*
|
|
11535
11547
|
* 创建投递
|
|
11536
11548
|
*
|
|
@@ -11554,7 +11566,7 @@ class Client$1 {
|
|
|
11554
11566
|
/**
|
|
11555
11567
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get&version=v1 click to debug }
|
|
11556
11568
|
*
|
|
11557
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11569
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/get document }
|
|
11558
11570
|
*
|
|
11559
11571
|
* 获取投递信息
|
|
11560
11572
|
*
|
|
@@ -11578,7 +11590,7 @@ class Client$1 {
|
|
|
11578
11590
|
/**
|
|
11579
11591
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
11580
11592
|
*
|
|
11581
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11593
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/list document }
|
|
11582
11594
|
*
|
|
11583
11595
|
* 获取投递列表
|
|
11584
11596
|
*
|
|
@@ -11602,7 +11614,7 @@ class Client$1 {
|
|
|
11602
11614
|
/**
|
|
11603
11615
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=offer&version=v1 click to debug }
|
|
11604
11616
|
*
|
|
11605
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11617
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/offer document }
|
|
11606
11618
|
*
|
|
11607
11619
|
* 获取 Offer 信息
|
|
11608
11620
|
*
|
|
@@ -11626,7 +11638,7 @@ class Client$1 {
|
|
|
11626
11638
|
/**
|
|
11627
11639
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=terminate&version=v1 click to debug }
|
|
11628
11640
|
*
|
|
11629
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11641
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/terminate document }
|
|
11630
11642
|
*
|
|
11631
11643
|
* 终止投递
|
|
11632
11644
|
*
|
|
@@ -11650,7 +11662,7 @@ class Client$1 {
|
|
|
11650
11662
|
/**
|
|
11651
11663
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=transfer_onboard&version=v1 click to debug }
|
|
11652
11664
|
*
|
|
11653
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
11665
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/transfer_onboard document }
|
|
11654
11666
|
*
|
|
11655
11667
|
* 操作候选人入职
|
|
11656
11668
|
*
|
|
@@ -11673,17 +11685,13 @@ class Client$1 {
|
|
|
11673
11685
|
}),
|
|
11674
11686
|
},
|
|
11675
11687
|
/**
|
|
11676
|
-
*
|
|
11688
|
+
* application.interview
|
|
11677
11689
|
*/
|
|
11678
11690
|
applicationInterview: {
|
|
11679
11691
|
/**
|
|
11680
11692
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
|
|
11681
11693
|
*
|
|
11682
|
-
* {@link https://open.feishu.cn/
|
|
11683
|
-
*
|
|
11684
|
-
* 获取面试记录列表
|
|
11685
|
-
*
|
|
11686
|
-
* 根据投递 ID 获取面试记录列表
|
|
11694
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=application.interview&version=v1 document }
|
|
11687
11695
|
*/
|
|
11688
11696
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11689
11697
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -11838,7 +11846,7 @@ class Client$1 {
|
|
|
11838
11846
|
/**
|
|
11839
11847
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
|
|
11840
11848
|
*
|
|
11841
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/job/get
|
|
11849
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get document }
|
|
11842
11850
|
*
|
|
11843
11851
|
* 获取职位信息
|
|
11844
11852
|
*
|
|
@@ -11896,7 +11904,7 @@ class Client$1 {
|
|
|
11896
11904
|
/**
|
|
11897
11905
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
|
|
11898
11906
|
*
|
|
11899
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/
|
|
11907
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_process/list document }
|
|
11900
11908
|
*
|
|
11901
11909
|
* 获取招聘流程信息
|
|
11902
11910
|
*
|
|
@@ -12020,17 +12028,13 @@ class Client$1 {
|
|
|
12020
12028
|
}),
|
|
12021
12029
|
},
|
|
12022
12030
|
/**
|
|
12023
|
-
*
|
|
12031
|
+
* offer_schema
|
|
12024
12032
|
*/
|
|
12025
12033
|
offerSchema: {
|
|
12026
12034
|
/**
|
|
12027
12035
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_schema&apiName=get&version=v1 click to debug }
|
|
12028
12036
|
*
|
|
12029
|
-
* {@link https://open.feishu.cn/
|
|
12030
|
-
*
|
|
12031
|
-
* 获取 Offer 申请表详细信息
|
|
12032
|
-
*
|
|
12033
|
-
* 根据 Offer 申请表 ID,获取 Offer 申请表的详细信息
|
|
12037
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=offer_schema&version=v1 document }
|
|
12034
12038
|
*/
|
|
12035
12039
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12036
12040
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12161,7 +12165,7 @@ class Client$1 {
|
|
|
12161
12165
|
/**
|
|
12162
12166
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
|
|
12163
12167
|
*
|
|
12164
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
12168
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/get document }
|
|
12165
12169
|
*
|
|
12166
12170
|
* 获取人才信息
|
|
12167
12171
|
*
|
|
@@ -12403,7 +12407,7 @@ class Client$1 {
|
|
|
12403
12407
|
*
|
|
12404
12408
|
* 解散群组。
|
|
12405
12409
|
*
|
|
12406
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 如果使用tenant_access_token,需要机器人符合以下任一情况才可解散群:; - 机器人是群主; - 机器人是群的创建者且具备==更新应用所创建群的群信息==权限;- 如果使用user_access_token
|
|
12410
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 如果使用tenant_access_token,需要机器人符合以下任一情况才可解散群:; - 机器人是群主; - 机器人是群的创建者且具备==更新应用所创建群的群信息==权限;- 如果使用user_access_token,需要对应的用户是群主才可解散群
|
|
12407
12411
|
*/
|
|
12408
12412
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12409
12413
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12429,7 +12433,7 @@ class Client$1 {
|
|
|
12429
12433
|
*
|
|
12430
12434
|
* 获取群名称、群描述、群头像、群主 ID 等群基本信息。
|
|
12431
12435
|
*
|
|
12432
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群里(否则只会返回群名称、群头像等基本信息);-
|
|
12436
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群里(否则只会返回群名称、群头像等基本信息);- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12433
12437
|
*/
|
|
12434
12438
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12435
12439
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12455,7 +12459,7 @@ class Client$1 {
|
|
|
12455
12459
|
*
|
|
12456
12460
|
* 获取指定群的分享链接
|
|
12457
12461
|
*
|
|
12458
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;-
|
|
12462
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
|
|
12459
12463
|
*/
|
|
12460
12464
|
link: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12461
12465
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12629,7 +12633,7 @@ class Client$1 {
|
|
|
12629
12633
|
*
|
|
12630
12634
|
* 更新群头像、群名称、群描述、群配置、转让群主等。
|
|
12631
12635
|
*
|
|
12632
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 对于群主/群管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可更新所有信息;- 对于不满足上述权限条件的群成员或机器人:; - 若未开启 ==仅群主和群管理员可编辑群信息== 配置,仅可更新群头像、群名称、群描述、群国际化名称信息; - 若开启了 ==仅群主和群管理员可编辑群信息==
|
|
12636
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 对于群主/群管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可更新所有信息;- 对于不满足上述权限条件的群成员或机器人:; - 若未开启 ==仅群主和群管理员可编辑群信息== 配置,仅可更新群头像、群名称、群描述、群国际化名称信息; - 若开启了 ==仅群主和群管理员可编辑群信息== 配置,任何群信息都不能修改
|
|
12633
12637
|
*/
|
|
12634
12638
|
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12635
12639
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12717,7 +12721,7 @@ class Client$1 {
|
|
|
12717
12721
|
*
|
|
12718
12722
|
* 将用户或机器人拉入群聊。
|
|
12719
12723
|
*
|
|
12720
|
-
* 注意事项:; - 应用需要开启[机器人能力](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); - 机器人或授权用户必须在群组中;- 外部租户不能被加入到内部群中;-
|
|
12724
|
+
* 注意事项:; - 应用需要开启[机器人能力](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); - 机器人或授权用户必须在群组中;- 外部租户不能被加入到内部群中;- 操作内部群时,操作者须与群组在同一租户下; - 在开启 ==仅群主和群管理员可添加群成员== 的设置时,仅有群主/管理员 或 创建群组且具备 ==更新应用所创建群的群信息== 权限的机器人,可以拉用户或者机器人进群; - 在未开启 ==仅群主和群管理员可添加群成员== 的设置时,所有群成员都可以拉用户或机器人进群
|
|
12721
12725
|
*/
|
|
12722
12726
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12723
12727
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12743,7 +12747,7 @@ class Client$1 {
|
|
|
12743
12747
|
*
|
|
12744
12748
|
* 将用户或机器人移出群聊。
|
|
12745
12749
|
*
|
|
12746
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 用户或机器人在任何条件下均可移除自己出群(即主动退群);- 仅有群主/管理员 或 创建群组并且具备 ==更新应用所创建群的群信息== 权限的机器人,可以移除其他用户或者机器人;- 每次请求,最多移除50个用户或者5个机器人;-
|
|
12750
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 用户或机器人在任何条件下均可移除自己出群(即主动退群);- 仅有群主/管理员 或 创建群组并且具备 ==更新应用所创建群的群信息== 权限的机器人,可以移除其他用户或者机器人;- 每次请求,最多移除50个用户或者5个机器人;- 操作内部群时,操作者须与群组在同一租户下
|
|
12747
12751
|
*/
|
|
12748
12752
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12749
12753
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12817,7 +12821,7 @@ class Client$1 {
|
|
|
12817
12821
|
*
|
|
12818
12822
|
* 获取用户/机器人所在群的群成员列表。
|
|
12819
12823
|
*
|
|
12820
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中; - 该接口不会返回群内的机器人成员; - 由于返回的群成员列表会过滤掉机器人成员,因此返回的群成员个数可能会小于指定的page_size; - 如果有同一时间加入群的群成员,会一次性返回,这会导致返回的群成员个数可能会大于指定的page_size;-
|
|
12824
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中; - 该接口不会返回群内的机器人成员; - 由于返回的群成员列表会过滤掉机器人成员,因此返回的群成员个数可能会小于指定的page_size; - 如果有同一时间加入群的群成员,会一次性返回,这会导致返回的群成员个数可能会大于指定的page_size;- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12821
12825
|
*/
|
|
12822
12826
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12823
12827
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -12843,7 +12847,7 @@ class Client$1 {
|
|
|
12843
12847
|
*
|
|
12844
12848
|
* 根据使用的access_token判断对应的用户或者机器人是否在群里。
|
|
12845
12849
|
*
|
|
12846
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);-
|
|
12850
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 获取内部群信息时,操作者须与群组在同一租户下
|
|
12847
12851
|
*/
|
|
12848
12852
|
isInChat: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12849
12853
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13005,7 +13009,7 @@ class Client$1 {
|
|
|
13005
13009
|
*
|
|
13006
13010
|
* 添加自定义会话标签页。
|
|
13007
13011
|
*
|
|
13008
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;-
|
|
13012
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许添加类型为`doc`和`url`的会话标签页;- 添加doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;- tab_config字段当前只对`url`类型的会话标签页生效;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以添加会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13009
13013
|
*/
|
|
13010
13014
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13011
13015
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13031,7 +13035,7 @@ class Client$1 {
|
|
|
13031
13035
|
*
|
|
13032
13036
|
* 删除会话标签页。
|
|
13033
13037
|
*
|
|
13034
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许删除类型为`doc`和`url`的会话标签页;-
|
|
13038
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许删除类型为`doc`和`url`的会话标签页;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以删除会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13035
13039
|
*/
|
|
13036
13040
|
deleteTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13037
13041
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13057,7 +13061,7 @@ class Client$1 {
|
|
|
13057
13061
|
*
|
|
13058
13062
|
* 拉取会话标签页。
|
|
13059
13063
|
*
|
|
13060
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;-
|
|
13064
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 操作内部群时,操作者须与群组在同一租户下
|
|
13061
13065
|
*/
|
|
13062
13066
|
listTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13063
13067
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13083,7 +13087,7 @@ class Client$1 {
|
|
|
13083
13087
|
*
|
|
13084
13088
|
* 会话标签页排序。
|
|
13085
13089
|
*
|
|
13086
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 消息标签页强制固定为第一顺位,不参与排序,但是请求体中必须包含该标签页的Tab ID;-
|
|
13090
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 消息标签页强制固定为第一顺位,不参与排序,但是请求体中必须包含该标签页的Tab ID;- 操作内部群时,操作者须与群组在同一租户下
|
|
13087
13091
|
*/
|
|
13088
13092
|
sortTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13089
13093
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13109,7 +13113,7 @@ class Client$1 {
|
|
|
13109
13113
|
*
|
|
13110
13114
|
* 更新会话标签页
|
|
13111
13115
|
*
|
|
13112
|
-
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许更新类型为`doc`和`url`的会话标签页;- 更新doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;-
|
|
13116
|
+
* 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app);- 机器人或授权用户必须在群里;- 只允许更新类型为`doc`和`url`的会话标签页;- 更新doc类型时,操作者(access token对应的身份)需要拥有对应文档的权限;- 在开启 ==仅群主和管理员可管理标签页== 的设置时,仅群主和群管理员可以更新会话标签页;- 操作内部群时,操作者须与群组在同一租户下
|
|
13113
13117
|
*/
|
|
13114
13118
|
updateTabs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13115
13119
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13140,7 +13144,7 @@ class Client$1 {
|
|
|
13140
13144
|
*
|
|
13141
13145
|
* 撤销会话中的置顶。
|
|
13142
13146
|
*
|
|
13143
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;-
|
|
13147
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 撤销内部群置顶时,操作者须与群组在同一租户下
|
|
13144
13148
|
*/
|
|
13145
13149
|
deleteTopNotice: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13146
13150
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13166,7 +13170,7 @@ class Client$1 {
|
|
|
13166
13170
|
*
|
|
13167
13171
|
* 更新会话中的群置顶信息,可以将群中的某一条消息,或者群公告置顶显示。
|
|
13168
13172
|
*
|
|
13169
|
-
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;-
|
|
13173
|
+
* 注意事项:; - 应用需要开启[机器人能力](https://open.feishu.cn/document/home/develop-a-bot-in-5-minutes/create-an-app); - 机器人或授权用户必须在群组中;- 更新内部群置顶时,操作者须与群组在同一租户下
|
|
13170
13174
|
*/
|
|
13171
13175
|
putTopNotice: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13172
13176
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -13331,7 +13335,7 @@ class Client$1 {
|
|
|
13331
13335
|
}),
|
|
13332
13336
|
},
|
|
13333
13337
|
/**
|
|
13334
|
-
*
|
|
13338
|
+
* 消息加急
|
|
13335
13339
|
*/
|
|
13336
13340
|
message: {
|
|
13337
13341
|
/**
|
|
@@ -13463,7 +13467,7 @@ class Client$1 {
|
|
|
13463
13467
|
/**
|
|
13464
13468
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=list&version=v1 click to debug }
|
|
13465
13469
|
*
|
|
13466
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/
|
|
13470
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/list document }
|
|
13467
13471
|
*
|
|
13468
13472
|
* 获取会话历史消息
|
|
13469
13473
|
*
|
|
@@ -16307,7 +16311,7 @@ class Client$1 {
|
|
|
16307
16311
|
}),
|
|
16308
16312
|
},
|
|
16309
16313
|
/**
|
|
16310
|
-
*
|
|
16314
|
+
* 工作表
|
|
16311
16315
|
*/
|
|
16312
16316
|
spreadsheetSheet: {
|
|
16313
16317
|
/**
|
|
@@ -16698,7 +16702,7 @@ class Client$1 {
|
|
|
16698
16702
|
*
|
|
16699
16703
|
* 完成任务
|
|
16700
16704
|
*
|
|
16701
|
-
*
|
|
16705
|
+
* 该接口用于将任务状态修改为“已完成”。;完成任务是指整个任务全部完成,而不支持执行者分别完成任务,执行成功后,任务对所有关联用户都变为完成状态。
|
|
16702
16706
|
*/
|
|
16703
16707
|
complete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16704
16708
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -16722,7 +16726,7 @@ class Client$1 {
|
|
|
16722
16726
|
*
|
|
16723
16727
|
* 创建任务
|
|
16724
16728
|
*
|
|
16725
|
-
*
|
|
16729
|
+
* 该接口可以创建一个任务,支持填写任务的基本信息,包括任务的标题,描述及协作者等。;在此基础上,创建任务时可以设置截止时间和重复规则,将任务设置为定期执行的重复任务。通过添加协作者,则可以让其他用户协同完成该任务。;此外,接口也提供了一些支持自定义内容的字段,调用方可以实现定制化效果,如完成任务后跳转到指定结束界面。
|
|
16726
16730
|
*/
|
|
16727
16731
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16728
16732
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -16919,7 +16923,7 @@ class Client$1 {
|
|
|
16919
16923
|
*
|
|
16920
16924
|
* 新增执行者
|
|
16921
16925
|
*
|
|
16922
|
-
*
|
|
16926
|
+
* 该接口用于新增任务执行者,一次性可以添加多个执行者。;只有任务的创建者和执行者才能添加执行者,关注人无权限添加。
|
|
16923
16927
|
*/
|
|
16924
16928
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16925
16929
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18364,19 +18368,234 @@ class Client$1 {
|
|
|
18364
18368
|
}),
|
|
18365
18369
|
},
|
|
18366
18370
|
/**
|
|
18367
|
-
*
|
|
18371
|
+
* 会议室
|
|
18368
18372
|
*/
|
|
18369
|
-
|
|
18373
|
+
room: {
|
|
18370
18374
|
/**
|
|
18371
|
-
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=
|
|
18375
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=create&version=v1 click to debug }
|
|
18372
18376
|
*
|
|
18373
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/
|
|
18377
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/create document }
|
|
18374
18378
|
*
|
|
18375
|
-
*
|
|
18379
|
+
* 创建会议室
|
|
18380
|
+
*
|
|
18381
|
+
* 该接口用于创建会议室
|
|
18382
|
+
*/
|
|
18383
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18384
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18385
|
+
return httpInstance
|
|
18386
|
+
.request({
|
|
18387
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18388
|
+
method: "POST",
|
|
18389
|
+
data,
|
|
18390
|
+
params,
|
|
18391
|
+
headers,
|
|
18392
|
+
})
|
|
18393
|
+
.catch((e) => {
|
|
18394
|
+
this.logger.error(formatErrors(e));
|
|
18395
|
+
throw e;
|
|
18396
|
+
});
|
|
18397
|
+
}),
|
|
18398
|
+
/**
|
|
18399
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=delete&version=v1 click to debug }
|
|
18400
|
+
*
|
|
18401
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/delete document }
|
|
18402
|
+
*
|
|
18403
|
+
* 删除会议室
|
|
18404
|
+
*
|
|
18405
|
+
* 该接口可以用来删除某个会议室
|
|
18406
|
+
*/
|
|
18407
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18408
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18409
|
+
return httpInstance
|
|
18410
|
+
.request({
|
|
18411
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18412
|
+
method: "DELETE",
|
|
18413
|
+
data,
|
|
18414
|
+
params,
|
|
18415
|
+
headers,
|
|
18416
|
+
})
|
|
18417
|
+
.catch((e) => {
|
|
18418
|
+
this.logger.error(formatErrors(e));
|
|
18419
|
+
throw e;
|
|
18420
|
+
});
|
|
18421
|
+
}),
|
|
18422
|
+
/**
|
|
18423
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=get&version=v1 click to debug }
|
|
18424
|
+
*
|
|
18425
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/get document }
|
|
18426
|
+
*
|
|
18427
|
+
* 查询会议室详情
|
|
18428
|
+
*
|
|
18429
|
+
* 该接口可以使用会议室ID查询会议室详情
|
|
18430
|
+
*/
|
|
18431
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18432
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18433
|
+
return httpInstance
|
|
18434
|
+
.request({
|
|
18435
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18436
|
+
method: "GET",
|
|
18437
|
+
data,
|
|
18438
|
+
params,
|
|
18439
|
+
headers,
|
|
18440
|
+
})
|
|
18441
|
+
.catch((e) => {
|
|
18442
|
+
this.logger.error(formatErrors(e));
|
|
18443
|
+
throw e;
|
|
18444
|
+
});
|
|
18445
|
+
}),
|
|
18446
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18447
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18448
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18449
|
+
const res = yield httpInstance
|
|
18450
|
+
.request({
|
|
18451
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18452
|
+
method: "GET",
|
|
18453
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
18454
|
+
params: pickBy(innerPayload.params, identity),
|
|
18455
|
+
})
|
|
18456
|
+
.catch((e) => {
|
|
18457
|
+
this.logger.error(formatErrors(e));
|
|
18458
|
+
});
|
|
18459
|
+
return res;
|
|
18460
|
+
});
|
|
18461
|
+
const Iterable = {
|
|
18462
|
+
[Symbol.asyncIterator]() {
|
|
18463
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
18464
|
+
let hasMore = true;
|
|
18465
|
+
let pageToken;
|
|
18466
|
+
while (hasMore) {
|
|
18467
|
+
try {
|
|
18468
|
+
const res = yield __await(sendRequest({
|
|
18469
|
+
headers,
|
|
18470
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18471
|
+
data,
|
|
18472
|
+
}));
|
|
18473
|
+
const _b = get(res, "data") || {}, {
|
|
18474
|
+
// @ts-ignore
|
|
18475
|
+
has_more,
|
|
18476
|
+
// @ts-ignore
|
|
18477
|
+
page_token,
|
|
18478
|
+
// @ts-ignore
|
|
18479
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18480
|
+
yield yield __await(rest);
|
|
18481
|
+
hasMore = Boolean(has_more);
|
|
18482
|
+
pageToken = page_token || next_page_token;
|
|
18483
|
+
}
|
|
18484
|
+
catch (e) {
|
|
18485
|
+
yield yield __await(null);
|
|
18486
|
+
break;
|
|
18487
|
+
}
|
|
18488
|
+
}
|
|
18489
|
+
});
|
|
18490
|
+
},
|
|
18491
|
+
};
|
|
18492
|
+
return Iterable;
|
|
18493
|
+
}),
|
|
18494
|
+
/**
|
|
18495
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=list&version=v1 click to debug }
|
|
18496
|
+
*
|
|
18497
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/list document }
|
|
18498
|
+
*
|
|
18499
|
+
* 查询会议室列表
|
|
18376
18500
|
*
|
|
18377
|
-
*
|
|
18501
|
+
* 该接口可以用来查询某个会议室层级下会议室列表
|
|
18502
|
+
*/
|
|
18503
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18504
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18505
|
+
return httpInstance
|
|
18506
|
+
.request({
|
|
18507
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms`, path),
|
|
18508
|
+
method: "GET",
|
|
18509
|
+
data,
|
|
18510
|
+
params,
|
|
18511
|
+
headers,
|
|
18512
|
+
})
|
|
18513
|
+
.catch((e) => {
|
|
18514
|
+
this.logger.error(formatErrors(e));
|
|
18515
|
+
throw e;
|
|
18516
|
+
});
|
|
18517
|
+
}),
|
|
18518
|
+
/**
|
|
18519
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=mget&version=v1 click to debug }
|
|
18520
|
+
*
|
|
18521
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/mget document }
|
|
18522
|
+
*
|
|
18523
|
+
* 批量查询会议室详情
|
|
18378
18524
|
*
|
|
18379
|
-
*
|
|
18525
|
+
* 该接口可以使用会议室ID批量查询会议室详情
|
|
18526
|
+
*/
|
|
18527
|
+
mget: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18528
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18529
|
+
return httpInstance
|
|
18530
|
+
.request({
|
|
18531
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/mget`, path),
|
|
18532
|
+
method: "POST",
|
|
18533
|
+
data,
|
|
18534
|
+
params,
|
|
18535
|
+
headers,
|
|
18536
|
+
})
|
|
18537
|
+
.catch((e) => {
|
|
18538
|
+
this.logger.error(formatErrors(e));
|
|
18539
|
+
throw e;
|
|
18540
|
+
});
|
|
18541
|
+
}),
|
|
18542
|
+
/**
|
|
18543
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=patch&version=v1 click to debug }
|
|
18544
|
+
*
|
|
18545
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/patch document }
|
|
18546
|
+
*
|
|
18547
|
+
* 更新会议室
|
|
18548
|
+
*
|
|
18549
|
+
* 该接口可以用来更新某个会议室的信息
|
|
18550
|
+
*/
|
|
18551
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18552
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18553
|
+
return httpInstance
|
|
18554
|
+
.request({
|
|
18555
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/:room_id`, path),
|
|
18556
|
+
method: "PATCH",
|
|
18557
|
+
data,
|
|
18558
|
+
params,
|
|
18559
|
+
headers,
|
|
18560
|
+
})
|
|
18561
|
+
.catch((e) => {
|
|
18562
|
+
this.logger.error(formatErrors(e));
|
|
18563
|
+
throw e;
|
|
18564
|
+
});
|
|
18565
|
+
}),
|
|
18566
|
+
/**
|
|
18567
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room&apiName=search&version=v1 click to debug }
|
|
18568
|
+
*
|
|
18569
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room/search document }
|
|
18570
|
+
*
|
|
18571
|
+
* 搜索会议室
|
|
18572
|
+
*
|
|
18573
|
+
* 该接口可以用来搜索会议室,支持使用关键词进行搜索,也支持使用自定义会议室ID进行查询
|
|
18574
|
+
*/
|
|
18575
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18576
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18577
|
+
return httpInstance
|
|
18578
|
+
.request({
|
|
18579
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/rooms/search`, path),
|
|
18580
|
+
method: "POST",
|
|
18581
|
+
data,
|
|
18582
|
+
params,
|
|
18583
|
+
headers,
|
|
18584
|
+
})
|
|
18585
|
+
.catch((e) => {
|
|
18586
|
+
this.logger.error(formatErrors(e));
|
|
18587
|
+
throw e;
|
|
18588
|
+
});
|
|
18589
|
+
}),
|
|
18590
|
+
},
|
|
18591
|
+
/**
|
|
18592
|
+
* room_config
|
|
18593
|
+
*/
|
|
18594
|
+
roomConfig: {
|
|
18595
|
+
/**
|
|
18596
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=query&version=v1 click to debug }
|
|
18597
|
+
*
|
|
18598
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=vc&resource=room_config&version=v1 document }
|
|
18380
18599
|
*/
|
|
18381
18600
|
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18382
18601
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18396,19 +18615,66 @@ class Client$1 {
|
|
|
18396
18615
|
/**
|
|
18397
18616
|
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set&version=v1 click to debug }
|
|
18398
18617
|
*
|
|
18399
|
-
* {@link https://open.feishu.cn/
|
|
18618
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set&project=vc&resource=room_config&version=v1 document }
|
|
18619
|
+
*/
|
|
18620
|
+
set: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18621
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18622
|
+
return httpInstance
|
|
18623
|
+
.request({
|
|
18624
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set`, path),
|
|
18625
|
+
method: "POST",
|
|
18626
|
+
data,
|
|
18627
|
+
params,
|
|
18628
|
+
headers,
|
|
18629
|
+
})
|
|
18630
|
+
.catch((e) => {
|
|
18631
|
+
this.logger.error(formatErrors(e));
|
|
18632
|
+
throw e;
|
|
18633
|
+
});
|
|
18634
|
+
}),
|
|
18635
|
+
},
|
|
18636
|
+
/**
|
|
18637
|
+
* 会议室层级
|
|
18638
|
+
*/
|
|
18639
|
+
roomLevel: {
|
|
18640
|
+
/**
|
|
18641
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=create&version=v1 click to debug }
|
|
18400
18642
|
*
|
|
18401
|
-
*
|
|
18643
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/create document }
|
|
18402
18644
|
*
|
|
18403
|
-
*
|
|
18645
|
+
* 创建会议室层级
|
|
18404
18646
|
*
|
|
18405
|
-
*
|
|
18647
|
+
* 该接口用于创建会议室层级
|
|
18406
18648
|
*/
|
|
18407
|
-
|
|
18649
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18408
18650
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18409
18651
|
return httpInstance
|
|
18410
18652
|
.request({
|
|
18411
|
-
url: fillApiPath(`${this.domain}/open-apis/vc/v1/
|
|
18653
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18654
|
+
method: "POST",
|
|
18655
|
+
data,
|
|
18656
|
+
params,
|
|
18657
|
+
headers,
|
|
18658
|
+
})
|
|
18659
|
+
.catch((e) => {
|
|
18660
|
+
this.logger.error(formatErrors(e));
|
|
18661
|
+
throw e;
|
|
18662
|
+
});
|
|
18663
|
+
}),
|
|
18664
|
+
/**
|
|
18665
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=del&version=v1 click to debug }
|
|
18666
|
+
*
|
|
18667
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/del document }
|
|
18668
|
+
*
|
|
18669
|
+
* 删除会议室层级
|
|
18670
|
+
*
|
|
18671
|
+
* 该接口可以用来删除某个会议室层级
|
|
18672
|
+
*/
|
|
18673
|
+
del: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18674
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18675
|
+
return httpInstance
|
|
18676
|
+
.request({
|
|
18677
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/del`, path),
|
|
18412
18678
|
method: "POST",
|
|
18413
18679
|
data,
|
|
18414
18680
|
params,
|
|
@@ -18419,6 +18685,227 @@ class Client$1 {
|
|
|
18419
18685
|
throw e;
|
|
18420
18686
|
});
|
|
18421
18687
|
}),
|
|
18688
|
+
/**
|
|
18689
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=get&version=v1 click to debug }
|
|
18690
|
+
*
|
|
18691
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/get document }
|
|
18692
|
+
*
|
|
18693
|
+
* 查询会议室层级详情
|
|
18694
|
+
*
|
|
18695
|
+
* 该接口可以使用会议室层级ID查询会议室层级详情
|
|
18696
|
+
*/
|
|
18697
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18698
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18699
|
+
return httpInstance
|
|
18700
|
+
.request({
|
|
18701
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`, path),
|
|
18702
|
+
method: "GET",
|
|
18703
|
+
data,
|
|
18704
|
+
params,
|
|
18705
|
+
headers,
|
|
18706
|
+
})
|
|
18707
|
+
.catch((e) => {
|
|
18708
|
+
this.logger.error(formatErrors(e));
|
|
18709
|
+
throw e;
|
|
18710
|
+
});
|
|
18711
|
+
}),
|
|
18712
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18713
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18714
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18715
|
+
const res = yield httpInstance
|
|
18716
|
+
.request({
|
|
18717
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18718
|
+
method: "GET",
|
|
18719
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
18720
|
+
params: pickBy(innerPayload.params, identity),
|
|
18721
|
+
})
|
|
18722
|
+
.catch((e) => {
|
|
18723
|
+
this.logger.error(formatErrors(e));
|
|
18724
|
+
});
|
|
18725
|
+
return res;
|
|
18726
|
+
});
|
|
18727
|
+
const Iterable = {
|
|
18728
|
+
[Symbol.asyncIterator]() {
|
|
18729
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
18730
|
+
let hasMore = true;
|
|
18731
|
+
let pageToken;
|
|
18732
|
+
while (hasMore) {
|
|
18733
|
+
try {
|
|
18734
|
+
const res = yield __await(sendRequest({
|
|
18735
|
+
headers,
|
|
18736
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18737
|
+
data,
|
|
18738
|
+
}));
|
|
18739
|
+
const _b = get(res, "data") || {}, {
|
|
18740
|
+
// @ts-ignore
|
|
18741
|
+
has_more,
|
|
18742
|
+
// @ts-ignore
|
|
18743
|
+
page_token,
|
|
18744
|
+
// @ts-ignore
|
|
18745
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18746
|
+
yield yield __await(rest);
|
|
18747
|
+
hasMore = Boolean(has_more);
|
|
18748
|
+
pageToken = page_token || next_page_token;
|
|
18749
|
+
}
|
|
18750
|
+
catch (e) {
|
|
18751
|
+
yield yield __await(null);
|
|
18752
|
+
break;
|
|
18753
|
+
}
|
|
18754
|
+
}
|
|
18755
|
+
});
|
|
18756
|
+
},
|
|
18757
|
+
};
|
|
18758
|
+
return Iterable;
|
|
18759
|
+
}),
|
|
18760
|
+
/**
|
|
18761
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=list&version=v1 click to debug }
|
|
18762
|
+
*
|
|
18763
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/list document }
|
|
18764
|
+
*
|
|
18765
|
+
* 查询会议室层级列表
|
|
18766
|
+
*
|
|
18767
|
+
* 该接口用来查询某个会议室层级下的子层级列表
|
|
18768
|
+
*/
|
|
18769
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18770
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18771
|
+
return httpInstance
|
|
18772
|
+
.request({
|
|
18773
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels`, path),
|
|
18774
|
+
method: "GET",
|
|
18775
|
+
data,
|
|
18776
|
+
params,
|
|
18777
|
+
headers,
|
|
18778
|
+
})
|
|
18779
|
+
.catch((e) => {
|
|
18780
|
+
this.logger.error(formatErrors(e));
|
|
18781
|
+
throw e;
|
|
18782
|
+
});
|
|
18783
|
+
}),
|
|
18784
|
+
/**
|
|
18785
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=mget&version=v1 click to debug }
|
|
18786
|
+
*
|
|
18787
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/mget document }
|
|
18788
|
+
*
|
|
18789
|
+
* 批量查询会议室层级详情
|
|
18790
|
+
*
|
|
18791
|
+
* 该接口可以使用会议室层级ID批量查询会议室层级详情
|
|
18792
|
+
*/
|
|
18793
|
+
mget: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18794
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18795
|
+
return httpInstance
|
|
18796
|
+
.request({
|
|
18797
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/mget`, path),
|
|
18798
|
+
method: "POST",
|
|
18799
|
+
data,
|
|
18800
|
+
params,
|
|
18801
|
+
headers,
|
|
18802
|
+
})
|
|
18803
|
+
.catch((e) => {
|
|
18804
|
+
this.logger.error(formatErrors(e));
|
|
18805
|
+
throw e;
|
|
18806
|
+
});
|
|
18807
|
+
}),
|
|
18808
|
+
/**
|
|
18809
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=patch&version=v1 click to debug }
|
|
18810
|
+
*
|
|
18811
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/patch document }
|
|
18812
|
+
*
|
|
18813
|
+
* 更新会议室层级
|
|
18814
|
+
*
|
|
18815
|
+
* 该接口可以用来更新某个会议室层级的信息
|
|
18816
|
+
*/
|
|
18817
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18818
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18819
|
+
return httpInstance
|
|
18820
|
+
.request({
|
|
18821
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`, path),
|
|
18822
|
+
method: "PATCH",
|
|
18823
|
+
data,
|
|
18824
|
+
params,
|
|
18825
|
+
headers,
|
|
18826
|
+
})
|
|
18827
|
+
.catch((e) => {
|
|
18828
|
+
this.logger.error(formatErrors(e));
|
|
18829
|
+
throw e;
|
|
18830
|
+
});
|
|
18831
|
+
}),
|
|
18832
|
+
/**
|
|
18833
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_level&apiName=search&version=v1 click to debug }
|
|
18834
|
+
*
|
|
18835
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/room_level/search document }
|
|
18836
|
+
*
|
|
18837
|
+
* 搜索会议室层级
|
|
18838
|
+
*
|
|
18839
|
+
* 该接口可以用来搜索会议室层级,支持使用自定义会议室层级ID进行查询
|
|
18840
|
+
*/
|
|
18841
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18842
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18843
|
+
return httpInstance
|
|
18844
|
+
.request({
|
|
18845
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_levels/search`, path),
|
|
18846
|
+
method: "GET",
|
|
18847
|
+
data,
|
|
18848
|
+
params,
|
|
18849
|
+
headers,
|
|
18850
|
+
})
|
|
18851
|
+
.catch((e) => {
|
|
18852
|
+
this.logger.error(formatErrors(e));
|
|
18853
|
+
throw e;
|
|
18854
|
+
});
|
|
18855
|
+
}),
|
|
18856
|
+
},
|
|
18857
|
+
/**
|
|
18858
|
+
* 会议室配置
|
|
18859
|
+
*/
|
|
18860
|
+
scopeConfig: {
|
|
18861
|
+
/**
|
|
18862
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=scope_config&apiName=create&version=v1 click to debug }
|
|
18863
|
+
*
|
|
18864
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/scope_config/create document }
|
|
18865
|
+
*
|
|
18866
|
+
* 设置会议室配置
|
|
18867
|
+
*
|
|
18868
|
+
* 该接口可以用来设置某个会议层级范围下或者某个会议室的配置
|
|
18869
|
+
*/
|
|
18870
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18871
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18872
|
+
return httpInstance
|
|
18873
|
+
.request({
|
|
18874
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/scope_config`, path),
|
|
18875
|
+
method: "POST",
|
|
18876
|
+
data,
|
|
18877
|
+
params,
|
|
18878
|
+
headers,
|
|
18879
|
+
})
|
|
18880
|
+
.catch((e) => {
|
|
18881
|
+
this.logger.error(formatErrors(e));
|
|
18882
|
+
throw e;
|
|
18883
|
+
});
|
|
18884
|
+
}),
|
|
18885
|
+
/**
|
|
18886
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=scope_config&apiName=get&version=v1 click to debug }
|
|
18887
|
+
*
|
|
18888
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/scope_config/get document }
|
|
18889
|
+
*
|
|
18890
|
+
* 查询会议室配置
|
|
18891
|
+
*
|
|
18892
|
+
* 该接口可以用来查询某个会议层级范围下或者某个会议室的配置
|
|
18893
|
+
*/
|
|
18894
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18895
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18896
|
+
return httpInstance
|
|
18897
|
+
.request({
|
|
18898
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/scope_config`, path),
|
|
18899
|
+
method: "GET",
|
|
18900
|
+
data,
|
|
18901
|
+
params,
|
|
18902
|
+
headers,
|
|
18903
|
+
})
|
|
18904
|
+
.catch((e) => {
|
|
18905
|
+
this.logger.error(formatErrors(e));
|
|
18906
|
+
throw e;
|
|
18907
|
+
});
|
|
18908
|
+
}),
|
|
18422
18909
|
},
|
|
18423
18910
|
};
|
|
18424
18911
|
/**
|
|
@@ -18486,11 +18973,11 @@ class Client$1 {
|
|
|
18486
18973
|
*
|
|
18487
18974
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space/get_node document }
|
|
18488
18975
|
*
|
|
18489
|
-
*
|
|
18976
|
+
* 获取知识空间节点信息
|
|
18490
18977
|
*
|
|
18491
|
-
*
|
|
18978
|
+
* 获取知识空间节点信息
|
|
18492
18979
|
*
|
|
18493
|
-
*
|
|
18980
|
+
* 知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 节点阅读权限
|
|
18494
18981
|
*/
|
|
18495
18982
|
getNode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18496
18983
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18593,9 +19080,9 @@ class Client$1 {
|
|
|
18593
19080
|
*
|
|
18594
19081
|
* 添加知识空间成员
|
|
18595
19082
|
*
|
|
18596
|
-
*
|
|
19083
|
+
* 添加知识空间成员或管理员。
|
|
18597
19084
|
*
|
|
18598
|
-
*
|
|
19085
|
+
* 知识空间具有[类型](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)和[可见性](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)的概念。不同的类型或可见性可以对本操作做出限制:;- 可见性限制:公开知识空间(visibility为public)对租户所有用户可见,因此不支持再添加成员,但可以添加管理员。;- 类型限制:个人知识空间 (type为person)为个人管理的知识空间,不支持添加其他管理员(包括应用/机器人)。但可以添加成员。;;;知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 为知识空间管理员
|
|
18599
19086
|
*/
|
|
18600
19087
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18601
19088
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18619,9 +19106,9 @@ class Client$1 {
|
|
|
18619
19106
|
*
|
|
18620
19107
|
* 删除知识空间成员
|
|
18621
19108
|
*
|
|
18622
|
-
*
|
|
19109
|
+
* 此接口用于删除知识空间成员或管理员。
|
|
18623
19110
|
*
|
|
18624
|
-
*
|
|
19111
|
+
* 知识空间具有[类型](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)和[可见性](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)的概念。不同的类型或可见性可以对本操作做出限制:;- 可见性限制:公开知识空间(visibility为public)对租户所有用户可见,因此不支持再删除成员,但可以删除管理员。;- 类型限制:个人知识空间 (type为person)为个人管理的知识空间,不支持删除管理员。但可以删除成员。;;;知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 为知识空间管理员
|
|
18625
19112
|
*/
|
|
18626
19113
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18627
19114
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18648,9 +19135,9 @@ class Client$1 {
|
|
|
18648
19135
|
*
|
|
18649
19136
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/copy document }
|
|
18650
19137
|
*
|
|
18651
|
-
*
|
|
19138
|
+
* 创建知识空间节点副本
|
|
18652
19139
|
*
|
|
18653
|
-
*
|
|
19140
|
+
* 此接口用于在知识空间创建节点副本到指定位置。
|
|
18654
19141
|
*/
|
|
18655
19142
|
copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18656
19143
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18672,11 +19159,11 @@ class Client$1 {
|
|
|
18672
19159
|
*
|
|
18673
19160
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/create document }
|
|
18674
19161
|
*
|
|
18675
|
-
*
|
|
19162
|
+
* 创建知识空间节点
|
|
18676
19163
|
*
|
|
18677
|
-
*
|
|
19164
|
+
* 此接口用于在知识节点里创建[节点](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-overview)到指定位置。
|
|
18678
19165
|
*
|
|
18679
|
-
*
|
|
19166
|
+
* 知识空间权限要求,当前使用的 access token 所代表的应用或用户拥有:;- **父节点**容器编辑权限
|
|
18680
19167
|
*/
|
|
18681
19168
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18682
19169
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18746,11 +19233,11 @@ class Client$1 {
|
|
|
18746
19233
|
*
|
|
18747
19234
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/list document }
|
|
18748
19235
|
*
|
|
18749
|
-
*
|
|
19236
|
+
* 获取知识空间子节点列表
|
|
18750
19237
|
*
|
|
18751
19238
|
* 此接口用于分页获取Wiki节点的子节点列表。;;此接口为分页接口。由于权限过滤,可能返回列表为空,但分页标记(has_more)为true,可以继续分页请求。
|
|
18752
19239
|
*
|
|
18753
|
-
*
|
|
19240
|
+
* 知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 父节点阅读权限
|
|
18754
19241
|
*/
|
|
18755
19242
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18756
19243
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18798,13 +19285,13 @@ class Client$1 {
|
|
|
18798
19285
|
*
|
|
18799
19286
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move_docs_to_wiki document }
|
|
18800
19287
|
*
|
|
18801
|
-
*
|
|
19288
|
+
* 移动云空间文档至知识空间
|
|
18802
19289
|
*
|
|
18803
|
-
*
|
|
19290
|
+
* 该接口允许移动云空间文档至知识空间,并挂载在指定位置
|
|
18804
19291
|
*
|
|
18805
|
-
*
|
|
19292
|
+
* 此接口为异步接口。若移动已完成(或文档已在Wiki中),则直接返回结果(Wiki token)。若尚未完成,则返回task id。请使用[获取任务结果](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/task/get)接口进行查询。;;知识库权限要求,当前使用的 access token 所代表的应用或用户拥有:;- 文档可管理权限;- 原文件夹编辑权限;- 目标父节点容器编辑权限
|
|
18806
19293
|
*
|
|
18807
|
-
* ### 移动操作
|
|
19294
|
+
* ### 移动操作 ###;移动后,文档将从“我的空间”或“共享空间”转移至“知识库”后,无法从下列入口查看到文档:;- 云空间主页:快速访问;- 我的空间;- 共享空间;;### 权限变更 ###;移动后,文档会向所有可查看“页面树”的用户显示,默认继承父页面的权限设置。;</md-alert
|
|
18808
19295
|
*/
|
|
18809
19296
|
moveDocsToWiki: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18810
19297
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -18892,7 +19379,7 @@ class Client$1 {
|
|
|
18892
19379
|
*
|
|
18893
19380
|
* 该方法用于获取wiki异步任务的结果
|
|
18894
19381
|
*
|
|
18895
|
-
*
|
|
19382
|
+
* 知识库权限要求,当前 access token 所代表的用户或应用(机器人):;- 为任务创建者
|
|
18896
19383
|
*/
|
|
18897
19384
|
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18898
19385
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -19053,7 +19540,9 @@ class TokenManager {
|
|
|
19053
19540
|
.catch((e) => {
|
|
19054
19541
|
this.logger.error(e);
|
|
19055
19542
|
});
|
|
19056
|
-
yield ((_b = this.cache) === null || _b === void 0 ? void 0 : _b.set(CTenantAccessToken, tenant_access_token,
|
|
19543
|
+
yield ((_b = this.cache) === null || _b === void 0 ? void 0 : _b.set(CTenantAccessToken, tenant_access_token,
|
|
19544
|
+
// Due to the time-consuming network, the expiration time needs to be 3 minutes earlier
|
|
19545
|
+
new Date().getTime() + expire * 1000 - 3 * 60 * 1000));
|
|
19057
19546
|
return tenant_access_token;
|
|
19058
19547
|
});
|
|
19059
19548
|
}
|
|
@@ -19099,7 +19588,9 @@ class TokenManager {
|
|
|
19099
19588
|
this.logger.error(e);
|
|
19100
19589
|
});
|
|
19101
19590
|
// 设置tenant_access_token
|
|
19102
|
-
yield this.cache.set(`larkMarketAccessToken${tenantKey}`, tenant_access_token,
|
|
19591
|
+
yield this.cache.set(`larkMarketAccessToken${tenantKey}`, tenant_access_token,
|
|
19592
|
+
// Due to the time-consuming network, the expiration time needs to be 3 minutes earlier
|
|
19593
|
+
new Date().getTime() + expire * 1000 - 3 * 60 * 1000);
|
|
19103
19594
|
return tenant_access_token;
|
|
19104
19595
|
});
|
|
19105
19596
|
}
|
|
@@ -19611,4 +20102,4 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
|
|
|
19611
20102
|
yield next();
|
|
19612
20103
|
});
|
|
19613
20104
|
|
|
19614
|
-
export { AESCipher, AppType, CAppTicket, CardActionHandler, Client, Domain, EventDispatcher, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };
|
|
20105
|
+
export { AESCipher, AppType, CAppTicket, CardActionHandler, Client, Domain, EventDispatcher, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, generateChallenge, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };
|