losant_rest 1.16.3 → 1.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1131 -127
  3. data/docs/dashboard.md +2 -0
  4. data/docs/device.md +4 -0
  5. data/docs/devices.md +4 -0
  6. data/docs/me.md +36 -0
  7. data/lib/losant_rest/client.rb +2 -2
  8. data/lib/losant_rest/dashboard.rb +4 -0
  9. data/lib/losant_rest/device.rb +8 -0
  10. data/lib/losant_rest/devices.rb +8 -0
  11. data/lib/losant_rest/me.rb +41 -0
  12. data/lib/losant_rest/version.rb +1 -1
  13. data/schemas/apiTokenPost.json +1 -0
  14. data/schemas/applicationDashboardPost.json +152 -24
  15. data/schemas/dashboard.json +152 -24
  16. data/schemas/dashboardPatch.json +152 -24
  17. data/schemas/dashboardPost.json +152 -24
  18. data/schemas/dashboards.json +152 -24
  19. data/schemas/enableTwoFactorAuth.json +5 -1
  20. data/schemas/experienceLinkedResources.json +3 -0
  21. data/schemas/experienceVersion.json +27 -0
  22. data/schemas/experienceVersionPatch.json +27 -0
  23. data/schemas/experienceVersionPost.json +39 -0
  24. data/schemas/experienceVersions.json +27 -0
  25. data/schemas/flow.json +1 -0
  26. data/schemas/flowPatch.json +1 -0
  27. data/schemas/flowPost.json +1 -0
  28. data/schemas/flowVersion.json +2 -0
  29. data/schemas/flowVersionPost.json +1 -0
  30. data/schemas/flowVersions.json +2 -0
  31. data/schemas/flows.json +1 -0
  32. data/schemas/flowsImportPost.json +2 -0
  33. data/schemas/flowsImportResult.json +3 -0
  34. data/schemas/githubLogin.json +1 -0
  35. data/schemas/importIntoApplicationOptions.json +7 -1
  36. data/schemas/importNewApplicationOptions.json +1 -0
  37. data/schemas/instanceCustomNodePatch.json +1 -0
  38. data/schemas/instanceCustomNodePost.json +1 -0
  39. data/schemas/integration.json +34 -1
  40. data/schemas/integrationPatch.json +34 -1
  41. data/schemas/integrationPost.json +34 -1
  42. data/schemas/integrations.json +34 -1
  43. data/schemas/samlResponse.json +1 -0
  44. data/schemas/twoFactorAuthInfo.json +15 -0
  45. data/schemas/userCredentials.json +1 -0
  46. data/schemas/userPost.json +1 -0
  47. data/schemas/validateContextError.json +3 -0
  48. data/schemas/validateContextSuccess.json +27 -0
  49. metadata +3 -2
@@ -120,8 +120,18 @@
120
120
  "type": "boolean"
121
121
  },
122
122
  "duration": {
123
- "type": "integer",
124
- "minimum": 0
123
+ "oneOf": [
124
+ {
125
+ "type": "integer",
126
+ "minimum": 0
127
+ },
128
+ {
129
+ "type": "string",
130
+ "enum": [
131
+ "{{dashboard.duration}}"
132
+ ]
133
+ }
134
+ ]
125
135
  },
126
136
  "xAxisFormat": {
127
137
  "type": "string",
@@ -562,8 +572,18 @@
562
572
  }
563
573
  },
564
574
  "duration": {
565
- "type": "integer",
566
- "minimum": 0
575
+ "oneOf": [
576
+ {
577
+ "type": "integer",
578
+ "minimum": 0
579
+ },
580
+ {
581
+ "type": "string",
582
+ "enum": [
583
+ "{{dashboard.duration}}"
584
+ ]
585
+ }
586
+ ]
567
587
  },
568
588
  "resolution": {
569
589
  "oneOf": [
@@ -735,8 +755,18 @@
735
755
  }
736
756
  },
737
757
  "duration": {
738
- "type": "integer",
739
- "minimum": 0
758
+ "oneOf": [
759
+ {
760
+ "type": "integer",
761
+ "minimum": 0
762
+ },
763
+ {
764
+ "type": "string",
765
+ "enum": [
766
+ "{{dashboard.duration}}"
767
+ ]
768
+ }
769
+ ]
740
770
  }
741
771
  },
742
772
  "additionalProperties": false
@@ -1471,8 +1501,18 @@
1471
1501
  }
1472
1502
  },
1473
1503
  "duration": {
1474
- "type": "integer",
1475
- "minimum": 0
1504
+ "oneOf": [
1505
+ {
1506
+ "type": "integer",
1507
+ "minimum": 0
1508
+ },
1509
+ {
1510
+ "type": "string",
1511
+ "enum": [
1512
+ "{{dashboard.duration}}"
1513
+ ]
1514
+ }
1515
+ ]
1476
1516
  },
1477
1517
  "sortDirection": {
1478
1518
  "type": "integer",
@@ -1721,8 +1761,18 @@
1721
1761
  "type": "boolean"
1722
1762
  },
1723
1763
  "duration": {
1724
- "type": "integer",
1725
- "minimum": 0
1764
+ "oneOf": [
1765
+ {
1766
+ "type": "integer",
1767
+ "minimum": 0
1768
+ },
1769
+ {
1770
+ "type": "string",
1771
+ "enum": [
1772
+ "{{dashboard.duration}}"
1773
+ ]
1774
+ }
1775
+ ]
1726
1776
  },
1727
1777
  "gaugeMax": {
1728
1778
  "oneOf": [
@@ -2043,8 +2093,18 @@
2043
2093
  "type": "boolean"
2044
2094
  },
2045
2095
  "duration": {
2046
- "type": "integer",
2047
- "minimum": 0
2096
+ "oneOf": [
2097
+ {
2098
+ "type": "integer",
2099
+ "minimum": 0
2100
+ },
2101
+ {
2102
+ "type": "string",
2103
+ "enum": [
2104
+ "{{dashboard.duration}}"
2105
+ ]
2106
+ }
2107
+ ]
2048
2108
  },
2049
2109
  "resolution": {
2050
2110
  "oneOf": [
@@ -2419,8 +2479,18 @@
2419
2479
  }
2420
2480
  },
2421
2481
  "duration": {
2422
- "type": "integer",
2423
- "minimum": 0
2482
+ "oneOf": [
2483
+ {
2484
+ "type": "integer",
2485
+ "minimum": 0
2486
+ },
2487
+ {
2488
+ "type": "string",
2489
+ "enum": [
2490
+ "{{dashboard.duration}}"
2491
+ ]
2492
+ }
2493
+ ]
2424
2494
  },
2425
2495
  "locationTagKey": {
2426
2496
  "oneOf": [
@@ -2808,8 +2878,18 @@
2808
2878
  }
2809
2879
  },
2810
2880
  "duration": {
2811
- "type": "integer",
2812
- "minimum": 0
2881
+ "oneOf": [
2882
+ {
2883
+ "type": "integer",
2884
+ "minimum": 0
2885
+ },
2886
+ {
2887
+ "type": "string",
2888
+ "enum": [
2889
+ "{{dashboard.duration}}"
2890
+ ]
2891
+ }
2892
+ ]
2813
2893
  }
2814
2894
  },
2815
2895
  "additionalProperties": false
@@ -3264,8 +3344,18 @@
3264
3344
  "type": "boolean"
3265
3345
  },
3266
3346
  "duration": {
3267
- "type": "integer",
3268
- "minimum": 0
3347
+ "oneOf": [
3348
+ {
3349
+ "type": "integer",
3350
+ "minimum": 0
3351
+ },
3352
+ {
3353
+ "type": "string",
3354
+ "enum": [
3355
+ "{{dashboard.duration}}"
3356
+ ]
3357
+ }
3358
+ ]
3269
3359
  },
3270
3360
  "segments": {
3271
3361
  "type": "array",
@@ -4693,8 +4783,18 @@
4693
4783
  }
4694
4784
  },
4695
4785
  "duration": {
4696
- "type": "integer",
4697
- "minimum": 0
4786
+ "oneOf": [
4787
+ {
4788
+ "type": "integer",
4789
+ "minimum": 0
4790
+ },
4791
+ {
4792
+ "type": "string",
4793
+ "enum": [
4794
+ "{{dashboard.duration}}"
4795
+ ]
4796
+ }
4797
+ ]
4698
4798
  },
