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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +13714 -7036
- data/docs/devices.md +89 -3
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/devices.rb +102 -3
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/advancedDeviceQuery.json +110 -0
- data/schemas/advancedEventQuery.json +198 -0
- data/schemas/advancedQuery.json +22 -0
- data/schemas/applicationApiTokenPost.json +2 -0
- data/schemas/dashboard.json +8 -0
- data/schemas/dashboardPatch.json +8 -0
- data/schemas/dashboardPost.json +8 -0
- data/schemas/dashboards.json +8 -0
- data/schemas/dataExport.json +11 -0
- data/schemas/dataTableRowsExport.json +22 -0
- data/schemas/devicesDataRemoved.json +12 -0
- data/schemas/devicesDeletePost.json +1034 -0
- data/schemas/devicesDeleted.json +12 -0
- data/schemas/devicesExportPost.json +1035 -0
- data/schemas/devicesPatch.json +1757 -4
- data/schemas/devicesRemoveDataPost.json +1056 -0
- data/schemas/devicesUpdated.json +18 -0
- data/schemas/eventsExport.json +198 -0
- data/schemas/githubLogin.json +2 -0
- data/schemas/multiDeviceCommand.json +1019 -0
- data/schemas/userCredentials.json +2 -0
- data/schemas/userPost.json +2 -0
- metadata +8 -2
@@ -98,6 +98,28 @@
|
|
98
98
|
},
|
99
99
|
"$ci": {
|
100
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
|
+
}
|
101
123
|
}
|
102
124
|
},
|
103
125
|
"additionalProperties": false
|
@@ -179,6 +201,28 @@
|
|
179
201
|
},
|
180
202
|
"$ci": {
|
181
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
|
+
}
|
182
226
|
}
|
183
227
|
},
|
184
228
|
"additionalProperties": false
|
@@ -260,6 +304,28 @@
|
|
260
304
|
},
|
261
305
|
"$ci": {
|
262
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
|
+
}
|
263
329
|
}
|
264
330
|
},
|
265
331
|
"additionalProperties": false
|
@@ -341,6 +407,28 @@
|
|
341
407
|
},
|
342
408
|
"$ci": {
|
343
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
|
+
}
|
344
432
|
}
|
345
433
|
},
|
346
434
|
"additionalProperties": false
|
@@ -422,6 +510,28 @@
|
|
422
510
|
},
|
423
511
|
"$ci": {
|
424
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
|
+
}
|
425
535
|
}
|
426
536
|
},
|
427
537
|
"additionalProperties": false
|
@@ -503,6 +613,28 @@
|
|
503
613
|
},
|
504
614
|
"$ci": {
|
505
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
|
+
}
|
506
638
|
}
|
507
639
|
},
|
508
640
|
"additionalProperties": false
|
@@ -584,6 +716,28 @@
|
|
584
716
|
},
|
585
717
|
"$ci": {
|
586
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
|
+
}
|
587
741
|
}
|
588
742
|
},
|
589
743
|
"additionalProperties": false
|
@@ -665,6 +819,28 @@
|
|
665
819
|
},
|
666
820
|
"$ci": {
|
667
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
|
+
}
|
668
844
|
}
|
669
845
|
},
|
670
846
|
"additionalProperties": false
|
@@ -746,6 +922,28 @@
|
|
746
922
|
},
|
747
923
|
"$ci": {
|
748
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
|
+
}
|
749
947
|
}
|
750
948
|
},
|
751
949
|
"additionalProperties": false
|
data/schemas/advancedQuery.json
CHANGED
@@ -100,6 +100,28 @@
|
|
100
100
|
},
|
101
101
|
"$ci": {
|
102
102
|
"type": "boolean"
|
103
|
+
},
|
104
|
+
"$in": {
|
105
|
+
"type": "array",
|
106
|
+
"maxItems": 100,
|
107
|
+
"items": {
|
108
|
+
"type": [
|
109
|
+
"string",
|
110
|
+
"number",
|
111
|
+
"boolean"
|
112
|
+
]
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"$nin": {
|
116
|
+
"type": "array",
|
117
|
+
"maxItems": 100,
|
118
|
+
"items": {
|
119
|
+
"type": [
|
120
|
+
"string",
|
121
|
+
"number",
|
122
|
+
"boolean"
|
123
|
+
]
|
124
|
+
}
|
103
125
|
}
|
104
126
|
},
|
105
127
|
"additionalProperties": false
|
data/schemas/dashboard.json
CHANGED
@@ -2305,6 +2305,10 @@
|
|
2305
2305
|
"normal",
|
2306
2306
|
"satellite"
|
2307
2307
|
]
|
2308
|
+
},
|
2309
|
+
"query": {
|
2310
|
+
"type": "string",
|
2311
|
+
"maxLength": 32767
|
2308
2312
|
}
|
2309
2313
|
},
|
2310
2314
|
"additionalProperties": false
|
@@ -4534,6 +4538,10 @@
|
|
4534
4538
|
"type": "string",
|
4535
4539
|
"maxLength": 32767
|
4536
4540
|
},
|
4541
|
+
"query": {
|
4542
|
+
"type": "string",
|
4543
|
+
"maxLength": 32767
|
4544
|
+
},
|
4537
4545
|
"resizedPins": {
|
4538
4546
|
"type": "boolean"
|
4539
4547
|
},
|
data/schemas/dashboardPatch.json
CHANGED
@@ -2187,6 +2187,10 @@
|
|
2187
2187
|
"normal",
|
2188
2188
|
"satellite"
|
2189
2189
|
]
|
2190
|
+
},
|
2191
|
+
"query": {
|
2192
|
+
"type": "string",
|
2193
|
+
"maxLength": 32767
|
2190
2194
|
}
|
2191
2195
|
},
|
2192
2196
|
"additionalProperties": false
|
@@ -4416,6 +4420,10 @@
|
|
4416
4420
|
"type": "string",
|
4417
4421
|
"maxLength": 32767
|
4418
4422
|
},
|
4423
|
+
"query": {
|
4424
|
+
"type": "string",
|
4425
|
+
"maxLength": 32767
|
4426
|
+
},
|
4419
4427
|
"resizedPins": {
|
4420
4428
|
"type": "boolean"
|
4421
4429
|
},
|
data/schemas/dashboardPost.json
CHANGED
@@ -2195,6 +2195,10 @@
|
|
2195
2195
|
"normal",
|
2196
2196
|
"satellite"
|
2197
2197
|
]
|
2198
|
+
},
|
2199
|
+
"query": {
|
2200
|
+
"type": "string",
|
2201
|
+
"maxLength": 32767
|
2198
2202
|
}
|
2199
2203
|
},
|
2200
2204
|
"additionalProperties": false
|
@@ -4424,6 +4428,10 @@
|
|
4424
4428
|
"type": "string",
|
4425
4429
|
"maxLength": 32767
|
4426
4430
|
},
|
4431
|
+
"query": {
|
4432
|
+
"type": "string",
|
4433
|
+
"maxLength": 32767
|
4434
|
+
},
|
4427
4435
|
"resizedPins": {
|
4428
4436
|
"type": "boolean"
|
4429
4437
|
},
|
data/schemas/dashboards.json
CHANGED
@@ -2312,6 +2312,10 @@
|
|
2312
2312
|
"normal",
|
2313
2313
|
"satellite"
|
2314
2314
|
]
|
2315
|
+
},
|
2316
|
+
"query": {
|
2317
|
+
"type": "string",
|
2318
|
+
"maxLength": 32767
|
2315
2319
|
}
|
2316
2320
|
},
|
2317
2321
|
"additionalProperties": false
|
@@ -4541,6 +4545,10 @@
|
|
4541
4545
|
"type": "string",
|
4542
4546
|
"maxLength": 32767
|
4543
4547
|
},
|
4548
|
+
"query": {
|
4549
|
+
"type": "string",
|
4550
|
+
"maxLength": 32767
|
4551
|
+
},
|
4544
4552
|
"resizedPins": {
|
4545
4553
|
"type": "boolean"
|
4546
4554
|
},
|
data/schemas/dataExport.json
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
"format": "email",
|
8
8
|
"maxLength": 1024
|
9
9
|
},
|
10
|
+
"callbackUrl": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 1024
|
13
|
+
},
|
10
14
|
"deviceIds": {
|
11
15
|
"type": "array",
|
12
16
|
"items": {
|
@@ -34,6 +38,9 @@
|
|
34
38
|
},
|
35
39
|
"maxItems": 100
|
36
40
|
},
|
41
|
+
"deviceQuery": {
|
42
|
+
"ref": "#/definitions/advancedQuery"
|
43
|
+
},
|
37
44
|
"attributes": {
|
38
45
|
"type": "array",
|
39
46
|
"items": {
|
@@ -57,6 +64,10 @@
|
|
57
64
|
"includeID": {
|
58
65
|
"type": "boolean",
|
59
66
|
"default": true
|
67
|
+
},
|
68
|
+
"includeBlobData": {
|
69
|
+
"type": "boolean",
|
70
|
+
"default": false
|
60
71
|
}
|
61
72
|
}
|
62
73
|
}
|
@@ -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
|