losant_rest 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +18838 -4104
  3. data/docs/application.md +85 -0
  4. data/docs/applicationApiTokens.md +2 -2
  5. data/docs/applicationCertificateAuthorities.md +1 -1
  6. data/docs/applicationCertificates.md +1 -1
  7. data/docs/applicationKeys.md +1 -1
  8. data/docs/applicationTemplate.md +46 -0
  9. data/docs/applicationTemplates.md +77 -2
  10. data/docs/applications.md +1 -1
  11. data/docs/auditLogs.md +1 -1
  12. data/docs/dashboards.md +1 -1
  13. data/docs/dataTables.md +1 -1
  14. data/docs/device.md +7 -3
  15. data/docs/deviceRecipes.md +1 -1
  16. data/docs/devices.md +93 -5
  17. data/docs/edgeDeployments.md +1 -1
  18. data/docs/events.md +1 -1
  19. data/docs/experienceEndpoints.md +1 -0
  20. data/docs/experienceGroups.md +1 -1
  21. data/docs/experienceUsers.md +1 -1
  22. data/docs/experienceVersions.md +1 -1
  23. data/docs/experienceViews.md +1 -1
  24. data/docs/file.md +4 -4
  25. data/docs/files.md +1 -1
  26. data/docs/flow.md +94 -1
  27. data/docs/flowVersion.md +96 -1
  28. data/docs/flowVersions.md +1 -1
  29. data/docs/flows.md +2 -2
  30. data/docs/integrations.md +1 -1
  31. data/docs/me.md +0 -36
  32. data/docs/notebooks.md +1 -1
  33. data/docs/orgs.md +1 -1
  34. data/docs/webhooks.md +1 -1
  35. data/lib/losant_rest.rb +1 -0
  36. data/lib/losant_rest/application.rb +48 -0
  37. data/lib/losant_rest/application_api_tokens.rb +1 -1
  38. data/lib/losant_rest/application_template.rb +79 -0
  39. data/lib/losant_rest/application_templates.rb +89 -1
  40. data/lib/losant_rest/client.rb +6 -2
  41. data/lib/losant_rest/device.rb +11 -3
  42. data/lib/losant_rest/devices.rb +103 -3
  43. data/lib/losant_rest/experience_endpoints.rb +2 -0
  44. data/lib/losant_rest/file.rb +3 -3
  45. data/lib/losant_rest/flow.rb +115 -1
  46. data/lib/losant_rest/flow_version.rb +115 -1
  47. data/lib/losant_rest/me.rb +0 -41
  48. data/lib/losant_rest/version.rb +1 -1
  49. data/schemas/advancedDeviceQuery.json +110 -0
  50. data/schemas/advancedEventQuery.json +198 -0
  51. data/schemas/advancedQuery.json +22 -0
  52. data/schemas/application.json +13 -0
  53. data/schemas/applicationApiTokenPost.json +10 -1
  54. data/schemas/applicationApplyTemplatePatch.json +19 -0
  55. data/schemas/applicationCreationByTemplateResult.json +13 -0
  56. data/schemas/applicationPatch.json +5 -0
  57. data/schemas/applicationPost.json +13 -0
  58. data/schemas/applicationTemplate.json +20 -0
  59. data/schemas/applicationTemplateCategories.json +43 -0
  60. data/schemas/applicationTemplateCategory.json +23 -0
  61. data/schemas/applicationTemplates.json +32 -0
  62. data/schemas/applications.json +13 -0
  63. data/schemas/authedUser.json +3 -0
  64. data/schemas/changePassword.json +2 -2
  65. data/schemas/dashboard.json +1288 -145
  66. data/schemas/dashboardPatch.json +1288 -145
  67. data/schemas/dashboardPost.json +1288 -145
  68. data/schemas/dashboards.json +1288 -145
  69. data/schemas/dataExport.json +142 -0
  70. data/schemas/dataTableRowsExport.json +22 -0
  71. data/schemas/device.json +16 -3
  72. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  73. data/schemas/deviceClassFilter.json +1 -2
  74. data/schemas/devicePatch.json +16 -3
  75. data/schemas/devicePost.json +16 -3
  76. data/schemas/deviceRecipe.json +16 -3
  77. data/schemas/deviceRecipePatch.json +16 -3
  78. data/schemas/deviceRecipePost.json +16 -3
  79. data/schemas/deviceRecipes.json +16 -3
  80. data/schemas/devices.json +16 -3
  81. data/schemas/devicesDataRemoved.json +12 -0
  82. data/schemas/devicesDeletePost.json +1034 -0
  83. data/schemas/devicesDeleted.json +12 -0
  84. data/schemas/devicesExportPost.json +1035 -0
  85. data/schemas/devicesPatch.json +1773 -7
  86. data/schemas/devicesRemoveDataPost.json +1056 -0
  87. data/schemas/devicesUpdated.json +18 -0
  88. data/schemas/eventPost.json +22 -0
  89. data/schemas/eventsExport.json +198 -0
  90. data/schemas/experienceDomain.json +1 -1
  91. data/schemas/experienceDomainPatch.json +1 -1
  92. data/schemas/experienceDomainPost.json +1 -1
  93. data/schemas/experienceDomains.json +1 -1
  94. data/schemas/experienceLinkedResources.json +372 -3
  95. data/schemas/experienceVersion.json +1 -1
  96. data/schemas/experienceVersions.json +1 -1
  97. data/schemas/flow.json +124 -1
  98. data/schemas/flowErrors.json +87 -0
  99. data/schemas/flowPatch.json +124 -1
  100. data/schemas/flowPost.json +124 -1
  101. data/schemas/flowStats.json +54 -0
  102. data/schemas/flowVersion.json +248 -2
  103. data/schemas/flowVersionPost.json +124 -1
  104. data/schemas/flowVersions.json +248 -2
  105. data/schemas/flows.json +124 -1
  106. data/schemas/flowsImportPost.json +248 -2
  107. data/schemas/flowsImportResult.json +372 -3
  108. data/schemas/githubLogin.json +16 -4
  109. data/schemas/me.json +3 -3
  110. data/schemas/mePatch.json +2 -2
  111. data/schemas/multiDeviceCommand.json +1019 -0
  112. data/schemas/notebook.json +89 -0
  113. data/schemas/notebookPatch.json +89 -0
  114. data/schemas/notebookPost.json +89 -0
  115. data/schemas/notebooks.json +89 -0
  116. data/schemas/org.json +1 -1
  117. data/schemas/orgInviteInfo.json +3 -0
  118. data/schemas/orgInvitePost.json +3 -0
  119. data/schemas/orgInvites.json +3 -0
  120. data/schemas/orgPatch.json +1 -1
  121. data/schemas/orgs.json +1 -1
  122. data/schemas/passwordResetFinish.json +2 -2
  123. data/schemas/samlResponse.json +1 -1
  124. data/schemas/templateKeywords.json +14 -0
  125. data/schemas/timeSeriesData.json +101 -12
  126. data/schemas/timeSeriesQuery.json +101 -12
  127. data/schemas/userCredentials.json +14 -3
  128. data/schemas/userPost.json +22 -7
  129. metadata +20 -5
@@ -141,6 +141,95 @@
141
141
  ],
142
142
  "additionalProperties": false
143
143
  },
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "inputType": {
148
+ "type": "string",
149
+ "enum": [
150
+ "deviceConnectionHistory"
151
+ ]
152
+ },
153
+ "fileName": {
154
+ "oneOf": [
155
+ {
156
+ "type": "string",
157
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
158
+ },
159
+ {
160
+ "type": "string",
161
+ "minLength": 4,
162
+ "maxLength": 255,
163
+ "pattern": ".*{{.+}}.*"
164
+ }
165
+ ]
166
+ },
167
+ "deviceTags": {
168
+ "type": "array",
169
+ "maxItems": 100,
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "key": {
174
+ "oneOf": [
175
+ {
176
+ "type": "string",
177
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
178
+ },
179
+ {
180
+ "type": "string",
181
+ "minLength": 4,
182
+ "maxLength": 255,
183
+ "pattern": ".*{{.+}}.*"
184
+ }
185
+ ]
186
+ },
187
+ "value": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 255
191
+ }
192
+ },
193
+ "additionalProperties": false
194
+ }
195
+ },
196
+ "deviceIds": {
197
+ "type": "array",
198
+ "maxItems": 100,
199
+ "items": {
200
+ "oneOf": [
201
+ {
202
+ "type": "string",
203
+ "pattern": "^[A-Fa-f\\d]{24}$"
204
+ },
205
+ {
206
+ "type": "string",
207
+ "minLength": 4,
208
+ "maxLength": 255,
209
+ "pattern": ".*{{.+}}.*"
210
+ }
211
+ ]
212
+ }
213
+ },
214
+ "queryJson": {
215
+ "type": "string",
216
+ "maxLength": 8192
217
+ },
218
+ "start": {
219
+ "type": "number"
220
+ },
221
+ "end": {
222
+ "type": "number"
223
+ }
224
+ },
225
+ "required": [
226
+ "inputType",
227
+ "fileName",
228
+ "start",
229
+ "end"
230
+ ],
231
+ "additionalProperties": false
232
+ },
144
233
  {
145
234
  "type": "object",
146
235
  "properties": {
@@ -113,6 +113,95 @@
113
113
  ],
114
114
  "additionalProperties": false
115
115
  },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "inputType": {
120
+ "type": "string",
121
+ "enum": [
122
+ "deviceConnectionHistory"
123
+ ]
124
+ },
125
+ "fileName": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string",
129
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "minLength": 4,
134
+ "maxLength": 255,
135
+ "pattern": ".*{{.+}}.*"
136
+ }
137
+ ]
138
+ },
139
+ "deviceTags": {
140
+ "type": "array",
141
+ "maxItems": 100,
142
+ "items": {
143
+ "type": "object",
144
+ "properties": {
145
+ "key": {
146
+ "oneOf": [
147
+ {
148
+ "type": "string",
149
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
150
+ },
151
+ {
152
+ "type": "string",
153
+ "minLength": 4,
154
+ "maxLength": 255,
155
+ "pattern": ".*{{.+}}.*"
156
+ }
157
+ ]
158
+ },
159
+ "value": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 255
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "deviceIds": {
169
+ "type": "array",
170
+ "maxItems": 100,
171
+ "items": {
172
+ "oneOf": [
173
+ {
174
+ "type": "string",
175
+ "pattern": "^[A-Fa-f\\d]{24}$"
176
+ },
177
+ {
178
+ "type": "string",
179
+ "minLength": 4,
180
+ "maxLength": 255,
181
+ "pattern": ".*{{.+}}.*"
182
+ }
183
+ ]
184
+ }
185
+ },
186
+ "queryJson": {
187
+ "type": "string",
188
+ "maxLength": 8192
189
+ },
190
+ "start": {
191
+ "type": "number"
192
+ },
193
+ "end": {
194
+ "type": "number"
195
+ }
196
+ },
197
+ "required": [
198
+ "inputType",
199
+ "fileName",
200
+ "start",
201
+ "end"
202
+ ],
203
+ "additionalProperties": false
204
+ },
116
205
  {
117
206
  "type": "object",
118
207
  "properties": {
@@ -113,6 +113,95 @@
113
113
  ],
114
114
  "additionalProperties": false
115
115
  },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "inputType": {
120
+ "type": "string",
121
+ "enum": [
122
+ "deviceConnectionHistory"
123
+ ]
124
+ },
125
+ "fileName": {
126
+ "oneOf": [
127
+ {
128
+ "type": "string",
129
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "minLength": 4,
134
+ "maxLength": 255,
135
+ "pattern": ".*{{.+}}.*"
136
+ }
137
+ ]
138
+ },
139
+ "deviceTags": {
140
+ "type": "array",
141
+ "maxItems": 100,
142
+ "items": {
143
+ "type": "object",
144
+ "properties": {
145
+ "key": {
146
+ "oneOf": [
147
+ {
148
+ "type": "string",
149
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
150
+ },
151
+ {
152
+ "type": "string",
153
+ "minLength": 4,
154
+ "maxLength": 255,
155
+ "pattern": ".*{{.+}}.*"
156
+ }
157
+ ]
158
+ },
159
+ "value": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 255
163
+ }
164
+ },
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "deviceIds": {
169
+ "type": "array",
170
+ "maxItems": 100,
171
+ "items": {
172
+ "oneOf": [
173
+ {
174
+ "type": "string",
175
+ "pattern": "^[A-Fa-f\\d]{24}$"
176
+ },
177
+ {
178
+ "type": "string",
179
+ "minLength": 4,
180
+ "maxLength": 255,
181
+ "pattern": ".*{{.+}}.*"
182
+ }
183
+ ]
184
+ }
185
+ },
186
+ "queryJson": {
187
+ "type": "string",
188
+ "maxLength": 8192
189
+ },
190
+ "start": {
191
+ "type": "number"
192
+ },
193
+ "end": {
194
+ "type": "number"
195
+ }
196
+ },
197
+ "required": [
198
+ "inputType",
199
+ "fileName",
200
+ "start",
201
+ "end"
202
+ ],
203
+ "additionalProperties": false
204
+ },
116
205
  {
117
206
  "type": "object",
118
207
  "properties": {
@@ -148,6 +148,95 @@
148
148
  ],
149
149
  "additionalProperties": false
150
150
  },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "inputType": {
155
+ "type": "string",
156
+ "enum": [
157
+ "deviceConnectionHistory"
158
+ ]
159
+ },
160
+ "fileName": {
161
+ "oneOf": [
162
+ {
163
+ "type": "string",
164
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
165
+ },
166
+ {
167
+ "type": "string",
168
+ "minLength": 4,
169
+ "maxLength": 255,
170
+ "pattern": ".*{{.+}}.*"
171
+ }
172
+ ]
173
+ },
174
+ "deviceTags": {
175
+ "type": "array",
176
+ "maxItems": 100,
177
+ "items": {
178
+ "type": "object",
179
+ "properties": {
180
+ "key": {
181
+ "oneOf": [
182
+ {
183
+ "type": "string",
184
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
185
+ },
186
+ {
187
+ "type": "string",
188
+ "minLength": 4,
189
+ "maxLength": 255,
190
+ "pattern": ".*{{.+}}.*"
191
+ }
192
+ ]
193
+ },
194
+ "value": {
195
+ "type": "string",
196
+ "minLength": 1,
197
+ "maxLength": 255
198
+ }
199
+ },
200
+ "additionalProperties": false
201
+ }
202
+ },
203
+ "deviceIds": {
204
+ "type": "array",
205
+ "maxItems": 100,
206
+ "items": {
207
+ "oneOf": [
208
+ {
209
+ "type": "string",
210
+ "pattern": "^[A-Fa-f\\d]{24}$"
211
+ },
212
+ {
213
+ "type": "string",
214
+ "minLength": 4,
215
+ "maxLength": 255,
216
+ "pattern": ".*{{.+}}.*"
217
+ }
218
+ ]
219
+ }
220
+ },
221
+ "queryJson": {
222
+ "type": "string",
223
+ "maxLength": 8192
224
+ },
225
+ "start": {
226
+ "type": "number"
227
+ },
228
+ "end": {
229
+ "type": "number"
230
+ }
231
+ },
232
+ "required": [
233
+ "inputType",
234
+ "fileName",
235
+ "start",
236
+ "end"
237
+ ],
238
+ "additionalProperties": false
239
+ },
151
240
  {
152
241
  "type": "object",
153
242
  "properties": {
@@ -422,7 +422,7 @@
422
422
  "type": "array",
423
423
  "items": {
424
424
  "type": "string",
425
- "maxLength": 1024,
425
+ "maxLength": 45,
426
426
  "minLength": 3
427
427
  }
428
428
  }
@@ -28,6 +28,9 @@
28
28
  },
