losant_rest 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +9757 -8758
- data/docs/application.md +81 -2
- data/docs/applicationTemplates.md +50 -0
- data/docs/auth.md +72 -0
- data/docs/devices.md +1 -0
- data/lib/losant_rest/application.rb +93 -2
- data/lib/losant_rest/application_templates.rb +88 -0
- data/lib/losant_rest/auth.rb +84 -0
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/devices.rb +3 -0
- data/lib/losant_rest/version.rb +2 -2
- data/lib/losant_rest.rb +1 -0
- data/schemas/advancedDeviceQuery.json +901 -0
- data/schemas/advancedEventQuery.json +177 -13
- data/schemas/advancedQuery.json +3 -0
- data/schemas/application.json +2 -2
- data/schemas/applicationCreationByTemplateResult.json +2 -2
- data/schemas/applicationPatch.json +2 -2
- data/schemas/applicationPost.json +6 -2
- data/schemas/applicationReadme.json +29 -0
- data/schemas/applicationReadmePatch.json +11 -0
- data/schemas/applicationTemplate.json +87 -0
- data/schemas/applicationTemplates.json +128 -0
- data/schemas/applications.json +2 -2
- data/schemas/dashboard.json +4 -0
- data/schemas/dashboardPatch.json +4 -0
- data/schemas/dashboardPost.json +4 -0
- data/schemas/dashboards.json +4 -0
- data/schemas/dataTableRows.json +3 -0
- data/schemas/dataTableRowsExport.json +3 -0
- data/schemas/devices.json +3 -0
- data/schemas/events.json +1 -816
- data/schemas/eventsExport.json +177 -13
- data/schemas/githubLogin.json +2 -0
- data/schemas/me.json +3 -0
- data/schemas/org.json +8 -0
- data/schemas/orgPatch.json +9 -0
- data/schemas/orgPost.json +9 -0
- data/schemas/orgs.json +8 -0
- data/schemas/samlResponse.json +21 -0
- data/schemas/ssoRequest.json +20 -0
- data/schemas/userCredentials.json +2 -0
- data/schemas/userPost.json +2 -0
- metadata +12 -4
data/schemas/eventsExport.json
CHANGED
@@ -16,13 +16,15 @@
|
|
16
16
|
"type": "array",
|
17
17
|
"items": {
|
18
18
|
"$ref": "#/definitions/advancedEventQuery"
|
19
|
-
}
|
19
|
+
},
|
20
|
+
"maxItems": 100
|
20
21
|
},
|
21
22
|
"$or": {
|
22
23
|
"type": "array",
|
23
24
|
"items": {
|
24
25
|
"$ref": "#/definitions/advancedEventQuery"
|
25
|
-
}
|
26
|
+
},
|
27
|
+
"maxItems": 100
|
26
28
|
},
|
27
29
|
"id": {
|
28
30
|
"oneOf": [
|
@@ -96,6 +98,9 @@
|
|
96
98
|
"$contains": {
|
97
99
|
"type": "string",
|
98
100
|
"minLength": 1
|
101
|
+
},
|
102
|
+
"$ci": {
|
103
|
+
"type": "boolean"
|
99
104
|
}
|
100
105
|
},
|
101
106
|
"additionalProperties": false
|
@@ -174,6 +179,9 @@
|
|
174
179
|
"$contains": {
|
175
180
|
"type": "string",
|
176
181
|
"minLength": 1
|
182
|
+
},
|
183
|
+
"$ci": {
|
184
|
+
"type": "boolean"
|
177
185
|
}
|
178
186
|
},
|
179
187
|
"additionalProperties": false
|
@@ -252,6 +260,9 @@
|
|
252
260
|
"$contains": {
|
253
261
|
"type": "string",
|
254
262
|
"minLength": 1
|
263
|
+
},
|
264
|
+
"$ci": {
|
265
|
+
"type": "boolean"
|
255
266
|
}
|
256
267
|
},
|
257
268
|
"additionalProperties": false
|
@@ -330,6 +341,9 @@
|
|
330
341
|
"$contains": {
|
331
342
|
"type": "string",
|
332
343
|
"minLength": 1
|
344
|
+
},
|
345
|
+
"$ci": {
|
346
|
+
"type": "boolean"
|
333
347
|
}
|
334
348
|
},
|
335
349
|
"additionalProperties": false
|
@@ -408,6 +422,9 @@
|
|
408
422
|
"$contains": {
|
409
423
|
"type": "string",
|
410
424
|
"minLength": 1
|
425
|
+
},
|
426
|
+
"$ci": {
|
427
|
+
"type": "boolean"
|
411
428
|
}
|
412
429
|
},
|
413
430
|
"additionalProperties": false
|
@@ -486,6 +503,9 @@
|
|
486
503
|
"$contains": {
|
487
504
|
"type": "string",
|
488
505
|
"minLength": 1
|
506
|
+
},
|
507
|
+
"$ci": {
|
508
|
+
"type": "boolean"
|
489
509
|
}
|
490
510
|
},
|
491
511
|
"additionalProperties": false
|
@@ -564,6 +584,9 @@
|
|
564
584
|
"$contains": {
|
565
585
|
"type": "string",
|
566
586
|
"minLength": 1
|
587
|
+
},
|
588
|
+
"$ci": {
|
589
|
+
"type": "boolean"
|
567
590
|
}
|
568
591
|
},
|
569
592
|
"additionalProperties": false
|
@@ -642,6 +665,9 @@
|
|
642
665
|
"$contains": {
|
643
666
|
"type": "string",
|
644
667
|
"minLength": 1
|
668
|
+
},
|
669
|
+
"$ci": {
|
670
|
+
"type": "boolean"
|
645
671
|
}
|
646
672
|
},
|
647
673
|
"additionalProperties": false
|
@@ -720,12 +746,137 @@
|
|
720
746
|
"$contains": {
|
721
747
|
"type": "string",
|
722
748
|
"minLength": 1
|
749
|
+
},
|
750
|
+
"$ci": {
|
751
|
+
"type": "boolean"
|
723
752
|
}
|
724
753
|
},
|
725
754
|
"additionalProperties": false
|
726
755
|
}
|
727
756
|
]
|
728
757
|
},
|
758
|
+
"experienceUserId": {
|
759
|
+
"oneOf": [
|
760
|
+
{
|
761
|
+
"oneOf": [
|
762
|
+
{
|
763
|
+
"type": "string",
|
764
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"type": "null"
|
768
|
+
}
|
769
|
+
]
|
770
|
+
},
|
771
|
+
{
|
772
|
+
"type": "object",
|
773
|
+
"properties": {
|
774
|
+
"$eq": {
|
775
|
+
"oneOf": [
|
776
|
+
{
|
777
|
+
"type": "string",
|
778
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
779
|
+
},
|
780
|
+
{
|
781
|
+
"type": "null"
|
782
|
+
}
|
783
|
+
]
|
784
|
+
},
|
785
|
+
"$ne": {
|
786
|
+
"oneOf": [
|
787
|
+
{
|
788
|
+
"type": "string",
|
789
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
790
|
+
},
|
791
|
+
{
|
792
|
+
"type": "null"
|
793
|
+
}
|
794
|
+
]
|
795
|
+
},
|
796
|
+
"$in": {
|
797
|
+
"type": "array",
|
798
|
+
"maxItems": 100,
|
799
|
+
"items": {
|
800
|
+
"type": "string",
|
801
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
802
|
+
}
|
803
|
+
},
|
804
|
+
"$nin": {
|
805
|
+
"type": "array",
|
806
|
+
"maxItems": 100,
|
807
|
+
"items": {
|
808
|
+
"type": "string",
|
809
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
810
|
+
}
|
811
|
+
}
|
812
|
+
},
|
813
|
+
"additionalProperties": false,
|
814
|
+
"minProperties": 1,
|
815
|
+
"maxProperties": 1
|
816
|
+
}
|
817
|
+
]
|
818
|
+
},
|
819
|
+
"experienceGroupId": {
|
820
|
+
"oneOf": [
|
821
|
+
{
|
822
|
+
"oneOf": [
|
823
|
+
{
|
824
|
+
"type": "string",
|
825
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
826
|
+
},
|
827
|
+
{
|
828
|
+
"type": "null"
|
829
|
+
}
|
830
|
+
]
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"type": "object",
|
834
|
+
"properties": {
|
835
|
+
"$eq": {
|
836
|
+
"oneOf": [
|
837
|
+
{
|
838
|
+
"type": "string",
|
839
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"type": "null"
|
843
|
+
}
|
844
|
+
]
|
845
|
+
},
|
846
|
+
"$ne": {
|
847
|
+
"oneOf": [
|
848
|
+
{
|
849
|
+
"type": "string",
|
850
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"type": "null"
|
854
|
+
}
|
855
|
+
]
|
856
|
+
},
|
857
|
+
"$in": {
|
858
|
+
"type": "array",
|
859
|
+
"maxItems": 100,
|
860
|
+
"items": {
|
861
|
+
"type": "string",
|
862
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
863
|
+
}
|
864
|
+
},
|
865
|
+
"$nin": {
|
866
|
+
"type": "array",
|
867
|
+
"maxItems": 100,
|
868
|
+
"items": {
|
869
|
+
"type": "string",
|
870
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
871
|
+
}
|
872
|
+
}
|
873
|
+
},
|
874
|
+
"additionalProperties": false,
|
875
|
+
"minProperties": 1,
|
876
|
+
"maxProperties": 1
|
877
|
+
}
|
878
|
+
]
|
879
|
+
},
|
729
880
|
"eventTags": {
|
730
881
|
"oneOf": [
|
731
882
|
{
|
@@ -734,10 +885,12 @@
|
|
734
885
|
"type": "object",
|
735
886
|
"properties": {
|
736
887
|
"$tagKey": {
|
737
|
-
"type": "string"
|
888
|
+
"type": "string",
|
889
|
+
"maxLength": 255
|
738
890
|
},
|
739
891
|
"$tagValue": {
|
740
|
-
"type": "string"
|
892
|
+
"type": "string",
|
893
|
+
"maxLength": 255
|
741
894
|
}
|
742
895
|
},
|
743
896
|
"additionalProperties": false,
|
@@ -747,7 +900,8 @@
|
|
747
900
|
"type": "object",
|
748
901
|
"patternProperties": {
|
749
902
|
"^[0-9a-zA-Z_-]{1,255}": {
|
750
|
-
"type": "string"
|
903
|
+
"type": "string",
|
904
|
+
"maxLength": 255
|
751
905
|
}
|
752
906
|
},
|
753
907
|
"additionalProperties": false
|
@@ -763,10 +917,12 @@
|
|
763
917
|
"type": "object",
|
764
918
|
"properties": {
|
765
919
|
"$tagKey": {
|
766
|
-
"type": "string"
|
920
|
+
"type": "string",
|
921
|
+
"maxLength": 255
|
767
922
|
},
|
768
923
|
"$tagValue": {
|
769
|
-
"type": "string"
|
924
|
+
"type": "string",
|
925
|
+
"maxLength": 255
|
770
926
|
}
|
771
927
|
},
|
772
928
|
"additionalProperties": false,
|
@@ -776,7 +932,8 @@
|
|
776
932
|
"type": "object",
|
777
933
|
"patternProperties": {
|
778
934
|
"^[0-9a-zA-Z_-]{1,255}": {
|
779
|
-
"type": "string"
|
935
|
+
"type": "string",
|
936
|
+
"maxLength": 255
|
780
937
|
}
|
781
938
|
},
|
782
939
|
"additionalProperties": false
|
@@ -784,7 +941,9 @@
|
|
784
941
|
]
|
785
942
|
}
|
786
943
|
},
|
787
|
-
"
|
944
|
+
"required": [
|
945
|
+
"$eq"
|
946
|
+
],
|
788
947
|
"additionalProperties": false
|
789
948
|
},
|
790
949
|
{
|
@@ -796,10 +955,12 @@
|
|
796
955
|
"type": "object",
|
797
956
|
"properties": {
|
798
957
|
"$tagKey": {
|
799
|
-
"type": "string"
|
958
|
+
"type": "string",
|
959
|
+
"maxLength": 255
|
800
960
|
},
|
801
961
|
"$tagValue": {
|
802
|
-
"type": "string"
|
962
|
+
"type": "string",
|
963
|
+
"maxLength": 255
|
803
964
|
}
|
804
965
|
},
|
805
966
|
"additionalProperties": false,
|
@@ -809,7 +970,8 @@
|
|
809
970
|
"type": "object",
|
810
971
|
"patternProperties": {
|
811
972
|
"^[0-9a-zA-Z_-]{1,255}": {
|
812
|
-
"type": "string"
|
973
|
+
"type": "string",
|
974
|
+
"maxLength": 255
|
813
975
|
}
|
814
976
|
},
|
815
977
|
"additionalProperties": false
|
@@ -817,7 +979,9 @@
|
|
817
979
|
]
|
818
980
|
}
|
819
981
|
},
|
820
|
-
"
|
982
|
+
"required": [
|
983
|
+
"$ne"
|
984
|
+
],
|
821
985
|
"additionalProperties": false
|
822
986
|
}
|
823
987
|
]
|
data/schemas/githubLogin.json
CHANGED
data/schemas/me.json
CHANGED
data/schemas/org.json
CHANGED
data/schemas/orgPatch.json
CHANGED
@@ -27,6 +27,15 @@
|
|
27
27
|
"iconColor": {
|
28
28
|
"type": "string",
|
29
29
|
"maxLength": 64
|
30
|
+
},
|
31
|
+
"whitelistedEmailDomains": {
|
32
|
+
"type": "array",
|
33
|
+
"maxItems": 25,
|
34
|
+
"items": {
|
35
|
+
"type": "string",
|
36
|
+
"maxLength": 1024,
|
37
|
+
"minLength": 3
|
38
|
+
}
|
30
39
|
}
|
31
40
|
},
|
32
41
|
"additionalProperties": false
|
data/schemas/orgPost.json
CHANGED
@@ -27,6 +27,15 @@
|
|
27
27
|
"iconColor": {
|
28
28
|
"type": "string",
|
29
29
|
"maxLength": 64
|
30
|
+
},
|
31
|
+
"whitelistedEmailDomains": {
|
32
|
+
"type": "array",
|
33
|
+
"maxItems": 25,
|
34
|
+
"items": {
|
35
|
+
"type": "string",
|
36
|
+
"maxLength": 1024,
|
37
|
+
"minLength": 3
|
38
|
+
}
|
30
39
|
}
|
31
40
|
},
|
32
41
|
"additionalProperties": false,
|
data/schemas/orgs.json
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"SAMLResponse": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 4,
|
8
|
+
"maxLength": 100000
|
9
|
+
},
|
10
|
+
"SAMLDomain": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 1024,
|
13
|
+
"minLength": 3
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"required": [
|
17
|
+
"SAMLResponse",
|
18
|
+
"SAMLDomain"
|
19
|
+
],
|
20
|
+
"additionalProperties": false
|
21
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"ssoType": {
|
6
|
+
"type": "string",
|
7
|
+
"enum": [
|
8
|
+
"SAML"
|
9
|
+
]
|
10
|
+
},
|
11
|
+
"ssoRequest": {
|
12
|
+
"type": "string",
|
13
|
+
"maxLength": 32767
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"required": [
|
17
|
+
"ssoType",
|
18
|
+
"ssoRequest"
|
19
|
+
]
|
20
|
+
}
|
data/schemas/userPost.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: losant_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- docs/applicationCertificates.md
|
92
92
|
- docs/applicationKey.md
|
93
93
|
- docs/applicationKeys.md
|
94
|
+
- docs/applicationTemplates.md
|
94
95
|
- docs/applications.md
|
95
96
|
- docs/auditLog.md
|
96
97
|
- docs/auditLogs.md
|
@@ -152,6 +153,7 @@ files:
|
|
152
153
|
- lib/losant_rest/application_certificates.rb
|
153
154
|
- lib/losant_rest/application_key.rb
|
154
155
|
- lib/losant_rest/application_keys.rb
|
156
|
+
- lib/losant_rest/application_templates.rb
|
155
157
|
- lib/losant_rest/applications.rb
|
156
158
|
- lib/losant_rest/audit_log.rb
|
157
159
|
- lib/losant_rest/audit_logs.rb
|
@@ -206,6 +208,7 @@ files:
|
|
206
208
|
- lib/losant_rest/webhook.rb
|
207
209
|
- lib/losant_rest/webhooks.rb
|
208
210
|
- losant_rest.gemspec
|
211
|
+
- schemas/advancedDeviceQuery.json
|
209
212
|
- schemas/advancedEventQuery.json
|
210
213
|
- schemas/advancedQuery.json
|
211
214
|
- schemas/apiToken.json
|
@@ -233,7 +236,11 @@ files:
|
|
233
236
|
- schemas/applicationKeys.json
|
234
237
|
- schemas/applicationPatch.json
|
235
238
|
- schemas/applicationPost.json
|
239
|
+
- schemas/applicationReadme.json
|
240
|
+
- schemas/applicationReadmePatch.json
|
236
241
|
- schemas/applicationSearchResult.json
|
242
|
+
- schemas/applicationTemplate.json
|
243
|
+
- schemas/applicationTemplates.json
|
237
244
|
- schemas/applications.json
|
238
245
|
- schemas/auditLog.json
|
239
246
|
- schemas/auditLogFilter.json
|
@@ -388,6 +395,8 @@ files:
|
|
388
395
|
- schemas/recentItem.json
|
389
396
|
- schemas/recentItemList.json
|
390
397
|
- schemas/resourceTransfer.json
|
398
|
+
- schemas/samlResponse.json
|
399
|
+
- schemas/ssoRequest.json
|
391
400
|
- schemas/success.json
|
392
401
|
- schemas/timeSeriesData.json
|
393
402
|
- schemas/timeSeriesQuery.json
|
@@ -422,8 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
422
431
|
- !ruby/object:Gem::Version
|
423
432
|
version: '0'
|
424
433
|
requirements: []
|
425
|
-
|
426
|
-
rubygems_version: 2.7.6
|
434
|
+
rubygems_version: 3.1.2
|
427
435
|
signing_key:
|
428
436
|
specification_version: 4
|
429
437
|
summary: Provides a simple ruby wrapper around the Losant REST API
|