@daocloud-proto/ghippo 0.50.0 → 0.51.0-rc1

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.50.0",
3
+ "version":"0.51.0-rc1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -16,6 +16,7 @@ export type ListUsersRequest = {
16
16
  search?: string
17
17
  pageSize?: number
18
18
  page?: number
19
+ id?: string
19
20
  }
20
21
 
21
22
  export type ListUsersResponse = {
@@ -287,6 +288,18 @@ export type ListUsersByAttributeAndSearchResponse = {
287
288
  items?: GetUserResponse[]
288
289
  }
289
290
 
291
+ export type CreateRegistrationUserRequest = {
292
+ name?: string
293
+ password?: string
294
+ description?: string
295
+ temporary?: boolean
296
+ phone?: string
297
+ }
298
+
299
+ export type CreateRegistrationUserResponse = {
300
+ id?: string
301
+ }
302
+
290
303
  export class Users {
291
304
  static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
292
305
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -306,6 +319,9 @@ export class Users {
306
319
  static CreateUser(req: CreateUserRequest, initReq?: fm.InitReq): Promise<CreateUserResponse> {
307
320
  return fm.fetchReq<CreateUserRequest, CreateUserResponse>(`/apis/ghippo.io/v1alpha1/users`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
308
321
  }
322
+ static CreateRegistrationUser(req: CreateRegistrationUserRequest, initReq?: fm.InitReq): Promise<CreateRegistrationUserResponse> {
323
+ return fm.fetchReq<CreateRegistrationUserRequest, CreateRegistrationUserResponse>(`/apis/ghippo.io/v1alpha1/users/registration`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
324
+ }
309
325
  static CreateUserWithoutPassword(req: CreateUserWithoutPasswordRequest, initReq?: fm.InitReq): Promise<CreateUserWithoutPasswordResponse> {
310
326
  return fm.fetchReq<CreateUserWithoutPasswordRequest, CreateUserWithoutPasswordResponse>(`/apis/ghippo.io/v1alpha1/users/without-password`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
311
327
  }
@@ -564,6 +564,20 @@ export type ResourceQuotaTypeKey = {
564
564
  descriptionZh?: string
565
565
  }
566
566
 
567
+ export type ListWorkspaceMembersRequest = {
568
+ workspaceIds?: number[]
569
+ roleNames?: string[]
570
+ }
571
+
572
+ export type ListWorkspaceMembersResponse = {
573
+ items?: WorkspaceMembers[]
574
+ }
575
+
576
+ export type WorkspaceMembers = {
577
+ workspaceId?: number
578
+ members?: MemberRoleWorkspaceInfo[]
579
+ }
580
+
567
581
  export class Workspace {
568
582
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
569
583
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -607,6 +621,9 @@ export class Workspace {
607
621
  static ListMembersRolesByWorkspace(req: ListMembersRolesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByWorkspaceResponse> {
608
622
  return fm.fetchReq<ListMembersRolesByWorkspaceRequest, ListMembersRolesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/members-roles?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
609
623
  }
624
+ static ListWorkspaceMembers(req: ListWorkspaceMembersRequest, initReq?: fm.InitReq): Promise<ListWorkspaceMembersResponse> {
625
+ return fm.fetchReq<ListWorkspaceMembersRequest, ListWorkspaceMembersResponse>(`/v1alpha1.workspace.Workspace/ListWorkspaceMembers`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
626
+ }
610
627
  static ListFolders(req: ListFoldersRequest, initReq?: fm.InitReq): Promise<ListFoldersResponse> {
611
628
  return fm.fetchReq<ListFoldersRequest, ListFoldersResponse>(`/apis/ghippo.io/v1alpha1/folders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
612
629
  }