@daocloud-proto/baize 0.119.0 → 0.121.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.
@@ -132,6 +132,7 @@ export type Toleration = {
132
132
  operator?: TolerationOperator
133
133
  value?: string
134
134
  effect?: TaintEffect
135
+ tolerationSeconds?: string
135
136
  }
136
137
 
137
138
  export type Node = {
package/common/k8s.pb.ts CHANGED
@@ -4,6 +4,8 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as BaizeCommonCommon from "./common.pb"
8
+
7
9
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
8
10
  type OneOf<T> =
9
11
  | { [k in keyof T]?: undefined }
@@ -69,6 +71,7 @@ export type PodConfig = {
69
71
  livenessProbe?: Probe
70
72
  readinessProbe?: Probe
71
73
  startupProbe?: Probe
74
+ tolerations?: BaizeCommonCommon.Toleration[]
72
75
  }
73
76
 
74
77
 
@@ -15,6 +15,12 @@ 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
+ MxDcmd = "MxDcmd",
22
+ }
23
+
18
24
  export type AICluster = {
19
25
  name?: string
20
26
  withAiSuite?: boolean
@@ -85,6 +91,8 @@ export type GPUSetting = {
85
91
  type?: string
86
92
  alias?: string
87
93
  resource?: GPUResourceSetting[]
94
+ resourceTemplate?: GPUResourceSetting
95
+ isDynamic?: boolean
88
96
  }
89
97
 
90
98
  export type GPUResourceSetting = {
@@ -147,6 +155,15 @@ export type ListResourceAffinitiesResponse = {
147
155
  page?: BaizeCommonCommon.Pagination
148
156
  }
149
157
 
158
+ export type GetPrerequisiteRequest = {
159
+ cluster?: string
160
+ prerequisite?: Prerequisite
161
+ }
162
+
163
+ export type GetPrerequisiteResponse = {
164
+ ok?: boolean
165
+ }
166
+
150
167
  export class ClusterService {
151
168
  static ListClusters(req: ListAIClustersRequest, initReq?: fm.InitReq): Promise<ListAIClustersResponse> {
152
169
  return fm.fetchReq<ListAIClustersRequest, ListAIClustersResponse>(`/apis/baize.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -169,4 +186,7 @@ export class ClusterService {
169
186
  static ListClusterNodes(req: ListClusterNodesRequest, initReq?: fm.InitReq): Promise<ListClusterNodesResponse> {
170
187
  return fm.fetchReq<ListClusterNodesRequest, ListClusterNodesResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
171
188
  }
189
+ static GetPrerequisite(req: GetPrerequisiteRequest, initReq?: fm.InitReq): Promise<GetPrerequisiteResponse> {
190
+ return fm.fetchReq<GetPrerequisiteRequest, GetPrerequisiteResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["cluster", "prerequisite"])}`, {...initReq, method: "GET"})
191
+ }
172
192
  }
@@ -62,6 +62,7 @@ export type JobCreationBaseConfig = {
62
62
  shmSize?: number
63
63
  noOverrideEnvPath?: boolean
64
64
  imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
65
+ preflight?: boolean
65
66
  }
66
67
 
67
68
  export type JobRoleDifferenceConfig = {
@@ -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 = {
@@ -19,6 +19,7 @@ export enum ResourceType {
19
19
  NOTEBOOK = "NOTEBOOK",
20
20
  INFERENCE = "INFERENCE",
21
21
  DATASET = "DATASET",
22
+ SNAPSHOT_POD_TASKS = "SNAPSHOT_POD_TASKS",
22
23
  }
23
24
 
24
25
  export type PodRequest = {
@@ -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.121.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"