@daocloud-proto/ghippo 0.20.1 → 0.21.0-dev2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.20.1",
3
+ "version":"0.21.0-dev2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -55,18 +55,7 @@ export type GetIDPRequest = {
55
55
  }
56
56
 
57
57
  export type GetIDPResponse = {
58
- displayName?: string
59
- clientId?: string
60
- clientSecret?: string
61
- clientAuthentications?: ClientAuthentications
62
- providerId?: ProviderType
63
- authorizationUrl?: string
64
- userInfoUrl?: string
65
- tokenUrl?: string
66
- logoutUrl?: string
67
- enableAutoLinkFlow?: boolean
68
- alias?: string
69
- enabled?: boolean
58
+ idpInfo?: IDPInfo
70
59
  }
71
60
 
72
61
  export type ListIDPsRequest = {
@@ -122,19 +111,19 @@ export class IDP {
122
111
  return fm.fetchReq<CreateIDPRequest, CreateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
123
112
  }
124
113
  static GetIDP(req: GetIDPRequest, initReq?: fm.InitReq): Promise<GetIDPResponse> {
125
- return fm.fetchReq<GetIDPRequest, GetIDPResponse>(`/apis/ghippo.io/v1alpha1/idp?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
114
+ return fm.fetchReq<GetIDPRequest, GetIDPResponse>(`/apis/ghippo.io/v1alpha1/idp/${req["alias"]}?${fm.renderURLSearchParams(req, ["alias"])}`, {...initReq, method: "GET"})
126
115
  }
127
116
  static ListIDPs(req: ListIDPsRequest, initReq?: fm.InitReq): Promise<ListIDPsResponse> {
128
- return fm.fetchReq<ListIDPsRequest, ListIDPsResponse>(`/apis/ghippo.io/v1alpha1/idps?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
117
+ return fm.fetchReq<ListIDPsRequest, ListIDPsResponse>(`/apis/ghippo.io/v1alpha1/idp?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
129
118
  }
130
119
  static GetRedirectUrl(req: GetRedirectUrlRequest, initReq?: fm.InitReq): Promise<GetRedirectUrlResponse> {
131
- return fm.fetchReq<GetRedirectUrlRequest, GetRedirectUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/redirect-url?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
120
+ return fm.fetchReq<GetRedirectUrlRequest, GetRedirectUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/${req["alias"]}/redirect-url?${fm.renderURLSearchParams(req, ["alias"])}`, {...initReq, method: "GET"})
132
121
  }
133
122
  static DeleteIDP(req: DeleteIDPRequest, initReq?: fm.InitReq): Promise<DeleteIDPResponse> {
134
- return fm.fetchReq<DeleteIDPRequest, DeleteIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "DELETE"})
123
+ return fm.fetchReq<DeleteIDPRequest, DeleteIDPResponse>(`/apis/ghippo.io/v1alpha1/idp/${req["alias"]}`, {...initReq, method: "DELETE"})
135
124
  }
136
125
  static UpdateIDP(req: UpdateIDPRequest, initReq?: fm.InitReq): Promise<UpdateIDPResponse> {
137
- return fm.fetchReq<UpdateIDPRequest, UpdateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
126
+ return fm.fetchReq<UpdateIDPRequest, UpdateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp/${req["alias"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
138
127
  }
139
128
  static GetWellKnownUrl(req: GetWellKnownUrlRequest, initReq?: fm.InitReq): Promise<GetWellKnownUrlResponse> {
140
129
  return fm.fetchReq<GetWellKnownUrlRequest, GetWellKnownUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/wellknown-url?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -11,20 +11,11 @@ export enum LdapVendor {
11
11
  ad = "ad",
12
12
  }
13
13
 
14
- export type Pagination = {
15
- page?: number
16
- pageSize?: number
17
- total?: number
18
- }
19
-
20
14
  export type ListLdapsRequest = {
21
- pageSize?: number
22
- page?: number
23
15
  }
24
16
 
25
17
  export type ListLdapsResponse = {
26
18
  items?: ListLdap[]
27
- pagination?: Pagination
28
19
  }
29
20
 
30
21
  export type ListLdap = {