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
@@ -258,10 +258,9 @@
258
258
  "type": "string"
259
259
  },
260
260
  "statusCode": {
261
- "type": "number",
262
- "min": 100,
263
- "max": 599,
264
- "integer": true
261
+ "type": "integer",
262
+ "minimum": 100,
263
+ "maximum": 599
265
264
  },
266
265
  "type": {
267
266
  "type": "string",
@@ -291,10 +290,9 @@
291
290
  "type": "string"
292
291
  },
293
292
  "statusCode": {
294
- "type": "number",
295
- "min": 100,
296
- "max": 599,
297
- "integer": true
293
+ "type": "integer",
294
+ "minimum": 100,
295
+ "maximum": 599
298
296
  },
299
297
  "type": {
300
298
  "type": "string",
@@ -435,6 +433,7 @@
435
433
  "enum": [
436
434
  "cloud",
437
435
  "edge",
436
+ "embedded",
438
437
  "experience",
439
438
  "customNode"
440
439
  ]
@@ -464,7 +463,6 @@
464
463
  "onBoot",
465
464
  "onConnect",
466
465
  "onDisconnect",
467
- "request",
468
466
  "udp",
469
467
  "webhook"
470
468
  ]
@@ -489,6 +487,7 @@
489
487
  "deviceCommand",
490
488
  "deviceIdsTagsConnect",
491
489
  "deviceIdsTagsDisconnect",
490
+ "eeaInit",
492
491
  "flowError",
493
492
  "googlePubSub",
494
493
  "meridian",
@@ -498,7 +497,6 @@
498
497
  "onConnect",
499
498
  "onDisconnect",
500
499
  "particle",
501
- "request",
502
500
  "udp",
503
501
  "webhook"
504
502
  ]
@@ -553,7 +551,8 @@
553
551
  "type": "array",
554
552
  "items": {
555
553
  "type": "string",
556
- "maxLength": 255
554
+ "maxLength": 48,
555
+ "minLength": 1
557
556
  },
558
557
  "maxItems": 100
559
558
  },
@@ -657,7 +656,8 @@
657
656
  "type": "array",
658
657
  "items": {
659
658
  "type": "string",
660
- "maxLength": 255
659
+ "maxLength": 48,
660
+ "minLength": 1
661
661
  },
662
662
  "maxItems": 100
663
663
  },
@@ -704,6 +704,21 @@
704
704
  },
705
705
  "maxAge": {
706
706
  "type": "number"
707
+ },
708
+ "triggerOn": {
709
+ "type": "string",
710
+ "enum": [
711
+ "batch",
712
+ "individual",
713
+ "both"
714
+ ]
715
+ },
716
+ "batchBehavior": {
717
+ "type": "string",
718
+ "enum": [
719
+ "once",
720
+ "each"
721
+ ]
707
722
  }
708
723
  },
709
724
  "additionalProperties": false
@@ -786,7 +801,8 @@
786
801
  "type": "array",
787
802
  "items": {
788
803
  "type": "string",
789
- "maxLength": 255
804
+ "maxLength": 48,
805
+ "minLength": 1
790
806
  },
791
807
  "maxItems": 100
792
808
  },
@@ -882,8 +898,101 @@
882
898
  "type": "array",
883
899
  "items": {
884
900
  "type": "string",
901
+ "maxLength": 48,
902
+ "minLength": 1
903
+ },
904
+ "maxItems": 100
905
+ },
906
+ "maxItems": 100
907
+ }
908
+ },
909
+ "required": [
910
+ "type"
911
+ ],
912
+ "additionalProperties": false
913
+ },
914
+ {
915
+ "type": "object",
916
+ "properties": {
917
+ "key": {
918
+ "type": "string",
919
+ "maxLength": 1024
920
+ },
921
+ "type": {
922
+ "type": "string",
923
+ "enum": [
924
+ "direct"
925
+ ]
926
+ },
927
+ "config": {
928
+ "type": "object",
929
+ "properties": {},
930
+ "additionalProperties": false
931
+ },
932
+ "meta": {
933
+ "type": "object",
934
+ "properties": {
935
+ "category": {
936
+ "type": "string",
937
+ "enum": [
938
+ "trigger"
939
+ ]
940
+ },
941
+ "name": {
942
+ "type": "string",
943
+ "enum": [
944
+ "direct"
945
+ ]
946
+ },
947
+ "label": {
948
+ "type": "string",
949
+ "minLength": 1,
885
950
  "maxLength": 255
886
951
  },
952
+ "x": {
953
+ "type": "number"
954
+ },
955
+ "y": {
956
+ "type": "number"
957
+ },
958
+ "uiId": {
959
+ "type": "string",
960
+ "maxLength": 48
961
+ },
962
+ "description": {
963
+ "type": "string",
964
+ "maxLength": 32767
965
+ },
966
+ "icon": {
967
+ "type": "string",
968
+ "maxLength": 1024
969
+ },
970
+ "color": {
971
+ "type": "string",
972
+ "maxLength": 1024
973
+ },
974
+ "inputCount": {
975
+ "type": "number"
976
+ },
977
+ "outputCount": {
978
+ "type": "number"
979
+ },
980
+ "id": {
981
+ "type": "string",
982
+ "maxLength": 48
983
+ }
984
+ },
985
+ "additionalProperties": false
986
+ },
987
+ "outputIds": {
988
+ "type": "array",
989
+ "items": {
990
+ "type": "array",
991
+ "items": {
992
+ "type": "string",
993
+ "maxLength": 48,
994
+ "minLength": 1
995
+ },
887
996
  "maxItems": 100
888
997
  },
889
998
  "maxItems": 100
@@ -979,7 +1088,8 @@
979
1088
  "type": "array",
980
1089
  "items": {
981
1090
  "type": "string",
982
- "maxLength": 255
1091
+ "maxLength": 48,
1092
+ "minLength": 1
983
1093
  },
984
1094
  "maxItems": 100
985
1095
  },
@@ -1084,7 +1194,8 @@
1084
1194
  "type": "array",
1085
1195
  "items": {
1086
1196
  "type": "string",
1087
- "maxLength": 255
1197
+ "maxLength": 48,
1198
+ "minLength": 1
1088
1199
  },
1089
1200
  "maxItems": 100
1090
1201
  },
@@ -1192,7 +1303,8 @@
1192
1303
  "type": "array",
1193
1304
  "items": {
1194
1305
  "type": "string",
1195
- "maxLength": 255
1306
+ "maxLength": 48,
1307
+ "minLength": 1
1196
1308
  },
1197
1309
  "maxItems": 100
1198
1310
  },
