losant_rest 1.19.4 → 1.19.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +9 -9
  4. data/docs/_schemas.md +1142 -63
  5. data/docs/instanceAuditLog.md +49 -0
  6. data/docs/instanceAuditLogs.md +53 -0
  7. data/examples/auth.rb +1 -1
  8. data/examples/list_devices.rb +1 -1
  9. data/lib/platform_rest/application.rb +1 -1
  10. data/lib/platform_rest/application_api_token.rb +1 -1
  11. data/lib/platform_rest/application_api_tokens.rb +1 -1
  12. data/lib/platform_rest/application_certificate.rb +1 -1
  13. data/lib/platform_rest/application_certificate_authorities.rb +1 -1
  14. data/lib/platform_rest/application_certificate_authority.rb +1 -1
  15. data/lib/platform_rest/application_certificates.rb +1 -1
  16. data/lib/platform_rest/application_dashboard.rb +1 -1
  17. data/lib/platform_rest/application_dashboards.rb +1 -1
  18. data/lib/platform_rest/application_key.rb +1 -1
  19. data/lib/platform_rest/application_keys.rb +1 -1
  20. data/lib/platform_rest/application_template.rb +1 -1
  21. data/lib/platform_rest/application_templates.rb +1 -1
  22. data/lib/platform_rest/applications.rb +1 -1
  23. data/lib/platform_rest/audit_log.rb +1 -1
  24. data/lib/platform_rest/audit_logs.rb +1 -1
  25. data/lib/platform_rest/auth.rb +1 -1
  26. data/lib/platform_rest/client.rb +11 -3
  27. data/lib/platform_rest/credential.rb +1 -1
  28. data/lib/platform_rest/credentials.rb +1 -1
  29. data/lib/platform_rest/dashboard.rb +1 -1
  30. data/lib/platform_rest/dashboards.rb +1 -1
  31. data/lib/platform_rest/data.rb +1 -1
  32. data/lib/platform_rest/data_table.rb +1 -1
  33. data/lib/platform_rest/data_table_row.rb +1 -1
  34. data/lib/platform_rest/data_table_rows.rb +1 -1
  35. data/lib/platform_rest/data_tables.rb +1 -1
  36. data/lib/platform_rest/device.rb +1 -1
  37. data/lib/platform_rest/device_recipe.rb +1 -1
  38. data/lib/platform_rest/device_recipes.rb +1 -1
  39. data/lib/platform_rest/devices.rb +1 -1
  40. data/lib/platform_rest/edge_deployment.rb +1 -1
  41. data/lib/platform_rest/edge_deployments.rb +1 -1
  42. data/lib/platform_rest/embedded_deployment.rb +1 -1
  43. data/lib/platform_rest/embedded_deployments.rb +1 -1
  44. data/lib/platform_rest/error.rb +1 -1
  45. data/lib/platform_rest/event.rb +1 -1
  46. data/lib/platform_rest/events.rb +1 -1
  47. data/lib/platform_rest/experience.rb +1 -1
  48. data/lib/platform_rest/experience_domain.rb +1 -1
  49. data/lib/platform_rest/experience_domains.rb +1 -1
  50. data/lib/platform_rest/experience_endpoint.rb +1 -1
  51. data/lib/platform_rest/experience_endpoints.rb +1 -1
  52. data/lib/platform_rest/experience_group.rb +1 -1
  53. data/lib/platform_rest/experience_groups.rb +1 -1
  54. data/lib/platform_rest/experience_slug.rb +1 -1
  55. data/lib/platform_rest/experience_slugs.rb +1 -1
  56. data/lib/platform_rest/experience_user.rb +1 -1
  57. data/lib/platform_rest/experience_users.rb +1 -1
  58. data/lib/platform_rest/experience_version.rb +1 -1
  59. data/lib/platform_rest/experience_versions.rb +1 -1
  60. data/lib/platform_rest/experience_view.rb +1 -1
  61. data/lib/platform_rest/experience_views.rb +1 -1
  62. data/lib/platform_rest/file.rb +1 -1
  63. data/lib/platform_rest/files.rb +1 -1
  64. data/lib/platform_rest/flow.rb +1 -1
  65. data/lib/platform_rest/flow_version.rb +1 -1
  66. data/lib/platform_rest/flow_versions.rb +1 -1
  67. data/lib/platform_rest/flows.rb +1 -1
  68. data/lib/platform_rest/instance.rb +1 -1
  69. data/lib/platform_rest/instance_api_token.rb +1 -1
  70. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  71. data/lib/{losant_rest/application_template.rb → platform_rest/instance_audit_log.rb} +13 -11
  72. data/lib/{losant_rest/audit_logs.rb → platform_rest/instance_audit_logs.rb} +12 -12
  73. data/lib/platform_rest/instance_custom_node.rb +1 -1
  74. data/lib/platform_rest/instance_custom_nodes.rb +1 -1
  75. data/lib/platform_rest/instance_member.rb +1 -1
  76. data/lib/platform_rest/instance_members.rb +1 -1
  77. data/lib/platform_rest/instance_org.rb +1 -1
  78. data/lib/platform_rest/instance_org_invite.rb +1 -1
  79. data/lib/platform_rest/instance_org_invites.rb +1 -1
  80. data/lib/platform_rest/instance_org_member.rb +1 -1
  81. data/lib/platform_rest/instance_org_members.rb +1 -1
  82. data/lib/platform_rest/instance_orgs.rb +1 -1
  83. data/lib/platform_rest/instance_sandbox.rb +1 -1
  84. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  85. data/lib/platform_rest/instances.rb +1 -1
  86. data/lib/platform_rest/integration.rb +1 -1
  87. data/lib/platform_rest/integrations.rb +1 -1
  88. data/lib/platform_rest/me.rb +1 -1
  89. data/lib/platform_rest/notebook.rb +1 -1
  90. data/lib/platform_rest/notebooks.rb +1 -1
  91. data/lib/platform_rest/org.rb +1 -1
  92. data/lib/platform_rest/org_invites.rb +1 -1
  93. data/lib/platform_rest/orgs.rb +1 -1
  94. data/lib/platform_rest/resource_job.rb +1 -1
  95. data/lib/platform_rest/resource_jobs.rb +1 -1
  96. data/lib/platform_rest/user_api_token.rb +1 -1
  97. data/lib/platform_rest/user_api_tokens.rb +1 -1
  98. data/lib/platform_rest/utils.rb +1 -1
  99. data/lib/{losant_rest → platform_rest}/version.rb +3 -3
  100. data/lib/platform_rest/webhook.rb +1 -1
  101. data/lib/platform_rest/webhooks.rb +1 -1
  102. data/lib/platform_rest.rb +3 -1
  103. data/losant_rest.gemspec +2 -2
  104. data/schemas/apiTokenPost.json +9 -1
  105. data/schemas/auditLog.json +3 -2
  106. data/schemas/auditLogFilter.json +3 -2
  107. data/schemas/auditLogs.json +3 -2
  108. data/schemas/credential.json +50 -1
  109. data/schemas/credentialLinkedResources.json +81 -4
  110. data/schemas/credentialPatch.json +56 -0
  111. data/schemas/credentialPost.json +71 -1
  112. data/schemas/credentials.json +50 -1
  113. data/schemas/deviceConnectionStatus.json +6 -2
  114. data/schemas/devicesHistoricalImportPost.json +25 -0
  115. data/schemas/experienceLinkedResources.json +7 -5
  116. data/schemas/experienceView.json +1 -2
  117. data/schemas/experienceViewPatch.json +1 -2
  118. data/schemas/experienceViewPost.json +2 -4
  119. data/schemas/experienceViews.json +1 -2
  120. data/schemas/flow.json +2 -1
  121. data/schemas/flowPatch.json +2 -1
  122. data/schemas/flowPost.json +2 -1
  123. data/schemas/flowVersion.json +4 -2
  124. data/schemas/flowVersionPost.json +2 -1
  125. data/schemas/flowVersions.json +4 -2
  126. data/schemas/flows.json +2 -1
  127. data/schemas/flowsImportPost.json +4 -2
  128. data/schemas/flowsImportResult.json +6 -3
  129. data/schemas/githubLogin.json +9 -1
  130. data/schemas/instance.json +1 -4
  131. data/schemas/instanceAuditLog.json +94 -0
  132. data/schemas/instanceAuditLogFilter.json +106 -0
  133. data/schemas/instanceAuditLogs.json +41 -0
  134. data/schemas/instanceCustomNodePatch.json +2 -1
  135. data/schemas/instanceCustomNodePost.json +2 -1
  136. data/schemas/instanceOrgMember.json +4 -1
  137. data/schemas/instances.json +1 -4
  138. data/schemas/integration.json +75 -1
  139. data/schemas/integrationPatch.json +73 -0
  140. data/schemas/integrationPost.json +75 -1
  141. data/schemas/integrations.json +75 -1
  142. data/schemas/mePatch.json +18 -0
  143. data/schemas/samlResponse.json +9 -1
  144. data/schemas/userCredentials.json +9 -1
  145. data/schemas/userPost.json +9 -1
  146. data/test/basic_test.rb +6 -6
  147. data/test/test_helper.rb +1 -1
  148. metadata +11 -94
  149. data/lib/losant_rest/application.rb +0 -932
  150. data/lib/losant_rest/application_api_token.rb +0 -176
  151. data/lib/losant_rest/application_api_tokens.rb +0 -136
  152. data/lib/losant_rest/application_certificate.rb +0 -176
  153. data/lib/losant_rest/application_certificate_authorities.rb +0 -138
  154. data/lib/losant_rest/application_certificate_authority.rb +0 -176
  155. data/lib/losant_rest/application_certificates.rb +0 -138
  156. data/lib/losant_rest/application_dashboard.rb +0 -225
  157. data/lib/losant_rest/application_dashboards.rb +0 -138
  158. data/lib/losant_rest/application_key.rb +0 -176
  159. data/lib/losant_rest/application_keys.rb +0 -141
  160. data/lib/losant_rest/application_templates.rb +0 -176
  161. data/lib/losant_rest/applications.rb +0 -142
  162. data/lib/losant_rest/audit_log.rb +0 -81
  163. data/lib/losant_rest/auth.rb +0 -245
  164. data/lib/losant_rest/client.rb +0 -410
  165. data/lib/losant_rest/credential.rb +0 -224
  166. data/lib/losant_rest/credentials.rb +0 -138
  167. data/lib/losant_rest/dashboard.rb +0 -268
  168. data/lib/losant_rest/dashboards.rb +0 -136
  169. data/lib/losant_rest/data.rb +0 -176
  170. data/lib/losant_rest/data_table.rb +0 -274
  171. data/lib/losant_rest/data_table_row.rb +0 -182
  172. data/lib/losant_rest/data_table_rows.rb +0 -343
  173. data/lib/losant_rest/data_tables.rb +0 -138
  174. data/lib/losant_rest/device.rb +0 -749
  175. data/lib/losant_rest/device_recipe.rb +0 -234
  176. data/lib/losant_rest/device_recipes.rb +0 -146
  177. data/lib/losant_rest/devices.rb +0 -707
  178. data/lib/losant_rest/edge_deployment.rb +0 -81
  179. data/lib/losant_rest/edge_deployments.rb +0 -236
  180. data/lib/losant_rest/embedded_deployment.rb +0 -81
  181. data/lib/losant_rest/embedded_deployments.rb +0 -280
  182. data/lib/losant_rest/error.rb +0 -34
  183. data/lib/losant_rest/event.rb +0 -176
  184. data/lib/losant_rest/events.rb +0 -341
  185. data/lib/losant_rest/experience.rb +0 -142
  186. data/lib/losant_rest/experience_domain.rb +0 -176
  187. data/lib/losant_rest/experience_domains.rb +0 -126
  188. data/lib/losant_rest/experience_endpoint.rb +0 -230
  189. data/lib/losant_rest/experience_endpoints.rb +0 -200
  190. data/lib/losant_rest/experience_group.rb +0 -180
  191. data/lib/losant_rest/experience_groups.rb +0 -141
  192. data/lib/losant_rest/experience_slug.rb +0 -176
  193. data/lib/losant_rest/experience_slugs.rb +0 -126
  194. data/lib/losant_rest/experience_user.rb +0 -176
  195. data/lib/losant_rest/experience_users.rb +0 -142
  196. data/lib/losant_rest/experience_version.rb +0 -176
  197. data/lib/losant_rest/experience_versions.rb +0 -138
  198. data/lib/losant_rest/experience_view.rb +0 -228
  199. data/lib/losant_rest/experience_views.rb +0 -142
  200. data/lib/losant_rest/file.rb +0 -226
  201. data/lib/losant_rest/files.rb +0 -144
  202. data/lib/losant_rest/flow.rb +0 -580
  203. data/lib/losant_rest/flow_version.rb +0 -352
  204. data/lib/losant_rest/flow_versions.rb +0 -201
  205. data/lib/losant_rest/flows.rb +0 -310
  206. data/lib/losant_rest/instance.rb +0 -377
  207. data/lib/losant_rest/instance_api_token.rb +0 -176
  208. data/lib/losant_rest/instance_api_tokens.rb +0 -136
  209. data/lib/losant_rest/instance_custom_node.rb +0 -282
  210. data/lib/losant_rest/instance_custom_nodes.rb +0 -136
  211. data/lib/losant_rest/instance_member.rb +0 -176
  212. data/lib/losant_rest/instance_members.rb +0 -134
  213. data/lib/losant_rest/instance_org.rb +0 -336
  214. data/lib/losant_rest/instance_org_invite.rb +0 -182
  215. data/lib/losant_rest/instance_org_invites.rb +0 -138
  216. data/lib/losant_rest/instance_org_member.rb +0 -182
  217. data/lib/losant_rest/instance_org_members.rb +0 -138
  218. data/lib/losant_rest/instance_orgs.rb +0 -139
  219. data/lib/losant_rest/instance_sandbox.rb +0 -181
  220. data/lib/losant_rest/instance_sandboxes.rb +0 -98
  221. data/lib/losant_rest/instances.rb +0 -88
  222. data/lib/losant_rest/integration.rb +0 -178
  223. data/lib/losant_rest/integrations.rb +0 -138
  224. data/lib/losant_rest/me.rb +0 -790
  225. data/lib/losant_rest/notebook.rb +0 -423
  226. data/lib/losant_rest/notebooks.rb +0 -138
  227. data/lib/losant_rest/org.rb +0 -663
  228. data/lib/losant_rest/org_invites.rb +0 -124
  229. data/lib/losant_rest/orgs.rb +0 -140
  230. data/lib/losant_rest/resource_job.rb +0 -326
  231. data/lib/losant_rest/resource_jobs.rb +0 -138
  232. data/lib/losant_rest/user_api_token.rb +0 -170
  233. data/lib/losant_rest/user_api_tokens.rb +0 -132
  234. data/lib/losant_rest/utils.rb +0 -44
  235. data/lib/losant_rest/webhook.rb +0 -178
  236. data/lib/losant_rest/webhooks.rb +0 -138
  237. data/lib/losant_rest.rb +0 -129
