@daocloud-proto/baize 0.125.0 → 0.126.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.
@@ -131,6 +131,11 @@ export type Dataset = {
131
131
  resources?: BaizeCommonK8s.Resources
132
132
  }
133
133
 
134
+ export type GetDatasetResponse = {
135
+ dataset?: Dataset
136
+ secretOptions?: SecretOptions
137
+ }
138
+
134
139
  export type DataSourceOptionsConda = {
135
140
  pythonVersion?: string
136
141
  packageManager?: DataSourceOptionsCondaPackageManager
@@ -353,6 +358,14 @@ export type ListDatasetEventsRequest = {
353
358
  page?: BaizeCommonCommon.Pagination
354
359
  }
355
360
 
361
+ export type GetSecretOptionsRequest = {
362
+ workspace?: number
363
+ cluster?: string
364
+ namespace?: string
365
+ secretName?: string
366
+ sourceType?: DataSourceType
367
+ }
368
+
356
369
  export class DatasetManagement {
357
370
  static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
358
371
  return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
@@ -360,6 +373,9 @@ export class DatasetManagement {
360
373
  static GetDataset(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
361
374
  return fm.fetchReq<SingleDatasetRequest, Dataset>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
362
375
  }
376
+ static GetSecretOptions(req: GetSecretOptionsRequest, initReq?: fm.InitReq): Promise<SecretOptions> {
377
+ return fm.fetchReq<GetSecretOptionsRequest, SecretOptions>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secret-options/${req["secretName"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "secretName"])}`, {...initReq, method: "GET"})
378
+ }
363
379
  static ListDatasetEvents(req: ListDatasetEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
364
380
  return fm.fetchReq<ListDatasetEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
365
381
  }
@@ -234,6 +234,7 @@ export type UpdateInferenceServingRequest = {
234
234
  image?: string
235
235
  imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
236
236
  targetGpus?: string[]
237
+ serviceConfig?: ServiceConfig
237
238
  }
238
239
 
239
240
  export type SingleInferenceServingRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.125.0",
3
+ "version": "v0.126.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"