@larksuiteoapi/node-sdk 1.18.0 → 1.20.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 CHANGED
@@ -1102,6 +1102,32 @@ class Client$1 {
1102
1102
  * 应用使用情况
1103
1103
  */
1104
1104
  applicationAppUsage: {
1105
+ /**
1106
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=department_overview&version=v6 click to debug }
1107
+ *
1108
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/application-app_usage/department_overview document }
1109
+ *
1110
+ * 获取多部门应用使用概览(灰度租户可见)
1111
+ *
1112
+ * 查看应用在某一天/某一周/某一个月的使用数据,可以根据部门做多层子部门的筛选
1113
+ *
1114
+ * 1. 仅支持企业版/旗舰版租户使用;2. 一般每天早上10点产出前一天的数据;3. 已经支持的指标包括:应用的活跃用户数、累计用户数、新增用户数、访问页面数、打开次数;4. 按照部门查看数据时,可以分别展示当前部门以及其子部门的使用情况;5. 如果查询的部门在查询日期没有使用过应用,只返回指标:应用的活跃用户数指标;6. 数据从飞书4.10版本开始统计,使用飞书版本4.10及以下版本的用户数据不会被统计到;7. 调用频控为100次/分
1115
+ */
1116
+ departmentOverview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1117
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1118
+ return this.httpInstance
1119
+ .request({
1120
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`, path),
1121
+ method: "POST",
1122
+ data,
1123
+ params,
1124
+ headers,
1125
+ })
1126
+ .catch((e) => {
1127
+ this.logger.error(formatErrors(e));
1128
+ throw e;
1129
+ });
1130
+ }),
1105
1131
  /**
1106
1132
  * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
1107
1133
  *
@@ -1505,7 +1531,7 @@ class Client$1 {
1505
1531
  */
1506
1532
  this.approval = {
1507
1533
  /**
1508
- * 原生审批定义
1534
+ * 事件
1509
1535
  */
1510
1536
  approval: {
1511
1537
  /**
@@ -1637,6 +1663,26 @@ class Client$1 {
1637
1663
  throw e;
1638
1664
  });
1639
1665
  }),
1666
+ /**
1667
+ * {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
1668
+ *
1669
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
1670
+ */
1671
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1672
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1673
+ return this.httpInstance
1674
+ .request({
1675
+ url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
1676
+ method: "GET",
1677
+ data,
1678
+ params,
1679
+ headers,
1680
+ })
1681
+ .catch((e) => {
1682
+ this.logger.error(formatErrors(e));
1683
+ throw e;
1684
+ });
1685
+ }),
1640
1686
  },
1641
1687
  /**
1642
1688
  * 三方审批实例
@@ -2251,7 +2297,7 @@ class Client$1 {
2251
2297
  }),
2252
2298
  },
2253
2299
  /**
2254
- * 原生审批任务
2300
+ * 审批查询
2255
2301
  */
2256
2302
  task: {
2257
2303
  /**
@@ -6978,6 +7024,26 @@ class Client$1 {
6978
7024
  * 部门
6979
7025
  */
6980
7026
  department: {
7027
+ /**
7028
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=batch&version=v3 click to debug }
7029
+ *
7030
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=department&version=v3 document }
7031
+ */
7032
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7033
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7034
+ return this.httpInstance
7035
+ .request({
7036
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/departments/batch`, path),
7037
+ method: "GET",
7038
+ data,
7039
+ params,
7040
+ headers,
7041
+ })
7042
+ .catch((e) => {
7043
+ this.logger.error(formatErrors(e));
7044
+ throw e;
7045
+ });
7046
+ }),
6981
7047
  childrenWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6982
7048
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
6983
7049
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -8422,6 +8488,99 @@ class Client$1 {
8422
8488
  });
8423
8489
  }),
8424
8490
  },
8491
+ /**
8492
+ * job_title
8493
+ */
8494
+ jobTitle: {
8495
+ /**
8496
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
8497
+ *
8498
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
8499
+ */
8500
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8501
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8502
+ return this.httpInstance
8503
+ .request({
8504
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
8505
+ method: "GET",
8506
+ data,
8507
+ params,
8508
+ headers,
8509
+ })
8510
+ .catch((e) => {
8511
+ this.logger.error(formatErrors(e));
8512
+ throw e;
8513
+ });
8514
+ }),
8515
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8516
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8517
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
8518
+ const res = yield this.httpInstance
8519
+ .request({
8520
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
8521
+ method: "GET",
8522
+ headers: pickBy(innerPayload.headers, identity),
8523
+ params: pickBy(innerPayload.params, identity),
8524
+ })
8525
+ .catch((e) => {
8526
+ this.logger.error(formatErrors(e));
8527
+ });
8528
+ return res;
8529
+ });
8530
+ const Iterable = {
8531
+ [Symbol.asyncIterator]() {
8532
+ return __asyncGenerator(this, arguments, function* _a() {
8533
+ let hasMore = true;
8534
+ let pageToken;
8535
+ while (hasMore) {
8536
+ try {
8537
+ const res = yield __await(sendRequest({
8538
+ headers,
8539
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
8540
+ data,
8541
+ }));
8542
+ const _b = get(res, "data") || {}, {
8543
+ // @ts-ignore
8544
+ has_more,
8545
+ // @ts-ignore
8546
+ page_token,
8547
+ // @ts-ignore
8548
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
8549
+ yield yield __await(rest);
8550
+ hasMore = Boolean(has_more);
8551
+ pageToken = page_token || next_page_token;
8552
+ }
8553
+ catch (e) {
8554
+ yield yield __await(null);
8555
+ break;
8556
+ }
8557
+ }
8558
+ });
8559
+ },
8560
+ };
8561
+ return Iterable;
8562
+ }),
8563
+ /**
8564
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
8565
+ *
8566
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
8567
+ */
8568
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8569
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8570
+ return this.httpInstance
8571
+ .request({
8572
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
8573
+ method: "GET",
8574
+ data,
8575
+ params,
8576
+ headers,
8577
+ })
8578
+ .catch((e) => {
8579
+ this.logger.error(formatErrors(e));
8580
+ throw e;
8581
+ });
8582
+ }),
8583
+ },
8425
8584
  /**
8426
8585
  * 通讯录权限范围
8427
8586
  */
