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
@@ -82,6 +82,7 @@
82
82
  "deviceCommand",
83
83
  "deviceIdsTagsConnect",
84
84
  "deviceIdsTagsDisconnect",
85
+ "eeaInit",
85
86
  "flowError",
86
87
  "googlePubSub",
87
88
  "meridian",
@@ -145,7 +146,8 @@
145
146
  "type": "array",
146
147
  "items": {
147
148
  "type": "string",
148
- "maxLength": 255
149
+ "maxLength": 48,
150
+ "minLength": 1
149
151
  },
150
152
  "maxItems": 100
151
153
  },
@@ -249,7 +251,8 @@
249
251
  "type": "array",
250
252
  "items": {
251
253
  "type": "string",
252
- "maxLength": 255
254
+ "maxLength": 48,
255
+ "minLength": 1
253
256
  },
254
257
  "maxItems": 100
255
258
  },
@@ -393,7 +396,8 @@
393
396
  "type": "array",
394
397
  "items": {
395
398
  "type": "string",
396
- "maxLength": 255
399
+ "maxLength": 48,
400
+ "minLength": 1
397
401
  },
398
402
  "maxItems": 100
399
403
  },
@@ -489,8 +493,101 @@
489
493
  "type": "array",
490
494
  "items": {
491
495
  "type": "string",
496
+ "maxLength": 48,
497
+ "minLength": 1
498
+ },
499
+ "maxItems": 100
500
+ },
501
+ "maxItems": 100
502
+ }
503
+ },
504
+ "required": [
505
+ "type"
506
+ ],
507
+ "additionalProperties": false
508
+ },
509
+ {
510
+ "type": "object",
511
+ "properties": {
512
+ "key": {
513
+ "type": "string",
514
+ "maxLength": 1024
515
+ },
516
+ "type": {
517
+ "type": "string",
518
+ "enum": [
519
+ "direct"
520
+ ]
521
+ },
522
+ "config": {
523
+ "type": "object",
524
+ "properties": {},
525
+ "additionalProperties": false
526
+ },
527
+ "meta": {
528
+ "type": "object",
529
+ "properties": {
530
+ "category": {
531
+ "type": "string",
532
+ "enum": [
533
+ "trigger"
534
+ ]
535
+ },
536
+ "name": {
537
+ "type": "string",
538
+ "enum": [
539
+ "direct"
540
+ ]
541
+ },
542
+ "label": {
543
+ "type": "string",
544
+ "minLength": 1,
492
545
  "maxLength": 255
493
546
  },
547
+ "x": {
548
+ "type": "number"
549
+ },
550
+ "y": {
551
+ "type": "number"
552
+ },
553
+ "uiId": {
554
+ "type": "string",
555
+ "maxLength": 48
556
+ },
557
+ "description": {
558
+ "type": "string",
559
+ "maxLength": 32767
560
+ },
561
+ "icon": {
562
+ "type": "string",
563
+ "maxLength": 1024
564
+ },
565
+ "color": {
566
+ "type": "string",
567
+ "maxLength": 1024
568
+ },
569
+ "inputCount": {
570
+ "type": "number"
571
+ },
572
+ "outputCount": {
573
+ "type": "number"
574
+ },
575
+ "id": {
576
+ "type": "string",
577
+ "maxLength": 48
578
+ }
579
+ },
580
+ "additionalProperties": false
581
+ },
582
+ "outputIds": {
583
+ "type": "array",
584
+ "items": {
585
+ "type": "array",
586
+ "items": {
587
+ "type": "string",
588
+ "maxLength": 48,
589
+ "minLength": 1
590
+ },
494
591
  "maxItems": 100
495
592
  },
496
593
  "maxItems": 100
@@ -586,7 +683,8 @@
586
683
  "type": "array",
587
684
  "items": {
588
685
  "type": "string",
589
- "maxLength": 255
686
+ "maxLength": 48,
687
+ "minLength": 1
590
688
  },
591
689
  "maxItems": 100
592
690
  },
@@ -691,7 +789,8 @@
691
789
  "type": "array",
692
790
  "items": {
693
791
  "type": "string",
694
- "maxLength": 255
792
+ "maxLength": 48,
793
+ "minLength": 1
695
794
  },
696
795
  "maxItems": 100
697
796
  },
@@ -799,7 +898,8 @@
799
898
  "type": "array",
800
899
  "items": {
801
900
  "type": "string",
802
- "maxLength": 255
901
+ "maxLength": 48,
902
+ "minLength": 1
803
903
  },
804
904
  "maxItems": 100
805
905
  },
