losant_rest 1.14.1 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +4268 -1402
  3. data/docs/embeddedDeployment.md +49 -0
  4. data/docs/embeddedDeployments.md +215 -0
  5. data/docs/flow.md +2 -2
  6. data/docs/flows.md +2 -2
  7. data/lib/losant_rest/client.rb +10 -2
  8. data/lib/losant_rest/embedded_deployment.rb +81 -0
  9. data/lib/losant_rest/embedded_deployments.rb +280 -0
  10. data/lib/losant_rest/flow.rb +2 -2
  11. data/lib/losant_rest/flows.rb +2 -2
  12. data/lib/losant_rest/version.rb +1 -1
  13. data/lib/losant_rest.rb +2 -0
  14. data/schemas/apiTokenPost.json +8 -0
  15. data/schemas/application.json +32 -32
  16. data/schemas/applicationCreationByTemplateResult.json +32 -32
  17. data/schemas/applicationDashboardPost.json +8 -5
  18. data/schemas/applicationPatch.json +13 -13
  19. data/schemas/applicationPost.json +13 -13
  20. data/schemas/applicationTemplate.json +16 -16
  21. data/schemas/applicationTemplates.json +16 -16
  22. data/schemas/applications.json +32 -32
  23. data/schemas/authedDevice.json +2 -1
  24. data/schemas/dashboard.json +8 -5
  25. data/schemas/dashboardPatch.json +8 -5
  26. data/schemas/dashboardPost.json +8 -5
  27. data/schemas/dashboardSendReport.json +6 -6
  28. data/schemas/dashboards.json +8 -5
  29. data/schemas/device.json +2 -1
  30. data/schemas/deviceClassFilter.json +4 -2
  31. data/schemas/devicePatch.json +2 -1
  32. data/schemas/devicePost.json +2 -1
  33. data/schemas/deviceRecipe.json +2 -1
  34. data/schemas/deviceRecipePatch.json +2 -1
  35. data/schemas/deviceRecipePost.json +2 -1
  36. data/schemas/deviceRecipes.json +2 -1
  37. data/schemas/devices.json +4 -2
  38. data/schemas/devicesPatch.json +4 -2
  39. data/schemas/edgeDeployment.json +4 -0
  40. data/schemas/edgeDeployments.json +4 -0
  41. data/schemas/embeddedDeployment.json +179 -0
  42. data/schemas/embeddedDeploymentExport.json +44 -0
  43. data/schemas/embeddedDeploymentRelease.json +58 -0
  44. data/schemas/embeddedDeploymentRemove.json +25 -0
  45. data/schemas/embeddedDeploymentReplace.json +29 -0
  46. data/schemas/embeddedDeployments.json +212 -0
  47. data/schemas/experienceEndpoint.json +6 -8
  48. data/schemas/experienceEndpointPatch.json +6 -8
  49. data/schemas/experienceEndpointPost.json +6 -8
  50. data/schemas/experienceEndpoints.json +6 -8
  51. data/schemas/experienceLinkedResources.json +387 -57
  52. data/schemas/flow.json +127 -16
  53. data/schemas/flowPatch.json +126 -16
  54. data/schemas/flowPost.json +127 -16
  55. data/schemas/flowVersion.json +253 -33
  56. data/schemas/flowVersionPost.json +126 -16
  57. data/schemas/flowVersions.json +253 -33
  58. data/schemas/flows.json +128 -16
  59. data/schemas/flowsImportPost.json +253 -32
  60. data/schemas/flowsImportResult.json +380 -49
  61. data/schemas/githubLogin.json +8 -0
  62. data/schemas/historicalSummary.json +87 -74
  63. data/schemas/instance.json +92 -79
  64. data/schemas/instanceMember.json +6 -0
  65. data/schemas/instanceMembers.json +6 -0
  66. data/schemas/instanceOrg.json +87 -74
  67. data/schemas/instanceOrgMember.json +6 -0
  68. data/schemas/instanceOrgPatch.json +64 -26
  69. data/schemas/instanceOrgPost.json +65 -27
  70. data/schemas/instanceOrgs.json +87 -74
  71. data/schemas/instancePatch.json +2 -2
  72. data/schemas/me.json +104 -91
  73. data/schemas/org.json +115 -96
  74. data/schemas/orgs.json +115 -96
  75. data/schemas/userCredentials.json +8 -0
  76. data/schemas/userPost.json +8 -0
  77. metadata +16 -6
data/schemas/flow.json CHANGED
@@ -52,6 +52,7 @@
52
52
  "enum": [
53
53
  "cloud",
54
54
  "edge",
55
+ "embedded",
55
56
  "experience",
56
57
  "customNode"
57
58
  ]
@@ -105,6 +106,7 @@
105
106
  "deviceCommand",
106
107
  "deviceIdsTagsConnect",
107
108
  "deviceIdsTagsDisconnect",
109
+ "eeaInit",
108
110
  "flowError",
109
111
  "googlePubSub",
110
112
  "meridian",
@@ -168,7 +170,8 @@
168
170
  "type": "array",
169
171
  "items": {
170
172
  "type": "string",
171
- "maxLength": 255
173
+ "maxLength": 48,
174
+ "minLength": 1
172
175
  },
173
176
  "maxItems": 100
174
177
  },
@@ -272,7 +275,8 @@
272
275
  "type": "array",
273
276
  "items": {
274
277
  "type": "string",
275
- "maxLength": 255
278
+ "maxLength": 48,
279
+ "minLength": 1
276
280
  },
277
281
  "maxItems": 100
278
282
  },
@@ -416,7 +420,8 @@
416
420
  "type": "array",
417
421
  "items": {
418
422
  "type": "string",
419
- "maxLength": 255
423
+ "maxLength": 48,
424
+ "minLength": 1
420
425
  },
421
426
  "maxItems": 100
422
427
  },
@@ -512,8 +517,101 @@
512
517
  "type": "array",
513
518
  "items": {
514
519
  "type": "string",
520
+ "maxLength": 48,
521
+ "minLength": 1
522
+ },
523
+ "maxItems": 100
524
+ },
525
+ "maxItems": 100
526
+ }
527
+ },
528
+ "required": [
529
+ "type"
530
+ ],
531
+ "additionalProperties": false
532
+ },
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "key": {
537
+ "type": "string",
538
+ "maxLength": 1024
539
+ },
540
+ "type": {
541
+ "type": "string",
542
+ "enum": [
543
+ "direct"
544
+ ]
545
+ },
546
+ "config": {
547
+ "type": "object",
548
+ "properties": {},
549
+ "additionalProperties": false
550
+ },
551
+ "meta": {
552
+ "type": "object",
553
+ "properties": {
554
+ "category": {
555
+ "type": "string",
556
+ "enum": [
557
+ "trigger"
558
+ ]
559
+ },
560
+ "name": {
561
+ "type": "string",
562
+ "enum": [
563
+ "direct"
564
+ ]
565
+ },
566
+ "label": {
567
+ "type": "string",
568
+ "minLength": 1,
515
569
  "maxLength": 255
516
570
  },
571
+ "x": {
572
+ "type": "number"
573
+ },
574
+ "y": {
575
+ "type": "number"
576
+ },
577
+ "uiId": {
578
+ "type": "string",
579
+ "maxLength": 48
580
+ },
581
+ "description": {
582
+ "type": "string",
583
+ "maxLength": 32767
584
+ },
585
+ "icon": {
586
+ "type": "string",
587
+ "maxLength": 1024
588
+ },
589
+ "color": {
590
+ "type": "string",
591
+ "maxLength": 1024
592
+ },
593
+ "inputCount": {
594
+ "type": "number"
595
+ },
596
+ "outputCount": {
597
+ "type": "number"
598
+ },
599
+ "id": {
600
+ "type": "string",
601
+ "maxLength": 48
602
+ }
603
+ },
604
+ "additionalProperties": false
605
+ },
606
+ "outputIds": {
607
+ "type": "array",
608
+ "items": {
609
+ "type": "array",
610
+ "items": {
611
+ "type": "string",
612
+ "maxLength": 48,
613
+ "minLength": 1
614
+ },
517
615
  "maxItems": 100
518
616
  },
519
617
  "maxItems": 100
@@ -609,7 +707,8 @@
609
707
  "type": "array",
610
708
  "items": {
611
709
  "type": "string",
612
- "maxLength": 255
710
+ "maxLength": 48,
711
+ "minLength": 1
613
712
  },
614
713
  "maxItems": 100
615
714
  },
