@daocloud-proto/ghippo 0.42.0-dev11 → 0.42.0-dev12
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/account.pb.ts +18 -0
package/package.json
CHANGED
package/v1alpha1/account.pb.ts
CHANGED
|
@@ -5,6 +5,21 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
|
+
export type ListCurrentMembersRequest = {
|
|
9
|
+
page?: number
|
|
10
|
+
pageSize?: number
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ListCurrentMembersResponse = {
|
|
14
|
+
items?: AccountInfo[]
|
|
15
|
+
pagination?: Pagination
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type AccountInfo = {
|
|
19
|
+
id?: string
|
|
20
|
+
name?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
8
23
|
export type ListSubAccountsRequest = {
|
|
9
24
|
search?: string
|
|
10
25
|
pageSize?: number
|
|
@@ -248,4 +263,7 @@ export class Accounts {
|
|
|
248
263
|
static ListSubAccountSSHKeys(req: ListSubAccountSSHKeysRequest, initReq?: fm.InitReq): Promise<ListSubAccountSSHKeysResponse> {
|
|
249
264
|
return fm.fetchReq<ListSubAccountSSHKeysRequest, ListSubAccountSSHKeysResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts/${req["id"]}/sshkeys?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
250
265
|
}
|
|
266
|
+
static ListCurrentMembers(req: ListCurrentMembersRequest, initReq?: fm.InitReq): Promise<ListCurrentMembersResponse> {
|
|
267
|
+
return fm.fetchReq<ListCurrentMembersRequest, ListCurrentMembersResponse>(`/apis/ghippo.io/v1alpha1/accounts/current/members?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
268
|
+
}
|
|
251
269
|
}
|