@@ -174,7 +174,8 @@
174
174
  "webhook",
175
175
  "resourceJobIteration",
176
176
  "resourceJobIterationTimeout",
177
- "resourceJobComplete"
177
+ "resourceJobComplete",
178
+ "websocket"
178
179
  ]
179
180
  },
180
181
  "label": {
@@ -2898,7 +2899,8 @@
2898
2899
  "webhook",
2899
2900
  "resourceJobIteration",
2900
2901
  "resourceJobIterationTimeout",
2901
- "resourceJobComplete"
2902
+ "resourceJobComplete",
2903
+ "websocket"
2902
2904
  ]
2903
2905
  },
2904
2906
  "label": {
@@ -5582,7 +5584,8 @@
5582
5584
  "webhook",
5583
5585
  "resourceJobIteration",
5584
5586
  "resourceJobIterationTimeout",
5585
- "resourceJobComplete"
5587
+ "resourceJobComplete",
5588
+ "websocket"
5586
5589
  ]
5587
5590
  },
5588
5591
  "label": {
@@ -150,6 +150,7 @@
150
150
  "dataTableRows.truncate",
151
151
  "dataTables.get",
152
152
  "dataTables.post",
153
+ "device.agentLogs",
153
154
  "device.commandStream",
154
155
  "device.debug",
155
156
  "device.delete",
@@ -182,6 +183,7 @@
182
183
  "devices.export",
183
184
  "devices.get",
184
185
  "devices.getCompositeState",
186
+ "devices.historicalImport",
185
187
  "devices.payloadCounts",
186
188
  "devices.post",
187
189
  "devices.sendCommand",
@@ -202,6 +204,7 @@
202
204
  "event.get",
203
205
  "event.patch",
204
206
  "events.delete",
207
+ "events.detailedSummary",
205
208
  "events.get",
206
209
  "events.mostRecentBySeverity",
207
210
  "events.patch",
@@ -277,6 +280,7 @@
277
280
  "flows.palette",
278
281
  "flows.post",
279
282
  "flowVersion.delete",
283
+ "flowVersion.debug",
280
284
  "flowVersion.errors",
281
285
  "flowVersion.get",
282
286
  "flowVersion.log",
@@ -423,7 +427,11 @@
423
427
  "instanceSandbox.delete",
424
428
  "instanceSandbox.undelete",
425
429
  "instanceSandboxes.*",
426
- "instanceSandboxes.get"
430
+ "instanceSandboxes.get",
431
+ "instanceAuditLog.*",
432
+ "instanceAuditLog.get",
433
+ "instanceAuditLogs.*",
434
+ "instanceAuditLogs.get"
427
435
  ]
