losant_rest 1.13.1 → 1.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +10817 -3660
  3. data/docs/application.md +1 -1
  4. data/docs/device.md +43 -0
  5. data/docs/devices.md +39 -0
  6. data/docs/edgeDeployment.md +49 -0
  7. data/docs/embeddedDeployment.md +49 -0
  8. data/docs/embeddedDeployments.md +215 -0
  9. data/docs/flow.md +3 -3
  10. data/docs/flows.md +2 -2
  11. data/docs/instance.md +4 -2
  12. data/docs/instanceOrg.md +2 -0
  13. data/docs/instanceOrgInvite.md +139 -0
  14. data/docs/instanceOrgInvites.md +96 -0
  15. data/docs/instanceOrgMembers.md +2 -2
  16. data/docs/instanceOrgs.md +1 -1
  17. data/docs/me.md +1 -1
  18. data/docs/org.md +1 -1
  19. data/lib/losant_rest/client.rb +22 -2
  20. data/lib/losant_rest/device.rb +50 -0
  21. data/lib/losant_rest/devices.rb +46 -0
  22. data/lib/losant_rest/edge_deployment.rb +81 -0
  23. data/lib/losant_rest/embedded_deployment.rb +81 -0
  24. data/lib/losant_rest/embedded_deployments.rb +280 -0
  25. data/lib/losant_rest/flow.rb +3 -3
  26. data/lib/losant_rest/flows.rb +2 -2
  27. data/lib/losant_rest/instance.rb +1 -0
  28. data/lib/losant_rest/instance_org.rb +4 -0
  29. data/lib/losant_rest/instance_org_invite.rb +182 -0
  30. data/lib/losant_rest/instance_org_invites.rb +138 -0
  31. data/lib/losant_rest/instance_org_members.rb +2 -2
  32. data/lib/losant_rest/instance_orgs.rb +2 -2
  33. data/lib/losant_rest/version.rb +1 -1
  34. data/lib/losant_rest.rb +5 -0
  35. data/schemas/apiTokenPost.json +19 -0
  36. data/schemas/application.json +32 -32
  37. data/schemas/applicationCreationByTemplateResult.json +32 -32
  38. data/schemas/applicationDashboardPost.json +8 -5
  39. data/schemas/applicationPatch.json +13 -13
  40. data/schemas/applicationPost.json +13 -13
  41. data/schemas/applicationTemplate.json +16 -16
  42. data/schemas/applicationTemplates.json +16 -16
  43. data/schemas/applications.json +32 -32
  44. data/schemas/authedDevice.json +2 -1
  45. data/schemas/dashboard.json +8 -5
  46. data/schemas/dashboardPatch.json +8 -5
  47. data/schemas/dashboardPost.json +8 -5
  48. data/schemas/dashboardSendReport.json +6 -6
  49. data/schemas/dashboards.json +8 -5
  50. data/schemas/dataTableRowsDelete.json +1 -1
  51. data/schemas/device.json +2 -1
  52. data/schemas/deviceClassFilter.json +4 -2
  53. data/schemas/devicePatch.json +2 -1
  54. data/schemas/devicePayloadCounts.json +24 -0
  55. data/schemas/devicePost.json +2 -1
  56. data/schemas/deviceRecipe.json +2 -1
  57. data/schemas/deviceRecipePatch.json +2 -1
  58. data/schemas/deviceRecipePost.json +2 -1
  59. data/schemas/deviceRecipes.json +2 -1
  60. data/schemas/devices.json +4 -2
  61. data/schemas/devicesExportPayloadCountPost.json +1350 -0
  62. data/schemas/devicesPatch.json +4 -2
  63. data/schemas/edgeDeployment.json +20 -0
  64. data/schemas/edgeDeployments.json +20 -0
  65. data/schemas/embeddedDeployment.json +179 -0
  66. data/schemas/embeddedDeploymentExport.json +44 -0
  67. data/schemas/embeddedDeploymentRelease.json +58 -0
  68. data/schemas/embeddedDeploymentRemove.json +25 -0
  69. data/schemas/embeddedDeploymentReplace.json +29 -0
  70. data/schemas/embeddedDeployments.json +212 -0
  71. data/schemas/eventsDeleted.json +1 -1
  72. data/schemas/eventsExport.json +4 -0
  73. data/schemas/experienceEndpoint.json +6 -8
  74. data/schemas/experienceEndpointPatch.json +6 -8
  75. data/schemas/experienceEndpointPost.json +6 -8
  76. data/schemas/experienceEndpoints.json +6 -8
  77. data/schemas/experienceLinkedResources.json +790 -85
  78. data/schemas/flow.json +252 -16
  79. data/schemas/flowPatch.json +251 -16
  80. data/schemas/flowPost.json +252 -16
  81. data/schemas/flowVersion.json +503 -33
  82. data/schemas/flowVersionPost.json +251 -16
  83. data/schemas/flowVersions.json +503 -33
  84. data/schemas/flows.json +253 -16
  85. data/schemas/flowsImportPost.json +503 -32
  86. data/schemas/flowsImportResult.json +785 -79
  87. data/schemas/githubLogin.json +19 -0
  88. data/schemas/historicalSummary.json +147 -102
  89. data/schemas/instance.json +92 -79
  90. data/schemas/instanceMember.json +10 -0
  91. data/schemas/instanceMemberPost.json +18 -3
  92. data/schemas/instanceMembers.json +14 -0
  93. data/schemas/instanceOrg.json +87 -74
  94. data/schemas/instanceOrgMember.json +14 -0
  95. data/schemas/instanceOrgMembers.json +8 -0
  96. data/schemas/instanceOrgPatch.json +64 -26
  97. data/schemas/instanceOrgPost.json +65 -27
  98. data/schemas/instanceOrgs.json +91 -74
  99. data/schemas/instancePatch.json +2 -2
  100. data/schemas/me.json +134 -105
  101. data/schemas/notebook.json +32 -1
  102. data/schemas/notebookExecutionLogs.json +2 -1
  103. data/schemas/notebookPatch.json +32 -1
  104. data/schemas/notebookPost.json +32 -1
  105. data/schemas/notebooks.json +32 -1
  106. data/schemas/org.json +145 -110
  107. data/schemas/orgInvite.json +90 -0
  108. data/schemas/orgInviteCollection.json +130 -0
  109. data/schemas/orgInvites.json +82 -77
  110. data/schemas/orgRoleInfo.json +69 -0
  111. data/schemas/orgs.json +145 -110
  112. data/schemas/payloadStats.json +28 -12
  113. data/schemas/userCredentials.json +19 -0
  114. data/schemas/userPost.json +19 -0
  115. data/schemas/virtualButtonPress.json +4 -0
  116. metadata +27 -6
