losant_rest 1.16.3 → 1.16.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1706 -407
  3. data/docs/dashboard.md +2 -0
  4. data/docs/dataTableRows.md +1 -1
  5. data/docs/device.md +4 -0
  6. data/docs/deviceRecipe.md +4 -0
  7. data/docs/deviceRecipes.md +4 -0
  8. data/docs/devices.md +4 -0
  9. data/docs/embeddedDeployments.md +1 -1
  10. data/docs/me.md +36 -0
  11. data/docs/notebook.md +44 -1
  12. data/docs/notebooks.md +1 -1
  13. data/lib/losant_rest/client.rb +2 -2
  14. data/lib/losant_rest/dashboard.rb +4 -0
  15. data/lib/losant_rest/data_table_rows.rb +1 -1
  16. data/lib/losant_rest/device.rb +8 -0
  17. data/lib/losant_rest/device_recipe.rb +8 -0
  18. data/lib/losant_rest/device_recipes.rb +8 -0
  19. data/lib/losant_rest/devices.rb +8 -0
  20. data/lib/losant_rest/embedded_deployments.rb +1 -1
  21. data/lib/losant_rest/me.rb +41 -0
  22. data/lib/losant_rest/notebook.rb +50 -1
  23. data/lib/losant_rest/notebooks.rb +1 -1
  24. data/lib/losant_rest/version.rb +1 -1
  25. data/schemas/advancedApplicationKeyQuery.json +1 -1
  26. data/schemas/advancedDeviceQuery.json +1 -1
  27. data/schemas/advancedEventQuery.json +1 -1
  28. data/schemas/advancedFlowByVersionQuery.json +1 -1
  29. data/schemas/advancedFlowQuery.json +1 -1
  30. data/schemas/advancedFlowVersionQuery.json +1 -1
  31. data/schemas/advancedQuery.json +1 -1
  32. data/schemas/apiToken.json +1 -1
  33. data/schemas/apiTokenPatch.json +1 -1
  34. data/schemas/apiTokenPost.json +2 -1
  35. data/schemas/apiTokens.json +1 -1
  36. data/schemas/application.json +1 -1
  37. data/schemas/applicationApplyTemplatePatch.json +1 -1
  38. data/schemas/applicationCertificate.json +1 -1
  39. data/schemas/applicationCertificateAuthorities.json +1 -1
  40. data/schemas/applicationCertificateAuthority.json +1 -1
  41. data/schemas/applicationCertificateAuthorityPatch.json +1 -1
  42. data/schemas/applicationCertificateAuthorityPost.json +1 -1
  43. data/schemas/applicationCertificatePatch.json +1 -1
  44. data/schemas/applicationCertificatePost.json +1 -1
  45. data/schemas/applicationCertificates.json +1 -1
  46. data/schemas/applicationCloneDryRunResult.json +1 -1
  47. data/schemas/applicationClonePost.json +5 -1
  48. data/schemas/applicationCreationByTemplateResult.json +1 -1
  49. data/schemas/applicationDashboardPost.json +185 -26
  50. data/schemas/applicationExportPost.json +1 -1
  51. data/schemas/applicationExportResult.json +1 -1
  52. data/schemas/applicationGlobalPatch.json +1 -1
  53. data/schemas/applicationKey.json +1 -1
  54. data/schemas/applicationKeyPatch.json +1 -1
  55. data/schemas/applicationKeyPost.json +1 -1
  56. data/schemas/applicationKeyPostResponse.json +1 -1
  57. data/schemas/applicationKeys.json +1 -1
  58. data/schemas/applicationPatch.json +1 -1
  59. data/schemas/applicationPost.json +1 -1
  60. data/schemas/applicationReadme.json +1 -1
  61. data/schemas/applicationReadmePatch.json +1 -1
  62. data/schemas/applicationSearchResult.json +1 -1
  63. data/schemas/applicationTemplate.json +1 -1
  64. data/schemas/applicationTemplateCategories.json +1 -1
  65. data/schemas/applicationTemplateCategory.json +1 -1
  66. data/schemas/applicationTemplates.json +1 -1
  67. data/schemas/applications.json +1 -1
  68. data/schemas/attributeNamesResponse.json +1 -1
  69. data/schemas/auditLog.json +1 -1
  70. data/schemas/auditLogFilter.json +1 -1
  71. data/schemas/auditLogs.json +1 -1
  72. data/schemas/authedDevice.json +1 -1
  73. data/schemas/authedUser.json +1 -1
  74. data/schemas/bulkDeleteResponse.json +1 -1
  75. data/schemas/changePassword.json +1 -1
  76. data/schemas/compositeDeviceState.json +1 -1
  77. data/schemas/dashboard.json +185 -26
  78. data/schemas/dashboardContextInstance.json +1 -1
  79. data/schemas/dashboardPatch.json +185 -26
  80. data/schemas/dashboardPost.json +185 -26
  81. data/schemas/dashboardSendReport.json +33 -2
  82. data/schemas/dashboardUpdateEvents.json +1 -1
  83. data/schemas/dashboards.json +185 -26
  84. data/schemas/dataExport.json +1 -1
  85. data/schemas/dataTable.json +1 -1
  86. data/schemas/dataTableColumn.json +1 -1
  87. data/schemas/dataTablePatch.json +1 -1
  88. data/schemas/dataTablePost.json +1 -1
  89. data/schemas/dataTableRow.json +1 -1
  90. data/schemas/dataTableRowInMultiple.json +1 -1
  91. data/schemas/dataTableRowInsert.json +1 -1
  92. data/schemas/dataTableRowInsertResult.json +1 -1
  93. data/schemas/dataTableRowInsertUpdate.json +1 -1
  94. data/schemas/dataTableRows.json +1 -1
  95. data/schemas/dataTableRowsDelete.json +1 -1
  96. data/schemas/dataTableRowsExport.json +1 -1
  97. data/schemas/dataTables.json +1 -1
  98. data/schemas/device.json +1 -1
  99. data/schemas/deviceAttributeDataTypeFilter.json +1 -1
  100. data/schemas/deviceClassFilter.json +1 -1
  101. data/schemas/deviceCommand.json +1 -1
  102. data/schemas/deviceCommands.json +1 -1
  103. data/schemas/deviceConnectionStatus.json +1 -1
  104. data/schemas/deviceCredentials.json +1 -1
  105. data/schemas/deviceLog.json +1 -1
  106. data/schemas/deviceNamesResponse.json +1 -1
  107. data/schemas/devicePatch.json +1 -1
  108. data/schemas/devicePayloadCounts.json +1 -1
  109. data/schemas/devicePost.json +1 -1
  110. data/schemas/deviceRecipe.json +1 -1
  111. data/schemas/deviceRecipeBulkCreate.json +1 -1
  112. data/schemas/deviceRecipeBulkCreateEnqueued.json +5 -1
  113. data/schemas/deviceRecipeBulkCreatePost.json +1 -1
  114. data/schemas/deviceRecipePatch.json +1 -1
  115. data/schemas/deviceRecipePost.json +1 -1
  116. data/schemas/deviceRecipes.json +1 -1
  117. data/schemas/deviceState.json +1 -1
  118. data/schemas/deviceStateOrStates.json +1 -1
  119. data/schemas/deviceStates.json +1 -1
  120. data/schemas/deviceTagFilter.json +1 -1
  121. data/schemas/devices.json +1 -1
  122. data/schemas/devicesDataRemoved.json +1 -1
  123. data/schemas/devicesDeletePost.json +1 -1
  124. data/schemas/devicesExportPayloadCountPost.json +1 -1
  125. data/schemas/devicesExportPost.json +1 -1
  126. data/schemas/devicesPatch.json +1 -1
  127. data/schemas/devicesRemoveDataPost.json +1 -1
  128. data/schemas/devicesUpdated.json +1 -1
  129. data/schemas/disableTwoFactorAuth.json +1 -1
  130. data/schemas/edgeDeployment.json +1 -1
  131. data/schemas/edgeDeploymentRelease.json +1 -1
  132. data/schemas/edgeDeploymentRemove.json +1 -1
  133. data/schemas/edgeDeploymentReplace.json +1 -1
  134. data/schemas/edgeDeployments.json +1 -1
  135. data/schemas/emailVerificationVerify.json +1 -1
  136. data/schemas/embeddedDeployment.json +1 -1
  137. data/schemas/embeddedDeploymentExport.json +1 -1
  138. data/schemas/embeddedDeploymentRelease.json +1 -1
  139. data/schemas/embeddedDeploymentRemove.json +1 -1
  140. data/schemas/embeddedDeploymentReplace.json +1 -1
  141. data/schemas/embeddedDeployments.json +1 -1
  142. data/schemas/enableTwoFactorAuth.json +6 -2
  143. data/schemas/error.json +1 -1
  144. data/schemas/event.json +1 -1
  145. data/schemas/eventPatch.json +1 -1
  146. data/schemas/eventPost.json +1 -1
  147. data/schemas/eventTagsSummary.json +1 -1
  148. data/schemas/events.json +1 -1
  149. data/schemas/eventsDeleted.json +1 -1
  150. data/schemas/eventsExport.json +1 -1
  151. data/schemas/experienceBootstrapOptions.json +1 -1
  152. data/schemas/experienceBootstrapResult.json +1 -1
  153. data/schemas/experienceDomain.json +1 -1
  154. data/schemas/experienceDomainPatch.json +1 -1
  155. data/schemas/experienceDomainPost.json +1 -1
  156. data/schemas/experienceDomains.json +1 -1
  157. data/schemas/experienceEndpoint.json +1 -1
  158. data/schemas/experienceEndpointPatch.json +1 -1
  159. data/schemas/experienceEndpointPost.json +1 -1
  160. data/schemas/experienceEndpointStats.json +1 -1
  161. data/schemas/experienceEndpoints.json +1 -1
  162. data/schemas/experienceGroup.json +1 -1
  163. data/schemas/experienceGroupPatch.json +1 -1
  164. data/schemas/experienceGroupPost.json +1 -1
  165. data/schemas/experienceGroups.json +1 -1
  166. data/schemas/experienceLinkedResources.json +4 -1
  167. data/schemas/experienceSlug.json +1 -1
  168. data/schemas/experienceSlugPatch.json +1 -1
  169. data/schemas/experienceSlugPost.json +1 -1
  170. data/schemas/experienceSlugs.json +1 -1
  171. data/schemas/experienceUser.json +1 -1
  172. data/schemas/experienceUserPatch.json +1 -1
  173. data/schemas/experienceUserPost.json +1 -1
  174. data/schemas/experienceUsers.json +1 -1
  175. data/schemas/experienceVersion.json +28 -1
  176. data/schemas/experienceVersionPatch.json +28 -1
  177. data/schemas/experienceVersionPost.json +40 -1
  178. data/schemas/experienceVersions.json +28 -1
  179. data/schemas/experienceView.json +1 -1
  180. data/schemas/experienceViewPatch.json +1 -1
  181. data/schemas/experienceViewPost.json +1 -1
  182. data/schemas/experienceViews.json +1 -1
  183. data/schemas/file.json +1 -1
  184. data/schemas/filePatch.json +1 -1
  185. data/schemas/filePost.json +1 -1
  186. data/schemas/fileUploadPostResponse.json +1 -1
  187. data/schemas/files.json +1 -1
  188. data/schemas/flow.json +2 -1
  189. data/schemas/flowErrors.json +1 -1
  190. data/schemas/flowLog.json +1 -1
  191. data/schemas/flowPatch.json +2 -1
  192. data/schemas/flowPost.json +2 -1
  193. data/schemas/flowStats.json +1 -1
  194. data/schemas/flowStorageEntries.json +1 -1
  195. data/schemas/flowStorageEntry.json +1 -1
  196. data/schemas/flowStorageMetadata.json +1 -1
  197. data/schemas/flowTriggerFilter.json +1 -1
  198. data/schemas/flowVersion.json +3 -1
  199. data/schemas/flowVersionPatch.json +1 -1
  200. data/schemas/flowVersionPost.json +2 -1
  201. data/schemas/flowVersions.json +3 -1
  202. data/schemas/flowVersionsDeletePost.json +1 -1
  203. data/schemas/flows.json +2 -1
  204. data/schemas/flowsImportPost.json +3 -1
  205. data/schemas/flowsImportResult.json +4 -1
  206. data/schemas/githubLogin.json +2 -1
  207. data/schemas/historicalSummaries.json +1 -1
  208. data/schemas/historicalSummary.json +1 -1
  209. data/schemas/importIntoApplicationOptions.json +9 -2
  210. data/schemas/importNewApplicationOptions.json +2 -1
  211. data/schemas/instance.json +1 -1
  212. data/schemas/instanceCustomNode.json +1 -1
  213. data/schemas/instanceCustomNodePatch.json +2 -1
  214. data/schemas/instanceCustomNodePost.json +2 -1
  215. data/schemas/instanceCustomNodes.json +1 -1
  216. data/schemas/instanceMember.json +1 -1
  217. data/schemas/instanceMemberPatch.json +1 -1
  218. data/schemas/instanceMemberPost.json +1 -1
  219. data/schemas/instanceMembers.json +1 -1
  220. data/schemas/instanceOrg.json +1 -1
  221. data/schemas/instanceOrgMember.json +1 -1
  222. data/schemas/instanceOrgMemberPatch.json +1 -1
  223. data/schemas/instanceOrgMemberPost.json +1 -1
  224. data/schemas/instanceOrgMembers.json +1 -1
  225. data/schemas/instanceOrgPatch.json +3 -2
  226. data/schemas/instanceOrgPost.json +3 -2
  227. data/schemas/instanceOrgs.json +1 -1
  228. data/schemas/instancePatch.json +1 -1
  229. data/schemas/instanceReportOptionsPost.json +1 -1
  230. data/schemas/instanceSandbox.json +1 -1
  231. data/schemas/instanceSandboxes.json +1 -1
  232. data/schemas/instances.json +1 -1
  233. data/schemas/integration.json +35 -2
  234. data/schemas/integrationPatch.json +35 -2
  235. data/schemas/integrationPost.json +35 -2
  236. data/schemas/integrations.json +35 -2
  237. data/schemas/jobEnqueuedResult.json +5 -1
  238. data/schemas/lastValueData.json +1 -1
  239. data/schemas/lastValueQuery.json +1 -1
  240. data/schemas/me.json +1 -1
  241. data/schemas/mePatch.json +1 -1
  242. data/schemas/mqttPublishBody.json +1 -1
  243. data/schemas/multiDeviceCommand.json +1 -1
  244. data/schemas/notebook.json +1 -1
  245. data/schemas/notebookDataExportOptions.json +1 -1
  246. data/schemas/notebookExecutionLogs.json +1 -1
  247. data/schemas/notebookExecutionOptions.json +1 -1
  248. data/schemas/notebookPatch.json +1 -1
  249. data/schemas/notebookPost.json +1 -1
  250. data/schemas/notebooks.json +1 -1
  251. data/schemas/org.json +1 -1
  252. data/schemas/orgInvite.json +1 -1
  253. data/schemas/orgInviteAction.json +1 -1
  254. data/schemas/orgInviteCollection.json +1 -1
  255. data/schemas/orgInviteInfo.json +1 -1
  256. data/schemas/orgInvitePost.json +1 -1
  257. data/schemas/orgInviteResult.json +1 -1
  258. data/schemas/orgInvites.json +1 -1
  259. data/schemas/orgMemberPatch.json +1 -1
  260. data/schemas/orgPatch.json +1 -1
  261. data/schemas/orgPost.json +1 -1
  262. data/schemas/orgRoleInfo.json +1 -1
  263. data/schemas/orgs.json +1 -1
  264. data/schemas/paletteResponse.json +1 -1
  265. data/schemas/passwordResetFinish.json +1 -1
  266. data/schemas/passwordResetInput.json +1 -1
  267. data/schemas/passwordResetResponse.json +1 -1
  268. data/schemas/payloadStats.json +1 -1
  269. data/schemas/recentItem.json +1 -1
  270. data/schemas/recentItemList.json +1 -1
  271. data/schemas/resourceTransfer.json +1 -1
  272. data/schemas/samlResponse.json +2 -1
  273. data/schemas/ssoRequest.json +1 -1
  274. data/schemas/success.json +1 -1
  275. data/schemas/successWithExecutionId.json +16 -0
  276. data/schemas/successWithJobId.json +16 -0
  277. data/schemas/tagKeysResponse.json +1 -1
  278. data/schemas/tagValuesResponse.json +1 -1
  279. data/schemas/templateKeywords.json +1 -1
  280. data/schemas/timeSeriesData.json +1 -1
  281. data/schemas/timeSeriesQuery.json +1 -1
  282. data/schemas/twoFactorAuthInfo.json +15 -0
  283. data/schemas/userCredentials.json +2 -1
  284. data/schemas/userPost.json +2 -1
  285. data/schemas/validateContextError.json +28 -1
  286. data/schemas/validateContextSuccess.json +28 -1
  287. data/schemas/validationErrors.json +1 -1
  288. data/schemas/virtualButtonPress.json +1 -1
  289. data/schemas/webhook.json +1 -1
  290. data/schemas/webhookPatch.json +1 -1
  291. data/schemas/webhookPost.json +1 -1
  292. data/schemas/webhooks.json +1 -1
  293. metadata +5 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -426,6 +426,7 @@
