@storagehub-sdk/msp-client 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +5 -2
  2. package/package.json +4 -4
package/dist/types.d.ts CHANGED
@@ -113,11 +113,14 @@ export type FileTree = {
113
113
  status: FileStatus;
114
114
  } | {
115
115
  type: "folder";
116
- children: FileTree[];
117
116
  });
117
+ export type FileTreeRoot = {
118
+ name: string;
119
+ children: FileTree[];
120
+ };
118
121
  export interface FileListResponse {
119
122
  bucketId: string;
120
- files: FileTree[];
123
+ tree: FileTreeRoot;
121
124
  }
122
125
  export interface GetFilesOptions {
123
126
  path?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storagehub-sdk/msp-client",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "High-level TypeScript client for StorageHub MSP: simple file upload/download, SIWE-style auth, health checks, and bucket browsing built on top of @storagehub-sdk/core.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.node.js",
@@ -24,11 +24,11 @@
24
24
  ],
25
25
  "peerDependencies": {
26
26
  "@storagehub-sdk/core": ">=0.0.5",
27
- "viem": ">=2.37.6"
27
+ "viem": ">=2.38.3"
28
28
  },
29
29
  "devDependencies": {
30
- "viem": "2.37.6",
31
- "@storagehub-sdk/core": "0.3.1"
30
+ "viem": ">=2.38.3",
31
+ "@storagehub-sdk/core": "0.3.2"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=22"