@@ -1303,7 +1415,8 @@
1303
1415
  "type": "array",
1304
1416
  "items": {
1305
1417
  "type": "string",
1306
- "maxLength": 255
1418
+ "maxLength": 48,
1419
+ "minLength": 1
1307
1420
  },
1308
1421
  "maxItems": 100
1309
1422
  },
@@ -1404,7 +1517,8 @@
1404
1517
  "type": "array",
1405
1518
  "items": {
1406
1519
  "type": "string",
1407
- "maxLength": 255
1520
+ "maxLength": 48,
1521
+ "minLength": 1
1408
1522
  },
1409
1523
  "maxItems": 100
1410
1524
  },
@@ -1507,7 +1621,8 @@
1507
1621
  "type": "array",
1508
1622
  "items": {
1509
1623
  "type": "string",
1510
- "maxLength": 255
1624
+ "maxLength": 48,
1625
+ "minLength": 1
1511
1626
  },
1512
1627
  "maxItems": 100
1513
1628
  },
@@ -1647,7 +1762,8 @@
1647
1762
  "type": "array",
1648
1763
  "items": {
1649
1764
  "type": "string",
1650
- "maxLength": 255
1765
+ "maxLength": 48,
1766
+ "minLength": 1
1651
1767
  },
1652
1768
  "maxItems": 100
1653
1769
  },
@@ -1770,8 +1886,122 @@
1770
1886
  "type": "array",
1771
1887
  "items": {
1772
1888
  "type": "string",
1889
+ "maxLength": 48,
1890
+ "minLength": 1
1891
+ },
1892
+ "maxItems": 100
1893
+ },
1894
+ "maxItems": 100
1895
+ }
1896
+ },
1897
+ "required": [
1898
+ "type"
1899
+ ],
1900
+ "additionalProperties": false
1901
+ },
1902
+ {
1903
+ "type": "object",
1904
+ "properties": {
1905
+ "key": {
1906
+ "type": "string",
1907
+ "maxLength": 1024
1908
+ },
1909
+ "type": {
1910
+ "type": "string",
1911
+ "enum": [
1912
+ "request"
1913
+ ]
1914
+ },
1915
+ "config": {
1916
+ "type": "object",
1917
+ "properties": {
1918
+ "method": {
1919
+ "type": "string",
1920
+ "enum": [
1921
+ "*",
1922
+ "delete",
1923
+ "get",
1924
+ "options",
1925
+ "patch",
1926
+ "post",
1927
+ "put"
1928
+ ]
1929
+ },
1930
+ "route": {
1931
+ "type": "string",
1932
+ "maxLength": 1024
1933
+ }
1934
+ },
1935
+ "additionalProperties": false
1936
+ },
1937
+ "meta": {
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "category": {
1941
+ "type": "string",
1942
+ "enum": [
1943
+ "trigger"
1944
+ ]
1945
+ },
1946
+ "name": {
1947
+ "type": "string",
1948
+ "enum": [
1949
+ "request"
1950
+ ]
1951
+ },
1952
+ "label": {
1953
+ "type": "string",
1954
+ "minLength": 1,
1773
1955
  "maxLength": 255
1774
1956
  },
1957
+ "x": {
1958
+ "type": "number"
1959
+ },
1960
+ "y": {
1961
+ "type": "number"
1962
+ },
1963
+ "uiId": {
1964
+ "type": "string",
1965
+ "maxLength": 48
1966
+ },
1967
+ "description": {
1968
+ "type": "string",
1969
+ "maxLength": 32767
1970
+ },
1971
+ "icon": {
1972
+ "type": "string",
1973
+ "maxLength": 1024
1974
+ },
1975
+ "color": {
1976
+ "type": "string",
1977
+ "maxLength": 1024
1978
+ },
1979
+ "inputCount": {
1980
+ "type": "number"
1981
+ },
1982
+ "outputCount": {
1983
+ "type": "number"
1984
+ },
1985
+ "triggerId": {
1986
+ "type": "string",
1987
+ "maxLength": 48
1988
+ },
1989
+ "id": {
1990
+ "type": "string",
1991
+ "maxLength": 48
1992
+ }
1993
+ },
1994
+ "additionalProperties": false
1995
+ },
1996
+ "outputIds": {
1997
+ "type": "array",
1998
+ "items": {
1999
+ "type": "array",
2000
+ "items": {
2001
+ "type": "string",
2002
+ "maxLength": 48,
2003
+ "minLength": 1
2004
+ },
1775
2005
  "maxItems": 100
1776
2006
  },
1777
2007
  "maxItems": 100
@@ -1913,7 +2143,8 @@
1913
2143
  "type": "array",
1914
2144
  "items": {
1915
2145
  "type": "string",
1916
- "maxLength": 255
2146
+ "maxLength": 48,
2147
+ "minLength": 1
1917
2148
  },
1918
2149
  "maxItems": 100
1919
2150
  },
@@ -2039,7 +2270,8 @@
2039
2270
  "type": "array",
2040
2271
  "items": {
2041
2272
  "type": "string",
2042
- "maxLength": 255
2273
+ "maxLength": 48,
2274
+ "minLength": 1
2043
2275
  },
2044
2276
  "maxItems": 100
2045
2277
  },
