@daocloud-proto/ghippo 0.6.16 → 0.6.19

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/ghippo",
3
- "version":"0.6.16",
3
+ "version":"0.6.19",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -27,7 +27,6 @@ export type ListOpenSourcesResponse = {
27
27
  export type OpenSource = {
28
28
  name?: string
29
29
  license?: string
30
- second?: boolean
31
30
  }
32
31
 
33
32
  export type ListGProductVersionsRequest = {
@@ -0,0 +1,81 @@
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
+ export type ListGProductLicensesRequest = {
9
+ }
10
+
11
+ export type ListGProductLicensesResponse = {
12
+ licenses?: GProductLicense[]
13
+ }
14
+
15
+ export type GetGProductLicensesRequest = {
16
+ name?: string
17
+ }
18
+
19
+ export type GetGProductLicensesResponse = {
20
+ license?: GProductLicense
21
+ }
22
+
23
+ export type UpdateGProductLicensesRequest = {
24
+ yaml?: string
25
+ }
26
+
27
+ export type UpdateGProductLicensesResponse = {
28
+ message?: string
29
+ }
30
+
31
+ export type GetGProductLicenseYamlRequest = {
32
+ name?: string
33
+ }
34
+
35
+ export type GetGProductLicenseYamlResponse = {
36
+ yaml?: string
37
+ }
38
+
39
+ export type DeleteProductLicensesRequest = {
40
+ name?: string
41
+ }
42
+
43
+ export type DeleteProductLicensesResponse = {
44
+ }
45
+
46
+ export type GetGProductLicensesESNRequest = {
47
+ }
48
+
49
+ export type GetGProductLicensesESNResponse = {
50
+ esn?: string
51
+ }
52
+
53
+ export type GProductLicense = {
54
+ name?: string
55
+ alias?: string
56
+ product_name?: string
57
+ tier?: string
58
+ status?: string
59
+ expired_at?: string
60
+ }
61
+
62
+ export class GProducts {
63
+ static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
64
+ return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
65
+ }
66
+ static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
67
+ return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
68
+ }
69
+ static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
70
+ return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
71
+ }
72
+ static GetGProductLicensesYaml(req: GetGProductLicenseYamlRequest, initReq?: fm.InitReq): Promise<GetGProductLicenseYamlResponse> {
73
+ return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
74
+ }
75
+ static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
76
+ return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}`, {...initReq, method: "DELETE"})
77
+ }
78
+ static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
79
+ return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
80
+ }
81
+ }
@@ -121,7 +121,7 @@ export type GroupSubject = {
121
121
  id?: string
122
122
  role_id?: string
123
123
  type?: string
124
- name?: string
124
+ role_name?: string
125
125
  subject_name?: string
126
126
  }
127
127
 
@@ -31,6 +31,26 @@ export type ListRolesResponse = {
31
31
  roles?: RoleInfo[]
32
32
  }
33
33
 
34
+ export type WorkspaceRoleInfo = {
35
+ id?: number
36
+ name?: string
37
+ description?: string
38
+ type?: string
39
+ auth_scope?: string
40
+ gproduct?: string
41
+ permissions?: string
42
+ }
43
+
44
+ export type ListWorkspaceRolesRequest = {
45
+ offset?: number
46
+ size?: number
47
+ }
48
+
49
+ export type ListWorkspaceRolesResponse = {
50
+ total?: number
51
+ workspaceroles?: WorkspaceRoleInfo[]
52
+ }
53
+
34
54
  export type GetRoleRequest = {
35
55
  id?: string
36
56
  }
@@ -91,6 +111,7 @@ export type ListRoleSubjectsRequest = {
91
111
  id?: string
92
112
  offset?: number
93
113
  size?: number
114
+ search?: string
94
115
  }
95
116
 
96
117
  export type ListRoleSubjectsResponse = {
@@ -102,13 +123,16 @@ export type Subject = {
102
123
  id?: string
103
124
  role_id?: string
104
125
  type?: string
105
- name?: string
126
+ subject_name?: string
106
127
  }
107
128
 
108
129
  export class Role {
109
130
  static ListRoles(req: ListRolesRequest, initReq?: fm.InitReq): Promise<ListRolesResponse> {
110
131
  return fm.fetchReq<ListRolesRequest, ListRolesResponse>(`/apis/ghippo.io/v1alpha1/roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
111
132
  }
133
+ static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
134
+ return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
135
+ }
112
136
  static GetRole(req: GetRoleRequest, initReq?: fm.InitReq): Promise<GetRoleResponse> {
113
137
  return fm.fetchReq<GetRoleRequest, GetRoleResponse>(`/apis/ghippo.io/v1alpha1/roles/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
114
138
  }
@@ -131,7 +131,7 @@ export type UserSubject = {
131
131
  id?: string
132
132
  role_id?: string
133
133
  type?: string
134
- name?: string
134
+ role_name?: string
135
135
  subject_name?: string
136
136
  }
137
137
 
@@ -64,7 +64,7 @@ export type UnbindResourceFromWorkspaceResponse = {
64
64
  export type CreateWorkspaceRequest = {
65
65
  name?: string
66
66
  alias?: string
67
- parent_workspace_id?: number
67
+ parent_folder_id?: number
68
68
  }
69
69
 
70
70
  export type CreateWorkspaceResponse = {