@daocloud-proto/baize 0.119.0 → 0.120.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.
@@ -15,6 +15,11 @@ export enum ClusterStatus {
15
15
  CLUSTER_STATUS_UNKNOWN = "CLUSTER_STATUS_UNKNOWN",
16
16
  }
17
17
 
18
+ export enum Prerequisite {
19
+ PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
20
+ Dind = "Dind",
21
+ }
22
+
18
23
  export type AICluster = {
19
24
  name?: string
20
25
  withAiSuite?: boolean
@@ -147,6 +152,15 @@ export type ListResourceAffinitiesResponse = {
147
152
  page?: BaizeCommonCommon.Pagination
148
153
  }
149
154
 
155
+ export type GetPrerequisiteRequest = {
156
+ cluster?: string
157
+ prerequisite?: Prerequisite
158
+ }
159
+
160
+ export type GetPrerequisiteResponse = {
161
+ ok?: boolean
162
+ }
163
+
150
164
  export class ClusterService {
151
165
  static ListClusters(req: ListAIClustersRequest, initReq?: fm.InitReq): Promise<ListAIClustersResponse> {
152
166
  return fm.fetchReq<ListAIClustersRequest, ListAIClustersResponse>(`/apis/baize.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -169,4 +183,7 @@ export class ClusterService {
169
183
  static ListClusterNodes(req: ListClusterNodesRequest, initReq?: fm.InitReq): Promise<ListClusterNodesResponse> {
170
184
  return fm.fetchReq<ListClusterNodesRequest, ListClusterNodesResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
171
185
  }
186
+ static GetPrerequisite(req: GetPrerequisiteRequest, initReq?: fm.InitReq): Promise<GetPrerequisiteResponse> {
187
+ return fm.fetchReq<GetPrerequisiteRequest, GetPrerequisiteResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["cluster", "prerequisite"])}`, {...initReq, method: "GET"})
188
+ }
172
189
  }
@@ -81,6 +81,7 @@ export type NotebookConfig = {
81
81
  tolerationSeconds?: string
82
82
  imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
83
83
  shmSize?: number
84
+ enableDind?: boolean
84
85
  }
85
86
 
86
87
  export type NotebookStatus = {
@@ -216,6 +216,7 @@ export type ResourceFlavor = {
216
216
  tolerations?: BaizeCommonCommon.Toleration[]
217
217
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
218
218
  nodeDetails?: BaizeCommonCommon.Node[]
219
+ default?: boolean
219
220
  }
220
221
 
221
222
  export type ListResourceFlavorsRequest = {
@@ -153,6 +153,7 @@ export type InferenceServing = {
153
153
  auth?: ServingAuth
154
154
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
155
155
  hpaConfig?: HPAConfig
156
+ image?: string
156
157
  }
157
158
 
158
159
  export type InferenceServingStatusModelStatus = {
@@ -197,7 +198,6 @@ export type Metrics = {
197
198
  }
198
199
 
199
200
  export type CreateInferenceServingRequest = {
200
- workspace?: number
201
201
  name?: string
202
202
  cluster?: string
203
203
  namespace?: string
@@ -210,10 +210,11 @@ export type CreateInferenceServingRequest = {
210
210
  framework?: Framework
211
211
  auth?: ServingAuth
212
212
  hpaConfig?: HPAConfig
213
+ workspace?: number
214
+ image?: string
213
215
  }
214
216
 
215
217
  export type UpdateInferenceServingRequest = {
216
- workspace?: number
217
218
  name?: string
218
219
  cluster?: string
219
220
  namespace?: string
@@ -225,6 +226,8 @@ export type UpdateInferenceServingRequest = {
225
226
  framework?: Framework
226
227
  auth?: ServingAuth
227
228
  hpaConfig?: HPAConfig
229
+ workspace?: number
230
+ image?: string
228
231
  }
229
232
 
230
233
  export type SingleInferenceServingRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.119.0",
3
+ "version": "v0.120.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"