losant_rest 1.14.0 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/docs/_schemas.md +10590 -3153
  4. data/docs/devices.md +40 -0
  5. data/docs/embeddedDeployment.md +49 -0
  6. data/docs/embeddedDeployments.md +215 -0
  7. data/docs/flow.md +2 -2
  8. data/docs/flows.md +2 -2
  9. data/docs/instance.md +4 -2
  10. data/lib/losant_rest/application.rb +1 -1
  11. data/lib/losant_rest/application_api_token.rb +1 -1
  12. data/lib/losant_rest/application_api_tokens.rb +1 -1
  13. data/lib/losant_rest/application_certificate.rb +1 -1
  14. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  15. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  16. data/lib/losant_rest/application_certificates.rb +1 -1
  17. data/lib/losant_rest/application_dashboard.rb +1 -1
  18. data/lib/losant_rest/application_dashboards.rb +1 -1
  19. data/lib/losant_rest/application_key.rb +1 -1
  20. data/lib/losant_rest/application_keys.rb +1 -1
  21. data/lib/losant_rest/application_template.rb +1 -1
  22. data/lib/losant_rest/application_templates.rb +1 -1
  23. data/lib/losant_rest/applications.rb +1 -1
  24. data/lib/losant_rest/audit_log.rb +1 -1
  25. data/lib/losant_rest/audit_logs.rb +1 -1
  26. data/lib/losant_rest/auth.rb +1 -1
  27. data/lib/losant_rest/client.rb +11 -3
  28. data/lib/losant_rest/dashboard.rb +1 -1
  29. data/lib/losant_rest/dashboards.rb +1 -1
  30. data/lib/losant_rest/data.rb +1 -1
  31. data/lib/losant_rest/data_table.rb +1 -1
  32. data/lib/losant_rest/data_table_row.rb +1 -1
  33. data/lib/losant_rest/data_table_rows.rb +1 -1
  34. data/lib/losant_rest/data_tables.rb +1 -1
  35. data/lib/losant_rest/device.rb +1 -1
  36. data/lib/losant_rest/device_recipe.rb +1 -1
  37. data/lib/losant_rest/device_recipes.rb +1 -1
  38. data/lib/losant_rest/devices.rb +50 -1
  39. data/lib/losant_rest/edge_deployment.rb +1 -1
  40. data/lib/losant_rest/edge_deployments.rb +1 -1
  41. data/lib/losant_rest/embedded_deployment.rb +81 -0
  42. data/lib/losant_rest/embedded_deployments.rb +280 -0
  43. data/lib/losant_rest/error.rb +1 -1
  44. data/lib/losant_rest/event.rb +1 -1
  45. data/lib/losant_rest/events.rb +1 -1
  46. data/lib/losant_rest/experience.rb +1 -1
  47. data/lib/losant_rest/experience_domain.rb +1 -1
  48. data/lib/losant_rest/experience_domains.rb +1 -1
  49. data/lib/losant_rest/experience_endpoint.rb +1 -1
  50. data/lib/losant_rest/experience_endpoints.rb +1 -1
  51. data/lib/losant_rest/experience_group.rb +1 -1
  52. data/lib/losant_rest/experience_groups.rb +1 -1
  53. data/lib/losant_rest/experience_slug.rb +1 -1
  54. data/lib/losant_rest/experience_slugs.rb +1 -1
  55. data/lib/losant_rest/experience_user.rb +1 -1
  56. data/lib/losant_rest/experience_users.rb +1 -1
  57. data/lib/losant_rest/experience_version.rb +1 -1
  58. data/lib/losant_rest/experience_versions.rb +1 -1
  59. data/lib/losant_rest/experience_view.rb +1 -1
  60. data/lib/losant_rest/experience_views.rb +1 -1
  61. data/lib/losant_rest/file.rb +1 -1
  62. data/lib/losant_rest/files.rb +1 -1
  63. data/lib/losant_rest/flow.rb +3 -3
  64. data/lib/losant_rest/flow_version.rb +1 -1
  65. data/lib/losant_rest/flow_versions.rb +1 -1
  66. data/lib/losant_rest/flows.rb +3 -3
  67. data/lib/losant_rest/instance.rb +2 -1
  68. data/lib/losant_rest/instance_api_token.rb +1 -1
  69. data/lib/losant_rest/instance_api_tokens.rb +1 -1
  70. data/lib/losant_rest/instance_member.rb +1 -1
  71. data/lib/losant_rest/instance_members.rb +1 -1
  72. data/lib/losant_rest/instance_org.rb +1 -1
  73. data/lib/losant_rest/instance_org_invite.rb +1 -1
  74. data/lib/losant_rest/instance_org_invites.rb +1 -1
  75. data/lib/losant_rest/instance_org_member.rb +1 -1
  76. data/lib/losant_rest/instance_org_members.rb +1 -1
  77. data/lib/losant_rest/instance_orgs.rb +1 -1
  78. data/lib/losant_rest/instances.rb +1 -1
  79. data/lib/losant_rest/integration.rb +1 -1
  80. data/lib/losant_rest/integrations.rb +1 -1
  81. data/lib/losant_rest/me.rb +1 -1
  82. data/lib/losant_rest/notebook.rb +1 -1
  83. data/lib/losant_rest/notebooks.rb +1 -1
  84. data/lib/losant_rest/org.rb +1 -1
  85. data/lib/losant_rest/org_invites.rb +1 -1
  86. data/lib/losant_rest/orgs.rb +1 -1
  87. data/lib/losant_rest/user_api_token.rb +1 -1
  88. data/lib/losant_rest/user_api_tokens.rb +1 -1
  89. data/lib/losant_rest/utils.rb +1 -1
  90. data/lib/losant_rest/version.rb +2 -2
  91. data/lib/losant_rest/webhook.rb +1 -1
  92. data/lib/losant_rest/webhooks.rb +1 -1
  93. data/lib/losant_rest.rb +3 -1
  94. data/schemas/apiTokenPost.json +9 -0
  95. data/schemas/application.json +32 -32
  96. data/schemas/applicationCreationByTemplateResult.json +32 -32
  97. data/schemas/applicationDashboardPost.json +8 -5
  98. data/schemas/applicationPatch.json +13 -13
  99. data/schemas/applicationPost.json +13 -13
  100. data/schemas/applicationTemplate.json +16 -16
  101. data/schemas/applicationTemplates.json +16 -16
  102. data/schemas/applications.json +32 -32
  103. data/schemas/authedDevice.json +2 -1
  104. data/schemas/dashboard.json +8 -5
  105. data/schemas/dashboardPatch.json +8 -5
  106. data/schemas/dashboardPost.json +8 -5
  107. data/schemas/dashboardSendReport.json +6 -6
  108. data/schemas/dashboards.json +8 -5
  109. data/schemas/dataTableRowsDelete.json +1 -1
  110. data/schemas/device.json +2 -1
  111. data/schemas/deviceClassFilter.json +4 -2
  112. data/schemas/deviceNamesResponse.json +36 -0
  113. data/schemas/devicePatch.json +2 -1
  114. data/schemas/devicePost.json +2 -1
  115. data/schemas/deviceRecipe.json +2 -1
  116. data/schemas/deviceRecipePatch.json +2 -1
  117. data/schemas/deviceRecipePost.json +2 -1
  118. data/schemas/deviceRecipes.json +2 -1
  119. data/schemas/devices.json +4 -2
  120. data/schemas/devicesPatch.json +4 -2
  121. data/schemas/edgeDeployment.json +4 -0
  122. data/schemas/edgeDeployments.json +4 -0
  123. data/schemas/embeddedDeployment.json +179 -0
  124. data/schemas/embeddedDeploymentExport.json +44 -0
  125. data/schemas/embeddedDeploymentRelease.json +58 -0
  126. data/schemas/embeddedDeploymentRemove.json +25 -0
  127. data/schemas/embeddedDeploymentReplace.json +29 -0
  128. data/schemas/embeddedDeployments.json +212 -0
  129. data/schemas/eventsDeleted.json +1 -1
  130. data/schemas/eventsExport.json +4 -0
  131. data/schemas/experienceEndpoint.json +6 -8
  132. data/schemas/experienceEndpointPatch.json +6 -8
  133. data/schemas/experienceEndpointPost.json +6 -8
  134. data/schemas/experienceEndpoints.json +6 -8
  135. data/schemas/experienceLinkedResources.json +1292 -167
  136. data/schemas/flow.json +391 -15
  137. data/schemas/flowPatch.json +390 -15
  138. data/schemas/flowPost.json +391 -15
  139. data/schemas/flowVersion.json +821 -71
  140. data/schemas/flowVersionPost.json +390 -15
  141. data/schemas/flowVersions.json +821 -71
  142. data/schemas/flows.json +392 -15
  143. data/schemas/flowsImportPost.json +821 -70
  144. data/schemas/flowsImportResult.json +1392 -266
  145. data/schemas/githubLogin.json +9 -0
  146. data/schemas/historicalSummary.json +87 -74
  147. data/schemas/instance.json +92 -79
  148. data/schemas/instanceMember.json +6 -1
  149. data/schemas/instanceMembers.json +6 -1
  150. data/schemas/instanceOrg.json +87 -74
  151. data/schemas/instanceOrgMember.json +6 -1
  152. data/schemas/instanceOrgPatch.json +64 -26
  153. data/schemas/instanceOrgPost.json +65 -27
  154. data/schemas/instanceOrgs.json +87 -74
  155. data/schemas/instancePatch.json +2 -2
  156. data/schemas/integration.json +1 -1
  157. data/schemas/integrationPatch.json +1 -1
  158. data/schemas/integrationPost.json +1 -1
  159. data/schemas/integrations.json +1 -1
  160. data/schemas/me.json +104 -92
  161. data/schemas/mePatch.json +0 -1
  162. data/schemas/notebook.json +2 -1
  163. data/schemas/notebookExecutionLogs.json +2 -1
  164. data/schemas/notebookPatch.json +2 -1
  165. data/schemas/notebookPost.json +2 -1
  166. data/schemas/notebooks.json +2 -1
  167. data/schemas/org.json +115 -97
  168. data/schemas/orgs.json +115 -97
  169. data/schemas/userCredentials.json +9 -0
  170. data/schemas/userPost.json +9 -1
  171. metadata +17 -6
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "oneOf": [
4
4
  {
5
- "description": "Schema for a single Cloud/Edge/Custom Node Workflow Version",
5
+ "description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "id": {
@@ -66,7 +66,6 @@
66
66
  "onBoot",
67
67
  "onConnect",
68
68
  "onDisconnect",
69
- "request",
70
69
  "udp",
71
70
  "webhook"
72
71
  ]
@@ -91,6 +90,7 @@
91
90
  "deviceCommand",
92
91
  "deviceIdsTagsConnect",
93
92
  "deviceIdsTagsDisconnect",
93
+ "eeaInit",
94
94
  "flowError",
95
95
  "googlePubSub",
96
96
  "meridian",
@@ -100,7 +100,6 @@
100
100
  "onConnect",
101
101
  "onDisconnect",
102
102
  "particle",
103
- "request",
104
103
  "udp",
105
104
  "webhook"
106
105
  ]
