@daocloud-proto/ghippo 0.7.28 → 0.7.33

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.7.28",
3
+ "version":"0.7.33",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -54,6 +54,20 @@ export type TestLdapConnectionRequest = {
54
54
  export type TestLdapConnectionResponse = {
55
55
  }
56
56
 
57
+ export type TestLdaptestAuthenticationRequest = {
58
+ bindDn?: string
59
+ bindCredential?: string
60
+ connectionUrl?: string
61
+ connectionTimeout?: string
62
+ action?: string
63
+ startTls?: string
64
+ useTruststoreSpi?: string
65
+ componentId?: string
66
+ }
67
+
68
+ export type TestLdaptestAuthenticationResponse = {
69
+ }
70
+
57
71
  export type UpdateLdapRequest = {
58
72
  id?: string
59
73
  vendor?: string
@@ -156,6 +170,9 @@ export class Ldap {
156
170
  static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
157
171
  return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha1/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req)})
158
172
  }
173
+ static TestLdapAuthentication(req: TestLdaptestAuthenticationRequest, initReq?: fm.InitReq): Promise<TestLdaptestAuthenticationResponse> {
174
+ return fm.fetchReq<TestLdaptestAuthenticationRequest, TestLdaptestAuthenticationResponse>(`/apis/ghippo.io/v1alpha1/testLdapAuthentication`, {...initReq, method: "POST", body: JSON.stringify(req)})
175
+ }
159
176
  static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
160
177
  return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
161
178
  }
@@ -229,16 +229,6 @@ export type ListMembersRolesByFolderResponse = {
229
229
  pagination?: Pagination
230
230
  }
231
231
 
232
- export type ListMembersRolesResourcesRequest = {
233
- page?: number
234
- pageSize?: number
235
- }
236
-
237
- export type ListMembersRolesResourcesResponse = {
238
- items?: MemberRoleWorkspaceInfo[]
239
- pagination?: Pagination
240
- }
241
-
242
232
  export type ResourceInfo = {
243
233
  name?: string
244
234
  type?: string
@@ -379,9 +369,6 @@ export class Workspace {
379
369
  static ListMembersRolesByFolder(req: ListMembersRolesByFolderRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByFolderResponse> {
380
370
  return fm.fetchReq<ListMembersRolesByFolderRequest, ListMembersRolesByFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
381
371
  }
382
- static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
383
- return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
384
- }
385
372
  static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
386
373
  return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
387
374
  }