@daocloud-proto/zestu 0.10.0-dev-b84d76f4 → 0.10.0-dev-5cb54a49

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/zestu",
3
- "version":"v0.10.0-dev-b84d76f4",
3
+ "version":"v0.10.0-dev-5cb54a49",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,6 +3,8 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ import * as ZestuIoApiTypesPage from "../../types/page.pb"
6
8
  export type GetUserInfoRequest = {
7
9
  }
8
10
 
@@ -10,4 +12,23 @@ export type GetUserInfoResponse = {
10
12
  balance?: string
11
13
  isVerified?: boolean
12
14
  isMain?: boolean
15
+ }
16
+
17
+ export type ListSubAccountsRequest = {
18
+ search?: string
19
+ page?: number
20
+ pageSize?: number
21
+ }
22
+
23
+ export type ListSubAccountsResponse = {
24
+ items?: GetSubAccountResponse[]
25
+ pagination?: ZestuIoApiTypesPage.Pagination
26
+ }
27
+
28
+ export type GetSubAccountResponse = {
29
+ id?: string
30
+ name?: string
31
+ firstname?: string
32
+ lastname?: string
33
+ enabled?: boolean
13
34
  }
@@ -171,6 +171,9 @@ export class User {
171
171
  static GetUserInfo(req: ZestuIoApiUserV1alpha1User.GetUserInfoRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.GetUserInfoResponse> {
172
172
  return fm.fetchReq<ZestuIoApiUserV1alpha1User.GetUserInfoRequest, ZestuIoApiUserV1alpha1User.GetUserInfoResponse>(`/apis/zestu.io/v1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
173
173
  }
174
+ static ListSubAccounts(req: ZestuIoApiUserV1alpha1User.ListSubAccountsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.ListSubAccountsResponse> {
175
+ return fm.fetchReq<ZestuIoApiUserV1alpha1User.ListSubAccountsRequest, ZestuIoApiUserV1alpha1User.ListSubAccountsResponse>(`/apis/zestu.io/v1/subaccounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
176
+ }
174
177
  }
175
178
  export class Registry {
176
179
  static GetRegistryDetail(req: ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse> {