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
@@ -54,7 +54,6 @@
54
54
  "deviceIdDisconnect",
55
55
  "deviceTagDisconnect",
56
56
  "integration",
57
- "mqttTopic",
58
57
  "notebook",
59
58
  "onBoot",
60
59
  "onConnect",
@@ -1000,6 +999,109 @@
1000
999
  ],
1001
1000
  "additionalProperties": false
1002
1001
  },
1002
+ {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "key": {
1006
+ "type": "string",
1007
+ "maxLength": 1024
1008
+ },
1009
+ "type": {
1010
+ "type": "string",
1011
+ "enum": [
1012
+ "mqttTopic"
1013
+ ]
1014
+ },
1015
+ "config": {
1016
+ "type": "object",
1017
+ "properties": {
1018
+ "integrationId": {
1019
+ "type": "string",
1020
+ "enum": [
1021
+ "losant",
1022
+ "local"
1023
+ ]
1024
+ }
1025
+ },
1026
+ "additionalProperties": false
1027
+ },
1028
+ "meta": {
1029
+ "type": "object",
1030
+ "properties": {
1031
+ "category": {
1032
+ "type": "string",
1033
+ "enum": [
1034
+ "trigger"
1035
+ ]
1036
+ },
1037
+ "name": {
1038
+ "type": "string",
1039
+ "enum": [
1040
+ "mqtt"
1041
+ ]
1042
+ },
1043
+ "label": {
1044
+ "type": "string",
1045
+ "minLength": 1,
1046
+ "maxLength": 255
1047
+ },
1048
+ "x": {
1049
+ "type": "number"
1050
+ },
1051
+ "y": {
1052
+ "type": "number"
1053
+ },
1054
+ "uiId": {
1055
+ "type": "string",
1056
+ "maxLength": 48
1057
+ },
1058
+ "description": {
1059
+ "type": "string",
1060
+ "maxLength": 32767
1061
+ },
1062
+ "icon": {
1063
+ "type": "string",
1064
+ "maxLength": 1024
1065
+ },
1066
+ "color": {
1067
+ "type": "string",
1068
+ "maxLength": 1024
1069
+ },
1070
+ "inputCount": {
1071
+ "type": "number"
1072
+ },
1073
+ "outputCount": {
1074
+ "type": "number"
1075
+ },
1076
+ "triggerId": {
1077
+ "type": "string",
1078
+ "maxLength": 48
1079
+ },
1080
+ "id": {
1081
+ "type": "string",
1082
+ "maxLength": 48
1083
+ }
1084
+ },
1085
+ "additionalProperties": false
1086
+ },
1087
+ "outputIds": {
1088
+ "type": "array",
1089
+ "items": {
1090
+ "type": "array",
1091
+ "items": {
1092
+ "type": "string",
1093
+ "maxLength": 255
1094
+ },
1095
+ "maxItems": 100
1096
+ },
1097
+ "maxItems": 100
1098
+ }
1099
+ },
1100
+ "required": [
1101
+ "type"
1102
+ ],
1103
+ "additionalProperties": false
1104
+ },
1003
1105
  {
1004
1106
  "type": "object",
1005
1107
  "properties": {
@@ -1286,6 +1388,19 @@
1286
1388
  "baudRate": {
1287
1389
  "type": "number"
1288
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
+ },
1289
1404
  "encoding": {
1290
1405
  "type": "string",
1291
1406
  "maxLength": 48
@@ -1294,6 +1409,10 @@
1294
1409
  "type": "string",
1295
1410
  "maxLength": 1024
1296
1411
  },
1412
+ "writeOnOpenEncoding": {
1413
+ "type": "string",
1414
+ "maxLength": 48
1415
+ },
1297
1416
  "byteLength": {
1298
1417
  "type": "string",
1299
1418
  "maxLength": 48
@@ -1301,6 +1420,10 @@
1301
1420
  "delimiter": {
1302
1421
  "type": "string",
1303
1422
  "maxLength": 48
1423
+ },
1424
+ "delimiterEncoding": {
1425
+ "type": "string",
1426
+ "maxLength": 48
1304
1427
  }
1305
1428
  },
1306
1429
  "additionalProperties": false
@@ -2099,7 +2222,6 @@
2099
2222
  "deviceIdDisconnect",
2100
2223
  "deviceTagDisconnect",
2101
2224
  "integration",
2102
- "mqttTopic",
2103
2225
  "notebook",
2104
2226
  "onBoot",
2105
2227
  "onConnect",
@@ -3045,6 +3167,109 @@
3045
3167
  ],
3046
3168
  "additionalProperties": false
3047
3169
  },
