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
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "updated": {
6
+ "type": "number"
7
+ },
8
+ "failed": {
9
+ "type": "number"
10
+ },
11
+ "skipped": {
12
+ "type": "number"
13
+ },
14
+ "logLink": {
15
+ "type": "string"
16
+ }
17
+ }
18
+ }
@@ -43,6 +43,28 @@
43
43
  }
44
44
  },
45
45
  "additionalProperties": false
46
+ },
47
+ "creationDate": {
48
+ "oneOf": [
49
+ {
50
+ "type": "string"
51
+ },
52
+ {
53
+ "type": "number"
54
+ },
55
+ {
56
+ "type": "object",
57
+ "properties": {
58
+ "$date": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "$date"
65
+ ]
66
+ }
67
+ ]
46
68
  }
47
69
  },
48
70
  "required": [
@@ -108,6 +108,28 @@
108
108
  },
109
109
  "$ci": {
110
110
  "type": "boolean"
111
+ },
112
+ "$in": {
113
+ "type": "array",
114
+ "maxItems": 100,
115
+ "items": {
116
+ "type": [
117
+ "string",
118
+ "number",
119
+ "boolean"
120
+ ]
121
+ }
122
+ },
123
+ "$nin": {
124
+ "type": "array",
125
+ "maxItems": 100,
126
+ "items": {
127
+ "type": [
128
+ "string",
129
+ "number",
130
+ "boolean"
131
+ ]
132
+ }
111
133
  }
112
134
  },
113
135
  "additionalProperties": false
@@ -189,6 +211,28 @@
189
211
  },
190
212
  "$ci": {
191
213
  "type": "boolean"
214
+ },
215
+ "$in": {
216
+ "type": "array",
217
+ "maxItems": 100,
218
+ "items": {
219
+ "type": [
220
+ "string",
221
+ "number",
222
+ "boolean"
223
+ ]
224
+ }
225
+ },
226
+ "$nin": {
227
+ "type": "array",
228
+ "maxItems": 100,
229
+ "items": {
230
+ "type": [
231
+ "string",
232
+ "number",
233
+ "boolean"
234
+ ]
235
+ }
192
236
  }
193
237
  },
194
238
  "additionalProperties": false
@@ -270,6 +314,28 @@
270
314
  },
271
315
  "$ci": {
272
316
  "type": "boolean"
317
+ },
318
+ "$in": {
319
+ "type": "array",
320
+ "maxItems": 100,
321
+ "items": {
322
+ "type": [
323
+ "string",
324
+ "number",
325
+ "boolean"
326
+ ]
327
+ }
328
+ },
329
+ "$nin": {
330
+ "type": "array",
331
+ "maxItems": 100,
332
+ "items": {
333
+ "type": [
334
+ "string",
335
+ "number",
336
+ "boolean"
337
+ ]
338
+ }
273
339
  }
274
340
  },
275
341
  "additionalProperties": false
@@ -351,6 +417,28 @@
351
417
  },
352
418
  "$ci": {
353
419
  "type": "boolean"
420
+ },
421
+ "$in": {
422
+ "type": "array",
423
+ "maxItems": 100,
424
+ "items": {
425
+ "type": [
426
+ "string",
427
+ "number",
428
+ "boolean"
429
+ ]
430
+ }
431
+ },
432
+ "$nin": {
433
+ "type": "array",
434
+ "maxItems": 100,
435
+ "items": {
436
+ "type": [
437
+ "string",
438
+ "number",
439
+ "boolean"
440
+ ]
441
+ }
354
442
  }
355
443
  },
356
444
  "additionalProperties": false
@@ -432,6 +520,28 @@
432
520
  },
433
521
  "$ci": {
434
522
  "type": "boolean"
523
+ },
524
+ "$in": {
525
+ "type": "array",
526
+ "maxItems": 100,
527
+ "items": {
528
+ "type": [
529
+ "string",
530
+ "number",
531
+ "boolean"
532
+ ]
533
+ }
534
+ },
535
+ "$nin": {
536
+ "type": "array",
537
+ "maxItems": 100,
538
+ "items": {
539
+ "type": [
540
+ "string",
541
+ "number",
542
+ "boolean"
543
+ ]
544
+ }
435
545
  }
436
546
  },
437
547
  "additionalProperties": false
@@ -513,6 +623,28 @@
513
623
  },