@@ -62,7 +62,6 @@
62
62
  "onBoot",
63
63
  "onConnect",
64
64
  "onDisconnect",
65
- "request",
66
65
  "udp",
67
66
  "webhook"
68
67
  ]
@@ -87,6 +86,7 @@
87
86
  "deviceCommand",
88
87
  "deviceIdsTagsConnect",
89
88
  "deviceIdsTagsDisconnect",
89
+ "eeaInit",
90
90
  "flowError",
91
91
  "googlePubSub",
92
92
  "meridian",
@@ -96,7 +96,6 @@
96
96
  "onConnect",
97
97
  "onDisconnect",
98
98
  "particle",
99
- "request",
100
99
  "udp",
101
100
  "webhook"
102
101
  ]
@@ -151,7 +150,8 @@
151
150
  "type": "array",
152
151
  "items": {
153
152
  "type": "string",
154
- "maxLength": 255
153
+ "maxLength": 48,
154
+ "minLength": 1
155
155
  },
156
156
  "maxItems": 100
157
157
  },
@@ -255,7 +255,8 @@
255
255
  "type": "array",
256
256
  "items": {
257
257
  "type": "string",
258
- "maxLength": 255
258
+ "maxLength": 48,
259
+ "minLength": 1
259
260
  },
260
261
  "maxItems": 100
