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
@@ -60,6 +60,7 @@
60
60
  "enum": [
61
61
  "cloud",
62
62
  "edge",
63
+ "embedded",
63
64
  "experience",
64
65
  "customNode"
65
66
  ]
@@ -89,7 +90,6 @@
89
90
  "onBoot",
90
91
  "onConnect",
91
92
  "onDisconnect",
92
- "request",
93
93
  "udp",
94
94
  "webhook"
95
95
  ]
@@ -114,6 +114,7 @@
114
114
  "deviceCommand",
115
115
  "deviceIdsTagsConnect",
116
116
  "deviceIdsTagsDisconnect",
117
+ "eeaInit",
117
118
  "flowError",
118
119
  "googlePubSub",
119
120
  "meridian",
@@ -123,7 +124,6 @@
123
124
  "onConnect",
124
125
  "onDisconnect",
125
126
  "particle",
126
- "request",
127
127
  "udp",
128
128
  "webhook"
129
129
  ]
@@ -178,7 +178,8 @@
178
178
  "type": "array",
179
179
  "items": {
180
180
  "type": "string",
181
- "maxLength": 255
181
+ "maxLength": 48,
182
+ "minLength": 1
182
183
  },
183
184
  "maxItems": 100
184
185
  },
@@ -282,7 +283,8 @@
282
283
  "type": "array",
283
284
  "items": {
284
285
  "type": "string",
285
- "maxLength": 255
286
+ "maxLength": 48,
287
+ "minLength": 1
286
288
  },
287
289
  "maxItems": 100
288
290
  },
@@ -329,6 +331,21 @@
329
331
  },
330
332
  "maxAge": {
331
333
  "type": "number"
334
+ },
335
+ "triggerOn": {
336
+ "type": "string",
337
+ "enum": [
338
+ "batch",
339
+ "individual",
340
+ "both"
341
+ ]
342
+ },
343
+ "batchBehavior": {
344
+ "type": "string",
345
+ "enum": [
346
+ "once",
347
+ "each"
348
+ ]
332
349
  }
333
350
  },
334
351
  "additionalProperties": false
@@ -411,7 +428,8 @@
411
428
  "type": "array",
412
429
  "items": {
413
430
  "type": "string",
414
- "maxLength": 255
431
+ "maxLength": 48,
432
+ "minLength": 1
415
433
  },
416
434
  "maxItems": 100
417
435
  },
@@ -507,8 +525,101 @@
507
525
  "type": "array",
508
526
  "items": {
509
527
  "type": "string",
528
+ "maxLength": 48,
529
+ "minLength": 1
530
+ },
531
+ "maxItems": 100
532
+ },
533
+ "maxItems": 100
534
+ }
535
+ },
536
+ "required": [
537
+ "type"
538
+ ],
539
+ "additionalProperties": false
540
+ },
541
+ {
542
+ "type": "object",
543
+ "properties": {
544
+ "key": {
545
+ "type": "string",
546
+ "maxLength": 1024
547
+ },
548
+ "type": {
549
+ "type": "string",
550
+ "enum": [
551
+ "direct"
552
+ ]
553
+ },
554
+ "config": {
555
+ "type": "object",
556
+ "properties": {},
557
+ "additionalProperties": false
558
+ },
559
+ "meta": {
560
+ "type": "object",
561
+ "properties": {
562
+ "category": {
563
+ "type": "string",
564
+ "enum": [
565
+ "trigger"
566
+ ]
567
+ },
568
+ "name": {
569
+ "type": "string",
570
+ "enum": [
571
+ "direct"
572
+ ]
573
+ },
574
+ "label": {
575
+ "type": "string",
576
+ "minLength": 1,
510
577
  "maxLength": 255
511
578
  },
579
+ "x": {
580
+ "type": "number"
581
+ },
582
+ "y": {
583
+ "type": "number"
584
+ },
585
+ "uiId": {
586
+ "type": "string",
587
+ "maxLength": 48
588
+ },
589
+ "description": {
590
+ "type": "string",
591
+ "maxLength": 32767
592
+ },
593
+ "icon": {
594
+ "type": "string",
595
+ "maxLength": 1024
596
+ },
597
+ "color": {
598
+ "type": "string",
599
+ "maxLength": 1024
600
+ },
601
+ "inputCount": {
602
+ "type": "number"
603
+ },
604
+ "outputCount": {
605
+ "type": "number"
606
+ },
607
+ "id": {
608
+ "type": "string",
609
+ "maxLength": 48
610
+ }
611
+ },
612
+ "additionalProperties": false
613
+ },
614
+ "outputIds": {
615
+ "type": "array",
616
+ "items": {
617
+ "type": "array",
618
+ "items": {
619
+ "type": "string",
620
+ "maxLength": 48,
621
+ "minLength": 1
622
+ },
512
623
  "maxItems": 100
513
624
  },
514
625
  "maxItems": 100
@@ -604,7 +715,8 @@
604
715
  "type": "array",
605
716
  "items": {
606
717
  "type": "string",
607
- "maxLength": 255
718
+ "maxLength": 48,
719
+ "minLength": 1
608
720
  },
609
721
  "maxItems": 100
610
722
  },
@@ -709,7 +821,8 @@
709
821
  "type": "array",
710
822
  "items": {
711
823
  "type": "string",
712
- "maxLength": 255
824
+ "maxLength": 48,
825
+ "minLength": 1
713
826
  },
714
827
  "maxItems": 100
715
828
  },
@@ -817,7 +930,8 @@
817
930
  "type": "array",
818
931
  "items": {
819
932
  "type": "string",
820
- "maxLength": 255
933
+ "maxLength": 48,
934
+ "minLength": 1
821
935
  },
822
936
  "maxItems": 100
823
937
  },
