losant_rest 2.1.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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +139101 -66992
  3. data/docs/application.md +6 -6
  4. data/docs/applicationCertificates.md +3 -2
  5. data/docs/applicationDashboard.md +1 -1
  6. data/docs/applications.md +1 -1
  7. data/docs/auth.md +1 -1
  8. data/docs/dashboard.md +1 -1
  9. data/docs/dashboards.md +1 -0
  10. data/docs/dataTableRow.md +1 -1
  11. data/docs/dataTableRows.md +3 -3
  12. data/docs/device.md +1 -1
  13. data/docs/edgeDeployments.md +3 -3
  14. data/docs/embeddedDeployments.md +3 -3
  15. data/docs/experience.md +1 -1
  16. data/docs/file.md +4 -4
  17. data/docs/files.md +1 -1
  18. data/docs/flowVersions.md +1 -1
  19. data/docs/instanceApiTokens.md +1 -1
  20. data/docs/instanceMember.md +1 -1
  21. data/docs/instanceOrg.md +1 -1
  22. data/docs/instanceOrgInvite.md +2 -2
  23. data/docs/instanceOrgInvites.md +1 -1
  24. data/docs/instanceOrgMembers.md +2 -1
  25. data/docs/instanceOrgs.md +1 -1
  26. data/docs/me.md +1 -1
  27. data/docs/notebook.md +1 -1
  28. data/docs/org.md +1 -1
  29. data/docs/privateFile.md +4 -4
  30. data/docs/privateFiles.md +1 -1
  31. data/docs/resourceJob.md +2 -2
  32. data/docs/userApiTokens.md +2 -2
  33. data/lib/platform_rest/application.rb +1 -1
  34. data/lib/platform_rest/application_certificates.rb +5 -2
  35. data/lib/platform_rest/application_dashboard.rb +1 -1
  36. data/lib/platform_rest/client.rb +2 -2
  37. data/lib/platform_rest/dashboard.rb +1 -1
  38. data/lib/platform_rest/dashboards.rb +1 -0
  39. data/lib/platform_rest/data_table_row.rb +1 -1
  40. data/lib/platform_rest/data_table_rows.rb +3 -3
  41. data/lib/platform_rest/device.rb +1 -1
  42. data/lib/platform_rest/edge_deployments.rb +3 -3
  43. data/lib/platform_rest/embedded_deployments.rb +3 -3
  44. data/lib/platform_rest/experience.rb +1 -1
  45. data/lib/platform_rest/file.rb +2 -2
  46. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  47. data/lib/platform_rest/instance_member.rb +1 -1
  48. data/lib/platform_rest/instance_org.rb +1 -1
  49. data/lib/platform_rest/instance_org_invite.rb +2 -2
  50. data/lib/platform_rest/instance_org_invites.rb +2 -2
  51. data/lib/platform_rest/instance_org_members.rb +2 -1
  52. data/lib/platform_rest/instance_orgs.rb +1 -1
  53. data/lib/platform_rest/me.rb +1 -1
  54. data/lib/platform_rest/notebook.rb +1 -1
  55. data/lib/platform_rest/org.rb +1 -1
  56. data/lib/platform_rest/private_file.rb +2 -2
  57. data/lib/platform_rest/resource_job.rb +2 -2
  58. data/lib/platform_rest/user_api_tokens.rb +2 -2
  59. data/lib/platform_rest/version.rb +1 -1
  60. data/schemas/advancedApplicationCertQuery.json +1885 -0
  61. data/schemas/advancedApplicationKeyQuery.json +763 -763
  62. data/schemas/apiToken.json +10 -1
  63. data/schemas/apiTokens.json +20 -2
  64. data/schemas/application.json +15 -2
  65. data/schemas/applicationCertificate.json +90 -58
  66. data/schemas/applicationCertificateAuthorities.json +24 -0
  67. data/schemas/applicationCertificateAuthority.json +24 -0
  68. data/schemas/applicationCertificatePatch.json +32 -4
  69. data/schemas/applicationCertificatePost.json +28 -30
  70. data/schemas/applicationCertificates.json +90 -58
  71. data/schemas/applicationCreationByTemplateResult.json +15 -2
  72. data/schemas/applicationDashboardPost.json +179 -128
  73. data/schemas/applicationImportExecutions.json +3 -5
  74. data/schemas/applicationImportResult.json +674 -0
  75. data/schemas/applicationJobLog.json +129 -123
  76. data/schemas/applicationJobLogs.json +129 -123
  77. data/schemas/applicationKey.json +41 -41
  78. data/schemas/applicationKeyPatch.json +4 -4
  79. data/schemas/applicationKeyPost.json +36 -29
  80. data/schemas/applicationKeys.json +41 -41
  81. data/schemas/applicationSearchResult.json +10 -10
  82. data/schemas/applicationTemplates.json +9 -2
  83. data/schemas/applications.json +15 -2
  84. data/schemas/auditLog.json +2 -6
  85. data/schemas/auditLogs.json +2 -6
  86. data/schemas/authedDevice.json +3 -0
  87. data/schemas/credential.json +7 -0
  88. data/schemas/credentialLinkedResources.json +19724 -344
  89. data/schemas/credentialPatch.json +3 -0
  90. data/schemas/credentialPost.json +3 -0
  91. data/schemas/credentials.json +7 -0
  92. data/schemas/dashboard.json +199 -128
  93. data/schemas/dashboardBlockSuggestCodePost.json +19 -0
  94. data/schemas/dashboardPatch.json +179 -128
  95. data/schemas/dashboardPost.json +179 -128
  96. data/schemas/dashboardUpdateEventsResult.json +266 -0
  97. data/schemas/dashboards.json +199 -128
  98. data/schemas/dataTable.json +11 -0
  99. data/schemas/dataTableRowPatch.json +16 -0
  100. data/schemas/dataTableRowPost.json +39 -0
  101. data/schemas/dataTableRowPostResult.json +54 -0
  102. data/schemas/dataTables.json +11 -0
  103. data/schemas/device.json +259 -107
  104. data/schemas/deviceConnectionStatus.json +4 -0
  105. data/schemas/deviceLog.json +3 -0
  106. data/schemas/deviceRecipe.json +259 -108
  107. data/schemas/deviceRecipes.json +259 -108
  108. data/schemas/devices.json +287 -116
  109. data/schemas/edgeDeploymentRelease.json +4252 -39
  110. data/schemas/edgeDeployments.json +28 -0
  111. data/schemas/embeddedDeploymentRelease.json +2073 -0
  112. data/schemas/embeddedDeployments.json +25 -0
  113. data/schemas/error.json +14 -0
  114. data/schemas/event.json +4 -1
  115. data/schemas/eventPlusNewCount.json +4 -1
  116. data/schemas/events.json +4 -1
  117. data/schemas/experienceDomains.json +19 -0
  118. data/schemas/experienceEndpoint.json +19 -0
  119. data/schemas/experienceEndpoints.json +24 -0
  120. data/schemas/experienceLinkedResources.json +19728 -313
  121. data/schemas/experienceSlugs.json +19 -0
  122. data/schemas/experienceUsers.json +16 -2
  123. data/schemas/experienceVersions.json +25 -0
  124. data/schemas/experienceView.json +5 -0
  125. data/schemas/experienceViews.json +10 -0
  126. data/schemas/fileUploadPostResponse.json +92 -103
  127. data/schemas/files.json +5 -1
  128. data/schemas/flow.json +211 -46
  129. data/schemas/flowPatch.json +199 -46
  130. data/schemas/flowPost.json +199 -46
  131. data/schemas/flowStorageMetadata.json +2 -2
  132. data/schemas/flowVersion.json +450 -101
  133. data/schemas/flowVersionPost.json +199 -46
  134. data/schemas/flowVersions.json +9903 -113
  135. data/schemas/flows.json +9637 -46
  136. data/schemas/flowsImportPost.json +398 -92
  137. data/schemas/flowsImportResult.json +661 -147
  138. data/schemas/historicalSummaries.json +3 -2
  139. data/schemas/historicalSummary.json +3 -2
  140. data/schemas/instanceAuditLog.json +2 -6
  141. data/schemas/instanceAuditLogs.json +90 -1
  142. data/schemas/instanceCustomNode.json +41 -2
  143. data/schemas/instanceCustomNodePatch.json +59 -6
  144. data/schemas/instanceCustomNodePost.json +59 -6
  145. data/schemas/instanceCustomNodes.json +41 -2
  146. data/schemas/instanceOrg.json +4 -1
  147. data/schemas/instanceOrgInvite.json +102 -0
  148. data/schemas/instanceOrgInviteSent.json +12 -0
  149. data/schemas/instanceOrgInvites.json +145 -0
  150. data/schemas/instanceOrgMember.json +52 -0
  151. data/schemas/instanceOrgMembers.json +105 -1
  152. data/schemas/instanceOrgPost.json +1 -1
  153. data/schemas/instanceOrgs.json +5 -2
  154. data/schemas/instanceSandbox.json +5 -1
  155. data/schemas/instanceSandboxes.json +9 -1
  156. data/schemas/integration.json +38 -39
  157. data/schemas/integrationPatch.json +8 -8
  158. data/schemas/integrationPost.json +8 -8
  159. data/schemas/integrations.json +38 -39
  160. data/schemas/jobEnqueuedResult.json +1 -1
  161. data/schemas/me.json +685 -88
  162. data/schemas/notebook.json +33 -21
  163. data/schemas/notebookExecutionLogs.json +20 -0
  164. data/schemas/notebookMinuteCounts.json +1 -1
  165. data/schemas/notebookPatch.json +29 -21
  166. data/schemas/notebookPost.json +29 -21
  167. data/schemas/notebooks.json +33 -21
  168. data/schemas/notificationRule.json +4 -0
  169. data/schemas/notificationRules.json +8 -0
  170. data/schemas/org.json +14 -1
  171. data/schemas/orgInvites.json +77 -82
  172. data/schemas/orgInvitesUser.json +44 -47
  173. data/schemas/orgs.json +14 -1
  174. data/schemas/paletteResponse.json +372 -364
  175. data/schemas/periodSummaries.json +1 -1
  176. data/schemas/recentItemList.json +226 -27
  177. data/schemas/resourceJob.json +33 -9
  178. data/schemas/resourceJobExecutionLogs.json +34 -20
  179. data/schemas/resourceJobExecutionOptions.json +1 -1
  180. data/schemas/resourceJobPatch.json +9 -9
  181. data/schemas/resourceJobPost.json +9 -9
  182. data/schemas/resourceJobs.json +33 -9
  183. data/schemas/tagValuesResponse.json +1 -2
  184. data/schemas/templateKeywords.json +1 -0
  185. data/schemas/timeSeriesData.json +36 -4
  186. data/schemas/userOauthToken.json +4 -1
  187. data/schemas/userOauthTokenPost.json +1 -1
  188. data/schemas/userOauthTokens.json +4 -1
  189. data/schemas/validateContextError.json +71 -24
  190. data/schemas/validateContextSuccess.json +71 -24
  191. metadata +10 -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"