losant_rest 1.9.1 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +41608 -19945
  5. data/docs/application.md +168 -4
  6. data/docs/applicationTemplates.md +50 -0
  7. data/docs/applications.md +46 -0
  8. data/docs/auth.md +72 -0
  9. data/docs/device.md +1 -0
  10. data/docs/devices.md +89 -2
  11. data/docs/experienceEndpoint.md +43 -0
  12. data/docs/experienceEndpoints.md +1 -1
  13. data/docs/experienceView.md +43 -0
  14. data/lib/losant_rest.rb +2 -1
  15. data/lib/losant_rest/application.rb +144 -5
  16. data/lib/losant_rest/application_api_token.rb +1 -1
  17. data/lib/losant_rest/application_api_tokens.rb +1 -1
  18. data/lib/losant_rest/application_certificate.rb +1 -1
  19. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  20. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  21. data/lib/losant_rest/application_certificates.rb +1 -1
  22. data/lib/losant_rest/application_key.rb +1 -1
  23. data/lib/losant_rest/application_keys.rb +1 -1
  24. data/lib/losant_rest/application_templates.rb +88 -0
  25. data/lib/losant_rest/applications.rb +1 -1
  26. data/lib/losant_rest/audit_log.rb +1 -1
  27. data/lib/losant_rest/audit_logs.rb +1 -1
  28. data/lib/losant_rest/auth.rb +85 -1
  29. data/lib/losant_rest/client.rb +7 -3
  30. data/lib/losant_rest/dashboard.rb +1 -1
  31. data/lib/losant_rest/dashboards.rb +1 -1
  32. data/lib/losant_rest/data.rb +1 -1
  33. data/lib/losant_rest/data_table.rb +1 -1
  34. data/lib/losant_rest/data_table_row.rb +1 -1
  35. data/lib/losant_rest/data_table_rows.rb +1 -1
  36. data/lib/losant_rest/data_tables.rb +1 -1
  37. data/lib/losant_rest/device.rb +3 -1
  38. data/lib/losant_rest/device_recipe.rb +1 -1
  39. data/lib/losant_rest/device_recipes.rb +1 -1
  40. data/lib/losant_rest/devices.rb +105 -3
  41. data/lib/losant_rest/edge_deployments.rb +1 -1
  42. data/lib/losant_rest/error.rb +1 -1
  43. data/lib/losant_rest/event.rb +1 -1
  44. data/lib/losant_rest/events.rb +1 -1
  45. data/lib/losant_rest/experience.rb +1 -1
  46. data/lib/losant_rest/experience_domain.rb +1 -1
  47. data/lib/losant_rest/experience_domains.rb +1 -1
  48. data/lib/losant_rest/experience_endpoint.rb +51 -1
  49. data/lib/losant_rest/experience_endpoints.rb +1 -1
  50. data/lib/losant_rest/experience_group.rb +1 -1
  51. data/lib/losant_rest/experience_groups.rb +1 -1
  52. data/lib/losant_rest/experience_slug.rb +1 -1
  53. data/lib/losant_rest/experience_slugs.rb +1 -1
  54. data/lib/losant_rest/experience_user.rb +1 -1
  55. data/lib/losant_rest/experience_users.rb +1 -1
  56. data/lib/losant_rest/experience_version.rb +1 -1
  57. data/lib/losant_rest/experience_versions.rb +1 -1
  58. data/lib/losant_rest/experience_view.rb +51 -1
  59. data/lib/losant_rest/experience_views.rb +1 -1
  60. data/lib/losant_rest/file.rb +1 -1
  61. data/lib/losant_rest/files.rb +1 -1
  62. data/lib/losant_rest/flow.rb +1 -1
  63. data/lib/losant_rest/flow_version.rb +1 -1
  64. data/lib/losant_rest/flow_versions.rb +1 -1
  65. data/lib/losant_rest/flows.rb +1 -1
  66. data/lib/losant_rest/integration.rb +1 -1
  67. data/lib/losant_rest/integrations.rb +1 -1
  68. data/lib/losant_rest/me.rb +1 -1
  69. data/lib/losant_rest/notebook.rb +1 -1
  70. data/lib/losant_rest/notebooks.rb +1 -1
  71. data/lib/losant_rest/org.rb +1 -1
  72. data/lib/losant_rest/org_invites.rb +1 -1
  73. data/lib/losant_rest/orgs.rb +1 -1
  74. data/lib/losant_rest/utils.rb +1 -1
  75. data/lib/losant_rest/version.rb +2 -2
  76. data/lib/losant_rest/webhook.rb +1 -1
  77. data/lib/losant_rest/webhooks.rb +1 -1
  78. data/schemas/advancedDeviceQuery.json +1018 -0
  79. data/schemas/advancedEventQuery.json +382 -13
  80. data/schemas/advancedQuery.json +37 -3
  81. data/schemas/application.json +10 -5
  82. data/schemas/applicationApiTokenPost.json +6 -0
  83. data/schemas/applicationCertificate.json +34 -0
  84. data/schemas/applicationCertificatePatch.json +34 -0
  85. data/schemas/applicationCertificatePost.json +34 -0
  86. data/schemas/applicationCertificates.json +34 -0
  87. data/schemas/{applicationCloneResult.json → applicationCreationByTemplateResult.json} +21 -8
  88. data/schemas/applicationExportPost.json +24 -0
  89. data/schemas/applicationExportResult.json +10 -0
  90. data/schemas/applicationKey.json +34 -0
  91. data/schemas/applicationKeyPatch.json +34 -0
  92. data/schemas/applicationKeyPost.json +34 -0
  93. data/schemas/applicationKeyPostResponse.json +34 -0
  94. data/schemas/applicationKeys.json +34 -0
  95. data/schemas/applicationPatch.json +10 -5
  96. data/schemas/applicationPost.json +14 -5
  97. data/schemas/applicationReadme.json +29 -0
  98. data/schemas/applicationReadmePatch.json +11 -0
  99. data/schemas/applicationTemplate.json +99 -0
  100. data/schemas/applicationTemplates.json +140 -0
  101. data/schemas/applications.json +10 -5
  102. data/schemas/authedDevice.json +34 -0
  103. data/schemas/dashboard.json +1228 -144
  104. data/schemas/dashboardPatch.json +1228 -144
  105. data/schemas/dashboardPost.json +1228 -144
  106. data/schemas/dashboards.json +1228 -144
  107. data/schemas/dataExport.json +11 -0
  108. data/schemas/dataTableRows.json +3 -0
  109. data/schemas/dataTableRowsExport.json +37 -3
  110. data/schemas/device.json +16 -3
  111. data/schemas/devicePatch.json +16 -3
  112. data/schemas/devicePost.json +16 -3
  113. data/schemas/deviceRecipe.json +16 -3
  114. data/schemas/deviceRecipePatch.json +16 -3
  115. data/schemas/deviceRecipePost.json +16 -3
  116. data/schemas/deviceRecipes.json +16 -3
  117. data/schemas/devices.json +19 -3
  118. data/schemas/devicesDataRemoved.json +12 -0
  119. data/schemas/devicesDeletePost.json +1034 -0
  120. data/schemas/devicesDeleted.json +12 -0
  121. data/schemas/devicesExportPost.json +1035 -0
  122. data/schemas/devicesPatch.json +1773 -7
  123. data/schemas/devicesRemoveDataPost.json +1056 -0
  124. data/schemas/devicesUpdated.json +18 -0
  125. data/schemas/events.json +1 -816
  126. data/schemas/eventsExport.json +382 -13
  127. data/schemas/experienceGroup.json +7 -0
  128. data/schemas/experienceGroupPatch.json +7 -0
  129. data/schemas/experienceGroupPost.json +7 -0
  130. data/schemas/experienceGroups.json +7 -0
  131. data/schemas/experienceLinkedResources.json +6659 -0
  132. data/schemas/flow.json +103 -1
  133. data/schemas/flowPatch.json +103 -1
  134. data/schemas/flowPost.json +103 -1
  135. data/schemas/flowVersion.json +206 -2
  136. data/schemas/flowVersionPost.json +103 -1
  137. data/schemas/flowVersions.json +206 -2
  138. data/schemas/flows.json +103 -1
  139. data/schemas/flowsImportPost.json +206 -2
  140. data/schemas/flowsImportResult.json +309 -3
  141. data/schemas/githubLogin.json +9 -0
  142. data/schemas/integration.json +4 -4
  143. data/schemas/integrationPatch.json +4 -4
  144. data/schemas/integrationPost.json +4 -4
  145. data/schemas/integrations.json +4 -4
  146. data/schemas/{applicationCloneEnqueued.json → jobEnqueuedResult.json} +0 -0
  147. data/schemas/me.json +3 -0
  148. data/schemas/multiDeviceCommand.json +1019 -0
  149. data/schemas/notebook.json +207 -35
  150. data/schemas/notebookDataExportOptions.json +4 -0
  151. data/schemas/notebookExecutionLogs.json +4 -0
  152. data/schemas/notebookExecutionOptions.json +4 -0
  153. data/schemas/notebookPatch.json +207 -35
  154. data/schemas/notebookPost.json +207 -35
  155. data/schemas/notebooks.json +207 -35
  156. data/schemas/org.json +8 -0
  157. data/schemas/orgPatch.json +9 -0
  158. data/schemas/orgs.json +8 -0
  159. data/schemas/samlResponse.json +21 -0
  160. data/schemas/ssoRequest.json +20 -0
  161. data/schemas/timeSeriesData.json +91 -12
  162. data/schemas/timeSeriesQuery.json +21 -12
  163. data/schemas/userCredentials.json +9 -0
  164. data/schemas/userPost.json +9 -0
  165. data/schemas/{validationCloneErrors.json → validationErrors.json} +9 -2
  166. metadata +24 -7