428
436
  },
429
437
  {
@@ -347,10 +347,7 @@
347
347
  "type": "string",
348
348
  "enum": [
349
349
  "admin",
350
- "edit",
351
- "collaborate",
352
- "view",
353
- "none"
350
+ "view"
354
351
  ]
355
352
  }
356
353
  }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "pattern": "^[A-Fa-f\\d]{24}$"
8
+ },
9
+ "instanceAuditLogId": {
10
+ "type": "string",
11
+ "pattern": "^[A-Fa-f\\d]{24}$"
12
+ },
13
+ "creationDate": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "instanceId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Fa-f\\d]{24}$"
20
+ },
21
+ "primaryTargetId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Fa-f\\d]{24}$"
24
+ },
25
+ "primaryTargetType": {
26
+ "type": "string",
27
+ "enum": [
28
+ "Organization",
29
+ "ApiToken",
30
+ "User",
31
+ "InstanceCustomNode"
32
+ ]
33
+ },
34
+ "primaryTargetName": {
35
+ "type": "string",
36
+ "maxLength": 1024
37
+ },
38
+ "secondaryTargetId": {
39
+ "type": "string",
40
+ "pattern": "^[A-Fa-f\\d]{24}$"
41
+ },
42
+ "secondaryTargetType": {
43
+ "type": "string",
44
+ "enum": [
45
+ "OrgInvite",
46
+ "ApiToken"
47
+ ]
48
+ },
49
+ "secondaryTargetName": {
50
+ "type": "string",
51
+ "maxLength": 1024
52
+ },
53
+ "actorId": {
54
+ "type": "string",
55
+ "pattern": "^[A-Fa-f\\d]{24}$"
56
+ },
57
+ "actorType": {
58
+ "type": "string",
59
+ "enum": [
60
+ "User",
61
+ "ApiToken"
62
+ ]
63
+ },
64
+ "actorName": {
65
+ "type": "string",
66
+ "maxLength": 1024
67
+ },
68
+ "requestResource": {
69
+ "type": "string",
70
+ "maxLength": 1024
71
+ },
72
+ "requestAction": {
73
+ "type": "string",
74
+ "maxLength": 1024
75
+ },
76
+ "requestQueryParams": {
77
+ "type": "object"
78
+ },
79
+ "requestBody": {
80
+ "type": "object"
81
+ },
82
+ "requestPathParams": {
83
+ "type": "object"
84
+ },
85
+ "responseBody": {
86
+ "type": "object"
87
+ },
88
+ "responseStatus": {
89
+ "type": "integer",
90
+ "minimum": 100,
91
+ "maximum": 599
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "primaryTarget": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "pattern": "^[A-Fa-f\\d]{24}$"
13
+ },
14
+ "type": {
15
+ "type": "string",
16
+ "enum": [
17
+ "Organization",
18
+ "ApiToken",
19
+ "User",
20
+ "InstanceCustomNode"
21
+ ]
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "maxLength": 1024
26
+ }
27
+ },
28
+ "additionalProperties": false
29
+ }
30
+ },
31
+ "secondaryTarget": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "id": {
37
+ "type": "string",
38
+ "pattern": "^[A-Fa-f\\d]{24}$"
39
+ },
40
+ "type": {
41
+ "type": "string",
42
+ "enum": [
43
+ "OrgInvite",
44
+ "ApiToken"
45
+ ]
46
+ },
47
+ "name": {
48
+ "type": "string",
49
+ "maxLength": 1024
50
+ }
51
+ },
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "actor": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string",
62
+ "pattern": "^[A-Fa-f\\d]{24}$"
63
+ },
64
+ "type": {
65
+ "type": "string",
66
+ "enum": [
67
+ "User",
68
+ "ApiToken"
69
+ ]
70
+ },
71
+ "name": {
72
+ "type": "string",
73
+ "maxLength": 1024
74
+ }
75
+ },
76
+ "additionalProperties": false
77
+ }
78
+ },
79
+ "request": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "properties": {
84
+ "resource": {
85
+ "type": "string",
86
+ "maxLength": 1024
87
+ },
88
+ "action": {
89
+ "type": "string",
90
+ "maxLength": 1024
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ }
95
+ },
96
+ "responseCode": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "integer",
100
+ "minimum": 100,
101
+ "maximum": 599
102
+ }
103
+ }
104
+ },
105
+ "additionalProperties": false
106
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/instanceAuditLogs"
9
+ }
10
+ },
11
+ "count": {
12
+ "type": "integer"
13
+ },
14
+ "totalCount": {
15
+ "type": "integer"
16
+ },
17
+ "perPage": {
18
+ "type": "integer"
19
+ },
20
+ "page": {
21
+ "type": "integer"
22
+ },
23
+ "sortField": {
24
+ "type": "string"
25
+ },
26
+ "sortDirection": {
27
+ "type": "string",
28
+ "enum": [
29
+ "asc",
30
+ "desc",
31
+ "ASC",
32
+ "DESC",
33
+ ""
34
+ ]
35
+ },
36
+ "instanceId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Fa-f\\d]{24}$"
39
+ }
40
+ }
41
+ }
@@ -113,7 +113,8 @@
113
113
  "webhook",
