@daocloud-proto/ghippo 0.10.6 → 0.11.0-rc-1
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 +19 -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,22 @@ 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
|
+
|
|
43
|
+
export enum WorkspaceResourceKindEnum {
|
|
44
|
+
resource_group = "resource_group",
|
|
45
|
+
shared_resource = "shared_resource",
|
|
46
|
+
registry = "registry",
|
|
47
|
+
}
|
|
48
|
+
|
|
33
49
|
export type Pagination = {
|
|
34
50
|
total?: number
|
|
35
51
|
page?: number
|
|
@@ -59,6 +75,7 @@ export type WorkspacesResourceInfo = {
|
|
|
59
75
|
gproduct?: string
|
|
60
76
|
workspaceId?: number
|
|
61
77
|
workspaceResourceId?: number
|
|
78
|
+
module?: string
|
|
62
79
|
}
|
|
63
80
|
|
|
64
81
|
export type ListResourcesRequest = {
|
|
@@ -187,6 +204,7 @@ export type FolderTree = {
|
|
|
187
204
|
parentId?: number
|
|
188
205
|
children?: FolderTree[]
|
|
189
206
|
permissions?: FolderPermission[]
|
|
207
|
+
resourceKind?: WorkspaceResourceKindEnum[]
|
|
190
208
|
}
|
|
191
209
|
|
|
192
210
|
export type ListFolderTreeRequest = {
|
|
@@ -287,6 +305,7 @@ export type ResourceInfo = {
|
|
|
287
305
|
resourceType?: string
|
|
288
306
|
gproduct?: string
|
|
289
307
|
resourceScope?: string
|
|
308
|
+
bound?: boolean
|
|
290
309
|
}
|
|
291
310
|
|
|
292
311
|
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
|
+
}
|