4699
4799
  "endColor": {
4700
4800
  "type": "string",
@@ -4889,8 +4989,18 @@
4889
4989
  "type": "boolean"
4890
4990
  },
4891
4991
  "duration": {
4892
- "type": "integer",
4893
- "minimum": 0
4992
+ "oneOf": [
4993
+ {
4994
+ "type": "integer",
4995
+ "minimum": 0
4996
+ },
4997
+ {
4998
+ "type": "string",
4999
+ "enum": [
5000
+ "{{dashboard.duration}}"
5001
+ ]
5002
+ }
5003
+ ]
4894
5004
  },
4895
5005
  "percentFormat": {
4896
5006
  "type": "string",
@@ -5204,8 +5314,18 @@
5204
5314
  }
5205
5315
  },
5206
5316
  "duration": {
5207
- "type": "integer",
5208
- "minimum": 0
5317
+ "oneOf": [
5318
+ {
5319
+ "type": "integer",
5320
+ "minimum": 0
5321
+ },
5322
+ {
5323
+ "type": "string",
5324
+ "enum": [
5325
+ "{{dashboard.duration}}"
5326
+ ]
5327
+ }
5328
+ ]
5209
5329
  },
5210
5330
  "endColor": {
5211
5331
  "type": "string",
@@ -5436,6 +5556,14 @@
5436
5556
  "minimum": 5,
5437
5557
  "maximum": 600
5438
5558
  },
5559
+ "duration": {
5560
+ "type": "integer",
5561
+ "minimum": 1
5562
+ },
5563
+ "resolution": {
5564
+ "type": "integer",
5565
+ "minimum": 1
5566
+ },
5439
5567
  "defaultTheme": {
5440
5568
  "type": "string",
5441
5569
  "enum": [
@@ -68,6 +68,14 @@
68
68
  "minimum": 5,
69
69
  "maximum": 600
70
70
  },
71
+ "duration": {
72
+ "type": "integer",
73
+ "minimum": 1
74
+ },
75
+ "resolution": {
76
+ "type": "integer",
77
+ "minimum": 1
78
+ },
71
79
  "defaultTheme": {
72
80
  "type": "string",
73
81
  "enum": [
@@ -262,8 +270,18 @@
262
270
  "type": "boolean"
263
271
  },
264
272
  "duration": {
265
- "type": "integer",
266
- "minimum": 0
273
+ "oneOf": [
274
+ {
275
+ "type": "integer",
276
+ "minimum": 0
277
+ },
278
+ {
279
+ "type": "string",
280
+ "enum": [
281
+ "{{dashboard.duration}}"
282
+ ]
283
+ }
284
+ ]
267
285
  },
268
286
  "xAxisFormat": {
269
287
  "type": "string",
@@ -704,8 +722,18 @@
704
722
  }
705
723
  },
706
724
  "duration": {
707
- "type": "integer",
708
- "minimum": 0
725
+ "oneOf": [
726
+ {
727
+ "type": "integer",
728
+ "minimum": 0
729
+ },
730
+ {
731
+ "type": "string",
732
+ "enum": [
733
+ "{{dashboard.duration}}"
734
+ ]
735
+ }
736
+ ]
709
737
  },
710
738
  "resolution": {
711
739
  "oneOf": [
@@ -877,8 +905,18 @@
877
905
  }
878
906
  },
879
907
  "duration": {
880
- "type": "integer",
881
- "minimum": 0
908
+ "oneOf": [
909
+ {
910
+ "type": "integer",
911
+ "minimum": 0
912
+ },
913
+ {
914
+ "type": "string",
915
+ "enum": [
916
+ "{{dashboard.duration}}"
917
+ ]
918
+ }
919
+ ]
882
920
  }
883
921
  },
884
922
  "additionalProperties": false
@@ -1613,8 +1651,18 @@
1613
1651
  }
1614
1652
  },
1615
1653
  "duration": {
1616
- "type": "integer",
1617
- "minimum": 0
1654
+ "oneOf": [
1655
+ {
1656
+ "type": "integer",
1657
+ "minimum": 0
1658
+ },
1659
+ {
1660
+ "type": "string",
1661
+ "enum": [
1662
+ "{{dashboard.duration}}"
1663
+ ]
1664
+ }
1665
+ ]
1618
1666
  },
