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/flows.json CHANGED
@@ -59,6 +59,7 @@
59
59
  "enum": [
60
60
  "cloud",
61
61
  "edge",
62
+ "embedded",
62
63
  "experience",
63
64
  "customNode"
64
65
  ]
@@ -88,7 +89,6 @@
88
89
  "onBoot",
89
90
  "onConnect",
90
91
  "onDisconnect",
91
- "request",
92
92
  "udp",
93
93
  "webhook"
94
94
  ]
@@ -113,6 +113,7 @@
113
113
  "deviceCommand",
114
114
  "deviceIdsTagsConnect",
115
115
  "deviceIdsTagsDisconnect",
116
+ "eeaInit",
116
117
  "flowError",
117
118
  "googlePubSub",
118
119
  "meridian",
@@ -122,7 +123,6 @@
122
123
  "onConnect",
123
124
  "onDisconnect",
124
125
  "particle",
125
- "request",
126
126
  "udp",
127
127
  "webhook"
128
128
  ]
@@ -177,7 +177,8 @@
177
177
  "type": "array",
178
178
  "items": {
179
179
  "type": "string",
180
- "maxLength": 255
180
+ "maxLength": 48,
181
+ "minLength": 1
181
182
  },
182
183
  "maxItems": 100
183
184
  },
@@ -281,7 +282,8 @@
281
282
  "type": "array",
282
283
  "items": {
283
284
  "type": "string",
284
- "maxLength": 255
285
+ "maxLength": 48,
286
+ "minLength": 1
285
287
  },
286
288
  "maxItems": 100
287
289
  },
@@ -328,6 +330,21 @@
328
330
  },
329
331
  "maxAge": {
330
332
  "type": "number"
333
+ },
334
+ "triggerOn": {
335
+ "type": "string",
336
+ "enum": [
337
+ "batch",
338
+ "individual",
339
+ "both"
340
+ ]
341
+ },
342
+ "batchBehavior": {
343
+ "type": "string",
344
+ "enum": [
345
+ "once",
346
+ "each"
347
+ ]
331
348
  }
332
349
  },
333
350
  "additionalProperties": false
@@ -410,7 +427,8 @@
410
427
  "type": "array",
411
428
  "items": {
412
429
  "type": "string",
413
- "maxLength": 255
430
+ "maxLength": 48,
431
+ "minLength": 1
414
432
  },
415
433
  "maxItems": 100
416
434
  },
@@ -506,8 +524,101 @@
506
524
  "type": "array",
