losant_rest 1.19.8 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/docs/_schemas.md +9774 -1641
  4. data/lib/platform_rest/client.rb +2 -2
  5. data/lib/platform_rest/version.rb +1 -1
  6. data/losant_rest.gemspec +2 -2
  7. data/schemas/advancedApplicationKeyQuery.json +360 -18
  8. data/schemas/advancedDeviceQuery.json +360 -18
  9. data/schemas/advancedEventQuery.json +360 -18
  10. data/schemas/advancedExperienceGroupQuery.json +360 -18
  11. data/schemas/advancedExperienceUserQuery.json +360 -18
  12. data/schemas/advancedInstanceOrgQuery.json +360 -18
  13. data/schemas/apiTokenPost.json +1 -1
  14. data/schemas/application.json +28 -4
  15. data/schemas/applicationCreationByTemplateResult.json +28 -4
  16. data/schemas/applicationDashboardPost.json +2 -1
  17. data/schemas/applicationTemplate.json +4 -0
  18. data/schemas/applicationTemplates.json +4 -0
  19. data/schemas/applications.json +28 -4
  20. data/schemas/credential.json +7 -1
  21. data/schemas/credentialLinkedResources.json +336 -18
  22. data/schemas/credentialPatch.json +11 -0
  23. data/schemas/credentialPost.json +16 -1
  24. data/schemas/credentials.json +7 -1
  25. data/schemas/dashboard.json +2 -1
  26. data/schemas/dashboardPatch.json +2 -1
  27. data/schemas/dashboardPost.json +2 -1
  28. data/schemas/dashboards.json +2 -1
  29. data/schemas/dataExport.json +360 -18
  30. data/schemas/devicesDeletePost.json +360 -18
  31. data/schemas/devicesExportPayloadCountPost.json +360 -18
  32. data/schemas/devicesExportPost.json +360 -18
  33. data/schemas/devicesPatch.json +360 -18
  34. data/schemas/devicesRemoveDataPost.json +360 -18
  35. data/schemas/eventsExport.json +360 -18
  36. data/schemas/experienceLinkedResources.json +336 -18
  37. data/schemas/flow.json +112 -6
  38. data/schemas/flowPatch.json +112 -6
  39. data/schemas/flowPost.json +112 -6
  40. data/schemas/flowVersion.json +224 -12
  41. data/schemas/flowVersionPost.json +112 -6
  42. data/schemas/flowVersions.json +224 -12
  43. data/schemas/flows.json +112 -6
  44. data/schemas/flowsImportPost.json +224 -12
  45. data/schemas/flowsImportResult.json +336 -18
  46. data/schemas/githubLogin.json +1 -1
  47. data/schemas/historicalSummaries.json +56 -8
  48. data/schemas/historicalSummary.json +56 -8
  49. data/schemas/instanceCustomNodePatch.json +10 -6
  50. data/schemas/instanceCustomNodePost.json +10 -6
  51. data/schemas/instanceOrg.json +63 -4
  52. data/schemas/instanceOrgs.json +63 -4
  53. data/schemas/instanceSandbox.json +28 -4
  54. data/schemas/instanceSandboxes.json +28 -4
  55. data/schemas/lastValueQuery.json +360 -18
  56. data/schemas/me.json +28 -4
  57. data/schemas/multiDeviceCommand.json +360 -18
  58. data/schemas/org.json +28 -4
  59. data/schemas/orgs.json +28 -4
  60. data/schemas/payloadStats.json +28 -4
  61. data/schemas/samlResponse.json +1 -1
  62. data/schemas/timeSeriesQuery.json +360 -18
  63. data/schemas/userCredentials.json +1 -1
  64. data/schemas/userPost.json +1 -1
  65. data/schemas/webhook.json +13 -0
  66. data/schemas/webhookPatch.json +13 -0
  67. data/schemas/webhookPost.json +13 -0
  68. data/schemas/webhooks.json +13 -0
  69. metadata +5 -5
@@ -1331,12 +1331,88 @@
1331
1331
  "type": "object",
1332
1332
  "properties": {
1333
1333
  "$tagKey": {
1334
- "type": "string",
1335
- "maxLength": 255
1334
+ "oneOf": [
1335
+ {
1336
+ "type": "string",
1337
+ "maxLength": 255
1338
+ },
1339
+ {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "$in": {
1343
+ "type": "array",
1344
+ "maxItems": 100,
1345
+ "items": {
1346
+ "type": "string",
1347
+ "maxLength": 255
1348
+ }
1349
+ }
1350
+ },
1351
+ "required": [
1352
+ "$in"
1353
+ ],
1354
+ "additionalProperties": false
1355
+ },
1356
+ {
1357
+ "type": "object",
1358
+ "properties": {
1359
+ "$nin": {
1360
+ "type": "array",
1361
+ "maxItems": 100,
1362
+ "items": {
1363
+ "type": "string",
1364
+ "maxLength": 255
1365
+ }
1366
+ }
1367
+ },
1368
+ "required": [
1369
+ "$nin"
1370
+ ],
1371
+ "additionalProperties": false
1372
+ }
1373
+ ]
1336
1374
  },
1337
1375
  "$tagValue": {
1338
- "type": "string",
1339
- "maxLength": 255
1376
+ "oneOf": [
1377
+ {
1378
+ "type": "string",
1379
+ "maxLength": 255
1380
+ },
1381
+ {
1382
+ "type": "object",
1383
+ "properties": {
1384
+ "$in": {
1385
+ "type": "array",
1386
+ "maxItems": 100,
1387
+ "items": {
1388
+ "type": "string",
1389
+ "maxLength": 255
1390
+ }
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "$in"
1395
+ ],
1396
+ "additionalProperties": false
1397
+ },
1398
+ {
1399
+ "type": "object",
1400
+ "properties": {
1401
+ "$nin": {
1402
+ "type": "array",
1403
+ "maxItems": 100,
1404
+ "items": {
1405
+ "type": "string",
1406
+ "maxLength": 255
1407
+ }
1408
+ }
1409
+ },
1410
+ "required": [
1411
+ "$nin"
1412
+ ],
1413
+ "additionalProperties": false
1414
+ }
1415
+ ]
1340
1416
  }
1341
1417
  },
1342
1418
  "additionalProperties": false,
@@ -1346,8 +1422,46 @@
1346
1422
  "type": "object",
1347
1423
  "patternProperties": {
1348
1424
  "^[0-9a-zA-Z_-]{1,255}": {
1349
- "type": "string",
1350
- "maxLength": 255
1425
+ "oneOf": [
1426
+ {
1427
+ "type": "string",
1428
+ "maxLength": 255
1429
+ },
1430
+ {
1431
+ "type": "object",
1432
+ "properties": {
1433
+ "$in": {
1434
+ "type": "array",
1435
+ "maxItems": 100,
1436
+ "items": {
1437
+ "type": "string",
1438
+ "maxLength": 255
1439
+ }
1440
+ }
1441
+ },
1442
+ "required": [
1443
+ "$in"
1444
+ ],
1445
+ "additionalProperties": false
1446
+ },
1447
+ {
1448
+ "type": "object",
1449
+ "properties": {
1450
+ "$nin": {
1451
+ "type": "array",
1452
+ "maxItems": 100,
1453
+ "items": {
1454
+ "type": "string",
1455
+ "maxLength": 255
1456
+ }
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "$nin"
1461
+ ],
1462
+ "additionalProperties": false
1463
+ }
1464
+ ]
1351
1465
  }
1352
1466
  },
1353
1467
  "additionalProperties": false
@@ -1363,12 +1477,88 @@
1363
1477
  "type": "object",
1364
1478
  "properties": {
1365
1479
  "$tagKey": {
1366
- "type": "string",
1367
- "maxLength": 255
1480
+ "oneOf": [
1481
+ {
1482
+ "type": "string",
1483
+ "maxLength": 255
1484
+ },
1485
+ {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "$in": {
1489
+ "type": "array",
1490
+ "maxItems": 100,
1491
+ "items": {
1492
+ "type": "string",
1493
+ "maxLength": 255
1494
+ }
1495
+ }
1496
+ },
1497
+ "required": [
1498
+ "$in"
1499
+ ],
1500
+ "additionalProperties": false
1501
+ },
1502
+ {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "$nin": {
1506
+ "type": "array",
1507
+ "maxItems": 100,
1508
+ "items": {
1509
+ "type": "string",
1510
+ "maxLength": 255
1511
+ }
1512
+ }
1513
+ },
1514
+ "required": [
1515
+ "$nin"
1516
+ ],
1517
+ "additionalProperties": false
1518
+ }
1519
+ ]
1368
1520
  },
1369
1521
  "$tagValue": {
1370
- "type": "string",
1371
- "maxLength": 255
1522
+ "oneOf": [
1523
+ {
1524
+ "type": "string",
1525
+ "maxLength": 255
1526
+ },
1527
+ {
1528
+ "type": "object",
1529
+ "properties": {
1530
+ "$in": {
1531
+ "type": "array",
1532
+ "maxItems": 100,
1533
+ "items": {
1534
+ "type": "string",
1535
+ "maxLength": 255
1536
+ }
1537
+ }
1538
+ },
1539
+ "required": [
1540
+ "$in"
1541
+ ],
1542
+ "additionalProperties": false
1543
+ },
1544
+ {
1545
+ "type": "object",
1546
+ "properties": {
1547
+ "$nin": {
1548
+ "type": "array",
1549
+ "maxItems": 100,
1550
+ "items": {
1551
+ "type": "string",
1552
+ "maxLength": 255
1553
+ }
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "$nin"
1558
+ ],
1559
+ "additionalProperties": false
1560
+ }
1561
+ ]
1372
1562
  }
1373
1563
  },
