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
@@ -39,7 +39,6 @@
39
39
  "onBoot",
40
40
  "onConnect",
41
41
  "onDisconnect",
42
- "request",
43
42
  "udp",
44
43
  "webhook"
45
44
  ]
@@ -64,6 +63,7 @@
64
63
  "deviceCommand",
65
64
  "deviceIdsTagsConnect",
66
65
  "deviceIdsTagsDisconnect",
66
+ "eeaInit",
67
67
  "flowError",
68
68
  "googlePubSub",
69
69
  "meridian",
@@ -73,7 +73,6 @@
73
73
  "onConnect",
74
74
  "onDisconnect",
75
75
  "particle",
76
- "request",
77
76
  "udp",
78
77
  "webhook"
79
78
  ]
@@ -128,7 +127,8 @@
128
127
  "type": "array",
129
128
  "items": {
130
129
  "type": "string",
131
- "maxLength": 255
130
+ "maxLength": 48,
131
+ "minLength": 1
132
132
  },
133
133
  "maxItems": 100
134
134
  },
@@ -232,7 +232,8 @@
232
232
  "type": "array",
233
233
  "items": {
234
234
  "type": "string",
235
- "maxLength": 255
235
+ "maxLength": 48,
236
+ "minLength": 1
236
237
  },
237
238
  "maxItems": 100
238
239
  },
@@ -279,6 +280,21 @@
279
280
  },
280
281
  "maxAge": {
281
282
  "type": "number"
283
+ },
284
+ "triggerOn": {
285
+ "type": "string",
286
+ "enum": [
287
+ "batch",
288
+ "individual",
289
+ "both"
290
+ ]
291
+ },
292
+ "batchBehavior": {
293
+ "type": "string",
294
+ "enum": [
295
+ "once",
296
+ "each"
297
+ ]
282
298
  }
283
299
  },
284
300
  "additionalProperties": false
@@ -361,7 +377,8 @@
361
377
  "type": "array",
362
378
  "items": {
363
379
  "type": "string",
364
- "maxLength": 255
380
+ "maxLength": 48,
381
+ "minLength": 1
365
382
  },
366
383
  "maxItems": 100
367
384
  },
@@ -457,8 +474,101 @@
457
474
  "type": "array",
458
475
  "items": {
459
476
  "type": "string",
477
+ "maxLength": 48,
478
+ "minLength": 1
479
+ },
480
+ "maxItems": 100
481
+ },
482
+ "maxItems": 100
483
+ }
484
+ },
485
+ "required": [
486
+ "type"
487
+ ],
488
+ "additionalProperties": false
489
+ },
490
+ {
491
+ "type": "object",
492
+ "properties": {
493
+ "key": {
494
+ "type": "string",
495
+ "maxLength": 1024
496
+ },
497
+ "type": {
498
+ "type": "string",
499
+ "enum": [
500
+ "direct"
501
+ ]
502
+ },
503
+ "config": {
504
+ "type": "object",
505
+ "properties": {},
506
+ "additionalProperties": false
507
+ },
508
+ "meta": {
509
+ "type": "object",
510
+ "properties": {
511
+ "category": {
512
+ "type": "string",
513
+ "enum": [
514
+ "trigger"
515
+ ]
516
+ },
517
+ "name": {
518
+ "type": "string",
519
+ "enum": [
520
+ "direct"
521
+ ]
522
+ },
523
+ "label": {
524
+ "type": "string",
525
+ "minLength": 1,
460
526
  "maxLength": 255
461
527
  },
528
+ "x": {
529
+ "type": "number"
530
+ },
531
+ "y": {
532
+ "type": "number"
533
+ },
534
+ "uiId": {
535
+ "type": "string",
536
+ "maxLength": 48
537
+ },
538
+ "description": {
539
+ "type": "string",
540
+ "maxLength": 32767
541
+ },
542
+ "icon": {
543
+ "type": "string",
544
+ "maxLength": 1024
545
+ },
546
+ "color": {
547
+ "type": "string",
548
+ "maxLength": 1024
549
+ },
550
+ "inputCount": {
551
+ "type": "number"
552
+ },
553
+ "outputCount": {
554
+ "type": "number"
555
+ },
556
+ "id": {
557
+ "type": "string",
558
+ "maxLength": 48
559
+ }
560
+ },
561
+ "additionalProperties": false
562
+ },
563
+ "outputIds": {
564
+ "type": "array",
565
+ "items": {
566
+ "type": "array",
567
+ "items": {
568
+ "type": "string",
569
+ "maxLength": 48,
570
+ "minLength": 1
571
+ },
462
572
  "maxItems": 100
463
573
  },
464
574
  "maxItems": 100
@@ -554,7 +664,8 @@
554
664
  "type": "array",
555
665
  "items": {
556
666
  "type": "string",
557
- "maxLength": 255
667
+ "maxLength": 48,
668
+ "minLength": 1
558
669
  },
559
670
  "maxItems": 100
560
671
  },
@@ -659,7 +770,8 @@
659
770
  "type": "array",
660
771
  "items": {
661
772
  "type": "string",
662
- "maxLength": 255
773
+ "maxLength": 48,
774
+ "minLength": 1
663
775
  },
664
776
  "maxItems": 100
665
777
  },
@@ -767,7 +879,8 @@
767
879
  "type": "array",
768
880
  "items": {
769
881
  "type": "string",
770
- "maxLength": 255
882
+ "maxLength": 48,
883
+ "minLength": 1
771
884
  },
772
885
  "maxItems": 100
773
886
  },
@@ -878,7 +991,8 @@
878
991
  "type": "array",
