@daocloud-proto/zestu 0.6.0-dev-b70a07d5 → 0.6.0-dev-3506a8b8

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.6.0-dev-b70a07d5",
3
+ "version":"v0.6.0-dev-3506a8b8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -151,7 +151,10 @@ export type CreateContainerInstanceResponse = {
151
151
 
152
152
  export type ChargeInfo = {
153
153
  chargeMode?: ZestuIoApiTypesTypes.BillingType
154
- duration?: number
154
+ chargeDuration?: number
155
+ enableRenew?: boolean
156
+ renewMode?: ZestuIoApiTypesTypes.BillingType
157
+ renewDuration?: number
155
158
  }
156
159
 
157
160
  export type InstanceSpec = {
@@ -116,4 +116,13 @@ export type DeleteArtifactRequest = {
116
116
  export type UpdateUserPasswordRequest = {
117
117
  regionId?: string
118
118
  password?: string
119
+ }
120
+
121
+ export type CheckUserNameExistsRequest = {
122
+ regionId?: string
123
+ username?: string
124
+ }
125
+
126
+ export type CheckUserNameExistsResponse = {
127
+ exists?: boolean
119
128
  }
@@ -85,6 +85,7 @@ export type ResourcePrice = {
85
85
 
86
86
  export type ListResourceModelRequest = {
87
87
  regionId?: string
88
+ billingType?: ZestuIoApiTypesTypes.BillingType
88
89
  }
89
90
 
90
91
  export type ListResourceModelResponse = {
@@ -12,7 +12,11 @@ export enum ConditionStatus {
12
12
  }
13
13
 
14
14
  export enum BillingType {
15
- PayAsYouGo = "PayAsYouGo",
15
+ PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
16
+ SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
17
+ SUBSCRIPTION_WEEKLY = "SUBSCRIPTION_WEEKLY",
18
+ SUBSCRIPTION_MONTHLY = "SUBSCRIPTION_MONTHLY",
19
+ SUBSCRIPTION_YEARLY = "SUBSCRIPTION_YEARLY",
16
20
  }
17
21
 
18
22
  export enum UnitType {
@@ -172,4 +172,7 @@ export class Registry {
172
172
  static UpdateUserPassword(req: ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
173
173
  return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
174
174
  }
175
+ static CheckUserNameExists(req: ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse> {
176
+ return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/checkusername`, {...initReq, method: "POST", body: JSON.stringify(req)})
177
+ }
175
178
  }