@types/ali-oss 6.16.4 → 6.16.6
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/README.md +1 -1
- ali-oss/index.d.ts +18 -0
- ali-oss/package.json +3 -3
ali-oss/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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:
|
|
11
|
+
* Last updated: Wed, 19 Oct 2022 01:02:56 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
ali-oss/index.d.ts
CHANGED
|
@@ -445,9 +445,15 @@ declare namespace OSS {
|
|
|
445
445
|
method?: HTTPMethods | undefined;
|
|
446
446
|
/** set the request content type */
|
|
447
447
|
'Content-Type'?: string | undefined;
|
|
448
|
+
/** image process params, will send with x-oss-process e.g.: {process: 'image/resize,w_200'} */
|
|
448
449
|
process?: string | undefined;
|
|
450
|
+
/** traffic limit, range: 819200~838860800 */
|
|
451
|
+
trafficLimit?: number | undefined;
|
|
452
|
+
/** additional signature parameters in url */
|
|
453
|
+
subResource?: object | undefined;
|
|
449
454
|
/** set the response headers for download */
|
|
450
455
|
response?: ResponseHeaderType | undefined;
|
|
456
|
+
/** set the callback for the operation */
|
|
451
457
|
callback?: ObjectCallback | undefined;
|
|
452
458
|
}
|
|
453
459
|
|
|
@@ -691,6 +697,8 @@ declare namespace OSS {
|
|
|
691
697
|
|
|
692
698
|
signatureUrl(name: string, options?: SignatureUrlOptions): string;
|
|
693
699
|
|
|
700
|
+
asyncSignatureUrl(name: string, options?: SignatureUrlOptions): Promise<string>;
|
|
701
|
+
|
|
694
702
|
putACL(name: string, acl: ACLType, options?: RequestOptions): Promise<NormalSuccessResponse>;
|
|
695
703
|
|
|
696
704
|
restore(name: string, options?: RequestOptions): Promise<NormalSuccessResponse>;
|
|
@@ -783,6 +791,11 @@ declare namespace OSS {
|
|
|
783
791
|
* Create a signature url for directly download.
|
|
784
792
|
*/
|
|
785
793
|
signatureUrl(name: string, options?: { expires?: string | undefined; timeout?: string | undefined }): string;
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Basically the same as signatureUrl, if refreshSTSToken is configured asyncSignatureUrl will refresh stsToken
|
|
797
|
+
*/
|
|
798
|
+
asyncSignatureUrl(name: string, options?: SignatureUrlOptions): Promise<string>;
|
|
786
799
|
}
|
|
787
800
|
}
|
|
788
801
|
|
|
@@ -1047,6 +1060,11 @@ declare class OSS {
|
|
|
1047
1060
|
*/
|
|
1048
1061
|
signatureUrl(name: string, options?: OSS.SignatureUrlOptions): string;
|
|
1049
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* Basically the same as signatureUrl, if refreshSTSToken is configured asyncSignatureUrl will refresh stsToken
|
|
1065
|
+
*/
|
|
1066
|
+
asyncSignatureUrl(name: string, options?: OSS.SignatureUrlOptions): Promise<string>;
|
|
1067
|
+
|
|
1050
1068
|
/**
|
|
1051
1069
|
* Set object's ACL.
|
|
1052
1070
|
*/
|
ali-oss/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/ali-oss",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.6",
|
|
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",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {},
|
|
22
22
|
"dependencies": {},
|
|
23
|
-
"typesPublisherContentHash": "
|
|
24
|
-
"typeScriptVersion": "4.
|
|
23
|
+
"typesPublisherContentHash": "35b69f2a9a18d514c5a34b690011aa7be171cad5d2b29909b233e8f61f3e6a0c",
|
|
24
|
+
"typeScriptVersion": "4.1"
|
|
25
25
|
}
|