@daocloud-proto/ghippo 0.10.6-dev-2 → 0.10.6-dev-4
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 +1 -1
- package/v1alpha1/audit.pb.ts +4 -0
- package/v1alpha1/client.pb.ts +81 -0
- package/v1alpha1/topnav.pb.ts +4 -4
- package/v1alpha1/workspace.pb.ts +12 -0
- package/v1alpha2/auditv2.pb.ts +18 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -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
|
+
}
|
package/v1alpha1/topnav.pb.ts
CHANGED
|
@@ -14,13 +14,13 @@ export type TopNavResponse = {
|
|
|
14
14
|
tabName?: string
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type SetTopNavRequest = {
|
|
18
18
|
icon?: string
|
|
19
19
|
favicon?: string
|
|
20
20
|
tabName?: string
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export type
|
|
23
|
+
export type SetTopNavResponse = {
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type ResetTopNavRequest = {
|
|
@@ -33,8 +33,8 @@ export class TopNavigator {
|
|
|
33
33
|
static Info(req: TopNavRequest, initReq?: fm.InitReq): Promise<TopNavResponse> {
|
|
34
34
|
return fm.fetchReq<TopNavRequest, TopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
35
35
|
}
|
|
36
|
-
static
|
|
37
|
-
return fm.fetchReq<
|
|
36
|
+
static SetTopNav(req: SetTopNavRequest, initReq?: fm.InitReq): Promise<SetTopNavResponse> {
|
|
37
|
+
return fm.fetchReq<SetTopNavRequest, SetTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
38
38
|
}
|
|
39
39
|
static ResetTopNav(req: ResetTopNavRequest, initReq?: fm.InitReq): Promise<ResetTopNavResponse> {
|
|
40
40
|
return fm.fetchReq<ResetTopNavRequest, ResetTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/reset`, {...initReq, method: "POST"})
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -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
|
|
@@ -59,6 +69,7 @@ export type WorkspacesResourceInfo = {
|
|
|
59
69
|
gproduct?: string
|
|
60
70
|
workspaceId?: number
|
|
61
71
|
workspaceResourceId?: number
|
|
72
|
+
module?: string
|
|
62
73
|
}
|
|
63
74
|
|
|
64
75
|
export type ListResourcesRequest = {
|
|
@@ -287,6 +298,7 @@ export type ResourceInfo = {
|
|
|
287
298
|
resourceType?: string
|
|
288
299
|
gproduct?: string
|
|
289
300
|
resourceScope?: string
|
|
301
|
+
bound?: boolean
|
|
290
302
|
}
|
|
291
303
|
|
|
292
304
|
export type ListExclusiveResourceTypesRequest = {
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
|
|
9
|
+
export type ExportAuditRequest = {
|
|
10
|
+
start?: string
|
|
11
|
+
end?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class AuditV1alpha2 {
|
|
15
|
+
static ExportAudit(req: ExportAuditRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
16
|
+
return fm.fetchReq<ExportAuditRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha2/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
17
|
+
}
|
|
18
|
+
}
|