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
@@ -9,7 +9,7 @@
9
9
  "description": "Schema for a single Workflow Version",
10
10
  "oneOf": [
11
11
  {
12
- "description": "Schema for a single Cloud/Edge/Custom Node Workflow Version",
12
+ "description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
13
13
  "type": "object",
14
14
  "properties": {
15
15
  "id": {
@@ -97,6 +97,7 @@
97
97
  "deviceCommand",
98
98
  "deviceIdsTagsConnect",
99
99
  "deviceIdsTagsDisconnect",
100
+ "eeaInit",
100
101
  "flowError",
101
102
  "googlePubSub",
102
103
  "meridian",
@@ -160,7 +161,8 @@
160
161
  "type": "array",
161
162
  "items": {
162
163
  "type": "string",
163
- "maxLength": 255
164
+ "maxLength": 48,
165
+ "minLength": 1
164
166
  },
165
167
  "maxItems": 100
166
168
  },
@@ -264,7 +266,8 @@
264
266
  "type": "array",
265
267
  "items": {
266
268
  "type": "string",
267
- "maxLength": 255
269
+ "maxLength": 48,
270
+ "minLength": 1
268
271
  },
269
272
  "maxItems": 100
270
273
  },
@@ -408,7 +411,8 @@
408
411
  "type": "array",
409
412
  "items": {
410
413
  "type": "string",
411
- "maxLength": 255
414
+ "maxLength": 48,
415
+ "minLength": 1
412
416
  },
413
417
  "maxItems": 100
414
418
  },
@@ -504,8 +508,101 @@
504
508
  "type": "array",
505
509
  "items": {
506
510
  "type": "string",
511
+ "maxLength": 48,
512
+ "minLength": 1
513
+ },
514
+ "maxItems": 100
515
+ },
516
+ "maxItems": 100
517
+ }
518
+ },
519
+ "required": [
520
+ "type"
521
+ ],
522
+ "additionalProperties": false
523
+ },
524
+ {
525
+ "type": "object",
526
+ "properties": {
527
+ "key": {
528
+ "type": "string",
529
+ "maxLength": 1024
530
+ },
531
+ "type": {
532
+ "type": "string",
533
+ "enum": [
534
+ "direct"
535
+ ]
536
+ },
537
+ "config": {
538
+ "type": "object",
539
+ "properties": {},
540
+ "additionalProperties": false
541
+ },
542
+ "meta": {
543
+ "type": "object",
544
+ "properties": {
545
+ "category": {
546
+ "type": "string",
547
+ "enum": [
548
+ "trigger"
549
+ ]
550
+ },
551
+ "name": {
552
+ "type": "string",
553
+ "enum": [
554
+ "direct"
555
+ ]
556
+ },
557
+ "label": {
558
+ "type": "string",
559
+ "minLength": 1,
507
560
  "maxLength": 255
508
561
  },
562
+ "x": {
563
+ "type": "number"
564
+ },
565
+ "y": {
566
+ "type": "number"
567
+ },
568
+ "uiId": {
569
+ "type": "string",
570
+ "maxLength": 48
571
+ },
572
+ "description": {
573
+ "type": "string",
574
+ "maxLength": 32767
575
+ },
576
+ "icon": {
577
+ "type": "string",
578
+ "maxLength": 1024
579
+ },
580
+ "color": {
581
+ "type": "string",
582
+ "maxLength": 1024
583
+ },
584
+ "inputCount": {
585
+ "type": "number"
586
+ },
587
+ "outputCount": {
588
+ "type": "number"
589
+ },
590
+ "id": {
591
+ "type": "string",
592
+ "maxLength": 48
593
+ }
594
+ },
595
+ "additionalProperties": false
596
+ },
597
+ "outputIds": {
598
+ "type": "array",
599
+ "items": {
600
+ "type": "array",
601
+ "items": {
602
+ "type": "string",
603
+ "maxLength": 48,
604
+ "minLength": 1
605
+ },
509
606
  "maxItems": 100
510
607
  },
511
608
  "maxItems": 100
@@ -601,7 +698,8 @@
601
698
  "type": "array",
602
699
  "items": {
603
700
  "type": "string",
604
- "maxLength": 255
701
+ "maxLength": 48,
702
+ "minLength": 1
605
703
  },
606
704
  "maxItems": 100
607
705
  },
@@ -706,7 +804,8 @@
706
804
  "type": "array",
707
805
  "items": {
708
806
  "type": "string",
709
- "maxLength": 255
807
+ "maxLength": 48,
808
+ "minLength": 1
710
809
  },
711
810
  "maxItems": 100
712
811
  },
@@ -814,7 +913,8 @@
814
913
  "type": "array",
815
914
  "items": {
816
915
  "type": "string",
817
- "maxLength": 255
916
+ "maxLength": 48,
917
+ "minLength": 1
818
918
  },
819
919
  "maxItems": 100
820
920
  },
