losant_rest 1.10.3 → 1.10.4
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 +1375 -139
- data/docs/application.md +42 -0
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationTemplate.md +46 -0
- data/docs/applicationTemplates.md +76 -1
- data/docs/device.md +6 -3
- data/docs/me.md +0 -36
- data/lib/losant_rest.rb +1 -0
- data/lib/losant_rest/application.rb +48 -0
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_template.rb +79 -0
- data/lib/losant_rest/application_templates.rb +89 -1
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/device.rb +9 -3
- data/lib/losant_rest/me.rb +0 -41
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +8 -0
- data/schemas/applicationApiTokenPost.json +1 -0
- data/schemas/applicationApplyTemplatePatch.json +19 -0
- data/schemas/applicationCreationByTemplateResult.json +8 -0
- data/schemas/applicationPost.json +8 -0
- data/schemas/applicationTemplate.json +20 -0
- data/schemas/applicationTemplateCategories.json +43 -0
- data/schemas/applicationTemplateCategory.json +23 -0
- data/schemas/applicationTemplates.json +32 -0
- data/schemas/applications.json +8 -0
- data/schemas/changePassword.json +2 -2
- data/schemas/dashboard.json +145 -25
- data/schemas/dashboardPatch.json +145 -25
- data/schemas/dashboardPost.json +145 -25
- data/schemas/dashboards.json +145 -25
- data/schemas/dataExport.json +132 -1
- data/schemas/experienceLinkedResources.json +39 -0
- data/schemas/flow.json +13 -0
- data/schemas/flowPatch.json +13 -0
- data/schemas/flowPost.json +13 -0
- data/schemas/flowVersion.json +26 -0
- data/schemas/flowVersionPost.json +13 -0
- data/schemas/flowVersions.json +26 -0
- data/schemas/flows.json +13 -0
- data/schemas/flowsImportPost.json +26 -0
- data/schemas/flowsImportResult.json +39 -0
- data/schemas/githubLogin.json +7 -3
- data/schemas/me.json +0 -3
- data/schemas/mePatch.json +2 -2
- data/schemas/orgInviteInfo.json +3 -0
- data/schemas/orgInvitePost.json +3 -0
- data/schemas/orgInvites.json +3 -0
- data/schemas/passwordResetFinish.json +2 -2
- data/schemas/templateKeywords.json +14 -0
- data/schemas/timeSeriesData.json +12 -2
- data/schemas/timeSeriesQuery.json +94 -14
- data/schemas/userCredentials.json +5 -2
- data/schemas/userPost.json +13 -6
- metadata +11 -5
data/schemas/dashboardPatch.json
CHANGED
@@ -231,8 +231,18 @@
|
|
231
231
|
"type": "object",
|
232
232
|
"properties": {
|
233
233
|
"value": {
|
234
|
-
"
|
235
|
-
|
234
|
+
"oneOf": [
|
235
|
+
{
|
236
|
+
"type": "string",
|
237
|
+
"maxLength": 255
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"type": "number"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"type": "boolean"
|
244
|
+
}
|
245
|
+
]
|
236
246
|
}
|
237
247
|
},
|
238
248
|
"additionalProperties": false,
|
@@ -485,8 +495,18 @@
|
|
485
495
|
"type": "object",
|
486
496
|
"properties": {
|
487
497
|
"value": {
|
488
|
-
"
|
489
|
-
|
498
|
+
"oneOf": [
|
499
|
+
{
|
500
|
+
"type": "string",
|
501
|
+
"maxLength": 255
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"type": "number"
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"type": "boolean"
|
508
|
+
}
|
509
|
+
]
|
490
510
|
}
|
491
511
|
},
|
492
512
|
"additionalProperties": false,
|
@@ -648,8 +668,18 @@
|
|
648
668
|
"type": "object",
|
649
669
|
"properties": {
|
650
670
|
"value": {
|
651
|
-
"
|
652
|
-
|
671
|
+
"oneOf": [
|
672
|
+
{
|
673
|
+
"type": "string",
|
674
|
+
"maxLength": 255
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"type": "number"
|
678
|
+
},
|
679
|
+
{
|
680
|
+
"type": "boolean"
|
681
|
+
}
|
682
|
+
]
|
653
683
|
}
|
654
684
|
},
|
655
685
|
"additionalProperties": false,
|
@@ -1630,8 +1660,18 @@
|
|
1630
1660
|
"type": "object",
|
1631
1661
|
"properties": {
|
1632
1662
|
"value": {
|
1633
|
-
"
|
1634
|
-
|
1663
|
+
"oneOf": [
|
1664
|
+
{
|
1665
|
+
"type": "string",
|
1666
|
+
"maxLength": 255
|
1667
|
+
},
|
1668
|
+
{
|
1669
|
+
"type": "number"
|
1670
|
+
},
|
1671
|
+
{
|
1672
|
+
"type": "boolean"
|
1673
|
+
}
|
1674
|
+
]
|
1635
1675
|
}
|
1636
1676
|
},
|
1637
1677
|
"additionalProperties": false,
|
@@ -1920,8 +1960,18 @@
|
|
1920
1960
|
"type": "object",
|
1921
1961
|
"properties": {
|
1922
1962
|
"value": {
|
1923
|
-
"
|
1924
|
-
|
1963
|
+
"oneOf": [
|
1964
|
+
{
|
1965
|
+
"type": "string",
|
1966
|
+
"maxLength": 255
|
1967
|
+
},
|
1968
|
+
{
|
1969
|
+
"type": "number"
|
1970
|
+
},
|
1971
|
+
{
|
1972
|
+
"type": "boolean"
|
1973
|
+
}
|
1974
|
+
]
|
1925
1975
|
}
|
1926
1976
|
},
|
1927
1977
|
"additionalProperties": false,
|
@@ -2406,7 +2456,7 @@
|
|
2406
2456
|
},
|
2407
2457
|
"segments": {
|
2408
2458
|
"type": "array",
|
2409
|
-
"maxItems":
|
2459
|
+
"maxItems": 300,
|
2410
2460
|
"items": {
|
2411
2461
|
"oneOf": [
|
2412
2462
|
{
|
@@ -2502,8 +2552,18 @@
|
|
2502
2552
|
"type": "object",
|
2503
2553
|
"properties": {
|
2504
2554
|
"value": {
|
2505
|
-
"
|
2506
|
-
|
2555
|
+
"oneOf": [
|
2556
|
+
{
|
2557
|
+
"type": "string",
|
2558
|
+
"maxLength": 255
|
2559
|
+
},
|
2560
|
+
{
|
2561
|
+
"type": "number"
|
2562
|
+
},
|
2563
|
+
{
|
2564
|
+
"type": "boolean"
|
2565
|
+
}
|
2566
|
+
]
|
2507
2567
|
}
|
2508
2568
|
},
|
2509
2569
|
"additionalProperties": false,
|
@@ -3096,8 +3156,18 @@
|
|
3096
3156
|
"type": "object",
|
3097
3157
|
"properties": {
|
3098
3158
|
"value": {
|
3099
|
-
"
|
3100
|
-
|
3159
|
+
"oneOf": [
|
3160
|
+
{
|
3161
|
+
"type": "string",
|
3162
|
+
"maxLength": 255
|
3163
|
+
},
|
3164
|
+
{
|
3165
|
+
"type": "number"
|
3166
|
+
},
|
3167
|
+
{
|
3168
|
+
"type": "boolean"
|
3169
|
+
}
|
3170
|
+
]
|
3101
3171
|
}
|
3102
3172
|
},
|
3103
3173
|
"additionalProperties": false,
|
@@ -3443,8 +3513,18 @@
|
|
3443
3513
|
"type": "object",
|
3444
3514
|
"properties": {
|
3445
3515
|
"value": {
|
3446
|
-
"
|
3447
|
-
|
3516
|
+
"oneOf": [
|
3517
|
+
{
|
3518
|
+
"type": "string",
|
3519
|
+
"maxLength": 255
|
3520
|
+
},
|
3521
|
+
{
|
3522
|
+
"type": "number"
|
3523
|
+
},
|
3524
|
+
{
|
3525
|
+
"type": "boolean"
|
3526
|
+
}
|
3527
|
+
]
|
3448
3528
|
}
|
3449
3529
|
},
|
3450
3530
|
"additionalProperties": false,
|
@@ -3667,8 +3747,18 @@
|
|
3667
3747
|
"type": "object",
|
3668
3748
|
"properties": {
|
3669
3749
|
"value": {
|
3670
|
-
"
|
3671
|
-
|
3750
|
+
"oneOf": [
|
3751
|
+
{
|
3752
|
+
"type": "string",
|
3753
|
+
"maxLength": 255
|
3754
|
+
},
|
3755
|
+
{
|
3756
|
+
"type": "number"
|
3757
|
+
},
|
3758
|
+
{
|
3759
|
+
"type": "boolean"
|
3760
|
+
}
|
3761
|
+
]
|
3672
3762
|
}
|
3673
3763
|
},
|
3674
3764
|
"additionalProperties": false,
|
@@ -3846,8 +3936,18 @@
|
|
3846
3936
|
"type": "object",
|
3847
3937
|
"properties": {
|
3848
3938
|
"value": {
|
3849
|
-
"
|
3850
|
-
|
3939
|
+
"oneOf": [
|
3940
|
+
{
|
3941
|
+
"type": "string",
|
3942
|
+
"maxLength": 255
|
3943
|
+
},
|
3944
|
+
{
|
3945
|
+
"type": "number"
|
3946
|
+
},
|
3947
|
+
{
|
3948
|
+
"type": "boolean"
|
3949
|
+
}
|
3950
|
+
]
|
3851
3951
|
}
|
3852
3952
|
},
|
3853
3953
|
"additionalProperties": false,
|
@@ -4026,8 +4126,18 @@
|
|
4026
4126
|
"type": "object",
|
4027
4127
|
"properties": {
|
4028
4128
|
"value": {
|
4029
|
-
"
|
4030
|
-
|
4129
|
+
"oneOf": [
|
4130
|
+
{
|
4131
|
+
"type": "string",
|
4132
|
+
"maxLength": 255
|
4133
|
+
},
|
4134
|
+
{
|
4135
|
+
"type": "number"
|
4136
|
+
},
|
4137
|
+
{
|
4138
|
+
"type": "boolean"
|
4139
|
+
}
|
4140
|
+
]
|
4031
4141
|
}
|
4032
4142
|
},
|
4033
4143
|
"additionalProperties": false,
|
@@ -4676,8 +4786,18 @@
|
|
4676
4786
|
"type": "object",
|
4677
4787
|
"properties": {
|
4678
4788
|
"value": {
|
4679
|
-
"
|
4680
|
-
|
4789
|
+
"oneOf": [
|
4790
|
+
{
|
4791
|
+
"type": "string",
|
4792
|
+
"maxLength": 255
|
4793
|
+
},
|
4794
|
+
{
|
4795
|
+
"type": "number"
|
4796
|
+
},
|
4797
|
+
{
|
4798
|
+
"type": "boolean"
|
4799
|
+
}
|
4800
|
+
]
|
4681
4801
|
}
|
4682
4802
|
},
|
4683
4803
|
"additionalProperties": false,
|
data/schemas/dashboardPost.json
CHANGED
@@ -239,8 +239,18 @@
|
|
239
239
|
"type": "object",
|
240
240
|
"properties": {
|
241
241
|
"value": {
|
242
|
-
"
|
243
|
-
|
242
|
+
"oneOf": [
|
243
|
+
{
|
244
|
+
"type": "string",
|
245
|
+
"maxLength": 255
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"type": "number"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"type": "boolean"
|
252
|
+
}
|
253
|
+
]
|
244
254
|
}
|
245
255
|
},
|
246
256
|
"additionalProperties": false,
|
@@ -493,8 +503,18 @@
|
|
493
503
|
"type": "object",
|
494
504
|
"properties": {
|
495
505
|
"value": {
|
496
|
-
"
|
497
|
-
|
506
|
+
"oneOf": [
|
507
|
+
{
|
508
|
+
"type": "string",
|
509
|
+
"maxLength": 255
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"type": "number"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"type": "boolean"
|
516
|
+
}
|
517
|
+
]
|
498
518
|
}
|
499
519
|
},
|
500
520
|
"additionalProperties": false,
|
@@ -656,8 +676,18 @@
|
|
656
676
|
"type": "object",
|
657
677
|
"properties": {
|
658
678
|
"value": {
|
659
|
-
"
|
660
|
-
|
679
|
+
"oneOf": [
|
680
|
+
{
|
681
|
+
"type": "string",
|
682
|
+
"maxLength": 255
|
683
|
+
},
|
684
|
+
{
|
685
|
+
"type": "number"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"type": "boolean"
|
689
|
+
}
|
690
|
+
]
|
661
691
|
}
|
662
692
|
},
|
663
693
|
"additionalProperties": false,
|
@@ -1638,8 +1668,18 @@
|
|
1638
1668
|
"type": "object",
|
1639
1669
|
"properties": {
|
1640
1670
|
"value": {
|
1641
|
-
"
|
1642
|
-
|
1671
|
+
"oneOf": [
|
1672
|
+
{
|
1673
|
+
"type": "string",
|
1674
|
+
"maxLength": 255
|
1675
|
+
},
|
1676
|
+
{
|
1677
|
+
"type": "number"
|
1678
|
+
},
|
1679
|
+
{
|
1680
|
+
"type": "boolean"
|
1681
|
+
}
|
1682
|
+
]
|
1643
1683
|
}
|
1644
1684
|
},
|
1645
1685
|
"additionalProperties": false,
|
@@ -1928,8 +1968,18 @@
|
|
1928
1968
|
"type": "object",
|
1929
1969
|
"properties": {
|
1930
1970
|
"value": {
|
1931
|
-
"
|
1932
|
-
|
1971
|
+
"oneOf": [
|
1972
|
+
{
|
1973
|
+
"type": "string",
|
1974
|
+
"maxLength": 255
|
1975
|
+
},
|
1976
|
+
{
|
1977
|
+
"type": "number"
|
1978
|
+
},
|
1979
|
+
{
|
1980
|
+
"type": "boolean"
|
1981
|
+
}
|
1982
|
+
]
|
1933
1983
|
}
|
1934
1984
|
},
|
1935
1985
|
"additionalProperties": false,
|
@@ -2414,7 +2464,7 @@
|
|
2414
2464
|
},
|
2415
2465
|
"segments": {
|
2416
2466
|
"type": "array",
|
2417
|
-
"maxItems":
|
2467
|
+
"maxItems": 300,
|
2418
2468
|
"items": {
|
2419
2469
|
"oneOf": [
|
2420
2470
|
{
|
@@ -2510,8 +2560,18 @@
|
|
2510
2560
|
"type": "object",
|
2511
2561
|
"properties": {
|
2512
2562
|
"value": {
|
2513
|
-
"
|
2514
|
-
|
2563
|
+
"oneOf": [
|
2564
|
+
{
|
2565
|
+
"type": "string",
|
2566
|
+
"maxLength": 255
|
2567
|
+
},
|
2568
|
+
{
|
2569
|
+
"type": "number"
|
2570
|
+
},
|
2571
|
+
{
|
2572
|
+
"type": "boolean"
|
2573
|
+
}
|
2574
|
+
]
|
2515
2575
|
}
|
2516
2576
|
},
|
2517
2577
|
"additionalProperties": false,
|
@@ -3104,8 +3164,18 @@
|
|
3104
3164
|
"type": "object",
|
3105
3165
|
"properties": {
|
3106
3166
|
"value": {
|
3107
|
-
"
|
3108
|
-
|
3167
|
+
"oneOf": [
|
3168
|
+
{
|
3169
|
+
"type": "string",
|
3170
|
+
"maxLength": 255
|
3171
|
+
},
|
3172
|
+
{
|
3173
|
+
"type": "number"
|
3174
|
+
},
|
3175
|
+
{
|
3176
|
+
"type": "boolean"
|
3177
|
+
}
|
3178
|
+
]
|
3109
3179
|
}
|
3110
3180
|
},
|
3111
3181
|
"additionalProperties": false,
|
@@ -3451,8 +3521,18 @@
|
|
3451
3521
|
"type": "object",
|
3452
3522
|
"properties": {
|
3453
3523
|
"value": {
|
3454
|
-
"
|
3455
|
-
|
3524
|
+
"oneOf": [
|
3525
|
+
{
|
3526
|
+
"type": "string",
|
3527
|
+
"maxLength": 255
|
3528
|
+
},
|
3529
|
+
{
|
3530
|
+
"type": "number"
|
3531
|
+
},
|
3532
|
+
{
|
3533
|
+
"type": "boolean"
|
3534
|
+
}
|
3535
|
+
]
|
3456
3536
|
}
|
3457
3537
|
},
|
3458
3538
|
"additionalProperties": false,
|
@@ -3675,8 +3755,18 @@
|
|
3675
3755
|
"type": "object",
|
3676
3756
|
"properties": {
|
3677
3757
|
"value": {
|
3678
|
-
"
|
3679
|
-
|
3758
|
+
"oneOf": [
|
3759
|
+
{
|
3760
|
+
"type": "string",
|
3761
|
+
"maxLength": 255
|
3762
|
+
},
|
3763
|
+
{
|
3764
|
+
"type": "number"
|
3765
|
+
},
|
3766
|
+
{
|
3767
|
+
"type": "boolean"
|
3768
|
+
}
|
3769
|
+
]
|
3680
3770
|
}
|
3681
3771
|
},
|
3682
3772
|
"additionalProperties": false,
|
@@ -3854,8 +3944,18 @@
|
|
3854
3944
|
"type": "object",
|
3855
3945
|
"properties": {
|
3856
3946
|
"value": {
|
3857
|
-
"
|
3858
|
-
|
3947
|
+
"oneOf": [
|
3948
|
+
{
|
3949
|
+
"type": "string",
|
3950
|
+
"maxLength": 255
|
3951
|
+
},
|
3952
|
+
{
|
3953
|
+
"type": "number"
|
3954
|
+
},
|
3955
|
+
{
|
3956
|
+
"type": "boolean"
|
3957
|
+
}
|
3958
|
+
]
|
3859
3959
|
}
|
3860
3960
|
},
|
3861
3961
|
"additionalProperties": false,
|
@@ -4034,8 +4134,18 @@
|
|
4034
4134
|
"type": "object",
|
4035
4135
|
"properties": {
|
4036
4136
|
"value": {
|
4037
|
-
"
|
4038
|
-
|
4137
|
+
"oneOf": [
|
4138
|
+
{
|
4139
|
+
"type": "string",
|
4140
|
+
"maxLength": 255
|
4141
|
+
},
|
4142
|
+
{
|
4143
|
+
"type": "number"
|
4144
|
+
},
|
4145
|
+
{
|
4146
|
+
"type": "boolean"
|
4147
|
+
}
|
4148
|
+
]
|
4039
4149
|
}
|
4040
4150
|
},
|
4041
4151
|
"additionalProperties": false,
|
@@ -4684,8 +4794,18 @@
|
|
4684
4794
|
"type": "object",
|
4685
4795
|
"properties": {
|
4686
4796
|
"value": {
|
4687
|
-
"
|
4688
|
-
|
4797
|
+
"oneOf": [
|
4798
|
+
{
|
4799
|
+
"type": "string",
|
4800
|
+
"maxLength": 255
|
4801
|
+
},
|
4802
|
+
{
|
4803
|
+
"type": "number"
|
4804
|
+
},
|
4805
|
+
{
|
4806
|
+
"type": "boolean"
|
4807
|
+
}
|
4808
|
+
]
|
4689
4809
|
}
|
4690
4810
|
},
|
4691
4811
|
"additionalProperties": false,
|