losant_rest 1.16.1 → 1.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1260 -316
  3. data/docs/applications.md +1 -1
  4. data/docs/instanceSandbox.md +135 -0
  5. data/docs/instanceSandboxes.md +53 -0
  6. data/lib/losant_rest/client.rb +10 -2
  7. data/lib/losant_rest/instance_sandbox.rb +181 -0
  8. data/lib/losant_rest/instance_sandboxes.rb +94 -0
  9. data/lib/losant_rest/version.rb +1 -1
  10. data/lib/losant_rest.rb +2 -0
  11. data/schemas/apiTokenPost.json +7 -1
  12. data/schemas/applicationDashboardPost.json +3 -0
  13. data/schemas/applicationExportPost.json +1 -0
  14. data/schemas/applicationSearchResult.json +2 -1
  15. data/schemas/applicationTemplateCategories.json +11 -0
  16. data/schemas/applicationTemplateCategory.json +11 -0
  17. data/schemas/dashboard.json +3 -0
  18. data/schemas/dashboardPatch.json +3 -0
  19. data/schemas/dashboardPost.json +3 -0
  20. data/schemas/dashboardSendReport.json +3 -0
  21. data/schemas/dashboards.json +3 -0
  22. data/schemas/dataExport.json +1 -0
  23. data/schemas/devicesDeletePost.json +5 -0
  24. data/schemas/devicesExportPayloadCountPost.json +1 -0
  25. data/schemas/devicesExportPost.json +1 -0
  26. data/schemas/devicesPatch.json +5 -0
  27. data/schemas/embeddedDeploymentExport.json +5 -0
  28. data/schemas/eventsExport.json +1 -0
  29. data/schemas/flowVersionsDeletePost.json +5 -0
  30. data/schemas/githubLogin.json +7 -1
  31. data/schemas/importIntoApplicationOptions.json +52 -0
  32. data/schemas/importNewApplicationOptions.json +44 -0
  33. data/schemas/instance.json +1 -0
  34. data/schemas/instanceOrg.json +30 -0
  35. data/schemas/instanceOrgPatch.json +29 -0
  36. data/schemas/instanceOrgPost.json +29 -0
  37. data/schemas/instanceOrgs.json +30 -0
  38. data/schemas/instancePatch.json +1 -0
  39. data/schemas/instanceReportOptionsPost.json +1 -0
  40. data/schemas/instanceSandbox.json +423 -0
  41. data/schemas/instanceSandboxes.json +48 -0
  42. data/schemas/notebookDataExportOptions.json +5 -0
  43. data/schemas/org.json +17 -0
  44. data/schemas/orgs.json +17 -0
  45. data/schemas/userCredentials.json +7 -1
  46. data/schemas/userPost.json +7 -1
  47. metadata +10 -2
