losant_rest 1.14.1 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +4268 -1402
  3. data/docs/embeddedDeployment.md +49 -0
  4. data/docs/embeddedDeployments.md +215 -0
  5. data/docs/flow.md +2 -2
  6. data/docs/flows.md +2 -2
  7. data/lib/losant_rest/client.rb +10 -2
  8. data/lib/losant_rest/embedded_deployment.rb +81 -0
  9. data/lib/losant_rest/embedded_deployments.rb +280 -0
  10. data/lib/losant_rest/flow.rb +2 -2
  11. data/lib/losant_rest/flows.rb +2 -2
  12. data/lib/losant_rest/version.rb +1 -1
  13. data/lib/losant_rest.rb +2 -0
  14. data/schemas/apiTokenPost.json +8 -0
  15. data/schemas/application.json +32 -32
  16. data/schemas/applicationCreationByTemplateResult.json +32 -32
  17. data/schemas/applicationDashboardPost.json +8 -5
  18. data/schemas/applicationPatch.json +13 -13
  19. data/schemas/applicationPost.json +13 -13
  20. data/schemas/applicationTemplate.json +16 -16
  21. data/schemas/applicationTemplates.json +16 -16
  22. data/schemas/applications.json +32 -32
  23. data/schemas/authedDevice.json +2 -1
  24. data/schemas/dashboard.json +8 -5
  25. data/schemas/dashboardPatch.json +8 -5
  26. data/schemas/dashboardPost.json +8 -5
  27. data/schemas/dashboardSendReport.json +6 -6
  28. data/schemas/dashboards.json +8 -5
  29. data/schemas/device.json +2 -1
  30. data/schemas/deviceClassFilter.json +4 -2
  31. data/schemas/devicePatch.json +2 -1
  32. data/schemas/devicePost.json +2 -1
  33. data/schemas/deviceRecipe.json +2 -1
  34. data/schemas/deviceRecipePatch.json +2 -1
  35. data/schemas/deviceRecipePost.json +2 -1
  36. data/schemas/deviceRecipes.json +2 -1
  37. data/schemas/devices.json +4 -2
  38. data/schemas/devicesPatch.json +4 -2
  39. data/schemas/edgeDeployment.json +4 -0
  40. data/schemas/edgeDeployments.json +4 -0
  41. data/schemas/embeddedDeployment.json +179 -0
  42. data/schemas/embeddedDeploymentExport.json +44 -0
  43. data/schemas/embeddedDeploymentRelease.json +58 -0
  44. data/schemas/embeddedDeploymentRemove.json +25 -0
  45. data/schemas/embeddedDeploymentReplace.json +29 -0
  46. data/schemas/embeddedDeployments.json +212 -0
  47. data/schemas/experienceEndpoint.json +6 -8
  48. data/schemas/experienceEndpointPatch.json +6 -8
  49. data/schemas/experienceEndpointPost.json +6 -8
  50. data/schemas/experienceEndpoints.json +6 -8
  51. data/schemas/experienceLinkedResources.json +387 -57
  52. data/schemas/flow.json +127 -16
  53. data/schemas/flowPatch.json +126 -16
  54. data/schemas/flowPost.json +127 -16
  55. data/schemas/flowVersion.json +253 -33
  56. data/schemas/flowVersionPost.json +126 -16
  57. data/schemas/flowVersions.json +253 -33
  58. data/schemas/flows.json +128 -16
  59. data/schemas/flowsImportPost.json +253 -32
  60. data/schemas/flowsImportResult.json +380 -49
  61. data/schemas/githubLogin.json +8 -0
  62. data/schemas/historicalSummary.json +87 -74
  63. data/schemas/instance.json +92 -79
  64. data/schemas/instanceMember.json +6 -0
  65. data/schemas/instanceMembers.json +6 -0
  66. data/schemas/instanceOrg.json +87 -74
  67. data/schemas/instanceOrgMember.json +6 -0
  68. data/schemas/instanceOrgPatch.json +64 -26
  69. data/schemas/instanceOrgPost.json +65 -27
  70. data/schemas/instanceOrgs.json +87 -74
  71. data/schemas/instancePatch.json +2 -2
  72. data/schemas/me.json +104 -91
  73. data/schemas/org.json +115 -96
  74. data/schemas/orgs.json +115 -96
  75. data/schemas/userCredentials.json +8 -0
  76. data/schemas/userPost.json +8 -0
  77. metadata +16 -6