114
114
  "resourceJobIteration",
115
115
  "resourceJobIterationTimeout",
116
- "resourceJobComplete"
116
+ "resourceJobComplete",
117
+ "websocket"
117
118
  ]
118
119
  },
119
120
  "label": {
@@ -113,7 +113,8 @@
113
113
  "webhook",
114
114
  "resourceJobIteration",
115
115
  "resourceJobIterationTimeout",
116
- "resourceJobComplete"
116
+ "resourceJobComplete",
117
+ "websocket"
117
118
  ]
118
119
  },
119
120
  "label": {
@@ -32,7 +32,10 @@
32
32
  "type": "string",
33
33
  "enum": [
34
34
  "admin",
35
- "view"
35
+ "edit",
36
+ "collaborate",
37
+ "view",
38
+ "none"
36
39
  ]
37
40
  },
38
41
  "avatarUrl": {
@@ -354,10 +354,7 @@
354
354
  "type": "string",
355
355
  "enum": [
356
356
  "admin",
357
- "edit",
358
- "collaborate",
359
- "view",
360
- "none"
357
+ "view"
361
358
  ]
362
359
  }
363
360
  }
@@ -39,7 +39,8 @@
39
39
  "googlePubSub",
40
40
  "mqtt",
41
41
  "particle",
