losant_rest 1.10.2 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/_schemas.md +21561 -8561
  4. data/docs/application.md +83 -0
  5. data/docs/applicationApiTokens.md +2 -2
  6. data/docs/applicationCertificateAuthorities.md +1 -1
  7. data/docs/applicationCertificates.md +1 -1
  8. data/docs/applicationDashboard.md +133 -0
  9. data/docs/applicationDashboards.md +93 -0
  10. data/docs/applicationKeys.md +4 -3
  11. data/docs/applicationTemplate.md +46 -0
  12. data/docs/applicationTemplates.md +77 -2
  13. data/docs/applications.md +1 -1
  14. data/docs/auditLogs.md +1 -1
  15. data/docs/dashboards.md +1 -1
  16. data/docs/dataTables.md +1 -1
  17. data/docs/device.md +6 -3
  18. data/docs/deviceRecipes.md +1 -1
  19. data/docs/devices.md +130 -4
  20. data/docs/edgeDeployments.md +1 -1
  21. data/docs/events.md +1 -1
  22. data/docs/experienceEndpoint.md +1 -0
  23. data/docs/experienceEndpoints.md +1 -0
  24. data/docs/experienceGroups.md +1 -1
  25. data/docs/experienceUsers.md +1 -1
  26. data/docs/experienceVersions.md +1 -1
  27. data/docs/experienceViews.md +1 -1
  28. data/docs/file.md +4 -4
  29. data/docs/files.md +1 -1
  30. data/docs/flow.md +94 -1
  31. data/docs/flowVersion.md +96 -1
  32. data/docs/flowVersions.md +2 -1
  33. data/docs/flows.md +5 -2
  34. data/docs/integration.md +1 -0
  35. data/docs/integrations.md +1 -1
  36. data/docs/me.md +0 -36
  37. data/docs/notebooks.md +1 -1
  38. data/docs/orgs.md +1 -1
  39. data/docs/webhook.md +1 -0
  40. data/docs/webhooks.md +1 -1
  41. data/lib/losant_rest.rb +3 -0
  42. data/lib/losant_rest/application.rb +95 -0
  43. data/lib/losant_rest/application_api_tokens.rb +1 -1
  44. data/lib/losant_rest/application_dashboard.rb +176 -0
  45. data/lib/losant_rest/application_dashboards.rb +138 -0
  46. data/lib/losant_rest/application_keys.rb +3 -0
  47. data/lib/losant_rest/application_template.rb +79 -0
  48. data/lib/losant_rest/application_templates.rb +89 -1
  49. data/lib/losant_rest/client.rb +14 -2
  50. data/lib/losant_rest/device.rb +9 -3
  51. data/lib/losant_rest/devices.rb +154 -1
  52. data/lib/losant_rest/experience_endpoint.rb +2 -0
  53. data/lib/losant_rest/experience_endpoints.rb +2 -0
  54. data/lib/losant_rest/file.rb +3 -3
  55. data/lib/losant_rest/flow.rb +115 -1
  56. data/lib/losant_rest/flow_version.rb +115 -1
  57. data/lib/losant_rest/flow_versions.rb +3 -0
  58. data/lib/losant_rest/flows.rb +8 -0
  59. data/lib/losant_rest/integration.rb +2 -0
  60. data/lib/losant_rest/me.rb +0 -41
  61. data/lib/losant_rest/version.rb +1 -1
  62. data/lib/losant_rest/webhook.rb +2 -0
  63. data/schemas/advancedApplicationKeyQuery.json +1082 -0
  64. data/schemas/advancedFlowByVersionQuery.json +665 -0
  65. data/schemas/advancedFlowQuery.json +883 -0
  66. data/schemas/advancedFlowVersionQuery.json +925 -0
  67. data/schemas/application.json +8 -0
  68. data/schemas/applicationApiTokenPost.json +16 -1
  69. data/schemas/applicationApplyTemplatePatch.json +19 -0
  70. data/schemas/applicationCreationByTemplateResult.json +8 -0
  71. data/schemas/applicationDashboardPost.json +5665 -0
  72. data/schemas/applicationGlobalPatch.json +33 -0
  73. data/schemas/applicationPost.json +8 -0
  74. data/schemas/applicationTemplate.json +20 -0
  75. data/schemas/applicationTemplateCategories.json +43 -0
  76. data/schemas/applicationTemplateCategory.json +23 -0
  77. data/schemas/applicationTemplates.json +32 -0
  78. data/schemas/applications.json +8 -0
  79. data/schemas/attributeNamesResponse.json +14 -0
  80. data/schemas/authedUser.json +3 -0
  81. data/schemas/changePassword.json +2 -2
  82. data/schemas/dashboard.json +195 -26
  83. data/schemas/dashboardPatch.json +195 -26
  84. data/schemas/dashboardPost.json +195 -26
  85. data/schemas/dashboards.json +195 -26
  86. data/schemas/dataExport.json +132 -1
  87. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  88. data/schemas/deviceClassFilter.json +1 -2
  89. data/schemas/eventPost.json +22 -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 +96 -0
  95. data/schemas/experienceVersion.json +10 -1
  96. data/schemas/experienceVersionPatch.json +9 -0
  97. data/schemas/experienceVersions.json +10 -1
  98. data/schemas/files.json +3 -0
  99. data/schemas/flow.json +32 -0
  100. data/schemas/flowErrors.json +87 -0
  101. data/schemas/flowPatch.json +32 -0
  102. data/schemas/flowPost.json +32 -0
  103. data/schemas/flowStats.json +54 -0
  104. data/schemas/flowVersion.json +64 -0
  105. data/schemas/flowVersionPost.json +32 -0
  106. data/schemas/flowVersions.json +64 -0
  107. data/schemas/flows.json +32 -0
  108. data/schemas/flowsImportPost.json +64 -0
  109. data/schemas/flowsImportResult.json +96 -0
  110. data/schemas/githubLogin.json +33 -4
  111. data/schemas/instance.json +132 -0
  112. data/schemas/instanceOrg.json +119 -0
  113. data/schemas/instanceOrgPatch.json +103 -0
  114. data/schemas/instanceOrgPost.json +114 -0
  115. data/schemas/instanceOrgs.json +160 -0
  116. data/schemas/instances.json +43 -0
  117. data/schemas/integration.json +3 -0
  118. data/schemas/integrationPatch.json +3 -0
  119. data/schemas/integrationPost.json +3 -0
  120. data/schemas/integrations.json +3 -0
  121. data/schemas/me.json +3 -3
  122. data/schemas/mePatch.json +2 -2
  123. data/schemas/notebook.json +96 -0
  124. data/schemas/notebookExecutionLogs.json +7 -0
  125. data/schemas/notebookPatch.json +96 -0
  126. data/schemas/notebookPost.json +96 -0
  127. data/schemas/notebooks.json +96 -0
  128. data/schemas/org.json +1 -1
  129. data/schemas/orgInviteInfo.json +3 -0
  130. data/schemas/orgInvitePost.json +3 -0
  131. data/schemas/orgInvites.json +3 -0
  132. data/schemas/orgPatch.json +1 -1
  133. data/schemas/orgs.json +1 -1
  134. data/schemas/passwordResetFinish.json +2 -2
  135. data/schemas/samlResponse.json +1 -1
  136. data/schemas/tagKeysResponse.json +14 -0
  137. data/schemas/tagValuesResponse.json +19 -0
  138. data/schemas/templateKeywords.json +14 -0
  139. data/schemas/timeSeriesData.json +12 -2
  140. data/schemas/timeSeriesQuery.json +94 -14
  141. data/schemas/userCredentials.json +31 -3
  142. data/schemas/userPost.json +39 -7
  143. metadata +34 -6
