losant_rest 1.10.1 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ }