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
@@ -18,9 +18,18 @@
18
18
  "type": "string",
19
19
  "enum": [
20
20
  "application",
21
- "user"
21
+ "user",
22
+ "instance"
22
23
  ]
23
24
  },
25
+ "applicationId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Fa-f\\d]{24}$"
28
+ },
29
+ "instanceId": {
30
+ "type": "string",
31
+ "pattern": "^[A-Fa-f\\d]{24}$"
32
+ },
24
33
  "creatorId": {
25
34
  "type": "string",
26
35
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -25,9 +25,18 @@
25
25
  "type": "string",
26
26
  "enum": [
27
27
  "application",
28
- "user"
28
+ "user",
29
+ "instance"
29
30
  ]
30
31
  },
32
+ "applicationId": {
33
+ "type": "string",
34
+ "pattern": "^[A-Fa-f\\d]{24}$"
35
+ },
36
+ "instanceId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Fa-f\\d]{24}$"
39
+ },
31
40
  "creatorId": {
32
41
  "type": "string",
33
42
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -226,8 +235,17 @@
226
235
  "type": "string",
227
236
  "enum": [
228
237
  "application",
229
- "user"
238
+ "user",
239
+ "instance"
230
240
  ]
241
+ },
242
+ "applicationId": {
243
+ "type": "string",
244
+ "pattern": "^[A-Fa-f\\d]{24}$"
245
+ },
246
+ "instanceId": {
247
+ "type": "string",
248
+ "pattern": "^[A-Fa-f\\d]{24}$"
231
249
  }
232
250
  }
233
251
  }
@@ -46,6 +46,15 @@
46
46
  "type": "string",
47
47
  "maxLength": 64
48
48
  },
49
+ "_currentRole": {
50
+ "type": "string",
51
+ "enum": [
52
+ "admin",
53
+ "edit",
54
+ "collaborate",
55
+ "view"
56
+ ]
57
+ },
49
58
  "name": {
50
59
  "type": "string",
51
60
  "minLength": 1,
@@ -356,7 +365,7 @@
356
365
  "type": "integer"
357
366
  },
358
367
  "minutesThisPeriod": {
359
- "type": "integer"
368
+ "type": "number"
360
369
  },
361
370
  "runsThisPeriod": {
362
371
  "type": "integer"
@@ -607,5 +616,9 @@
607
616
  },
608
617
  "additionalProperties": false
609
618
  }
610
- }
619
+ },
620
+ "required": [
621
+ "id",
622
+ "name"
623
+ ]
611
624
  }
@@ -6,10 +6,6 @@
6
6
  "type": "string",
7
7
  "pattern": "^[A-Fa-f\\d]{24}$"
8
8
  },
9
- "applicationCertificateId": {
10
- "type": "string",
11
- "pattern": "^[A-Fa-f\\d]{24}$"
12
- },
13
9
  "applicationId": {
14
10
  "type": "string",
15
11
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -22,6 +18,30 @@
22
18
  "type": "string",
23
19
  "format": "date-time"
24
20
  },
21
+ "createdById": {
22
+ "type": "string",
23
+ "pattern": "^[A-Fa-f\\d]{24}$"
24
+ },
25
+ "createdByType": {
26
+ "type": "string",
27
+ "enum": [
28
+ "flow",
29
+ "user",
30
+ "apiToken"
31
+ ]
32
+ },
33
+ "lastUpdatedById": {
34
+ "type": "string",
35
+ "pattern": "^[A-Fa-f\\d]{24}$"
36
+ },
37
+ "lastUpdatedByType": {
38
+ "type": "string",
39
+ "enum": [
40
+ "flow",
41
+ "user",
42
+ "apiToken"
43
+ ]
44
+ },
25
45
  "status": {
26
46
  "type": "string",
27
47
  "enum": [
@@ -33,32 +53,73 @@
33
53
  "type": "string",
34
54
  "maxLength": 32767
35
55
  },
36
- "deviceIds": {
56
+ "name": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 255
60
+ },
61
+ "filterType": {
62
+ "oneOf": [
63
+ {
64
+ "type": "string",
65
+ "enum": [
66
+ "all",
67
+ "whitelist",
68
+ "blacklist"
69
+ ]
70
+ },
71
+ {
72
+ "type": "string",
73
+ "enum": [
74
+ "none"
75
+ ]
76
+ }
77
+ ]
78
+ },
79
+ "pubTopics": {
37
80
  "type": "array",
38
81
  "items": {
39
82
  "type": "string",
40
- "pattern": "^[A-Fa-f\\d]{24}$"
41
- },
42
- "maxItems": 1000
83
+ "minLength": 1,
84
+ "maxLength": 1024
85
+ }
43
86
  },
44
- "deviceTags": {
87
+ "subTopics": {
45
88
  "type": "array",
46
89
  "items": {
47
- "type": "object",
48
- "properties": {
49
- "key": {
50
- "type": "string",
51
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
52
- },
53
- "value": {
54
- "type": "string",
55
- "minLength": 1,
56
- "maxLength": 255
57
- }
58
- },
59
- "additionalProperties": false
60
- },
61
- "maxItems": 100
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 1024
93
+ }
94
+ },
95
+ "addressFilterType": {
96
+ "type": "string",
97
+ "enum": [
98
+ "all",
99
+ "whitelist",
100
+ "blacklist"
101
+ ]
102
+ },
103
+ "addresses": {
104
+ "type": "array",
105
+ "maxItems": 100,
106
+ "items": {
107
+ "type": "string",
108
+ "maxLength": 48
109
+ }
110
+ },
111
+ "applicationCertificateId": {
112
+ "type": "string",
113
+ "pattern": "^[A-Fa-f\\d]{24}$"
114
+ },
115
+ "deviceId": {
116
+ "type": "string",
117
+ "pattern": "^[A-Fa-f\\d]{24}$"
118
+ },
119
+ "deviceName": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 255
62
123
  },
63
124
  "certificateInfo": {
64
125
  "type": "object",
@@ -88,6 +149,11 @@
88
149
  "notValidAfter": {
89
150
  "type": "string",
90
151
  "format": "date-time"
152
+ },
153
+ "issuerSerialNumber": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "maxLength": 1024
91
157
  }
92
158
  }
93
159
  },
@@ -95,40 +161,6 @@
95
161
  "type": "string",
96
162
  "maxLength": 32767,
97
163
  "minLength": 50
98
- },
99
- "filterType": {
100
- "oneOf": [
101
- {
102
- "type": "string",
103
- "enum": [
104
- "all",
105
- "whitelist",
106
- "blacklist"
107
- ]
108
- },
109
- {
110
- "type": "string",
111
- "enum": [
112
- "none"
113
- ]
114
- }
115
- ]
116
- },
117
- "pubTopics": {
118
- "type": "array",
119
- "items": {
120
- "type": "string",
121
- "minLength": 1,
122
- "maxLength": 1024
123
- }
124
- },
125
- "subTopics": {
126
- "type": "array",
127
- "items": {
128
- "type": "string",
129
- "minLength": 1,
130
- "maxLength": 1024
131
- }
132
164
  }
133
165
  }
134
166
  }
@@ -29,6 +29,30 @@
29
29
  "type": "string",
30
30
  "format": "date-time"
31
31
  },
32
+ "createdById": {
33
+ "type": "string",
34
+ "pattern": "^[A-Fa-f\\d]{24}$"
35
+ },
36
+ "createdByType": {
37
+ "type": "string",
38
+ "enum": [
39
+ "flow",
40
+ "user",
41
+ "apiToken"
42
+ ]
43
+ },
44
+ "lastUpdatedById": {
45
+ "type": "string",
46
+ "pattern": "^[A-Fa-f\\d]{24}$"
47
+ },
48
+ "lastUpdatedByType": {
49
+ "type": "string",
50
+ "enum": [
51
+ "flow",
52
+ "user",
53
+ "apiToken"
54
+ ]
55
+ },
32
56
  "status": {
33
57
  "type": "string",
34
58
  "enum": [
@@ -22,6 +22,30 @@
22
22
  "type": "string",
23
23
  "format": "date-time"
24
24
  },
25
+ "createdById": {
26
+ "type": "string",
27
+ "pattern": "^[A-Fa-f\\d]{24}$"
28
+ },
29
+ "createdByType": {
30
+ "type": "string",
31
+ "enum": [
32
+ "flow",
33
+ "user",
34
+ "apiToken"
35
+ ]
36
+ },
37
+ "lastUpdatedById": {
38
+ "type": "string",
39
+ "pattern": "^[A-Fa-f\\d]{24}$"
40
+ },
41
+ "lastUpdatedByType": {
42
+ "type": "string",
43
+ "enum": [
44
+ "flow",
45
+ "user",
46
+ "apiToken"
47
+ ]
48
+ },
25
49
  "status": {
26
50
  "type": "string",
27
51
  "enum": [
@@ -13,10 +13,13 @@
13
13
  "type": "string",
14
14
  "maxLength": 32767
15
15
  },
16
- "certificate": {
17
- "type": "string",
18
- "maxLength": 32767,
19
- "minLength": 50
16
+ "name": {
17
+ "type": [
18
+ "string",
19
+ "null"
20
+ ],
21
+ "minLength": 1,
22
+ "maxLength": 255
20
23
  },
21
24
  "filterType": {
22
25
  "oneOf": [
@@ -51,6 +54,31 @@
51
54
  "minLength": 1,
52
55
  "maxLength": 1024
53
56
  }
57
+ },
58
+ "addressFilterType": {
59
+ "type": "string",
60
+ "enum": [
61
+ "all",
62
+ "whitelist",
63
+ "blacklist"
64
+ ]
65
+ },
66
+ "addresses": {
67
+ "type": "array",
68
+ "maxItems": 100,
69
+ "items": {
70
+ "type": "string",
71
+ "maxLength": 48
72
+ }
73
+ },
74
+ "deviceId": {
75
+ "type": "string",
76
+ "pattern": "^[A-Fa-f\\d]{24}$"
77
+ },
78
+ "certificate": {
79
+ "type": "string",
80
+ "maxLength": 32767,
81
+ "minLength": 50
54
82
  }
55
83
  },
56
84
  "additionalProperties": false
@@ -13,37 +13,10 @@
13
13
  "type": "string",
14
14
  "maxLength": 32767
15
15
  },
16
- "deviceIds": {
17
- "type": "array",
18
- "items": {
19
- "type": "string",
20
- "pattern": "^[A-Fa-f\\d]{24}$"
21
- },
22
- "maxItems": 1000
23
- },
24
- "deviceTags": {
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "key": {
30
- "type": "string",
31
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
32
- },
33
- "value": {
34
- "type": "string",
35
- "minLength": 1,
36
- "maxLength": 255
37
- }
38
- },
39
- "additionalProperties": false
40
- },
41
- "maxItems": 100
42
- },
43
- "certificate": {
16
+ "name": {
44
17
  "type": "string",
45
- "maxLength": 32767,
46
- "minLength": 50
18
+ "minLength": 1,
19
+ "maxLength": 255
47
20
  },
48
21
  "filterType": {
49
22
  "oneOf": [
@@ -78,6 +51,31 @@
78
51
  "minLength": 1,
79
52
  "maxLength": 1024
80
53
  }
54
+ },
55
+ "addressFilterType": {
56
+ "type": "string",
57
+ "enum": [
58
+ "all",
59
+ "whitelist",
60
+ "blacklist"
61
+ ]
62
+ },
63
+ "addresses": {
64
+ "type": "array",
65
+ "maxItems": 100,
66
+ "items": {
67
+ "type": "string",
68
+ "maxLength": 48
69
+ }
70
+ },
71
+ "deviceId": {
72
+ "type": "string",
73
+ "pattern": "^[A-Fa-f\\d]{24}$"
74
+ },
75
+ "certificate": {
76
+ "type": "string",
77
+ "maxLength": 32767,
78
+ "minLength": 50
81
79
  }
82
80
  },
83
81
  "required": [
@@ -13,10 +13,6 @@
13
13
  "type": "string",
14
14
  "pattern": "^[A-Fa-f\\d]{24}$"
15
15
  },
16
- "applicationCertificateId": {
17
- "type": "string",
18
- "pattern": "^[A-Fa-f\\d]{24}$"
19
- },
20
16
  "applicationId": {
21
17
  "type": "string",
22
18
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -29,6 +25,30 @@
29
25
  "type": "string",
30
26
  "format": "date-time"
31
27
  },
28
+ "createdById": {
29
+ "type": "string",
30
+ "pattern": "^[A-Fa-f\\d]{24}$"
31
+ },
32
+ "createdByType": {
33
+ "type": "string",
34
+ "enum": [
35
+ "flow",
36
+ "user",
37
+ "apiToken"
38
+ ]
39
+ },
40
+ "lastUpdatedById": {
41
+ "type": "string",
42
+ "pattern": "^[A-Fa-f\\d]{24}$"
43
+ },
44
+ "lastUpdatedByType": {
45
+ "type": "string",
46
+ "enum": [
47
+ "flow",
48
+ "user",
49
+ "apiToken"
50
+ ]
51
+ },
32
52
  "status": {
33
53
  "type": "string",
34
54
  "enum": [
@@ -40,32 +60,73 @@
40
60
  "type": "string",
41
61
  "maxLength": 32767
42
62
  },
43
- "deviceIds": {
63
+ "name": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "maxLength": 255
67
+ },
68
+ "filterType": {
69
+ "oneOf": [
70
+ {
71
+ "type": "string",
72
+ "enum": [
73
+ "all",
74
+ "whitelist",
75
+ "blacklist"
76
+ ]
77
+ },
78
+ {
79
+ "type": "string",
80
+ "enum": [
81
+ "none"
82
+ ]
83
+ }
84
+ ]
85
+ },
86
+ "pubTopics": {
44
87
  "type": "array",
45
88
  "items": {
46
89
  "type": "string",
47
- "pattern": "^[A-Fa-f\\d]{24}$"
48
- },
49
- "maxItems": 1000
90
+ "minLength": 1,
91
+ "maxLength": 1024
92
+ }
50
93
  },
