losant_rest 1.19.4 → 1.19.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +9 -9
  4. data/docs/_schemas.md +7090 -2334
  5. data/docs/experienceUsers.md +1 -0
  6. data/docs/instanceAuditLog.md +49 -0
  7. data/docs/instanceAuditLogs.md +53 -0
  8. data/examples/auth.rb +1 -1
  9. data/examples/list_devices.rb +1 -1
  10. data/lib/platform_rest/application.rb +1 -1
  11. data/lib/platform_rest/application_api_token.rb +1 -1
  12. data/lib/platform_rest/application_api_tokens.rb +1 -1
  13. data/lib/platform_rest/application_certificate.rb +1 -1
  14. data/lib/platform_rest/application_certificate_authorities.rb +1 -1
  15. data/lib/platform_rest/application_certificate_authority.rb +1 -1
  16. data/lib/platform_rest/application_certificates.rb +1 -1
  17. data/lib/platform_rest/application_dashboard.rb +1 -1
  18. data/lib/platform_rest/application_dashboards.rb +1 -1
  19. data/lib/platform_rest/application_key.rb +1 -1
  20. data/lib/platform_rest/application_keys.rb +1 -1
  21. data/lib/platform_rest/application_template.rb +1 -1
  22. data/lib/platform_rest/application_templates.rb +1 -1
  23. data/lib/platform_rest/applications.rb +1 -1
  24. data/lib/platform_rest/audit_log.rb +1 -1
  25. data/lib/platform_rest/audit_logs.rb +1 -1
  26. data/lib/platform_rest/auth.rb +1 -1
  27. data/lib/platform_rest/client.rb +11 -3
  28. data/lib/platform_rest/credential.rb +1 -1
  29. data/lib/platform_rest/credentials.rb +1 -1
  30. data/lib/platform_rest/dashboard.rb +1 -1
  31. data/lib/platform_rest/dashboards.rb +1 -1
  32. data/lib/platform_rest/data.rb +1 -1
  33. data/lib/platform_rest/data_table.rb +1 -1
  34. data/lib/platform_rest/data_table_row.rb +1 -1
  35. data/lib/platform_rest/data_table_rows.rb +1 -1
  36. data/lib/platform_rest/data_tables.rb +1 -1
  37. data/lib/platform_rest/device.rb +1 -1
  38. data/lib/platform_rest/device_recipe.rb +1 -1
  39. data/lib/platform_rest/device_recipes.rb +1 -1
  40. data/lib/platform_rest/devices.rb +1 -1
  41. data/lib/platform_rest/edge_deployment.rb +1 -1
  42. data/lib/platform_rest/edge_deployments.rb +1 -1
  43. data/lib/platform_rest/embedded_deployment.rb +1 -1
  44. data/lib/platform_rest/embedded_deployments.rb +1 -1
  45. data/lib/platform_rest/error.rb +1 -1
  46. data/lib/platform_rest/event.rb +1 -1
  47. data/lib/platform_rest/events.rb +1 -1
  48. data/lib/platform_rest/experience.rb +1 -1
  49. data/lib/platform_rest/experience_domain.rb +1 -1
  50. data/lib/platform_rest/experience_domains.rb +1 -1
  51. data/lib/platform_rest/experience_endpoint.rb +1 -1
  52. data/lib/platform_rest/experience_endpoints.rb +1 -1
  53. data/lib/platform_rest/experience_group.rb +1 -1
  54. data/lib/platform_rest/experience_groups.rb +1 -1
  55. data/lib/platform_rest/experience_slug.rb +1 -1
  56. data/lib/platform_rest/experience_slugs.rb +1 -1
  57. data/lib/platform_rest/experience_user.rb +1 -1
  58. data/lib/platform_rest/experience_users.rb +4 -1
  59. data/lib/platform_rest/experience_version.rb +1 -1
  60. data/lib/platform_rest/experience_versions.rb +1 -1
  61. data/lib/platform_rest/experience_view.rb +1 -1
  62. data/lib/platform_rest/experience_views.rb +1 -1
  63. data/lib/platform_rest/file.rb +1 -1
  64. data/lib/platform_rest/files.rb +1 -1
  65. data/lib/platform_rest/flow.rb +1 -1
  66. data/lib/platform_rest/flow_version.rb +1 -1
  67. data/lib/platform_rest/flow_versions.rb +1 -1
  68. data/lib/platform_rest/flows.rb +1 -1
  69. data/lib/platform_rest/instance.rb +1 -1
  70. data/lib/platform_rest/instance_api_token.rb +1 -1
  71. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  72. data/lib/{losant_rest/application_template.rb → platform_rest/instance_audit_log.rb} +13 -11
  73. data/lib/{losant_rest/audit_logs.rb → platform_rest/instance_audit_logs.rb} +12 -12
  74. data/lib/platform_rest/instance_custom_node.rb +1 -1
  75. data/lib/platform_rest/instance_custom_nodes.rb +1 -1
  76. data/lib/platform_rest/instance_member.rb +1 -1
  77. data/lib/platform_rest/instance_members.rb +1 -1
  78. data/lib/platform_rest/instance_org.rb +1 -1
  79. data/lib/platform_rest/instance_org_invite.rb +1 -1
  80. data/lib/platform_rest/instance_org_invites.rb +1 -1
  81. data/lib/platform_rest/instance_org_member.rb +1 -1
  82. data/lib/platform_rest/instance_org_members.rb +1 -1
  83. data/lib/platform_rest/instance_orgs.rb +1 -1
  84. data/lib/platform_rest/instance_sandbox.rb +1 -1
  85. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  86. data/lib/platform_rest/instances.rb +1 -1
  87. data/lib/platform_rest/integration.rb +1 -1
  88. data/lib/platform_rest/integrations.rb +1 -1
  89. data/lib/platform_rest/me.rb +1 -1
  90. data/lib/platform_rest/notebook.rb +1 -1
  91. data/lib/platform_rest/notebooks.rb +1 -1
  92. data/lib/platform_rest/org.rb +1 -1
  93. data/lib/platform_rest/org_invites.rb +1 -1
  94. data/lib/platform_rest/orgs.rb +1 -1
  95. data/lib/platform_rest/resource_job.rb +1 -1
  96. data/lib/platform_rest/resource_jobs.rb +1 -1
  97. data/lib/platform_rest/user_api_token.rb +1 -1
  98. data/lib/platform_rest/user_api_tokens.rb +1 -1
  99. data/lib/platform_rest/utils.rb +1 -1
  100. data/lib/{losant_rest → platform_rest}/version.rb +3 -3
  101. data/lib/platform_rest/webhook.rb +1 -1
  102. data/lib/platform_rest/webhooks.rb +1 -1
  103. data/lib/platform_rest.rb +3 -1
  104. data/losant_rest.gemspec +2 -2
  105. data/schemas/advancedExperienceUserQuery.json +1068 -0
  106. data/schemas/apiTokenPost.json +9 -1
  107. data/schemas/auditLog.json +3 -2
  108. data/schemas/auditLogFilter.json +3 -2
  109. data/schemas/auditLogs.json +3 -2
  110. data/schemas/credential.json +95 -1
  111. data/schemas/credentialLinkedResources.json +417 -19
  112. data/schemas/credentialPatch.json +107 -0
  113. data/schemas/credentialPost.json +129 -1
  114. data/schemas/credentials.json +95 -1
  115. data/schemas/deviceConnectionStatus.json +6 -2
  116. data/schemas/devicesHistoricalImportPost.json +25 -0
  117. data/schemas/experienceLinkedResources.json +343 -20
  118. data/schemas/experienceVersion.json +64 -0
  119. data/schemas/experienceVersionPatch.json +64 -0
  120. data/schemas/experienceVersionPost.json +64 -0
  121. data/schemas/experienceVersions.json +64 -0
  122. data/schemas/experienceView.json +1 -2
  123. data/schemas/experienceViewPatch.json +1 -2
  124. data/schemas/experienceViewPost.json +2 -4
  125. data/schemas/experienceViews.json +1 -2
  126. data/schemas/flow.json +114 -6
  127. data/schemas/flowPatch.json +114 -6
  128. data/schemas/flowPost.json +114 -6
  129. data/schemas/flowVersion.json +228 -12
  130. data/schemas/flowVersionPost.json +114 -6
  131. data/schemas/flowVersions.json +228 -12
  132. data/schemas/flows.json +114 -6
  133. data/schemas/flowsImportPost.json +228 -12
  134. data/schemas/flowsImportResult.json +342 -18
  135. data/schemas/githubLogin.json +9 -1
  136. data/schemas/instance.json +1 -4
  137. data/schemas/instanceAuditLog.json +94 -0
  138. data/schemas/instanceAuditLogFilter.json +106 -0
  139. data/schemas/instanceAuditLogs.json +41 -0
  140. data/schemas/instanceCustomNode.json +2 -1
  141. data/schemas/instanceCustomNodePatch.json +2 -7
  142. data/schemas/instanceCustomNodePost.json +2 -7
  143. data/schemas/instanceCustomNodes.json +2 -1
  144. data/schemas/instanceOrgMember.json +4 -1
  145. data/schemas/instances.json +1 -4
  146. data/schemas/integration.json +75 -1
  147. data/schemas/integrationPatch.json +73 -0
  148. data/schemas/integrationPost.json +75 -1
  149. data/schemas/integrations.json +75 -1
  150. data/schemas/mePatch.json +18 -0
  151. data/schemas/resourceJob.json +2 -1
  152. data/schemas/resourceJobExecutionLogs.json +2 -1
  153. data/schemas/resourceJobPost.json +2 -1
  154. data/schemas/resourceJobs.json +2 -1
  155. data/schemas/samlResponse.json +9 -1
  156. data/schemas/userCredentials.json +9 -1
  157. data/schemas/userPost.json +9 -1
  158. data/test/basic_test.rb +6 -6
  159. data/test/test_helper.rb +1 -1
  160. metadata +12 -94
  161. data/lib/losant_rest/application.rb +0 -932
  162. data/lib/losant_rest/application_api_token.rb +0 -176
  163. data/lib/losant_rest/application_api_tokens.rb +0 -136
  164. data/lib/losant_rest/application_certificate.rb +0 -176
  165. data/lib/losant_rest/application_certificate_authorities.rb +0 -138
  166. data/lib/losant_rest/application_certificate_authority.rb +0 -176
  167. data/lib/losant_rest/application_certificates.rb +0 -138
  168. data/lib/losant_rest/application_dashboard.rb +0 -225
  169. data/lib/losant_rest/application_dashboards.rb +0 -138
  170. data/lib/losant_rest/application_key.rb +0 -176
  171. data/lib/losant_rest/application_keys.rb +0 -141
  172. data/lib/losant_rest/application_templates.rb +0 -176
  173. data/lib/losant_rest/applications.rb +0 -142
  174. data/lib/losant_rest/audit_log.rb +0 -81
  175. data/lib/losant_rest/auth.rb +0 -245
  176. data/lib/losant_rest/client.rb +0 -410
  177. data/lib/losant_rest/credential.rb +0 -224
  178. data/lib/losant_rest/credentials.rb +0 -138
  179. data/lib/losant_rest/dashboard.rb +0 -268
  180. data/lib/losant_rest/dashboards.rb +0 -136
  181. data/lib/losant_rest/data.rb +0 -176
  182. data/lib/losant_rest/data_table.rb +0 -274
  183. data/lib/losant_rest/data_table_row.rb +0 -182
  184. data/lib/losant_rest/data_table_rows.rb +0 -343
  185. data/lib/losant_rest/data_tables.rb +0 -138
  186. data/lib/losant_rest/device.rb +0 -749
  187. data/lib/losant_rest/device_recipe.rb +0 -234
  188. data/lib/losant_rest/device_recipes.rb +0 -146
  189. data/lib/losant_rest/devices.rb +0 -707
  190. data/lib/losant_rest/edge_deployment.rb +0 -81
  191. data/lib/losant_rest/edge_deployments.rb +0 -236
  192. data/lib/losant_rest/embedded_deployment.rb +0 -81
  193. data/lib/losant_rest/embedded_deployments.rb +0 -280
  194. data/lib/losant_rest/error.rb +0 -34
  195. data/lib/losant_rest/event.rb +0 -176
  196. data/lib/losant_rest/events.rb +0 -341
  197. data/lib/losant_rest/experience.rb +0 -142
  198. data/lib/losant_rest/experience_domain.rb +0 -176
  199. data/lib/losant_rest/experience_domains.rb +0 -126
  200. data/lib/losant_rest/experience_endpoint.rb +0 -230
  201. data/lib/losant_rest/experience_endpoints.rb +0 -200
  202. data/lib/losant_rest/experience_group.rb +0 -180
  203. data/lib/losant_rest/experience_groups.rb +0 -141
  204. data/lib/losant_rest/experience_slug.rb +0 -176
  205. data/lib/losant_rest/experience_slugs.rb +0 -126
  206. data/lib/losant_rest/experience_user.rb +0 -176
  207. data/lib/losant_rest/experience_users.rb +0 -142
  208. data/lib/losant_rest/experience_version.rb +0 -176
  209. data/lib/losant_rest/experience_versions.rb +0 -138
  210. data/lib/losant_rest/experience_view.rb +0 -228
  211. data/lib/losant_rest/experience_views.rb +0 -142
  212. data/lib/losant_rest/file.rb +0 -226
  213. data/lib/losant_rest/files.rb +0 -144
  214. data/lib/losant_rest/flow.rb +0 -580
  215. data/lib/losant_rest/flow_version.rb +0 -352
  216. data/lib/losant_rest/flow_versions.rb +0 -201
  217. data/lib/losant_rest/flows.rb +0 -310
  218. data/lib/losant_rest/instance.rb +0 -377
  219. data/lib/losant_rest/instance_api_token.rb +0 -176
  220. data/lib/losant_rest/instance_api_tokens.rb +0 -136
  221. data/lib/losant_rest/instance_custom_node.rb +0 -282
  222. data/lib/losant_rest/instance_custom_nodes.rb +0 -136
  223. data/lib/losant_rest/instance_member.rb +0 -176
  224. data/lib/losant_rest/instance_members.rb +0 -134
  225. data/lib/losant_rest/instance_org.rb +0 -336
  226. data/lib/losant_rest/instance_org_invite.rb +0 -182
  227. data/lib/losant_rest/instance_org_invites.rb +0 -138
  228. data/lib/losant_rest/instance_org_member.rb +0 -182
  229. data/lib/losant_rest/instance_org_members.rb +0 -138
  230. data/lib/losant_rest/instance_orgs.rb +0 -139
  231. data/lib/losant_rest/instance_sandbox.rb +0 -181
  232. data/lib/losant_rest/instance_sandboxes.rb +0 -98
  233. data/lib/losant_rest/instances.rb +0 -88
  234. data/lib/losant_rest/integration.rb +0 -178
  235. data/lib/losant_rest/integrations.rb +0 -138
  236. data/lib/losant_rest/me.rb +0 -790
  237. data/lib/losant_rest/notebook.rb +0 -423
  238. data/lib/losant_rest/notebooks.rb +0 -138
  239. data/lib/losant_rest/org.rb +0 -663
  240. data/lib/losant_rest/org_invites.rb +0 -124
  241. data/lib/losant_rest/orgs.rb +0 -140
  242. data/lib/losant_rest/resource_job.rb +0 -326
  243. data/lib/losant_rest/resource_jobs.rb +0 -138
  244. data/lib/losant_rest/user_api_token.rb +0 -170
  245. data/lib/losant_rest/user_api_tokens.rb +0 -132
  246. data/lib/losant_rest/utils.rb +0 -44
  247. data/lib/losant_rest/webhook.rb +0 -178
  248. data/lib/losant_rest/webhooks.rb +0 -138
  249. data/lib/losant_rest.rb +0 -129