@@ -8700,6 +8859,26 @@ class Client$1 {
8700
8859
  * 用户
8701
8860
  */
8702
8861
  user: {
8862
+ /**
8863
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch&version=v3 click to debug }
8864
+ *
8865
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=user&version=v3 document }
8866
+ */
8867
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8868
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8869
+ return this.httpInstance
8870
+ .request({
8871
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch`, path),
8872
+ method: "GET",
8873
+ data,
8874
+ params,
8875
+ headers,
8876
+ })
8877
+ .catch((e) => {
8878
+ this.logger.error(formatErrors(e));
8879
+ throw e;
8880
+ });
8881
+ }),
8703
8882
  /**
8704
8883
  * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
8705
8884
  *
@@ -9020,6 +9199,119 @@ class Client$1 {
9020
9199
  throw e;
9021
9200
  });
9022
9201
  }),
9202
+ /**
9203
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
9204
+ *
9205
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
9206
+ */
9207
+ updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9208
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9209
+ return this.httpInstance
9210
+ .request({
9211
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
9212
+ method: "PATCH",
9213
+ data,
9214
+ params,
9215
+ headers,
9216
+ })
9217
+ .catch((e) => {
9218
+ this.logger.error(formatErrors(e));
9219
+ throw e;
9220
+ });
9221
+ }),
9222
+ },
9223
+ /**
9224
+ * work_city
9225
+ */
9226
+ workCity: {
9227
+ /**
9228
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
9229
+ *
9230
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
9231
+ */
9232
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9233
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9234
+ return this.httpInstance
9235
+ .request({
9236
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
9237
+ method: "GET",
9238
+ data,
9239
+ params,
9240
+ headers,
9241
+ })
9242
+ .catch((e) => {
9243
+ this.logger.error(formatErrors(e));
9244
+ throw e;
9245
+ });
9246
+ }),
9247
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9248
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9249
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
9250
+ const res = yield this.httpInstance
9251
+ .request({
9252
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
9253
+ method: "GET",
9254
+ headers: pickBy(innerPayload.headers, identity),
9255
+ params: pickBy(innerPayload.params, identity),
9256
+ })
9257
+ .catch((e) => {
9258
+ this.logger.error(formatErrors(e));
9259
+ });
9260
+ return res;
9261
+ });
9262
+ const Iterable = {
9263
+ [Symbol.asyncIterator]() {
9264
+ return __asyncGenerator(this, arguments, function* _a() {
9265
+ let hasMore = true;
9266
+ let pageToken;
9267
+ while (hasMore) {
9268
+ try {
9269
+ const res = yield __await(sendRequest({
9270
+ headers,
9271
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
9272
+ data,
9273
+ }));
9274
+ const _b = get(res, "data") || {}, {
9275
+ // @ts-ignore
9276
+ has_more,
9277
+ // @ts-ignore
9278
+ page_token,
9279
+ // @ts-ignore
9280
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
9281
+ yield yield __await(rest);
9282
+ hasMore = Boolean(has_more);
9283
+ pageToken = page_token || next_page_token;
9284
+ }
9285
+ catch (e) {
9286
+ yield yield __await(null);
9287
+ break;
9288
+ }
9289
+ }
9290
+ });
9291
+ },
9292
+ };
9293
+ return Iterable;
9294
+ }),
9295
+ /**
9296
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
9297
+ *
9298
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
9299
+ */
9300
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9301
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9302
+ return this.httpInstance
9303
+ .request({
9304
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
9305
+ method: "GET",
9306
+ data,
9307
+ params,
9308
+ headers,
9309
+ })
9310
+ .catch((e) => {
9311
+ this.logger.error(formatErrors(e));
9312
+ throw e;
9313
+ });
9314
+ }),
9023
9315
  },
9024
9316
  };
9025
9317
  /**
@@ -12121,7 +12413,7 @@ class Client$1 {
12121
12413
  }),
12122
12414
  },
12123
12415
  /**
12124
- * 异步任务状态
12416
+ * 文件
12125
12417
  */
12126
12418
  file: {
12127
12419
  /**
@@ -12225,9 +12517,33 @@ class Client$1 {
12225
12517
  });
12226
12518
  }),
12227
12519
  /**
12228
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
12520
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
12229
12521
  *
12230
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/download document }
12522
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
12523
+ *
12524
+ * 取消云文档事件订阅情况
12525
+ *
12526
+ * 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
12527
+ */
12528
+ deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12529
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12530
+ return this.httpInstance
12531
+ .request({
12532
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
12533
+ method: "DELETE",
12534
+ data,
12535
+ params,
12536
+ headers,
12537
+ })
12538
+ .catch((e) => {
12539
+ this.logger.error(formatErrors(e));
12540
+ throw e;
12541
+ });
12542
+ }),
12543
+ /**
12544
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
12545
+ *
12546
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/download document }
12231
12547
  *
12232
12548
  * 下载文件
12233
12549
  *
@@ -12265,6 +12581,30 @@ class Client$1 {
12265
12581
  }),
12266
12582
  };
12267
12583
  }),
12584
+ /**
12585
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
12586
+ *
12587
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
12588
+ *
12589
+ * 查询云文档事件订阅状态
12590
+ *
12591
+ * 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
12592
+ */
12593
+ getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12594
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12595
+ return this.httpInstance
12596
+ .request({
12597
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
12598
+ method: "GET",
12599
+ data,
12600
+ params,
12601
+ headers,
12602
+ })
12603
+ .catch((e) => {
12604
+ this.logger.error(formatErrors(e));
12605
+ throw e;
12606
+ });
12607
+ }),
12268
12608
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12269
12609
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12270
12610
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -16437,6 +16777,176 @@ class Client$1 {
16437
16777
  });
16438
16778
  }),
16439
16779
  },
16780
+ /**
16781
+ * referral_website.job_post
16782
+ */
16783
+ referralWebsiteJobPost: {
16784
+ /**
16785
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=get&version=v1 click to debug }
16786
+ *
16787
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=referral_website.job_post&version=v1 document }
16788
+ *
16789
+ * 获取内推官网下职位广告详情
16790
+ */
16791
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16792
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16793
+ return this.httpInstance
16794
+ .request({
16795
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`, path),
16796
+ method: "GET",
16797
+ data,
16798
+ params,
16799
+ headers,
16800
+ })
16801
+ .catch((e) => {
16802
+ this.logger.error(formatErrors(e));
16803
+ throw e;
16804
+ });
16805
+ }),
16806
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16807
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16808
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
16809
+ const res = yield this.httpInstance
16810
+ .request({
16811
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16812
+ method: "GET",
16813
+ headers: pickBy(innerPayload.headers, identity),
16814
+ params: pickBy(innerPayload.params, identity),
16815
+ })
16816
+ .catch((e) => {
16817
+ this.logger.error(formatErrors(e));
16818
+ });
16819
+ return res;
16820
+ });
16821
+ const Iterable = {
16822
+ [Symbol.asyncIterator]() {
16823
+ return __asyncGenerator(this, arguments, function* _a() {
16824
+ let hasMore = true;
16825
+ let pageToken;
16826
+ while (hasMore) {
16827
+ try {
16828
+ const res = yield __await(sendRequest({
16829
+ headers,
16830
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
16831
+ data,
16832
+ }));
16833
+ const _b = get(res, "data") || {}, {
16834
+ // @ts-ignore
16835
+ has_more,
16836
+ // @ts-ignore
16837
+ page_token,
16838
+ // @ts-ignore
16839
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
16840
+ yield yield __await(rest);
16841
+ hasMore = Boolean(has_more);
16842
+ pageToken = page_token || next_page_token;
16843
+ }
16844
+ catch (e) {
16845
+ yield yield __await(null);
16846
+ break;
16847
+ }
16848
+ }
16849
+ });
16850
+ },
16851
+ };
16852
+ return Iterable;
16853
+ }),
16854
+ /**
16855
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=list&version=v1 click to debug }
16856
+ *
16857
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=referral_website.job_post&version=v1 document }
16858
+ *
16859
+ * 获取内推官网下的职位列表。自定义数据暂不支持列表获取,请从「获取内推官网下职位广告详情」接口获取
16860
+ */
16861
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16862
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16863
+ return this.httpInstance
16864
+ .request({
16865
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16866
+ method: "GET",
16867
+ data,
16868
+ params,
16869
+ headers,
16870
+ })
16871
+ .catch((e) => {
16872
+ this.logger.error(formatErrors(e));
16873
+ throw e;
16874
+ });
16875
+ }),
16876
+ },
16877
+ /**
16878
+ * registration_schema
16879
+ */
16880
+ registrationSchema: {
16881
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16882
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16883
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
16884
+ const res = yield this.httpInstance
16885
+ .request({
16886
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
16887
+ method: "GET",
16888
+ headers: pickBy(innerPayload.headers, identity),
16889
+ params: pickBy(innerPayload.params, identity),
16890
+ })
16891
+ .catch((e) => {
16892
+ this.logger.error(formatErrors(e));
16893
+ });
16894
+ return res;
16895
+ });
16896
+ const Iterable = {
16897
+ [Symbol.asyncIterator]() {
16898
+ return __asyncGenerator(this, arguments, function* _a() {
16899
+ let hasMore = true;
16900
+ let pageToken;
16901
+ while (hasMore) {
16902
+ try {
16903
+ const res = yield __await(sendRequest({
16904
+ headers,
16905
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
16906
+ data,
16907
+ }));
16908
+ const _b = get(res, "data") || {}, {
16909
+ // @ts-ignore
16910
+ has_more,
16911
+ // @ts-ignore
16912
+ page_token,
16913
+ // @ts-ignore
16914
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
16915
+ yield yield __await(rest);
16916
+ hasMore = Boolean(has_more);
16917
+ pageToken = page_token || next_page_token;
16918
+ }
16919
+ catch (e) {
16920
+ yield yield __await(null);
16921
+ break;
16922
+ }
16923
+ }
16924
+ });
16925
+ },
16926
+ };
16927
+ return Iterable;
16928
+ }),
16929
+ /**
16930
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
16931
+ *
16932
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
16933
+ */
16934
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16935
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16936
+ return this.httpInstance
16937
+ .request({
16938
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
16939
+ method: "GET",
16940
+ data,
16941
+ params,
16942
+ headers,
16943
+ })
16944
+ .catch((e) => {
16945
+ this.logger.error(formatErrors(e));
16946
+ throw e;
16947
+ });
16948
+ }),
16949
+ },
16440
16950
  /**
16441
16951
  * 简历来源
16442
16952
  */
