@daocloud-proto/ghippo 0.8.31 → 0.9.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/idp.pb.ts +12 -10
- package/v1alpha1/loginpage.pb.ts +9 -0
- package/v1alpha1/openapi.pb.ts +1 -1
- package/v1alpha1/user.pb.ts +1 -1
- package/v1alpha1/workspace.pb.ts +62 -0
package/package.json
CHANGED
package/v1alpha1/idp.pb.ts
CHANGED
|
@@ -18,13 +18,11 @@ export enum ClientAuthMethod {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type CreateIDPRequest = {
|
|
21
|
-
alias?: string
|
|
22
21
|
displayName?: string
|
|
23
22
|
clientId?: string
|
|
24
23
|
clientSecret?: string
|
|
25
24
|
clientAuthMethod?: ClientAuthMethod
|
|
26
25
|
providerId?: ProviderType
|
|
27
|
-
enabled?: boolean
|
|
28
26
|
authorizationUrl?: string
|
|
29
27
|
userInfoUrl?: string
|
|
30
28
|
tokenUrl?: string
|
|
@@ -36,17 +34,14 @@ export type CreateIDPResponse = {
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
export type GetIDPRequest = {
|
|
39
|
-
alias?: string
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
export type GetIDPResponse = {
|
|
43
|
-
alias?: string
|
|
44
40
|
displayName?: string
|
|
45
41
|
clientId?: string
|
|
46
42
|
clientSecret?: string
|
|
47
43
|
clientAuthMethod?: ClientAuthMethod
|
|
48
44
|
providerId?: ProviderType
|
|
49
|
-
enabled?: boolean
|
|
50
45
|
authorizationUrl?: string
|
|
51
46
|
userInfoUrl?: string
|
|
52
47
|
tokenUrl?: string
|
|
@@ -54,21 +49,25 @@ export type GetIDPResponse = {
|
|
|
54
49
|
enableAutoLinkFlow?: boolean
|
|
55
50
|
}
|
|
56
51
|
|
|
52
|
+
export type GetRedirectUrlRequest = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GetRedirectUrlResponse = {
|
|
56
|
+
url?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
57
59
|
export type DeleteIDPRequest = {
|
|
58
|
-
alias?: string
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
export type DeleteIDPResponse = {
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export type UpdateIDPRequest = {
|
|
65
|
-
alias?: string
|
|
66
66
|
displayName?: string
|
|
67
67
|
clientId?: string
|
|
68
68
|
clientSecret?: string
|
|
69
69
|
clientAuthMethod?: ClientAuthMethod
|
|
70
70
|
providerId?: ProviderType
|
|
71
|
-
enabled?: boolean
|
|
72
71
|
authorizationUrl?: string
|
|
73
72
|
userInfoUrl?: string
|
|
74
73
|
tokenUrl?: string
|
|
@@ -84,10 +83,13 @@ export class IDP {
|
|
|
84
83
|
return fm.fetchReq<CreateIDPRequest, CreateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
85
84
|
}
|
|
86
85
|
static GetIDP(req: GetIDPRequest, initReq?: fm.InitReq): Promise<GetIDPResponse> {
|
|
87
|
-
return fm.fetchReq<GetIDPRequest, GetIDPResponse>(`/apis/ghippo.io/v1alpha1/idp
|
|
86
|
+
return fm.fetchReq<GetIDPRequest, GetIDPResponse>(`/apis/ghippo.io/v1alpha1/idp?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
87
|
+
}
|
|
88
|
+
static GetRedirectUrl(req: GetRedirectUrlRequest, initReq?: fm.InitReq): Promise<GetRedirectUrlResponse> {
|
|
89
|
+
return fm.fetchReq<GetRedirectUrlRequest, GetRedirectUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/redirect-url?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
88
90
|
}
|
|
89
91
|
static DeleteIDP(req: DeleteIDPRequest, initReq?: fm.InitReq): Promise<DeleteIDPResponse> {
|
|
90
|
-
return fm.fetchReq<DeleteIDPRequest, DeleteIDPResponse>(`/apis/ghippo.io/v1alpha1/idp
|
|
92
|
+
return fm.fetchReq<DeleteIDPRequest, DeleteIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "DELETE"})
|
|
91
93
|
}
|
|
92
94
|
static UpdateIDP(req: UpdateIDPRequest, initReq?: fm.InitReq): Promise<UpdateIDPResponse> {
|
|
93
95
|
return fm.fetchReq<UpdateIDPRequest, UpdateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
package/v1alpha1/loginpage.pb.ts
CHANGED
|
@@ -35,6 +35,12 @@ export type UpdateLoginPageInfoRequest = {
|
|
|
35
35
|
export type UpdateLoginPageInfoResponse = {
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export type ResetLoginPageInfoRequest = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ResetLoginPageInfoResponse = {
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
export class LoginPage {
|
|
39
45
|
static GetInfo(req: GetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<GetLoginPageInfoResponse> {
|
|
40
46
|
return fm.fetchReq<GetLoginPageInfoRequest, GetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -45,4 +51,7 @@ export class LoginPage {
|
|
|
45
51
|
static UpdateInfo(req: UpdateLoginPageInfoRequest, initReq?: fm.InitReq): Promise<UpdateLoginPageInfoResponse> {
|
|
46
52
|
return fm.fetchReq<UpdateLoginPageInfoRequest, UpdateLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
47
53
|
}
|
|
54
|
+
static ResetInfo(req: ResetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<ResetLoginPageInfoResponse> {
|
|
55
|
+
return fm.fetchReq<ResetLoginPageInfoRequest, ResetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/reset`, {...initReq, method: "POST"})
|
|
56
|
+
}
|
|
48
57
|
}
|
package/v1alpha1/openapi.pb.ts
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -221,6 +221,16 @@ export type DeauthorizeRequest = {
|
|
|
221
221
|
export type DeauthorizeResponse = {
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
export type ReauthorizeRequest = {
|
|
225
|
+
folderId?: number
|
|
226
|
+
roleName?: string
|
|
227
|
+
memberName?: string
|
|
228
|
+
memberType?: string
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type ReauthorizeResponse = {
|
|
232
|
+
}
|
|
233
|
+
|
|
224
234
|
export type MemberRoleFolderInfo = {
|
|
225
235
|
memberName?: string
|
|
226
236
|
memberType?: string
|
|
@@ -357,6 +367,49 @@ export type BindSharedResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
|
357
367
|
export type BindSharedResourceAndSetQuotaHardToWorkspaceResponse = {
|
|
358
368
|
}
|
|
359
369
|
|
|
370
|
+
export type FolderListUsersRequest = {
|
|
371
|
+
search?: string
|
|
372
|
+
pageSize?: number
|
|
373
|
+
page?: number
|
|
374
|
+
folderId?: number
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export type FolderListUsersResponse = {
|
|
378
|
+
items?: User[]
|
|
379
|
+
pagination?: Pagination
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type User = {
|
|
383
|
+
id?: string
|
|
384
|
+
name?: string
|
|
385
|
+
email?: string
|
|
386
|
+
description?: string
|
|
387
|
+
firstname?: string
|
|
388
|
+
lastname?: string
|
|
389
|
+
source?: string
|
|
390
|
+
enabled?: boolean
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export type FolderListGroupsRequest = {
|
|
394
|
+
search?: string
|
|
395
|
+
page?: number
|
|
396
|
+
pageSize?: number
|
|
397
|
+
folderId?: number
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export type FolderListGroupsResponse = {
|
|
401
|
+
items?: Group[]
|
|
402
|
+
pagination?: Pagination
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type Group = {
|
|
406
|
+
id?: string
|
|
407
|
+
name?: string
|
|
408
|
+
userCount?: number
|
|
409
|
+
description?: string
|
|
410
|
+
createdAt?: string
|
|
411
|
+
}
|
|
412
|
+
|
|
360
413
|
export class Workspace {
|
|
361
414
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
362
415
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -412,6 +465,9 @@ export class Workspace {
|
|
|
412
465
|
static Deauthorize(req: DeauthorizeRequest, initReq?: fm.InitReq): Promise<DeauthorizeResponse> {
|
|
413
466
|
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/deauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
414
467
|
}
|
|
468
|
+
static Reauthorize(req: ReauthorizeRequest, initReq?: fm.InitReq): Promise<ReauthorizeResponse> {
|
|
469
|
+
return fm.fetchReq<ReauthorizeRequest, ReauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/reauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
470
|
+
}
|
|
415
471
|
static ListMembersRolesByFolder(req: ListMembersRolesByFolderRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByFolderResponse> {
|
|
416
472
|
return fm.fetchReq<ListMembersRolesByFolderRequest, ListMembersRolesByFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
417
473
|
}
|
|
@@ -442,4 +498,10 @@ export class Workspace {
|
|
|
442
498
|
static UpdateQuotaCheck(req: UpdateQuotaCheckRequest, initReq?: fm.InitReq): Promise<UpdateQuotaCheckResponse> {
|
|
443
499
|
return fm.fetchReq<UpdateQuotaCheckRequest, UpdateQuotaCheckResponse>(`/apis/ghippo.io/v1alpha1/update-quota-check`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
444
500
|
}
|
|
501
|
+
static FolderListUsers(req: FolderListUsersRequest, initReq?: fm.InitReq): Promise<FolderListUsersResponse> {
|
|
502
|
+
return fm.fetchReq<FolderListUsersRequest, FolderListUsersResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/users?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
503
|
+
}
|
|
504
|
+
static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
|
|
505
|
+
return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
506
|
+
}
|
|
445
507
|
}
|