@larksuiteoapi/node-sdk 1.0.2 → 1.0.3

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
@@ -88,12 +88,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
88
88
  }
89
89
 
90
90
  const httpInstance = axios__default["default"].create();
91
- httpInstance.interceptors.response.use((resp) => {
92
- const request = Object.create({
93
- request: resp.request,
94
- });
95
- return Object.assign(request, resp.data);
96
- });
91
+ httpInstance.interceptors.response.use((resp) => resp.data);
97
92
 
98
93
  exports.AppType = void 0;
99
94
  (function (AppType) {
@@ -1858,24 +1853,6 @@ class Client$1 {
1858
1853
  throw e;
1859
1854
  });
1860
1855
  }),
1861
- /**
1862
- * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=get&version=v1 click to debug }
1863
- */
1864
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1865
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
1866
- return httpInstance
1867
- .request({
1868
- url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id`, path),
1869
- method: "GET",
1870
- data,
1871
- params,
1872
- headers,
1873
- })
1874
- .catch((e) => {
1875
- this.logger.error(formatErrors(e));
1876
- throw e;
1877
- });
1878
- }),
1879
1856
  /**
1880
1857
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=create&version=v1 click to debug }
1881
1858
  */
@@ -1894,17 +1871,15 @@ class Client$1 {
1894
1871
  throw e;
1895
1872
  });
1896
1873
  }),
1897
- },
1898
- userStatsData: {
1899
1874
  /**
1900
- * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_stats_data&apiName=query&version=v1 click to debug }
1875
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=get&version=v1 click to debug }
1901
1876
  */
1902
- query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1877
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1903
1878
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
1904
1879
  return httpInstance
1905
1880
  .request({
1906
- url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`, path),
1907
- method: "POST",
1881
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id`, path),
1882
+ method: "GET",
1908
1883
  data,
1909
1884
  params,
1910
1885
  headers,
@@ -2192,6 +2167,26 @@ class Client$1 {
2192
2167
  });
2193
2168
  }),
2194
2169
  },
2170
+ userStatsData: {
2171
+ /**
2172
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_stats_data&apiName=query&version=v1 click to debug }
2173
+ */
2174
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2175
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2176
+ return httpInstance
2177
+ .request({
2178
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`, path),
2179
+ method: "POST",
2180
+ data,
2181
+ params,
2182
+ headers,
2183
+ })
2184
+ .catch((e) => {
2185
+ this.logger.error(formatErrors(e));
2186
+ throw e;
2187
+ });
2188
+ }),
2189
+ },
2195
2190
  };
2196
2191
  this.aweme_ecosystem = {};
2197
2192
  this.baike = {
@@ -5553,44 +5548,6 @@ class Client$1 {
5553
5548
  });
5554
5549
  }),
5555
5550
  },
5556
- permissionPublic: {
5557
- /**
5558
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v1 click to debug }
5559
- */
5560
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5561
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
5562
- return httpInstance
5563
- .request({
5564
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
5565
- method: "GET",
5566
- data,
5567
- params,
5568
- headers,
5569
- })
5570
- .catch((e) => {
5571
- this.logger.error(formatErrors(e));
5572
- throw e;
5573
- });
5574
- }),
5575
- /**
5576
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v1 click to debug }
5577
- */
5578
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5579
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
5580
- return httpInstance
5581
- .request({
5582
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
5583
- method: "PATCH",
5584
- data,
5585
- params,
5586
- headers,
5587
- })
5588
- .catch((e) => {
5589
- this.logger.error(formatErrors(e));
5590
- throw e;
5591
- });
5592
- }),
5593
- },
5594
5551
  exportTask: {
5595
5552
  /**
5596
5553
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=export_task&apiName=create&version=v1 click to debug }
@@ -5816,16 +5773,34 @@ class Client$1 {
5816
5773
  });
5817
5774
  }),
5818
5775
  },
5819
- meta: {
5776
+ permissionPublic: {
5820
5777
  /**
5821
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=meta&apiName=batch_query&version=v1 click to debug }
5778
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v1 click to debug }
5822
5779
  */
5823
- batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5780
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5824
5781
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
5825
5782
  return httpInstance
5826
5783
  .request({
5827
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/metas/batch_query`, path),
5828
- method: "POST",
5784
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
5785
+ method: "PATCH",
5786
+ data,
5787
+ params,
5788
+ headers,
5789
+ })
5790
+ .catch((e) => {
5791
+ this.logger.error(formatErrors(e));
5792
+ throw e;
5793
+ });
5794
+ }),
5795
+ /**
5796
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v1 click to debug }
5797
+ */
5798
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5799
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5800
+ return httpInstance
5801
+ .request({
5802
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
5803
+ method: "GET",
5829
5804
  data,
5830
5805
  params,
5831
5806
  headers,
@@ -5837,6 +5812,24 @@ class Client$1 {
5837
5812
  }),
5838
5813
  },
5839
5814
  permissionMember: {
5815
+ /**
5816
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.member&apiName=delete&version=v1 click to debug }
5817
+ */
5818
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5819
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5820
+ return httpInstance
5821
+ .request({
5822
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`, path),
5823
+ method: "DELETE",
5824
+ data,
5825
+ params,
5826
+ headers,
5827
+ })
5828
+ .catch((e) => {
5829
+ this.logger.error(formatErrors(e));
5830
+ throw e;
5831
+ });
5832
+ }),
5840
5833
  /**
5841
5834
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.member&apiName=update&version=v1 click to debug }
5842
5835
  */
