@daocloud-proto/ghippo 0.10.3-temp → 0.10.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/currentuser.pb.ts +1 -37
- package/v1alpha1/workspace.pb.ts +6 -27
package/package.json
CHANGED
|
@@ -5,42 +5,6 @@
|
|
|
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
|
-
|
|
44
8
|
export type UpdateEmailRequest = {
|
|
45
9
|
email?: string
|
|
46
10
|
}
|
|
@@ -115,7 +79,7 @@ export type GetGlobalPermissionsRequest = {
|
|
|
115
79
|
}
|
|
116
80
|
|
|
117
81
|
export type GetGlobalPermissionsResponse = {
|
|
118
|
-
permissions?:
|
|
82
|
+
permissions?: string[]
|
|
119
83
|
}
|
|
120
84
|
|
|
121
85
|
export class Account {
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -6,21 +6,6 @@
|
|
|
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
|
-
|
|
24
9
|
export enum QuotaType {
|
|
25
10
|
requestsCpu = "requestsCpu",
|
|
26
11
|
limitsCpu = "limitsCpu",
|
|
@@ -186,7 +171,10 @@ export type FolderTree = {
|
|
|
186
171
|
isWorkspace?: boolean
|
|
187
172
|
parentId?: number
|
|
188
173
|
children?: FolderTree[]
|
|
189
|
-
|
|
174
|
+
editable?: boolean
|
|
175
|
+
visible?: boolean
|
|
176
|
+
creatable?: boolean
|
|
177
|
+
deletable?: boolean
|
|
190
178
|
}
|
|
191
179
|
|
|
192
180
|
export type ListFolderTreeRequest = {
|
|
@@ -389,6 +377,7 @@ export type User = {
|
|
|
389
377
|
source?: string
|
|
390
378
|
enabled?: boolean
|
|
391
379
|
canAuthorize?: boolean
|
|
380
|
+
authorized?: boolean
|
|
392
381
|
}
|
|
393
382
|
|
|
394
383
|
export type FolderListGroupsRequest = {
|
|
@@ -410,14 +399,7 @@ export type Group = {
|
|
|
410
399
|
description?: string
|
|
411
400
|
createdAt?: string
|
|
412
401
|
canAuthorize?: boolean
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
export type FolderListPermissionsRequest = {
|
|
416
|
-
folderId?: number
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
export type FolderListPermissionsResponse = {
|
|
420
|
-
permissions?: FolderPermission[]
|
|
402
|
+
authorized?: boolean
|
|
421
403
|
}
|
|
422
404
|
|
|
423
405
|
export class Workspace {
|
|
@@ -511,7 +493,4 @@ export class Workspace {
|
|
|
511
493
|
static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
|
|
512
494
|
return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
513
495
|
}
|
|
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
|
-
}
|
|
517
496
|
}
|