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.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38445 -24043
  3. data/docs/application.md +124 -2
  4. data/docs/applicationTemplates.md +50 -0
  5. data/docs/auth.md +72 -0
  6. data/docs/device.md +1 -0
  7. data/docs/devices.md +92 -3
  8. data/docs/experienceEndpoints.md +1 -0
  9. data/docs/file.md +4 -4
  10. data/docs/flow.md +94 -1
  11. data/docs/flowVersion.md +96 -1
  12. data/lib/losant_rest.rb +1 -0
  13. data/lib/losant_rest/application.rb +93 -2
  14. data/lib/losant_rest/application_templates.rb +88 -0
  15. data/lib/losant_rest/auth.rb +84 -0
  16. data/lib/losant_rest/client.rb +6 -2
  17. data/lib/losant_rest/device.rb +2 -0
  18. data/lib/losant_rest/devices.rb +105 -2
  19. data/lib/losant_rest/experience_endpoints.rb +2 -0
  20. data/lib/losant_rest/file.rb +3 -3
  21. data/lib/losant_rest/flow.rb +115 -1
  22. data/lib/losant_rest/flow_version.rb +115 -1
  23. data/lib/losant_rest/version.rb +2 -2
  24. data/schemas/advancedDeviceQuery.json +1018 -0
  25. data/schemas/advancedEventQuery.json +382 -13
  26. data/schemas/advancedQuery.json +37 -3
  27. data/schemas/application.json +7 -2
  28. data/schemas/applicationApiTokenPost.json +8 -1
  29. data/schemas/applicationCreationByTemplateResult.json +7 -2
  30. data/schemas/applicationPatch.json +7 -2
  31. data/schemas/applicationPost.json +11 -2
  32. data/schemas/applicationReadme.json +29 -0
  33. data/schemas/applicationReadmePatch.json +11 -0
  34. data/schemas/applicationTemplate.json +99 -0
  35. data/schemas/applicationTemplates.json +140 -0
  36. data/schemas/applications.json +7 -2
  37. data/schemas/dashboard.json +1168 -144
  38. data/schemas/dashboardPatch.json +1168 -144
  39. data/schemas/dashboardPost.json +1168 -144
  40. data/schemas/dashboards.json +1168 -144
  41. data/schemas/dataExport.json +11 -0
  42. data/schemas/dataTableRows.json +3 -0
  43. data/schemas/dataTableRowsExport.json +37 -3
  44. data/schemas/device.json +16 -3
  45. data/schemas/devicePatch.json +16 -3
  46. data/schemas/devicePost.json +16 -3
  47. data/schemas/deviceRecipe.json +16 -3
  48. data/schemas/deviceRecipePatch.json +16 -3
  49. data/schemas/deviceRecipePost.json +16 -3
  50. data/schemas/deviceRecipes.json +16 -3
  51. data/schemas/devices.json +19 -3
  52. data/schemas/devicesDataRemoved.json +12 -0
  53. data/schemas/devicesDeletePost.json +1034 -0
  54. data/schemas/devicesDeleted.json +12 -0
  55. data/schemas/devicesExportPost.json +1035 -0
  56. data/schemas/devicesPatch.json +1773 -7
  57. data/schemas/devicesRemoveDataPost.json +1056 -0
  58. data/schemas/devicesUpdated.json +18 -0
  59. data/schemas/eventPost.json +22 -0
  60. data/schemas/events.json +1 -816
  61. data/schemas/eventsExport.json +382 -13
  62. data/schemas/experienceDomain.json +1 -1
  63. data/schemas/experienceDomainPatch.json +1 -1
  64. data/schemas/experienceDomainPost.json +1 -1
  65. data/schemas/experienceDomains.json +1 -1
  66. data/schemas/experienceGroup.json +7 -0
  67. data/schemas/experienceGroupPatch.json +7 -0
  68. data/schemas/experienceGroupPost.json +7 -0
  69. data/schemas/experienceGroups.json +7 -0
  70. data/schemas/experienceLinkedResources.json +309 -3
  71. data/schemas/experienceVersion.json +1 -1
  72. data/schemas/experienceVersions.json +1 -1
  73. data/schemas/flow.json +103 -1
  74. data/schemas/flowErrors.json +87 -0
  75. data/schemas/flowPatch.json +103 -1
  76. data/schemas/flowPost.json +103 -1
  77. data/schemas/flowStats.json +54 -0
  78. data/schemas/flowVersion.json +206 -2
  79. data/schemas/flowVersionPost.json +103 -1
  80. data/schemas/flowVersions.json +206 -2
  81. data/schemas/flows.json +103 -1
  82. data/schemas/flowsImportPost.json +206 -2
  83. data/schemas/flowsImportResult.json +309 -3
  84. data/schemas/githubLogin.json +10 -1
  85. data/schemas/me.json +3 -0
  86. data/schemas/multiDeviceCommand.json +1019 -0
  87. data/schemas/notebook.json +99 -2
  88. data/schemas/notebookPatch.json +99 -2
  89. data/schemas/notebookPost.json +99 -2
  90. data/schemas/notebooks.json +99 -2
  91. data/schemas/org.json +8 -0
  92. data/schemas/orgPatch.json +9 -0
  93. data/schemas/orgs.json +8 -0
  94. data/schemas/samlResponse.json +21 -0
  95. data/schemas/ssoRequest.json +20 -0
  96. data/schemas/timeSeriesData.json +91 -12
  97. data/schemas/timeSeriesQuery.json +21 -12
  98. data/schemas/userCredentials.json +10 -1
  99. data/schemas/userPost.json +10 -1
  100. metadata +20 -4
@@ -417,6 +417,14 @@
417
417
  "iconColor": {
418
418
  "type": "string",
419
419
  "maxLength": 64
420
+ },
421
+ "whitelistedEmailDomains": {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "string",
425
+ "maxLength": 45,
426
+ "minLength": 3
427
+ }
420
428
  }
421
429
  }
422
430
  }
@@ -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
@@ -424,6 +424,14 @@
424
424
  "iconColor": {
425
425
  "type": "string",
426
426
  "maxLength": 64
427
+ },
428
+ "whitelistedEmailDomains": {
429
+ "type": "array",
430
+ "items": {
431
+ "type": "string",
432
+ "maxLength": 45,
433
+ "minLength": 3
434
+ }
427
435
  }
428
436
  }
429
437
  }
@@ -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
+ }
@@ -14,18 +14,97 @@
14
14
  "type": "number"
15
15
  },
16
16
  "aggregation": {
17
- "type": "string",
18
- "enum": [
19
- "FIRST",
20
- "LAST",
21
- "COUNT",
22
- "MAX",
23
- "MIN",
24
- "MEDIAN",
25
- "MEAN",
26
- "SUM",
27
- "STD_DEV",
28
- "NONE"
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
- "type": "string",
19
- "enum": [
20
- "FIRST",
21
- "LAST",
22
- "COUNT",
23
- "MAX",
24
- "MIN",
25
- "MEDIAN",
26
- "MEAN",
27
- "SUM",
28
- "STD_DEV",
29
- "NONE"
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.clearStorageEntries",
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",
@@ -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.clearStorageEntries",
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.9.2
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-01-10 00:00:00.000000000 Z
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
- rubyforge_project:
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