losant_rest 1.12.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +17509 -8097
  5. data/docs/application.md +6 -6
  6. data/docs/applicationApiTokens.md +1 -1
  7. data/docs/applications.md +1 -1
  8. data/docs/dataTable.md +1 -1
  9. data/docs/dataTableRows.md +1 -1
  10. data/docs/dataTables.md +1 -1
  11. data/docs/device.md +43 -0
  12. data/docs/devices.md +41 -2
  13. data/docs/edgeDeployment.md +49 -0
  14. data/docs/events.md +3 -3
  15. data/docs/experience.md +1 -1
  16. data/docs/experienceDomains.md +1 -1
  17. data/docs/experienceGroup.md +2 -0
  18. data/docs/experienceSlugs.md +1 -1
  19. data/docs/experienceVersion.md +3 -3
  20. data/docs/experienceVersions.md +2 -2
  21. data/docs/experienceView.md +4 -4
  22. data/docs/experienceViews.md +2 -2
  23. data/docs/file.md +5 -5
  24. data/docs/files.md +2 -2
  25. data/docs/flow.md +41 -0
  26. data/docs/flowVersions.md +44 -0
  27. data/docs/instance.md +168 -0
  28. data/docs/instanceApiToken.md +133 -0
  29. data/docs/instanceApiTokens.md +91 -0
  30. data/docs/instanceMember.md +133 -0
  31. data/docs/instanceMembers.md +91 -0
  32. data/docs/instanceOrg.md +135 -0
  33. data/docs/instanceOrgInvite.md +139 -0
  34. data/docs/instanceOrgInvites.md +96 -0
  35. data/docs/instanceOrgMember.md +139 -0
  36. data/docs/instanceOrgMembers.md +96 -0
  37. data/docs/instanceOrgs.md +91 -0
  38. data/docs/instances.md +50 -0
  39. data/docs/me.md +1 -1
  40. data/docs/org.md +1 -1
  41. data/docs/userApiToken.md +125 -0
  42. data/docs/userApiTokens.md +87 -0
  43. data/lib/losant_rest/application.rb +7 -7
  44. data/lib/losant_rest/application_api_token.rb +1 -1
  45. data/lib/losant_rest/application_api_tokens.rb +2 -2
  46. data/lib/losant_rest/application_certificate.rb +1 -1
  47. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  48. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  49. data/lib/losant_rest/application_certificates.rb +1 -1
  50. data/lib/losant_rest/application_dashboard.rb +1 -1
  51. data/lib/losant_rest/application_dashboards.rb +1 -1
  52. data/lib/losant_rest/application_key.rb +1 -1
  53. data/lib/losant_rest/application_keys.rb +1 -1
  54. data/lib/losant_rest/application_template.rb +1 -1
  55. data/lib/losant_rest/application_templates.rb +1 -1
  56. data/lib/losant_rest/applications.rb +2 -2
  57. data/lib/losant_rest/audit_log.rb +1 -1
  58. data/lib/losant_rest/audit_logs.rb +1 -1
  59. data/lib/losant_rest/auth.rb +1 -1
  60. data/lib/losant_rest/client.rb +63 -3
  61. data/lib/losant_rest/dashboard.rb +1 -1
  62. data/lib/losant_rest/dashboards.rb +1 -1
  63. data/lib/losant_rest/data.rb +1 -1
  64. data/lib/losant_rest/data_table.rb +2 -2
  65. data/lib/losant_rest/data_table_row.rb +1 -1
  66. data/lib/losant_rest/data_table_rows.rb +2 -2
  67. data/lib/losant_rest/data_tables.rb +2 -2
  68. data/lib/losant_rest/device.rb +51 -1
  69. data/lib/losant_rest/device_recipe.rb +1 -1
  70. data/lib/losant_rest/device_recipes.rb +1 -1
  71. data/lib/losant_rest/devices.rb +49 -3
  72. data/lib/losant_rest/edge_deployment.rb +81 -0
  73. data/lib/losant_rest/edge_deployments.rb +1 -1
  74. data/lib/losant_rest/error.rb +1 -1
  75. data/lib/losant_rest/event.rb +1 -1
  76. data/lib/losant_rest/events.rb +4 -4
  77. data/lib/losant_rest/experience.rb +2 -2
  78. data/lib/losant_rest/experience_domain.rb +1 -1
  79. data/lib/losant_rest/experience_domains.rb +2 -2
  80. data/lib/losant_rest/experience_endpoint.rb +1 -1
  81. data/lib/losant_rest/experience_endpoints.rb +1 -1
  82. data/lib/losant_rest/experience_group.rb +5 -1
  83. data/lib/losant_rest/experience_groups.rb +1 -1
  84. data/lib/losant_rest/experience_slug.rb +1 -1
  85. data/lib/losant_rest/experience_slugs.rb +2 -2
  86. data/lib/losant_rest/experience_user.rb +1 -1
  87. data/lib/losant_rest/experience_users.rb +1 -1
  88. data/lib/losant_rest/experience_version.rb +4 -4
  89. data/lib/losant_rest/experience_versions.rb +3 -3
  90. data/lib/losant_rest/experience_view.rb +5 -5
  91. data/lib/losant_rest/experience_views.rb +3 -3
  92. data/lib/losant_rest/file.rb +5 -5
  93. data/lib/losant_rest/files.rb +3 -3
  94. data/lib/losant_rest/flow.rb +47 -1
  95. data/lib/losant_rest/flow_version.rb +1 -1
  96. data/lib/losant_rest/flow_versions.rb +51 -1
  97. data/lib/losant_rest/flows.rb +1 -1
  98. data/lib/losant_rest/instance.rb +227 -0
  99. data/lib/losant_rest/instance_api_token.rb +176 -0
  100. data/lib/losant_rest/instance_api_tokens.rb +136 -0
  101. data/lib/losant_rest/instance_member.rb +176 -0
  102. data/lib/losant_rest/instance_members.rb +134 -0
  103. data/lib/losant_rest/instance_org.rb +180 -0
  104. data/lib/losant_rest/instance_org_invite.rb +182 -0
  105. data/lib/losant_rest/instance_org_invites.rb +138 -0
  106. data/lib/losant_rest/instance_org_member.rb +182 -0
  107. data/lib/losant_rest/instance_org_members.rb +138 -0
  108. data/lib/losant_rest/instance_orgs.rb +139 -0
  109. data/lib/losant_rest/instances.rb +88 -0
  110. data/lib/losant_rest/integration.rb +1 -1
  111. data/lib/losant_rest/integrations.rb +1 -1
  112. data/lib/losant_rest/me.rb +2 -2
  113. data/lib/losant_rest/notebook.rb +1 -1
  114. data/lib/losant_rest/notebooks.rb +1 -1
  115. data/lib/losant_rest/org.rb +2 -2
  116. data/lib/losant_rest/org_invites.rb +1 -1
  117. data/lib/losant_rest/orgs.rb +1 -1
  118. data/lib/losant_rest/user_api_token.rb +170 -0
  119. data/lib/losant_rest/user_api_tokens.rb +132 -0
  120. data/lib/losant_rest/utils.rb +1 -1
  121. data/lib/losant_rest/version.rb +2 -2
  122. data/lib/losant_rest/webhook.rb +1 -1
  123. data/lib/losant_rest/webhooks.rb +1 -1
  124. data/lib/losant_rest.rb +16 -1
  125. data/schemas/advancedDeviceQuery.json +309 -0
  126. data/schemas/apiToken.json +2 -1
  127. data/schemas/apiTokenPost.json +431 -0
  128. data/schemas/apiTokens.json +4 -2
  129. data/schemas/applicationApiTokenPost.json +1 -0
  130. data/schemas/applicationDashboardPost.json +39 -17
  131. data/schemas/auditLog.json +4 -0
  132. data/schemas/auditLogFilter.json +4 -0
  133. data/schemas/auditLogs.json +4 -0
  134. data/schemas/bulkDeleteResponse.json +12 -0
  135. data/schemas/dashboard.json +39 -17
  136. data/schemas/dashboardPatch.json +39 -17
  137. data/schemas/dashboardPost.json +39 -17
  138. data/schemas/dashboardSendReport.json +4 -0
  139. data/schemas/dashboards.json +39 -17
  140. data/schemas/dataTableRowsDelete.json +1 -1
  141. data/schemas/devicePayloadCounts.json +24 -0
  142. data/schemas/devicesDeletePost.json +309 -0
  143. data/schemas/devicesExportPayloadCountPost.json +1350 -0
  144. data/schemas/devicesExportPost.json +309 -0
  145. data/schemas/devicesPatch.json +309 -0
  146. data/schemas/devicesRemoveDataPost.json +309 -0
  147. data/schemas/edgeDeployment.json +16 -0
  148. data/schemas/edgeDeployments.json +16 -0
  149. data/schemas/eventsDeleted.json +1 -1
  150. data/schemas/experienceGroup.json +6 -0
  151. data/schemas/experienceGroups.json +6 -0
  152. data/schemas/experienceLinkedResources.json +381 -6
  153. data/schemas/filePost.json +8 -2
  154. data/schemas/flow.json +127 -2
  155. data/schemas/flowPatch.json +127 -2
  156. data/schemas/flowPost.json +127 -2
  157. data/schemas/flowStorageMetadata.json +13 -0
  158. data/schemas/flowVersion.json +254 -4
  159. data/schemas/flowVersionPost.json +127 -2
  160. data/schemas/flowVersions.json +254 -4
  161. data/schemas/flowVersionsDeletePost.json +941 -0
  162. data/schemas/flows.json +127 -2
  163. data/schemas/flowsImportPost.json +254 -4
  164. data/schemas/flowsImportResult.json +381 -6
  165. data/schemas/githubLogin.json +64 -11
  166. data/schemas/historicalSummaries.json +43 -0
  167. data/schemas/historicalSummary.json +490 -0
  168. data/schemas/instance.json +60 -0
  169. data/schemas/instanceMember.json +41 -0
  170. data/schemas/instanceMemberPatch.json +17 -0
  171. data/schemas/instanceMemberPost.json +37 -0
  172. data/schemas/instanceMembers.json +77 -0
  173. data/schemas/instanceOrg.json +14 -0
  174. data/schemas/instanceOrgMember.json +45 -0
  175. data/schemas/instanceOrgMemberPatch.json +69 -0
  176. data/schemas/instanceOrgMemberPost.json +161 -0
  177. data/schemas/instanceOrgMembers.json +42 -0
  178. data/schemas/instanceOrgPatch.json +19 -0
  179. data/schemas/instanceOrgPost.json +177 -0
  180. data/schemas/instanceOrgs.json +18 -0
  181. data/schemas/instancePatch.json +67 -0
  182. data/schemas/instanceReportOptionsPost.json +41 -0
  183. data/schemas/me.json +30 -14
  184. data/schemas/multiDeviceCommand.json +309 -0
  185. data/schemas/notebook.json +45 -0
  186. data/schemas/notebookPatch.json +30 -0
  187. data/schemas/notebookPost.json +30 -0
  188. data/schemas/notebooks.json +45 -0
  189. data/schemas/org.json +30 -14
  190. data/schemas/orgInvite.json +90 -0
  191. data/schemas/orgInviteCollection.json +130 -0
  192. data/schemas/orgInvites.json +82 -77
  193. data/schemas/orgPatch.json +0 -9
  194. data/schemas/orgRoleInfo.json +69 -0
  195. data/schemas/orgs.json +30 -14
  196. data/schemas/payloadStats.json +126 -0
  197. data/schemas/userCredentials.json +64 -11
  198. data/schemas/userPost.json +64 -11
  199. data/schemas/validateContextError.json +34 -0
  200. data/schemas/validateContextSuccess.json +34 -0
  201. data/schemas/virtualButtonPress.json +4 -0
  202. metadata +55 -3
@@ -1017,6 +1017,315 @@
1017
1017
  "additionalProperties": false
1018
1018
  }
1019
1019
  ]
1020
+ },
1021
+ "disconnectedAt": {
1022
+ "oneOf": [
1023
+ {
1024
+ "type": [
1025
+ "string",
1026
+ "number",
1027
+ "boolean",
1028
+ "null"
1029
+ ]
1030
+ },
1031
+ {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "$eq": {
1035
+ "type": [
1036
+ "string",
1037
+ "number",
1038
+ "boolean",
1039
+ "null"
1040
+ ]
1041
+ },
1042
+ "$ne": {
1043
+ "type": [
1044
+ "string",
1045
+ "number",
1046
+ "boolean",
1047
+ "null"
1048
+ ]
1049
+ },
1050
+ "$gt": {
1051
+ "type": [
1052
+ "string",
1053
+ "number",
1054
+ "boolean",
1055
+ "null"
1056
+ ]
1057
+ },
1058
+ "$lt": {
1059
+ "type": [
1060
+ "string",
1061
+ "number",
1062
+ "boolean",
1063
+ "null"
1064
+ ]
1065
+ },
1066
+ "$gte": {
1067
+ "type": [
1068
+ "string",
1069
+ "number",
1070
+ "boolean",
1071
+ "null"
1072
+ ]
1073
+ },
1074
+ "$lte": {
1075
+ "type": [
1076
+ "string",
1077
+ "number",
1078
+ "boolean",
1079
+ "null"
1080
+ ]
1081
+ },
1082
+ "$startsWith": {
1083
+ "type": "string",
1084
+ "minLength": 1
1085
+ },
1086
+ "$endsWith": {
1087
+ "type": "string",
1088
+ "minLength": 1
1089
+ },
1090
+ "$contains": {
1091
+ "type": "string",
1092
+ "minLength": 1
1093
+ },
1094
+ "$ci": {
1095
+ "type": "boolean"
1096
+ },
1097
+ "$in": {
1098
+ "type": "array",
1099
+ "maxItems": 100,
1100
+ "items": {
1101
+ "type": [
1102
+ "string",
1103
+ "number",
1104
+ "boolean"
1105
+ ]
1106
+ }
1107
+ },
1108
+ "$nin": {
1109
+ "type": "array",
1110
+ "maxItems": 100,
1111
+ "items": {
1112
+ "type": [
1113
+ "string",
1114
+ "number",
1115
+ "boolean"
1116
+ ]
1117
+ }
1118
+ }
1119
+ },
1120
+ "additionalProperties": false
1121
+ }
1122
+ ]
1123
+ },
1124
+ "connectedAt": {
1125
+ "oneOf": [
1126
+ {
1127
+ "type": [
1128
+ "string",
1129
+ "number",
1130
+ "boolean",
1131
+ "null"
1132
+ ]
1133
+ },
1134
+ {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "$eq": {
1138
+ "type": [
1139
+ "string",
1140
+ "number",
1141
+ "boolean",
1142
+ "null"
1143
+ ]
1144
+ },
1145
+ "$ne": {
1146
+ "type": [
1147
+ "string",
1148
+ "number",
1149
+ "boolean",
1150
+ "null"
1151
+ ]
1152
+ },
1153
+ "$gt": {
1154
+ "type": [
1155
+ "string",
1156
+ "number",
1157
+ "boolean",
1158
+ "null"
1159
+ ]
1160
+ },
1161
+ "$lt": {
1162
+ "type": [
1163
+ "string",
1164
+ "number",
1165
+ "boolean",
1166
+ "null"
1167
+ ]
1168
+ },
1169
+ "$gte": {
1170
+ "type": [
1171
+ "string",
1172
+ "number",
1173
+ "boolean",
1174
+ "null"
1175
+ ]
1176
+ },
1177
+ "$lte": {
1178
+ "type": [
1179
+ "string",
1180
+ "number",
1181
+ "boolean",
1182
+ "null"
1183
+ ]
1184
+ },
1185
+ "$startsWith": {
1186
+ "type": "string",
1187
+ "minLength": 1
1188
+ },
1189
+ "$endsWith": {
1190
+ "type": "string",
1191
+ "minLength": 1
1192
+ },
1193
+ "$contains": {
1194
+ "type": "string",
1195
+ "minLength": 1
1196
+ },
1197
+ "$ci": {
1198
+ "type": "boolean"
1199
+ },
1200
+ "$in": {
1201
+ "type": "array",
1202
+ "maxItems": 100,
1203
+ "items": {
1204
+ "type": [
1205
+ "string",
1206
+ "number",
1207
+ "boolean"
1208
+ ]
1209
+ }
1210
+ },
1211
+ "$nin": {
1212
+ "type": "array",
1213
+ "maxItems": 100,
1214
+ "items": {
1215
+ "type": [
1216
+ "string",
1217
+ "number",
1218
+ "boolean"
1219
+ ]
1220
+ }
1221
+ }
1222
+ },
1223
+ "additionalProperties": false
1224
+ }
1225
+ ]
1226
+ },
1227
+ "connectionStatus": {
1228
+ "oneOf": [
1229
+ {
1230
+ "type": [
1231
+ "string",
1232
+ "number",
1233
+ "boolean",
1234
+ "null"
1235
+ ]
1236
+ },
1237
+ {
1238
+ "type": "object",
1239
+ "properties": {
1240
+ "$eq": {
1241
+ "type": [
1242
+ "string",
1243
+ "number",
1244
+ "boolean",
1245
+ "null"
1246
+ ]
1247
+ },
1248
+ "$ne": {
1249
+ "type": [
1250
+ "string",
1251
+ "number",
1252
+ "boolean",
1253
+ "null"
1254
+ ]
1255
+ },
1256
+ "$gt": {
1257
+ "type": [
1258
+ "string",
1259
+ "number",
1260
+ "boolean",
1261
+ "null"
1262
+ ]
1263
+ },
1264
+ "$lt": {
1265
+ "type": [
1266
+ "string",
1267
+ "number",
1268
+ "boolean",
1269
+ "null"
1270
+ ]
1271
+ },
1272
+ "$gte": {
1273
+ "type": [
1274
+ "string",
1275
+ "number",
1276
+ "boolean",
1277
+ "null"
1278
+ ]
1279
+ },
1280
+ "$lte": {
1281
+ "type": [
1282
+ "string",
1283
+ "number",
1284
+ "boolean",
1285
+ "null"
1286
+ ]
1287
+ },
1288
+ "$startsWith": {
1289
+ "type": "string",
1290
+ "minLength": 1
1291
+ },
1292
+ "$endsWith": {
1293
+ "type": "string",
1294
+ "minLength": 1
1295
+ },
1296
+ "$contains": {
1297
+ "type": "string",
1298
+ "minLength": 1
1299
+ },
1300
+ "$ci": {
1301
+ "type": "boolean"
1302
+ },
1303
+ "$in": {
1304
+ "type": "array",
1305
+ "maxItems": 100,
1306
+ "items": {
1307
+ "type": [
1308
+ "string",
1309
+ "number",
1310
+ "boolean"
1311
+ ]
1312
+ }
1313
+ },
1314
+ "$nin": {
1315
+ "type": "array",
1316
+ "maxItems": 100,
1317
+ "items": {
1318
+ "type": [
1319
+ "string",
1320
+ "number",
1321
+ "boolean"
1322
+ ]
1323
+ }
1324
+ }
1325
+ },
1326
+ "additionalProperties": false
1327
+ }
1328
+ ]
1020
1329
  }
1021
1330
  },
1022
1331
  "additionalProperties": false
@@ -23,6 +23,22 @@
23
23
  "minLength": 1,
24
24
  "maxLength": 255
25
25
  },
26
+ "deviceConnectionInfo": {
27
+ "type": "object",
28
+ "properties": {
29
+ "time": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "connected": {
34
+ "enum": [
35
+ 1,
36
+ 0,
37
+ null
38
+ ]
39
+ }
40
+ }
41
+ },
26
42
  "flowId": {
27
43
  "type": "string",
28
44
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -30,6 +30,22 @@
30
30
  "minLength": 1,
31
31
  "maxLength": 255
32
32
  },
33
+ "deviceConnectionInfo": {
34
+ "type": "object",
35
+ "properties": {
36
+ "time": {
37
+ "type": "string",
38
+ "format": "date-time"
39
+ },
40
+ "connected": {
41
+ "enum": [
42
+ 1,
43
+ 0,
44
+ null
45
+ ]
46
+ }
47
+ }
48
+ },
33
49
  "flowId": {
34
50
  "type": "string",
35
51
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -3,7 +3,7 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "removed": {
6
- "type": "Number"
6
+ "type": "number"
7
7
  }
8
8
  }
9
9
  }
@@ -102,6 +102,12 @@
102
102
  "type": "null"
