@daocloud-proto/hydra 0.11.0-dev-17 → 0.11.0-dev-18

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.
@@ -196,6 +196,11 @@ export type ListFilesStorageClustersResponse = {
196
196
  clusters?: string[]
197
197
  }
198
198
 
199
+ export type GetPrePullRequest = {
200
+ storageName?: string
201
+ prepullName?: string
202
+ }
203
+
199
204
  export class AdminFilesStorageService {
200
205
  static ListFilesStorages(req: ListFilesStoragesRequest, initReq?: fm.InitReq): Promise<ListFilesStoragesResponse> {
201
206
  return fm.fetchReq<ListFilesStoragesRequest, ListFilesStoragesResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -251,4 +256,7 @@ export class AdminFilesStorageService {
251
256
  static GetPodInstanceList(req: HydraManagement_apiStorageV1alpha1Filesstorage.PodRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PodInstanceListResponse> {
252
257
  return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.PodRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PodInstanceListResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/pods?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
253
258
  }
259
+ static GetPrePull(req: GetPrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
260
+ return fm.fetchReq<GetPrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
261
+ }
254
262
  }
@@ -57,6 +57,18 @@ export enum DataSourceOptionsS3Provider {
57
57
  MINIO = "MINIO",
58
58
  }
59
59
 
60
+ export enum DataSourceOptionsHuggingFaceRepoType {
61
+ REPO_TYPE_UNSPECIFIED = "REPO_TYPE_UNSPECIFIED",
62
+ MODEL = "MODEL",
63
+ DATASET = "DATASET",
64
+ }
65
+
66
+ export enum DataSourceOptionsModelScopeRepoType {
67
+ REPO_TYPE_UNSPECIFIED = "REPO_TYPE_UNSPECIFIED",
68
+ MODEL = "MODEL",
69
+ DATASET = "DATASET",
70
+ }
71
+
60
72
  export enum DatasetStatusPhase {
61
73
  DATA_SET_PHASE_UNSPECIFIED = "DATA_SET_PHASE_UNSPECIFIED",
62
74
  PENDING = "PENDING",
@@ -228,12 +240,14 @@ export type DataSourceOptionsHuggingFace = {
228
240
  include?: string
229
241
  exclude?: string
230
242
  revision?: string
243
+ repoType?: DataSourceOptionsHuggingFaceRepoType
231
244
  }
232
245
 
233
246
  export type DataSourceOptionsModelScope = {
234
247
  include?: string
235
248
  exclude?: string
236
249
  revision?: string
250
+ repoType?: DataSourceOptionsModelScopeRepoType
237
251
  }
238
252
 
239
253
  export type DatasetStatus = {
@@ -380,6 +394,12 @@ export type ListWSFilesStorageClustersResponse = {
380
394
  clusters?: string[]
381
395
  }
382
396
 
397
+ export type GetPrePullRequest = {
398
+ workspace?: number
399
+ storageName?: string
400
+ prepullName?: string
401
+ }
402
+
383
403
  export class WSFilesStorageService {
384
404
  static ListWSFilesStorages(req: ListFilesStoragesRequest, initReq?: fm.InitReq): Promise<ListFilesStoragesResponse> {
385
405
  return fm.fetchReq<ListFilesStoragesRequest, ListFilesStoragesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
@@ -435,4 +455,7 @@ export class WSFilesStorageService {
435
455
  static WSGetPodInstanceList(req: PodRequest, initReq?: fm.InitReq): Promise<PodInstanceListResponse> {
436
456
  return fm.fetchReq<PodRequest, PodInstanceListResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/pods?${fm.renderURLSearchParams(req, ["workspace", "storageName", "prepullName"])}`, {...initReq, method: "GET"})
437
457
  }
458
+ static WSGetPrePull(req: GetPrePullRequest, initReq?: fm.InitReq): Promise<PrePull> {
459
+ return fm.fetchReq<GetPrePullRequest, PrePull>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}?${fm.renderURLSearchParams(req, ["workspace", "storageName", "prepullName"])}`, {...initReq, method: "GET"})
460
+ }
438
461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.11.0-dev-17",
3
+ "version": "v0.11.0-dev-18",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"