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
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "oneOf": [
4
4
  {
5
- "description": "Schema for a single Cloud/Edge/Custom Node Workflow Version",
5
+ "description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "id": {
@@ -90,6 +90,7 @@
90
90
  "deviceCommand",
91
91
  "deviceIdsTagsConnect",
92
92
  "deviceIdsTagsDisconnect",
93
+ "eeaInit",
93
94
  "flowError",
94
95
  "googlePubSub",
95
96
  "meridian",
@@ -153,7 +154,8 @@
153
154
  "type": "array",
154
155
  "items": {
155
156
  "type": "string",
156
- "maxLength": 255
157
+ "maxLength": 48,
158
+ "minLength": 1
157
159
  },
158
160
  "maxItems": 100
159
161
  },
@@ -257,7 +259,8 @@
257
259
  "type": "array",
258
260
  "items": {
259
261
  "type": "string",
260
- "maxLength": 255
262
+ "maxLength": 48,
263
+ "minLength": 1
261
264
  },
262
265
  "maxItems": 100
263
266
  },
@@ -401,7 +404,8 @@
401
404
  "type": "array",
402
405
  "items": {
403
406
  "type": "string",
404
- "maxLength": 255
407
+ "maxLength": 48,
408
+ "minLength": 1
405
409
  },
406
410
  "maxItems": 100
407
411
  },
@@ -497,8 +501,101 @@
497
501
  "type": "array",
498
502
  "items": {
499
503
  "type": "string",
504
+ "maxLength": 48,
505
+ "minLength": 1
506
+ },
507
+ "maxItems": 100
508
+ },
509
+ "maxItems": 100
510
+ }
511
+ },
512
+ "required": [
513
+ "type"
514
+ ],
515
+ "additionalProperties": false
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "key": {
521
+ "type": "string",
522
+ "maxLength": 1024
523
+ },
524
+ "type": {
525
+ "type": "string",
526
+ "enum": [
527
+ "direct"
528
+ ]
529
+ },
530
+ "config": {
531
+ "type": "object",
532
+ "properties": {},
533
+ "additionalProperties": false
534
+ },
535
+ "meta": {
536
+ "type": "object",
537
+ "properties": {
538
+ "category": {
539
+ "type": "string",
540
+ "enum": [
541
+ "trigger"
542
+ ]
543
+ },
544
+ "name": {
545
+ "type": "string",
546
+ "enum": [
547
+ "direct"
548
+ ]
549
+ },
550
+ "label": {
551
+ "type": "string",
552
+ "minLength": 1,
500
553
  "maxLength": 255
501
554
  },
555
+ "x": {
556
+ "type": "number"
557
+ },
558
+ "y": {
559
+ "type": "number"
560
+ },
561
+ "uiId": {
562
+ "type": "string",
563
+ "maxLength": 48
564
+ },
565
+ "description": {
566
+ "type": "string",
567
+ "maxLength": 32767
568
+ },
569
+ "icon": {
570
+ "type": "string",
571
+ "maxLength": 1024
572
+ },
573
+ "color": {
574
+ "type": "string",
575
+ "maxLength": 1024
576
+ },
577
+ "inputCount": {
578
+ "type": "number"
579
+ },
580
+ "outputCount": {
581
+ "type": "number"
582
+ },
583
+ "id": {
584
+ "type": "string",
585
+ "maxLength": 48
586
+ }
587
+ },
588
+ "additionalProperties": false
589
+ },
590
+ "outputIds": {
591
+ "type": "array",
592
+ "items": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "string",
596
+ "maxLength": 48,
597
+ "minLength": 1
598
+ },
502
599
  "maxItems": 100
503
600
  },
504
601
  "maxItems": 100
@@ -594,7 +691,8 @@
594
691
  "type": "array",
595
692
  "items": {
596
693
  "type": "string",
597
- "maxLength": 255
694
+ "maxLength": 48,
695
+ "minLength": 1
598
696
  },
599
697
  "maxItems": 100
600
698
  },
@@ -699,7 +797,8 @@
699
797
  "type": "array",
