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
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
  ]
@@ -81,7 +82,6 @@
81
82
  "onBoot",
82
83
  "onConnect",
83
84
  "onDisconnect",
84
- "request",
85
85
  "udp",
86
86
  "webhook"
87
87
  ]
@@ -106,6 +106,7 @@
106
106
  "deviceCommand",
107
107
  "deviceIdsTagsConnect",
108
108
  "deviceIdsTagsDisconnect",
109
+ "eeaInit",
109
110
  "flowError",
110
111
  "googlePubSub",
111
112
  "meridian",
@@ -115,7 +116,6 @@
115
116
  "onConnect",
116
117
  "onDisconnect",
117
118
  "particle",
118
- "request",
119
119
  "udp",
120
120
  "webhook"
121
121
  ]
@@ -170,7 +170,8 @@
170
170
  "type": "array",
171
171
  "items": {
172
172
  "type": "string",
173
- "maxLength": 255
173
+ "maxLength": 48,
174
+ "minLength": 1
174
175
  },
175
176
  "maxItems": 100
176
177
  },
@@ -274,7 +275,8 @@
274
275
  "type": "array",
275
276
  "items": {
276
277
  "type": "string",
277
- "maxLength": 255
278
+ "maxLength": 48,
279
+ "minLength": 1
278
280
  },
279
281
  "maxItems": 100
280
282
  },
@@ -321,6 +323,21 @@
321
323
  },
322
324
  "maxAge": {
323
325
  "type": "number"
326
+ },
327
+ "triggerOn": {
328
+ "type": "string",
329
+ "enum": [
330
+ "batch",
331
+ "individual",
332
+ "both"
333
+ ]
334
+ },
335
+ "batchBehavior": {
336
+ "type": "string",
337
+ "enum": [
338
+ "once",
339
+ "each"
340
+ ]
324
341
  }
325
342
  },
326
343
  "additionalProperties": false
@@ -403,7 +420,8 @@
403
420
  "type": "array",
404
421
  "items": {
405
422
  "type": "string",
406
- "maxLength": 255
423
+ "maxLength": 48,
424
+ "minLength": 1
407
425
  },
408
426
  "maxItems": 100
409
427
  },
@@ -499,8 +517,101 @@
499
517
  "type": "array",
500
518
  "items": {
501
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,
502
569
  "maxLength": 255
503
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
+ },
504
615
  "maxItems": 100
505
616
  },
506
617
  "maxItems": 100
@@ -596,7 +707,8 @@
596
707
  "type": "array",
597
708
  "items": {
598
709
  "type": "string",
599
- "maxLength": 255
710
+ "maxLength": 48,
711
+ "minLength": 1
600
712
  },
601
713
  "maxItems": 100
602
714
  },
@@ -701,7 +813,8 @@
701
813
  "type": "array",
702
814
  "items": {
703
815
  "type": "string",
704
- "maxLength": 255
816
+ "maxLength": 48,
817
+ "minLength": 1
705
818
  },
706
819
  "maxItems": 100
707
820
  },
@@ -809,7 +922,8 @@
809
922
  "type": "array",
810
923
  "items": {
811
924
  "type": "string",
812
- "maxLength": 255
925
+ "maxLength": 48,
926
+ "minLength": 1
813
927
  },
814
928
  "maxItems": 100
815
929
  },
@@ -920,7 +1034,8 @@
920
1034
  "type": "array",
921
1035
  "items": {
922
1036
  "type": "string",
923
- "maxLength": 255
1037
+ "maxLength": 48,
1038
+ "minLength": 1
924
1039
  },
925
1040
  "maxItems": 100
926
1041
  },
@@ -1021,7 +1136,8 @@
1021
1136
  "type": "array",
1022
1137
  "items": {
1023
1138
  "type": "string",
1024
- "maxLength": 255
1139
+ "maxLength": 48,
1140
+ "minLength": 1
1025
1141
  },
1026
1142
  "maxItems": 100
1027
1143
  },
@@ -1124,7 +1240,8 @@
1124
1240
  "type": "array",
1125
1241
  "items": {
1126
1242
  "type": "string",
1127
- "maxLength": 255
1243
+ "maxLength": 48,
1244
+ "minLength": 1
1128
1245
  },
1129
1246
  "maxItems": 100
1130
1247
  },
@@ -1264,7 +1381,8 @@
1264
1381
  "type": "array",
1265
1382
  "items": {
1266
1383
  "type": "string",
1267
- "maxLength": 255
1384
+ "maxLength": 48,
1385
+ "minLength": 1
1268
1386
  },
1269
1387
  "maxItems": 100
1270
1388
  },
