@tak-ps/node-cot 4.5.1 → 5.0.0

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.
@@ -1,261 +1,494 @@
1
1
  {
2
- "type": "object",
3
- "required": [
4
- "event"
5
- ],
6
- "properties": {
7
- "event": {
8
- "type": "object",
9
- "required": [
10
- "_attributes",
11
- "point"
12
- ],
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "additionalProperties": {},
4
+ "definitions": {
5
+ "Chat": {
13
6
  "properties": {
14
7
  "_attributes": {
15
- "type": "object",
16
- "required": [
17
- "version",
18
- "uid",
19
- "type",
20
- "time",
21
- "start",
22
- "stale"
23
- ],
8
+ "additionalProperties": {
9
+ "type": "string"
10
+ },
24
11
  "properties": {
25
- "version": {
12
+ "chatroom": {
26
13
  "type": "string"
27
14
  },
28
- "uid": {
15
+ "groupOwner": {
29
16
  "type": "string"
30
17
  },
31
- "type": {
18
+ "id": {
32
19
  "type": "string"
33
20
  },
34
- "time": {
21
+ "messageId": {
35
22
  "type": "string"
36
23
  },
37
- "start": {
24
+ "parent": {
38
25
  "type": "string"
39
26
  },
40
- "stale": {
27
+ "senderCallsign": {
41
28
  "type": "string"
42
29
  }
43
- }
30
+ },
31
+ "required": [
32
+ "chatroom",
33
+ "groupOwner",
34
+ "id",
35
+ "messageId",
36
+ "parent",
37
+ "senderCallsign"
38
+ ],
39
+ "type": "object"
44
40
  },
45
- "detail": {
46
- "type": "object",
41
+ "chatgrp": {
42
+ "$ref": "#/definitions/GenericAttributes"
43
+ }
44
+ },
45
+ "required": [
46
+ "_attributes",
47
+ "chatgrp"
48
+ ],
49
+ "type": "object"
50
+ },
51
+ "Contact": {
52
+ "properties": {
53
+ "_attributes": {
54
+ "additionalProperties": {
55
+ "type": "string"
56
+ },
47
57
  "properties": {
48
- "_flow-tags_": {
49
- "type": "object"
58
+ "callsign": {
59
+ "type": "string"
50
60
  },
51
- "__group": {
52
- "type": "object",
53
- "properties": {
54
- "_attributes": {
55
- "type": "object",
56
- "properties": {
57
- "name": {
58
- "type": "string"
59
- },
60
- "role": {
61
- "type": "string"
62
- }
63
- }
64
- }
65
- }
61
+ "endpoint": {
62
+ "type": "string"
66
63
  },
67
- "takv": {
68
- "type": "object",
69
- "properties": {
70
- "_attributes": {
71
- "type": "object",
72
- "properties": {
73
- "device": {
74
- "type": "string"
75
- },
76
- "platform": {
77
- "type": "string"
78
- },
79
- "os": {
80
- "type": "string"
81
- },
82
- "version": {
83
- "type": "string"
84
- }
85
- }
86
- }
87
- }
64
+ "phone": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "required": [
69
+ "callsign"
70
+ ],
71
+ "type": "object"
72
+ }
73
+ },
74
+ "required": [
75
+ "_attributes"
76
+ ],
77
+ "type": "object"
78
+ },
79
+ "Detail": {
80
+ "additionalProperties": {},
81
+ "properties": {
82
+ "TakControl": {
83
+ "properties": {
84
+ "TakServerVersionInfo": {
85
+ "$ref": "#/definitions/GenericAttributes"
86
+ }
87
+ },
88
+ "type": "object"
89
+ },
90
+ "__chat": {
91
+ "$ref": "#/definitions/Chat"
92
+ },
93
+ "__group": {
94
+ "$ref": "#/definitions/Group"
95
+ },
96
+ "_flow-tags_": {
97
+ "$ref": "#/definitions/FlowTags"
98
+ },
99
+ "contact": {
100
+ "$ref": "#/definitions/Contact"
101
+ },
102
+ "fillColor": {
103
+ "$ref": "#/definitions/GenericAttributes"
104
+ },
105
+ "labels_on": {
106
+ "$ref": "#/definitions/GenericAttributes"
107
+ },
108
+ "link": {
109
+ "anyOf": [
110
+ {
111
+ "$ref": "#/definitions/GenericAttributes"
88
112
  },
89
- "status": {
90
- "type": "object",
91
- "properties": {
92
- "_attributes": {
93
- "type": "object",
94
- "properties": {
95
- "battery": {
96
- "type": "string"
97
- }
98
- }
99
- }
100
- }
113
+ {
114
+ "items": {
115
+ "$ref": "#/definitions/GenericAttributes"
116
+ },
117
+ "type": "array"
118
+ }
119
+ ]
120
+ },
121
+ "precisionlocation": {
122
+ "$ref": "#/definitions/PrecisionLocation"
123
+ },
124
+ "remarks": {
125
+ "$ref": "#/definitions/Remarks"
126
+ },
127
+ "status": {
128
+ "$ref": "#/definitions/Status"
129
+ },
130
+ "strokeColor": {
131
+ "$ref": "#/definitions/GenericAttributes"
132
+ },
133
+ "strokeStyle": {
134
+ "$ref": "#/definitions/GenericAttributes"
135
+ },
136
+ "strokeWeight": {
137
+ "$ref": "#/definitions/GenericAttributes"
138
+ },
139
+ "takv": {
140
+ "$ref": "#/definitions/TakVersion"
141
+ },
142
+ "tog": {
143
+ "$ref": "#/definitions/GenericAttributes"
144
+ },
145
+ "track": {
146
+ "$ref": "#/definitions/Track"
147
+ },
148
+ "uid": {
149
+ "$ref": "#/definitions/Uid"
150
+ },
151
+ "usericon": {
152
+ "$ref": "#/definitions/UserIcon"
153
+ }
154
+ },
155
+ "type": "object"
156
+ },
157
+ "EventAttributes": {
158
+ "additionalProperties": {
159
+ "type": "string"
160
+ },
161
+ "properties": {
162
+ "how": {
163
+ "type": "string"
164
+ },
165
+ "type": {
166
+ "type": "string"
167
+ },
168
+ "uid": {
169
+ "type": "string"
170
+ },
171
+ "version": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "required": [
176
+ "how",
177
+ "type",
178
+ "uid",
179
+ "version"
180
+ ],
181
+ "type": "object"
182
+ },
183
+ "FlowTags": {
184
+ "additionalProperties": {
185
+ "type": "string"
186
+ },
187
+ "type": "object"
188
+ },
189
+ "GenericAttributes": {
190
+ "properties": {
191
+ "_attributes": {
192
+ "additionalProperties": {
193
+ "type": "string"
194
+ },
195
+ "type": "object"
196
+ }
197
+ },
198
+ "required": [
199
+ "_attributes"
200
+ ],
201
+ "type": "object"
202
+ },
203
+ "Group": {
204
+ "properties": {
205
+ "_attributes": {
206
+ "additionalProperties": {
207
+ "type": "string"
208
+ },
209
+ "properties": {
210
+ "name": {
211
+ "type": "string"
212
+ },
213
+ "role": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "name",
219
+ "role"
220
+ ],
221
+ "type": "object"
222
+ }
223
+ },
224
+ "required": [
225
+ "_attributes"
226
+ ],
227
+ "type": "object"
228
+ },
229
+ "Point": {
230
+ "properties": {
231
+ "_attributes": {
232
+ "additionalProperties": {
233
+ "type": [
234
+ "string",
235
+ "number"
236
+ ]
237
+ },
238
+ "properties": {
239
+ "ce": {
240
+ "type": [
241
+ "string",
242
+ "number"
243
+ ]
244
+ },
245
+ "hae": {
246
+ "type": [
247
+ "string",
248
+ "number"
249
+ ]
250
+ },
251
+ "lat": {
252
+ "type": [
253
+ "string",
254
+ "number"
255
+ ]
256
+ },
257
+ "le": {
258
+ "type": [
259
+ "string",
260
+ "number"
261
+ ]
262
+ },
263
+ "lon": {
264
+ "type": [
265
+ "string",
266
+ "number"
267
+ ]
268
+ }
269
+ },
270
+ "required": [
271
+ "ce",
272
+ "hae",
273
+ "lat",
274
+ "le",
275
+ "lon"
276
+ ],
277
+ "type": "object"
278
+ }
279
+ },
280
+ "required": [
281
+ "_attributes"
282
+ ],
283
+ "type": "object"
284
+ },
285
+ "PrecisionLocation": {
286
+ "properties": {
287
+ "_attributes": {
288
+ "additionalProperties": {
289
+ "type": "string"
290
+ },
291
+ "properties": {
292
+ "altsrc": {
293
+ "type": "string"
101
294
  },
102
- "uid": {
103
- "type": "object",
104
- "properties": {
105
- "_attributes": {
106
- "type": "object",
107
- "properties": {
108
- "Droid": {
109
- "type": "string"
110
- }
111
- }
112
- }
113
- }
295
+ "geopointsrc": {
296
+ "type": "string"
297
+ }
298
+ },
299
+ "type": "object"
300
+ }
301
+ },
302
+ "required": [
303
+ "_attributes"
304
+ ],
305
+ "type": "object"
306
+ },
307
+ "Remarks": {
308
+ "properties": {
309
+ "_attributes": {
310
+ "additionalProperties": {
311
+ "type": "string"
312
+ },
313
+ "properties": {
314
+ "source": {
315
+ "type": "string"
114
316
  },
115
- "contact": {
116
- "type": "object",
117
- "properties": {
118
- "_attributes": {
119
- "type": "object",
120
- "properties": {
121
- "phone": {
122
- "type": "string"
123
- },
124
- "callsign": {
125
- "type": "string"
126
- },
127
- "endpoint": {
128
- "type": "string"
129
- }
130
- }
131
- }
132
- }
317
+ "time": {
318
+ "type": "string"
133
319
  },
134
- "precisionlocation": {
135
- "type": "object",
136
- "properties": {
137
- "_attributes": {
138
- "type": "object",
139
- "properties": {
140
- "geopointsrc": {
141
- "type": "string"
142
- },
143
- "altsrc": {
144
- "type": "string"
145
- }
146
- }
147
- }
148
- }
320
+ "to": {
321
+ "type": "string"
322
+ }
323
+ },
324
+ "type": "object"
325
+ },
326
+ "_text": {
327
+ "type": "string"
328
+ }
329
+ },
330
+ "required": [
331
+ "_attributes",
332
+ "_text"
333
+ ],
334
+ "type": "object"
335
+ },
336
+ "Status": {
337
+ "properties": {
338
+ "_attributes": {
339
+ "additionalProperties": {
340
+ "type": "string"
341
+ },
342
+ "properties": {
343
+ "battery": {
344
+ "type": "string"
345
+ }
346
+ },
347
+ "required": [
348
+ "battery"
349
+ ],
350
+ "type": "object"
351
+ }
352
+ },
353
+ "required": [
354
+ "_attributes"
355
+ ],
356
+ "type": "object"
357
+ },
358
+ "TakVersion": {
359
+ "properties": {
360
+ "_attributes": {
361
+ "additionalProperties": {
362
+ "type": "string"
363
+ },
364
+ "properties": {
365
+ "device": {
366
+ "type": "string"
149
367
  },
150
- "remarks": {
151
- "type": "object",
152
- "properties": {
153
- "_attributes": {
154
- "type": "object"
155
- },
156
- "_text": {
157
- "type": "string"
158
- }
159
- }
368
+ "os": {
369
+ "type": "string"
160
370
  },
161
- "track": {
162
- "type": "object",
163
- "required": [
164
- "_attributes"
165
- ],
166
- "properties": {
167
- "_attributes": {
168
- "type": "object",
169
- "required": [
170
- "course",
171
- "speed"
172
- ],
173
- "properties": {
174
- "course": {
175
- "type": "string",
176
- "description": "Speed measured in degrees from north"
177
- },
178
- "speed": {
179
- "type": "string",
180
- "description": "Speed measured in meters/second"
181
- },
182
- "slope": {
183
- "type": "string",
184
- "description": "Vertical component of motion vector. Measured in degrees. Negative indicates downward motion."
185
- },
186
- "eCourse": {
187
- "type": "string",
188
- "description": "1-sigma error on a Gaussian distribution associated with the course attribute"
189
- },
190
- "eSpeed": {
191
- "type": "string",
192
- "description": "1-sigma error on a Gaussian distribution associated with the speed attribute"
193
- },
194
- "eSlope": {
195
- "type": "string",
196
- "description": "1-sigma error on a Gaussian distribution associated with the slope attribute"
197
- }
198
- }
199
- }
200
- }
371
+ "platform": {
372
+ "type": "string"
201
373
  },
202
- "usericon": {
203
- "type": "object",
204
- "required": [
205
- "_attributes"
206
- ],
207
- "properties": {
208
- "_attributes": {
209
- "type": "object",
210
- "required": [
211
- "iconsetpath"
212
- ],
213
- "properties": {
214
- "iconsetpath": {
215
- "type": "string"
216
- }
217
- }
218
- }
219
- }
374
+ "version": {
375
+ "type": "string"
220
376
  }
221
- }
377
+ },
378
+ "type": "object"
379
+ }
380
+ },
381
+ "required": [
382
+ "_attributes"
383
+ ],
384
+ "type": "object"
385
+ },
386
+ "Track": {
387
+ "properties": {
388
+ "_attributes": {
389
+ "$ref": "#/definitions/TrackAttributes"
390
+ }
391
+ },
392
+ "required": [
393
+ "_attributes"
394
+ ],
395
+ "type": "object"
396
+ },
397
+ "TrackAttributes": {
398
+ "additionalProperties": {
399
+ "type": "string"
400
+ },
401
+ "properties": {
402
+ "course": {
403
+ "type": "string"
222
404
  },
223
- "point": {
224
- "type": "object",
405
+ "eCourse": {
406
+ "type": "string"
407
+ },
408
+ "eSlope": {
409
+ "type": "string"
410
+ },
411
+ "eSpeed": {
412
+ "type": "string"
413
+ },
414
+ "slope": {
415
+ "type": "string"
416
+ },
417
+ "speed": {
418
+ "type": "string"
419
+ }
420
+ },
421
+ "type": "object"
422
+ },
423
+ "Uid": {
424
+ "properties": {
425
+ "_attributes": {
426
+ "additionalProperties": {
427
+ "type": "string"
428
+ },
429
+ "properties": {
430
+ "Droid": {
431
+ "type": "string"
432
+ }
433
+ },
225
434
  "required": [
226
- "_attributes"
435
+ "Droid"
227
436
  ],
437
+ "type": "object"
438
+ }
439
+ },
440
+ "required": [
441
+ "_attributes"
442
+ ],
443
+ "type": "object"
444
+ },
445
+ "UserIcon": {
446
+ "properties": {
447
+ "_attributes": {
448
+ "additionalProperties": {
449
+ "type": "string"
450
+ },
228
451
  "properties": {
229
- "_attributes": {
230
- "type": "object",
231
- "required": [
232
- "lat",
233
- "lon",
234
- "hae",
235
- "ce",
236
- "le"
237
- ],
238
- "properties": {
239
- "lat": {
240
- "type": "string"
241
- },
242
- "lon": {
243
- "type": "string"
244
- },
245
- "hae": {
246
- "type": "string"
247
- },
248
- "ce": {
249
- "type": "string"
250
- },
251
- "le": {
252
- "type": "string"
253
- }
254
- }
452
+ "iconsetpath": {
453
+ "type": "string"
255
454
  }
256
- }
455
+ },
456
+ "required": [
457
+ "iconsetpath"
458
+ ],
459
+ "type": "object"
460
+ }
461
+ },
462
+ "required": [
463
+ "_attributes"
464
+ ],
465
+ "type": "object"
466
+ }
467
+ },
468
+ "properties": {
469
+ "event": {
470
+ "additionalProperties": {},
471
+ "properties": {
472
+ "_attributes": {
473
+ "$ref": "#/definitions/EventAttributes"
474
+ },
475
+ "detail": {
476
+ "$ref": "#/definitions/Detail"
477
+ },
478
+ "point": {
479
+ "$ref": "#/definitions/Point"
257
480
  }
258
- }
481
+ },
482
+ "required": [
483
+ "_attributes",
484
+ "detail",
485
+ "point"
486
+ ],
487
+ "type": "object"
259
488
  }
260
- }
489
+ },
490
+ "required": [
491
+ "event"
492
+ ],
493
+ "type": "object"
261
494
  }