@@ -0,0 +1,423 @@
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
+ "instanceSandboxId": {
10
+ "type": "string",
11
+ "pattern": "^[A-Fa-f\\d]{24}$"
12
+ },
13
+ "instanceId": {
14
+ "type": "string",
15
+ "pattern": "^[A-Fa-f\\d]{24}$"
16
+ },
17
+ "creationDate": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "permanentDeletion": {
22
+ "type": "string",
23
+ "format": "date-time"
24
+ },
25
+ "dataDeletion": {
26
+ "type": "string",
27
+ "format": "date-time"
28
+ },
29
+ "lastUpdated": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "lastSuccessfulLogin": {
34
+ "type": "string",
35
+ "format": "date-time"
36
+ },
37
+ "lastFailedLogin": {
38
+ "type": "string",
39
+ "format": "date-time"
40
+ },
41
+ "failedLoginCount": {
42
+ "type": "number"
43
+ },
44
+ "passwordLastUpdated": {
45
+ "type": "string",
46
+ "format": "date-time"
47
+ },
48
+ "email": {
49
+ "type": "string",
50
+ "format": "email",
51
+ "maxLength": 1024
52
+ },
53
+ "firstName": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 1024
57
+ },
58
+ "lastName": {
59
+ "type": "string",
60
+ "maxLength": 1024
61
+ },
62
+ "companyName": {
63
+ "type": "string",
64
+ "maxLength": 1024
65
+ },
66
+ "title": {
67
+ "type": "string",
68
+ "maxLength": 1024
69
+ },
70
+ "phoneNumber": {
71
+ "type": "string",
72
+ "maxLength": 1024
73
+ },
74
+ "location": {
75
+ "type": "string",
76
+ "maxLength": 1024
77
+ },
78
+ "url": {
79
+ "type": "string",
80
+ "maxLength": 1024
81
+ },
82
+ "tokenCutoff": {
83
+ "type": "string",
84
+ "format": "date-time"
85
+ },
86
+ "emailVerified": {
87
+ "type": "boolean"
88
+ },
89
+ "needsToVerifyEmail": {
90
+ "type": "boolean"
91
+ },
92
+ "twoFactorAuthEnabled": {
93
+ "type": "boolean"
94
+ },
95
+ "fullName": {
96
+ "type": "string"
97
+ },
98
+ "githubName": {
99
+ "type": "string"
100
+ },
101
+ "avatarUrl": {
102
+ "type": "string",
103
+ "format": "uri",
104
+ "maxLength": 1024
105
+ },
106
+ "limits": {
107
+ "type": "object",
108
+ "properties": {
109
+ "apitoken": {
110
+ "type": "integer"
111
+ },
112
+ "application": {
113
+ "type": "integer"
114
+ },
115
+ "applicationkey": {
116
+ "type": "integer"
117
+ },
118
+ "dashboard": {
119
+ "type": "integer"
120
+ },
121
+ "datatable": {
122
+ "type": "integer"
123
+ },
124
+ "device": {
125
+ "type": "integer"
126
+ },
127
+ "devicerecipe": {
128
+ "type": "integer"
129
+ },
130
+ "experiencedomain": {
131
+ "type": "integer"
132
+ },
133
+ "experienceendpoint": {
134
+ "type": "integer"
135
+ },
136
+ "experiencegroup": {
137
+ "type": "integer"
138
+ },
139
+ "experienceslug": {
140
+ "type": "integer"
141
+ },
142
+ "experienceuser": {
143
+ "type": "integer"
144
+ },
145
+ "experienceversion": {
146
+ "type": "integer"
147
+ },
148
+ "experienceview": {
149
+ "type": "integer"
150
+ },
151
+ "file": {
152
+ "type": "integer"
153
+ },
154
+ "flow": {
155
+ "type": "integer"
156
+ },
157
+ "integration": {
158
+ "type": "integer"
159
+ },
160
+ "notebook": {
161
+ "type": "integer"
162
+ },
163
+ "webhook": {
164
+ "type": "integer"
165
+ },
166
+ "dataTTL": {
167
+ "type": "integer"
168
+ },
169
+ "payload": {
170
+ "type": "integer"
171
+ },
172
+ "storage": {
173
+ "type": "integer"
174
+ },
175
+ "notebookMinutesPerRun": {
176
+ "type": "integer"
177
+ },
178
+ "notebookMinutesPerMonth": {
179
+ "type": "integer"
180
+ },
181
+ "notebookInParallel": {
182
+ "type": "integer"
183
+ },
184
+ "experienceFlowSlots": {
185
+ "type": "integer"
186
+ },
187
+ "applicationFlowSlots": {
188
+ "type": "integer"
189
+ }
190
+ },
191
+ "additionalProperties": false
192
+ },
193
+ "summary": {
194
+ "type": "object",
195
+ "properties": {
196
+ "apiTokenCount": {
197
+ "type": "integer"
198
+ },
199
+ "appCount": {
200
+ "type": "integer"
201
+ },
202
+ "dashCount": {
203
+ "type": "integer"
204
+ },
205
+ "dataTableCount": {
206
+ "type": "integer"
207
+ },
208
+ "deviceCount": {
209
+ "type": "integer"
210
+ },
211
+ "deviceRecipeCount": {
212
+ "type": "integer"
213
+ },
214
+ "experienceEndpointCount": {
215
+ "type": "integer"
216
+ },
217
+ "experienceGroupCount": {
218
+ "type": "integer"
219
+ },
220
+ "experienceSlugCount": {
221
+ "type": "integer"
222
+ },
223
+ "experienceUserCount": {
224
+ "type": "integer"
225
+ },
226
+ "experienceVersionCount": {
227
+ "type": "integer"
228
+ },
229
+ "experienceViewCount": {
230
+ "type": "integer"
231
+ },
232
+ "fileCount": {
233
+ "type": "integer"
234
+ },
235
+ "flowCount": {
236
+ "type": "integer"
237
+ },
238
+ "integrationCount": {
239
+ "type": "integer"
240
+ },
241
+ "keyCount": {
242
+ "type": "integer"
243
+ },
244
+ "orgCount": {
245
+ "type": "integer"
246
+ },
247
+ "payloadCount": {
248
+ "title": "Payload Stats",
249
+ "description": "Schema for the result of a payload stats request",
250
+ "type": "object",
251
+ "properties": {
252
+ "dataTable": {
253
+ "type": "object",
254
+ "patternProperties": {
255
+ ".*": {
256
+ "type": "number"
257
+ }
258
+ }
259
+ },
260
+ "deviceCommand": {
261
+ "type": "object",
262
+ "patternProperties": {
263
+ ".*": {
264
+ "type": "number"
265
+ }
266
+ }
267
+ },
268
+ "deviceConnect": {
269
+ "type": "object",
270
+ "patternProperties": {
271
+ ".*": {
272
+ "type": "number"
273
+ }
274
+ }
275
+ },
276
+ "deviceDisconnect": {
277
+ "type": "object",
278
+ "patternProperties": {
279
+ ".*": {
280
+ "type": "number"
281
+ }
282
+ }
283
+ },
284
+ "deviceState": {
285
+ "type": "object",
286
+ "patternProperties": {
287
+ ".*": {
288
+ "type": "number"
289
+ }
290
+ }
291
+ },
292
+ "endpoint": {
293
+ "type": "object",
294
+ "patternProperties": {
295
+ ".*": {
296
+ "type": "number"
297
+ }
298
+ }
299
+ },
300
+ "event": {
301
+ "type": "object",
302
+ "patternProperties": {
303
+ ".*": {
304
+ "type": "number"
305
+ }
306
+ }
307
+ },
308
+ "flowError": {
309
+ "type": "object",
310
+ "patternProperties": {
311
+ ".*": {
312
+ "type": "number"
313
+ }
314
+ }
315
+ },
316
+ "integration": {
317
+ "type": "object",
318
+ "patternProperties": {
319
+ ".*": {
320
+ "type": "number"
321
+ }
322
+ }
323
+ },
324
+ "mqttIn": {
325
+ "type": "object",
326
+ "patternProperties": {
327
+ ".*": {
328
+ "type": "number"
329
+ }
330
+ }
331
+ },
332
+ "mqttOut": {
333
+ "type": "object",
334
+ "patternProperties": {
335
+ ".*": {
336
+ "type": "number"
337
+ }
338
+ }
339
+ },
340
+ "notebook": {
341
+ "type": "object",
342
+ "patternProperties": {
343
+ ".*": {
344
+ "type": "number"
345
+ }
346
+ }
347
+ },
348
+ "timer": {
349
+ "type": "object",
350
+ "patternProperties": {
351
+ ".*": {
352
+ "type": "number"
353
+ }
354
+ }
355
+ },
356
+ "virtualButton": {
357
+ "type": "object",
358
+ "patternProperties": {
359
+ ".*": {
360
+ "type": "number"
361
+ }
362
+ }
363
+ },
364
+ "webhook": {
365
+ "type": "object",
366
+ "patternProperties": {
367
+ ".*": {
368
+ "type": "number"
369
+ }
370
+ }
371
+ }
372
+ }
373
+ },
374
+ "storageStats": {
375
+ "type": "object",
376
+ "properties": {
377
+ "count": {
378
+ "type": "integer"
379
+ },
380
+ "size": {
381
+ "type": "integer"
382
+ }
383
+ }
384
+ },
385
+ "webhookCount": {
386
+ "type": "integer"
387
+ }
388
+ }
389
+ },
390
+ "currentPeriodStart": {
391
+ "type": "string",
392
+ "format": "date-time"
393
+ },
394
+ "currentPeriodEnd": {
395
+ "type": "string",
396
+ "format": "date-time"
397
+ },
398
+ "ssoLinked": {
399
+ "type": "boolean"
400
+ },
401
+ "orgs": {
402
+ "type": "array",
403
+ "items": {
404
+ "type": "object",
405
+ "properties": {
406
+ "id": {
407
+ "type": "string",
408
+ "pattern": "^[A-Fa-f\\d]{24}$"
409
+ },
410
+ "iconColor": {
411
+ "type": "string",
412
+ "maxLength": 64
413
+ },
414
+ "name": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 255
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "#/definitions/instanceSandbox"
9
+ }
10
+ },
11
+ "count": {
12
+ "type": "integer"
13
+ },
14
+ "limit": {
15
+ "type": "integer"
16
+ },
17
+ "startingAfterId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Fa-f\\d]{24}$"
20
+ },
21
+ "endingBeforeId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Fa-f\\d]{24}$"
24
+ },
25
+ "filter": {
26
+ "type": "string"
27
+ },
28
+ "filterField": {
29
+ "type": "string"
30
+ },
31
+ "sortField": {
32
+ "type": "string"
33
+ },
34
+ "sortDirection": {
35
+ "type": "string",
36
+ "enum": [
37
+ "asc",
38
+ "desc",
39
+ "ASC",
40
+ "DESC",
41
+ ""
42
+ ]
43
+ },
44
+ "hasMore": {
45
+ "type": "boolean"
46
+ }
47
+ }
48
+ }
@@ -32,6 +32,11 @@
32
32
  "templateContext": {
33
33
  "type": "string",
34
34
  "maxLength": 32767
35
+ },
36
+ "callbackUrl": {
37
+ "type": "string",
38
+ "format": "uri",
39
+ "maxLength": 1024
35
40
  }
