@daocloud-proto/hydra 0.18.0-dev-26 → 0.18.0-dev-28

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.
@@ -173,6 +173,7 @@ export type ListModelGPUInfoResponse = {
173
173
  export type AdminListPersistentVolumeClaimsRequest = {
174
174
  cluster?: string
175
175
  page?: HydraCommonCommon.Pagination
176
+ namespace?: string
176
177
  }
177
178
 
178
179
  export type PersistentVolumeClaim = {
@@ -213,7 +214,7 @@ export class CoreService {
213
214
  return fm.fetchReq<ListModelGPUInfoRequest, ListModelGPUInfoResponse>(`/apis/admin.hydra.io/v1alpha1/model-gpu-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
214
215
  }
215
216
  static AdminListPersistentVolumeClaims(req: AdminListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<AdminListPersistentVolumeClaimsResponse> {
216
- return fm.fetchReq<AdminListPersistentVolumeClaimsRequest, AdminListPersistentVolumeClaimsResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
217
+ 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"})
217
218
  }
218
219
  static AdminListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
219
220
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/admin.hydra.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -147,6 +147,7 @@ type BaseCreateMAASModelRequest = {
147
147
 
148
148
  export type CreateMAASModelRequest = BaseCreateMAASModelRequest
149
149
  & OneOf<{ maxRequestBodySizeBytes: string }>
150
+ & OneOf<{ contextLength: string }>
150
151
 
151
152
 
152
153
  type BaseModelRatelimitConfig = {
@@ -177,6 +178,7 @@ type BaseMAASModel = {
177
178
 
178
179
  export type MAASModel = BaseMAASModel
179
180
  & OneOf<{ maxRequestBodySizeBytes: string }>
181
+ & OneOf<{ contextLength: string }>
180
182
 
181
183
  export type LoadBalanceConfig = {
182
184
  strategy?: LoadBalanceStrategy
@@ -262,6 +264,7 @@ type BaseUpdateMAASModelRequest = {
262
264
 
263
265
  export type UpdateMAASModelRequest = BaseUpdateMAASModelRequest
264
266
  & OneOf<{ maxRequestBodySizeBytes: string }>
267
+ & OneOf<{ contextLength: string }>
265
268
 
266
269
  export type UpdateMAASModelStatusRequest = {
267
270
  modelId?: string
@@ -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
@@ -10,6 +10,7 @@ export type ListWSPersistentVolumeClaimsRequest = {
10
10
  workspace?: number
11
11
  cluster?: string
12
12
  page?: HydraCommonCommon.Pagination
13
+ namespace?: string
13
14
  }
14
15
 
15
16
  export type PersistentVolumeClaim = {
@@ -29,6 +30,6 @@ export type ListWSPersistentVolumeClaimsResponse = {
29
30
 
30
31
  export class WSPersistentVolumeClaimService {
31
32
  static ListWSPersistentVolumeClaims(req: ListWSPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<ListWSPersistentVolumeClaimsResponse> {
32
- return fm.fetchReq<ListWSPersistentVolumeClaimsRequest, ListWSPersistentVolumeClaimsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
33
+ return fm.fetchReq<ListWSPersistentVolumeClaimsRequest, ListWSPersistentVolumeClaimsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
33
34
  }
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-26",
3
+ "version": "v0.18.0-dev-28",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"