@@ -925,7 +1025,8 @@
925
1025
  "type": "array",
926
1026
  "items": {
927
1027
  "type": "string",
928
- "maxLength": 255
1028
+ "maxLength": 48,
1029
+ "minLength": 1
929
1030
  },
930
1031
  "maxItems": 100
931
1032
  },
@@ -1026,7 +1127,8 @@
1026
1127
  "type": "array",
1027
1128
  "items": {
1028
1129
  "type": "string",
1029
- "maxLength": 255
1130
+ "maxLength": 48,
1131
+ "minLength": 1
1030
1132
  },
1031
1133
  "maxItems": 100
1032
1134
  },
@@ -1129,7 +1231,8 @@
1129
1231
  "type": "array",
1130
1232
  "items": {
1131
1233
  "type": "string",
1132
- "maxLength": 255
1234
+ "maxLength": 48,
1235
+ "minLength": 1
1133
1236
  },
1134
1237
  "maxItems": 100
1135
1238
  },
@@ -1269,7 +1372,8 @@
1269
1372
  "type": "array",
1270
1373
  "items": {
1271
1374
  "type": "string",
1272
- "maxLength": 255
1375
+ "maxLength": 48,
1376
+ "minLength": 1
1273
1377
  },
1274
1378
  "maxItems": 100
1275
1379
  },
@@ -1392,7 +1496,8 @@
1392
1496
  "type": "array",
1393
1497
  "items": {
1394
1498
  "type": "string",
1395
- "maxLength": 255
1499
+ "maxLength": 48,
1500
+ "minLength": 1
1396
1501
  },
1397
1502
  "maxItems": 100
1398
1503
  },
@@ -1504,7 +1609,8 @@
1504
1609
  "type": "array",
1505
1610
  "items": {
1506
1611
  "type": "string",
1507
- "maxLength": 255
1612
+ "maxLength": 48,
1613
+ "minLength": 1
1508
1614
  },
1509
1615
  "maxItems": 100
1510
1616
  },
@@ -1647,7 +1753,8 @@
1647
1753
  "type": "array",
1648
1754
  "items": {
1649
1755
  "type": "string",
1650
- "maxLength": 255
1756
+ "maxLength": 48,
1757
+ "minLength": 1
1651
1758
  },
1652
1759
  "maxItems": 100
1653
1760
  },
@@ -1773,7 +1880,8 @@
1773
1880
  "type": "array",
1774
1881
  "items": {
1775
1882
  "type": "string",
1776
- "maxLength": 255
1883
+ "maxLength": 48,
1884
+ "minLength": 1
1777
1885
  },
1778
1886
  "maxItems": 100
1779
1887
  },
@@ -1888,7 +1996,8 @@
1888
1996
  "type": "array",
1889
1997
  "items": {
1890
1998
  "type": "string",
1891
- "maxLength": 255
1999
+ "maxLength": 48,
2000
+ "minLength": 1
1892
2001
  },
1893
2002
  "maxItems": 100
1894
2003
  },
@@ -1929,7 +2038,8 @@
1929
2038
  "type": "array",
1930
2039
  "items": {
1931
2040
  "type": "string",
1932
- "maxLength": 255
2041
+ "maxLength": 48,
2042
+ "minLength": 1
1933
2043
  },
1934
2044
  "maxItems": 100
1935
2045
  },
@@ -2420,6 +2530,7 @@
2420
2530
  "deviceCommand",
2421
2531
  "deviceIdsTagsConnect",