@@ -5873,15 +5866,17 @@ class Client$1 {
5873
5866
  throw e;
5874
5867
  });
5875
5868
  }),
5869
+ },
5870
+ meta: {
5876
5871
  /**
5877
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.member&apiName=delete&version=v1 click to debug }
5872
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=meta&apiName=batch_query&version=v1 click to debug }
5878
5873
  */
5879
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5874
+ batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5880
5875
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
5881
5876
  return httpInstance
5882
5877
  .request({
5883
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`, path),
5884
- method: "DELETE",
5878
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/metas/batch_query`, path),
5879
+ method: "POST",
5885
5880
  data,
5886
5881
  params,
5887
5882
  headers,
@@ -7223,77 +7218,6 @@ class Client$1 {
7223
7218
  });
7224
7219
  }),
7225
7220
  },
7226
- resumeSource: {
7227
- /**
7228
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
7229
- */
7230
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7231
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
7232
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
7233
- const res = yield httpInstance
7234
- .request({
7235
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
7236
- method: "GET",
7237
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
7238
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
7239
- })
7240
- .catch((e) => {
7241
- this.logger.error(formatErrors(e));
7242
- });
7243
- return res;
7244
- });
7245
- const Iterable = {
7246
- [Symbol.asyncIterator]() {
7247
- return __asyncGenerator(this, arguments, function* _a() {
7248
- let hasMore = true;
7249
- let pageToken;
7250
- while (hasMore) {
7251
- try {
7252
- const res = yield __await(sendRequest({
7253
- headers,
7254
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
7255
- data,
7256
- }));
7257
- const _b = get__default["default"](res, "data") || {}, {
7258
- // @ts-ignore
7259
- has_more,
7260
- // @ts-ignore
7261
- page_token,
7262
- // @ts-ignore
7263
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
7264
- yield yield __await(rest);
7265
- hasMore = Boolean(has_more);
7266
- pageToken = page_token || next_page_token;
7267
- }
7268
- catch (e) {
7269
- yield yield __await(null);
7270
- break;
7271
- }
7272
- }
7273
- });
7274
- },
7275
- };
7276
- return Iterable;
7277
- }),
7278
- /**
7279
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
7280
- */
7281
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7282
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
7283
- return httpInstance
7284
- .request({
7285
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
7286
- method: "GET",
7287
- data,
7288
- params,
7289
- headers,
7290
- })
7291
- .catch((e) => {
7292
- this.logger.error(formatErrors(e));
7293
- throw e;
7294
- });
7295
- }),
7296
- },
7297
7221
  jobProcess: {
7298
7222
  /**
7299
7223
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
@@ -7634,26 +7558,6 @@ class Client$1 {
7634
7558
  });
7635
7559
  }),
7636
7560
  },
7637
- applicationInterview: {
7638
- /**
7639
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
7640
- */
7641
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7642
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
7643
- return httpInstance
7644
- .request({
7645
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`, path),
7646
- method: "GET",
7647
- data,
7648
- params,
7649
- headers,
7650
- })
7651
- .catch((e) => {
7652
- this.logger.error(formatErrors(e));
7653
- throw e;
7654
- });
7655
- }),
7656
- },
7657
7561
  talent: {
7658
7562
  /**
7659
7563
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
@@ -7674,27 +7578,118 @@ class Client$1 {
7674
7578
  });
7675
7579
  }),
7676
7580
  },
7677
- };
7678
- this.human_authentication = {
7679
- identity: {
7581
+ resumeSource: {
7680
7582
  /**
7681
- * {@link https://open.feishu.cn/api-explorer?project=human_authentication&resource=identity&apiName=create&version=v1 click to debug }
7583
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
7682
7584
  */
7683
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7585
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7684
7586
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
7685
- return httpInstance
7686
- .request({
7687
- url: fillApiPath(`${this.domain}/open-apis/human_authentication/v1/identities`, path),
7688
- method: "POST",
7689
- data,
7690
- params,
7691
- headers,
7692
- })
7693
- .catch((e) => {
7694
- this.logger.error(formatErrors(e));
7695
- throw e;
7696
- });
7697
- }),
7587
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
7588
+ const res = yield httpInstance
7589
+ .request({
7590
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
7591
+ method: "GET",
7592
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
7593
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
7594
+ })
7595
+ .catch((e) => {
7596
+ this.logger.error(formatErrors(e));
7597
+ });
7598
+ return res;
7599
+ });
7600
+ const Iterable = {
7601
+ [Symbol.asyncIterator]() {
7602
+ return __asyncGenerator(this, arguments, function* _a() {
7603
+ let hasMore = true;
7604
+ let pageToken;
7605
+ while (hasMore) {
7606
+ try {
7607
+ const res = yield __await(sendRequest({
7608
+ headers,
7609
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
7610
+ data,
7611
+ }));
7612
+ const _b = get__default["default"](res, "data") || {}, {
7613
+ // @ts-ignore
7614
+ has_more,
7615
+ // @ts-ignore
7616
+ page_token,
7617
+ // @ts-ignore
7618
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
7619
+ yield yield __await(rest);
7620
+ hasMore = Boolean(has_more);
7621
+ pageToken = page_token || next_page_token;
7622
+ }
7623
+ catch (e) {
7624
+ yield yield __await(null);
7625
+ break;
7626
+ }
7627
+ }
7628
+ });
7629
+ },
7630
+ };
7631
+ return Iterable;
7632
+ }),
7633
+ /**
7634
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
7635
+ */
7636
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7637
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7638
+ return httpInstance
7639
+ .request({
7640
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
7641
+ method: "GET",
7642
+ data,
7643
+ params,
7644
+ headers,
7645
+ })
7646
+ .catch((e) => {
7647
+ this.logger.error(formatErrors(e));
7648
+ throw e;
7649
+ });
7650
+ }),
7651
+ },
7652
+ applicationInterview: {
7653
+ /**
7654
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
7655
+ */
7656
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7657
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7658
+ return httpInstance
7659
+ .request({
7660
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`, path),
7661
+ method: "GET",
7662
+ data,
7663
+ params,
7664
+ headers,
7665
+ })
7666
+ .catch((e) => {
7667
+ this.logger.error(formatErrors(e));
7668
+ throw e;
7669
+ });
7670
+ }),
7671
+ },
7672
+ };
7673
+ this.human_authentication = {
7674
+ identity: {
7675
+ /**
7676
+ * {@link https://open.feishu.cn/api-explorer?project=human_authentication&resource=identity&apiName=create&version=v1 click to debug }
7677
+ */
7678
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7679
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7680
+ return httpInstance
7681
+ .request({
7682
+ url: fillApiPath(`${this.domain}/open-apis/human_authentication/v1/identities`, path),
7683
+ method: "POST",
7684
+ data,
7685
+ params,
7686
+ headers,
7687
+ })
7688
+ .catch((e) => {
7689
+ this.logger.error(formatErrors(e));
7690
+ throw e;
7691
+ });
7692
+ }),
7698
7693
  },