@@ -2154,7 +2386,8 @@
2154
2386
  "type": "array",
2155
2387
  "items": {
2156
2388
  "type": "string",
2157
- "maxLength": 255
2389
+ "maxLength": 48,
2390
+ "minLength": 1
2158
2391
  },
2159
2392
  "maxItems": 100
2160
2393
  },
@@ -2195,7 +2428,8 @@
2195
2428
  "type": "array",
2196
2429
  "items": {
2197
2430
  "type": "string",
2198
- "maxLength": 255
2431
+ "maxLength": 48,
2432
+ "minLength": 1
2199
2433
  },
2200
2434
  "maxItems": 100
2201
2435
  },
@@ -2630,6 +2864,7 @@
2630
2864
  "enum": [
2631
2865
  "cloud",
2632
2866
  "edge",
2867
+ "embedded",
2633
2868
  "experience",
2634
2869
  "customNode"
2635
2870
  ]
@@ -2648,7 +2883,7 @@
2648
2883
  "description": "Schema for a single Workflow Version",
2649
2884
  "oneOf": [
2650
2885
  {
2651
- "description": "Schema for a single Cloud/Edge/Custom Node Workflow Version",
2886
+ "description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
2652
2887
  "type": "object",
2653
2888
  "properties": {
2654
2889
  "id": {
@@ -2712,7 +2947,6 @@
2712
2947
  "onBoot",
2713
2948
  "onConnect",
2714
2949
  "onDisconnect",
2715
- "request",
2716
2950
  "udp",
2717
2951
  "webhook"
2718
2952
  ]
@@ -2737,6 +2971,7 @@
2737
2971
  "deviceCommand",
2738
2972
  "deviceIdsTagsConnect",
2739
2973
  "deviceIdsTagsDisconnect",
2974
+ "eeaInit",
2740
2975
  "flowError",
2741
2976
  "googlePubSub",
2742
2977
  "meridian",
@@ -2746,7 +2981,6 @@
2746
2981
  "onConnect",
2747
2982
  "onDisconnect",
2748
2983
  "particle",
2749
- "request",
2750
2984
  "udp",
2751
2985
  "webhook"
2752
2986
  ]
@@ -2801,7 +3035,8 @@
2801
3035
  "type": "array",
2802
3036
  "items": {
2803
3037
  "type": "string",
2804
- "maxLength": 255
3038
+ "maxLength": 48,
3039
+ "minLength": 1
2805
3040
  },
2806
3041
  "maxItems": 100
2807
3042
  },
@@ -2905,7 +3140,8 @@
2905
3140
  "type": "array",
2906
3141
  "items": {
2907
3142
  "type": "string",
2908
- "maxLength": 255
3143
+ "maxLength": 48,
3144
+ "minLength": 1
2909
3145
  },
2910
3146
  "maxItems": 100
2911
3147
  },
@@ -2952,6 +3188,21 @@
2952
3188
  },
2953
3189
  "maxAge": {
2954
3190
  "type": "number"
3191
+ },
3192
+ "triggerOn": {
3193
+ "type": "string",
3194
+ "enum": [
3195
+ "batch",
3196
+ "individual",
3197
+ "both"
3198
+ ]
3199
+ },
3200
+ "batchBehavior": {
3201
+ "type": "string",
3202
+ "enum": [
3203
+ "once",
3204
+ "each"
3205
+ ]
2955
3206
  }
2956
3207
  },
