@daocloud-proto/baize 0.110.4 → 0.111.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.
@@ -31,13 +31,22 @@ export type Auth = {
31
31
  operator?: AuthResourceAction
32
32
  }
33
33
 
34
+ export type AuditObject = {
35
+ nameKey?: string
36
+ namespaceKey?: string
37
+ clusterKey?: string
38
+ }
39
+
40
+ export type AuditObjectKind = {
41
+ kindName?: string
42
+ kindGroup?: string
43
+ kindVersion?: string
44
+ kindKey?: string
45
+ }
46
+
34
47
  export type Audit = {
35
- objectNsKey?: string
36
- objectNameKey?: string
37
- objectKindName?: string
38
- objectKindGroup?: string
39
- objectKindVersion?: string
40
- objectKindKey?: string
48
+ object?: AuditObject
49
+ objectKind?: AuditObjectKind
41
50
  action?: string
42
51
  actionKey?: string
43
52
  customObject?: boolean
@@ -27,6 +27,7 @@ export enum DataSourceType {
27
27
  NFS = "NFS",
28
28
  REFERENCE = "REFERENCE",
29
29
  HUGGING_FACE = "HUGGING_FACE",
30
+ MODEL_SCOPE = "MODEL_SCOPE",
30
31
  CONDA = "CONDA",
31
32
  }
32
33
 
@@ -50,6 +51,12 @@ export enum DataSourceOptionsHuggingFaceRepoType {
50
51
  DATASET = "DATASET",
51
52
  }
52
53
 
54
+ export enum DataSourceOptionsModelScopeRepoType {
55
+ REPO_TYPE_UNSPECIFIED = "REPO_TYPE_UNSPECIFIED",
56
+ MODEL = "MODEL",
57
+ DATASET = "DATASET",
58
+ }
59
+
53
60
  export enum DataSourceOptionsS3Provider {
54
61
  PROVIDER_UNSPECIFIED = "PROVIDER_UNSPECIFIED",
55
62
  AWS = "AWS",
@@ -115,10 +122,18 @@ export type DataSourceOptionsConda = {
115
122
  }
116
123
 
117
124
  export type DataSourceOptionsHuggingFace = {
118
- repoType?: string
125
+ repoType?: DataSourceOptionsHuggingFaceRepoType
119
126
  endpoint?: string
120
127
  include?: string
121
128
  exclude?: string
129
+ revision?: string
130
+ }
131
+
132
+ export type DataSourceOptionsModelScope = {
133
+ repoType?: DataSourceOptionsModelScopeRepoType
134
+ include?: string
135
+ exclude?: string
136
+ revision?: string
122
137
  }
123
138
 
124
139
  export type DataSourceOptionsGit = {
@@ -143,7 +158,7 @@ export type DataSourceOptionsHttp = {
143
158
  }
144
159
 
145
160
  export type DataSourceOptions = BaseDataSourceOptions
146
- & OneOf<{ git: DataSourceOptionsGit; s3: DataSourceOptionsS3; http: DataSourceOptionsHttp; conda: DataSourceOptionsConda; huggingFace: DataSourceOptionsHuggingFace }>
161
+ & OneOf<{ git: DataSourceOptionsGit; s3: DataSourceOptionsS3; http: DataSourceOptionsHttp; conda: DataSourceOptionsConda; huggingFace: DataSourceOptionsHuggingFace; modelScope: DataSourceOptionsModelScope }>
147
162
 
148
163
  export type SecretOptionsBasicAuth = {
149
164
  username?: string
@@ -265,6 +280,16 @@ export type DatasetSyncProcess = {
265
280
  syncProcess?: number
266
281
  }
267
282
 
283
+ export type ValidateDataSourceSecretsRequest = {
284
+ source?: DataSource
285
+ secretOptions?: SecretOptions
286
+ }
287
+
288
+ export type ValidateDataSourceSecretsResponse = {
289
+ valid?: boolean
290
+ message?: string
291
+ }
292
+
268
293
  export class DatasetManagement {
269
294
  static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
270
295
  return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
@@ -293,4 +318,7 @@ export class DatasetManagement {
293
318
  static GetRelatedInstances(req: RelatedInstancesRequest, initReq?: fm.InitReq): Promise<RelatedInstancesResponse> {
294
319
  return fm.fetchReq<RelatedInstancesRequest, RelatedInstancesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/related-instances?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
295
320
  }
321
+ static ValidateDataSourceSecrets(req: ValidateDataSourceSecretsRequest, initReq?: fm.InitReq): Promise<ValidateDataSourceSecretsResponse> {
322
+ return fm.fetchReq<ValidateDataSourceSecretsRequest, ValidateDataSourceSecretsResponse>(`/apis/baize.io/v1alpha1/datasets/validate-secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
323
+ }
296
324
  }
@@ -176,6 +176,14 @@ export type AdminOverviewDashboardRequest = {
176
176
  to?: string
177
177
  }
178
178
 
179
+ export type NvidiaGPUGrafanaDashboardRequest = {
180
+ cluster?: string
181
+ node?: string
182
+ gpuIndex?: string
183
+ from?: string
184
+ to?: string
185
+ }
186
+
179
187
  export class MetricsService {
180
188
  static QueryMultipleVectors(req: QueryMultipleVectorRequest, initReq?: fm.InitReq): Promise<MultipleVectorQueryResponse> {
181
189
  return fm.fetchReq<QueryMultipleVectorRequest, MultipleVectorQueryResponse>(`/apis/baize.io/v1alpha1/metrics/multiple-queries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -198,4 +206,7 @@ export class MetricsService {
198
206
  static GetInferenceServiceGrafanaDashboard(req: InferenceServiceGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
199
207
  return fm.fetchReq<InferenceServiceGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving/${req["inference"]}/service-grafana-dashboards?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "inference"])}`, {...initReq, method: "GET"})
200
208
  }
209
+ static GetNvidiaGPUGrafanaDashboard(req: NvidiaGPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
210
+ return fm.fetchReq<NvidiaGPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/nvidia-gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
211
+ }
201
212
  }
@@ -108,6 +108,7 @@ export type Model = {
108
108
  tags?: string[]
109
109
  readme?: string
110
110
  status?: ModelStatus
111
+ displayName?: string
111
112
  }
112
113
 
113
114
  export type ListModelsRequest = {
@@ -145,6 +146,7 @@ export type CreateModelRequest = {
145
146
  readme?: string
146
147
  share?: boolean
147
148
  sharedToWorkspaces?: Workspace[]
149
+ displayName?: string
148
150
  }
149
151
 
150
152
  export type UpdateModelRequest = {
@@ -162,6 +164,7 @@ export type UpdateModelRequest = {
162
164
  readme?: string
163
165
  share?: boolean
164
166
  sharedToWorkspaces?: Workspace[]
167
+ displayName?: string
165
168
  }
166
169
 
167
170
  export type CreateModelVersionRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.110.4",
3
+ "version": "v0.111.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"