losant_rest 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +4164 -701
  5. data/docs/events.md +3 -3
  6. data/docs/flow.md +41 -0
  7. data/docs/instance.md +128 -0
  8. data/docs/instanceMember.md +133 -0
  9. data/docs/instanceMembers.md +91 -0
  10. data/docs/instanceOrg.md +133 -0
  11. data/docs/instanceOrgMember.md +139 -0
  12. data/docs/instanceOrgMembers.md +96 -0
  13. data/docs/instanceOrgs.md +91 -0
  14. data/docs/instances.md +50 -0
  15. data/lib/losant_rest.rb +9 -1
  16. data/lib/losant_rest/application.rb +2 -2
  17. data/lib/losant_rest/application_api_token.rb +1 -1
  18. data/lib/losant_rest/application_api_tokens.rb +1 -1
  19. data/lib/losant_rest/application_certificate.rb +1 -1
  20. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  21. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  22. data/lib/losant_rest/application_certificates.rb +1 -1
  23. data/lib/losant_rest/application_dashboard.rb +1 -1
  24. data/lib/losant_rest/application_dashboards.rb +1 -1
  25. data/lib/losant_rest/application_key.rb +1 -1
  26. data/lib/losant_rest/application_keys.rb +1 -1
  27. data/lib/losant_rest/application_template.rb +1 -1
  28. data/lib/losant_rest/application_templates.rb +1 -1
  29. data/lib/losant_rest/applications.rb +1 -1
  30. data/lib/losant_rest/audit_log.rb +1 -1
  31. data/lib/losant_rest/audit_logs.rb +1 -1
  32. data/lib/losant_rest/auth.rb +1 -1
  33. data/lib/losant_rest/client.rb +35 -3
  34. data/lib/losant_rest/dashboard.rb +1 -1
  35. data/lib/losant_rest/dashboards.rb +1 -1
  36. data/lib/losant_rest/data.rb +1 -1
  37. data/lib/losant_rest/data_table.rb +1 -1
  38. data/lib/losant_rest/data_table_row.rb +1 -1
  39. data/lib/losant_rest/data_table_rows.rb +1 -1
  40. data/lib/losant_rest/data_tables.rb +1 -1
  41. data/lib/losant_rest/device.rb +1 -1
  42. data/lib/losant_rest/device_recipe.rb +1 -1
  43. data/lib/losant_rest/device_recipes.rb +1 -1
  44. data/lib/losant_rest/devices.rb +1 -1
  45. data/lib/losant_rest/edge_deployments.rb +1 -1
  46. data/lib/losant_rest/error.rb +1 -1
  47. data/lib/losant_rest/event.rb +1 -1
  48. data/lib/losant_rest/events.rb +4 -4
  49. data/lib/losant_rest/experience.rb +1 -1
  50. data/lib/losant_rest/experience_domain.rb +1 -1
  51. data/lib/losant_rest/experience_domains.rb +1 -1
  52. data/lib/losant_rest/experience_endpoint.rb +1 -1
  53. data/lib/losant_rest/experience_endpoints.rb +1 -1
  54. data/lib/losant_rest/experience_group.rb +1 -1
  55. data/lib/losant_rest/experience_groups.rb +1 -1
  56. data/lib/losant_rest/experience_slug.rb +1 -1
  57. data/lib/losant_rest/experience_slugs.rb +1 -1
  58. data/lib/losant_rest/experience_user.rb +1 -1
  59. data/lib/losant_rest/experience_users.rb +1 -1
  60. data/lib/losant_rest/experience_version.rb +1 -1
  61. data/lib/losant_rest/experience_versions.rb +1 -1
  62. data/lib/losant_rest/experience_view.rb +1 -1
  63. data/lib/losant_rest/experience_views.rb +1 -1
  64. data/lib/losant_rest/file.rb +1 -1
  65. data/lib/losant_rest/files.rb +1 -1
  66. data/lib/losant_rest/flow.rb +47 -1
  67. data/lib/losant_rest/flow_version.rb +1 -1
  68. data/lib/losant_rest/flow_versions.rb +1 -1
  69. data/lib/losant_rest/flows.rb +1 -1
  70. data/lib/losant_rest/instance.rb +181 -0
  71. data/lib/losant_rest/instance_member.rb +176 -0
  72. data/lib/losant_rest/instance_members.rb +134 -0
  73. data/lib/losant_rest/instance_org.rb +176 -0
  74. data/lib/losant_rest/instance_org_member.rb +182 -0
  75. data/lib/losant_rest/instance_org_members.rb +138 -0
  76. data/lib/losant_rest/instance_orgs.rb +139 -0
  77. data/lib/losant_rest/instances.rb +88 -0
  78. data/lib/losant_rest/integration.rb +1 -1
  79. data/lib/losant_rest/integrations.rb +1 -1
  80. data/lib/losant_rest/me.rb +2 -2
  81. data/lib/losant_rest/notebook.rb +1 -1
  82. data/lib/losant_rest/notebooks.rb +1 -1
  83. data/lib/losant_rest/org.rb +2 -2
  84. data/lib/losant_rest/org_invites.rb +1 -1
  85. data/lib/losant_rest/orgs.rb +1 -1
  86. data/lib/losant_rest/utils.rb +1 -1
  87. data/lib/losant_rest/version.rb +2 -2
  88. data/lib/losant_rest/webhook.rb +1 -1
  89. data/lib/losant_rest/webhooks.rb +1 -1
  90. data/schemas/advancedDeviceQuery.json +309 -0
  91. data/schemas/applicationApiTokenPost.json +1 -0
  92. data/schemas/applicationDashboardPost.json +19 -1
  93. data/schemas/dashboard.json +19 -1
  94. data/schemas/dashboardPatch.json +19 -1
  95. data/schemas/dashboardPost.json +19 -1
  96. data/schemas/dashboards.json +19 -1
  97. data/schemas/devicesDeletePost.json +309 -0
  98. data/schemas/devicesExportPost.json +309 -0
  99. data/schemas/devicesPatch.json +309 -0
  100. data/schemas/devicesRemoveDataPost.json +309 -0
  101. data/schemas/filePost.json +8 -2
  102. data/schemas/flowStorageMetadata.json +13 -0
  103. data/schemas/githubLogin.json +35 -11
  104. data/schemas/historicalSummaries.json +43 -0
  105. data/schemas/historicalSummary.json +455 -0
  106. data/schemas/instanceMember.json +37 -0
  107. data/schemas/instanceMemberPatch.json +17 -0
  108. data/schemas/instanceMemberPost.json +22 -0
  109. data/schemas/instanceMembers.json +69 -0
  110. data/schemas/instanceOrg.json +14 -0
  111. data/schemas/instanceOrgMember.json +37 -0
  112. data/schemas/instanceOrgMemberPatch.json +69 -0
  113. data/schemas/instanceOrgMemberPost.json +161 -0
  114. data/schemas/instanceOrgMembers.json +34 -0
  115. data/schemas/instanceOrgPatch.json +19 -0
  116. data/schemas/instanceOrgPost.json +11 -0
  117. data/schemas/instanceOrgs.json +14 -0
  118. data/schemas/instanceReportOptionsPost.json +40 -0
  119. data/schemas/multiDeviceCommand.json +309 -0
  120. data/schemas/orgPatch.json +0 -9
  121. data/schemas/payloadStats.json +110 -0
  122. data/schemas/userCredentials.json +35 -11
  123. data/schemas/userPost.json +35 -11
  124. metadata +31 -2
