@daocloud-proto/ghippo 0.42.0-dev2 → 0.42.0-dev3

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.42.0-dev2",
3
+ "version":"0.42.0-dev3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -192,6 +192,10 @@ export type CheckSubAccountResponse = {
192
192
  isSubAccount?: boolean
193
193
  }
194
194
 
195
+ export type GetSubAccountByUsernameRequest = {
196
+ username?: string
197
+ }
198
+
195
199
  export class Accounts {
196
200
  static TransferToMainAccount(req: TransferToMainAccountRequest, initReq?: fm.InitReq): Promise<TransferToMainAccountResponse> {
197
201
  return fm.fetchReq<TransferToMainAccountRequest, TransferToMainAccountResponse>(`/apis/ghippo.io/v1alpha1/accounts/transfer-main`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -202,6 +206,9 @@ export class Accounts {
202
206
  static CheckSubAccount(req: CheckSubAccountRequest, initReq?: fm.InitReq): Promise<CheckSubAccountResponse> {
203
207
  return fm.fetchReq<CheckSubAccountRequest, CheckSubAccountResponse>(`/v1alpha1.account.Accounts/CheckSubAccount`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
204
208
  }
209
+ static GetSubAccountByUsername(req: GetSubAccountByUsernameRequest, initReq?: fm.InitReq): Promise<GetSubAccountResponse> {
210
+ return fm.fetchReq<GetSubAccountByUsernameRequest, GetSubAccountResponse>(`/v1alpha1.account.Accounts/GetSubAccountByUsername`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
211
+ }
205
212
  static GetSubAccount(req: GetSubAccountRequest, initReq?: fm.InitReq): Promise<GetSubAccountResponse> {
206
213
  return fm.fetchReq<GetSubAccountRequest, GetSubAccountResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
207
214
  }
@@ -111,6 +111,9 @@ export type GetUserResponse = {
111
111
  isSubAccount?: boolean
112
112
  firstname?: string
113
113
  lastname?: string
114
+ mainAccountId?: string
115
+ mainAccountName?: string
116
+ mainAccountWorkspace?: string
114
117
  }
115
118
 
116
119
  export type ListAccessTokensRequest = {