@types/ali-oss 6.16.8 → 6.16.10

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.
ali-oss/LICENSE CHANGED
File without changes
ali-oss/README.md CHANGED
@@ -8,9 +8,8 @@ This package contains type definitions for ali-oss (https://github.com/aliyun/os
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ali-oss.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 13 May 2023 02:02:51 GMT
11
+ * Last updated: Tue, 17 Oct 2023 22:10:13 GMT
12
12
  * Dependencies: none
13
- * Global values: none
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [Ptrdu](https://github.com/ptrdu).
ali-oss/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- // Type definitions for ali-oss 6.16
2
- // Project: https://github.com/aliyun/oss-nodejs-sdk
3
- // Definitions by: Ptrdu <https://github.com/ptrdu>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // TypeScript Version: 3.3
6
-
7
1
  export = OSS;
8
2
 
9
3
  // basic OSS
@@ -32,7 +26,7 @@ declare namespace OSS {
32
26
  /** use time (ms) of refresh STSToken interval it should be less than sts info expire interval, default is 300000ms(5min) when sts info expires. */
33
27
  refreshSTSTokenInterval?: number;
34
28
  /** used by auto set stsToken、accessKeyId、accessKeySecret when sts info expires. return value must be object contains stsToken、accessKeyId、accessKeySecret */
35
- refreshSTSToken?: () => Promise<{ accessKeyId: string, accessKeySecret: string, stsToken: string }>;
29
+ refreshSTSToken?: () => Promise<{ accessKeyId: string; accessKeySecret: string; stsToken: string }>;
36
30
  }
37
31
 
38
32
  /**
@@ -100,20 +94,20 @@ declare namespace OSS {
100
94
  StorageClass: StorageType;
101
95
  }
102
96
 
103
- type StorageType = 'Standard' | 'IA' | 'Archive';
97
+ type StorageType = "Standard" | "IA" | "Archive";
104
98
 
105
- type ACLType = 'public-read-write' | 'public-read' | 'private';
99
+ type ACLType = "public-read-write" | "public-read" | "private";
106
100
 
107
- type HTTPMethods = 'GET' | 'POST' | 'DELETE' | 'PUT';
101
+ type HTTPMethods = "GET" | "POST" | "DELETE" | "PUT";
108
102
 
109
- type RedundancyType = 'LRS' | 'ZRS';
103
+ type RedundancyType = "LRS" | "ZRS";
110
104
 
111
105
  interface RequestOptions {
112
106
  // the operation timeout
113
107
  timeout?: number | undefined;
114
108
  }
115
109
 
116
- type RuleStatusType = 'Enabled' | 'Disabled';
110
+ type RuleStatusType = "Enabled" | "Disabled";
117
111
 
118
112
  interface LifecycleRule {
119
113
  /** rule id, if not set, OSS will auto create it with random string. */
@@ -167,7 +161,7 @@ declare namespace OSS {
167
161
  Version: string;
168
162
  Statement: Array<{
169
163
  Action: string[];
170
- Effect: 'Allow' | 'Deny';
164
+ Effect: "Allow" | "Deny";
171
165
  Principal: string[];
172
166
  Resource: string[];
173
167
  }>;
@@ -263,7 +257,7 @@ declare namespace OSS {
263
257
  /** search start from marker, including marker key */
264
258
  marker?: string | undefined;
265
259
  /** max buckets, default is 100, limit to 1000 */
266
- 'max-keys'?: string | number | undefined;
260
+ "max-keys"?: string | number | undefined;
267
261
  }
268
262
 
269
263
  interface PutBucketOptions {
@@ -288,29 +282,29 @@ declare namespace OSS {
288
282
  /** only search current dir, not including subdir */
289
283
  delimiter?: string | undefined; // delimiter search scope e.g.
290
284
  /** max objects, default is 100, limit to 1000 */
291
- 'max-keys': string | number;
285
+ "max-keys": string | number;
292
286
  /** Specifies that the object names in the response are URL-encoded. */
293
- 'encoding-type'?: 'url' | '';
287
+ "encoding-type"?: "url" | "";
294
288
  }
295
289
 
296
290
  interface ListV2ObjectsQuery {
297
291
  /** search object using prefix key */
298
292
  prefix?: string;
299
293
  /** search start from token, including token key */
300
- 'continuation-token'?: string;
294
+ "continuation-token"?: string;
301
295
  /** only search current dir, not including subdir */
302
296
  delimiter?: string | number;
303
297
  /** max objects, default is 100, limit to 1000 */
304
- 'max-keys'?: string;
298
+ "max-keys"?: string;
305
299
  /**
306
300
  * The name of the object from which the list operation begins.
307
301
  * If this parameter is specified, objects whose names are alphabetically greater than the start-after parameter value are returned.
308
302
  */
309
- 'start-after'?: string;
303
+ "start-after"?: string;
310
304
  /** Specifies whether to include the information about object owners in the response. */
311
- 'fetch-owner'?: boolean;
305
+ "fetch-owner"?: boolean;
312
306
  /** Specifies that the object names in the response are URL-encoded. */
313
- 'encoding-type'?: 'url' | '';
307
+ "encoding-type"?: "url" | "";
314
308
  }
315
309
 
316
310
  interface ListObjectResult {
@@ -437,9 +431,9 @@ declare namespace OSS {
437
431
  }
438
432
 
439
433
  interface ResponseHeaderType {
440
- 'content-type'?: string | undefined;
441
- 'content-disposition'?: string | undefined;
442
- 'cache-control'?: string | undefined;
434
+ "content-type"?: string | undefined;
435
+ "content-disposition"?: string | undefined;
436
+ "cache-control"?: string | undefined;
443
437
  }
444
438
 
445
439
  interface SignatureUrlOptions {
@@ -448,7 +442,7 @@ declare namespace OSS {
448
442
  /** the HTTP method, default is 'GET' */
449
443
  method?: HTTPMethods | undefined;
450
444
  /** set the request content type */
451
- 'Content-Type'?: string | undefined;
445
+ "Content-Type"?: string | undefined;
452
446
  /** image process params, will send with x-oss-process e.g.: {process: 'image/resize,w_200'} */
453
447
  process?: string | undefined;
454
448
  /** traffic limit, range: 819200~838860800 */
@@ -550,11 +544,11 @@ declare namespace OSS {
550
544
 
551
545
  interface ListPartsQuery {
552
546
  /** The maximum part number in the response of the OSS. default value: 1000. */
553
- 'max-parts': number;
547
+ "max-parts": number;
554
548
  /** Starting position of a specific list. A part is listed only when the part number is greater than the value of this parameter. */
555
- 'part-number-marker': number;
549
+ "part-number-marker": number;
556
550
  /** Specify the encoding of the returned content and the encoding type. Optional value: url */
557
- 'encoding-type': string;
551
+ "encoding-type": string;
558
552
  }
559
553
 
560
554
  interface ListPartsResult {
@@ -571,9 +565,9 @@ declare namespace OSS {
571
565
 
572
566
  interface ListUploadsQuery {
573
567
  prefix?: string | undefined;
574
- 'max-uploads'?: number | undefined;
575
- 'key-marker'?: string | undefined;
576
- 'upload-id-marker'?: string | undefined;
568
+ "max-uploads"?: number | undefined;
569
+ "key-marker"?: string | undefined;
570
+ "upload-id-marker"?: string | undefined;
577
571
  }
578
572
 
579
573
  interface ListUploadsResult {
@@ -617,7 +611,7 @@ declare namespace OSS {
617
611
  /** the channel id marker (returns channels after this id) */
618
612
  marker: string;
619
613
  /** max number of channels to return */
620
- 'max-keys ': number;
614
+ "max-keys ": number;
621
615
  }
622
616
 
623
617
  interface ListChannelsResult {
@@ -966,10 +960,10 @@ declare class OSS {
966
960
  putBucketPolicy(
967
961
  name: string,
968
962
  policy: OSS.BucketPolicy,
969
- options?: OSS.RequestOptions
963
+ options?: OSS.RequestOptions,
970
964
  ): Promise<{
971
- status: number,
972
- res: OSS.NormalSuccessResponse,
965
+ status: number;
966
+ res: OSS.NormalSuccessResponse;
973
967
  }>;
974
968
 
975
969
  /**
@@ -982,10 +976,10 @@ declare class OSS {
982
976
  */
983
977
  deleteBucketPolicy(
984
978
  name: string,
985
- options?: OSS.RequestOptions
979
+ options?: OSS.RequestOptions,
986
980
  ): Promise<{
987
- status: number,
988
- res: OSS.NormalSuccessResponse,
981
+ status: number;
982
+ res: OSS.NormalSuccessResponse;
989
983
  }>;
990
984
 
991
985
  /********************************************************** Object operations ********************************************/
@@ -1052,7 +1046,12 @@ declare class OSS {
1052
1046
  * Copy an object from sourceName to name.
1053
1047
  */
1054
1048
  copy(name: string, sourceName: string, options?: OSS.CopyObjectOptions): Promise<OSS.CopyAndPutMetaResult>;
1055
- copy(name: string, sourceName: string, sourceBucket?: string, options?: OSS.CopyObjectOptions): Promise<OSS.CopyAndPutMetaResult>;
1049
+ copy(
1050
+ name: string,
1051
+ sourceName: string,
1052
+ sourceBucket?: string,
1053
+ options?: OSS.CopyObjectOptions,
1054
+ ): Promise<OSS.CopyAndPutMetaResult>;
1056
1055
 
1057
1056
  /**
1058
1057
  * Set an exists object meta.
@@ -1177,7 +1176,7 @@ declare class OSS {
1177
1176
  /**
1178
1177
  * policy config object or JSON string
1179
1178
  */
1180
- policy: object | string
1179
+ policy: object | string,
1181
1180
  ): OSS.PostObjectParams;
1182
1181
 
1183
1182
  /************************************************ RTMP Operations *************************************************************/
ali-oss/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@types/ali-oss",
3
- "version": "6.16.8",
3
+ "version": "6.16.10",
4
4
  "description": "TypeScript definitions for ali-oss",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ali-oss",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "Ptrdu",
10
- "url": "https://github.com/ptrdu",
11
- "githubUsername": "ptrdu"
10
+ "githubUsername": "ptrdu",
11
+ "url": "https://github.com/ptrdu"
12
12
  }
13
13
  ],
14
14
  "main": "",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "scripts": {},
22
22
  "dependencies": {},
23
- "typesPublisherContentHash": "3096883ec2323f93aea0e7b9f9d74e5ca35577cf1af69a19acf8b92bcf4f695e",
24
- "typeScriptVersion": "4.3"
23
+ "typesPublisherContentHash": "a55f2e5aec892f51f2087d4aa8b8434f30c34fb7ef44b001d1fbdf10abcd1dc0",
24
+ "typeScriptVersion": "4.5"
25
25
  }