losant_rest 1.19.1 → 1.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +2373 -508
  3. data/docs/application.md +40 -0
  4. data/docs/me.md +6 -6
  5. data/lib/losant_rest/version.rb +1 -1
  6. data/lib/platform_rest/application.rb +48 -0
  7. data/lib/platform_rest/client.rb +2 -2
  8. data/lib/platform_rest/me.rb +6 -6
  9. data/schemas/apiTokenPost.json +1 -0
  10. data/schemas/application.json +166 -2
  11. data/schemas/applicationCreationByTemplateResult.json +166 -2
  12. data/schemas/applicationDashboardPost.json +6 -0
  13. data/schemas/applicationImportExecutions.json +205 -0
  14. data/schemas/applications.json +166 -2
  15. data/schemas/authedUser.json +4 -0
  16. data/schemas/credential.json +31 -1
  17. data/schemas/credentialPatch.json +28 -0
  18. data/schemas/credentialPost.json +35 -1
  19. data/schemas/credentials.json +31 -1
  20. data/schemas/dashboard.json +6 -0
  21. data/schemas/dashboardPatch.json +6 -0
  22. data/schemas/dashboardPost.json +6 -0
  23. data/schemas/dashboards.json +6 -0
  24. data/schemas/dataExport.json +1 -0
  25. data/schemas/devicesRemoveDataPost.json +2 -2
  26. data/schemas/githubLogin.json +1 -0
  27. data/schemas/historicalSummaries.json +16 -0
  28. data/schemas/historicalSummary.json +16 -0
  29. data/schemas/importIntoApplicationOptions.json +4 -0
  30. data/schemas/instance.json +21 -0
  31. data/schemas/instanceOrg.json +264 -0
  32. data/schemas/instanceOrgPatch.json +21 -0
  33. data/schemas/instanceOrgPost.json +21 -0
  34. data/schemas/instanceOrgs.json +264 -0
  35. data/schemas/instancePatch.json +21 -0
  36. data/schemas/instanceSandbox.json +46 -2
  37. data/schemas/instanceSandboxes.json +46 -2
  38. data/schemas/instances.json +21 -0
  39. data/schemas/me.json +46 -2
  40. data/schemas/multiFactorAuthDisable.json +20 -0
  41. data/schemas/multiFactorAuthEnable.json +25 -0
  42. data/schemas/multiFactorAuthInfo.json +15 -0
  43. data/schemas/org.json +55 -5
  44. data/schemas/orgPatch.json +8 -0
  45. data/schemas/orgPost.json +8 -0
  46. data/schemas/orgs.json +55 -5
  47. data/schemas/samlResponse.json +1 -0
  48. data/schemas/timeSeriesData.json +35 -2
  49. data/schemas/userCredentials.json +1 -0
  50. data/schemas/userPost.json +8 -0
  51. metadata +6 -2
@@ -98,6 +98,7 @@
98
98
  "application.deviceCounts",
99
99
  "application.notebookMinuteCounts",
100
100
  "application.search",
101
+ "application.importLogs",
101
102
  "applicationApiToken.delete",
102
103
  "applicationApiToken.get",
103
104
  "applicationApiToken.patch",
@@ -56,6 +56,14 @@
56
56
  "type": "integer",
57
57
  "minimum": 0
58
58
  },
59
+ "applicationcertificate": {
60
+ "type": "integer",
61
+ "minimum": 0
62
+ },
63
+ "applicationcertificateauthority": {
64
+ "type": "integer",
65
+ "minimum": 0
66
+ },
59
67
  "applicationkey": {
60
68
  "type": "integer",
61
69
  "minimum": 0
@@ -167,6 +175,11 @@
167
175
  "applicationFlowSlots": {
168
176
  "type": "integer",
169
177
  "minimum": 0
178
+ },
179
+ "systemInterval": {
180
+ "type": "integer",
181
+ "minimum": 5,
182
+ "maximum": 3600
170
183
  }
171
184
  },
172
185
  "additionalProperties": false
@@ -203,6 +216,9 @@
203
216
  "certificateCount": {
204
217
  "type": "number"
205
218
  },