@@ -101,6 +101,70 @@
101
101
  ]
102
102
  }
103
103
  },
104
+ "notFoundReply": {
105
+ "oneOf": [
106
+ {
107
+ "type": "object",
108
+ "properties": {
109
+ "value": {
110
+ "type": "string"
111
+ },
112
+ "statusCode": {
113
+ "type": "integer",
114
+ "minimum": 100,
115
+ "maximum": 599
116
+ },
117
+ "type": {
118
+ "type": "string",
119
+ "enum": [
120
+ "page",
121
+ "redirect"
122
+ ]
123
+ }
124
+ },
125
+ "required": [
126
+ "value",
127
+ "type"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ {
132
+ "type": "null"
133
+ }
134
+ ]
135
+ },
136
+ "unauthorizedReply": {
137
+ "oneOf": [
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "value": {
142
+ "type": "string"
143
+ },
144
+ "statusCode": {
145
+ "type": "integer",
146
+ "minimum": 100,
147
+ "maximum": 599
148
+ },
149
+ "type": {
150
+ "type": "string",
151
+ "enum": [
152
+ "page",
153
+ "redirect"
154
+ ]
155
+ }
156
+ },
157
+ "required": [
158
+ "value",
159
+ "type"
160
+ ],
161
+ "additionalProperties": false
162
+ },
163
+ {
164
+ "type": "null"
165
+ }
166
+ ]
167
+ },
104
168
  "attachedDomains": {
105
169
  "type": "array",
106
170
  "items": {
@@ -77,8 +77,7 @@
77
77
  },
78
78
  "body": {
79
79
  "type": "string",
80
- "maxLength": 131072,
81
- "minLength": 1
80
+ "maxLength": 131072
82
81
  },
83
82
  "viewTags": {
84
83
  "type": "object",
@@ -20,8 +20,7 @@
20
20
  },
21
21
  "body": {
22
22
  "type": "string",
23
- "maxLength": 131072,
24
- "minLength": 1
23
+ "maxLength": 131072
25
24
  },
26
25
  "viewTags": {
27
26
  "type": "object",
@@ -28,8 +28,7 @@
28
28
  },
29
29
  "body": {
30
30
  "type": "string",
31
- "maxLength": 131072,
32
- "minLength": 1
31
+ "maxLength": 131072
33
32
  },
34
33
  "viewTags": {
35
34
  "type": "object",
@@ -46,7 +45,6 @@
46
45
  "additionalProperties": false,
47
46
  "required": [
48
47
  "name",
49
- "viewType",
50
- "body"
48
+ "viewType"
51
49
  ]
52
50
  }
@@ -84,8 +84,7 @@
84
84
  },