@@ -75,6 +75,7 @@
75
75
  "deviceCommand",
76
76
  "deviceIdsTagsConnect",
77
77
  "deviceIdsTagsDisconnect",
78
+ "eeaInit",
78
79
  "flowError",
79
80
  "googlePubSub",
80
81
  "meridian",
@@ -138,7 +139,8 @@
138
139
  "type": "array",
139
140
  "items": {
140
141
  "type": "string",
141
- "maxLength": 255
142
+ "maxLength": 48,
143
+ "minLength": 1
142
144
  },
143
145
  "maxItems": 100
144
146
  },
@@ -242,7 +244,8 @@
242
244
  "type": "array",
243
245
  "items": {
244
246
  "type": "string",
245
- "maxLength": 255
247
+ "maxLength": 48,
248
+ "minLength": 1
246
249
  },
247
250
  "maxItems": 100
248
251
  },
@@ -386,7 +389,8 @@
386
389
  "type": "array",
387
390
  "items": {
388
391
  "type": "string",
389
- "maxLength": 255
392
+ "maxLength": 48,
393
+ "minLength": 1
390
394
  },
391
395
  "maxItems": 100
392
396
  },
@@ -482,8 +486,101 @@
482
486
  "type": "array",
483
487
  "items": {
484
488
  "type": "string",
489
+ "maxLength": 48,
490
+ "minLength": 1
491
+ },
492
+ "maxItems": 100
493
+ },
494
+ "maxItems": 100
495
+ }
496
+ },
497
+ "required": [
498
+ "type"
499
+ ],
500
+ "additionalProperties": false
501
+ },
502
+ {
503
+ "type": "object",
504
+ "properties": {
505
+ "key": {
506
+ "type": "string",
507
+ "maxLength": 1024
508
+ },
509
+ "type": {
510
+ "type": "string",
511
+ "enum": [
512
+ "direct"
513
+ ]
514
+ },
515
+ "config": {
516
+ "type": "object",
517
+ "properties": {},
518
+ "additionalProperties": false
519
+ },
520
+ "meta": {
521
+ "type": "object",
522
+ "properties": {
523
+ "category": {
524
+ "type": "string",
525
+ "enum": [
526
+ "trigger"
527
+ ]
528
+ },
529
+ "name": {
530
+ "type": "string",
531
+ "enum": [
532
+ "direct"
533
+ ]
534
+ },
535
+ "label": {
536
+ "type": "string",
537
+ "minLength": 1,
485
538
  "maxLength": 255
486
539
  },
540
+ "x": {
541
+ "type": "number"
542
+ },
543
+ "y": {
544
+ "type": "number"
545
+ },
546
+ "uiId": {
547
+ "type": "string",
548
+ "maxLength": 48
549
+ },
550
+ "description": {
551
+ "type": "string",
552
+ "maxLength": 32767
553
+ },
554
+ "icon": {
555
+ "type": "string",
556
+ "maxLength": 1024
557
+ },
558
+ "color": {
559
+ "type": "string",
560
+ "maxLength": 1024
561
+ },
562
+ "inputCount": {
563
+ "type": "number"
564
+ },
565
+ "outputCount": {
566
+ "type": "number"
567
+ },
568
+ "id": {
569
+ "type": "string",
570
+ "maxLength": 48
571
+ }
572
+ },
573
+ "additionalProperties": false
574
+ },
575
+ "outputIds": {
576
+ "type": "array",
577
+ "items": {
578
+ "type": "array",
579
+ "items": {
580
+ "type": "string",
581
+ "maxLength": 48,
582
+ "minLength": 1
583
+ },
487
584
  "maxItems": 100
488
585
  },
489
586
  "maxItems": 100
@@ -579,7 +676,8 @@
579
676
  "type": "array",
580
677
  "items": {
581
678
  "type": "string",
582
- "maxLength": 255
679
+ "maxLength": 48,
680
+ "minLength": 1
583
681
  },
584
682
  "maxItems": 100
585
683
  },
@@ -684,7 +782,8 @@
684
782
  "type": "array",
685
783
  "items": {
686
784
  "type": "string",
687
- "maxLength": 255
785
+ "maxLength": 48,
786
+ "minLength": 1
688
787
  },
689
788
  "maxItems": 100
690
789
  },
@@ -792,7 +891,8 @@
792
891
  "type": "array",
793
892
  "items": {
794
893
  "type": "string",
795
- "maxLength": 255
894
+ "maxLength": 48,
895
+ "minLength": 1
796
896
  },
797
897
  "maxItems": 100
798
898
  },