@@ -928,7 +1042,8 @@
928
1042
  "type": "array",
929
1043
  "items": {
930
1044
  "type": "string",
931
- "maxLength": 255
1045
+ "maxLength": 48,
1046
+ "minLength": 1
932
1047
  },
933
1048
  "maxItems": 100
934
1049
  },
@@ -1029,7 +1144,8 @@
1029
1144
  "type": "array",
1030
1145
  "items": {
1031
1146
  "type": "string",
1032
- "maxLength": 255
1147
+ "maxLength": 48,
1148
+ "minLength": 1
1033
1149
  },
1034
1150
  "maxItems": 100
1035
1151
  },
@@ -1132,7 +1248,8 @@
1132
1248
  "type": "array",
1133
1249
  "items": {
1134
1250
  "type": "string",
1135
- "maxLength": 255
1251
+ "maxLength": 48,
1252
+ "minLength": 1
1136
1253
  },
1137
1254
  "maxItems": 100
1138
1255
  },
@@ -1272,7 +1389,8 @@
1272
1389
  "type": "array",
1273
1390
  "items": {
1274
1391
  "type": "string",
1275
- "maxLength": 255
1392
+ "maxLength": 48,
1393
+ "minLength": 1
1276
1394
  },
1277
1395
  "maxItems": 100
1278
1396
  },
@@ -1395,8 +1513,122 @@
1395
1513
  "type": "array",
1396
1514
  "items": {
1397
1515
  "type": "string",
1516
+ "maxLength": 48,
1517
+ "minLength": 1
1518
+ },
1519
+ "maxItems": 100
1520
+ },
1521
+ "maxItems": 100
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "type"
1526
+ ],
1527
+ "additionalProperties": false
1528
+ },
1529
+ {
1530
+ "type": "object",
1531
+ "properties": {
1532
+ "key": {
1533
+ "type": "string",
1534
+ "maxLength": 1024
1535
+ },
1536
+ "type": {
1537
+ "type": "string",
1538
+ "enum": [
1539
+ "request"
1540
+ ]
1541
+ },
1542
+ "config": {
1543
+ "type": "object",
1544
+ "properties": {
1545
+ "method": {
1546
+ "type": "string",
1547
+ "enum": [
1548
+ "*",
1549
+ "delete",
1550
+ "get",
1551
+ "options",
1552
+ "patch",
1553
+ "post",
1554
+ "put"
1555
+ ]
1556
+ },
1557
+ "route": {
1558
+ "type": "string",
1559
+ "maxLength": 1024
1560
+ }
1561
+ },
1562
+ "additionalProperties": false
1563
+ },
1564
+ "meta": {
1565
+ "type": "object",
1566
+ "properties": {
1567
+ "category": {
1568
+ "type": "string",
1569
+ "enum": [
1570
+ "trigger"
1571
+ ]
1572
+ },
1573
+ "name": {
1574
+ "type": "string",
1575
+ "enum": [
1576
+ "request"
1577
+ ]
1578
+ },
1579
+ "label": {
1580
+ "type": "string",
1581
+ "minLength": 1,
1398
1582
  "maxLength": 255
1399
1583
  },
1584
+ "x": {
1585
+ "type": "number"
1586
+ },
1587
+ "y": {
1588
+ "type": "number"
1589
+ },
1590
+ "uiId": {
1591
+ "type": "string",
1592
+ "maxLength": 48
1593
+ },
1594
+ "description": {
1595
+ "type": "string",
1596
+ "maxLength": 32767
1597
+ },
1598
+ "icon": {
1599
+ "type": "string",
1600
+ "maxLength": 1024
1601
+ },
1602
+ "color": {
1603
+ "type": "string",
1604
+ "maxLength": 1024
1605
+ },
1606
+ "inputCount": {
1607
+ "type": "number"
1608
+ },
1609
+ "outputCount": {
1610
+ "type": "number"
1611
+ },
1612
+ "triggerId": {
1613
+ "type": "string",
1614
+ "maxLength": 48
1615
+ },
1616
+ "id": {
1617
+ "type": "string",
1618
+ "maxLength": 48
1619
+ }
1620
+ },
1621
+ "additionalProperties": false
1622
+ },
1623
+ "outputIds": {
1624
+ "type": "array",
1625
+ "items": {
1626
+ "type": "array",
1627
+ "items": {
1628
+ "type": "string",
1629
+ "maxLength": 48,
1630
+ "minLength": 1
1631
+ },
1400
1632
  "maxItems": 100
1401
1633
  },
1402
1634
  "maxItems": 100
@@ -1538,7 +1770,8 @@
1538
1770
  "type": "array",
1539
1771
  "items": {
1540
1772
  "type": "string",
1541
- "maxLength": 255
1773
+ "maxLength": 48,
1774
+ "minLength": 1
1542
1775
  },
1543
1776
  "maxItems": 100
1544
1777
  },
@@ -1664,7 +1897,8 @@
1664
1897
  "type": "array",
1665
1898
  "items": {
1666
1899
  "type": "string",
1667
- "maxLength": 255
1900
+ "maxLength": 48,
1901
+ "minLength": 1
1668
1902
  },
1669
1903
  "maxItems": 100
1670
1904
  },
@@ -1779,7 +2013,8 @@
1779
2013
  "type": "array",
1780
2014
  "items": {
1781
2015
  "type": "string",
1782
- "maxLength": 255
2016
+ "maxLength": 48,
2017
+ "minLength": 1
1783
2018
  },
1784
2019
  "maxItems": 100
1785
2020
  },