7699
7694
  };
7700
7695
  this.im = {
@@ -8190,14 +8185,14 @@ class Client$1 {
8190
8185
  });
8191
8186
  }),
8192
8187
  /**
8193
- * {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=create&version=v1 click to debug }
8188
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=get&version=v1 click to debug }
8194
8189
  */
8195
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8190
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8196
8191
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
8197
8192
  return httpInstance
8198
8193
  .request({
8199
- url: fillApiPath(`${this.domain}/open-apis/im/v1/chats`, path),
8200
- method: "POST",
8194
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/chats/:chat_id`, path),
8195
+ method: "GET",
8201
8196
  data,
8202
8197
  params,
8203
8198
  headers,
@@ -8208,14 +8203,14 @@ class Client$1 {
8208
8203
  });
8209
8204
  }),
8210
8205
  /**
8211
- * {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=get&version=v1 click to debug }
8206
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=create&version=v1 click to debug }
8212
8207
  */
8213
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8208
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8214
8209
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
8215
8210
  return httpInstance
8216
8211
  .request({
8217
- url: fillApiPath(`${this.domain}/open-apis/im/v1/chats/:chat_id`, path),
8218
- method: "GET",
8212
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/chats`, path),
8213
+ method: "POST",
8219
8214
  data,
8220
8215
  params,
8221
8216
  headers,
@@ -11940,6 +11935,98 @@ class Client$1 {
11940
11935
  });