3170
+ {
3171
+ "type": "object",
3172
+ "properties": {
3173
+ "key": {
3174
+ "type": "string",
3175
+ "maxLength": 1024
3176
+ },
3177
+ "type": {
3178
+ "type": "string",
3179
+ "enum": [
3180
+ "mqttTopic"
3181
+ ]
3182
+ },
3183
+ "config": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "integrationId": {
3187
+ "type": "string",
3188
+ "enum": [
3189
+ "losant",
3190
+ "local"
3191
+ ]
3192
+ }
3193
+ },
3194
+ "additionalProperties": false
3195
+ },
3196
+ "meta": {
3197
+ "type": "object",
3198
+ "properties": {
3199
+ "category": {
3200
+ "type": "string",
3201
+ "enum": [
3202
+ "trigger"
3203
+ ]
3204
+ },
3205
+ "name": {
3206
+ "type": "string",
3207
+ "enum": [
3208
+ "mqtt"
3209
+ ]
3210
+ },
3211
+ "label": {
3212
+ "type": "string",
3213
+ "minLength": 1,
3214
+ "maxLength": 255
3215
+ },
3216
+ "x": {
3217
+ "type": "number"
3218
+ },
3219
+ "y": {
3220
+ "type": "number"
3221
+ },
3222
+ "uiId": {
3223
+ "type": "string",
3224
+ "maxLength": 48
3225
+ },
3226
+ "description": {
3227
+ "type": "string",
3228
+ "maxLength": 32767
3229
+ },
3230
+ "icon": {
3231
+ "type": "string",
3232
+ "maxLength": 1024
3233
+ },
3234
+ "color": {
3235
+ "type": "string",
3236
+ "maxLength": 1024
3237
+ },
3238
+ "inputCount": {
3239
+ "type": "number"
3240
+ },
3241
+ "outputCount": {
3242
+ "type": "number"
3243
+ },
3244
+ "triggerId": {
3245
+ "type": "string",
3246
+ "maxLength": 48
3247
+ },
3248
+ "id": {
3249
+ "type": "string",
3250
+ "maxLength": 48
3251
+ }
3252
+ },
3253
+ "additionalProperties": false
3254
+ },
3255
+ "outputIds": {
3256
+ "type": "array",
3257
+ "items": {
3258
+ "type": "array",
3259
+ "items": {
3260
+ "type": "string",
3261
+ "maxLength": 255
3262
+ },
3263
+ "maxItems": 100
3264
+ },
3265
+ "maxItems": 100
3266
+ }
3267
+ },
3268
+ "required": [
3269
+ "type"
3270
+ ],
3271
+ "additionalProperties": false
3272
+ },
3048
3273
  {
3049
3274
  "type": "object",
3050
3275
  "properties": {
@@ -3331,6 +3556,19 @@
3331
3556
  "baudRate": {
3332
3557
  "type": "number"
3333
3558
  },
3559
+ "dataBits": {
3560
+ "type": "number"
3561
+ },
3562
+ "stopBits": {
3563
+ "type": "number"
3564
+ },
3565
+ "parity": {
3566
+ "type": "string",
3567
+ "maxLength": 8
3568
+ },
3569
+ "rtscts": {
3570
+ "type": "boolean"
3571
+ },
3334
3572
  "encoding": {
3335
3573
  "type": "string",
3336
3574
  "maxLength": 48
@@ -3339,6 +3577,10 @@
3339
3577
  "type": "string",
3340
3578
  "maxLength": 1024
3341
3579
  },
3580
+ "writeOnOpenEncoding": {
3581
+ "type": "string",
3582
+ "maxLength": 48
3583
+ },
3342
3584
  "byteLength": {
3343
3585
  "type": "string",
3344
3586
  "maxLength": 48
@@ -3346,6 +3588,10 @@
3346
3588
  "delimiter": {
3347
3589
  "type": "string",
3348
3590
  "maxLength": 48
3591
+ },
3592
+ "delimiterEncoding": {
3593
+ "type": "string",
3594
+ "maxLength": 48
3349
3595
  }
3350
3596
  },
3351
3597
  "additionalProperties": false
@@ -85,7 +85,6 @@
85
85
  "deviceIdDisconnect",
86
86
  "deviceTagDisconnect",
87
87
  "integration",
88
- "mqttTopic",
89
88
  "notebook",
90
89
  "onBoot",
91
90
  "onConnect",
@@ -1031,6 +1030,109 @@
1031
1030
  ],
1032
1031
  "additionalProperties": false
1033
1032
  },
