@daocloud-proto/baize 0.121.0 → 0.122.0

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.
@@ -10,6 +10,7 @@ import * as fm from "../../../fetch.pb"
10
10
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
11
11
  import * as GoogleProtobufWrappers from "../../../google/protobuf/wrappers.pb"
12
12
  import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
13
+ import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
13
14
  import * as BaizeManagement_apiServingTritonModel_config from "../triton/model_config.pb"
14
15
 
15
16
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -154,6 +155,7 @@ export type InferenceServing = {
154
155
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
155
156
  hpaConfig?: HPAConfig
156
157
  image?: string
158
+ imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
157
159
  }
158
160
 
159
161
  export type InferenceServingStatusModelStatus = {
@@ -212,6 +214,7 @@ export type CreateInferenceServingRequest = {
212
214
  hpaConfig?: HPAConfig
213
215
  workspace?: number
214
216
  image?: string
217
+ imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
215
218
  }
216
219
 
217
220
  export type UpdateInferenceServingRequest = {
@@ -228,6 +231,7 @@ export type UpdateInferenceServingRequest = {
228
231
  hpaConfig?: HPAConfig
229
232
  workspace?: number
230
233
  image?: string
234
+ imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
231
235
  }
232
236
 
233
237
  export type SingleInferenceServingRequest = {
@@ -268,7 +272,22 @@ export type ListInferenceEventsRequest = {
268
272
  page?: BaizeCommonCommon.Pagination
269
273
  }
270
274
 
275
+ export type InferenceImageListRequest = {
276
+ cluster?: string
277
+ namespace?: string
278
+ workspace?: number
279
+ type?: FrameworkType
280
+ tritonBackend?: FrameworkTritonBackend
281
+ }
282
+
283
+ export type InferenceImageListResponse = {
284
+ items?: string[]
285
+ }
286
+
271
287
  export class InferenceServingManagement {
288
+ static GetInferenceImageList(req: InferenceImageListRequest, initReq?: fm.InitReq): Promise<InferenceImageListResponse> {
289
+ return fm.fetchReq<InferenceImageListRequest, InferenceImageListResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-images?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
290
+ }
272
291
  static CreateInferenceServing(req: CreateInferenceServingRequest, initReq?: fm.InitReq): Promise<InferenceServing> {
273
292
  return fm.fetchReq<CreateInferenceServingRequest, InferenceServing>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
274
293
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.121.0",
3
+ "version": "v0.122.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"