2422
2532
  "deviceIdsTagsDisconnect",
2533
+ "eeaInit",
2423
2534
  "flowError",
2424
2535
  "googlePubSub",
2425
2536
  "meridian",
@@ -2483,7 +2594,8 @@
2483
2594
  "type": "array",
2484
2595
  "items": {
2485
2596
  "type": "string",
2486
- "maxLength": 255
2597
+ "maxLength": 48,
2598
+ "minLength": 1
2487
2599
  },
2488
2600
  "maxItems": 100
2489
2601
  },
@@ -2587,7 +2699,8 @@
2587
2699
  "type": "array",
2588
2700
  "items": {
2589
2701
  "type": "string",
2590
- "maxLength": 255
2702
+ "maxLength": 48,
2703
+ "minLength": 1
2591
2704
  },
2592
2705
  "maxItems": 100
2593
2706
  },
@@ -2731,7 +2844,8 @@
2731
2844
  "type": "array",
2732
2845
  "items": {
2733
2846
  "type": "string",
2734
- "maxLength": 255
2847
+ "maxLength": 48,
2848
+ "minLength": 1
2735
2849
  },
2736
2850
  "maxItems": 100
2737
2851
  },
@@ -2827,8 +2941,101 @@
2827
2941
  "type": "array",
2828
2942
  "items": {
2829
2943
  "type": "string",
2944
+ "maxLength": 48,
2945
+ "minLength": 1
2946
+ },
2947
+ "maxItems": 100
2948
+ },
2949
+ "maxItems": 100
2950
+ }
2951
+ },
2952
+ "required": [
2953
+ "type"
2954
+ ],
2955
+ "additionalProperties": false
2956
+ },
2957
+ {
2958
+ "type": "object",
2959
+ "properties": {
2960
+ "key": {
2961
+ "type": "string",
2962
+ "maxLength": 1024
2963
+ },
2964
+ "type": {
2965
+ "type": "string",
2966
+ "enum": [
2967
+ "direct"
2968
+ ]
2969
+ },
2970
+ "config": {
2971
+ "type": "object",
2972
+ "properties": {},
2973
+ "additionalProperties": false
2974
+ },
2975
+ "meta": {
2976
+ "type": "object",
2977
+ "properties": {
2978
+ "category": {
2979
+ "type": "string",
2980
+ "enum": [
2981
+ "trigger"
2982
+ ]
2983
+ },
2984
+ "name": {
2985
+ "type": "string",
2986
+ "enum": [
2987
+ "direct"
2988
+ ]
2989
+ },
2990
+ "label": {
2991
+ "type": "string",
2992
+ "minLength": 1,
2830
2993
  "maxLength": 255
2831
2994
  },
2995
+ "x": {
2996
+ "type": "number"
2997
+ },
2998
+ "y": {
2999
+ "type": "number"
3000
+ },
3001
+ "uiId": {
3002
+ "type": "string",
3003
+ "maxLength": 48
3004
+ },
3005
+ "description": {
3006
+ "type": "string",
3007
+ "maxLength": 32767
3008
+ },
3009
+ "icon": {
3010
+ "type": "string",
3011
+ "maxLength": 1024
3012
+ },
3013
+ "color": {
3014
+ "type": "string",
3015
+ "maxLength": 1024
3016
+ },
3017
+ "inputCount": {
3018
+ "type": "number"
3019
+ },
3020
+ "outputCount": {
3021
+ "type": "number"
3022
+ },
3023
+ "id": {
3024
+ "type": "string",
3025
+ "maxLength": 48
3026
+ }
3027
+ },
3028
+ "additionalProperties": false
3029
+ },
3030
+ "outputIds": {
3031
+ "type": "array",
3032
+ "items": {
3033
+ "type": "array",
3034
+ "items": {
3035
+ "type": "string",
3036
+ "maxLength": 48,
3037
+ "minLength": 1
3038
+ },
2832
3039
  "maxItems": 100
2833
3040
  },
2834
3041
  "maxItems": 100
@@ -2924,7 +3131,8 @@
2924
3131
  "type": "array",
2925
3132
  "items": {
2926
3133
  "type": "string",
2927
- "maxLength": 255
3134
+ "maxLength": 48,
3135
+ "minLength": 1
2928
3136
  },
2929
3137
  "maxItems": 100
2930
3138
  },
@@ -3029,7 +3237,8 @@
3029
3237
  "type": "array",
3030
3238
  "items": {
3031
3239
  "type": "string",
3032
- "maxLength": 255
3240
+ "maxLength": 48,
3241
+ "minLength": 1
3033
3242
  },
3034
3243
  "maxItems": 100
3035
3244
  },
@@ -3137,7 +3346,8 @@
3137
3346
  "type": "array",
3138
3347
  "items": {
3139
3348
  "type": "string",
3140
- "maxLength": 255
3349
+ "maxLength": 48,
3350
+ "minLength": 1
3141
3351
  },
3142
3352
  "maxItems": 100
3143
3353
  },