@@ -928,6 +928,17 @@
928
928
  },
929
929
  "config": {
930
930
  "type": "object",
931
+ "properties": {
932
+ "scope": {
933
+ "type": "string",
934
+ "enum": [
935
+ "local",
936
+ "global",
937
+ "experience",
938
+ "cloud"
939
+ ]
940
+ }
941
+ },
931
942
  "additionalProperties": false
932
943
  },
933
944
  "meta": {
@@ -1392,6 +1403,19 @@
1392
1403
  "baudRate": {
1393
1404
  "type": "number"
1394
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
+ },
1395
1419
  "encoding": {
1396
1420
  "type": "string",
1397
1421
  "maxLength": 48
@@ -1400,6 +1424,10 @@
1400
1424
  "type": "string",
1401
1425
  "maxLength": 1024
1402
1426
  },
1427
+ "writeOnOpenEncoding": {
1428
+ "type": "string",
1429
+ "maxLength": 48
1430
+ },
1403
1431
  "byteLength": {
1404
1432
  "type": "string",
1405
1433
  "maxLength": 48
@@ -1407,6 +1435,10 @@
1407
1435
  "delimiter": {
1408
1436
  "type": "string",
1409
1437
  "maxLength": 48
1438
+ },
1439
+ "delimiterEncoding": {
1440
+ "type": "string",
1441
+ "maxLength": 48
1410
1442
  }
1411
1443
  },
1412
1444
  "additionalProperties": false
@@ -917,6 +917,17 @@
917
917
  },
