@daocloud-proto/kangaroo 0.5.0-232 → 0.5.0-236

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.
@@ -0,0 +1,9 @@
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 Any = {
7
+ typeUrl?: string
8
+ value?: Uint8Array
9
+ }
@@ -70,6 +70,7 @@ export type ListProjectRequest = {
70
70
  registry?: string
71
71
  page?: number
72
72
  pageSize?: number
73
+ fuzzyName?: string
73
74
  }
74
75
 
75
76
  export type GetProjectRequest = {
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as fm from "../../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
9
+ import * as KangarooIoApiUploadV1alpha1Upload from "./upload.pb"
10
+ export class Image {
11
+ static UploadOCI(req: KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
12
+ return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/upload`, {...initReq, method: "POST", body: JSON.stringify(req)})
13
+ }
14
+ static DownloadOCI(req: KangarooIoApiUploadV1alpha1Upload.DownloadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
15
+ return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.DownloadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/download?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
16
+ }
17
+ }
@@ -0,0 +1,15 @@
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 UploadOCIRequest = {
7
+ registry?: string
8
+ imageUrl?: string
9
+ file?: Uint8Array
10
+ }
11
+
12
+ export type DownloadOCIRequest = {
13
+ registry?: string
14
+ imageUrl?: string
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.5.0-232",
3
+ "version":"0.5.0-236",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {