losant_rest 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +140925 -67028
  3. data/docs/application.md +27 -27
  4. data/docs/applicationApiToken.md +1 -1
  5. data/docs/applicationApiTokens.md +1 -1
  6. data/docs/applicationCertificate.md +3 -3
  7. data/docs/applicationCertificateAuthorities.md +2 -2
  8. data/docs/applicationCertificateAuthority.md +3 -3
  9. data/docs/applicationCertificates.md +5 -4
  10. data/docs/applicationDashboard.md +5 -5
  11. data/docs/applicationDashboards.md +2 -2
  12. data/docs/applicationJobLog.md +1 -1
  13. data/docs/applicationJobLogs.md +1 -1
  14. data/docs/applicationKey.md +3 -3
  15. data/docs/applicationKeys.md +2 -2
  16. data/docs/applicationTemplate.md +1 -1
  17. data/docs/applicationTemplates.md +3 -3
  18. data/docs/applications.md +5 -5
  19. data/docs/auditLog.md +1 -1
  20. data/docs/auditLogs.md +1 -1
  21. data/docs/auth.md +1 -1
  22. data/docs/credential.md +4 -4
  23. data/docs/credentials.md +2 -2
  24. data/docs/dashboard.md +4 -4
  25. data/docs/dashboards.md +3 -2
  26. data/docs/data.md +3 -3
  27. data/docs/dataTable.md +5 -5
  28. data/docs/dataTableRow.md +4 -4
  29. data/docs/dataTableRows.md +9 -9
  30. data/docs/dataTables.md +2 -2
  31. data/docs/device.md +15 -15
  32. data/docs/deviceAttribute.md +3 -3
  33. data/docs/deviceAttributes.md +2 -2
  34. data/docs/deviceRecipe.md +4 -4
  35. data/docs/deviceRecipes.md +2 -2
  36. data/docs/devices.md +14 -14
  37. data/docs/edgeDeployment.md +1 -1
  38. data/docs/edgeDeployments.md +7 -7
  39. data/docs/embeddedDeployment.md +1 -1
  40. data/docs/embeddedDeployments.md +8 -8
  41. data/docs/event.md +3 -3
  42. data/docs/events.md +6 -6
  43. data/docs/experience.md +3 -3
  44. data/docs/experienceDomain.md +3 -3
  45. data/docs/experienceDomains.md +2 -2
  46. data/docs/experienceEndpoint.md +4 -4
  47. data/docs/experienceEndpoints.md +3 -3
  48. data/docs/experienceGroup.md +3 -3
  49. data/docs/experienceGroups.md +2 -2
  50. data/docs/experienceSlug.md +3 -3
  51. data/docs/experienceSlugs.md +2 -2
  52. data/docs/experienceUser.md +3 -3
  53. data/docs/experienceUsers.md +2 -2
  54. data/docs/experienceVersion.md +3 -3
  55. data/docs/experienceVersions.md +2 -2
  56. data/docs/experienceView.md +4 -4
  57. data/docs/experienceViews.md +2 -2
  58. data/docs/file.md +9 -9
  59. data/docs/files.md +3 -3
  60. data/docs/flow.md +11 -11
  61. data/docs/flowVersion.md +6 -6
  62. data/docs/flowVersions.md +4 -4
  63. data/docs/flows.md +5 -5
  64. data/docs/instance.md +8 -8
  65. data/docs/instanceApiToken.md +1 -1
  66. data/docs/instanceApiTokens.md +2 -2
  67. data/docs/instanceAuditLog.md +1 -1
  68. data/docs/instanceAuditLogs.md +1 -1
  69. data/docs/instanceCustomNode.md +5 -5
  70. data/docs/instanceCustomNodes.md +2 -2
  71. data/docs/instanceMember.md +2 -2
  72. data/docs/instanceMembers.md +1 -1
  73. data/docs/instanceNotificationRule.md +5 -5
  74. data/docs/instanceNotificationRules.md +2 -2
  75. data/docs/instanceOrg.md +8 -8
  76. data/docs/instanceOrgInvite.md +3 -3
  77. data/docs/instanceOrgInvites.md +2 -2
  78. data/docs/instanceOrgMember.md +1 -1
  79. data/docs/instanceOrgMembers.md +3 -2
  80. data/docs/instanceOrgs.md +3 -3
  81. data/docs/instanceSandbox.md +7 -7
  82. data/docs/instanceSandboxes.md +1 -1
  83. data/docs/instances.md +1 -1
  84. data/docs/integration.md +3 -3
  85. data/docs/integrations.md +2 -2
  86. data/docs/me.md +21 -21
  87. data/docs/notebook.md +10 -10
  88. data/docs/notebooks.md +2 -2
  89. data/docs/org.md +14 -14
  90. data/docs/orgs.md +2 -2
  91. data/docs/privateFile.md +9 -9
  92. data/docs/privateFiles.md +3 -3
  93. data/docs/resourceJob.md +8 -8
  94. data/docs/resourceJobs.md +2 -2
  95. data/docs/userApiToken.md +3 -3
  96. data/docs/userApiTokens.md +4 -4
  97. data/docs/userOauthToken.md +125 -0
  98. data/docs/userOauthTokens.md +87 -0
  99. data/docs/webhook.md +3 -3
  100. data/docs/webhooks.md +2 -2
  101. data/lib/platform_rest/application.rb +21 -21
  102. data/lib/platform_rest/application_api_token.rb +1 -1
  103. data/lib/platform_rest/application_api_tokens.rb +1 -1
  104. data/lib/platform_rest/application_certificate.rb +3 -3
  105. data/lib/platform_rest/application_certificate_authorities.rb +2 -2
  106. data/lib/platform_rest/application_certificate_authority.rb +3 -3
  107. data/lib/platform_rest/application_certificates.rb +7 -4
  108. data/lib/platform_rest/application_dashboard.rb +5 -5
  109. data/lib/platform_rest/application_dashboards.rb +2 -2
  110. data/lib/platform_rest/application_job_log.rb +1 -1
  111. data/lib/platform_rest/application_job_logs.rb +1 -1
  112. data/lib/platform_rest/application_key.rb +3 -3
  113. data/lib/platform_rest/application_keys.rb +2 -2
  114. data/lib/platform_rest/application_template.rb +1 -1
  115. data/lib/platform_rest/application_templates.rb +3 -3
  116. data/lib/platform_rest/applications.rb +3 -3
  117. data/lib/platform_rest/audit_log.rb +1 -1
  118. data/lib/platform_rest/audit_logs.rb +1 -1
  119. data/lib/platform_rest/client.rb +10 -2
  120. data/lib/platform_rest/credential.rb +4 -4
  121. data/lib/platform_rest/credentials.rb +2 -2
  122. data/lib/platform_rest/dashboard.rb +4 -4
  123. data/lib/platform_rest/dashboards.rb +3 -2
  124. data/lib/platform_rest/data.rb +3 -3
  125. data/lib/platform_rest/data_table.rb +5 -5
  126. data/lib/platform_rest/data_table_row.rb +4 -4
  127. data/lib/platform_rest/data_table_rows.rb +9 -9
  128. data/lib/platform_rest/data_tables.rb +2 -2
  129. data/lib/platform_rest/device.rb +15 -15
  130. data/lib/platform_rest/device_attribute.rb +3 -3
  131. data/lib/platform_rest/device_attributes.rb +2 -2
  132. data/lib/platform_rest/device_recipe.rb +4 -4
  133. data/lib/platform_rest/device_recipes.rb +2 -2
  134. data/lib/platform_rest/devices.rb +14 -14
  135. data/lib/platform_rest/edge_deployment.rb +1 -1
  136. data/lib/platform_rest/edge_deployments.rb +7 -7
  137. data/lib/platform_rest/embedded_deployment.rb +1 -1
  138. data/lib/platform_rest/embedded_deployments.rb +8 -8
  139. data/lib/platform_rest/event.rb +3 -3
  140. data/lib/platform_rest/events.rb +6 -6
  141. data/lib/platform_rest/experience.rb +3 -3
  142. data/lib/platform_rest/experience_domain.rb +3 -3
  143. data/lib/platform_rest/experience_domains.rb +2 -2
  144. data/lib/platform_rest/experience_endpoint.rb +4 -4
  145. data/lib/platform_rest/experience_endpoints.rb +3 -3
  146. data/lib/platform_rest/experience_group.rb +3 -3
  147. data/lib/platform_rest/experience_groups.rb +2 -2
  148. data/lib/platform_rest/experience_slug.rb +3 -3
  149. data/lib/platform_rest/experience_slugs.rb +2 -2
  150. data/lib/platform_rest/experience_user.rb +3 -3
  151. data/lib/platform_rest/experience_users.rb +2 -2
  152. data/lib/platform_rest/experience_version.rb +3 -3
  153. data/lib/platform_rest/experience_versions.rb +2 -2
  154. data/lib/platform_rest/experience_view.rb +4 -4
  155. data/lib/platform_rest/experience_views.rb +2 -2
  156. data/lib/platform_rest/file.rb +6 -6
  157. data/lib/platform_rest/files.rb +2 -2
  158. data/lib/platform_rest/flow.rb +11 -11
  159. data/lib/platform_rest/flow_version.rb +6 -6
  160. data/lib/platform_rest/flow_versions.rb +3 -3
  161. data/lib/platform_rest/flows.rb +5 -5
  162. data/lib/platform_rest/instance.rb +8 -8
  163. data/lib/platform_rest/instance_api_token.rb +1 -1
  164. data/lib/platform_rest/instance_api_tokens.rb +2 -2
  165. data/lib/platform_rest/instance_audit_log.rb +1 -1
  166. data/lib/platform_rest/instance_audit_logs.rb +1 -1
  167. data/lib/platform_rest/instance_custom_node.rb +5 -5
  168. data/lib/platform_rest/instance_custom_nodes.rb +2 -2
  169. data/lib/platform_rest/instance_member.rb +2 -2
  170. data/lib/platform_rest/instance_members.rb +1 -1
  171. data/lib/platform_rest/instance_notification_rule.rb +5 -5
  172. data/lib/platform_rest/instance_notification_rules.rb +2 -2
  173. data/lib/platform_rest/instance_org.rb +8 -8
  174. data/lib/platform_rest/instance_org_invite.rb +3 -3
  175. data/lib/platform_rest/instance_org_invites.rb +3 -3
  176. data/lib/platform_rest/instance_org_member.rb +1 -1
  177. data/lib/platform_rest/instance_org_members.rb +3 -2
  178. data/lib/platform_rest/instance_orgs.rb +3 -3
  179. data/lib/platform_rest/instance_sandbox.rb +7 -7
  180. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  181. data/lib/platform_rest/instances.rb +1 -1
  182. data/lib/platform_rest/integration.rb +3 -3
  183. data/lib/platform_rest/integrations.rb +2 -2
  184. data/lib/platform_rest/me.rb +21 -21
  185. data/lib/platform_rest/notebook.rb +9 -9
  186. data/lib/platform_rest/notebooks.rb +2 -2
  187. data/lib/platform_rest/org.rb +14 -14
  188. data/lib/platform_rest/orgs.rb +2 -2
  189. data/lib/platform_rest/private_file.rb +6 -6
  190. data/lib/platform_rest/private_files.rb +2 -2
  191. data/lib/platform_rest/resource_job.rb +8 -8
  192. data/lib/platform_rest/resource_jobs.rb +2 -2
  193. data/lib/platform_rest/user_api_token.rb +3 -3
  194. data/lib/platform_rest/user_api_tokens.rb +4 -4
  195. data/lib/platform_rest/user_oauth_token.rb +170 -0
  196. data/lib/platform_rest/user_oauth_tokens.rb +132 -0
  197. data/lib/platform_rest/version.rb +1 -1
  198. data/lib/platform_rest/webhook.rb +3 -3
  199. data/lib/platform_rest/webhooks.rb +2 -2
  200. data/lib/platform_rest.rb +2 -0
  201. data/schemas/advancedApplicationCertQuery.json +1885 -0
  202. data/schemas/advancedApplicationKeyQuery.json +763 -763
  203. data/schemas/apiToken.json +110 -1
  204. data/schemas/apiTokenPatch.json +100 -0
  205. data/schemas/apiTokenPost.json +118 -0
  206. data/schemas/apiTokens.json +120 -2
  207. data/schemas/application.json +15 -2
  208. data/schemas/applicationCertificate.json +90 -58
  209. data/schemas/applicationCertificateAuthorities.json +24 -0
  210. data/schemas/applicationCertificateAuthority.json +24 -0
  211. data/schemas/applicationCertificatePatch.json +32 -4
  212. data/schemas/applicationCertificatePost.json +28 -30
  213. data/schemas/applicationCertificates.json +90 -58
  214. data/schemas/applicationCreationByTemplateResult.json +15 -2
  215. data/schemas/applicationDashboardPost.json +183 -128
  216. data/schemas/applicationImportExecutions.json +3 -5
  217. data/schemas/applicationImportResult.json +674 -0
  218. data/schemas/applicationJobLog.json +129 -123
  219. data/schemas/applicationJobLogs.json +129 -123
  220. data/schemas/applicationKey.json +41 -41
  221. data/schemas/applicationKeyPatch.json +4 -4
  222. data/schemas/applicationKeyPost.json +36 -29
  223. data/schemas/applicationKeys.json +41 -41
  224. data/schemas/applicationSearchResult.json +10 -10
  225. data/schemas/applicationTemplates.json +9 -2
  226. data/schemas/applications.json +15 -2
  227. data/schemas/auditLog.json +2 -6
  228. data/schemas/auditLogs.json +2 -6
  229. data/schemas/authedDevice.json +3 -0
  230. data/schemas/credential.json +7 -0
  231. data/schemas/credentialLinkedResources.json +19724 -344
  232. data/schemas/credentialPatch.json +3 -0
  233. data/schemas/credentialPost.json +3 -0
  234. data/schemas/credentials.json +7 -0
  235. data/schemas/dashboard.json +203 -128
  236. data/schemas/dashboardBlockSuggestCodePost.json +19 -0
  237. data/schemas/dashboardPatch.json +183 -128
  238. data/schemas/dashboardPost.json +183 -128
  239. data/schemas/dashboardUpdateEventsResult.json +266 -0
  240. data/schemas/dashboards.json +203 -128
  241. data/schemas/dataTable.json +11 -0
  242. data/schemas/dataTableRowPatch.json +16 -0
  243. data/schemas/dataTableRowPost.json +39 -0
  244. data/schemas/dataTableRowPostResult.json +54 -0
  245. data/schemas/dataTables.json +11 -0
  246. data/schemas/device.json +259 -107
  247. data/schemas/deviceConnectionStatus.json +4 -0
  248. data/schemas/deviceLog.json +3 -0
  249. data/schemas/deviceRecipe.json +259 -108
  250. data/schemas/deviceRecipes.json +259 -108
  251. data/schemas/devices.json +287 -116
  252. data/schemas/edgeDeploymentRelease.json +4252 -39
  253. data/schemas/edgeDeployments.json +28 -0
  254. data/schemas/embeddedDeploymentRelease.json +2073 -0
  255. data/schemas/embeddedDeployments.json +25 -0
  256. data/schemas/error.json +14 -0
  257. data/schemas/event.json +4 -1
  258. data/schemas/eventPlusNewCount.json +4 -1
  259. data/schemas/events.json +4 -1
  260. data/schemas/experienceDomains.json +19 -0
  261. data/schemas/experienceEndpoint.json +19 -0
  262. data/schemas/experienceEndpoints.json +24 -0
  263. data/schemas/experienceLinkedResources.json +19728 -313
  264. data/schemas/experienceSlugs.json +19 -0
  265. data/schemas/experienceUsers.json +16 -2
  266. data/schemas/experienceVersions.json +25 -0
  267. data/schemas/experienceView.json +5 -0
  268. data/schemas/experienceViews.json +10 -0
  269. data/schemas/fileUploadPostResponse.json +92 -103
  270. data/schemas/files.json +5 -1
  271. data/schemas/flow.json +211 -46
  272. data/schemas/flowPatch.json +199 -46
  273. data/schemas/flowPost.json +199 -46
  274. data/schemas/flowStorageMetadata.json +2 -2
  275. data/schemas/flowVersion.json +450 -101
  276. data/schemas/flowVersionPost.json +199 -46
  277. data/schemas/flowVersions.json +9903 -113
  278. data/schemas/flows.json +9637 -46
  279. data/schemas/flowsImportPost.json +398 -92
  280. data/schemas/flowsImportResult.json +661 -147
  281. data/schemas/githubLogin.json +18 -0
  282. data/schemas/historicalSummaries.json +3 -2
  283. data/schemas/historicalSummary.json +3 -2
  284. data/schemas/instanceAuditLog.json +2 -6
  285. data/schemas/instanceAuditLogs.json +90 -1
  286. data/schemas/instanceCustomNode.json +41 -2
  287. data/schemas/instanceCustomNodePatch.json +59 -6
  288. data/schemas/instanceCustomNodePost.json +59 -6
  289. data/schemas/instanceCustomNodes.json +41 -2
  290. data/schemas/instanceOrg.json +4 -1
  291. data/schemas/instanceOrgInvite.json +102 -0
  292. data/schemas/instanceOrgInviteSent.json +12 -0
  293. data/schemas/instanceOrgInvites.json +145 -0
  294. data/schemas/instanceOrgMember.json +52 -0
  295. data/schemas/instanceOrgMemberPatch.json +2 -2
  296. data/schemas/instanceOrgMemberPost.json +4 -4
  297. data/schemas/instanceOrgMembers.json +105 -1
  298. data/schemas/instanceOrgPost.json +5 -5
  299. data/schemas/instanceOrgs.json +5 -2
  300. data/schemas/instanceSandbox.json +5 -1
  301. data/schemas/instanceSandboxes.json +9 -1
  302. data/schemas/integration.json +38 -39
  303. data/schemas/integrationPatch.json +8 -8
  304. data/schemas/integrationPost.json +8 -8
  305. data/schemas/integrations.json +38 -39
  306. data/schemas/jobEnqueuedResult.json +1 -1
  307. data/schemas/me.json +685 -88
  308. data/schemas/notebook.json +33 -21
  309. data/schemas/notebookExecutionLogs.json +20 -0
  310. data/schemas/notebookMinuteCounts.json +1 -1
  311. data/schemas/notebookPatch.json +29 -21
  312. data/schemas/notebookPost.json +29 -21
  313. data/schemas/notebooks.json +33 -21
  314. data/schemas/notificationRule.json +4 -0
  315. data/schemas/notificationRules.json +8 -0
  316. data/schemas/oauthClient.json +107 -0
  317. data/schemas/oauthClientPost.json +89 -0
  318. data/schemas/oauthDcrError.json +23 -0
  319. data/schemas/oauthError.json +31 -0
  320. data/schemas/org.json +16 -3
  321. data/schemas/orgInvite.json +2 -2
  322. data/schemas/orgInviteCollection.json +2 -2
  323. data/schemas/orgInvitePost.json +2 -2
  324. data/schemas/orgInvites.json +77 -82
  325. data/schemas/orgInvitesUser.json +44 -47
  326. data/schemas/orgMemberPatch.json +2 -2
  327. data/schemas/orgRoleInfo.json +2 -2
  328. data/schemas/orgs.json +16 -3
  329. data/schemas/paletteResponse.json +372 -364
  330. data/schemas/periodSummaries.json +1 -1
  331. data/schemas/recentItemList.json +226 -27
  332. data/schemas/resourceJob.json +33 -9
  333. data/schemas/resourceJobExecutionLogs.json +34 -20
  334. data/schemas/resourceJobExecutionOptions.json +1 -1
  335. data/schemas/resourceJobPatch.json +9 -9
  336. data/schemas/resourceJobPost.json +9 -9
  337. data/schemas/resourceJobs.json +33 -9
  338. data/schemas/samlResponse.json +18 -0
  339. data/schemas/tagValuesResponse.json +1 -2
  340. data/schemas/templateKeywords.json +1 -0
  341. data/schemas/timeSeriesData.json +36 -4
  342. data/schemas/userCredentials.json +18 -0
  343. data/schemas/userOauthToken.json +210 -0
  344. data/schemas/userOauthTokenPatch.json +123 -0
  345. data/schemas/userOauthTokenPost.json +197 -0
  346. data/schemas/userOauthTokens.json +251 -0
  347. data/schemas/userPost.json +18 -0
  348. data/schemas/validateContextError.json +71 -24
  349. data/schemas/validateContextSuccess.json +71 -24
  350. metadata +22 -1
