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
data/schemas/flows.json CHANGED
@@ -59,6 +59,7 @@
59
59
  "enum": [
60
60
  "cloud",
61
61
  "edge",
62
+ "embedded",
62
63
  "experience",
63
64
  "customNode"
64
65
  ]
@@ -112,6 +113,7 @@
112
113
  "deviceCommand",
113
114
  "deviceIdsTagsConnect",
114
115
  "deviceIdsTagsDisconnect",
116
+ "eeaInit",
115
117
  "flowError",
116
118
  "googlePubSub",
117
119
  "meridian",
@@ -175,7 +177,8 @@
175
177
  "type": "array",
176
178
  "items": {
177
179
  "type": "string",
178
- "maxLength": 255
180
+ "maxLength": 48,
181
+ "minLength": 1
179
182
  },
180
183
  "maxItems": 100
181
184
  },
@@ -279,7 +282,8 @@
279
282
  "type": "array",
280
283
  "items": {
281
284
  "type": "string",
282
- "maxLength": 255
285
+ "maxLength": 48,
286
+ "minLength": 1
283
287
  },
284
288
  "maxItems": 100
285
289
  },
@@ -423,7 +427,8 @@
423
427
  "type": "array",
424
428
  "items": {
425
429
  "type": "string",
426
- "maxLength": 255
430
+ "maxLength": 48,
431
+ "minLength": 1
427
432
  },
428
433
  "maxItems": 100
429
434
  },
@@ -519,8 +524,101 @@
519
524
  "type": "array",
520
525
  "items": {
521
526
  "type": "string",
527
+ "maxLength": 48,
528
+ "minLength": 1
529
+ },
530
+ "maxItems": 100
531
+ },
532
+ "maxItems": 100
533
+ }
534
+ },
535
+ "required": [
536
+ "type"
537
+ ],
538
+ "additionalProperties": false
539
+ },
540
+ {
541
+ "type": "object",
542
+ "properties": {
543
+ "key": {
544
+ "type": "string",
545
+ "maxLength": 1024
546
+ },
547
+ "type": {
548
+ "type": "string",
549
+ "enum": [
550
+ "direct"
551
+ ]
552
+ },
553
+ "config": {
554
+ "type": "object",
555
+ "properties": {},
556
+ "additionalProperties": false
557
+ },
558
+ "meta": {
559
+ "type": "object",
560
+ "properties": {
561
+ "category": {
562
+ "type": "string",
563
+ "enum": [
564
+ "trigger"
565
+ ]
566
+ },
567
+ "name": {
568
+ "type": "string",
569
+ "enum": [
570
+ "direct"
571
+ ]
572
+ },
573
+ "label": {
574
+ "type": "string",
575
+ "minLength": 1,
522
576
  "maxLength": 255
523
577
  },
578
+ "x": {
579
+ "type": "number"
580
+ },
581
+ "y": {
582
+ "type": "number"
583
+ },
584
+ "uiId": {
585
+ "type": "string",
586
+ "maxLength": 48
587
+ },
588
+ "description": {
589
+ "type": "string",
590
+ "maxLength": 32767
591
+ },
592
+ "icon": {
593
+ "type": "string",
594
+ "maxLength": 1024
595
+ },
596
+ "color": {
597
+ "type": "string",
598
+ "maxLength": 1024
599
+ },
600
+ "inputCount": {
601
+ "type": "number"
602
+ },
603
+ "outputCount": {
604
+ "type": "number"
605
+ },
606
+ "id": {
607
+ "type": "string",
608
+ "maxLength": 48
609
+ }
610
+ },
611
+ "additionalProperties": false
612
+ },
613
+ "outputIds": {
614
+ "type": "array",
615
+ "items": {
616
+ "type": "array",
617
+ "items": {
618
+ "type": "string",
619
+ "maxLength": 48,
620
+ "minLength": 1
621
+ },
524
622
  "maxItems": 100
525
623
  },
526
624
  "maxItems": 100
@@ -616,7 +714,8 @@
616
714
  "type": "array",
617
715
  "items": {
618
716
  "type": "string",
619
- "maxLength": 255
717
+ "maxLength": 48,
718
+ "minLength": 1
620
719
  },
621
720
  "maxItems": 100
622
721
  },
@@ -721,7 +820,8 @@
721
820
  "type": "array",
722
821
  "items": {
723
822
  "type": "string",
724
- "maxLength": 255
823
+ "maxLength": 48,
824
+ "minLength": 1
725
825
  },
726
826
  "maxItems": 100
727
827
  },
@@ -829,7 +929,8 @@
829
929
  "type": "array",
830
930
  "items": {
831
931
  "type": "string",
832
- "maxLength": 255
932
+ "maxLength": 48,
933
+ "minLength": 1
833
934
  },
834
935
  "maxItems": 100
835
936
  },