514
624
  "$ci": {
515
625
  "type": "boolean"
626
+ },
627
+ "$in": {
628
+ "type": "array",
629
+ "maxItems": 100,
630
+ "items": {
631
+ "type": [
632
+ "string",
633
+ "number",
634
+ "boolean"
635
+ ]
636
+ }
637
+ },
638
+ "$nin": {
639
+ "type": "array",
640
+ "maxItems": 100,
641
+ "items": {
642
+ "type": [
643
+ "string",
644
+ "number",
645
+ "boolean"
646
+ ]
647
+ }
516
648
  }
517
649
  },
518
650
  "additionalProperties": false
@@ -594,6 +726,28 @@
594
726
  },
595
727
  "$ci": {
596
728
  "type": "boolean"
729
+ },
730
+ "$in": {
731
+ "type": "array",
732
+ "maxItems": 100,
733
+ "items": {
734
+ "type": [
735
+ "string",
736
+ "number",
737
+ "boolean"
738
+ ]
739
+ }
740
+ },
741
+ "$nin": {
742
+ "type": "array",
743
+ "maxItems": 100,
744
+ "items": {
745
+ "type": [
746
+ "string",
747
+ "number",
748
+ "boolean"
749
+ ]
750
+ }
597
751
  }
598
752
  },
599
753
  "additionalProperties": false
@@ -675,6 +829,28 @@
675
829
  },
676
830
  "$ci": {
677
831
  "type": "boolean"
832
+ },
833
+ "$in": {
834
+ "type": "array",
835
+ "maxItems": 100,
836
+ "items": {
837
+ "type": [
838
+ "string",
839
+ "number",
840
+ "boolean"
841
+ ]
842
+ }
843
+ },
844
+ "$nin": {
845
+ "type": "array",
846
+ "maxItems": 100,
847
+ "items": {
848
+ "type": [
849
+ "string",
850
+ "number",
851
+ "boolean"
852
+ ]
853
+ }
678
854
  }
679
855
  },
680
856
  "additionalProperties": false
@@ -756,6 +932,28 @@
756
932
  },
757
933
  "$ci": {
758
934
  "type": "boolean"
935
+ },
936
+ "$in": {
937
+ "type": "array",
938
+ "maxItems": 100,
939
+ "items": {
940
+ "type": [
941
+ "string",
942
+ "number",
943
+ "boolean"
944
+ ]
945
+ }
946
+ },
947
+ "$nin": {
948
+ "type": "array",
949
+ "maxItems": 100,
950
+ "items": {
951
+ "type": [
952
+ "string",
953
+ "number",
954
+ "boolean"
955
+ ]
956
+ }
759
957
  }
760
958
  },
761
959
  "additionalProperties": false
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "domainName": {
36
36
  "type": "string",
37
- "maxLength": 1024,
37
+ "maxLength": 45,
38
38
  "minLength": 3
39
39
  },
40
40
  "version": {
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "domainName": {
54
54
  "type": "string",
55
- "maxLength": 1024,
55
+ "maxLength": 45,
56
56
  "minLength": 3
57
57
  }
58
58
  },
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "domainName": {
21
21
  "type": "string",
22
- "maxLength": 1024,
22
+ "maxLength": 45,
23
23
  "minLength": 3
24
24
  },
25
25
  "version": {
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "domainName": {
43
43
  "type": "string",
44
- "maxLength": 1024,
44
+ "maxLength": 45,
45
45
  "minLength": 3
46
46
  },
47
47
  "version": {
@@ -460,7 +460,6 @@
460
460
  "deviceIdDisconnect",
461
461
  "deviceTagDisconnect",
462
462
  "integration",
463
- "mqttTopic",
464
463
  "notebook",
465
464
  "onBoot",
466
465
  "onConnect",
@@ -1406,6 +1405,109 @@
1406
1405
  ],
1407
1406
  "additionalProperties": false
1408
1407
  },
