File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ declare namespace COS {
117117 SecretKey ?: string ,
118118 /** 如果传入 SecretId、SecretKey 是临时密钥,需要再传入一个临时密钥的 sessionToken */
119119 SecurityToken ?: string ,
120+ /** 同 SecurityToken,推荐用 SecurityToken */
121+ XCosSecurityToken ?: string ,
120122 /** 分块上传及分块复制时,出错重试次数,默认值3(加第一次,请求共4次) */
121123 ChunkRetryTimes ?: number ,
122124 /** 同一个实例下上传的文件并发数,默认值3 */
@@ -221,7 +223,9 @@ declare namespace COS {
221223 /** 临时密钥 tmpSecretKey */
222224 TmpSecretKey : string ,
223225 /** 临时密钥 sessonToken */
224- SecurityToken : string ,
226+ SecurityToken ?: string ,
227+ /** 同 SecurityToken,推荐用 SecurityToken */
228+ XCosSecurityToken ?: string ,
225229 /** 获取临时密钥时,服务端的时间,该时间用于计算签名,可以避免设备时间有偏差导致请求错误 */
226230 StartTime : number ,
227231 /** 获取临时密钥的过期时间戳 */
@@ -2106,7 +2110,6 @@ declare class COS {
21062110
21072111 /** 获取文件下载链接 @see https://cloud.tencent.com/document/product/436/35651 */
21082112 getObjectUrl ( params : COS . GetObjectUrlParams , callback : ( err : COS . CosError , data : COS . GetObjectUrlResult ) => void ) : string ;
2109- getObjectUrl ( params : COS . GetObjectUrlParams ) : Promise < COS . GetObjectUrlResult > ;
21102113
21112114 /** 获取 COS JSON API (v4) 签名 @see https://cloud.tencent.com/document/product/436/6054 */
21122115 getV4Auth ( params : COS . GetV4AuthParams ) : COS . Authorization ;
You can’t perform that action at this time.
0 commit comments