losant_rest 1.10.3 → 1.10.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1375 -139
  3. data/docs/application.md +42 -0
  4. data/docs/applicationApiTokens.md +1 -1
  5. data/docs/applicationTemplate.md +46 -0
  6. data/docs/applicationTemplates.md +76 -1
  7. data/docs/device.md +6 -3
  8. data/docs/me.md +0 -36
  9. data/lib/losant_rest.rb +1 -0
  10. data/lib/losant_rest/application.rb +48 -0
  11. data/lib/losant_rest/application_api_tokens.rb +1 -1
  12. data/lib/losant_rest/application_template.rb +79 -0
  13. data/lib/losant_rest/application_templates.rb +89 -1
  14. data/lib/losant_rest/client.rb +6 -2
  15. data/lib/losant_rest/device.rb +9 -3
  16. data/lib/losant_rest/me.rb +0 -41
  17. data/lib/losant_rest/version.rb +1 -1
  18. data/schemas/application.json +8 -0
  19. data/schemas/applicationApiTokenPost.json +1 -0
  20. data/schemas/applicationApplyTemplatePatch.json +19 -0
  21. data/schemas/applicationCreationByTemplateResult.json +8 -0
  22. data/schemas/applicationPost.json +8 -0
  23. data/schemas/applicationTemplate.json +20 -0
  24. data/schemas/applicationTemplateCategories.json +43 -0
  25. data/schemas/applicationTemplateCategory.json +23 -0
  26. data/schemas/applicationTemplates.json +32 -0
  27. data/schemas/applications.json +8 -0
  28. data/schemas/changePassword.json +2 -2
  29. data/schemas/dashboard.json +145 -25
  30. data/schemas/dashboardPatch.json +145 -25
  31. data/schemas/dashboardPost.json +145 -25
  32. data/schemas/dashboards.json +145 -25
  33. data/schemas/dataExport.json +132 -1
  34. data/schemas/experienceLinkedResources.json +39 -0
  35. data/schemas/flow.json +13 -0
  36. data/schemas/flowPatch.json +13 -0
  37. data/schemas/flowPost.json +13 -0
  38. data/schemas/flowVersion.json +26 -0
  39. data/schemas/flowVersionPost.json +13 -0
  40. data/schemas/flowVersions.json +26 -0
  41. data/schemas/flows.json +13 -0
  42. data/schemas/flowsImportPost.json +26 -0
  43. data/schemas/flowsImportResult.json +39 -0
  44. data/schemas/githubLogin.json +7 -3
  45. data/schemas/me.json +0 -3
  46. data/schemas/mePatch.json +2 -2
  47. data/schemas/orgInviteInfo.json +3 -0
  48. data/schemas/orgInvitePost.json +3 -0
  49. data/schemas/orgInvites.json +3 -0
  50. data/schemas/passwordResetFinish.json +2 -2
  51. data/schemas/templateKeywords.json +14 -0
  52. data/schemas/timeSeriesData.json +12 -2
  53. data/schemas/timeSeriesQuery.json +94 -14
  54. data/schemas/userCredentials.json +5 -2
  55. data/schemas/userPost.json +13 -6
  56. metadata +11 -5
@@ -1411,6 +1411,19 @@
1411
1411
  "baudRate": {
1412
1412
  "type": "number"
1413
1413
  },
