@daocloud-proto/hydra 0.15.0-dev-4 → 0.15.0-dev-6

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.
@@ -41,6 +41,7 @@ export type ListClusterResponse = {
41
41
  export type ConstantsResponse = {
42
42
  defaultFilesStorageCapacity?: string
43
43
  defaultMountPath?: string
44
+ defaultModelServingPort?: number
44
45
  }
45
46
 
46
47
  export type ListPlatformRolePermissionsForCurrentUserResponse = {
@@ -69,6 +69,24 @@ export type ListClusterNamespaceResponse = {
69
69
  page?: HydraCommonCommon.Pagination
70
70
  }
71
71
 
72
+ export type ListConfigMapsRequest = {
73
+ workspace?: number
74
+ cluster?: string
75
+ namespace?: string
76
+ page?: HydraCommonCommon.Pagination
77
+ name?: string
78
+ }
79
+
80
+ export type ConfigMap = {
81
+ name?: string
82
+ namespace?: string
83
+ }
84
+
85
+ export type ListConfigMapsResponse = {
86
+ items?: ConfigMap[]
87
+ page?: HydraCommonCommon.Pagination
88
+ }
89
+
72
90
  export class WorkspaceService {
73
91
  static ListWorkspaces(req: ListWorkspaceRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
74
92
  return fm.fetchReq<ListWorkspaceRequest, ListWorkspacesResponse>(`/apis/hydra.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -79,4 +97,7 @@ export class WorkspaceService {
79
97
  static ListClusterNamespaces(req: ListClusterNamespacesRequest, initReq?: fm.InitReq): Promise<ListClusterNamespaceResponse> {
80
98
  return fm.fetchReq<ListClusterNamespacesRequest, ListClusterNamespaceResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/cluster-namespaces?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
81
99
  }
100
+ static ListConfigMaps(req: ListConfigMapsRequest, initReq?: fm.InitReq): Promise<ListConfigMapsResponse> {
101
+ return fm.fetchReq<ListConfigMapsRequest, ListConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
102
+ }
82
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.15.0-dev-4",
3
+ "version": "v0.15.0-dev-6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"