@daocloud-proto/kangaroo 0.5.0-4 → 0.5.0-40

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.
@@ -3,12 +3,37 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ export enum PermissionsType {
8
+ ScanImage = "ScanImage",
9
+ DeleteImage = "DeleteImage",
10
+ GetImage = "GetImage",
11
+ CreateImageKey = "CreateImageKey",
12
+ CreateConnectedRegistry = "CreateConnectedRegistry",
13
+ DeleteConnectedRegistry = "DeleteConnectedRegistry",
14
+ UpdateConnectedRegistry = "UpdateConnectedRegistry",
15
+ GetConnectedRegistry = "GetConnectedRegistry",
16
+ CreateRegistryIntegration = "CreateRegistryIntegration",
17
+ DeleteRegistryIntegration = "DeleteRegistryIntegration",
18
+ UpdateRegistryIntegration = "UpdateRegistryIntegration",
19
+ GetRegistryIntegration = "GetRegistryIntegration",
20
+ CreateRegistrySpace = "CreateRegistrySpace",
21
+ DeleteRegistrySpace = "DeleteRegistrySpace",
22
+ UpdateRegistrySpace = "UpdateRegistrySpace",
23
+ GetRegistrySpace = "GetRegistrySpace",
24
+ BindRegistrySpace = "BindRegistrySpace",
25
+ CreateManagedHarbor = "CreateManagedHarbor",
26
+ DeleteManagedHarbor = "DeleteManagedHarbor",
27
+ UpdateManagedHarbor = "UpdateManagedHarbor",
28
+ GetManagedHarbor = "GetManagedHarbor",
29
+ }
30
+
6
31
  export type GlobalPermissionsResponse = {
7
- permissions?: string[]
32
+ permissions?: PermissionsType[]
8
33
  }
9
34
 
10
35
  export type WorkspacePermissionsResponse = {
11
- permissions?: string[]
36
+ permissions?: PermissionsType[]
12
37
  }
13
38
 
14
39
  export type WorkspacePermissionsRequest = {
@@ -66,10 +66,17 @@ export type ListProjectRequest = {
66
66
  }
67
67
 
68
68
  export type ListProjectResponse = {
69
- items?: string[]
69
+ items?: ListProjectResponseItem[]
70
70
  pagination?: KangarooIoApiTypesPage.Page
71
71
  }
72
72
 
73
+ export type ListProjectResponseItem = {
74
+ name?: string
75
+ public?: boolean
76
+ total?: string
77
+ createTime?: string
78
+ }
79
+
73
80
  export type Repository = {
74
81
  name?: string
75
82
  public?: boolean
@@ -180,6 +187,10 @@ export type TagInfoResponse = {
180
187
  references?: Reference[]
181
188
  }
182
189
 
190
+ export type TagInfoBuildHistoryResponse = {
191
+ buildHistory?: BuildHistory[]
192
+ }
193
+
183
194
  export type ExtraAttrs = {
184
195
  architecture?: string
185
196
  author?: string
@@ -23,6 +23,9 @@ export class Image {
23
23
  static GetArtifactsInfo(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoResponse> {
24
24
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest"])}`, {...initReq, method: "GET"})
25
25
  }
26
+ static GetArtifactsInfoBuildHistory(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoBuildHistoryResponse> {
27
+ return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoBuildHistoryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/history/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest"])}`, {...initReq, method: "GET"})
28
+ }
26
29
  static DeleteRepositories(req: KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
27
30
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}`, {...initReq, method: "DELETE"})
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.5.0-4",
3
+ "version":"0.5.0-40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {