losant_rest 1.9.2 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38445 -24043
  3. data/docs/application.md +124 -2
  4. data/docs/applicationTemplates.md +50 -0
  5. data/docs/auth.md +72 -0
  6. data/docs/device.md +1 -0
  7. data/docs/devices.md +92 -3
  8. data/docs/experienceEndpoints.md +1 -0
  9. data/docs/file.md +4 -4
  10. data/docs/flow.md +94 -1
  11. data/docs/flowVersion.md +96 -1
  12. data/lib/losant_rest.rb +1 -0
  13. data/lib/losant_rest/application.rb +93 -2
  14. data/lib/losant_rest/application_templates.rb +88 -0
  15. data/lib/losant_rest/auth.rb +84 -0
  16. data/lib/losant_rest/client.rb +6 -2
  17. data/lib/losant_rest/device.rb +2 -0
  18. data/lib/losant_rest/devices.rb +105 -2
  19. data/lib/losant_rest/experience_endpoints.rb +2 -0
  20. data/lib/losant_rest/file.rb +3 -3
  21. data/lib/losant_rest/flow.rb +115 -1
  22. data/lib/losant_rest/flow_version.rb +115 -1
  23. data/lib/losant_rest/version.rb +2 -2
  24. data/schemas/advancedDeviceQuery.json +1018 -0
  25. data/schemas/advancedEventQuery.json +382 -13
  26. data/schemas/advancedQuery.json +37 -3
  27. data/schemas/application.json +7 -2
  28. data/schemas/applicationApiTokenPost.json +8 -1
  29. data/schemas/applicationCreationByTemplateResult.json +7 -2
  30. data/schemas/applicationPatch.json +7 -2
  31. data/schemas/applicationPost.json +11 -2
  32. data/schemas/applicationReadme.json +29 -0
  33. data/schemas/applicationReadmePatch.json +11 -0
  34. data/schemas/applicationTemplate.json +99 -0
  35. data/schemas/applicationTemplates.json +140 -0
  36. data/schemas/applications.json +7 -2
  37. data/schemas/dashboard.json +1168 -144
  38. data/schemas/dashboardPatch.json +1168 -144
  39. data/schemas/dashboardPost.json +1168 -144
  40. data/schemas/dashboards.json +1168 -144
  41. data/schemas/dataExport.json +11 -0
  42. data/schemas/dataTableRows.json +3 -0
  43. data/schemas/dataTableRowsExport.json +37 -3
  44. data/schemas/device.json +16 -3
  45. data/schemas/devicePatch.json +16 -3
  46. data/schemas/devicePost.json +16 -3
  47. data/schemas/deviceRecipe.json +16 -3
  48. data/schemas/deviceRecipePatch.json +16 -3
  49. data/schemas/deviceRecipePost.json +16 -3
  50. data/schemas/deviceRecipes.json +16 -3
  51. data/schemas/devices.json +19 -3
  52. data/schemas/devicesDataRemoved.json +12 -0
  53. data/schemas/devicesDeletePost.json +1034 -0
  54. data/schemas/devicesDeleted.json +12 -0
  55. data/schemas/devicesExportPost.json +1035 -0
  56. data/schemas/devicesPatch.json +1773 -7
  57. data/schemas/devicesRemoveDataPost.json +1056 -0
  58. data/schemas/devicesUpdated.json +18 -0
  59. data/schemas/eventPost.json +22 -0
  60. data/schemas/events.json +1 -816
  61. data/schemas/eventsExport.json +382 -13
  62. data/schemas/experienceDomain.json +1 -1
  63. data/schemas/experienceDomainPatch.json +1 -1
  64. data/schemas/experienceDomainPost.json +1 -1
  65. data/schemas/experienceDomains.json +1 -1
  66. data/schemas/experienceGroup.json +7 -0
  67. data/schemas/experienceGroupPatch.json +7 -0
  68. data/schemas/experienceGroupPost.json +7 -0
  69. data/schemas/experienceGroups.json +7 -0
  70. data/schemas/experienceLinkedResources.json +309 -3
  71. data/schemas/experienceVersion.json +1 -1
  72. data/schemas/experienceVersions.json +1 -1
  73. data/schemas/flow.json +103 -1
  74. data/schemas/flowErrors.json +87 -0
  75. data/schemas/flowPatch.json +103 -1
  76. data/schemas/flowPost.json +103 -1
  77. data/schemas/flowStats.json +54 -0
  78. data/schemas/flowVersion.json +206 -2
  79. data/schemas/flowVersionPost.json +103 -1
  80. data/schemas/flowVersions.json +206 -2
  81. data/schemas/flows.json +103 -1
  82. data/schemas/flowsImportPost.json +206 -2
  83. data/schemas/flowsImportResult.json +309 -3
  84. data/schemas/githubLogin.json +10 -1
  85. data/schemas/me.json +3 -0
  86. data/schemas/multiDeviceCommand.json +1019 -0
  87. data/schemas/notebook.json +99 -2
  88. data/schemas/notebookPatch.json +99 -2
  89. data/schemas/notebookPost.json +99 -2
  90. data/schemas/notebooks.json +99 -2
  91. data/schemas/org.json +8 -0
  92. data/schemas/orgPatch.json +9 -0
  93. data/schemas/orgs.json +8 -0
  94. data/schemas/samlResponse.json +21 -0
  95. data/schemas/ssoRequest.json +20 -0
  96. data/schemas/timeSeriesData.json +91 -12
  97. data/schemas/timeSeriesQuery.json +21 -12
  98. data/schemas/userCredentials.json +10 -1
  99. data/schemas/userPost.json +10 -1
  100. metadata +20 -4
