@daocloud-proto/zestu 0.1.0-dev-a3c10faa → 0.1.0-dev-7b3a64bb

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.1.0-dev-a3c10faa",
3
+ "version":"v0.1.0-dev-7b3a64bb",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,23 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type ListPublicImagesRequest = {
7
+ regionId?: string
8
+ }
9
+
10
+ export type ListPublicImagesResponse = {
11
+ data?: Children[]
12
+ }
13
+
14
+ export type Detail = {
15
+ url?: string
16
+ description?: string
17
+ }
18
+
19
+ export type Children = {
20
+ key?: string
21
+ children?: Children[]
22
+ images?: Detail[]
23
+ }
@@ -8,6 +8,7 @@ import * as fm from "../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
9
9
  import * as ZestuIoApiContainerinstanceV1alpha1Containerinstance from "../containerinstance/v1alpha1/containerinstance.pb"
10
10
  import * as ZestuIoApiFile_storageV1alpha1Storage from "../file_storage/v1alpha1/storage.pb"
11
+ import * as ZestuIoApiImageV1alpha1Image from "../image/v1alpha1/image.pb"
11
12
  import * as ZestuIoApiRegionV1alpha1Region from "../region/v1alpha1/region.pb"
12
13
  import * as ZestuIoApiResourcesV1alpha1Resources from "../resources/v1alpha1/resources.pb"
13
14
  export class ContainerInstance {
@@ -68,4 +69,9 @@ export class FileStorage {
68
69
  static DeleteFile(req: ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
69
70
  return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/file`, {...initReq, method: "DELETE"})
70
71
  }
72
+ }
73
+ export class Image {
74
+ static ListPublicImages(req: ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse> {
75
+ return fm.fetchReq<ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/public-images?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
76
+ }
71
77
  }