losant_rest 1.20.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +139 -13
  3. data/docs/_schemas.md +7585 -2999
  4. data/docs/instanceNotificationRule.md +219 -0
  5. data/docs/instanceNotificationRules.md +91 -0
  6. data/lib/platform_rest/client.rb +10 -2
  7. data/lib/platform_rest/instance_notification_rule.rb +275 -0
  8. data/lib/platform_rest/instance_notification_rules.rb +136 -0
  9. data/lib/platform_rest/version.rb +1 -1
  10. data/lib/platform_rest.rb +2 -0
  11. data/schemas/apiTokenPost.json +9 -0
  12. data/schemas/applicationDashboardPost.json +94 -8
  13. data/schemas/applicationSearchResult.json +46 -6
  14. data/schemas/credentialLinkedResources.json +426 -0
  15. data/schemas/dashboard.json +94 -8
  16. data/schemas/dashboardPatch.json +94 -8
  17. data/schemas/dashboardPost.json +94 -8
  18. data/schemas/dashboards.json +94 -8
  19. data/schemas/experienceEndpoint.json +6 -1
  20. data/schemas/experienceEndpointPatch.json +6 -1
  21. data/schemas/experienceEndpointPost.json +6 -1
  22. data/schemas/experienceEndpoints.json +6 -1
  23. data/schemas/experienceLinkedResources.json +432 -1
  24. data/schemas/flow.json +142 -0
  25. data/schemas/flowPatch.json +142 -0
  26. data/schemas/flowPost.json +142 -0
  27. data/schemas/flowVersion.json +284 -0
  28. data/schemas/flowVersionPost.json +142 -0
  29. data/schemas/flowVersions.json +284 -0
  30. data/schemas/flows.json +142 -0
  31. data/schemas/flowsImportPost.json +284 -0
  32. data/schemas/flowsImportResult.json +426 -0
  33. data/schemas/githubLogin.json +9 -0
  34. data/schemas/instance.json +9 -0
  35. data/schemas/instanceAuditLog.json +2 -1
  36. data/schemas/instanceAuditLogFilter.json +2 -1
  37. data/schemas/instanceOrg.json +4 -0
  38. data/schemas/instanceOrgs.json +4 -0
  39. data/schemas/instances.json +9 -0
  40. data/schemas/notificationRule.json +161 -0
  41. data/schemas/notificationRuleDeliveryLogs.json +123 -0
  42. data/schemas/notificationRuleEvaluationOptions.json +10 -0
  43. data/schemas/notificationRulePatch.json +128 -0
  44. data/schemas/notificationRulePost.json +140 -0
  45. data/schemas/notificationRules.json +212 -0
  46. data/schemas/samlResponse.json +9 -0
  47. data/schemas/userCredentials.json +9 -0
  48. data/schemas/userPost.json +9 -0
  49. metadata +12 -2
@@ -311,6 +311,10 @@
311
311
  "additionalProperties": false
312
312
  }
313
313
  },
314
+ "query": {
315
+ "type": "string",
316
+ "maxLength": 32767
317
+ },
314
318
  "label": {
315
319
  "type": "string",
316
320
  "maxLength": 255
@@ -571,6 +575,10 @@
571
575
  "additionalProperties": false
572
576
  }
573
577
  },
578
+ "query": {
579
+ "type": "string",
580
+ "maxLength": 32767
581
+ },
574
582
  "duration": {
575
583
  "oneOf": [
576
584
  {
@@ -754,6 +762,10 @@
754
762
  "additionalProperties": false
755
763
  }
756
764
  },
765
+ "query": {
766
+ "type": "string",
767
+ "maxLength": 32767
768
+ },
757
769
  "duration": {
758
770
  "oneOf": [
759
771
  {
@@ -1496,6 +1508,32 @@
1496
1508
  "maxLength": 255
1497
1509
  }
1498
1510
  },
1511
+ "deviceTags": {
1512
+ "type": "array",
1513
+ "maxItems": 100,
1514
+ "items": {
1515
+ "type": "object",
1516
+ "properties": {
1517
+ "key": {
1518
+ "type": "string",
1519
+ "maxLength": 255
1520
+ },
1521
+ "value": {
1522
+ "type": "string",
1523
+ "maxLength": 255
1524
+ },
1525
+ "fromCtx": {
1526
+ "type": "string",
1527
+ "maxLength": 255
1528
+ }
1529
+ },
1530
+ "additionalProperties": false
1531
+ }
1532
+ },
1533
+ "query": {
1534
+ "type": "string",
1535
+ "maxLength": 32767
1536
+ },
1499
1537
  "includeDeviceInfo": {
1500
1538
  "type": "boolean"
1501
1539
  }
@@ -1597,6 +1635,10 @@
1597
1635
  "additionalProperties": false
1598
1636
  }
1599
1637
  },