@@ -6,13 +6,22 @@
6
6
  "type": "array",
7
7
  "items": {
8
8
  "$ref": "#/definitions/advancedEventQuery"
9
- }
9
+ },
10
+ "maxItems": 100
10
11
  },
11
12
  "$or": {
12
13
  "type": "array",
13
14
  "items": {
14
15
  "$ref": "#/definitions/advancedEventQuery"
15
- }
16
+ },
17
+ "maxItems": 100
18
+ },
19
+ "$nor": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "#/definitions/advancedEventQuery"
23
+ },
24
+ "maxItems": 100
16
25
  },
17
26
  "id": {
18
27
  "oneOf": [
@@ -86,6 +95,31 @@
86
95
  "$contains": {
87
96
  "type": "string",
88
97
  "minLength": 1
98
+ },
99
+ "$ci": {
100
+ "type": "boolean"
101
+ },
102
+ "$in": {
103
+ "type": "array",
104
+ "maxItems": 100,
105
+ "items": {
106
+ "type": [
107
+ "string",
108
+ "number",
109
+ "boolean"
110
+ ]
111
+ }
112
+ },
113
+ "$nin": {
114
+ "type": "array",
115
+ "maxItems": 100,
116
+ "items": {
117
+ "type": [
118
+ "string",
119
+ "number",
120
+ "boolean"
121
+ ]
122
+ }
89
123
  }
90
124
  },
91
125
  "additionalProperties": false
@@ -164,6 +198,31 @@
164
198
  "$contains": {
165
199
  "type": "string",
166
200
  "minLength": 1
201
+ },
202
+ "$ci": {
203
+ "type": "boolean"
204
+ },
205
+ "$in": {
206
+ "type": "array",
207
+ "maxItems": 100,
208
+ "items": {
209
+ "type": [
210
+ "string",
211
+ "number",
212
+ "boolean"
213
+ ]
214
+ }
215
+ },
216
+ "$nin": {
217
+ "type": "array",
218
+ "maxItems": 100,
219
+ "items": {
220
+ "type": [
221
+ "string",
222
+ "number",
223
+ "boolean"
224
+ ]
225
+ }
167
226
  }
168
227
  },
169
228
  "additionalProperties": false
