-
Notifications
You must be signed in to change notification settings - Fork 0
/
schemas.yaml
382 lines (370 loc) · 7.76 KB
/
schemas.yaml
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
IoDocumentEvent:
allOf:
- $ref: "./CloudEvent.yaml"
- properties:
type:
type: string
const: IoDocument # not compatible with openapi-generator-gdscript
default: IoDocument
subject:
type: string
const: IoDocument # not compatible with openapi-generator-gdscript
default: IoDocument
source:
type: string
data:
$ref: "#/components/schemas/IoDocument"
additionalProperties: false
TouchEvent:
allOf:
- $ref: "./CloudEvent.yaml"
- properties:
type:
type: string
const: touch # not compatible with openapi-generator-gdscript
default: touch
subject:
type: string
const: node
default: node
source:
type: string
data:
$ref: "#/components/schemas/Touch"
additionalProperties: false
ClipboardEvent:
allOf:
- $ref: "./CloudEvent.yaml"
- properties:
type:
type: string
const: Clipboard
default: Clipboard
subject:
type: string
const: Clipboard
default: Clipboard
source:
type: string
data:
$ref: "#/components/schemas/Clipboard"
additionalProperties: false
Clipboard:
properties:
context:
$ref: "#/components/schemas/ClipboardContext"
clipboardType:
description: Type of clipboard
enum:
- Primary
- Secondary
- Clipboard
type: string
content:
type: string
description: Clipboard content
selectionStart:
$ref: "#/components/schemas/Vector2int"
selectionEnd:
$ref: "#/components/schemas/Vector2int"
required:
- context
- clipboardType
- content
additionalProperties: false
ClipboardContext:
properties:
windowId:
description: Xorg window_id
maximum: 4294967295
minimum: 0
type: number
required:
- windowId
type: object
IoDocument:
type: object
properties:
input:
type: string
description: User input
minLength: 1
examples:
- "uptime"
output:
type: string
minLength: 0
description: Command output (mix of stdout & stderr)
examples:
- "16:37:51 up 19 days, 2:15, 71 users, load average: 2.01, 2.85, 2.95"
ps1:
type: string
description: ps1 (prompt) AFTER the input and output
minLength: 1
examples:
- "user@mindwm-dev1:~/rnd/asyncapi$"
additionalProperties: false
required:
- input
- output
- ps1
examples:
- input: "uptime"
output: "16:37:51 up 19 days, 2:15, 71 users, load average: 2.01, 2.85, 2.95"
ps1: "user@mindwm-dev1:~/rnd/asyncapi$"
Vector2int:
properties:
x:
description: the X coordinate
maximum: 4294967295
minimum: 0
type: number
y:
description: the Y coordinate
maximum: 4294967295
minimum: 0
type: number
required:
- x
- y
type: object
Touch:
type: object
properties:
ids:
type: array
items:
type: number
required:
- ids
Neo4jChangeDataCapture:
type: object
properties:
headers:
type: object
additionalProperties: true
message_key:
type: string
meta:
type: object
properties:
operation:
type: string
source:
type: object
properties:
hostname:
type: string
required:
- hostname
timestamp:
type: integer
txEventId:
type: integer
txEventsCount:
type: integer
txId:
type: integer
username:
type: string
required:
- operation
- source
- timestamp
- txEventId
- txEventsCount
- txId
- username
offset:
type: integer
partition:
type: integer
source_type:
type: string
timestamp:
type: string
format: date-time
topic:
type: string
schema:
type: object
properties:
constraints:
type: object
additionalProperties: true
properties:
type: object
additionalProperties: true
payload:
type: object
oneOf:
- "$ref": "#/components/schemas/Neo4jChangeDataCaptureNodePayload"
- "$ref": "#/components/schemas/Neo4jChangeDataCaptureRelationshipPayload"
required:
- headers
- message_key
- meta
- offset
- partition
- payload
- schema
- source_type
- timestamp
- topic
Neo4jChangeDataCaptureNodePayload:
type: object
properties:
after:
type: object
properties:
labels:
type: array
items:
type: string
properties:
type: object
additionalProperties: true
required:
- labels
- properties
before:
type: string
id:
type: string
type:
type: string
required:
- after
- before
- id
- type
examples:
- headers: {}
message_key: '"45-0"'
meta:
operation: created
source:
hostname: team-a-neo4j-0
timestamp: 1718125560033
txEventId: 0
txEventsCount: 1
txId: 45
username: neo4j
offset: 9
partition: 0
payload:
after:
labels:
- IoDocument
properties:
output: |2
17:05:52 up 1 day, 23:03, 2 users, load average: 1.23, 1.71, 2.16
ps1: bebebeko@mcmp6:~/poc-mindwm-dev$
time: 1718125560.028501
user_input: uptime
uuid: dcb8deaf-8f00-4b77-a8f2-77ec7d20a429
before: ""
id: "9"
type: node
schema:
constraints: {}
properties:
output: String
ps1: String
time: Double
user_input: String
uuid: String
source_type: kafka
timestamp: "2024-06-11T17:06:00.428Z"
topic: team-a-cdc-topic
Neo4jChangeDataCaptureRelationshipPayload:
type: object
properties:
after:
type: object
before:
type: string
end:
type: object
properties:
id:
type: string
ids:
type: object
additionalProperties: true
labels:
type: array
items:
type: string
required:
- id
- ids
- labels
id:
type: string
label:
type: string
start:
type: object
properties:
id:
type: string
ids:
type: object
additionalProperties: true
labels:
type: array
items:
type: string
required:
- id
- ids
- labels
type:
type: string
const: "relationship"
required:
- after
- before
- end
- id
- label
- start
- type
examples:
- headers: {}
message_key: '"46-0"'
meta:
operation: created
source:
hostname: team-a-neo4j-0
timestamp: 1718125560435
txEventId: 0
txEventsCount: 1
txId: 46
username: neo4j
offset: 10
partition: 0
payload:
after:
properties: {}
before: ""
end:
id: "9"
ids: {}
labels:
- IoDocument
id: "8"
label: HAS_IO_DOCUMENT
start:
id: "4"
ids: {}
labels:
- TmuxPane
type: relationship
schema:
constraints: {}
properties: {}
source_type: kafka
timestamp: "2024-06-11T17:06:00.438Z"
topic: team-a-cdc-topic