@flashbacktech/flashbackclient 0.2.36 → 0.2.38

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.
@@ -68,7 +68,7 @@ export declare class ApiClient implements IApiClient {
68
68
  success: boolean;
69
69
  }>;
70
70
  createStorageBucket: (data: CreateBucketRequest) => Promise<CreateBucketResponse>;
71
- getStorageBuckets: (workspaceId?: string) => Promise<GetBucketsResponse>;
71
+ getStorageBuckets: (workspaceId?: string, walletAddress?: string) => Promise<GetBucketsResponse>;
72
72
  validateStorageBucket: (bucketId: string, data: ValidateBucketRequest) => Promise<ValidateBucketResponse>;
73
73
  updateStorageBucket: (bucketId: string, data: UpdateBucketRequest) => Promise<UpdateBucketResponse>;
74
74
  deleteStorageBucket: (bucketId: string) => Promise<ActionResponse>;
@@ -77,7 +77,7 @@ export declare class ApiClient implements IApiClient {
77
77
  getBucketNodeStats: (bucketId: string, data: GetBucketNodeStatsRequest) => Promise<GetBucketNodeStatsResponse>;
78
78
  createStorageRepo(data: CreateRepoRequest): Promise<CreateRepoResponse>;
79
79
  createStorageRepo(data: CreateRepoWithBucketsRequest): Promise<CreateRepoResponse>;
80
- getStorageRepos: (workspaceId?: string) => Promise<GetReposResponse>;
80
+ getStorageRepos: (workspaceId?: string, walletAddress?: string) => Promise<GetReposResponse>;
81
81
  updateStorageRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
82
82
  updateStorageRepo(repoId: string, data: UpdateRepoWithBucketsRequest): Promise<UpdateRepoResponse>;
83
83
  deleteStorageRepo: (repoId: string) => Promise<ActionResponse>;
@@ -166,8 +166,8 @@ class ApiClient {
166
166
  this.createStorageBucket = async (data) => {
167
167
  return this.makeRequest('bucket', 'POST', data);
168
168
  };
169
- this.getStorageBuckets = async (workspaceId) => {
170
- return this.makeRequest('bucket?workspaceId=' + workspaceId, 'GET', null);
169
+ this.getStorageBuckets = async (workspaceId, walletAddress) => {
170
+ return this.makeRequest('bucket?workspaceId=' + workspaceId + '&walletAddress=' + walletAddress, 'GET', null);
171
171
  };
172
172
  this.validateStorageBucket = async (bucketId, data) => {
173
173
  return this.makeRequest(`bucket/${bucketId}/validate`, 'POST', data);
@@ -187,8 +187,8 @@ class ApiClient {
187
187
  this.getBucketNodeStats = async (bucketId, data) => {
188
188
  return this.makeRequest(`bucket/${bucketId}/stats`, 'POST', data);
189
189
  };
190
- this.getStorageRepos = async (workspaceId) => {
191
- return this.makeRequest('repo?workspaceId=' + workspaceId, 'GET', null);
190
+ this.getStorageRepos = async (workspaceId, walletAddress) => {
191
+ return this.makeRequest('repo?workspaceId=' + workspaceId + '&walletAddress=' + walletAddress, 'GET', null);
192
192
  };
193
193
  this.deleteStorageRepo = async (repoId) => {
194
194
  return this.makeRequest(`repo/${repoId}`, 'DELETE', null);
@@ -67,7 +67,7 @@ export interface CreateRepoRequest {
67
67
  name: string;
68
68
  storageType: StorageType;
69
69
  mode: ModeType;
70
- repoUnits: RepoUnitInfo[];
70
+ repoUnits?: RepoUnitInfo[];
71
71
  repoAiLlms?: RepoAiLlmInfo[];
72
72
  workspaceId: string;
73
73
  walletAddress?: string;
@@ -230,7 +230,7 @@ export interface CreateRepoWithBucketsRequest {
230
230
  name: string;
231
231
  storageType: StorageType;
232
232
  mode: ModeType;
233
- repoBuckets: RepoBucketInfo[];
233
+ repoBuckets?: RepoBucketInfo[];
234
234
  repoAiLlms?: RepoAiLlmInfo[];
235
235
  workspaceId: string;
236
236
  walletAddress?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.36",
3
+ "version": "0.2.38",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"