11941
11936
  }),
11942
11937
  },
11938
+ export: {
11939
+ /**
11940
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=meeting_list&version=v1 click to debug }
11941
+ */
11942
+ meetingList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11943
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11944
+ return httpInstance
11945
+ .request({
11946
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/meeting_list`, path),
11947
+ method: "POST",
11948
+ data,
11949
+ params,
11950
+ headers,
11951
+ })
11952
+ .catch((e) => {
11953
+ this.logger.error(formatErrors(e));
11954
+ throw e;
11955
+ });
11956
+ }),
11957
+ /**
11958
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=get&version=v1 click to debug }
11959
+ */
11960
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11961
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11962
+ return httpInstance
11963
+ .request({
11964
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/:task_id`, path),
11965
+ method: "GET",
11966
+ data,
11967
+ params,
11968
+ headers,
11969
+ })
11970
+ .catch((e) => {
11971
+ this.logger.error(formatErrors(e));
11972
+ throw e;
11973
+ });
11974
+ }),
11975
+ /**
11976
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_quality_list&version=v1 click to debug }
11977
+ */
11978
+ participantQualityList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11979
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11980
+ return httpInstance
11981
+ .request({
11982
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`, path),
11983
+ method: "POST",
11984
+ data,
11985
+ params,
11986
+ headers,
11987
+ })
11988
+ .catch((e) => {
11989
+ this.logger.error(formatErrors(e));
11990
+ throw e;
11991
+ });
11992
+ }),
11993
+ /**
11994
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=resource_reservation_list&version=v1 click to debug }
11995
+ */
11996
+ resourceReservationList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11997
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11998
+ return httpInstance
11999
+ .request({
12000
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`, path),
12001
+ method: "POST",
12002
+ data,
12003
+ params,
12004
+ headers,
12005
+ })
12006
+ .catch((e) => {
12007
+ this.logger.error(formatErrors(e));
12008
+ throw e;
12009
+ });
12010
+ }),
12011
+ /**
12012
+ * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_list&version=v1 click to debug }
12013
+ */
12014
+ participantList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12015
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12016
+ return httpInstance
12017
+ .request({
12018
+ url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/participant_list`, path),
12019
+ method: "POST",
12020
+ data,
12021
+ params,
12022
+ headers,
12023
+ })
12024
+ .catch((e) => {
12025
+ this.logger.error(formatErrors(e));
12026
+ throw e;
12027
+ });
12028
+ }),
12029
+ },
11943
12030
  };
11944
12031
  this.wiki = {
11945
12032
  space: {
@@ -12434,15 +12521,33 @@ class Client$1 {
12434
12521
  });
12435
12522
  }),
12436
12523
  },
12437
- appTableRecord: {
12524
+ appTable: {
12438
12525
  /**
12439
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
12526
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_delete&version=v1 click to debug }
12527
+ */
12528
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12529
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12530
+ return httpInstance
12531
+ .request({
12532
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`, path),
12533
+ method: "POST",
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=bitable&resource=app.table&apiName=delete&version=v1 click to debug }
12440
12545
  */
12441
12546
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12442
12547
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12443
12548
  return httpInstance
12444
12549
  .request({
12445
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
12550
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`, path),
12446
12551
  method: "DELETE",
12447
12552
  data,
12448
12553
  params,
@@ -12454,14 +12559,14 @@ class Client$1 {
12454
12559
  });
12455
12560
  }),
12456
12561
  /**
12457
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
12562
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
12458
12563
  */
12459
12564
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12460
12565
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12461
12566
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12462
12567
  const res = yield httpInstance
12463
12568
  .request({
12464
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
12569
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12465
12570
  method: "GET",
12466
12571
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12467
12572
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -12505,13 +12610,13 @@ class Client$1 {
12505
12610
  return Iterable;
12506
12611
  }),
12507
12612
  /**
12508
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
12613
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
12509
12614
  */
12510
12615
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12511
12616
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12512
12617
  return httpInstance
12513
12618
  .request({
12514
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
12619
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12515
12620
  method: "GET",
12516
12621
  data,
12517
12622
  params,
@@ -12523,14 +12628,14 @@ class Client$1 {
12523
12628
  });
12524
12629
  }),
12525
12630
  /**
12526
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
12631
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_create&version=v1 click to debug }
12527
12632
  */
12528
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12633
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12529
12634
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12530
12635
  return httpInstance
12531
12636
  .request({
12532
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
12533
- method: "GET",
12637
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`, path),
12638
+ method: "POST",
12534
12639
  data,
12535
12640
  params,
12536
12641
  headers,
@@ -12541,14 +12646,14 @@ class Client$1 {
12541
12646
  });
