losant_rest 1.7.2 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +7347 -4603
  3. data/docs/application.md +47 -0
  4. data/docs/applicationApiToken.md +3 -0
  5. data/docs/applicationApiTokens.md +2 -0
  6. data/docs/applicationKey.md +3 -0
  7. data/docs/applicationKeys.md +2 -0
  8. data/docs/applications.md +2 -0
  9. data/docs/auditLog.md +1 -0
  10. data/docs/auditLogs.md +1 -0
  11. data/docs/auth.md +4 -0
  12. data/docs/dashboard.md +4 -0
  13. data/docs/dashboards.md +2 -0
  14. data/docs/data.md +2 -0
  15. data/docs/dataTable.md +5 -0
  16. data/docs/dataTableRow.md +3 -0
  17. data/docs/dataTableRows.md +9 -3
  18. data/docs/dataTables.md +2 -0
  19. data/docs/device.md +12 -0
  20. data/docs/deviceRecipe.md +4 -0
  21. data/docs/deviceRecipes.md +2 -0
  22. data/docs/devices.md +4 -0
  23. data/docs/edgeDeployments.md +4 -0
  24. data/docs/event.md +3 -0
  25. data/docs/events.md +4 -0
  26. data/docs/experience.md +52 -8
  27. data/docs/experienceDomain.md +3 -0
  28. data/docs/experienceDomains.md +2 -0
  29. data/docs/experienceEndpoint.md +4 -0
  30. data/docs/experienceEndpoints.md +9 -1
  31. data/docs/experienceGroup.md +3 -0
  32. data/docs/experienceGroups.md +2 -0
  33. data/docs/experienceSlug.md +133 -0
  34. data/docs/experienceSlugs.md +87 -0
  35. data/docs/experienceUser.md +3 -0
  36. data/docs/experienceUsers.md +2 -0
  37. data/docs/experienceVersion.md +133 -0
  38. data/docs/experienceVersions.md +93 -0
  39. data/docs/experienceView.md +4 -0
  40. data/docs/experienceViews.md +3 -0
  41. data/docs/file.md +4 -0
  42. data/docs/files.md +2 -0
  43. data/docs/flow.md +8 -0
  44. data/docs/flowVersion.md +4 -0
  45. data/docs/flowVersions.md +2 -0
  46. data/docs/flows.md +54 -1
  47. data/docs/integration.md +3 -0
  48. data/docs/integrations.md +2 -0
  49. data/docs/me.md +19 -3
  50. data/docs/org.md +10 -0
  51. data/docs/orgInvites.md +2 -0
  52. data/docs/orgs.md +2 -0
  53. data/docs/solution.md +3 -0
  54. data/docs/solutionUser.md +3 -0
  55. data/docs/solutionUsers.md +2 -0
  56. data/docs/solutions.md +2 -0
  57. data/docs/webhook.md +3 -0
  58. data/docs/webhooks.md +2 -0
  59. data/lib/losant_rest/application.rb +47 -0
  60. data/lib/losant_rest/client.rb +18 -2
  61. data/lib/losant_rest/data_table_rows.rb +3 -3
  62. data/lib/losant_rest/experience.rb +62 -11
  63. data/lib/losant_rest/experience_endpoint.rb +2 -0
  64. data/lib/losant_rest/experience_endpoints.rb +11 -1
  65. data/lib/losant_rest/experience_slug.rb +174 -0
  66. data/lib/losant_rest/experience_slugs.rb +124 -0
  67. data/lib/losant_rest/experience_version.rb +174 -0
  68. data/lib/losant_rest/experience_versions.rb +136 -0
  69. data/lib/losant_rest/experience_view.rb +2 -0
  70. data/lib/losant_rest/experience_views.rb +2 -0
  71. data/lib/losant_rest/flows.rb +66 -1
  72. data/lib/losant_rest/version.rb +1 -1
  73. data/lib/losant_rest.rb +4 -0
  74. data/schemas/apiTokens.json +128 -0
  75. data/schemas/application.json +6 -0
  76. data/schemas/applicationApiTokenPost.json +18 -0
  77. data/schemas/applications.json +6 -0
  78. data/schemas/dataTableRowInMultiple.json +20 -0
  79. data/schemas/dataTableRowInsert.json +42 -0
  80. data/schemas/dataTableRowInsertResult.json +54 -0
  81. data/schemas/edgeDeployment.json +119 -0
  82. data/schemas/emailVerificationVerify.json +20 -0
  83. data/schemas/experienceBootstrapOptions.json +25 -0
  84. data/schemas/experienceBootstrapResult.json +16 -0
  85. data/schemas/experienceDomain.json +5 -0
  86. data/schemas/experienceDomainPatch.json +12 -0
  87. data/schemas/experienceDomainPost.json +12 -0
  88. data/schemas/experienceDomains.json +5 -0
  89. data/schemas/experienceSlug.json +37 -0
  90. data/schemas/experienceSlugPatch.json +25 -0
  91. data/schemas/experienceSlugPost.json +28 -0
  92. data/schemas/experienceSlugs.json +57 -0
  93. data/schemas/experienceVersion.json +82 -0
  94. data/schemas/experienceVersionPatch.json +19 -0
  95. data/schemas/experienceVersionPost.json +35 -0
  96. data/schemas/experienceVersions.json +102 -0
  97. data/schemas/file.json +3 -0
  98. data/schemas/files.json +3 -0
  99. data/schemas/flow.json +5 -0
  100. data/schemas/flowPatch.json +1 -0
  101. data/schemas/flowPost.json +2 -0
  102. data/schemas/flowVersion.json +622 -433
  103. data/schemas/flowVersionPost.json +1 -0
  104. data/schemas/flowVersions.json +622 -433
  105. data/schemas/flows.json +6 -0
  106. data/schemas/flowsImportPost.json +3 -0
  107. data/schemas/flowsImportResult.json +628 -434
  108. data/schemas/githubLogin.json +18 -0
  109. data/schemas/me.json +12 -0
  110. data/schemas/mqttPublishBody.json +20 -0
  111. data/schemas/org.json +12 -0
  112. data/schemas/orgs.json +12 -0
  113. data/schemas/passwordResetFinish.json +31 -0
  114. data/schemas/passwordResetInput.json +19 -0
  115. data/schemas/passwordResetResponse.json +18 -0
  116. data/schemas/solutionMe.json +150 -0
  117. data/schemas/userCredentials.json +18 -0
  118. data/schemas/userPost.json +388 -0
  119. metadata +32 -2
@@ -0,0 +1,388 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "email": {
6
+ "type": "string",
7
+ "format": "email",
8
+ "maxLength": 1024
9
+ },
10
+ "firstName": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 1024
14
+ },
15
+ "lastName": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 1024
19
+ },
20
+ "companyName": {
21
+ "type": "string",
22
+ "maxLength": 1024
23
+ },
24
+ "title": {
25
+ "type": "string",
26
+ "maxLength": 1024
27
+ },
28
+ "phoneNumber": {
29
+ "type": "string",
30
+ "maxLength": 1024
31
+ },
32
+ "location": {
33
+ "type": "string",
34
+ "maxLength": 1024
35
+ },
36
+ "url": {
37
+ "type": "string",
38
+ "maxLength": 1024
39
+ },
40
+ "oauth": {
41
+ "type": "object",
42
+ "properties": {
43
+ "service": {
44
+ "type": "string"
45
+ },
46
+ "accessToken": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "service",
52
+ "accessToken"
53
+ ]
54
+ },
55
+ "password": {
56
+ "type": "string",
57
+ "minLength": 8,
58
+ "maxLength": 2048,
59
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
60
+ },
61
+ "acceptTerms": {
62
+ "enum": [
63
+ "on"
64
+ ]
65
+ },
66
+ "hsToken": {
67
+ "type": "string",
68
+ "maxLength": 1024
69
+ },
70
+ "iotJourneyStage": {
71
+ "type": "string",
72
+ "maxLength": 1024
73
+ },
74
+ "requestedScopes": {
75
+ "type": "array",
76
+ "uniqueItems": true,
77
+ "items": {
78
+ "oneOf": [
79
+ {
80
+ "oneOf": [
81
+ {
82
+ "type": "string",
83
+ "enum": [
84
+ "all.Application",
85
+ "all.Application.read",
86
+ "all.Device",
87
+ "all.Device.read",
88
+ "application.*",
89
+ "applicationApiToken.*",
90
+ "applicationApiTokens.*",
91
+ "applicationKey.*",
92
+ "applicationKeys.*",
93
+ "data.*",
94
+ "dataTable.*",
95
+ "dataTables.*",
96
+ "dataTableRow.*",
97
+ "dataTableRows.*",
98
+ "device.*",
99
+ "deviceRecipe.*",
100
+ "deviceRecipes.*",
101
+ "devices.*",
102
+ "edgeDeployments.*",
103
+ "event.*",
104
+ "events.*",
105
+ "experience.*",
106
+ "experienceDomain.*",
107
+ "experienceDomains.*",
108
+ "experienceEndpoint.*",
109
+ "experienceEndpoints.*",
110
+ "experienceGroup.*",
111
+ "experienceGroups.*",
112
+ "experienceSlug.*",
113
+ "experienceSlugs.*",
114
+ "experienceUser.*",
115
+ "experienceUsers.*",
116
+ "experienceVersion.*",
117
+ "experienceVersions.*",
118
+ "experienceView.*",
119
+ "experienceViews.*",
120
+ "integration.*",
121
+ "integrations.*",
122
+ "file.*",
123
+ "files.*",
124
+ "flow.*",
125
+ "flows.*",
126
+ "flowVersion.*",
127
+ "flowVersions.*",
128
+ "webhook.*",
129
+ "webhooks.*",
130
+ "application.archiveData",
131
+ "application.backfillArchiveData",
132
+ "application.debug",
133
+ "application.delete",
134
+ "application.get",
135
+ "application.mqttPublishMessage",
136
+ "application.mqttSubscriptionStream",
137
+ "application.patch",
138
+ "application.payloadCounts",
139
+ "applicationApiToken.delete",
140
+ "applicationApiToken.get",
141
+ "applicationApiToken.patch",
142
+ "applicationApiTokens.get",
143
+ "applicationApiTokens.post",
144
+ "applicationKey.delete",
145
+ "applicationKey.get",
146
+ "applicationKey.patch",
147
+ "applicationKeys.get",
148
+ "applicationKeys.post",
149
+ "data.lastValueQuery",
150
+ "data.timeSeriesQuery",
151
+ "dataTable.addColumn",
152
+ "dataTable.delete",
153
+ "dataTable.get",
154
+ "dataTable.patch",
155
+ "dataTable.removeColumn",
156
+ "dataTableRow.delete",
157
+ "dataTableRow.get",
158
+ "dataTableRow.patch",
159
+ "dataTableRows.get",
160
+ "dataTableRows.post",
161
+ "dataTableRows.query",
162
+ "dataTableRows.export",
163
+ "dataTableRows.delete",
164
+ "dataTableRows.truncate",
165
+ "dataTables.get",
166
+ "dataTables.post",
167
+ "device.commandStream",
168
+ "device.debug",
169
+ "device.delete",
170
+ "device.export",
171
+ "device.get",
172
+ "device.getCommand",
173
+ "device.getCompositeState",
174
+ "device.getLogEntries",
175
+ "device.getState",
176
+ "device.patch",
177
+ "device.removeData",
178
+ "device.sendCommand",
179
+ "device.sendState",
180
+ "device.setConnectionStatus",
181
+ "device.stateStream",
182
+ "deviceRecipe.bulkCreate",
183
+ "deviceRecipe.delete",
184
+ "deviceRecipe.get",
185
+ "deviceRecipe.patch",
186
+ "deviceRecipes.get",
187
+ "deviceRecipes.post",
188
+ "devices.detailedSummary",
189
+ "devices.export",
190
+ "devices.get",
191
+ "devices.post",
192
+ "devices.sendCommand",
193
+ "edgeDeployments.get",
194
+ "edgeDeployments.release",
195
+ "edgeDeployments.remove",
196
+ "edgeDeployments.replace",
197
+ "event.delete",
198
+ "event.get",
199
+ "event.patch",
200
+ "events.get",
201
+ "events.mostRecentBySeverity",
202
+ "events.patch",
203
+ "events.post",
204
+ "experience.delete",
205
+ "experience.bootstrap",
206
+ "experienceDomain.delete",
207
+ "experienceDomain.get",
208
+ "experienceDomain.patch",
209
+ "experienceDomains.get",
210
+ "experienceDomains.post",
211
+ "experienceEndpoint.delete",
212
+ "experienceEndpoint.get",
213
+ "experienceEndpoint.patch",
214
+ "experienceEndpoints.get",
215
+ "experienceEndpoints.post",
216
+ "experienceEndpoints.stats",
217
+ "experienceGroup.delete",
218
+ "experienceGroup.get",
219
+ "experienceGroup.patch",
220
+ "experienceGroups.detailedSummary",
221
+ "experienceGroups.get",
222
+ "experienceGroups.post",
223
+ "experienceSlug.delete",
224
+ "experienceSlug.get",
225
+ "experienceSlug.patch",
226
+ "experienceSlugs.get",
227
+ "experienceSlugs.post",
228
+ "experienceUser.delete",
229
+ "experienceUser.get",
230
+ "experienceUser.patch",
231
+ "experienceUsers.detailedSummary",
232
+ "experienceUsers.get",
233
+ "experienceUsers.post",
234
+ "experienceVersion.delete",
235
+ "experienceVersion.get",
236
+ "experienceVersion.patch",
237
+ "experienceVersions.get",
238
+ "experienceVersions.post",
239
+ "experienceView.debug",
240
+ "experienceView.delete",
241
+ "experienceView.get",
242
+ "experienceView.patch",
243
+ "experienceViews.debug",
244
+ "experienceViews.detailedSummary",
245
+ "experienceViews.get",
246
+ "experienceViews.post",
247
+ "file.get",
248
+ "file.patch",
249
+ "file.move",
250
+ "file.delete",
251
+ "files.get",
252
+ "files.post",
253
+ "flow.debug",
254
+ "flow.delete",
255
+ "flow.clearStorageEntries",
256
+ "flow.get",
257
+ "flow.getStorageEntries",
258
+ "flow.log",
259
+ "flow.patch",
260
+ "flow.pressVirtualButton",
261
+ "flow.setStorageEntry",
262
+ "flows.get",
263
+ "flows.getByVersion",
264
+ "flows.import",
265
+ "flows.post",
266
+ "flowVersion.delete",
267
+ "flowVersion.get",
268
+ "flowVersion.log",
269
+ "flowVersion.patch",
270
+ "flowVersions.get",
271
+ "flowVersions.post",
272
+ "integration.delete",
273
+ "integration.get",
274
+ "integration.patch",
275
+ "integrations.get",
276
+ "integrations.post",
277
+ "webhook.delete",
278
+ "webhook.get",
279
+ "webhook.patch",
280
+ "webhooks.get",
281
+ "webhooks.post"
282
+ ]
283
+ },
284
+ {
285
+ "type": "string",
286
+ "enum": [
287
+ "all.Organization",
288
+ "all.Organization.read",
289
+ "applications.*",
290
+ "auditLog.*",
291
+ "auditLogs.*",
292
+ "dashboard.*",
293
+ "dashboards.*",
294
+ "org.*",
295
+ "solution.*",
296
+ "solutions.*",
297
+ "solutionUser.*",
298
+ "solutionUsers.*",
299
+ "applications.get",
300
+ "applications.post",
301
+ "auditLog.get",
302
+ "auditLogs.get",
303
+ "dashboard.patch",
304
+ "dashboard.delete",
305
+ "dashboards.get",
306
+ "dashboards.post",
307
+ "org.get",
308
+ "org.patch",
309
+ "org.delete",
310
+ "org.pendingInvites",
311
+ "org.inviteMember",
312
+ "org.revokeInvite",
313
+ "org.modifyMember",
314
+ "org.removeMember",
315
+ "org.payloadCounts",
316
+ "org.invoices",
317
+ "org.currentCard",
318
+ "org.chargeDetails",
319
+ "org.transferResources",
320
+ "solutionUser.get",
321
+ "solutionUser.patch",
322
+ "solutionUser.delete",
323
+ "solutionUsers.get",
324
+ "solutionUsers.post",
325
+ "solution.get",
326
+ "solution.patch",
327
+ "solution.delete",
328
+ "solutions.get",
329
+ "solutions.post"
330
+ ]
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "type": "string",
336
+ "enum": [
337
+ "all.User",
338
+ "all.User.read",
339
+ "me.*",
340
+ "orgs.*",
341
+ "me.get",
342
+ "me.patch",
343
+ "me.delete",
344
+ "me.verifyEmail",
345
+ "me.changePassword",
346
+ "me.enableTwoFactorAuth",
347
+ "me.disableTwoFactorAuth",
348
+ "me.disconnectGithub",
349
+ "me.connectGithub",
350
+ "me.disconnectTwitter",
351
+ "me.connectTwitter",
352
+ "me.addRecentItem",
353
+ "me.fetchRecentItems",
354
+ "me.payloadCounts",
355
+ "me.transferResources",
356
+ "orgs.get",
357
+ "orgs.post"
358
+ ]
359
+ }
360
+ ]
361
+ }
362
+ },
363
+ "tokenTTL": {
364
+ "type": "integer",
365
+ "minimum": 0
366
+ }
367
+ },
368
+ "anyOf": [
369
+ {
370
+ "required": [
371
+ "email",
372
+ "firstName",
373
+ "lastName",
374
+ "password",
375
+ "acceptTerms"
376
+ ]
377
+ },
378
+ {
379
+ "required": [
380
+ "email",
381
+ "firstName",
382
+ "lastName",
383
+ "oauth",
384
+ "acceptTerms"
385
+ ]
386
+ }
387
+ ]
388
+ }
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.7.2
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-27 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -112,8 +112,12 @@ files:
112
112
  - docs/experienceEndpoints.md