@@ -714,7 +813,8 @@
714
813
  "type": "array",
715
814
  "items": {
716
815
  "type": "string",
717
- "maxLength": 255
816
+ "maxLength": 48,
817
+ "minLength": 1
718
818
  },
719
819
  "maxItems": 100
720
820
  },
@@ -822,7 +922,8 @@
822
922
  "type": "array",
823
923
  "items": {
824
924
  "type": "string",
825
- "maxLength": 255
925
+ "maxLength": 48,
926
+ "minLength": 1
826
927
  },
827
928
  "maxItems": 100
828
929
  },
@@ -933,7 +1034,8 @@
933
1034
  "type": "array",
934
1035
  "items": {
935
1036
  "type": "string",
936
- "maxLength": 255
1037
+ "maxLength": 48,
1038
+ "minLength": 1
937
1039
  },
938
1040
  "maxItems": 100
939
1041
  },
@@ -1034,7 +1136,8 @@
1034
1136
  "type": "array",
1035
1137
  "items": {
1036
1138
  "type": "string",
1037
- "maxLength": 255
1139
+ "maxLength": 48,
1140
+ "minLength": 1
1038
1141
  },
1039
1142
  "maxItems": 100
1040
1143
  },
@@ -1137,7 +1240,8 @@
1137
1240
  "type": "array",
1138
1241
  "items": {
1139
1242
  "type": "string",
1140
- "maxLength": 255
1243
+ "maxLength": 48,
1244
+ "minLength": 1
1141
1245
  },
1142
1246
  "maxItems": 100
1143
1247
  },
@@ -1277,7 +1381,8 @@
1277
1381
  "type": "array",
1278
1382
  "items": {
1279
1383
  "type": "string",
1280
- "maxLength": 255
1384
+ "maxLength": 48,
1385
+ "minLength": 1
1281
1386
  },
1282
1387
  "maxItems": 100
1283
1388
  },
@@ -1400,7 +1505,8 @@
1400
1505
  "type": "array",
1401
1506
  "items": {
1402
1507
  "type": "string",
1403
- "maxLength": 255
1508
+ "maxLength": 48,
1509
+ "minLength": 1
1404
1510
  },
1405
1511
  "maxItems": 100
1406
1512
  },
@@ -1512,7 +1618,8 @@
1512
1618
  "type": "array",
1513
1619
  "items": {
1514
1620
  "type": "string",
1515
- "maxLength": 255
1621
+ "maxLength": 48,
1622
+ "minLength": 1
1516
1623
  },
1517
1624
  "maxItems": 100
1518
1625
  },
@@ -1655,7 +1762,8 @@
1655
1762
  "type": "array",
1656
1763
  "items": {
1657
1764
  "type": "string",
1658
- "maxLength": 255
1765
+ "maxLength": 48,
1766
+ "minLength": 1
1659
1767
  },
1660
1768
  "maxItems": 100
1661
1769
  },
@@ -1781,7 +1889,8 @@
1781
1889
  "type": "array",
1782
1890
  "items": {
1783
1891
  "type": "string",
1784
- "maxLength": 255
1892
+ "maxLength": 48,
1893
+ "minLength": 1
1785
1894
  },
1786
1895
  "maxItems": 100
1787
1896
  },
@@ -1896,7 +2005,8 @@
1896
2005
  "type": "array",
1897
2006
  "items": {
1898
2007
  "type": "string",
1899
- "maxLength": 255
2008
+ "maxLength": 48,
2009
+ "minLength": 1
1900
2010
  },
1901
2011
  "maxItems": 100
1902
2012
  },
@@ -1937,7 +2047,8 @@
1937
2047
  "type": "array",