@@ -155,7 +154,8 @@
155
154
  "type": "array",
156
155
  "items": {
157
156
  "type": "string",
158
- "maxLength": 255
157
+ "maxLength": 48,
158
+ "minLength": 1
159
159
  },
160
160
  "maxItems": 100
161
161
  },
@@ -259,7 +259,8 @@
259
259
  "type": "array",
260
260
  "items": {
261
261
  "type": "string",
262
- "maxLength": 255
262
+ "maxLength": 48,
263
+ "minLength": 1
263
264
  },
264
265
  "maxItems": 100
265
266
  },
@@ -403,7 +404,8 @@
403
404
  "type": "array",
404
405
  "items": {
405
406
  "type": "string",
406
- "maxLength": 255
407
+ "maxLength": 48,
408
+ "minLength": 1
407
409
  },
408
410
  "maxItems": 100
409
411
  },
@@ -499,8 +501,101 @@
499
501
  "type": "array",
500
502
  "items": {
501
503
  "type": "string",
504
+ "maxLength": 48,
505
+ "minLength": 1
506
+ },
507
+ "maxItems": 100
508
+ },
509
+ "maxItems": 100
510
+ }
511
+ },
512
+ "required": [
513
+ "type"
514
+ ],
515
+ "additionalProperties": false
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "key": {
521
+ "type": "string",
522
+ "maxLength": 1024
523
+ },
524
+ "type": {
525
+ "type": "string",
526
+ "enum": [
527
+ "direct"
528
+ ]
529
+ },
530
+ "config": {
531
+ "type": "object",
532
+ "properties": {},
533
+ "additionalProperties": false
534
+ },
535
+ "meta": {
536
+ "type": "object",
537
+ "properties": {
538
+ "category": {
539
+ "type": "string",
540
+ "enum": [
541
+ "trigger"
542
+ ]
543
+ },
544
+ "name": {
545
+ "type": "string",
546
+ "enum": [
547
+ "direct"
548
+ ]
549
+ },
550
+ "label": {
551
+ "type": "string",
552
+ "minLength": 1,
502
553
  "maxLength": 255
503
554
  },
555
+ "x": {
556
+ "type": "number"
557
+ },
558
+ "y": {
559
+ "type": "number"
560
+ },
561
+ "uiId": {
562
+ "type": "string",
563
+ "maxLength": 48
564
+ },
565
+ "description": {
566
+ "type": "string",
567
+ "maxLength": 32767
568
+ },
569
+ "icon": {
570
+ "type": "string",
571
+ "maxLength": 1024
572
+ },
573
+ "color": {
574
+ "type": "string",
575
+ "maxLength": 1024
576
+ },
577
+ "inputCount": {
578
+ "type": "number"
579
+ },
580
+ "outputCount": {
581
+ "type": "number"
582
+ },
583
+ "id": {
584
+ "type": "string",
585
+ "maxLength": 48
586
+ }
587
+ },
588
+ "additionalProperties": false
589
+ },
590
+ "outputIds": {
591
+ "type": "array",
592
+ "items": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "string",
596
+ "maxLength": 48,
597
+ "minLength": 1
598
+ },
504
599
  "maxItems": 100
