losant_rest 1.17.3 → 1.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +19420 -12740
  3. data/docs/application.md +80 -0
  4. data/docs/applicationDashboard.md +1 -1
  5. data/docs/dashboard.md +1 -0
  6. data/docs/flow.md +1 -1
  7. data/docs/instance.md +80 -0
  8. data/docs/instanceOrg.md +86 -0
  9. data/docs/me.md +76 -0
  10. data/docs/notebook.md +43 -0
  11. data/docs/org.md +80 -0
  12. data/lib/losant_rest/application.rb +96 -0
  13. data/lib/losant_rest/application_dashboard.rb +1 -1
  14. data/lib/losant_rest/client.rb +2 -2
  15. data/lib/losant_rest/dashboard.rb +2 -0
  16. data/lib/losant_rest/flow.rb +1 -1
  17. data/lib/losant_rest/instance.rb +96 -0
  18. data/lib/losant_rest/instance_org.rb +100 -0
  19. data/lib/losant_rest/me.rb +90 -0
  20. data/lib/losant_rest/notebook.rb +50 -0
  21. data/lib/losant_rest/org.rb +96 -0
  22. data/lib/losant_rest/version.rb +1 -1
  23. data/schemas/apiTokenPost.json +11 -0
  24. data/schemas/applicationDashboardPost.json +41 -7
  25. data/schemas/dashboard.json +65 -7
  26. data/schemas/dashboardPatch.json +41 -7
  27. data/schemas/dashboardPost.json +41 -7
  28. data/schemas/dashboards.json +65 -7
  29. data/schemas/dataExport.json +1467 -9
  30. data/schemas/deviceCounts.json +35 -0
  31. data/schemas/edgeDeployment.json +25 -0
  32. data/schemas/edgeDeployments.json +25 -0
  33. data/schemas/experienceLinkedResources.json +279 -0
  34. data/schemas/flow.json +93 -0
  35. data/schemas/flowPatch.json +93 -0
  36. data/schemas/flowPost.json +93 -0
  37. data/schemas/flowVersion.json +186 -0
  38. data/schemas/flowVersionPost.json +93 -0
  39. data/schemas/flowVersions.json +186 -0
  40. data/schemas/flows.json +93 -0
  41. data/schemas/flowsImportPost.json +186 -0
  42. data/schemas/flowsImportResult.json +279 -0
  43. data/schemas/githubLogin.json +11 -0
  44. data/schemas/integration.json +10 -10
  45. data/schemas/integrationPatch.json +10 -10
  46. data/schemas/integrationPost.json +10 -10
  47. data/schemas/integrations.json +10 -10
  48. data/schemas/lastValueQuery.json +1598 -6
  49. data/schemas/notebookMinuteCounts.json +41 -0
  50. data/schemas/samlResponse.json +11 -0
  51. data/schemas/timeSeriesQuery.json +1599 -7
  52. data/schemas/userCredentials.json +11 -0
  53. data/schemas/userPost.json +11 -0
  54. metadata +4 -2
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "start": {
6
+ "type": "string",
7
+ "format": "date-time"
8
+ },
9
+ "end": {
10
+ "type": "string",
11
+ "format": "date-time"
12
+ },
13
+ "counts": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "date": {
19
+ "type": "string",
20
+ "format": "date-time"
21
+ },
22
+ "created": {
23
+ "type": "integer"
24
+ },
25
+ "deleted": {
26
+ "type": "integer"
27
+ },
28
+ "total": {
29
+ "type": "integer"
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -76,6 +76,16 @@
76
76
  "minLength": 1,
77
77
  "maxLength": 255
78
78
  },
79
+ "currentEtag": {
80
+ "type": "string",
81
+ "minLength": 1,
82
+ "maxLength": 255
83
+ },
84
+ "desiredEtag": {
85
+ "type": "string",
86
+ "minLength": 1,
87
+ "maxLength": 255
88
+ },
79
89
  "logs": {
80
90
  "type": "array",
81
91
  "items": {
@@ -130,6 +140,21 @@
130
140
  "minLength": 1,
131
141
  "maxLength": 255
132
142
  },
143
+ "newEtag": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 255
147
+ },
148
+ "previousEtag": {
149
+ "type": "string",
150
+ "minLength": 1,
151
+ "maxLength": 255
152
+ },
153
+ "attemptedEtag": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "maxLength": 255
157
+ },
133
158
  "error": {
134
159
  "type": "string"
135
160
  }