1374
1564
  "additionalProperties": false,
@@ -1378,8 +1568,46 @@
1378
1568
  "type": "object",
1379
1569
  "patternProperties": {
1380
1570
  "^[0-9a-zA-Z_-]{1,255}": {
1381
- "type": "string",
1382
- "maxLength": 255
1571
+ "oneOf": [
1572
+ {
1573
+ "type": "string",
1574
+ "maxLength": 255
1575
+ },
1576
+ {
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "$in": {
1580
+ "type": "array",
1581
+ "maxItems": 100,
1582
+ "items": {
1583
+ "type": "string",
1584
+ "maxLength": 255
1585
+ }
1586
+ }
1587
+ },
1588
+ "required": [
1589
+ "$in"
1590
+ ],
1591
+ "additionalProperties": false
1592
+ },
1593
+ {
1594
+ "type": "object",
1595
+ "properties": {
1596
+ "$nin": {
1597
+ "type": "array",
1598
+ "maxItems": 100,
1599
+ "items": {
1600
+ "type": "string",
1601
+ "maxLength": 255
1602
+ }
1603
+ }
1604
+ },
1605
+ "required": [
1606
+ "$nin"
1607
+ ],
1608
+ "additionalProperties": false
1609
+ }
1610
+ ]
1383
1611
  }
1384
1612
  },
1385
1613
  "additionalProperties": false
@@ -1401,12 +1629,88 @@
1401
1629
  "type": "object",
1402
1630
  "properties": {
1403
1631
  "$tagKey": {
1404
- "type": "string",
1405
- "maxLength": 255
1632
+ "oneOf": [
1633
+ {
1634
+ "type": "string",
1635
+ "maxLength": 255
1636
+ },
1637
+ {
1638
+ "type": "object",
1639
+ "properties": {
1640
+ "$in": {
1641
+ "type": "array",
1642
+ "maxItems": 100,
1643
+ "items": {
1644
+ "type": "string",
1645
+ "maxLength": 255
1646
+ }
1647
+ }
1648
+ },
1649
+ "required": [
1650
+ "$in"
1651
+ ],
1652
+ "additionalProperties": false
1653
+ },
1654
+ {
1655
+ "type": "object",
1656
+ "properties": {
1657
+ "$nin": {
1658
+ "type": "array",
1659
+ "maxItems": 100,
1660
+ "items": {
1661
+ "type": "string",
1662
+ "maxLength": 255
1663
+ }
1664
+ }
1665
+ },
1666
+ "required": [
1667
+ "$nin"
1668
+ ],
1669
+ "additionalProperties": false
1670
+ }
1671
+ ]
1406
1672
  },
1407
1673
  "$tagValue": {
1408
- "type": "string",
1409
- "maxLength": 255
1674
+ "oneOf": [
1675
+ {
1676
+ "type": "string",
1677
+ "maxLength": 255
1678
+ },
1679
+ {
1680
+ "type": "object",
1681
+ "properties": {
1682
+ "$in": {
1683
+ "type": "array",
1684
+ "maxItems": 100,
1685
+ "items": {
1686
+ "type": "string",
1687
+ "maxLength": 255
1688
+ }
1689
+ }
1690
+ },
1691
+ "required": [
1692
+ "$in"
1693
+ ],
1694
+ "additionalProperties": false
1695
+ },
1696
+ {
1697
+ "type": "object",
1698
+ "properties": {
1699
+ "$nin": {
1700
+ "type": "array",
1701
+ "maxItems": 100,
1702
+ "items": {
1703
+ "type": "string",
1704
+ "maxLength": 255
1705
+ }
1706
+ }
1707
+ },
1708
+ "required": [
1709
+ "$nin"
1710
+ ],
1711
+ "additionalProperties": false
1712
+ }
1713
+ ]
1410
1714
  }
1411
1715
  },
1412
1716
  "additionalProperties": false,
@@ -1416,8 +1720,46 @@
1416
1720
  "type": "object",