219
+ "credentialCount": {
220
+ "type": "integer"
221
+ },
206
222
  "dashboardCount": {
207
223
  "type": "number"
208
224
  },
@@ -49,6 +49,14 @@
49
49
  "type": "integer",
50
50
  "minimum": 0
51
51
  },
52
+ "applicationcertificate": {
53
+ "type": "integer",
54
+ "minimum": 0
55
+ },
56
+ "applicationcertificateauthority": {
57
+ "type": "integer",
58
+ "minimum": 0
59
+ },
52
60
  "applicationkey": {
53
61
  "type": "integer",
54
62
  "minimum": 0
@@ -160,6 +168,11 @@
160
168
  "applicationFlowSlots": {
161
169
  "type": "integer",
162
170
  "minimum": 0
171
+ },
172
+ "systemInterval": {
173
+ "type": "integer",
174
+ "minimum": 5,
175
+ "maximum": 3600
163
176
  }
164
177
  },
165
178
  "additionalProperties": false
@@ -196,6 +209,9 @@
196
209
  "certificateCount": {
197
210
  "type": "number"
198
211
  },
212
+ "credentialCount": {
213
+ "type": "integer"
214
+ },
199
215
  "dashboardCount": {
200
216
  "type": "number"
201
217
  },
@@ -2,6 +2,10 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "fromApplicationId": {
6
+ "type": "string",
7
+ "pattern": "^[A-Fa-f\\d]{24}$"
8
+ },
5
9
  "importUrl": {
6
10
  "type": "string",
7
11
  "format": "uri",
@@ -206,6 +206,14 @@
206
206
  "type": "integer",
207
207
  "minimum": 0
208
208
  },
209
+ "applicationcertificate": {
210
+ "type": "integer",
211
+ "minimum": 0
212
+ },
213
+ "applicationcertificateauthority": {
214
+ "type": "integer",
215
+ "minimum": 0
216
+ },
209
217
  "applicationkey": {
210
218
  "type": "integer",
211
219
  "minimum": 0
@@ -317,6 +325,11 @@
317
325
  "applicationFlowSlots": {
318
326
  "type": "integer",
319
327
  "minimum": 0
328
+ },
329
+ "systemInterval": {
330
+ "type": "integer",
331
+ "minimum": 5,
332
+ "maximum": 3600
320
333
  }
321
334
  },
322
335
  "additionalProperties": false
@@ -342,6 +355,14 @@
342
355
  }
343
356
  }
344
357
  }
358
+ },
359
+ "mfaMode": {
360
+ "type": "string",
361
+ "enum": [
362
+ "notRequired",
363
+ "adminRequired",
364
+ "required"
365
+ ]
345
366
  }
346
367
  }
347
368
  }
@@ -42,6 +42,14 @@
42
42
  "type": "integer",
43
43
  "minimum": 0
44
44
  },
45
+ "applicationcertificate": {
46
+ "type": "integer",
47
+ "minimum": 0
48
+ },
49
+ "applicationcertificateauthority": {
50
+ "type": "integer",
51
+ "minimum": 0
52
+ },
45
53
  "applicationkey": {
46
54
  "type": "integer",
47
55
  "minimum": 0
@@ -153,10 +161,258 @@
153
161
  "applicationFlowSlots": {
154
162
  "type": "integer",
155
163
  "minimum": 0
164
+ },
165
+ "systemInterval": {
166
+ "type": "integer",
167
+ "minimum": 5,
168
+ "maximum": 3600
156
169
  }
157
170
  },
158
171
  "additionalProperties": false
159
172
  },