@@ -83,6 +83,16 @@
83
83
  "minLength": 1,
84
84
  "maxLength": 255
85
85
  },
86
+ "currentEtag": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 255
90
+ },
91
+ "desiredEtag": {
92
+ "type": "string",
93
+ "minLength": 1,
94
+ "maxLength": 255
95
+ },
86
96
  "logs": {
87
97
  "type": "array",
88
98
  "items": {
@@ -137,6 +147,21 @@
137
147
  "minLength": 1,
138
148
  "maxLength": 255
139
149
  },
150
+ "newEtag": {
151
+ "type": "string",
152
+ "minLength": 1,
153
+ "maxLength": 255
154
+ },
155
+ "previousEtag": {
156
+ "type": "string",
157
+ "minLength": 1,
158
+ "maxLength": 255
159
+ },
160
+ "attemptedEtag": {
161
+ "type": "string",
162
+ "minLength": 1,
163
+ "maxLength": 255
164
+ },
140
165
  "error": {
141
166
  "type": "string"
142
167
  }
@@ -1683,6 +1683,94 @@
1683
1683
  ],
1684
1684
  "additionalProperties": false
1685
1685
  },
1686
+ {
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "key": {
1690
+ "type": "string",
1691
+ "maxLength": 1024
1692
+ },
1693
+ "type": {
1694
+ "type": "string",
1695
+ "enum": [
1696
+ "onSync"
1697
+ ]
1698
+ },
1699
+ "config": {
1700
+ "type": "object",
1701
+ "properties": {
1702
+ "syncTypes": {
1703
+ "type": "array",
1704
+ "maxItems": 3,
1705
+ "minItems": 1,
1706
+ "items": {
1707
+ "type": "string",
1708
+ "enum": [
1709
+ "application",
1710
+ "device",
1711
+ "peripheral"
1712
+ ]
1713
+ }
1714
+ }
1715
+ },
1716
+ "additionalProperties": false
1717
+ },
1718
+ "meta": {
1719
+ "type": "object",
1720
+ "properties": {
1721
+ "category": {
1722
+ "type": "string",
1723
+ "enum": [
1724
+ "trigger"
1725
+ ]
1726
+ },
1727
+ "name": {
1728
+ "type": "string",
1729
+ "enum": [
1730
+ "onSync"
1731
+ ]
1732
+ },
1733
+ "label": {
1734
+ "type": "string",
1735
+ "minLength": 1,
1736
+ "maxLength": 255
1737
+ },
1738
+ "x": {
1739
+ "type": "number"
1740
+ },
1741
+ "y": {
1742
+ "type": "number"
1743
+ },
1744
+ "uiId": {
1745
+ "type": "string",
1746
+ "maxLength": 48
1747
+ },
1748
+ "description": {
1749
+ "type": "string",
1750
+ "maxLength": 32767
1751
+ }
1752
+ },
1753
+ "additionalProperties": false
1754
+ },
1755
+ "outputIds": {
1756
+ "type": "array",
1757
+ "items": {
1758
+ "type": "array",
1759
+ "items": {
1760
+ "type": "string",
1761
+ "maxLength": 48,
1762
+ "minLength": 1
1763
+ },
1764
+ "maxItems": 100
1765
+ },
1766
+ "maxItems": 100
1767
+ }
1768
+ },
1769
+ "required": [
1770
+ "type"
1771
+ ],
1772
+ "additionalProperties": false
1773
+ },
1686
1774
  {
1687
1775
  "type": "object",
1688
1776
  "properties": {
@@ -1701,6 +1789,7 @@
1701
1789
  "properties": {
1702
1790
  "uri": {
1703
1791
  "type": "string",
1792
+ "format": "uri",
1704
1793
  "maxLength": 1024
1705
1794
  },
1706
1795
  "securityPolicy": {
@@ -1746,6 +1835,10 @@
1746
1835
  "type": "string",
1747
1836
  "maxLength": 255
1748
1837
  }
1838
+ },
1839
+ "configName": {
1840
+ "type": "string",
1841
+ "maxLength": 1024
1749
1842
  }
1750
1843
  },
1751
1844
  "additionalProperties": false
@@ -4362,6 +4455,94 @@
4362
4455
  ],
