losant_rest 1.9.2 → 1.10.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 +38445 -24043
- data/docs/application.md +124 -2
- data/docs/applicationTemplates.md +50 -0
- data/docs/auth.md +72 -0
- data/docs/device.md +1 -0
- data/docs/devices.md +92 -3
- data/docs/experienceEndpoints.md +1 -0
- data/docs/file.md +4 -4
- data/docs/flow.md +94 -1
- data/docs/flowVersion.md +96 -1
- data/lib/losant_rest.rb +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/device.rb +2 -0
- data/lib/losant_rest/devices.rb +105 -2
- data/lib/losant_rest/experience_endpoints.rb +2 -0
- data/lib/losant_rest/file.rb +3 -3
- data/lib/losant_rest/flow.rb +115 -1
- data/lib/losant_rest/flow_version.rb +115 -1
- data/lib/losant_rest/version.rb +2 -2
- data/schemas/advancedDeviceQuery.json +1018 -0
- data/schemas/advancedEventQuery.json +382 -13
- data/schemas/advancedQuery.json +37 -3
- data/schemas/application.json +7 -2
- data/schemas/applicationApiTokenPost.json +8 -1
- data/schemas/applicationCreationByTemplateResult.json +7 -2
- data/schemas/applicationPatch.json +7 -2
- data/schemas/applicationPost.json +11 -2
- data/schemas/applicationReadme.json +29 -0
- data/schemas/applicationReadmePatch.json +11 -0
- data/schemas/applicationTemplate.json +99 -0
- data/schemas/applicationTemplates.json +140 -0
- data/schemas/applications.json +7 -2
- data/schemas/dashboard.json +1168 -144
- data/schemas/dashboardPatch.json +1168 -144
- data/schemas/dashboardPost.json +1168 -144
- data/schemas/dashboards.json +1168 -144
- data/schemas/dataExport.json +11 -0
- data/schemas/dataTableRows.json +3 -0
- data/schemas/dataTableRowsExport.json +37 -3
- data/schemas/device.json +16 -3
- data/schemas/devicePatch.json +16 -3
- data/schemas/devicePost.json +16 -3
- data/schemas/deviceRecipe.json +16 -3
- data/schemas/deviceRecipePatch.json +16 -3
- data/schemas/deviceRecipePost.json +16 -3
- data/schemas/deviceRecipes.json +16 -3
- data/schemas/devices.json +19 -3
- data/schemas/devicesDataRemoved.json +12 -0
- data/schemas/devicesDeletePost.json +1034 -0
- data/schemas/devicesDeleted.json +12 -0
- data/schemas/devicesExportPost.json +1035 -0
- data/schemas/devicesPatch.json +1773 -7
- data/schemas/devicesRemoveDataPost.json +1056 -0
- data/schemas/devicesUpdated.json +18 -0
- data/schemas/eventPost.json +22 -0
- data/schemas/events.json +1 -816
- data/schemas/eventsExport.json +382 -13
- data/schemas/experienceDomain.json +1 -1
- data/schemas/experienceDomainPatch.json +1 -1
- data/schemas/experienceDomainPost.json +1 -1
- data/schemas/experienceDomains.json +1 -1
- data/schemas/experienceGroup.json +7 -0
- data/schemas/experienceGroupPatch.json +7 -0
- data/schemas/experienceGroupPost.json +7 -0
- data/schemas/experienceGroups.json +7 -0
- data/schemas/experienceLinkedResources.json +309 -3
- data/schemas/experienceVersion.json +1 -1
- data/schemas/experienceVersions.json +1 -1
- data/schemas/flow.json +103 -1
- data/schemas/flowErrors.json +87 -0
- data/schemas/flowPatch.json +103 -1
- data/schemas/flowPost.json +103 -1
- data/schemas/flowStats.json +54 -0
- data/schemas/flowVersion.json +206 -2
- data/schemas/flowVersionPost.json +103 -1
- data/schemas/flowVersions.json +206 -2
- data/schemas/flows.json +103 -1
- data/schemas/flowsImportPost.json +206 -2
- data/schemas/flowsImportResult.json +309 -3
- data/schemas/githubLogin.json +10 -1
- data/schemas/me.json +3 -0
- data/schemas/multiDeviceCommand.json +1019 -0
- data/schemas/notebook.json +99 -2
- data/schemas/notebookPatch.json +99 -2
- data/schemas/notebookPost.json +99 -2
- data/schemas/notebooks.json +99 -2
- data/schemas/org.json +8 -0
- data/schemas/orgPatch.json +9 -0
- data/schemas/orgs.json +8 -0
- data/schemas/samlResponse.json +21 -0
- data/schemas/ssoRequest.json +20 -0
- data/schemas/timeSeriesData.json +91 -12
- data/schemas/timeSeriesQuery.json +21 -12
- data/schemas/userCredentials.json +10 -1
- data/schemas/userPost.json +10 -1
- metadata +20 -4
data/schemas/advancedQuery.json
CHANGED
@@ -6,17 +6,26 @@
|
|
6
6
|
"type": "array",
|
7
7
|
"items": {
|
8
8
|
"$ref": "#/definitions/advancedQuery"
|
9
|
-
}
|
9
|
+
},
|
10
|
+
"maxItems": 100
|
10
11
|
},
|
11
12
|
"$or": {
|
12
13
|
"type": "array",
|
13
14
|
"items": {
|
14
15
|
"$ref": "#/definitions/advancedQuery"
|
15
|
-
}
|
16
|
+
},
|
17
|
+
"maxItems": 100
|
18
|
+
},
|
19
|
+
"$nor": {
|
20
|
+
"type": "array",
|
21
|
+
"items": {
|
22
|
+
"$ref": "#/definitions/advancedQuery"
|
23
|
+
},
|
24
|
+
"maxItems": 100
|
16
25
|
}
|
17
26
|
},
|
18
27
|
"patternProperties": {
|
19
|
-
"^[0-9a-zA-Z_-]{1,255}": {
|
28
|
+
"^[0-9a-zA-Z_-]{1,255}$": {
|
20
29
|
"oneOf": [
|
21
30
|
{
|
22
31
|
"type": [
|
@@ -88,6 +97,31 @@
|
|
88
97
|
"$contains": {
|
89
98
|
"type": "string",
|
90
99
|
"minLength": 1
|
100
|
+
},
|
101
|
+
"$ci": {
|
102
|
+
"type": "boolean"
|
103
|
+
},
|
104
|
+
"$in": {
|
105
|
+
"type": "array",
|
106
|
+
"maxItems": 100,
|
107
|
+
"items": {
|
108
|
+
"type": [
|
109
|
+
"string",
|
110
|
+
"number",
|
111
|
+
"boolean"
|
112
|
+
]
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"$nin": {
|
116
|
+
"type": "array",
|
117
|
+
"maxItems": 100,
|
118
|
+
"items": {
|
119
|
+
"type": [
|
120
|
+
"string",
|
121
|
+
"number",
|
122
|
+
"boolean"
|
123
|
+
]
|
124
|
+
}
|
91
125
|
}
|
92
126
|
},
|
93
127
|
"additionalProperties": false
|
data/schemas/application.json
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"description": {
|
47
47
|
"type": "string",
|
48
|
-
"maxLength":
|
48
|
+
"maxLength": 1024
|
49
49
|
},
|
50
50
|
"endpointSlug": {
|
51
51
|
"type": "string",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
},
|
82
82
|
"description": {
|
83
83
|
"type": "string",
|
84
|
-
"maxLength":
|
84
|
+
"maxLength": 1024
|
85
85
|
}
|
86
86
|
},
|
87
87
|
"additionalProperties": false,
|
@@ -91,6 +91,11 @@
|
|
91
91
|
]
|
92
92
|
}
|
93
93
|
},
|
94
|
+
"blobUrlTTL": {
|
95
|
+
"type": "number",
|
96
|
+
"minimum": 3600,
|
97
|
+
"maximum": 604800
|
98
|
+
},
|
94
99
|
"summary": {
|
95
100
|
"type": "object",
|
96
101
|
"properties": {
|
@@ -77,6 +77,7 @@
|
|
77
77
|
"application.backfillArchiveData",
|
78
78
|
"application.clone",
|
79
79
|
"application.export",
|
80
|
+
"application.import",
|
80
81
|
"application.fullEventsArchive",
|
81
82
|
"application.fullDataTablesArchive",
|
82
83
|
"application.debug",
|
@@ -148,6 +149,8 @@
|
|
148
149
|
"deviceRecipes.get",
|
149
150
|
"deviceRecipes.post",
|
150
151
|
"devices.patch",
|
152
|
+
"devices.delete",
|
153
|
+
"devices.removeData",
|
151
154
|
"devices.detailedSummary",
|
152
155
|
"devices.export",
|
153
156
|
"devices.get",
|
@@ -218,23 +221,27 @@
|
|
218
221
|
"file.upload",
|
219
222
|
"files.get",
|
220
223
|
"files.post",
|
224
|
+
"flow.clearStorageEntries",
|
221
225
|
"flow.debug",
|
222
226
|
"flow.delete",
|
223
|
-
"flow.
|
227
|
+
"flow.errors",
|
224
228
|
"flow.get",
|
225
229
|
"flow.getStorageEntries",
|
226
230
|
"flow.log",
|
227
231
|
"flow.patch",
|
228
232
|
"flow.pressVirtualButton",
|
229
233
|
"flow.setStorageEntry",
|
234
|
+
"flow.stats",
|
230
235
|
"flows.get",
|
231
236
|
"flows.getByVersion",
|
232
237
|
"flows.import",
|
233
238
|
"flows.post",
|
234
239
|
"flowVersion.delete",
|
240
|
+
"flowVersion.errors",
|
235
241
|
"flowVersion.get",
|
236
242
|
"flowVersion.log",
|
237
243
|
"flowVersion.patch",
|
244
|
+
"flowVersion.stats",
|
238
245
|
"flowVersions.get",
|
239
246
|
"flowVersions.post",
|
240
247
|
"integration.delete",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
},
|
51
51
|
"description": {
|
52
52
|
"type": "string",
|
53
|
-
"maxLength":
|
53
|
+
"maxLength": 1024
|
54
54
|
},
|
55
55
|
"endpointSlug": {
|
56
56
|
"type": "string",
|
@@ -86,7 +86,7 @@
|
|
86
86
|
},
|
87
87
|
"description": {
|
88
88
|
"type": "string",
|
89
|
-
"maxLength":
|
89
|
+
"maxLength": 1024
|
90
90
|
}
|
91
91
|
},
|
92
92
|
"additionalProperties": false,
|
@@ -96,6 +96,11 @@
|
|
96
96
|
]
|
97
97
|
}
|
98
98
|
},
|
99
|
+
"blobUrlTTL": {
|
100
|
+
"type": "number",
|
101
|
+
"minimum": 3600,
|
102
|
+
"maximum": 604800
|
103
|
+
},
|
99
104
|
"summary": {
|
100
105
|
"type": "object",
|
101
106
|
"properties": {
|
@@ -9,7 +9,7 @@
|
|
9
9
|
},
|
10
10
|
"description": {
|
11
11
|
"type": "string",
|
12
|
-
"maxLength":
|
12
|
+
"maxLength": 1024
|
13
13
|
},
|
14
14
|
"endpointSlug": {
|
15
15
|
"type": "string",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
},
|
46
46
|
"description": {
|
47
47
|
"type": "string",
|
48
|
-
"maxLength":
|
48
|
+
"maxLength": 1024
|
49
49
|
}
|
50
50
|
},
|
51
51
|
"additionalProperties": false,
|
@@ -236,6 +236,11 @@
|
|
236
236
|
}
|
237
237
|
},
|
238
238
|
"additionalProperties": false
|
239
|
+
},
|
240
|
+
"blobUrlTTL": {
|
241
|
+
"type": "number",
|
242
|
+
"minimum": 3600,
|
243
|
+
"maximum": 604800
|
239
244
|
}
|
240
245
|
},
|
241
246
|
"additionalProperties": false
|
@@ -6,6 +6,10 @@
|
|
6
6
|
"type": "string",
|
7
7
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
8
|
},
|
9
|
+
"applicationTemplateId": {
|
10
|
+
"type": "string",
|
11
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
12
|
+
},
|
9
13
|
"name": {
|
10
14
|
"type": "string",
|
11
15
|
"minLength": 1,
|
@@ -13,7 +17,7 @@
|
|
13
17
|
},
|
14
18
|
"description": {
|
15
19
|
"type": "string",
|
16
|
-
"maxLength":
|
20
|
+
"maxLength": 1024
|
17
21
|
},
|
18
22
|
"endpointSlug": {
|
19
23
|
"type": "string",
|
@@ -49,7 +53,7 @@
|
|
49
53
|
},
|
50
54
|
"description": {
|
51
55
|
"type": "string",
|
52
|
-
"maxLength":
|
56
|
+
"maxLength": 1024
|
53
57
|
}
|
54
58
|
},
|
55
59
|
"additionalProperties": false,
|
@@ -211,6 +215,11 @@
|
|
211
215
|
}
|
212
216
|
},
|
213
217
|
"additionalProperties": false
|
218
|
+
},
|
219
|
+
"blobUrlTTL": {
|
220
|
+
"type": "number",
|
221
|
+
"minimum": 3600,
|
222
|
+
"maximum": 604800
|
214
223
|
}
|
215
224
|
},
|
216
225
|
"additionalProperties": false,
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"applicationId": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"lastUpdated": {
|
10
|
+
"type": "string",
|
11
|
+
"format": "date-time"
|
12
|
+
},
|
13
|
+
"lastUpdatedById": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"lastUpdatedByType": {
|
18
|
+
"type": "string",
|
19
|
+
"enum": [
|
20
|
+
"flow",
|
21
|
+
"user",
|
22
|
+
"apiToken"
|
23
|
+
]
|
24
|
+
},
|
25
|
+
"content": {
|
26
|
+
"type": "string"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"creationDate": {
|
10
|
+
"type": "string",
|
11
|
+
"format": "date-time"
|
12
|
+
},
|
13
|
+
"lastUpdated": {
|
14
|
+
"type": "string",
|
15
|
+
"format": "date-time"
|
16
|
+
},
|
17
|
+
"name": {
|
18
|
+
"type": "string",
|
19
|
+
"minLength": 1,
|
20
|
+
"maxLength": 255
|
21
|
+
},
|
22
|
+
"description": {
|
23
|
+
"type": "string",
|
24
|
+
"maxLength": 1024
|
25
|
+
},
|
26
|
+
"public": {
|
27
|
+
"type": "boolean"
|
28
|
+
},
|
29
|
+
"authorName": {
|
30
|
+
"type": "string",
|
31
|
+
"maxLength": 255
|
32
|
+
},
|
33
|
+
"imageUrl": {
|
34
|
+
"type": "string",
|
35
|
+
"maxLength": 1024
|
36
|
+
},
|
37
|
+
"authorUrl": {
|
38
|
+
"type": "string",
|
39
|
+
"maxLength": 1024
|
40
|
+
},
|
41
|
+
"templateUrl": {
|
42
|
+
"type": "string",
|
43
|
+
"maxLength": 1024
|
44
|
+
},
|
45
|
+
"summary": {
|
46
|
+
"type": "object",
|
47
|
+
"properties": {
|
48
|
+
"applicationCertificateAuthorityCount": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"dashboardCount": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"deviceCount": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"deviceRecipeCount": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"dataTableCount": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"experienceGroupCount": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"experienceUserCount": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"experienceVersionCount": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"experienceViewCount": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"experienceEndpointCount": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"fileCount": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"flowCount": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"integrationCount": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"notebookCount": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"dataTableCsvSize": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"webhookCount": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "Application Template",
|
9
|
+
"description": "Schema for a single Application Template",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"id": {
|
13
|
+
"type": "string",
|
14
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
15
|
+
},
|
16
|
+
"creationDate": {
|
17
|
+
"type": "string",
|
18
|
+
"format": "date-time"
|
19
|
+
},
|
20
|
+
"lastUpdated": {
|
21
|
+
"type": "string",
|
22
|
+
"format": "date-time"
|
23
|
+
},
|
24
|
+
"name": {
|
25
|
+
"type": "string",
|
26
|
+
"minLength": 1,
|
27
|
+
"maxLength": 255
|
28
|
+
},
|
29
|
+
"description": {
|
30
|
+
"type": "string",
|
31
|
+
"maxLength": 1024
|
32
|
+
},
|
33
|
+
"public": {
|
34
|
+
"type": "boolean"
|
35
|
+
},
|
36
|
+
"authorName": {
|
37
|
+
"type": "string",
|
38
|
+
"maxLength": 255
|
39
|
+
},
|
40
|
+
"imageUrl": {
|
41
|
+
"type": "string",
|
42
|
+
"maxLength": 1024
|
43
|
+
},
|
44
|
+
"authorUrl": {
|
45
|
+
"type": "string",
|
46
|
+
"maxLength": 1024
|
47
|
+
},
|
48
|
+
"templateUrl": {
|
49
|
+
"type": "string",
|
50
|
+
"maxLength": 1024
|
51
|
+
},
|
52
|
+
"summary": {
|
53
|
+
"type": "object",
|
54
|
+
"properties": {
|
55
|
+
"applicationCertificateAuthorityCount": {
|
56
|
+
"type": "number"
|
57
|
+
},
|
58
|
+
"dashboardCount": {
|
59
|
+
"type": "number"
|
60
|
+
},
|
61
|
+
"deviceCount": {
|
62
|
+
"type": "number"
|
63
|
+
},
|
64
|
+
"deviceRecipeCount": {
|
65
|
+
"type": "number"
|
66
|
+
},
|
67
|
+
"dataTableCount": {
|
68
|
+
"type": "number"
|
69
|
+
},
|
70
|
+
"experienceGroupCount": {
|
71
|
+
"type": "number"
|
72
|
+
},
|
73
|
+
"experienceUserCount": {
|
74
|
+
"type": "number"
|
75
|
+
},
|
76
|
+
"experienceVersionCount": {
|
77
|
+
"type": "number"
|
78
|
+
},
|
79
|
+
"experienceViewCount": {
|
80
|
+
"type": "number"
|
81
|
+
},
|
82
|
+
"experienceEndpointCount": {
|
83
|
+
"type": "number"
|
84
|
+
},
|
85
|
+
"fileCount": {
|
86
|
+
"type": "number"
|
87
|
+
},
|
88
|
+
"flowCount": {
|
89
|
+
"type": "number"
|
90
|
+
},
|
91
|
+
"integrationCount": {
|
92
|
+
"type": "number"
|
93
|
+
},
|
94
|
+
"notebookCount": {
|
95
|
+
"type": "number"
|
96
|
+
},
|
97
|
+
"dataTableCsvSize": {
|
98
|
+
"type": "number"
|
99
|
+
},
|
100
|
+
"webhookCount": {
|
101
|
+
"type": "number"
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"count": {
|
109
|
+
"type": "integer"
|
110
|
+
},
|
111
|
+
"totalCount": {
|
112
|
+
"type": "integer"
|
113
|
+
},
|
114
|
+
"perPage": {
|
115
|
+
"type": "integer"
|
116
|
+
},
|
117
|
+
"page": {
|
118
|
+
"type": "integer"
|
119
|
+
},
|
120
|
+
"filter": {
|
121
|
+
"type": "string"
|
122
|
+
},
|
123
|
+
"filterField": {
|
124
|
+
"type": "string"
|
125
|
+
},
|
126
|
+
"sortField": {
|
127
|
+
"type": "string"
|
128
|
+
},
|
129
|
+
"sortDirection": {
|
130
|
+
"type": "string",
|
131
|
+
"enum": [
|
132
|
+
"asc",
|
133
|
+
"desc",
|
134
|
+
"ASC",
|
135
|
+
"DESC",
|
136
|
+
""
|
137
|
+
]
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|