@daocloud-proto/ghippo 0.6.0 → 0.6.1
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 +1 -1
- package/v1alpha1/about.pb.ts +24 -0
- package/v1alpha1/role.pb.ts +7 -1
- package/v1alpha1/smtpsetting.pb.ts +3 -3
- package/v1alpha1/workspace.pb.ts +32 -0
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
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 ListDevelopersRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type ListDevelopersResponse = {
|
|
12
|
+
data?: Developer[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type Developer = {
|
|
16
|
+
name?: string
|
|
17
|
+
message?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class About {
|
|
21
|
+
static ListDevelopers(req: ListDevelopersRequest, initReq?: fm.InitReq): Promise<ListDevelopersResponse> {
|
|
22
|
+
return fm.fetchReq<ListDevelopersRequest, ListDevelopersResponse>(`/apis/ghippo.io/v1alpha1/about/developers?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
23
|
+
}
|
|
24
|
+
}
|
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -5,10 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
|
+
|
|
9
|
+
export enum roleType {
|
|
10
|
+
system = "system",
|
|
11
|
+
custom = "custom",
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
export type RoleInfo = {
|
|
9
15
|
id?: string
|
|
10
16
|
name?: string
|
|
11
|
-
type?:
|
|
17
|
+
type?: roleType
|
|
12
18
|
description?: string
|
|
13
19
|
composite?: boolean
|
|
14
20
|
created_at?: string
|
|
@@ -8,7 +8,7 @@ import * as fm from "../fetch.pb"
|
|
|
8
8
|
export type SetSmtpServerRequest = {
|
|
9
9
|
host?: string
|
|
10
10
|
port?: string
|
|
11
|
-
ssl?:
|
|
11
|
+
ssl?: boolean
|
|
12
12
|
from?: string
|
|
13
13
|
user?: string
|
|
14
14
|
password?: string
|
|
@@ -24,7 +24,7 @@ export type GetSmtpServerRequest = {
|
|
|
24
24
|
export type GetSmtpServerResponse = {
|
|
25
25
|
host?: string
|
|
26
26
|
port?: string
|
|
27
|
-
ssl?:
|
|
27
|
+
ssl?: boolean
|
|
28
28
|
from?: string
|
|
29
29
|
user?: string
|
|
30
30
|
password?: string
|
|
@@ -34,7 +34,7 @@ export type GetSmtpServerResponse = {
|
|
|
34
34
|
export type SmtpConnTestRequest = {
|
|
35
35
|
host?: string
|
|
36
36
|
port?: string
|
|
37
|
-
ssl?:
|
|
37
|
+
ssl?: boolean
|
|
38
38
|
from?: string
|
|
39
39
|
user?: string
|
|
40
40
|
password?: string
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -63,6 +63,29 @@ export type DeleteResourceFromWorkspaceRequest = {
|
|
|
63
63
|
export type DeleteResourceFromWorkspaceResponse = {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export type CreateWorkspaceRequest = {
|
|
67
|
+
name?: string
|
|
68
|
+
parent_workspace_id?: number
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type CreateWorkspaceResponse = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetWorkspaceRequest = {
|
|
75
|
+
workspace_id?: number
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetWorkspaceResponse = {
|
|
79
|
+
workspace?: WorkspaceInfo
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type DeleteWorkspaceRequest = {
|
|
83
|
+
workspace_id?: number
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type DeleteWorkspaceResponse = {
|
|
87
|
+
}
|
|
88
|
+
|
|
66
89
|
export class Workspace {
|
|
67
90
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
68
91
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -76,4 +99,13 @@ export class Workspace {
|
|
|
76
99
|
static DeleteResourceFromWorkspace(req: DeleteResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<DeleteResourceFromWorkspaceResponse> {
|
|
77
100
|
return fm.fetchReq<DeleteResourceFromWorkspaceRequest, DeleteResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}/resources`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
78
101
|
}
|
|
102
|
+
static CreateWorkspace(req: CreateWorkspaceRequest, initReq?: fm.InitReq): Promise<CreateWorkspaceResponse> {
|
|
103
|
+
return fm.fetchReq<CreateWorkspaceRequest, CreateWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
104
|
+
}
|
|
105
|
+
static GetWorkspace(req: GetWorkspaceRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResponse> {
|
|
106
|
+
return fm.fetchReq<GetWorkspaceRequest, GetWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}?${fm.renderURLSearchParams(req, ["workspace_id"])}`, {...initReq, method: "GET"})
|
|
107
|
+
}
|
|
108
|
+
static DeleteWorkspace(req: DeleteWorkspaceRequest, initReq?: fm.InitReq): Promise<DeleteWorkspaceResponse> {
|
|
109
|
+
return fm.fetchReq<DeleteWorkspaceRequest, DeleteWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}`, {...initReq, method: "DELETE"})
|
|
110
|
+
}
|
|
79
111
|
}
|