@larksuiteoapi/node-sdk 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -585,7 +585,7 @@ class Client$1 {
585
585
  },
586
586
  };
587
587
  /**
588
- * 管理后台-企业勋章
588
+ * 管理后台-密码
589
589
  */
590
590
  this.admin = {
591
591
  /**
@@ -2266,7 +2266,7 @@ class Client$1 {
2266
2266
  }),
2267
2267
  },
2268
2268
  /**
2269
- * 原生审批任务
2269
+ * 审批查询
2270
2270
  */
2271
2271
  task: {
2272
2272
  /**
@@ -6993,6 +6993,26 @@ class Client$1 {
6993
6993
  * 部门
6994
6994
  */
6995
6995
  department: {
6996
+ /**
6997
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=batch&version=v3 click to debug }
6998
+ *
6999
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=department&version=v3 document }
7000
+ */
7001
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7002
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7003
+ return this.httpInstance
7004
+ .request({
7005
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/departments/batch`, path),
7006
+ method: "GET",
7007
+ data,
7008
+ params,
7009
+ headers,
7010
+ })
7011
+ .catch((e) => {
7012
+ this.logger.error(formatErrors(e));
7013
+ throw e;
7014
+ });
7015
+ }),
6996
7016
  childrenWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6997
7017
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
6998
7018
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -8715,6 +8735,26 @@ class Client$1 {
8715
8735
  * 用户
8716
8736
  */
8717
8737
  user: {
8738
+ /**
8739
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch&version=v3 click to debug }
8740
+ *
8741
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=user&version=v3 document }
8742
+ */
8743
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8744
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8745
+ return this.httpInstance
8746
+ .request({
8747
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch`, path),
8748
+ method: "GET",
8749
+ data,
8750
+ params,
8751
+ headers,
8752
+ })
8753
+ .catch((e) => {
8754
+ this.logger.error(formatErrors(e));
8755
+ throw e;
8756
+ });
8757
+ }),
8718
8758
  /**
8719
8759
  * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
8720
8760
  *
@@ -12136,7 +12176,7 @@ class Client$1 {
12136
12176
  }),
12137
12177
  },
12138
12178
  /**
12139
- * 异步任务状态
12179
+ * 文件
12140
12180
  */
