@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/es/index.js CHANGED
@@ -570,7 +570,7 @@ class Client$1 {
570
570
  },
571
571
  };
572
572
  /**
573
- * 管理后台-企业勋章
573
+ * 管理后台-密码
574
574
  */
575
575
  this.admin = {
576
576
  /**
@@ -2251,7 +2251,7 @@ class Client$1 {
2251
2251
  }),
2252
2252
  },
2253
2253
  /**
2254
- * 原生审批任务
2254
+ * 审批查询
2255
2255
  */
2256
2256
  task: {
2257
2257
  /**
@@ -6978,6 +6978,26 @@ class Client$1 {
6978
6978
  * 部门
6979
6979
  */
6980
6980
  department: {
6981
+ /**
6982
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=batch&version=v3 click to debug }
6983
+ *
6984
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=department&version=v3 document }
6985
+ */
6986
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6987
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
6988
+ return this.httpInstance
6989
+ .request({
6990
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/departments/batch`, path),
6991
+ method: "GET",
6992
+ data,
6993
+ params,
6994
+ headers,
6995
+ })
6996
+ .catch((e) => {
6997
+ this.logger.error(formatErrors(e));
6998
+ throw e;
6999
+ });
7000
+ }),
6981
7001
  childrenWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6982
7002
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
6983
7003
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -8700,6 +8720,26 @@ class Client$1 {
8700
8720
  * 用户
8701
8721
  */
8702
8722
  user: {
8723
+ /**
8724
+ * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch&version=v3 click to debug }
8725
+ *
8726
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=user&version=v3 document }
8727
+ */
8728
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8729
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8730
+ return this.httpInstance
8731
+ .request({
8732
+ url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch`, path),
8733
+ method: "GET",
8734
+ data,
8735
+ params,
8736
+ headers,
8737
+ })
8738
+ .catch((e) => {
8739
+ this.logger.error(formatErrors(e));
8740
+ throw e;
8741
+ });
8742
+ }),
8703
8743
  /**
8704
8744
  * {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
8705
8745
  *
@@ -12121,7 +12161,7 @@ class Client$1 {
12121
12161
  }),
12122
12162
  },
12123
12163
  /**
12124
- * 异步任务状态
12164
+ * 文件
12125
12165
  */