85
85
  "body": {
86
86
  "type": "string",
87
- "maxLength": 131072,
88
- "minLength": 1
87
+ "maxLength": 131072
89
88
  },
90
89
  "viewTags": {
91
90
  "type": "object",
data/schemas/flow.json CHANGED
@@ -119,7 +119,6 @@
119
119
  "deviceTagConnect",
120
120
  "deviceIdDisconnect",
121
121
  "deviceTagDisconnect",
122
- "integration",
123
122
  "notebook",
124
123
  "onBoot",
125
124
  "onConnect",
@@ -153,15 +152,10 @@
153
152
  "deviceIdsTagsDisconnect",
154
153
  "eeaInit",
155
154
  "flowError",
156
- "azureEventHub",
157
- "googlePubSub",
158
- "mqtt",
159
155
  "notebook",
160
156
  "onBoot",
161
157
  "onConnect",
162
158
  "onDisconnect",
163
- "particle",
164
- "sqs",
165
159
  "udp",
166
160
  "webhook",
167
161
  "resourceJobIteration",
@@ -337,6 +331,120 @@
337
331
  ],
338
332
  "additionalProperties": false
339
333
  },
334
+ {
335
+ "type": "object",
336
+ "properties": {
337
+ "key": {
338
+ "type": "string",
339
+ "maxLength": 1024
340
+ },
341
+ "type": {
342
+ "type": "string",
343
+ "enum": [
344
+ "integration"
345
+ ]
346
+ },
347
+ "config": {
348
+ "type": "object",
349
+ "properties": {
350
+ "connect": {
351
+ "type": "boolean"
352
+ },
353
+ "message": {
354
+ "type": "boolean"
355
+ },
356
+ "disconnect": {
357
+ "type": "boolean"
358
+ },
359
+ "failure": {
360
+ "type": "boolean"
361
+ }
362
+ },
363
+ "additionalProperties": false
364
+ },
365
+ "meta": {
366
+ "type": "object",
367
+ "properties": {
368
+ "category": {
369
+ "type": "string",
370
+ "enum": [
371
+ "trigger"
372
+ ]
373
+ },
374
+ "name": {
375
+ "type": "string",
376
+ "enum": [
377
+ "azureEventHub",
378
+ "googlePubSub",
379
+ "mqtt",
380
+ "particle",
381
+ "sqs",
382
+ "websocket"
383
+ ]
384
+ },
385
+ "label": {
386
+ "type": "string",
387
+ "minLength": 1,
388
+ "maxLength": 255
389
+ },
390
+ "x": {
391
+ "type": "number"
392
+ },
393
+ "y": {
394
+ "type": "number"
395
+ },
396
+ "uiId": {
397
+ "type": "string",
398
+ "maxLength": 48
399
+ },
400
+ "description": {
401
+ "type": "string",
402
+ "maxLength": 32767
403
+ },
404
+ "icon": {
405
+ "type": "string",
406
+ "maxLength": 1024
407
+ },
408
+ "color": {
409
+ "type": "string",
410
+ "maxLength": 1024
411
+ },
412
+ "inputCount": {
413
+ "type": "number"
414
+ },
415
+ "outputCount": {
416
+ "type": "number"
417
+ },
418
+ "triggerId": {
419
+ "type": "string",
420
+ "maxLength": 48
421
+ },
422
+ "id": {
423
+ "type": "string",
424
+ "maxLength": 48
425
+ }
426
+ },
427
+ "additionalProperties": false
428
+ },
429
+ "outputIds": {
430
+ "type": "array",
431
+ "items": {
432
+ "type": "array",
433
+ "items": {
434
+ "type": "string",
435
+ "maxLength": 48,
436
+ "minLength": 1
437
+ },
438
+ "maxItems": 100
439
+ },
440
+ "maxItems": 100
441
+ }
442
+ },
443
+ "required": [
444
+ "type"
445
+ ],
446
+ "additionalProperties": false
447
+ },
340
448
  {
341
449
  "type": "object",
342
450
  "properties": {
@@ -76,7 +76,6 @@
76
76
  "deviceTagConnect",
77
77
  "deviceIdDisconnect",
78
78
  "deviceTagDisconnect",
79
- "integration",
80
79
  "notebook",
81
80
  "onBoot",
82
81
  "onConnect",
@@ -110,15 +109,10 @@
110
109
  "deviceIdsTagsDisconnect",
111
110
  "eeaInit",
112
111
  "flowError",
113
- "azureEventHub",
114
- "googlePubSub",
115
- "mqtt",
116
112
  "notebook",
117
113
  "onBoot",
118
114
  "onConnect",
119
115
  "onDisconnect",
120
- "particle",
121
- "sqs",
122
116
  "udp",
123
117
  "webhook",
124
118
  "resourceJobIteration",
@@ -294,6 +288,120 @@
294
288
  ],
295
289
  "additionalProperties": false
296
290
  },