1417
1721
  "patternProperties": {
1418
1722
  "^[0-9a-zA-Z_-]{1,255}": {
1419
- "type": "string",
1420
- "maxLength": 255
1723
+ "oneOf": [
1724
+ {
1725
+ "type": "string",
1726
+ "maxLength": 255
1727
+ },
1728
+ {
1729
+ "type": "object",
1730
+ "properties": {
1731
+ "$in": {
1732
+ "type": "array",
1733
+ "maxItems": 100,
1734
+ "items": {
1735
+ "type": "string",
1736
+ "maxLength": 255
1737
+ }
1738
+ }
1739
+ },
1740
+ "required": [
1741
+ "$in"
1742
+ ],
1743
+ "additionalProperties": false
1744
+ },
1745
+ {
1746
+ "type": "object",
1747
+ "properties": {
1748
+ "$nin": {
1749
+ "type": "array",
1750
+ "maxItems": 100,
1751
+ "items": {
1752
+ "type": "string",
1753
+ "maxLength": 255
1754
+ }
1755
+ }
1756
+ },
1757
+ "required": [
1758
+ "$nin"
1759
+ ],
1760
+ "additionalProperties": false
1761
+ }
1762
+ ]
1421
1763
  }
1422
1764
  },
1423
1765
  "additionalProperties": false
@@ -365,7 +365,6 @@
365
365
  "org.notebookMinuteCounts",
366
366
  "org.invoices",
367
367
  "org.currentCard",
368
- "org.chargeDetails",
369
368
  "org.transferResources"
370
369
  ]
371
370
  }
@@ -391,6 +390,7 @@
391
390
  "instanceOrg.payloadCountsBreakdown",
392
391
  "instanceOrg.deviceCounts",
393
392
  "instanceOrg.notebookMinuteCounts",
393
+ "instanceOrg.convertToEnterprise",
394
394
  "instanceOrgs.*",
395
395
  "instanceOrgs.get",
396
396
  "instanceOrgs.post",
@@ -423,7 +423,6 @@
423
423
  "org.notebookMinuteCounts",
424
424
  "org.invoices",
425
425
  "org.currentCard",
426
- "org.chargeDetails",
427
426
  "org.transferResources"
428
427
  ]
429
428
  }
@@ -449,6 +448,7 @@
449
448
  "instanceOrg.payloadCountsBreakdown",
450
449
  "instanceOrg.deviceCounts",
451
450
  "instanceOrg.notebookMinuteCounts",
451
+ "instanceOrg.convertToEnterprise",
452
452
  "instanceOrgs.*",
453
453
  "instanceOrgs.get",
454
454
  "instanceOrgs.post",
data/schemas/webhook.json CHANGED
@@ -67,6 +67,19 @@
67
67
  },
68
68
  "isWebsocket": {
69
69
  "type": "boolean"
70
+ },
71
+ "castBuffersAs": {
72
+ "type": "string",
73
+ "enum": [
74
+ "array",
75
+ "binary",
76
+ "utf8",
77
+ "base64",
78
+ "hex"
79
+ ]
80
+ },
81
+ "annotateMultipart": {
82
+ "type": "boolean"
70
83
  }
71
84
  }
72
85
  }
@@ -43,6 +43,19 @@
43
43
  },
44
44
  "isWebsocket": {
45
45
  "type": "boolean"
46
+ },
47
+ "castBuffersAs": {
48
+ "type": "string",
49
+ "enum": [
50
+ "array",
51
+ "binary",
52
+ "utf8",
53
+ "base64",
54
+ "hex"
55
+ ]
56
+ },
57
+ "annotateMultipart": {
58
+ "type": "boolean"
46
59
  }
47
60
  },
48
61
  "additionalProperties": false
@@ -43,6 +43,19 @@
43
43
  },
44
44
  "isWebsocket": {
45
45
  "type": "boolean"
46
+ },
47
+ "castBuffersAs": {
48
+ "type": "string",
49
+ "enum": [
50
+ "array",
51
+ "binary",
52
+ "utf8",
53
+ "base64",
54
+ "hex"
55
+ ]
56
+ },
57
+ "annotateMultipart": {
58
+ "type": "boolean"
46
59
  }
47
60
  },
48
61
  "required": [
@@ -74,6 +74,19 @@
74
74
  },
75
75
  "isWebsocket": {
76
76
  "type": "boolean"
77
+ },
78
+ "castBuffersAs": {
79
+ "type": "string",
80
+ "enum": [
81
+ "array",
82
+ "binary",
83
+ "utf8",
84
+ "base64",
85
+ "hex"
86
+ ]
87
+ },
88
+ "annotateMultipart": {
89
+ "type": "boolean"
77
90
  }
78
91
  }
79
92
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.8
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.0
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -588,7 +588,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
588
588
  requirements:
589
589
  - - ">="
590
590
  - !ruby/object:Gem::Version
591
- version: '2.1'
591
+ version: '2.3'
592
592
  required_rubygems_version: !ruby/object:Gem::Requirement
593
593
  requirements:
594
594
  - - ">="