losant_rest 1.10.1 → 1.11.1

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