@daocloud-proto/ghippo 0.19.0-dev2 → 0.19.0-dev4

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.0-dev2",
3
+ "version":"0.19.0-dev4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -17,6 +17,7 @@ export type LoginPostRequest = {
17
17
  state?: string
18
18
  sessionState?: string
19
19
  callbackUrl?: string
20
+ useSso?: string
20
21
  }
21
22
 
22
23
  export type LoginPostResponse = {
@@ -0,0 +1,66 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as fm from "../fetch.pb"
8
+
9
+ export enum ProviderType {
10
+ wechatwork = "wechatwork",
11
+ }
12
+
13
+ export type GetOauth2Request = {
14
+ }
15
+
16
+ export type GetOauth2Response = {
17
+ providerType?: ProviderType
18
+ displayName?: string
19
+ clientId?: string
20
+ clientSecret?: string
21
+ agentId?: string
22
+ }
23
+
24
+ export type CreateOauth2Request = {
25
+ providerType?: ProviderType
26
+ displayName?: string
27
+ clientId?: string
28
+ clientSecret?: string
29
+ agentId?: string
30
+ }
31
+
32
+ export type CreateOauth2Response = {
33
+ }
34
+
35
+ export type UpdateOauth2Request = {
36
+ providerType?: ProviderType
37
+ displayName?: string
38
+ clientId?: string
39
+ clientSecret?: string
40
+ agentId?: string
41
+ }
42
+
43
+ export type UpdateOauth2Response = {
44
+ }
45
+
46
+ export type DeleteOauth2Request = {
47
+ providerType?: ProviderType
48
+ }
49
+
50
+ export type DeleteOauth2Response = {
51
+ }
52
+
53
+ export class Oauth2 {
54
+ static GetOauth2(req: GetOauth2Request, initReq?: fm.InitReq): Promise<GetOauth2Response> {
55
+ return fm.fetchReq<GetOauth2Request, GetOauth2Response>(`/apis/ghippo.io/v1alpha1/oauth2?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
56
+ }
57
+ static CreateOauth2(req: CreateOauth2Request, initReq?: fm.InitReq): Promise<CreateOauth2Response> {
58
+ return fm.fetchReq<CreateOauth2Request, CreateOauth2Response>(`/apis/ghippo.io/v1alpha1/oauth2`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
59
+ }
60
+ static UpdateOauth2(req: UpdateOauth2Request, initReq?: fm.InitReq): Promise<UpdateOauth2Response> {
61
+ return fm.fetchReq<UpdateOauth2Request, UpdateOauth2Response>(`/apis/ghippo.io/v1alpha1/oauth2`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
62
+ }
63
+ static DeleteOauth2(req: DeleteOauth2Request, initReq?: fm.InitReq): Promise<DeleteOauth2Response> {
64
+ return fm.fetchReq<DeleteOauth2Request, DeleteOauth2Response>(`/apis/ghippo.io/v1alpha1/oauth2`, {...initReq, method: "DELETE"})
65
+ }
66
+ }