@flashbacktech/flashbackclient 0.2.35 → 0.2.37

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);
@@ -28,6 +28,7 @@ export interface CreateUnitRequest {
28
28
  endpoint?: string;
29
29
  region?: string;
30
30
  workspaceId: string;
31
+ walletAddress?: string;
31
32
  }
32
33
  export interface GetUnitNodeStatsRequest {
33
34
  day: Date;
@@ -69,6 +70,7 @@ export interface CreateRepoRequest {
69
70
  repoUnits: RepoUnitInfo[];
70
71
  repoAiLlms?: RepoAiLlmInfo[];
71
72
  workspaceId: string;
73
+ walletAddress?: string;
72
74
  }
73
75
  export interface CreateRepoResponse {
74
76
  success: boolean;
@@ -108,6 +110,7 @@ export interface StorageRepo {
108
110
  createdAt: string;
109
111
  disabled?: boolean;
110
112
  workspaceId: string;
113
+ walletAddress?: string;
111
114
  }
112
115
  export interface ApiKey {
113
116
  id: string;
@@ -142,6 +145,7 @@ export interface StorageBucket {
142
145
  projectId?: string;
143
146
  createdAt: string;
144
147
  workspaceId: string;
148
+ walletAddress?: string;
145
149
  repos?: StorageRepoBasic[];
146
150
  }
147
151
  export interface GetUnitsResponse {
@@ -229,6 +233,7 @@ export interface CreateRepoWithBucketsRequest {
229
233
  repoBuckets: RepoBucketInfo[];
230
234
  repoAiLlms?: RepoAiLlmInfo[];
231
235
  workspaceId: string;
236
+ walletAddress?: string;
232
237
  }
233
238
  export interface UpdateRepoWithBucketsRequest extends CreateRepoWithBucketsRequest {
234
239
  }
@@ -244,6 +249,7 @@ export interface StorageRepoWithBuckets {
244
249
  aiApiKeys?: RepoAiApiKeyDTO[];
245
250
  createdAt: string;
246
251
  disabled?: boolean;
252
+ walletAddress?: string;
247
253
  }
248
254
  export interface ValidateRepoBucketsRequest {
249
255
  repoId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"