113
113
  - docs/experienceGroup.md
114
114
  - docs/experienceGroups.md
115
+ - docs/experienceSlug.md
116
+ - docs/experienceSlugs.md
115
117
  - docs/experienceUser.md
116
118
  - docs/experienceUsers.md
119
+ - docs/experienceVersion.md
120
+ - docs/experienceVersions.md
117
121
  - docs/experienceView.md
118
122
  - docs/experienceViews.md
119
123
  - docs/file.md
@@ -169,8 +173,12 @@ files:
169
173
  - lib/losant_rest/experience_endpoints.rb
170
174
  - lib/losant_rest/experience_group.rb
171
175
  - lib/losant_rest/experience_groups.rb
176
+ - lib/losant_rest/experience_slug.rb
177
+ - lib/losant_rest/experience_slugs.rb
172
178
  - lib/losant_rest/experience_user.rb
173
179
  - lib/losant_rest/experience_users.rb
180
+ - lib/losant_rest/experience_version.rb
181
+ - lib/losant_rest/experience_versions.rb
174
182
  - lib/losant_rest/experience_view.rb
175
183
  - lib/losant_rest/experience_views.rb
176
184
  - lib/losant_rest/file.rb
@@ -196,6 +204,7 @@ files:
196
204
  - losant_rest.gemspec
