@types/ali-oss 6.16.1 → 6.16.2
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 +61 -0
- ali-oss/package.json +2 -2
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: Tue, 16 Nov 2021 04:01:22 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
ali-oss/index.d.ts
CHANGED
|
@@ -163,6 +163,16 @@ declare namespace OSS {
|
|
|
163
163
|
owner?: OwnerType;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
interface BucketPolicy {
|
|
167
|
+
Version: string;
|
|
168
|
+
Statement: Array<{
|
|
169
|
+
Action: string[];
|
|
170
|
+
Effect: 'Allow' | 'Deny';
|
|
171
|
+
Principal: string[];
|
|
172
|
+
Resource: string[];
|
|
173
|
+
}>;
|
|
174
|
+
}
|
|
175
|
+
|
|
166
176
|
interface NormalSuccessResponse {
|
|
167
177
|
/** response status */
|
|
168
178
|
status: number;
|
|
@@ -615,6 +625,18 @@ declare namespace OSS {
|
|
|
615
625
|
/** the operation timeout */
|
|
616
626
|
timeout?: number | undefined;
|
|
617
627
|
}
|
|
628
|
+
|
|
629
|
+
interface GetBucketPolicyResult {
|
|
630
|
+
policy: BucketPolicy | null;
|
|
631
|
+
status: number;
|
|
632
|
+
res: NormalSuccessResponse;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
interface PostObjectParams {
|
|
636
|
+
policy: string;
|
|
637
|
+
OSSAccessKeyId: string;
|
|
638
|
+
Signature: string;
|
|
639
|
+
}
|
|
618
640
|
}
|
|
619
641
|
|
|
620
642
|
// cluster
|
|
@@ -915,6 +937,35 @@ declare class OSS {
|
|
|
915
937
|
*/
|
|
916
938
|
deleteBucketCORS(name: string): Promise<OSS.NormalSuccessResponse>;
|
|
917
939
|
|
|
940
|
+
// policy operations
|
|
941
|
+
/**
|
|
942
|
+
* Adds or modify policy for a bucket.
|
|
943
|
+
*/
|
|
944
|
+
putBucketPolicy(
|
|
945
|
+
name: string,
|
|
946
|
+
policy: OSS.BucketPolicy,
|
|
947
|
+
options?: OSS.RequestOptions
|
|
948
|
+
): Promise<{
|
|
949
|
+
status: number,
|
|
950
|
+
res: OSS.NormalSuccessResponse,
|
|
951
|
+
}>;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Obtains the policy for a bucket.
|
|
955
|
+
*/
|
|
956
|
+
getBucketPolicy(name: string, options?: OSS.RequestOptions): Promise<OSS.GetBucketPolicyResult>;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Deletes the policy added for a bucket.
|
|
960
|
+
*/
|
|
961
|
+
deleteBucketPolicy(
|
|
962
|
+
name: string,
|
|
963
|
+
options?: OSS.RequestOptions
|
|
964
|
+
): Promise<{
|
|
965
|
+
status: number,
|
|
966
|
+
res: OSS.NormalSuccessResponse,
|
|
967
|
+
}>;
|
|
968
|
+
|
|
918
969
|
/********************************************************** Object operations ********************************************/
|
|
919
970
|
/**
|
|
920
971
|
* List objects in the bucket.
|
|
@@ -1086,6 +1137,16 @@ declare class OSS {
|
|
|
1086
1137
|
options?: OSS.RequestOptions,
|
|
1087
1138
|
): Promise<OSS.NormalSuccessResponse>;
|
|
1088
1139
|
|
|
1140
|
+
/**
|
|
1141
|
+
* get postObject params.
|
|
1142
|
+
*/
|
|
1143
|
+
calculatePostSignature(
|
|
1144
|
+
/**
|
|
1145
|
+
* policy config object or JSON string
|
|
1146
|
+
*/
|
|
1147
|
+
policy: object | string
|
|
1148
|
+
): OSS.PostObjectParams;
|
|
1149
|
+
|
|
1089
1150
|
/************************************************ RTMP Operations *************************************************************/
|
|
1090
1151
|
/**
|
|
1091
1152
|
* Create a live channel.
|
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.2",
|
|
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": "
|
|
23
|
+
"typesPublisherContentHash": "9418e79c8ab9a56aeb8a9b25184bf67eb7e0a03868f2fab55f0dc57bcc46b5aa",
|
|
24
24
|
"typeScriptVersion": "3.7"
|
|
25
25
|
}
|