261
262
  },
@@ -302,6 +303,21 @@
302
303
  },
303
304
  "maxAge": {
304
305
  "type": "number"
306
+ },
307
+ "triggerOn": {
308
+ "type": "string",
309
+ "enum": [
310
+ "batch",
311
+ "individual",
312
+ "both"
313
+ ]
314
+ },
315
+ "batchBehavior": {
316
+ "type": "string",
317
+ "enum": [
318
+ "once",
319
+ "each"
320
+ ]
305
321
  }
306
322
  },
307
323
  "additionalProperties": false
@@ -384,7 +400,8 @@
384
400
  "type": "array",
385
401
  "items": {
386
402
  "type": "string",
387
- "maxLength": 255
403
+ "maxLength": 48,
404
+ "minLength": 1
388
405
  },
389
406
  "maxItems": 100
390
407
  },
@@ -480,8 +497,101 @@
480
497
  "type": "array",
481
498
  "items": {
482
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,
483
549
  "maxLength": 255
484
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
+ },
485
595
  "maxItems": 100
486
596
  },
487
597
  "maxItems": 100
@@ -577,7 +687,8 @@
577
687
  "type": "array",
578
688
  "items": {
579
689
  "type": "string",
580
- "maxLength": 255
690
+ "maxLength": 48,
691
+ "minLength": 1
581
692
  },
582
693
  "maxItems": 100
583
694
  },
@@ -682,7 +793,8 @@
682
793
  "type": "array",
683
794
  "items": {
684
795
  "type": "string",
685
- "maxLength": 255
796
+ "maxLength": 48,
797
+ "minLength": 1
686
798
  },
687
799
  "maxItems": 100
688
800
  },
@@ -790,7 +902,8 @@
790
902
  "type": "array",
791
903
  "items": {
792
904
  "type": "string",
793
- "maxLength": 255
905
+ "maxLength": 48,
906
+ "minLength": 1
794
907
  },
795
908
  "maxItems": 100
796
909
  },
@@ -901,7 +1014,8 @@
901
1014
  "type": "array",
902
1015
  "items": {
903
1016
  "type": "string",
904
- "maxLength": 255
1017
+ "maxLength": 48,
1018
+ "minLength": 1
905
1019
  },
906
1020
  "maxItems": 100
907
1021
  },
@@ -1002,7 +1116,8 @@
1002
1116
  "type": "array",
1003
1117
  "items": {
1004
1118
  "type": "string",
1005
- "maxLength": 255
1119
+ "maxLength": 48,
1120
+ "minLength": 1
1006
1121
  },
1007
1122
  "maxItems": 100
1008
1123
  },
@@ -1105,7 +1220,8 @@
1105
1220
  "type": "array",
1106
1221
  "items": {
1107
1222
  "type": "string",
1108
- "maxLength": 255
1223
+ "maxLength": 48,
1224
+ "minLength": 1
1109
1225
  },
1110
1226
  "maxItems": 100
1111
1227
  },
@@ -1245,7 +1361,8 @@
1245
1361
  "type": "array",
1246
1362
  "items": {
1247
1363
  "type": "string",
1248
- "maxLength": 255
1364
+ "maxLength": 48,
1365
+ "minLength": 1
1249
1366
  },
1250
1367
  "maxItems": 100
1251
1368
  },
@@ -1368,8 +1485,122 @@
1368
1485
  "type": "array",