12141
12181
  file: {
12142
12182
  /**
@@ -16452,6 +16492,103 @@ class Client$1 {
16452
16492
  });
16453
16493
  }),
16454
16494
  },
16495
+ /**
16496
+ * referral_website.job_post
16497
+ */
16498
+ referralWebsiteJobPost: {
16499
+ /**
16500
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=get&version=v1 click to debug }
16501
+ *
16502
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=referral_website.job_post&version=v1 document }
16503
+ *
16504
+ * 获取内推官网下职位广告详情
16505
+ */
16506
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16507
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16508
+ return this.httpInstance
16509
+ .request({
16510
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`, path),
16511
+ method: "GET",
16512
+ data,
16513
+ params,
16514
+ headers,
16515
+ })
16516
+ .catch((e) => {
16517
+ this.logger.error(formatErrors(e));
16518
+ throw e;
16519
+ });
16520
+ }),
16521
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16522
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16523
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
16524
+ const res = yield this.httpInstance
16525
+ .request({
16526
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16527
+ method: "GET",
16528
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
16529
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
16530
+ })
16531
+ .catch((e) => {
16532
+ this.logger.error(formatErrors(e));
16533
+ });
16534
+ return res;
16535
+ });
16536
+ const Iterable = {
16537
+ [Symbol.asyncIterator]() {
16538
+ return __asyncGenerator(this, arguments, function* _a() {
16539
+ let hasMore = true;
16540
+ let pageToken;
16541
+ while (hasMore) {
16542
+ try {
16543
+ const res = yield __await(sendRequest({
16544
+ headers,
16545
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
16546
+ data,
16547
+ }));
16548
+ const _b = get__default["default"](res, "data") || {}, {
16549
+ // @ts-ignore
16550
+ has_more,
16551
+ // @ts-ignore
16552
+ page_token,
16553
+ // @ts-ignore
16554
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
16555
+ yield yield __await(rest);
16556
+ hasMore = Boolean(has_more);
16557
+ pageToken = page_token || next_page_token;
16558
+ }
16559
+ catch (e) {
16560
+ yield yield __await(null);
16561
+ break;
16562
+ }
16563
+ }
16564
+ });
16565
+ },
16566
+ };
16567
+ return Iterable;
16568
+ }),
16569
+ /**
16570
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=list&version=v1 click to debug }
16571
+ *
16572
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=referral_website.job_post&version=v1 document }
16573
+ *
16574
+ * 获取内推官网下的职位列表。自定义数据暂不支持列表获取,请从「获取内推官网下职位广告详情」接口获取
16575
+ */
16576
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16577
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16578
+ return this.httpInstance
16579
+ .request({
16580
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16581
+ method: "GET",
16582
+ data,
16583
+ params,
16584
+ headers,
16585
+ })
16586
+ .catch((e) => {
16587
+ this.logger.error(formatErrors(e));
16588
+ throw e;
16589
+ });
16590
+ }),
16591
+ },
16455
16592
  /**
16456
16593
  * 简历来源
16457
16594
  */
@@ -17971,7 +18108,7 @@ class Client$1 {
17971
18108
  }),
17972
18109
  },
17973
18110
  /**
17974
- * 消息 - 消息卡片
18111
+ * 消息
17975
18112
  */
17976
18113
  message: {
17977
18114
  /**
@@ -18250,6 +18387,28 @@ class Client$1 {
18250
18387
  throw e;
18251
18388
  });
18252
18389
  }),
18390
+ /**
18391
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18392
+ *
18393
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18394
+ *
18395
+ * 编辑已发送的消息内容,当前仅支持编辑文本和富文本消息。
18396
+ */
18397
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18398
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18399
+ return this.httpInstance
18400
+ .request({
18401
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18402
+ method: "PUT",
18403
+ data,
18404
+ params,
18405
+ headers,
18406
+ })
18407
+ .catch((e) => {
18408
+ this.logger.error(formatErrors(e));
18409
+ throw e;
18410
+ });
18411
+ }),
18253
18412
  /**
18254
18413
  * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=urgent_app&version=v1 click to debug }
18255
18414
  *
@@ -18398,6 +18557,36 @@ class Client$1 {
18398
18557
  throw e;
18399
18558
  });
18400
18559
  }),
18560
+ /**
18561
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18562
+ *
18563
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18564
+ *
18565
+ * 通过模版消息卡片
18566
+ */
18567
+ updateByCard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18568
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18569
+ const { template_id, template_variable } = data, rest = __rest(data, ["template_id", "template_variable"]);
18570
+ const targetData = Object.assign({ msg_type: "interactive", content: JSON.stringify({
18571
+ type: "template",
18572
+ data: {
18573
+ template_id: template_id,
18574
+ template_variable: template_variable,
18575
+ },
18576
+ }) }, rest);
18577
+ return this.httpInstance
18578
+ .request({
18579
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18580
+ method: "PUT",
18581
+ data: targetData,
18582
+ params,
18583
+ headers,
18584
+ })
18585
+ .catch((e) => {
18586
+ this.logger.error(formatErrors(e));
18587
+ throw e;
18588
+ });
18589
+ }),
18401
18590
  },
18402
18591
  /**
18403
18592
  * 消息 - 表情回复
@@ -18707,6 +18896,107 @@ class Client$1 {
18707
18896
  });
18708
18897
  }),
18709
18898
  },
18899
+ /**
18900
+ * 特别关注(灰度租户可见)
18901
+ */
18902
+ specialFocus: {
18903
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18904
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18905
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
18906
+ const res = yield this.httpInstance
18907
+ .request({
18908
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
18909
+ method: "GET",
18910
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
18911
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
18912
+ })
18913
+ .catch((e) => {
18914
+ this.logger.error(formatErrors(e));
18915
+ });
18916
+ return res;
18917
+ });
18918
+ const Iterable = {
18919
+ [Symbol.asyncIterator]() {
18920
+ return __asyncGenerator(this, arguments, function* _a() {
18921
+ let hasMore = true;
18922
+ let pageToken;
18923
+ while (hasMore) {
18924
+ try {
18925
+ const res = yield __await(sendRequest({
18926
+ headers,
18927
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
18928
+ data,
18929
+ }));
18930
+ const _b = get__default["default"](res, "data") || {}, {
18931
+ // @ts-ignore
18932
+ has_more,
18933
+ // @ts-ignore
18934
+ page_token,
18935
+ // @ts-ignore
18936
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
18937
+ yield yield __await(rest);
18938
+ hasMore = Boolean(has_more);
18939
+ pageToken = page_token || next_page_token;
18940
+ }
18941
+ catch (e) {
18942
+ yield yield __await(null);
18943
+ break;
18944
+ }
18945
+ }
18946
+ });
18947
+ },
18948
+ };
18949
+ return Iterable;
18950
+ }),
18951
+ /**
18952
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
18953
+ *
18954
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
18955
+ *
18956
+ * 获取特别关注列表
18957
+ *
18958
+ * 获取用户的特别关注列表。
18959
+ */
18960
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18961
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18962
+ return this.httpInstance
18963
+ .request({
18964
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
18965
+ method: "GET",
18966
+ data,
18967
+ params,
18968
+ headers,
18969
+ })
18970
+ .catch((e) => {
18971
+ this.logger.error(formatErrors(e));
18972
+ throw e;
18973
+ });
18974
+ }),
18975
+ /**
18976
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
18977
+ *
18978
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
18979
+ *
18980
+ * 获取特别关注未读信息
18981
+ *
18982
+ * 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
18983
+ */
18984
+ unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18985
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18986
+ return this.httpInstance
18987
+ .request({
18988
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
18989
+ method: "POST",
18990
+ data,
18991
+ params,
18992
+ headers,
18993
+ })
18994
+ .catch((e) => {
18995
+ this.logger.error(formatErrors(e));
18996
+ throw e;
18997
+ });
18998
+ }),
18999
+ },
18710
19000
  };
18711
19001
  /**
18712
19002
  * 邮箱
@@ -18987,14 +19277,139 @@ class Client$1 {
18987
19277
  }),
18988
19278
  },
18989
19279
  /**
18990
- * 邮件组成员
19280
+ * 邮件组管理员
18991
19281
  */
18992
- mailgroupMember: {
19282
+ mailgroupManager: {
18993
19283
  /**
18994
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=batch_create&version=v1 click to debug }
19284
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_create&version=v1 click to debug }
18995
19285
  *
18996
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=mail&resource=mailgroup.member&version=v1 document }
18997
- */
19286
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create document }
19287
+ *
19288
+ * 批量创建邮件组管理员
19289
+ *
19290
+ * 批量创建邮件组管理员
19291
+ */
19292
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19293
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19294
+ return this.httpInstance
19295
+ .request({
19296
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`, path),
19297
+ method: "POST",
19298
+ data,
19299
+ params,
19300
+ headers,
19301
+ })
19302
+ .catch((e) => {
19303
+ this.logger.error(formatErrors(e));
19304
+ throw e;
19305
+ });
19306
+ }),
19307
+ /**
19308
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_delete&version=v1 click to debug }
19309
+ *
19310
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete document }
19311
+ *
19312
+ * 批量删除邮件组管理员
19313
+ *
19314
+ * 批量删除邮件组管理员
19315
+ */
19316
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19317
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19318
+ return this.httpInstance
19319
+ .request({
19320
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`, path),
19321
+ method: "POST",
19322
+ data,
19323
+ params,
19324
+ headers,
19325
+ })
19326
+ .catch((e) => {
19327
+ this.logger.error(formatErrors(e));
19328
+ throw e;
19329
+ });
19330
+ }),
19331
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19332
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19333
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19334
+ const res = yield this.httpInstance
19335
+ .request({
19336
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
19337
+ method: "GET",
19338
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
19339
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
19340
+ })
19341
+ .catch((e) => {
19342
+ this.logger.error(formatErrors(e));
19343
+ });
19344
+ return res;
19345
+ });
19346
+ const Iterable = {
19347
+ [Symbol.asyncIterator]() {
19348
+ return __asyncGenerator(this, arguments, function* _a() {
19349
+ let hasMore = true;
19350
+ let pageToken;
19351
+ while (hasMore) {
19352
+ try {
19353
+ const res = yield __await(sendRequest({
19354
+ headers,
19355
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19356
+ data,
19357
+ }));
19358
+ const _b = get__default["default"](res, "data") || {}, {
19359
+ // @ts-ignore
19360
+ has_more,
19361
+ // @ts-ignore
19362
+ page_token,
19363
+ // @ts-ignore
19364
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19365
+ yield yield __await(rest);
19366
+ hasMore = Boolean(has_more);
19367
+ pageToken = page_token || next_page_token;
19368
+ }
19369
+ catch (e) {
19370
+ yield yield __await(null);
19371
+ break;
19372
+ }
19373
+ }
19374
+ });
19375
+ },
19376
+ };
19377
+ return Iterable;
19378
+ }),
19379
+ /**
19380
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=list&version=v1 click to debug }
19381
+ *
19382
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list document }
19383
+ *
19384
+ * 批量获取邮件组管理员
19385
+ *
19386
+ * 批量获取邮件组管理员
19387
+ */
19388
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19389
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19390
+ return this.httpInstance
19391
+ .request({
19392
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
19393
+ method: "GET",
19394
+ data,
19395
+ params,
19396
+ headers,
19397
+ })
19398
+ .catch((e) => {
19399
+ this.logger.error(formatErrors(e));
19400
+ throw e;
19401
+ });
19402
+ }),
19403
+ },
19404
+ /**
19405
+ * 邮件组成员
19406
+ */
19407
+ mailgroupMember: {
19408
+ /**
19409
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=batch_create&version=v1 click to debug }
19410
+ *
19411
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=mail&resource=mailgroup.member&version=v1 document }
19412
+ */
18998
19413
  batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18999
19414
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
19000
19415
  return this.httpInstance
@@ -20036,9 +20451,63 @@ class Client$1 {
20036
20451
  },
20037
20452
  };
20038
20453
  /**
20039
-
20454
+ * 主数据
20455
+ */
20456
+ this.mdm = {
20457
+ /**
20458
+ * 数据维度
20040
20459
  */
20041
- this.mdm = {};
20460
+ userAuthDataRelation: {
20461
+ /**
20462
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=bind&version=v1 click to debug }
20463
+ *
20464
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind document }
20465
+ *
20466
+ * 用户数据维度绑定
20467
+ *
20468
+ * 通过该接口,可为指定应用下的用户绑定一类数据维度,支持批量给多个用户同时增量授权。
20469
+ */
20470
+ bind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20471
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20472
+ return this.httpInstance
20473
+ .request({
20474
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`, path),
20475
+ method: "POST",
20476
+ data,
20477
+ params,
20478
+ headers,
20479
+ })
20480
+ .catch((e) => {
20481
+ this.logger.error(formatErrors(e));
20482
+ throw e;
20483
+ });
20484
+ }),
20485
+ /**
20486
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=unbind&version=v1 click to debug }
20487
+ *
20488
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind document }
20489
+ *
20490
+ * 用户数据维度解绑
20491
+ *
20492
+ * 通过该接口,可为指定应用下的指定用户解除一类数据维度。
20493
+ */
20494
+ unbind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20495
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20496
+ return this.httpInstance
20497
+ .request({
20498
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`, path),
20499
+ method: "POST",
20500
+ data,
20501
+ params,
20502
+ headers,
20503
+ })
20504
+ .catch((e) => {
20505
+ this.logger.error(formatErrors(e));
20506
+ throw e;
20507
+ });
20508
+ }),
20509
+ },
20510
+ };
20042
20511
  /**
20043
20512
 
20044
20513
  */
@@ -21588,7 +22057,7 @@ class Client$1 {
21588
22057
  }),
21589
22058
  },
21590
22059
  /**
21591
- * 行列
22060
+ * 单元格
21592
22061
  */
21593
22062
  spreadsheetSheet: {
21594
22063
  /**
@@ -23880,6 +24349,51 @@ class Client$1 {
23880
24349
  });
23881
24350
  }),
23882
24351
  },
24352
+ /**
24353
+ * reserve_config.disable_inform
24354
+ */
24355
+ reserveConfigDisableInform: {
24356
+ /**
24357
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=get&version=v1 click to debug }
24358
+ *
24359
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24360
+ */
24361
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24362
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24363
+ return this.httpInstance
24364
+ .request({
24365
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24366
+ method: "GET",
24367
+ data,
24368
+ params,
24369
+ headers,
24370
+ })
24371
+ .catch((e) => {
24372
+ this.logger.error(formatErrors(e));
24373
+ throw e;
24374
+ });
24375
+ }),
24376
+ /**
24377
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=patch&version=v1 click to debug }
24378
+ *
24379
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24380
+ */
24381
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24382
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24383
+ return this.httpInstance
24384
+ .request({
24385
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24386
+ method: "PATCH",
24387
+ data,
24388
+ params,
24389
+ headers,
24390
+ })
24391
+ .catch((e) => {
24392
+ this.logger.error(formatErrors(e));
24393
+ throw e;
24394
+ });
24395
+ }),
24396
+ },
23883
24397
  /**
23884
24398
  * reserve_config.form
23885
24399
  */
@@ -24316,6 +24830,46 @@ class Client$1 {
24316
24830
  throw e;
24317
24831
  });
24318
24832
  }),
24833
+ /**
24834
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_checkboard_access_code&version=v1 click to debug }
24835
+ *
24836
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_checkboard_access_code&project=vc&resource=room_config&version=v1 document }
24837
+ */
24838
+ setCheckboardAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24839
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24840
+ return this.httpInstance
24841
+ .request({
24842
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`, path),
24843
+ method: "POST",
24844
+ data,
24845
+ params,
24846
+ headers,
24847
+ })
24848
+ .catch((e) => {
24849
+ this.logger.error(formatErrors(e));
24850
+ throw e;
24851
+ });
24852
+ }),
24853
+ /**
24854
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_room_access_code&version=v1 click to debug }
24855
+ *
24856
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_room_access_code&project=vc&resource=room_config&version=v1 document }
24857
+ */
24858
+ setRoomAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24859
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24860
+ return this.httpInstance
24861
+ .request({
24862
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`, path),
24863
+ method: "POST",
24864
+ data,
24865
+ params,
24866
+ headers,
24867
+ })
24868
+ .catch((e) => {
24869
+ this.logger.error(formatErrors(e));
24870
+ throw e;
24871
+ });
24872
+ }),
24319
24873
  },
24320
24874
  /**
24321
24875
  * 会议室层级
@@ -25085,7 +25639,83 @@ class Client$1 {
25085
25639
  /**
25086
25640
 
25087
25641
  */
25088
- this.workplace = {};
25642
+ this.workplace = {
25643
+ /**
25644
+ * custom_workplace_access_data
25645
+ */
25646
+ customWorkplaceAccessData: {
25647
+ /**
25648
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=custom_workplace_access_data&apiName=search&version=v1 click to debug }
25649
+ *
25650
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=custom_workplace_access_data&version=v1 document }
25651
+ */
25652
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25653
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25654
+ return this.httpInstance
25655
+ .request({
25656
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`, path),
25657
+ method: "POST",
25658
+ data,
25659
+ params,
25660
+ headers,
25661
+ })
25662
+ .catch((e) => {
25663
+ this.logger.error(formatErrors(e));
25664
+ throw e;
25665
+ });
25666
+ }),
25667
+ },
25668
+ /**
25669
+ * workplace_access_data
25670
+ */
25671
+ workplaceAccessData: {
25672
+ /**
25673
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_access_data&apiName=search&version=v1 click to debug }
25674
+ *
25675
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_access_data&version=v1 document }
25676
+ */
25677
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25678
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25679
+ return this.httpInstance
25680
+ .request({
25681
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`, path),
25682
+ method: "POST",
25683
+ data,
25684
+ params,
25685
+ headers,
25686
+ })
25687
+ .catch((e) => {
25688
+ this.logger.error(formatErrors(e));
25689
+ throw e;
25690
+ });
25691
+ }),
25692
+ },
25693
+ /**
25694
+ * workplace_block_access_data
25695
+ */
25696
+ workplaceBlockAccessData: {
25697
+ /**
25698
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_block_access_data&apiName=search&version=v1 click to debug }
25699
+ *
25700
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_block_access_data&version=v1 document }
25701
+ */
25702
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25703
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25704
+ return this.httpInstance
25705
+ .request({
25706
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`, path),
25707
+ method: "POST",
25708
+ data,
25709
+ params,
25710
+ headers,
25711
+ })
25712
+ .catch((e) => {
25713
+ this.logger.error(formatErrors(e));
25714
+ throw e;
25715
+ });
25716
+ }),
25717
+ },
25718
+ };
25089
25719
  }
25090
25720
  }
25091
25721