losant_rest 1.9.0 → 1.9.1
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 +3306 -1245
- data/docs/application.md +42 -0
- data/lib/losant_rest/application.rb +49 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +4 -0
- data/schemas/applicationApiTokenPost.json +1 -0
- data/schemas/applicationCloneDryRunResult.json +15 -0
- data/schemas/applicationCloneEnqueued.json +9 -0
- data/schemas/applicationClonePost.json +46 -0
- data/schemas/applicationCloneResult.json +372 -0
- data/schemas/applicationPatch.json +4 -0
- data/schemas/applicationPost.json +4 -0
- data/schemas/applications.json +4 -0
- data/schemas/dashboard.json +9 -0
- data/schemas/dashboardPatch.json +9 -0
- data/schemas/dashboardPost.json +9 -0
- data/schemas/dashboards.json +9 -0
- data/schemas/flow.json +91 -0
- data/schemas/flowPatch.json +91 -0
- data/schemas/flowPost.json +91 -0
- data/schemas/flowVersion.json +182 -0
- data/schemas/flowVersionPost.json +91 -0
- data/schemas/flowVersions.json +182 -0
- data/schemas/flows.json +91 -0
- data/schemas/flowsImportPost.json +182 -0
- data/schemas/flowsImportResult.json +273 -0
- data/schemas/githubLogin.json +1 -0
- data/schemas/notebook.json +26 -0
- data/schemas/notebookPatch.json +26 -0
- data/schemas/notebookPost.json +26 -0
- data/schemas/notebooks.json +26 -0
- data/schemas/userCredentials.json +1 -0
- data/schemas/userPost.json +1 -0
- data/schemas/validationCloneErrors.json +33 -0
- metadata +7 -2
@@ -115,6 +115,7 @@
|
|
115
115
|
"deviceCommand",
|
116
116
|
"deviceIdsTagsConnect",
|
117
117
|
"deviceIdsTagsDisconnect",
|
118
|
+
"flowError",
|
118
119
|
"googlePubSub",
|
119
120
|
"meridian",
|
120
121
|
"mqtt",
|
@@ -940,6 +941,96 @@
|
|
940
941
|
],
|
941
942
|
"additionalProperties": false
|
942
943
|
},
|
944
|
+
{
|
945
|
+
"type": "object",
|
946
|
+
"properties": {
|
947
|
+
"key": {
|
948
|
+
"type": "string",
|
949
|
+
"maxLength": 1024
|
950
|
+
},
|
951
|
+
"type": {
|
952
|
+
"type": "string",
|
953
|
+
"enum": [
|
954
|
+
"flowError"
|
955
|
+
]
|
956
|
+
},
|
957
|
+
"config": {
|
958
|
+
"type": "object",
|
959
|
+
"additionalProperties": false
|
960
|
+
},
|
961
|
+
"meta": {
|
962
|
+
"type": "object",
|
963
|
+
"properties": {
|
964
|
+
"category": {
|
965
|
+
"type": "string",
|
966
|
+
"enum": [
|
967
|
+
"trigger"
|
968
|
+
]
|
969
|
+
},
|
970
|
+
"name": {
|
971
|
+
"type": "string",
|
972
|
+
"enum": [
|
973
|
+
"flowError"
|
974
|
+
]
|
975
|
+
},
|
976
|
+
"label": {
|
977
|
+
"type": "string",
|
978
|
+
"minLength": 1,
|
979
|
+
"maxLength": 255
|
980
|
+
},
|
981
|
+
"x": {
|
982
|
+
"type": "number"
|
983
|
+
},
|
984
|
+
"y": {
|
985
|
+
"type": "number"
|
986
|
+
},
|
987
|
+
"uiId": {
|
988
|
+
"type": "string",
|
989
|
+
"maxLength": 48
|
990
|
+
},
|
991
|
+
"description": {
|
992
|
+
"type": "string",
|
993
|
+
"maxLength": 32767
|
994
|
+
},
|
995
|
+
"icon": {
|
996
|
+
"type": "string",
|
997
|
+
"maxLength": 1024
|
998
|
+
},
|
999
|
+
"color": {
|
1000
|
+
"type": "string",
|
1001
|
+
"maxLength": 1024
|
1002
|
+
},
|
1003
|
+
"inputCount": {
|
1004
|
+
"type": "number"
|
1005
|
+
},
|
1006
|
+
"outputCount": {
|
1007
|
+
"type": "number"
|
1008
|
+
},
|
1009
|
+
"id": {
|
1010
|
+
"type": "string",
|
1011
|
+
"maxLength": 48
|
1012
|
+
}
|
1013
|
+
},
|
1014
|
+
"additionalProperties": false
|
1015
|
+
},
|
1016
|
+
"outputIds": {
|
1017
|
+
"type": "array",
|
1018
|
+
"items": {
|
1019
|
+
"type": "array",
|
1020
|
+
"items": {
|
1021
|
+
"type": "string",
|
1022
|
+
"maxLength": 255
|
1023
|
+
},
|
1024
|
+
"maxItems": 100
|
1025
|
+
},
|
1026
|
+
"maxItems": 100
|
1027
|
+
}
|
1028
|
+
},
|
1029
|
+
"required": [
|
1030
|
+
"type"
|
1031
|
+
],
|
1032
|
+
"additionalProperties": false
|
1033
|
+
},
|
943
1034
|
{
|
944
1035
|
"type": "object",
|
945
1036
|
"properties": {
|
@@ -2088,6 +2179,7 @@
|
|
2088
2179
|
"deviceCommand",
|
2089
2180
|
"deviceIdsTagsConnect",
|
2090
2181
|
"deviceIdsTagsDisconnect",
|
2182
|
+
"flowError",
|
2091
2183
|
"googlePubSub",
|
2092
2184
|
"meridian",
|
2093
2185
|
"mqtt",
|
@@ -2913,6 +3005,96 @@
|
|
2913
3005
|
],
|
2914
3006
|
"additionalProperties": false
|
2915
3007
|
},
|
3008
|
+
{
|
3009
|
+
"type": "object",
|
3010
|
+
"properties": {
|
3011
|
+
"key": {
|
3012
|
+
"type": "string",
|
3013
|
+
"maxLength": 1024
|
3014
|
+
},
|
3015
|
+
"type": {
|
3016
|
+
"type": "string",
|
3017
|
+
"enum": [
|
3018
|
+
"flowError"
|
3019
|
+
]
|
3020
|
+
},
|
3021
|
+
"config": {
|
3022
|
+
"type": "object",
|
3023
|
+
"additionalProperties": false
|
3024
|
+
},
|
3025
|
+
"meta": {
|
3026
|
+
"type": "object",
|
3027
|
+
"properties": {
|
3028
|
+
"category": {
|
3029
|
+
"type": "string",
|
3030
|
+
"enum": [
|
3031
|
+
"trigger"
|
3032
|
+
]
|
3033
|
+
},
|
3034
|
+
"name": {
|
3035
|
+
"type": "string",
|
3036
|
+
"enum": [
|
3037
|
+
"flowError"
|
3038
|
+
]
|
3039
|
+
},
|
3040
|
+
"label": {
|
3041
|
+
"type": "string",
|
3042
|
+
"minLength": 1,
|
3043
|
+
"maxLength": 255
|
3044
|
+
},
|
3045
|
+
"x": {
|
3046
|
+
"type": "number"
|
3047
|
+
},
|
3048
|
+
"y": {
|
3049
|
+
"type": "number"
|
3050
|
+
},
|
3051
|
+
"uiId": {
|
3052
|
+
"type": "string",
|
3053
|
+
"maxLength": 48
|
3054
|
+
},
|
3055
|
+
"description": {
|
3056
|
+
"type": "string",
|
3057
|
+
"maxLength": 32767
|
3058
|
+
},
|
3059
|
+
"icon": {
|
3060
|
+
"type": "string",
|
3061
|
+
"maxLength": 1024
|
3062
|
+
},
|
3063
|
+
"color": {
|
3064
|
+
"type": "string",
|
3065
|
+
"maxLength": 1024
|
3066
|
+
},
|
3067
|
+
"inputCount": {
|
3068
|
+
"type": "number"
|
3069
|
+
},
|
3070
|
+
"outputCount": {
|
3071
|
+
"type": "number"
|
3072
|
+
},
|
3073
|
+
"id": {
|
3074
|
+
"type": "string",
|
3075
|
+
"maxLength": 48
|
3076
|
+
}
|
3077
|
+
},
|
3078
|
+
"additionalProperties": false
|
3079
|
+
},
|
3080
|
+
"outputIds": {
|
3081
|
+
"type": "array",
|
3082
|
+
"items": {
|
3083
|
+
"type": "array",
|
3084
|
+
"items": {
|
3085
|
+
"type": "string",
|
3086
|
+
"maxLength": 255
|
3087
|
+
},
|
3088
|
+
"maxItems": 100
|
3089
|
+
},
|
3090
|
+
"maxItems": 100
|
3091
|
+
}
|
3092
|
+
},
|
3093
|
+
"required": [
|
3094
|
+
"type"
|
3095
|
+
],
|
3096
|
+
"additionalProperties": false
|
3097
|
+
},
|
2916
3098
|
{
|
2917
3099
|
"type": "object",
|
2918
3100
|
"properties": {
|
@@ -4061,6 +4243,7 @@
|
|
4061
4243
|
"deviceCommand",
|
4062
4244
|
"deviceIdsTagsConnect",
|
4063
4245
|
"deviceIdsTagsDisconnect",
|
4246
|
+
"flowError",
|
4064
4247
|
"googlePubSub",
|
4065
4248
|
"meridian",
|
4066
4249
|
"mqtt",
|
@@ -4886,6 +5069,96 @@
|
|
4886
5069
|
],
|
4887
5070
|
"additionalProperties": false
|
4888
5071
|
},
|
5072
|
+
{
|
5073
|
+
"type": "object",
|
5074
|
+
"properties": {
|
5075
|
+
"key": {
|
5076
|
+
"type": "string",
|
5077
|
+
"maxLength": 1024
|
5078
|
+
},
|
5079
|
+
"type": {
|
5080
|
+
"type": "string",
|
5081
|
+
"enum": [
|
5082
|
+
"flowError"
|
5083
|
+
]
|
5084
|
+
},
|
5085
|
+
"config": {
|
5086
|
+
"type": "object",
|
5087
|
+
"additionalProperties": false
|
5088
|
+
},
|
5089
|
+
"meta": {
|
5090
|
+
"type": "object",
|
5091
|
+
"properties": {
|
5092
|
+
"category": {
|
5093
|
+
"type": "string",
|
5094
|
+
"enum": [
|
5095
|
+
"trigger"
|
5096
|
+
]
|
5097
|
+
},
|
5098
|
+
"name": {
|
5099
|
+
"type": "string",
|
5100
|
+
"enum": [
|
5101
|
+
"flowError"
|
5102
|
+
]
|
5103
|
+
},
|
5104
|
+
"label": {
|
5105
|
+
"type": "string",
|
5106
|
+
"minLength": 1,
|
5107
|
+
"maxLength": 255
|
5108
|
+
},
|
5109
|
+
"x": {
|
5110
|
+
"type": "number"
|
5111
|
+
},
|
5112
|
+
"y": {
|
5113
|
+
"type": "number"
|
5114
|
+
},
|
5115
|
+
"uiId": {
|
5116
|
+
"type": "string",
|
5117
|
+
"maxLength": 48
|
5118
|
+
},
|
5119
|
+
"description": {
|
5120
|
+
"type": "string",
|
5121
|
+
"maxLength": 32767
|
5122
|
+
},
|
5123
|
+
"icon": {
|
5124
|
+
"type": "string",
|
5125
|
+
"maxLength": 1024
|
5126
|
+
},
|
5127
|
+
"color": {
|
5128
|
+
"type": "string",
|
5129
|
+
"maxLength": 1024
|
5130
|
+
},
|
5131
|
+
"inputCount": {
|
5132
|
+
"type": "number"
|
5133
|
+
},
|
5134
|
+
"outputCount": {
|
5135
|
+
"type": "number"
|
5136
|
+
},
|
5137
|
+
"id": {
|
5138
|
+
"type": "string",
|
5139
|
+
"maxLength": 48
|
5140
|
+
}
|
5141
|
+
},
|
5142
|
+
"additionalProperties": false
|
5143
|
+
},
|
5144
|
+
"outputIds": {
|
5145
|
+
"type": "array",
|
5146
|
+
"items": {
|
5147
|
+
"type": "array",
|
5148
|
+
"items": {
|
5149
|
+
"type": "string",
|
5150
|
+
"maxLength": 255
|
5151
|
+
},
|
5152
|
+
"maxItems": 100
|
5153
|
+
},
|
5154
|
+
"maxItems": 100
|
5155
|
+
}
|
5156
|
+
},
|
5157
|
+
"required": [
|
5158
|
+
"type"
|
5159
|
+
],
|
5160
|
+
"additionalProperties": false
|
5161
|
+
},
|
4889
5162
|
{
|
4890
5163
|
"type": "object",
|
4891
5164
|
"properties": {
|
data/schemas/githubLogin.json
CHANGED
data/schemas/notebook.json
CHANGED
@@ -279,6 +279,32 @@
|
|
279
279
|
],
|
280
280
|
"additionalProperties": false
|
281
281
|
},
|
282
|
+
{
|
283
|
+
"type": "object",
|
284
|
+
"properties": {
|
285
|
+
"outputType": {
|
286
|
+
"type": "string",
|
287
|
+
"enum": [
|
288
|
+
"directory"
|
289
|
+
]
|
290
|
+
},
|
291
|
+
"directoryName": {
|
292
|
+
"type": "string",
|
293
|
+
"pattern": "^[0-9a-zA-Z_.-]{1,255}$"
|
294
|
+
},
|
295
|
+
"destinationDirectoryTemplate": {
|
296
|
+
"type": "string",
|
297
|
+
"minLength": 1,
|
298
|
+
"maxLength": 1024
|
299
|
+
}
|
300
|
+
},
|
301
|
+
"required": [
|
302
|
+
"directoryName",
|
303
|
+
"outputType",
|
304
|
+
"destinationDirectoryTemplate"
|
305
|
+
],
|
306
|
+
"additionalProperties": false
|
307
|
+
},
|
282
308
|
{
|
283
309
|
"type": "object",
|
284
310
|
"properties": {
|
data/schemas/notebookPatch.json
CHANGED
@@ -251,6 +251,32 @@
|
|
251
251
|
],
|
252
252
|
"additionalProperties": false
|
253
253
|
},
|
254
|
+
{
|
255
|
+
"type": "object",
|
256
|
+
"properties": {
|
257
|
+
"outputType": {
|
258
|
+
"type": "string",
|
259
|
+
"enum": [
|
260
|
+
"directory"
|
261
|
+
]
|
262
|
+
},
|
263
|
+
"directoryName": {
|
264
|
+
"type": "string",
|
265
|
+
"pattern": "^[0-9a-zA-Z_.-]{1,255}$"
|
266
|
+
},
|
267
|
+
"destinationDirectoryTemplate": {
|
268
|
+
"type": "string",
|
269
|
+
"minLength": 1,
|
270
|
+
"maxLength": 1024
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"required": [
|
274
|
+
"directoryName",
|
275
|
+
"outputType",
|
276
|
+
"destinationDirectoryTemplate"
|
277
|
+
],
|
278
|
+
"additionalProperties": false
|
279
|
+
},
|
254
280
|
{
|
255
281
|
"type": "object",
|
256
282
|
"properties": {
|
data/schemas/notebookPost.json
CHANGED
@@ -251,6 +251,32 @@
|
|
251
251
|
],
|
252
252
|
"additionalProperties": false
|
253
253
|
},
|
254
|
+
{
|
255
|
+
"type": "object",
|
256
|
+
"properties": {
|
257
|
+
"outputType": {
|
258
|
+
"type": "string",
|
259
|
+
"enum": [
|
260
|
+
"directory"
|
261
|
+
]
|
262
|
+
},
|
263
|
+
"directoryName": {
|
264
|
+
"type": "string",
|
265
|
+
"pattern": "^[0-9a-zA-Z_.-]{1,255}$"
|
266
|
+
},
|
267
|
+
"destinationDirectoryTemplate": {
|
268
|
+
"type": "string",
|
269
|
+
"minLength": 1,
|
270
|
+
"maxLength": 1024
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"required": [
|
274
|
+
"directoryName",
|
275
|
+
"outputType",
|
276
|
+
"destinationDirectoryTemplate"
|
277
|
+
],
|
278
|
+
"additionalProperties": false
|
279
|
+
},
|
254
280
|
{
|
255
281
|
"type": "object",
|
256
282
|
"properties": {
|
data/schemas/notebooks.json
CHANGED
@@ -286,6 +286,32 @@
|
|
286
286
|
],
|
287
287
|
"additionalProperties": false
|
288
288
|
},
|
289
|
+
{
|
290
|
+
"type": "object",
|
291
|
+
"properties": {
|
292
|
+
"outputType": {
|
293
|
+
"type": "string",
|
294
|
+
"enum": [
|
295
|
+
"directory"
|
296
|
+
]
|
297
|
+
},
|
298
|
+
"directoryName": {
|
299
|
+
"type": "string",
|
300
|
+
"pattern": "^[0-9a-zA-Z_.-]{1,255}$"
|
301
|
+
},
|
302
|
+
"destinationDirectoryTemplate": {
|
303
|
+
"type": "string",
|
304
|
+
"minLength": 1,
|
305
|
+
"maxLength": 1024
|
306
|
+
}
|
307
|
+
},
|
308
|
+
"required": [
|
309
|
+
"directoryName",
|
310
|
+
"outputType",
|
311
|
+
"destinationDirectoryTemplate"
|
312
|
+
],
|
313
|
+
"additionalProperties": false
|
314
|
+
},
|
289
315
|
{
|
290
316
|
"type": "object",
|
291
317
|
"properties": {
|
data/schemas/userPost.json
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"type": {
|
6
|
+
"type": "string"
|
7
|
+
},
|
8
|
+
"message": {
|
9
|
+
"type": "string"
|
10
|
+
},
|
11
|
+
"validationErrors": {
|
12
|
+
"type": "array",
|
13
|
+
"items": {
|
14
|
+
"type": "object",
|
15
|
+
"properties": {
|
16
|
+
"type": {
|
17
|
+
"type": "string"
|
18
|
+
},
|
19
|
+
"name": {
|
20
|
+
"type": "string"
|
21
|
+
},
|
22
|
+
"id": {
|
23
|
+
"type": "string",
|
24
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
25
|
+
},
|
26
|
+
"message": {
|
27
|
+
"type": "string"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -221,6 +221,10 @@ files:
|
|
221
221
|
- schemas/applicationCertificatePatch.json
|
222
222
|
- schemas/applicationCertificatePost.json
|
223
223
|
- schemas/applicationCertificates.json
|
224
|
+
- schemas/applicationCloneDryRunResult.json
|
225
|
+
- schemas/applicationCloneEnqueued.json
|
226
|
+
- schemas/applicationClonePost.json
|
227
|
+
- schemas/applicationCloneResult.json
|
224
228
|
- schemas/applicationKey.json
|
225
229
|
- schemas/applicationKeyPatch.json
|
226
230
|
- schemas/applicationKeyPost.json
|
@@ -388,6 +392,7 @@ files:
|
|
388
392
|
- schemas/userPost.json
|
389
393
|
- schemas/validateContextError.json
|
390
394
|
- schemas/validateContextSuccess.json
|
395
|
+
- schemas/validationCloneErrors.json
|
391
396
|
- schemas/virtualButtonPress.json
|
392
397
|
- schemas/webhook.json
|
393
398
|
- schemas/webhookPatch.json
|