@daocloud-proto/zestu 0.6.0-dev-801c512a → 0.6.0-dev-6e4b04be

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-801c512a",
3
+ "version":"v0.6.0-dev-6e4b04be",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,4 +124,9 @@ export type GetStoragePriceRequest = {
124
124
 
125
125
  export type GetStoragePriceResponse = {
126
126
  price?: ZestuIoApiResourcesV1alpha1Resources.ResourcePrice
127
+ }
128
+
129
+ export type ForceDecreaseQuotaRequest = {
130
+ regionId?: string
131
+ userNs?: string
127
132
  }
@@ -7,6 +7,8 @@
7
7
  export enum NotifyType {
8
8
  ContainerDeleteWarning = "ContainerDeleteWarning",
9
9
  ContainerDeleted = "ContainerDeleted",
10
+ FileStorageDeleteWarning = "FileStorageDeleteWarning",
11
+ FileStorageDeleted = "FileStorageDeleted",
10
12
  }
11
13
 
12
14
  export type SendShortMessageRequest = {
@@ -95,6 +95,9 @@ export class FileStorage {
95
95
  static GetCurrentUsage(req: ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse> {
96
96
  return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/currentusage?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
97
97
  }
98
+ static ForceDecreaseQuota(req: ZestuIoApiFile_storageV1alpha1Storage.ForceDecreaseQuotaRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
99
+ return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.ForceDecreaseQuotaRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/user/${req["userNs"]}/filestorage/quota`, {...initReq, method: "POST"})
100
+ }
98
101
  }
99
102
  export class StorageResource {
100
103
  static GetStoragePrice(req: ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceResponse> {