291
+ {
292
+ "type": "object",
293
+ "properties": {
294
+ "key": {
295
+ "type": "string",
296
+ "maxLength": 1024
297
+ },
298
+ "type": {
299
+ "type": "string",
300
+ "enum": [
301
+ "integration"
302
+ ]
303
+ },
304
+ "config": {
305
+ "type": "object",
306
+ "properties": {
307
+ "connect": {
308
+ "type": "boolean"
309
+ },
310
+ "message": {
311
+ "type": "boolean"
312
+ },
313
+ "disconnect": {
314
+ "type": "boolean"
315
+ },
316
+ "failure": {
317
+ "type": "boolean"
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ },
322
+ "meta": {
323
+ "type": "object",
324
+ "properties": {
325
+ "category": {
326
+ "type": "string",
327
+ "enum": [
328
+ "trigger"
329
+ ]
330
+ },
331
+ "name": {
332
+ "type": "string",
333
+ "enum": [
334
+ "azureEventHub",
335
+ "googlePubSub",
336
+ "mqtt",
337
+ "particle",
338
+ "sqs",
339
+ "websocket"
340
+ ]
341
+ },
342
+ "label": {
343
+ "type": "string",
344
+ "minLength": 1,
345
+ "maxLength": 255
346
+ },
347
+ "x": {
348
+ "type": "number"
349
+ },
350
+ "y": {
351
+ "type": "number"
352
+ },
353
+ "uiId": {
354
+ "type": "string",
355
+ "maxLength": 48
356
+ },
357
+ "description": {
358
+ "type": "string",
359
+ "maxLength": 32767
360
+ },
361
+ "icon": {
362
+ "type": "string",
363
+ "maxLength": 1024
364
+ },
365
+ "color": {
366
+ "type": "string",
367
+ "maxLength": 1024
368
+ },
369
+ "inputCount": {
370
+ "type": "number"
371
+ },
372
+ "outputCount": {
373
+ "type": "number"
374
+ },
375
+ "triggerId": {
376
+ "type": "string",
377
+ "maxLength": 48
378
+ },
379
+ "id": {
380
+ "type": "string",
381
+ "maxLength": 48
382
+ }
383
+ },
384
+ "additionalProperties": false
385
+ },
386
+ "outputIds": {
387
+ "type": "array",
388
+ "items": {
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string",
392
+ "maxLength": 48,
393
+ "minLength": 1
394
+ },
395
+ "maxItems": 100
396
+ },
397
+ "maxItems": 100
398
+ }
399
+ },
400
+ "required": [
401
+ "type"
402
+ ],
403
+ "additionalProperties": false
404
+ },
297
405
  {
298
406
  "type": "object",
299
407
  "properties": {
@@ -65,7 +65,6 @@
65
65
  "deviceTagConnect",
66
66
  "deviceIdDisconnect",
67
67
  "deviceTagDisconnect",
68
- "integration",
69
68
  "notebook",
70
69
  "onBoot",
71
70
  "onConnect",
@@ -99,15 +98,10 @@
99
98
  "deviceIdsTagsDisconnect",
100
99
  "eeaInit",
101
100
  "flowError",
102
- "azureEventHub",
103
- "googlePubSub",
104
- "mqtt",
105
101
  "notebook",
106
102
  "onBoot",
107
103
  "onConnect",
108
104
  "onDisconnect",
109
- "particle",
110
- "sqs",
111
105
  "udp",
112
106
  "webhook",
113
107
  "resourceJobIteration",
@@ -283,6 +277,120 @@
283
277
  ],
284
278
  "additionalProperties": false
285
279
  },
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "key": {
284
+ "type": "string",
285
+ "maxLength": 1024
286
+ },
287
+ "type": {
288
+ "type": "string",
289
+ "enum": [
290
+ "integration"
291
+ ]
292
+ },
293
+ "config": {
294
+ "type": "object",
295
+ "properties": {
296
+ "connect": {
297
+ "type": "boolean"
298
+ },
299
+ "message": {
300
+ "type": "boolean"
301
+ },
302
+ "disconnect": {
303
+ "type": "boolean"
304
+ },
305
+ "failure": {
306
+ "type": "boolean"
307
+ }
308
+ },
309
+ "additionalProperties": false
310
+ },
311
+ "meta": {
312
+ "type": "object",
313
+ "properties": {
314
+ "category": {
315
+ "type": "string",
316
+ "enum": [
317
+ "trigger"
318
+ ]
319
+ },
320
+ "name": {
321
+ "type": "string",
322
+ "enum": [
323
+ "azureEventHub",
324
+ "googlePubSub",
325
+ "mqtt",
326
+ "particle",
327
+ "sqs",
328
+ "websocket"
329
+ ]
330
+ },
331
+ "label": {
332
+ "type": "string",
333
+ "minLength": 1,
334
+ "maxLength": 255
335
+ },
336
+ "x": {
337
+ "type": "number"
338
+ },
339
+ "y": {
340
+ "type": "number"
341
+ },
342
+ "uiId": {
343
+ "type": "string",
344
+ "maxLength": 48
345
+ },
346
+ "description": {
347
+ "type": "string",
348
+ "maxLength": 32767
349
+ },
350
+ "icon": {
351
+ "type": "string",
352
+ "maxLength": 1024
353
+ },
354
+ "color": {
355
+ "type": "string",
356
+ "maxLength": 1024
357
+ },
358
+ "inputCount": {
359
+ "type": "number"
360
+ },
361
+ "outputCount": {
362
+ "type": "number"
363
+ },
364
+ "triggerId": {
365
+ "type": "string",
366
+ "maxLength": 48
367
+ },
368
+ "id": {
369
+ "type": "string",
370
+ "maxLength": 48
371
+ }
372
+ },
373
+ "additionalProperties": false
374
+ },
375
+ "outputIds": {
376
+ "type": "array",
377
+ "items": {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string",
381
+ "maxLength": 48,
382
+ "minLength": 1
383
+ },
384
+ "maxItems": 100
385
+ },
386
+ "maxItems": 100
387
+ }
388
+ },
389
+ "required": [
390
+ "type"
391
+ ],
392
+ "additionalProperties": false
393
+ },
286
394
  {
287
395
  "type": "object",
288
396
  "properties": {