losant_rest 1.17.2 → 1.17.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module LosantRest
27
27
  #
28
28
  # User API for accessing Losant data
29
29
  #
30
- # Built For Version 1.24.1
30
+ # Built For Version 1.24.3
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -382,7 +382,7 @@ module LosantRest
382
382
 
383
383
  headers["Accept"] = "application/json"
384
384
  headers["Content-Type"] = "application/json"
385
- headers["Accept-Version"] = "^1.24.1"
385
+ headers["Accept-Version"] = "^1.24.3"
386
386
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
387
387
  path = self.url + options.fetch(:path, "")
388
388
 
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.17.2"
24
+ VERSION = "1.17.3"
25
25
  end
@@ -794,6 +794,64 @@
794
794
  }
795
795
  },
796
796
  "additionalProperties": false
797
+ },
798
+ {
799
+ "type": "object",
800
+ "properties": {
801
+ "queryType": {
802
+ "type": "string",
803
+ "enum": [
804
+ "device-info"
805
+ ]
806
+ },
807
+ "id": {
808
+ "type": "string",
809
+ "maxLength": 48
810
+ },
811
+ "attributes": {
812
+ "oneOf": [
813
+ {
814
+ "type": "null"
815
+ },
816
+ {
817
+ "type": "array",
818
+ "maxItems": 100,
819
+ "items": {
820
+ "type": "string",
821
+ "maxLength": 255
822
+ }
823
+ }
824
+ ]
825
+ },
826
+ "excludeConnectionInfo": {
827
+ "type": "boolean"
828
+ },
829
+ "sortField": {
830
+ "type": "string",
831
+ "maxLength": 255
832
+ },
833
+ "sortDirection": {
834
+ "type": "string",
835
+ "maxLength": 255
836
+ },
837
+ "page": {
838
+ "type": "string",
839
+ "maxLength": 255
840
+ },
841
+ "perPage": {
842
+ "type": "string",
843
+ "maxLength": 255
844
+ },
845
+ "query": {
846
+ "type": "string",
847
+ "maxLength": 32767
848
+ },
849
+ "compositeStateType": {
850
+ "type": "string",
851
+ "maxLength": 255
852
+ }
853
+ },
854
+ "additionalProperties": false
797
855
  }
798
856
  ]
799
857
  }
@@ -2084,6 +2142,9 @@
2084
2142
  "realTime": {
2085
2143
  "type": "boolean"
2086
2144
  },
2145
+ "disallowUserSelectedDuration": {
2146
+ "type": "boolean"
2147
+ },
2087
2148
  "duration": {
2088
2149
  "oneOf": [
2089
2150
  {
@@ -976,6 +976,64 @@
976
976
  }
977
977
  },
978
978
  "additionalProperties": false
979
+ },
980
+ {
981
+ "type": "object",
982
+ "properties": {
983
+ "queryType": {
984
+ "type": "string",
985
+ "enum": [
986
+ "device-info"
987
+ ]
988
+ },
989
+ "id": {
990
+ "type": "string",
991
+ "maxLength": 48
992
+ },
993
+ "attributes": {
994
+ "oneOf": [
995
+ {
996
+ "type": "null"
997
+ },
998
+ {
999
+ "type": "array",
1000
+ "maxItems": 100,
1001
+ "items": {
1002
+ "type": "string",
1003
+ "maxLength": 255
1004
+ }
1005
+ }
1006
+ ]
1007
+ },
1008
+ "excludeConnectionInfo": {
1009
+ "type": "boolean"
1010
+ },
1011
+ "sortField": {
1012
+ "type": "string",
1013
+ "maxLength": 255
1014
+ },
1015
+ "sortDirection": {
1016
+ "type": "string",
1017
+ "maxLength": 255
1018
+ },
1019
+ "page": {
1020
+ "type": "string",
1021
+ "maxLength": 255
1022
+ },
1023
+ "perPage": {
1024
+ "type": "string",
1025
+ "maxLength": 255
1026
+ },
1027
+ "query": {
1028
+ "type": "string",
1029
+ "maxLength": 32767
1030
+ },
1031
+ "compositeStateType": {
1032
+ "type": "string",
1033
+ "maxLength": 255
1034
+ }
1035
+ },
1036
+ "additionalProperties": false
979
1037
  }
980
1038
  ]
981
1039
  }
@@ -2266,6 +2324,9 @@
2266
2324
  "realTime": {
2267
2325
  "type": "boolean"
2268
2326
  },
2327
+ "disallowUserSelectedDuration": {
2328
+ "type": "boolean"
2329
+ },
2269
2330
  "duration": {
2270
2331
  "oneOf": [
2271
2332
  {
@@ -794,6 +794,64 @@
794
794
  }
795
795
  },
796
796
  "additionalProperties": false
797
+ },
798
+ {
799
+ "type": "object",
800
+ "properties": {
801
+ "queryType": {
802
+ "type": "string",
803
+ "enum": [
804
+ "device-info"
805
+ ]
806
+ },
807
+ "id": {
808
+ "type": "string",
809
+ "maxLength": 48
810
+ },
811
+ "attributes": {
812
+ "oneOf": [
813
+ {
814
+ "type": "null"
815
+ },
816
+ {
817
+ "type": "array",
818
+ "maxItems": 100,
819
+ "items": {
820
+ "type": "string",
821
+ "maxLength": 255
822
+ }
823
+ }
824
+ ]
825
+ },
826
+ "excludeConnectionInfo": {
827
+ "type": "boolean"
828
+ },
829
+ "sortField": {
830
+ "type": "string",
831
+ "maxLength": 255
832
+ },
833
+ "sortDirection": {
834
+ "type": "string",
835
+ "maxLength": 255
836
+ },
837
+ "page": {
838
+ "type": "string",
839
+ "maxLength": 255
840
+ },
841
+ "perPage": {
842
+ "type": "string",
843
+ "maxLength": 255
844
+ },
845
+ "query": {
846
+ "type": "string",
847
+ "maxLength": 32767
848
+ },
849
+ "compositeStateType": {
850
+ "type": "string",
851
+ "maxLength": 255
852
+ }
853
+ },
854
+ "additionalProperties": false
797
855
  }
798
856
  ]
799
857
  }
@@ -2084,6 +2142,9 @@
2084
2142
  "realTime": {
2085
2143
  "type": "boolean"
2086
2144
  },
2145
+ "disallowUserSelectedDuration": {
2146
+ "type": "boolean"
2147
+ },
2087
2148
  "duration": {
2088
2149
  "oneOf": [
2089
2150
  {
@@ -802,6 +802,64 @@
802
802
  }
803
803
  },
804
804
  "additionalProperties": false
805
+ },
806
+ {
807
+ "type": "object",
808
+ "properties": {
809
+ "queryType": {
810
+ "type": "string",
811
+ "enum": [
812
+ "device-info"
813
+ ]
814
+ },
815
+ "id": {
816
+ "type": "string",
817
+ "maxLength": 48
818
+ },
819
+ "attributes": {
820
+ "oneOf": [
821
+ {
822
+ "type": "null"
823
+ },
824
+ {
825
+ "type": "array",
826
+ "maxItems": 100,
827
+ "items": {
828
+ "type": "string",
829
+ "maxLength": 255
830
+ }
831
+ }
832
+ ]
833
+ },
834
+ "excludeConnectionInfo": {
835
+ "type": "boolean"
836
+ },
837
+ "sortField": {
838
+ "type": "string",
839
+ "maxLength": 255
840
+ },
841
+ "sortDirection": {
842
+ "type": "string",
843
+ "maxLength": 255
844
+ },
845
+ "page": {
846
+ "type": "string",
847
+ "maxLength": 255
848
+ },
849
+ "perPage": {
850
+ "type": "string",
851
+ "maxLength": 255
852
+ },
853
+ "query": {
854
+ "type": "string",
855
+ "maxLength": 32767
856
+ },
857
+ "compositeStateType": {
858
+ "type": "string",
859
+ "maxLength": 255
860
+ }
861
+ },
862
+ "additionalProperties": false
805
863
  }
806
864
  ]
807
865
  }
@@ -2092,6 +2150,9 @@
2092
2150
  "realTime": {
2093
2151
  "type": "boolean"
2094
2152
  },