1408
+ {
1409
+ "type": "object",
1410
+ "properties": {
1411
+ "key": {
1412
+ "type": "string",
1413
+ "maxLength": 1024
1414
+ },
1415
+ "type": {
1416
+ "type": "string",
1417
+ "enum": [
1418
+ "mqttTopic"
1419
+ ]
1420
+ },
1421
+ "config": {
1422
+ "type": "object",
1423
+ "properties": {
1424
+ "integrationId": {
1425
+ "type": "string",
1426
+ "enum": [
1427
+ "losant",
1428
+ "local"
1429
+ ]
1430
+ }
1431
+ },
1432
+ "additionalProperties": false
1433
+ },
1434
+ "meta": {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "category": {
1438
+ "type": "string",
1439
+ "enum": [
1440
+ "trigger"
1441
+ ]
1442
+ },
1443
+ "name": {
1444
+ "type": "string",
1445
+ "enum": [
1446
+ "mqtt"
1447
+ ]
1448
+ },
1449
+ "label": {
1450
+ "type": "string",
1451
+ "minLength": 1,
1452
+ "maxLength": 255
1453
+ },
1454
+ "x": {
1455
+ "type": "number"
1456
+ },
1457
+ "y": {
1458
+ "type": "number"
1459
+ },
1460
+ "uiId": {
1461
+ "type": "string",
1462
+ "maxLength": 48
1463
+ },
1464
+ "description": {
1465
+ "type": "string",
1466
+ "maxLength": 32767
1467
+ },
1468
+ "icon": {
1469
+ "type": "string",
1470
+ "maxLength": 1024
1471
+ },
1472
+ "color": {
1473
+ "type": "string",
1474
+ "maxLength": 1024
1475
+ },
1476
+ "inputCount": {
1477
+ "type": "number"
1478
+ },
1479
+ "outputCount": {
1480
+ "type": "number"
1481
+ },
1482
+ "triggerId": {
1483
+ "type": "string",
1484
+ "maxLength": 48
1485
+ },
1486
+ "id": {
1487
+ "type": "string",
1488
+ "maxLength": 48
1489
+ }
1490
+ },
1491
+ "additionalProperties": false
1492
+ },
1493
+ "outputIds": {
1494
+ "type": "array",
1495
+ "items": {
1496
+ "type": "array",
1497
+ "items": {
1498
+ "type": "string",
1499
+ "maxLength": 255
1500
+ },
1501
+ "maxItems": 100
1502
+ },
1503
+ "maxItems": 100
1504
+ }
1505
+ },
1506
+ "required": [
1507
+ "type"
1508
+ ],
1509
+ "additionalProperties": false
1510
+ },
1409
1511
  {
1410
1512
  "type": "object",
1411
1513
  "properties": {
@@ -1692,6 +1794,19 @@
1692
1794
  "baudRate": {
1693
1795
  "type": "number"
1694
1796
  },
1797
+ "dataBits": {
1798
+ "type": "number"
1799
+ },
1800
+ "stopBits": {
1801
+ "type": "number"
1802
+ },
1803
+ "parity": {
1804
+ "type": "string",
1805
+ "maxLength": 8
1806
+ },
1807
+ "rtscts": {
1808
+ "type": "boolean"
1809
+ },
1695
1810
  "encoding": {
1696
1811
  "type": "string",
1697
1812
  "maxLength": 48
@@ -1700,6 +1815,10 @@
1700
1815
  "type": "string",
1701
1816
  "maxLength": 1024
1702
1817
  },
1818
+ "writeOnOpenEncoding": {
1819
+ "type": "string",
1820
+ "maxLength": 48
1821
+ },
1703
1822
  "byteLength": {
1704
1823
  "type": "string",
1705
1824
  "maxLength": 48
@@ -1707,6 +1826,10 @@
1707
1826
  "delimiter": {
1708
1827
  "type": "string",
1709
1828
  "maxLength": 48
1829
+ },
1830
+ "delimiterEncoding": {
1831
+ "type": "string",
1832
+ "maxLength": 48
1710
1833
  }
1711
1834
  },
1712
1835
  "additionalProperties": false
@@ -2574,7 +2697,6 @@
2574
2697
  "deviceIdDisconnect",
2575
2698
  "deviceTagDisconnect",
2576
2699
  "integration",
2577
- "mqttTopic",
2578
2700
  "notebook",
2579
2701
  "onBoot",
2580
2702
  "onConnect",
@@ -3520,6 +3642,109 @@
3520
3642
  ],
3521
3643
  "additionalProperties": false
3522
3644
  },