1619
1667
  "sortDirection": {
1620
1668
  "type": "integer",
@@ -1863,8 +1911,18 @@
1863
1911
  "type": "boolean"
1864
1912
  },
1865
1913
  "duration": {
1866
- "type": "integer",
1867
- "minimum": 0
1914
+ "oneOf": [
1915
+ {
1916
+ "type": "integer",
1917
+ "minimum": 0
1918
+ },
1919
+ {
1920
+ "type": "string",
1921
+ "enum": [
1922
+ "{{dashboard.duration}}"
1923
+ ]
1924
+ }
1925
+ ]
1868
1926
  },
1869
1927
  "gaugeMax": {
1870
1928
  "oneOf": [
@@ -2185,8 +2243,18 @@
2185
2243
  "type": "boolean"
2186
2244
  },
2187
2245
  "duration": {
2188
- "type": "integer",
2189
- "minimum": 0
2246
+ "oneOf": [
2247
+ {
2248
+ "type": "integer",
2249
+ "minimum": 0
2250
+ },
2251
+ {
2252
+ "type": "string",
2253
+ "enum": [
2254
+ "{{dashboard.duration}}"
2255
+ ]
2256
+ }
2257
+ ]
2190
2258
  },
2191
2259
  "resolution": {
2192
2260
  "oneOf": [
@@ -2561,8 +2629,18 @@
2561
2629
  }
2562
2630
  },
2563
2631
  "duration": {
2564
- "type": "integer",
2565
- "minimum": 0
2632
+ "oneOf": [
2633
+ {
2634
+ "type": "integer",
2635
+ "minimum": 0
2636
+ },
2637
+ {
2638
+ "type": "string",
2639
+ "enum": [
2640
+ "{{dashboard.duration}}"
2641
+ ]
2642
+ }
2643
+ ]
2566
2644
  },
2567
2645
  "locationTagKey": {
2568
2646
  "oneOf": [
@@ -2950,8 +3028,18 @@
2950
3028
  }
2951
3029
  },
2952
3030
  "duration": {
2953
- "type": "integer",
2954
- "minimum": 0
3031
+ "oneOf": [
3032
+ {
3033
+ "type": "integer",
3034
+ "minimum": 0
3035
+ },
3036
+ {
3037
+ "type": "string",
3038
+ "enum": [
3039
+ "{{dashboard.duration}}"
3040
+ ]
3041
+ }
3042
+ ]
2955
3043
  }
2956
3044
  },
2957
3045
  "additionalProperties": false
@@ -3406,8 +3494,18 @@
3406
3494
  "type": "boolean"
3407
3495
  },
3408
3496
  "duration": {
3409
- "type": "integer",
3410
- "minimum": 0
3497
+ "oneOf": [
3498
+ {
3499
+ "type": "integer",
3500
+ "minimum": 0
3501
+ },
3502
+ {
3503
+ "type": "string",
3504
+ "enum": [
3505
+ "{{dashboard.duration}}"
3506
+ ]
3507
+ }
3508
+ ]
3411
3509
  },
3412
3510
  "segments": {
3413
3511
  "type": "array",
@@ -4835,8 +4933,18 @@
4835
4933
  }
4836
4934
  },
4837
4935
  "duration": {
4838
- "type": "integer",
4839
- "minimum": 0
4936
+ "oneOf": [
4937
+ {
4938
+ "type": "integer",
4939
+ "minimum": 0
4940
+ },
4941
+ {
4942
+ "type": "string",
4943
+ "enum": [
4944
+ "{{dashboard.duration}}"
4945
+ ]
4946
+ }
4947
+ ]
4840
4948
  },
4841
4949
  "endColor": {
4842
4950
  "type": "string",
@@ -5031,8 +5139,18 @@
5031
5139
  "type": "boolean"
5032
5140
  },
5033
5141
  "duration": {
5034
- "type": "integer",
5035
- "minimum": 0
5142
+ "oneOf": [
5143
+ {
5144
+ "type": "integer",
5145
+ "minimum": 0
5146
+ },
5147
+ {
5148
+ "type": "string",
5149
+ "enum": [
5150
+ "{{dashboard.duration}}"
5151
+ ]
5152
+ }
5153
+ ]
5036
5154
  },
5037
5155
  "percentFormat": {
5038
5156
  "type": "string",
@@ -5346,8 +5464,18 @@
5346
5464
  }