505
600
  },
506
601
  "maxItems": 100
@@ -596,7 +691,8 @@
596
691
  "type": "array",
597
692
  "items": {
598
693
  "type": "string",
599
- "maxLength": 255
694
+ "maxLength": 48,
695
+ "minLength": 1
600
696
  },
601
697
  "maxItems": 100
602
698
  },
@@ -701,7 +797,8 @@
701
797
  "type": "array",
702
798
  "items": {
703
799
  "type": "string",
704
- "maxLength": 255
800
+ "maxLength": 48,
801
+ "minLength": 1
705
802
  },
706
803
  "maxItems": 100
707
804
  },
@@ -809,7 +906,8 @@
809
906
  "type": "array",
810
907
  "items": {
811
908
  "type": "string",
812
- "maxLength": 255
909
+ "maxLength": 48,
910
+ "minLength": 1
813
911
  },
814
912
  "maxItems": 100
815
913
  },
@@ -920,7 +1018,8 @@
920
1018
  "type": "array",
921
1019
  "items": {
922
1020
  "type": "string",
923
- "maxLength": 255
1021
+ "maxLength": 48,
1022
+ "minLength": 1
924
1023
  },
925
1024
  "maxItems": 100
926
1025
  },
@@ -1021,7 +1120,8 @@
1021
1120
  "type": "array",
1022
1121
  "items": {
1023
1122
  "type": "string",
1024
- "maxLength": 255
1123
+ "maxLength": 48,
1124
+ "minLength": 1
1025
1125
  },
1026
1126
  "maxItems": 100
1027
1127
  },
@@ -1124,7 +1224,8 @@
1124
1224
  "type": "array",
1125
1225
  "items": {
1126
1226
  "type": "string",
1127
- "maxLength": 255
1227
+ "maxLength": 48,
1228
+ "minLength": 1
1128
1229
  },
1129
1230
  "maxItems": 100
1130
1231
  },
@@ -1264,7 +1365,8 @@
1264
1365
  "type": "array",
1265
1366
  "items": {
1266
1367
  "type": "string",
1267
- "maxLength": 255
1368
+ "maxLength": 48,
1369
+ "minLength": 1
1268
1370
  },
1269
1371
  "maxItems": 100
1270
1372
  },
@@ -1387,8 +1489,122 @@
1387
1489
  "type": "array",