@@ -242,6 +301,31 @@
242
301
  "$contains": {
243
302
  "type": "string",
244
303
  "minLength": 1
304
+ },
305
+ "$ci": {
306
+ "type": "boolean"
307
+ },
308
+ "$in": {
309
+ "type": "array",
310
+ "maxItems": 100,
311
+ "items": {
312
+ "type": [
313
+ "string",
314
+ "number",
315
+ "boolean"
316
+ ]
317
+ }
318
+ },
319
+ "$nin": {
320
+ "type": "array",
321
+ "maxItems": 100,
322
+ "items": {
323
+ "type": [
324
+ "string",
325
+ "number",
326
+ "boolean"
327
+ ]
328
+ }
245
329
  }
246
330
  },
247
331
  "additionalProperties": false
@@ -320,6 +404,31 @@
320
404
  "$contains": {
321
405
  "type": "string",
322
406
  "minLength": 1
407
+ },
408
+ "$ci": {
409
+ "type": "boolean"
410
+ },
411
+ "$in": {
412
+ "type": "array",
413
+ "maxItems": 100,
414
+ "items": {
415
+ "type": [
416
+ "string",
417
+ "number",
418
+ "boolean"
419
+ ]
420
+ }
421
+ },
422
+ "$nin": {
423
+ "type": "array",
424
+ "maxItems": 100,
425
+ "items": {
426
+ "type": [
427
+ "string",
428
+ "number",
429
+ "boolean"
430
+ ]
431
+ }
323
432
  }
324
433
  },
325
434
  "additionalProperties": false
@@ -398,6 +507,31 @@
398
507
  "$contains": {
399
508
  "type": "string",
400
509
  "minLength": 1
510
+ },
511
+ "$ci": {
512
+ "type": "boolean"
513
+ },
514
+ "$in": {
515
+ "type": "array",
516
+ "maxItems": 100,
517
+ "items": {
518
+ "type": [
519
+ "string",
520
+ "number",
521
+ "boolean"
522
+ ]
523
+ }
524
+ },
525
+ "$nin": {
526
+ "type": "array",
527
+ "maxItems": 100,
528
+ "items": {
529
+ "type": [
530
+ "string",
531
+ "number",
532
+ "boolean"
533
+ ]
534
+ }
401
535
  }
402
536
  },
403
537
  "additionalProperties": false
@@ -476,6 +610,31 @@
476
610
  "$contains": {
477
611
  "type": "string",
478
612
  "minLength": 1
613
+ },
614
+ "$ci": {
615
+ "type": "boolean"
616
+ },
617
+ "$in": {
618
+ "type": "array",
619
+ "maxItems": 100,
620
+ "items": {
621
+ "type": [
622
+ "string",
623
+ "number",
624
+ "boolean"
625
+ ]
626
+ }
627
+ },
628
+ "$nin": {
629
+ "type": "array",
630
+ "maxItems": 100,
631
+ "items": {
632
+ "type": [
633
+ "string",
634
+ "number",
635
+ "boolean"
636
+ ]
637
+ }
479
638
  }
480
639
  },
481
640
  "additionalProperties": false
@@ -554,6 +713,31 @@
554
713
  "$contains": {
555
714
  "type": "string",
556
715
  "minLength": 1
716
+ },
717
+ "$ci": {
718
+ "type": "boolean"
719
+ },
720
+ "$in": {
721
+ "type": "array",
722
+ "maxItems": 100,
723
+ "items": {
724
+ "type": [
725
+ "string",
726
+ "number",
727
+ "boolean"
728
+ ]
729
+ }
730
+ },
731
+ "$nin": {
732
+ "type": "array",
733
+ "maxItems": 100,
734
+ "items": {
735
+ "type": [
736
+ "string",
737
+ "number",
738
+ "boolean"
739
+ ]
740
+ }
557
741
  }
558
742
  },
559
743
  "additionalProperties": false