@@ -16668,6 +17178,35 @@ class Client$1 {
16668
17178
  });
16669
17179
  }),
16670
17180
  },
17181
+ /**
17182
+ * talent_object
17183
+ */
17184
+ talentObject: {
17185
+ /**
17186
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
17187
+ *
17188
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
17189
+ *
17190
+ * 获取人才字段
17191
+ *
17192
+ * 获取人才字段
17193
+ */
17194
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17195
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17196
+ return this.httpInstance
17197
+ .request({
17198
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
17199
+ method: "GET",
17200
+ data,
17201
+ params,
17202
+ headers,
17203
+ })
17204
+ .catch((e) => {
17205
+ this.logger.error(formatErrors(e));
17206
+ throw e;
17207
+ });
17208
+ }),
17209
+ },
16671
17210
  };
16672
17211
  /**
16673
17212
  * 实名认证
@@ -17956,7 +18495,7 @@ class Client$1 {
17956
18495
  }),
17957
18496
  },
17958
18497
  /**
17959
- * 消息 - 消息卡片
18498
+ * 消息加急
17960
18499
  */
17961
18500
  message: {
17962
18501
  /**
@@ -18235,6 +18774,28 @@ class Client$1 {
18235
18774
  throw e;
18236
18775
  });
18237
18776
  }),
18777
+ /**
18778
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18779
+ *
18780
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18781
+ *
18782
+ * 编辑已发送的消息内容,当前仅支持编辑文本和富文本消息。
18783
+ */
18784
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18785
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18786
+ return this.httpInstance
18787
+ .request({
18788
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18789
+ method: "PUT",
18790
+ data,
18791
+ params,
18792
+ headers,
18793
+ })
18794
+ .catch((e) => {
18795
+ this.logger.error(formatErrors(e));
18796
+ throw e;
18797
+ });
18798
+ }),
18238
18799
  /**
18239
18800
  * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=urgent_app&version=v1 click to debug }
18240
18801
  *
@@ -18383,29 +18944,59 @@ class Client$1 {
18383
18944
  throw e;
18384
18945
  });
18385
18946
  }),
18386
- },
18387
- /**
18388
- * 消息 - 表情回复
18389
- */
18390
- messageReaction: {
18391
18947
  /**
18392
- * {@link https://open.feishu.cn/api-explorer?project=im&resource=message.reaction&apiName=create&version=v1 click to debug }
18393
- *
18394
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/create document }
18948
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18395
18949
  *
18396
- * 添加消息表情回复
18397
- *
18398
- * 给指定消息添加指定类型的表情回复(reaction即表情回复,本文档统一用“reaction”代称)。
18950
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18399
18951
  *
18400
- * 注意事项:;- 需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability) ;- 待添加reaction的消息要真实存在,不能被撤回;- 给消息添加reaction,需要reaction的发送方(机器人或者用户)在消息所在的会话内
18952
+ * 通过模版消息卡片
18401
18953
  */
18402
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18954
+ updateByCard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18403
18955
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18956
+ const { template_id, template_variable } = data, rest = __rest(data, ["template_id", "template_variable"]);
18957
+ const targetData = Object.assign({ msg_type: "interactive", content: JSON.stringify({
18958
+ type: "template",
18959
+ data: {
18960
+ template_id: template_id,
18961
+ template_variable: template_variable,
18962
+ },
18963
+ }) }, rest);
18404
18964
  return this.httpInstance
18405
18965
  .request({
18406
- url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`, path),
18407
- method: "POST",
18408
- data,
18966
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18967
+ method: "PUT",
18968
+ data: targetData,
18969
+ params,
18970
+ headers,
18971
+ })
18972
+ .catch((e) => {
18973
+ this.logger.error(formatErrors(e));
18974
+ throw e;
18975
+ });
18976
+ }),
18977
+ },
18978
+ /**
18979
+ * 消息 - 表情回复
18980
+ */
18981
+ messageReaction: {
18982
+ /**
18983
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message.reaction&apiName=create&version=v1 click to debug }
18984
+ *
18985
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/create document }
18986
+ *
18987
+ * 添加消息表情回复
18988
+ *
18989
+ * 给指定消息添加指定类型的表情回复(reaction即表情回复,本文档统一用“reaction”代称)。
18990
+ *
18991
+ * 注意事项:;- 需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability) ;- 待添加reaction的消息要真实存在,不能被撤回;- 给消息添加reaction,需要reaction的发送方(机器人或者用户)在消息所在的会话内
18992
+ */
18993
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18994
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18995
+ return this.httpInstance
18996
+ .request({
18997
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`, path),
18998
+ method: "POST",
18999
+ data,
18409
19000
  params,
18410
19001
  headers,
18411
19002
  })