12126
12166
  file: {
12127
12167
  /**
@@ -16437,6 +16477,103 @@ class Client$1 {
16437
16477
  });
16438
16478
  }),
16439
16479
  },
16480
+ /**
16481
+ * referral_website.job_post
16482
+ */
16483
+ referralWebsiteJobPost: {
16484
+ /**
16485
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=get&version=v1 click to debug }
16486
+ *
16487
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=referral_website.job_post&version=v1 document }
16488
+ *
16489
+ * 获取内推官网下职位广告详情
16490
+ */
16491
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16492
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16493
+ return this.httpInstance
16494
+ .request({
16495
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`, path),
16496
+ method: "GET",
16497
+ data,
16498
+ params,
16499
+ headers,
16500
+ })
16501
+ .catch((e) => {
16502
+ this.logger.error(formatErrors(e));
16503
+ throw e;
16504
+ });
16505
+ }),
16506
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16507
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16508
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
16509
+ const res = yield this.httpInstance
16510
+ .request({
16511
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16512
+ method: "GET",
16513
+ headers: pickBy(innerPayload.headers, identity),
16514
+ params: pickBy(innerPayload.params, identity),
16515
+ })
16516
+ .catch((e) => {
16517
+ this.logger.error(formatErrors(e));
16518
+ });
16519
+ return res;
16520
+ });
16521
+ const Iterable = {
16522
+ [Symbol.asyncIterator]() {
16523
+ return __asyncGenerator(this, arguments, function* _a() {
16524
+ let hasMore = true;
16525
+ let pageToken;
16526
+ while (hasMore) {
16527
+ try {
16528
+ const res = yield __await(sendRequest({
16529
+ headers,
16530
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
16531
+ data,
16532
+ }));
16533
+ const _b = get(res, "data") || {}, {
16534
+ // @ts-ignore
16535
+ has_more,
16536
+ // @ts-ignore
16537
+ page_token,
16538
+ // @ts-ignore
16539
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
16540
+ yield yield __await(rest);
16541
+ hasMore = Boolean(has_more);
16542
+ pageToken = page_token || next_page_token;
16543
+ }
16544
+ catch (e) {
16545
+ yield yield __await(null);
16546
+ break;
16547
+ }
16548
+ }
16549
+ });
16550
+ },
16551
+ };
16552
+ return Iterable;
16553
+ }),
16554
+ /**
16555
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=list&version=v1 click to debug }
16556
+ *
16557
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=referral_website.job_post&version=v1 document }
16558
+ *
16559
+ * 获取内推官网下的职位列表。自定义数据暂不支持列表获取,请从「获取内推官网下职位广告详情」接口获取
16560
+ */
16561
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16562
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
16563
+ return this.httpInstance
16564
+ .request({
16565
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
16566
+ method: "GET",
16567
+ data,
16568
+ params,
16569
+ headers,
16570
+ })
16571
+ .catch((e) => {
16572
+ this.logger.error(formatErrors(e));
16573
+ throw e;
16574
+ });
16575
+ }),
16576
+ },
16440
16577
  /**
16441
16578
  * 简历来源
16442
16579
  */
@@ -17956,7 +18093,7 @@ class Client$1 {
17956
18093
  }),
17957
18094
  },
17958
18095
  /**
17959
- * 消息 - 消息卡片
18096
+ * 消息
17960
18097
  */
17961
18098
  message: {
17962
18099
  /**
@@ -18235,6 +18372,28 @@ class Client$1 {
18235
18372
  throw e;
18236
18373
  });
18237
18374
  }),
18375
+ /**
18376
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18377
+ *
18378
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18379
+ *
18380
+ * 编辑已发送的消息内容,当前仅支持编辑文本和富文本消息。
18381
+ */
18382
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18383
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18384
+ return this.httpInstance
18385
+ .request({
18386
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18387
+ method: "PUT",
18388
+ data,
18389
+ params,
18390
+ headers,
18391
+ })
18392
+ .catch((e) => {
18393
+ this.logger.error(formatErrors(e));
18394
+ throw e;
18395
+ });
18396
+ }),
18238
18397
  /**
18239
18398
  * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=urgent_app&version=v1 click to debug }
18240
18399
  *
@@ -18383,6 +18542,36 @@ class Client$1 {
18383
18542
  throw e;
18384
18543
  });
18385
18544
  }),
18545
+ /**
18546
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
18547
+ *
18548
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
18549
+ *
18550
+ * 通过模版消息卡片
18551
+ */
18552
+ updateByCard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18553
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18554
+ const { template_id, template_variable } = data, rest = __rest(data, ["template_id", "template_variable"]);
18555
+ const targetData = Object.assign({ msg_type: "interactive", content: JSON.stringify({
18556
+ type: "template",
18557
+ data: {
18558
+ template_id: template_id,
18559
+ template_variable: template_variable,
18560
+ },
18561
+ }) }, rest);
18562
+ return this.httpInstance
18563
+ .request({
18564
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
18565
+ method: "PUT",
18566
+ data: targetData,
18567
+ params,
18568
+ headers,
18569
+ })
18570
+ .catch((e) => {
18571
+ this.logger.error(formatErrors(e));
18572
+ throw e;
18573
+ });
18574
+ }),
18386
18575
  },
18387
18576
  /**
18388
18577
  * 消息 - 表情回复
@@ -18692,6 +18881,107 @@ class Client$1 {
18692
18881
  });
18693
18882
  }),
18694
18883
  },
18884
+ /**
18885
+ * 特别关注(灰度租户可见)
18886
+ */
18887
+ specialFocus: {
18888
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18889
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18890
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
18891
+ const res = yield this.httpInstance
18892
+ .request({
18893
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
18894
+ method: "GET",
18895
+ headers: pickBy(innerPayload.headers, identity),
18896
+ params: pickBy(innerPayload.params, identity),
18897
+ })
18898
+ .catch((e) => {
18899
+ this.logger.error(formatErrors(e));
18900
+ });
18901
+ return res;
18902
+ });
18903
+ const Iterable = {
18904
+ [Symbol.asyncIterator]() {
18905
+ return __asyncGenerator(this, arguments, function* _a() {
18906
+ let hasMore = true;
18907
+ let pageToken;
18908
+ while (hasMore) {
18909
+ try {
18910
+ const res = yield __await(sendRequest({
18911
+ headers,
18912
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
18913
+ data,
18914
+ }));
18915
+ const _b = get(res, "data") || {}, {
18916
+ // @ts-ignore
18917
+ has_more,
18918
+ // @ts-ignore
18919
+ page_token,
18920
+ // @ts-ignore
18921
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
18922
+ yield yield __await(rest);
18923
+ hasMore = Boolean(has_more);
18924
+ pageToken = page_token || next_page_token;
18925
+ }
18926
+ catch (e) {
18927
+ yield yield __await(null);
18928
+ break;
18929
+ }
18930
+ }
18931
+ });
18932
+ },
18933
+ };
18934
+ return Iterable;
18935
+ }),
18936
+ /**
18937
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
18938
+ *
18939
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
18940
+ *
18941
+ * 获取特别关注列表
18942
+ *
18943
+ * 获取用户的特别关注列表。
18944
+ */
18945
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18946
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18947
+ return this.httpInstance
18948
+ .request({
18949
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
18950
+ method: "GET",
18951
+ data,
18952
+ params,
18953
+ headers,
18954
+ })
18955
+ .catch((e) => {
18956
+ this.logger.error(formatErrors(e));
18957
+ throw e;
18958
+ });
18959
+ }),
18960
+ /**
18961
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
18962
+ *
18963
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
18964
+ *
18965
+ * 获取特别关注未读信息
18966
+ *
18967
+ * 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
18968
+ */
18969
+ unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18970
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
18971
+ return this.httpInstance
18972
+ .request({
18973
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
18974
+ method: "POST",
18975
+ data,
18976
+ params,
18977
+ headers,
18978
+ })
18979
+ .catch((e) => {
18980
+ this.logger.error(formatErrors(e));
18981
+ throw e;
18982
+ });
18983
+ }),
18984
+ },
18695
18985
  };
18696
18986
  /**
18697
18987
  * 邮箱
@@ -18972,14 +19262,139 @@ class Client$1 {
18972
19262
  }),
18973
19263
  },
18974
19264
  /**
18975
- * 邮件组成员
19265
+ * 邮件组管理员
18976
19266
  */
18977
- mailgroupMember: {
19267
+ mailgroupManager: {
18978
19268
  /**
18979
- * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=batch_create&version=v1 click to debug }
19269
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_create&version=v1 click to debug }
18980
19270
  *
18981
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=mail&resource=mailgroup.member&version=v1 document }
18982
- */
19271
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create document }
19272
+ *
19273
+ * 批量创建邮件组管理员
19274
+ *
19275
+ * 批量创建邮件组管理员
19276
+ */
19277
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19278
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19279
+ return this.httpInstance
19280
+ .request({
19281
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`, path),
19282
+ method: "POST",
19283
+ data,
19284
+ params,
19285
+ headers,
19286
+ })
19287
+ .catch((e) => {
19288
+ this.logger.error(formatErrors(e));
19289
+ throw e;
19290
+ });
19291
+ }),
19292
+ /**
19293
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_delete&version=v1 click to debug }
19294
+ *
19295
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete document }
19296
+ *
19297
+ * 批量删除邮件组管理员
19298
+ *
19299
+ * 批量删除邮件组管理员
19300
+ */
19301
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19302
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19303
+ return this.httpInstance
19304
+ .request({
19305
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`, path),
19306
+ method: "POST",
19307
+ data,
19308
+ params,
19309
+ headers,
19310
+ })
19311
+ .catch((e) => {
19312
+ this.logger.error(formatErrors(e));
19313
+ throw e;
19314
+ });
19315
+ }),
19316
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19317
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19318
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
19319
+ const res = yield this.httpInstance
19320
+ .request({
19321
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
19322
+ method: "GET",
19323
+ headers: pickBy(innerPayload.headers, identity),
19324
+ params: pickBy(innerPayload.params, identity),
19325
+ })
19326
+ .catch((e) => {
19327
+ this.logger.error(formatErrors(e));
19328
+ });
19329
+ return res;
19330
+ });
19331
+ const Iterable = {
19332
+ [Symbol.asyncIterator]() {
19333
+ return __asyncGenerator(this, arguments, function* _a() {
19334
+ let hasMore = true;
19335
+ let pageToken;
19336
+ while (hasMore) {
19337
+ try {
19338
+ const res = yield __await(sendRequest({
19339
+ headers,
19340
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
19341
+ data,
19342
+ }));
19343
+ const _b = get(res, "data") || {}, {
19344
+ // @ts-ignore
19345
+ has_more,
19346
+ // @ts-ignore
19347
+ page_token,
19348
+ // @ts-ignore
19349
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
19350
+ yield yield __await(rest);
19351
+ hasMore = Boolean(has_more);
19352
+ pageToken = page_token || next_page_token;
19353
+ }
19354
+ catch (e) {
19355
+ yield yield __await(null);
19356
+ break;
19357
+ }
19358
+ }
19359
+ });
19360
+ },
19361
+ };
19362
+ return Iterable;
19363
+ }),
19364
+ /**
19365
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=list&version=v1 click to debug }
19366
+ *
19367
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list document }
19368
+ *
19369
+ * 批量获取邮件组管理员
19370
+ *
19371
+ * 批量获取邮件组管理员
19372
+ */
19373
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19374
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19375
+ return this.httpInstance
19376
+ .request({
19377
+ url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
19378
+ method: "GET",
19379
+ data,
19380
+ params,
19381
+ headers,
19382
+ })
19383
+ .catch((e) => {
19384
+ this.logger.error(formatErrors(e));
19385
+ throw e;
19386
+ });
19387
+ }),
19388
+ },
19389
+ /**
19390
+ * 邮件组成员
19391
+ */
19392
+ mailgroupMember: {
19393
+ /**
19394
+ * {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.member&apiName=batch_create&version=v1 click to debug }
19395
+ *
19396
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=mail&resource=mailgroup.member&version=v1 document }
19397
+ */
18983
19398
  batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
18984
19399
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
18985
19400
  return this.httpInstance
@@ -20021,9 +20436,63 @@ class Client$1 {
20021
20436
  },
20022
20437
  };
20023
20438
  /**
20024
-
20439
+ * 主数据
20440
+ */
20441
+ this.mdm = {
20442
+ /**
20443
+ * 数据维度
20025
20444
  */
20026
- this.mdm = {};
20445
+ userAuthDataRelation: {
20446
+ /**
20447
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=bind&version=v1 click to debug }
20448
+ *
20449
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind document }
20450
+ *
20451
+ * 用户数据维度绑定
20452
+ *
20453
+ * 通过该接口,可为指定应用下的用户绑定一类数据维度,支持批量给多个用户同时增量授权。
20454
+ */
20455
+ bind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20456
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20457
+ return this.httpInstance
20458
+ .request({
20459
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`, path),
20460
+ method: "POST",
20461
+ data,
20462
+ params,
20463
+ headers,
20464
+ })
20465
+ .catch((e) => {
20466
+ this.logger.error(formatErrors(e));
20467
+ throw e;
20468
+ });
20469
+ }),
20470
+ /**
20471
+ * {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=unbind&version=v1 click to debug }
20472
+ *
20473
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind document }
20474
+ *
20475
+ * 用户数据维度解绑
20476
+ *
20477
+ * 通过该接口,可为指定应用下的指定用户解除一类数据维度。
20478
+ */
20479
+ unbind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20480
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20481
+ return this.httpInstance
20482
+ .request({
20483
+ url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`, path),
20484
+ method: "POST",
20485
+ data,
20486
+ params,
20487
+ headers,
20488
+ })
20489
+ .catch((e) => {
20490
+ this.logger.error(formatErrors(e));
20491
+ throw e;
20492
+ });
20493
+ }),
20494
+ },
20495
+ };
20027
20496
  /**
20028
20497
 
20029
20498
  */
@@ -21573,7 +22042,7 @@ class Client$1 {
21573
22042
  }),
21574
22043
  },
21575
22044
  /**
21576
- * 行列
22045
+ * 单元格
21577
22046
  */
21578
22047
  spreadsheetSheet: {
21579
22048
  /**
@@ -23865,6 +24334,51 @@ class Client$1 {
23865
24334
  });
23866
24335
  }),
23867
24336
  },
24337
+ /**
24338
+ * reserve_config.disable_inform
24339
+ */
24340
+ reserveConfigDisableInform: {
24341
+ /**
24342
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=get&version=v1 click to debug }
24343
+ *
24344
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24345
+ */
24346
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24347
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24348
+ return this.httpInstance
24349
+ .request({
24350
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24351
+ method: "GET",
24352
+ data,
24353
+ params,
24354
+ headers,
24355
+ })
24356
+ .catch((e) => {
24357
+ this.logger.error(formatErrors(e));
24358
+ throw e;
24359
+ });
24360
+ }),
24361
+ /**
24362
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=patch&version=v1 click to debug }
24363
+ *
24364
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.disable_inform&version=v1 document }
24365
+ */
24366
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24367
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24368
+ return this.httpInstance
24369
+ .request({
24370
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
24371
+ method: "PATCH",
24372
+ data,
24373
+ params,
24374
+ headers,
24375
+ })
24376
+ .catch((e) => {
24377
+ this.logger.error(formatErrors(e));
24378
+ throw e;
24379
+ });
24380
+ }),
24381
+ },
23868
24382
  /**
23869
24383
  * reserve_config.form
23870
24384
  */
@@ -24301,6 +24815,46 @@ class Client$1 {
24301
24815
  throw e;
24302
24816
  });
24303
24817
  }),
24818
+ /**
24819
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_checkboard_access_code&version=v1 click to debug }
24820
+ *
24821
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_checkboard_access_code&project=vc&resource=room_config&version=v1 document }
24822
+ */
24823
+ setCheckboardAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24824
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24825
+ return this.httpInstance
24826
+ .request({
24827
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`, path),
24828
+ method: "POST",
24829
+ data,
24830
+ params,
24831
+ headers,
24832
+ })
24833
+ .catch((e) => {
24834
+ this.logger.error(formatErrors(e));
24835
+ throw e;
24836
+ });
24837
+ }),
24838
+ /**
24839
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_room_access_code&version=v1 click to debug }
24840
+ *
24841
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_room_access_code&project=vc&resource=room_config&version=v1 document }
24842
+ */
24843
+ setRoomAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24844
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24845
+ return this.httpInstance
24846
+ .request({
24847
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`, path),
24848
+ method: "POST",
24849
+ data,
24850
+ params,
24851
+ headers,
24852
+ })
24853
+ .catch((e) => {
24854
+ this.logger.error(formatErrors(e));
24855
+ throw e;
24856
+ });
24857
+ }),
24304
24858
  },
24305
24859
  /**
24306
24860
  * 会议室层级
@@ -25070,7 +25624,83 @@ class Client$1 {
25070
25624
  /**
25071
25625
 
25072
25626
  */
25073
- this.workplace = {};
25627
+ this.workplace = {
25628
+ /**
25629
+ * custom_workplace_access_data
25630
+ */
25631
+ customWorkplaceAccessData: {
25632
+ /**
25633
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=custom_workplace_access_data&apiName=search&version=v1 click to debug }
25634
+ *
25635
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=custom_workplace_access_data&version=v1 document }
25636
+ */
25637
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25638
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25639
+ return this.httpInstance
25640
+ .request({
25641
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`, path),
25642
+ method: "POST",
25643
+ data,
25644
+ params,
25645
+ headers,
25646
+ })
25647
+ .catch((e) => {
25648
+ this.logger.error(formatErrors(e));
25649
+ throw e;
25650
+ });
25651
+ }),
25652
+ },
25653
+ /**
25654
+ * workplace_access_data
25655
+ */
25656
+ workplaceAccessData: {
25657
+ /**
25658
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_access_data&apiName=search&version=v1 click to debug }
25659
+ *
25660
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_access_data&version=v1 document }
25661
+ */
25662
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25663
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25664
+ return this.httpInstance
25665
+ .request({
25666
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`, path),
25667
+ method: "POST",
25668
+ data,
25669
+ params,
25670
+ headers,
25671
+ })
25672
+ .catch((e) => {
25673
+ this.logger.error(formatErrors(e));
25674
+ throw e;
25675
+ });
25676
+ }),
25677
+ },
25678
+ /**
25679
+ * workplace_block_access_data
25680
+ */
25681
+ workplaceBlockAccessData: {
25682
+ /**
25683
+ * {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_block_access_data&apiName=search&version=v1 click to debug }
25684
+ *
25685
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_block_access_data&version=v1 document }
25686
+ */
25687
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25688
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25689
+ return this.httpInstance
25690
+ .request({
25691
+ url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`, path),
25692
+ method: "POST",
25693
+ data,
25694
+ params,
25695
+ headers,
25696
+ })
25697
+ .catch((e) => {
25698
+ this.logger.error(formatErrors(e));
25699
+ throw e;
25700
+ });
25701
+ }),
25702
+ },
25703
+ };
25074
25704
  }
25075
25705
  }
25076
25706