@types/ali-oss 6.16.12 → 6.23.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.
Files changed (3) hide show
  1. ali-oss/README.md +3 -3
  2. ali-oss/index.d.ts +21 -5
  3. ali-oss/package.json +12 -2
ali-oss/README.md CHANGED
@@ -2,14 +2,14 @@
2
2
  > `npm install --save @types/ali-oss`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for ali-oss (https://github.com/aliyun/oss-nodejs-sdk).
5
+ This package contains type definitions for ali-oss (https://github.com/ali-sdk/ali-oss).
6
6
 
7
7
  # Details
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: Fri, 14 Nov 2025 19:02:08 GMT
11
+ * Last updated: Tue, 06 Jan 2026 13:13:51 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
15
- These definitions were written by [Ptrdu](https://github.com/ptrdu).
15
+ These definitions were written by [Ptrdu](https://github.com/ptrdu), [StarHeart](https://github.com/StarHeartHunt), and [cnjsstong](https://github.com/cnjsstong).
ali-oss/index.d.ts CHANGED
@@ -27,6 +27,8 @@ declare namespace OSS {
27
27
  refreshSTSTokenInterval?: number;
28
28
  /** used by auto set stsToken、accessKeyId、accessKeySecret when sts info expires. return value must be object contains stsToken、accessKeyId、accessKeySecret */
29
29
  refreshSTSToken?: () => Promise<{ accessKeyId: string; accessKeySecret: string; stsToken: string }>;
30
+ /** Use V4 signature. Default is false. */
31
+ authorizationV4?: boolean | undefined;
30
32
  }
31
33
 
32
34
  /**
@@ -295,7 +297,7 @@ declare namespace OSS {
295
297
  /** only search current dir, not including subdir */
296
298
  delimiter?: string | number;
297
299
  /** max objects, default is 100, limit to 1000 */
298
- "max-keys"?: string;
300
+ "max-keys"?: string | number;
299
301
  /**
300
302
  * The name of the object from which the list operation begins.
301
303
  * If this parameter is specified, objects whose names are alphabetically greater than the start-after parameter value are returned.
@@ -698,11 +700,11 @@ declare namespace OSS {
698
700
  signatureUrlV4(
699
701
  method: HTTPMethods,
700
702
  expires: number,
701
- request?: {
703
+ request: {
702
704
  headers?: object | undefined;
703
705
  queries?: object | undefined;
704
- },
705
- objectName?: string,
706
+ } | undefined,
707
+ objectName: string,
706
708
  additionalHeaders?: string[],
707
709
  ): Promise<string>;
708
710
 
@@ -1006,7 +1008,7 @@ declare class OSS {
1006
1008
  /**
1007
1009
  * List Objects in the bucket.(V2)
1008
1010
  */
1009
- listV2(query: OSS.ListV2ObjectsQuery | null, options: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
1011
+ listV2(query: OSS.ListV2ObjectsQuery | null, options?: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
1010
1012
 
1011
1013
  /**
1012
1014
  * Add an object to the bucket.
@@ -1083,6 +1085,20 @@ declare class OSS {
1083
1085
  */
1084
1086
  signatureUrl(name: string, options?: OSS.SignatureUrlOptions): string;
1085
1087
 
1088
+ /**
1089
+ * Generate a signed URL for V4 of an OSS resource and share the URL to allow authorized third-party users to access the resource.
1090
+ */
1091
+ signatureUrlV4(
1092
+ method: OSS.HTTPMethods,
1093
+ expires: number,
1094
+ request: {
1095
+ headers?: object | undefined;
1096
+ queries?: object | undefined;
1097
+ } | undefined,
1098
+ objectName: string,
1099
+ additionalHeaders?: string[],
1100
+ ): Promise<string>;
1101
+
1086
1102
  /**
1087
1103
  * Basically the same as signatureUrl, if refreshSTSToken is configured asyncSignatureUrl will refresh stsToken
1088
1104
  */
ali-oss/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/ali-oss",
3
- "version": "6.16.12",
3
+ "version": "6.23.0",
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",
@@ -9,6 +9,16 @@
9
9
  "name": "Ptrdu",
10
10
  "githubUsername": "ptrdu",
11
11
  "url": "https://github.com/ptrdu"
12
+ },
13
+ {
14
+ "name": "StarHeart",
15
+ "githubUsername": "StarHeartHunt",
16
+ "url": "https://github.com/StarHeartHunt"
17
+ },
18
+ {
19
+ "name": "cnjsstong",
20
+ "githubUsername": "cnjsstong",
21
+ "url": "https://github.com/cnjsstong"
12
22
  }
13
23
  ],
14
24
  "main": "",
@@ -21,6 +31,6 @@
21
31
  "scripts": {},
22
32
  "dependencies": {},
23
33
  "peerDependencies": {},
24
- "typesPublisherContentHash": "aff73645619c73f2444b32a94d8fcb734e5006e8967cf2ca0c25d5276fdbf74a",
34
+ "typesPublisherContentHash": "e36d92cc9b00c5ea7f9ac0fae55e87e854cf022401ed648d91f2e0cf75da60f5",
25
35
  "typeScriptVersion": "5.2"
26
36
  }