@@ -18692,6 +19283,107 @@ class Client$1 {
18692
19283
  });
18693
19284
  }),
18694
19285
  },
19286
+ /**
19287
+ * 特别关注(灰度租户可见)
19288
+ */
19289
+ specialFocus: {
19290
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19291
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19292
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19293
+ const res = yield this.httpInstance
19294
+ .request({
19295
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
19296
+ method: "GET",
19297
+ headers: pickBy(innerPayload.headers, identity),
19298
+ params: pickBy(innerPayload.params, identity),
19299
+ })
19300
+ .catch((e) => {
19301
+ this.logger.error(formatErrors(e));
19302
+ });
19303
+ return res;
19304
+ });
19305
+ const Iterable = {
19306
+ [Symbol.asyncIterator]() {
19307
+ return __asyncGenerator(this, arguments, function* _a() {
19308
+ let hasMore = true;
19309
+ let pageToken;
19310
+ while (hasMore) {
19311
+ try {
19312
+ const res = yield __await(sendRequest({
19313
+ headers,
19314
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19315
+ data,
19316
+ }));
19317
+ const _b = get(res, "data") || {}, {
19318
+ // @ts-ignore
19319
+ has_more,
19320
+ // @ts-ignore
19321
+ page_token,
19322
+ // @ts-ignore
19323
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19324
+ yield yield __await(rest);
19325
+ hasMore = Boolean(has_more);
19326
+ pageToken = page_token || next_page_token;
19327
+ }
19328
+ catch (e) {
19329
+ yield yield __await(null);
19330
+ break;
19331
+ }
19332
+ }
19333
+ });
19334
+ },
19335
+ };
19336
+ return Iterable;
19337
+ }),
19338
+ /**
19339
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
19340
+ *
19341
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
19342
+ *
19343
+ * 获取特别关注列表
19344
+ *
19345
+ * 获取用户的特别关注列表。
19346
+ */
19347
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19348
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19349
+ return this.httpInstance
19350
+ .request({
19351
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
19352
+ method: "GET",
19353
+ data,
19354
+ params,
19355
+ headers,
19356
+ })
19357
+ .catch((e) => {
19358
+ this.logger.error(formatErrors(e));
19359
+ throw e;
19360
+ });
19361
+ }),
19362
+ /**
19363
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
19364
+ *
19365
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
19366
+ *
19367
+ * 获取特别关注未读信息
19368
+ *
19369
+ * 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
19370
+ */
19371
+ unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19372
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19373
+ return this.httpInstance
19374
+ .request({
19375
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
19376
+ method: "POST",
19377
+ data,
19378
+ params,
19379
+ headers,
19380
+ })
19381
+ .catch((e) => {
19382
+ this.logger.error(formatErrors(e));
19383
+ throw e;
19384
+ });
19385
+ }),
19386
+ },
18695
19387
  };