42
- "sqs"
42
+ "sqs",
43
+ "websocket"
43
44
  ]
44
45
  },
45
46
  "enabled": {
@@ -169,6 +170,13 @@
169
170
  },
170
171
  "disableSSLVerification": {
171
172
  "type": "boolean"
173
+ },
174
+ "protocolVersion": {
175
+ "type": "string",
176
+ "enum": [
177
+ "3.1.1",
178
+ "5"
179
+ ]
172
180
  }
173
181
  },
174
182
  "additionalProperties": false,
@@ -236,6 +244,72 @@
236
244
  "queueUrl"
237
245
  ]
238
246
  },
247
+ "websocketConfig": {
248
+ "type": "object",
249
+ "properties": {
250
+ "url": {
251
+ "type": "string",
252
+ "minLength": 1,
253
+ "maxLength": 1024
254
+ },
255
+ "disableSSLVerification": {
256
+ "type": "boolean"
257
+ },
258
+ "username": {
259
+ "type": "string",
260
+ "minLength": 1,
261
+ "maxLength": 1024
262
+ },
263
+ "password": {
264
+ "type": "string",
265
+ "minLength": 1,
266
+ "maxLength": 1024
267
+ },
268
+ "privateKey": {
269
+ "type": "string",
270
+ "maxLength": 32767,
271
+ "minLength": 4
272
+ },
273
+ "certificate": {
274
+ "type": "string",
275
+ "maxLength": 32767,
276
+ "minLength": 4
277
+ },
278
+ "caCertificate": {
279
+ "type": "string",
280
+ "maxLength": 32767,
281
+ "minLength": 4
282
+ },
283
+ "headers": {
284
+ "type": "array",
285
+ "maxItems": 50,
286
+ "items": {
287
+ "type": "object",
288
+ "properties": {
289
+ "headerKey": {
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 1024
293
+ },
294
+ "headerValue": {
295
+ "type": "string",
296
+ "minLength": 1,
297
+ "maxLength": 1024
298
+ }
299
+ },
300
+ "additionalProperties": false,
301
+ "required": [
302
+ "headerKey",
303
+ "headerValue"
304
+ ]
305
+ }
306
+ }
307
+ },
308
+ "additionalProperties": false,
309
+ "required": [
310
+ "url"
311
+ ]
312
+ },
239
313
  "status": {
240
314
  "lastKeepAlive": {
241
315
  "type": [
@@ -146,6 +146,13 @@
146
146
  },
147
147
  "disableSSLVerification": {
148
148
  "type": "boolean"
149
+ },
150
+ "protocolVersion": {
151
+ "type": "string",
152
+ "enum": [
153
+ "3.1.1",
154
+ "5"
155
+ ]
149
156
  }
150
157
  },
151
158
  "additionalProperties": false,
@@ -212,6 +219,72 @@
212
219
  "required": [
213
220
  "queueUrl"
214
221
  ]
222
+ },
223
+ "websocketConfig": {
224
+ "type": "object",
225
+ "properties": {
226
+ "url": {
227
+ "type": "string",
228
+ "minLength": 1,
229
+ "maxLength": 1024
230
+ },
231
+ "disableSSLVerification": {
232
+ "type": "boolean"
233
+ },
234
+ "username": {
235
+ "type": "string",
236
+ "minLength": 1,
237
+ "maxLength": 1024
238
+ },
239
+ "password": {
240
+ "type": "string",
241
+ "minLength": 1,
242
+ "maxLength": 1024
243
+ },
244
+ "privateKey": {
245
+ "type": "string",
246
+ "maxLength": 32767,
247
+ "minLength": 4
248
+ },
249
+ "certificate": {
250
+ "type": "string",
251
+ "maxLength": 32767,
252
+ "minLength": 4
253
+ },
254
+ "caCertificate": {
255
+ "type": "string",
256
+ "maxLength": 32767,
257
+ "minLength": 4
258
+ },
259
+ "headers": {
260
+ "type": "array",
261
+ "maxItems": 50,
262
+ "items": {
263
+ "type": "object",
264
+ "properties": {
265
+ "headerKey": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 1024
269
+ },
270
+ "headerValue": {
271
+ "type": "string",
272
+ "minLength": 1,
273
+ "maxLength": 1024
274
+ }
275
+ },
276
+ "additionalProperties": false,
277
+ "required": [
278
+ "headerKey",
279
+ "headerValue"
280
+ ]
281
+ }
282
+ }
283
+ },
284
+ "additionalProperties": false,
285
+ "required": [
286
+ "url"
287
+ ]
215
288
  }
