@cloudbase/js-sdk 3.9.2 → 3.9.4

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.
@@ -41,13 +41,13 @@ export declare class ClassicStorageFileApi {
41
41
  copy(fromPath: string, toPath: string): Promise<Result<{
42
42
  path: string;
43
43
  }>>;
44
- createSignedUrl(path: string, expiresIn: number, options?: {
44
+ createSignedUrl(path: string, _expiresIn: number, options?: {
45
45
  download?: string | boolean;
46
46
  transform?: TransformOptions;
47
47
  }): Promise<Result<{
48
48
  signedUrl: string;
49
49
  }>>;
50
- createSignedUrls(paths: string[], expiresIn: number): Promise<Result<Array<{
50
+ createSignedUrls(paths: string[], _expiresIn: number): Promise<Result<Array<{
51
51
  path: string;
52
52
  signedUrl: string;
53
53
  error: string | null;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "cloudbase javascript sdk types",
5
5
  "main": "dist/index.js",
6
6
  "types": "./index.d.ts",
@@ -69,6 +69,10 @@ export interface ICloudbaseDeleteFileResult {
69
69
 
70
70
  export interface ICloudbaseFileInfo {
71
71
  fileID: string;
72
+ /**
73
+ * 仅为兼容字段。传统模式不会用它生成下载链接,TTL 传入无效。
74
+ * 需要可控过期请改用 `app.storage.from(bucketId).createSignedUrl(path, expiresIn)`(PG 模式下可用)。
75
+ */
72
76
  maxAge: number;
73
77
  }
74
78
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/utilities",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "cloudbase javascript sdk utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",