@daocloud-proto/ghippo 0.1.0 → 0.1.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/fetch.pb.ts +109 -0
- package/package.json +6 -6
- package/v1alpha1/about.pb.ts +63 -0
- package/v1alpha1/audit.pb.ts +103 -0
- package/v1alpha1/batchaudit.pb.ts +19 -0
- package/v1alpha1/client.pb.ts +79 -0
- package/v1alpha1/currentuser.pb.ts +273 -0
- package/v1alpha1/feature_gate.pb.ts +32 -0
- package/v1alpha1/gproduct.pb.ts +28 -0
- package/v1alpha1/gproductlicense.pb.ts +109 -0
- package/v1alpha1/group.pb.ts +187 -0
- package/v1alpha1/idp.pb.ts +131 -0
- package/v1alpha1/keycloakevent.pb.ts +37 -0
- package/v1alpha1/login.pb.ts +82 -0
- package/v1alpha1/loginpage.pb.ts +62 -0
- package/v1alpha1/message.pb.ts +114 -0
- package/v1alpha1/oauth2.pb.ts +76 -0
- package/v1alpha1/oidc.pb.ts +100 -0
- package/v1alpha1/openapi.pb.ts +48 -0
- package/{productnav.pb.ts → v1alpha1/productnav.pb.ts} +9 -4
- package/v1alpha1/publish.pb.ts +23 -0
- package/v1alpha1/recordfiling.pb.ts +58 -0
- package/v1alpha1/role.pb.ts +318 -0
- package/v1alpha1/securitypolicy.pb.ts +201 -0
- package/v1alpha1/sms.pb.ts +33 -0
- package/v1alpha1/smtpsetting.pb.ts +58 -0
- package/v1alpha1/theme.pb.ts +121 -0
- package/v1alpha1/topnav.pb.ts +42 -0
- package/v1alpha1/user.pb.ts +325 -0
- package/v1alpha1/webhook.pb.ts +180 -0
- package/v1alpha1/workspace.pb.ts +629 -0
- package/v1alpha2/audit.pb.ts +7 -0
- package/v1alpha2/auditv2.pb.ts +58 -0
- package/v1alpha2/ldap.pb.ts +253 -0
- package/v1alpha3/audit.pb.ts +225 -0
- package/topnav.pb.ts +0 -24
- package/workspace.pb.ts +0 -21
|
@@ -0,0 +1,318 @@
|
|
|
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
|
+
|
|
9
|
+
export enum AuthScope {
|
|
10
|
+
platform = "platform",
|
|
11
|
+
folder = "folder",
|
|
12
|
+
workspace = "workspace",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum QueryAuthScope {
|
|
16
|
+
query_all_auth_scope = "query_all_auth_scope",
|
|
17
|
+
query_platform = "query_platform",
|
|
18
|
+
query_folder = "query_folder",
|
|
19
|
+
query_workspace = "query_workspace",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum globalRoleType {
|
|
23
|
+
system = "system",
|
|
24
|
+
custom = "custom",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum QueryRoleType {
|
|
28
|
+
query_all_role_type = "query_all_role_type",
|
|
29
|
+
query_system = "query_system",
|
|
30
|
+
query_custom = "query_custom",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ListAllPermissionsRequest = {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ListAllPermissionsResponse = {
|
|
37
|
+
gproductPerms?: GProductAllPermissions[]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GProduct = {
|
|
41
|
+
gproduct?: string
|
|
42
|
+
localizedName?: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GProductAllPermissions = {
|
|
46
|
+
gproduct?: GProduct
|
|
47
|
+
authscopePerms?: AuthScopeAllPermissions[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type AuthScopeAllPermissions = {
|
|
51
|
+
authScope?: AuthScope
|
|
52
|
+
categoryPerms?: CategoryAllPermissions[]
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Category = {
|
|
56
|
+
name?: string
|
|
57
|
+
localizedName?: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type CategoryAllPermissions = {
|
|
61
|
+
category?: Category
|
|
62
|
+
resourcePerms?: ResourceAllPermissions[]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ResourceType = {
|
|
66
|
+
name?: string
|
|
67
|
+
localizedName?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type ResourceAllPermissions = {
|
|
71
|
+
resourceType?: ResourceType
|
|
72
|
+
actions?: ResourceActionWithDependency[]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ResourceAction = {
|
|
76
|
+
name?: string
|
|
77
|
+
localizedName?: string
|
|
78
|
+
tips?: string[]
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ResourceActionWithDependency = {
|
|
82
|
+
action?: ResourceAction
|
|
83
|
+
dependPerms?: Permission[]
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type Permission = {
|
|
87
|
+
action?: string
|
|
88
|
+
resourceType?: string
|
|
89
|
+
gproduct?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type RoleInfo = {
|
|
93
|
+
name?: string
|
|
94
|
+
type?: globalRoleType
|
|
95
|
+
description?: string
|
|
96
|
+
scope?: AuthScope
|
|
97
|
+
createdAt?: string
|
|
98
|
+
updatedAt?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ListRolesRequest = {
|
|
102
|
+
search?: string
|
|
103
|
+
pageSize?: number
|
|
104
|
+
page?: number
|
|
105
|
+
roleType?: QueryRoleType
|
|
106
|
+
scope?: QueryAuthScope
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type ListRolesResponse = {
|
|
110
|
+
items?: RoleInfo[]
|
|
111
|
+
pagination?: Pagination
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type Pagination = {
|
|
115
|
+
total?: number
|
|
116
|
+
page?: number
|
|
117
|
+
pageSize?: number
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type GetRoleRequest = {
|
|
121
|
+
name?: string
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type GetRoleResponse = {
|
|
125
|
+
name?: string
|
|
126
|
+
type?: globalRoleType
|
|
127
|
+
description?: string
|
|
128
|
+
scope?: AuthScope
|
|
129
|
+
createdAt?: string
|
|
130
|
+
updatedAt?: string
|
|
131
|
+
gproductPerms?: GProductPermissions[]
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type GProductPermissions = {
|
|
135
|
+
gproduct?: GProduct
|
|
136
|
+
categoryPerms?: CategoryPermissions[]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type CategoryPermissions = {
|
|
140
|
+
category?: Category
|
|
141
|
+
resourcePerms?: ResourcePermissions[]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type ResourcePermissions = {
|
|
145
|
+
resourceType?: ResourceType
|
|
146
|
+
actions?: ResourceAction[]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type CreateRoleRequest = {
|
|
150
|
+
name?: string
|
|
151
|
+
description?: string
|
|
152
|
+
scope?: AuthScope
|
|
153
|
+
perms?: Permission[]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type CreateRoleResponse = {
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type UpdateRoleRequest = {
|
|
160
|
+
name?: string
|
|
161
|
+
description?: string
|
|
162
|
+
perms?: Permission[]
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type UpdateRoleResponse = {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type DeleteRoleRequest = {
|
|
169
|
+
name?: string
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type DeleteRoleResponse = {
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type RoleName = {
|
|
176
|
+
name?: string
|
|
177
|
+
authScope?: AuthScope
|
|
178
|
+
description?: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type ListFolderRoleNamesRequest = {
|
|
182
|
+
page?: number
|
|
183
|
+
pageSize?: number
|
|
184
|
+
search?: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ListFolderRoleNamesResponse = {
|
|
188
|
+
items?: RoleName[]
|
|
189
|
+
pagination?: Pagination
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type ListWorkspaceRoleNamesRequest = {
|
|
193
|
+
page?: number
|
|
194
|
+
pageSize?: number
|
|
195
|
+
search?: string
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type ListWorkspaceRoleNamesResponse = {
|
|
199
|
+
items?: RoleName[]
|
|
200
|
+
pagination?: Pagination
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type ListMembersByPlatformRoleRequest = {
|
|
204
|
+
page?: number
|
|
205
|
+
pageSize?: number
|
|
206
|
+
name?: string
|
|
207
|
+
search?: string
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type ListMembersByPlatformRoleResponse = {
|
|
211
|
+
items?: Member[]
|
|
212
|
+
pagination?: Pagination
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type Member = {
|
|
216
|
+
id?: string
|
|
217
|
+
name?: string
|
|
218
|
+
type?: string
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type ListMembersFoldersByFolderRoleRequest = {
|
|
222
|
+
page?: number
|
|
223
|
+
pageSize?: number
|
|
224
|
+
name?: string
|
|
225
|
+
search?: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type ListMembersFoldersByFolderRoleResponse = {
|
|
229
|
+
items?: MemberFolder[]
|
|
230
|
+
pagination?: Pagination
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type MemberFolder = {
|
|
234
|
+
memberName?: string
|
|
235
|
+
memberType?: string
|
|
236
|
+
folderId?: number
|
|
237
|
+
folderAlias?: string
|
|
238
|
+
memberId?: string
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export type ListMembersWorkspacesByWorkspaceRoleRequest = {
|
|
242
|
+
page?: number
|
|
243
|
+
pageSize?: number
|
|
244
|
+
name?: string
|
|
245
|
+
search?: string
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export type ListMembersWorkspacesByWorkspaceRoleResponse = {
|
|
249
|
+
items?: MemberWorkspace[]
|
|
250
|
+
pagination?: Pagination
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type MemberWorkspace = {
|
|
254
|
+
memberName?: string
|
|
255
|
+
memberType?: string
|
|
256
|
+
workspaceId?: number
|
|
257
|
+
workspaceAlias?: string
|
|
258
|
+
memberId?: string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type CheckRoleNameRequest = {
|
|
262
|
+
name?: string
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type CheckRoleNameResponse = {
|
|
266
|
+
exist?: boolean
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type GetRoleMemberCountRequest = {
|
|
270
|
+
name?: string
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export type GetRoleMemberCountResponse = {
|
|
274
|
+
userCount?: number
|
|
275
|
+
groupCount?: number
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export class Role {
|
|
279
|
+
static ListAllPermissions(req: ListAllPermissionsRequest, initReq?: fm.InitReq): Promise<ListAllPermissionsResponse> {
|
|
280
|
+
return fm.fetchReq<ListAllPermissionsRequest, ListAllPermissionsResponse>(`/apis/ghippo.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
281
|
+
}
|
|
282
|
+
static ListRoles(req: ListRolesRequest, initReq?: fm.InitReq): Promise<ListRolesResponse> {
|
|
283
|
+
return fm.fetchReq<ListRolesRequest, ListRolesResponse>(`/apis/ghippo.io/v1alpha1/roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
284
|
+
}
|
|
285
|
+
static GetRole(req: GetRoleRequest, initReq?: fm.InitReq): Promise<GetRoleResponse> {
|
|
286
|
+
return fm.fetchReq<GetRoleRequest, GetRoleResponse>(`/apis/ghippo.io/v1alpha1/roles/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
287
|
+
}
|
|
288
|
+
static CreateRole(req: CreateRoleRequest, initReq?: fm.InitReq): Promise<CreateRoleResponse> {
|
|
289
|
+
return fm.fetchReq<CreateRoleRequest, CreateRoleResponse>(`/apis/ghippo.io/v1alpha1/roles`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
290
|
+
}
|
|
291
|
+
static UpdateRole(req: UpdateRoleRequest, initReq?: fm.InitReq): Promise<UpdateRoleResponse> {
|
|
292
|
+
return fm.fetchReq<UpdateRoleRequest, UpdateRoleResponse>(`/apis/ghippo.io/v1alpha1/roles/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
293
|
+
}
|
|
294
|
+
static DeleteRole(req: DeleteRoleRequest, initReq?: fm.InitReq): Promise<DeleteRoleResponse> {
|
|
295
|
+
return fm.fetchReq<DeleteRoleRequest, DeleteRoleResponse>(`/apis/ghippo.io/v1alpha1/roles/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
296
|
+
}
|
|
297
|
+
static ListFolderRoleNames(req: ListFolderRoleNamesRequest, initReq?: fm.InitReq): Promise<ListFolderRoleNamesResponse> {
|
|
298
|
+
return fm.fetchReq<ListFolderRoleNamesRequest, ListFolderRoleNamesResponse>(`/apis/ghippo.io/v1alpha1/folderrolenames?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
299
|
+
}
|
|
300
|
+
static ListWorkspaceRoleNames(req: ListWorkspaceRoleNamesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRoleNamesResponse> {
|
|
301
|
+
return fm.fetchReq<ListWorkspaceRoleNamesRequest, ListWorkspaceRoleNamesResponse>(`/apis/ghippo.io/v1alpha1/workspacerolenames?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
302
|
+
}
|
|
303
|
+
static ListMembersByPlatformRole(req: ListMembersByPlatformRoleRequest, initReq?: fm.InitReq): Promise<ListMembersByPlatformRoleResponse> {
|
|
304
|
+
return fm.fetchReq<ListMembersByPlatformRoleRequest, ListMembersByPlatformRoleResponse>(`/apis/ghippo.io/v1alpha1/platformroles/${req["name"]}/members?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
305
|
+
}
|
|
306
|
+
static ListMembersWorkspacesByWorkspaceRole(req: ListMembersWorkspacesByWorkspaceRoleRequest, initReq?: fm.InitReq): Promise<ListMembersWorkspacesByWorkspaceRoleResponse> {
|
|
307
|
+
return fm.fetchReq<ListMembersWorkspacesByWorkspaceRoleRequest, ListMembersWorkspacesByWorkspaceRoleResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles/${req["name"]}/members-workspaces?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
308
|
+
}
|
|
309
|
+
static ListMembersFoldersByFolderRole(req: ListMembersFoldersByFolderRoleRequest, initReq?: fm.InitReq): Promise<ListMembersFoldersByFolderRoleResponse> {
|
|
310
|
+
return fm.fetchReq<ListMembersFoldersByFolderRoleRequest, ListMembersFoldersByFolderRoleResponse>(`/apis/ghippo.io/v1alpha1/folderroles/${req["name"]}/members-folders?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
311
|
+
}
|
|
312
|
+
static CheckRoleName(req: CheckRoleNameRequest, initReq?: fm.InitReq): Promise<CheckRoleNameResponse> {
|
|
313
|
+
return fm.fetchReq<CheckRoleNameRequest, CheckRoleNameResponse>(`/apis/ghippo.io/v1alpha1/roles/check-role-name/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
314
|
+
}
|
|
315
|
+
static GetRoleMemberCount(req: GetRoleMemberCountRequest, initReq?: fm.InitReq): Promise<GetRoleMemberCountResponse> {
|
|
316
|
+
return fm.fetchReq<GetRoleMemberCountRequest, GetRoleMemberCountResponse>(`/apis/ghippo.io/v1alpha1/roles/role-member-count/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
317
|
+
}
|
|
318
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
|
|
9
|
+
export enum PasswordPolicyType {
|
|
10
|
+
MinimumLengthLabel = "MinimumLengthLabel",
|
|
11
|
+
NotRecentlyUsedLabel = "NotRecentlyUsedLabel",
|
|
12
|
+
NotUsernameLabel = "NotUsernameLabel",
|
|
13
|
+
NotEmailLabel = "NotEmailLabel",
|
|
14
|
+
DigitsLabel = "DigitsLabel",
|
|
15
|
+
UppercaseCharactersLabel = "UppercaseCharactersLabel",
|
|
16
|
+
LowercaseCharactersLabel = "LowercaseCharactersLabel",
|
|
17
|
+
SpecialCharactersLabel = "SpecialCharactersLabel",
|
|
18
|
+
ExpirePasswordLabel = "ExpirePasswordLabel",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type PasswordPolicyInfo = {
|
|
22
|
+
type?: PasswordPolicyType
|
|
23
|
+
value?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetPasswordPolicyRequest = {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type GetPasswordPolicyResponse = {
|
|
30
|
+
items?: PasswordPolicyInfo[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type SetPasswordPolicyRequest = {
|
|
34
|
+
items?: PasswordPolicyInfo[]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type SetPasswordPolicyResponse = {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetAccountLockoutPolicyRequest = {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type GetAccountLockoutPolicyResponse = {
|
|
44
|
+
enabled?: boolean
|
|
45
|
+
maxLoginFailures?: number
|
|
46
|
+
maxFailuresWaitSeconds?: number
|
|
47
|
+
failureResetSeconds?: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type SetAccountLockoutPolicyRequest = {
|
|
51
|
+
enabled?: boolean
|
|
52
|
+
maxLoginFailures?: number
|
|
53
|
+
maxFailuresWaitSeconds?: number
|
|
54
|
+
failureResetSeconds?: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type SetAccountLockoutPolicyResponse = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type GetLogoutPolicyRequest = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type GetLogoutPolicyResponse = {
|
|
64
|
+
enabled?: boolean
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type SetLogoutPolicyRequest = {
|
|
68
|
+
enabled?: boolean
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type SetLogoutPolicyResponse = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetSessionTimeoutRequest = {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type GetSessionTimeoutResponse = {
|
|
78
|
+
timeoutSeconds?: number
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type SetSessionTimeoutRequest = {
|
|
82
|
+
timeoutSeconds?: number
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type SetSessionTimeoutResponse = {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type GetUserSessionLimitRequest = {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type GetUserSessionLimitResponse = {
|
|
92
|
+
enabled?: boolean
|
|
93
|
+
number?: number
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type SetUserSessionLimitRequest = {
|
|
97
|
+
enabled?: boolean
|
|
98
|
+
number?: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type SetUserSessionLimitResponse = {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type GetSystemSessionLimitRequest = {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type GetSystemSessionLimitResponse = {
|
|
108
|
+
enabled?: boolean
|
|
109
|
+
number?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type SetSystemSessionLimitRequest = {
|
|
113
|
+
enabled?: boolean
|
|
114
|
+
number?: number
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type SetSystemSessionLimitResponse = {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type GetTimeSessionLimitRequest = {
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type GetTimeSessionLimitResponse = {
|
|
124
|
+
enabled?: boolean
|
|
125
|
+
start?: string
|
|
126
|
+
end?: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type SetTimeSessionLimitRequest = {
|
|
130
|
+
enabled?: boolean
|
|
131
|
+
start?: string
|
|
132
|
+
end?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type SetTimeSessionLimitResponse = {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetMFARequest = {
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type GetMFAResponse = {
|
|
142
|
+
enabled?: boolean
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type SetMFARequest = {
|
|
146
|
+
enabled?: boolean
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type SetMFAResponse = {
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export class SecurityPolicy {
|
|
153
|
+
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
154
|
+
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
155
|
+
}
|
|
156
|
+
static SetPasswordPolicy(req: SetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<SetPasswordPolicyResponse> {
|
|
157
|
+
return fm.fetchReq<SetPasswordPolicyRequest, SetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
158
|
+
}
|
|
159
|
+
static GetAccountLockoutPolicy(req: GetAccountLockoutPolicyRequest, initReq?: fm.InitReq): Promise<GetAccountLockoutPolicyResponse> {
|
|
160
|
+
return fm.fetchReq<GetAccountLockoutPolicyRequest, GetAccountLockoutPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/accountlockout?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
161
|
+
}
|
|
162
|
+
static SetAccountLockoutPolicy(req: SetAccountLockoutPolicyRequest, initReq?: fm.InitReq): Promise<SetAccountLockoutPolicyResponse> {
|
|
163
|
+
return fm.fetchReq<SetAccountLockoutPolicyRequest, SetAccountLockoutPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/accountlockout`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
164
|
+
}
|
|
165
|
+
static GetLogoutPolicy(req: GetLogoutPolicyRequest, initReq?: fm.InitReq): Promise<GetLogoutPolicyResponse> {
|
|
166
|
+
return fm.fetchReq<GetLogoutPolicyRequest, GetLogoutPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/logout?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
167
|
+
}
|
|
168
|
+
static SetLogoutPolicy(req: SetLogoutPolicyRequest, initReq?: fm.InitReq): Promise<SetLogoutPolicyResponse> {
|
|
169
|
+
return fm.fetchReq<SetLogoutPolicyRequest, SetLogoutPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/logout`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
170
|
+
}
|
|
171
|
+
static GetSessionTimeout(req: GetSessionTimeoutRequest, initReq?: fm.InitReq): Promise<GetSessionTimeoutResponse> {
|
|
172
|
+
return fm.fetchReq<GetSessionTimeoutRequest, GetSessionTimeoutResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessiontimeout?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
173
|
+
}
|
|
174
|
+
static SetSessionTimeout(req: SetSessionTimeoutRequest, initReq?: fm.InitReq): Promise<SetSessionTimeoutResponse> {
|
|
175
|
+
return fm.fetchReq<SetSessionTimeoutRequest, SetSessionTimeoutResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessiontimeout`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
176
|
+
}
|
|
177
|
+
static GetUserSessionLimit(req: GetUserSessionLimitRequest, initReq?: fm.InitReq): Promise<GetUserSessionLimitResponse> {
|
|
178
|
+
return fm.fetchReq<GetUserSessionLimitRequest, GetUserSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/user?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
179
|
+
}
|
|
180
|
+
static SetUserSessionLimit(req: SetUserSessionLimitRequest, initReq?: fm.InitReq): Promise<SetUserSessionLimitResponse> {
|
|
181
|
+
return fm.fetchReq<SetUserSessionLimitRequest, SetUserSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/user`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
182
|
+
}
|
|
183
|
+
static GetSystemSessionLimit(req: GetSystemSessionLimitRequest, initReq?: fm.InitReq): Promise<GetSystemSessionLimitResponse> {
|
|
184
|
+
return fm.fetchReq<GetSystemSessionLimitRequest, GetSystemSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/system?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
185
|
+
}
|
|
186
|
+
static SetSystemSessionLimit(req: SetSystemSessionLimitRequest, initReq?: fm.InitReq): Promise<SetSystemSessionLimitResponse> {
|
|
187
|
+
return fm.fetchReq<SetSystemSessionLimitRequest, SetSystemSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/system`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
188
|
+
}
|
|
189
|
+
static GetTimeSessionLimit(req: GetTimeSessionLimitRequest, initReq?: fm.InitReq): Promise<GetTimeSessionLimitResponse> {
|
|
190
|
+
return fm.fetchReq<GetTimeSessionLimitRequest, GetTimeSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/time?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
191
|
+
}
|
|
192
|
+
static SetTimeSessionLimit(req: SetTimeSessionLimitRequest, initReq?: fm.InitReq): Promise<SetTimeSessionLimitResponse> {
|
|
193
|
+
return fm.fetchReq<SetTimeSessionLimitRequest, SetTimeSessionLimitResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/sessionlimit/time`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
194
|
+
}
|
|
195
|
+
static GetMFA(req: GetMFARequest, initReq?: fm.InitReq): Promise<GetMFAResponse> {
|
|
196
|
+
return fm.fetchReq<GetMFARequest, GetMFAResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/mfa?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
197
|
+
}
|
|
198
|
+
static SetMFA(req: SetMFARequest, initReq?: fm.InitReq): Promise<SetMFAResponse> {
|
|
199
|
+
return fm.fetchReq<SetMFARequest, SetMFAResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/mfa`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 SendVerificationCodeRequest = {
|
|
9
|
+
phone?: string
|
|
10
|
+
countryCode?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type SendVerificationCodeResponse = {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SendTemplateSmsRequest = {
|
|
17
|
+
userId?: string
|
|
18
|
+
username?: string
|
|
19
|
+
templateCode?: string
|
|
20
|
+
templateVars?: {[key: string]: string}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type SendTemplateSmsResponse = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class Sms {
|
|
27
|
+
static SendVerificationCode(req: SendVerificationCodeRequest, initReq?: fm.InitReq): Promise<SendVerificationCodeResponse> {
|
|
28
|
+
return fm.fetchReq<SendVerificationCodeRequest, SendVerificationCodeResponse>(`/apis/ghippo.io/v1alpha1/sms/verification`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
29
|
+
}
|
|
30
|
+
static SendTemplateSms(req: SendTemplateSmsRequest, initReq?: fm.InitReq): Promise<SendTemplateSmsResponse> {
|
|
31
|
+
return fm.fetchReq<SendTemplateSmsRequest, SendTemplateSmsResponse>(`/v1alpha1.sms.Sms/SendTemplateSms`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 SetSmtpServerRequest = {
|
|
9
|
+
host?: string
|
|
10
|
+
port?: number
|
|
11
|
+
ssl?: boolean
|
|
12
|
+
starttls?: boolean
|
|
13
|
+
from?: string
|
|
14
|
+
user?: string
|
|
15
|
+
password?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type SetSmtpServerResponse = {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type GetSmtpServerRequest = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type GetSmtpServerResponse = {
|
|
25
|
+
host?: string
|
|
26
|
+
port?: number
|
|
27
|
+
ssl?: boolean
|
|
28
|
+
starttls?: boolean
|
|
29
|
+
from?: string
|
|
30
|
+
user?: string
|
|
31
|
+
password?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type SmtpConnTestRequest = {
|
|
35
|
+
host?: string
|
|
36
|
+
port?: number
|
|
37
|
+
ssl?: boolean
|
|
38
|
+
starttls?: boolean
|
|
39
|
+
from?: string
|
|
40
|
+
to?: string
|
|
41
|
+
user?: string
|
|
42
|
+
password?: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type SmtpConnTestResponse = {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class SmtpSetting {
|
|
49
|
+
static SetSmtpServer(req: SetSmtpServerRequest, initReq?: fm.InitReq): Promise<SetSmtpServerResponse> {
|
|
50
|
+
return fm.fetchReq<SetSmtpServerRequest, SetSmtpServerResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
51
|
+
}
|
|
52
|
+
static GetSmtpServer(req: GetSmtpServerRequest, initReq?: fm.InitReq): Promise<GetSmtpServerResponse> {
|
|
53
|
+
return fm.fetchReq<GetSmtpServerRequest, GetSmtpServerResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
54
|
+
}
|
|
55
|
+
static SmtpServerConnTest(req: SmtpConnTestRequest, initReq?: fm.InitReq): Promise<SmtpConnTestResponse> {
|
|
56
|
+
return fm.fetchReq<SmtpConnTestRequest, SmtpConnTestResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting/conn-test`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
57
|
+
}
|
|
58
|
+
}
|