@@ -936,8 +936,26 @@
936
936
  "maxLength": 48
937
937
  },
938
938
  "type": {
939
+ "oneOf": [
940
+ {
941
+ "type": "string",
942
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
943
+ },
944
+ {
945
+ "type": "string",
946
+ "enum": [
947
+ "$custom"
948
+ ]
949
+ }
950
+ ]
951
+ },
952
+ "headerTemplate": {
939
953
  "type": "string",
940
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
954
+ "maxLength": 1024
955
+ },
956
+ "rowTemplate": {
957
+ "type": "string",
958
+ "maxLength": 32767
941
959
  }
942
960
  },
943
961
  "additionalProperties": false
@@ -1053,8 +1053,26 @@
1053
1053
  "maxLength": 48
1054
1054
  },
1055
1055
  "type": {
1056
+ "oneOf": [
1057
+ {
1058
+ "type": "string",
1059
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1060
+ },
1061
+ {
1062
+ "type": "string",
1063
+ "enum": [
1064
+ "$custom"
1065
+ ]
1066
+ }
1067
+ ]
1068
+ },
1069
+ "headerTemplate": {
1056
1070
  "type": "string",
1057
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1071
+ "maxLength": 1024
1072
+ },
1073
+ "rowTemplate": {
1074
+ "type": "string",
1075
+ "maxLength": 32767
1058
1076
  }