426
426
  "me.delete",
427
427
  "me.verifyEmail",
428
428
  "me.changePassword",
429
+ "me.generateTwoFactorAuth",
429
430
  "me.enableTwoFactorAuth",
430
431
  "me.disableTwoFactorAuth",
431
432
  "me.disconnectGithub",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "templateId": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "status": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "status": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "success": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "dryRun": {
@@ -45,6 +45,10 @@
45
45
  "type": "string",
46
46
  "format": "uri",
47
47
  "maxLength": 1024
48
+ },
49
+ "forceJob": {
50
+ "type": "boolean",
51
+ "default": false
48
52
  }
49
53
  },
50
54
  "additionalProperties": false
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "application": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -112,8 +112,18 @@
112
112
  "type": "boolean"
113
113
  },
114
114
  "duration": {
115
- "type": "integer",
116
- "minimum": 0
115
+ "oneOf": [
116
+ {
117
+ "type": "integer",
118
+ "minimum": 0
119
+ },
120
+ {
121
+ "type": "string",
122
+ "enum": [
123
+ "{{dashboard.duration}}"
124
+ ]
125
+ }
126
+ ]
117
127
  },
118
128
  "xAxisFormat": {
119
129
  "type": "string",
@@ -554,8 +564,18 @@
554
564
  }