2957
3208
  "additionalProperties": false
@@ -3034,7 +3285,8 @@
3034
3285
  "type": "array",
3035
3286
  "items": {
3036
3287
  "type": "string",
3037
- "maxLength": 255
3288
+ "maxLength": 48,
3289
+ "minLength": 1
3038
3290
  },
3039
3291
  "maxItems": 100
3040
3292
  },
@@ -3130,7 +3382,8 @@
3130
3382
  "type": "array",
3131
3383
  "items": {
3132
3384
  "type": "string",
3133
- "maxLength": 255
3385
+ "maxLength": 48,
3386
+ "minLength": 1
3134
3387
  },
3135
3388
  "maxItems": 100
3136
3389
  },
@@ -3152,18 +3405,12 @@
3152
3405
  "type": {
3153
3406
  "type": "string",
3154
3407
  "enum": [
3155
- "endpoint"
3408
+ "direct"
3156
3409
  ]
3157
3410
  },
3158
3411
  "config": {
3159
3412
  "type": "object",
3160
- "properties": {
3161
- "experienceVersion": {
3162
- "type": "string",
3163
- "minLength": 1,
3164
- "maxLength": 255
3165
- }
3166
- },
3413
+ "properties": {},
3167
3414
  "additionalProperties": false
3168
3415
  },