1638
+ "query": {
1639
+ "type": "string",
1640
+ "maxLength": 32767
1641
+ },
1600
1642
  "duration": {
1601
1643
  "oneOf": [
1602
1644
  {
@@ -2067,6 +2109,10 @@
2067
2109
  "additionalProperties": false
2068
2110
  }
2069
2111
  },
2112
+ "query": {
2113
+ "type": "string",
2114
+ "maxLength": 32767
2115
+ },
2070
2116
  "label": {
2071
2117
  "type": "string",
2072
2118
  "maxLength": 255
@@ -2458,6 +2504,10 @@
2458
2504
  },
2459
2505
  "additionalProperties": false
2460
2506
  }
2507
+ },
2508
+ "query": {
2509
+ "type": "string",
2510
+ "maxLength": 32767
2461
2511
  }
2462
2512
  },
2463
2513
  "additionalProperties": false
@@ -2645,6 +2695,10 @@
2645
2695
  "additionalProperties": false
2646
2696
  }
2647
2697
  },
2698
+ "query": {
2699
+ "type": "string",
2700
+ "maxLength": 32767
2701
+ },
2648
2702
  "duration": {
2649
2703
  "oneOf": [
2650
2704
  {
@@ -2679,10 +2733,6 @@
2679
2733
  "normal",
2680
2734
  "satellite"
2681
2735
  ]
2682
- },
2683
- "query": {
2684
- "type": "string",
2685
- "maxLength": 32767
2686
2736
  }
2687
2737
  },
2688
2738
  "additionalProperties": false
@@ -3047,6 +3097,10 @@
3047
3097
  "additionalProperties": false
3048
3098
  }
3049
3099
  },
3100
+ "query": {
3101
+ "type": "string",
3102
+ "maxLength": 32767
3103
+ },
3050
3104
  "duration": {
3051
3105
  "oneOf": [
3052
3106
  {
@@ -3675,6 +3729,10 @@
3675
3729
  "additionalProperties": false
3676
3730
  }
3677
3731
  },
3732
+ "query": {
3733
+ "type": "string",
3734
+ "maxLength": 32767
3735
+ },
3678
3736
  "label": {
3679
3737
  "type": "string",
3680
3738
  "maxLength": 255
@@ -4027,6 +4085,10 @@
4027
4085
  },
4028
4086
  "additionalProperties": false
4029
4087
  }
4088
+ },
4089
+ "query": {
4090
+ "type": "string",
4091
+ "maxLength": 32767
4030
4092
  }
4031
4093
  },
4032
4094
  "additionalProperties": false
@@ -4261,6 +4323,10 @@
4261
4323
  },
4262
4324
  "additionalProperties": false
4263
4325
  }
4326
+ },
4327
+ "query": {
4328
+ "type": "string",
4329
+ "maxLength": 32767
4264
4330
  }
4265
4331
  },
4266
4332
  "additionalProperties": false
@@ -4453,6 +4519,10 @@
4453
4519
  },
4454
4520
  "additionalProperties": false
4455
4521
  }
4522
+ },
4523
+ "query": {
4524
+ "type": "string",
4525
+ "maxLength": 32767
4456
4526
  }
4457
4527
  },
4458
4528
  "additionalProperties": false
@@ -4643,6 +4713,10 @@
4643
4713
  },
4644
4714
  "additionalProperties": false
4645
4715
  }
4716
+ },
4717
+ "query": {
4718
+ "type": "string",
4719
+ "maxLength": 32767
4646
4720
  }
4647
4721
  },
4648
4722
  "additionalProperties": false
@@ -4813,6 +4887,10 @@
4813
4887
  "additionalProperties": false
4814
4888
  }
4815
4889
  },
4890
+ "query": {
4891
+ "type": "string",
4892
+ "maxLength": 32767
4893
+ },
4816
4894
  "commandName": {
4817
4895
  "type": "string",
4818
4896
  "maxLength": 255
@@ -4955,6 +5033,10 @@
4955
5033
  "additionalProperties": false
4956
5034
  }
4957
5035
  },
5036
+ "query": {
5037
+ "type": "string",
5038
+ "maxLength": 32767
5039
+ },
4958
5040
  "duration": {
4959
5041
  "oneOf": [
4960
5042
  {
@@ -5015,10 +5097,6 @@
5015
5097
  "type": "string",
5016
5098
  "maxLength": 32767
5017
5099
  },
5018
- "query": {
5019
- "type": "string",
5020
- "maxLength": 32767
5021
- },
5022
5100
  "resizedPins": {
5023
5101
  "type": "boolean"
5024
5102
  },
@@ -5331,6 +5409,10 @@
5331
5409
  "additionalProperties": false
5332
5410
  }
5333
5411
  },