18696
19388
  /**
18697
19389
  * 邮箱
@@ -18783,16 +19475,184 @@ class Client$1 {
18783
19475
  *
18784
19476
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/create document }
18785
19477
  *
18786
- * 创建邮件组
19478
+ * 创建邮件组
19479
+ *
19480
+ * 创建一个邮件组
19481
+ */
19482
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19483
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19484
+ return this.httpInstance
19485
+ .request({
19486
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
19487
+ method: "POST",
19488
+ data,
19489
+ params,
19490
+ headers,
19491
+ })
19492
+ .catch((e) => {
19493
+ this.logger.error(formatErrors(e));
19494
+ throw e;
19495
+ });
19496
+ }),
19497
+ /**
19498
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=delete&version=v1 click to debug }
19499
+ *
19500
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/delete document }
19501
+ *
19502
+ * 删除邮件组
19503
+ *
19504
+ * 删除一个邮件组
19505
+ */
19506
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19507
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19508
+ return this.httpInstance
19509
+ .request({
19510
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
19511
+ method: "DELETE",
19512
+ data,
19513
+ params,
19514
+ headers,
19515
+ })
19516
+ .catch((e) => {
19517
+ this.logger.error(formatErrors(e));
19518
+ throw e;
19519
+ });
19520
+ }),
19521
+ /**
19522
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=get&version=v1 click to debug }
19523
+ *
19524
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/get document }
19525
+ *
19526
+ * 获取邮件组
19527
+ *
19528
+ * 获取特定邮件组信息
19529
+ */
19530
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19531
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19532
+ return this.httpInstance
19533
+ .request({
19534
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
19535
+ method: "GET",
19536
+ data,
19537
+ params,
19538
+ headers,
19539
+ })
19540
+ .catch((e) => {
19541
+ this.logger.error(formatErrors(e));
19542
+ throw e;
19543
+ });
19544
+ }),
19545
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19546
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19547
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19548
+ const res = yield this.httpInstance
19549
+ .request({
19550
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
19551
+ method: "GET",
19552
+ headers: pickBy(innerPayload.headers, identity),
19553
+ params: pickBy(innerPayload.params, identity),
19554
+ })
19555
+ .catch((e) => {
19556
+ this.logger.error(formatErrors(e));
19557
+ });
19558
+ return res;
19559
+ });
19560
+ const Iterable = {
19561
+ [Symbol.asyncIterator]() {
19562
+ return __asyncGenerator(this, arguments, function* _a() {
19563
+ let hasMore = true;
19564
+ let pageToken;
19565
+ while (hasMore) {
19566
+ try {
19567
+ const res = yield __await(sendRequest({
19568
+ headers,
19569
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19570
+ data,
19571
+ }));
19572
+ const _b = get(res, "data") || {}, {
19573
+ // @ts-ignore
19574
+ has_more,
19575
+ // @ts-ignore
19576
+ page_token,
19577
+ // @ts-ignore
19578
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19579
+ yield yield __await(rest);
19580
+ hasMore = Boolean(has_more);
19581
+ pageToken = page_token || next_page_token;
19582
+ }
19583
+ catch (e) {
19584
+ yield yield __await(null);
19585
+ break;
19586
+ }
19587
+ }
19588
+ });
19589
+ },
19590
+ };
19591
+ return Iterable;
19592
+ }),
19593
+ /**
19594
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=list&version=v1 click to debug }
19595
+ *
19596
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list document }
19597
+ *
19598
+ * 批量获取邮件组
19599
+ *
19600
+ * 分页批量获取邮件组
19601
+ */
19602
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19603
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19604
+ return this.httpInstance
19605
+ .request({
19606
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
19607
+ method: "GET",
19608
+ data,
19609
+ params,
19610
+ headers,
19611
+ })
19612
+ .catch((e) => {
19613
+ this.logger.error(formatErrors(e));
19614
+ throw e;
19615
+ });
19616
+ }),
19617
+ /**
19618
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=patch&version=v1 click to debug }
19619
+ *
19620
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch document }
19621
+ *
19622
+ * 修改邮件组
19623
+ *
19624
+ * 更新邮件组部分字段,没有填写的字段不会被更新
19625
+ */
19626
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19627
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19628
+ return this.httpInstance
19629
+ .request({
19630
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
19631
+ method: "PATCH",
19632
+ data,
19633
+ params,
19634
+ headers,
19635
+ })
19636
+ .catch((e) => {
19637
+ this.logger.error(formatErrors(e));
19638
+ throw e;
19639
+ });
19640
+ }),
19641
+ /**
19642
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=update&version=v1 click to debug }
19643
+ *
19644
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update document }
19645
+ *
19646
+ * 更新邮件组
18787
19647
  *
18788
- * 创建一个邮件组
19648
+ * 更新邮件组所有信息
18789
19649
  */