1938
2048
  "items": {
1939
2049
  "type": "string",
1940
- "maxLength": 255
2050
+ "maxLength": 48,
2051
+ "minLength": 1
1941
2052
  },
1942
2053
  "maxItems": 100
1943
2054
  },
@@ -86,6 +86,7 @@
86
86
  "deviceCommand",
87
87
  "deviceIdsTagsConnect",
88
88
  "deviceIdsTagsDisconnect",
89
+ "eeaInit",
89
90
  "flowError",
90
91
  "googlePubSub",
91
92
  "meridian",
@@ -149,7 +150,8 @@
149
150
  "type": "array",
150
151
  "items": {
151
152
  "type": "string",
152
- "maxLength": 255
153
+ "maxLength": 48,
154
+ "minLength": 1
153
155
  },
154
156
  "maxItems": 100
155
157
  },
@@ -253,7 +255,8 @@
253
255
  "type": "array",
254
256
  "items": {
255
257
  "type": "string",
256
- "maxLength": 255
258
+ "maxLength": 48,
259
+ "minLength": 1
257
260
  },
258
261
  "maxItems": 100
259
262
  },
@@ -397,7 +400,8 @@
397
400
  "type": "array",
398
401
  "items": {
399
402
  "type": "string",
400
- "maxLength": 255
403
+ "maxLength": 48,
404
+ "minLength": 1
401
405
  },
402
406
  "maxItems": 100
403
407
  },
@@ -493,8 +497,101 @@
493
497
  "type": "array",
494
498
  "items": {
495
499
  "type": "string",
500
+ "maxLength": 48,
501
+ "minLength": 1
502
+ },
503
+ "maxItems": 100
504
+ },
505
+ "maxItems": 100
506
+ }
507
+ },
508
+ "required": [
509
+ "type"
510
+ ],
511
+ "additionalProperties": false
512
+ },
513
+ {
514
+ "type": "object",
515
+ "properties": {
516
+ "key": {
517
+ "type": "string",
518
+ "maxLength": 1024
519
+ },
520
+ "type": {
521
+ "type": "string",
522
+ "enum": [
523
+ "direct"
524
+ ]
525
+ },
526
+ "config": {
527
+ "type": "object",
528
+ "properties": {},
529
+ "additionalProperties": false
530
+ },
531
+ "meta": {
532
+ "type": "object",
533
+ "properties": {
534
+ "category": {
535
+ "type": "string",
536
+ "enum": [
537
+ "trigger"
538
+ ]
539
+ },
540
+ "name": {
541
+ "type": "string",
542
+ "enum": [
543
+ "direct"
544
+ ]
545
+ },
546
+ "label": {
547
+ "type": "string",
548
+ "minLength": 1,
496
549
  "maxLength": 255
497
550
  },
551
+ "x": {
552
+ "type": "number"
553
+ },
554
+ "y": {
555
+ "type": "number"
556
+ },
557
+ "uiId": {
558
+ "type": "string",
559
+ "maxLength": 48
560
+ },
561
+ "description": {
562
+ "type": "string",
563
+ "maxLength": 32767
564
+ },
565
+ "icon": {
566
+ "type": "string",
567
+ "maxLength": 1024
568
+ },
569
+ "color": {
570
+ "type": "string",
571
+ "maxLength": 1024
572
+ },
573
+ "inputCount": {
574
+ "type": "number"
575
+ },
576
+ "outputCount": {
577
+ "type": "number"
578
+ },
579
+ "id": {
580
+ "type": "string",
581
+ "maxLength": 48
582
+ }
583
+ },
584
+ "additionalProperties": false
585
+ },
586
+ "outputIds": {
587
+ "type": "array",
588
+ "items": {
589
+ "type": "array",
590
+ "items": {
591
+ "type": "string",
592
+ "maxLength": 48,
593
+ "minLength": 1
594
+ },
498
595
  "maxItems": 100
499
596
  },
500
597
  "maxItems": 100
@@ -590,7 +687,8 @@
590
687
  "type": "array",
591
688
  "items": {
592
689
  "type": "string",
593
- "maxLength": 255
690
+ "maxLength": 48,
691
+ "minLength": 1
594
692
  },
595
693
  "maxItems": 100
596
694
  },
@@ -695,7 +793,8 @@
695
793
  "type": "array",
696
794
  "items": {
697
795
  "type": "string",
698
- "maxLength": 255
796
+ "maxLength": 48,
797
+ "minLength": 1
699
798
  },
700
799
  "maxItems": 100
701
800
  },
@@ -803,7 +902,8 @@
803
902
  "type": "array",
804
903
  "items": {
805
904
  "type": "string",
806
- "maxLength": 255
905
+ "maxLength": 48,
906
+ "minLength": 1
807
907
  },
808
908
  "maxItems": 100
809
909
  },
