@types/ali-oss 6.16.13 → 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 +19 -3
  3. ali-oss/package.json +7 -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: Sat, 15 Nov 2025 08:36:30 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), and [StarHeart](https://github.com/StarHeartHunt).
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
  /**
@@ -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
 
@@ -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.13",
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",
@@ -14,6 +14,11 @@
14
14
  "name": "StarHeart",
15
15
  "githubUsername": "StarHeartHunt",
16
16
  "url": "https://github.com/StarHeartHunt"
17
+ },
18
+ {
19
+ "name": "cnjsstong",
20
+ "githubUsername": "cnjsstong",
21
+ "url": "https://github.com/cnjsstong"
17
22
  }
18
23
  ],
19
24
  "main": "",
@@ -26,6 +31,6 @@
26
31
  "scripts": {},
27
32
  "dependencies": {},
28
33
  "peerDependencies": {},
29
- "typesPublisherContentHash": "69d0ac18b7d666d61aec58eac31b3dbe4d3a4bd8dd267490312d73d0f9703b72",
34
+ "typesPublisherContentHash": "e36d92cc9b00c5ea7f9ac0fae55e87e854cf022401ed648d91f2e0cf75da60f5",
30
35
  "typeScriptVersion": "5.2"
31
36
  }