@types/ali-oss 6.16.11 → 6.16.13

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 +2 -2
  2. ali-oss/index.d.ts +19 -4
  3. ali-oss/package.json +9 -3
ali-oss/README.md CHANGED
@@ -8,8 +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: Mon, 06 Nov 2023 22:41:04 GMT
11
+ * Last updated: Sat, 15 Nov 2025 08:36:30 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), and [StarHeart](https://github.com/StarHeartHunt).
ali-oss/index.d.ts CHANGED
@@ -295,7 +295,7 @@ declare namespace OSS {
295
295
  /** only search current dir, not including subdir */
296
296
  delimiter?: string | number;
297
297
  /** max objects, default is 100, limit to 1000 */
298
- "max-keys"?: string;
298
+ "max-keys"?: string | number;
299
299
  /**
300
300
  * The name of the object from which the list operation begins.
301
301
  * If this parameter is specified, objects whose names are alphabetically greater than the start-after parameter value are returned.
@@ -693,9 +693,24 @@ declare namespace OSS {
693
693
 
694
694
  deleteMulti(names: string[], options?: DeleteMultiOptions): Promise<DeleteMultiResult>;
695
695
 
696
- signatureUrl(name: string, options?: SignatureUrlOptions): string;
696
+ signatureUrl(name: string, options?: SignatureUrlOptions, strictObjectNameValidation?: boolean): string;
697
697
 
698
- asyncSignatureUrl(name: string, options?: SignatureUrlOptions): Promise<string>;
698
+ signatureUrlV4(
699
+ method: HTTPMethods,
700
+ expires: number,
701
+ request?: {
702
+ headers?: object | undefined;
703
+ queries?: object | undefined;
704
+ },
705
+ objectName?: string,
706
+ additionalHeaders?: string[],
707
+ ): Promise<string>;
708
+
709
+ asyncSignatureUrl(
710
+ name: string,
711
+ options?: SignatureUrlOptions,
712
+ strictObjectNameValidation?: boolean,
713
+ ): Promise<string>;
699
714
 
700
715
  putACL(name: string, acl: ACLType, options?: RequestOptions): Promise<NormalSuccessResponse>;
701
716
 
@@ -991,7 +1006,7 @@ declare class OSS {
991
1006
  /**
992
1007
  * List Objects in the bucket.(V2)
993
1008
  */
994
- listV2(query: OSS.ListV2ObjectsQuery | null, options: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
1009
+ listV2(query: OSS.ListV2ObjectsQuery | null, options?: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
995
1010
 
996
1011
  /**
997
1012
  * Add an object to the bucket.
ali-oss/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/ali-oss",
3
- "version": "6.16.11",
3
+ "version": "6.16.13",
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,11 @@
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"
12
17
  }
13
18
  ],
14
19
  "main": "",
@@ -20,6 +25,7 @@
20
25
  },
21
26
  "scripts": {},
22
27
  "dependencies": {},
23
- "typesPublisherContentHash": "ba5d65f34f14361bc5bb0ebfc12949def4cd5ffa5129fa9e8066f2e6bbc84f6e",
24
- "typeScriptVersion": "4.5"
28
+ "peerDependencies": {},
29
+ "typesPublisherContentHash": "69d0ac18b7d666d61aec58eac31b3dbe4d3a4bd8dd267490312d73d0f9703b72",
30
+ "typeScriptVersion": "5.2"
25
31
  }