918
918
  "config": {
919
919
  "type": "object",
920
+ "properties": {
921
+ "scope": {
922
+ "type": "string",
923
+ "enum": [
924
+ "local",
925
+ "global",
926
+ "experience",
927
+ "cloud"
928
+ ]
929
+ }
930
+ },
920
931
  "additionalProperties": false
921
932
  },
922
933
  "meta": {
@@ -1381,6 +1392,19 @@
1381
1392
  "baudRate": {
1382
1393
  "type": "number"
1383
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
+ },
1384
1408
  "encoding": {
1385
1409
  "type": "string",
1386
1410
  "maxLength": 48
@@ -1389,6 +1413,10 @@
1389
1413
  "type": "string",
1390
1414
  "maxLength": 1024
1391
1415
  },
1416
+ "writeOnOpenEncoding": {
1417
+ "type": "string",
1418
+ "maxLength": 48
1419
+ },
1392
1420
  "byteLength": {
1393
1421
  "type": "string",
1394
1422
  "maxLength": 48
@@ -1396,6 +1424,10 @@
1396
1424
  "delimiter": {
1397
1425
  "type": "string",
1398
1426
  "maxLength": 48
1427
+ },
1428
+ "delimiterEncoding": {
1429
+ "type": "string",
1430
+ "maxLength": 48
1399
1431
  }
1400
1432
  },
1401
1433
  "additionalProperties": false
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "flowVersion": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 255
9
+ },
10
+ "flowVersionId": {
11
+ "type": "string",
12
+ "pattern": "^[A-Fa-f\\d]{24}$"
13
+ },
14
+ "deviceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Fa-f\\d]{24}$"
17
+ },
18
+ "start": {
19
+ "type": "string",
20
+ "format": "date-time"
21
+ },
22
+ "end": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "resolution": {
27
+ "type": "number"
28
+ },
29
+ "metrics": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "time": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ },
38
+ "pathsFailed": {
39
+ "type": "number"
40
+ },
41
+ "pathsCompleted": {
42
+ "type": "number"
43
+ },
44
+ "runCount": {
45
+ "type": "number"
46
+ },
47
+ "wallTime": {
48
+ "type": "number"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -932,6 +932,17 @@
932
932
  },
933
933
  "config": {
934
934
  "type": "object",
935
+ "properties": {
936
+ "scope": {
937
+ "type": "string",
938
+ "enum": [
939
+ "local",
940
+ "global",
941
+ "experience",
942
+ "cloud"
943
+ ]
944
+ }
945
+ },
935
946
  "additionalProperties": false
936
947
  },
