-
Notifications
You must be signed in to change notification settings - Fork 521
Expand file tree
/
Copy pathservice.events.graphqls
More file actions
364 lines (313 loc) · 8.96 KB
/
service.events.graphqls
File metadata and controls
364 lines (313 loc) · 8.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
####################################################
# Events API
####################################################
"Events sent by server"
enum CBServerEventId {
"Configuration changed"
cb_config_changed,
"Session log updated"
cb_session_log_updated,
"Session websocket connected"
cb_session_websocket_connected,
"Session state info updated"
cb_session_state,
"Session expired"
cb_session_expired,
"Datasource created"
cb_datasource_created,
"Datasource updated"
cb_datasource_updated,
"Datasource deleted"
cb_datasource_deleted,
"Datasource folder created"
cb_datasource_folder_created,
"Datasource folder updated"
cb_datasource_folder_updated,
"Datasource folder deleted"
cb_datasource_folder_deleted,
"Datasource disconnected"
cb_datasource_disconnected,
"Datasource connected"
cb_datasource_connected,
"Resource manager resource created"
cb_rm_resource_created,
"Resource manager resource updated"
cb_rm_resource_updated,
"Resource manager resource deleted"
cb_rm_resource_deleted,
"Resource manager project added"
cb_rm_project_added,
"Resource manager project added"
cb_rm_project_updated,
"Resource manager project removed"
cb_rm_project_removed,
"Object permissions updated (e.g., datasource)"
cb_object_permissions_updated,
"Subject permissions updated (e.g., user, team)"
cb_subject_permissions_updated,
"Database output log updated (e.g., DBMS in Oracle)"
cb_database_output_log_updated,
cb_ai_chat_message_chunk @since(version: "25.1.1")
cb_ai_chat_message_error @since(version: "25.1.1")
"Transaction count updated"
cb_transaction_count @since(version: "24.3.3"),
"Session async task info updated"
cb_session_task_info_updated @since(version: "24.3.1"),
"Workspace configuration updated"
cb_workspace_config_changed @since(version: "25.1.1"),
"Server notification"
cb_server_notification@since(version: "25.2.1")
"Session task confirmations"
cb_session_task_confirmation_request @since(version: "25.2.2")
cb_session_task_query_confirmation_request @since(version: "25.2.2")
cb_session_task_query_params_confirmation_request @since(version: "25.2.5")
"Open URL request in client"
cb_open_url @since(version: "25.3.1")
}
"Events sent by client"
enum CBClientEventId {
cb_client_topic_subscribe,
cb_client_topic_unsubscribe,
cb_client_projects_active,
cb_client_session_ping,
cb_client_session_task_confirmation @since(version: "25.2.2")
cb_client_session_task_with_parameters_confirmation @since(version: "25.2.5")
}
"Client subscribes on topic to receive only related events"
enum CBEventTopic {
cb_config,
cb_session_log,
cb_session,
cb_datasource,
cb_datasource_folder,
cb_scripts,
cb_projects,
cb_object_permissions,
cb_subject_permissions,
cb_database_output_log,
cb_session_task, @since(version: "24.3.1")
cb_datasource_connection,
cb_delete_temp_folder,
cb_transaction @since(version: "24.3.3"),
cb_workspace_configuration @since(version: "25.1.1")
cb_ai @since(version: "25.1.1")
cb_notification @since(version: "25.2.1")
cb_session_action @since(version: "25.3.1")
}
"Base server event interface"
interface CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
}
"Base client event interface"
interface CBClientEvent {
id: CBClientEventId!
topicId: CBEventTopic
}
"Datasource folder event"
type CBDatasourceFolderEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
nodePaths: [String!]! # list of folders node ids
projectId: String!
}
"Datasource event"
type CBDatasourceEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
dataSourceIds: [String!]! # list of datasources ids
projectId: String!
}
"Resource manager event"
type CBRMEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
resourcePath: String!
projectId: String!
}
"Server Config event"
type CBConfigEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
}
"Session log event"
type CBSessionLogEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
}
"WebSocket connected event"
type WSSocketConnectedEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
applicationRunId: String!
}
"Session state info event"
type WSSessionStateEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
lastAccessTime: Int!
remainingTime: Int!
isValid: Boolean
isCacheExpired: Boolean
locale: String!
actionParameters: Object
}
"Session expired event"
type WSSessionExpiredEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
}
"RM project update event"
type CBProjectUpdateEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
projectId: String!
}
"Subject permission update event"
type CBSubjectPermissionUpdateEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
}
"Topic subscription event"
type CBTopicEvent implements CBClientEvent {
id: CBClientEventId!
"topic to subscribe / unsubscribe"
topicId: CBEventTopic!
}
"Project event"
type CBProjectEvent implements CBClientEvent {
id: CBClientEventId!
topicId: CBEventTopic
projectId: String!
}
"Active projects event"
type CBProjectsActiveEvent implements CBClientEvent {
id: CBClientEventId!
topicId: CBEventTopic
"list of active projects"
projectIds: [String!]!
}
"Database output log event"
type CBDatabaseOutputLogEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
contextId: String!
messages: [WSOutputLogInfo!]!
eventTimestamp: Int!
}
"Define the type for WSOutputLogInfo"
type WSOutputLogInfo {
severity: String
message: String
# Add more fields if needed
}
"Async task info status event"
type WSAsyncTaskInfo @since(version: "24.3.1") {
id: CBServerEventId!
taskId: ID!
statusName: String
running: Boolean!
}
"Datasource disconnect event"
type WSDataSourceDisconnectEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
connectionId: String!
projectId: String!
timestamp: Int!
}
"Datasource connect event"
type WSDataSourceConnectEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
connectionId: String!
projectId: String!
timestamp: Int!
}
"Datasource count event in transactional mode"
type WSTransactionalCountEvent implements CBServerEvent {
id: CBServerEventId!
topicId: CBEventTopic
contextId: String!
projectId: String!
connectionId: String!
transactionalCount: Int!
}
type WSAIChatMessageChunkEvent implements CBServerEvent @since(version: "25.1.1") {
id: CBServerEventId!
topicId: CBEventTopic
conversationId: ID!
messageId: ID!
chunk: String
completed: Boolean!
}
type WSAIChatMessageErrorEvent implements CBServerEvent @since(version: "25.1.1") {
id: CBServerEventId!
topicId: CBEventTopic
conversationId: ID!
messageId: ID!
errorMessage: String
}
enum WSServerNotificationEventType {
INFO
ERROR
LOADING
CUSTOM
}
"General event for showing user notification"
type WSServerNotificationEvent implements CBServerEvent @since(version: "25.2.1") {
id: CBServerEventId!
topicId: CBEventTopic!
title: String
message: String
notificationType: WSServerNotificationEventType!
}
"Event for opening URL in client application"
type WSOpenUrlEvent implements CBServerEvent @since(version: "25.3.1") {
id: CBServerEventId!
topicId: CBEventTopic!
url: String!
}
type WSSessionTaskConfirmationRequestEvent implements CBServerEvent @since(version: "25.2.2") {
id: CBServerEventId!
topicId: CBEventTopic!
taskId: ID!
title: String!
message: String!
}
type WSSessionTaskQueryConfirmationRequestEvent implements CBServerEvent @since(version: "25.2.2") {
id: CBServerEventId!
topicId: CBEventTopic!
taskId: ID!
title: String!
message: String!
query: String!
}
type WSSessionTaskConfirmationEvent implements CBClientEvent @since(version: "25.2.2") {
id: CBClientEventId!
topicId: CBEventTopic
taskId: ID!
confirmed: Boolean!
skipConfirmations: Boolean!
}
type WSSessionTaskQueryParamsConfirmationEvent implements CBServerEvent @since(version: "25.2.5") {
id: CBServerEventId!
topicId: CBEventTopic!
taskId: ID!
title: String!
message: String!
query: String!
parameters: Object!
}
type WSSessionTaskWithParametersConfirmationEvent implements CBClientEvent @since(version: "25.2.5") {
id: CBClientEventId!
topicId: CBEventTopic
taskId: ID!
parameters: Object!
}
extend type Query {
emptyEvent: Boolean
}
extend type Mutation {
emptyEventMutation: Boolean
}