507
525
  "items": {
508
526
  "type": "string",
527
+ "maxLength": 48,
528
+ "minLength": 1
529
+ },
530
+ "maxItems": 100
531
+ },
532
+ "maxItems": 100
533
+ }
534
+ },
535
+ "required": [
536
+ "type"
537
+ ],
538
+ "additionalProperties": false
539
+ },
540
+ {
541
+ "type": "object",
542
+ "properties": {
543
+ "key": {
544
+ "type": "string",
545
+ "maxLength": 1024
546
+ },
547
+ "type": {
548
+ "type": "string",
549
+ "enum": [
550
+ "direct"
551
+ ]
552
+ },
553
+ "config": {
554
+ "type": "object",
555
+ "properties": {},
556
+ "additionalProperties": false
557
+ },
558
+ "meta": {
559
+ "type": "object",
560
+ "properties": {
561
+ "category": {
562
+ "type": "string",
563
+ "enum": [
564
+ "trigger"
565
+ ]
566
+ },
567
+ "name": {
568
+ "type": "string",
569
+ "enum": [
570
+ "direct"
571
+ ]
572
+ },
573
+ "label": {
574
+ "type": "string",
575
+ "minLength": 1,
509
576
  "maxLength": 255
510
577
  },
578
+ "x": {
579
+ "type": "number"
580
+ },
581
+ "y": {
582
+ "type": "number"
583
+ },
584
+ "uiId": {
585
+ "type": "string",
586
+ "maxLength": 48
587
+ },
588
+ "description": {
589
+ "type": "string",
590
+ "maxLength": 32767
591
+ },
592
+ "icon": {
593
+ "type": "string",
594
+ "maxLength": 1024
595
+ },
596
+ "color": {
597
+ "type": "string",
598
+ "maxLength": 1024
599
+ },
600
+ "inputCount": {
601
+ "type": "number"
602
+ },
603
+ "outputCount": {
604
+ "type": "number"
605
+ },
606
+ "id": {
607
+ "type": "string",
608
+ "maxLength": 48
609
+ }
610
+ },
611
+ "additionalProperties": false
612
+ },
613
+ "outputIds": {
614
+ "type": "array",
615
+ "items": {
616
+ "type": "array",
617
+ "items": {
618
+ "type": "string",
619
+ "maxLength": 48,
620
+ "minLength": 1
621
+ },
511
622
  "maxItems": 100
512
623
  },
513
624
  "maxItems": 100
@@ -603,7 +714,8 @@
603
714
  "type": "array",
604
715
  "items": {
605
716
  "type": "string",
606
- "maxLength": 255
717
+ "maxLength": 48,
718
+ "minLength": 1
607
719
  },
608
720
  "maxItems": 100
609
721
  },
@@ -708,7 +820,8 @@
708
820
  "type": "array",
709
821
  "items": {
710
822
  "type": "string",
711
- "maxLength": 255
823
+ "maxLength": 48,
824
+ "minLength": 1
712
825
  },
713
826
  "maxItems": 100
714
827
  },
@@ -816,7 +929,8 @@
816
929
  "type": "array",
817
930
  "items": {
818
931
  "type": "string",
819
- "maxLength": 255
932
+ "maxLength": 48,
933
+ "minLength": 1
820
934
  },
821
935
  "maxItems": 100
822
936
  },
@@ -927,7 +1041,8 @@
927
1041
  "type": "array",
928
1042
  "items": {
929
1043
  "type": "string",
930
- "maxLength": 255
1044
+ "maxLength": 48,
1045
+ "minLength": 1
931
1046
  },
932
1047
  "maxItems": 100
933
1048
  },
@@ -1028,7 +1143,8 @@
1028
1143
  "type": "array",
1029
1144
  "items": {
1030
1145
  "type": "string",
1031
- "maxLength": 255
1146
+ "maxLength": 48,
1147
+ "minLength": 1
1032
1148
  },
1033
1149
  "maxItems": 100
1034
1150
  },
@@ -1131,7 +1247,8 @@
1131
1247
  "type": "array",
1132
1248
  "items": {
1133
1249
  "type": "string",
1134
- "maxLength": 255
1250
+ "maxLength": 48,
1251
+ "minLength": 1
1135
1252
  },
1136
1253
  "maxItems": 100
1137
1254
  },
@@ -1271,7 +1388,8 @@
1271
1388
  "type": "array",
1272
1389
  "items": {
1273
1390
  "type": "string",
1274
- "maxLength": 255
1391
+ "maxLength": 48,
1392
+ "minLength": 1
1275
1393
  },
1276
1394
  "maxItems": 100
1277
1395
  },
@@ -1394,8 +1512,122 @@
1394
1512
  "type": "array",
