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
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2020 Losant IoT, Inc.
3
+ # Copyright (c) 2021 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2020 Losant IoT, Inc.
3
+ # Copyright (c) 2021 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2020 Losant IoT, Inc.
3
+ # Copyright (c) 2021 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.12.0"
24
+ VERSION = "1.13.0"
25
25
  end
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2020 Losant IoT, Inc.
3
+ # Copyright (c) 2021 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2020 Losant IoT, Inc.
3
+ # Copyright (c) 2021 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1012,6 +1012,315 @@
1012
1012
  "additionalProperties": false
1013
1013
  }
1014
1014
  ]
1015
+ },
1016
+ "disconnectedAt": {
1017
+ "oneOf": [
1018
+ {
1019
+ "type": [
1020
+ "string",
1021
+ "number",
1022
+ "boolean",
1023
+ "null"
1024
+ ]
1025
+ },
1026
+ {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "$eq": {
1030
+ "type": [
1031
+ "string",
1032
+ "number",
1033
+ "boolean",
1034
+ "null"
1035
+ ]
1036
+ },
1037
+ "$ne": {
1038
+ "type": [
1039
+ "string",
1040
+ "number",
1041
+ "boolean",
1042
+ "null"
1043
+ ]
1044
+ },
1045
+ "$gt": {
1046
+ "type": [
1047
+ "string",
1048
+ "number",
1049
+ "boolean",
1050
+ "null"
1051
+ ]
1052
+ },
1053
+ "$lt": {
1054
+ "type": [
1055
+ "string",
1056
+ "number",
1057
+ "boolean",
1058
+ "null"
1059
+ ]
1060
+ },
1061
+ "$gte": {
1062
+ "type": [
1063
+ "string",
1064
+ "number",
1065
+ "boolean",
1066
+ "null"
1067
+ ]
1068
+ },
1069
+ "$lte": {
1070
+ "type": [
1071
+ "string",
1072
+ "number",
1073
+ "boolean",
1074
+ "null"
1075
+ ]
1076
+ },
1077
+ "$startsWith": {
1078
+ "type": "string",
1079
+ "minLength": 1
1080
+ },
1081
+ "$endsWith": {
1082
+ "type": "string",
1083
+ "minLength": 1
1084
+ },
1085
+ "$contains": {
1086
+ "type": "string",
1087
+ "minLength": 1
1088
+ },
1089
+ "$ci": {
1090
+ "type": "boolean"
1091
+ },
1092
+ "$in": {
1093
+ "type": "array",
1094
+ "maxItems": 100,
1095
+ "items": {
1096
+ "type": [
1097
+ "string",
1098
+ "number",
1099
+ "boolean"
1100
+ ]
1101
+ }
1102
+ },
1103
+ "$nin": {
1104
+ "type": "array",
1105
+ "maxItems": 100,
1106
+ "items": {
1107
+ "type": [
1108
+ "string",
1109
+ "number",
1110
+ "boolean"
1111
+ ]
1112
+ }
1113
+ }
1114
+ },
1115
+ "additionalProperties": false
1116
+ }
1117
+ ]
1118
+ },
1119
+ "connectedAt": {
1120
+ "oneOf": [
1121
+ {
1122
+ "type": [
1123
+ "string",
1124
+ "number",
1125
+ "boolean",
1126
+ "null"
1127
+ ]
1128
+ },
1129
+ {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "$eq": {
1133
+ "type": [
1134
+ "string",
1135
+ "number",
1136
+ "boolean",
1137
+ "null"
1138
+ ]
1139
+ },
1140
+ "$ne": {
1141
+ "type": [
1142
+ "string",
1143
+ "number",
1144
+ "boolean",
1145
+ "null"
1146
+ ]
1147
+ },
1148
+ "$gt": {
1149
+ "type": [
1150
+ "string",
1151
+ "number",
1152
+ "boolean",
1153
+ "null"
1154
+ ]
1155
+ },
1156
+ "$lt": {
1157
+ "type": [
1158
+ "string",
1159
+ "number",
1160
+ "boolean",
1161
+ "null"
1162
+ ]
1163
+ },
1164
+ "$gte": {
1165
+ "type": [
1166
+ "string",
1167
+ "number",
1168
+ "boolean",
1169
+ "null"
1170
+ ]
1171
+ },
1172
+ "$lte": {
1173
+ "type": [
1174
+ "string",
1175
+ "number",
1176
+ "boolean",
1177
+ "null"
1178
+ ]
1179
+ },
1180
+ "$startsWith": {
1181
+ "type": "string",
1182
+ "minLength": 1
1183
+ },
1184
+ "$endsWith": {
1185
+ "type": "string",
1186
+ "minLength": 1
1187
+ },
1188
+ "$contains": {
1189
+ "type": "string",
1190
+ "minLength": 1
1191
+ },
1192
+ "$ci": {
1193
+ "type": "boolean"
1194
+ },
1195
+ "$in": {
1196
+ "type": "array",
1197
+ "maxItems": 100,
1198
+ "items": {
1199
+ "type": [
1200
+ "string",
1201
+ "number",
1202
+ "boolean"
1203
+ ]
1204
+ }
1205
+ },
1206
+ "$nin": {
1207
+ "type": "array",
1208
+ "maxItems": 100,
1209
+ "items": {
1210
+ "type": [
1211
+ "string",
1212
+ "number",
1213
+ "boolean"
1214
+ ]
1215
+ }
1216
+ }
1217
+ },
1218
+ "additionalProperties": false
1219
+ }
1220
+ ]
1221
+ },
1222
+ "connectionStatus": {
1223
+ "oneOf": [
1224
+ {
1225
+ "type": [
1226
+ "string",
1227
+ "number",
1228
+ "boolean",
1229
+ "null"
1230
+ ]
1231
+ },
1232
+ {
1233
+ "type": "object",
1234
+ "properties": {
1235
+ "$eq": {
1236
+ "type": [
1237
+ "string",
1238
+ "number",
1239
+ "boolean",
1240
+ "null"
1241
+ ]
1242
+ },
1243
+ "$ne": {
1244
+ "type": [
1245
+ "string",
1246
+ "number",
1247
+ "boolean",
1248
+ "null"
1249
+ ]
1250
+ },
1251
+ "$gt": {
1252
+ "type": [
1253
+ "string",
1254
+ "number",
1255
+ "boolean",
1256
+ "null"
1257
+ ]
1258
+ },
1259
+ "$lt": {
1260
+ "type": [
1261
+ "string",
1262
+ "number",
1263
+ "boolean",
1264
+ "null"
1265
+ ]
1266
+ },
1267
+ "$gte": {
1268
+ "type": [
1269
+ "string",
1270
+ "number",
1271
+ "boolean",
1272
+ "null"
1273
+ ]
1274
+ },
1275
+ "$lte": {
1276
+ "type": [
1277
+ "string",
1278
+ "number",
1279
+ "boolean",
1280
+ "null"
1281
+ ]
1282
+ },
1283
+ "$startsWith": {
1284
+ "type": "string",
1285
+ "minLength": 1
1286
+ },
1287
+ "$endsWith": {
1288
+ "type": "string",
1289
+ "minLength": 1
1290
+ },
1291
+ "$contains": {
1292
+ "type": "string",
1293
+ "minLength": 1
1294
+ },
1295
+ "$ci": {
1296
+ "type": "boolean"
1297
+ },
1298
+ "$in": {
1299
+ "type": "array",
1300
+ "maxItems": 100,
1301
+ "items": {
1302
+ "type": [
1303
+ "string",
1304
+ "number",
1305
+ "boolean"
1306
+ ]
1307
+ }
1308
+ },
1309
+ "$nin": {
1310
+ "type": "array",
1311
+ "maxItems": 100,
1312
+ "items": {
1313
+ "type": [
1314
+ "string",
1315
+ "number",
1316
+ "boolean"
1317
+ ]
1318
+ }
1319
+ }
1320
+ },
1321
+ "additionalProperties": false
1322
+ }
1323
+ ]
1015
1324
  }