18790
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19650
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18791
19651
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18792
19652
  return this.httpInstance
18793
19653
  .request({
18794
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
18795
- method: "POST",
19654
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
19655
+ method: "PUT",
18796
19656
  data,
18797
19657
  params,
18798
19658
  headers,
@@ -18802,21 +19662,26 @@ class Client$1 {
18802
19662
  throw e;
18803
19663
  });
18804
19664
  }),
19665
+ },
19666
+ /**
19667
+ * 邮件组管理员
19668
+ */
19669
+ mailgroupManager: {
18805
19670
  /**
18806
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=delete&version=v1 click to debug }
19671
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_create&version=v1 click to debug }
18807
19672
  *
18808
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/delete document }
19673
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create document }
18809
19674
  *
18810
- * 删除邮件组
19675
+ * 批量创建邮件组管理员
18811
19676
  *
18812
- * 删除一个邮件组
19677
+ * 批量创建邮件组管理员
18813
19678
  */
18814
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19679
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18815
19680
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18816
19681
  return this.httpInstance
18817
19682
  .request({
18818
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
18819
- method: "DELETE",
19683
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`, path),
19684
+ method: "POST",
18820
19685
  data,
18821
19686
  params,
18822
19687
  headers,
@@ -18827,20 +19692,20 @@ class Client$1 {
18827
19692
  });
18828
19693
  }),
18829
19694
  /**
18830
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=get&version=v1 click to debug }
19695
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_delete&version=v1 click to debug }
18831
19696
  *
18832
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/get document }
19697
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete document }
18833
19698
  *
18834
- * 获取邮件组
19699
+ * 批量删除邮件组管理员
18835
19700
  *
18836
- * 获取特定邮件组信息
19701
+ * 批量删除邮件组管理员
18837
19702
  */
18838
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19703
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18839
19704
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18840
19705
  return this.httpInstance
18841
19706
  .request({
18842
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
18843
- method: "GET",
19707
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`, path),
19708
+ method: "POST",
18844
19709
  data,
18845
19710
  params,
18846
19711
  headers,
@@ -18855,7 +19720,7 @@ class Client$1 {
18855
19720
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
18856
19721
  const res = yield this.httpInstance
18857
19722
  .request({
18858
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
19723
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
18859
19724
  method: "GET",
18860
19725
  headers: pickBy(innerPayload.headers, identity),
18861
19726
  params: pickBy(innerPayload.params, identity),
@@ -18899,19 +19764,19 @@ class Client$1 {
18899
19764
  return Iterable;
18900
19765
  }),
18901
19766
  /**
18902
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=list&version=v1 click to debug }
19767
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=list&version=v1 click to debug }
18903
19768
  *
18904
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list document }
19769
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list document }
18905
19770
  *
18906
- * 批量获取邮件组
19771
+ * 批量获取邮件组管理员
18907
19772
  *
18908
- * 分页批量获取邮件组
19773
+ * 批量获取邮件组管理员
18909
19774
  */
18910
19775
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18911
19776
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18912
19777
  return this.httpInstance
18913
19778
  .request({
18914
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
19779
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
18915
19780
  method: "GET",
18916
19781
  data,
18917
19782
  params,
@@ -18922,54 +19787,6 @@ class Client$1 {
18922
19787
  throw e;
18923
19788
  });
18924
19789
  }),
18925
- /**
18926
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=patch&version=v1 click to debug }
18927
- *
18928
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch document }
18929
- *
18930
- * 修改邮件组
18931
- *
18932
- * 更新邮件组部分字段,没有填写的字段不会被更新
18933
- */
18934
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18935
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
18936
- return this.httpInstance
18937
- .request({
18938
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
18939
- method: "PATCH",
18940
- data,
18941
- params,
18942
- headers,
18943
- })
18944
- .catch((e) => {
18945
- this.logger.error(formatErrors(e));
18946
- throw e;
18947
- });
18948
- }),
18949
- /**
18950
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=update&version=v1 click to debug }
18951
- *
18952
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update document }
18953
- *
18954
- * 更新邮件组
18955
- *
18956
- * 更新邮件组所有信息
18957
- */
18958
- update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18959
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
18960
- return this.httpInstance
18961
- .request({
18962
- url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
18963
- method: "PUT",
18964
- data,
18965
- params,
18966
- headers,
18967
- })
18968
- .catch((e) => {
18969
- this.logger.error(formatErrors(e));
18970
- throw e;
18971
- });
18972
- }),
18973
19790
  },