1388
1490
  "items": {
1389
1491
  "type": "string",
1492
+ "maxLength": 48,
1493
+ "minLength": 1
1494
+ },
1495
+ "maxItems": 100
1496
+ },
1497
+ "maxItems": 100
1498
+ }
1499
+ },
1500
+ "required": [
1501
+ "type"
1502
+ ],
1503
+ "additionalProperties": false
1504
+ },
1505
+ {
1506
+ "type": "object",
1507
+ "properties": {
1508
+ "key": {
1509
+ "type": "string",
1510
+ "maxLength": 1024
1511
+ },
1512
+ "type": {
1513
+ "type": "string",
1514
+ "enum": [
1515
+ "request"
1516
+ ]
1517
+ },
1518
+ "config": {
1519
+ "type": "object",
1520
+ "properties": {
1521
+ "method": {
1522
+ "type": "string",
1523
+ "enum": [
1524
+ "*",
1525
+ "delete",
1526
+ "get",
1527
+ "options",
1528
+ "patch",
1529
+ "post",
1530
+ "put"
1531
+ ]
1532
+ },
1533
+ "route": {
1534
+ "type": "string",
1535
+ "maxLength": 1024
1536
+ }
1537
+ },
1538
+ "additionalProperties": false
1539
+ },
1540
+ "meta": {
1541
+ "type": "object",
1542
+ "properties": {
1543
+ "category": {
1544
+ "type": "string",
1545
+ "enum": [
1546
+ "trigger"
1547
+ ]
1548
+ },
1549
+ "name": {
1550
+ "type": "string",
1551
+ "enum": [
1552
+ "request"
1553
+ ]
1554
+ },
1555
+ "label": {
1556
+ "type": "string",
1557
+ "minLength": 1,
1390
1558
  "maxLength": 255
1391
1559
  },
1560
+ "x": {
1561
+ "type": "number"
1562
+ },
1563
+ "y": {
1564
+ "type": "number"
1565
+ },
1566
+ "uiId": {
1567
+ "type": "string",
1568
+ "maxLength": 48
1569
+ },
1570
+ "description": {
1571
+ "type": "string",
1572
+ "maxLength": 32767
1573
+ },
1574
+ "icon": {
1575
+ "type": "string",
1576
+ "maxLength": 1024
1577
+ },
1578
+ "color": {
1579
+ "type": "string",
1580
+ "maxLength": 1024
1581
+ },
1582
+ "inputCount": {
1583
+ "type": "number"
1584
+ },
1585
+ "outputCount": {
1586
+ "type": "number"
1587
+ },
1588
+ "triggerId": {
1589
+ "type": "string",
1590
+ "maxLength": 48
1591
+ },
1592
+ "id": {
1593
+ "type": "string",
1594
+ "maxLength": 48
1595
+ }
1596
+ },
1597
+ "additionalProperties": false
1598
+ },
1599
+ "outputIds": {
1600
+ "type": "array",
1601
+ "items": {
1602
+ "type": "array",
1603
+ "items": {
1604
+ "type": "string",
1605
+ "maxLength": 48,
1606
+ "minLength": 1
1607
+ },
1392
1608
  "maxItems": 100
1393
1609
  },
1394
1610
  "maxItems": 100
@@ -1530,7 +1746,8 @@
1530
1746
  "type": "array",
1531
1747
  "items": {
1532
1748
  "type": "string",
1533
- "maxLength": 255
1749
+ "maxLength": 48,
1750
+ "minLength": 1
1534
1751
  },
1535
1752
  "maxItems": 100
1536
1753
  },
@@ -1552,24 +1769,75 @@
1552
1769
  "type": {
1553
1770
  "type": "string",
1554
1771
  "enum": [
1555
- "timer"
1772
+ "snmpTrap"
1556
1773
  ]
1557
1774
  },
1558
1775
  "config": {
1559
1776
  "type": "object",
1560
1777
  "properties": {
1561
- "seconds": {
1562
- "type": "number"
1563
- },
1564
- "cron": {
1778
+ "udpPort": {
1565
1779
  "type": "string",
1566
- "maxLength": 255
1780
+ "maxLength": 5
1567
1781
  },
1568
- "tz": {
1569
- "type": "string",
1570
- "maxLength": 255
1782
+ "snmpTrapConfig": {
1783
+ "type": "object",
1784
+ "properties": {
1785
+ "community": {
1786
+ "type": "string",
1787
+ "maxLength": 1024
1788
+ },
1789
+ "user": {
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "name": {
1793
+ "type": "string",
1794
+ "maxLength": 1024
1795
+ },
1796
+ "securityLevel": {
1797
+ "type": "string",
1798
+ "enum": [
1799
+ "none",
1800
+ "auth",
1801
+ "authAndEncrypt"
1802
+ ]
1803
+ },
1804
+ "authMethod": {
1805
+ "type": "string",
1806
+ "enum": [
1807
+ "sha",
1808
+ "md5"
1809
+ ]
1810
+ },
1811
+ "authKey": {
1812
+ "type": "string",
1813
+ "maxLength": 1024
1814
+ },
1815
+ "encryptionMethod": {
1816
+ "type": "string",
1817
+ "enum": [
1818
+ "aes",
1819
+ "des"
1820
+ ]
1821
+ },
1822
+ "encryptionKey": {
1823
+ "type": "string",
1824
+ "maxLength": 1024
1825
+ }
1826
+ },
1827
+ "required": [
1828
+ "name",
1829
+ "securityLevel"
1830
+ ],
1831
+ "additionalProperties": false
1832
+ }
1833
+ },
1834
+ "additionalProperties": false
1571
1835
  }
1572
1836
  },
1837
+ "required": [
1838
+ "udpPort",
1839
+ "snmpTrapConfig"
1840
+ ],
1573
1841
  "additionalProperties": false
1574
1842
  },
1575
1843
  "meta": {
@@ -1584,7 +1852,7 @@
1584
1852
  "name": {
1585
1853
  "type": "string",
1586
1854
  "enum": [
1587
- "timer"
1855
+ "snmpTrap"
1588
1856
  ]
1589
1857
  },
1590
1858
  "label": {
@@ -1623,29 +1891,6 @@
1623
1891
  "id": {
1624
1892
  "type": "string",
1625
1893
  "maxLength": 48
1626
- },
1627
- "timerTypeSelect": {
1628
- "type": "string",
1629
- "enum": [
1630
- "cronWeekly",
1631
- "seconds",
1632
- "cron"
1633
- ]
1634
- },
1635
- "timeAt": {
1636
- "type": "string",
1637
- "maxLength": 255
1638
- },
1639
- "timezone": {
1640
- "type": "string",
1641
- "maxLength": 255
1642
- },
1643
- "weekdays": {
1644
- "type": "array",
1645
- "maxItems": 7,
1646
- "items": {
1647
- "type": "number"
1648
- }
1649
1894
  }
1650
1895
  },
1651
1896
  "additionalProperties": false
@@ -1656,7 +1901,8 @@
1656
1901
  "type": "array",
1657
1902
  "items": {
1658
1903
  "type": "string",
1659
- "maxLength": 255
1904
+ "maxLength": 48,
1905
+ "minLength": 1
1660
1906
  },
1661
1907
  "maxItems": 100
1662
1908
  },
@@ -1678,11 +1924,24 @@
1678
1924
  "type": {
1679
1925
  "type": "string",
1680
1926
  "enum": [
1681
- "virtualButton"
1927
+ "timer"
1682
1928
  ]
1683
1929
  },
1684
1930
  "config": {
1685
1931
  "type": "object",
1932
+ "properties": {
1933
+ "seconds": {
1934
+ "type": "number"
1935
+ },
1936
+ "cron": {
1937
+ "type": "string",
1938
+ "maxLength": 255
1939
+ },
1940
+ "tz": {
1941
+ "type": "string",
1942
+ "maxLength": 255
1943
+ }
1944
+ },
1686
1945
  "additionalProperties": false
1687
1946
  },
1688
1947
  "meta": {
@@ -1697,7 +1956,7 @@
1697
1956
  "name": {
1698
1957
  "type": "string",
1699
1958
  "enum": [
1700
- "virtualButton"
1959
+ "timer"
1701
1960
  ]
1702
1961
  },
1703
1962
  "label": {
@@ -1715,10 +1974,124 @@
1715
1974
  "type": "string",
1716
1975
  "maxLength": 48
1717
1976
  },
1718
- "groupId": {
1719
- "type": "string",
1720
- "maxLength": 48
1721
- },
1977
+ "description": {
1978
+ "type": "string",
1979
+ "maxLength": 32767
1980
+ },
1981
+ "icon": {
1982
+ "type": "string",
1983
+ "maxLength": 1024
1984
+ },
1985
+ "color": {
1986
+ "type": "string",
1987
+ "maxLength": 1024
1988
+ },
1989
+ "inputCount": {
1990
+ "type": "number"
1991
+ },
1992
+ "outputCount": {
1993
+ "type": "number"
1994
+ },
1995
+ "id": {
1996
+ "type": "string",
1997
+ "maxLength": 48
1998
+ },
1999
+ "timerTypeSelect": {
2000
+ "type": "string",
2001
+ "enum": [
2002
+ "cronWeekly",
2003
+ "seconds",
2004
+ "cron"
2005
+ ]
2006
+ },
2007
+ "timeAt": {
2008
+ "type": "string",
2009
+ "maxLength": 255
2010
+ },
2011
+ "timezone": {
2012
+ "type": "string",
2013
+ "maxLength": 255
2014
+ },
2015
+ "weekdays": {
2016
+ "type": "array",
2017
+ "maxItems": 7,
2018
+ "items": {
2019
+ "type": "number"
2020
+ }
2021
+ }
2022
+ },
2023
+ "additionalProperties": false
2024
+ },
2025
+ "outputIds": {
2026
+ "type": "array",
2027
+ "items": {
2028
+ "type": "array",
2029
+ "items": {
2030
+ "type": "string",
2031
+ "maxLength": 48,
2032
+ "minLength": 1
2033
+ },
2034
+ "maxItems": 100
2035
+ },
2036
+ "maxItems": 100
2037
+ }
2038
+ },
2039
+ "required": [
2040
+ "type"
2041
+ ],
2042
+ "additionalProperties": false
2043
+ },
2044
+ {
2045
+ "type": "object",
2046
+ "properties": {
2047
+ "key": {
2048
+ "type": "string",
2049
+ "maxLength": 1024
2050
+ },
2051
+ "type": {
2052
+ "type": "string",
2053
+ "enum": [
2054
+ "virtualButton"
2055
+ ]
2056
+ },
2057
+ "config": {
2058
+ "type": "object",
2059
+ "additionalProperties": false
2060
+ },
2061
+ "meta": {
2062
+ "type": "object",
2063
+ "properties": {
2064
+ "category": {
2065
+ "type": "string",
2066
+ "enum": [
2067
+ "trigger"
2068
+ ]
2069
+ },
2070
+ "name": {
2071
+ "type": "string",
2072
+ "enum": [
2073
+ "virtualButton"
2074
+ ]
2075
+ },
2076
+ "label": {
2077
+ "type": "string",
2078
+ "minLength": 1,
2079
+ "maxLength": 255
2080
+ },
2081
+ "x": {
2082
+ "type": "number"
2083
+ },
2084
+ "y": {
2085
+ "type": "number"
2086
+ },
2087
+ "uiId": {
2088
+ "type": "string",
2089
+ "maxLength": 48
2090
+ },
2091
+ "groupId": {
2092
+ "type": "string",
2093
+ "maxLength": 48
2094
+ },
1722
2095
  "description": {
1723
2096
  "type": "string",
1724
2097
  "maxLength": 32767
@@ -1771,7 +2144,8 @@
1771
2144
  "type": "array",
1772
2145
  "items": {
1773
2146
  "type": "string",
1774
- "maxLength": 255
2147
+ "maxLength": 48,
2148
+ "minLength": 1
1775
2149
  },
1776
2150
  "maxItems": 100
1777
2151
  },
@@ -1812,7 +2186,8 @@
1812
2186
  "type": "array",
1813
2187
  "items": {
1814
2188
  "type": "string",
1815
- "maxLength": 255
2189
+ "maxLength": 48,
2190
+ "minLength": 1
1816
2191
  },
1817
2192
  "maxItems": 100
1818
2193
  },
@@ -2279,7 +2654,6 @@
2279
2654
  "onBoot",
2280
2655
  "onConnect",
2281
2656
  "onDisconnect",
2282
- "request",
2283
2657
  "udp",
2284
2658
  "webhook"
2285
2659
  ]
@@ -2304,6 +2678,7 @@
2304
2678
  "deviceCommand",
2305
2679
  "deviceIdsTagsConnect",
2306
2680
  "deviceIdsTagsDisconnect",
2681
+ "eeaInit",
2307
2682
  "flowError",
2308
2683
  "googlePubSub",
2309
2684
  "meridian",
@@ -2313,7 +2688,6 @@
2313
2688
  "onConnect",
2314
2689
  "onDisconnect",
2315
2690
  "particle",
2316
- "request",
2317
2691
  "udp",
2318
2692
  "webhook"
2319
2693
  ]
@@ -2368,7 +2742,8 @@
2368
2742
  "type": "array",
2369
2743
  "items": {
2370
2744
  "type": "string",
2371
- "maxLength": 255
2745
+ "maxLength": 48,
2746
+ "minLength": 1
2372
2747
  },
2373
2748
  "maxItems": 100
2374
2749
  },