@@ -1820,7 +2055,8 @@
1820
2055
  "type": "array",
1821
2056
  "items": {
1822
2057
  "type": "string",
1823
- "maxLength": 255
2058
+ "maxLength": 48,
2059
+ "minLength": 1
1824
2060
  },
1825
2061
  "maxItems": 100
1826
2062
  },
@@ -2223,7 +2459,7 @@
2223
2459
  "description": "Schema for a single Workflow Version",
2224
2460
  "oneOf": [
2225
2461
  {
2226
- "description": "Schema for a single Cloud/Edge/Custom Node Workflow Version",
2462
+ "description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
2227
2463
  "type": "object",
2228
2464
  "properties": {
2229
2465
  "id": {
@@ -2287,7 +2523,6 @@
2287
2523
  "onBoot",
2288
2524
  "onConnect",
2289
2525
  "onDisconnect",
2290
- "request",
2291
2526
  "udp",
2292
2527
  "webhook"
2293
2528
  ]
@@ -2312,6 +2547,7 @@
2312
2547
  "deviceCommand",
2313
2548
  "deviceIdsTagsConnect",
2314
2549
  "deviceIdsTagsDisconnect",
2550
+ "eeaInit",
2315
2551
  "flowError",
2316
2552
  "googlePubSub",
2317
2553
  "meridian",
@@ -2321,7 +2557,6 @@
2321
2557
  "onConnect",
2322
2558
  "onDisconnect",
2323
2559
  "particle",
2324
- "request",
2325
2560
  "udp",
2326
2561
  "webhook"
2327
2562
  ]
@@ -2376,7 +2611,8 @@
2376
2611
  "type": "array",
2377
2612
  "items": {
2378
2613
  "type": "string",
2379
- "maxLength": 255
2614
+ "maxLength": 48,
2615
+ "minLength": 1
2380
2616
  },
2381
2617
  "maxItems": 100
2382
2618
  },
@@ -2480,7 +2716,8 @@
2480
2716
  "type": "array",
2481
2717
  "items": {
2482
2718
  "type": "string",
2483
- "maxLength": 255
2719
+ "maxLength": 48,
2720
+ "minLength": 1
2484
2721
  },
2485
2722
  "maxItems": 100
2486
2723
  },
@@ -2527,6 +2764,21 @@
2527
2764
  },
2528
2765
  "maxAge": {
2529
2766
  "type": "number"
2767
+ },
2768
+ "triggerOn": {
2769
+ "type": "string",
2770
+ "enum": [
2771
+ "batch",
2772
+ "individual",
2773
+ "both"
2774
+ ]
2775
+ },
2776
+ "batchBehavior": {
2777
+ "type": "string",
2778
+ "enum": [
2779
+ "once",
2780
+ "each"
2781
+ ]
2530
2782
  }
2531
2783
  },
2532
2784
  "additionalProperties": false
@@ -2609,7 +2861,8 @@
2609
2861
  "type": "array",
2610
2862
  "items": {
2611
2863
  "type": "string",
2612
- "maxLength": 255
2864
+ "maxLength": 48,
2865
+ "minLength": 1
2613
2866
  },
2614
2867
  "maxItems": 100
2615
2868
  },
@@ -2705,8 +2958,101 @@
2705
2958
  "type": "array",
