@daocloud-proto/ghippo 0.11.2 → 0.12.0-dev-2
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/currentuser.pb.ts +1 -0
- package/v1alpha1/idp.pb.ts +7 -7
- package/v1alpha1/workspace.pb.ts +0 -15
- package/v1alpha2/auditv2.pb.ts +22 -0
package/package.json
CHANGED
package/v1alpha1/idp.pb.ts
CHANGED
|
@@ -10,18 +10,18 @@ export enum ProviderType {
|
|
|
10
10
|
oidc = "oidc",
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export enum
|
|
13
|
+
export enum ClientAuthentications {
|
|
14
14
|
client_secret_post = "client_secret_post",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
client_secret_basic = "client_secret_basic",
|
|
16
|
+
client_secret_jwt = "client_secret_jwt",
|
|
17
|
+
private_key_jwt = "private_key_jwt",
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type CreateIDPRequest = {
|
|
21
21
|
displayName?: string
|
|
22
22
|
clientId?: string
|
|
23
23
|
clientSecret?: string
|
|
24
|
-
|
|
24
|
+
clientAuthentications?: ClientAuthentications
|
|
25
25
|
providerId?: ProviderType
|
|
26
26
|
authorizationUrl?: string
|
|
27
27
|
userInfoUrl?: string
|
|
@@ -40,7 +40,7 @@ export type GetIDPResponse = {
|
|
|
40
40
|
displayName?: string
|
|
41
41
|
clientId?: string
|
|
42
42
|
clientSecret?: string
|
|
43
|
-
|
|
43
|
+
clientAuthentications?: ClientAuthentications
|
|
44
44
|
providerId?: ProviderType
|
|
45
45
|
authorizationUrl?: string
|
|
46
46
|
userInfoUrl?: string
|
|
@@ -66,7 +66,7 @@ export type UpdateIDPRequest = {
|
|
|
66
66
|
displayName?: string
|
|
67
67
|
clientId?: string
|
|
68
68
|
clientSecret?: string
|
|
69
|
-
|
|
69
|
+
clientAuthentications?: ClientAuthentications
|
|
70
70
|
providerId?: ProviderType
|
|
71
71
|
authorizationUrl?: string
|
|
72
72
|
userInfoUrl?: string
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -78,18 +78,6 @@ export type WorkspacesResourceInfo = {
|
|
|
78
78
|
module?: string
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export type ListResourcesRequest = {
|
|
82
|
-
page?: number
|
|
83
|
-
pageSize?: number
|
|
84
|
-
resourceName?: string
|
|
85
|
-
resourceType?: string
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export type ListResourcesResponse = {
|
|
89
|
-
items?: ResourceInfo[]
|
|
90
|
-
pagination?: Pagination
|
|
91
|
-
}
|
|
92
|
-
|
|
93
81
|
export type ListExclusiveResourcesByWorkspaceRequest = {
|
|
94
82
|
page?: number
|
|
95
83
|
pageSize?: number
|
|
@@ -471,9 +459,6 @@ export class Workspace {
|
|
|
471
459
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
472
460
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
473
461
|
}
|
|
474
|
-
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
475
|
-
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
476
|
-
}
|
|
477
462
|
static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
|
|
478
463
|
return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
479
464
|
}
|
package/v1alpha2/auditv2.pb.ts
CHANGED
|
@@ -11,8 +11,30 @@ export type ExportAuditRequest = {
|
|
|
11
11
|
end?: string
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export type ClearAuditsRequest = {
|
|
15
|
+
isKube?: boolean
|
|
16
|
+
days?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ClearAuditsResponse = {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type SetAutoClearAuditsRequest = {
|
|
23
|
+
isKube?: boolean
|
|
24
|
+
days?: number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type SetAutoClearAuditsResponse = {
|
|
28
|
+
}
|
|
29
|
+
|
|
14
30
|
export class AuditV1alpha2 {
|
|
15
31
|
static ExportAudit(req: ExportAuditRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
16
32
|
return fm.fetchReq<ExportAuditRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha2/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
17
33
|
}
|
|
34
|
+
static ClearAudits(req: ClearAuditsRequest, initReq?: fm.InitReq): Promise<ClearAuditsResponse> {
|
|
35
|
+
return fm.fetchReq<ClearAuditsRequest, ClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
36
|
+
}
|
|
37
|
+
static SetAutoClearAudits(req: SetAutoClearAuditsRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditsResponse> {
|
|
38
|
+
return fm.fetchReq<SetAutoClearAuditsRequest, SetAutoClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
39
|
+
}
|
|
18
40
|
}
|