@daocloud-proto/ghippo 0.6.26 → 0.7.0
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/about.pb.ts +2 -2
- package/v1alpha1/gproduct.pb.ts +1 -1
- package/v1alpha1/gproductlicense.pb.ts +2 -2
- package/v1alpha1/group.pb.ts +21 -21
- package/v1alpha1/login.pb.ts +4 -4
- package/v1alpha1/loginpage.pb.ts +4 -4
- package/v1alpha1/message.pb.ts +3 -3
- package/v1alpha1/productnav.pb.ts +1 -1
- package/v1alpha1/publish.pb.ts +2 -2
- package/v1alpha1/role.pb.ts +9 -9
- package/v1alpha1/smtpsetting.pb.ts +3 -3
- package/v1alpha1/topnav.pb.ts +6 -6
- package/v1alpha1/user.pb.ts +16 -16
- package/v1alpha1/workspace.pb.ts +58 -58
package/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type Developer = {
|
|
|
19
19
|
|
|
20
20
|
export type ListOpenSourcesRequest = {
|
|
21
21
|
page?: number
|
|
22
|
-
|
|
22
|
+
pageSize?: number
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export type ListOpenSourcesResponse = {
|
|
@@ -35,7 +35,7 @@ export type OpenSource = {
|
|
|
35
35
|
export type Pagination = {
|
|
36
36
|
total?: number
|
|
37
37
|
page?: number
|
|
38
|
-
|
|
38
|
+
pageSize?: number
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export type ListGProductVersionsRequest = {
|
package/v1alpha1/gproduct.pb.ts
CHANGED
|
@@ -53,10 +53,10 @@ export type GetGProductLicensesESNResponse = {
|
|
|
53
53
|
export type GProductLicense = {
|
|
54
54
|
name?: string
|
|
55
55
|
alias?: string
|
|
56
|
-
|
|
56
|
+
productName?: string
|
|
57
57
|
tier?: string
|
|
58
58
|
status?: string
|
|
59
|
-
|
|
59
|
+
expiredAt?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export class GProducts {
|
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type CreateGroupResponse = {
|
|
|
17
17
|
export type ListGroupsRequest = {
|
|
18
18
|
search?: string
|
|
19
19
|
page?: number
|
|
20
|
-
|
|
20
|
+
pageSize?: number
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type ListGroupsResponse = {
|
|
@@ -27,16 +27,16 @@ export type ListGroupsResponse = {
|
|
|
27
27
|
|
|
28
28
|
export type Pagination = {
|
|
29
29
|
page?: number
|
|
30
|
-
|
|
30
|
+
pageSize?: number
|
|
31
31
|
total?: number
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export type GroupInfo = {
|
|
35
35
|
id?: string
|
|
36
36
|
name?: string
|
|
37
|
-
|
|
37
|
+
userCount?: number
|
|
38
38
|
description?: string
|
|
39
|
-
|
|
39
|
+
createdAt?: string
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export type GroupRequest = {
|
|
@@ -54,7 +54,7 @@ export type GroupMembersRequest = {
|
|
|
54
54
|
id?: string
|
|
55
55
|
search?: string
|
|
56
56
|
page?: number
|
|
57
|
-
|
|
57
|
+
pageSize?: number
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export type GroupMembersResponse = {
|
|
@@ -67,13 +67,13 @@ export type User = {
|
|
|
67
67
|
name?: string
|
|
68
68
|
email?: string
|
|
69
69
|
description?: string
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
createdAt?: string
|
|
71
|
+
updatedAt?: string
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export type AddUserToGroupRequest = {
|
|
75
75
|
id?: string
|
|
76
|
-
|
|
76
|
+
userId?: string
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export type AddUserToGroupResponse = {
|
|
@@ -81,7 +81,7 @@ export type AddUserToGroupResponse = {
|
|
|
81
81
|
|
|
82
82
|
export type DeleteUserFromGroupRequest = {
|
|
83
83
|
id?: string
|
|
84
|
-
|
|
84
|
+
userId?: string
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export type DeleteUserFromGroupResponse = {
|
|
@@ -100,14 +100,14 @@ export type ListGroupRolesRequest = {
|
|
|
100
100
|
id?: string
|
|
101
101
|
search?: string
|
|
102
102
|
page?: number
|
|
103
|
-
|
|
103
|
+
pageSize?: number
|
|
104
104
|
type?: string
|
|
105
105
|
authorized?: boolean
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export type ListGroupRolesResponse = {
|
|
109
109
|
pagination?: Pagination
|
|
110
|
-
|
|
110
|
+
authorizedCount?: number
|
|
111
111
|
items?: RoleInfo[]
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -115,7 +115,7 @@ export type ListGroupSubjectRequest = {
|
|
|
115
115
|
id?: string
|
|
116
116
|
search?: string
|
|
117
117
|
page?: number
|
|
118
|
-
|
|
118
|
+
pageSize?: number
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export type ListGroupSubjectResponse = {
|
|
@@ -125,16 +125,16 @@ export type ListGroupSubjectResponse = {
|
|
|
125
125
|
|
|
126
126
|
export type GroupSubject = {
|
|
127
127
|
id?: string
|
|
128
|
-
|
|
128
|
+
roleId?: string
|
|
129
129
|
type?: string
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
roleName?: string
|
|
131
|
+
subjectName?: string
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export type UpdateGroupRolesRequest = {
|
|
135
135
|
id?: string
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
addRoles?: string[]
|
|
137
|
+
removeRoles?: string[]
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
export type UpdateGroupRolesResponse = {
|
|
@@ -146,8 +146,8 @@ export type RoleInfo = {
|
|
|
146
146
|
type?: string
|
|
147
147
|
description?: string
|
|
148
148
|
composite?: boolean
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
createdAt?: string
|
|
150
|
+
updatedAt?: string
|
|
151
151
|
authorized?: boolean
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -171,10 +171,10 @@ export class Group {
|
|
|
171
171
|
return fm.fetchReq<GroupMembersRequest, GroupMembersResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/members?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
172
172
|
}
|
|
173
173
|
static AddUserToGroup(req: AddUserToGroupRequest, initReq?: fm.InitReq): Promise<AddUserToGroupResponse> {
|
|
174
|
-
return fm.fetchReq<AddUserToGroupRequest, AddUserToGroupResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/members/${req["
|
|
174
|
+
return fm.fetchReq<AddUserToGroupRequest, AddUserToGroupResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/members/${req["userId"]}`, {...initReq, method: "POST"})
|
|
175
175
|
}
|
|
176
176
|
static DeleteUserFromGroup(req: DeleteUserFromGroupRequest, initReq?: fm.InitReq): Promise<DeleteUserFromGroupResponse> {
|
|
177
|
-
return fm.fetchReq<DeleteUserFromGroupRequest, DeleteUserFromGroupResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/members/${req["
|
|
177
|
+
return fm.fetchReq<DeleteUserFromGroupRequest, DeleteUserFromGroupResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/members/${req["userId"]}`, {...initReq, method: "DELETE"})
|
|
178
178
|
}
|
|
179
179
|
static ListGroupRoles(req: ListGroupRolesRequest, initReq?: fm.InitReq): Promise<ListGroupRolesResponse> {
|
|
180
180
|
return fm.fetchReq<ListGroupRolesRequest, ListGroupRolesResponse>(`/apis/ghippo.io/v1alpha1/groups/${req["id"]}/roles?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
package/v1alpha1/login.pb.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type LoginGetRequest = {
|
|
9
|
-
|
|
9
|
+
callbackUrl?: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export type LoginGetResponse = {
|
|
@@ -15,12 +15,12 @@ export type LoginGetResponse = {
|
|
|
15
15
|
export type LoginPostRequest = {
|
|
16
16
|
code?: string
|
|
17
17
|
state?: string
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
sessionState?: string
|
|
19
|
+
callbackUrl?: string
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export type LoginPostResponse = {
|
|
23
|
-
|
|
23
|
+
idToken?: string
|
|
24
24
|
username?: string
|
|
25
25
|
}
|
|
26
26
|
|
package/v1alpha1/loginpage.pb.ts
CHANGED
|
@@ -10,9 +10,9 @@ export type GetLoginPageInfoRequest = {
|
|
|
10
10
|
|
|
11
11
|
export type GetLoginPageInfoResponse = {
|
|
12
12
|
version?: number
|
|
13
|
-
|
|
13
|
+
platformName?: string
|
|
14
14
|
copyright?: string
|
|
15
|
-
|
|
15
|
+
tabName?: string
|
|
16
16
|
icon?: string
|
|
17
17
|
favicon?: string
|
|
18
18
|
}
|
|
@@ -25,9 +25,9 @@ export type GetLoginPageVersionResponse = {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type UpdateLoginPageInfoRequest = {
|
|
28
|
-
|
|
28
|
+
platformName?: string
|
|
29
29
|
copyright?: string
|
|
30
|
-
|
|
30
|
+
tabName?: string
|
|
31
31
|
icon?: string
|
|
32
32
|
favicon?: string
|
|
33
33
|
}
|
package/v1alpha1/message.pb.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type ListMessagesRequest = {
|
|
|
17
17
|
search?: string
|
|
18
18
|
read?: ReadType
|
|
19
19
|
page?: number
|
|
20
|
-
|
|
20
|
+
pageSize?: number
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type ListMessagesResponse = {
|
|
@@ -28,7 +28,7 @@ export type ListMessagesResponse = {
|
|
|
28
28
|
export type Pagination = {
|
|
29
29
|
total?: number
|
|
30
30
|
page?: number
|
|
31
|
-
|
|
31
|
+
pageSize?: number
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export type MessageInfo = {
|
|
@@ -37,7 +37,7 @@ export type MessageInfo = {
|
|
|
37
37
|
subject?: string
|
|
38
38
|
message?: string
|
|
39
39
|
read?: ReadType
|
|
40
|
-
|
|
40
|
+
createdAt?: string
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export type GetMessageRequest = {
|
package/v1alpha1/publish.pb.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type PublishMessageRequest = {
|
|
9
|
-
|
|
9
|
+
userId?: string
|
|
10
10
|
type?: string
|
|
11
11
|
subject?: string
|
|
12
12
|
message?: string
|
|
13
|
-
|
|
13
|
+
messageUid?: string
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export type PublishMessageResponse = {
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -14,7 +14,7 @@ export enum globalRoleType {
|
|
|
14
14
|
export type Pagination = {
|
|
15
15
|
total?: number
|
|
16
16
|
page?: number
|
|
17
|
-
|
|
17
|
+
pageSize?: number
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type GlobalRoleInfo = {
|
|
@@ -23,13 +23,13 @@ export type GlobalRoleInfo = {
|
|
|
23
23
|
type?: globalRoleType
|
|
24
24
|
description?: string
|
|
25
25
|
composite?: boolean
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
createdAt?: string
|
|
27
|
+
updatedAt?: string
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export type ListGlobalRolesRequest = {
|
|
31
31
|
page?: number
|
|
32
|
-
|
|
32
|
+
pageSize?: number
|
|
33
33
|
search?: string
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -43,14 +43,14 @@ export type WorkspaceRoleInfo = {
|
|
|
43
43
|
name?: string
|
|
44
44
|
description?: string
|
|
45
45
|
type?: string
|
|
46
|
-
|
|
46
|
+
authScope?: string
|
|
47
47
|
gproduct?: string
|
|
48
48
|
permissions?: string
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export type ListWorkspaceRolesRequest = {
|
|
52
52
|
page?: number
|
|
53
|
-
|
|
53
|
+
pageSize?: number
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export type ListWorkspaceRolesResponse = {
|
|
@@ -76,7 +76,7 @@ export type UpdateGlobalRoleResponse = {
|
|
|
76
76
|
|
|
77
77
|
export type ListGlobalRoleSubjectsRequest = {
|
|
78
78
|
page?: number
|
|
79
|
-
|
|
79
|
+
pageSize?: number
|
|
80
80
|
id?: string
|
|
81
81
|
search?: string
|
|
82
82
|
}
|
|
@@ -88,9 +88,9 @@ export type ListGlobalRoleSubjectsResponse = {
|
|
|
88
88
|
|
|
89
89
|
export type Subject = {
|
|
90
90
|
id?: string
|
|
91
|
-
|
|
91
|
+
roleId?: string
|
|
92
92
|
type?: string
|
|
93
|
-
|
|
93
|
+
subjectName?: string
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export class Role {
|
|
@@ -12,7 +12,7 @@ export type SetSmtpServerRequest = {
|
|
|
12
12
|
from?: string
|
|
13
13
|
user?: string
|
|
14
14
|
password?: string
|
|
15
|
-
|
|
15
|
+
fromDisplayName?: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export type SetSmtpServerResponse = {
|
|
@@ -28,7 +28,7 @@ export type GetSmtpServerResponse = {
|
|
|
28
28
|
from?: string
|
|
29
29
|
user?: string
|
|
30
30
|
password?: string
|
|
31
|
-
|
|
31
|
+
fromDisplayName?: string
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export type SmtpConnTestRequest = {
|
|
@@ -38,7 +38,7 @@ export type SmtpConnTestRequest = {
|
|
|
38
38
|
from?: string
|
|
39
39
|
user?: string
|
|
40
40
|
password?: string
|
|
41
|
-
|
|
41
|
+
fromDisplayName?: string
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export type SmtpConnTestResponse = {
|
package/v1alpha1/topnav.pb.ts
CHANGED
|
@@ -11,17 +11,17 @@ export type TopNavRequest = {
|
|
|
11
11
|
export type TopNavResponse = {
|
|
12
12
|
icon?: string
|
|
13
13
|
favicon?: string
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
navName?: string
|
|
15
|
+
tabName?: string
|
|
16
|
+
portalUrl?: string
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type UpdateTopNavRequest = {
|
|
20
20
|
icon?: string
|
|
21
21
|
favicon?: string
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
navName?: string
|
|
23
|
+
tabName?: string
|
|
24
|
+
portalUrl?: string
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type UpdateTopNavResponse = {
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type ListUsersRequest = {
|
|
9
9
|
search?: string
|
|
10
|
-
|
|
10
|
+
pageSize?: number
|
|
11
11
|
page?: number
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ export type ListUsersResponse = {
|
|
|
18
18
|
|
|
19
19
|
export type Pagination = {
|
|
20
20
|
page?: number
|
|
21
|
-
|
|
21
|
+
pageSize?: number
|
|
22
22
|
total?: number
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -43,9 +43,9 @@ export type GetUserResponse = {
|
|
|
43
43
|
lastname?: string
|
|
44
44
|
source?: string
|
|
45
45
|
enabled?: boolean
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
createdAt?: string
|
|
47
|
+
updatedAt?: string
|
|
48
|
+
lastLoginAt?: string
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export type CreateUserRequest = {
|
|
@@ -95,7 +95,7 @@ export type ListUserGroupsRequest = {
|
|
|
95
95
|
id?: string
|
|
96
96
|
search?: string
|
|
97
97
|
page?: number
|
|
98
|
-
|
|
98
|
+
pageSize?: number
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type ListUserGroupsResponse = {
|
|
@@ -107,14 +107,14 @@ export type ListUserRolesRequest = {
|
|
|
107
107
|
id?: string
|
|
108
108
|
search?: string
|
|
109
109
|
page?: number
|
|
110
|
-
|
|
110
|
+
pageSize?: number
|
|
111
111
|
type?: string
|
|
112
112
|
authorized?: boolean
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export type ListUserRolesResponse = {
|
|
116
116
|
pagination?: Pagination
|
|
117
|
-
|
|
117
|
+
authorizedCount?: number
|
|
118
118
|
roles?: RoleInfo[]
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -124,8 +124,8 @@ export type RoleInfo = {
|
|
|
124
124
|
type?: string
|
|
125
125
|
description?: string
|
|
126
126
|
composite?: boolean
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
createdAt?: string
|
|
128
|
+
updatedAt?: string
|
|
129
129
|
authorized?: boolean
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -133,7 +133,7 @@ export type ListUserSubjectRequest = {
|
|
|
133
133
|
id?: string
|
|
134
134
|
search?: string
|
|
135
135
|
page?: number
|
|
136
|
-
|
|
136
|
+
pageSize?: number
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export type ListUserSubjectResponse = {
|
|
@@ -143,16 +143,16 @@ export type ListUserSubjectResponse = {
|
|
|
143
143
|
|
|
144
144
|
export type UserSubject = {
|
|
145
145
|
id?: string
|
|
146
|
-
|
|
146
|
+
roleId?: string
|
|
147
147
|
type?: string
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
roleName?: string
|
|
149
|
+
subjectName?: string
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export type UpdateUserRolesRequest = {
|
|
153
153
|
id?: string
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
addRoles?: string[]
|
|
155
|
+
removeRoles?: string[]
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
export type UpdateUserRolesResponse = {
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as fm from "../fetch.pb"
|
|
|
8
8
|
export type Pagination = {
|
|
9
9
|
total?: number
|
|
10
10
|
page?: number
|
|
11
|
-
|
|
11
|
+
pageSize?: number
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export type WorkspaceInfo = {
|
|
@@ -19,7 +19,7 @@ export type WorkspaceInfo = {
|
|
|
19
19
|
|
|
20
20
|
export type ListWorkspacesRequest = {
|
|
21
21
|
page?: number
|
|
22
|
-
|
|
22
|
+
pageSize?: number
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export type ListWorkspacesResponse = {
|
|
@@ -28,17 +28,17 @@ export type ListWorkspacesResponse = {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export type ResourceInfo = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
resourceName?: string
|
|
32
|
+
resourceType?: string
|
|
33
|
+
resourceScope?: string
|
|
34
34
|
gproduct?: string
|
|
35
|
-
|
|
35
|
+
workspaceId?: number
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type ListResourcesRequest = {
|
|
39
39
|
page?: number
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
pageSize?: number
|
|
41
|
+
workspaceId?: number
|
|
42
42
|
gproduct?: string
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -48,10 +48,10 @@ export type ListResourcesResponse = {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export type BindResourceToWorkspaceRequest = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
workspaceId?: number
|
|
52
|
+
resourceName?: string
|
|
53
|
+
resourceType?: string
|
|
54
|
+
resourceScope?: string
|
|
55
55
|
gproduct?: string
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -59,10 +59,10 @@ export type BindResourceToWorkspaceResponse = {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export type UnbindResourceFromWorkspaceRequest = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
workspaceId?: number
|
|
63
|
+
resourceName?: string
|
|
64
|
+
resourceType?: string
|
|
65
|
+
resourceScope?: string
|
|
66
66
|
gproduct?: string
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -72,14 +72,14 @@ export type UnbindResourceFromWorkspaceResponse = {
|
|
|
72
72
|
export type CreateWorkspaceRequest = {
|
|
73
73
|
name?: string
|
|
74
74
|
alias?: string
|
|
75
|
-
|
|
75
|
+
parentFolderId?: number
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type CreateWorkspaceResponse = {
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export type GetWorkspaceRequest = {
|
|
82
|
-
|
|
82
|
+
workspaceId?: number
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export type GetWorkspaceResponse = {
|
|
@@ -87,23 +87,23 @@ export type GetWorkspaceResponse = {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export type DeleteWorkspaceRequest = {
|
|
90
|
-
|
|
90
|
+
workspaceId?: number
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export type DeleteWorkspaceResponse = {
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export type MemberRoleWorkspaceInfo = {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
memberName?: string
|
|
98
|
+
memberType?: string
|
|
99
|
+
roleName?: string
|
|
100
|
+
workspaceId?: number
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export type ListMembersRolesByWorkspaceRequest = {
|
|
104
104
|
page?: number
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
pageSize?: number
|
|
106
|
+
workspaceId?: number
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export type ListMembersRolesByWorkspaceResponse = {
|
|
@@ -119,7 +119,7 @@ export type FolderInfo = {
|
|
|
119
119
|
|
|
120
120
|
export type ListFoldersRequest = {
|
|
121
121
|
page?: number
|
|
122
|
-
|
|
122
|
+
pageSize?: number
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
export type ListFoldersResponse = {
|
|
@@ -130,14 +130,14 @@ export type ListFoldersResponse = {
|
|
|
130
130
|
export type CreateFolderRequest = {
|
|
131
131
|
name?: string
|
|
132
132
|
alias?: string
|
|
133
|
-
|
|
133
|
+
parentFolderId?: number
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export type CreateFolderResponse = {
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export type GetFolderRequest = {
|
|
140
|
-
|
|
140
|
+
folderId?: number
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export type GetFolderResponse = {
|
|
@@ -145,14 +145,14 @@ export type GetFolderResponse = {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export type DeleteFolderRequest = {
|
|
148
|
-
|
|
148
|
+
folderId?: number
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
export type DeleteFolderResponse = {
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export type UpdateFolderRequest = {
|
|
155
|
-
|
|
155
|
+
folderId?: number
|
|
156
156
|
alias?: string
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -160,39 +160,39 @@ export type UpdateFolderResponse = {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
export type AuthorizeRequest = {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
folderId?: number
|
|
164
|
+
roleName?: string
|
|
165
|
+
memberName?: string
|
|
166
|
+
memberType?: string
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export type AuthorizeResponse = {
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
export type DeauthorizeRequest = {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
folderId?: number
|
|
174
|
+
roleName?: string
|
|
175
|
+
memberName?: string
|
|
176
|
+
memberType?: string
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
export type DeauthorizeResponse = {
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export type MemberRoleFolderInfo = {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
memberName?: string
|
|
184
|
+
memberType?: string
|
|
185
|
+
roleName?: string
|
|
186
|
+
folderId?: number
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
export type ListMembersRolesRequest = {
|
|
190
190
|
page?: number
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
191
|
+
pageSize?: number
|
|
192
|
+
folderId?: number
|
|
193
|
+
memberName?: string
|
|
194
|
+
memberType?: string
|
|
195
|
+
roleName?: string
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export type ListMembersRolesResponse = {
|
|
@@ -202,7 +202,7 @@ export type ListMembersRolesResponse = {
|
|
|
202
202
|
|
|
203
203
|
export type ListMembersRolesResourcesRequest = {
|
|
204
204
|
page?: number
|
|
205
|
-
|
|
205
|
+
pageSize?: number
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
export type ListMembersRolesResourcesResponse = {
|
|
@@ -224,7 +224,7 @@ export type ProductResourceInfo = {
|
|
|
224
224
|
|
|
225
225
|
export type ListProductResourcesRequest = {
|
|
226
226
|
page?: number
|
|
227
|
-
|
|
227
|
+
pageSize?: number
|
|
228
228
|
name?: string
|
|
229
229
|
parent?: boolean
|
|
230
230
|
type?: string
|
|
@@ -265,13 +265,13 @@ export class Workspace {
|
|
|
265
265
|
return fm.fetchReq<CreateWorkspaceRequest, CreateWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
266
266
|
}
|
|
267
267
|
static GetWorkspace(req: GetWorkspaceRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResponse> {
|
|
268
|
-
return fm.fetchReq<GetWorkspaceRequest, GetWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["
|
|
268
|
+
return fm.fetchReq<GetWorkspaceRequest, GetWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
269
269
|
}
|
|
270
270
|
static DeleteWorkspace(req: DeleteWorkspaceRequest, initReq?: fm.InitReq): Promise<DeleteWorkspaceResponse> {
|
|
271
|
-
return fm.fetchReq<DeleteWorkspaceRequest, DeleteWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["
|
|
271
|
+
return fm.fetchReq<DeleteWorkspaceRequest, DeleteWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}`, {...initReq, method: "DELETE"})
|
|
272
272
|
}
|
|
273
273
|
static ListMembersRolesByWorkspace(req: ListMembersRolesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByWorkspaceResponse> {
|
|
274
|
-
return fm.fetchReq<ListMembersRolesByWorkspaceRequest, ListMembersRolesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["
|
|
274
|
+
return fm.fetchReq<ListMembersRolesByWorkspaceRequest, ListMembersRolesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/members-roles?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
275
275
|
}
|
|
276
276
|
static ListFolders(req: ListFoldersRequest, initReq?: fm.InitReq): Promise<ListFoldersResponse> {
|
|
277
277
|
return fm.fetchReq<ListFoldersRequest, ListFoldersResponse>(`/apis/ghippo.io/v1alpha1/folders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -280,22 +280,22 @@ export class Workspace {
|
|
|
280
280
|
return fm.fetchReq<CreateFolderRequest, CreateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
281
281
|
}
|
|
282
282
|
static GetFolder(req: GetFolderRequest, initReq?: fm.InitReq): Promise<GetFolderResponse> {
|
|
283
|
-
return fm.fetchReq<GetFolderRequest, GetFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
283
|
+
return fm.fetchReq<GetFolderRequest, GetFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
284
284
|
}
|
|
285
285
|
static DeleteFolder(req: DeleteFolderRequest, initReq?: fm.InitReq): Promise<DeleteFolderResponse> {
|
|
286
|
-
return fm.fetchReq<DeleteFolderRequest, DeleteFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
286
|
+
return fm.fetchReq<DeleteFolderRequest, DeleteFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}`, {...initReq, method: "DELETE"})
|
|
287
287
|
}
|
|
288
288
|
static UpdateFolder(req: UpdateFolderRequest, initReq?: fm.InitReq): Promise<UpdateFolderResponse> {
|
|
289
|
-
return fm.fetchReq<UpdateFolderRequest, UpdateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
289
|
+
return fm.fetchReq<UpdateFolderRequest, UpdateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
290
290
|
}
|
|
291
291
|
static Authorize(req: AuthorizeRequest, initReq?: fm.InitReq): Promise<AuthorizeResponse> {
|
|
292
|
-
return fm.fetchReq<AuthorizeRequest, AuthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
292
|
+
return fm.fetchReq<AuthorizeRequest, AuthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/authorize`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
293
293
|
}
|
|
294
294
|
static Deauthorize(req: DeauthorizeRequest, initReq?: fm.InitReq): Promise<DeauthorizeResponse> {
|
|
295
|
-
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
295
|
+
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/deauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
296
296
|
}
|
|
297
297
|
static ListMembersRoles(req: ListMembersRolesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResponse> {
|
|
298
|
-
return fm.fetchReq<ListMembersRolesRequest, ListMembersRolesResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["
|
|
298
|
+
return fm.fetchReq<ListMembersRolesRequest, ListMembersRolesResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
299
299
|
}
|
|
300
300
|
static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
|
|
301
301
|
return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|