197
205
  - schemas/apiToken.json
198
206
  - schemas/apiTokenPatch.json
207
+ - schemas/apiTokens.json
199
208
  - schemas/application.json
200
209
  - schemas/applicationApiTokenPost.json
201
210
  - schemas/applicationKey.json
@@ -225,6 +234,9 @@ files:
225
234
  - schemas/dataTablePost.json
226
235
  - schemas/dataTableQuery.json
227
236
  - schemas/dataTableRow.json
237
+ - schemas/dataTableRowInMultiple.json
238
+ - schemas/dataTableRowInsert.json
239
+ - schemas/dataTableRowInsertResult.json
228
240
  - schemas/dataTableRowInsertUpdate.json
229
241
  - schemas/dataTableRows.json
230
242
  - schemas/dataTableRowsDelete.json
@@ -251,16 +263,20 @@ files:
251
263
  - schemas/deviceTagFilter.json
252
264
  - schemas/devices.json
253
265
  - schemas/disableTwoFactorAuth.json
266
+ - schemas/edgeDeployment.json
254
267
  - schemas/edgeDeploymentRelease.json
255
268
  - schemas/edgeDeploymentRemove.json
256
269
  - schemas/edgeDeploymentReplace.json
257
270
  - schemas/edgeDeployments.json