1414
+ "dataBits": {
1415
+ "type": "number"
1416
+ },
1417
+ "stopBits": {
1418
+ "type": "number"
1419
+ },
1420
+ "parity": {
1421
+ "type": "string",
1422
+ "maxLength": 8
1423
+ },
1424
+ "rtscts": {
1425
+ "type": "boolean"
1426
+ },
1414
1427
  "encoding": {
1415
1428
  "type": "string",
1416
1429
  "maxLength": 48
@@ -1392,6 +1392,19 @@
1392
1392
  "baudRate": {
1393
1393
  "type": "number"
1394
1394
  },
1395
+ "dataBits": {
1396
+ "type": "number"
1397
+ },
1398
+ "stopBits": {
1399
+ "type": "number"
1400
+ },
1401
+ "parity": {
1402
+ "type": "string",
1403
+ "maxLength": 8
1404
+ },
1405
+ "rtscts": {
1406
+ "type": "boolean"
1407
+ },
1395
1408
  "encoding": {
1396
1409
  "type": "string",
1397
1410
  "maxLength": 48
@@ -1381,6 +1381,19 @@
1381
1381
  "baudRate": {
1382
1382
  "type": "number"
1383
1383
  },
1384
+ "dataBits": {
1385
+ "type": "number"
1386
+ },
1387
+ "stopBits": {
1388
+ "type": "number"
1389
+ },
1390
+ "parity": {
1391
+ "type": "string",
1392
+ "maxLength": 8
1393
+ },
1394
+ "rtscts": {
1395
+ "type": "boolean"
1396
+ },
1384
1397
  "encoding": {
1385
1398
  "type": "string",
1386
1399
  "maxLength": 48
@@ -1396,6 +1396,19 @@
1396
1396
  "baudRate": {
1397
1397
  "type": "number"
1398
1398
  },
1399
+ "dataBits": {
1400
+ "type": "number"
1401
+ },
1402
+ "stopBits": {
1403
+ "type": "number"
1404
+ },
1405
+ "parity": {
1406
+ "type": "string",
1407
+ "maxLength": 8
1408
+ },
1409
+ "rtscts": {
1410
+ "type": "boolean"
1411
+ },
1399
1412
  "encoding": {
1400
1413
  "type": "string",
1401
1414
  "maxLength": 48
@@ -3562,6 +3575,19 @@
3562
3575
  "baudRate": {
3563
3576
  "type": "number"
3564
3577
  },
3578
+ "dataBits": {
3579
+ "type": "number"
3580
+ },
3581
+ "stopBits": {
3582
+ "type": "number"
3583
+ },
3584
+ "parity": {
3585
+ "type": "string",
3586
+ "maxLength": 8
3587
+ },
3588
+ "rtscts": {
3589
+ "type": "boolean"
3590
+ },
3565
3591
  "encoding": {
3566
3592
  "type": "string",
3567
3593
  "maxLength": 48
@@ -1369,6 +1369,19 @@
1369
1369
  "baudRate": {
1370
1370
  "type": "number"
1371
1371
  },
1372
+ "dataBits": {
1373
+ "type": "number"
1374
+ },
1375
+ "stopBits": {
1376
+ "type": "number"
1377
+ },
1378
+ "parity": {
1379
+ "type": "string",
1380
+ "maxLength": 8
1381
+ },
1382
+ "rtscts": {
1383
+ "type": "boolean"
1384
+ },
1372
1385
  "encoding": {
1373
1386
  "type": "string",
1374
1387
  "maxLength": 48
@@ -1403,6 +1403,19 @@
1403
1403
  "baudRate": {
1404
1404
  "type": "number"
1405
1405
  },
1406
+ "dataBits": {
1407
+ "type": "number"
1408
+ },
1409
+ "stopBits": {
1410
+ "type": "number"
1411
+ },
1412
+ "parity": {
1413
+ "type": "string",
1414
+ "maxLength": 8
1415
+ },
1416
+ "rtscts": {
1417
+ "type": "boolean"
1418
+ },
1406
1419
  "encoding": {
1407
1420
  "type": "string",
1408
1421
  "maxLength": 48
@@ -3569,6 +3582,19 @@
3569
3582
  "baudRate": {
3570
3583
  "type": "number"
3571
3584
  },
3585
+ "dataBits": {
3586
+ "type": "number"
3587
+ },
3588
+ "stopBits": {
3589
+ "type": "number"
3590
+ },
3591
+ "parity": {
3592
+ "type": "string",
3593
+ "maxLength": 8
3594
+ },
3595
+ "rtscts": {
3596
+ "type": "boolean"
3597
+ },
3572
3598
  "encoding": {
3573
3599
  "type": "string",
3574
3600
  "maxLength": 48
@@ -1418,6 +1418,19 @@
1418
1418
  "baudRate": {
1419
1419
  "type": "number"
1420
1420
  },
1421
+ "dataBits": {
1422
+ "type": "number"
1423
+ },
1424
+ "stopBits": {
1425
+ "type": "number"
1426
+ },
1427
+ "parity": {
1428
+ "type": "string",
1429
+ "maxLength": 8
1430
+ },
1431
+ "rtscts": {
1432
+ "type": "boolean"
1433
+ },
1421
1434
  "encoding": {
1422
1435
  "type": "string",
1423
1436
  "maxLength": 48
@@ -1388,6 +1388,19 @@
1388
1388
  "baudRate": {
1389
1389
  "type": "number"
1390
1390
  },
1391
+ "dataBits": {
1392
+ "type": "number"
1393
+ },
1394
+ "stopBits": {
1395
+ "type": "number"
1396
+ },
1397
+ "parity": {
1398
+ "type": "string",
1399
+ "maxLength": 8
1400
+ },
1401
+ "rtscts": {
1402
+ "type": "boolean"
1403
+ },
1391
1404
  "encoding": {
1392
1405
  "type": "string",
1393
1406
  "maxLength": 48
@@ -3535,6 +3548,19 @@
3535
3548
  "baudRate": {
3536
3549
  "type": "number"
3537
3550
  },
3551
+ "dataBits": {
3552
+ "type": "number"
3553
+ },
3554
+ "stopBits": {
3555
+ "type": "number"
3556
+ },
3557
+ "parity": {
3558
+ "type": "string",
3559
+ "maxLength": 8
3560
+ },
3561
+ "rtscts": {
3562
+ "type": "boolean"
3563
+ },
3538
3564
  "encoding": {
3539
3565
  "type": "string",
3540
3566
  "maxLength": 48
@@ -1419,6 +1419,19 @@
1419
1419
  "baudRate": {
1420
1420
  "type": "number"
1421
1421
  },
1422
+ "dataBits": {
1423
+ "type": "number"
1424
+ },
1425
+ "stopBits": {
1426
+ "type": "number"
1427
+ },
1428
+ "parity": {
1429
+ "type": "string",
1430
+ "maxLength": 8
1431
+ },
1432
+ "rtscts": {
1433
+ "type": "boolean"
1434
+ },
1422
1435
  "encoding": {
1423
1436
  "type": "string",
1424
1437
  "maxLength": 48
@@ -3585,6 +3598,19 @@
3585
3598
  "baudRate": {
3586
3599
  "type": "number"
3587
3600
  },
3601
+ "dataBits": {
3602
+ "type": "number"
3603
+ },
3604
+ "stopBits": {
3605
+ "type": "number"
3606
+ },
3607
+ "parity": {
3608
+ "type": "string",
3609
+ "maxLength": 8
3610
+ },
3611
+ "rtscts": {
3612
+ "type": "boolean"
3613
+ },
3588
3614
  "encoding": {
3589
3615
  "type": "string",
3590
3616
  "maxLength": 48
@@ -5751,6 +5777,19 @@
5751
5777
  "baudRate": {
5752
5778
  "type": "number"
5753
5779
  },
5780
+ "dataBits": {
5781
+ "type": "number"
5782
+ },
5783
+ "stopBits": {
5784
+ "type": "number"
5785
+ },
5786
+ "parity": {
5787
+ "type": "string",
5788
+ "maxLength": 8
5789
+ },
5790
+ "rtscts": {
5791
+ "type": "boolean"
5792
+ },
5754
5793
  "encoding": {
5755
5794
  "type": "string",
5756
5795
  "maxLength": 48
@@ -4,7 +4,8 @@
4
4
  "properties": {
5
5
  "accessToken": {
6
6
  "type": "string",
7
- "minLength": 1
7
+ "minLength": 1,
8
+ "maxLength": 1024
8
9
  },
9
10
  "requestedScopes": {
10
11
  "type": "array",
@@ -68,6 +69,7 @@
68
69
  "notebooks.*",
69
70
  "webhook.*",
70
71
  "webhooks.*",
72
+ "application.applyTemplate",
71
73
  "application.archiveData",
72
74
  "application.backfillArchiveData",
73
75
  "application.clone",
@@ -304,8 +306,12 @@
304
306
  "enum": [
305
307
  "all.User",
306
308
  "all.User.read",
309
+ "applicationTemplate.*",
310
+ "applicationTemplate.get",
307
311
  "applicationTemplates.*",
308
312
  "applicationTemplates.get",
313
+ "applicationTemplates.getCategories",
314
+ "applicationTemplates.getUniqueKeywords",
309
315
  "me.*",
310
316
  "orgs.*",
311
317
  "me.get",
@@ -317,8 +323,6 @@
317
323
  "me.disableTwoFactorAuth",
318
324
  "me.disconnectGithub",
319
325
  "me.connectGithub",
320
- "me.disconnectTwitter",
321
- "me.connectTwitter",
322
326
  "me.addRecentItem",
323
327
  "me.fetchRecentItems",
324
328
  "me.payloadCounts",
@@ -73,9 +73,6 @@
73
73
  "githubName": {
74
74
  "type": "string"
75
75
  },
76
- "twitterName": {
77
- "type": "string"
78
- },
79
76
  "avatarUrl": {
80
77
  "type": "string",
81
78
  "format": "url"
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "password": {
41
41
  "type": "string",
42
- "minLength": 8,
42
+ "minLength": 12,
43
43
  "maxLength": 2048,
44
- "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
44
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
45
45
  },
46
46
  "tokenCutoff": {
47
47
  "type": "string",
@@ -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
  }
@@ -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-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
19
19
  }
20
20
  },
21
21
  "required": [
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "properties": {
4
+ "keywords": {
5
+ "type": "array",
6
+ "items": {
7
+ "type": "string",
8
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
9
+ },
10
+ "maxItems": 100
11
+ }
12
+ },
13
+ "additionalProperties": false
14
+ }
@@ -89,8 +89,18 @@
89
89
  "type": "object",
90
90
  "properties": {
91
91
  "value": {
92
- "type": "string",
93
- "maxLength": 255
92
+ "oneOf": [
93
+ {
94
+ "type": "string",
95
+ "maxLength": 255
96
+ },
97
+ {
98
+ "type": "number"
99
+ },
100
+ {
101
+ "type": "boolean"
102
+ }
103
+ ]
94
104
  }
95
105
  },
96
106
  "additionalProperties": false,
@@ -17,23 +17,103 @@
17
17
  "aggregation": {
18
18
  "oneOf": [
19
19
  {
20
- "type": "string",
21
- "enum": [
22
- "FIRST",
23
- "LAST",
24
- "COUNT",
25
- "MAX",
26
- "MIN",
27
- "MEDIAN",
28
- "MEAN",
29
- "SUM",
30
- "STD_DEV"
20
+ "oneOf": [
21
+ {
22
+ "type": "string",
23
+ "enum": [
24
+ "FIRST",
25
+ "LAST",
26
+ "COUNT",
27
+ "MAX",
28
+ "MIN",
29
+ "MEDIAN",
30
+ "MEAN",
31
+ "SUM",
32
+ "STD_DEV"
33
+ ]
34
+ },
35
+ {
36
+ "type": "string",
37
+ "enum": [
38
+ "NONE"
39
+ ]
40
+ }
31
41
  ]
32
42
  },
33
43
  {
34
- "type": "string",
35
- "enum": [
36
- "NONE"
44
+ "type": "object",
45
+ "properties": {
46
+ "type": {
47
+ "oneOf": [
48
+ {
49
+ "type": "string",
50
+ "enum": [
51
+ "FIRST",
52
+ "LAST",
53
+ "COUNT",
54
+ "MAX",
55
+ "MIN",
56
+ "MEDIAN",
57
+ "MEAN",
58
+ "SUM",
59
+ "STD_DEV"
60
+ ]
61
+ },
62
+ {
63
+ "type": "string",
64
+ "enum": [
65
+ "NONE"
66
+ ]
67
+ }
68
+ ]
69
+ },
70
+ "options": {
71
+ "type": "object",
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "type"
78
+ ]
79
+ },
80
+ {
81
+ "type": "object",
82
+ "properties": {
83
+ "type": {
84
+ "type": "string",
85
+ "enum": [
86
+ "TIMEATVALUE"
87
+ ]
88
+ },
89
+ "options": {
90
+ "type": "object",
91
+ "properties": {
92
+ "value": {
93
+ "oneOf": [
94
+ {
95
+ "type": "string",
96
+ "maxLength": 255
97
+ },
98
+ {
99
+ "type": "number"
100
+ },
101
+ {
102
+ "type": "boolean"
103
+ }
104
+ ]
105
+ }
106
+ },
107
+ "additionalProperties": false,
108
+ "required": [
109
+ "value"
110
+ ]
111
+ }
112
+ },
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "type",
116
+ "options"
37
117
  ]
38
118
  }
39
119
  ]