@@ -910,7 +1010,8 @@
910
1010
  "type": "array",
911
1011
  "items": {
912
1012
  "type": "string",
913
- "maxLength": 255
1013
+ "maxLength": 48,
1014
+ "minLength": 1
914
1015
  },
915
1016
  "maxItems": 100
916
1017
  },
@@ -1011,7 +1112,8 @@
1011
1112
  "type": "array",
1012
1113
  "items": {
1013
1114
  "type": "string",
1014
- "maxLength": 255
1115
+ "maxLength": 48,
1116
+ "minLength": 1
1015
1117
  },
1016
1118
  "maxItems": 100
1017
1119
  },
@@ -1114,7 +1216,8 @@
1114
1216
  "type": "array",
1115
1217
  "items": {
1116
1218
  "type": "string",
1117
- "maxLength": 255
1219
+ "maxLength": 48,
1220
+ "minLength": 1
1118
1221
  },
1119
1222
  "maxItems": 100
1120
1223
  },
@@ -1254,7 +1357,8 @@
1254
1357
  "type": "array",
1255
1358
  "items": {
1256
1359
  "type": "string",
1257
- "maxLength": 255
1360
+ "maxLength": 48,
1361
+ "minLength": 1
1258
1362
  },
1259
1363
  "maxItems": 100
1260
1364
  },
@@ -1377,7 +1481,8 @@
1377
1481
  "type": "array",
1378
1482
  "items": {
1379
1483
  "type": "string",
1380
- "maxLength": 255
1484
+ "maxLength": 48,
1485
+ "minLength": 1
1381
1486
  },
1382
1487
  "maxItems": 100
1383
1488
  },
@@ -1489,7 +1594,8 @@
1489
1594
  "type": "array",
1490
1595
  "items": {
1491
1596
  "type": "string",
1492
- "maxLength": 255
1597
+ "maxLength": 48,
1598
+ "minLength": 1
1493
1599
  },
1494
1600
  "maxItems": 100
1495
1601
  },
@@ -1632,7 +1738,8 @@
1632
1738
  "type": "array",
1633
1739
  "items": {
1634
1740
  "type": "string",
1635
- "maxLength": 255
1741
+ "maxLength": 48,
1742
+ "minLength": 1
1636
1743
  },
1637
1744
  "maxItems": 100
1638
1745
  },
@@ -1758,7 +1865,8 @@
1758
1865
  "type": "array",
1759
1866
  "items": {
1760
1867
  "type": "string",
1761
- "maxLength": 255
1868
+ "maxLength": 48,
1869
+ "minLength": 1
1762
1870
  },
1763
1871
  "maxItems": 100
1764
1872
  },
@@ -1873,7 +1981,8 @@
1873
1981
  "type": "array",
1874
1982
  "items": {
1875
1983
  "type": "string",
1876
- "maxLength": 255
1984
+ "maxLength": 48,
1985
+ "minLength": 1
1877
1986
  },
1878
1987
  "maxItems": 100
1879
1988
  },
@@ -1914,7 +2023,8 @@
1914
2023
  "type": "array",
1915
2024
  "items": {
1916
2025
  "type": "string",
1917
- "maxLength": 255
2026
+ "maxLength": 48,
2027
+ "minLength": 1
1918
2028
  },
1919
2029
  "maxItems": 100
1920
2030
  },
@@ -1955,6 +2065,7 @@
1955
2065
  "enum": [
1956
2066
  "cloud",
1957
2067
  "edge",
2068
+ "embedded",
1958
2069
  "experience",
1959
2070
  "customNode"
1960
2071
  ]
@@ -2386,6 +2497,7 @@
2386
2497
  "deviceCommand",
2387
2498
  "deviceIdsTagsConnect",
