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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +1375 -139
- data/docs/application.md +42 -0
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationTemplate.md +46 -0
- data/docs/applicationTemplates.md +76 -1
- data/docs/device.md +6 -3
- data/docs/me.md +0 -36
- data/lib/losant_rest.rb +1 -0
- data/lib/losant_rest/application.rb +48 -0
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_template.rb +79 -0
- data/lib/losant_rest/application_templates.rb +89 -1
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/device.rb +9 -3
- data/lib/losant_rest/me.rb +0 -41
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +8 -0
- data/schemas/applicationApiTokenPost.json +1 -0
- data/schemas/applicationApplyTemplatePatch.json +19 -0
- data/schemas/applicationCreationByTemplateResult.json +8 -0
- data/schemas/applicationPost.json +8 -0
- data/schemas/applicationTemplate.json +20 -0
- data/schemas/applicationTemplateCategories.json +43 -0
- data/schemas/applicationTemplateCategory.json +23 -0
- data/schemas/applicationTemplates.json +32 -0
- data/schemas/applications.json +8 -0
- data/schemas/changePassword.json +2 -2
- data/schemas/dashboard.json +145 -25
- data/schemas/dashboardPatch.json +145 -25
- data/schemas/dashboardPost.json +145 -25
- data/schemas/dashboards.json +145 -25
- data/schemas/dataExport.json +132 -1
- data/schemas/experienceLinkedResources.json +39 -0
- data/schemas/flow.json +13 -0
- data/schemas/flowPatch.json +13 -0
- data/schemas/flowPost.json +13 -0
- data/schemas/flowVersion.json +26 -0
- data/schemas/flowVersionPost.json +13 -0
- data/schemas/flowVersions.json +26 -0
- data/schemas/flows.json +13 -0
- data/schemas/flowsImportPost.json +26 -0
- data/schemas/flowsImportResult.json +39 -0
- data/schemas/githubLogin.json +7 -3
- data/schemas/me.json +0 -3
- data/schemas/mePatch.json +2 -2
- data/schemas/orgInviteInfo.json +3 -0
- data/schemas/orgInvitePost.json +3 -0
- data/schemas/orgInvites.json +3 -0
- data/schemas/passwordResetFinish.json +2 -2
- data/schemas/templateKeywords.json +14 -0
- data/schemas/timeSeriesData.json +12 -2
- data/schemas/timeSeriesQuery.json +94 -14
- data/schemas/userCredentials.json +5 -2
- data/schemas/userPost.json +13 -6
- metadata +11 -5
data/schemas/flow.json
CHANGED
@@ -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
|
data/schemas/flowPatch.json
CHANGED
@@ -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
|
data/schemas/flowPost.json
CHANGED
@@ -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
|
data/schemas/flowVersion.json
CHANGED
@@ -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
|
data/schemas/flowVersions.json
CHANGED
@@ -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
|
data/schemas/flows.json
CHANGED
@@ -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
|
data/schemas/githubLogin.json
CHANGED
@@ -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",
|
data/schemas/me.json
CHANGED
data/schemas/mePatch.json
CHANGED
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"password": {
|
41
41
|
"type": "string",
|
42
|
-
"minLength":
|
42
|
+
"minLength": 12,
|
43
43
|
"maxLength": 2048,
|
44
|
-
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{
|
44
|
+
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
|
45
45
|
},
|
46
46
|
"tokenCutoff": {
|
47
47
|
"type": "string",
|
data/schemas/orgInviteInfo.json
CHANGED
data/schemas/orgInvitePost.json
CHANGED
data/schemas/orgInvites.json
CHANGED
@@ -13,9 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"password": {
|
15
15
|
"type": "string",
|
16
|
-
"minLength":
|
16
|
+
"minLength": 12,
|
17
17
|
"maxLength": 2048,
|
18
|
-
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{
|
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
|
+
}
|
data/schemas/timeSeriesData.json
CHANGED
@@ -89,8 +89,18 @@
|
|
89
89
|
"type": "object",
|
90
90
|
"properties": {
|
91
91
|
"value": {
|
92
|
-
"
|
93
|
-
|
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
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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": "
|
35
|
-
"
|
36
|
-
"
|
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
|
]
|