29
29
  "ttl": {
30
30
  "type": "number"
31
+ },
32
+ "disallowTransfer": {
33
+ "type": "boolean"
31
34
  }
32
35
  }
33
36
  }
@@ -68,6 +68,9 @@
68
68
  "additionalProperties": false
69
69
  },
70
70
  "maxItems": 1000
71
+ },
72
+ "disallowTransfer": {
73
+ "type": "boolean"
71
74
  }
72
75
  },
73
76
  "additionalProperties": false,
@@ -84,6 +84,9 @@
84
84
  },
85
85
  "hasExpired": {
86
86
  "type": "boolean"
87
+ },
88
+ "disallowTransfer": {
89
+ "type": "boolean"
87
90
  }
88
91
  }
89
92
  }
@@ -33,7 +33,7 @@
33
33
  "maxItems": 25,
34
34
  "items": {
35
35
  "type": "string",
36
- "maxLength": 1024,
36
+ "maxLength": 45,
37
37
  "minLength": 3
38
38
  }
39
39
  }
@@ -429,7 +429,7 @@
429
429
  "type": "array",
430
430
  "items": {
431
431
  "type": "string",
432
- "maxLength": 1024,
432
+ "maxLength": 45,
433
433
  "minLength": 3
434
434
  }
435
435
  }
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "password": {
15
15
  "type": "string",
16
- "minLength": 8,
16
+ "minLength": 12,
17
17
  "maxLength": 2048,
18
- "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
18
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
19
19
  }
20
20
  },
21
21
  "required": [