@@ -2472,7 +2847,8 @@
2472
2847
  "type": "array",
2473
2848
  "items": {
2474
2849
  "type": "string",
2475
- "maxLength": 255
2850
+ "maxLength": 48,
2851
+ "minLength": 1
2476
2852
  },
2477
2853
  "maxItems": 100
2478
2854
  },
@@ -2616,7 +2992,8 @@
2616
2992
  "type": "array",
2617
2993
  "items": {
2618
2994
  "type": "string",
2619
- "maxLength": 255
2995
+ "maxLength": 48,
2996
+ "minLength": 1
2620
2997
  },
2621
2998
  "maxItems": 100
2622
2999
  },
@@ -2712,8 +3089,101 @@
2712
3089
  "type": "array",
2713
3090
  "items": {
2714
3091
  "type": "string",
3092
+ "maxLength": 48,
3093
+ "minLength": 1
3094
+ },
3095
+ "maxItems": 100
3096
+ },
3097
+ "maxItems": 100
3098
+ }
3099
+ },
3100
+ "required": [
3101
+ "type"
3102
+ ],
3103
+ "additionalProperties": false
3104
+ },
3105
+ {
3106
+ "type": "object",
3107
+ "properties": {
3108
+ "key": {
3109
+ "type": "string",
3110
+ "maxLength": 1024
3111
+ },
3112
+ "type": {
3113
+ "type": "string",
3114
+ "enum": [
3115
+ "direct"
3116
+ ]
3117
+ },
3118
+ "config": {
3119
+ "type": "object",
3120
+ "properties": {},
3121
+ "additionalProperties": false
3122
+ },
3123
+ "meta": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "category": {
3127
+ "type": "string",
3128
+ "enum": [
3129
+ "trigger"
3130
+ ]
3131
+ },
3132
+ "name": {
3133
+ "type": "string",
3134
+ "enum": [
3135
+ "direct"
3136
+ ]
3137
+ },
3138
+ "label": {
3139
+ "type": "string",
3140
+ "minLength": 1,
2715
3141
  "maxLength": 255
2716
3142
  },
3143
+ "x": {
3144
+ "type": "number"
3145
+ },
3146
+ "y": {
3147
+ "type": "number"
3148
+ },
3149
+ "uiId": {
3150
+ "type": "string",
3151
+ "maxLength": 48
3152
+ },
3153
+ "description": {
3154
+ "type": "string",
3155
+ "maxLength": 32767
3156
+ },
3157
+ "icon": {
3158
+ "type": "string",
3159
+ "maxLength": 1024
3160
+ },
3161
+ "color": {
3162
+ "type": "string",
3163
+ "maxLength": 1024
3164
+ },
3165
+ "inputCount": {
3166
+ "type": "number"
3167
+ },
3168
+ "outputCount": {
3169
+ "type": "number"
3170
+ },
3171
+ "id": {
3172
+ "type": "string",
3173
+ "maxLength": 48
3174
+ }
3175
+ },
3176
+ "additionalProperties": false
3177
+ },
3178
+ "outputIds": {
3179
+ "type": "array",
3180
+ "items": {
3181
+ "type": "array",
3182
+ "items": {
3183
+ "type": "string",
3184
+ "maxLength": 48,
3185
+ "minLength": 1
3186
+ },
2717
3187
  "maxItems": 100
2718
3188
  },
2719
3189
  "maxItems": 100
@@ -2809,7 +3279,8 @@
2809
3279
  "type": "array",
2810
3280
  "items": {
2811
3281
  "type": "string",
2812
- "maxLength": 255
3282
+ "maxLength": 48,
3283
+ "minLength": 1
2813
3284
  },
2814
3285
  "maxItems": 100
2815
3286
  },