@@ -3248,7 +3458,8 @@
3248
3458
  "type": "array",
3249
3459
  "items": {
3250
3460
  "type": "string",
3251
- "maxLength": 255
3461
+ "maxLength": 48,
3462
+ "minLength": 1
3252
3463
  },
3253
3464
  "maxItems": 100
3254
3465
  },
@@ -3349,7 +3560,8 @@
3349
3560
  "type": "array",
3350
3561
  "items": {
3351
3562
  "type": "string",
3352
- "maxLength": 255
3563
+ "maxLength": 48,
3564
+ "minLength": 1
3353
3565
  },
3354
3566
  "maxItems": 100
3355
3567
  },
@@ -3452,7 +3664,8 @@
3452
3664
  "type": "array",
3453
3665
  "items": {
3454
3666
  "type": "string",
3455
- "maxLength": 255
3667
+ "maxLength": 48,
3668
+ "minLength": 1
3456
3669
  },
3457
3670
  "maxItems": 100
3458
3671
  },
@@ -3592,7 +3805,8 @@
3592
3805
  "type": "array",
3593
3806
  "items": {
3594
3807
  "type": "string",
3595
- "maxLength": 255
3808
+ "maxLength": 48,
3809
+ "minLength": 1
3596
3810
  },
3597
3811
  "maxItems": 100
3598
3812
  },
@@ -3715,7 +3929,8 @@
3715
3929
  "type": "array",
3716
3930
  "items": {
3717
3931
  "type": "string",
3718
- "maxLength": 255
3932
+ "maxLength": 48,
3933
+ "minLength": 1
3719
3934
  },
3720
3935
  "maxItems": 100
3721
3936
  },
@@ -3827,7 +4042,8 @@
3827
4042
  "type": "array",
3828
4043
  "items": {
3829
4044
  "type": "string",
3830
- "maxLength": 255
4045
+ "maxLength": 48,
4046
+ "minLength": 1
3831
4047
  },
3832
4048
  "maxItems": 100
3833
4049
  },
@@ -3970,7 +4186,8 @@
3970
4186
  "type": "array",
3971
4187
  "items": {
3972
4188
  "type": "string",
3973
- "maxLength": 255
4189
+ "maxLength": 48,
4190
+ "minLength": 1
3974
4191
  },
3975
4192
  "maxItems": 100
3976
4193
  },
@@ -4096,7 +4313,8 @@
4096
4313
  "type": "array",
4097
4314
  "items": {
4098
4315
  "type": "string",
4099
- "maxLength": 255
4316
+ "maxLength": 48,
4317
+ "minLength": 1
4100
4318
  },
4101
4319
  "maxItems": 100
4102
4320
  },
@@ -4211,7 +4429,8 @@
4211
4429
  "type": "array",
4212
4430
  "items": {
4213
4431
  "type": "string",
4214
- "maxLength": 255
4432
+ "maxLength": 48,
4433
+ "minLength": 1
4215
4434
  },
4216
4435
  "maxItems": 100
4217
4436
  },
@@ -4252,7 +4471,8 @@
4252
4471
  "type": "array",
4253
4472
  "items": {
4254
4473
  "type": "string",
4255
- "maxLength": 255
4474
+ "maxLength": 48,
4475
+ "minLength": 1
4256
4476
  },
4257
4477
  "maxItems": 100
4258
4478
  },