1395
1513
  "items": {
1396
1514
  "type": "string",
1515
+ "maxLength": 48,
1516
+ "minLength": 1
1517
+ },
1518
+ "maxItems": 100
1519
+ },
1520
+ "maxItems": 100
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "type"
1525
+ ],
1526
+ "additionalProperties": false
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "key": {
1532
+ "type": "string",
1533
+ "maxLength": 1024
1534
+ },
1535
+ "type": {
1536
+ "type": "string",
1537
+ "enum": [
1538
+ "request"
1539
+ ]
1540
+ },
1541
+ "config": {
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "method": {
1545
+ "type": "string",
1546
+ "enum": [
1547
+ "*",
1548
+ "delete",
1549
+ "get",
1550
+ "options",
1551
+ "patch",
1552
+ "post",
1553
+ "put"
1554
+ ]
1555
+ },
1556
+ "route": {
1557
+ "type": "string",
1558
+ "maxLength": 1024
1559
+ }
1560
+ },
1561
+ "additionalProperties": false
1562
+ },
1563
+ "meta": {
1564
+ "type": "object",
1565
+ "properties": {
1566
+ "category": {
1567
+ "type": "string",
1568
+ "enum": [
1569
+ "trigger"
1570
+ ]
1571
+ },
1572
+ "name": {
1573
+ "type": "string",
1574
+ "enum": [
1575
+ "request"
1576
+ ]
1577
+ },
1578
+ "label": {
1579
+ "type": "string",
1580
+ "minLength": 1,
1397
1581
  "maxLength": 255
1398
1582
  },
1583
+ "x": {
1584
+ "type": "number"
1585
+ },
1586
+ "y": {
1587
+ "type": "number"
1588
+ },
1589
+ "uiId": {
1590
+ "type": "string",
1591
+ "maxLength": 48
1592
+ },
1593
+ "description": {
1594
+ "type": "string",
1595
+ "maxLength": 32767
1596
+ },
1597
+ "icon": {
1598
+ "type": "string",
1599
+ "maxLength": 1024
1600
+ },
1601
+ "color": {
1602
+ "type": "string",
1603
+ "maxLength": 1024
1604
+ },
1605
+ "inputCount": {
1606
+ "type": "number"
1607
+ },
1608
+ "outputCount": {
1609
+ "type": "number"
1610
+ },
1611
+ "triggerId": {
1612
+ "type": "string",
1613
+ "maxLength": 48
1614
+ },
1615
+ "id": {
1616
+ "type": "string",
1617
+ "maxLength": 48
1618
+ }
1619
+ },
1620
+ "additionalProperties": false
1621
+ },
1622
+ "outputIds": {
1623
+ "type": "array",
1624
+ "items": {
1625
+ "type": "array",
1626
+ "items": {
1627
+ "type": "string",
1628
+ "maxLength": 48,
1629
+ "minLength": 1
1630
+ },
1399
1631
  "maxItems": 100
1400
1632
  },
1401
1633
  "maxItems": 100
@@ -1537,7 +1769,8 @@
1537
1769
  "type": "array",
1538
1770
  "items": {
1539
1771
  "type": "string",
1540
- "maxLength": 255
1772
+ "maxLength": 48,
1773
+ "minLength": 1
1541
1774
  },
1542
1775
  "maxItems": 100
1543
1776
  },
@@ -1663,7 +1896,8 @@
1663
1896
  "type": "array",
1664
1897
  "items": {
1665
1898
  "type": "string",
1666
- "maxLength": 255
1899
+ "maxLength": 48,
1900
+ "minLength": 1
1667
1901
  },
1668
1902
  "maxItems": 100
1669
1903
  },
@@ -1778,7 +2012,8 @@
1778
2012
  "type": "array",
1779
2013
  "items": {
1780
2014
  "type": "string",
1781
- "maxLength": 255
2015
+ "maxLength": 48,
2016
+ "minLength": 1
1782
2017
  },
1783
2018
  "maxItems": 100
1784
2019
  },
@@ -1819,7 +2054,8 @@
1819
2054
  "type": "array",
1820
2055
  "items": {
1821
2056
  "type": "string",
1822
- "maxLength": 255
2057
+ "maxLength": 48,
2058
+ "minLength": 1
1823
2059
  },
1824
2060
  "maxItems": 100
1825
2061
  },
@@ -2254,6 +2490,7 @@
2254
2490
  "enum": [
2255
2491
  "cloud",
2256
2492
  "edge",
2493
+ "embedded",
2257
2494
  "experience",
2258
2495
  "customNode"
2259
2496
  ]