@larksuiteoapi/node-sdk 1.50.0 → 1.51.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larksuiteoapi/node-sdk",
3
- "version": "1.50.0",
3
+ "version": "1.51.0-alpha.0",
4
4
  "description": "larksuite open sdk for nodejs",
5
5
  "keywords": [
6
6
  "feishu",
package/types/index.d.ts CHANGED
@@ -83,6 +83,8 @@ interface HttpRequestOptions<D> {
83
83
  data?: D;
84
84
  responseType?: ResponseType;
85
85
  paramsSerializer?: (params: Record<string, any>) => string;
86
+ timeout?: number;
87
+ $return_headers?: boolean;
86
88
  }
87
89
 
88
90
  interface IRequestOptions {
@@ -146,6 +148,7 @@ declare abstract class Client$16 {
146
148
  }, options?: IRequestOptions$1) => Promise<{
147
149
  writeFile: (filePath: string) => Promise<unknown>;
148
150
  getReadableStream: () => Readable;
151
+ headers: any;
149
152
  }>;
150
153
  };
151
154
  /**
@@ -412,6 +415,7 @@ declare abstract class Client$16 {
412
415
  }, options?: IRequestOptions$1) => Promise<{
413
416
  writeFile: (filePath: string) => Promise<unknown>;
414
417
  getReadableStream: () => Readable;
418
+ headers: any;
415
419
  }>;
416
420
  /**
417
421
  * {@link https://open.feishu.cn/api-explorer?project=acs&resource=user.face&apiName=update&version=v1 click to debug }
@@ -615,6 +619,7 @@ declare abstract class Client$16 {
615
619
  }, options?: IRequestOptions$1) => Promise<{
616
620
  writeFile: (filePath: string) => Promise<unknown>;
617
621
  getReadableStream: () => Readable;
622
+ headers: any;
618
623
  }>;
619
624
  };
620
625
  /**
@@ -881,6 +886,7 @@ declare abstract class Client$16 {
881
886
  }, options?: IRequestOptions$1) => Promise<{
882
887
  writeFile: (filePath: string) => Promise<unknown>;
883
888
  getReadableStream: () => Readable;
889
+ headers: any;
884
890
  }>;
885
891
  /**
886
892
  * {@link https://open.feishu.cn/api-explorer?project=acs&resource=user.face&apiName=update&version=v1 click to debug }
@@ -11909,6 +11915,7 @@ declare abstract class Client$10 extends Client$11 {
11909
11915
  }, options?: IRequestOptions$1) => Promise<{
11910
11916
  writeFile: (filePath: string) => Promise<unknown>;
11911
11917
  getReadableStream: () => Readable;
11918
+ headers: any;
11912
11919
  }>;
11913
11920
  /**
11914
11921
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=file&apiName=upload&version=v1 click to debug }
@@ -14419,6 +14426,7 @@ declare abstract class Client$10 extends Client$11 {
14419
14426
  }, options?: IRequestOptions$1) => Promise<{
14420
14427
  writeFile: (filePath: string) => Promise<unknown>;
14421
14428
  getReadableStream: () => Readable;
14429
+ headers: any;
14422
14430
  }>;
14423
14431
  /**
14424
14432
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=file&apiName=upload&version=v1 click to debug }
@@ -18563,6 +18571,7 @@ declare abstract class Client$Y extends Client$Z {
18563
18571
  }, options?: IRequestOptions$1) => Promise<{
18564
18572
  writeFile: (filePath: string) => Promise<unknown>;
18565
18573
  getReadableStream: () => Readable;
18574
+ headers: any;
18566
18575
  }>;
18567
18576
  /**
18568
18577
  * {@link https://open.feishu.cn/api-explorer?project=baike&resource=file&apiName=upload&version=v1 click to debug }
@@ -19842,6 +19851,7 @@ declare abstract class Client$Y extends Client$Z {
19842
19851
  }, options?: IRequestOptions$1) => Promise<{
19843
19852
  writeFile: (filePath: string) => Promise<unknown>;
19844
19853
  getReadableStream: () => Readable;
19854
+ headers: any;
19845
19855
  }>;
19846
19856
  /**
19847
19857
  * {@link https://open.feishu.cn/api-explorer?project=baike&resource=file&apiName=upload&version=v1 click to debug }
@@ -26580,6 +26590,7 @@ declare abstract class Client$U extends Client$V {
26580
26590
  }, options?: IRequestOptions$1) => Promise<{
26581
26591
  writeFile: (filePath: string) => Promise<unknown>;
26582
26592
  getReadableStream: () => Readable;
26593
+ headers: any;
26583
26594
  }>;
26584
26595
  };
26585
26596
  /**
@@ -42023,6 +42034,7 @@ declare abstract class Client$M extends Client$N {
42023
42034
  }, options?: IRequestOptions$1) => Promise<{
42024
42035
  writeFile: (filePath: string) => Promise<unknown>;
42025
42036
  getReadableStream: () => Readable;
42037
+ headers: any;
42026
42038
  }>;
42027
42039
  };
42028
42040
  /**
@@ -51461,6 +51473,7 @@ declare abstract class Client$M extends Client$N {
51461
51473
  }, options?: IRequestOptions$1) => Promise<{
51462
51474
  writeFile: (filePath: string) => Promise<unknown>;
51463
51475
  getReadableStream: () => Readable;
51476
+ headers: any;
51464
51477
  }>;
51465
51478
  };
51466
51479
  /**
@@ -186793,6 +186806,7 @@ declare abstract class Client$G extends Client$H {
186793
186806
  }, options?: IRequestOptions$1) => Promise<{
186794
186807
  writeFile: (filePath: string) => Promise<unknown>;
186795
186808
  getReadableStream: () => Readable;
186809
+ headers: any;
186796
186810
  }>;
186797
186811
  /**
186798
186812
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=export_task&apiName=get&version=v1 click to debug }
@@ -187491,6 +187505,7 @@ declare abstract class Client$G extends Client$H {
187491
187505
  }, options?: IRequestOptions$1) => Promise<{
187492
187506
  writeFile: (filePath: string) => Promise<unknown>;
187493
187507
  getReadableStream: () => Readable;
187508
+ headers: any;
187494
187509
  }>;
187495
187510
  /**
187496
187511
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
@@ -188204,6 +188219,7 @@ declare abstract class Client$G extends Client$H {
188204
188219
  }, options?: IRequestOptions$1) => Promise<{
188205
188220
  writeFile: (filePath: string) => Promise<unknown>;
188206
188221
  getReadableStream: () => Readable;
188222
+ headers: any;
188207
188223
  }>;
188208
188224
  /**
188209
188225
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_all&version=v1 click to debug }
@@ -188754,6 +188770,7 @@ declare abstract class Client$G extends Client$H {
188754
188770
  }, options?: IRequestOptions$1) => Promise<{
188755
188771
  writeFile: (filePath: string) => Promise<unknown>;
188756
188772
  getReadableStream: () => Readable;
188773
+ headers: any;
188757
188774
  }>;
188758
188775
  /**
188759
188776
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=export_task&apiName=get&version=v1 click to debug }
@@ -189452,6 +189469,7 @@ declare abstract class Client$G extends Client$H {
189452
189469
  }, options?: IRequestOptions$1) => Promise<{
189453
189470
  writeFile: (filePath: string) => Promise<unknown>;
189454
189471
  getReadableStream: () => Readable;
189472
+ headers: any;
189455
189473
  }>;
189456
189474
  /**
189457
189475
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
@@ -190165,6 +190183,7 @@ declare abstract class Client$G extends Client$H {
190165
190183
  }, options?: IRequestOptions$1) => Promise<{
190166
190184
  writeFile: (filePath: string) => Promise<unknown>;
190167
190185
  getReadableStream: () => Readable;
190186
+ headers: any;
190168
190187
  }>;
190169
190188
  /**
190170
190189
  * {@link https://open.feishu.cn/api-explorer?project=drive&resource=media&apiName=upload_all&version=v1 click to debug }
@@ -190851,6 +190870,7 @@ declare abstract class Client$E extends Client$F {
190851
190870
  }, options?: IRequestOptions$1) => Promise<{
190852
190871
  writeFile: (filePath: string) => Promise<unknown>;
190853
190872
  getReadableStream: () => Readable;
190873
+ headers: any;
190854
190874
  }>;
190855
190875
  };
190856
190876
  /**
@@ -191250,6 +191270,7 @@ declare abstract class Client$E extends Client$F {
191250
191270
  }, options?: IRequestOptions$1) => Promise<{
191251
191271
  writeFile: (filePath: string) => Promise<unknown>;
191252
191272
  getReadableStream: () => Readable;
191273
+ headers: any;
191253
191274
  }>;
191254
191275
  };
191255
191276
  /**
@@ -192461,6 +192482,7 @@ declare abstract class Client$y extends Client$z {
192461
192482
  }, options?: IRequestOptions$1) => Promise<{
192462
192483
  writeFile: (filePath: string) => Promise<unknown>;
192463
192484
  getReadableStream: () => Readable;
192485
+ headers: any;
192464
192486
  }>;
192465
192487
  /**
192466
192488
  * {@link https://open.feishu.cn/api-explorer?project=helpdesk&resource=faq&apiName=get&version=v1 click to debug }
@@ -193458,6 +193480,7 @@ declare abstract class Client$y extends Client$z {
193458
193480
  }, options?: IRequestOptions$1) => Promise<{
193459
193481
  writeFile: (filePath: string) => Promise<unknown>;
193460
193482
  getReadableStream: () => Readable;
193483
+ headers: any;
193461
193484
  }>;
193462
193485
  /**
193463
193486
  * {@link https://open.feishu.cn/api-explorer?project=helpdesk&resource=ticket&apiName=update&version=v1 click to debug }
@@ -194463,6 +194486,7 @@ declare abstract class Client$y extends Client$z {
194463
194486
  }, options?: IRequestOptions$1) => Promise<{
194464
194487
  writeFile: (filePath: string) => Promise<unknown>;
194465
194488
  getReadableStream: () => Readable;
194489
+ headers: any;
194466
194490
  }>;
194467
194491
  /**
194468
194492
  * {@link https://open.feishu.cn/api-explorer?project=helpdesk&resource=faq&apiName=get&version=v1 click to debug }
@@ -195460,6 +195484,7 @@ declare abstract class Client$y extends Client$z {
195460
195484
  }, options?: IRequestOptions$1) => Promise<{
195461
195485
  writeFile: (filePath: string) => Promise<unknown>;
195462
195486
  getReadableStream: () => Readable;
195487
+ headers: any;
195463
195488
  }>;
195464
195489
  /**
195465
195490
  * {@link https://open.feishu.cn/api-explorer?project=helpdesk&resource=ticket&apiName=update&version=v1 click to debug }
@@ -226171,6 +226196,7 @@ declare abstract class Client$v extends Client$w {
226171
226196
  }, options?: IRequestOptions$1) => Promise<{
226172
226197
  writeFile: (filePath: string) => Promise<unknown>;
226173
226198
  getReadableStream: () => Readable;
226199
+ headers: any;
226174
226200
  }>;
226175
226201
  };
226176
226202
  /**
@@ -226214,6 +226240,7 @@ declare abstract class Client$v extends Client$w {
226214
226240
  }, options?: IRequestOptions$1) => Promise<{
226215
226241
  writeFile: (filePath: string) => Promise<unknown>;
226216
226242
  getReadableStream: () => Readable;
226243
+ headers: any;
226217
226244
  }>;
226218
226245
  };
226219
226246
  /**
@@ -227128,6 +227155,7 @@ declare abstract class Client$v extends Client$w {
227128
227155
  }, options?: IRequestOptions$1) => Promise<{
227129
227156
  writeFile: (filePath: string) => Promise<unknown>;
227130
227157
  getReadableStream: () => Readable;
227158
+ headers: any;
227131
227159
  }>;
227132
227160
  };
227133
227161
  /**
@@ -228819,6 +228847,7 @@ declare abstract class Client$v extends Client$w {
228819
228847
  }, options?: IRequestOptions$1) => Promise<{
228820
228848
  writeFile: (filePath: string) => Promise<unknown>;
228821
228849
  getReadableStream: () => Readable;
228850
+ headers: any;
228822
228851
  }>;
228823
228852
  };
228824
228853
  /**
@@ -228862,6 +228891,7 @@ declare abstract class Client$v extends Client$w {
228862
228891
  }, options?: IRequestOptions$1) => Promise<{
228863
228892
  writeFile: (filePath: string) => Promise<unknown>;
228864
228893
  getReadableStream: () => Readable;
228894
+ headers: any;
228865
228895
  }>;
228866
228896
  };
228867
228897
  /**
@@ -229776,6 +229806,7 @@ declare abstract class Client$v extends Client$w {
229776
229806
  }, options?: IRequestOptions$1) => Promise<{
229777
229807
  writeFile: (filePath: string) => Promise<unknown>;
229778
229808
  getReadableStream: () => Readable;
229809
+ headers: any;
229779
229810
  }>;
229780
229811
  };
229781
229812
  /**
@@ -231660,6 +231691,7 @@ declare abstract class Client$u extends Client$v {
231660
231691
  }, options?: IRequestOptions$1) => Promise<{
231661
231692
  writeFile: (filePath: string) => Promise<unknown>;
231662
231693
  getReadableStream: () => Readable;
231694
+ headers: any;
231663
231695
  }>;
231664
231696
  /**
231665
231697
  * {@link https://open.feishu.cn/api-explorer?project=lingo&resource=file&apiName=upload&version=v1 click to debug }
@@ -236094,6 +236126,7 @@ declare abstract class Client$q extends Client$r {
236094
236126
  }, options?: IRequestOptions$1) => Promise<{
236095
236127
  writeFile: (filePath: string) => Promise<unknown>;
236096
236128
  getReadableStream: () => Readable;
236129
+ headers: any;
236097
236130
  }>;
236098
236131
  };
236099
236132
  };
@@ -251302,6 +251335,7 @@ declare abstract class Client$4 extends Client$5 {
251302
251335
  }, options?: IRequestOptions$1) => Promise<{
251303
251336
  writeFile: (filePath: string) => Promise<unknown>;
251304
251337
  getReadableStream: () => Readable;
251338
+ headers: any;
251305
251339
  }>;
251306
251340
  /**
251307
251341
  * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=get&version=v1 click to debug }
@@ -253958,6 +253992,7 @@ declare abstract class Client$4 extends Client$5 {
253958
253992
  }, options?: IRequestOptions$1) => Promise<{
253959
253993
  writeFile: (filePath: string) => Promise<unknown>;
253960
253994
  getReadableStream: () => Readable;
253995
+ headers: any;
253961
253996
  }>;
253962
253997
  /**
253963
253998
  * {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=get&version=v1 click to debug }