4363
4456
  "additionalProperties": false
4364
4457
  },
4458
+ {
4459
+ "type": "object",
4460
+ "properties": {
4461
+ "key": {
4462
+ "type": "string",
4463
+ "maxLength": 1024
4464
+ },
4465
+ "type": {
4466
+ "type": "string",
4467
+ "enum": [
4468
+ "onSync"
4469
+ ]
4470
+ },
4471
+ "config": {
4472
+ "type": "object",
4473
+ "properties": {
4474
+ "syncTypes": {
4475
+ "type": "array",
4476
+ "maxItems": 3,
4477
+ "minItems": 1,
4478
+ "items": {
4479
+ "type": "string",
4480
+ "enum": [
4481
+ "application",
4482
+ "device",
4483
+ "peripheral"
4484
+ ]
4485
+ }
4486
+ }
4487
+ },
4488
+ "additionalProperties": false
4489
+ },
4490
+ "meta": {
4491
+ "type": "object",
4492
+ "properties": {
4493
+ "category": {
4494
+ "type": "string",
4495
+ "enum": [
4496
+ "trigger"
4497
+ ]
4498
+ },
4499
+ "name": {
4500
+ "type": "string",
4501
+ "enum": [
4502
+ "onSync"
4503
+ ]
4504
+ },
4505
+ "label": {
4506
+ "type": "string",
4507
+ "minLength": 1,
4508
+ "maxLength": 255
4509
+ },
4510
+ "x": {
4511
+ "type": "number"
4512
+ },
4513
+ "y": {
4514
+ "type": "number"
4515
+ },
4516
+ "uiId": {
4517
+ "type": "string",
4518
+ "maxLength": 48
4519
+ },
4520
+ "description": {
4521
+ "type": "string",
4522
+ "maxLength": 32767
4523
+ }
4524
+ },
4525
+ "additionalProperties": false
4526
+ },
4527
+ "outputIds": {
4528
+ "type": "array",
4529
+ "items": {
4530
+ "type": "array",
4531
+ "items": {
4532
+ "type": "string",
4533
+ "maxLength": 48,
4534
+ "minLength": 1
4535
+ },
4536
+ "maxItems": 100
4537
+ },
4538
+ "maxItems": 100
4539
+ }
4540
+ },
4541
+ "required": [
4542
+ "type"
4543
+ ],
4544
+ "additionalProperties": false
4545
+ },
4365
4546
  {
4366
4547
  "type": "object",
4367
4548
  "properties": {
@@ -4380,6 +4561,7 @@
4380
4561
  "properties": {
4381
4562
  "uri": {
4382
4563
  "type": "string",
4564
+ "format": "uri",
4383
4565
  "maxLength": 1024
4384
4566
  },
4385
4567
  "securityPolicy": {
@@ -4425,6 +4607,10 @@
4425
4607
  "type": "string",
4426
4608
  "maxLength": 255
4427
4609
  }
4610
+ },
4611
+ "configName": {
4612
+ "type": "string",
4613
+ "maxLength": 1024
4428
4614
  }
4429
4615
  },
4430
4616
  "additionalProperties": false
@@ -6952,6 +7138,94 @@
6952
7138
  ],
6953
7139
  "additionalProperties": false
6954
7140
  },
7141
+ {
7142
+ "type": "object",
7143
+ "properties": {
7144
+ "key": {
7145
+ "type": "string",
7146
+ "maxLength": 1024
7147
+ },
7148
+ "type": {
7149
+ "type": "string",
7150
+ "enum": [
7151
+ "onSync"
7152
+ ]
7153
+ },
7154
+ "config": {
7155
+ "type": "object",
7156
+ "properties": {
7157
+ "syncTypes": {
7158
+ "type": "array",
7159
+ "maxItems": 3,
7160
+ "minItems": 1,
7161
+ "items": {
7162
+ "type": "string",
7163
+ "enum": [
7164
+ "application",
7165
+ "device",
7166
+ "peripheral"
7167
+ ]
7168
+ }
7169
+ }
7170
+ },
7171
+ "additionalProperties": false
7172
+ },
7173
+ "meta": {
7174
+ "type": "object",
7175
+ "properties": {
7176
+ "category": {
7177
+ "type": "string",
7178
+ "enum": [
7179
+ "trigger"
7180
+ ]
7181
+ },
7182
+ "name": {
7183
+ "type": "string",
7184
+ "enum": [
7185
+ "onSync"
7186
+ ]
7187
+ },
7188
+ "label": {
7189
+ "type": "string",
7190
+ "minLength": 1,
7191
+ "maxLength": 255
7192
+ },
7193
+ "x": {
7194
+ "type": "number"
7195
+ },
7196
+ "y": {
7197
+ "type": "number"
7198
+ },
7199
+ "uiId": {
7200
+ "type": "string",
7201
+ "maxLength": 48
7202
+ },
7203
+ "description": {
7204
+ "type": "string",
7205
+ "maxLength": 32767
7206
+ }
7207
+ },
7208
+ "additionalProperties": false
7209
+ },
7210
+ "outputIds": {
7211
+ "type": "array",
7212
+ "items": {
7213
+ "type": "array",
7214
+ "items": {
7215
+ "type": "string",
7216
+ "maxLength": 48,
7217
+ "minLength": 1
7218
+ },
7219
+ "maxItems": 100
7220
+ },
7221
+ "maxItems": 100
7222
+ }
7223
+ },
7224
+ "required": [
7225
+ "type"
7226
+ ],
7227
+ "additionalProperties": false
7228
+ },
6955
7229
  {
6956
7230
  "type": "object",
6957
7231
  "properties": {
@@ -6970,6 +7244,7 @@
6970
7244
  "properties": {
6971
7245
  "uri": {
6972
7246
  "type": "string",
7247
+ "format": "uri",
6973
7248
  "maxLength": 1024
6974
7249
  },
6975
7250
  "securityPolicy": {
@@ -7015,6 +7290,10 @@
7015
7290
  "type": "string",
7016
7291
  "maxLength": 255
7017
7292
  }
7293
+ },
7294
+ "configName": {
7295
+ "type": "string",
7296
+ "maxLength": 1024
7018
7297
  }
7019
7298
  },
7020
7299
  "additionalProperties": false
data/schemas/flow.json CHANGED
@@ -1302,6 +1302,94 @@
1302
1302
  ],
1303
1303
  "additionalProperties": false
1304
1304
  },
1305
+ {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "key": {
1309
+ "type": "string",
1310
+ "maxLength": 1024
1311
+ },
1312
+ "type": {
1313
+ "type": "string",
1314
+ "enum": [
1315
+ "onSync"
1316
+ ]
1317
+ },
1318
+ "config": {
1319
+ "type": "object",
1320
+ "properties": {
1321
+ "syncTypes": {
1322
+ "type": "array",
1323
+ "maxItems": 3,
1324
+ "minItems": 1,
1325
+ "items": {
1326
+ "type": "string",
1327
+ "enum": [
1328
+ "application",
1329
+ "device",
1330
+ "peripheral"
1331
+ ]
1332
+ }
1333
+ }
1334
+ },
1335
+ "additionalProperties": false
1336
+ },
1337
+ "meta": {
1338
+ "type": "object",
1339
+ "properties": {
1340
+ "category": {
1341
+ "type": "string",
1342
+ "enum": [
1343
+ "trigger"
1344
+ ]
1345
+ },
1346
+ "name": {
1347
+ "type": "string",
1348
+ "enum": [
1349
+ "onSync"
1350
+ ]
1351
+ },
1352
+ "label": {
1353
+ "type": "string",
1354
+ "minLength": 1,
1355
+ "maxLength": 255
1356
+ },
1357
+ "x": {
1358
+ "type": "number"
1359
+ },
1360
+ "y": {
1361
+ "type": "number"
1362
+ },
1363
+ "uiId": {
1364
+ "type": "string",
1365
+ "maxLength": 48
1366
+ },
1367
+ "description": {
1368
+ "type": "string",
1369
+ "maxLength": 32767
1370
+ }
1371
+ },
1372
+ "additionalProperties": false
1373
+ },
1374
+ "outputIds": {
1375
+ "type": "array",
1376
+ "items": {
1377
+ "type": "array",
1378
+ "items": {
1379
+ "type": "string",
1380
+ "maxLength": 48,
1381
+ "minLength": 1
1382
+ },
1383
+ "maxItems": 100
1384
+ },
1385
+ "maxItems": 100
1386
+ }
1387
+ },
1388
+ "required": [
1389
+ "type"
1390
+ ],
1391
+ "additionalProperties": false
1392
+ },
1305
1393
  {
1306
1394
  "type": "object",
1307
1395
  "properties": {
@@ -1320,6 +1408,7 @@
1320
1408
  "properties": {
1321
1409
  "uri": {
1322
1410
  "type": "string",
1411
+ "format": "uri",
1323
1412
  "maxLength": 1024
1324
1413
  },
1325
1414
  "securityPolicy": {
@@ -1365,6 +1454,10 @@
1365
1454
  "type": "string",
1366
1455
  "maxLength": 255
1367
1456
  }
1457
+ },
1458
+ "configName": {
1459
+ "type": "string",
1460
+ "maxLength": 1024
1368
1461
  }
1369
1462
  },
1370
1463
  "additionalProperties": false
@@ -1259,6 +1259,94 @@
1259
1259
  ],