555
565
  },
556
566
  "duration": {
557
- "type": "integer",
558
- "minimum": 0
567
+ "oneOf": [
568
+ {
569
+ "type": "integer",
570
+ "minimum": 0
571
+ },
572
+ {
573
+ "type": "string",
574
+ "enum": [
575
+ "{{dashboard.duration}}"
576
+ ]
577
+ }
578
+ ]
559
579
  },
560
580
  "resolution": {
561
581
  "oneOf": [
@@ -727,8 +747,18 @@
727
747
  }
728
748
  },
729
749
  "duration": {
730
- "type": "integer",
731
- "minimum": 0
750
+ "oneOf": [
751
+ {
752
+ "type": "integer",
753
+ "minimum": 0
754
+ },
755
+ {
756
+ "type": "string",
757
+ "enum": [
758
+ "{{dashboard.duration}}"
759
+ ]
760
+ }
761
+ ]
732
762
  }
733
763
  },
734
764
  "additionalProperties": false
@@ -1463,8 +1493,18 @@
1463
1493
  }
1464
1494
  },
1465
1495
  "duration": {
1466
- "type": "integer",
1467
- "minimum": 0
1496
+ "oneOf": [
1497
+ {
1498
+ "type": "integer",
1499
+ "minimum": 0
1500
+ },
1501
+ {
1502
+ "type": "string",
1503
+ "enum": [
1504
+ "{{dashboard.duration}}"
1505
+ ]
1506
+ }
1507
+ ]
1468
1508
  },
