@daocloud-proto/baize 0.127.1 → 0.128.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.
@@ -26,6 +26,7 @@ export type AICluster = {
26
26
  withAiSuite?: boolean
27
27
  clusterStatus?: ClusterStatus
28
28
  withMetricsServer?: boolean
29
+ withDataset?: boolean
29
30
  }
30
31
 
31
32
  export type ListAIClustersRequest = {
@@ -61,8 +61,8 @@ export enum DataSourceOptionsModelScopeRepoType {
61
61
  DATASET = "DATASET",
62
62
  }
63
63
 
64
- export enum DataSourceOptionsRCloneOp {
65
- RCLONE_OP_UNSPECIFIED = "RCLONE_OP_UNSPECIFIED",
64
+ export enum DataSourceOptionsSyncMode {
65
+ SYNC_MODE_UNSPECIFIED = "SYNC_MODE_UNSPECIFIED",
66
66
  COPY = "COPY",
67
67
  SYNC = "SYNC",
68
68
  }
@@ -173,12 +173,12 @@ export type DataSourceOptionsS3 = {
173
173
  region?: string
174
174
  endpoint?: string
175
175
  provider?: DataSourceOptionsS3Provider
176
- rcloneOp?: DataSourceOptionsRCloneOp
176
+ syncMode?: DataSourceOptionsSyncMode
177
177
  }
178
178
 
179
179
  export type DataSourceOptionsHttp = {
180
180
  headers?: {[key: string]: string}
181
- rcloneOp?: DataSourceOptionsRCloneOp
181
+ syncMode?: DataSourceOptionsSyncMode
182
182
  }
183
183
 
184
184
  export type DataSourceOptionsReference = {
@@ -24,6 +24,9 @@ export enum EventObjKind {
24
24
  PADDLE_JOB = "PADDLE_JOB",
25
25
  MXNET_JOB = "MXNET_JOB",
26
26
  MPI_JOB = "MPI_JOB",
27
+ TRAIN_JOB = "TRAIN_JOB",
28
+ JOB_SET = "JOB_SET",
29
+ BATCH = "BATCH",
27
30
  UNKNOWN = "UNKNOWN",
28
31
  }
29
32
 
@@ -0,0 +1,82 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as BaizeCommonK8s from "../../../common/k8s.pb"
8
+ import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
9
+
10
+ export enum QueueType {
11
+ QUEUE_TYPE_UNSPECIFIED = "QUEUE_TYPE_UNSPECIFIED",
12
+ KUEUE = "KUEUE",
13
+ }
14
+
15
+ export enum PlacementPolicy {
16
+ PLACEMENT_POLICY_UNSPECIFIED = "PLACEMENT_POLICY_UNSPECIFIED",
17
+ BALANCED = "BALANCED",
18
+ GROUPED = "GROUPED",
19
+ }
20
+
21
+ export enum TrainingMode {
22
+ TRAINING_MODE_UNSPECIFIED = "TRAINING_MODE_UNSPECIFIED",
23
+ SINGLE = "SINGLE",
24
+ DISTRIBUTED = "DISTRIBUTED",
25
+ }
26
+
27
+ export enum JobPhase {
28
+ JOB_PHASE_UNSPECIFIED = "JOB_PHASE_UNSPECIFIED",
29
+ CREATED = "CREATED",
30
+ RUNNING = "RUNNING",
31
+ FAILED = "FAILED",
32
+ SUCCEEDED = "SUCCEEDED",
33
+ SUSPENDED = "SUSPENDED",
34
+ }
35
+
36
+ export enum JobRole {
37
+ JOB_ROLE_UNSPECIFIED = "JOB_ROLE_UNSPECIFIED",
38
+ MASTER = "MASTER",
39
+ WORKER = "WORKER",
40
+ TF_CHIEF = "TF_CHIEF",
41
+ TF_PS = "TF_PS",
42
+ TF_WORKER = "TF_WORKER",
43
+ TF_EVALUATOR = "TF_EVALUATOR",
44
+ PD_MASTER = "PD_MASTER",
45
+ PD_WORKER = "PD_WORKER",
46
+ MX_SCHEDULER = "MX_SCHEDULER",
47
+ MX_SERVER = "MX_SERVER",
48
+ MX_WORKER = "MX_WORKER",
49
+ MPI_LAUNCHER = "MPI_LAUNCHER",
50
+ MPI_WORKER = "MPI_WORKER",
51
+ }
52
+
53
+ export type CommonConfig = {
54
+ queueType?: QueueType
55
+ taskQueue?: string
56
+ description?: string
57
+ }
58
+
59
+ export type JobCreationBaseConfig = {
60
+ image?: string
61
+ imagePullSecret?: string
62
+ command?: string[]
63
+ args?: string[]
64
+ podConfig?: BaizeCommonK8s.PodConfig
65
+ labels?: {[key: string]: string}
66
+ annotations?: {[key: string]: string}
67
+ workingDir?: string
68
+ shmSize?: number
69
+ noOverrideEnvPath?: boolean
70
+ imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
71
+ preflight?: boolean
72
+ placement?: PlacementPolicy
73
+ }
74
+
75
+ export type JobRoleDifferenceConfig = {
76
+ replicas?: number
77
+ resources?: BaizeCommonK8s.Resources
78
+ }
79
+
80
+ export type RecoveryConfig = {
81
+ enable?: boolean
82
+ }
@@ -5,98 +5,208 @@
5
5
  */
6
6
 
7
7
  import * as BaizeCommonCommon from "../../../common/common.pb"
8
+ import * as BaizeCommonK8s from "../../../common/k8s.pb"
8
9
  import * as fm from "../../../fetch.pb"
10
+ import * as GoogleProtobufStruct from "../../../google/protobuf/struct.pb"
11
+ import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
12
+ import * as BaizeManagement_apiAnalysisV1alpha1Analysis from "../../analysis/v1alpha1/analysis.pb"
9
13
  import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
10
- import * as BaizeManagement_apiJobV1alpha1Common from "../v1alpha1/common.pb"
11
- import * as BaizeManagement_apiJobV1alpha1Job from "../v1alpha1/job.pb"
12
- export type Trainer = {
13
- command?: string[]
14
- args?: string[]
15
- labels?: {[key: string]: string}
16
- annotations?: {[key: string]: string}
17
- queue?: string
18
- trainingMode?: BaizeManagement_apiJobV1alpha1Common.TrainingMode
19
- imagePullPolicy?: BaizeManagement_apiJobV1alpha1Job.ImagePullPolicy
20
- checkpointConfig?: BaizeManagement_apiJobV1alpha1Job.CleanCheckpointConfig
21
- }
22
-
23
- export type RuntimeRef = {
24
- name?: string
25
- apiGroup?: string
26
- kind?: string
14
+ import * as BaizeManagement_apiJobV1alpha2Common from "./common.pb"
15
+
16
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
17
+ type OneOf<T> =
18
+ | { [k in keyof T]?: undefined }
19
+ | (
20
+ keyof T extends infer K ?
21
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
22
+ : never)
23
+ : never);
24
+
25
+ export enum JobType {
26
+ JOB_TYPE_UNSPECIFIED = "JOB_TYPE_UNSPECIFIED",
27
+ PYTORCH = "PYTORCH",
28
+ TENSORFLOW = "TENSORFLOW",
29
+ PADDLE = "PADDLE",
30
+ MPI = "MPI",
31
+ MXNET = "MXNET",
27
32
  }
28
33
 
29
- export type DatasetInitializer = {
34
+ export enum RestartPolicy {
35
+ RESTART_POLICY_UNSPECIFIED = "RESTART_POLICY_UNSPECIFIED",
36
+ RESTART_POLICY_NEVER = "RESTART_POLICY_NEVER",
37
+ RESTART_POLICY_ON_FAILURE = "RESTART_POLICY_ON_FAILURE",
30
38
  }
31
39
 
32
- export type ModelInitializer = {
40
+ export enum SuspendReason {
41
+ SUSPEND_REASON_UNSPECIFIED = "SUSPEND_REASON_UNSPECIFIED",
42
+ SUSPEND_REASON_USER_ACTION = "SUSPEND_REASON_USER_ACTION",
33
43
  }
34
44
 
35
- export type Initializer = {
36
- model?: ModelInitializer
37
- dataset?: DatasetInitializer
45
+ export enum ImagePullPolicy {
46
+ IMAGE_PULL_POLICY_UNSPECIFIED = "IMAGE_PULL_POLICY_UNSPECIFIED",
47
+ IMAGE_PULL_POLICY_ALWAYS = "IMAGE_PULL_POLICY_ALWAYS",
48
+ IMAGE_PULL_POLICY_NEVER = "IMAGE_PULL_POLICY_NEVER",
49
+ IMAGE_PULL_POLICY_IF_NOT_PRESENT = "IMAGE_PULL_POLICY_IF_NOT_PRESENT",
38
50
  }
39
51
 
40
- export type CreateJobRequest = {
41
- workspace?: number
52
+ export enum JobActionRequestAction {
53
+ JOB_ACTION_UNSPECIFIED = "JOB_ACTION_UNSPECIFIED",
54
+ RESTART = "RESTART",
55
+ CHANGE_PRIORITY = "CHANGE_PRIORITY",
56
+ SUSPEND = "SUSPEND",
57
+ RESUME = "RESUME",
58
+ }
59
+
60
+ export enum JobSchedulersResponseSchedulerFeature {
61
+ FEATURE_UNSPECIFIED = "FEATURE_UNSPECIFIED",
62
+ BINPACK = "BINPACK",
63
+ GANG = "GANG",
64
+ FAIR = "FAIR",
65
+ }
66
+
67
+ export type Job = {
68
+ type?: JobType
42
69
  cluster?: string
43
70
  namespace?: string
44
71
  name?: string
45
- runtimeRef?: RuntimeRef
46
- initializer?: Initializer
47
- trainer?: Trainer
48
- suspend?: boolean
72
+ trainingMode?: BaizeManagement_apiJobV1alpha2Common.TrainingMode
73
+ creationTimestamp?: GoogleProtobufTimestamp.Timestamp
74
+ jobSpec?: GoogleProtobufStruct.Struct
49
75
  description?: string
76
+ baseConfig?: BaizeManagement_apiJobV1alpha2Common.JobCreationBaseConfig
77
+ roleConfig?: {[key: string]: BaizeManagement_apiJobV1alpha2Common.JobRoleDifferenceConfig}
78
+ phase?: BaizeManagement_apiJobV1alpha2Common.JobPhase
79
+ runningDuration?: number
80
+ totalResources?: BaizeCommonK8s.Resources
81
+ analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
82
+ trainingConfig?: TrainingConfig
83
+ recoveryConfig?: BaizeManagement_apiJobV1alpha2Common.RecoveryConfig
84
+ cleanCheckpointConfig?: CleanCheckpointConfig
85
+ imagePullPolicy?: ImagePullPolicy
86
+ suspendReason?: SuspendReason
87
+ uid?: string
50
88
  }
51
89
 
52
- export type Job = {
90
+ export type ListJobsRequest = {
91
+ workspace?: number
92
+ type?: JobType
93
+ cluster?: string
94
+ namespace?: string
95
+ page?: BaizeCommonCommon.Pagination
96
+ }
97
+
98
+ export type ListJobsResponse = {
99
+ items?: Job[]
100
+ page?: BaizeCommonCommon.Pagination
101
+ }
102
+
103
+ export type ListRdmasRequest = {
53
104
  workspace?: number
54
105
  cluster?: string
55
106
  namespace?: string
107
+ page?: BaizeCommonCommon.Pagination
108
+ }
109
+
110
+ export type Rdma = {
56
111
  name?: string
57
- runtimeRef?: RuntimeRef
58
- initializer?: Initializer
59
- trainer?: Trainer
60
- suspend?: boolean
61
- description?: string
62
112
  }
63
113
 
64
- export type GetJobRequest = {
114
+ export type ListRdmasResponse = {
115
+ items?: Rdma[]
116
+ page?: BaizeCommonCommon.Pagination
117
+ }
118
+
119
+
120
+ /* baize modified */ export type BaseSingleJobRequest = {
65
121
  workspace?: number
122
+ type?: JobType
66
123
  cluster?: string
67
124
  namespace?: string
68
125
  name?: string
69
126
  }
70
127
 
71
- export type DeleteJobRequest = {
128
+ export type SingleJobRequest = BaseSingleJobRequest
129
+ & OneOf<{ deleteAnalysis: boolean }>
130
+
131
+ export type CreateJobRequest = {
72
132
  workspace?: number
133
+ type?: JobType
73
134
  cluster?: string
74
135
  namespace?: string
75
136
  name?: string
137
+ description?: string
138
+ baseConfig?: BaizeManagement_apiJobV1alpha2Common.JobCreationBaseConfig
139
+ trainingMode?: BaizeManagement_apiJobV1alpha2Common.TrainingMode
140
+ roleConfig?: {[key: string]: BaizeManagement_apiJobV1alpha2Common.JobRoleDifferenceConfig}
141
+ analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
142
+ trainingConfig?: TrainingConfig
143
+ recoveryConfig?: BaizeManagement_apiJobV1alpha2Common.RecoveryConfig
144
+ cleanCheckpointConfig?: CleanCheckpointConfig
145
+ imagePullPolicy?: ImagePullPolicy
76
146
  }
77
147
 
78
- export type ListRuntimesRequest = {
148
+ export type CleanCheckpointConfig = {
149
+ cronExpr?: string
150
+ dirs?: string[]
151
+ retained?: number
152
+ timezone?: string
153
+ whitelist?: string
154
+ }
155
+
156
+ export type TrainingConfig = {
157
+ restartPolicy?: RestartPolicy
158
+ maxRetries?: number
159
+ maxTrainingDuration?: string
160
+ rdmaEnabled?: boolean
161
+ }
162
+
163
+
164
+ /* baize modified */ export type BaseJobActionRequestParams = {
165
+ }
166
+
167
+ export type JobActionRequestParams = BaseJobActionRequestParams
168
+ & OneOf<{ priorityClass: string }>
169
+
170
+ export type JobActionRequest = {
79
171
  workspace?: number
172
+ type?: JobType
80
173
  cluster?: string
81
174
  namespace?: string
82
- page?: BaizeCommonCommon.Pagination
175
+ name?: string
176
+ action?: JobActionRequestAction
177
+ params?: JobActionRequestParams
83
178
  }
84
179
 
85
- export type ListClusterRuntimesRequest = {
180
+ export type JobSchedulersResponseScheduler = {
181
+ default?: boolean
182
+ name?: string
183
+ alias?: string
184
+ enabledFeatures?: JobSchedulersResponseSchedulerFeature[]
185
+ }
186
+
187
+ export type JobSchedulersResponse = {
188
+ items?: JobSchedulersResponseScheduler[]
189
+ }
190
+
191
+ export type ListJobEventsRequest = {
86
192
  workspace?: number
193
+ type?: JobType
87
194
  cluster?: string
195
+ namespace?: string
196
+ name?: string
88
197
  page?: BaizeCommonCommon.Pagination
89
198
  }
90
199
 
91
- export type ListJobsRequest = {
200
+ export type ListRuntimesRequest = {
92
201
  workspace?: number
93
202
  cluster?: string
94
203
  namespace?: string
95
204
  page?: BaizeCommonCommon.Pagination
96
205
  }
97
206
 
98
- export type ListJobsResponse = {
99
- items?: Job[]
207
+ export type ListClusterRuntimesRequest = {
208
+ workspace?: number
209
+ cluster?: string
100
210
  page?: BaizeCommonCommon.Pagination
101
211
  }
102
212
 
@@ -154,17 +264,17 @@ export type CreateClusterRuntimeRequest = {
154
264
  }
155
265
 
156
266
  export class JobService {
157
- static CreateJob(req: BaizeManagement_apiJobV1alpha1Job.CreateJobRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.Job> {
158
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.CreateJobRequest, BaizeManagement_apiJobV1alpha1Job.Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
267
+ static CreateJob(req: CreateJobRequest, initReq?: fm.InitReq): Promise<Job> {
268
+ return fm.fetchReq<CreateJobRequest, Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
159
269
  }
160
- static GetJob(req: BaizeManagement_apiJobV1alpha1Job.SingleJobRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.Job> {
161
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.SingleJobRequest, BaizeManagement_apiJobV1alpha1Job.Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
270
+ static GetJob(req: SingleJobRequest, initReq?: fm.InitReq): Promise<Job> {
271
+ return fm.fetchReq<SingleJobRequest, Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
162
272
  }
163
- static DeleteJob(req: BaizeManagement_apiJobV1alpha1Job.SingleJobRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.Job> {
164
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.SingleJobRequest, BaizeManagement_apiJobV1alpha1Job.Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
273
+ static DeleteJob(req: SingleJobRequest, initReq?: fm.InitReq): Promise<Job> {
274
+ return fm.fetchReq<SingleJobRequest, Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
165
275
  }
166
- static ListJobs(req: BaizeManagement_apiJobV1alpha1Job.ListJobsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.ListJobsResponse> {
167
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.ListJobsRequest, BaizeManagement_apiJobV1alpha1Job.ListJobsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/jobs?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
276
+ static ListJobs(req: ListJobsRequest, initReq?: fm.InitReq): Promise<ListJobsResponse> {
277
+ return fm.fetchReq<ListJobsRequest, ListJobsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/jobs?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
168
278
  }
169
279
  static CreateRuntime(req: CreateRuntimeRequest, initReq?: fm.InitReq): Promise<Runtime> {
170
280
  return fm.fetchReq<CreateRuntimeRequest, Runtime>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/runtimes`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -190,16 +300,16 @@ export class JobService {
190
300
  static DeleteClusterRuntime(req: DeleteClusterRuntimeRequest, initReq?: fm.InitReq): Promise<Runtime> {
191
301
  return fm.fetchReq<DeleteClusterRuntimeRequest, Runtime>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/clusterruntimes/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
192
302
  }
193
- static DoJobAction(req: BaizeManagement_apiJobV1alpha1Job.JobActionRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.Job> {
194
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.JobActionRequest, BaizeManagement_apiJobV1alpha1Job.Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
303
+ static DoJobAction(req: JobActionRequest, initReq?: fm.InitReq): Promise<Job> {
304
+ return fm.fetchReq<JobActionRequest, Job>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
195
305
  }
196
- static ListSchedulers(req: BaizeManagement_apiJobV1alpha1Job.CreateJobRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.JobSchedulersResponse> {
197
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.CreateJobRequest, BaizeManagement_apiJobV1alpha1Job.JobSchedulersResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/schedulers`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
306
+ static ListSchedulers(req: CreateJobRequest, initReq?: fm.InitReq): Promise<JobSchedulersResponse> {
307
+ return fm.fetchReq<CreateJobRequest, JobSchedulersResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/schedulers`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
198
308
  }
199
- static ListRdmas(req: BaizeManagement_apiJobV1alpha1Job.ListRdmasRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiJobV1alpha1Job.ListRdmasResponse> {
200
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.ListRdmasRequest, BaizeManagement_apiJobV1alpha1Job.ListRdmasResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rdmas?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
309
+ static ListRdmas(req: ListRdmasRequest, initReq?: fm.InitReq): Promise<ListRdmasResponse> {
310
+ return fm.fetchReq<ListRdmasRequest, ListRdmasResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rdmas?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
201
311
  }
202
- static ListJobEvents(req: BaizeManagement_apiJobV1alpha1Job.ListJobEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
203
- return fm.fetchReq<BaizeManagement_apiJobV1alpha1Job.ListJobEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
312
+ static ListJobEvents(req: ListJobEventsRequest, initReq?: fm.InitReq): Promise<BaizeManagement_apiEventV1alpha1Event.ListEventsResponse> {
313
+ return fm.fetchReq<ListJobEventsRequest, BaizeManagement_apiEventV1alpha1Event.ListEventsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/events?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
204
314
  }
205
315
  }
@@ -110,6 +110,7 @@ export type Notebook = {
110
110
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
111
111
  description?: string
112
112
  snapshotConfig?: SnapshotConfig
113
+ creator?: string
113
114
  }
114
115
 
115
116
  export type ListNotebooksResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.127.1",
3
+ "version": "v0.128.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"