1033
+ {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "key": {
1037
+ "type": "string",
1038
+ "maxLength": 1024
1039
+ },
1040
+ "type": {
1041
+ "type": "string",
1042
+ "enum": [
1043
+ "mqttTopic"
1044
+ ]
1045
+ },
1046
+ "config": {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "integrationId": {
1050
+ "type": "string",
1051
+ "enum": [
1052
+ "losant",
1053
+ "local"
1054
+ ]
1055
+ }
1056
+ },
1057
+ "additionalProperties": false
1058
+ },
1059
+ "meta": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "category": {
1063
+ "type": "string",
1064
+ "enum": [
1065
+ "trigger"
1066
+ ]
1067
+ },
1068
+ "name": {
1069
+ "type": "string",
1070
+ "enum": [
1071
+ "mqtt"
1072
+ ]
1073
+ },
1074
+ "label": {
1075
+ "type": "string",
1076
+ "minLength": 1,
1077
+ "maxLength": 255
1078
+ },
1079
+ "x": {
1080
+ "type": "number"
1081
+ },
1082
+ "y": {
1083
+ "type": "number"
1084
+ },
1085
+ "uiId": {
1086
+ "type": "string",
1087
+ "maxLength": 48
1088
+ },
1089
+ "description": {
1090
+ "type": "string",
1091
+ "maxLength": 32767
1092
+ },
1093
+ "icon": {
1094
+ "type": "string",
1095
+ "maxLength": 1024
1096
+ },
1097
+ "color": {
1098
+ "type": "string",
1099
+ "maxLength": 1024
1100
+ },
1101
+ "inputCount": {
1102
+ "type": "number"
1103
+ },
1104
+ "outputCount": {
1105
+ "type": "number"
1106
+ },
1107
+ "triggerId": {
1108
+ "type": "string",
1109
+ "maxLength": 48
1110
+ },
1111
+ "id": {
1112
+ "type": "string",
1113
+ "maxLength": 48
1114
+ }
1115
+ },
1116
+ "additionalProperties": false
1117
+ },
1118
+ "outputIds": {
1119
+ "type": "array",
1120
+ "items": {
1121
+ "type": "array",
1122
+ "items": {
1123
+ "type": "string",
1124
+ "maxLength": 255
1125
+ },
1126
+ "maxItems": 100
1127
+ },
1128
+ "maxItems": 100
1129
+ }
1130
+ },
1131
+ "required": [
1132
+ "type"
1133
+ ],
1134
+ "additionalProperties": false
1135
+ },
1034
1136
  {
1035
1137
  "type": "object",
1036
1138
  "properties": {
@@ -1317,6 +1419,19 @@
1317
1419
  "baudRate": {
1318
1420
  "type": "number"
1319
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
+ },
1320
1435
  "encoding": {
1321
1436
  "type": "string",
1322
1437
  "maxLength": 48
@@ -1325,6 +1440,10 @@
1325
1440
  "type": "string",
1326
1441
  "maxLength": 1024
1327
1442
  },
1443
+ "writeOnOpenEncoding": {
1444
+ "type": "string",
1445
+ "maxLength": 48
1446
+ },
1328
1447
  "byteLength": {
1329
1448
  "type": "string",
1330
1449
  "maxLength": 48
@@ -1332,6 +1451,10 @@
1332
1451
  "delimiter": {
1333
1452
  "type": "string",
1334
1453
  "maxLength": 48
1454
+ },
1455
+ "delimiterEncoding": {
1456
+ "type": "string",
1457
+ "maxLength": 48
1335
1458
  }
1336
1459
  },
1337
1460
  "additionalProperties": false
@@ -2149,7 +2272,6 @@
2149
2272
  "deviceIdDisconnect",
2150
2273
  "deviceTagDisconnect",
2151
2274
  "integration",
2152
- "mqttTopic",
2153
2275
  "notebook",
2154
2276
  "onBoot",
2155
2277
  "onConnect",
@@ -3095,6 +3217,109 @@
3095
3217
  ],
3096
3218
  "additionalProperties": false
3097
3219
  },