1469
1509
  "sortDirection": {
1470
1510
  "type": "integer",
@@ -1713,8 +1753,18 @@
1713
1753
  "type": "boolean"
1714
1754
  },
1715
1755
  "duration": {
1716
- "type": "integer",
1717
- "minimum": 0
1756
+ "oneOf": [
1757
+ {
1758
+ "type": "integer",
1759
+ "minimum": 0
1760
+ },
1761
+ {
1762
+ "type": "string",
1763
+ "enum": [
1764
+ "{{dashboard.duration}}"
1765
+ ]
1766
+ }
1767
+ ]
1718
1768
  },
1719
1769
  "gaugeMax": {
1720
1770
  "oneOf": [
@@ -2035,8 +2085,18 @@
2035
2085
  "type": "boolean"
2036
2086
  },
2037
2087
  "duration": {
2038
- "type": "integer",
2039
- "minimum": 0
2088
+ "oneOf": [
2089
+ {
2090
+ "type": "integer",
2091
+ "minimum": 0
2092
+ },
2093
+ {
2094
+ "type": "string",
2095
+ "enum": [
2096
+ "{{dashboard.duration}}"
2097
+ ]
2098
+ }
2099
+ ]
2040
2100
  },
2041
2101
  "resolution": {
2042
2102
  "oneOf": [
@@ -2411,8 +2471,18 @@
2411
2471
  }
2412
2472
  },
2413
2473
  "duration": {
2414
- "type": "integer",
2415
- "minimum": 0
2474
+ "oneOf": [
2475
+ {
2476
+ "type": "integer",
2477
+ "minimum": 0
2478
+ },
2479
+ {
2480
+ "type": "string",
2481
+ "enum": [
2482
+ "{{dashboard.duration}}"
2483
+ ]
2484
+ }
2485
+ ]
2416
2486
  },
2417
2487
  "locationTagKey": {
2418
2488
  "oneOf": [
@@ -2800,8 +2870,18 @@
2800
2870
  }
2801
2871
  },
2802
2872
  "duration": {
2803
- "type": "integer",
2804
- "minimum": 0
2873
+ "oneOf": [
2874
+ {
2875
+ "type": "integer",
2876
+ "minimum": 0
2877
+ },
2878
+ {
2879
+ "type": "string",
2880
+ "enum": [
2881
+ "{{dashboard.duration}}"
2882
+ ]
2883
+ }
2884
+ ]
2805
2885
  }
2806
2886
  },
