@daocloud-proto/infery 0.0.0-dev-6ba2995b → 0.0.0-dev-c6ffc97d

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.
@@ -76,6 +76,7 @@ export enum ModelServingOriginType {
76
76
  MODEL_SERVING_ORIGIN_TYPE_OPTIMIZED_TEMPLATE = "MODEL_SERVING_ORIGIN_TYPE_OPTIMIZED_TEMPLATE",
77
77
  MODEL_SERVING_ORIGIN_TYPE_GENERIC_TEMPLATE = "MODEL_SERVING_ORIGIN_TYPE_GENERIC_TEMPLATE",
78
78
  MODEL_SERVING_ORIGIN_TYPE_CUSTOM_DEPLOYMENT = "MODEL_SERVING_ORIGIN_TYPE_CUSTOM_DEPLOYMENT",
79
+ MODEL_SERVING_ORIGIN_TYPE_EXTERNAL = "MODEL_SERVING_ORIGIN_TYPE_EXTERNAL",
79
80
  }
80
81
 
81
82
  export type PVCModelSource = {
@@ -6,6 +6,15 @@
6
6
 
7
7
  import * as InferyCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
9
18
  export type ListWorkspaceRequest = {
10
19
  cluster?: string
11
20
  }
@@ -21,12 +30,18 @@ export type ListWorkspacesResponse = {
21
30
 
22
31
  export type ListClusterRequest = {
23
32
  workspace?: number
33
+ inferenceTemplate?: string
24
34
  }
25
35
 
26
- export type Cluster = {
36
+
37
+ type BaseCluster = {
27
38
  name?: string
28
39
  }
29
40
 
41
+ export type Cluster = BaseCluster
42
+ & OneOf<{ gpuVendorMatched: boolean }>
43
+ & OneOf<{ gpuModelMatched: boolean }>
44
+
30
45
  export type ListClustersResponse = {
31
46
  items?: Cluster[]
32
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/infery",
3
- "version": "v0.0.0-dev-6ba2995b",
3
+ "version": "v0.0.0-dev-c6ffc97d",
4
4
  "description": "Infery frontend protobuf SDK",
5
5
  "license": "ISC"
6
6
  }