@@ -914,7 +1014,8 @@
914
1014
  "type": "array",
915
1015
  "items": {
916
1016
  "type": "string",
917
- "maxLength": 255
1017
+ "maxLength": 48,
1018
+ "minLength": 1
918
1019
  },
919
1020
  "maxItems": 100
920
1021
  },
@@ -1015,7 +1116,8 @@
1015
1116
  "type": "array",
1016
1117
  "items": {
1017
1118
  "type": "string",
1018
- "maxLength": 255
1119
+ "maxLength": 48,
1120
+ "minLength": 1
1019
1121
  },
1020
1122
  "maxItems": 100
1021
1123
  },
@@ -1118,7 +1220,8 @@
1118
1220
  "type": "array",
1119
1221
  "items": {
1120
1222
  "type": "string",
1121
- "maxLength": 255
1223
+ "maxLength": 48,
1224
+ "minLength": 1
1122
1225
  },
1123
1226
  "maxItems": 100
1124
1227
  },
@@ -1258,7 +1361,8 @@
1258
1361
  "type": "array",
1259
1362
  "items": {
1260
1363
  "type": "string",
1261
- "maxLength": 255
1364
+ "maxLength": 48,
1365
+ "minLength": 1
1262
1366
  },
1263
1367
  "maxItems": 100
1264
1368
  },
@@ -1381,7 +1485,8 @@
1381
1485
  "type": "array",
1382
1486
  "items": {
1383
1487
  "type": "string",
1384
- "maxLength": 255
1488
+ "maxLength": 48,
1489
+ "minLength": 1
1385
1490
  },
1386
1491
  "maxItems": 100
1387
1492
  },
@@ -1493,7 +1598,8 @@
1493
1598
  "type": "array",
1494
1599
  "items": {
1495
1600
  "type": "string",
1496
- "maxLength": 255
1601
+ "maxLength": 48,
1602
+ "minLength": 1
1497
1603
  },
1498
1604
  "maxItems": 100
1499
1605
  },
@@ -1636,7 +1742,8 @@
1636
1742
  "type": "array",
1637
1743
  "items": {
1638
1744
  "type": "string",
1639
- "maxLength": 255
1745
+ "maxLength": 48,
1746
+ "minLength": 1
1640
1747
  },
1641
1748
  "maxItems": 100
1642
1749
  },
@@ -1762,7 +1869,8 @@
1762
1869
  "type": "array",
1763
1870
  "items": {
1764
1871
  "type": "string",
1765
- "maxLength": 255
1872
+ "maxLength": 48,
1873
+ "minLength": 1
1766
1874
  },
1767
1875
  "maxItems": 100
1768
1876
  },
@@ -1877,7 +1985,8 @@
1877
1985
  "type": "array",
1878
1986
  "items": {
1879
1987
  "type": "string",
1880
- "maxLength": 255
1988
+ "maxLength": 48,
1989
+ "minLength": 1
1881
1990
  },
1882
1991
  "maxItems": 100
1883
1992
  },
@@ -1918,7 +2027,8 @@
1918
2027
  "type": "array",
1919
2028
  "items": {
1920
2029
  "type": "string",
1921
- "maxLength": 255
2030
+ "maxLength": 48,
2031
+ "minLength": 1
1922
2032
  },
1923
2033
  "maxItems": 100
1924
2034
  },