@@ -2914,7 +3385,8 @@
2914
3385
  "type": "array",
2915
3386
  "items": {
2916
3387
  "type": "string",
2917
- "maxLength": 255
3388
+ "maxLength": 48,
3389
+ "minLength": 1
2918
3390
  },
2919
3391
  "maxItems": 100
2920
3392
  },
@@ -3022,7 +3494,8 @@
3022
3494
  "type": "array",
3023
3495
  "items": {
3024
3496
  "type": "string",
3025
- "maxLength": 255
3497
+ "maxLength": 48,
3498
+ "minLength": 1
3026
3499
  },
3027
3500
  "maxItems": 100
3028
3501
  },
@@ -3133,7 +3606,8 @@
3133
3606
  "type": "array",
3134
3607
  "items": {
3135
3608
  "type": "string",
3136
- "maxLength": 255
3609
+ "maxLength": 48,
3610
+ "minLength": 1
3137
3611
  },
3138
3612
  "maxItems": 100
3139
3613
  },
@@ -3234,7 +3708,8 @@
3234
3708
  "type": "array",
3235
3709
  "items": {
3236
3710
  "type": "string",
3237
- "maxLength": 255
3711
+ "maxLength": 48,
3712
+ "minLength": 1
3238
3713
  },
3239
3714
  "maxItems": 100