700
798
  "items": {
701
799
  "type": "string",
702
- "maxLength": 255
800
+ "maxLength": 48,
801
+ "minLength": 1
703
802
  },
704
803
  "maxItems": 100
705
804
  },
@@ -807,7 +906,8 @@
807
906
  "type": "array",
808
907
  "items": {
809
908
  "type": "string",
810
- "maxLength": 255
909
+ "maxLength": 48,
910
+ "minLength": 1
811
911
  },
812
912
  "maxItems": 100
813
913
  },
@@ -918,7 +1018,8 @@
918
1018
  "type": "array",
919
1019
  "items": {
920
1020
  "type": "string",
921
- "maxLength": 255
1021
+ "maxLength": 48,
1022
+ "minLength": 1
922
1023
  },
923
1024
  "maxItems": 100
924
1025
  },
@@ -1019,7 +1120,8 @@
1019
1120
  "type": "array",
1020
1121
  "items": {
1021
1122
  "type": "string",
1022
- "maxLength": 255
1123
+ "maxLength": 48,
1124
+ "minLength": 1
1023
1125
  },
1024
1126
  "maxItems": 100
1025
1127
  },
@@ -1122,7 +1224,8 @@
1122
1224
  "type": "array",
1123
1225
  "items": {
1124
1226
  "type": "string",
1125
- "maxLength": 255
1227
+ "maxLength": 48,
1228
+ "minLength": 1
1126
1229
  },
1127
1230
  "maxItems": 100
1128
1231
  },
@@ -1262,7 +1365,8 @@
1262
1365
  "type": "array",
1263
1366
  "items": {
1264
1367
  "type": "string",
1265
- "maxLength": 255
1368
+ "maxLength": 48,
1369
+ "minLength": 1
1266
1370
  },
1267
1371
  "maxItems": 100
1268
1372
  },
@@ -1385,7 +1489,8 @@
1385
1489
  "type": "array",
1386
1490
  "items": {
1387
1491
  "type": "string",
1388
- "maxLength": 255
1492
+ "maxLength": 48,
1493
+ "minLength": 1
1389
1494
  },
1390
1495
  "maxItems": 100
1391
1496
  },
@@ -1497,7 +1602,8 @@
1497
1602
  "type": "array",
1498
1603
  "items": {
1499
1604
  "type": "string",
1500
- "maxLength": 255
1605
+ "maxLength": 48,
1606
+ "minLength": 1
1501
1607
  },
1502
1608
  "maxItems": 100
1503
1609
  },
@@ -1640,7 +1746,8 @@
1640
1746
  "type": "array",
1641
1747
  "items": {
1642
1748
  "type": "string",
1643
- "maxLength": 255
1749
+ "maxLength": 48,
1750
+ "minLength": 1
1644
1751
  },
1645
1752
  "maxItems": 100
1646
1753
  },
@@ -1766,7 +1873,8 @@
1766
1873
  "type": "array",
1767
1874
  "items": {
1768
1875
  "type": "string",
1769
- "maxLength": 255
1876
+ "maxLength": 48,
1877
+ "minLength": 1
1770
1878
  },
1771
1879
  "maxItems": 100
1772
1880
  },
@@ -1881,7 +1989,8 @@
1881
1989
  "type": "array",
1882
1990
  "items": {
1883
1991
  "type": "string",
1884
- "maxLength": 255
1992
+ "maxLength": 48,
1993
+ "minLength": 1
1885
1994
  },
1886
1995
  "maxItems": 100
1887
1996
  },
@@ -1922,7 +2031,8 @@
1922
2031
  "type": "array",
1923
2032
  "items": {
1924
2033
  "type": "string",
1925
- "maxLength": 255
2034
+ "maxLength": 48,
2035
+ "minLength": 1
1926
2036
  },
1927
2037
  "maxItems": 100
1928
2038
  },
@@ -2413,6 +2523,7 @@
2413
2523
  "deviceCommand",
2414
2524
  "deviceIdsTagsConnect",
2415
2525
  "deviceIdsTagsDisconnect",
2526
+ "eeaInit",
2416
2527
  "flowError",
2417
2528
  "googlePubSub",