3220
+ {
3221
+ "type": "object",
3222
+ "properties": {
3223
+ "key": {
3224
+ "type": "string",
3225
+ "maxLength": 1024
3226
+ },
3227
+ "type": {
3228
+ "type": "string",
3229
+ "enum": [
3230
+ "mqttTopic"
3231
+ ]
3232
+ },
3233
+ "config": {
3234
+ "type": "object",
3235
+ "properties": {
3236
+ "integrationId": {
3237
+ "type": "string",
3238
+ "enum": [
3239
+ "losant",
3240
+ "local"
3241
+ ]
3242
+ }
3243
+ },
3244
+ "additionalProperties": false
3245
+ },
3246
+ "meta": {
3247
+ "type": "object",
3248
+ "properties": {
3249
+ "category": {
3250
+ "type": "string",
3251
+ "enum": [
3252
+ "trigger"
3253
+ ]
3254
+ },
3255
+ "name": {
3256
+ "type": "string",
3257
+ "enum": [
3258
+ "mqtt"
3259
+ ]
3260
+ },
3261
+ "label": {
3262
+ "type": "string",
3263
+ "minLength": 1,
3264
+ "maxLength": 255
3265
+ },
3266
+ "x": {
3267
+ "type": "number"
3268
+ },
3269
+ "y": {
3270
+ "type": "number"
3271
+ },
3272
+ "uiId": {
3273
+ "type": "string",
3274
+ "maxLength": 48
3275
+ },
3276
+ "description": {
3277
+ "type": "string",
3278
+ "maxLength": 32767
3279
+ },
3280
+ "icon": {
3281
+ "type": "string",
3282
+ "maxLength": 1024
3283
+ },
3284
+ "color": {
3285
+ "type": "string",
3286
+ "maxLength": 1024
3287
+ },
3288
+ "inputCount": {
3289
+ "type": "number"
3290
+ },
3291
+ "outputCount": {
3292
+ "type": "number"
3293
+ },
3294
+ "triggerId": {
3295
+ "type": "string",
3296
+ "maxLength": 48
3297
+ },
3298
+ "id": {
3299
+ "type": "string",
3300
+ "maxLength": 48
3301
+ }
3302
+ },
3303
+ "additionalProperties": false
3304
+ },
3305
+ "outputIds": {
3306
+ "type": "array",
3307
+ "items": {
3308
+ "type": "array",
3309
+ "items": {
3310
+ "type": "string",
3311
+ "maxLength": 255
3312
+ },
3313
+ "maxItems": 100
3314
+ },
3315
+ "maxItems": 100
3316
+ }
3317
+ },
3318
+ "required": [
3319
+ "type"
3320
+ ],
3321
+ "additionalProperties": false
3322
+ },
3098
3323
  {
3099
3324
  "type": "object",
3100
3325
  "properties": {
@@ -3381,6 +3606,19 @@
3381
3606
  "baudRate": {
3382
3607
  "type": "number"
3383
3608
  },
3609
+ "dataBits": {
3610
+ "type": "number"
3611
+ },
3612
+ "stopBits": {
3613
+ "type": "number"
3614
+ },
3615
+ "parity": {
3616
+ "type": "string",
3617
+ "maxLength": 8
3618
+ },
3619
+ "rtscts": {
3620
+ "type": "boolean"
3621
+ },
3384
3622
  "encoding": {
3385
3623
  "type": "string",
3386
3624
  "maxLength": 48
@@ -3389,6 +3627,10 @@
3389
3627
  "type": "string",
3390
3628
  "maxLength": 1024
3391
3629
  },
3630
+ "writeOnOpenEncoding": {
3631
+ "type": "string",
3632
+ "maxLength": 48
3633
+ },
3392
3634
  "byteLength": {
3393
3635
  "type": "string",
3394
3636
  "maxLength": 48
@@ -3396,6 +3638,10 @@
3396
3638
  "delimiter": {
3397
3639
  "type": "string",
3398
3640
  "maxLength": 48
3641
+ },
3642
+ "delimiterEncoding": {
3643
+ "type": "string",
3644
+ "maxLength": 48
3399
3645
  }
3400
3646
  },
3401
3647
  "additionalProperties": false
@@ -4213,7 +4459,6 @@
4213
4459
  "deviceIdDisconnect",
4214
4460
  "deviceTagDisconnect",
4215
4461
  "integration",
4216
- "mqttTopic",
4217
4462
  "notebook",
4218
4463
  "onBoot",
4219
4464
  "onConnect",
@@ -5159,6 +5404,109 @@
5159
5404
  ],
5160
5405
  "additionalProperties": false
5161
5406
  },