1059
1077
  },
1060
1078
  "additionalProperties": false
@@ -1022,6 +1022,315 @@
1022
1022
  "additionalProperties": false
1023
1023
  }
1024
1024
  ]
1025
+ },
1026
+ "disconnectedAt": {
1027
+ "oneOf": [
1028
+ {
1029
+ "type": [
1030
+ "string",
1031
+ "number",
1032
+ "boolean",
1033
+ "null"
1034
+ ]
1035
+ },
1036
+ {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "$eq": {
1040
+ "type": [
1041
+ "string",
1042
+ "number",
1043
+ "boolean",
1044
+ "null"
1045
+ ]
1046
+ },
1047
+ "$ne": {
1048
+ "type": [
1049
+ "string",
1050
+ "number",
1051
+ "boolean",
1052
+ "null"
1053
+ ]
1054
+ },
1055
+ "$gt": {
1056
+ "type": [
1057
+ "string",
1058
+ "number",
1059
+ "boolean",
1060
+ "null"
1061
+ ]
1062
+ },
1063
+ "$lt": {
1064
+ "type": [
1065
+ "string",
1066
+ "number",
1067
+ "boolean",
1068
+ "null"
1069
+ ]
1070
+ },
1071
+ "$gte": {
1072
+ "type": [
1073
+ "string",
1074
+ "number",
1075
+ "boolean",
1076
+ "null"
1077
+ ]
1078
+ },
1079
+ "$lte": {
1080
+ "type": [
1081
+ "string",
1082
+ "number",
1083
+ "boolean",
1084
+ "null"
1085
+ ]
1086
+ },
1087
+ "$startsWith": {
1088
+ "type": "string",
1089
+ "minLength": 1
1090
+ },
1091
+ "$endsWith": {
1092
+ "type": "string",
1093
+ "minLength": 1
1094
+ },
1095
+ "$contains": {
1096
+ "type": "string",
1097
+ "minLength": 1
1098
+ },
1099
+ "$ci": {
1100
+ "type": "boolean"
1101
+ },
1102
+ "$in": {
1103
+ "type": "array",
1104
+ "maxItems": 100,
1105
+ "items": {
1106
+ "type": [
1107
+ "string",
1108
+ "number",
1109
+ "boolean"
1110
+ ]
1111
+ }
1112
+ },
1113
+ "$nin": {
1114
+ "type": "array",
1115
+ "maxItems": 100,
1116
+ "items": {
1117
+ "type": [
1118
+ "string",
1119
+ "number",
1120
+ "boolean"
1121
+ ]
1122
+ }
1123
+ }
1124
+ },
1125
+ "additionalProperties": false
1126
+ }
1127
+ ]
1128
+ },
1129
+ "connectedAt": {
1130
+ "oneOf": [
1131
+ {
1132
+ "type": [
1133
+ "string",
1134
+ "number",
1135
+ "boolean",
1136
+ "null"
1137
+ ]
1138
+ },
1139
+ {
1140
+ "type": "object",
1141
+ "properties": {
1142
+ "$eq": {
1143
+ "type": [
1144
+ "string",
1145
+ "number",
1146
+ "boolean",
1147
+ "null"
1148
+ ]
1149
+ },
1150
+ "$ne": {
1151
+ "type": [
1152
+ "string",
1153
+ "number",
1154
+ "boolean",
1155
+ "null"
1156
+ ]
1157
+ },
1158
+ "$gt": {
1159
+ "type": [
1160
+ "string",
1161
+ "number",
1162
+ "boolean",
1163
+ "null"
1164
+ ]
1165
+ },
1166
+ "$lt": {
1167
+ "type": [
1168
+ "string",
1169
+ "number",
1170
+ "boolean",
1171
+ "null"
1172
+ ]
1173
+ },
1174
+ "$gte": {
1175
+ "type": [
1176
+ "string",
1177
+ "number",
1178
+ "boolean",
1179
+ "null"
1180
+ ]
1181
+ },
1182
+ "$lte": {
1183
+ "type": [
1184
+ "string",
1185
+ "number",
1186
+ "boolean",
1187
+ "null"
1188
+ ]
1189
+ },
1190
+ "$startsWith": {
1191
+ "type": "string",
1192
+ "minLength": 1
1193
+ },
1194
+ "$endsWith": {
1195
+ "type": "string",
1196
+ "minLength": 1
1197
+ },
1198
+ "$contains": {
1199
+ "type": "string",
1200
+ "minLength": 1
1201
+ },
1202
+ "$ci": {
1203
+ "type": "boolean"
1204
+ },
1205
+ "$in": {
1206
+ "type": "array",
1207
+ "maxItems": 100,
1208
+ "items": {
1209
+ "type": [
1210
+ "string",
1211
+ "number",
1212
+ "boolean"
1213
+ ]
1214
+ }
1215
+ },
1216
+ "$nin": {
1217
+ "type": "array",
1218
+ "maxItems": 100,
1219
+ "items": {
1220
+ "type": [
1221
+ "string",
1222
+ "number",
1223
+ "boolean"
1224
+ ]
1225
+ }
1226
+ }
1227
+ },
1228
+ "additionalProperties": false
1229
+ }
1230
+ ]
1231
+ },
1232
+ "connectionStatus": {
1233
+ "oneOf": [
1234
+ {
1235
+ "type": [
1236
+ "string",
1237
+ "number",
1238
+ "boolean",
1239
+ "null"
1240
+ ]
1241
+ },
1242
+ {
1243
+ "type": "object",
1244
+ "properties": {
1245
+ "$eq": {
1246
+ "type": [
1247
+ "string",
1248
+ "number",
1249
+ "boolean",
1250
+ "null"
1251
+ ]
1252
+ },
1253
+ "$ne": {
1254
+ "type": [
1255
+ "string",
1256
+ "number",
1257
+ "boolean",
1258
+ "null"
1259
+ ]
1260
+ },
1261
+ "$gt": {
1262
+ "type": [
1263
+ "string",
1264
+ "number",
1265
+ "boolean",
1266
+ "null"
1267
+ ]
1268
+ },
1269
+ "$lt": {
1270
+ "type": [
1271
+ "string",
1272
+ "number",
1273
+ "boolean",
1274
+ "null"
1275
+ ]
1276
+ },
1277
+ "$gte": {
1278
+ "type": [
1279
+ "string",
1280
+ "number",
1281
+ "boolean",
1282
+ "null"
1283
+ ]
1284
+ },
1285
+ "$lte": {
1286
+ "type": [
1287
+ "string",
1288
+ "number",
1289
+ "boolean",
1290
+ "null"
1291
+ ]
1292
+ },
1293
+ "$startsWith": {
1294
+ "type": "string",
1295
+ "minLength": 1
1296
+ },
1297
+ "$endsWith": {
1298
+ "type": "string",
1299
+ "minLength": 1
1300
+ },
1301
+ "$contains": {
1302
+ "type": "string",
1303
+ "minLength": 1
1304
+ },
1305
+ "$ci": {
1306
+ "type": "boolean"
1307
+ },
1308
+ "$in": {
1309
+ "type": "array",
1310
+ "maxItems": 100,
1311
+ "items": {
1312
+ "type": [
1313
+ "string",
1314
+ "number",
1315
+ "boolean"
1316
+ ]
1317
+ }
1318
+ },
1319
+ "$nin": {
1320
+ "type": "array",
1321
+ "maxItems": 100,
1322
+ "items": {
1323
+ "type": [
1324
+ "string",
1325
+ "number",
1326
+ "boolean"
1327
+ ]
1328
+ }
1329
+ }
1330
+ },
1331
+ "additionalProperties": false
1332
+ }
1333
+ ]
1025
1334
  }