271
+ - schemas/emailVerificationVerify.json
258
272
  - schemas/enableTwoFactorAuth.json
259
273
  - schemas/error.json
260
274
  - schemas/event.json
261
275
  - schemas/eventPatch.json
262
276
  - schemas/eventPost.json
263
277
  - schemas/events.json
278
+ - schemas/experienceBootstrapOptions.json
279
+ - schemas/experienceBootstrapResult.json
264
280
  - schemas/experienceDomain.json
265
281
  - schemas/experienceDomainPatch.json
266
282
  - schemas/experienceDomainPost.json
@@ -274,10 +290,18 @@ files:
274
290
  - schemas/experienceGroupPatch.json
275
291
  - schemas/experienceGroupPost.json
276
292
  - schemas/experienceGroups.json
293
+ - schemas/experienceSlug.json
294
+ - schemas/experienceSlugPatch.json
295
+ - schemas/experienceSlugPost.json
296
+ - schemas/experienceSlugs.json
277
297
  - schemas/experienceUser.json
278
298
  - schemas/experienceUserPatch.json
279
299
  - schemas/experienceUserPost.json
280
300
  - schemas/experienceUsers.json
301
+ - schemas/experienceVersion.json
302
+ - schemas/experienceVersionPatch.json
303
+ - schemas/experienceVersionPost.json
304
+ - schemas/experienceVersions.json
281
305
  - schemas/experienceView.json