5347
5465
  },
5348
5466
  "duration": {
5349
- "type": "integer",
5350
- "minimum": 0
5467
+ "oneOf": [
5468
+ {
5469
+ "type": "integer",
5470
+ "minimum": 0
5471
+ },
5472
+ {
5473
+ "type": "string",
5474
+ "enum": [
5475
+ "{{dashboard.duration}}"
5476
+ ]
5477
+ }
5478
+ ]
5351
5479
  },
5352
5480
  "endColor": {
5353
5481
  "type": "string",
@@ -11,11 +11,15 @@
11
11
  "type": "string",
12
12
  "minLength": 8,
13
13
  "maxLength": 2048
14
+ },
15
+ "twoFactorCode": {
16
+ "type": "string",
17
+ "maxLength": 2048
14
18
  }
15
19
  },
16
20
  "required": [
17
21
  "password",
18
- "twoFactorAuthKey"
22
+ "twoFactorCode"
19
23
  ],
20
24
  "additionalProperties": false
21
25
  }
@@ -515,6 +515,7 @@
515
515
  "onConnect",
516
516
  "onDisconnect",
517
517
  "particle",
518
+ "sqs",
518
519
  "udp",
519
520
  "webhook"
520
521
  ]
@@ -3155,6 +3156,7 @@
3155
3156
  "onConnect",
3156
3157
  "onDisconnect",
3157
3158
  "particle",
3159
+ "sqs",
3158
3160
  "udp",
3159
3161
  "webhook"
3160
3162
  ]
@@ -5739,6 +5741,7 @@
5739
5741
  "onConnect",
5740
5742
  "onDisconnect",
5741
5743
  "particle",
5744
+ "sqs",
5742
5745
  "udp",
5743
5746
  "webhook"
5744
5747
  ]
@@ -55,6 +55,33 @@
55
55
  "type": "string",
56
56
  "maxLength": 32767
57
57
  },
58
+ "globals": {
59
+ "type": "array",
60
+ "maxItems": 100,
61
+ "items": {
62
+ "type": "object",
63
+ "properties": {
64
+ "key": {
65
+ "type": "string",
66
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
67
+ },
68
+ "json": {
69
+ "type": "string",
70
+ "minLength": 1,
71
+ "maxLength": 32767
72
+ },
73
+ "description": {
74
+ "type": "string",
75
+ "maxLength": 1024
76
+ }
77
+ },
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "key",
81
+ "json"
82
+ ]
83
+ }
84
+ },
58
85
  "attachedDomains": {
59
86
  "type": "array",
60
87
  "items": {
@@ -14,6 +14,33 @@
14
14
  },
15
15
  "maxItems": 100
16
16
  },
17
+ "globals": {
18
+ "type": "array",
19
+ "maxItems": 100,
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "key": {
24
+ "type": "string",
25
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
26
+ },
27
+ "json": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 32767
31
+ },
32
+ "description": {
33
+ "type": "string",
34
+ "maxLength": 1024
35
+ }
36
+ },
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "key",
40
+ "json"
41
+ ]
42
+ }
43
+ },
17
44
  "description": {
18
45
  "type": "string",
19
46
  "maxLength": 32767
@@ -26,6 +26,45 @@
26
26
  "pattern": "^[A-Fa-f\\d]{24}$"
27
27
  },
28
28
  "maxItems": 1000
29
+ },
30
+ "endpointDefaultCors": {
31
+ "type": "boolean"
32
+ },
33
+ "globals": {
34
+ "type": "array",
35
+ "maxItems": 100,
36
+ "items": {
37
+ "type": "object",
38
+ "properties": {
39
+ "key": {
40
+ "type": "string",
41
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
42
+ },
43
+ "json": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "maxLength": 32767
47
+ },
48
+ "description": {
49
+ "type": "string",
50
+ "maxLength": 1024
51
+ }
52
+ },
53
+ "additionalProperties": false,
54
+ "required": [
55
+ "key",
56
+ "json"
57
+ ]
58
+ }
59
+ },
60
+ "allowedCorsOrigins": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string",
64
+ "minLength": 8,
65
+ "maxLength": 270
66
+ },
67
+ "maxItems": 100
29
68
  }
30
69
  },
31
70
  "additionalProperties": false,