12542
12647
  }),
12543
12648
  /**
12544
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
12649
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=create&version=v1 click to debug }
12545
12650
  */
12546
- update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12651
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12547
12652
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12548
12653
  return httpInstance
12549
12654
  .request({
12550
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
12551
- method: "PUT",
12655
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12656
+ method: "POST",
12552
12657
  data,
12553
12658
  params,
12554
12659
  headers,
@@ -12558,15 +12663,68 @@ class Client$1 {
12558
12663
  throw e;
12559
12664
  });
12560
12665
  }),
12666
+ },
12667
+ appTableView: {
12561
12668
  /**
12562
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
12669
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
12563
12670
  */
12564
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12671
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12565
12672
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12566
- return httpInstance
12567
- .request({
12568
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
12569
- method: "POST",
12673
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12674
+ const res = yield httpInstance
12675
+ .request({
12676
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
12677
+ method: "GET",
12678
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12679
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
12680
+ })
12681
+ .catch((e) => {
12682
+ this.logger.error(formatErrors(e));
12683
+ });
12684
+ return res;
12685
+ });
12686
+ const Iterable = {
12687
+ [Symbol.asyncIterator]() {
12688
+ return __asyncGenerator(this, arguments, function* _a() {
12689
+ let hasMore = true;
12690
+ let pageToken;
12691
+ while (hasMore) {
12692
+ try {
12693
+ const res = yield __await(sendRequest({
12694
+ headers,
12695
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
12696
+ data,
12697
+ }));
12698
+ const _b = get__default["default"](res, "data") || {}, {
12699
+ // @ts-ignore
12700
+ has_more,
12701
+ // @ts-ignore
12702
+ page_token,
12703
+ // @ts-ignore
12704
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
12705
+ yield yield __await(rest);
12706
+ hasMore = Boolean(has_more);
12707
+ pageToken = page_token || next_page_token;
12708
+ }
12709
+ catch (e) {
12710
+ yield yield __await(null);
12711
+ break;
12712
+ }
12713
+ }
12714
+ });
12715
+ },
12716
+ };
12717
+ return Iterable;
12718
+ }),
12719
+ /**
12720
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
12721
+ */
12722
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12723
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12724
+ return httpInstance
12725
+ .request({
12726
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
12727
+ method: "GET",
12570
12728
  data,
12571
12729
  params,
12572
12730
  headers,
@@ -12577,14 +12735,14 @@ class Client$1 {
12577
12735
  });
12578
12736
  }),
12579
12737
  /**
12580
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
12738
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=delete&version=v1 click to debug }
12581
12739
  */
12582
- batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12740
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12583
12741
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12584
12742
  return httpInstance
12585
12743
  .request({
12586
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
12587
- method: "POST",
12744
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
12745
+ method: "DELETE",
12588
12746
  data,
12589
12747
  params,
12590
12748
  headers,
@@ -12595,13 +12753,13 @@ class Client$1 {
12595
12753
  });
12596
12754
  }),
12597
12755
  /**
12598
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_update&version=v1 click to debug }
12756
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
12599
12757
  */
12600
- batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12758
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12601
12759
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12602
12760
  return httpInstance
12603
12761
  .request({
12604
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`, path),
12762
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
12605
12763
  method: "POST",
12606
12764
  data,
12607
12765
  params,
@@ -12612,15 +12770,17 @@ class Client$1 {
12612
12770
  throw e;
12613
12771
  });
12614
12772
  }),
12773
+ },
12774
+ app: {
12615
12775
  /**
12616
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
12776
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
12617
12777
  */
12618
- batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12778
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12619
12779
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12620
12780
  return httpInstance
12621
12781
  .request({
12622
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
12623
- method: "POST",
12782
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
12783
+ method: "GET",
12624
12784
  data,
12625
12785
  params,
12626
12786
  headers,
@@ -12630,17 +12790,15 @@ class Client$1 {
12630
12790
  throw e;
12631
12791
  });
12632
12792
  }),
12633
- },
12634
- appTable: {
12635
12793
  /**
12636
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_delete&version=v1 click to debug }
12794
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
12637
12795
  */
12638
- batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12796
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12639
12797
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12640
12798
  return httpInstance
12641
12799
  .request({
12642
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`, path),
12643
- method: "POST",
12800
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
12801
+ method: "PUT",
12644
12802
  data,
12645
12803
  params,
12646
12804
  headers,
@@ -12650,14 +12808,16 @@ class Client$1 {
12650
12808
  throw e;
12651
12809
  });
12652
12810
  }),
