@daocloud-proto/baize 0.110.2 → 0.110.3

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.
package/common/k8s.pb.ts CHANGED
@@ -9,6 +9,7 @@ export enum KubeVolumeVolumeType {
9
9
  PERSISTENT_VOLUME_CLAIM = "PERSISTENT_VOLUME_CLAIM",
10
10
  DATASET = "DATASET",
11
11
  DATASET_RUNTIME_ENV = "DATASET_RUNTIME_ENV",
12
+ MODEL = "MODEL",
12
13
  }
13
14
 
14
15
  export enum KubeVolumeDataDirection {
@@ -17,6 +18,11 @@ export enum KubeVolumeDataDirection {
17
18
  OUTPUT = "OUTPUT",
18
19
  }
19
20
 
21
+ export enum ResourceAffinityType {
22
+ RESOURCE_AFFINITY_TYPE_UNSPECIFIED = "RESOURCE_AFFINITY_TYPE_UNSPECIFIED",
23
+ HAMI_VGPU = "HAMI_VGPU",
24
+ }
25
+
20
26
  export type Resources = {
21
27
  requests?: {[key: string]: string}
22
28
  limits?: {[key: string]: string}
@@ -35,6 +41,11 @@ export type KubeVolume = {
35
41
  dataDirection?: KubeVolumeDataDirection
36
42
  }
37
43
 
44
+ export type ResourceAffinity = {
45
+ type?: ResourceAffinityType
46
+ value?: string
47
+ }
48
+
38
49
  export type PodConfig = {
39
50
  kubeEnvs?: KubeEnv[]
40
51
  kubeVolumes?: KubeVolume[]
@@ -44,6 +55,7 @@ export type PodConfig = {
44
55
  priorityClass?: string
45
56
  queue?: string
46
57
  tolerationSeconds?: string
58
+ resourceAffinities?: ResourceAffinity[]
47
59
  }
48
60
 
49
61
  export type Affinity = {
@@ -5,6 +5,7 @@
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"
9
10
 
10
11
  export enum ClusterStatus {
@@ -117,6 +118,22 @@ export type ClusterSettingsRequest = {
117
118
  workspace?: number
118
119
  }
119
120
 
121
+ export type ClusterResourceType = {
122
+ type?: BaizeCommonK8s.ResourceAffinityType
123
+ values?: string[]
124
+ }
125
+
126
+ export type ListResourceAffinitiesRequest = {
127
+ workspace?: number
128
+ cluster?: string
129
+ page?: BaizeCommonCommon.Pagination
130
+ }
131
+
132
+ export type ListResourceAffinitiesResponse = {
133
+ items?: ClusterResourceType[]
134
+ page?: BaizeCommonCommon.Pagination
135
+ }
136
+
120
137
  export class ClusterService {
121
138
  static ListClusters(req: ListAIClustersRequest, initReq?: fm.InitReq): Promise<ListAIClustersResponse> {
122
139
  return fm.fetchReq<ListAIClustersRequest, ListAIClustersResponse>(`/apis/baize.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -133,4 +150,7 @@ export class ClusterService {
133
150
  static ListStorageClasses(req: ListStorageClassesRequest, initReq?: fm.InitReq): Promise<ListStorageClassesResponse> {
134
151
  return fm.fetchReq<ListStorageClassesRequest, ListStorageClassesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/storage-classes?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
135
152
  }
153
+ static ListResourceAffinities(req: ListResourceAffinitiesRequest, initReq?: fm.InitReq): Promise<ListResourceAffinitiesResponse> {
154
+ return fm.fetchReq<ListResourceAffinitiesRequest, ListResourceAffinitiesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/resource-affinities?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
155
+ }
136
156
  }
@@ -101,6 +101,7 @@ export type Dataset = {
101
101
  share?: boolean
102
102
  sharedStoWorkspaces?: BaizeManagement_apiWorkspaceV1alpha1Workspace.Workspace[]
103
103
  boundPVC?: DatasetBoundPVC
104
+ lastSync?: GoogleProtobufTimestamp.Timestamp
104
105
  }
105
106
 
106
107
  export type DataSourceOptionsConda = {
@@ -42,6 +42,14 @@ export enum ModelVersionSourceType {
42
42
  DATASET = "DATASET",
43
43
  }
44
44
 
45
+ export enum ModelVersionStatusPhase {
46
+ PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
47
+ PENDING = "PENDING",
48
+ CREATING = "CREATING",
49
+ READY = "READY",
50
+ ERROR = "ERROR",
51
+ }
52
+
45
53
  export enum ModelStatusPhase {
46
54
  PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
47
55
  PENDING = "PENDING",
@@ -69,10 +77,15 @@ export type DatasetRef = {
69
77
  export type ModelVersionSource = BaseModelVersionSource
70
78
  & OneOf<{ datasetRef: DatasetRef }>
71
79
 
80
+ export type ModelVersionStatus = {
81
+ phase?: ModelVersionStatusPhase
82
+ }
83
+
72
84
  export type Version = {
73
85
  version?: string
74
86
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
75
87
  source?: ModelVersionSource
88
+ status?: ModelVersionStatus
76
89
  }
77
90
 
78
91
  export type ModelStatus = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.110.2",
3
+ "version": "v0.110.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"