36
41
  },
37
42
  "additionalProperties": false
data/schemas/org.json CHANGED
@@ -460,6 +460,23 @@
460
460
  "maxLength": 45,
461
461
  "minLength": 3
462
462
  }
463
+ },
464
+ "disabledAt": {
465
+ "oneOf": [
466
+ {
467
+ "type": "boolean",
468
+ "enum": [
469
+ false
470
+ ]
471
+ },
472
+ {
473
+ "type": "string",
474
+ "format": "date-time"
475
+ }
476
+ ]
477
+ },
478
+ "isReadOnly": {
479
+ "type": "boolean"
463
480
  }
464
481
  }
465
482
  }
data/schemas/orgs.json CHANGED
@@ -467,6 +467,23 @@
467
467
  "maxLength": 45,
468
468
  "minLength": 3
469
469
  }
470
+ },
471
+ "disabledAt": {
472
+ "oneOf": [
473
+ {
474
+ "type": "boolean",
475
+ "enum": [
476
+ false
477
+ ]
478
+ },
479
+ {
480
+ "type": "string",
481
+ "format": "date-time"
482
+ }
483
+ ]
484
+ },
485
+ "isReadOnly": {
486
+ "type": "boolean"
470
487
  }
471
488
  }
472
489
  }
@@ -391,7 +391,13 @@
391
391
  "instanceCustomNode.patch",
