losant_rest 1.9.3 → 1.10.4
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 +17405 -2766
- data/docs/application.md +85 -0
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationTemplate.md +46 -0
- data/docs/applicationTemplates.md +76 -1
- data/docs/device.md +7 -3
- data/docs/devices.md +92 -4
- 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/docs/me.md +0 -36
- data/lib/losant_rest.rb +1 -0
- data/lib/losant_rest/application.rb +48 -0
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_template.rb +79 -0
- data/lib/losant_rest/application_templates.rb +89 -1
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/device.rb +11 -3
- data/lib/losant_rest/devices.rb +103 -3
- 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/me.rb +0 -41
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/advancedDeviceQuery.json +117 -0
- data/schemas/advancedEventQuery.json +205 -0
- data/schemas/advancedQuery.json +34 -3
- data/schemas/application.json +13 -0
- data/schemas/applicationApiTokenPost.json +9 -1
- data/schemas/applicationApplyTemplatePatch.json +19 -0
- data/schemas/applicationCreationByTemplateResult.json +13 -0
- data/schemas/applicationPatch.json +5 -0
- data/schemas/applicationPost.json +13 -0
- data/schemas/applicationTemplate.json +32 -0
- data/schemas/applicationTemplateCategories.json +43 -0
- data/schemas/applicationTemplateCategory.json +23 -0
- data/schemas/applicationTemplates.json +44 -0
- data/schemas/applications.json +13 -0
- data/schemas/changePassword.json +2 -2
- data/schemas/dashboard.json +1285 -145
- data/schemas/dashboardPatch.json +1285 -145
- data/schemas/dashboardPost.json +1285 -145
- data/schemas/dashboards.json +1285 -145
- data/schemas/dataExport.json +142 -0
- data/schemas/dataTableRowsExport.json +34 -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 +16 -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/eventsExport.json +205 -0
- 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 +348 -3
- data/schemas/experienceVersion.json +1 -1
- data/schemas/experienceVersions.json +1 -1
- data/schemas/flow.json +116 -1
- data/schemas/flowErrors.json +87 -0
- data/schemas/flowPatch.json +116 -1
- data/schemas/flowPost.json +116 -1
- data/schemas/flowStats.json +54 -0
- data/schemas/flowVersion.json +232 -2
- data/schemas/flowVersionPost.json +116 -1
- data/schemas/flowVersions.json +232 -2
- data/schemas/flows.json +116 -1
- data/schemas/flowsImportPost.json +232 -2
- data/schemas/flowsImportResult.json +348 -3
- data/schemas/githubLogin.json +15 -4
- data/schemas/me.json +0 -3
- data/schemas/mePatch.json +2 -2
- 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 +1 -1
- data/schemas/orgInviteInfo.json +3 -0
- data/schemas/orgInvitePost.json +3 -0
- data/schemas/orgInvites.json +3 -0
- data/schemas/orgPatch.json +1 -1
- data/schemas/orgPost.json +0 -9
- data/schemas/orgs.json +1 -1
- data/schemas/passwordResetFinish.json +2 -2
- data/schemas/samlResponse.json +1 -1
- data/schemas/templateKeywords.json +14 -0
- data/schemas/timeSeriesData.json +101 -12
- data/schemas/timeSeriesQuery.json +101 -12
- data/schemas/userCredentials.json +13 -3
- data/schemas/userPost.json +21 -7
- metadata +19 -5
data/schemas/org.json
CHANGED
data/schemas/orgInviteInfo.json
CHANGED
data/schemas/orgInvitePost.json
CHANGED
data/schemas/orgInvites.json
CHANGED
data/schemas/orgPatch.json
CHANGED
data/schemas/orgPost.json
CHANGED
@@ -27,15 +27,6 @@
|
|
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
|
-
}
|
39
30
|
}
|
40
31
|
},
|
41
32
|
"additionalProperties": false,
|
data/schemas/orgs.json
CHANGED
@@ -13,9 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"password": {
|
15
15
|
"type": "string",
|
16
|
-
"minLength":
|
16
|
+
"minLength": 12,
|
17
17
|
"maxLength": 2048,
|
18
|
-
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{
|
18
|
+
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
|
19
19
|
}
|
20
20
|
},
|
21
21
|
"required": [
|
data/schemas/samlResponse.json
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"properties": {
|
4
|
+
"keywords": {
|
5
|
+
"type": "array",
|
6
|
+
"items": {
|
7
|
+
"type": "string",
|
8
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
9
|
+
},
|
10
|
+
"maxItems": 100
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"additionalProperties": false
|
14
|
+
}
|
data/schemas/timeSeriesData.json
CHANGED
@@ -14,18 +14,107 @@
|
|
14
14
|
"type": "number"
|
15
15
|
},
|
16
16
|
"aggregation": {
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
17
|
+
"oneOf": [
|
18
|
+
{
|
19
|
+
"oneOf": [
|
20
|
+
{
|
21
|
+
"type": "string",
|
22
|
+
"enum": [
|
23
|
+
"FIRST",
|
24
|
+
"LAST",
|
25
|
+
"COUNT",
|
26
|
+
"MAX",
|
27
|
+
"MIN",
|
28
|
+
"MEDIAN",
|
29
|
+
"MEAN",
|
30
|
+
"SUM",
|
31
|
+
"STD_DEV"
|
32
|
+
]
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"type": "string",
|
36
|
+
"enum": [
|
37
|
+
"NONE"
|
38
|
+
]
|
39
|
+
}
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "object",
|
44
|
+
"properties": {
|
45
|
+
"type": {
|
46
|
+
"oneOf": [
|
47
|
+
{
|
48
|
+
"type": "string",
|
49
|
+
"enum": [
|
50
|
+
"FIRST",
|
51
|
+
"LAST",
|
52
|
+
"COUNT",
|
53
|
+
"MAX",
|
54
|
+
"MIN",
|
55
|
+
"MEDIAN",
|
56
|
+
"MEAN",
|
57
|
+
"SUM",
|
58
|
+
"STD_DEV"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"type": "string",
|
63
|
+
"enum": [
|
64
|
+
"NONE"
|
65
|
+
]
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
"options": {
|
70
|
+
"type": "object",
|
71
|
+
"additionalProperties": false
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"additionalProperties": false,
|
75
|
+
"required": [
|
76
|
+
"type"
|
77
|
+
]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"type": "object",
|
81
|
+
"properties": {
|
82
|
+
"type": {
|
83
|
+
"type": "string",
|
84
|
+
"enum": [
|
85
|
+
"TIMEATVALUE"
|
86
|
+
]
|
87
|
+
},
|
88
|
+
"options": {
|
89
|
+
"type": "object",
|
90
|
+
"properties": {
|
91
|
+
"value": {
|
92
|
+
"oneOf": [
|
93
|
+
{
|
94
|
+
"type": "string",
|
95
|
+
"maxLength": 255
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"type": "number"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"type": "boolean"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"additionalProperties": false,
|
107
|
+
"required": [
|
108
|
+
"value"
|
109
|
+
]
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"additionalProperties": false,
|
113
|
+
"required": [
|
114
|
+
"type",
|
115
|
+
"options"
|
116
|
+
]
|
117
|
+
}
|
29
118
|
]
|
30
119
|
},
|
31
120
|
"devices": {
|
@@ -15,18 +15,107 @@
|
|
15
15
|
"type": "number"
|
16
16
|
},
|
17
17
|
"aggregation": {
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
18
|
+
"oneOf": [
|
19
|
+
{
|
20
|
+
"oneOf": [
|
21
|
+
{
|
22
|
+
"type": "string",
|
23
|
+
"enum": [
|
24
|
+
"FIRST",
|
25
|
+
"LAST",
|
26
|
+
"COUNT",
|
27
|
+
"MAX",
|
28
|
+
"MIN",
|
29
|
+
"MEDIAN",
|
30
|
+
"MEAN",
|
31
|
+
"SUM",
|
32
|
+
"STD_DEV"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"type": "string",
|
37
|
+
"enum": [
|
38
|
+
"NONE"
|
39
|
+
]
|
40
|
+
}
|
41
|
+
]
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"type": "object",
|
45
|
+
"properties": {
|
46
|
+
"type": {
|
47
|
+
"oneOf": [
|
48
|
+
{
|
49
|
+
"type": "string",
|
50
|
+
"enum": [
|
51
|
+
"FIRST",
|
52
|
+
"LAST",
|
53
|
+
"COUNT",
|
54
|
+
"MAX",
|
55
|
+
"MIN",
|
56
|
+
"MEDIAN",
|
57
|
+
"MEAN",
|
58
|
+
"SUM",
|
59
|
+
"STD_DEV"
|
60
|
+
]
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"type": "string",
|
64
|
+
"enum": [
|
65
|
+
"NONE"
|
66
|
+
]
|
67
|
+
}
|
68
|
+
]
|
69
|
+
},
|
70
|
+
"options": {
|
71
|
+
"type": "object",
|
72
|
+
"additionalProperties": false
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"additionalProperties": false,
|
76
|
+
"required": [
|
77
|
+
"type"
|
78
|
+
]
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"type": "object",
|
82
|
+
"properties": {
|
83
|
+
"type": {
|
84
|
+
"type": "string",
|
85
|
+
"enum": [
|
86
|
+
"TIMEATVALUE"
|
87
|
+
]
|
88
|
+
},
|
89
|
+
"options": {
|
90
|
+
"type": "object",
|
91
|
+
"properties": {
|
92
|
+
"value": {
|
93
|
+
"oneOf": [
|
94
|
+
{
|
95
|
+
"type": "string",
|
96
|
+
"maxLength": 255
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"type": "number"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"type": "boolean"
|
103
|
+
}
|
104
|
+
]
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"additionalProperties": false,
|
108
|
+
"required": [
|
109
|
+
"value"
|
110
|
+
]
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"additionalProperties": false,
|
114
|
+
"required": [
|
115
|
+
"type",
|
116
|
+
"options"
|
117
|
+
]
|
118
|
+
}
|
30
119
|
]
|
31
120
|
},
|
32
121
|
"attributes": {
|
@@ -78,10 +78,12 @@
|
|
78
78
|
"notebooks.*",
|
79
79
|
"webhook.*",
|
80
80
|
"webhooks.*",
|
81
|
+
"application.applyTemplate",
|
81
82
|
"application.archiveData",
|
82
83
|
"application.backfillArchiveData",
|
83
84
|
"application.clone",
|
84
85
|
"application.export",
|
86
|
+
"application.import",
|
85
87
|
"application.fullEventsArchive",
|
86
88
|
"application.fullDataTablesArchive",
|
87
89
|
"application.debug",
|
@@ -153,6 +155,8 @@
|
|
153
155
|
"deviceRecipes.get",
|
154
156
|
"deviceRecipes.post",
|
155
157
|
"devices.patch",
|
158
|
+
"devices.delete",
|
159
|
+
"devices.removeData",
|
156
160
|
"devices.detailedSummary",
|
157
161
|
"devices.export",
|
158
162
|
"devices.get",
|
@@ -223,23 +227,27 @@
|
|
223
227
|
"file.upload",
|
224
228
|
"files.get",
|
225
229
|
"files.post",
|
230
|
+
"flow.clearStorageEntries",
|
226
231
|
"flow.debug",
|
227
232
|
"flow.delete",
|
228
|
-
"flow.
|
233
|
+
"flow.errors",
|
229
234
|
"flow.get",
|
230
235
|
"flow.getStorageEntries",
|
231
236
|
"flow.log",
|
232
237
|
"flow.patch",
|
233
238
|
"flow.pressVirtualButton",
|
234
239
|
"flow.setStorageEntry",
|
240
|
+
"flow.stats",
|
235
241
|
"flows.get",
|
236
242
|
"flows.getByVersion",
|
237
243
|
"flows.import",
|
238
244
|
"flows.post",
|
239
245
|
"flowVersion.delete",
|
246
|
+
"flowVersion.errors",
|
240
247
|
"flowVersion.get",
|
241
248
|
"flowVersion.log",
|
242
249
|
"flowVersion.patch",
|
250
|
+
"flowVersion.stats",
|
243
251
|
"flowVersions.get",
|
244
252
|
"flowVersions.post",
|
245
253
|
"integration.delete",
|
@@ -307,8 +315,12 @@
|
|
307
315
|
"enum": [
|
308
316
|
"all.User",
|
309
317
|
"all.User.read",
|
318
|
+
"applicationTemplate.*",
|
319
|
+
"applicationTemplate.get",
|
310
320
|
"applicationTemplates.*",
|
311
321
|
"applicationTemplates.get",
|
322
|
+
"applicationTemplates.getCategories",
|
323
|
+
"applicationTemplates.getUniqueKeywords",
|
312
324
|
"me.*",
|
313
325
|
"orgs.*",
|
314
326
|
"me.get",
|
@@ -320,8 +332,6 @@
|
|
320
332
|
"me.disableTwoFactorAuth",
|
321
333
|
"me.disconnectGithub",
|
322
334
|
"me.connectGithub",
|
323
|
-
"me.disconnectTwitter",
|
324
|
-
"me.connectTwitter",
|
325
335
|
"me.addRecentItem",
|
326
336
|
"me.fetchRecentItems",
|
327
337
|
"me.payloadCounts",
|
data/schemas/userPost.json
CHANGED
@@ -41,10 +41,14 @@
|
|
41
41
|
"type": "object",
|
42
42
|
"properties": {
|
43
43
|
"service": {
|
44
|
-
"
|
44
|
+
"enum": [
|
45
|
+
"github"
|
46
|
+
]
|
45
47
|
},
|
46
48
|
"accessToken": {
|
47
|
-
"type": "string"
|
49
|
+
"type": "string",
|
50
|
+
"minLength": 1,
|
51
|
+
"maxLength": 1024
|
48
52
|
}
|
49
53
|
},
|
50
54
|
"required": [
|
@@ -54,9 +58,9 @@
|
|
54
58
|
},
|
55
59
|
"password": {
|
56
60
|
"type": "string",
|
57
|
-
"minLength":
|
61
|
+
"minLength": 12,
|
58
62
|
"maxLength": 2048,
|
59
|
-
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{
|
63
|
+
"pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
|
60
64
|
},
|
61
65
|
"acceptTerms": {
|
62
66
|
"enum": [
|
@@ -133,10 +137,12 @@
|
|
133
137
|
"notebooks.*",
|
134
138
|
"webhook.*",
|
135
139
|
"webhooks.*",
|
140
|
+
"application.applyTemplate",
|
136
141
|
"application.archiveData",
|
137
142
|
"application.backfillArchiveData",
|
138
143
|
"application.clone",
|
139
144
|
"application.export",
|
145
|
+
"application.import",
|
140
146
|
"application.fullEventsArchive",
|
141
147
|
"application.fullDataTablesArchive",
|
142
148
|
"application.debug",
|
@@ -208,6 +214,8 @@
|
|
208
214
|
"deviceRecipes.get",
|
209
215
|
"deviceRecipes.post",
|
210
216
|
"devices.patch",
|
217
|
+
"devices.delete",
|
218
|
+
"devices.removeData",
|
211
219
|
"devices.detailedSummary",
|
212
220
|
"devices.export",
|
213
221
|
"devices.get",
|
@@ -278,23 +286,27 @@
|
|
278
286
|
"file.upload",
|
279
287
|
"files.get",
|
280
288
|
"files.post",
|
289
|
+
"flow.clearStorageEntries",
|
281
290
|
"flow.debug",
|
282
291
|
"flow.delete",
|
283
|
-
"flow.
|
292
|
+
"flow.errors",
|
284
293
|
"flow.get",
|
285
294
|
"flow.getStorageEntries",
|
286
295
|
"flow.log",
|
287
296
|
"flow.patch",
|
288
297
|
"flow.pressVirtualButton",
|
289
298
|
"flow.setStorageEntry",
|
299
|
+
"flow.stats",
|
290
300
|
"flows.get",
|
291
301
|
"flows.getByVersion",
|
292
302
|
"flows.import",
|
293
303
|
"flows.post",
|
294
304
|
"flowVersion.delete",
|
305
|
+
"flowVersion.errors",
|
295
306
|
"flowVersion.get",
|
296
307
|
"flowVersion.log",
|
297
308
|
"flowVersion.patch",
|
309
|
+
"flowVersion.stats",
|
298
310
|
"flowVersions.get",
|
299
311
|
"flowVersions.post",
|
300
312
|
"integration.delete",
|
@@ -362,8 +374,12 @@
|
|
362
374
|
"enum": [
|
363
375
|
"all.User",
|
364
376
|
"all.User.read",
|
377
|
+
"applicationTemplate.*",
|
378
|
+
"applicationTemplate.get",
|
365
379
|
"applicationTemplates.*",
|
366
380
|
"applicationTemplates.get",
|
381
|
+
"applicationTemplates.getCategories",
|
382
|
+
"applicationTemplates.getUniqueKeywords",
|
367
383
|
"me.*",
|
368
384
|
"orgs.*",
|
369
385
|
"me.get",
|
@@ -375,8 +391,6 @@
|
|
375
391
|
"me.disableTwoFactorAuth",
|
376
392
|
"me.disconnectGithub",
|
377
393
|
"me.connectGithub",
|
378
|
-
"me.disconnectTwitter",
|
379
|
-
"me.connectTwitter",
|
380
394
|
"me.addRecentItem",
|
381
395
|
"me.fetchRecentItems",
|
382
396
|
"me.payloadCounts",
|