879
992
  "items": {
880
993
  "type": "string",
881
- "maxLength": 255
994
+ "maxLength": 48,
995
+ "minLength": 1
882
996
  },
883
997
  "maxItems": 100
884
998
  },
@@ -979,7 +1093,8 @@
979
1093
  "type": "array",
980
1094
  "items": {
981
1095
  "type": "string",
982
- "maxLength": 255
1096
+ "maxLength": 48,
1097
+ "minLength": 1
983
1098
  },
984
1099
  "maxItems": 100
985
1100
  },
@@ -1082,7 +1197,8 @@
1082
1197
  "type": "array",
1083
1198
  "items": {
1084
1199
  "type": "string",
1085
- "maxLength": 255
1200
+ "maxLength": 48,
1201
+ "minLength": 1
1086
1202
  },
1087
1203
  "maxItems": 100
1088
1204
  },
@@ -1222,7 +1338,8 @@
1222
1338
  "type": "array",
1223
1339
  "items": {
1224
1340
  "type": "string",
1225
- "maxLength": 255
1341
+ "maxLength": 48,
1342
+ "minLength": 1
1226
1343
  },
1227
1344
  "maxItems": 100
1228
1345
  },
@@ -1345,8 +1462,122 @@
1345
1462
  "type": "array",
1346
1463
  "items": {
1347
1464
  "type": "string",
1465
+ "maxLength": 48,
1466
+ "minLength": 1
1467
+ },
1468
+ "maxItems": 100
1469
+ },
1470
+ "maxItems": 100
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "type"
1475
+ ],
1476
+ "additionalProperties": false
1477
+ },
1478
+ {
1479
+ "type": "object",
1480
+ "properties": {
1481
+ "key": {
1482
+ "type": "string",
1483
+ "maxLength": 1024
1484
+ },
1485
+ "type": {
1486
+ "type": "string",
1487
+ "enum": [
1488
+ "request"
1489
+ ]
1490
+ },
1491
+ "config": {
1492
+ "type": "object",
1493
+ "properties": {
1494
+ "method": {
1495
+ "type": "string",
1496
+ "enum": [
1497
+ "*",
1498
+ "delete",
1499
+ "get",
1500
+ "options",
1501
+ "patch",
1502
+ "post",
1503
+ "put"
1504
+ ]
1505
+ },
1506
+ "route": {
1507
+ "type": "string",
1508
+ "maxLength": 1024
1509
+ }
1510
+ },
1511
+ "additionalProperties": false
1512
+ },
1513
+ "meta": {
1514
+ "type": "object",
1515
+ "properties": {
1516
+ "category": {
1517
+ "type": "string",
1518
+ "enum": [
1519
+ "trigger"
1520
+ ]
1521
+ },
1522
+ "name": {
1523
+ "type": "string",
1524
+ "enum": [
1525
+ "request"
1526
+ ]
1527
+ },
1528
+ "label": {
1529
+ "type": "string",
1530
+ "minLength": 1,
1348
1531
  "maxLength": 255
1349
1532
  },
1533
+ "x": {
1534
+ "type": "number"
1535
+ },
1536
+ "y": {
1537
+ "type": "number"
1538
+ },
1539
+ "uiId": {
1540
+ "type": "string",
1541
+ "maxLength": 48
1542
+ },
1543
+ "description": {
1544
+ "type": "string",
1545
+ "maxLength": 32767
1546
+ },
1547
+ "icon": {
1548
+ "type": "string",
1549
+ "maxLength": 1024
1550
+ },
1551
+ "color": {
1552
+ "type": "string",
1553
+ "maxLength": 1024
1554
+ },
1555
+ "inputCount": {
1556
+ "type": "number"
1557
+ },
1558
+ "outputCount": {
1559
+ "type": "number"
1560
+ },
1561
+ "triggerId": {
1562
+ "type": "string",
1563
+ "maxLength": 48
1564
+ },
1565
+ "id": {
1566
+ "type": "string",
1567
+ "maxLength": 48
1568
+ }
1569
+ },
1570
+ "additionalProperties": false
1571
+ },
1572
+ "outputIds": {
1573
+ "type": "array",
1574
+ "items": {
1575
+ "type": "array",
1576
+ "items": {
1577
+ "type": "string",
1578
+ "maxLength": 48,
1579
+ "minLength": 1
1580
+ },
1350
1581
  "maxItems": 100
1351
1582
  },
1352
1583
  "maxItems": 100
@@ -1488,7 +1719,8 @@
1488
1719
  "type": "array",
1489
1720
  "items": {
1490
1721
  "type": "string",
1491
- "maxLength": 255
1722
+ "maxLength": 48,
1723
+ "minLength": 1
1492
1724
  },
1493
1725
  "maxItems": 100
1494
1726
  },
@@ -1614,7 +1846,8 @@
1614
1846
  "type": "array",
1615
1847
  "items": {
1616
1848
  "type": "string",
1617
- "maxLength": 255
1849
+ "maxLength": 48,
1850
+ "minLength": 1
1618
1851
  },
1619
1852
  "maxItems": 100
1620
1853
  },
@@ -1729,7 +1962,8 @@
1729
1962
  "type": "array",
1730
1963
  "items": {
1731
1964
  "type": "string",
1732
- "maxLength": 255
1965
+ "maxLength": 48,
1966
+ "minLength": 1
1733
1967
  },
1734
1968
  "maxItems": 100
1735
1969
  },
@@ -1770,7 +2004,8 @@
1770
2004
  "type": "array",
1771
2005
  "items": {
1772
2006
  "type": "string",
1773
- "maxLength": 255
2007
+ "maxLength": 48,
2008
+ "minLength": 1
1774
2009
  },
1775
2010
  "maxItems": 100
1776
2011
  },