@types/ali-oss 6.16.13 → 6.23.1
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 +3 -3
- ali-oss/index.d.ts +45 -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/
|
|
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:
|
|
11
|
+
* Last updated: Mon, 19 Jan 2026 08:02: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), [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
|
/**
|
|
@@ -579,6 +581,15 @@ declare namespace OSS {
|
|
|
579
581
|
uploads: Upload[];
|
|
580
582
|
}
|
|
581
583
|
|
|
584
|
+
interface PutSymlinkOptions {
|
|
585
|
+
/** the storage type include (Standard,IA,Archive) */
|
|
586
|
+
storageClass?: string | undefined;
|
|
587
|
+
/** user meta, will send with x-oss-meta- prefix string */
|
|
588
|
+
meta?: UserMeta | undefined;
|
|
589
|
+
/** extra headers */
|
|
590
|
+
headers?: object | undefined;
|
|
591
|
+
}
|
|
592
|
+
|
|
582
593
|
interface PutChannelConf {
|
|
583
594
|
Description?: string | undefined;
|
|
584
595
|
Status?: string | undefined;
|
|
@@ -698,11 +709,11 @@ declare namespace OSS {
|
|
|
698
709
|
signatureUrlV4(
|
|
699
710
|
method: HTTPMethods,
|
|
700
711
|
expires: number,
|
|
701
|
-
request
|
|
712
|
+
request: {
|
|
702
713
|
headers?: object | undefined;
|
|
703
714
|
queries?: object | undefined;
|
|
704
|
-
},
|
|
705
|
-
objectName
|
|
715
|
+
} | undefined,
|
|
716
|
+
objectName: string,
|
|
706
717
|
additionalHeaders?: string[],
|
|
707
718
|
): Promise<string>;
|
|
708
719
|
|
|
@@ -1083,6 +1094,20 @@ declare class OSS {
|
|
|
1083
1094
|
*/
|
|
1084
1095
|
signatureUrl(name: string, options?: OSS.SignatureUrlOptions): string;
|
|
1085
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* Generate a signed URL for V4 of an OSS resource and share the URL to allow authorized third-party users to access the resource.
|
|
1099
|
+
*/
|
|
1100
|
+
signatureUrlV4(
|
|
1101
|
+
method: OSS.HTTPMethods,
|
|
1102
|
+
expires: number,
|
|
1103
|
+
request: {
|
|
1104
|
+
headers?: object | undefined;
|
|
1105
|
+
queries?: object | undefined;
|
|
1106
|
+
} | undefined,
|
|
1107
|
+
objectName: string,
|
|
1108
|
+
additionalHeaders?: string[],
|
|
1109
|
+
): Promise<string>;
|
|
1110
|
+
|
|
1086
1111
|
/**
|
|
1087
1112
|
* Basically the same as signatureUrl, if refreshSTSToken is configured asyncSignatureUrl will refresh stsToken
|
|
1088
1113
|
*/
|
|
@@ -1194,6 +1219,23 @@ declare class OSS {
|
|
|
1194
1219
|
policy: object | string,
|
|
1195
1220
|
): OSS.PostObjectParams;
|
|
1196
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* put symlink
|
|
1224
|
+
*/
|
|
1225
|
+
putSymlink(
|
|
1226
|
+
name: string,
|
|
1227
|
+
targetName: string,
|
|
1228
|
+
options?: OSS.PutSymlinkOptions,
|
|
1229
|
+
): Promise<{ res: OSS.NormalSuccessResponse }>;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* get symlink
|
|
1233
|
+
*/
|
|
1234
|
+
getSymlink(
|
|
1235
|
+
name: string,
|
|
1236
|
+
options?: { versionId?: string | undefined; timeout?: number | undefined; headers?: object | undefined },
|
|
1237
|
+
): Promise<{ targetName: string; res: OSS.NormalSuccessResponse }>;
|
|
1238
|
+
|
|
1197
1239
|
/************************************************ RTMP Operations *************************************************************/
|
|
1198
1240
|
/**
|
|
1199
1241
|
* Create a live channel.
|
ali-oss/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/ali-oss",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.23.1",
|
|
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": "
|
|
34
|
+
"typesPublisherContentHash": "a4b0f1217d487dccaae345d32f659309cfafcbf3963d0ae9f7266d64a7c5d01a",
|
|
30
35
|
"typeScriptVersion": "5.2"
|
|
31
36
|
}
|