5407
+ {
5408
+ "type": "object",
5409
+ "properties": {
5410
+ "key": {
5411
+ "type": "string",
5412
+ "maxLength": 1024
5413
+ },
5414
+ "type": {
5415
+ "type": "string",
5416
+ "enum": [
5417
+ "mqttTopic"
5418
+ ]
5419
+ },
5420
+ "config": {
5421
+ "type": "object",
5422
+ "properties": {
5423
+ "integrationId": {
5424
+ "type": "string",
5425
+ "enum": [
5426
+ "losant",
5427
+ "local"
5428
+ ]
5429
+ }
5430
+ },
5431
+ "additionalProperties": false
5432
+ },
5433
+ "meta": {
5434
+ "type": "object",
5435
+ "properties": {
5436
+ "category": {
5437
+ "type": "string",
5438
+ "enum": [
5439
+ "trigger"
5440
+ ]
5441
+ },
5442
+ "name": {
5443
+ "type": "string",
5444
+ "enum": [
5445
+ "mqtt"
5446
+ ]
5447
+ },
5448
+ "label": {
5449
+ "type": "string",
5450
+ "minLength": 1,
5451
+ "maxLength": 255
5452
+ },
5453
+ "x": {
5454
+ "type": "number"
5455
+ },
5456
+ "y": {
5457
+ "type": "number"
5458
+ },
5459
+ "uiId": {
5460
+ "type": "string",
5461
+ "maxLength": 48
5462
+ },
5463
+ "description": {
5464
+ "type": "string",
5465
+ "maxLength": 32767
5466
+ },
5467
+ "icon": {
5468
+ "type": "string",
5469
+ "maxLength": 1024
5470
+ },
5471
+ "color": {
5472
+ "type": "string",
5473
+ "maxLength": 1024
5474
+ },
5475
+ "inputCount": {
5476
+ "type": "number"
5477
+ },
5478
+ "outputCount": {
5479
+ "type": "number"
5480
+ },
5481
+ "triggerId": {
5482
+ "type": "string",
5483
+ "maxLength": 48
5484
+ },
5485
+ "id": {
5486
+ "type": "string",
5487
+ "maxLength": 48
5488
+ }
5489
+ },
5490
+ "additionalProperties": false
5491
+ },
5492
+ "outputIds": {
5493
+ "type": "array",
5494
+ "items": {
5495
+ "type": "array",
5496
+ "items": {
5497
+ "type": "string",
5498
+ "maxLength": 255
5499
+ },
5500
+ "maxItems": 100
5501
+ },
5502
+ "maxItems": 100
5503
+ }
5504
+ },
5505
+ "required": [
5506
+ "type"
5507
+ ],
5508
+ "additionalProperties": false
5509
+ },
5162
5510
  {
5163
5511
  "type": "object",
5164
5512
  "properties": {
@@ -5445,6 +5793,19 @@
5445
5793
  "baudRate": {
5446
5794
  "type": "number"
5447
5795
  },
5796
+ "dataBits": {
5797
+ "type": "number"
5798
+ },
5799
+ "stopBits": {
5800
+ "type": "number"
5801
+ },
5802
+ "parity": {
5803
+ "type": "string",
5804
+ "maxLength": 8
5805
+ },
5806
+ "rtscts": {
5807
+ "type": "boolean"
5808
+ },
5448
5809
  "encoding": {
5449
5810
  "type": "string",
5450
5811
  "maxLength": 48
@@ -5453,6 +5814,10 @@
5453
5814
  "type": "string",
5454
5815
  "maxLength": 1024
5455
5816
  },
5817
+ "writeOnOpenEncoding": {
5818
+ "type": "string",
5819
+ "maxLength": 48
5820
+ },
5456
5821
  "byteLength": {
5457
5822
  "type": "string",
5458
5823
  "maxLength": 48
@@ -5460,6 +5825,10 @@
5460
5825
  "delimiter": {
5461
5826
  "type": "string",
5462
5827
  "maxLength": 48
5828
+ },
5829
+ "delimiterEncoding": {
5830
+ "type": "string",
5831
+ "maxLength": 48
5463
5832
  }
5464
5833
  },
5465
5834
  "additionalProperties": false