5412
+ "query": {
5413
+ "type": "string",
5414
+ "maxLength": 32767
5415
+ },
5334
5416
  "label": {
5335
5417
  "type": "string",
5336
5418
  "maxLength": 255
@@ -5491,6 +5573,10 @@
5491
5573
  "additionalProperties": false
5492
5574
  }
5493
5575
  },
5576
+ "query": {
5577
+ "type": "string",
5578
+ "maxLength": 32767
5579
+ },
5494
5580
  "duration": {
5495
5581
  "oneOf": [
5496
5582
  {
@@ -516,6 +516,10 @@
516
516
  "additionalProperties": false
517
517
  }
518
518
  },
519
+ "query": {
520
+ "type": "string",
521
+ "maxLength": 32767
522
+ },
519
523
  "label": {
520
524
  "type": "string",
521
525
  "maxLength": 255
@@ -776,6 +780,10 @@
776
780
  "additionalProperties": false
777
781
  }
778
782
  },
783
+ "query": {
784
+ "type": "string",
785
+ "maxLength": 32767
786
+ },
779
787
  "duration": {
780
788
  "oneOf": [
781
789
  {
@@ -959,6 +967,10 @@
959
967
  "additionalProperties": false
960
968
  }
961
969
  },
970
+ "query": {
971
+ "type": "string",
972
+ "maxLength": 32767
973
+ },
962
974
  "duration": {
963
975
  "oneOf": [
964
976
  {
@@ -1701,6 +1713,32 @@
1701
1713
  "maxLength": 255
1702
1714
  }
1703
1715
  },
1716
+ "deviceTags": {
1717
+ "type": "array",
1718
+ "maxItems": 100,
1719
+ "items": {
1720
+ "type": "object",
1721
+ "properties": {
1722
+ "key": {
1723
+ "type": "string",
1724
+ "maxLength": 255
1725
+ },
1726
+ "value": {
1727
+ "type": "string",
1728
+ "maxLength": 255
1729
+ },
1730
+ "fromCtx": {
1731
+ "type": "string",
1732
+ "maxLength": 255
1733
+ }
1734
+ },
1735
+ "additionalProperties": false
1736
+ }
1737
+ },
1738
+ "query": {
1739
+ "type": "string",
1740
+ "maxLength": 32767
1741
+ },
1704
1742
  "includeDeviceInfo": {
1705
1743
  "type": "boolean"
1706
1744
  }
@@ -1802,6 +1840,10 @@
1802
1840
  "additionalProperties": false
1803
1841
  }
1804
1842
  },
1843
+ "query": {
1844
+ "type": "string",
1845
+ "maxLength": 32767
1846
+ },
1805
1847
  "duration": {
1806
1848
  "oneOf": [
1807
1849
  {
@@ -2272,6 +2314,10 @@
2272
2314
  "additionalProperties": false
2273
2315
  }
2274
2316
  },
2317
+ "query": {
2318
+ "type": "string",
2319
+ "maxLength": 32767
2320
+ },
2275
2321
  "label": {
2276
2322
  "type": "string",
2277
2323
  "maxLength": 255
@@ -2663,6 +2709,10 @@
2663
2709
  },
2664
2710
  "additionalProperties": false
2665
2711
  }
2712
+ },
2713
+ "query": {
2714
+ "type": "string",
2715
+ "maxLength": 32767
2666
2716
  }
2667
2717
  },
2668
2718
  "additionalProperties": false
@@ -2850,6 +2900,10 @@
2850
2900
  "additionalProperties": false
2851
2901
  }
2852
2902
  },
2903
+ "query": {
2904
+ "type": "string",
2905
+ "maxLength": 32767
2906
+ },
2853
2907
  "duration": {
2854
2908
  "oneOf": [
2855
2909
  {
@@ -2884,10 +2938,6 @@
2884
2938
  "normal",
2885
2939
  "satellite"
2886
2940
  ]
2887
- },
2888
- "query": {
2889
- "type": "string",
2890
- "maxLength": 32767
2891
2941
  }
2892
2942
  },
2893
2943
  "additionalProperties": false
@@ -3252,6 +3302,10 @@
3252
3302
  "additionalProperties": false
3253
3303
  }
3254
3304
  },
3305
+ "query": {
3306
+ "type": "string",
3307
+ "maxLength": 32767
3308
+ },
3255
3309
  "duration": {
3256
3310
  "oneOf": [
3257
3311
  {
@@ -3880,6 +3934,10 @@
3880
3934
  "additionalProperties": false
3881
3935
  }
3882
3936
  },
3937
+ "query": {
3938
+ "type": "string",
3939
+ "maxLength": 32767
3940
+ },
3883
3941
  "label": {
3884
3942
  "type": "string",
3885
3943
  "maxLength": 255
@@ -4232,6 +4290,10 @@
4232
4290
  },
4233
4291
  "additionalProperties": false
4234
4292
  }
