@daocloud-proto/hydra 0.11.0-dev-32 → 0.11.0-dev-35

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.
@@ -106,6 +106,25 @@ export type ListArtifactsResponse = {
106
106
  page?: HydraCommonCommon.Pagination
107
107
  }
108
108
 
109
+ export type GetImageInfoRequest = {
110
+ workspace?: number
111
+ image?: string
112
+ }
113
+
114
+ export type ImageInfo = {
115
+ registry?: string
116
+ project?: string
117
+ image?: string
118
+ tag?: string
119
+ public?: boolean
120
+ global?: boolean
121
+ }
122
+
123
+ export type GetImageInfoResponse = {
124
+ origin?: string
125
+ info?: ImageInfo
126
+ }
127
+
109
128
  export type ListSecretsRequest = {
110
129
  cluster?: string
111
130
  namespace?: string
@@ -139,4 +158,7 @@ export class Image {
139
158
  static ListSecrets(req: ListSecretsRequest, initReq?: fm.InitReq): Promise<ListSecretsResponse> {
140
159
  return fm.fetchReq<ListSecretsRequest, ListSecretsResponse>(`/apis/hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
141
160
  }
161
+ static GetImageInfo(req: GetImageInfoRequest, initReq?: fm.InitReq): Promise<GetImageInfoResponse> {
162
+ return fm.fetchReq<GetImageInfoRequest, GetImageInfoResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/imageinfo?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
163
+ }
142
164
  }
@@ -24,14 +24,6 @@ export enum PaymentMethod {
24
24
  PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
25
25
  }
26
26
 
27
- export enum InferenceRuntime {
28
- INFERENCE_RUNTIME_UNSPECIFIED = "INFERENCE_RUNTIME_UNSPECIFIED",
29
- VLLM = "VLLM",
30
- SGLANG = "SGLANG",
31
- IMAGE_GEN = "IMAGE_GEN",
32
- CUSTOM = "CUSTOM",
33
- }
34
-
35
27
  export enum ModelServingStatus {
36
28
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
37
29
  DEPLOYING = "DEPLOYING",
@@ -86,7 +78,7 @@ export type EnvVar = {
86
78
  }
87
79
 
88
80
  export type RuntimeConfig = {
89
- runtimeType?: InferenceRuntime
81
+ runtimeType?: string
90
82
  runtimeImage?: string
91
83
  versionRequired?: string
92
84
  imagePullSecretName?: string[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.11.0-dev-32",
3
+ "version": "v0.11.0-dev-35",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"