@daocloud-proto/ghippo 0.45.0-dev4 → 0.45.0-dev6
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 +1 -1
- package/v1alpha1/user.pb.ts +15 -0
- package/v1alpha1/workspace.pb.ts +3 -0
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -275,6 +275,18 @@ export type UpdateUserCertifyRequest = {
|
|
|
275
275
|
export type UpdateUserCertifyResponse = {
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
export type ListUsersByAttributeAndSearchRequest = {
|
|
279
|
+
attribute?: {[key: string]: string}
|
|
280
|
+
search?: string
|
|
281
|
+
page?: number
|
|
282
|
+
pageSize?: number
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type ListUsersByAttributeAndSearchResponse = {
|
|
286
|
+
pagination?: Pagination
|
|
287
|
+
items?: GetUserResponse[]
|
|
288
|
+
}
|
|
289
|
+
|
|
278
290
|
export class Users {
|
|
279
291
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
280
292
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -342,4 +354,7 @@ export class Users {
|
|
|
342
354
|
static GetUserCertifyInfo(req: GetUserCertifyInfoRequest, initReq?: fm.InitReq): Promise<GetUserCertifyInfoResponse> {
|
|
343
355
|
return fm.fetchReq<GetUserCertifyInfoRequest, GetUserCertifyInfoResponse>(`/v1alpha1.user.Users/GetUserCertifyInfo`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
344
356
|
}
|
|
357
|
+
static ListUsersByAttributeAndSearch(req: ListUsersByAttributeAndSearchRequest, initReq?: fm.InitReq): Promise<ListUsersByAttributeAndSearchResponse> {
|
|
358
|
+
return fm.fetchReq<ListUsersByAttributeAndSearchRequest, ListUsersByAttributeAndSearchResponse>(`/v1alpha1.user.Users/ListUsersByAttributeAndSearch`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
359
|
+
}
|
|
345
360
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -543,6 +543,9 @@ export class Workspace {
|
|
|
543
543
|
static BindExclusiveResourceToWorkspaceWithoutAuthz(req: BindExclusiveResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindExclusiveResourceToWorkspaceResponse> {
|
|
544
544
|
return fm.fetchReq<BindExclusiveResourceToWorkspaceRequest, BindExclusiveResourceToWorkspaceResponse>(`/v1alpha1.workspace.Workspace/BindExclusiveResourceToWorkspaceWithoutAuthz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
545
545
|
}
|
|
546
|
+
static UnbindResourceFromWorkspaceWithoutAuthz(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
547
|
+
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/v1alpha1.workspace.Workspace/UnbindResourceFromWorkspaceWithoutAuthz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
548
|
+
}
|
|
546
549
|
static BindSharedResourceToWorkspace(req: BindSharedResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindSharedResourceToWorkspaceResponse> {
|
|
547
550
|
return fm.fetchReq<BindSharedResourceToWorkspaceRequest, BindSharedResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-sharedresource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
548
551
|
}
|