2418
2529
  "meridian",
@@ -2476,7 +2587,8 @@
2476
2587
  "type": "array",
2477
2588
  "items": {
2478
2589
  "type": "string",
2479
- "maxLength": 255
2590
+ "maxLength": 48,
2591
+ "minLength": 1
2480
2592
  },
2481
2593
  "maxItems": 100
2482
2594
  },
@@ -2580,7 +2692,8 @@
2580
2692
  "type": "array",
2581
2693
  "items": {
2582
2694
  "type": "string",
2583
- "maxLength": 255
2695
+ "maxLength": 48,
2696
+ "minLength": 1
2584
2697
  },
2585
2698
  "maxItems": 100
2586
2699
  },
@@ -2724,7 +2837,8 @@
2724
2837
  "type": "array",
2725
2838
  "items": {
2726
2839
  "type": "string",
2727
- "maxLength": 255
2840
+ "maxLength": 48,
2841
+ "minLength": 1
2728
2842
  },
2729
2843
  "maxItems": 100
2730
2844
  },
@@ -2820,8 +2934,101 @@
2820
2934
  "type": "array",
2821
2935
  "items": {
2822
2936
  "type": "string",
2937
+ "maxLength": 48,
2938
+ "minLength": 1
2939
+ },
2940
+ "maxItems": 100
2941
+ },
2942
+ "maxItems": 100
2943
+ }
2944
+ },
2945
+ "required": [
2946
+ "type"
2947
+ ],
2948
+ "additionalProperties": false
2949
+ },
2950
+ {
2951
+ "type": "object",
2952
+ "properties": {
2953
+ "key": {
2954
+ "type": "string",
2955
+ "maxLength": 1024
2956
+ },
2957
+ "type": {
2958
+ "type": "string",
2959
+ "enum": [
2960
+ "direct"
2961
+ ]
2962
+ },
2963
+ "config": {
2964
+ "type": "object",
2965
+ "properties": {},
2966
+ "additionalProperties": false
2967
+ },
2968
+ "meta": {
2969
+ "type": "object",
2970
+ "properties": {
2971
+ "category": {
2972
+ "type": "string",
2973
+ "enum": [
2974
+ "trigger"
2975
+ ]
2976
+ },
2977
+ "name": {
2978
+ "type": "string",
2979
+ "enum": [
2980
+ "direct"
2981
+ ]
2982
+ },
2983
+ "label": {
2984
+ "type": "string",
2985
+ "minLength": 1,
2823
2986
  "maxLength": 255
2824
2987
  },
2988
+ "x": {
2989
+ "type": "number"
2990
+ },
2991
+ "y": {
2992
+ "type": "number"
2993
+ },
2994
+ "uiId": {
2995
+ "type": "string",
2996
+ "maxLength": 48
2997
+ },
2998
+ "description": {
2999
+ "type": "string",
3000
+ "maxLength": 32767
3001
+ },
3002
+ "icon": {
3003
+ "type": "string",
3004
+ "maxLength": 1024
3005
+ },
3006
+ "color": {
3007
+ "type": "string",
3008
+ "maxLength": 1024
3009
+ },
3010
+ "inputCount": {
3011
+ "type": "number"
3012
+ },
3013
+ "outputCount": {
3014
+ "type": "number"
3015
+ },
3016
+ "id": {
3017
+ "type": "string",
3018
+ "maxLength": 48
3019
+ }
3020
+ },
3021
+ "additionalProperties": false
3022
+ },
3023
+ "outputIds": {
3024
+ "type": "array",
3025
+ "items": {
3026
+ "type": "array",
3027
+ "items": {
3028
+ "type": "string",
3029
+ "maxLength": 48,
3030
+ "minLength": 1
3031
+ },
2825
3032
  "maxItems": 100
2826
3033
  },
2827
3034
  "maxItems": 100
@@ -2917,7 +3124,8 @@
2917
3124
  "type": "array",
2918
3125
  "items": {
2919
3126
  "type": "string",
2920
- "maxLength": 255
3127
+ "maxLength": 48,
3128
+ "minLength": 1
2921
3129
  },
2922
3130
  "maxItems": 100
2923
3131
  },
@@ -3022,7 +3230,8 @@
3022
3230
  "type": "array",
3023
3231
  "items": {
3024
3232
  "type": "string",
3025
- "maxLength": 255
3233
+ "maxLength": 48,
3234
+ "minLength": 1
3026
3235
  },
3027
3236
  "maxItems": 100
3028
3237
  },
@@ -3130,7 +3339,8 @@
3130
3339
  "type": "array",
3131
3340
  "items": {
3132
3341
  "type": "string",
3133
- "maxLength": 255
3342
+ "maxLength": 48,
3343
+ "minLength": 1
3134
3344
  },
3135
3345
  "maxItems": 100
3136
3346
  },