18974
19791
  /**
18975
19792
  * 邮件组成员
@@ -20021,9 +20838,63 @@ class Client$1 {
20021
20838
  },
20022
20839
  };
20023
20840
  /**
20024
-
20841
+ * 主数据
20842
+ */
20843
+ this.mdm = {
20844
+ /**
20845
+ * 数据维度
20025
20846
  */
20026
- this.mdm = {};
20847
+ userAuthDataRelation: {
20848
+ /**
20849
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=bind&version=v1 click to debug }
20850
+ *
20851
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind document }
20852
+ *
20853
+ * 用户数据维度绑定
20854
+ *
20855
+ * 通过该接口,可为指定应用下的用户绑定一类数据维度,支持批量给多个用户同时增量授权。
20856
+ */
20857
+ bind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20858
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20859
+ return this.httpInstance
20860
+ .request({
20861
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`, path),
20862
+ method: "POST",
20863
+ data,
20864
+ params,
20865
+ headers,
20866
+ })
20867
+ .catch((e) => {
20868
+ this.logger.error(formatErrors(e));
20869
+ throw e;
20870
+ });
20871
+ }),
20872
+ /**
20873
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=unbind&version=v1 click to debug }
20874
+ *
20875
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind document }
20876
+ *
20877
+ * 用户数据维度解绑
20878
+ *
20879
+ * 通过该接口,可为指定应用下的指定用户解除一类数据维度。
20880
+ */
20881
+ unbind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20882
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20883
+ return this.httpInstance
20884
+ .request({
20885
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`, path),
20886
+ method: "POST",
20887
+ data,
20888
+ params,
20889
+ headers,
20890
+ })
20891
+ .catch((e) => {
20892
+ this.logger.error(formatErrors(e));
20893
+ throw e;
20894
+ });
20895
+ }),
20896
+ },
20897
+ };
20027
20898
  /**
20028
20899
 
20029
20900
  */
@@ -21573,7 +22444,7 @@ class Client$1 {
21573
22444
  }),
21574
22445
  },