2388
2499
  "deviceIdsTagsDisconnect",
2500
+ "eeaInit",
2389
2501
  "flowError",
2390
2502
  "googlePubSub",
2391
2503
  "meridian",
@@ -2449,7 +2561,8 @@
2449
2561
  "type": "array",
2450
2562
  "items": {
2451
2563
  "type": "string",
2452
- "maxLength": 255
2564
+ "maxLength": 48,
2565
+ "minLength": 1
2453
2566
  },
2454
2567
  "maxItems": 100
2455
2568
  },
@@ -2553,7 +2666,8 @@
2553
2666
  "type": "array",
2554
2667
  "items": {
2555
2668
  "type": "string",
2556
- "maxLength": 255
2669
+ "maxLength": 48,
2670
+ "minLength": 1
2557
2671
  },
2558
2672
  "maxItems": 100
2559
2673
  },
@@ -2697,7 +2811,8 @@
2697
2811
  "type": "array",
2698
2812
  "items": {
2699
2813
  "type": "string",
2700
- "maxLength": 255
2814
+ "maxLength": 48,
2815
+ "minLength": 1
2701
2816
  },
2702
2817
  "maxItems": 100
2703
2818
  },
@@ -2793,8 +2908,101 @@
2793
2908
  "type": "array",
2794
2909
  "items": {
2795
2910
  "type": "string",
2911
+ "maxLength": 48,
2912
+ "minLength": 1
2913
+ },
2914
+ "maxItems": 100
2915
+ },
2916
+ "maxItems": 100
2917
+ }
2918
+ },
2919
+ "required": [
2920
+ "type"
2921
+ ],
2922
+ "additionalProperties": false
2923
+ },
2924
+ {
2925
+ "type": "object",
2926
+ "properties": {
2927
+ "key": {
2928
+ "type": "string",
2929
+ "maxLength": 1024
2930
+ },
2931
+ "type": {
2932
+ "type": "string",
2933
+ "enum": [
2934
+ "direct"
2935
+ ]
2936
+ },
2937
+ "config": {
2938
+ "type": "object",
2939
+ "properties": {},
2940
+ "additionalProperties": false
2941
+ },
2942
+ "meta": {
2943
+ "type": "object",
2944
+ "properties": {
2945
+ "category": {
2946
+ "type": "string",
2947
+ "enum": [
2948
+ "trigger"
2949
+ ]
2950
+ },
2951
+ "name": {
2952
+ "type": "string",
2953
+ "enum": [
2954
+ "direct"
2955
+ ]
2956
+ },
2957
+ "label": {
2958
+ "type": "string",
2959
+ "minLength": 1,
2796
2960
  "maxLength": 255
2797
2961
  },
2962
+ "x": {
2963
+ "type": "number"
2964
+ },
2965
+ "y": {
2966
+ "type": "number"
2967
+ },
2968
+ "uiId": {
2969
+ "type": "string",
2970
+ "maxLength": 48
2971
+ },
2972
+ "description": {
2973
+ "type": "string",
2974
+ "maxLength": 32767
2975
+ },
2976
+ "icon": {
2977
+ "type": "string",
2978
+ "maxLength": 1024
2979
+ },
2980
+ "color": {
2981
+ "type": "string",
2982
+ "maxLength": 1024
2983
+ },
2984
+ "inputCount": {
2985
+ "type": "number"
2986
+ },
2987
+ "outputCount": {
2988
+ "type": "number"
2989
+ },
2990
+ "id": {
2991
+ "type": "string",
2992
+ "maxLength": 48
2993
+ }
2994
+ },
2995
+ "additionalProperties": false
2996
+ },
2997
+ "outputIds": {
2998
+ "type": "array",
2999
+ "items": {
3000
+ "type": "array",
3001
+ "items": {
3002
+ "type": "string",
3003
+ "maxLength": 48,
3004
+ "minLength": 1
3005
+ },
2798
3006
  "maxItems": 100
2799
3007
  },
2800
3008
  "maxItems": 100
@@ -2890,7 +3098,8 @@
2890
3098
  "type": "array",
2891
3099
  "items": {
2892
3100
  "type": "string",
2893
- "maxLength": 255
3101
+ "maxLength": 48,
3102
+ "minLength": 1
2894
3103
  },
2895
3104
  "maxItems": 100
2896
3105
  },
@@ -2995,7 +3204,8 @@
2995
3204
  "type": "array",
2996
3205
  "items": {
2997
3206
  "type": "string",
2998
- "maxLength": 255
3207
+ "maxLength": 48,
3208
+ "minLength": 1
2999
3209
  },
3000
3210
  "maxItems": 100
3001
3211
  },
@@ -3103,7 +3313,8 @@
3103
3313
  "type": "array",
3104
3314
  "items": {
3105
3315
  "type": "string",
3106
- "maxLength": 255
3316
+ "maxLength": 48,
3317
+ "minLength": 1
3107
3318
  },
3108
3319
  "maxItems": 100
3109
3320
  },