3169
3416
  "meta": {
@@ -3178,7 +3425,7 @@
3178
3425
  "name": {
3179
3426
  "type": "string",
3180
3427
  "enum": [
3181
- "endpoint"
3428
+ "direct"
3182
3429
  ]
3183
3430
  },
3184
3431
  "label": {
@@ -3227,7 +3474,8 @@
3227
3474
  "type": "array",
3228
3475
  "items": {
3229
3476
  "type": "string",
3230
- "maxLength": 255
3477
+ "maxLength": 48,
3478
+ "minLength": 1
3231
3479
  },
3232
3480
  "maxItems": 100
3233
3481
  },
@@ -3249,24 +3497,16 @@
3249
3497
  "type": {
3250
3498
  "type": "string",
3251
3499
  "enum": [
3252
- "event"
3500
+ "endpoint"
3253
3501
  ]
3254
3502
  },
3255
3503
  "config": {
3256
3504
  "type": "object",
3257
3505
  "properties": {
3258
- "subject": {
3506
+ "experienceVersion": {
3259
3507
  "type": "string",
3508
+ "minLength": 1,
3260
3509
  "maxLength": 255
3261
- },
3262
- "new": {
3263
- "type": "boolean"
3264
- },
3265
- "acknowledged": {
3266
- "type": "boolean"
3267
- },
3268
- "resolved": {
3269
- "type": "boolean"
3270
3510
  }
3271
3511
  },
3272
3512
  "additionalProperties": false
@@ -3283,7 +3523,7 @@
3283
3523
  "name": {
3284
3524
  "type": "string",
3285
3525
  "enum": [
3286
- "event"
3526
+ "endpoint"
3287
3527
  ]
3288
3528
  },
3289
3529
  "label": {
@@ -3332,7 +3572,8 @@
3332
3572
  "type": "array",
3333
3573
  "items": {
3334
3574
  "type": "string",
3335
- "maxLength": 255
3575
+ "maxLength": 48,
3576
+ "minLength": 1
3336
3577
  },
3337
3578
  "maxItems": 100
3338
3579
  },
@@ -3354,19 +3595,125 @@
3354
3595
  "type": {
3355
3596
  "type": "string",
3356
3597
  "enum": [
3357
- "fileTail"
3598
+ "event"
3358
3599
  ]
3359
3600
  },
3360
3601
  "config": {
3361
3602
  "type": "object",
3362
3603
  "properties": {
3363
- "path": {
3604
+ "subject": {
3364
3605
  "type": "string",
3365
- "maxLength": 1024
3606
+ "maxLength": 255
3366
3607
  },
3367
- "encoding": {
3368
- "type": "string",
3369
- "maxLength": 48
3608
+ "new": {
3609
+ "type": "boolean"
3610
+ },
3611
+ "acknowledged": {
3612
+ "type": "boolean"
3613
+ },
3614
+ "resolved": {
3615
+ "type": "boolean"
3616
+ }
3617
+ },
3618
+ "additionalProperties": false
3619
+ },
3620
+ "meta": {
3621
+ "type": "object",
3622
+ "properties": {
3623
+ "category": {
3624
+ "type": "string",
3625
+ "enum": [
3626
+ "trigger"
3627
+ ]
3628
+ },
3629
+ "name": {
3630
+ "type": "string",
3631
+ "enum": [
3632
+ "event"
3633
+ ]
3634
+ },
3635
+ "label": {
3636
+ "type": "string",
3637
+ "minLength": 1,
3638
+ "maxLength": 255
3639
+ },
3640
+ "x": {
3641
+ "type": "number"
3642
+ },
3643
+ "y": {
3644
+ "type": "number"
3645
+ },
3646
+ "uiId": {
3647
+ "type": "string",
3648
+ "maxLength": 48
3649
+ },
3650
+ "description": {
3651
+ "type": "string",
3652
+ "maxLength": 32767
3653
+ },
3654
+ "icon": {
3655
+ "type": "string",
3656
+ "maxLength": 1024
3657
+ },
3658
+ "color": {
3659
+ "type": "string",
3660
+ "maxLength": 1024
3661
+ },
3662
+ "inputCount": {
3663
+ "type": "number"
3664
+ },
3665
+ "outputCount": {
3666
+ "type": "number"
3667
+ },
3668
+ "id": {
3669
+ "type": "string",
3670
+ "maxLength": 48
3671
+ }
3672
+ },
3673
+ "additionalProperties": false
3674
+ },
3675
+ "outputIds": {
3676
+ "type": "array",
3677
+ "items": {
3678
+ "type": "array",
3679
+ "items": {
3680
+ "type": "string",
3681
+ "maxLength": 48,
3682
+ "minLength": 1
3683
+ },
3684
+ "maxItems": 100
3685
+ },
3686
+ "maxItems": 100
3687
+ }
3688
+ },
3689
+ "required": [
3690
+ "type"
3691
+ ],
3692
+ "additionalProperties": false
3693
+ },
3694
+ {
3695
+ "type": "object",
3696
+ "properties": {
3697
+ "key": {
3698
+ "type": "string",
3699
+ "maxLength": 1024
3700
+ },
3701
+ "type": {
3702
+ "type": "string",
3703
+ "enum": [
3704
+ "fileTail"
3705
+ ]
3706
+ },
3707
+ "config": {
3708
+ "type": "object",
3709
+ "properties": {
3710
+ "path": {
3711
+ "type": "string",
3712
+ "maxLength": 1024
3713
+ },
3714
+ "encoding": {
3715
+ "type": "string",
3716
+ "maxLength": 48
3370
3717
  },
3371
3718
  "byteLength": {
3372
3719
  "type": "string",
@@ -3440,7 +3787,8 @@
3440
3787
  "type": "array",
3441
3788
  "items": {
3442
3789
  "type": "string",
3443
- "maxLength": 255
3790
+ "maxLength": 48,
3791
+ "minLength": 1
3444
3792
  },
3445
3793
  "maxItems": 100
3446
3794
  },
@@ -3551,7 +3899,8 @@
3551
3899
  "type": "array",
3552
3900
  "items": {
3553
3901
  "type": "string",
3554
- "maxLength": 255
3902
+ "maxLength": 48,
3903
+ "minLength": 1
3555
3904
  },
3556
3905
  "maxItems": 100
3557
3906
  },
@@ -3652,7 +4001,8 @@
3652
4001
  "type": "array",
3653
4002
  "items": {
3654
4003
  "type": "string",
3655
- "maxLength": 255
4004
+ "maxLength": 48,
4005
+ "minLength": 1
3656
4006
  },
3657
4007
  "maxItems": 100
3658
4008
  },
@@ -3755,7 +4105,8 @@
3755
4105
  "type": "array",
3756
4106
  "items": {
3757
4107
  "type": "string",
3758
- "maxLength": 255
4108
+ "maxLength": 48,
4109
+ "minLength": 1
3759
4110
  },
3760
4111
  "maxItems": 100
3761
4112
  },
@@ -3895,7 +4246,8 @@
3895
4246
  "type": "array",
3896
4247
  "items": {
3897
4248
  "type": "string",
3898
- "maxLength": 255
4249
+ "maxLength": 48,
4250
+ "minLength": 1
3899
4251
  },
3900
4252
  "maxItems": 100
3901
4253
  },
@@ -4018,8 +4370,122 @@
4018
4370
  "type": "array",
4019
4371
  "items": {
4020
4372
  "type": "string",
4373
+ "maxLength": 48,
4374
+ "minLength": 1
4375
+ },
4376
+ "maxItems": 100
4377
+ },
4378
+ "maxItems": 100
4379
+ }
4380
+ },
4381
+ "required": [
4382
+ "type"
4383
+ ],
4384
+ "additionalProperties": false
4385
+ },
4386
+ {
4387
+ "type": "object",
4388
+ "properties": {
4389
+ "key": {
4390
+ "type": "string",
4391
+ "maxLength": 1024
4392
+ },
4393
+ "type": {
4394
+ "type": "string",
4395
+ "enum": [
4396
+ "request"
4397
+ ]
4398
+ },
4399
+ "config": {
4400
+ "type": "object",
4401
+ "properties": {
4402
+ "method": {
4403
+ "type": "string",
4404
+ "enum": [
4405
+ "*",
4406
+ "delete",
4407
+ "get",
4408
+ "options",
4409
+ "patch",
4410
+ "post",
4411
+ "put"
4412
+ ]
4413
+ },
4414
+ "route": {
4415
+ "type": "string",
4416
+ "maxLength": 1024
4417
+ }
4418
+ },
4419
+ "additionalProperties": false
4420
+ },
4421
+ "meta": {
4422
+ "type": "object",
4423
+ "properties": {
4424
+ "category": {
4425
+ "type": "string",
4426
+ "enum": [
4427
+ "trigger"
4428
+ ]
4429
+ },
4430
+ "name": {
4431
+ "type": "string",
4432
+ "enum": [
4433
+ "request"
4434
+ ]
4435
+ },
4436
+ "label": {
4437
+ "type": "string",
4438
+ "minLength": 1,
4021
4439
  "maxLength": 255
4022
4440
  },
4441
+ "x": {
4442
+ "type": "number"
4443
+ },
4444
+ "y": {
4445
+ "type": "number"
4446
+ },
4447
+ "uiId": {
4448
+ "type": "string",
4449
+ "maxLength": 48
4450
+ },
4451
+ "description": {
4452
+ "type": "string",
4453
+ "maxLength": 32767
4454
+ },
4455
+ "icon": {
4456
+ "type": "string",
4457
+ "maxLength": 1024
4458
+ },
4459
+ "color": {
4460
+ "type": "string",
4461
+ "maxLength": 1024
4462
+ },
4463
+ "inputCount": {
4464
+ "type": "number"
4465
+ },
4466
+ "outputCount": {
4467
+ "type": "number"
4468
+ },
4469
+ "triggerId": {
4470
+ "type": "string",
4471
+ "maxLength": 48
4472
+ },
4473
+ "id": {
4474
+ "type": "string",
4475
+ "maxLength": 48
4476
+ }
4477
+ },
4478
+ "additionalProperties": false
4479
+ },
4480
+ "outputIds": {
4481
+ "type": "array",
4482
+ "items": {
4483
+ "type": "array",
4484
+ "items": {
4485
+ "type": "string",
4486
+ "maxLength": 48,
4487
+ "minLength": 1
4488
+ },
4023
4489
  "maxItems": 100
4024
4490
  },
4025
4491
  "maxItems": 100
@@ -4161,7 +4627,8 @@
4161
4627
  "type": "array",
4162
4628
  "items": {
4163
4629
  "type": "string",
4164
- "maxLength": 255
4630
+ "maxLength": 48,
4631
+ "minLength": 1
4165
4632
  },
4166
4633
  "maxItems": 100
4167
4634
  },
@@ -4287,7 +4754,8 @@
4287
4754
  "type": "array",
4288
4755
  "items": {
4289
4756
  "type": "string",
4290
- "maxLength": 255
4757
+ "maxLength": 48,
4758
+ "minLength": 1
4291
4759
  },
4292
4760
  "maxItems": 100
4293
4761
  },
@@ -4402,7 +4870,8 @@
4402
4870
  "type": "array",
4403
4871
  "items": {
4404
4872
  "type": "string",
4405
- "maxLength": 255
4873
+ "maxLength": 48,
4874
+ "minLength": 1
4406
4875
  },
4407
4876
  "maxItems": 100
4408
4877
  },