3240
3715
  },
@@ -3337,7 +3812,8 @@
3337
3812
  "type": "array",
3338
3813
  "items": {
3339
3814
  "type": "string",
3340
- "maxLength": 255
3815
+ "maxLength": 48,
3816
+ "minLength": 1
3341
3817
  },
3342
3818
  "maxItems": 100
3343
3819
  },
@@ -3477,7 +3953,8 @@
3477
3953
  "type": "array",
3478
3954
  "items": {
3479
3955
  "type": "string",
3480
- "maxLength": 255
3956
+ "maxLength": 48,
3957
+ "minLength": 1
3481
3958
  },
3482
3959
  "maxItems": 100
3483
3960
  },
@@ -3600,8 +4077,122 @@
3600
4077
  "type": "array",
3601
4078
  "items": {
3602
4079
  "type": "string",
4080
+ "maxLength": 48,
4081
+ "minLength": 1
4082
+ },
4083
+ "maxItems": 100
4084
+ },
4085
+ "maxItems": 100
4086
+ }
4087
+ },
4088
+ "required": [
4089
+ "type"
4090
+ ],
4091
+ "additionalProperties": false
4092
+ },
4093
+ {
4094
+ "type": "object",
4095
+ "properties": {
4096
+ "key": {
4097
+ "type": "string",
4098
+ "maxLength": 1024
4099
+ },
4100
+ "type": {
4101
+ "type": "string",
4102
+ "enum": [
4103
+ "request"
4104
+ ]
4105
+ },
4106
+ "config": {
4107
+ "type": "object",
4108
+ "properties": {
4109
+ "method": {
4110
+ "type": "string",
4111
+ "enum": [
4112
+ "*",
4113
+ "delete",
4114
+ "get",
4115
+ "options",
4116
+ "patch",
4117
+ "post",
4118
+ "put"
4119
+ ]
4120
+ },
4121
+ "route": {
4122
+ "type": "string",
4123
+ "maxLength": 1024
4124
+ }
4125
+ },
4126
+ "additionalProperties": false
4127
+ },
4128
+ "meta": {
4129
+ "type": "object",
4130
+ "properties": {
4131
+ "category": {
4132
+ "type": "string",
4133
+ "enum": [
4134
+ "trigger"
4135
+ ]
4136
+ },
4137
+ "name": {
4138
+ "type": "string",
4139
+ "enum": [
4140
+ "request"
4141
+ ]
4142
+ },
4143
+ "label": {
4144
+ "type": "string",
4145
+ "minLength": 1,
3603
4146
  "maxLength": 255
3604
4147
  },
4148
+ "x": {
4149
+ "type": "number"
4150
+ },
4151
+ "y": {
4152
+ "type": "number"
4153
+ },
4154
+ "uiId": {
4155
+ "type": "string",
4156
+ "maxLength": 48
4157
+ },
4158
+ "description": {
4159
+ "type": "string",
4160
+ "maxLength": 32767
4161
+ },
4162
+ "icon": {
4163
+ "type": "string",
4164
+ "maxLength": 1024
4165
+ },
4166
+ "color": {
4167
+ "type": "string",
4168
+ "maxLength": 1024
4169
+ },
4170
+ "inputCount": {
4171
+ "type": "number"
4172
+ },
4173
+ "outputCount": {
4174
+ "type": "number"
4175
+ },
4176
+ "triggerId": {
4177
+ "type": "string",
4178
+ "maxLength": 48
4179
+ },
4180
+ "id": {
4181
+ "type": "string",
4182
+ "maxLength": 48
4183
+ }
4184
+ },
4185
+ "additionalProperties": false
4186
+ },
4187
+ "outputIds": {
4188
+ "type": "array",
4189
+ "items": {
4190
+ "type": "array",
4191
+ "items": {
4192
+ "type": "string",
4193
+ "maxLength": 48,
4194
+ "minLength": 1
4195
+ },
3605
4196
  "maxItems": 100
3606
4197
  },
3607
4198
  "maxItems": 100
@@ -3743,8 +4334,164 @@
3743
4334
  "type": "array",
3744
4335
  "items": {
3745
4336
  "type": "string",
4337
+ "maxLength": 48,
4338
+ "minLength": 1
4339
+ },
4340
+ "maxItems": 100
4341
+ },
4342
+ "maxItems": 100
4343
+ }
4344
+ },
4345
+ "required": [
4346
+ "type"
4347
+ ],
4348
+ "additionalProperties": false
4349
+ },
4350
+ {
4351
+ "type": "object",
4352
+ "properties": {
4353
+ "key": {
4354
+ "type": "string",
4355
+ "maxLength": 1024
4356
+ },
4357
+ "type": {
4358
+ "type": "string",
4359
+ "enum": [
4360
+ "snmpTrap"
4361
+ ]
4362
+ },
4363
+ "config": {
4364
+ "type": "object",
4365
+ "properties": {
4366
+ "udpPort": {
4367
+ "type": "string",
4368
+ "maxLength": 5
4369
+ },
4370
+ "snmpTrapConfig": {
4371
+ "type": "object",
4372
+ "properties": {
4373
+ "community": {
4374
+ "type": "string",
4375
+ "maxLength": 1024
4376
+ },
4377
+ "user": {
4378
+ "type": "object",
4379
+ "properties": {
4380
+ "name": {
4381
+ "type": "string",
4382
+ "maxLength": 1024
4383
+ },
4384
+ "securityLevel": {
4385
+ "type": "string",
4386
+ "enum": [
4387
+ "none",
4388
+ "auth",
4389
+ "authAndEncrypt"
4390
+ ]
4391
+ },
4392
+ "authMethod": {
4393
+ "type": "string",
4394
+ "enum": [
4395
+ "sha",
4396
+ "md5"
4397
+ ]
4398
+ },
4399
+ "authKey": {
4400
+ "type": "string",
4401
+ "maxLength": 1024
4402
+ },
4403
+ "encryptionMethod": {
4404
+ "type": "string",
4405
+ "enum": [
4406
+ "aes",
4407
+ "des"
4408
+ ]
4409
+ },
4410
+ "encryptionKey": {
4411
+ "type": "string",
4412
+ "maxLength": 1024
4413
+ }
4414
+ },
4415
+ "required": [
4416
+ "name",
4417
+ "securityLevel"
4418
+ ],
4419
+ "additionalProperties": false
4420
+ }
4421
+ },
4422
+ "additionalProperties": false
4423
+ }
4424
+ },
4425
+ "required": [
4426
+ "udpPort",
4427
+ "snmpTrapConfig"
4428
+ ],
4429
+ "additionalProperties": false
4430
+ },
4431
+ "meta": {
4432
+ "type": "object",
4433
+ "properties": {
4434
+ "category": {
4435
+ "type": "string",
4436
+ "enum": [
4437
+ "trigger"
4438
+ ]
4439
+ },
4440
+ "name": {
4441
+ "type": "string",
4442
+ "enum": [
4443
+ "snmpTrap"
4444
+ ]
4445
+ },
4446
+ "label": {
4447
+ "type": "string",
4448
+ "minLength": 1,
3746
4449
  "maxLength": 255
3747
4450
  },
4451
+ "x": {
4452
+ "type": "number"
4453
+ },
4454
+ "y": {
4455
+ "type": "number"
4456
+ },
4457
+ "uiId": {
4458
+ "type": "string",
4459
+ "maxLength": 48
4460
+ },
4461
+ "description": {
4462
+ "type": "string",
4463
+ "maxLength": 32767
4464
+ },
4465
+ "icon": {
4466
+ "type": "string",
4467
+ "maxLength": 1024
4468
+ },
4469
+ "color": {
4470
+ "type": "string",
4471
+ "maxLength": 1024
4472
+ },
4473
+ "inputCount": {
4474
+ "type": "number"
4475
+ },
4476
+ "outputCount": {
4477
+ "type": "number"
4478
+ },
4479
+ "id": {
4480
+ "type": "string",
4481
+ "maxLength": 48
4482
+ }
4483
+ },
4484
+ "additionalProperties": false
4485
+ },
4486
+ "outputIds": {
4487
+ "type": "array",
4488
+ "items": {
4489
+ "type": "array",
4490
+ "items": {
4491
+ "type": "string",
4492
+ "maxLength": 48,
4493
+ "minLength": 1
4494
+ },
3748
4495
  "maxItems": 100
3749
4496
  },
3750
4497
  "maxItems": 100
@@ -3869,7 +4616,8 @@
3869
4616
  "type": "array",
3870
4617
  "items": {
3871
4618
  "type": "string",
3872
- "maxLength": 255
4619
+ "maxLength": 48,
4620
+ "minLength": 1
3873
4621
  },
3874
4622
  "maxItems": 100
3875
4623
  },
@@ -3984,7 +4732,8 @@
3984
4732
  "type": "array",
3985
4733
  "items": {
3986
4734
  "type": "string",
3987
- "maxLength": 255
4735
+ "maxLength": 48,
4736
+ "minLength": 1
3988
4737
  },
3989
4738
  "maxItems": 100
3990
4739
  },
@@ -4025,7 +4774,8 @@
4025
4774
  "type": "array",
4026
4775
  "items": {
4027
4776
  "type": "string",
4028
- "maxLength": 255
4777
+ "maxLength": 48,
4778
+ "minLength": 1
4029
4779
  },
4030
4780
  "maxItems": 100
4031
4781
  },