@@ -632,6 +816,31 @@
632
816
  "$contains": {
633
817
  "type": "string",
634
818
  "minLength": 1
819
+ },
820
+ "$ci": {
821
+ "type": "boolean"
822
+ },
823
+ "$in": {
824
+ "type": "array",
825
+ "maxItems": 100,
826
+ "items": {
827
+ "type": [
828
+ "string",
829
+ "number",
830
+ "boolean"
831
+ ]
832
+ }
833
+ },
834
+ "$nin": {
835
+ "type": "array",
836
+ "maxItems": 100,
837
+ "items": {
838
+ "type": [
839
+ "string",
840
+ "number",
841
+ "boolean"
842
+ ]
843
+ }
635
844
  }
636
845
  },
637
846
  "additionalProperties": false
@@ -710,12 +919,159 @@
710
919
  "$contains": {
711
920
  "type": "string",
712
921
  "minLength": 1
922
+ },
923
+ "$ci": {
924
+ "type": "boolean"
925
+ },
926
+ "$in": {
927
+ "type": "array",
928
+ "maxItems": 100,
929
+ "items": {
930
+ "type": [
931
+ "string",
932
+ "number",
933
+ "boolean"
934
+ ]
935
+ }
936
+ },
937
+ "$nin": {
938
+ "type": "array",
939
+ "maxItems": 100,
940
+ "items": {
941
+ "type": [
942
+ "string",
943
+ "number",
944
+ "boolean"
945
+ ]
946
+ }
713
947
  }
714
948
  },
715
949
  "additionalProperties": false
716
950
  }
717
951
  ]
718
952
  },
