@daocloud-proto/ghippo 0.9.1 → 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/workspace.pb.ts +13 -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/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
|
|
@@ -455,6 +465,9 @@ export class Workspace {
|
|
|
455
465
|
static Deauthorize(req: DeauthorizeRequest, initReq?: fm.InitReq): Promise<DeauthorizeResponse> {
|
|
456
466
|
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/deauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
457
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
|
+
}
|
|
458
471
|
static ListMembersRolesByFolder(req: ListMembersRolesByFolderRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByFolderResponse> {
|
|
459
472
|
return fm.fetchReq<ListMembersRolesByFolderRequest, ListMembersRolesByFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
460
473
|
}
|