2706
2959
  "items": {
2707
2960
  "type": "string",
2961
+ "maxLength": 48,
2962
+ "minLength": 1
2963
+ },
2964
+ "maxItems": 100
2965
+ },
2966
+ "maxItems": 100
2967
+ }
2968
+ },
2969
+ "required": [
2970
+ "type"
2971
+ ],
2972
+ "additionalProperties": false
2973
+ },
2974
+ {
2975
+ "type": "object",
2976
+ "properties": {
2977
+ "key": {
2978
+ "type": "string",
2979
+ "maxLength": 1024
2980
+ },
2981
+ "type": {
2982
+ "type": "string",
2983
+ "enum": [
2984
+ "direct"
2985
+ ]
2986
+ },
2987
+ "config": {
2988
+ "type": "object",
2989
+ "properties": {},
2990
+ "additionalProperties": false
2991
+ },
2992
+ "meta": {
2993
+ "type": "object",
2994
+ "properties": {
2995
+ "category": {
2996
+ "type": "string",
2997
+ "enum": [
2998
+ "trigger"
2999
+ ]
3000
+ },
3001
+ "name": {
3002
+ "type": "string",
3003
+ "enum": [
3004
+ "direct"
3005
+ ]
3006
+ },
3007
+ "label": {
3008
+ "type": "string",
3009
+ "minLength": 1,
2708
3010
  "maxLength": 255
2709
3011
  },
3012
+ "x": {
3013
+ "type": "number"
3014
+ },
3015
+ "y": {
3016
+ "type": "number"
3017
+ },
3018
+ "uiId": {
3019
+ "type": "string",
3020
+ "maxLength": 48
3021
+ },
3022
+ "description": {
3023
+ "type": "string",
3024
+ "maxLength": 32767
3025
+ },
3026
+ "icon": {
3027
+ "type": "string",
3028
+ "maxLength": 1024
3029
+ },
3030
+ "color": {
3031
+ "type": "string",
3032
+ "maxLength": 1024
3033
+ },
3034
+ "inputCount": {
3035
+ "type": "number"
3036
+ },
3037
+ "outputCount": {
3038
+ "type": "number"
3039
+ },
3040
+ "id": {
3041
+ "type": "string",
3042
+ "maxLength": 48
3043
+ }
3044
+ },
3045
+ "additionalProperties": false
3046
+ },
3047
+ "outputIds": {
3048
+ "type": "array",
3049
+ "items": {
3050
+ "type": "array",
3051
+ "items": {
3052
+ "type": "string",
3053
+ "maxLength": 48,
3054
+ "minLength": 1
3055
+ },
2710
3056
  "maxItems": 100
2711
3057
  },
2712
3058
  "maxItems": 100
@@ -2802,7 +3148,8 @@
2802
3148
  "type": "array",
2803
3149
  "items": {
2804
3150
  "type": "string",
2805
- "maxLength": 255
3151
+ "maxLength": 48,
3152
+ "minLength": 1
2806
3153
  },
2807
3154
  "maxItems": 100
2808
3155
  },
@@ -2907,7 +3254,8 @@
2907
3254
  "type": "array",
2908
3255
  "items": {
2909
3256
  "type": "string",
2910
- "maxLength": 255
3257
+ "maxLength": 48,
3258
+ "minLength": 1
2911
3259
  },
2912
3260
  "maxItems": 100
2913
3261
  },
@@ -3015,7 +3363,8 @@
3015
3363
  "type": "array",
3016
3364
  "items": {
3017
3365
  "type": "string",
3018
- "maxLength": 255
3366
+ "maxLength": 48,
3367
+ "minLength": 1
3019
3368
  },
3020
3369
  "maxItems": 100
3021
3370
  },
@@ -3126,7 +3475,8 @@
3126
3475
  "type": "array",
3127
3476
  "items": {
3128
3477
  "type": "string",
3129
- "maxLength": 255
3478
+ "maxLength": 48,
3479
+ "minLength": 1
3130
3480
  },
3131
3481
  "maxItems": 100
3132
3482
  },
@@ -3227,7 +3577,8 @@
3227
3577
  "type": "array",
3228
3578
  "items": {
3229
3579
  "type": "string",
3230
- "maxLength": 255
3580
+ "maxLength": 48,
3581
+ "minLength": 1
3231
3582
  },
3232
3583
  "maxItems": 100
3233
3584
  },
@@ -3330,7 +3681,8 @@
3330
3681
  "type": "array",
3331
3682
  "items": {
3332
3683
  "type": "string",
3333
- "maxLength": 255
3684
+ "maxLength": 48,
3685
+ "minLength": 1
3334
3686
  },
3335
3687
  "maxItems": 100
3336
3688
  },
