@daocloud-proto/hydra 0.18.0-dev-27 → 0.18.0-dev-29

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.
@@ -191,6 +191,22 @@ export type AdminListPersistentVolumeClaimsResponse = {
191
191
  page?: HydraCommonCommon.Pagination
192
192
  }
193
193
 
194
+ export type AdminListNamespacesRequest = {
195
+ cluster?: string
196
+ page?: HydraCommonCommon.Pagination
197
+ }
198
+
199
+ export type NamespaceInfo = {
200
+ name?: string
201
+ status?: string
202
+ createdAt?: string
203
+ }
204
+
205
+ export type AdminListNamespacesResponse = {
206
+ items?: NamespaceInfo[]
207
+ page?: HydraCommonCommon.Pagination
208
+ }
209
+
194
210
  export class CoreService {
195
211
  static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
196
212
  return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -216,6 +232,9 @@ export class CoreService {
216
232
  static AdminListPersistentVolumeClaims(req: AdminListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<AdminListPersistentVolumeClaimsResponse> {
217
233
  return fm.fetchReq<AdminListPersistentVolumeClaimsRequest, AdminListPersistentVolumeClaimsResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
218
234
  }
235
+ static AdminListNamespaces(req: AdminListNamespacesRequest, initReq?: fm.InitReq): Promise<AdminListNamespacesResponse> {
236
+ return fm.fetchReq<AdminListNamespacesRequest, AdminListNamespacesResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
237
+ }
219
238
  static AdminListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
220
239
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/admin.hydra.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
221
240
  }
@@ -8,6 +8,7 @@ import * as HydraCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
9
  import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
10
10
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
11
+ import * as HydraManagement_apiModelV1alpha1Model_weights_volume from "../../model/v1alpha1/model_weights_volume.pb"
11
12
  import * as HydraManagement_apiFinetuneV1alpha1Common from "./common.pb"
12
13
 
13
14
  export enum ExportDevice {
@@ -30,6 +31,9 @@ export type ExportJob = {
30
31
  status?: HydraManagement_apiFinetuneV1alpha1Common.JobStatus
31
32
  reason?: string
32
33
  creationTime?: GoogleProtobufTimestamp.Timestamp
34
+ pvcNamespace?: string
35
+ pvcName?: string
36
+ storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
33
37
  }
34
38
 
35
39
  export type SaveExportJobRequest = {
@@ -44,6 +48,9 @@ export type SaveExportJobRequest = {
44
48
  exportSize?: number
45
49
  exportDevice?: ExportDevice
46
50
  exportLegacyFormat?: boolean
51
+ pvcNamespace?: string
52
+ pvcName?: string
53
+ storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
47
54
  }
48
55
 
49
56
  export type SingleExportJobRequest = {
@@ -7,6 +7,7 @@
7
7
  import * as HydraCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
9
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
+ import * as HydraManagement_apiModelV1alpha1Model_weights_volume from "../../model/v1alpha1/model_weights_volume.pb"
10
11
 
11
12
  export enum TrainingStage {
12
13
  TRAINING_STAGE_UNSPECIFIED = "TRAINING_STAGE_UNSPECIFIED",
@@ -119,6 +120,9 @@ export type TrainingConfig = {
119
120
  loggingSteps?: number
120
121
  saveSteps?: number
121
122
  outputSubPath?: string
123
+ outputPvcNamespace?: string
124
+ outputPvcName?: string
125
+ storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
122
126
  }
123
127
 
124
128
  export type DpoConfig = {
@@ -134,6 +134,13 @@ export type WeightVolumeConfig = {
134
134
  mountPath?: string
135
135
  }
136
136
 
137
+ export type PVCVolumeConfig = {
138
+ pvcNamespace?: string
139
+ pvcName?: string
140
+ subPath?: string
141
+ mountPath?: string
142
+ }
143
+
137
144
  export type ConfigMapMountConfig = {
138
145
  configMapName?: string
139
146
  mountPath?: string
@@ -200,6 +207,7 @@ export type CreateWSModelServingRequest = BaseCreateWSModelServingRequest
200
207
  & OneOf<{ schedulingConfig: SchedulingConfig }>
201
208
  & OneOf<{ preflight: PreflightConfig }>
202
209
  & OneOf<{ healthCheck: HealthCheckConfig }>
210
+ & OneOf<{ pvcVolumeConfig: PVCVolumeConfig }>
203
211
 
204
212
  export type ModelServing = {
205
213
  id?: string
@@ -249,6 +257,7 @@ export type ModelServing = {
249
257
  configMapMounts?: ConfigMapMountConfig[]
250
258
  healthCheck?: HealthCheckConfig
251
259
  enableMetrics?: boolean
260
+ pvcVolumeConfig?: PVCVolumeConfig
252
261
  }
253
262
 
254
263
  export type WSModelServing = BaseWSModelServing
@@ -336,6 +345,7 @@ export type WSModelServingActionRequest = {
336
345
  export type WSModelServingDeployDetectionRequest = BaseWSModelServingDeployDetectionRequest
337
346
  & OneOf<{ weightVolumeConfig: WeightVolumeConfig }>
338
347
  & OneOf<{ schedulingConfig: SchedulingConfig }>
348
+ & OneOf<{ pvcVolumeConfig: PVCVolumeConfig }>
339
349
 
340
350
  export type ModelServingDeployDetectionResponse = {
341
351
  ready?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-27",
3
+ "version": "v0.18.0-dev-29",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"