@@ -3241,7 +3451,8 @@
3241
3451
  "type": "array",
3242
3452
  "items": {
3243
3453
  "type": "string",
3244
- "maxLength": 255
3454
+ "maxLength": 48,
3455
+ "minLength": 1
3245
3456
  },
3246
3457
  "maxItems": 100
3247
3458
  },
@@ -3342,7 +3553,8 @@
3342
3553
  "type": "array",
3343
3554
  "items": {
3344
3555
  "type": "string",
3345
- "maxLength": 255
3556
+ "maxLength": 48,
3557
+ "minLength": 1
3346
3558
  },
3347
3559
  "maxItems": 100
3348
3560
  },
@@ -3445,7 +3657,8 @@
3445
3657
  "type": "array",
3446
3658
  "items": {
3447
3659
  "type": "string",
3448
- "maxLength": 255
3660
+ "maxLength": 48,
3661
+ "minLength": 1
3449
3662
  },
3450
3663
  "maxItems": 100
3451
3664
  },
@@ -3585,7 +3798,8 @@
3585
3798
  "type": "array",
3586
3799
  "items": {
3587
3800
  "type": "string",
3588
- "maxLength": 255
3801
+ "maxLength": 48,
3802
+ "minLength": 1
3589
3803
  },
3590
3804
  "maxItems": 100
3591
3805
  },
@@ -3708,7 +3922,8 @@
3708
3922
  "type": "array",
3709
3923
  "items": {
3710
3924
  "type": "string",
3711
- "maxLength": 255
3925
+ "maxLength": 48,
3926
+ "minLength": 1
3712
3927
  },
3713
3928
  "maxItems": 100
3714
3929
  },
@@ -3820,7 +4035,8 @@
3820
4035
  "type": "array",
3821
4036
  "items": {
3822
4037
  "type": "string",
3823
- "maxLength": 255
4038
+ "maxLength": 48,
4039
+ "minLength": 1
3824
4040
  },
3825
4041
  "maxItems": 100
3826
4042
  },
@@ -3963,7 +4179,8 @@
3963
4179
  "type": "array",
3964
4180
  "items": {
3965
4181
  "type": "string",
3966
- "maxLength": 255
4182
+ "maxLength": 48,
4183
+ "minLength": 1
3967
4184
  },
3968
4185
  "maxItems": 100
3969
4186
  },
@@ -4089,7 +4306,8 @@
4089
4306
  "type": "array",
4090
4307
  "items": {
4091
4308
  "type": "string",
4092
- "maxLength": 255
4309
+ "maxLength": 48,
4310
+ "minLength": 1
4093
4311
  },
4094
4312
  "maxItems": 100
4095
4313
  },
@@ -4204,7 +4422,8 @@
4204
4422
  "type": "array",
4205
4423
  "items": {
4206
4424
  "type": "string",
4207
- "maxLength": 255
4425
+ "maxLength": 48,
4426
+ "minLength": 1
4208
4427
  },
4209
4428
  "maxItems": 100
4210
4429
  },
@@ -4245,7 +4464,8 @@
4245
4464
  "type": "array",
4246
4465
  "items": {
4247
4466
  "type": "string",
4248
- "maxLength": 255
4467
+ "maxLength": 48,
4468
+ "minLength": 1
4249
4469
  },
4250
4470
  "maxItems": 100
4251
4471
  },