103
103
  }
104
104
  ]
105
+ },
106
+ "directDeviceCount": {
107
+ "type": "number"
108
+ },
109
+ "totalDeviceCount": {
110
+ "type": "number"
105
111
  }
106
112
  }
107
113
  }
@@ -109,6 +109,12 @@
109
109
  "type": "null"
110
110
  }
111
111
  ]
112
+ },
113
+ "directDeviceCount": {
114
+ "type": "number"
115
+ },
116
+ "totalDeviceCount": {
117
+ "type": "number"
112
118
  }
113
119
  }
114
120
  }
@@ -464,7 +464,6 @@
464
464
  "onBoot",
465
465
  "onConnect",
466
466
  "onDisconnect",
467
- "request",
468
467
  "udp",
469
468
  "webhook"
470
469
  ]
@@ -498,7 +497,6 @@
498
497
  "onConnect",
499
498
  "onDisconnect",
500
499
  "particle",
501
- "request",
502
500
  "udp",
503
501
  "webhook"
504
502
  ]
@@ -704,6 +702,21 @@
704
702
  },
705
703
  "maxAge": {
706
704
  "type": "number"
705
+ },
706
+ "triggerOn": {
707
+ "type": "string",
708
+ "enum": [
709
+ "batch",
710
+ "individual",
711
+ "both"
712
+ ]
713
+ },
714
+ "batchBehavior": {
715
+ "type": "string",
716
+ "enum": [
717
+ "once",
718
+ "each"
719
+ ]
707
720
  }