937
948
  "meta": {
@@ -1396,6 +1407,19 @@
1396
1407
  "baudRate": {
1397
1408
  "type": "number"
1398
1409
  },
1410
+ "dataBits": {
1411
+ "type": "number"
1412
+ },
1413
+ "stopBits": {
1414
+ "type": "number"
1415
+ },
1416
+ "parity": {
1417
+ "type": "string",
1418
+ "maxLength": 8
1419
+ },
1420
+ "rtscts": {
1421
+ "type": "boolean"
1422
+ },
1399
1423
  "encoding": {
1400
1424
  "type": "string",
1401
1425
  "maxLength": 48
@@ -1404,6 +1428,10 @@
1404
1428
  "type": "string",
1405
1429
  "maxLength": 1024
1406
1430
  },
1431
+ "writeOnOpenEncoding": {
1432
+ "type": "string",
1433
+ "maxLength": 48
1434
+ },
1407
1435
  "byteLength": {
1408
1436
  "type": "string",
1409
1437
  "maxLength": 48
@@ -1411,6 +1439,10 @@
1411
1439
  "delimiter": {
1412
1440
  "type": "string",
1413
1441
  "maxLength": 48
1442
+ },
1443
+ "delimiterEncoding": {
1444
+ "type": "string",
1445
+ "maxLength": 48
1414
1446
  }
1415
1447
  },
1416
1448
  "additionalProperties": false
@@ -3098,6 +3130,17 @@
3098
3130
  },
3099
3131
  "config": {
3100
3132
  "type": "object",
3133
+ "properties": {
3134
+ "scope": {
3135
+ "type": "string",
3136
+ "enum": [
3137
+ "local",
3138
+ "global",
3139
+ "experience",
3140
+ "cloud"
3141
+ ]
3142
+ }
3143
+ },
3101
3144
  "additionalProperties": false
3102
3145
  },
3103
3146
  "meta": {
@@ -3562,6 +3605,19 @@
3562
3605
  "baudRate": {
3563
3606
  "type": "number"
3564
3607
  },
3608
+ "dataBits": {
3609
+ "type": "number"
3610
+ },
3611
+ "stopBits": {
3612
+ "type": "number"
3613
+ },
3614
+ "parity": {
3615
+ "type": "string",
3616
+ "maxLength": 8
3617
+ },
3618
+ "rtscts": {
3619
+ "type": "boolean"
3620
+ },
3565
3621
  "encoding": {
3566
3622
  "type": "string",
3567
3623
  "maxLength": 48
@@ -3570,6 +3626,10 @@
3570
3626
  "type": "string",
3571
3627
  "maxLength": 1024
3572
3628
  },
3629
+ "writeOnOpenEncoding": {
3630
+ "type": "string",
3631
+ "maxLength": 48
3632
+ },
3573
3633
  "byteLength": {
3574
3634
  "type": "string",
3575
3635
  "maxLength": 48
@@ -3577,6 +3637,10 @@
3577
3637
  "delimiter": {
3578
3638
  "type": "string",
3579
3639
  "maxLength": 48
3640
+ },
3641
+ "delimiterEncoding": {
3642
+ "type": "string",
3643
+ "maxLength": 48
3580
3644
  }
3581
3645
  },
3582
3646
  "additionalProperties": false
@@ -905,6 +905,17 @@
905
905
  },
906
906
  "config": {
907
907
  "type": "object",
908
+ "properties": {
909
+ "scope": {
910
+ "type": "string",
911
+ "enum": [
912
+ "local",
913
+ "global",
914
+ "experience",
915
+ "cloud"
916
+ ]
917
+ }
918
+ },
908
919
  "additionalProperties": false
909
920
  },
910
921
  "meta": {
@@ -1369,6 +1380,19 @@
1369
1380
  "baudRate": {
1370
1381
  "type": "number"
1371
1382
  },
1383
+ "dataBits": {
1384
+ "type": "number"
1385
+ },
1386
+ "stopBits": {
1387
+ "type": "number"
1388
+ },
1389
+ "parity": {
1390
+ "type": "string",
1391
+ "maxLength": 8
1392
+ },
1393
+ "rtscts": {
1394
+ "type": "boolean"
1395
+ },
1372
1396
  "encoding": {
1373
1397
  "type": "string",
1374
1398
  "maxLength": 48
@@ -1377,6 +1401,10 @@
1377
1401
  "type": "string",
1378
1402
  "maxLength": 1024
1379
1403
  },
1404
+ "writeOnOpenEncoding": {
1405
+ "type": "string",
1406
+ "maxLength": 48
1407
+ },
1380
1408
  "byteLength": {
1381
1409
  "type": "string",
1382
1410
  "maxLength": 48
@@ -1384,6 +1412,10 @@
1384
1412
  "delimiter": {
1385
1413
  "type": "string",
1386
1414
  "maxLength": 48
1415
+ },
1416
+ "delimiterEncoding": {
1417
+ "type": "string",
1418
+ "maxLength": 48
1387
1419
  }
1388
1420
  },
1389
1421
  "additionalProperties": false
@@ -939,6 +939,17 @@
939
939
  },