@@ -4443,7 +4912,8 @@
4443
4912
  "type": "array",
4444
4913
  "items": {
4445
4914
  "type": "string",
4446
- "maxLength": 255
4915
+ "maxLength": 48,
4916
+ "minLength": 1
4447
4917
  },
4448
4918
  "maxItems": 100
4449
4919
  },
@@ -4910,7 +5380,6 @@
4910
5380
  "onBoot",
4911
5381
  "onConnect",
4912
5382
  "onDisconnect",
4913
- "request",
4914
5383
  "udp",
4915
5384
  "webhook"
4916
5385
  ]
@@ -4935,6 +5404,7 @@
4935
5404
  "deviceCommand",
4936
5405
  "deviceIdsTagsConnect",
4937
5406
  "deviceIdsTagsDisconnect",
5407
+ "eeaInit",
4938
5408
  "flowError",
4939
5409
  "googlePubSub",
4940
5410
  "meridian",
@@ -4944,7 +5414,6 @@
4944
5414
  "onConnect",
4945
5415
  "onDisconnect",
4946
5416
  "particle",
4947
- "request",
4948
5417
  "udp",
4949
5418
  "webhook"
4950
5419
  ]
@@ -4999,7 +5468,8 @@
4999
5468
  "type": "array",
5000
5469
  "items": {
5001
5470
  "type": "string",
5002
- "maxLength": 255
5471
+ "maxLength": 48,
5472
+ "minLength": 1
5003
5473
  },
5004
5474
  "maxItems": 100
5005
5475
  },
@@ -5103,7 +5573,8 @@
5103
5573
  "type": "array",
5104
5574
  "items": {
5105
5575
  "type": "string",
5106
- "maxLength": 255
5576
+ "maxLength": 48,
5577
+ "minLength": 1
5107
5578
  },
5108
5579
  "maxItems": 100
5109
5580
  },
@@ -5150,6 +5621,21 @@
5150
5621
  },
5151
5622
  "maxAge": {
5152
5623
  "type": "number"
5624
+ },
5625
+ "triggerOn": {
5626
+ "type": "string",
5627
+ "enum": [
5628
+ "batch",
5629
+ "individual",
5630
+ "both"
5631
+ ]
5632
+ },
5633
+ "batchBehavior": {
5634
+ "type": "string",
5635
+ "enum": [
5636
+ "once",
5637
+ "each"
5638
+ ]
5153
5639
  }