708
721
  },
709
722
  "additionalProperties": false
@@ -1782,6 +1795,118 @@
1782
1795
  ],
1783
1796
  "additionalProperties": false
1784
1797
  },
1798
+ {
1799
+ "type": "object",
1800
+ "properties": {
1801
+ "key": {
1802
+ "type": "string",
1803
+ "maxLength": 1024
1804
+ },
1805
+ "type": {
1806
+ "type": "string",
1807
+ "enum": [
1808
+ "request"
1809
+ ]
1810
+ },
1811
+ "config": {
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "method": {
1815
+ "type": "string",
1816
+ "enum": [
1817
+ "*",
1818
+ "delete",
1819
+ "get",
1820
+ "options",
1821
+ "patch",
1822
+ "post",
1823
+ "put"
1824
+ ]
1825
+ },
1826
+ "route": {
1827
+ "type": "string",
1828
+ "maxLength": 1024
1829
+ }
1830
+ },
1831
+ "additionalProperties": false
1832
+ },
1833
+ "meta": {
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "category": {
1837
+ "type": "string",
1838
+ "enum": [
1839
+ "trigger"
1840
+ ]
1841
+ },
1842
+ "name": {
1843
+ "type": "string",
1844
+ "enum": [
1845
+ "request"
1846
+ ]
1847
+ },
1848
+ "label": {
1849
+ "type": "string",
1850
+ "minLength": 1,
1851
+ "maxLength": 255
1852
+ },
1853
+ "x": {
1854
+ "type": "number"
1855
+ },
1856
+ "y": {
1857
+ "type": "number"
1858
+ },
1859
+ "uiId": {
1860
+ "type": "string",
1861
+ "maxLength": 48
1862
+ },
1863
+ "description": {
1864
+ "type": "string",
1865
+ "maxLength": 32767
1866
+ },
1867
+ "icon": {
1868
+ "type": "string",
1869
+ "maxLength": 1024
1870
+ },
1871
+ "color": {
1872
+ "type": "string",
1873
+ "maxLength": 1024
1874
+ },
1875
+ "inputCount": {
1876
+ "type": "number"
1877
+ },
1878
+ "outputCount": {
1879
+ "type": "number"
1880
+ },
1881
+ "triggerId": {
1882
+ "type": "string",
1883
+ "maxLength": 48
1884
+ },
1885
+ "id": {
1886
+ "type": "string",
1887
+ "maxLength": 48
1888
+ }
1889
+ },
1890
+ "additionalProperties": false
1891
+ },
1892
+ "outputIds": {
1893
+ "type": "array",
1894
+ "items": {
1895
+ "type": "array",
1896
+ "items": {
1897
+ "type": "string",
1898
+ "maxLength": 255
1899
+ },
1900
+ "maxItems": 100
1901
+ },
1902
+ "maxItems": 100
1903
+ }
1904
+ },
1905
+ "required": [
1906
+ "type"
1907
+ ],
1908
+ "additionalProperties": false
1909
+ },
1785
1910
  {
1786
1911
  "type": "object",
1787
1912
  "properties": {
@@ -2712,7 +2837,6 @@
2712
2837
  "onBoot",
2713
2838
  "onConnect",
2714
2839
  "onDisconnect",
2715
- "request",
2716
2840
  "udp",
2717
2841
  "webhook"
2718
2842
  ]
@@ -2746,7 +2870,6 @@
2746
2870
  "onConnect",
2747
2871
  "onDisconnect",
2748
2872
  "particle",
2749
- "request",
2750
2873
  "udp",
2751
2874
  "webhook"
2752
2875
  ]