1016
1325
  },
1017
1326
  "additionalProperties": false
@@ -242,6 +242,7 @@
242
242
  "flow.patch",
243
243
  "flow.pressVirtualButton",
244
244
  "flow.setStorageEntry",
245
+ "flow.getStorageEntriesMetadata",
245
246
  "flow.stats",
246
247
  "flows.get",
247
248
  "flows.getByVersion",
@@ -928,8 +928,26 @@
928
928
  "maxLength": 48
929
929
  },
930
930
  "type": {
931
+ "oneOf": [
932
+ {
933
+ "type": "string",
934
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
935
+ },
936
+ {
937
+ "type": "string",
938
+ "enum": [
939
+ "$custom"
940
+ ]
941
+ }
942
+ ]
943
+ },
944
+ "headerTemplate": {
931
945
  "type": "string",
932
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
946
+ "maxLength": 1024
947
+ },
948
+ "rowTemplate": {
949
+ "type": "string",
950
+ "maxLength": 32767
933
951
  }
934
952
  },
935
953
  "additionalProperties": false
@@ -1046,8 +1046,26 @@
1046
1046
  "maxLength": 48
1047
1047
  },
1048
1048
  "type": {
1049
+ "oneOf": [
1050
+ {
1051
+ "type": "string",
1052
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1053
+ },
1054
+ {
1055
+ "type": "string",
1056
+ "enum": [
1057
+ "$custom"
1058
+ ]
1059
+ }
1060
+ ]
1061
+ },
1062
+ "headerTemplate": {
1049
1063
  "type": "string",
1050
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1064
+ "maxLength": 1024
1065
+ },
1066
+ "rowTemplate": {
1067
+ "type": "string",
1068
+ "maxLength": 32767
1051
1069
  }
1052
1070
  },
1053
1071
  "additionalProperties": false
@@ -928,8 +928,26 @@
928
928
  "maxLength": 48
929
929
  },
930
930
  "type": {
931
+ "oneOf": [
932
+ {
933
+ "type": "string",
934
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
935
+ },
936
+ {
937
+ "type": "string",
938
+ "enum": [
939
+ "$custom"
940
+ ]
941
+ }
942
+ ]
943
+ },
944
+ "headerTemplate": {
931
945
  "type": "string",
932
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
946
+ "maxLength": 1024
947
+ },
948
+ "rowTemplate": {
949
+ "type": "string",
950
+ "maxLength": 32767
933
951
  }
934
952
  },
935
953
  "additionalProperties": false