5154
5640
  },
5155
5641
  "additionalProperties": false
@@ -5232,7 +5718,8 @@
5232
5718
  "type": "array",
5233
5719
  "items": {
5234
5720
  "type": "string",
5235
- "maxLength": 255
5721
+ "maxLength": 48,
5722
+ "minLength": 1
5236
5723
  },
5237
5724
  "maxItems": 100
5238
5725
  },
@@ -5328,8 +5815,101 @@
5328
5815
  "type": "array",
5329
5816
  "items": {
5330
5817
  "type": "string",
5818
+ "maxLength": 48,
5819
+ "minLength": 1
5820
+ },
5821
+ "maxItems": 100
5822
+ },
5823
+ "maxItems": 100
5824
+ }
5825
+ },
5826
+ "required": [
5827
+ "type"
5828
+ ],
5829
+ "additionalProperties": false
5830
+ },
5831
+ {
5832
+ "type": "object",
5833
+ "properties": {
5834
+ "key": {
5835
+ "type": "string",
5836
+ "maxLength": 1024
5837
+ },
5838
+ "type": {
5839
+ "type": "string",
5840
+ "enum": [
5841
+ "direct"
5842
+ ]
5843
+ },
5844
+ "config": {
5845
+ "type": "object",
5846
+ "properties": {},
5847
+ "additionalProperties": false
5848
+ },
5849
+ "meta": {
5850
+ "type": "object",
5851
+ "properties": {
5852
+ "category": {
5853
+ "type": "string",
5854
+ "enum": [
5855
+ "trigger"
5856
+ ]
5857
+ },
5858
+ "name": {
5859
+ "type": "string",
5860
+ "enum": [
5861
+ "direct"
5862
+ ]
5863
+ },
5864
+ "label": {
5865
+ "type": "string",
5866
+ "minLength": 1,
5331
5867
  "maxLength": 255
5332
5868
  },
5869
+ "x": {
5870
+ "type": "number"
5871
+ },
5872
+ "y": {
5873
+ "type": "number"
5874
+ },
5875
+ "uiId": {
5876
+ "type": "string",
5877
+ "maxLength": 48
5878
+ },
5879
+ "description": {
5880
+ "type": "string",
5881
+ "maxLength": 32767
5882
+ },
5883
+ "icon": {
5884
+ "type": "string",
5885
+ "maxLength": 1024
5886
+ },
5887
+ "color": {
5888
+ "type": "string",
5889
+ "maxLength": 1024
5890
+ },
5891
+ "inputCount": {
5892
+ "type": "number"
5893
+ },
5894
+ "outputCount": {
5895
+ "type": "number"
5896
+ },
5897
+ "id": {
5898
+ "type": "string",
5899
+ "maxLength": 48
5900
+ }
5901
+ },
5902
+ "additionalProperties": false
5903
+ },
5904
+ "outputIds": {
5905
+ "type": "array",
5906
+ "items": {
5907
+ "type": "array",
5908
+ "items": {
5909
+ "type": "string",
5910
+ "maxLength": 48,
5911
+ "minLength": 1
5912
+ },
5333
5913
  "maxItems": 100
5334
5914
  },
5335
5915
  "maxItems": 100
@@ -5425,7 +6005,8 @@
5425
6005
  "type": "array",
5426
6006
  "items": {
5427
6007
  "type": "string",
5428
- "maxLength": 255
6008
+ "maxLength": 48,
6009
+ "minLength": 1
5429
6010
  },
5430
6011
  "maxItems": 100
5431
6012
  },
@@ -5530,7 +6111,8 @@
5530
6111
  "type": "array",
5531
6112
  "items": {
5532
6113
  "type": "string",
5533
- "maxLength": 255
6114
+ "maxLength": 48,
6115
+ "minLength": 1
5534
6116
  },
5535
6117
  "maxItems": 100
5536
6118
  },
@@ -5638,7 +6220,8 @@
5638
6220
  "type": "array",
5639
6221
  "items": {
5640
6222
  "type": "string",
5641
- "maxLength": 255
6223
+ "maxLength": 48,
6224
+ "minLength": 1
5642
6225
  },
5643
6226
  "maxItems": 100
5644
6227
  },
@@ -5749,7 +6332,8 @@
5749
6332
  "type": "array",
5750
6333
  "items": {
5751
6334
  "type": "string",
5752
- "maxLength": 255
6335
+ "maxLength": 48,
6336
+ "minLength": 1
5753
6337
  },
5754
6338
  "maxItems": 100
5755
6339
  },
@@ -5850,7 +6434,8 @@
5850
6434
  "type": "array",
5851
6435
  "items": {
5852
6436
  "type": "string",
5853
- "maxLength": 255
6437
+ "maxLength": 48,
6438
+ "minLength": 1
5854
6439
  },
5855
6440
  "maxItems": 100
5856
6441
  },
@@ -5953,7 +6538,8 @@
5953
6538
  "type": "array",
5954
6539
  "items": {
5955
6540
  "type": "string",
5956
- "maxLength": 255
6541
+ "maxLength": 48,
6542
+ "minLength": 1
5957
6543
  },