392
392
  "instanceCustomNode.delete",
393
393
  "instanceCustomNode.errors",
394
- "instanceCustomNode.stats"
394
+ "instanceCustomNode.stats",
395
+ "instanceSandbox.*",
396
+ "instanceSandbox.get",
397
+ "instanceSandbox.delete",
398
+ "instanceSandbox.undelete",
399
+ "instanceSandboxes.*",
400
+ "instanceSandboxes.get"
395
401
  ]
396
402
  },
397
403
  {
@@ -449,7 +449,13 @@
449
449
  "instanceCustomNode.patch",
450
450
  "instanceCustomNode.delete",
451
451
  "instanceCustomNode.errors",
452
- "instanceCustomNode.stats"
452
+ "instanceCustomNode.stats",
453
+ "instanceSandbox.*",
454
+ "instanceSandbox.get",
455
+ "instanceSandbox.delete",
456
+ "instanceSandbox.undelete",
457
+ "instanceSandboxes.*",
458
+ "instanceSandboxes.get"
453
459
  ]
454
460
  },
455
461
  {
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.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-05 00:00:00.000000000 Z
11
+ date: 2022-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -150,6 +150,8 @@ files:
150
150
  - docs/instanceOrgMember.md
151
151
  - docs/instanceOrgMembers.md
152
152
  - docs/instanceOrgs.md
153
+ - docs/instanceSandbox.md
154
+ - docs/instanceSandboxes.md
153
155
  - docs/instances.md
154
156
  - docs/integration.md
155
157
  - docs/integrations.md
@@ -236,6 +238,8 @@ files:
236
238
  - lib/losant_rest/instance_org_member.rb
237
239
  - lib/losant_rest/instance_org_members.rb
238
240
  - lib/losant_rest/instance_orgs.rb
241
+ - lib/losant_rest/instance_sandbox.rb
242
+ - lib/losant_rest/instance_sandboxes.rb
239
243
  - lib/losant_rest/instances.rb
240
244
  - lib/losant_rest/integration.rb
241
245
  - lib/losant_rest/integrations.rb
@@ -439,6 +443,8 @@ files:
439
443
  - schemas/githubLogin.json
440
444
  - schemas/historicalSummaries.json
441
445
  - schemas/historicalSummary.json
446
+ - schemas/importIntoApplicationOptions.json
447
+ - schemas/importNewApplicationOptions.json
442
448
  - schemas/instance.json
443
449
  - schemas/instanceCustomNode.json
444
450
  - schemas/instanceCustomNodePatch.json
@@ -458,6 +464,8 @@ files:
458
464
  - schemas/instanceOrgs.json
459
465
  - schemas/instancePatch.json
460
466
  - schemas/instanceReportOptionsPost.json
467
+ - schemas/instanceSandbox.json
468
+ - schemas/instanceSandboxes.json
461
469
  - schemas/instances.json
462
470
  - schemas/integration.json
463
471
  - schemas/integrationPatch.json