@@ -903,7 +1003,8 @@
903
1003
  "type": "array",
904
1004
  "items": {
905
1005
  "type": "string",
906
- "maxLength": 255
1006
+ "maxLength": 48,
1007
+ "minLength": 1
907
1008
  },
908
1009
  "maxItems": 100
909
1010
  },
@@ -1004,7 +1105,8 @@
1004
1105
  "type": "array",
1005
1106
  "items": {
1006
1107
  "type": "string",
1007
- "maxLength": 255
1108
+ "maxLength": 48,
1109
+ "minLength": 1
1008
1110
  },
1009
1111
  "maxItems": 100
1010
1112
  },
@@ -1107,7 +1209,8 @@
1107
1209
  "type": "array",
1108
1210
  "items": {
1109
1211
  "type": "string",
1110
- "maxLength": 255
1212
+ "maxLength": 48,
1213
+ "minLength": 1
1111
1214
  },
1112
1215
  "maxItems": 100
1113
1216
  },
@@ -1247,7 +1350,8 @@
1247
1350
  "type": "array",
1248
1351
  "items": {
1249
1352
  "type": "string",
1250
- "maxLength": 255
1353
+ "maxLength": 48,
1354
+ "minLength": 1
1251
1355
  },
1252
1356
  "maxItems": 100
1253
1357
  },
@@ -1370,7 +1474,8 @@
1370
1474
  "type": "array",
1371
1475
  "items": {
1372
1476
  "type": "string",
1373
- "maxLength": 255
1477
+ "maxLength": 48,
1478
+ "minLength": 1
1374
1479
  },
1375
1480
  "maxItems": 100
1376
1481
  },
@@ -1482,7 +1587,8 @@
1482
1587
  "type": "array",
1483
1588
  "items": {
1484
1589
  "type": "string",
1485
- "maxLength": 255
1590
+ "maxLength": 48,
1591
+ "minLength": 1
1486
1592
  },
1487
1593
  "maxItems": 100
1488
1594
  },
@@ -1625,7 +1731,8 @@
1625
1731
  "type": "array",
1626
1732
  "items": {
1627
1733
  "type": "string",
1628
- "maxLength": 255
1734
+ "maxLength": 48,
1735
+ "minLength": 1
1629
1736
  },
1630
1737
  "maxItems": 100
1631
1738
  },
@@ -1751,7 +1858,8 @@
1751
1858
  "type": "array",
1752
1859
  "items": {
1753
1860
  "type": "string",
1754
- "maxLength": 255
1861
+ "maxLength": 48,
1862
+ "minLength": 1
1755
1863
  },
1756
1864
  "maxItems": 100
1757
1865
  },
@@ -1866,7 +1974,8 @@
1866
1974
  "type": "array",
1867
1975
  "items": {
1868
1976
  "type": "string",
1869
- "maxLength": 255
1977
+ "maxLength": 48,
1978
+ "minLength": 1
1870
1979
  },
1871
1980
  "maxItems": 100
1872
1981
  },
@@ -1907,7 +2016,8 @@
1907
2016
  "type": "array",
1908
2017
  "items": {
1909
2018
  "type": "string",
1910
- "maxLength": 255
2019
+ "maxLength": 48,
2020
+ "minLength": 1
1911
2021
  },
1912
2022
  "maxItems": 100
1913
2023
  },
@@ -1948,6 +2058,7 @@
1948
2058
  "enum": [
1949
2059
  "cloud",
1950
2060
  "edge",
2061
+ "embedded",
1951
2062
  "experience",
1952
2063
  "customNode"
1953
2064
  ]