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
@@ -54,9 +54,14 @@
54
54
  "string",
55
55
  "number",
56
56
  "gps",
57
- "boolean"
57
+ "boolean",
58
+ "blob"
58
59
  ]
59
60
  },
61
+ "contentType": {
62
+ "type": "string",
63
+ "maxLength": 64
64
+ },
60
65
  "description": {
61
66
  "type": "string",
62
67
  "maxLength": 32767
@@ -86,10 +91,18 @@
86
91
  "MEDIAN",
87
92
  "MEAN",
88
93
  "SUM",
89
- "STD_DEV",
90
- "NONE"
94
+ "STD_DEV"
91
95
  ]
92
96
  },
97
+ "aggregationOptions": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "object",
101
+ "additionalProperties": false
102
+ },
103
+ "additionalProperties": false,
104
+ "maxItems": 0
105
+ },
93
106
  "childAttributes": {
94
107
  "type": "array",
95
108
  "items": {
@@ -199,11 +212,1764 @@
199
212
  "pattern": "^[A-Fa-f\\d]{24}$"
200
213
  },
201
214
  "maxItems": 1000
215
+ },
216
+ "query": {
217
+ "title": "Advanced Device Query",
218
+ "description": "Schema for advanced device queries",
219
+ "type": "object",
220
+ "properties": {
221
+ "$and": {
222
+ "type": "array",
223
+ "items": {
224
+ "$ref": "#/definitions/advancedDeviceQuery"
225
+ },
226
+ "maxItems": 100
227
+ },
228
+ "$or": {
229
+ "type": "array",
230
+ "items": {
231
+ "$ref": "#/definitions/advancedDeviceQuery"
232
+ },
233
+ "maxItems": 100
234
+ },
235
+ "$nor": {
236
+ "type": "array",
237
+ "items": {
238
+ "$ref": "#/definitions/advancedDeviceQuery"
239
+ },
240
+ "maxItems": 100
241
+ },
242
+ "id": {
243
+ "oneOf": [
244
+ {
245
+ "oneOf": [
246
+ {
247
+ "type": "string",
248
+ "pattern": "^[A-Fa-f\\d]{24}$"
249
+ },
250
+ {
251
+ "type": "null"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "type": "object",
257
+ "properties": {
258
+ "$eq": {
259
+ "oneOf": [
260
+ {
261
+ "type": "string",
262
+ "pattern": "^[A-Fa-f\\d]{24}$"
263
+ },
264
+ {
265
+ "type": "null"
266
+ }
267
+ ]
268
+ },
269
+ "$ne": {
270
+ "oneOf": [
271
+ {
272
+ "type": "string",
273
+ "pattern": "^[A-Fa-f\\d]{24}$"
274
+ },
275
+ {
276
+ "type": "null"
277
+ }
278
+ ]
279
+ },
280
+ "$in": {
281
+ "type": "array",
282
+ "maxItems": 100,
283
+ "items": {
284
+ "type": "string",
285
+ "pattern": "^[A-Fa-f\\d]{24}$"
286
+ }
287
+ },
288
+ "$nin": {
289
+ "type": "array",
290
+ "maxItems": 100,
291
+ "items": {
292
+ "type": "string",
293
+ "pattern": "^[A-Fa-f\\d]{24}$"
294
+ }
295
+ }
296
+ },
297
+ "additionalProperties": false,
298
+ "minProperties": 1,
299
+ "maxProperties": 1
300
+ }
301
+ ]
302
+ },
303
+ "creationDate": {
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
+ "lastUpdated": {
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
+ "name": {
510
+ "oneOf": [
511
+ {
512
+ "type": [
513
+ "string",
514
+ "number",
515
+ "boolean",
516
+ "null"
517
+ ]
518
+ },
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "$eq": {
523
+ "type": [
524
+ "string",
525
+ "number",
526
+ "boolean",
527
+ "null"
528
+ ]
529
+ },
530
+ "$ne": {
531
+ "type": [
532
+ "string",
533
+ "number",
534
+ "boolean",
535
+ "null"
536
+ ]
537
+ },
538
+ "$gt": {
539
+ "type": [
540
+ "string",
541
+ "number",
542
+ "boolean",
543
+ "null"
544
+ ]
545
+ },
546
+ "$lt": {
547
+ "type": [
548
+ "string",
549
+ "number",
550
+ "boolean",
551
+ "null"
552
+ ]
553
+ },
554
+ "$gte": {
555
+ "type": [
556
+ "string",
557
+ "number",
558
+ "boolean",
559
+ "null"
560
+ ]
561
+ },
562
+ "$lte": {
563
+ "type": [
564
+ "string",
565
+ "number",
566
+ "boolean",
567
+ "null"
568
+ ]
569
+ },
570
+ "$startsWith": {
571
+ "type": "string",
572
+ "minLength": 1
573
+ },
574
+ "$endsWith": {
575
+ "type": "string",
576
+ "minLength": 1
577
+ },
578
+ "$contains": {
579
+ "type": "string",
580
+ "minLength": 1
581
+ },
582
+ "$ci": {
583
+ "type": "boolean"
584
+ },
585
+ "$in": {
586
+ "type": "array",
587
+ "maxItems": 100,
588
+ "items": {
589
+ "type": [
590
+ "string",
591
+ "number",
592
+ "boolean"
593
+ ]
594
+ }
595
+ },
596
+ "$nin": {
597
+ "type": "array",
598
+ "maxItems": 100,
599
+ "items": {
600
+ "type": [
601
+ "string",
602
+ "number",
603
+ "boolean"
604
+ ]
605
+ }
606
+ }
607
+ },
608
+ "additionalProperties": false
609
+ }
610
+ ]
611
+ },
612
+ "deviceClass": {
613
+ "oneOf": [
614
+ {
615
+ "type": [
616
+ "string",
617
+ "number",
618
+ "boolean",
619
+ "null"
620
+ ]
621
+ },
622
+ {
623
+ "type": "object",
624
+ "properties": {
625
+ "$eq": {
626
+ "type": [
627
+ "string",
628
+ "number",
629
+ "boolean",
630
+ "null"
631
+ ]
632
+ },
633
+ "$ne": {
634
+ "type": [
635
+ "string",
636
+ "number",
637
+ "boolean",
638
+ "null"
639
+ ]
640
+ },
641
+ "$gt": {
642
+ "type": [
643
+ "string",
644
+ "number",
645
+ "boolean",
646
+ "null"
647
+ ]
648
+ },
649
+ "$lt": {
650
+ "type": [
651
+ "string",
652
+ "number",
653
+ "boolean",
654
+ "null"
655
+ ]
656
+ },
657
+ "$gte": {
658
+ "type": [
659
+ "string",
660
+ "number",
661
+ "boolean",
662
+ "null"
663
+ ]
664
+ },
665
+ "$lte": {
666
+ "type": [
667
+ "string",
668
+ "number",
669
+ "boolean",
670
+ "null"
671
+ ]
672
+ },
673
+ "$startsWith": {
674
+ "type": "string",
675
+ "minLength": 1
676
+ },
677
+ "$endsWith": {
678
+ "type": "string",
679
+ "minLength": 1
680
+ },
681
+ "$contains": {
682
+ "type": "string",
683
+ "minLength": 1
684
+ },
685
+ "$ci": {
686
+ "type": "boolean"
687
+ },
688
+ "$in": {
689
+ "type": "array",
690
+ "maxItems": 100,
691
+ "items": {
692
+ "type": [
693
+ "string",
694
+ "number",
695
+ "boolean"
696
+ ]
697
+ }
698
+ },
699
+ "$nin": {
700
+ "type": "array",
701
+ "maxItems": 100,
702
+ "items": {
703
+ "type": [
704
+ "string",
705
+ "number",
706
+ "boolean"
707
+ ]
708
+ }
709
+ }
710
+ },
711
+ "additionalProperties": false
712
+ }
713
+ ]
714
+ },
715
+ "gatewayId": {
716
+ "oneOf": [
717
+ {
718
+ "oneOf": [
719
+ {
720
+ "type": "string",
721
+ "pattern": "^[A-Fa-f\\d]{24}$"
722
+ },
723
+ {
724
+ "type": "null"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "type": "object",
730
+ "properties": {
731
+ "$eq": {
732
+ "oneOf": [
733
+ {
734
+ "type": "string",
735
+ "pattern": "^[A-Fa-f\\d]{24}$"
736
+ },
737
+ {
738
+ "type": "null"
739
+ }
740
+ ]
741
+ },
742
+ "$ne": {
743
+ "oneOf": [
744
+ {
745
+ "type": "string",
746
+ "pattern": "^[A-Fa-f\\d]{24}$"
747
+ },
748
+ {
749
+ "type": "null"
750
+ }
751
+ ]
752
+ },
753
+ "$in": {
754
+ "type": "array",
755
+ "maxItems": 100,
756
+ "items": {
757
+ "type": "string",
758
+ "pattern": "^[A-Fa-f\\d]{24}$"
759
+ }
760
+ },
761
+ "$nin": {
762
+ "type": "array",
763
+ "maxItems": 100,
764
+ "items": {
765
+ "type": "string",
766
+ "pattern": "^[A-Fa-f\\d]{24}$"
767
+ }
768
+ }
769
+ },
770
+ "additionalProperties": false,
771
+ "minProperties": 1,
772
+ "maxProperties": 1
773
+ }
774
+ ]
775
+ },
776
+ "parentId": {
777
+ "oneOf": [
778
+ {
779
+ "oneOf": [
780
+ {
781
+ "type": "string",
782
+ "pattern": "^[A-Fa-f\\d]{24}$"
783
+ },
784
+ {
785
+ "type": "null"
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "type": "object",
791
+ "properties": {
792
+ "$eq": {
793
+ "oneOf": [
794
+ {
795
+ "type": "string",
796
+ "pattern": "^[A-Fa-f\\d]{24}$"
797
+ },
798
+ {
799
+ "type": "null"
800
+ }
801
+ ]
802
+ },
803
+ "$ne": {
804
+ "oneOf": [
805
+ {
806
+ "type": "string",
807
+ "pattern": "^[A-Fa-f\\d]{24}$"
808
+ },
809
+ {
810
+ "type": "null"
811
+ }
812
+ ]
813
+ },
814
+ "$in": {
815
+ "type": "array",
816
+ "maxItems": 100,
817
+ "items": {
818
+ "type": "string",
819
+ "pattern": "^[A-Fa-f\\d]{24}$"
820
+ }
821
+ },
822
+ "$nin": {
823
+ "type": "array",
824
+ "maxItems": 100,
825
+ "items": {
826
+ "type": "string",
827
+ "pattern": "^[A-Fa-f\\d]{24}$"
828
+ }
829
+ }
830
+ },
831
+ "additionalProperties": false,
832
+ "minProperties": 1,
833
+ "maxProperties": 1
834
+ }
835
+ ]
836
+ },
837
+ "ancestorId": {
838
+ "oneOf": [
839
+ {
840
+ "oneOf": [
841
+ {
842
+ "type": "string",
843
+ "pattern": "^[A-Fa-f\\d]{24}$"
844
+ },
845
+ {
846
+ "type": "null"
847
+ }
848
+ ]
849
+ },
850
+ {
851
+ "type": "object",
852
+ "properties": {
853
+ "$eq": {
854
+ "oneOf": [
855
+ {
856
+ "type": "string",
857
+ "pattern": "^[A-Fa-f\\d]{24}$"
858
+ },
859
+ {
860
+ "type": "null"
861
+ }
862
+ ]
863
+ },
864
+ "$ne": {
865
+ "oneOf": [
866
+ {
867
+ "type": "string",
868
+ "pattern": "^[A-Fa-f\\d]{24}$"
869
+ },
870
+ {
871
+ "type": "null"
872
+ }
873
+ ]
874
+ },
875
+ "$in": {
876
+ "type": "array",
877
+ "maxItems": 100,
878
+ "items": {
879
+ "type": "string",
880
+ "pattern": "^[A-Fa-f\\d]{24}$"
881
+ }
882
+ },
883
+ "$nin": {
884
+ "type": "array",
885
+ "maxItems": 100,
886
+ "items": {
887
+ "type": "string",
888
+ "pattern": "^[A-Fa-f\\d]{24}$"
889
+ }
890
+ }
891
+ },
892
+ "additionalProperties": false,
893
+ "minProperties": 1,
894
+ "maxProperties": 1
895
+ }
896
+ ]
897
+ },
898
+ "attributeName": {
899
+ "oneOf": [
900
+ {
901
+ "type": [
902
+ "string",
903
+ "number",
904
+ "boolean",
905
+ "null"
906
+ ]
907
+ },
908
+ {
909
+ "type": "object",
910
+ "properties": {
911
+ "$eq": {
912
+ "type": [
913
+ "string",
914
+ "number",
915
+ "boolean",
916
+ "null"
917
+ ]
918
+ },
919
+ "$ne": {
920
+ "type": [
921
+ "string",
922
+ "number",
923
+ "boolean",
924
+ "null"
925
+ ]
926
+ },
927
+ "$gt": {
928
+ "type": [
929
+ "string",
930
+ "number",
931
+ "boolean",
932
+ "null"
933
+ ]
934
+ },
935
+ "$lt": {
936
+ "type": [
937
+ "string",
938
+ "number",
939
+ "boolean",
940
+ "null"
941
+ ]
942
+ },
943
+ "$gte": {
944
+ "type": [
945
+ "string",
946
+ "number",
947
+ "boolean",
948
+ "null"
949
+ ]
950
+ },
951
+ "$lte": {
952
+ "type": [
953
+ "string",
954
+ "number",
955
+ "boolean",
956
+ "null"
957
+ ]
958
+ },
959
+ "$startsWith": {
960
+ "type": "string",
961
+ "minLength": 1
962
+ },
963
+ "$endsWith": {
964
+ "type": "string",
965
+ "minLength": 1
966
+ },
967
+ "$contains": {
968
+ "type": "string",
969
+ "minLength": 1
970
+ },
971
+ "$ci": {
972
+ "type": "boolean"
973
+ },
974
+ "$in": {
975
+ "type": "array",
976
+ "maxItems": 100,
977
+ "items": {
978
+ "type": [
979
+ "string",
980
+ "number",
981
+ "boolean"
982
+ ]
983
+ }
984
+ },
985
+ "$nin": {
986
+ "type": "array",
987
+ "maxItems": 100,
988
+ "items": {
989
+ "type": [
990
+ "string",
991
+ "number",
992
+ "boolean"
993
+ ]
994
+ }
995
+ }
996
+ },
997
+ "additionalProperties": false
998
+ }
999
+ ]
1000
+ },
1001
+ "experienceUserId": {
1002
+ "oneOf": [
1003
+ {
1004
+ "oneOf": [
1005
+ {
1006
+ "type": "string",
1007
+ "pattern": "^[A-Fa-f\\d]{24}$"
1008
+ },
1009
+ {
1010
+ "type": "null"
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "type": "object",
1016
+ "properties": {
1017
+ "$eq": {
1018
+ "oneOf": [
1019
+ {
1020
+ "type": "string",
1021
+ "pattern": "^[A-Fa-f\\d]{24}$"
1022
+ },
1023
+ {
1024
+ "type": "null"
1025
+ }
1026
+ ]
1027
+ },
1028
+ "$ne": {
1029
+ "oneOf": [
1030
+ {
1031
+ "type": "string",
1032
+ "pattern": "^[A-Fa-f\\d]{24}$"
1033
+ },
1034
+ {
1035
+ "type": "null"
1036
+ }
1037
+ ]
1038
+ },
1039
+ "$in": {
1040
+ "type": "array",
1041
+ "maxItems": 100,
1042
+ "items": {
1043
+ "type": "string",
1044
+ "pattern": "^[A-Fa-f\\d]{24}$"
1045
+ }
1046
+ },
1047
+ "$nin": {
1048
+ "type": "array",
1049
+ "maxItems": 100,
1050
+ "items": {
1051
+ "type": "string",
1052
+ "pattern": "^[A-Fa-f\\d]{24}$"
1053
+ }
1054
+ }
1055
+ },
1056
+ "additionalProperties": false,
1057
+ "minProperties": 1,
1058
+ "maxProperties": 1
1059
+ }
1060
+ ]
1061
+ },
1062
+ "experienceGroupId": {
1063
+ "oneOf": [
1064
+ {
1065
+ "oneOf": [
1066
+ {
1067
+ "type": "string",
1068
+ "pattern": "^[A-Fa-f\\d]{24}$"
1069
+ },
1070
+ {
1071
+ "type": "null"
1072
+ }
1073
+ ]
1074
+ },
1075
+ {
1076
+ "type": "object",
1077
+ "properties": {
1078
+ "$eq": {
1079
+ "oneOf": [
1080
+ {
1081
+ "type": "string",
1082
+ "pattern": "^[A-Fa-f\\d]{24}$"
1083
+ },
1084
+ {
1085
+ "type": "null"
1086
+ }
1087
+ ]
1088
+ },
1089
+ "$ne": {
1090
+ "oneOf": [
1091
+ {
1092
+ "type": "string",
1093
+ "pattern": "^[A-Fa-f\\d]{24}$"
1094
+ },
1095
+ {
1096
+ "type": "null"
1097
+ }
1098
+ ]
1099
+ },
1100
+ "$in": {
1101
+ "type": "array",
1102
+ "maxItems": 100,
1103
+ "items": {
1104
+ "type": "string",
1105
+ "pattern": "^[A-Fa-f\\d]{24}$"
1106
+ }
1107
+ },
1108
+ "$nin": {
1109
+ "type": "array",
1110
+ "maxItems": 100,
1111
+ "items": {
1112
+ "type": "string",
1113
+ "pattern": "^[A-Fa-f\\d]{24}$"
1114
+ }
1115
+ }
1116
+ },
1117
+ "additionalProperties": false,
1118
+ "minProperties": 1,
1119
+ "maxProperties": 1
1120
+ }
1121
+ ]
1122
+ },
1123
+ "tags": {
1124
+ "oneOf": [
1125
+ {
1126
+ "oneOf": [
1127
+ {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "$tagKey": {
1131
+ "type": "string",
1132
+ "maxLength": 255
1133
+ },
1134
+ "$tagValue": {
1135
+ "type": "string",
1136
+ "maxLength": 255
1137
+ }
1138
+ },
1139
+ "additionalProperties": false,
1140
+ "minProperties": 1
1141
+ },
1142
+ {
1143
+ "type": "object",
1144
+ "patternProperties": {
1145
+ "^[0-9a-zA-Z_-]{1,255}": {
1146
+ "type": "string",
1147
+ "maxLength": 255
1148
+ }
1149
+ },
1150
+ "additionalProperties": false
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "type": "object",
1156
+ "properties": {
1157
+ "$eq": {
1158
+ "oneOf": [
1159
+ {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "$tagKey": {
1163
+ "type": "string",
1164
+ "maxLength": 255
1165
+ },
1166
+ "$tagValue": {
1167
+ "type": "string",
1168
+ "maxLength": 255
1169
+ }
1170
+ },
1171
+ "additionalProperties": false,
1172
+ "minProperties": 1
1173
+ },
1174
+ {
1175
+ "type": "object",
1176
+ "patternProperties": {
1177
+ "^[0-9a-zA-Z_-]{1,255}": {
1178
+ "type": "string",
1179
+ "maxLength": 255
1180
+ }
1181
+ },
1182
+ "additionalProperties": false
1183
+ }
1184
+ ]
1185
+ }
1186
+ },
1187
+ "required": [
1188
+ "$eq"
1189
+ ],
1190
+ "additionalProperties": false
1191
+ },
1192
+ {
1193
+ "type": "object",
1194
+ "properties": {
1195
+ "$ne": {
1196
+ "oneOf": [
1197
+ {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "$tagKey": {
1201
+ "type": "string",
1202
+ "maxLength": 255
1203
+ },
1204
+ "$tagValue": {
1205
+ "type": "string",
1206
+ "maxLength": 255
1207
+ }
1208
+ },
1209
+ "additionalProperties": false,
1210
+ "minProperties": 1
1211
+ },
1212
+ {
1213
+ "type": "object",
1214
+ "patternProperties": {
1215
+ "^[0-9a-zA-Z_-]{1,255}": {
1216
+ "type": "string",
1217
+ "maxLength": 255
1218
+ }
1219
+ },
1220
+ "additionalProperties": false
1221
+ }
1222
+ ]
1223
+ }
1224
+ },
1225
+ "required": [
1226
+ "$ne"
1227
+ ],
1228
+ "additionalProperties": false
1229
+ }
1230
+ ]
1231
+ }
1232
+ },
1233
+ "additionalProperties": false
1234
+ },
1235
+ "updateOperations": {
1236
+ "type": "array",
1237
+ "maxItems": 25,
1238
+ "items": {
1239
+ "oneOf": [
1240
+ {
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "operation": {
1244
+ "type": "string",
1245
+ "enum": [
1246
+ "set"
1247
+ ]
1248
+ },
1249
+ "target": {
1250
+ "type": "string",
1251
+ "enum": [
1252
+ "name"
1253
+ ]
1254
+ },
1255
+ "value": {
1256
+ "type": "string",
1257
+ "minLength": 1,
1258
+ "maxLength": 255
1259
+ }
1260
+ },
1261
+ "required": [
1262
+ "operation",
1263
+ "target",
1264
+ "value"
1265
+ ],
1266
+ "additionalProperties": false
1267
+ },
1268
+ {
1269
+ "type": "object",
1270
+ "properties": {
1271
+ "operation": {
1272
+ "type": "string",
1273
+ "enum": [
1274
+ "set"
1275
+ ]
1276
+ },
1277
+ "target": {
1278
+ "type": "string",
1279
+ "enum": [
1280
+ "deviceClass"
1281
+ ]
1282
+ },
1283
+ "value": {
1284
+ "type": "string",
1285
+ "enum": [
1286
+ "standalone",
1287
+ "gateway",
1288
+ "peripheral",
1289
+ "floating",
1290
+ "edgeCompute",
1291
+ "system"
1292
+ ]
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "operation",
1297
+ "target",
1298
+ "value"
1299
+ ],
1300
+ "additionalProperties": false
1301
+ },
1302
+ {
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "operation": {
1306
+ "type": "string",
1307
+ "enum": [
1308
+ "set"
1309
+ ]
1310
+ },
1311
+ "target": {
1312
+ "type": "string",
1313
+ "enum": [
1314
+ "description"
1315
+ ]
1316
+ },
1317
+ "value": {
1318
+ "type": "string",
1319
+ "maxLength": 32767
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "operation",
1324
+ "target",
1325
+ "value"
1326
+ ],
1327
+ "additionalProperties": false
1328
+ },
1329
+ {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "operation": {
1333
+ "type": "string",
1334
+ "enum": [
1335
+ "set"
1336
+ ]
1337
+ },
1338
+ "target": {
1339
+ "type": "string",
1340
+ "enum": [
1341
+ "gatewayId",
1342
+ "parentId"
1343
+ ]
1344
+ },
1345
+ "value": {
1346
+ "type": "string",
1347
+ "pattern": "^[A-Fa-f\\d]{24}$"
1348
+ }
1349
+ },
1350
+ "required": [
1351
+ "operation",
1352
+ "target",
1353
+ "value"
1354
+ ],
1355
+ "additionalProperties": false
1356
+ },
1357
+ {
1358
+ "type": "object",
1359
+ "properties": {
1360
+ "operation": {
1361
+ "type": "string",
1362
+ "enum": [
1363
+ "set"
1364
+ ]
1365
+ },
1366
+ "target": {
1367
+ "type": "string",
1368
+ "enum": [
1369
+ "systemInterval"
1370
+ ]
1371
+ },
1372
+ "value": {
1373
+ "type": "integer",
1374
+ "minimum": 5,
1375
+ "maximum": 3600
1376
+ }
1377
+ },
1378
+ "required": [
1379
+ "operation",
1380
+ "target",
1381
+ "value"
1382
+ ],
1383
+ "additionalProperties": false
1384
+ },
1385
+ {
1386
+ "type": "object",
1387
+ "properties": {
1388
+ "operation": {
1389
+ "type": "string",
1390
+ "enum": [
1391
+ "set"
1392
+ ]
1393
+ },
1394
+ "target": {
1395
+ "type": "string",
1396
+ "enum": [
1397
+ "keepDuplicates"
1398
+ ]
1399
+ },
1400
+ "value": {
1401
+ "type": "boolean"
1402
+ }
1403
+ },
1404
+ "required": [
1405
+ "operation",
1406
+ "target",
1407
+ "value"
1408
+ ],
1409
+ "additionalProperties": false
1410
+ },
1411
+ {
1412
+ "type": "object",
1413
+ "properties": {
1414
+ "operation": {
1415
+ "type": "string",
1416
+ "enum": [
1417
+ "set"
1418
+ ]
1419
+ },
1420
+ "target": {
1421
+ "type": "string",
1422
+ "enum": [
1423
+ "tag"
1424
+ ]
1425
+ },
1426
+ "value": {
1427
+ "type": "object",
1428
+ "properties": {
1429
+ "key": {
1430
+ "type": "string",
1431
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1432
+ },
1433
+ "value": {
1434
+ "type": "string",
1435
+ "minLength": 1,
1436
+ "maxLength": 255
1437
+ }
1438
+ },
1439
+ "required": [
1440
+ "key",
1441
+ "value"
1442
+ ],
1443
+ "additionalProperties": false
1444
+ }
1445
+ },
1446
+ "required": [
1447
+ "operation",
1448
+ "target",
1449
+ "value"
1450
+ ],
1451
+ "additionalProperties": false
1452
+ },
1453
+ {
1454
+ "type": "object",
1455
+ "properties": {
1456
+ "operation": {
1457
+ "type": "string",
1458
+ "enum": [
1459
+ "set"
1460
+ ]
1461
+ },
1462
+ "target": {
1463
+ "type": "string",
1464
+ "enum": [
1465
+ "attributeTag"
1466
+ ]
1467
+ },
1468
+ "attributeName": {
1469
+ "type": "string",
1470
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1471
+ },
1472
+ "value": {
1473
+ "type": "object",
1474
+ "properties": {
1475
+ "key": {
1476
+ "type": "string",
1477
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1478
+ },
1479
+ "value": {
1480
+ "type": "string",
1481
+ "minLength": 1,
1482
+ "maxLength": 255
1483
+ }
1484
+ },
1485
+ "required": [
1486
+ "key",
1487
+ "value"
1488
+ ],
1489
+ "additionalProperties": false
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "operation",
1494
+ "target",
1495
+ "attributeName",
1496
+ "value"
1497
+ ],
1498
+ "additionalProperties": false
1499
+ },
1500
+ {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "operation": {
1504
+ "type": "string",
1505
+ "enum": [
1506
+ "set"
1507
+ ]
1508
+ },
1509
+ "target": {
1510
+ "type": "string",
1511
+ "enum": [
1512
+ "attributeDescription"
1513
+ ]
1514
+ },
1515
+ "attributeName": {
1516
+ "type": "string",
1517
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1518
+ },
1519
+ "value": {
1520
+ "type": "string",
1521
+ "maxLength": 32767
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "operation",
1526
+ "target",
1527
+ "attributeName",
1528
+ "value"
1529
+ ],
1530
+ "additionalProperties": false
1531
+ },
1532
+ {
1533
+ "type": "object",
1534
+ "properties": {
1535
+ "operation": {
1536
+ "type": "string",
1537
+ "enum": [
1538
+ "remove"
1539
+ ]
1540
+ },
1541
+ "target": {
1542
+ "type": "string",
1543
+ "enum": [
1544
+ "description",
1545
+ "parentId"
1546
+ ]
1547
+ }
1548
+ },
1549
+ "required": [
1550
+ "operation",
1551
+ "target"
1552
+ ],
1553
+ "additionalProperties": false
1554
+ },
1555
+ {
1556
+ "type": "object",
1557
+ "properties": {
1558
+ "operation": {
1559
+ "type": "string",
1560
+ "enum": [
1561
+ "remove"
1562
+ ]
1563
+ },
1564
+ "target": {
1565
+ "type": "string",
1566
+ "enum": [
1567
+ "tag"
1568
+ ]
1569
+ },
1570
+ "tagKey": {
1571
+ "type": "string",
1572
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "operation",
1577
+ "target",
1578
+ "tagKey"
1579
+ ],
1580
+ "additionalProperties": false
1581
+ },
1582
+ {
1583
+ "type": "object",
1584
+ "properties": {
1585
+ "operation": {
1586
+ "type": "string",
1587
+ "enum": [
1588
+ "remove"
1589
+ ]
1590
+ },
1591
+ "target": {
1592
+ "type": "string",
1593
+ "enum": [
1594
+ "attribute"
1595
+ ]
1596
+ },
1597
+ "attributeName": {
1598
+ "type": "string",
1599
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1600
+ }
1601
+ },
1602
+ "required": [
1603
+ "operation",
1604
+ "target",
1605
+ "attributeName"
1606
+ ],
1607
+ "additionalProperties": false
1608
+ },
1609
+ {
1610
+ "type": "object",
1611
+ "properties": {
1612
+ "operation": {
1613
+ "type": "string",
1614
+ "enum": [
1615
+ "remove"
1616
+ ]
1617
+ },
1618
+ "target": {
1619
+ "type": "string",
1620
+ "enum": [
1621
+ "attributeTag"
1622
+ ]
1623
+ },
1624
+ "attributeName": {
1625
+ "type": "string",
1626
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1627
+ },
1628
+ "tagKey": {
1629
+ "type": "string",
1630
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1631
+ }
1632
+ },
1633
+ "required": [
1634
+ "operation",
1635
+ "target",
1636
+ "attributeName",
1637
+ "tagKey"
1638
+ ],
1639
+ "additionalProperties": false
1640
+ },
1641
+ {
1642
+ "type": "object",
1643
+ "properties": {
1644
+ "operation": {
1645
+ "type": "string",
1646
+ "enum": [
1647
+ "remove"
1648
+ ]
1649
+ },
1650
+ "target": {
1651
+ "type": "string",
1652
+ "enum": [
1653
+ "attributeDescription"
1654
+ ]
1655
+ },
1656
+ "attributeName": {
1657
+ "type": "string",
1658
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1659
+ }
1660
+ },
1661
+ "required": [
1662
+ "operation",
1663
+ "target",
1664
+ "attributeName"
1665
+ ],
1666
+ "additionalProperties": false
1667
+ },
1668
+ {
1669
+ "type": "object",
1670
+ "properties": {
1671
+ "operation": {
1672
+ "type": "string",
1673
+ "enum": [
1674
+ "add"
1675
+ ]
1676
+ },
1677
+ "target": {
1678
+ "type": "string",
1679
+ "enum": [
1680
+ "attribute"
1681
+ ]
1682
+ },
1683
+ "value": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "name": {
1687
+ "type": "string",
1688
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1689
+ },
1690
+ "dataType": {
1691
+ "type": "string",
1692
+ "enum": [
1693
+ "string",
1694
+ "number",
1695
+ "gps",
1696
+ "boolean",
1697
+ "blob"
1698
+ ]
1699
+ },
1700
+ "contentType": {
1701
+ "type": "string",
1702
+ "maxLength": 64
1703
+ },
1704
+ "description": {
1705
+ "type": "string",
1706
+ "maxLength": 32767
1707
+ },
1708
+ "attributeTags": {
1709
+ "type": "object",
1710
+ "patternProperties": {
1711
+ "^[0-9a-zA-Z_-]{1,255}$": {
1712
+ "type": "string",
1713
+ "minLength": 1,
1714
+ "maxLength": 255
1715
+ }
1716
+ },
1717
+ "additionalProperties": false
1718
+ },
1719
+ "system": {
1720
+ "type": "object",
1721
+ "properties": {
1722
+ "aggregation": {
1723
+ "type": "string",
1724
+ "enum": [
1725
+ "FIRST",
1726
+ "LAST",
1727
+ "COUNT",
1728
+ "MAX",
1729
+ "MIN",
1730
+ "MEDIAN",
1731
+ "MEAN",
1732
+ "SUM",
1733
+ "STD_DEV"
1734
+ ]
1735
+ },
1736
+ "aggregationOptions": {
1737
+ "type": "array",
1738
+ "items": {
1739
+ "type": "object",
1740
+ "additionalProperties": false
1741
+ },
1742
+ "additionalProperties": false,
1743
+ "maxItems": 0
1744
+ },
1745
+ "childAttributes": {
1746
+ "type": "array",
1747
+ "items": {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "name": {
1751
+ "type": "string",
1752
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1753
+ },
1754
+ "mode": {
1755
+ "type": "string",
1756
+ "enum": [
1757
+ "all",
1758
+ "whitelist",
1759
+ "blacklist"
1760
+ ]
1761
+ },
1762
+ "deviceIds": {
1763
+ "type": "array",
1764
+ "items": {
1765
+ "type": "string",
1766
+ "pattern": "^[A-Fa-f\\d]{24}$"
1767
+ },
1768
+ "maxItems": 1000
1769
+ },
1770
+ "deviceTags": {
1771
+ "type": "array",
1772
+ "items": {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "key": {
1776
+ "type": "string",
1777
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1778
+ },
1779
+ "value": {
1780
+ "type": "string",
1781
+ "minLength": 1,
1782
+ "maxLength": 255
1783
+ }
1784
+ },
1785
+ "additionalProperties": false
1786
+ },
1787
+ "maxItems": 100
1788
+ }
1789
+ },
1790
+ "required": [
1791
+ "name",
1792
+ "mode"
1793
+ ],
1794
+ "additionalProperties": false
1795
+ },
1796
+ "maxItems": 256
1797
+ }
1798
+ },
1799
+ "additionalProperties": false
1800
+ }
1801
+ },
1802
+ "required": [
1803
+ "name",
1804
+ "dataType"
1805
+ ],
1806
+ "additionalProperties": false
1807
+ }
1808
+ },
1809
+ "required": [
1810
+ "operation",
1811
+ "target",
1812
+ "value"
1813
+ ],
1814
+ "additionalProperties": false
1815
+ },
1816
+ {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "operation": {
1820
+ "type": "string",
1821
+ "enum": [
1822
+ "add"
1823
+ ]
1824
+ },
1825
+ "target": {
1826
+ "type": "string",
1827
+ "enum": [
1828
+ "attributeSystem"
1829
+ ]
1830
+ },
1831
+ "value": {
1832
+ "type": "object",
1833
+ "properties": {
1834
+ "name": {
1835
+ "type": "string",
1836
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1837
+ },
1838
+ "dataType": {
1839
+ "type": "string",
1840
+ "enum": [
1841
+ "string",
1842
+ "number",
1843
+ "gps",
1844
+ "boolean",
1845
+ "blob"
1846
+ ]
1847
+ },
1848
+ "contentType": {
1849
+ "type": "string",
1850
+ "maxLength": 64
1851
+ },
1852
+ "description": {
1853
+ "type": "string",
1854
+ "maxLength": 32767
1855
+ },
1856
+ "attributeTags": {
1857
+ "type": "object",
1858
+ "patternProperties": {
1859
+ "^[0-9a-zA-Z_-]{1,255}$": {
1860
+ "type": "string",
1861
+ "minLength": 1,
1862
+ "maxLength": 255
1863
+ }
1864
+ },
1865
+ "additionalProperties": false
1866
+ },
1867
+ "system": {
1868
+ "type": "object",
1869
+ "properties": {
1870
+ "aggregation": {
1871
+ "type": "string",
1872
+ "enum": [
1873
+ "FIRST",
1874
+ "LAST",
1875
+ "COUNT",
1876
+ "MAX",
1877
+ "MIN",
1878
+ "MEDIAN",
1879
+ "MEAN",
1880
+ "SUM",
1881
+ "STD_DEV"
1882
+ ]
1883
+ },
1884
+ "aggregationOptions": {
1885
+ "type": "array",
1886
+ "items": {
1887
+ "type": "object",
1888
+ "additionalProperties": false
1889
+ },
1890
+ "additionalProperties": false,
1891
+ "maxItems": 0
1892
+ },
1893
+ "childAttributes": {
1894
+ "type": "array",
1895
+ "items": {
1896
+ "type": "object",
1897
+ "properties": {
1898
+ "name": {
1899
+ "type": "string",
1900
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1901
+ },
1902
+ "mode": {
1903
+ "type": "string",
1904
+ "enum": [
1905
+ "all",
1906
+ "whitelist",
1907
+ "blacklist"
1908
+ ]
1909
+ },
1910
+ "deviceIds": {
1911
+ "type": "array",
1912
+ "items": {
1913
+ "type": "string",
1914
+ "pattern": "^[A-Fa-f\\d]{24}$"
1915
+ },
1916
+ "maxItems": 1000
1917
+ },
1918
+ "deviceTags": {
1919
+ "type": "array",
1920
+ "items": {
1921
+ "type": "object",
1922
+ "properties": {
1923
+ "key": {
1924
+ "type": "string",
1925
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1926
+ },
1927
+ "value": {
1928
+ "type": "string",
1929
+ "minLength": 1,
1930
+ "maxLength": 255
1931
+ }
1932
+ },
1933
+ "additionalProperties": false
1934
+ },
1935
+ "maxItems": 100
1936
+ }
1937
+ },
1938
+ "required": [
1939
+ "name",
1940
+ "mode"
1941
+ ],
1942
+ "additionalProperties": false
1943
+ },
1944
+ "maxItems": 256
1945
+ }
1946
+ },
1947
+ "additionalProperties": false
1948
+ }
1949
+ },
1950
+ "required": [
1951
+ "name",
1952
+ "dataType"
1953
+ ],
1954
+ "additionalProperties": false
1955
+ }
1956
+ },
1957
+ "required": [
1958
+ "operation",
1959
+ "target",
1960
+ "value"
1961
+ ],
1962
+ "additionalProperties": false
1963
+ }
1964
+ ]
1965
+ }
1966
+ },
1967
+ "email": {
1968
+ "type": "string",
1969
+ "format": "email",
1970
+ "maxLength": 1024
202
1971
  }
203
1972
  },
204
1973
  "additionalProperties": false,
205
- "required": [
206
- "updateFields",
207
- "deviceIds"
208
- ]
1974
+ "required": []
209
1975
  }