3645
+ {
3646
+ "type": "object",
3647
+ "properties": {
3648
+ "key": {
3649
+ "type": "string",
3650
+ "maxLength": 1024
3651
+ },
3652
+ "type": {
3653
+ "type": "string",
3654
+ "enum": [
3655
+ "mqttTopic"
3656
+ ]
3657
+ },
3658
+ "config": {
3659
+ "type": "object",
3660
+ "properties": {
3661
+ "integrationId": {
3662
+ "type": "string",
3663
+ "enum": [
3664
+ "losant",
3665
+ "local"
3666
+ ]
3667
+ }
3668
+ },
3669
+ "additionalProperties": false
3670
+ },
3671
+ "meta": {
3672
+ "type": "object",
3673
+ "properties": {
3674
+ "category": {
3675
+ "type": "string",
3676
+ "enum": [
3677
+ "trigger"
3678
+ ]
3679
+ },
3680
+ "name": {
3681
+ "type": "string",
3682
+ "enum": [
3683
+ "mqtt"
3684
+ ]
3685
+ },
3686
+ "label": {
3687
+ "type": "string",
3688
+ "minLength": 1,
3689
+ "maxLength": 255
3690
+ },
3691
+ "x": {
3692
+ "type": "number"
3693
+ },
3694
+ "y": {
3695
+ "type": "number"
3696
+ },
3697
+ "uiId": {
3698
+ "type": "string",
3699
+ "maxLength": 48
3700
+ },
3701
+ "description": {
3702
+ "type": "string",
3703
+ "maxLength": 32767
3704
+ },
3705
+ "icon": {
3706
+ "type": "string",
3707
+ "maxLength": 1024
3708
+ },
3709
+ "color": {
3710
+ "type": "string",
3711
+ "maxLength": 1024
3712
+ },
3713
+ "inputCount": {
3714
+ "type": "number"
3715
+ },
3716
+ "outputCount": {
3717
+ "type": "number"
3718
+ },
3719
+ "triggerId": {
3720
+ "type": "string",
3721
+ "maxLength": 48
3722
+ },
3723
+ "id": {
3724
+ "type": "string",
3725
+ "maxLength": 48
3726
+ }
3727
+ },
3728
+ "additionalProperties": false
3729
+ },
3730
+ "outputIds": {
3731
+ "type": "array",
3732
+ "items": {
3733
+ "type": "array",
3734
+ "items": {
3735
+ "type": "string",
3736
+ "maxLength": 255
3737
+ },
3738
+ "maxItems": 100
3739
+ },
3740
+ "maxItems": 100
3741
+ }
3742
+ },
3743
+ "required": [
3744
+ "type"
3745
+ ],
3746
+ "additionalProperties": false
3747
+ },
3523
3748
  {
3524
3749
  "type": "object",
3525
3750
  "properties": {
@@ -3806,6 +4031,19 @@
3806
4031
  "baudRate": {
3807
4032
  "type": "number"
3808
4033
  },
4034
+ "dataBits": {
4035
+ "type": "number"
4036
+ },
4037
+ "stopBits": {
4038
+ "type": "number"
4039
+ },
4040
+ "parity": {
4041
+ "type": "string",
4042
+ "maxLength": 8
4043
+ },
4044
+ "rtscts": {
4045
+ "type": "boolean"
4046
+ },
3809
4047
  "encoding": {
3810
4048
  "type": "string",
3811
4049
  "maxLength": 48
@@ -3814,6 +4052,10 @@
3814
4052
  "type": "string",
3815
4053
  "maxLength": 1024
3816
4054
  },
4055
+ "writeOnOpenEncoding": {
4056
+ "type": "string",
4057
+ "maxLength": 48
4058
+ },
3817
4059
  "byteLength": {
3818
4060
  "type": "string",
3819
4061
  "maxLength": 48
@@ -3821,6 +4063,10 @@
3821
4063
  "delimiter": {
3822
4064
  "type": "string",
3823
4065
  "maxLength": 48
4066
+ },
4067
+ "delimiterEncoding": {
4068
+ "type": "string",
4069
+ "maxLength": 48
3824
4070
  }
3825
4071
  },
3826
4072
  "additionalProperties": false
@@ -4638,7 +4884,6 @@
4638
4884
  "deviceIdDisconnect",
4639
4885
  "deviceTagDisconnect",
4640
4886
  "integration",
4641
- "mqttTopic",
4642
4887
  "notebook",
4643
4888
  "onBoot",
4644
4889
  "onConnect",
@@ -5584,6 +5829,109 @@
5584
5829
  ],
5585
5830
  "additionalProperties": false
5586
5831
  },
