@daocloud-proto/zestu 0.10.0-dev-8d2016c5 → 0.10.0-dev-6c648ec1

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-8d2016c5",
3
+ "version":"v0.10.0-dev-6c648ec1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,6 +25,10 @@ export type ListSubAccountsResponse = {
25
25
  pagination?: ZestuIoApiTypesPage.Pagination
26
26
  }
27
27
 
28
+ export type GetSubAccountRequest = {
29
+ name?: string
30
+ }
31
+
28
32
  export type GetSubAccountResponse = {
29
33
  id?: string
30
34
  name?: string
@@ -174,6 +174,9 @@ export class User {
174
174
  static ListSubAccounts(req: ZestuIoApiUserV1alpha1User.ListSubAccountsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.ListSubAccountsResponse> {
175
175
  return fm.fetchReq<ZestuIoApiUserV1alpha1User.ListSubAccountsRequest, ZestuIoApiUserV1alpha1User.ListSubAccountsResponse>(`/apis/zestu.io/v1/subaccounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
176
176
  }
177
+ static GetSubAccount(req: ZestuIoApiUserV1alpha1User.GetSubAccountRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.GetSubAccountResponse> {
178
+ return fm.fetchReq<ZestuIoApiUserV1alpha1User.GetSubAccountRequest, ZestuIoApiUserV1alpha1User.GetSubAccountResponse>(`/apis/zestu.io/v1/subaccount/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
179
+ }
177
180
  }
178
181
  export class Registry {
179
182
  static GetRegistryDetail(req: ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse> {