@@ -2952,6 +3075,21 @@
2952
3075
  },
2953
3076
  "maxAge": {
2954
3077
  "type": "number"
3078
+ },
3079
+ "triggerOn": {
3080
+ "type": "string",
3081
+ "enum": [
3082
+ "batch",
3083
+ "individual",
3084
+ "both"
3085
+ ]
3086
+ },
3087
+ "batchBehavior": {
3088
+ "type": "string",
3089
+ "enum": [
3090
+ "once",
3091
+ "each"
3092
+ ]
2955
3093
  }
2956
3094
  },
2957
3095
  "additionalProperties": false
@@ -4030,6 +4168,118 @@
4030
4168
  ],
4031
4169
  "additionalProperties": false
4032
4170
  },
4171
+ {
4172
+ "type": "object",
4173
+ "properties": {
4174
+ "key": {
4175
+ "type": "string",
4176
+ "maxLength": 1024
4177
+ },
4178
+ "type": {
4179
+ "type": "string",
4180
+ "enum": [
4181
+ "request"
4182
+ ]
4183
+ },
4184
+ "config": {
4185
+ "type": "object",
4186
+ "properties": {
4187
+ "method": {
4188
+ "type": "string",
4189
+ "enum": [
4190
+ "*",
4191
+ "delete",
4192
+ "get",
4193
+ "options",
4194
+ "patch",
4195
+ "post",
4196
+ "put"
4197
+ ]
4198
+ },
4199
+ "route": {
4200
+ "type": "string",
4201
+ "maxLength": 1024
4202
+ }
4203
+ },
4204
+ "additionalProperties": false
4205
+ },
4206
+ "meta": {
4207
+ "type": "object",
4208
+ "properties": {
4209
+ "category": {
4210
+ "type": "string",
4211
+ "enum": [
4212
+ "trigger"
4213
+ ]
4214
+ },
4215
+ "name": {
4216
+ "type": "string",
4217
+ "enum": [
4218
+ "request"
4219
+ ]
4220
+ },
4221
+ "label": {
4222
+ "type": "string",
4223
+ "minLength": 1,
4224
+ "maxLength": 255
4225
+ },
4226
+ "x": {
4227
+ "type": "number"
4228
+ },
4229
+ "y": {
4230
+ "type": "number"
4231
+ },
4232
+ "uiId": {
4233
+ "type": "string",
4234
+ "maxLength": 48
4235
+ },
4236
+ "description": {
4237
+ "type": "string",
4238
+ "maxLength": 32767
4239
+ },
4240
+ "icon": {
4241
+ "type": "string",
4242
+ "maxLength": 1024
4243
+ },
4244
+ "color": {
4245
+ "type": "string",
4246
+ "maxLength": 1024
4247
+ },
4248
+ "inputCount": {
4249
+ "type": "number"
4250
+ },
4251
+ "outputCount": {
4252
+ "type": "number"
4253
+ },
4254
+ "triggerId": {
4255
+ "type": "string",
4256
+ "maxLength": 48
4257
+ },
4258
+ "id": {
4259
+ "type": "string",
4260
+ "maxLength": 48
4261
+ }
4262
+ },
4263
+ "additionalProperties": false
4264
+ },
4265
+ "outputIds": {
4266
+ "type": "array",
4267
+ "items": {
4268
+ "type": "array",
4269
+ "items": {
4270
+ "type": "string",
4271
+ "maxLength": 255
4272
+ },
4273
+ "maxItems": 100
4274
+ },
4275
+ "maxItems": 100
4276
+ }
4277
+ },
4278
+ "required": [
4279
+ "type"
4280
+ ],
4281
+ "additionalProperties": false
4282
+ },
4033
4283
  {
4034
4284
  "type": "object",
4035
4285
  "properties": {
@@ -4910,7 +5160,6 @@
4910
5160
  "onBoot",
4911
5161
  "onConnect",
4912
5162
  "onDisconnect",
4913
- "request",
4914
5163
  "udp",
4915
5164
  "webhook"
4916
5165
  ]
@@ -4944,7 +5193,6 @@
4944
5193
  "onConnect",
4945
5194
  "onDisconnect",
4946
5195
  "particle",
4947
- "request",
4948
5196
  "udp",
4949
5197
  "webhook"
4950
5198
  ]