@@ -3421,7 +3773,131 @@
3421
3773
  "name": {
3422
3774
  "type": "string",
3423
3775
  "enum": [
3424
- "opcua"
3776
+ "opcua"
3777
+ ]
3778
+ },
3779
+ "label": {
3780
+ "type": "string",
3781
+ "minLength": 1,
3782
+ "maxLength": 255
3783
+ },
3784
+ "x": {
3785
+ "type": "number"
3786
+ },
3787
+ "y": {
3788
+ "type": "number"
3789
+ },
3790
+ "uiId": {
3791
+ "type": "string",
3792
+ "maxLength": 48
3793
+ },
3794
+ "description": {
3795
+ "type": "string",
3796
+ "maxLength": 32767
3797
+ },
3798
+ "icon": {
3799
+ "type": "string",
3800
+ "maxLength": 1024
3801
+ },
3802
+ "color": {
3803
+ "type": "string",
3804
+ "maxLength": 1024
3805
+ },
3806
+ "inputCount": {
3807
+ "type": "number"
3808
+ },
3809
+ "outputCount": {
3810
+ "type": "number"
3811
+ },
3812
+ "id": {
3813
+ "type": "string",
3814
+ "maxLength": 48
3815
+ }
3816
+ },
3817
+ "additionalProperties": false
3818
+ },
3819
+ "outputIds": {
3820
+ "type": "array",
3821
+ "items": {
3822
+ "type": "array",
3823
+ "items": {
3824
+ "type": "string",
3825
+ "maxLength": 48,
3826
+ "minLength": 1
3827
+ },
3828
+ "maxItems": 100
3829
+ },
3830
+ "maxItems": 100
3831
+ }
3832
+ },
3833
+ "required": [
3834
+ "type"
3835
+ ],
3836
+ "additionalProperties": false
3837
+ },
3838
+ {
3839
+ "type": "object",
3840
+ "properties": {
3841
+ "key": {
3842
+ "type": "string",
3843
+ "maxLength": 1024
3844
+ },
3845
+ "type": {
3846
+ "type": "string",
3847
+ "enum": [
3848
+ "redis"
3849
+ ]
3850
+ },
3851
+ "config": {
3852
+ "type": "object",
3853
+ "properties": {
3854
+ "host": {
3855
+ "type": "string",
3856
+ "maxLength": 1024
3857
+ },
3858
+ "port": {
3859
+ "type": "string",
3860
+ "maxLength": 16
3861
+ },
3862
+ "password": {
3863
+ "type": "string",
3864
+ "maxLength": 1024
3865
+ },
3866
+ "topic": {
3867
+ "type": "string",
3868
+ "maxLength": 1024
3869
+ },
3870
+ "fileAdded": {
3871
+ "type": "boolean"
3872
+ },
3873
+ "fileChanged": {
3874
+ "type": "boolean"
3875
+ },
3876
+ "fileRemoved": {
3877
+ "type": "boolean"
3878
+ },
3879
+ "directoryAdded": {
3880
+ "type": "boolean"
3881
+ },
3882
+ "directoryRemoved": {
3883
+ "type": "boolean"
3884
+ }
3885
+ },
3886
+ "additionalProperties": false
3887
+ },
3888
+ "meta": {
3889
+ "type": "object",
3890
+ "properties": {
3891
+ "category": {
3892
+ "type": "string",
3893
+ "enum": [
3894
+ "trigger"
3895
+ ]
3896
+ },
3897
+ "name": {
3898
+ "type": "string",
3899
+ "enum": [
3900
+ "redisTrigger"
3425
3901
  ]
3426
3902
  },
3427
3903
  "label": {
@@ -3470,7 +3946,8 @@
3470
3946
  "type": "array",
3471
3947
  "items": {
3472
3948
  "type": "string",
3473
- "maxLength": 255
3949
+ "maxLength": 48,
3950
+ "minLength": 1
3474
3951
  },
3475
3952
  "maxItems": 100
3476
3953
  },
@@ -3492,42 +3969,27 @@
3492
3969
  "type": {
3493
3970
  "type": "string",
3494
3971
  "enum": [
3495
- "redis"
3972
+ "request"
3496
3973
  ]
3497
3974
  },
3498
3975
  "config": {
3499
3976
  "type": "object",
3500
3977
  "properties": {
3501
- "host": {
3502
- "type": "string",
3503
- "maxLength": 1024
3504
- },
3505
- "port": {
3978
+ "method": {
3506
3979
  "type": "string",
3507
- "maxLength": 16
3508
- },
3509
- "password": {
3510
- "type": "string",
3511
- "maxLength": 1024
3980
+ "enum": [
3981
+ "*",
3982
+ "delete",
3983
+ "get",
3984
+ "options",
3985
+ "patch",
3986
+ "post",
3987
+ "put"
3988
+ ]
3512
3989
  },
3513
- "topic": {
3990
+ "route": {
3514
3991
  "type": "string",
3515
3992
  "maxLength": 1024
3516
- },
3517
- "fileAdded": {
3518
- "type": "boolean"
3519
- },
3520
- "fileChanged": {
3521
- "type": "boolean"
3522
- },
3523
- "fileRemoved": {
3524
- "type": "boolean"
3525
- },
3526
- "directoryAdded": {
3527
- "type": "boolean"
3528
- },
3529
- "directoryRemoved": {
3530
- "type": "boolean"
3531
3993
  }
3532
3994
  },
3533
3995
  "additionalProperties": false
@@ -3544,7 +4006,7 @@
3544
4006
  "name": {
3545
4007
  "type": "string",
3546
4008
  "enum": [
3547
- "redisTrigger"
4009
+ "request"
3548
4010
  ]
3549
4011
  },
3550
4012
  "label": {
@@ -3580,6 +4042,10 @@
3580
4042
  "outputCount": {
3581
4043
  "type": "number"
3582
4044
  },
4045
+ "triggerId": {
4046
+ "type": "string",
4047
+ "maxLength": 48
4048
+ },
3583
4049
  "id": {
3584
4050
  "type": "string",
3585
4051
  "maxLength": 48
@@ -3593,7 +4059,8 @@
3593
4059
  "type": "array",
3594
4060
  "items": {
3595
4061
  "type": "string",
3596
- "maxLength": 255
4062
+ "maxLength": 48,
4063
+ "minLength": 1
3597
4064
  },
3598
4065
  "maxItems": 100
3599
4066
  },
@@ -3736,7 +4203,8 @@
3736
4203
  "type": "array",
3737
4204
  "items": {
3738
4205
  "type": "string",
3739
- "maxLength": 255
4206
+ "maxLength": 48,
4207
+ "minLength": 1
3740
4208
  },
3741
4209
  "maxItems": 100
3742
4210
  },
@@ -3862,7 +4330,8 @@
3862
4330
  "type": "array",
3863
4331
  "items": {
3864
4332
  "type": "string",
3865
- "maxLength": 255
4333
+ "maxLength": 48,
4334
+ "minLength": 1
3866
4335
  },
3867
4336
  "maxItems": 100
3868
4337
  },
@@ -3977,7 +4446,8 @@
3977
4446
  "type": "array",
3978
4447
  "items": {
3979
4448
  "type": "string",
3980
- "maxLength": 255
4449
+ "maxLength": 48,
4450
+ "minLength": 1
3981
4451
  },
3982
4452
  "maxItems": 100
3983
4453
  },
@@ -4018,7 +4488,8 @@
4018
4488
  "type": "array",
4019
4489
  "items": {
4020
4490
  "type": "string",
4021
- "maxLength": 255
4491
+ "maxLength": 48,
4492
+ "minLength": 1
4022
4493
  },
4023
4494
  "maxItems": 100
4024
4495
  },
@@ -4485,7 +4956,6 @@
4485
4956
  "onBoot",
4486
4957
  "onConnect",
4487
4958
  "onDisconnect",
4488
- "request",
4489
4959
  "udp",
4490
4960
  "webhook"
4491
4961
  ]
@@ -4510,6 +4980,7 @@
4510
4980
  "deviceCommand",
4511
4981
  "deviceIdsTagsConnect",
4512
4982
  "deviceIdsTagsDisconnect",
4983
+ "eeaInit",
4513
4984
  "flowError",
4514
4985
  "googlePubSub",
4515
4986
  "meridian",
@@ -4519,7 +4990,6 @@
4519
4990
  "onConnect",
4520
4991
  "onDisconnect",
4521
4992
  "particle",
4522
- "request",
4523
4993
  "udp",
4524
4994
  "webhook"
4525
4995
  ]
@@ -4574,7 +5044,8 @@
4574
5044
  "type": "array",
4575
5045
  "items": {
4576
5046
  "type": "string",
4577
- "maxLength": 255
5047
+ "maxLength": 48,
5048
+ "minLength": 1
4578
5049
  },
4579
5050
  "maxItems": 100
4580
5051
  },
@@ -4678,7 +5149,8 @@
4678
5149
  "type": "array",
4679
5150
  "items": {
4680
5151
  "type": "string",
4681
- "maxLength": 255
5152
+ "maxLength": 48,
5153
+ "minLength": 1
4682
5154
  },
4683
5155
  "maxItems": 100
4684
5156
  },