12811
+ },
12812
+ appRole: {
12653
12813
  /**
12654
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=delete&version=v1 click to debug }
12814
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=delete&version=v1 click to debug }
12655
12815
  */
12656
12816
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12657
12817
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12658
12818
  return httpInstance
12659
12819
  .request({
12660
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`, path),
12820
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
12661
12821
  method: "DELETE",
12662
12822
  data,
12663
12823
  params,
@@ -12669,14 +12829,14 @@ class Client$1 {
12669
12829
  });
12670
12830
  }),
12671
12831
  /**
12672
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
12832
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
12673
12833
  */
12674
12834
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12675
12835
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12676
12836
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12677
12837
  const res = yield httpInstance
12678
12838
  .request({
12679
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12839
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
12680
12840
  method: "GET",
12681
12841
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12682
12842
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -12720,13 +12880,13 @@ class Client$1 {
12720
12880
  return Iterable;
12721
12881
  }),
12722
12882
  /**
12723
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
12883
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
12724
12884
  */
12725
12885
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12726
12886
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12727
12887
  return httpInstance
12728
12888
  .request({
12729
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12889
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
12730
12890
  method: "GET",
12731
12891
  data,
12732
12892
  params,
@@ -12738,14 +12898,14 @@ class Client$1 {
12738
12898
  });
12739
12899
  }),
12740
12900
  /**
12741
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_create&version=v1 click to debug }
12901
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=update&version=v1 click to debug }
12742
12902
  */
12743
- batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12903
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12744
12904
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12745
12905
  return httpInstance
12746
12906
  .request({
12747
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`, path),
12748
- method: "POST",
12907
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
12908
+ method: "PUT",
12749
12909
  data,
12750
12910
  params,
12751
12911
  headers,
@@ -12756,13 +12916,13 @@ class Client$1 {
12756
12916
  });
12757
12917
  }),
12758
12918
  /**
12759
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=create&version=v1 click to debug }
12919
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=create&version=v1 click to debug }
12760
12920
  */
12761
12921
  create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12762
12922
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12763
12923
  return httpInstance
12764
12924
  .request({
12765
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
12925
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
12766
12926
  method: "POST",
12767
12927
  data,
12768
12928
  params,
@@ -12774,16 +12934,52 @@ class Client$1 {
12774
12934
  });
12775
12935
  }),
12776
12936
  },
12777
- appTableView: {
12937
+ appRoleMember: {
12778
12938
  /**
12779
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
12939
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=delete&version=v1 click to debug }
12940
+ */
12941
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12942
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12943
+ return httpInstance
12944
+ .request({
12945
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`, path),
12946
+ method: "DELETE",
12947
+ data,
12948
+ params,
12949
+ headers,
12950
+ })
12951
+ .catch((e) => {
12952
+ this.logger.error(formatErrors(e));
12953
+ throw e;
12954
+ });
12955
+ }),
12956
+ /**
12957
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=create&version=v1 click to debug }
12958
+ */
12959
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12960
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12961
+ return httpInstance
12962
+ .request({
12963
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
12964
+ method: "POST",
12965
+ data,
12966
+ params,
12967
+ headers,
12968
+ })
12969
+ .catch((e) => {
12970
+ this.logger.error(formatErrors(e));
12971
+ throw e;
12972
+ });
12973
+ }),
12974
+ /**
12975
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
12780
12976
  */
12781
12977
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12782
12978
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12783
12979
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12784
12980
  const res = yield httpInstance
12785
12981
  .request({
12786
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
12982
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
12787
12983
  method: "GET",
12788
12984
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12789
12985
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -12827,13 +13023,13 @@ class Client$1 {
12827
13023
  return Iterable;
12828
13024
  }),
12829
13025
  /**
12830
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
13026
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
12831
13027
  */
12832
13028
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12833
13029
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12834
13030
  return httpInstance
12835
13031
  .request({
12836
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
13032
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
12837
13033
  method: "GET",
12838
13034
  data,
12839
13035
  params,
@@ -12845,14 +13041,14 @@ class Client$1 {
12845
13041
  });
12846
13042
  }),
12847
13043
  /**
12848
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=delete&version=v1 click to debug }
13044
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_create&version=v1 click to debug }
12849
13045
  */
12850
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13046
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12851
13047
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12852
13048
  return httpInstance
12853
13049
  .request({
12854
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
12855
- method: "DELETE",
13050
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`, path),
13051
+ method: "POST",
12856
13052
  data,
12857
13053
  params,
12858
13054
  headers,
@@ -12863,13 +13059,13 @@ class Client$1 {
12863
13059
  });
12864
13060
  }),
12865
13061
  /**
12866
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
13062
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_delete&version=v1 click to debug }
12867
13063
  */