5958
6544
  "maxItems": 100
5959
6545
  },
@@ -6093,7 +6679,8 @@
6093
6679
  "type": "array",
6094
6680
  "items": {
6095
6681
  "type": "string",
6096
- "maxLength": 255
6682
+ "maxLength": 48,
6683
+ "minLength": 1
6097
6684
  },
6098
6685
  "maxItems": 100
6099
6686
  },
@@ -6216,8 +6803,122 @@
6216
6803
  "type": "array",
6217
6804
  "items": {
6218
6805
  "type": "string",
6806
+ "maxLength": 48,
6807
+ "minLength": 1
6808
+ },
6809
+ "maxItems": 100
6810
+ },
6811
+ "maxItems": 100
6812
+ }
6813
+ },
6814
+ "required": [
6815
+ "type"
6816
+ ],
6817
+ "additionalProperties": false
6818
+ },
6819
+ {
6820
+ "type": "object",
6821
+ "properties": {
6822
+ "key": {
6823
+ "type": "string",
6824
+ "maxLength": 1024
6825
+ },
6826
+ "type": {
6827
+ "type": "string",
6828
+ "enum": [
6829
+ "request"
6830
+ ]
6831
+ },
6832
+ "config": {
6833
+ "type": "object",
6834
+ "properties": {
6835
+ "method": {
6836
+ "type": "string",
6837
+ "enum": [
6838
+ "*",
6839
+ "delete",
6840
+ "get",
6841
+ "options",
6842
+ "patch",
6843
+ "post",
6844
+ "put"
6845
+ ]
6846
+ },
6847
+ "route": {
6848
+ "type": "string",
6849
+ "maxLength": 1024
6850
+ }
6851
+ },
6852
+ "additionalProperties": false
6853
+ },
6854
+ "meta": {
6855
+ "type": "object",
6856
+ "properties": {
6857
+ "category": {
6858
+ "type": "string",
6859
+ "enum": [
6860
+ "trigger"
6861
+ ]
6862
+ },
6863
+ "name": {
6864
+ "type": "string",
6865
+ "enum": [
6866
+ "request"
6867
+ ]
6868
+ },
6869
+ "label": {
6870
+ "type": "string",
6871
+ "minLength": 1,
6219
6872
  "maxLength": 255
6220
6873
  },
6874
+ "x": {
6875
+ "type": "number"
6876
+ },
6877
+ "y": {
6878
+ "type": "number"
6879
+ },
6880
+ "uiId": {
6881
+ "type": "string",
6882
+ "maxLength": 48
6883
+ },
6884
+ "description": {
6885
+ "type": "string",
6886
+ "maxLength": 32767
6887
+ },
6888
+ "icon": {
6889
+ "type": "string",
6890
+ "maxLength": 1024
6891
+ },
6892
+ "color": {
6893
+ "type": "string",
6894
+ "maxLength": 1024
6895
+ },
6896
+ "inputCount": {
6897
+ "type": "number"
6898
+ },
6899
+ "outputCount": {
6900
+ "type": "number"
6901
+ },
6902
+ "triggerId": {
6903
+ "type": "string",
6904
+ "maxLength": 48
6905
+ },
6906
+ "id": {
6907
+ "type": "string",
6908
+ "maxLength": 48
6909
+ }
6910
+ },
6911
+ "additionalProperties": false
6912
+ },
6913
+ "outputIds": {
6914
+ "type": "array",
6915
+ "items": {
6916
+ "type": "array",
6917
+ "items": {
6918
+ "type": "string",
6919
+ "maxLength": 48,
6920
+ "minLength": 1
6921
+ },
6221
6922
  "maxItems": 100
6222
6923
  },
6223
6924
  "maxItems": 100
@@ -6359,7 +7060,8 @@
6359
7060
  "type": "array",
6360
7061
  "items": {
6361
7062
  "type": "string",
6362
- "maxLength": 255
7063
+ "maxLength": 48,
7064
+ "minLength": 1
6363
7065
  },
6364
7066
  "maxItems": 100
6365
7067
  },
@@ -6485,7 +7187,8 @@
6485
7187
  "type": "array",
6486
7188
  "items": {
6487
7189
  "type": "string",
6488
- "maxLength": 255
7190
+ "maxLength": 48,
7191
+ "minLength": 1
6489
7192
  },
6490
7193
  "maxItems": 100
6491
7194
  },
@@ -6600,7 +7303,8 @@
6600
7303
  "type": "array",
6601
7304
  "items": {
6602
7305
  "type": "string",
6603
- "maxLength": 255
7306
+ "maxLength": 48,
7307
+ "minLength": 1
6604
7308
  },
6605
7309
  "maxItems": 100
6606
7310
  },
@@ -6641,7 +7345,8 @@
6641
7345
  "type": "array",
6642
7346
  "items": {
6643
7347
  "type": "string",
6644
- "maxLength": 255
7348
+ "maxLength": 48,
7349
+ "minLength": 1
6645
7350
  },
6646
7351
  "maxItems": 100
6647
7352
  },