1026
1335
  },
1027
1336
  "additionalProperties": false
@@ -1026,6 +1026,315 @@
1026
1026
  "additionalProperties": false
1027
1027
  }
1028
1028
  ]
1029
+ },
1030
+ "disconnectedAt": {
1031
+ "oneOf": [
1032
+ {
1033
+ "type": [
1034
+ "string",
1035
+ "number",
1036
+ "boolean",
1037
+ "null"
1038
+ ]
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "$eq": {
1044
+ "type": [
1045
+ "string",
1046
+ "number",
1047
+ "boolean",
1048
+ "null"
1049
+ ]
1050
+ },
1051
+ "$ne": {
1052
+ "type": [
1053
+ "string",
1054
+ "number",
1055
+ "boolean",
1056
+ "null"
1057
+ ]
1058
+ },
1059
+ "$gt": {
1060
+ "type": [
1061
+ "string",
1062
+ "number",
1063
+ "boolean",
1064
+ "null"
1065
+ ]
1066
+ },
1067
+ "$lt": {
1068
+ "type": [
1069
+ "string",
1070
+ "number",
1071
+ "boolean",
1072
+ "null"
1073
+ ]
1074
+ },
1075
+ "$gte": {
1076
+ "type": [
1077
+ "string",
1078
+ "number",
1079
+ "boolean",
1080
+ "null"
1081
+ ]
1082
+ },
1083
+ "$lte": {
1084
+ "type": [
1085
+ "string",
1086
+ "number",
1087
+ "boolean",
1088
+ "null"
1089
+ ]
1090
+ },
1091
+ "$startsWith": {
1092
+ "type": "string",
1093
+ "minLength": 1
1094
+ },
1095
+ "$endsWith": {
1096
+ "type": "string",
1097
+ "minLength": 1
1098
+ },
1099
+ "$contains": {
1100
+ "type": "string",
1101
+ "minLength": 1
1102
+ },
1103
+ "$ci": {
1104
+ "type": "boolean"
1105
+ },
1106
+ "$in": {
1107
+ "type": "array",
1108
+ "maxItems": 100,
1109
+ "items": {
1110
+ "type": [
1111
+ "string",
1112
+ "number",
1113
+ "boolean"
1114
+ ]
1115
+ }
1116
+ },
1117
+ "$nin": {
1118
+ "type": "array",
1119
+ "maxItems": 100,
1120
+ "items": {
1121
+ "type": [
1122
+ "string",
1123
+ "number",
1124
+ "boolean"
1125
+ ]
1126
+ }
1127
+ }
1128
+ },
1129
+ "additionalProperties": false
1130
+ }
1131
+ ]
1132
+ },
1133
+ "connectedAt": {
1134
+ "oneOf": [
1135
+ {
1136
+ "type": [
1137
+ "string",
1138
+ "number",
1139
+ "boolean",
1140
+ "null"
1141
+ ]
1142
+ },
1143
+ {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "$eq": {
1147
+ "type": [
1148
+ "string",
1149
+ "number",
1150
+ "boolean",
1151
+ "null"
1152
+ ]
1153
+ },
1154
+ "$ne": {
1155
+ "type": [
1156
+ "string",
1157
+ "number",
1158
+ "boolean",
1159
+ "null"
1160
+ ]
1161
+ },
1162
+ "$gt": {
1163
+ "type": [
1164
+ "string",
1165
+ "number",
1166
+ "boolean",
1167
+ "null"
1168
+ ]
1169
+ },
1170
+ "$lt": {
1171
+ "type": [
1172
+ "string",
1173
+ "number",
1174
+ "boolean",
1175
+ "null"
1176
+ ]
1177
+ },
1178
+ "$gte": {
1179
+ "type": [
1180
+ "string",
1181
+ "number",
1182
+ "boolean",
1183
+ "null"
1184
+ ]
1185
+ },
1186
+ "$lte": {
1187
+ "type": [
1188
+ "string",
1189
+ "number",
1190
+ "boolean",
1191
+ "null"
1192
+ ]
1193
+ },
1194
+ "$startsWith": {
1195
+ "type": "string",
1196
+ "minLength": 1
1197
+ },
1198
+ "$endsWith": {
1199
+ "type": "string",
1200
+ "minLength": 1
1201
+ },
1202
+ "$contains": {
1203
+ "type": "string",
1204
+ "minLength": 1
1205
+ },
1206
+ "$ci": {
1207
+ "type": "boolean"
1208
+ },
1209
+ "$in": {
1210
+ "type": "array",
1211
+ "maxItems": 100,
1212
+ "items": {
1213
+ "type": [
1214
+ "string",
1215
+ "number",
1216
+ "boolean"
1217
+ ]
1218
+ }
1219
+ },
1220
+ "$nin": {
1221
+ "type": "array",
1222
+ "maxItems": 100,
1223
+ "items": {
1224
+ "type": [
1225
+ "string",
1226
+ "number",
1227
+ "boolean"
1228
+ ]
1229
+ }
1230
+ }
1231
+ },
1232
+ "additionalProperties": false
1233
+ }
1234
+ ]
1235
+ },
1236
+ "connectionStatus": {
1237
+ "oneOf": [
1238
+ {
1239
+ "type": [
1240
+ "string",
1241
+ "number",
1242
+ "boolean",
1243
+ "null"
1244
+ ]
1245
+ },
1246
+ {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "$eq": {
1250
+ "type": [
1251
+ "string",
1252
+ "number",
1253
+ "boolean",
1254
+ "null"
1255
+ ]
1256
+ },
1257
+ "$ne": {
1258
+ "type": [
1259
+ "string",
1260
+ "number",
1261
+ "boolean",
1262
+ "null"
1263
+ ]
1264
+ },
1265
+ "$gt": {
1266
+ "type": [
1267
+ "string",
1268
+ "number",
1269
+ "boolean",
1270
+ "null"
1271
+ ]
1272
+ },
1273
+ "$lt": {
1274
+ "type": [
1275
+ "string",
1276
+ "number",
1277
+ "boolean",
1278
+ "null"
1279
+ ]
1280
+ },
1281
+ "$gte": {
1282
+ "type": [
1283
+ "string",
1284
+ "number",
1285
+ "boolean",
1286
+ "null"
1287
+ ]
1288
+ },
1289
+ "$lte": {
1290
+ "type": [
1291
+ "string",
1292
+ "number",
1293
+ "boolean",
1294
+ "null"
1295
+ ]
1296
+ },
1297
+ "$startsWith": {
1298
+ "type": "string",
1299
+ "minLength": 1
1300
+ },
1301
+ "$endsWith": {
1302
+ "type": "string",
1303
+ "minLength": 1
1304
+ },
1305
+ "$contains": {
1306
+ "type": "string",
1307
+ "minLength": 1
1308
+ },
1309
+ "$ci": {
1310
+ "type": "boolean"
1311
+ },
1312
+ "$in": {
1313
+ "type": "array",
1314
+ "maxItems": 100,
1315
+ "items": {
1316
+ "type": [
1317
+ "string",
1318
+ "number",
1319
+ "boolean"
1320
+ ]
1321
+ }
1322
+ },
1323
+ "$nin": {
1324
+ "type": "array",
1325
+ "maxItems": 100,
1326
+ "items": {
1327
+ "type": [
1328
+ "string",
1329
+ "number",
1330
+ "boolean"
1331
+ ]
1332
+ }
1333
+ }
1334
+ },
1335
+ "additionalProperties": false
1336
+ }
1337
+ ]
1029
1338
  }
1030
1339
  },
1031
1340
  "additionalProperties": false