@@ -4725,6 +5197,21 @@
4725
5197
  },
4726
5198
  "maxAge": {
4727
5199
  "type": "number"
5200
+ },
5201
+ "triggerOn": {
5202
+ "type": "string",
5203
+ "enum": [
5204
+ "batch",
5205
+ "individual",
5206
+ "both"
5207
+ ]
5208
+ },
5209
+ "batchBehavior": {
5210
+ "type": "string",
5211
+ "enum": [
5212
+ "once",
5213
+ "each"
5214
+ ]
4728
5215
  }
4729
5216
  },
4730
5217
  "additionalProperties": false
@@ -4807,7 +5294,8 @@
4807
5294
  "type": "array",
4808
5295
  "items": {
4809
5296
  "type": "string",
4810
- "maxLength": 255
5297
+ "maxLength": 48,
5298
+ "minLength": 1
4811
5299
  },
4812
5300
  "maxItems": 100
4813
5301
  },
@@ -4903,8 +5391,101 @@
4903
5391
  "type": "array",
4904
5392
  "items": {
4905
5393
  "type": "string",
5394
+ "maxLength": 48,
5395
+ "minLength": 1
5396
+ },
5397
+ "maxItems": 100
5398
+ },
5399
+ "maxItems": 100
5400
+ }
5401
+ },
5402
+ "required": [
5403
+ "type"
5404
+ ],
5405
+ "additionalProperties": false
5406
+ },
5407
+ {
5408
+ "type": "object",
5409
+ "properties": {
5410
+ "key": {
5411
+ "type": "string",
5412
+ "maxLength": 1024
5413
+ },
5414
+ "type": {
5415
+ "type": "string",
5416
+ "enum": [
5417
+ "direct"
5418
+ ]
5419
+ },
5420
+ "config": {
5421
+ "type": "object",
5422
+ "properties": {},
5423
+ "additionalProperties": false
5424
+ },
5425
+ "meta": {
5426
+ "type": "object",
5427
+ "properties": {
5428
+ "category": {
5429
+ "type": "string",
5430
+ "enum": [
5431
+ "trigger"
5432
+ ]
5433
+ },
5434
+ "name": {
5435
+ "type": "string",
5436
+ "enum": [
5437
+ "direct"
5438
+ ]
5439
+ },
5440
+ "label": {
5441
+ "type": "string",
5442
+ "minLength": 1,
4906
5443
  "maxLength": 255
4907
5444
  },
5445
+ "x": {
5446
+ "type": "number"
5447
+ },
5448
+ "y": {
5449
+ "type": "number"
5450
+ },
5451
+ "uiId": {
5452
+ "type": "string",
5453
+ "maxLength": 48
5454
+ },
5455
+ "description": {
5456
+ "type": "string",
5457
+ "maxLength": 32767
5458
+ },
5459
+ "icon": {
5460
+ "type": "string",
5461
+ "maxLength": 1024
5462
+ },
5463
+ "color": {
5464
+ "type": "string",
5465
+ "maxLength": 1024
5466
+ },
5467
+ "inputCount": {
5468
+ "type": "number"
5469
+ },
5470
+ "outputCount": {
5471
+ "type": "number"
5472
+ },
5473
+ "id": {
5474
+ "type": "string",
5475
+ "maxLength": 48
5476
+ }
5477
+ },
5478
+ "additionalProperties": false
5479
+ },
5480
+ "outputIds": {
5481
+ "type": "array",
5482
+ "items": {
5483
+ "type": "array",
5484
+ "items": {
5485
+ "type": "string",
5486
+ "maxLength": 48,
5487
+ "minLength": 1
5488
+ },
4908
5489
  "maxItems": 100
4909
5490
  },
4910
5491
  "maxItems": 100
@@ -5000,7 +5581,8 @@
5000
5581
  "type": "array",
5001
5582
  "items": {
5002
5583
  "type": "string",
5003
- "maxLength": 255
5584
+ "maxLength": 48,
5585
+ "minLength": 1
5004
5586
  },
5005
5587
  "maxItems": 100
5006
5588
  },
@@ -5105,7 +5687,8 @@
5105
5687
  "type": "array",
5106
5688
  "items": {
5107
5689
  "type": "string",
5108
- "maxLength": 255
5690
+ "maxLength": 48,
5691
+ "minLength": 1
5109
5692
  },
5110
5693
  "maxItems": 100
5111
5694
  },
@@ -5213,7 +5796,8 @@
5213
5796
  "type": "array",
5214
5797
  "items": {
5215
5798
  "type": "string",
5216
- "maxLength": 255
5799
+ "maxLength": 48,
5800
+ "minLength": 1
5217
5801
  },
5218
5802
  "maxItems": 100
5219
5803
  },
