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