@daocloud-proto/ghippo 0.10.6-dev-2 → 0.10.6-dev-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.10.6-dev-2",
3
+ "version":"0.10.6-dev-3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -0,0 +1,81 @@
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 fm from "../fetch.pb"
8
+ export type ClientInfo = {
9
+ id?: string
10
+ clientId?: string
11
+ name?: string
12
+ enabled?: boolean
13
+ redirectUris?: string[]
14
+ secret?: string
15
+ baseUrl?: string
16
+ }
17
+
18
+ export type Pagination = {
19
+ total?: number
20
+ page?: number
21
+ pageSize?: number
22
+ }
23
+
24
+ export type CreateClientRequest = {
25
+ clientId?: string
26
+ }
27
+
28
+ export type CreateClientResponse = {
29
+ }
30
+
31
+ export type GetClientRequest = {
32
+ id?: string
33
+ }
34
+
35
+ export type GetClientResponse = {
36
+ client?: ClientInfo
37
+ }
38
+
39
+ export type ListClientsRequest = {
40
+ search?: string
41
+ }
42
+
43
+ export type ListClientsResponse = {
44
+ items?: ClientInfo[]
45
+ pagination?: Pagination
46
+ }
47
+
48
+ export type UpdateClientRequest = {
49
+ id?: string
50
+ clientId?: string
51
+ name?: string
52
+ redirectUris?: string[]
53
+ }
54
+
55
+ export type UpdateClientResponse = {
56
+ }
57
+
58
+ export type DeleteClientRequest = {
59
+ id?: string
60
+ }
61
+
62
+ export type DeleteClientResponse = {
63
+ }
64
+
65
+ export class Client {
66
+ static CreateClient(req: CreateClientRequest, initReq?: fm.InitReq): Promise<CreateClientResponse> {
67
+ return fm.fetchReq<CreateClientRequest, CreateClientResponse>(`/apis/ghippo.io/v1alpha1/clients`, {...initReq, method: "POST", body: JSON.stringify(req)})
68
+ }
69
+ static GetClient(req: GetClientRequest, initReq?: fm.InitReq): Promise<GetClientResponse> {
70
+ return fm.fetchReq<GetClientRequest, GetClientResponse>(`/apis/ghippo.io/v1alpha1/clients/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
71
+ }
72
+ static ListClients(req: ListClientsRequest, initReq?: fm.InitReq): Promise<ListClientsResponse> {
73
+ return fm.fetchReq<ListClientsRequest, ListClientsResponse>(`/apis/ghippo.io/v1alpha1/clients?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
74
+ }
75
+ static UpdateClient(req: UpdateClientRequest, initReq?: fm.InitReq): Promise<UpdateClientResponse> {
76
+ return fm.fetchReq<UpdateClientRequest, UpdateClientResponse>(`/apis/ghippo.io/v1alpha1/clients/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
77
+ }
78
+ static DeleteClient(req: DeleteClientRequest, initReq?: fm.InitReq): Promise<DeleteClientResponse> {
79
+ return fm.fetchReq<DeleteClientRequest, DeleteClientResponse>(`/apis/ghippo.io/v1alpha1/clients/${req["id"]}`, {...initReq, method: "DELETE"})
80
+ }
81
+ }
@@ -30,6 +30,16 @@ export enum QuotaType {
30
30
  requestsStorage = "requestsStorage",
31
31
  }
32
32
 
33
+ export enum WorkspaceResourceTypeEnum {
34
+ cluster = "cluster",
35
+ shared_cluster = "shared_cluster",
36
+ cluster_namespace = "cluster_namespace",
37
+ mesh = "mesh",
38
+ mesh_namespace = "mesh_namespace",
39
+ kairship = "kairship",
40
+ kairship_namespace = "kairship_namespace",
41
+ }
42
+
33
43
  export type Pagination = {
34
44
  total?: number
35
45
  page?: number