12868
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13064
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12869
13065
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12870
13066
  return httpInstance
12871
13067
  .request({
12872
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
13068
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`, path),
12873
13069
  method: "POST",
12874
13070
  data,
12875
13071
  params,
@@ -12881,34 +13077,16 @@ class Client$1 {
12881
13077
  });
12882
13078
  }),
12883
13079
  },
12884
- app: {
12885
- /**
12886
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
12887
- */
12888
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12889
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
12890
- return httpInstance
12891
- .request({
12892
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
12893
- method: "GET",
12894
- data,
12895
- params,
12896
- headers,
12897
- })
12898
- .catch((e) => {
12899
- this.logger.error(formatErrors(e));
12900
- throw e;
12901
- });
12902
- }),
13080
+ appTableFormField: {
12903
13081
  /**
12904
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
13082
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
12905
13083
  */
12906
- update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13084
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12907
13085
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12908
13086
  return httpInstance
12909
13087
  .request({
12910
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
12911
- method: "PUT",
13088
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
13089
+ method: "PATCH",
12912
13090
  data,
12913
13091
  params,
12914
13092
  headers,
@@ -12918,17 +13096,15 @@ class Client$1 {
12918
13096
  throw e;
12919
13097
  });
12920
13098
  }),
12921
- },
12922
- appRole: {
12923
13099
  /**
12924
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
13100
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
12925
13101
  */
12926
13102
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12927
13103
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12928
13104
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
12929
13105
  const res = yield httpInstance
12930
13106
  .request({
12931
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
13107
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
12932
13108
  method: "GET",
12933
13109
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
12934
13110
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -12972,13 +13148,13 @@ class Client$1 {
12972
13148
  return Iterable;
12973
13149
  }),
12974
13150
  /**
12975
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
13151
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
12976
13152
  */
12977
13153
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12978
13154
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12979
13155
  return httpInstance
12980
13156
  .request({
12981
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
13157
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
12982
13158
  method: "GET",
12983
13159
  data,
12984
13160
  params,
@@ -12989,15 +13165,17 @@ class Client$1 {
12989
13165
  throw e;
12990
13166
  });
12991
13167
  }),
13168
+ },
13169
+ appTableForm: {
12992
13170
  /**
12993
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=delete&version=v1 click to debug }
13171
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
12994
13172
  */
12995
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13173
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12996
13174
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12997
13175
  return httpInstance
12998
13176
  .request({
12999
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
13000
- method: "DELETE",
13177
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
13178
+ method: "GET",
13001
13179
  data,
13002
13180
  params,
13003
13181
  headers,
@@ -13008,14 +13186,14 @@ class Client$1 {
13008
13186
  });
13009
13187
  }),
13010
13188
  /**
13011
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=update&version=v1 click to debug }
13189
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
13012
13190
  */
13013
- update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13191
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13014
13192
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13015
13193
  return httpInstance
13016
13194
  .request({
13017
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
13018
- method: "PUT",
13195
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
13196
+ method: "PATCH",
13019
13197
  data,
13020
13198
  params,
13021
13199
  headers,
@@ -13025,15 +13203,17 @@ class Client$1 {
13025
13203
  throw e;
13026
13204
  });
13027
13205
  }),
13206
+ },
13207
+ appTableRecord: {
13028
13208
  /**
13029
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=create&version=v1 click to debug }
13209
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
13030
13210
  */
13031
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13211
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13032
13212
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13033
13213
  return httpInstance
13034
13214
  .request({
13035
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
13036
- method: "POST",
13215
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
13216
+ method: "GET",
13037
13217
  data,
13038
13218
  params,
13039
13219
  headers,
@@ -13043,17 +13223,15 @@ class Client$1 {
13043
13223
  throw e;
13044
13224
  });
13045
13225
  }),
13046
- },
13047
- appRoleMember: {
13048
13226
  /**
13049
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=delete&version=v1 click to debug }
13227
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
13050
13228
  */
13051
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13229
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13052
13230
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13053
13231
  return httpInstance
13054
13232
  .request({
13055
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`, path),
13056
- method: "DELETE",
13233
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
13234
+ method: "PUT",
13057
13235
  data,
13058
13236
  params,
13059
13237
  headers,
@@ -13064,13 +13242,13 @@ class Client$1 {
13064
13242
  });
13065
13243
  }),
13066
13244
  /**
13067
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=create&version=v1 click to debug }
13245
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_update&version=v1 click to debug }
13068
13246
  */
13069
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13247
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13070
13248
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13071
13249
  return httpInstance