4293
+ },
4294
+ "query": {
4295
+ "type": "string",
4296
+ "maxLength": 32767
4235
4297
  }
4236
4298
  },
4237
4299
  "additionalProperties": false
@@ -4466,6 +4528,10 @@
4466
4528
  },
4467
4529
  "additionalProperties": false
4468
4530
  }
4531
+ },
4532
+ "query": {
4533
+ "type": "string",
4534
+ "maxLength": 32767
4469
4535
  }
4470
4536
  },
4471
4537
  "additionalProperties": false
@@ -4658,6 +4724,10 @@
4658
4724
  },
4659
4725
  "additionalProperties": false
4660
4726
  }
4727
+ },
4728
+ "query": {
4729
+ "type": "string",
4730
+ "maxLength": 32767
4661
4731
  }
4662
4732
  },
4663
4733
  "additionalProperties": false
@@ -4848,6 +4918,10 @@
4848
4918
  },
4849
4919
  "additionalProperties": false
4850
4920
  }
4921
+ },
4922
+ "query": {
4923
+ "type": "string",
4924
+ "maxLength": 32767
4851
4925
  }
4852
4926
  },
4853
4927
  "additionalProperties": false
@@ -5018,6 +5092,10 @@
5018
5092
  "additionalProperties": false
5019
5093
  }
5020
5094
  },
5095
+ "query": {
5096
+ "type": "string",
5097
+ "maxLength": 32767
5098
+ },
5021
5099
  "commandName": {
5022
5100
  "type": "string",
5023
5101
  "maxLength": 255
@@ -5160,6 +5238,10 @@
5160
5238
  "additionalProperties": false
5161
5239
  }
5162
5240
  },
5241
+ "query": {
5242
+ "type": "string",
5243
+ "maxLength": 32767
5244
+ },
5163
5245
  "duration": {
5164
5246
  "oneOf": [
5165
5247
  {
@@ -5220,10 +5302,6 @@
5220
5302
  "type": "string",
5221
5303
  "maxLength": 32767
5222
5304
  },
5223
- "query": {
5224
- "type": "string",
5225
- "maxLength": 32767
5226
- },
5227
5305
  "resizedPins": {
5228
5306
  "type": "boolean"
5229
5307
  },
@@ -5536,6 +5614,10 @@
5536
5614
  "additionalProperties": false
5537
5615
  }
5538
5616
  },
5617
+ "query": {
5618
+ "type": "string",
5619
+ "maxLength": 32767
5620
+ },
5539
5621
  "label": {
5540
5622
  "type": "string",
5541
5623
  "maxLength": 255
@@ -5696,6 +5778,10 @@
5696
5778
  "additionalProperties": false
5697
5779
  }
5698
5780
  },
5781
+ "query": {
5782
+ "type": "string",
5783
+ "maxLength": 32767
5784
+ },
5699
5785
  "duration": {
5700
5786
  "oneOf": [
5701
5787
  {
@@ -74,9 +74,14 @@
74
74
  "enum": [
75
75
  "public",
76
76
  "authenticated",
77
- "group"
77
+ "group",
78
+ "device"
78
79
  ]
79
80
  },
81
+ "deviceIdTemplate": {
82
+ "type": "string",
83
+ "maxLength": 255
84
+ },
80
85
  "endpointTags": {
81
86
  "type": "object",
82
87
  "patternProperties": {
@@ -30,9 +30,14 @@
30
30
  "enum": [
31
31
  "public",
32
32
  "authenticated",
33
- "group"
33
+ "group",
34
+ "device"
34
35
  ]
35
36
  },
37
+ "deviceIdTemplate": {
38
+ "type": "string",
39
+ "maxLength": 255
40
+ },
36
41
  "endpointTags": {
37
42
  "type": "object",
38
43
  "patternProperties": {
@@ -30,9 +30,14 @@
30
30
  "enum": [
31
31
  "public",
32
32
  "authenticated",
33
- "group"
33
+ "group",
34
+ "device"
34
35
  ]
35
36
  },
37
+ "deviceIdTemplate": {
38
+ "type": "string",
39
+ "maxLength": 255
40
+ },
36
41
  "endpointTags": {
37
42
  "type": "object",
38
43
  "patternProperties": {
@@ -81,9 +81,14 @@
81
81
  "enum": [
82
82
  "public",
83
83
  "authenticated",
84
- "group"
84
+ "group",
85
+ "device"
85
86
  ]
86
87
  },
88
+ "deviceIdTemplate": {
89
+ "type": "string",
90
+ "maxLength": 255
91
+ },
87
92
  "endpointTags": {
88
93
  "type": "object",
89
94
  "patternProperties": {