216
289
  },
217
290
  "additionalProperties": false
@@ -14,7 +14,8 @@
14
14
  "googlePubSub",
15
15
  "mqtt",
16
16
  "particle",
17
- "sqs"
17
+ "sqs",
18
+ "websocket"
18
19
  ]
19
20
  },
20
21
  "enabled": {
@@ -149,6 +150,13 @@
149
150
  },
150
151
  "disableSSLVerification": {
151
152
  "type": "boolean"
153
+ },
154
+ "protocolVersion": {
155
+ "type": "string",
156
+ "enum": [
157
+ "3.1.1",
158
+ "5"
159
+ ]
152
160
  }
153
161
  },
154
162
  "additionalProperties": false,
@@ -215,6 +223,72 @@
215
223
  "required": [
216
224
  "queueUrl"
217
225
  ]
226
+ },
227
+ "websocketConfig": {
228
+ "type": "object",
229
+ "properties": {
230
+ "url": {
231
+ "type": "string",
232
+ "minLength": 1,
233
+ "maxLength": 1024
234
+ },
235
+ "disableSSLVerification": {
236
+ "type": "boolean"
237
+ },
238
+ "username": {
239
+ "type": "string",
240
+ "minLength": 1,
241
+ "maxLength": 1024
242
+ },
243
+ "password": {
244
+ "type": "string",
245
+ "minLength": 1,
246
+ "maxLength": 1024
247
+ },
248
+ "privateKey": {
249
+ "type": "string",
250
+ "maxLength": 32767,
251
+ "minLength": 4
252
+ },
253
+ "certificate": {
254
+ "type": "string",
255
+ "maxLength": 32767,
256
+ "minLength": 4
257
+ },
258
+ "caCertificate": {
259
+ "type": "string",
260
+ "maxLength": 32767,
261
+ "minLength": 4
262
+ },
263
+ "headers": {
264
+ "type": "array",
265
+ "maxItems": 50,
266
+ "items": {
267
+ "type": "object",
268
+ "properties": {
269
+ "headerKey": {
270
+ "type": "string",
271
+ "minLength": 1,
272
+ "maxLength": 1024
273
+ },
274
+ "headerValue": {
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "maxLength": 1024
278
+ }
279
+ },
280
+ "additionalProperties": false,
281
+ "required": [
282
+ "headerKey",
283
+ "headerValue"
284
+ ]
285
+ }
286
+ }
287
+ },
288
+ "additionalProperties": false,
289
+ "required": [
290
+ "url"
291
+ ]
218
292
  }
219
293
  },
220
294
  "additionalProperties": false,