1260
1260
  "additionalProperties": false
1261
1261
  },
1262
+ {
1263
+ "type": "object",
1264
+ "properties": {
1265
+ "key": {
1266
+ "type": "string",
1267
+ "maxLength": 1024
1268
+ },
1269
+ "type": {
1270
+ "type": "string",
1271
+ "enum": [
1272
+ "onSync"
1273
+ ]
1274
+ },
1275
+ "config": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "syncTypes": {
1279
+ "type": "array",
1280
+ "maxItems": 3,
1281
+ "minItems": 1,
1282
+ "items": {
1283
+ "type": "string",
1284
+ "enum": [
1285
+ "application",
1286
+ "device",
1287
+ "peripheral"
1288
+ ]
1289
+ }
1290
+ }
1291
+ },
1292
+ "additionalProperties": false
1293
+ },
1294
+ "meta": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "category": {
1298
+ "type": "string",
1299
+ "enum": [
1300
+ "trigger"
1301
+ ]
1302
+ },
1303
+ "name": {
1304
+ "type": "string",
1305
+ "enum": [
1306
+ "onSync"
1307
+ ]
1308
+ },
1309
+ "label": {
1310
+ "type": "string",
1311
+ "minLength": 1,
1312
+ "maxLength": 255
1313
+ },
1314
+ "x": {
1315
+ "type": "number"
1316
+ },
1317
+ "y": {
1318
+ "type": "number"
1319
+ },
1320
+ "uiId": {
1321
+ "type": "string",
1322
+ "maxLength": 48
1323
+ },
1324
+ "description": {
1325
+ "type": "string",
1326
+ "maxLength": 32767
1327
+ }
1328
+ },
1329
+ "additionalProperties": false
1330
+ },
1331
+ "outputIds": {
1332
+ "type": "array",
1333
+ "items": {
1334
+ "type": "array",
1335
+ "items": {
1336
+ "type": "string",
1337
+ "maxLength": 48,
1338
+ "minLength": 1
1339
+ },
1340
+ "maxItems": 100
1341
+ },
1342
+ "maxItems": 100
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "type"
1347
+ ],
1348
+ "additionalProperties": false
1349
+ },
1262
1350
  {
1263
1351
  "type": "object",
1264
1352
  "properties": {
@@ -1277,6 +1365,7 @@
1277
1365
  "properties": {
1278
1366
  "uri": {
1279
1367
  "type": "string",
1368
+ "format": "uri",
1280
1369
  "maxLength": 1024
1281
1370
  },
1282
1371
  "securityPolicy": {
@@ -1322,6 +1411,10 @@
1322
1411
  "type": "string",
1323
1412
  "maxLength": 255
1324
1413
  }
1414
+ },
1415
+ "configName": {
1416
+ "type": "string",
1417
+ "maxLength": 1024
1325
1418
  }
1326
1419
  },
1327
1420
  "additionalProperties": false