@@ -940,7 +1041,8 @@
940
1041
  "type": "array",
941
1042
  "items": {
942
1043
  "type": "string",
943
- "maxLength": 255
1044
+ "maxLength": 48,
1045
+ "minLength": 1
944
1046
  },
945
1047
  "maxItems": 100
946
1048
  },
@@ -1041,7 +1143,8 @@
1041
1143
  "type": "array",
1042
1144
  "items": {
1043
1145
  "type": "string",
1044
- "maxLength": 255
1146
+ "maxLength": 48,
1147
+ "minLength": 1
1045
1148
  },
1046
1149
  "maxItems": 100
1047
1150
  },
@@ -1144,7 +1247,8 @@
1144
1247
  "type": "array",
1145
1248
  "items": {
1146
1249
  "type": "string",
1147
- "maxLength": 255
1250
+ "maxLength": 48,
1251
+ "minLength": 1
1148
1252
  },
1149
1253
  "maxItems": 100
1150
1254
  },
@@ -1284,7 +1388,8 @@
1284
1388
  "type": "array",
1285
1389
  "items": {
1286
1390
  "type": "string",
1287
- "maxLength": 255
1391
+ "maxLength": 48,
1392
+ "minLength": 1
1288
1393
  },
1289
1394
  "maxItems": 100
1290
1395
  },
@@ -1407,7 +1512,8 @@
1407
1512
  "type": "array",
1408
1513
  "items": {
1409
1514
  "type": "string",
1410
- "maxLength": 255
1515
+ "maxLength": 48,
1516
+ "minLength": 1
1411
1517
  },
1412
1518
  "maxItems": 100
1413
1519
  },
@@ -1519,7 +1625,8 @@
1519
1625
  "type": "array",
1520
1626
  "items": {
1521
1627
  "type": "string",
1522
- "maxLength": 255
1628
+ "maxLength": 48,
1629
+ "minLength": 1
1523
1630
  },
1524
1631
  "maxItems": 100
1525
1632
  },
@@ -1662,7 +1769,8 @@
1662
1769
  "type": "array",
1663
1770
  "items": {
1664
1771
  "type": "string",
1665
- "maxLength": 255
1772
+ "maxLength": 48,
1773
+ "minLength": 1
1666
1774
  },
1667
1775
  "maxItems": 100
1668
1776
  },
@@ -1788,7 +1896,8 @@
1788
1896
  "type": "array",
1789
1897
  "items": {
1790
1898
  "type": "string",
1791
- "maxLength": 255
1899
+ "maxLength": 48,
1900
+ "minLength": 1
1792
1901
  },
1793
1902
  "maxItems": 100
1794
1903
  },
@@ -1903,7 +2012,8 @@
1903
2012
  "type": "array",
1904
2013
  "items": {
1905
2014
  "type": "string",
1906
- "maxLength": 255
2015
+ "maxLength": 48,
2016
+ "minLength": 1
1907
2017
  },
1908
2018
  "maxItems": 100
1909
2019
  },
@@ -1944,7 +2054,8 @@
1944
2054
  "type": "array",
1945
2055
  "items": {
1946
2056
  "type": "string",
1947
- "maxLength": 255
2057
+ "maxLength": 48,
2058
+ "minLength": 1
1948
2059
  },
1949
2060
  "maxItems": 100
1950
2061
  },
@@ -2379,6 +2490,7 @@
2379
2490
  "enum": [
2380
2491
  "cloud",
2381
2492
  "edge",
2493
+ "embedded",
2382
2494
  "experience",
2383
2495
  "customNode"
2384
2496
  ]