5832
+ {
5833
+ "type": "object",
5834
+ "properties": {
5835
+ "key": {
5836
+ "type": "string",
5837
+ "maxLength": 1024
5838
+ },
5839
+ "type": {
5840
+ "type": "string",
5841
+ "enum": [
5842
+ "mqttTopic"
5843
+ ]
5844
+ },
5845
+ "config": {
5846
+ "type": "object",
5847
+ "properties": {
5848
+ "integrationId": {
5849
+ "type": "string",
5850
+ "enum": [
5851
+ "losant",
5852
+ "local"
5853
+ ]
5854
+ }
5855
+ },
5856
+ "additionalProperties": false
5857
+ },
5858
+ "meta": {
5859
+ "type": "object",
5860
+ "properties": {
5861
+ "category": {
5862
+ "type": "string",
5863
+ "enum": [
5864
+ "trigger"
5865
+ ]
5866
+ },
5867
+ "name": {
5868
+ "type": "string",
5869
+ "enum": [
5870
+ "mqtt"
5871
+ ]
5872
+ },
5873
+ "label": {
5874
+ "type": "string",
5875
+ "minLength": 1,
5876
+ "maxLength": 255
5877
+ },
5878
+ "x": {
5879
+ "type": "number"
5880
+ },
5881
+ "y": {
5882
+ "type": "number"
5883
+ },
5884
+ "uiId": {
5885
+ "type": "string",
5886
+ "maxLength": 48
5887
+ },
5888
+ "description": {
5889
+ "type": "string",
5890
+ "maxLength": 32767
5891
+ },
5892
+ "icon": {
5893
+ "type": "string",
5894
+ "maxLength": 1024
5895
+ },
5896
+ "color": {
5897
+ "type": "string",
5898
+ "maxLength": 1024
5899
+ },
5900
+ "inputCount": {
5901
+ "type": "number"
5902
+ },
5903
+ "outputCount": {
5904
+ "type": "number"
5905
+ },
5906
+ "triggerId": {
5907
+ "type": "string",
5908
+ "maxLength": 48
5909
+ },
5910
+ "id": {
5911
+ "type": "string",
5912
+ "maxLength": 48
5913
+ }
5914
+ },
5915
+ "additionalProperties": false
5916
+ },
5917
+ "outputIds": {
5918
+ "type": "array",
5919
+ "items": {
5920
+ "type": "array",
5921
+ "items": {
5922
+ "type": "string",
5923
+ "maxLength": 255
5924
+ },
5925
+ "maxItems": 100
5926
+ },
5927
+ "maxItems": 100
5928
+ }
5929
+ },
5930
+ "required": [
5931
+ "type"
5932
+ ],
5933
+ "additionalProperties": false
5934
+ },
5587
5935
  {
5588
5936
  "type": "object",
5589
5937
  "properties": {
@@ -5870,6 +6218,19 @@
5870
6218
  "baudRate": {
5871
6219
  "type": "number"
5872
6220
  },
6221
+ "dataBits": {
6222
+ "type": "number"
6223
+ },
6224
+ "stopBits": {
6225
+ "type": "number"
6226
+ },
6227
+ "parity": {
6228
+ "type": "string",
6229
+ "maxLength": 8
6230
+ },
6231
+ "rtscts": {
6232
+ "type": "boolean"
6233
+ },
5873
6234
  "encoding": {
5874
6235
  "type": "string",
5875
6236
  "maxLength": 48
@@ -5878,6 +6239,10 @@
5878
6239
  "type": "string",
5879
6240
  "maxLength": 1024
5880
6241
  },
6242
+ "writeOnOpenEncoding": {
6243
+ "type": "string",
6244
+ "maxLength": 48
6245
+ },
5881
6246
  "byteLength": {
5882
6247
  "type": "string",
5883
6248
  "maxLength": 48
@@ -5885,6 +6250,10 @@
5885
6250
  "delimiter": {
5886
6251
  "type": "string",
5887
6252
  "maxLength": 48
6253
+ },
6254
+ "delimiterEncoding": {
6255
+ "type": "string",
6256
+ "maxLength": 48
5888
6257
  }
5889
6258
  },
5890
6259
  "additionalProperties": false