@@ -5150,6 +5398,21 @@
5150
5398
  },
5151
5399
  "maxAge": {
5152
5400
  "type": "number"
5401
+ },
5402
+ "triggerOn": {
5403
+ "type": "string",
5404
+ "enum": [
5405
+ "batch",
5406
+ "individual",
5407
+ "both"
5408
+ ]
5409
+ },
5410
+ "batchBehavior": {
5411
+ "type": "string",
5412
+ "enum": [
5413
+ "once",
5414
+ "each"
5415
+ ]
5153
5416
  }
5154
5417
  },
5155
5418
  "additionalProperties": false
@@ -6228,6 +6491,118 @@
6228
6491
  ],
6229
6492
  "additionalProperties": false
6230
6493
  },
6494
+ {
6495
+ "type": "object",
6496
+ "properties": {
6497
+ "key": {
6498
+ "type": "string",
6499
+ "maxLength": 1024
6500
+ },
6501
+ "type": {
6502
+ "type": "string",
6503
+ "enum": [
6504
+ "request"
6505
+ ]
6506
+ },
6507
+ "config": {
6508
+ "type": "object",
6509
+ "properties": {
6510
+ "method": {
6511
+ "type": "string",
6512
+ "enum": [
6513
+ "*",
6514
+ "delete",
6515
+ "get",
6516
+ "options",
6517
+ "patch",
6518
+ "post",
6519
+ "put"
6520
+ ]
6521
+ },
6522
+ "route": {
6523
+ "type": "string",
6524
+ "maxLength": 1024
6525
+ }
6526
+ },
6527
+ "additionalProperties": false
6528
+ },
6529
+ "meta": {
6530
+ "type": "object",
6531
+ "properties": {
6532
+ "category": {
6533
+ "type": "string",
6534
+ "enum": [
6535
+ "trigger"
6536
+ ]
6537
+ },
6538
+ "name": {
6539
+ "type": "string",
6540
+ "enum": [
6541
+ "request"
6542
+ ]
6543
+ },
6544
+ "label": {
6545
+ "type": "string",
6546
+ "minLength": 1,
6547
+ "maxLength": 255
6548
+ },
6549
+ "x": {
6550
+ "type": "number"
6551
+ },
6552
+ "y": {
6553
+ "type": "number"
6554
+ },
6555
+ "uiId": {
6556
+ "type": "string",
6557
+ "maxLength": 48
6558
+ },
6559
+ "description": {
6560
+ "type": "string",
6561
+ "maxLength": 32767
6562
+ },
6563
+ "icon": {
6564
+ "type": "string",
6565
+ "maxLength": 1024
6566
+ },
6567
+ "color": {
6568
+ "type": "string",
6569
+ "maxLength": 1024
6570
+ },
6571
+ "inputCount": {
6572
+ "type": "number"
6573
+ },
6574
+ "outputCount": {
6575
+ "type": "number"
6576
+ },
6577
+ "triggerId": {
6578
+ "type": "string",
6579
+ "maxLength": 48
6580
+ },
6581
+ "id": {
6582
+ "type": "string",
6583
+ "maxLength": 48
6584
+ }
6585
+ },
6586
+ "additionalProperties": false
6587
+ },
6588
+ "outputIds": {
6589
+ "type": "array",
6590
+ "items": {
6591
+ "type": "array",
6592
+ "items": {
6593
+ "type": "string",
6594
+ "maxLength": 255
6595
+ },
6596
+ "maxItems": 100
6597
+ },
6598
+ "maxItems": 100
6599
+ }
6600
+ },
6601
+ "required": [
6602
+ "type"
6603
+ ],
6604
+ "additionalProperties": false
6605
+ },
6231
6606
  {
6232
6607
  "type": "object",
6233
6608
  "properties": {