@@ -3214,7 +3425,8 @@
3214
3425
  "type": "array",
3215
3426
  "items": {
3216
3427
  "type": "string",
3217
- "maxLength": 255
3428
+ "maxLength": 48,
3429
+ "minLength": 1
3218
3430
  },
3219
3431
  "maxItems": 100
3220
3432
  },
@@ -3315,7 +3527,8 @@
3315
3527
  "type": "array",
3316
3528
  "items": {
3317
3529
  "type": "string",
3318
- "maxLength": 255
3530
+ "maxLength": 48,
3531
+ "minLength": 1
3319
3532
  },
3320
3533
  "maxItems": 100
3321
3534
  },
@@ -3418,7 +3631,8 @@
3418
3631
  "type": "array",
3419
3632
  "items": {
3420
3633
  "type": "string",
3421
- "maxLength": 255
3634
+ "maxLength": 48,
3635
+ "minLength": 1
3422
3636
  },
3423
3637
  "maxItems": 100
3424
3638
  },
@@ -3558,7 +3772,8 @@
3558
3772
  "type": "array",
3559
3773
  "items": {
3560
3774
  "type": "string",
3561
- "maxLength": 255
3775
+ "maxLength": 48,
3776
+ "minLength": 1
3562
3777
  },
3563
3778
  "maxItems": 100
3564
3779
  },
@@ -3681,7 +3896,8 @@
3681
3896
  "type": "array",
3682
3897
  "items": {
3683
3898
  "type": "string",
3684
- "maxLength": 255
3899
+ "maxLength": 48,
3900
+ "minLength": 1
3685
3901
  },
3686
3902
  "maxItems": 100
3687
3903
  },
@@ -3793,7 +4009,8 @@
3793
4009
  "type": "array",
3794
4010
  "items": {
3795
4011
  "type": "string",
3796
- "maxLength": 255
4012
+ "maxLength": 48,
4013
+ "minLength": 1
3797
4014
  },
3798
4015
  "maxItems": 100
3799
4016
  },
@@ -3936,7 +4153,8 @@
3936
4153
  "type": "array",
3937
4154
  "items": {
3938
4155
  "type": "string",
3939
- "maxLength": 255
4156
+ "maxLength": 48,
4157
+ "minLength": 1
3940
4158
  },
3941
4159
  "maxItems": 100
3942
4160
  },
@@ -4062,7 +4280,8 @@
4062
4280
  "type": "array",
4063
4281
  "items": {
4064
4282
  "type": "string",
4065
- "maxLength": 255
4283
+ "maxLength": 48,
4284
+ "minLength": 1
4066
4285
  },
4067
4286
  "maxItems": 100
4068
4287
  },
@@ -4177,7 +4396,8 @@
4177
4396
  "type": "array",
4178
4397
  "items": {
4179
4398
  "type": "string",
4180
- "maxLength": 255
4399
+ "maxLength": 48,
4400
+ "minLength": 1
4181
4401
  },
4182
4402
  "maxItems": 100
4183
4403
  },
@@ -4218,7 +4438,8 @@
4218
4438
  "type": "array",
4219
4439
  "items": {
4220
4440
  "type": "string",
4221
- "maxLength": 255
4441
+ "maxLength": 48,
4442
+ "minLength": 1
4222
4443
  },
4223
4444
  "maxItems": 100
4224
4445
  },