21575
22446
  /**
21576
- * 行列
22447
+ * 工作表
21577
22448
  */
21578
22449
  spreadsheetSheet: {
21579
22450
  /**
@@ -23865,6 +24736,51 @@ class Client$1 {
23865
24736
  });
23866
24737
  }),
23867
24738
  },
24739
+ /**
24740
+ * reserve_config.disable_inform
24741
+ */
24742
+ reserveConfigDisableInform: {
24743
+ /**
24744
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=get&version=v1 click to debug }
24745
+ *
24746
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24747
+ */
24748
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24749
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24750
+ return this.httpInstance
24751
+ .request({
24752
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24753
+ method: "GET",
24754
+ data,
24755
+ params,
24756
+ headers,
24757
+ })
24758
+ .catch((e) => {
24759
+ this.logger.error(formatErrors(e));
24760
+ throw e;
24761
+ });
24762
+ }),
24763
+ /**
24764
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=patch&version=v1 click to debug }
24765
+ *
24766
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24767
+ */
24768
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24769
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24770
+ return this.httpInstance
24771
+ .request({
24772
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24773
+ method: "PATCH",
24774
+ data,
24775
+ params,
24776
+ headers,
24777
+ })
24778
+ .catch((e) => {
24779
+ this.logger.error(formatErrors(e));
24780
+ throw e;
24781
+ });
24782
+ }),
24783
+ },
23868
24784
  /**
23869
24785
  * reserve_config.form
23870
24786
  */
@@ -24301,6 +25217,46 @@ class Client$1 {
24301
25217
  throw e;
24302
25218
  });
24303
25219
  }),
25220
+ /**
25221
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_checkboard_access_code&version=v1 click to debug }
25222
+ *
25223
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_checkboard_access_code&project=vc&resource=room_config&version=v1 document }
25224
+ */
25225
+ setCheckboardAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25226
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25227
+ return this.httpInstance
25228
+ .request({
25229
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`, path),
25230
+ method: "POST",
25231
+ data,
25232
+ params,
25233
+ headers,
25234
+ })
25235
+ .catch((e) => {
25236
+ this.logger.error(formatErrors(e));
25237
+ throw e;
25238
+ });
25239
+ }),
25240
+ /**
25241
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_room_access_code&version=v1 click to debug }
25242
+ *
25243
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_room_access_code&project=vc&resource=room_config&version=v1 document }
25244
+ */
25245
+ setRoomAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25246
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25247
+ return this.httpInstance
25248
+ .request({
25249
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`, path),
25250
+ method: "POST",
25251
+ data,
25252
+ params,
25253
+ headers,
25254
+ })
25255
+ .catch((e) => {
25256
+ this.logger.error(formatErrors(e));
25257
+ throw e;
25258
+ });
25259
+ }),
24304
25260
  },
24305
25261
  /**
24306
25262
  * 会议室层级
@@ -25070,7 +26026,83 @@ class Client$1 {
25070
26026
  /**
25071
26027
 
25072
26028
  */
25073
- this.workplace = {};
26029
+ this.workplace = {
26030
+ /**
26031
+ * custom_workplace_access_data
26032
+ */
26033
+ customWorkplaceAccessData: {
26034
+ /**
26035
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=custom_workplace_access_data&apiName=search&version=v1 click to debug }
26036
+ *
26037
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=custom_workplace_access_data&version=v1 document }
26038
+ */
26039
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26040
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26041
+ return this.httpInstance
26042
+ .request({
26043
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`, path),
26044
+ method: "POST",
26045
+ data,
26046
+ params,
26047
+ headers,
26048
+ })
26049
+ .catch((e) => {
26050
+ this.logger.error(formatErrors(e));
26051
+ throw e;
26052
+ });
26053
+ }),
26054
+ },
26055
+ /**
26056
+ * workplace_access_data
26057
+ */
26058
+ workplaceAccessData: {
26059
+ /**
26060
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_access_data&apiName=search&version=v1 click to debug }
26061
+ *
26062
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_access_data&version=v1 document }
26063
+ */
26064
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26065
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26066
+ return this.httpInstance
26067
+ .request({
26068
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`, path),
26069
+ method: "POST",
26070
+ data,
26071
+ params,
26072
+ headers,
26073
+ })
26074
+ .catch((e) => {
26075
+ this.logger.error(formatErrors(e));
26076
+ throw e;
26077
+ });
26078
+ }),
26079
+ },
26080
+ /**
26081
+ * workplace_block_access_data
26082
+ */
26083
+ workplaceBlockAccessData: {
26084
+ /**
26085
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_block_access_data&apiName=search&version=v1 click to debug }
26086
+ *
26087
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_block_access_data&version=v1 document }
26088
+ */
26089
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26090
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26091
+ return this.httpInstance
26092
+ .request({
26093
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`, path),
26094
+ method: "POST",
26095
+ data,
26096
+ params,
26097
+ headers,
26098
+ })
26099
+ .catch((e) => {
26100
+ this.logger.error(formatErrors(e));
26101
+ throw e;
26102
+ });
26103
+ }),
26104
+ },
26105
+ };
25074
26106
  }
25075
26107
  }
25076
26108