2153
+ "disallowUserSelectedDuration": {
2154
+ "type": "boolean"
2155
+ },
2095
2156
  "duration": {
2096
2157
  "oneOf": [
2097
2158
  {
@@ -983,6 +983,64 @@
983
983
  }
984
984
  },
985
985
  "additionalProperties": false
986
+ },
987
+ {
988
+ "type": "object",
989
+ "properties": {
990
+ "queryType": {
991
+ "type": "string",
992
+ "enum": [
993
+ "device-info"
994
+ ]
995
+ },
996
+ "id": {
997
+ "type": "string",
998
+ "maxLength": 48
999
+ },
1000
+ "attributes": {
1001
+ "oneOf": [
1002
+ {
1003
+ "type": "null"
1004
+ },
1005
+ {
1006
+ "type": "array",
1007
+ "maxItems": 100,
1008
+ "items": {
1009
+ "type": "string",
1010
+ "maxLength": 255
1011
+ }
1012
+ }
1013
+ ]
1014
+ },
1015
+ "excludeConnectionInfo": {
1016
+ "type": "boolean"
1017
+ },
1018
+ "sortField": {
1019
+ "type": "string",
1020
+ "maxLength": 255
1021
+ },
1022
+ "sortDirection": {
1023
+ "type": "string",
1024
+ "maxLength": 255
1025
+ },
1026
+ "page": {
1027
+ "type": "string",
1028
+ "maxLength": 255
1029
+ },
1030
+ "perPage": {
1031
+ "type": "string",
1032
+ "maxLength": 255
1033
+ },
1034
+ "query": {
1035
+ "type": "string",
1036
+ "maxLength": 32767
1037
+ },
1038
+ "compositeStateType": {
1039
+ "type": "string",
1040
+ "maxLength": 255
1041
+ }
1042
+ },
1043
+ "additionalProperties": false
986
1044
  }
987
1045
  ]
988
1046
  }
@@ -2273,6 +2331,9 @@
2273
2331
  "realTime": {
2274
2332
  "type": "boolean"
2275
2333
  },
2334
+ "disallowUserSelectedDuration": {
2335
+ "type": "boolean"
2336
+ },
2276
2337
  "duration": {
2277
2338
  "oneOf": [
2278
2339
  {
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "array",
4
+ "maxItems": 50,
5
+ "items": {
6
+ "type": "string",
7
+ "maxLength": 48,
8
+ "minLength": 1
9
+ }
10
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "array",
4
+ "maxItems": 6,
5
+ "items": {
6
+ "type": "string",
7
+ "enum": [
8
+ "all",
9
+ "none",
10
+ "verbose",
11
+ "info",
12
+ "warn",
13
+ "error"
14
+ ]
15
+ }
16
+ }
@@ -403,6 +403,30 @@
403
403
  "type": "string",
404
404
  "format": "date-time"
405
405
  },
406
+ "createdById": {
407
+ "type": "string",
408
+ "pattern": "^[A-Fa-f\\d]{24}$"
409
+ },
410
+ "createdByType": {
411
+ "type": "string",
412
+ "enum": [
413
+ "flow",
414
+ "user",
415
+ "apiToken"
416
+ ]
417
+ },
418
+ "lastUpdatedById": {
419
+ "type": "string",
420
+ "pattern": "^[A-Fa-f\\d]{24}$"
421
+ },
422
+ "lastUpdatedByType": {
423
+ "type": "string",
424
+ "enum": [
425
+ "flow",
426
+ "user",
427
+ "apiToken"
428
+ ]
429
+ },
406
430
  "name": {
407
431
  "type": "string",
408
432
  "minLength": 1,
@@ -431,7 +455,8 @@
431
455
  "data",
432
456
  "experience",
433
457
  "logic",
434
- "output"
458
+ "output",
459
+ "debug"
435
460
  ]
436
461
  },
437
462
  "enabled": {
@@ -3089,6 +3114,30 @@
3089
3114
  "type": "string",
3090
3115
  "format": "date-time"
3091
3116
  },
3117
+ "createdById": {
3118
+ "type": "string",
3119
+ "pattern": "^[A-Fa-f\\d]{24}$"
3120
+ },
3121
+ "createdByType": {
3122
+ "type": "string",
3123
+ "enum": [
3124
+ "flow",
3125
+ "user",
3126
+ "apiToken"
3127
+ ]
3128
+ },
3129
+ "lastUpdatedById": {
3130
+ "type": "string",
3131
+ "pattern": "^[A-Fa-f\\d]{24}$"
3132
+ },
3133
+ "lastUpdatedByType": {
3134
+ "type": "string",
3135
+ "enum": [
3136
+ "flow",
3137
+ "user",
3138
+ "apiToken"
3139
+ ]
3140
+ },
3092
3141
  "version": {
3093
3142
  "type": "string",
3094
3143
  "minLength": 1,
@@ -34,6 +34,18 @@
34
34
  "type": "string",
35
35
  "format": "date-time"
36
36
  },
