@daocloud-proto/ghippo 0.17.0-dev-4 → 0.17.0-dev-9

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.17.0-dev-4",
3
+ "version":"0.17.0-dev-9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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
+ }
@@ -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,179 @@
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 ListWebhooksByClientIdRequest = {
83
+ search?: string
84
+ pageSize?: number
85
+ page?: number
86
+ clientId?: string
87
+ }
88
+
89
+ export type ListWebhooksByClientIdResponse = {
90
+ items?: WebhookInfo[]
91
+ pagination?: Pagination
92
+ }
93
+
94
+ export type UpdateWebhookRequest = {
95
+ id?: number
96
+ name?: string
97
+ clientId?: string
98
+ resourceType?: ResourceType
99
+ action?: Action
100
+ url?: string
101
+ method?: Method
102
+ headers?: string
103
+ requestParameter?: string
104
+ }
105
+
106
+ export type UpdateWebhookResponse = {
107
+ }
108
+
109
+ export type DeleteWebhookRequest = {
110
+ id?: number
111
+ }
112
+
113
+ export type DeleteWebhookResponse = {
114
+ }
115
+
116
+ export type WebhookRecordInfo = {
117
+ id?: number
118
+ clientId?: string
119
+ webhookId?: number
120
+ webhookName?: string
121
+ resourceType?: ResourceType
122
+ action?: Action
123
+ url?: string
124
+ method?: Method
125
+ eventTime?: string
126
+ eventData?: string
127
+ statusCode?: number
128
+ status?: StatusResponse
129
+ requestedAt?: string
130
+ request?: string
131
+ respondedAt?: string
132
+ response?: string
133
+ errMessage?: string
134
+ }
135
+
136
+ export type GetWebhookRecordRequest = {
137
+ id?: number
138
+ }
139
+
140
+ export type GetWebhookRecordResponse = {
141
+ webhookRecordInfo?: WebhookRecordInfo
142
+ }
143
+
144
+ export type ListWebhookRecordsByClientIdRequest = {
145
+ clientId?: string
146
+ search?: string
147
+ status?: Status
148
+ pageSize?: number
149
+ page?: number
150
+ }
151
+
152
+ export type ListWebhookRecordsByClientIdResponse = {
153
+ items?: WebhookRecordInfo[]
154
+ pagination?: Pagination
155
+ }
156
+
157
+ export class Webhook {
158
+ static CreateWebhook(req: CreateWebhookRequest, initReq?: fm.InitReq): Promise<CreateWebhookResponse> {
159
+ return fm.fetchReq<CreateWebhookRequest, CreateWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
160
+ }
161
+ static GetWebhook(req: GetWebhookRequest, initReq?: fm.InitReq): Promise<GetWebhookResponse> {
162
+ return fm.fetchReq<GetWebhookRequest, GetWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
163
+ }
164
+ static ListWebhooksByClientId(req: ListWebhooksByClientIdRequest, initReq?: fm.InitReq): Promise<ListWebhooksByClientIdResponse> {
165
+ return fm.fetchReq<ListWebhooksByClientIdRequest, ListWebhooksByClientIdResponse>(`/apis/ghippo.io/v1alpha1/webhook?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
166
+ }
167
+ static UpdateWebhook(req: UpdateWebhookRequest, initReq?: fm.InitReq): Promise<UpdateWebhookResponse> {
168
+ return fm.fetchReq<UpdateWebhookRequest, UpdateWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
169
+ }
170
+ static DeleteWebhook(req: DeleteWebhookRequest, initReq?: fm.InitReq): Promise<DeleteWebhookResponse> {
171
+ return fm.fetchReq<DeleteWebhookRequest, DeleteWebhookResponse>(`/apis/ghippo.io/v1alpha1/webhook/${req["id"]}`, {...initReq, method: "DELETE"})
172
+ }
173
+ static GetWebhookRecord(req: GetWebhookRecordRequest, initReq?: fm.InitReq): Promise<GetWebhookRecordResponse> {
174
+ return fm.fetchReq<GetWebhookRecordRequest, GetWebhookRecordResponse>(`/apis/ghippo.io/v1alpha1/webhook-record/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
175
+ }
176
+ static ListWebhookRecordsByClientId(req: ListWebhookRecordsByClientIdRequest, initReq?: fm.InitReq): Promise<ListWebhookRecordsByClientIdResponse> {
177
+ return fm.fetchReq<ListWebhookRecordsByClientIdRequest, ListWebhookRecordsByClientIdResponse>(`/apis/ghippo.io/v1alpha1/webhook-record?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
178
+ }
179
+ }