282
306
  - schemas/experienceViewPatch.json
283
307
  - schemas/experienceViewPost.json
@@ -310,6 +334,7 @@ files:
310
334
  - schemas/lastValueQuery.json
311
335
  - schemas/me.json
312
336
  - schemas/mePatch.json
337
+ - schemas/mqttPublishBody.json
313
338
  - schemas/multiDeviceCommand.json
314
339
  - schemas/org.json
315
340
  - schemas/orgInviteAction.json
@@ -321,11 +346,15 @@ files:
321
346
  - schemas/orgPatch.json
322
347
  - schemas/orgPost.json
323
348
  - schemas/orgs.json
349
+ - schemas/passwordResetFinish.json
350
+ - schemas/passwordResetInput.json
351
+ - schemas/passwordResetResponse.json
324
352
  - schemas/payloadCounts.json
325
353
  - schemas/recentItem.json
326
354
  - schemas/recentItemList.json
327
355
  - schemas/resourceTransfer.json
328
356
  - schemas/solution.json
357
+ - schemas/solutionMe.json
329
358
  - schemas/solutionPatch.json
330
359
  - schemas/solutionPost.json
331
360
  - schemas/solutionUser.json
@@ -338,6 +367,7 @@ files:
338
367
  - schemas/timeSeriesData.json
339
368
  - schemas/timeSeriesQuery.json
340
369
  - schemas/userCredentials.json
370
+ - schemas/userPost.json
341
371
  - schemas/virtualButtonPress.json
342
372
  - schemas/webhook.json
343
373
  - schemas/webhookPatch.json