51
- "deviceTags": {
94
+ "subTopics": {
52
95
  "type": "array",
53
96
  "items": {
54
- "type": "object",
55
- "properties": {
56
- "key": {
57
- "type": "string",
58
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
59
- },
60
- "value": {
61
- "type": "string",
62
- "minLength": 1,
63
- "maxLength": 255
64
- }
65
- },
66
- "additionalProperties": false
67
- },
68
- "maxItems": 100
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 1024
100
+ }
101
+ },
102
+ "addressFilterType": {
103
+ "type": "string",
104
+ "enum": [
105
+ "all",
106
+ "whitelist",
107
+ "blacklist"
108
+ ]
109
+ },
110
+ "addresses": {
111
+ "type": "array",
112
+ "maxItems": 100,
113
+ "items": {
114
+ "type": "string",
115
+ "maxLength": 48
116
+ }
117
+ },
118
+ "applicationCertificateId": {
119
+ "type": "string",
120
+ "pattern": "^[A-Fa-f\\d]{24}$"
121
+ },
122
+ "deviceId": {
123
+ "type": "string",
124
+ "pattern": "^[A-Fa-f\\d]{24}$"
125
+ },
126
+ "deviceName": {
127
+ "type": "string",
128
+ "minLength": 1,
129
+ "maxLength": 255
69
130
  },
70
131
  "certificateInfo": {
71
132
  "type": "object",
@@ -95,6 +156,11 @@
95
156
  "notValidAfter": {
96
157
  "type": "string",
97
158
  "format": "date-time"
159
+ },
160
+ "issuerSerialNumber": {
161
+ "type": "string",
162
+ "minLength": 1,
163
+ "maxLength": 1024
98
164
  }
99
165
  }
100
166
  },
@@ -102,40 +168,6 @@
102
168
  "type": "string",
103
169
  "maxLength": 32767,
104
170
  "minLength": 50
105
- },
106
- "filterType": {
107
- "oneOf": [
108
- {
109
- "type": "string",
110
- "enum": [
111
- "all",
112
- "whitelist",
113
- "blacklist"
114
- ]
115
- },
116
- {
117
- "type": "string",
118
- "enum": [
119
- "none"
120
- ]
121
- }
122
- ]
123
- },
124
- "pubTopics": {
125
- "type": "array",
126
- "items": {
127
- "type": "string",
128
- "minLength": 1,
129
- "maxLength": 1024
130
- }
131
- },
132
- "subTopics": {
133
- "type": "array",
134
- "items": {
135
- "type": "string",
136
- "minLength": 1,
137
- "maxLength": 1024
138
- }
139
171
  }
140
172
  }
141
173
  }
@@ -51,6 +51,15 @@
51
51
  "type": "string",
52
52
  "maxLength": 64
53
53
  },
54
+ "_currentRole": {
55
+ "type": "string",
56
+ "enum": [
57
+ "admin",
58
+ "edit",
59
+ "collaborate",
60
+ "view"
61
+ ]
62
+ },
54
63
  "name": {
55
64
  "type": "string",
56
65
  "minLength": 1,
@@ -361,7 +370,7 @@
361
370
  "type": "integer"
362
371
  },
363
372
  "minutesThisPeriod": {
364
- "type": "integer"
373
+ "type": "number"
365
374
  },
366
375
  "runsThisPeriod": {
367
376
  "type": "integer"
@@ -612,7 +621,11 @@
612
621
  },
613
622
  "additionalProperties": false
614
623
  }
615
- }
624
+ },
625
+ "required": [
626
+ "id",
627
+ "name"
628
+ ]
616
629
  },
617
630
  "validationErrors": {
618
631
  "type": "array",