losant_rest 1.9.3 → 1.10.4

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