2807
2887
  "additionalProperties": false
@@ -3256,8 +3336,18 @@
3256
3336
  "type": "boolean"
3257
3337
  },
3258
3338
  "duration": {
3259
- "type": "integer",
3260
- "minimum": 0
3339
+ "oneOf": [
3340
+ {
3341
+ "type": "integer",
3342
+ "minimum": 0
3343
+ },
3344
+ {
3345
+ "type": "string",
3346
+ "enum": [
3347
+ "{{dashboard.duration}}"
3348
+ ]
3349
+ }
3350
+ ]
3261
3351
  },
3262
3352
  "segments": {
3263
3353
  "type": "array",
@@ -4685,8 +4775,18 @@
4685
4775
  }
4686
4776
  },
4687
4777
  "duration": {
4688
- "type": "integer",
4689
- "minimum": 0
4778
+ "oneOf": [
4779
+ {
4780
+ "type": "integer",
4781
+ "minimum": 0
4782
+ },
4783
+ {
4784
+ "type": "string",
4785
+ "enum": [
4786
+ "{{dashboard.duration}}"
4787
+ ]
4788
+ }
4789
+ ]
4690
4790
  },
4691
4791
  "endColor": {
4692
4792
  "type": "string",
@@ -4881,8 +4981,18 @@
4881
4981
  "type": "boolean"
4882
4982
  },