@@ -5324,7 +5908,8 @@
5324
5908
  "type": "array",
5325
5909
  "items": {
5326
5910
  "type": "string",
5327
- "maxLength": 255
5911
+ "maxLength": 48,
5912
+ "minLength": 1
5328
5913
  },
5329
5914
  "maxItems": 100
5330
5915
  },
@@ -5425,7 +6010,8 @@
5425
6010
  "type": "array",
5426
6011
  "items": {
5427
6012
  "type": "string",
5428
- "maxLength": 255
6013
+ "maxLength": 48,
6014
+ "minLength": 1
5429
6015
  },
5430
6016
  "maxItems": 100
5431
6017
  },
@@ -5528,7 +6114,8 @@
5528
6114
  "type": "array",
5529
6115
  "items": {
5530
6116
  "type": "string",
5531
- "maxLength": 255
6117
+ "maxLength": 48,
6118
+ "minLength": 1
5532
6119
  },
5533
6120
  "maxItems": 100
5534
6121
  },
@@ -5668,7 +6255,8 @@
5668
6255
  "type": "array",
5669
6256
  "items": {
5670
6257
  "type": "string",
5671
- "maxLength": 255
6258
+ "maxLength": 48,
6259
+ "minLength": 1
5672
6260
  },
5673
6261
  "maxItems": 100