data/schemas/me.json CHANGED
@@ -194,115 +194,712 @@
194
194
  "title": "Recent Item List",
195
195
  "description": "Schema for an array of recent items",
196
196
  "type": "object",
197
- "properties": {
198
- "itemType": {
199
- "type": "string",
200
- "enum": [
201
- "application",
202
- "device",
203
- "flow",
204
- "dashboard",
205
- "organization"
206
- ]
207
- },
208
- "parentId": {
209
- "type": "string",
210
- "pattern": "^[A-Fa-f\\d]{24}$"
211
- },
212
- "items": {
213
- "type": "array",
214
- "items": {
215
- "type": "object",
216
- "properties": {
217
- "id": {
218
- "type": "string",
219
- "pattern": "^[A-Fa-f\\d]{24}$"
220
- },
221
- "name": {
222
- "type": "string",
223
- "minLength": 1,
224
- "maxLength": 255
197
+ "oneOf": [
198
+ {
199
+ "properties": {
200
+ "itemType": {
201
+ "type": "string",
202
+ "enum": [
203
+ "device"
204
+ ]
205
+ },
206
+ "parentId": {
207
+ "type": "string",
208
+ "pattern": "^[A-Fa-f\\d]{24}$"
209
+ },
210
+ "items": {
211
+ "type": "array",
212
+ "items": {
213
+ "type": "object",
214
+ "properties": {
215
+ "id": {
216
+ "type": "string",
217
+ "pattern": "^[A-Fa-f\\d]{24}$"
218
+ },
219
+ "name": {
220
+ "type": "string",
221
+ "minLength": 1,
222
+ "maxLength": 255
223
+ },
224
+ "deviceClass": {
225
+ "type": "string",
226
+ "enum": [
227
+ "standalone",
228
+ "gateway",
229
+ "peripheral",
230
+ "floating",
231
+ "edgeCompute",
232
+ "system",
233
+ "embedded"
234
+ ]
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "properties": {
243
+ "itemType": {
244
+ "type": "string",
245
+ "enum": [
246
+ "flow"
247
+ ]
248
+ },
249
+ "parentId": {
250
+ "type": "string",
251
+ "pattern": "^[A-Fa-f\\d]{24}$"
252
+ },
253
+ "items": {
254
+ "type": "array",
255
+ "items": {
256
+ "type": "object",
257
+ "properties": {
258
+ "id": {
259
+ "type": "string",
260
+ "pattern": "^[A-Fa-f\\d]{24}$"
261
+ },
262
+ "name": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 255
266
+ },
267
+ "flowClass": {
268
+ "type": "string",
269
+ "enum": [
270
+ "cloud",
271
+ "edge",
272
+ "embedded",
273
+ "experience",
274
+ "customNode"
275
+ ]
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "properties": {
284
+ "itemType": {
285
+ "type": "string",
286
+ "enum": [
287
+ "application"
288
+ ]
289
+ },
290
+ "parentId": {
291
+ "type": "string",
292
+ "pattern": "^[A-Fa-f\\d]{24}$"
293
+ },
294
+ "items": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "properties": {
299
+ "id": {
300
+ "type": "string",
301
+ "pattern": "^[A-Fa-f\\d]{24}$"
302
+ },
303
+ "name": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 255
307
+ },
308
+ "ownerId": {
309
+ "type": "string",
310
+ "pattern": "^[A-Fa-f\\d]{24}$"
311
+ },
312
+ "ownerType": {
313
+ "type": "string",
314
+ "enum": [
315
+ "user",
316
+ "organization"
317
+ ]
318
+ },
319
+ "ownerName": {
320
+ "type": "string",
321
+ "minLength": 1,
322
+ "maxLength": 255
323
+ },
324
+ "iconColor": {
325
+ "type": "string",
326
+ "maxLength": 64
327
+ }
328
+ }
329
+ }
330
+ }
331
+ }
332
+ },
333
+ {
334
+ "properties": {
335
+ "itemType": {
336
+ "type": "string",
337
+ "enum": [
338
+ "dashboard"
339
+ ]
340
+ },
341
+ "parentId": {
342
+ "type": "string",
343
+ "pattern": "^[A-Fa-f\\d]{24}$"
344
+ },
345
+ "items": {
346
+ "type": "array",
347
+ "items": {
348
+ "type": "object",
349
+ "properties": {
350
+ "id": {
351
+ "type": "string",
352
+ "pattern": "^[A-Fa-f\\d]{24}$"
353
+ },
354
+ "name": {
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "maxLength": 255
358
+ },
359
+ "ownerId": {
360
+ "type": "string",
361
+ "pattern": "^[A-Fa-f\\d]{24}$"
362
+ },
363
+ "ownerType": {
364
+ "type": "string",
365
+ "enum": [
366
+ "user",
367
+ "organization"
368
+ ]
369
+ },
370
+ "ownerName": {
371
+ "type": "string",
372
+ "minLength": 1,
373
+ "maxLength": 255
374
+ },
375
+ "iconColor": {
376
+ "type": "string",
377
+ "maxLength": 64
378
+ },
379
+ "applicationId": {
380
+ "type": "string",
381
+ "pattern": "^[A-Fa-f\\d]{24}$"
382
+ },
383
+ "applicationName": {
384
+ "type": "string",
385
+ "minLength": 1,
386
+ "maxLength": 255
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+ },
393
+ {
394
+ "properties": {
395
+ "itemType": {
396
+ "type": "string",
397
+ "enum": [
398
+ "organization"
399
+ ]
400
+ },
401
+ "parentId": {
402
+ "type": "string",
403
+ "pattern": "^[A-Fa-f\\d]{24}$"
404
+ },
405
+ "items": {
406
+ "type": "array",
407
+ "items": {
408
+ "type": "object",
409
+ "properties": {
410
+ "id": {
411
+ "type": "string",
412
+ "pattern": "^[A-Fa-f\\d]{24}$"
413
+ },
414
+ "name": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 255
418
+ },
419
+ "iconColor": {
420
+ "type": "string",
421
+ "maxLength": 64
422
+ }
423
+ }
225
424
  }
226
425
  }
227
426
  }
228
427
  }
229
- }
428
+ ]
230
429
  },
231
430
  "recentApplications": {
232
431
  "title": "Recent Item List",
233
432
  "description": "Schema for an array of recent items",
234
433
  "type": "object",
235
- "properties": {
236
- "itemType": {
237
- "type": "string",
238
- "enum": [
239
- "application",
240
- "device",
241
- "flow",
242
- "dashboard",
243
- "organization"
244
- ]
245
- },
246
- "parentId": {
247
- "type": "string",
248
- "pattern": "^[A-Fa-f\\d]{24}$"
249
- },
250
- "items": {
251
- "type": "array",
252
- "items": {
253
- "type": "object",
254
- "properties": {
255
- "id": {
256
- "type": "string",
257
- "pattern": "^[A-Fa-f\\d]{24}$"
258
- },
259
- "name": {
260
- "type": "string",
261
- "minLength": 1,
262
- "maxLength": 255
434
+ "oneOf": [
435
+ {
436
+ "properties": {
437
+ "itemType": {
438
+ "type": "string",
439
+ "enum": [
440
+ "device"
441
+ ]
442
+ },
443
+ "parentId": {
444
+ "type": "string",
445
+ "pattern": "^[A-Fa-f\\d]{24}$"
446
+ },
447
+ "items": {
448
+ "type": "array",
449
+ "items": {
450
+ "type": "object",
451
+ "properties": {
452
+ "id": {
453
+ "type": "string",
454
+ "pattern": "^[A-Fa-f\\d]{24}$"
455
+ },
456
+ "name": {
457
+ "type": "string",
458
+ "minLength": 1,
459
+ "maxLength": 255
460
+ },
461
+ "deviceClass": {
462
+ "type": "string",
463
+ "enum": [
464
+ "standalone",
465
+ "gateway",
466
+ "peripheral",
467
+ "floating",
468
+ "edgeCompute",
469
+ "system",
470
+ "embedded"
471
+ ]
472
+ }
473
+ }
474
+ }
475
+ }
476
+ }
477
+ },
478
+ {
479
+ "properties": {
480
+ "itemType": {
481
+ "type": "string",
482
+ "enum": [
483
+ "flow"
484
+ ]
485
+ },
486
+ "parentId": {
487
+ "type": "string",
488
+ "pattern": "^[A-Fa-f\\d]{24}$"
489
+ },
490
+ "items": {
491
+ "type": "array",
492
+ "items": {
493
+ "type": "object",
494
+ "properties": {
495
+ "id": {
496
+ "type": "string",
497
+ "pattern": "^[A-Fa-f\\d]{24}$"
498
+ },
499
+ "name": {
500
+ "type": "string",
501
+ "minLength": 1,
502
+ "maxLength": 255
503
+ },
504
+ "flowClass": {
505
+ "type": "string",
506
+ "enum": [
507
+ "cloud",
508
+ "edge",
509
+ "embedded",
510
+ "experience",
511
+ "customNode"
512
+ ]
513
+ }
514
+ }
515
+ }
516
+ }
517
+ }
518
+ },
519
+ {
520
+ "properties": {
521
+ "itemType": {
522
+ "type": "string",
523
+ "enum": [
524
+ "application"
525
+ ]
526
+ },
527
+ "parentId": {
528
+ "type": "string",
529
+ "pattern": "^[A-Fa-f\\d]{24}$"
530
+ },
531
+ "items": {
532
+ "type": "array",
533
+ "items": {
534
+ "type": "object",
535
+ "properties": {
536
+ "id": {
537
+ "type": "string",
538
+ "pattern": "^[A-Fa-f\\d]{24}$"
539
+ },
540
+ "name": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 255
544
+ },
545
+ "ownerId": {
546
+ "type": "string",
547
+ "pattern": "^[A-Fa-f\\d]{24}$"
548
+ },
549
+ "ownerType": {
550
+ "type": "string",
551
+ "enum": [
552
+ "user",
553
+ "organization"
554
+ ]
555
+ },
556
+ "ownerName": {
557
+ "type": "string",
558
+ "minLength": 1,
559
+ "maxLength": 255
560
+ },
561
+ "iconColor": {
562
+ "type": "string",
563
+ "maxLength": 64
564
+ }
565
+ }
566
+ }
567
+ }
568
+ }
569
+ },
570
+ {
571
+ "properties": {
572
+ "itemType": {
573
+ "type": "string",
574
+ "enum": [
575
+ "dashboard"
576
+ ]
577
+ },
578
+ "parentId": {
579
+ "type": "string",
580
+ "pattern": "^[A-Fa-f\\d]{24}$"
581
+ },
582
+ "items": {
583
+ "type": "array",
584
+ "items": {
585
+ "type": "object",
586
+ "properties": {
587
+ "id": {
588
+ "type": "string",
589
+ "pattern": "^[A-Fa-f\\d]{24}$"
590
+ },
591
+ "name": {
592
+ "type": "string",
593
+ "minLength": 1,
594
+ "maxLength": 255
595
+ },
596
+ "ownerId": {
597
+ "type": "string",
598
+ "pattern": "^[A-Fa-f\\d]{24}$"
599
+ },
600
+ "ownerType": {
601
+ "type": "string",
602
+ "enum": [
603
+ "user",
604
+ "organization"
605
+ ]
606
+ },
607
+ "ownerName": {
608
+ "type": "string",
609
+ "minLength": 1,
610
+ "maxLength": 255
611
+ },
612
+ "iconColor": {
613
+ "type": "string",
614
+ "maxLength": 64
615
+ },
616
+ "applicationId": {
617
+ "type": "string",
618
+ "pattern": "^[A-Fa-f\\d]{24}$"
619
+ },
620
+ "applicationName": {
621
+ "type": "string",
622
+ "minLength": 1,
623
+ "maxLength": 255
624
+ }
625
+ }
626
+ }
627
+ }
628
+ }
629
+ },
630
+ {
631
+ "properties": {
632
+ "itemType": {
633
+ "type": "string",
634
+ "enum": [
635
+ "organization"
636
+ ]
637
+ },
638
+ "parentId": {
639
+ "type": "string",
640
+ "pattern": "^[A-Fa-f\\d]{24}$"
641
+ },
642
+ "items": {
643
+ "type": "array",
644
+ "items": {
645
+ "type": "object",
646
+ "properties": {
647
+ "id": {
648
+ "type": "string",
649
+ "pattern": "^[A-Fa-f\\d]{24}$"
650
+ },
651
+ "name": {
652
+ "type": "string",
653
+ "minLength": 1,
654
+ "maxLength": 255
655
+ },
656
+ "iconColor": {
657
+ "type": "string",
658
+ "maxLength": 64
659
+ }
660
+ }
263
661
  }
264
662
  }
265
663
  }
266
664
  }
267
- }
665
+ ]
268
666
  },
269
667
  "recentOrganizations": {
270
668
  "title": "Recent Item List",
271
669
  "description": "Schema for an array of recent items",
272
670
  "type": "object",
273
- "properties": {
274
- "itemType": {
275
- "type": "string",
276
- "enum": [
277
- "application",
278
- "device",
279
- "flow",
280
- "dashboard",
281
- "organization"
282
- ]
283
- },
284
- "parentId": {
285
- "type": "string",
286
- "pattern": "^[A-Fa-f\\d]{24}$"
287
- },
288
- "items": {
289
- "type": "array",
290
- "items": {
291
- "type": "object",
292
- "properties": {
293
- "id": {
294
- "type": "string",
295
- "pattern": "^[A-Fa-f\\d]{24}$"
296
- },
297
- "name": {
298
- "type": "string",
299
- "minLength": 1,
300
- "maxLength": 255
671
+ "oneOf": [
672
+ {
673
+ "properties": {
674
+ "itemType": {
675
+ "type": "string",
676
+ "enum": [
677
+ "device"
678
+ ]
679
+ },
680
+ "parentId": {
681
+ "type": "string",
682
+ "pattern": "^[A-Fa-f\\d]{24}$"
683
+ },
684
+ "items": {
685
+ "type": "array",
686
+ "items": {
687
+ "type": "object",
688
+ "properties": {
689
+ "id": {
690
+ "type": "string",
691
+ "pattern": "^[A-Fa-f\\d]{24}$"
692
+ },
693
+ "name": {
694
+ "type": "string",
695
+ "minLength": 1,
696
+ "maxLength": 255
697
+ },
698
+ "deviceClass": {
699
+ "type": "string",
700
+ "enum": [
701
+ "standalone",
702
+ "gateway",
703
+ "peripheral",
704
+ "floating",
705
+ "edgeCompute",
706
+ "system",
707
+ "embedded"
708
+ ]
709
+ }
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
715
+ {
716
+ "properties": {
717
+ "itemType": {
718
+ "type": "string",
719
+ "enum": [
720
+ "flow"
721
+ ]
722
+ },
723
+ "parentId": {
724
+ "type": "string",
725
+ "pattern": "^[A-Fa-f\\d]{24}$"
726
+ },
727
+ "items": {
728
+ "type": "array",
729
+ "items": {
730
+ "type": "object",
731
+ "properties": {
732
+ "id": {
733
+ "type": "string",
734
+ "pattern": "^[A-Fa-f\\d]{24}$"
735
+ },
736
+ "name": {
737
+ "type": "string",
738
+ "minLength": 1,
739
+ "maxLength": 255
740
+ },
741
+ "flowClass": {
742
+ "type": "string",
743
+ "enum": [
744
+ "cloud",
745
+ "edge",
746
+ "embedded",
747
+ "experience",
748
+ "customNode"
749
+ ]
750
+ }
751
+ }
752
+ }
753
+ }
754
+ }
755
+ },
756
+ {
757
+ "properties": {
758
+ "itemType": {
759
+ "type": "string",
760
+ "enum": [
761
+ "application"
762
+ ]
763
+ },
764
+ "parentId": {
765
+ "type": "string",
766
+ "pattern": "^[A-Fa-f\\d]{24}$"
767
+ },
768
+ "items": {
769
+ "type": "array",
770
+ "items": {
771
+ "type": "object",
772
+ "properties": {
773
+ "id": {
774
+ "type": "string",
775
+ "pattern": "^[A-Fa-f\\d]{24}$"
776
+ },
777
+ "name": {
778
+ "type": "string",
779
+ "minLength": 1,
780
+ "maxLength": 255
781
+ },
782
+ "ownerId": {
783
+ "type": "string",
784
+ "pattern": "^[A-Fa-f\\d]{24}$"
785
+ },
786
+ "ownerType": {
787
+ "type": "string",
788
+ "enum": [
789
+ "user",
790
+ "organization"
791
+ ]
792
+ },
793
+ "ownerName": {
794
+ "type": "string",
795
+ "minLength": 1,
796
+ "maxLength": 255
797
+ },
798
+ "iconColor": {
799
+ "type": "string",
800
+ "maxLength": 64
801
+ }
802
+ }
803
+ }
804
+ }
805
+ }
806
+ },
807
+ {
808
+ "properties": {
809
+ "itemType": {
810
+ "type": "string",
811
+ "enum": [
812
+ "dashboard"
813
+ ]
814
+ },
815
+ "parentId": {
816
+ "type": "string",
817
+ "pattern": "^[A-Fa-f\\d]{24}$"
818
+ },
819
+ "items": {
820
+ "type": "array",
821
+ "items": {
822
+ "type": "object",
823
+ "properties": {
824
+ "id": {
825
+ "type": "string",
826
+ "pattern": "^[A-Fa-f\\d]{24}$"
827
+ },
828
+ "name": {
829
+ "type": "string",
830
+ "minLength": 1,
831
+ "maxLength": 255
832
+ },
833
+ "ownerId": {
834
+ "type": "string",
835
+ "pattern": "^[A-Fa-f\\d]{24}$"
836
+ },
837
+ "ownerType": {
838
+ "type": "string",
839
+ "enum": [
840
+ "user",
841
+ "organization"
842
+ ]
843
+ },
844
+ "ownerName": {
845
+ "type": "string",
846
+ "minLength": 1,
847
+ "maxLength": 255
848
+ },
849
+ "iconColor": {
850
+ "type": "string",
851
+ "maxLength": 64
852
+ },
853
+ "applicationId": {
854
+ "type": "string",
855
+ "pattern": "^[A-Fa-f\\d]{24}$"
856
+ },
857
+ "applicationName": {
858
+ "type": "string",
859
+ "minLength": 1,
860
+ "maxLength": 255
861
+ }
862
+ }
863
+ }
864
+ }
865
+ }
866
+ },
867
+ {
868
+ "properties": {
869
+ "itemType": {
870
+ "type": "string",
871
+ "enum": [
872
+ "organization"
873
+ ]
874
+ },
875
+ "parentId": {
876
+ "type": "string",
877
+ "pattern": "^[A-Fa-f\\d]{24}$"
878
+ },
879
+ "items": {
880
+ "type": "array",
881
+ "items": {
882
+ "type": "object",
883
+ "properties": {
884
+ "id": {
885
+ "type": "string",
886
+ "pattern": "^[A-Fa-f\\d]{24}$"
887
+ },
888
+ "name": {
889
+ "type": "string",
890
+ "minLength": 1,
891
+ "maxLength": 255
892
+ },
893
+ "iconColor": {
894
+ "type": "string",
895
+ "maxLength": 64
896
+ }
897
+ }
301
898
  }
302
899
  }
303
900
  }
304
901
  }
305
- }
902
+ ]
306
903
  },
307
904
  "summary": {
308
905
  "type": "object",
@@ -565,7 +1162,7 @@
565
1162
  "type": "integer"
566
1163
  },
567
1164
  "minutesThisPeriod": {
568
- "type": "integer"
1165
+ "type": "number"
569
1166
  },
570
1167
  "runsThisPeriod": {
571
1168
  "type": "integer"