@@ -0,0 +1,1056 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "query": {
6
+ "title": "Advanced Device Query",
7
+ "description": "Schema for advanced device queries",
8
+ "type": "object",
9
+ "properties": {
10
+ "$and": {
11
+ "type": "array",
12
+ "items": {
13
+ "$ref": "#/definitions/advancedDeviceQuery"
14
+ },
15
+ "maxItems": 100
16
+ },
17
+ "$or": {
18
+ "type": "array",
19
+ "items": {
20
+ "$ref": "#/definitions/advancedDeviceQuery"
21
+ },
22
+ "maxItems": 100
23
+ },
24
+ "$nor": {
25
+ "type": "array",
26
+ "items": {
27
+ "$ref": "#/definitions/advancedDeviceQuery"
28
+ },
29
+ "maxItems": 100
30
+ },
31
+ "id": {
32
+ "oneOf": [
33
+ {
34
+ "oneOf": [
35
+ {
36
+ "type": "string",
37
+ "pattern": "^[A-Fa-f\\d]{24}$"
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "$eq": {
48
+ "oneOf": [
49
+ {
50
+ "type": "string",
51
+ "pattern": "^[A-Fa-f\\d]{24}$"
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ },
58
+ "$ne": {
59
+ "oneOf": [
60
+ {
61
+ "type": "string",
62
+ "pattern": "^[A-Fa-f\\d]{24}$"
63
+ },
64
+ {
65
+ "type": "null"
66
+ }
67
+ ]
68
+ },
69
+ "$in": {
70
+ "type": "array",
71
+ "maxItems": 100,
72
+ "items": {
73
+ "type": "string",
74
+ "pattern": "^[A-Fa-f\\d]{24}$"
75
+ }
76
+ },
77
+ "$nin": {
78
+ "type": "array",
79
+ "maxItems": 100,
80
+ "items": {
81
+ "type": "string",
82
+ "pattern": "^[A-Fa-f\\d]{24}$"
83
+ }
84
+ }
85
+ },
86
+ "additionalProperties": false,
87
+ "minProperties": 1,
88
+ "maxProperties": 1
89
+ }
90
+ ]
91
+ },
92
+ "creationDate": {
93
+ "oneOf": [
94
+ {
95
+ "type": [
96
+ "string",
97
+ "number",
98
+ "boolean",
99
+ "null"
100
+ ]
101
+ },
102
+ {
103
+ "type": "object",
104
+ "properties": {
105
+ "$eq": {
106
+ "type": [
107
+ "string",
108
+ "number",
109
+ "boolean",
110
+ "null"
111
+ ]
112
+ },
113
+ "$ne": {
114
+ "type": [
115
+ "string",
116
+ "number",
117
+ "boolean",
118
+ "null"
119
+ ]
120
+ },
121
+ "$gt": {
122
+ "type": [
123
+ "string",
124
+ "number",
125
+ "boolean",
126
+ "null"
127
+ ]
128
+ },
129
+ "$lt": {
130
+ "type": [
131
+ "string",
132
+ "number",
133
+ "boolean",
134
+ "null"
135
+ ]
136
+ },
137
+ "$gte": {
138
+ "type": [
139
+ "string",
140
+ "number",
141
+ "boolean",
142
+ "null"
143
+ ]
144
+ },
145
+ "$lte": {
146
+ "type": [
147
+ "string",
148
+ "number",
149
+ "boolean",
150
+ "null"
151
+ ]
152
+ },
153
+ "$startsWith": {
154
+ "type": "string",
155
+ "minLength": 1
156
+ },
157
+ "$endsWith": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ },
161
+ "$contains": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "$ci": {
166
+ "type": "boolean"
167
+ },
168
+ "$in": {
169
+ "type": "array",
170
+ "maxItems": 100,
171
+ "items": {
172
+ "type": [
173
+ "string",
174
+ "number",
175
+ "boolean"
176
+ ]
177
+ }
178
+ },
179
+ "$nin": {
180
+ "type": "array",
181
+ "maxItems": 100,
182
+ "items": {
183
+ "type": [
184
+ "string",
185
+ "number",
186
+ "boolean"
187
+ ]
188
+ }
189
+ }
190
+ },
191
+ "additionalProperties": false
192
+ }
193
+ ]
194
+ },
195
+ "lastUpdated": {
196
+ "oneOf": [
197
+ {
198
+ "type": [
199
+ "string",
200
+ "number",
201
+ "boolean",
202
+ "null"
203
+ ]
204
+ },
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "$eq": {
209
+ "type": [
210
+ "string",
211
+ "number",
212
+ "boolean",
213
+ "null"
214
+ ]
215
+ },
216
+ "$ne": {
217
+ "type": [
218
+ "string",
219
+ "number",
220
+ "boolean",
221
+ "null"
222
+ ]
223
+ },
224
+ "$gt": {
225
+ "type": [
226
+ "string",
227
+ "number",
228
+ "boolean",
229
+ "null"
230
+ ]
231
+ },
232
+ "$lt": {
233
+ "type": [
234
+ "string",
235
+ "number",
236
+ "boolean",
237
+ "null"
238
+ ]
239
+ },
240
+ "$gte": {
241
+ "type": [
242
+ "string",
243
+ "number",
244
+ "boolean",
245
+ "null"
246
+ ]
247
+ },
248
+ "$lte": {
249
+ "type": [
250
+ "string",
251
+ "number",
252
+ "boolean",
253
+ "null"
254
+ ]
255
+ },
256
+ "$startsWith": {
257
+ "type": "string",
258
+ "minLength": 1
259
+ },
260
+ "$endsWith": {
261
+ "type": "string",
262
+ "minLength": 1
263
+ },
264
+ "$contains": {
265
+ "type": "string",
266
+ "minLength": 1
267
+ },
268
+ "$ci": {
269
+ "type": "boolean"
270
+ },
271
+ "$in": {
272
+ "type": "array",
273
+ "maxItems": 100,
274
+ "items": {
275
+ "type": [
276
+ "string",
277
+ "number",
278
+ "boolean"
279
+ ]
280
+ }
281
+ },
282
+ "$nin": {
283
+ "type": "array",
284
+ "maxItems": 100,
285
+ "items": {
286
+ "type": [
287
+ "string",
288
+ "number",
289
+ "boolean"
290
+ ]
291
+ }
292
+ }
293
+ },
294
+ "additionalProperties": false
295
+ }
296
+ ]
297
+ },
298
+ "name": {
299
+ "oneOf": [
300
+ {
301
+ "type": [
302
+ "string",
303
+ "number",
304
+ "boolean",
305
+ "null"
306
+ ]
307
+ },
308
+ {
309
+ "type": "object",
310
+ "properties": {
311
+ "$eq": {
312
+ "type": [
313
+ "string",
314
+ "number",
315
+ "boolean",
316
+ "null"
317
+ ]
318
+ },
319
+ "$ne": {
320
+ "type": [
321
+ "string",
322
+ "number",
323
+ "boolean",
324
+ "null"
325
+ ]
326
+ },
327
+ "$gt": {
328
+ "type": [
329
+ "string",
330
+ "number",
331
+ "boolean",
332
+ "null"
333
+ ]
334
+ },
335
+ "$lt": {
336
+ "type": [
337
+ "string",
338
+ "number",
339
+ "boolean",
340
+ "null"
341
+ ]
342
+ },
343
+ "$gte": {
344
+ "type": [
345
+ "string",
346
+ "number",
347
+ "boolean",
348
+ "null"
349
+ ]
350
+ },
351
+ "$lte": {
352
+ "type": [
353
+ "string",
354
+ "number",
355
+ "boolean",
356
+ "null"
357
+ ]
358
+ },
359
+ "$startsWith": {
360
+ "type": "string",
361
+ "minLength": 1
362
+ },
363
+ "$endsWith": {
364
+ "type": "string",
365
+ "minLength": 1
366
+ },
367
+ "$contains": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ },
371
+ "$ci": {
372
+ "type": "boolean"
373
+ },
374
+ "$in": {
375
+ "type": "array",
376
+ "maxItems": 100,
377
+ "items": {
378
+ "type": [
379
+ "string",
380
+ "number",
381
+ "boolean"
382
+ ]
383
+ }
384
+ },
385
+ "$nin": {
386
+ "type": "array",
387
+ "maxItems": 100,
388
+ "items": {
389
+ "type": [
390
+ "string",
391
+ "number",
392
+ "boolean"
393
+ ]
394
+ }
395
+ }
396
+ },
397
+ "additionalProperties": false
398
+ }
399
+ ]
400
+ },
401
+ "deviceClass": {
402
+ "oneOf": [
403
+ {
404
+ "type": [
405
+ "string",
406
+ "number",
407
+ "boolean",
408
+ "null"
409
+ ]
410
+ },
411
+ {
412
+ "type": "object",
413
+ "properties": {
414
+ "$eq": {
415
+ "type": [
416
+ "string",
417
+ "number",
418
+ "boolean",
419
+ "null"
420
+ ]
421
+ },
422
+ "$ne": {
423
+ "type": [
424
+ "string",
425
+ "number",
426
+ "boolean",
427
+ "null"
428
+ ]
429
+ },
430
+ "$gt": {
431
+ "type": [
432
+ "string",
433
+ "number",
434
+ "boolean",
435
+ "null"
436
+ ]
437
+ },
438
+ "$lt": {
439
+ "type": [
440
+ "string",
441
+ "number",
442
+ "boolean",
443
+ "null"
444
+ ]
445
+ },
446
+ "$gte": {
447
+ "type": [
448
+ "string",
449
+ "number",
450
+ "boolean",
451
+ "null"
452
+ ]
453
+ },
454
+ "$lte": {
455
+ "type": [
456
+ "string",
457
+ "number",
458
+ "boolean",
459
+ "null"
460
+ ]
461
+ },
462
+ "$startsWith": {
463
+ "type": "string",
464
+ "minLength": 1
465
+ },
466
+ "$endsWith": {
467
+ "type": "string",
468
+ "minLength": 1
469
+ },
470
+ "$contains": {
471
+ "type": "string",
472
+ "minLength": 1
473
+ },
474
+ "$ci": {
475
+ "type": "boolean"
476
+ },
477
+ "$in": {
478
+ "type": "array",
479
+ "maxItems": 100,
480
+ "items": {
481
+ "type": [
482
+ "string",
483
+ "number",
484
+ "boolean"
485
+ ]
486
+ }
487
+ },
488
+ "$nin": {
489
+ "type": "array",
490
+ "maxItems": 100,
491
+ "items": {
492
+ "type": [
493
+ "string",
494
+ "number",
495
+ "boolean"
496
+ ]
497
+ }
498
+ }
499
+ },
500
+ "additionalProperties": false
501
+ }
502
+ ]
503
+ },
504
+ "gatewayId": {
505
+ "oneOf": [
506
+ {
507
+ "oneOf": [
508
+ {
509
+ "type": "string",
510
+ "pattern": "^[A-Fa-f\\d]{24}$"
511
+ },
512
+ {
513
+ "type": "null"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "$eq": {
521
+ "oneOf": [
522
+ {
523
+ "type": "string",
524
+ "pattern": "^[A-Fa-f\\d]{24}$"
525
+ },
526
+ {
527
+ "type": "null"
528
+ }
529
+ ]
530
+ },
531
+ "$ne": {
532
+ "oneOf": [
533
+ {
534
+ "type": "string",
535
+ "pattern": "^[A-Fa-f\\d]{24}$"
536
+ },
537
+ {
538
+ "type": "null"
539
+ }
540
+ ]
541
+ },
542
+ "$in": {
543
+ "type": "array",
544
+ "maxItems": 100,
545
+ "items": {
546
+ "type": "string",
547
+ "pattern": "^[A-Fa-f\\d]{24}$"
548
+ }
549
+ },
550
+ "$nin": {
551
+ "type": "array",
552
+ "maxItems": 100,
553
+ "items": {
554
+ "type": "string",
555
+ "pattern": "^[A-Fa-f\\d]{24}$"
556
+ }
557
+ }
558
+ },
559
+ "additionalProperties": false,
560
+ "minProperties": 1,
561
+ "maxProperties": 1
562
+ }
563
+ ]
564
+ },
565
+ "parentId": {
566
+ "oneOf": [
567
+ {
568
+ "oneOf": [
569
+ {
570
+ "type": "string",
571
+ "pattern": "^[A-Fa-f\\d]{24}$"
572
+ },
573
+ {
574
+ "type": "null"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "type": "object",
580
+ "properties": {
581
+ "$eq": {
582
+ "oneOf": [
583
+ {
584
+ "type": "string",
585
+ "pattern": "^[A-Fa-f\\d]{24}$"
586
+ },
587
+ {
588
+ "type": "null"
589
+ }
590
+ ]
591
+ },
592
+ "$ne": {
593
+ "oneOf": [
594
+ {
595
+ "type": "string",
596
+ "pattern": "^[A-Fa-f\\d]{24}$"
597
+ },
598
+ {
599
+ "type": "null"
600
+ }
601
+ ]
602
+ },
603
+ "$in": {
604
+ "type": "array",
605
+ "maxItems": 100,
606
+ "items": {
607
+ "type": "string",
608
+ "pattern": "^[A-Fa-f\\d]{24}$"
609
+ }
610
+ },
611
+ "$nin": {
612
+ "type": "array",
613
+ "maxItems": 100,
614
+ "items": {
615
+ "type": "string",
616
+ "pattern": "^[A-Fa-f\\d]{24}$"
617
+ }
618
+ }
619
+ },
620
+ "additionalProperties": false,
621
+ "minProperties": 1,
622
+ "maxProperties": 1
623
+ }
624
+ ]
625
+ },
626
+ "ancestorId": {
627
+ "oneOf": [
628
+ {
629
+ "oneOf": [
630
+ {
631
+ "type": "string",
632
+ "pattern": "^[A-Fa-f\\d]{24}$"
633
+ },
634
+ {
635
+ "type": "null"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "type": "object",
641
+ "properties": {
642
+ "$eq": {
643
+ "oneOf": [
644
+ {
645
+ "type": "string",
646
+ "pattern": "^[A-Fa-f\\d]{24}$"
647
+ },
648
+ {
649
+ "type": "null"
650
+ }
651
+ ]
652
+ },
653
+ "$ne": {
654
+ "oneOf": [
655
+ {
656
+ "type": "string",
657
+ "pattern": "^[A-Fa-f\\d]{24}$"
658
+ },
659
+ {
660
+ "type": "null"
661
+ }
662
+ ]
663
+ },
664
+ "$in": {
665
+ "type": "array",
666
+ "maxItems": 100,
667
+ "items": {
668
+ "type": "string",
669
+ "pattern": "^[A-Fa-f\\d]{24}$"
670
+ }
671
+ },
672
+ "$nin": {
673
+ "type": "array",
674
+ "maxItems": 100,
675
+ "items": {
676
+ "type": "string",
677
+ "pattern": "^[A-Fa-f\\d]{24}$"
678
+ }
679
+ }
680
+ },
681
+ "additionalProperties": false,
682
+ "minProperties": 1,
683
+ "maxProperties": 1
684
+ }
685
+ ]
686
+ },
687
+ "attributeName": {
688
+ "oneOf": [
689
+ {
690
+ "type": [
691
+ "string",
692
+ "number",
693
+ "boolean",
694
+ "null"
695
+ ]
696
+ },
697
+ {
698
+ "type": "object",
699
+ "properties": {
700
+ "$eq": {
701
+ "type": [
702
+ "string",
703
+ "number",
704
+ "boolean",
705
+ "null"
706
+ ]
707
+ },
708
+ "$ne": {
709
+ "type": [
710
+ "string",
711
+ "number",
712
+ "boolean",
713
+ "null"
714
+ ]
715
+ },
716
+ "$gt": {
717
+ "type": [
718
+ "string",
719
+ "number",
720
+ "boolean",
721
+ "null"
722
+ ]
723
+ },
724
+ "$lt": {
725
+ "type": [
726
+ "string",
727
+ "number",
728
+ "boolean",
729
+ "null"
730
+ ]
731
+ },
732
+ "$gte": {
733
+ "type": [
734
+ "string",
735
+ "number",
736
+ "boolean",
737
+ "null"
738
+ ]
739
+ },
740
+ "$lte": {
741
+ "type": [
742
+ "string",
743
+ "number",
744
+ "boolean",
745
+ "null"
746
+ ]
747
+ },
748
+ "$startsWith": {
749
+ "type": "string",
750
+ "minLength": 1
751
+ },
752
+ "$endsWith": {
753
+ "type": "string",
754
+ "minLength": 1
755
+ },
756
+ "$contains": {
757
+ "type": "string",
758
+ "minLength": 1
759
+ },
760
+ "$ci": {
761
+ "type": "boolean"
762
+ },
763
+ "$in": {
764
+ "type": "array",
765
+ "maxItems": 100,
766
+ "items": {
767
+ "type": [
768
+ "string",
769
+ "number",
770
+ "boolean"
771
+ ]
772
+ }
773
+ },
774
+ "$nin": {
775
+ "type": "array",
776
+ "maxItems": 100,
777
+ "items": {
778
+ "type": [
779
+ "string",
780
+ "number",
781
+ "boolean"
782
+ ]
783
+ }
784
+ }
785
+ },
786
+ "additionalProperties": false
787
+ }
788
+ ]
789
+ },
790
+ "experienceUserId": {
791
+ "oneOf": [
792
+ {
793
+ "oneOf": [
794
+ {
795
+ "type": "string",
796
+ "pattern": "^[A-Fa-f\\d]{24}$"
797
+ },
798
+ {
799
+ "type": "null"
800
+ }
801
+ ]
802
+ },
803
+ {
804
+ "type": "object",
805
+ "properties": {
806
+ "$eq": {
807
+ "oneOf": [
808
+ {
809
+ "type": "string",
810
+ "pattern": "^[A-Fa-f\\d]{24}$"
811
+ },
812
+ {
813
+ "type": "null"
814
+ }
815
+ ]
816
+ },
817
+ "$ne": {
818
+ "oneOf": [
819
+ {
820
+ "type": "string",
821
+ "pattern": "^[A-Fa-f\\d]{24}$"
822
+ },
823
+ {
824
+ "type": "null"
825
+ }
826
+ ]
827
+ },
828
+ "$in": {
829
+ "type": "array",
830
+ "maxItems": 100,
831
+ "items": {
832
+ "type": "string",
833
+ "pattern": "^[A-Fa-f\\d]{24}$"
834
+ }
835
+ },
836
+ "$nin": {
837
+ "type": "array",
838
+ "maxItems": 100,
839
+ "items": {
840
+ "type": "string",
841
+ "pattern": "^[A-Fa-f\\d]{24}$"
842
+ }
843
+ }
844
+ },
845
+ "additionalProperties": false,
846
+ "minProperties": 1,
847
+ "maxProperties": 1
848
+ }
849
+ ]
850
+ },
851
+ "experienceGroupId": {
852
+ "oneOf": [
853
+ {
854
+ "oneOf": [
855
+ {
856
+ "type": "string",
857
+ "pattern": "^[A-Fa-f\\d]{24}$"
858
+ },
859
+ {
860
+ "type": "null"
861
+ }
862
+ ]
863
+ },
864
+ {
865
+ "type": "object",
866
+ "properties": {
867
+ "$eq": {
868
+ "oneOf": [
869
+ {
870
+ "type": "string",
871
+ "pattern": "^[A-Fa-f\\d]{24}$"
872
+ },
873
+ {
874
+ "type": "null"
875
+ }
876
+ ]
877
+ },
878
+ "$ne": {
879
+ "oneOf": [
880
+ {
881
+ "type": "string",
882
+ "pattern": "^[A-Fa-f\\d]{24}$"
883
+ },
884
+ {
885
+ "type": "null"
886
+ }
887
+ ]
888
+ },
889
+ "$in": {
890
+ "type": "array",
891
+ "maxItems": 100,
892
+ "items": {
893
+ "type": "string",
894
+ "pattern": "^[A-Fa-f\\d]{24}$"
895
+ }
896
+ },
897
+ "$nin": {
898
+ "type": "array",
899
+ "maxItems": 100,
900
+ "items": {
901
+ "type": "string",
902
+ "pattern": "^[A-Fa-f\\d]{24}$"
903
+ }
904
+ }
905
+ },
906
+ "additionalProperties": false,
907
+ "minProperties": 1,
908
+ "maxProperties": 1
909
+ }
910
+ ]
911
+ },
912
+ "tags": {
913
+ "oneOf": [
914
+ {
915
+ "oneOf": [
916
+ {
917
+ "type": "object",
918
+ "properties": {
919
+ "$tagKey": {
920
+ "type": "string",
921
+ "maxLength": 255
922
+ },
923
+ "$tagValue": {
924
+ "type": "string",
925
+ "maxLength": 255
926
+ }
927
+ },
928
+ "additionalProperties": false,
929
+ "minProperties": 1
930
+ },
931
+ {
932
+ "type": "object",
933
+ "patternProperties": {
934
+ "^[0-9a-zA-Z_-]{1,255}": {
935
+ "type": "string",
936
+ "maxLength": 255
937
+ }
938
+ },
939
+ "additionalProperties": false
940
+ }
941
+ ]
942
+ },
943
+ {
944
+ "type": "object",
945
+ "properties": {
946
+ "$eq": {
947
+ "oneOf": [
948
+ {
949
+ "type": "object",
950
+ "properties": {
951
+ "$tagKey": {
952
+ "type": "string",
953
+ "maxLength": 255
954
+ },
955
+ "$tagValue": {
956
+ "type": "string",
957
+ "maxLength": 255
958
+ }
959
+ },
960
+ "additionalProperties": false,
961
+ "minProperties": 1
962
+ },
963
+ {
964
+ "type": "object",
965
+ "patternProperties": {
966
+ "^[0-9a-zA-Z_-]{1,255}": {
967
+ "type": "string",
968
+ "maxLength": 255
969
+ }
970
+ },
971
+ "additionalProperties": false
972
+ }
973
+ ]
974
+ }
975
+ },
976
+ "required": [
977
+ "$eq"
978
+ ],
979
+ "additionalProperties": false
980
+ },
981
+ {
982
+ "type": "object",
983
+ "properties": {
984
+ "$ne": {
985
+ "oneOf": [
986
+ {
987
+ "type": "object",
988
+ "properties": {
989
+ "$tagKey": {
990
+ "type": "string",
991
+ "maxLength": 255
992
+ },
993
+ "$tagValue": {
994
+ "type": "string",
995
+ "maxLength": 255
996
+ }
997
+ },
998
+ "additionalProperties": false,
999
+ "minProperties": 1
1000
+ },
1001
+ {
1002
+ "type": "object",
1003
+ "patternProperties": {
1004
+ "^[0-9a-zA-Z_-]{1,255}": {
1005
+ "type": "string",
1006
+ "maxLength": 255
1007
+ }
1008
+ },
1009
+ "additionalProperties": false
1010
+ }
1011
+ ]
1012
+ }
1013
+ },
1014
+ "required": [
1015
+ "$ne"
1016
+ ],
1017
+ "additionalProperties": false
1018
+ }
1019
+ ]
1020
+ }
1021
+ },
1022
+ "additionalProperties": false
1023
+ },
1024
+ "start": {
1025
+ "type": "number"
1026
+ },
1027
+ "end": {
1028
+ "type": "number"
1029
+ },
1030
+ "attributes": {
1031
+ "oneOf": [
1032
+ {
1033
+ "type": "null"
1034
+ },
1035
+ {
1036
+ "type": "array",
1037
+ "maxItems": 100,
1038
+ "items": {
1039
+ "type": "string",
1040
+ "maxLength": 255
1041
+ }
1042
+ }
1043
+ ]
1044
+ },
1045
+ "keepConnectionHistory": {
1046
+ "type": "boolean"
1047
+ },
1048
+ "keepCommandHistory": {
1049
+ "type": "boolean"
1050
+ }
1051
+ },
1052
+ "additionalProperties": false,
1053
+ "required": [
1054
+ "query"
1055
+ ]
1056
+ }