953
+ "experienceUserId": {
954
+ "oneOf": [
955
+ {
956
+ "oneOf": [
957
+ {
958
+ "type": "string",
959
+ "pattern": "^[A-Fa-f\\d]{24}$"
960
+ },
961
+ {
962
+ "type": "null"
963
+ }
964
+ ]
965
+ },
966
+ {
967
+ "type": "object",
968
+ "properties": {
969
+ "$eq": {
970
+ "oneOf": [
971
+ {
972
+ "type": "string",
973
+ "pattern": "^[A-Fa-f\\d]{24}$"
974
+ },
975
+ {
976
+ "type": "null"
977
+ }
978
+ ]
979
+ },
980
+ "$ne": {
981
+ "oneOf": [
982
+ {
983
+ "type": "string",
984
+ "pattern": "^[A-Fa-f\\d]{24}$"
985
+ },
986
+ {
987
+ "type": "null"
988
+ }
989
+ ]
990
+ },
991
+ "$in": {
992
+ "type": "array",
993
+ "maxItems": 100,
994
+ "items": {
995
+ "type": "string",
996
+ "pattern": "^[A-Fa-f\\d]{24}$"
997
+ }
998
+ },
999
+ "$nin": {
1000
+ "type": "array",
1001
+ "maxItems": 100,
1002
+ "items": {
1003
+ "type": "string",
1004
+ "pattern": "^[A-Fa-f\\d]{24}$"
1005
+ }
1006
+ }
1007
+ },
1008
+ "additionalProperties": false,
1009
+ "minProperties": 1,
1010
+ "maxProperties": 1
1011
+ }
1012
+ ]
1013
+ },
1014
+ "experienceGroupId": {
1015
+ "oneOf": [
1016
+ {
1017
+ "oneOf": [
1018
+ {
1019
+ "type": "string",
1020
+ "pattern": "^[A-Fa-f\\d]{24}$"
1021
+ },
1022
+ {
1023
+ "type": "null"
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "type": "object",
1029
+ "properties": {
1030
+ "$eq": {
1031
+ "oneOf": [
1032
+ {
1033
+ "type": "string",
1034
+ "pattern": "^[A-Fa-f\\d]{24}$"
1035
+ },
1036
+ {
1037
+ "type": "null"
1038
+ }
1039
+ ]
1040
+ },
1041
+ "$ne": {
1042
+ "oneOf": [
1043
+ {
1044
+ "type": "string",
1045
+ "pattern": "^[A-Fa-f\\d]{24}$"
1046
+ },
1047
+ {
1048
+ "type": "null"
1049
+ }
1050
+ ]
1051
+ },
1052
+ "$in": {
1053
+ "type": "array",
1054
+ "maxItems": 100,
1055
+ "items": {
1056
+ "type": "string",
1057
+ "pattern": "^[A-Fa-f\\d]{24}$"
1058
+ }
1059
+ },
1060
+ "$nin": {
1061
+ "type": "array",
1062
+ "maxItems": 100,
1063
+ "items": {
1064
+ "type": "string",
1065
+ "pattern": "^[A-Fa-f\\d]{24}$"
1066
+ }
1067
+ }
1068
+ },
1069
+ "additionalProperties": false,
1070
+ "minProperties": 1,
1071
+ "maxProperties": 1
1072
+ }
1073
+ ]
1074
+ },
719
1075
  "eventTags": {
720
1076
  "oneOf": [
721
1077
  {
@@ -724,10 +1080,12 @@
724
1080
  "type": "object",
725
1081
  "properties": {
726
1082
  "$tagKey": {
727
- "type": "string"
1083
+ "type": "string",
1084
+ "maxLength": 255
728
1085
  },
729
1086
  "$tagValue": {
730
- "type": "string"
1087
+ "type": "string",
1088
+ "maxLength": 255
731
1089
  }
732
1090
  },
733
1091
  "additionalProperties": false,
@@ -737,7 +1095,8 @@
737
1095
  "type": "object",
738
1096
  "patternProperties": {
739
1097
  "^[0-9a-zA-Z_-]{1,255}": {
740
- "type": "string"
1098
+ "type": "string",
1099
+ "maxLength": 255
741
1100
  }
742
1101
  },
743
1102
  "additionalProperties": false
@@ -753,10 +1112,12 @@
753
1112
  "type": "object",
754
1113
  "properties": {
755
1114
  "$tagKey": {
756
- "type": "string"
1115
+ "type": "string",
1116
+ "maxLength": 255
757
1117
  },
758
1118
  "$tagValue": {
759
- "type": "string"
1119
+ "type": "string",
1120
+ "maxLength": 255
760
1121
  }
761
1122
  },
762
1123
  "additionalProperties": false,
@@ -766,7 +1127,8 @@
766
1127
  "type": "object",
767
1128
  "patternProperties": {
768
1129
  "^[0-9a-zA-Z_-]{1,255}": {
769
- "type": "string"
1130
+ "type": "string",
1131
+ "maxLength": 255
770
1132
  }
771
1133
  },
772
1134
  "additionalProperties": false
@@ -774,7 +1136,9 @@
774
1136
  ]
775
1137
  }
776
1138
  },
777
- "minProperties": 1,
1139
+ "required": [
1140
+ "$eq"
1141
+ ],
778
1142
  "additionalProperties": false
779
1143
  },
780
1144
  {
@@ -786,10 +1150,12 @@
786
1150
  "type": "object",
787
1151
  "properties": {
788
1152
  "$tagKey": {
789
- "type": "string"
1153
+ "type": "string",
1154
+ "maxLength": 255
790
1155
  },
791
1156
  "$tagValue": {
792
- "type": "string"
1157
+ "type": "string",
1158
+ "maxLength": 255
793
1159
  }
794
1160
  },
795
1161
  "additionalProperties": false,
@@ -799,7 +1165,8 @@
799
1165
  "type": "object",
800
1166
  "patternProperties": {
801
1167
  "^[0-9a-zA-Z_-]{1,255}": {
802
- "type": "string"
1168
+ "type": "string",
1169
+ "maxLength": 255
803
1170
  }
804
1171
  },
805
1172
  "additionalProperties": false
@@ -807,7 +1174,9 @@
807
1174
  ]
808
1175
  }
809
1176
  },
810
- "minProperties": 1,
1177
+ "required": [
1178
+ "$ne"
1179
+ ],
811
1180
  "additionalProperties": false
812
1181
  }
813
1182
  ]