@daocloud-proto/ghippo 0.15.0 → 0.16.0-dev-1

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.15.0",
3
+ "version":"0.16.0-dev-1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -9,8 +9,6 @@ export type ClientInfo = {
9
9
  id?: string
10
10
  clientId?: string
11
11
  name?: string
12
- enabled?: boolean
13
- redirectUris?: string[]
14
12
  secret?: string
15
13
  baseUrl?: string
16
14
  }
@@ -23,6 +21,7 @@ export type Pagination = {
23
21
 
24
22
  export type CreateClientRequest = {
25
23
  clientId?: string
24
+ baseUrl?: string
26
25
  }
27
26
 
28
27
  export type CreateClientResponse = {
@@ -37,19 +36,18 @@ export type GetClientResponse = {
37
36
  }
38
37
 
39
38
  export type ListClientsRequest = {
40
- search?: string
39
+ clientId?: string
41
40
  }
42
41
 
43
42
  export type ListClientsResponse = {
44
43
  items?: ClientInfo[]
45
- pagination?: Pagination
46
44
  }
47
45
 
48
46
  export type UpdateClientRequest = {
49
47
  id?: string
50
48
  clientId?: string
51
49
  name?: string
52
- redirectUris?: string[]
50
+ baseUrl?: string
53
51
  }
54
52
 
55
53
  export type UpdateClientResponse = {
@@ -20,10 +20,6 @@ export enum GlobalPermission {
20
20
  UpdateGroupUser = "UpdateGroupUser",
21
21
  AuthorizeGroup = "AuthorizeGroup",
22
22
  GetRole = "GetRole",
23
- GetLdap = "GetLdap",
24
- CreateLdap = "CreateLdap",
25
- UpdateLdap = "UpdateLdap",
26
- DeleteLdap = "DeleteLdap",
27
23
  GetIdp = "GetIdp",
28
24
  CreateIdp = "CreateIdp",
29
25
  UpdateIdp = "UpdateIdp",
@@ -41,6 +37,9 @@ export enum GlobalPermission {
41
37
  DeleteLicense = "DeleteLicense",
42
38
  GetWorkspace = "GetWorkspace",
43
39
  GetAboutPlatform = "GetAboutPlatform",
40
+ DeleteRole = "DeleteRole",
41
+ UpdateRole = "UpdateRole",
42
+ CreateRole = "CreateRole",
44
43
  }
45
44
 
46
45
  export type UpdateEmailRequest = {
@@ -78,6 +78,13 @@ export type UpdateIDPRequest = {
78
78
  export type UpdateIDPResponse = {
79
79
  }
80
80
 
81
+ export type GetWellKnownUrlRequest = {
82
+ }
83
+
84
+ export type GetWellKnownUrlResponse = {
85
+ url?: string
86
+ }
87
+
81
88
  export class IDP {
82
89
  static CreateIDP(req: CreateIDPRequest, initReq?: fm.InitReq): Promise<CreateIDPResponse> {
83
90
  return fm.fetchReq<CreateIDPRequest, CreateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "POST", body: JSON.stringify(req)})
@@ -94,4 +101,7 @@ export class IDP {
94
101
  static UpdateIDP(req: UpdateIDPRequest, initReq?: fm.InitReq): Promise<UpdateIDPResponse> {
95
102
  return fm.fetchReq<UpdateIDPRequest, UpdateIDPResponse>(`/apis/ghippo.io/v1alpha1/idp`, {...initReq, method: "PUT", body: JSON.stringify(req)})
96
103
  }
104
+ static GetWellKnownUrl(req: GetWellKnownUrlRequest, initReq?: fm.InitReq): Promise<GetWellKnownUrlResponse> {
105
+ return fm.fetchReq<GetWellKnownUrlRequest, GetWellKnownUrlResponse>(`/apis/ghippo.io/v1alpha1/idp/wellknown-url?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
106
+ }
97
107
  }
@@ -15,6 +15,8 @@ export type GetLoginPageInfoResponse = {
15
15
  tabName?: string
16
16
  icon?: string
17
17
  favicon?: string
18
+ background?: string
19
+ customBg?: boolean
18
20
  }
19
21
 
20
22
  export type GetLoginPageVersionRequest = {
@@ -30,6 +32,7 @@ export type UpdateLoginPageInfoRequest = {
30
32
  tabName?: string
31
33
  icon?: string
32
34
  favicon?: string
35
+ background?: string
33
36
  }
34
37
 
35
38
  export type UpdateLoginPageInfoResponse = {
@@ -307,6 +307,7 @@ export type ResourceInfo = {
307
307
  gproduct?: string
308
308
  resourceScope?: string
309
309
  bound?: boolean
310
+ clusterStatus?: ClusterStatus
310
311
  }
311
312
 
312
313
  export type ListExclusiveResourceTypesRequest = {