5674
6262
  },
@@ -5791,8 +6379,122 @@
5791
6379
  "type": "array",
5792
6380
  "items": {
5793
6381
  "type": "string",
6382
+ "maxLength": 48,
6383
+ "minLength": 1
6384
+ },
6385
+ "maxItems": 100
6386
+ },
6387
+ "maxItems": 100
6388
+ }
6389
+ },
6390
+ "required": [
6391
+ "type"
6392
+ ],
6393
+ "additionalProperties": false
6394
+ },
6395
+ {
6396
+ "type": "object",
6397
+ "properties": {
6398
+ "key": {
6399
+ "type": "string",
6400
+ "maxLength": 1024
6401
+ },
6402
+ "type": {
6403
+ "type": "string",
6404
+ "enum": [
6405
+ "request"
6406
+ ]
6407
+ },
6408
+ "config": {
6409
+ "type": "object",
6410
+ "properties": {
6411
+ "method": {
6412
+ "type": "string",
6413
+ "enum": [
6414
+ "*",
6415
+ "delete",
6416
+ "get",
6417
+ "options",
6418
+ "patch",
6419
+ "post",
6420
+ "put"
6421
+ ]
6422
+ },
6423
+ "route": {
6424
+ "type": "string",
6425
+ "maxLength": 1024
6426
+ }
6427
+ },
6428
+ "additionalProperties": false
6429
+ },
6430
+ "meta": {
6431
+ "type": "object",
6432
+ "properties": {
6433
+ "category": {
6434
+ "type": "string",
6435
+ "enum": [
6436
+ "trigger"
6437
+ ]
6438
+ },
6439
+ "name": {
6440
+ "type": "string",
6441
+ "enum": [
6442
+ "request"
6443
+ ]
6444
+ },
6445
+ "label": {
6446
+ "type": "string",
6447
+ "minLength": 1,
5794
6448
  "maxLength": 255
5795
6449
  },
6450
+ "x": {
6451
+ "type": "number"
6452
+ },
6453
+ "y": {
6454
+ "type": "number"
6455
+ },
6456
+ "uiId": {
6457
+ "type": "string",
6458
+ "maxLength": 48
6459
+ },
6460
+ "description": {
6461
+ "type": "string",
6462
+ "maxLength": 32767
6463
+ },
6464
+ "icon": {
6465
+ "type": "string",
6466
+ "maxLength": 1024
6467
+ },
6468
+ "color": {
6469
+ "type": "string",
6470
+ "maxLength": 1024
6471
+ },
6472
+ "inputCount": {
6473
+ "type": "number"
6474
+ },
6475
+ "outputCount": {
6476
+ "type": "number"
6477
+ },
6478
+ "triggerId": {
6479
+ "type": "string",
6480
+ "maxLength": 48
6481
+ },
6482
+ "id": {
6483
+ "type": "string",
6484
+ "maxLength": 48
6485
+ }
6486
+ },
6487
+ "additionalProperties": false
6488
+ },
6489
+ "outputIds": {
6490
+ "type": "array",
6491
+ "items": {
6492
+ "type": "array",
6493
+ "items": {
6494
+ "type": "string",
6495
+ "maxLength": 48,
6496
+ "minLength": 1
6497
+ },
5796
6498
  "maxItems": 100
5797
6499
  },
5798
6500
  "maxItems": 100
@@ -5934,7 +6636,8 @@
5934
6636
  "type": "array",
5935
6637
  "items": {
5936
6638
  "type": "string",
5937
- "maxLength": 255
6639
+ "maxLength": 48,
6640
+ "minLength": 1
5938
6641
  },
5939
6642
  "maxItems": 100
5940
6643
  },
@@ -6060,7 +6763,8 @@
6060
6763
  "type": "array",
6061
6764
  "items": {
6062
6765
  "type": "string",
6063
- "maxLength": 255
6766
+ "maxLength": 48,
6767
+ "minLength": 1
6064
6768
  },
6065
6769
  "maxItems": 100
6066
6770
  },
@@ -6175,7 +6879,8 @@
6175
6879
  "type": "array",
6176
6880
  "items": {
6177
6881
  "type": "string",
6178
- "maxLength": 255
6882
+ "maxLength": 48,
6883
+ "minLength": 1
6179
6884
  },
6180
6885
  "maxItems": 100
6181
6886
  },
@@ -6216,7 +6921,8 @@
6216
6921
  "type": "array",
6217
6922
  "items": {
6218
6923
  "type": "string",
6219
- "maxLength": 255
6924
+ "maxLength": 48,
6925
+ "minLength": 1
6220
6926
  },
6221
6927
  "maxItems": 100
6222
6928
  },