@daocloud-proto/ghippo 0.17.0-dev-4 → 0.17.0-dev6
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/keycloakevent.pb.ts +37 -0
- package/v1alpha1/theme.pb.ts +33 -0
- package/v1alpha1/webhook.pb.ts +178 -0
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
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 AuthDetails = {
|
|
9
|
+
clientId?: string
|
|
10
|
+
ipAddress?: string
|
|
11
|
+
realmId?: string
|
|
12
|
+
userId?: string
|
|
13
|
+
username?: string
|
|
14
|
+
sessionId?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type KeycloakEventRequest = {
|
|
18
|
+
realmId?: string
|
|
19
|
+
resourceType?: string
|
|
20
|
+
operationType?: string
|
|
21
|
+
resourcePath?: string
|
|
22
|
+
representation?: string
|
|
23
|
+
uid?: string
|
|
24
|
+
authDetails?: AuthDetails
|
|
25
|
+
type?: string
|
|
26
|
+
details?: {[key: string]: string}
|
|
27
|
+
error?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type KeycloakEventResponse = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class KeycloakEvent {
|
|
34
|
+
static KeycloakEvent(req: KeycloakEventRequest, initReq?: fm.InitReq): Promise<KeycloakEventResponse> {
|
|
35
|
+
return fm.fetchReq<KeycloakEventRequest, KeycloakEventResponse>(`/apis/ghippo.io/v1alpha1/keycloak-event`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
36
|
+
}
|
|
37
|
+
}
|
package/v1alpha1/theme.pb.ts
CHANGED
|
@@ -60,6 +60,30 @@ export type ResetLoginThemeConfigRequest = {
|
|
|
60
60
|
export type ResetLoginThemeConfigResponse = {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export type GetFooterThemeConfigRequest = {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type GetFooterThemeConfigResponse = {
|
|
67
|
+
id?: string
|
|
68
|
+
name?: string
|
|
69
|
+
css?: string
|
|
70
|
+
createdAt?: string
|
|
71
|
+
updatedAt?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type SetFooterThemeConfigRequest = {
|
|
75
|
+
css?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type SetFooterThemeConfigResponse = {
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ResetFooterThemeConfigRequest = {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type ResetFooterThemeConfigResponse = {
|
|
85
|
+
}
|
|
86
|
+
|
|
63
87
|
export class Theme {
|
|
64
88
|
static GetThemeCSS(req: GetThemeCSSRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
65
89
|
return fm.fetchReq<GetThemeCSSRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha1/themes/theme.css?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -85,4 +109,13 @@ export class Theme {
|
|
|
85
109
|
static ResetLoginThemeConfig(req: ResetLoginThemeConfigRequest, initReq?: fm.InitReq): Promise<ResetLoginThemeConfigResponse> {
|
|
86
110
|
return fm.fetchReq<ResetLoginThemeConfigRequest, ResetLoginThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/login_page/reset`, {...initReq, method: "POST"})
|
|
87
111
|
}
|
|
112
|
+
static GetFooterThemeConfig(req: GetFooterThemeConfigRequest, initReq?: fm.InitReq): Promise<GetFooterThemeConfigResponse> {
|
|
113
|
+
return fm.fetchReq<GetFooterThemeConfigRequest, GetFooterThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/footer-theme?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
114
|
+
}
|
|
115
|
+
static SetFooterThemeConfig(req: SetFooterThemeConfigRequest, initReq?: fm.InitReq): Promise<SetFooterThemeConfigResponse> {
|
|
116
|
+
return fm.fetchReq<SetFooterThemeConfigRequest, SetFooterThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/footer-theme`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
117
|
+
}
|
|
118
|
+
static ResetFooterThemeConfig(req: ResetFooterThemeConfigRequest, initReq?: fm.InitReq): Promise<ResetFooterThemeConfigResponse> {
|
|
119
|
+
return fm.fetchReq<ResetFooterThemeConfigRequest, ResetFooterThemeConfigResponse>(`/apis/ghippo.io/v1alpha1/themes/footer/reset`, {...initReq, method: "POST"})
|
|
120
|
+
}
|
|
88
121
|
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
|
|
9
|
+
export enum ResourceType {
|
|
10
|
+
resource_type_user = "resource_type_user",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum Action {
|
|
14
|
+
action_create = "action_create",
|
|
15
|
+
action_update = "action_update",
|
|
16
|
+
action_delete = "action_delete",
|
|
17
|
+
action_login = "action_login",
|
|
18
|
+
action_logout = "action_logout",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum Method {
|
|
22
|
+
method_get = "method_get",
|
|
23
|
+
method_post = "method_post",
|
|
24
|
+
method_put = "method_put",
|
|
25
|
+
method_delete = "method_delete",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum Status {
|
|
29
|
+
all = "all",
|
|
30
|
+
successful = "successful",
|
|
31
|
+
failed = "failed",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export enum StatusResponse {
|
|
35
|
+
response_unknown = "response_unknown",
|
|
36
|
+
response_successful = "response_successful",
|
|
37
|
+
response_failed = "response_failed",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type WebhookInfo = {
|
|
41
|
+
id?: number
|
|
42
|
+
name?: string
|
|
43
|
+
clientId?: string
|
|
44
|
+
resourceType?: ResourceType
|
|
45
|
+
action?: Action
|
|
46
|
+
url?: string
|
|
47
|
+
method?: Method
|
|
48
|
+
headers?: string
|
|
49
|
+
requestParameter?: string
|
|
50
|
+
createdAt?: string
|
|
51
|
+
updatedAt?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type Pagination = {
|
|
55
|
+
page?: number
|
|
56
|
+
pageSize?: number
|
|
57
|
+
total?: number
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type CreateWebhookRequest = {
|
|
61
|
+
name?: string
|
|
62
|
+
clientId?: string
|
|
63
|
+
resourceType?: ResourceType
|
|
64
|
+
action?: Action
|
|
65
|
+
url?: string
|
|
66
|
+
method?: Method
|
|
67
|
+
headers?: string
|
|
68
|
+
requestParameter?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type CreateWebhookResponse = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetWebhookRequest = {
|
|
75
|
+
id?: number
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetWebhookResponse = {
|
|
79
|
+
webhookInfo?: WebhookInfo
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type ListWebhooksRequest = {
|
|
83
|
+
search?: string
|
|
84
|
+
pageSize?: number
|
|
85
|
+
page?: number
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type ListWebhooksResponse = {
|
|
89
|
+
items?: WebhookInfo[]
|
|
90
|
+
pagination?: Pagination
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type UpdateWebhookRequest = {
|
|
94
|
+
id?: number
|
|
95
|
+
name?: string
|
|
96
|
+
clientId?: string
|
|
97
|
+
resourceType?: ResourceType
|
|
98
|
+
action?: Action
|
|
99
|
+
url?: string
|
|
100
|
+
method?: Method
|
|
101
|
+
headers?: string
|
|
102
|
+
requestParameter?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type UpdateWebhookResponse = {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type DeleteWebhookRequest = {
|
|
109
|
+
id?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type DeleteWebhookResponse = {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export type WebhookRecordInfo = {
|
|
116
|
+
id?: number
|
|
117
|
+
clientId?: string
|
|
118
|
+
webhookId?: number
|
|
119
|
+
webhookName?: string
|
|
120
|
+
resourceType?: ResourceType
|
|
121
|
+
action?: Action
|
|
122
|
+
url?: string
|
|
123
|
+
method?: Method
|
|
124
|
+
eventTime?: string
|
|
125
|
+
eventData?: string
|
|
126
|
+
statusCode?: number
|
|
127
|
+
status?: StatusResponse
|
|
128
|
+
requestedAt?: string
|
|
129
|
+
request?: string
|
|
130
|
+
respondedAt?: string
|
|
131
|
+
response?: string
|
|
132
|
+
errMessage?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetWebhookRecordRequest = {
|
|
136
|
+
id?: number
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetWebhookRecordResponse = {
|
|
140
|
+
webhookRecordInfo?: WebhookRecordInfo
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ListWebhookRecordsRequest = {
|
|
144
|
+
clientId?: string
|
|
145
|
+
search?: string
|
|
146
|
+
status?: Status
|
|
147
|
+
pageSize?: number
|
|
148
|
+
page?: number
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type ListWebhookRecordsResponse = {
|
|
152
|
+
items?: WebhookRecordInfo[]
|
|
153
|
+
pagination?: Pagination
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export class Webhook {
|
|
157
|
+
static CreateWebhook(req: CreateWebhookRequest, initReq?: fm.InitReq): Promise<CreateWebhookResponse> {
|
|
158
|
+
return fm.fetchReq<CreateWebhookRequest, CreateWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
159
|
+
}
|
|
160
|
+
static GetWebhook(req: GetWebhookRequest, initReq?: fm.InitReq): Promise<GetWebhookResponse> {
|
|
161
|
+
return fm.fetchReq<GetWebhookRequest, GetWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
162
|
+
}
|
|
163
|
+
static ListWebhooks(req: ListWebhooksRequest, initReq?: fm.InitReq): Promise<ListWebhooksResponse> {
|
|
164
|
+
return fm.fetchReq<ListWebhooksRequest, ListWebhooksResponse>(`/apis/ghippo.io/v1alpha1/webhook?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
165
|
+
}
|
|
166
|
+
static UpdateWebhook(req: UpdateWebhookRequest, initReq?: fm.InitReq): Promise<UpdateWebhookResponse> {
|
|
167
|
+
return fm.fetchReq<UpdateWebhookRequest, UpdateWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
168
|
+
}
|
|
169
|
+
static DeleteWebhook(req: DeleteWebhookRequest, initReq?: fm.InitReq): Promise<DeleteWebhookResponse> {
|
|
170
|
+
return fm.fetchReq<DeleteWebhookRequest, DeleteWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
171
|
+
}
|
|
172
|
+
static GetWebhookRecord(req: GetWebhookRecordRequest, initReq?: fm.InitReq): Promise<GetWebhookRecordResponse> {
|
|
173
|
+
return fm.fetchReq<GetWebhookRecordRequest, GetWebhookRecordResponse>(`/apis/ghippo.io/v1alpha1/webhook-record/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
174
|
+
}
|
|
175
|
+
static ListWebhookRecords(req: ListWebhookRecordsRequest, initReq?: fm.InitReq): Promise<ListWebhookRecordsResponse> {
|
|
176
|
+
return fm.fetchReq<ListWebhookRecordsRequest, ListWebhookRecordsResponse>(`/apis/ghippo.io/v1alpha1/webhook-record?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
177
|
+
}
|
|
178
|
+
}
|