@daocloud-proto/hydra 0.11.0-dev-29 → 0.11.0-dev-34

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.
@@ -0,0 +1,142 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as HydraCommonCommon from "../../../common/common.pb"
8
+ import * as fm from "../../../fetch.pb"
9
+ import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
+
11
+ export enum RegistryType {
12
+ REGISTRY_TYPE_UNSPECIFIED = "REGISTRY_TYPE_UNSPECIFIED",
13
+ REGISTRY_TYPE_HARBOR = "REGISTRY_TYPE_HARBOR",
14
+ REGISTRY_TYPE_DOCKER = "REGISTRY_TYPE_DOCKER",
15
+ REGISTRY_TYPE_JFROG = "REGISTRY_TYPE_JFROG",
16
+ }
17
+
18
+ export enum Scope {
19
+ SCOPE_UNKNOWN = "SCOPE_UNKNOWN",
20
+ SCOPE_GLOBAL = "SCOPE_GLOBAL",
21
+ SCOPE_WORKSPACE = "SCOPE_WORKSPACE",
22
+ }
23
+
24
+ export enum Visibility {
25
+ VISIBLE_UNKNOWN = "VISIBLE_UNKNOWN",
26
+ VISIBLE_PUBLIC = "VISIBLE_PUBLIC",
27
+ VISIBLE_PRIVATE = "VISIBLE_PRIVATE",
28
+ }
29
+
30
+ export type ListRegistriesRequest = {
31
+ workspace?: number
32
+ global?: boolean
33
+ page?: HydraCommonCommon.Pagination
34
+ }
35
+
36
+ export type Registry = {
37
+ host?: string
38
+ name?: string
39
+ type?: RegistryType
40
+ scope?: Scope
41
+ }
42
+
43
+ export type ListRegistriesResponse = {
44
+ items?: Registry[]
45
+ page?: HydraCommonCommon.Pagination
46
+ }
47
+
48
+ export type ListProjectsRequest = {
49
+ workspace?: number
50
+ registry?: string
51
+ public?: boolean
52
+ page?: HydraCommonCommon.Pagination
53
+ onlyBind?: boolean
54
+ all?: boolean
55
+ }
56
+
57
+ export type Project = {
58
+ name?: string
59
+ visible?: Visibility
60
+ }
61
+
62
+ export type ListProjectsResponse = {
63
+ items?: Project[]
64
+ page?: HydraCommonCommon.Pagination
65
+ }
66
+
67
+ export type ListRepositoriesRequest = {
68
+ workspace?: number
69
+ registry?: string
70
+ project?: string
71
+ page?: HydraCommonCommon.Pagination
72
+ }
73
+
74
+ export type Tag = {
75
+ name?: string
76
+ creationTimestamp?: GoogleProtobufTimestamp.Timestamp
77
+ }
78
+
79
+ export type Repository = {
80
+ name?: string
81
+ updateTimestamp?: GoogleProtobufTimestamp.Timestamp
82
+ }
83
+
84
+ export type ListRepositoriesResponse = {
85
+ items?: Repository[]
86
+ page?: HydraCommonCommon.Pagination
87
+ }
88
+
89
+ export type ListArtifactsRequest = {
90
+ workspace?: number
91
+ registry?: string
92
+ project?: string
93
+ repository?: string
94
+ page?: HydraCommonCommon.Pagination
95
+ }
96
+
97
+ export type Artifact = {
98
+ digest?: string
99
+ tags?: Tag[]
100
+ imageSize?: string
101
+ creationTimestamp?: GoogleProtobufTimestamp.Timestamp
102
+ }
103
+
104
+ export type ListArtifactsResponse = {
105
+ items?: Artifact[]
106
+ page?: HydraCommonCommon.Pagination
107
+ }
108
+
109
+ export type ListSecretsRequest = {
110
+ cluster?: string
111
+ namespace?: string
112
+ type?: string
113
+ }
114
+
115
+ export type Secret = {
116
+ name?: string
117
+ namespace?: string
118
+ cluster?: string
119
+ type?: string
120
+ }
121
+
122
+ export type ListSecretsResponse = {
123
+ items?: Secret[]
124
+ }
125
+
126
+ export class Image {
127
+ static ListRegistries(req: ListRegistriesRequest, initReq?: fm.InitReq): Promise<ListRegistriesResponse> {
128
+ return fm.fetchReq<ListRegistriesRequest, ListRegistriesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/registries?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
129
+ }
130
+ static ListProjects(req: ListProjectsRequest, initReq?: fm.InitReq): Promise<ListProjectsResponse> {
131
+ return fm.fetchReq<ListProjectsRequest, ListProjectsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
132
+ }
133
+ static ListRepositories(req: ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ListRepositoriesResponse> {
134
+ return fm.fetchReq<ListRepositoriesRequest, ListRepositoriesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/repositories?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
135
+ }
136
+ static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
137
+ return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["workspace", "registry", "repository"])}`, {...initReq, method: "GET"})
138
+ }
139
+ static ListSecrets(req: ListSecretsRequest, initReq?: fm.InitReq): Promise<ListSecretsResponse> {
140
+ 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
+ }
142
+ }
@@ -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",
@@ -85,16 +77,11 @@ export type EnvVar = {
85
77
  value?: string
86
78
  }
87
79
 
88
- export type ImagePullSecret = {
89
- username?: string
90
- password?: string
91
- }
92
-
93
80
  export type RuntimeConfig = {
94
- runtimeType?: InferenceRuntime
81
+ runtimeType?: string
95
82
  runtimeImage?: string
96
83
  versionRequired?: string
97
- imagePullSecret?: ImagePullSecret
84
+ imagePullSecretName?: string[]
98
85
  runtimeCommand?: string
99
86
  env?: EnvVar[]
100
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.11.0-dev-29",
3
+ "version": "v0.11.0-dev-34",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"