@@ -1387,8 +1505,122 @@
1387
1505
  "type": "array",
1388
1506
  "items": {
1389
1507
  "type": "string",
1508
+ "maxLength": 48,
1509
+ "minLength": 1
1510
+ },
1511
+ "maxItems": 100
1512
+ },
1513
+ "maxItems": 100
1514
+ }
1515
+ },
1516
+ "required": [
1517
+ "type"
1518
+ ],
1519
+ "additionalProperties": false
1520
+ },
1521
+ {
1522
+ "type": "object",
1523
+ "properties": {
1524
+ "key": {
1525
+ "type": "string",
1526
+ "maxLength": 1024
1527
+ },
1528
+ "type": {
1529
+ "type": "string",
1530
+ "enum": [
1531
+ "request"
1532
+ ]
1533
+ },
1534
+ "config": {
1535
+ "type": "object",
1536
+ "properties": {
1537
+ "method": {
1538
+ "type": "string",
1539
+ "enum": [
1540
+ "*",
1541
+ "delete",
1542
+ "get",
1543
+ "options",
1544
+ "patch",
1545
+ "post",
1546
+ "put"
1547
+ ]
1548
+ },
1549
+ "route": {
1550
+ "type": "string",
1551
+ "maxLength": 1024
1552
+ }
1553
+ },
1554
+ "additionalProperties": false
1555
+ },
1556
+ "meta": {
1557
+ "type": "object",
1558
+ "properties": {
1559
+ "category": {
1560
+ "type": "string",
1561
+ "enum": [
1562
+ "trigger"
1563
+ ]
1564
+ },
1565
+ "name": {
1566
+ "type": "string",
1567
+ "enum": [
1568
+ "request"
1569
+ ]
1570
+ },
1571
+ "label": {
1572
+ "type": "string",
1573
+ "minLength": 1,
1390
1574
  "maxLength": 255
1391
1575
  },
1576
+ "x": {
1577
+ "type": "number"
1578
+ },
1579
+ "y": {
1580
+ "type": "number"
1581
+ },
1582
+ "uiId": {
1583
+ "type": "string",
1584
+ "maxLength": 48
1585
+ },
1586
+ "description": {
1587
+ "type": "string",
1588
+ "maxLength": 32767
1589
+ },
1590
+ "icon": {
1591
+ "type": "string",
1592
+ "maxLength": 1024
1593
+ },
1594
+ "color": {
1595
+ "type": "string",
1596
+ "maxLength": 1024
1597
+ },
1598
+ "inputCount": {
1599
+ "type": "number"
1600
+ },
1601
+ "outputCount": {
1602
+ "type": "number"
1603
+ },
1604
+ "triggerId": {
1605
+ "type": "string",
1606
+ "maxLength": 48
1607
+ },
1608
+ "id": {
1609
+ "type": "string",
1610
+ "maxLength": 48
1611
+ }
1612
+ },
1613
+ "additionalProperties": false
1614
+ },
1615
+ "outputIds": {
1616
+ "type": "array",
1617
+ "items": {
1618
+ "type": "array",
1619
+ "items": {
1620
+ "type": "string",
1621
+ "maxLength": 48,
1622
+ "minLength": 1
1623
+ },
1392
1624
  "maxItems": 100
1393
1625
  },
1394
1626
  "maxItems": 100
@@ -1530,7 +1762,8 @@
1530
1762
  "type": "array",
1531
1763
  "items": {
1532
1764
  "type": "string",
1533
- "maxLength": 255
1765
+ "maxLength": 48,
1766
+ "minLength": 1
1534
1767
  },
1535
1768
  "maxItems": 100
1536
1769
  },
@@ -1656,7 +1889,8 @@
1656
1889
  "type": "array",
1657
1890
  "items": {
1658
1891
  "type": "string",
1659
- "maxLength": 255
1892
+ "maxLength": 48,
1893
+ "minLength": 1
1660
1894
  },
1661
1895
  "maxItems": 100
1662
1896
  },
@@ -1771,7 +2005,8 @@
1771
2005
  "type": "array",
1772
2006
  "items": {
1773
2007
  "type": "string",
1774
- "maxLength": 255
2008
+ "maxLength": 48,
2009
+ "minLength": 1
1775
2010
  },
1776
2011
  "maxItems": 100
1777
2012
  },
@@ -1812,7 +2047,8 @@
1812
2047
  "type": "array",
1813
2048
  "items": {
1814
2049
  "type": "string",
1815
- "maxLength": 255
2050
+ "maxLength": 48,
2051
+ "minLength": 1
1816
2052
  },
1817
2053
  "maxItems": 100
1818
2054
  },