1369
1486
  "items": {
1370
1487
  "type": "string",
1488
+ "maxLength": 48,
1489
+ "minLength": 1
1490
+ },
1491
+ "maxItems": 100
1492
+ },
1493
+ "maxItems": 100
1494
+ }
1495
+ },
1496
+ "required": [
1497
+ "type"
1498
+ ],
1499
+ "additionalProperties": false
1500
+ },
1501
+ {
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "key": {
1505
+ "type": "string",
1506
+ "maxLength": 1024
1507
+ },
1508
+ "type": {
1509
+ "type": "string",
1510
+ "enum": [
1511
+ "request"
1512
+ ]
1513
+ },
1514
+ "config": {
1515
+ "type": "object",
1516
+ "properties": {
1517
+ "method": {
1518
+ "type": "string",
1519
+ "enum": [
1520
+ "*",
1521
+ "delete",
1522
+ "get",
1523
+ "options",
1524
+ "patch",
1525
+ "post",
1526
+ "put"
1527
+ ]
1528
+ },
1529
+ "route": {
1530
+ "type": "string",
1531
+ "maxLength": 1024
1532
+ }
1533
+ },
1534
+ "additionalProperties": false
1535
+ },
1536
+ "meta": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "category": {
1540
+ "type": "string",
1541
+ "enum": [
1542
+ "trigger"
1543
+ ]
1544
+ },
1545
+ "name": {
1546
+ "type": "string",
1547
+ "enum": [
1548
+ "request"
1549
+ ]
1550
+ },
1551
+ "label": {
1552
+ "type": "string",
1553
+ "minLength": 1,
1371
1554
  "maxLength": 255
1372
1555
  },
1556
+ "x": {
1557
+ "type": "number"
1558
+ },
1559
+ "y": {
1560
+ "type": "number"
1561
+ },
1562
+ "uiId": {
1563
+ "type": "string",
1564
+ "maxLength": 48
1565
+ },
1566
+ "description": {
1567
+ "type": "string",
1568
+ "maxLength": 32767
1569
+ },
1570
+ "icon": {
1571
+ "type": "string",
1572
+ "maxLength": 1024
1573
+ },
1574
+ "color": {
1575
+ "type": "string",
1576
+ "maxLength": 1024
1577
+ },
1578
+ "inputCount": {
1579
+ "type": "number"
1580
+ },
1581
+ "outputCount": {
1582
+ "type": "number"
1583
+ },
1584
+ "triggerId": {
1585
+ "type": "string",
1586
+ "maxLength": 48
1587
+ },
1588
+ "id": {
1589
+ "type": "string",
1590
+ "maxLength": 48
1591
+ }
1592
+ },
1593
+ "additionalProperties": false
1594
+ },
1595
+ "outputIds": {
1596
+ "type": "array",
1597
+ "items": {
1598
+ "type": "array",
1599
+ "items": {
1600
+ "type": "string",
1601
+ "maxLength": 48,
1602
+ "minLength": 1
1603
+ },
1373
1604
  "maxItems": 100
1374
1605
  },
1375
1606
  "maxItems": 100
@@ -1511,7 +1742,8 @@
1511
1742
  "type": "array",
1512
1743
  "items": {
1513
1744
  "type": "string",
1514
- "maxLength": 255
1745
+ "maxLength": 48,
1746
+ "minLength": 1
1515
1747
  },
1516
1748
  "maxItems": 100
1517
1749
  },
@@ -1637,7 +1869,8 @@
1637
1869
  "type": "array",
1638
1870
  "items": {
1639
1871
  "type": "string",
1640
- "maxLength": 255
1872
+ "maxLength": 48,
1873
+ "minLength": 1
1641
1874
  },
1642
1875
  "maxItems": 100
1643
1876
  },
@@ -1752,7 +1985,8 @@
1752
1985
  "type": "array",
1753
1986
  "items": {
1754
1987
  "type": "string",
1755
- "maxLength": 255
1988
+ "maxLength": 48,
1989
+ "minLength": 1
1756
1990
  },
1757
1991
  "maxItems": 100
1758
1992
  },
@@ -1793,7 +2027,8 @@
1793
2027
  "type": "array",
1794
2028
  "items": {
1795
2029
  "type": "string",
1796
- "maxLength": 255
2030
+ "maxLength": 48,
2031
+ "minLength": 1
1797
2032
  },
1798
2033
  "maxItems": 100
1799
2034
  },