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/org.json
CHANGED
data/schemas/orgPatch.json
CHANGED
@@ -27,6 +27,15 @@
|
|
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": 45,
|
37
|
+
"minLength": 3
|
38
|
+
}
|
30
39
|
}
|
31
40
|
},
|
32
41
|
"additionalProperties": false
|
data/schemas/orgs.json
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"SAMLResponse": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 4,
|
8
|
+
"maxLength": 100000
|
9
|
+
},
|
10
|
+
"SAMLDomain": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 45,
|
13
|
+
"minLength": 3
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"required": [
|
17
|
+
"SAMLResponse",
|
18
|
+
"SAMLDomain"
|
19
|
+
],
|
20
|
+
"additionalProperties": false
|
21
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"ssoType": {
|
6
|
+
"type": "string",
|
7
|
+
"enum": [
|
8
|
+
"SAML"
|
9
|
+
]
|
10
|
+
},
|
11
|
+
"ssoRequest": {
|
12
|
+
"type": "string",
|
13
|
+
"maxLength": 32767
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"required": [
|
17
|
+
"ssoType",
|
18
|
+
"ssoRequest"
|
19
|
+
]
|
20
|
+
}
|
data/schemas/timeSeriesData.json
CHANGED
@@ -14,18 +14,97 @@
|
|
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
|
+
"type": "string",
|
93
|
+
"maxLength": 255
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"additionalProperties": false,
|
97
|
+
"required": [
|
98
|
+
"value"
|
99
|
+
]
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"additionalProperties": false,
|
103
|
+
"required": [
|
104
|
+
"type",
|
105
|
+
"options"
|
106
|
+
]
|
107
|
+
}
|
29
108
|
]
|
30
109
|
},
|
31
110
|
"devices": {
|
@@ -15,18 +15,27 @@
|
|
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
|
+
"type": "string",
|
21
|
+
"enum": [
|
22
|
+
"FIRST",
|
23
|
+
"LAST",
|
24
|
+
"COUNT",
|
25
|
+
"MAX",
|
26
|
+
"MIN",
|
27
|
+
"MEDIAN",
|
28
|
+
"MEAN",
|
29
|
+
"SUM",
|
30
|
+
"STD_DEV"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"type": "string",
|
35
|
+
"enum": [
|
36
|
+
"NONE"
|
37
|
+
]
|
38
|
+
}
|
30
39
|
]
|
31
40
|
},
|
32
41
|
"attributes": {
|
@@ -82,6 +82,7 @@
|
|
82
82
|
"application.backfillArchiveData",
|
83
83
|
"application.clone",
|
84
84
|
"application.export",
|
85
|
+
"application.import",
|
85
86
|
"application.fullEventsArchive",
|
86
87
|
"application.fullDataTablesArchive",
|
87
88
|
"application.debug",
|
@@ -153,6 +154,8 @@
|
|
153
154
|
"deviceRecipes.get",
|
154
155
|
"deviceRecipes.post",
|
155
156
|
"devices.patch",
|
157
|
+
"devices.delete",
|
158
|
+
"devices.removeData",
|
156
159
|
"devices.detailedSummary",
|
157
160
|
"devices.export",
|
158
161
|
"devices.get",
|
@@ -223,23 +226,27 @@
|
|
223
226
|
"file.upload",
|
224
227
|
"files.get",
|
225
228
|
"files.post",
|
229
|
+
"flow.clearStorageEntries",
|
226
230
|
"flow.debug",
|
227
231
|
"flow.delete",
|
228
|
-
"flow.
|
232
|
+
"flow.errors",
|
229
233
|
"flow.get",
|
230
234
|
"flow.getStorageEntries",
|
231
235
|
"flow.log",
|
232
236
|
"flow.patch",
|
233
237
|
"flow.pressVirtualButton",
|
234
238
|
"flow.setStorageEntry",
|
239
|
+
"flow.stats",
|
235
240
|
"flows.get",
|
236
241
|
"flows.getByVersion",
|
237
242
|
"flows.import",
|
238
243
|
"flows.post",
|
239
244
|
"flowVersion.delete",
|
245
|
+
"flowVersion.errors",
|
240
246
|
"flowVersion.get",
|
241
247
|
"flowVersion.log",
|
242
248
|
"flowVersion.patch",
|
249
|
+
"flowVersion.stats",
|
243
250
|
"flowVersions.get",
|
244
251
|
"flowVersions.post",
|
245
252
|
"integration.delete",
|
@@ -307,6 +314,8 @@
|
|
307
314
|
"enum": [
|
308
315
|
"all.User",
|
309
316
|
"all.User.read",
|
317
|
+
"applicationTemplates.*",
|
318
|
+
"applicationTemplates.get",
|
310
319
|
"me.*",
|
311
320
|
"orgs.*",
|
312
321
|
"me.get",
|
data/schemas/userPost.json
CHANGED
@@ -137,6 +137,7 @@
|
|
137
137
|
"application.backfillArchiveData",
|
138
138
|
"application.clone",
|
139
139
|
"application.export",
|
140
|
+
"application.import",
|
140
141
|
"application.fullEventsArchive",
|
141
142
|
"application.fullDataTablesArchive",
|
142
143
|
"application.debug",
|
@@ -208,6 +209,8 @@
|
|
208
209
|
"deviceRecipes.get",
|
209
210
|
"deviceRecipes.post",
|
210
211
|
"devices.patch",
|
212
|
+
"devices.delete",
|
213
|
+
"devices.removeData",
|
211
214
|
"devices.detailedSummary",
|
212
215
|
"devices.export",
|
213
216
|
"devices.get",
|
@@ -278,23 +281,27 @@
|
|
278
281
|
"file.upload",
|
279
282
|
"files.get",
|
280
283
|
"files.post",
|
284
|
+
"flow.clearStorageEntries",
|
281
285
|
"flow.debug",
|
282
286
|
"flow.delete",
|
283
|
-
"flow.
|
287
|
+
"flow.errors",
|
284
288
|
"flow.get",
|
285
289
|
"flow.getStorageEntries",
|
286
290
|
"flow.log",
|
287
291
|
"flow.patch",
|
288
292
|
"flow.pressVirtualButton",
|
289
293
|
"flow.setStorageEntry",
|
294
|
+
"flow.stats",
|
290
295
|
"flows.get",
|
291
296
|
"flows.getByVersion",
|
292
297
|
"flows.import",
|
293
298
|
"flows.post",
|
294
299
|
"flowVersion.delete",
|
300
|
+
"flowVersion.errors",
|
295
301
|
"flowVersion.get",
|
296
302
|
"flowVersion.log",
|
297
303
|
"flowVersion.patch",
|
304
|
+
"flowVersion.stats",
|
298
305
|
"flowVersions.get",
|
299
306
|
"flowVersions.post",
|
300
307
|
"integration.delete",
|
@@ -362,6 +369,8 @@
|
|
362
369
|
"enum": [
|
363
370
|
"all.User",
|
364
371
|
"all.User.read",
|
372
|
+
"applicationTemplates.*",
|
373
|
+
"applicationTemplates.get",
|
365
374
|
"me.*",
|
366
375
|
"orgs.*",
|
367
376
|
"me.get",
|
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.
|
4
|
+
version: 1.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- docs/applicationCertificates.md
|
92
92
|
- docs/applicationKey.md
|
93
93
|
- docs/applicationKeys.md
|
94
|
+
- docs/applicationTemplates.md
|
94
95
|
- docs/applications.md
|
95
96
|
- docs/auditLog.md
|
96
97
|
- docs/auditLogs.md
|
@@ -152,6 +153,7 @@ files:
|
|
152
153
|
- lib/losant_rest/application_certificates.rb
|
153
154
|
- lib/losant_rest/application_key.rb
|
154
155
|
- lib/losant_rest/application_keys.rb
|
156
|
+
- lib/losant_rest/application_templates.rb
|
155
157
|
- lib/losant_rest/applications.rb
|
156
158
|
- lib/losant_rest/audit_log.rb
|
157
159
|
- lib/losant_rest/audit_logs.rb
|
@@ -206,6 +208,7 @@ files:
|
|
206
208
|
- lib/losant_rest/webhook.rb
|
207
209
|
- lib/losant_rest/webhooks.rb
|
208
210
|
- losant_rest.gemspec
|
211
|
+
- schemas/advancedDeviceQuery.json
|
209
212
|
- schemas/advancedEventQuery.json
|
210
213
|
- schemas/advancedQuery.json
|
211
214
|
- schemas/apiToken.json
|
@@ -233,7 +236,11 @@ files:
|
|
233
236
|
- schemas/applicationKeys.json
|
234
237
|
- schemas/applicationPatch.json
|
235
238
|
- schemas/applicationPost.json
|
239
|
+
- schemas/applicationReadme.json
|
240
|
+
- schemas/applicationReadmePatch.json
|
236
241
|
- schemas/applicationSearchResult.json
|
242
|
+
- schemas/applicationTemplate.json
|
243
|
+
- schemas/applicationTemplates.json
|
237
244
|
- schemas/applications.json
|
238
245
|
- schemas/auditLog.json
|
239
246
|
- schemas/auditLogFilter.json
|
@@ -284,7 +291,13 @@ files:
|
|
284
291
|
- schemas/deviceStates.json
|
285
292
|
- schemas/deviceTagFilter.json
|
286
293
|
- schemas/devices.json
|
294
|
+
- schemas/devicesDataRemoved.json
|
295
|
+
- schemas/devicesDeletePost.json
|
296
|
+
- schemas/devicesDeleted.json
|
297
|
+
- schemas/devicesExportPost.json
|
287
298
|
- schemas/devicesPatch.json
|
299
|
+
- schemas/devicesRemoveDataPost.json
|
300
|
+
- schemas/devicesUpdated.json
|
288
301
|
- schemas/disableTwoFactorAuth.json
|
289
302
|
- schemas/edgeDeployment.json
|
290
303
|
- schemas/edgeDeploymentRelease.json
|
@@ -339,9 +352,11 @@ files:
|
|
339
352
|
- schemas/fileUploadPostResponse.json
|
340
353
|
- schemas/files.json
|
341
354
|
- schemas/flow.json
|
355
|
+
- schemas/flowErrors.json
|
342
356
|
- schemas/flowLog.json
|
343
357
|
- schemas/flowPatch.json
|
344
358
|
- schemas/flowPost.json
|
359
|
+
- schemas/flowStats.json
|
345
360
|
- schemas/flowStorageEntries.json
|
346
361
|
- schemas/flowStorageEntry.json
|
347
362
|
- schemas/flowTriggerFilter.json
|
@@ -388,6 +403,8 @@ files:
|
|
388
403
|
- schemas/recentItem.json
|
389
404
|
- schemas/recentItemList.json
|
390
405
|
- schemas/resourceTransfer.json
|
406
|
+
- schemas/samlResponse.json
|
407
|
+
- schemas/ssoRequest.json
|
391
408
|
- schemas/success.json
|
392
409
|
- schemas/timeSeriesData.json
|
393
410
|
- schemas/timeSeriesQuery.json
|
@@ -422,8 +439,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
422
439
|
- !ruby/object:Gem::Version
|
423
440
|
version: '0'
|
424
441
|
requirements: []
|
425
|
-
|
426
|
-
rubygems_version: 2.7.6
|
442
|
+
rubygems_version: 3.1.2
|
427
443
|
signing_key:
|
428
444
|
specification_version: 4
|
429
445
|
summary: Provides a simple ruby wrapper around the Losant REST API
|