@daocloud-proto/ghippo 0.9.36 → 0.9.37

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.9.36",
3
+ "version":"0.9.37",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -75,6 +75,13 @@ export type DeleteSecretRequest = {
75
75
  export type DeleteSecretResponse = {
76
76
  }
77
77
 
78
+ export type GetPermissionsRequest = {
79
+ }
80
+
81
+ export type GetPermissionsResponse = {
82
+ permissions?: string[]
83
+ }
84
+
78
85
  export class Account {
79
86
  static UpdateEmail(req: UpdateEmailRequest, initReq?: fm.InitReq): Promise<UpdateEmailResponse> {
80
87
  return fm.fetchReq<UpdateEmailRequest, UpdateEmailResponse>(`/apis/ghippo.io/v1alpha1/current-user/email`, {...initReq, method: "PUT", body: JSON.stringify(req)})
@@ -100,4 +107,7 @@ export class Account {
100
107
  static DeleteSecret(req: DeleteSecretRequest, initReq?: fm.InitReq): Promise<DeleteSecretResponse> {
101
108
  return fm.fetchReq<DeleteSecretRequest, DeleteSecretResponse>(`/apis/ghippo.io/v1alpha1/current-user/secrets/${req["id"]}`, {...initReq, method: "DELETE"})
102
109
  }
110
+ static GetPermissions(req: GetPermissionsRequest, initReq?: fm.InitReq): Promise<GetPermissionsResponse> {
111
+ return fm.fetchReq<GetPermissionsRequest, GetPermissionsResponse>(`/apis/ghippo.io/v1alpha1/current-user/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
112
+ }
103
113
  }
@@ -56,6 +56,13 @@ export type GetGProductLicensesOverQuotaResponse = {
56
56
  licenses?: GProductLicense[]
57
57
  }
58
58
 
59
+ export type GetGProductLicensesValidatedRequest = {
60
+ }
61
+
62
+ export type GetGProductLicensesValidatedResponse = {
63
+ licenses?: GProductLicense[]
64
+ }
65
+
59
66
  export type GProductLicense = {
60
67
  id?: string
61
68
  name?: string
@@ -102,4 +109,7 @@ export class GProducts {
102
109
  static GetGProductLicensesOverQuota(req: GetGProductLicensesOverQuotaRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesOverQuotaResponse> {
103
110
  return fm.fetchReq<GetGProductLicensesOverQuotaRequest, GetGProductLicensesOverQuotaResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/over-quota?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
104
111
  }
112
+ static GetGProductLicensesValidated(req: GetGProductLicensesValidatedRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesValidatedResponse> {
113
+ return fm.fetchReq<GetGProductLicensesValidatedRequest, GetGProductLicensesValidatedResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/validated?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
114
+ }
105
115
  }
@@ -21,7 +21,6 @@ export type GetLdapResponse = {
21
21
  userObjectClasses?: string
22
22
  usernameLdapAttribute?: string
23
23
  fullSyncPeriod?: string
24
- enabled?: string
25
24
  }
26
25
 
27
26
  export type CreateLdapRequest = {
@@ -39,13 +38,12 @@ export type CreateLdapRequest = {
39
38
 
40
39
  export type CreateLdapResponse = {
41
40
  id?: string
42
- enabled?: string
43
41
  }
44
42
 
45
43
  export type TestLdapConnectionRequest = {
44
+ connectionUrl?: string
46
45
  bindDn?: string
47
46
  bindCredential?: string
48
- connectionUrl?: string
49
47
  connectionTimeout?: string
50
48
  action?: string
51
49
  startTls?: string
@@ -85,7 +83,6 @@ export type UpdateLdapRequest = {
85
83
  }
86
84
 
87
85
  export type UpdateLdapResponse = {
88
- enabled?: string
89
86
  }
90
87
 
91
88
  export type SyncUsersRequest = {
@@ -23,6 +23,7 @@ export type ProductMenu = {
23
23
  iconUrl?: string
24
24
  target?: string
25
25
  menus?: ProductMenu[]
26
+ requireLicense?: boolean
26
27
  }
27
28
 
28
29
  export class ProductNavigator {