@daocloud-proto/ghippo 0.38.0 → 0.39.0-dev1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/v1alpha1/idp.pb.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.38.0",
3
+ "version":"0.39.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -106,6 +106,17 @@ export type GetWellKnownUrlResponse = {
106
106
  url?: string
107
107
  }
108
108
 
109
+ export type ImportOpenIdConfigurationRequest = {
110
+ url?: string
111
+ }
112
+
113
+ export type ImportOpenIdConfigurationResponse = {
114
+ authorizationEndpoint?: string
115
+ tokenEndpoint?: string
116
+ userinfoEndpoint?: string
117
+ endSessionEndpoint?: string
118
+ }
119
+
109
120
  export class IDP {
110
121
  static CreateIDP(req: CreateIDPRequest, initReq?: fm.InitReq): Promise<CreateIDPResponse> {
111
122
  return fm.fetchReq<CreateIDPRequest, CreateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -128,4 +139,7 @@ export class IDP {
128
139
  static GetWellKnownUrl(req: GetWellKnownUrlRequest, initReq?: fm.InitReq): Promise<GetWellKnownUrlResponse> {
129
140
  return fm.fetchReq<GetWellKnownUrlRequest, GetWellKnownUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/wellknown-url?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
130
141
  }
142
+ static ImportOpenIdConfiguration(req: ImportOpenIdConfigurationRequest, initReq?: fm.InitReq): Promise<ImportOpenIdConfigurationResponse> {
143
+ return fm.fetchReq<ImportOpenIdConfigurationRequest, ImportOpenIdConfigurationResponse>(`/apis/ghippo.io/v1alpha1/idp/import-openid-configuration?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
144
+ }
131
145
  }