173
+ "summary": {
174
+ "type": "object",
175
+ "properties": {
176
+ "apiTokenCount": {
177
+ "type": "integer"
178
+ },
179
+ "appCount": {
180
+ "type": "integer"
181
+ },
182
+ "certificateCount": {
183
+ "type": "integer"
184
+ },
185
+ "certificateAuthorityCount": {
186
+ "type": "integer"
187
+ },
188
+ "credentialCount": {
189
+ "type": "integer"
190
+ },
191
+ "dashCount": {
192
+ "type": "integer"
193
+ },
194
+ "dataTableCount": {
195
+ "type": "integer"
196
+ },
197
+ "deviceCount": {
198
+ "type": "integer"
199
+ },
200
+ "deviceRecipeCount": {
201
+ "type": "integer"
202
+ },
203
+ "eventCount": {
204
+ "type": "integer"
205
+ },
206
+ "experienceDomainCount": {
207
+ "type": "integer"
208
+ },
209
+ "experienceEndpointCount": {
210
+ "type": "integer"
211
+ },
212
+ "experienceGroupCount": {
213
+ "type": "integer"
214
+ },
215
+ "experienceSlugCount": {
216
+ "type": "integer"
217
+ },
218
+ "experienceUserCount": {
219
+ "type": "integer"
220
+ },
221
+ "experienceVersionCount": {
222
+ "type": "integer"
223
+ },
224
+ "experienceViewCount": {
225
+ "type": "integer"
226
+ },
227
+ "fileCount": {
228
+ "type": "integer"
229
+ },
230
+ "flowCount": {
231
+ "type": "integer"
232
+ },
233
+ "integrationCount": {
234
+ "type": "integer"
235
+ },
236
+ "keyCount": {
237
+ "type": "integer"
238
+ },
239
+ "notebookCount": {
240
+ "type": "integer"
241
+ },
242
+ "resourceJobCount": {
243
+ "type": "integer"
244
+ },
245
+ "webhookCount": {
246
+ "type": "integer"
247
+ },
248
+ "memberCount": {
249
+ "type": "integer"
250
+ },
251
+ "pendingInviteCount": {
252
+ "type": "integer"
253
+ },
254
+ "payloadCount": {
255
+ "title": "Payload Stats",
256
+ "description": "Schema for the result of a payload stats request",
257
+ "type": "object",
258
+ "properties": {
259
+ "dataTable": {
260
+ "type": "object",
261
+ "patternProperties": {
262
+ ".*": {
263
+ "type": "number"
264
+ }
265
+ }
266
+ },
267
+ "deviceCommand": {
268
+ "type": "object",
269
+ "patternProperties": {
270
+ ".*": {
271
+ "type": "number"
272
+ }
273
+ }
274
+ },
275
+ "deviceConnect": {
276
+ "type": "object",
277
+ "patternProperties": {
278
+ ".*": {
279
+ "type": "number"
280
+ }
281
+ }
282
+ },
283
+ "deviceDisconnect": {
284
+ "type": "object",
285
+ "patternProperties": {
286
+ ".*": {
287
+ "type": "number"
288
+ }
289
+ }
290
+ },
291
+ "deviceState": {
292
+ "type": "object",
293
+ "patternProperties": {
294
+ ".*": {
295
+ "type": "number"
296
+ }
297
+ }
298
+ },
299
+ "endpoint": {
300
+ "type": "object",
301
+ "patternProperties": {
302
+ ".*": {
303
+ "type": "number"
304
+ }
305
+ }
306
+ },
307
+ "event": {
308
+ "type": "object",
309
+ "patternProperties": {
310
+ ".*": {
311
+ "type": "number"
312
+ }
313
+ }
314
+ },
315
+ "flowError": {
316
+ "type": "object",
317
+ "patternProperties": {
318
+ ".*": {
319
+ "type": "number"
320
+ }
321
+ }
322
+ },
323
+ "integration": {
324
+ "type": "object",
325
+ "patternProperties": {
326
+ ".*": {
327
+ "type": "number"
328
+ }
329
+ }
330
+ },
331
+ "mqttIn": {
332
+ "type": "object",
333
+ "patternProperties": {
334
+ ".*": {
335
+ "type": "number"
336
+ }
337
+ }
338
+ },
339
+ "mqttOut": {
340
+ "type": "object",
341
+ "patternProperties": {
342
+ ".*": {
343
+ "type": "number"
344
+ }
345
+ }
346
+ },
347
+ "notebook": {
348
+ "type": "object",
349
+ "patternProperties": {
350
+ ".*": {
351
+ "type": "number"
352
+ }
353
+ }
354
+ },
355
+ "timer": {
356
+ "type": "object",
357
+ "patternProperties": {
358
+ ".*": {
359
+ "type": "number"
360
+ }
361
+ }
362
+ },
363
+ "virtualButton": {
364
+ "type": "object",
365
+ "patternProperties": {
366
+ ".*": {
367
+ "type": "number"
368
+ }
369
+ }
370
+ },
371
+ "webhook": {
372
+ "type": "object",
373
+ "patternProperties": {
374
+ ".*": {
375
+ "type": "number"
376
+ }
377
+ }
378
+ },
379
+ "resourceJob": {
380
+ "type": "object",
381
+ "patternProperties": {
382
+ ".*": {
383
+ "type": "number"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "storageStats": {
390
+ "type": "object",
391
+ "properties": {
392
+ "count": {
393
+ "type": "integer"
394
+ },
395
+ "size": {
396
+ "type": "integer"
397
+ }
398
+ }
399
+ },
400
+ "notebookStats": {
401
+ "type": "object",
402
+ "properties": {
403
+ "awaitingCompletion": {
404
+ "type": "integer"
405
+ },
406
+ "minutesThisPeriod": {
407
+ "type": "integer"
408
+ },
409
+ "runsThisPeriod": {
410
+ "type": "integer"
411
+ }
412
+ }
413
+ }
414
+ }
415
+ },
160
416
  "whitelistedEmailDomains": {
161
417
  "type": "array",
162
418
  "items": {
@@ -211,6 +467,14 @@
211
467
  "referralId": {
212
468
  "type": "string",
213
469
  "maxLength": 1024
470
+ },
471
+ "mfaMode": {
472
+ "type": "string",
473
+ "enum": [
474
+ "notRequired",
475
+ "adminRequired",
476
+ "required"
477
+ ]
214
478
  }
215
479
  },
216
480
  "additionalProperties": false,
@@ -26,6 +26,14 @@
26
26
  "type": "integer",
27
27
  "minimum": 0
28
28
  },
29
+ "applicationcertificate": {
30
+ "type": "integer",
31
+ "minimum": 0
32
+ },
33
+ "applicationcertificateauthority": {
34
+ "type": "integer",
35
+ "minimum": 0
36
+ },
29
37
  "applicationkey": {
30
38
  "type": "integer",
31
39
  "minimum": 0
@@ -137,6 +145,11 @@
137
145
  "applicationFlowSlots": {
138
146
  "type": "integer",
139
147
  "minimum": 0
148
+ },
149
+ "systemInterval": {
150
+ "type": "integer",
151
+ "minimum": 5,
152
+ "maximum": 3600
140
153
  }
141
154
  },
142
155
  "additionalProperties": false
@@ -192,6 +205,14 @@
192
205
  "referralId": {
193
206
  "type": "string",
194
207
  "maxLength": 1024
208
+ },
209
+ "mfaMode": {
210
+ "type": "string",
211
+ "enum": [
212
+ "notRequired",
213
+ "adminRequired",
214
+ "required"
215
+ ]
195
216
  }
196
217
  },
197
218
  "additionalProperties": false
@@ -26,6 +26,14 @@
26
26
  "type": "integer",
27
27
  "minimum": 0
28
28
  },
29
+ "applicationcertificate": {
30
+ "type": "integer",
31
+ "minimum": 0
32
+ },
33
+ "applicationcertificateauthority": {
34
+ "type": "integer",
35
+ "minimum": 0
36
+ },
29
37
  "applicationkey": {
30
38
  "type": "integer",
31
39
  "minimum": 0
@@ -137,6 +145,11 @@
137
145
  "applicationFlowSlots": {
138
146
  "type": "integer",
139
147
  "minimum": 0
148
+ },
149
+ "systemInterval": {
150
+ "type": "integer",
151
+ "minimum": 5,
152
+ "maximum": 3600
140
153
  }
141
154
  },
142
155
  "additionalProperties": false
@@ -358,6 +371,14 @@
358
371
  "referralId": {
359
372
  "type": "string",
360
373
  "maxLength": 1024
374
+ },
375
+ "mfaMode": {
376
+ "type": "string",
377
+ "enum": [
378
+ "notRequired",
379
+ "adminRequired",
380
+ "required"
381
+ ]
361
382
  }
362
383
  },
363
384
  "additionalProperties": false,