losant_rest 1.8.4 → 1.8.5
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 +505 -19
- data/docs/application.md +2 -0
- data/docs/applications.md +2 -0
- data/docs/dashboard.md +43 -2
- data/docs/me.md +2 -1
- data/docs/org.md +2 -1
- data/docs/orgs.md +2 -1
- data/lib/losant_rest/application.rb +4 -0
- data/lib/losant_rest/applications.rb +4 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/dashboard.rb +49 -2
- data/lib/losant_rest/me.rb +3 -1
- data/lib/losant_rest/org.rb +3 -1
- data/lib/losant_rest/orgs.rb +3 -1
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/compositeDeviceState.json +0 -3
- data/schemas/dashboard.json +3 -0
- data/schemas/dashboardPatch.json +3 -0
- data/schemas/dashboardPost.json +3 -0
- data/schemas/dashboardSendReport.json +38 -0
- data/schemas/dashboards.json +3 -0
- data/schemas/deviceState.json +0 -3
- data/schemas/deviceStateOrStates.json +0 -6
- data/schemas/deviceStates.json +0 -3
- data/schemas/githubLogin.json +1 -0
- data/schemas/userCredentials.json +1 -0
- data/schemas/userPost.json +1 -0
- data/schemas/validateContextError.json +78 -0
- data/schemas/validateContextSuccess.json +78 -0
- metadata +5 -2
data/schemas/githubLogin.json
CHANGED
data/schemas/userPost.json
CHANGED
@@ -0,0 +1,78 @@
|
|
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
|
+
"ctx": {
|
12
|
+
"type": "object",
|
13
|
+
"patternProperties": {
|
14
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
15
|
+
"anyOf": [
|
16
|
+
[
|
17
|
+
{
|
18
|
+
"type": "string",
|
19
|
+
"maxLength": 32767
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"type": "object",
|
26
|
+
"properties": {
|
27
|
+
"key": {
|
28
|
+
"type": "string",
|
29
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
30
|
+
},
|
31
|
+
"value": {
|
32
|
+
"type": "string",
|
33
|
+
"minLength": 1,
|
34
|
+
"maxLength": 255
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"additionalProperties": false
|
38
|
+
}
|
39
|
+
],
|
40
|
+
{
|
41
|
+
"type": "object",
|
42
|
+
"properties": {
|
43
|
+
"id": {
|
44
|
+
"type": "string",
|
45
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
46
|
+
},
|
47
|
+
"name": {
|
48
|
+
"type": "string",
|
49
|
+
"minLength": 1,
|
50
|
+
"maxLength": 255
|
51
|
+
},
|
52
|
+
"description": {
|
53
|
+
"type": "string",
|
54
|
+
"maxLength": 32767
|
55
|
+
},
|
56
|
+
"tags": {
|
57
|
+
"type": "object",
|
58
|
+
"patternProperties": {
|
59
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
60
|
+
"type": "array",
|
61
|
+
"minItems": 1,
|
62
|
+
"items": {
|
63
|
+
"type": "string",
|
64
|
+
"minLength": 1,
|
65
|
+
"maxLength": 255
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
]
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"additionalProperties": false
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"success": {
|
6
|
+
"type": "boolean",
|
7
|
+
"enum": [
|
8
|
+
true
|
9
|
+
]
|
10
|
+
},
|
11
|
+
"ctx": {
|
12
|
+
"type": "object",
|
13
|
+
"patternProperties": {
|
14
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
15
|
+
"anyOf": [
|
16
|
+
[
|
17
|
+
{
|
18
|
+
"type": "string",
|
19
|
+
"maxLength": 32767
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"type": "object",
|
26
|
+
"properties": {
|
27
|
+
"key": {
|
28
|
+
"type": "string",
|
29
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
30
|
+
},
|
31
|
+
"value": {
|
32
|
+
"type": "string",
|
33
|
+
"minLength": 1,
|
34
|
+
"maxLength": 255
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"additionalProperties": false
|
38
|
+
}
|
39
|
+
],
|
40
|
+
{
|
41
|
+
"type": "object",
|
42
|
+
"properties": {
|
43
|
+
"id": {
|
44
|
+
"type": "string",
|
45
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
46
|
+
},
|
47
|
+
"name": {
|
48
|
+
"type": "string",
|
49
|
+
"minLength": 1,
|
50
|
+
"maxLength": 255
|
51
|
+
},
|
52
|
+
"description": {
|
53
|
+
"type": "string",
|
54
|
+
"maxLength": 32767
|
55
|
+
},
|
56
|
+
"tags": {
|
57
|
+
"type": "object",
|
58
|
+
"patternProperties": {
|
59
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
60
|
+
"type": "array",
|
61
|
+
"minItems": 1,
|
62
|
+
"items": {
|
63
|
+
"type": "string",
|
64
|
+
"minLength": 1,
|
65
|
+
"maxLength": 255
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
]
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"additionalProperties": false
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
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.8.
|
4
|
+
version: 1.8.5
|
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-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- schemas/dashboardContextInstance.json
|
229
229
|
- schemas/dashboardPatch.json
|
230
230
|
- schemas/dashboardPost.json
|
231
|
+
- schemas/dashboardSendReport.json
|
231
232
|
- schemas/dashboards.json
|
232
233
|
- schemas/dataTable.json
|
233
234
|
- schemas/dataTableColumn.json
|
@@ -370,6 +371,8 @@ files:
|
|
370
371
|
- schemas/timeSeriesQuery.json
|
371
372
|
- schemas/userCredentials.json
|
372
373
|
- schemas/userPost.json
|
374
|
+
- schemas/validateContextError.json
|
375
|
+
- schemas/validateContextSuccess.json
|
373
376
|
- schemas/virtualButtonPress.json
|
374
377
|
- schemas/webhook.json
|
375
378
|
- schemas/webhookPatch.json
|