@daocloud-proto/ghippo 0.10.2 → 0.10.3-temp
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 +37 -1
- package/v1alpha1/workspace.pb.ts +27 -4
package/package.json
CHANGED
|
@@ -5,6 +5,42 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
|
+
|
|
9
|
+
export enum GlobalPermission {
|
|
10
|
+
Unknown = "Unknown",
|
|
11
|
+
ListUser = "ListUser",
|
|
12
|
+
CreateUser = "CreateUser",
|
|
13
|
+
UpdateUser = "UpdateUser",
|
|
14
|
+
DeleteUser = "DeleteUser",
|
|
15
|
+
AuthorizeUser = "AuthorizeUser",
|
|
16
|
+
ListGroup = "ListGroup",
|
|
17
|
+
CreateGroup = "CreateGroup",
|
|
18
|
+
UpdateGroup = "UpdateGroup",
|
|
19
|
+
DeleteGroup = "DeleteGroup",
|
|
20
|
+
UpdateGroupUser = "UpdateGroupUser",
|
|
21
|
+
AuthorizeGroup = "AuthorizeGroup",
|
|
22
|
+
GetRole = "GetRole",
|
|
23
|
+
GetLdap = "GetLdap",
|
|
24
|
+
CreateLdap = "CreateLdap",
|
|
25
|
+
UpdateLdap = "UpdateLdap",
|
|
26
|
+
DeleteLdap = "DeleteLdap",
|
|
27
|
+
GetIdp = "GetIdp",
|
|
28
|
+
CreateIdp = "CreateIdp",
|
|
29
|
+
UpdateIdp = "UpdateIdp",
|
|
30
|
+
DeleteIdp = "DeleteIdp",
|
|
31
|
+
GetAudit = "GetAudit",
|
|
32
|
+
DeleteAudit = "DeleteAudit",
|
|
33
|
+
GetSecurityPolicy = "GetSecurityPolicy",
|
|
34
|
+
UpdateSecurityPolicy = "UpdateSecurityPolicy",
|
|
35
|
+
GetSMTP = "GetSMTP",
|
|
36
|
+
UpdateSMTP = "UpdateSMTP",
|
|
37
|
+
GetAppearance = "GetAppearance",
|
|
38
|
+
UpdateAppearance = "UpdateAppearance",
|
|
39
|
+
GetLicense = "GetLicense",
|
|
40
|
+
UpdateLicense = "UpdateLicense",
|
|
41
|
+
DeleteLicense = "DeleteLicense",
|
|
42
|
+
}
|
|
43
|
+
|
|
8
44
|
export type UpdateEmailRequest = {
|
|
9
45
|
email?: string
|
|
10
46
|
}
|
|
@@ -79,7 +115,7 @@ export type GetGlobalPermissionsRequest = {
|
|
|
79
115
|
}
|
|
80
116
|
|
|
81
117
|
export type GetGlobalPermissionsResponse = {
|
|
82
|
-
permissions?:
|
|
118
|
+
permissions?: GlobalPermission[]
|
|
83
119
|
}
|
|
84
120
|
|
|
85
121
|
export class Account {
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
|
|
9
|
+
export enum FolderPermission {
|
|
10
|
+
Unknown = "Unknown",
|
|
11
|
+
CreateFolder = "CreateFolder",
|
|
12
|
+
UpdateFolder = "UpdateFolder",
|
|
13
|
+
GetFolder = "GetFolder",
|
|
14
|
+
DeleteFolder = "DeleteFolder",
|
|
15
|
+
AuthorizeFolder = "AuthorizeFolder",
|
|
16
|
+
CreateWorkspace = "CreateWorkspace",
|
|
17
|
+
UpdateWorkspace = "UpdateWorkspace",
|
|
18
|
+
GetWorkspace = "GetWorkspace",
|
|
19
|
+
DeleteWorkspace = "DeleteWorkspace",
|
|
20
|
+
AuthorizeWorkspace = "AuthorizeWorkspace",
|
|
21
|
+
ResourceBindingWorkspace = "ResourceBindingWorkspace",
|
|
22
|
+
}
|
|
23
|
+
|
|
9
24
|
export enum QuotaType {
|
|
10
25
|
requestsCpu = "requestsCpu",
|
|
11
26
|
limitsCpu = "limitsCpu",
|
|
@@ -171,10 +186,7 @@ export type FolderTree = {
|
|
|
171
186
|
isWorkspace?: boolean
|
|
172
187
|
parentId?: number
|
|
173
188
|
children?: FolderTree[]
|
|
174
|
-
|
|
175
|
-
visible?: boolean
|
|
176
|
-
creatable?: boolean
|
|
177
|
-
deletable?: boolean
|
|
189
|
+
permissions?: FolderPermission[]
|
|
178
190
|
}
|
|
179
191
|
|
|
180
192
|
export type ListFolderTreeRequest = {
|
|
@@ -400,6 +412,14 @@ export type Group = {
|
|
|
400
412
|
canAuthorize?: boolean
|
|
401
413
|
}
|
|
402
414
|
|
|
415
|
+
export type FolderListPermissionsRequest = {
|
|
416
|
+
folderId?: number
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export type FolderListPermissionsResponse = {
|
|
420
|
+
permissions?: FolderPermission[]
|
|
421
|
+
}
|
|
422
|
+
|
|
403
423
|
export class Workspace {
|
|
404
424
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
405
425
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -491,4 +511,7 @@ export class Workspace {
|
|
|
491
511
|
static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
|
|
492
512
|
return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
493
513
|
}
|
|
514
|
+
static FolderListPermissions(req: FolderListPermissionsRequest, initReq?: fm.InitReq): Promise<FolderListPermissionsResponse> {
|
|
515
|
+
return fm.fetchReq<FolderListPermissionsRequest, FolderListPermissionsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/permissions?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
516
|
+
}
|
|
494
517
|
}
|