37
+ "lastUpdatedById": {
38
+ "type": "string",
39
+ "pattern": "^[A-Fa-f\\d]{24}$"
40
+ },
41
+ "lastUpdatedByType": {
42
+ "type": "string",
43
+ "enum": [
44
+ "flow",
45
+ "user",
46
+ "apiToken"
47
+ ]
48
+ },
37
49
  "endpointDefaultCors": {
38
50
  "type": "boolean"
39
51
  },
@@ -41,6 +41,18 @@
41
41
  "type": "string",
42
42
  "format": "date-time"
43
43
  },
44
+ "lastUpdatedById": {
45
+ "type": "string",
46
+ "pattern": "^[A-Fa-f\\d]{24}$"
47
+ },
48
+ "lastUpdatedByType": {
49
+ "type": "string",
50
+ "enum": [
51
+ "flow",
52
+ "user",
53
+ "apiToken"
54
+ ]
55
+ },
44
56
  "endpointDefaultCors": {
45
57
  "type": "boolean"
46
58
  },
data/schemas/flow.json CHANGED
@@ -22,6 +22,30 @@
22
22
  "type": "string",
23
23
  "format": "date-time"
24
24
  },
25
+ "createdById": {
26
+ "type": "string",
27
+ "pattern": "^[A-Fa-f\\d]{24}$"
28
+ },
29
+ "createdByType": {
30
+ "type": "string",
31
+ "enum": [
32
+ "flow",
33
+ "user",
34
+ "apiToken"
35
+ ]
36
+ },
37
+ "lastUpdatedById": {
38
+ "type": "string",
39
+ "pattern": "^[A-Fa-f\\d]{24}$"
40
+ },
41
+ "lastUpdatedByType": {
42
+ "type": "string",
43
+ "enum": [
44
+ "flow",
45
+ "user",
46
+ "apiToken"
47
+ ]
48
+ },
25
49
  "name": {
26
50
  "type": "string",
27
51
  "minLength": 1,
@@ -50,7 +74,8 @@
50
74
  "data",
51
75
  "experience",
52
76
  "logic",
53
- "output"
77
+ "output",
78
+ "debug"
54
79
  ]
55
80
  },
56
81
  "enabled": {
@@ -38,6 +38,7 @@
38
38
  "experience",
39
39
  "logic",
40
40
  "output",
41
+ "debug",
41
42
  ""
42
43
  ]
43
44
  },
@@ -38,6 +38,7 @@
38
38
  "experience",
39
39
  "logic",
40
40
  "output",
41
+ "debug",
41
42
  ""
42
43
  ]
43
44
  },
@@ -29,6 +29,30 @@
29
29
  "type": "string",
30
30
  "format": "date-time"
31
31
  },
32
+ "createdById": {
33
+ "type": "string",
34
+ "pattern": "^[A-Fa-f\\d]{24}$"
35
+ },
36
+ "createdByType": {
37
+ "type": "string",
38
+ "enum": [
39
+ "flow",
40
+ "user",
41
+ "apiToken"
42
+ ]
43
+ },
44
+ "lastUpdatedById": {
45
+ "type": "string",
46
+ "pattern": "^[A-Fa-f\\d]{24}$"
47
+ },
48
+ "lastUpdatedByType": {
49
+ "type": "string",
50
+ "enum": [
51
+ "flow",
52
+ "user",
53
+ "apiToken"
54
+ ]
55
+ },
32
56
  "version": {
33
57
  "type": "string",
34
58
  "minLength": 1,
@@ -36,6 +36,30 @@
36
36
  "type": "string",
37
37
  "format": "date-time"
38
38
  },
39
+ "createdById": {
40
+ "type": "string",
41
+ "pattern": "^[A-Fa-f\\d]{24}$"
42
+ },
43
+ "createdByType": {
44
+ "type": "string",
45
+ "enum": [
46
+ "flow",
47
+ "user",
48
+ "apiToken"
49
+ ]
50
+ },
51
+ "lastUpdatedById": {
52
+ "type": "string",
53
+ "pattern": "^[A-Fa-f\\d]{24}$"
54
+ },
55
+ "lastUpdatedByType": {
56
+ "type": "string",
57
+ "enum": [
58
+ "flow",
59
+ "user",
60
+ "apiToken"
61
+ ]
62
+ },
39
63
  "version": {
40
64
  "type": "string",
41
65
  "minLength": 1,