@daocloud-proto/ghippo 0.19.2 → 0.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.19.2",
3
+ "version":"0.20.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -10,6 +10,13 @@ export enum ProviderType {
10
10
  wechatwork = "wechatwork",
11
11
  }
12
12
 
13
+ export type GetOauth2RedirectDomainRequest = {
14
+ }
15
+
16
+ export type GetOauth2RedirectDomainResponse = {
17
+ redirectDomain?: string
18
+ }
19
+
13
20
  export type GetOauth2Request = {
14
21
  }
15
22
 
@@ -51,6 +58,9 @@ export type DeleteOauth2Response = {
51
58
  }
52
59
 
53
60
  export class Oauth2 {
61
+ static GetOauth2RedirectDomain(req: GetOauth2RedirectDomainRequest, initReq?: fm.InitReq): Promise<GetOauth2RedirectDomainResponse> {
62
+ return fm.fetchReq<GetOauth2RedirectDomainRequest, GetOauth2RedirectDomainResponse>(`/apis/ghippo.io/v1alpha1/oauth2/redirect-domain?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
63
+ }
54
64
  static GetOauth2(req: GetOauth2Request, initReq?: fm.InitReq): Promise<GetOauth2Response> {
55
65
  return fm.fetchReq<GetOauth2Request, GetOauth2Response>(`/apis/ghippo.io/v1alpha1/oauth2?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
56
66
  }