@daocloud-proto/baize 0.105.4 → 0.106.1

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.
@@ -85,6 +85,16 @@ export type Dataset = {
85
85
  annotations?: {[key: string]: string}
86
86
  }
87
87
 
88
+ export type DataSourceOptionsConda = {
89
+ pythonVersion?: string
90
+ packageManager?: DataSourceOptionsCondaPackageManager
91
+ condaEnvironmentYml?: string
92
+ pipRequirementsTxt?: string
93
+ pipIndexUrl?: string
94
+ pipExtraIndexUrl?: string
95
+ gpuType?: string
96
+ }
97
+
88
98
  export type DataSourceOptionsGit = {
89
99
  branch?: string
90
100
  commit?: string
@@ -101,16 +111,6 @@ export type DataSourceOptionsHttp = {
101
111
  headers?: {[key: string]: string}
102
112
  }
103
113
 
104
- export type DataSourceOptionsConda = {
105
- pythonVersion?: string
106
- packageManager?: DataSourceOptionsCondaPackageManager
107
- condaEnvironmentYml?: string
108
- pipRequirementsTxt?: string
109
- pipIndexUrl?: string
110
- pipExtraIndexUrl?: string
111
- gpuType?: string
112
- }
113
-
114
114
 
115
115
  /* baize modified */ export type BaseDataSourceOptions = {
116
116
  }
@@ -185,7 +185,8 @@ export type SingleDatasetRequest = {
185
185
  name?: string
186
186
  }
187
187
 
188
- export type UpdateDatasetRequest = {
188
+
189
+ /* baize modified */ export type BaseUpdateDatasetRequest = {
189
190
  workspace?: number
190
191
  cluster?: string
191
192
  namespace?: string
@@ -193,6 +194,9 @@ export type UpdateDatasetRequest = {
193
194
  secretOptions?: SecretOptions
194
195
  }
195
196
 
197
+ export type UpdateDatasetRequest = BaseUpdateDatasetRequest
198
+ & OneOf<{ conda: DataSourceOptionsConda }>
199
+
196
200
  export type DatasetActionRequest = {
197
201
  workspace?: number
198
202
  cluster?: string
@@ -201,6 +205,13 @@ export type DatasetActionRequest = {
201
205
  action?: DatasetActionRequestAction
202
206
  }
203
207
 
208
+ export type GetDatasetCondaOptionsRequest = {
209
+ }
210
+
211
+ export type GetDatasetCondaOptionsResponse = {
212
+ pythonVersions?: string[]
213
+ }
214
+
204
215
  export class DatasetManagement {
205
216
  static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
206
217
  return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
@@ -220,4 +231,7 @@ export class DatasetManagement {
220
231
  static DatasetDoAction(req: DatasetActionRequest, initReq?: fm.InitReq): Promise<Dataset> {
221
232
  return fm.fetchReq<DatasetActionRequest, Dataset>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
222
233
  }
234
+ static GetDatasetCondaOptions(req: GetDatasetCondaOptionsRequest, initReq?: fm.InitReq): Promise<GetDatasetCondaOptionsResponse> {
235
+ return fm.fetchReq<GetDatasetCondaOptionsRequest, GetDatasetCondaOptionsResponse>(`/apis/baize.io/v1alpha1/datasets/conda/options?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
236
+ }
223
237
  }
@@ -54,6 +54,7 @@ export type JobCreationBaseConfig = {
54
54
  annotations?: {[key: string]: string}
55
55
  workingDir?: string
56
56
  shmSize?: number
57
+ noOverrideEnvPath?: boolean
57
58
  }
58
59
 
59
60
  export type JobRoleDifferenceConfig = {
@@ -22,6 +22,7 @@ type OneOf<T> =
22
22
  export enum NotebookType {
23
23
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
24
24
  JUPYTER = "JUPYTER",
25
+ CODE = "CODE",
25
26
  }
26
27
 
27
28
  export enum NotebookConfigServiceType {
@@ -89,6 +90,7 @@ export type Notebook = {
89
90
  status?: NotebookStatus
90
91
  priorityClass?: string
91
92
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
93
+ description?: string
92
94
  }
93
95
 
94
96
  export type ListNotebooksResponse = {
@@ -117,6 +119,7 @@ export type CreateNotebookRequest = {
117
119
  config?: NotebookConfig
118
120
  priorityClass?: string
119
121
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
122
+ description?: string
120
123
  }
121
124
 
122
125
  export type UpdateNotebookRequest = {
@@ -124,9 +127,11 @@ export type UpdateNotebookRequest = {
124
127
  cluster?: string
125
128
  namespace?: string
126
129
  name?: string
130
+ queueName?: string
127
131
  config?: NotebookConfig
128
132
  priorityClass?: string
129
133
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
134
+ description?: string
130
135
  }
131
136
 
132
137
  export type NotebookActionRequest = {
@@ -8,6 +8,7 @@ import * as BaizeCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
9
  export type ListWorkspaceRequest = {
10
10
  page?: BaizeCommonCommon.Pagination
11
+ cluster?: string
11
12
  }
12
13
 
13
14
  export type Workspace = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.105.4",
3
+ "version": "v0.106.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"