4883
4983
  "duration": {
4884
- "type": "integer",
4885
- "minimum": 0
4984
+ "oneOf": [
4985
+ {
4986
+ "type": "integer",
4987
+ "minimum": 0
4988
+ },
4989
+ {
4990
+ "type": "string",
4991
+ "enum": [
4992
+ "{{dashboard.duration}}"
4993
+ ]
4994
+ }
4995
+ ]
4886
4996
  },
4887
4997
  "percentFormat": {
4888
4998
  "type": "string",
@@ -5196,8 +5306,18 @@
5196
5306
  }
5197
5307
  },
5198
5308
  "duration": {
5199
- "type": "integer",
5200
- "minimum": 0
5309
+ "oneOf": [
5310
+ {
5311
+ "type": "integer",
5312
+ "minimum": 0
5313
+ },
5314
+ {
5315
+ "type": "string",
5316
+ "enum": [
5317
+ "{{dashboard.duration}}"
5318
+ ]
5319
+ }
5320
+ ]
5201
5321
  },
5202
5322
  "endColor": {
5203
5323
  "type": "string",
@@ -5428,6 +5548,14 @@
5428
5548
  "minimum": 5,
5429
5549
  "maximum": 600
5430
5550
  },
5551
+ "duration": {
5552
+ "type": "integer",
5553
+ "minimum": 1
5554
+ },
5555
+ "resolution": {
5556
+ "type": "integer",
5557
+ "minimum": 1
5558
+ },
5431
5559
  "defaultTheme": {
5432
5560
  "type": "string",
5433
5561
  "enum": [
@@ -5488,7 +5616,38 @@
5488
5616
  "maxLength": 5
5489
5617
  },
5490
5618
  "ctx": {
5491
- "ref": "#/definitions/dashboardContextInstance"
5619
+ "title": "Dashboard Context Instance",
5620
+ "description": "Schema for a dashboard context instance",
5621
+ "type": "object",
5622
+ "patternProperties": {
5623
+ "^[0-9a-zA-Z_-]{1,255}$": {
5624
+ "oneOf": [
5625
+ {
5626
+ "type": "string",
5627
+ "maxLength": 32767
5628
+ },
5629
+ {
5630
+ "type": "number"
5631
+ },
5632
+ {
5633
+ "type": "object",
5634
+ "properties": {
5635
+ "key": {
5636
+ "type": "string",
5637
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
5638
+ },
5639
+ "value": {
5640
+ "type": "string",
5641
+ "minLength": 1,
5642
+ "maxLength": 255
5643
+ }
5644
+ },
5645
+ "additionalProperties": false
5646
+ }
5647
+ ]
5648
+ }
5649
+ },
5650
+ "additionalProperties": false
5492
5651
  },
5493
5652
  "branded": {
5494
5653
  "type": "boolean"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "includeFiles": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "url": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "array",
4
4
  "maxItems": 100,
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "status": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "deviceIds": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "name": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "orgId": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "applicationId": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "content": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "array",
4
4
  "items": {
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "attributeNames": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "primaryTarget": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "items": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "applicationId": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "userId": {