940
940
  "config": {
941
941
  "type": "object",
942
+ "properties": {
943
+ "scope": {
944
+ "type": "string",
945
+ "enum": [
946
+ "local",
947
+ "global",
948
+ "experience",
949
+ "cloud"
950
+ ]
951
+ }
952
+ },
942
953
  "additionalProperties": false
943
954
  },
944
955
  "meta": {
@@ -1403,6 +1414,19 @@
1403
1414
  "baudRate": {
1404
1415
  "type": "number"
1405
1416
  },
1417
+ "dataBits": {
1418
+ "type": "number"
1419
+ },
1420
+ "stopBits": {
1421
+ "type": "number"
1422
+ },
1423
+ "parity": {
1424
+ "type": "string",
1425
+ "maxLength": 8
1426
+ },
1427
+ "rtscts": {
1428
+ "type": "boolean"
1429
+ },
1406
1430
  "encoding": {
1407
1431
  "type": "string",
1408
1432
  "maxLength": 48
@@ -1411,6 +1435,10 @@
1411
1435
  "type": "string",
1412
1436
  "maxLength": 1024
1413
1437
  },
1438
+ "writeOnOpenEncoding": {
1439
+ "type": "string",
1440
+ "maxLength": 48
1441
+ },
1414
1442
  "byteLength": {
1415
1443
  "type": "string",
1416
1444
  "maxLength": 48
@@ -1418,6 +1446,10 @@
1418
1446
  "delimiter": {
1419
1447
  "type": "string",
1420
1448
  "maxLength": 48
1449
+ },
1450
+ "delimiterEncoding": {
1451
+ "type": "string",
1452
+ "maxLength": 48
1421
1453
  }
1422
1454
  },
1423
1455
  "additionalProperties": false
@@ -3105,6 +3137,17 @@
3105
3137
  },
3106
3138
  "config": {
3107
3139
  "type": "object",
3140
+ "properties": {
3141
+ "scope": {
3142
+ "type": "string",
3143
+ "enum": [
3144
+ "local",
3145
+ "global",
3146
+ "experience",
3147
+ "cloud"
3148
+ ]
3149
+ }
3150
+ },
3108
3151
  "additionalProperties": false
3109
3152
  },
3110
3153
  "meta": {
@@ -3569,6 +3612,19 @@
3569
3612
  "baudRate": {
3570
3613
  "type": "number"
3571
3614
  },
3615
+ "dataBits": {
3616
+ "type": "number"
3617
+ },
3618
+ "stopBits": {
3619
+ "type": "number"
3620
+ },
3621
+ "parity": {
3622
+ "type": "string",
3623
+ "maxLength": 8
3624
+ },
3625
+ "rtscts": {
3626
+ "type": "boolean"
3627
+ },
3572
3628
  "encoding": {
3573
3629
  "type": "string",
3574
3630
  "maxLength": 48
@@ -3577,6 +3633,10 @@
3577
3633
  "type": "string",
3578
3634
  "maxLength": 1024
3579
3635
  },
3636
+ "writeOnOpenEncoding": {
3637
+ "type": "string",
3638
+ "maxLength": 48
3639
+ },
3580
3640
  "byteLength": {
3581
3641
  "type": "string",
3582
3642
  "maxLength": 48
@@ -3584,6 +3644,10 @@
3584
3644
  "delimiter": {
3585
3645
  "type": "string",
3586
3646
  "maxLength": 48
3647
+ },
3648
+ "delimiterEncoding": {
3649
+ "type": "string",
3650
+ "maxLength": 48
3587
3651
  }
3588
3652
  },
3589
3653
  "additionalProperties": false