13072
13250
  .request({
13073
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
13251
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`, path),
13074
13252
  method: "POST",
13075
13253
  data,
13076
13254
  params,
@@ -13082,14 +13260,14 @@ class Client$1 {
13082
13260
  });
13083
13261
  }),
13084
13262
  /**
13085
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
13263
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
13086
13264
  */
13087
13265
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13088
13266
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13089
13267
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
13090
13268
  const res = yield httpInstance
13091
13269
  .request({
13092
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
13270
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
13093
13271
  method: "GET",
13094
13272
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
13095
13273
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -13133,13 +13311,13 @@ class Client$1 {
13133
13311
  return Iterable;
13134
13312
  }),
13135
13313
  /**
13136
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
13314
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
13137
13315
  */
13138
13316
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13139
13317
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13140
13318
  return httpInstance
13141
13319
  .request({
13142
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
13320
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
13143
13321
  method: "GET",
13144
13322
  data,
13145
13323
  params,
@@ -13151,13 +13329,31 @@ class Client$1 {
13151
13329
  });
13152
13330
  }),
13153
13331
  /**
13154
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_create&version=v1 click to debug }
13332
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
13155
13333
  */
13156
- batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13334
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13157
13335
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13158
13336
  return httpInstance
13159
13337
  .request({
13160
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`, path),
13338
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
13339
+ method: "DELETE",
13340
+ data,
13341
+ params,
13342
+ headers,
13343
+ })
13344
+ .catch((e) => {
13345
+ this.logger.error(formatErrors(e));
13346
+ throw e;
13347
+ });
13348
+ }),
13349
+ /**
13350
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
13351
+ */
13352
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13353
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
13354
+ return httpInstance
13355
+ .request({
13356
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
13161
13357
  method: "POST",
13162
13358
  data,
13163
13359
  params,
@@ -13169,13 +13365,13 @@ class Client$1 {
13169
13365
  });
13170
13366
  }),
13171
13367
  /**
13172
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_delete&version=v1 click to debug }
13368
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
13173
13369
  */
13174
13370
  batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13175
13371
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13176
13372
  return httpInstance
13177
13373
  .request({
13178
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`, path),
13374
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
13179
13375
  method: "POST",
13180
13376
  data,
13181
13377
  params,
@@ -13186,17 +13382,15 @@ class Client$1 {
13186
13382
  throw e;
13187
13383
  });
13188
13384
  }),
13189
- },
13190
- appTableFormField: {
13191
13385
  /**
13192
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
13386
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
13193
13387
  */
13194
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13388
+ batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13195
13389
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13196
13390
  return httpInstance
13197
13391
  .request({
13198
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
13199
- method: "PATCH",
13392
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
13393
+ method: "POST",
13200
13394
  data,
13201
13395
  params,
13202
13396
  headers,
@@ -13206,15 +13400,17 @@ class Client$1 {
13206
13400
  throw e;
13207
13401
  });
13208
13402
  }),
13403
+ },
13404
+ appDashboard: {
13209
13405
  /**
13210
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
13406
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=list&version=v1 click to debug }
13211
13407
  */
13212
13408
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13213
13409
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13214
13410
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
13215
13411
  const res = yield httpInstance
13216
13412
  .request({
13217
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
13413
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`, path),
13218
13414
  method: "GET",
13219
13415
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
13220
13416
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -13258,13 +13454,13 @@ class Client$1 {
13258
13454
  return Iterable;
13259
13455
  }),
13260
13456
  /**
13261
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
13457
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=list&version=v1 click to debug }
13262
13458
  */
13263
13459
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13264
13460
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13265
13461
  return httpInstance
13266
13462
  .request({
13267
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
13463
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`, path),
13268
13464
  method: "GET",
13269
13465
  data,
13270
13466
  params,
@@ -13276,44 +13472,6 @@ class Client$1 {
13276
13472
  });
13277
13473
  }),
13278
13474
  },
13279
- appTableForm: {
13280
- /**
13281
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
13282
- */
13283
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13284
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
13285
- return httpInstance
13286
- .request({
13287
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
13288
- method: "GET",
13289
- data,
13290
- params,
13291
- headers,
13292
- })
13293
- .catch((e) => {
13294
- this.logger.error(formatErrors(e));
13295
- throw e;
13296
- });
13297
- }),
13298
- /**
13299
- * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
13300
- */
13301
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13302
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
13303
- return httpInstance
13304
- .request({
13305
- url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
13306
- method: "PATCH",
13307
- data,
13308
- params,
13309
- headers,
13310
- })
13311
- .catch((e) => {
13312
- this.logger.error(formatErrors(e));
13313
- throw e;
13314
- });
13315
- }),
13316
- },
13317
13475
  };
13318
13476
  }
13319
13477
  }