losant_rest 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +5644 -846
  3. data/docs/applicationApiTokens.md +1 -1
  4. data/docs/applicationKeys.md +1 -1
  5. data/docs/applications.md +1 -1
  6. data/docs/dataTables.md +1 -1
  7. data/docs/deviceRecipes.md +1 -1
  8. data/docs/devices.md +1 -1
  9. data/docs/experienceEndpoints.md +1 -1
  10. data/docs/experienceGroups.md +1 -1
  11. data/docs/experienceUsers.md +1 -1
  12. data/docs/flow.md +2 -0
  13. data/docs/flowVersion.md +6 -4
  14. data/docs/flowVersions.md +4 -2
  15. data/docs/flows.md +44 -2
  16. data/docs/integrations.md +1 -1
  17. data/docs/orgs.md +1 -1
  18. data/docs/solutionUsers.md +1 -1
  19. data/docs/solutions.md +1 -1
  20. data/docs/webhooks.md +1 -1
  21. data/lib/losant_rest/application_api_tokens.rb +1 -1
  22. data/lib/losant_rest/application_keys.rb +1 -1
  23. data/lib/losant_rest/applications.rb +1 -1
  24. data/lib/losant_rest/client.rb +2 -2
  25. data/lib/losant_rest/data_tables.rb +1 -1
  26. data/lib/losant_rest/device_recipes.rb +1 -1
  27. data/lib/losant_rest/devices.rb +1 -1
  28. data/lib/losant_rest/experience_endpoints.rb +1 -1
  29. data/lib/losant_rest/experience_groups.rb +1 -1
  30. data/lib/losant_rest/experience_users.rb +1 -1
  31. data/lib/losant_rest/flow.rb +4 -0
  32. data/lib/losant_rest/flow_version.rb +8 -4
  33. data/lib/losant_rest/flow_versions.rb +6 -2
  34. data/lib/losant_rest/flows.rb +53 -2
  35. data/lib/losant_rest/integrations.rb +1 -1
  36. data/lib/losant_rest/orgs.rb +1 -1
  37. data/lib/losant_rest/solution_users.rb +1 -1
  38. data/lib/losant_rest/solutions.rb +1 -1
  39. data/lib/losant_rest/version.rb +1 -1
  40. data/lib/losant_rest/webhooks.rb +1 -1
  41. data/schemas/applicationApiTokenPost.json +2 -0
  42. data/schemas/auditLog.json +1 -0
  43. data/schemas/auditLogFilter.json +1 -0
  44. data/schemas/auditLogs.json +1 -0
  45. data/schemas/dashboard.json +7 -0
  46. data/schemas/dashboardPatch.json +7 -0
  47. data/schemas/dashboardPost.json +7 -0
  48. data/schemas/dashboards.json +7 -0
  49. data/schemas/deviceState.json +54 -0
  50. data/schemas/flow.json +334 -1
  51. data/schemas/flowPatch.json +327 -0
  52. data/schemas/flowPost.json +338 -1
  53. data/schemas/flowVersion.json +315 -0
  54. data/schemas/flowVersionPost.json +315 -0
  55. data/schemas/flowVersions.json +315 -0
  56. data/schemas/flows.json +336 -2
  57. data/schemas/flowsImportPost.json +994 -0
  58. data/schemas/flowsImportResult.json +1048 -0
  59. data/schemas/org.json +59 -1
  60. data/schemas/orgInviteInfo.json +3 -1
  61. data/schemas/orgInvitePost.json +59 -1
  62. data/schemas/orgInvites.json +59 -1
  63. data/schemas/orgMemberPatch.json +60 -3
  64. data/schemas/orgs.json +59 -1
  65. metadata +5 -2
@@ -65,6 +65,7 @@
65
65
  "integration",
66
66
  "mqttTopic",
67
67
  "request",
68
+ "customNodeStart",
68
69
  "timer",
69
70
  "udp",
70
71
  "virtualButton",
@@ -161,6 +162,320 @@
161
162
  "minimumAgentVersion": {
162
163
  "type": "string",
163
164
  "pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
165
+ },
166
+ "customNodeConfig": {
167
+ "type": "object",
168
+ "properties": {
169
+ "outputCount": {
170
+ "type": "number",
171
+ "enum": [
172
+ 1,
173
+ 2
174
+ ]
175
+ },
176
+ "resultMode": {
177
+ "type": "string",
178
+ "enum": [
179
+ "optional",
180
+ "required",
181
+ "none"
182
+ ]
183
+ },
184
+ "resultDescription": {
185
+ "type": "string",
186
+ "maxLength": 32767
187
+ },
188
+ "fields": {
189
+ "type": "array",
190
+ "maxItems": 100,
191
+ "items": {
192
+ "oneOf": [
193
+ {
194
+ "type": "object",
195
+ "properties": {
196
+ "type": {
197
+ "type": "string",
198
+ "enum": [
199
+ "checkbox"
200
+ ]
201
+ },
202
+ "label": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 1024
206
+ },
207
+ "id": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "maxLength": 1024
211
+ },
212
+ "description": {
213
+ "type": "string",
214
+ "maxLength": 32767
215
+ },
216
+ "defaultValue": {
217
+ "type": "boolean"
218
+ }
219
+ },
220
+ "additionalProperties": false,
221
+ "required": [
222
+ "type",
223
+ "label"
224
+ ]
225
+ },
226
+ {
227
+ "type": "object",
228
+ "properties": {
229
+ "type": {
230
+ "type": "string",
231
+ "enum": [
232
+ "select"
233
+ ]
234
+ },
235
+ "label": {
236
+ "type": "string",
237
+ "minLength": 1,
238
+ "maxLength": 1024
239
+ },
240
+ "id": {
241
+ "type": "string",
242
+ "minLength": 1,
243
+ "maxLength": 1024
244
+ },
245
+ "description": {
246
+ "type": "string",
247
+ "maxLength": 32767
248
+ },
249
+ "defaultValue": {
250
+ "type": "string",
251
+ "minLength": 1,
252
+ "maxLength": 1024
253
+ },
254
+ "options": {
255
+ "type": "array",
256
+ "minItems": 1,
257
+ "maxItems": 100,
258
+ "items": {
259
+ "type": "object",
260
+ "properties": {
261
+ "label": {
262
+ "type": "string",
263
+ "maxLength": 1024
264
+ },
265
+ "value": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 1024
269
+ }
270
+ },
271
+ "additionalProperties": false,
272
+ "required": [
273
+ "value"
274
+ ]
275
+ }
276
+ }
277
+ },
278
+ "additionalProperties": false,
279
+ "required": [
280
+ "type",
281
+ "label",
282
+ "defaultValue",
283
+ "options"
284
+ ]
285
+ },
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "type": {
290
+ "type": "string",
291
+ "enum": [
292
+ "stringTemplate"
293
+ ]
294
+ },
295
+ "label": {
296
+ "type": "string",
297
+ "minLength": 1,
298
+ "maxLength": 1024
299
+ },
300
+ "id": {
301
+ "type": "string",
302
+ "minLength": 1,
303
+ "maxLength": 1024
304
+ },
305
+ "description": {
306
+ "type": "string",
307
+ "maxLength": 32767
308
+ },
309
+ "defaultValue": {
310
+ "type": "string",
311
+ "maxLength": 1024
312
+ },
313
+ "required": {
314
+ "type": "boolean"
315
+ },
316
+ "validRegExp": {
317
+ "type": "string",
318
+ "maxLength": 1024
319
+ }
320
+ },
321
+ "additionalProperties": false,
322
+ "required": [
323
+ "type",
324
+ "label"
325
+ ]
326
+ },
327
+ {
328
+ "type": "object",
329
+ "properties": {
330
+ "type": {
331
+ "type": "string",
332
+ "enum": [
333
+ "numberTemplate"
334
+ ]
335
+ },
336
+ "label": {
337
+ "type": "string",
338
+ "minLength": 1,
339
+ "maxLength": 1024
340
+ },
341
+ "id": {
342
+ "type": "string",
343
+ "minLength": 1,
344
+ "maxLength": 1024
345
+ },
346
+ "description": {
347
+ "type": "string",
348
+ "maxLength": 32767
349
+ },
350
+ "defaultValue": {
351
+ "type": "number"
352
+ },
353
+ "required": {
354
+ "type": "boolean"
355
+ },
356
+ "validMin": {
357
+ "type": "number"
358
+ },
359
+ "validMax": {
360
+ "type": "number"
361
+ }
362
+ },
363
+ "additionalProperties": false,
364
+ "required": [
365
+ "type",
366
+ "label"
367
+ ]
368
+ },
369
+ {
370
+ "type": "object",
371
+ "properties": {
372
+ "type": {
373
+ "type": "string",
374
+ "enum": [
375
+ "jsonTemplate"
376
+ ]
377
+ },
378
+ "label": {
379
+ "type": "string",
380
+ "minLength": 1,
381
+ "maxLength": 1024
382
+ },
383
+ "id": {
384
+ "type": "string",
385
+ "minLength": 1,
386
+ "maxLength": 1024
387
+ },
388
+ "description": {
389
+ "type": "string",
390
+ "maxLength": 32767
391
+ },
392
+ "defaultValue": {
393
+ "type": "string",
394
+ "maxLength": 32767
395
+ },
396
+ "required": {
397
+ "type": "boolean"
398
+ }
399
+ },
400
+ "additionalProperties": false,
401
+ "required": [
402
+ "type",
403
+ "label"
404
+ ]
405
+ },
406
+ {
407
+ "type": "object",
408
+ "properties": {
409
+ "type": {
410
+ "type": "string",
411
+ "enum": [
412
+ "payloadPath"
413
+ ]
414
+ },
415
+ "label": {
416
+ "type": "string",
417
+ "minLength": 1,
418
+ "maxLength": 1024
419
+ },
420
+ "id": {
421
+ "type": "string",
422
+ "minLength": 1,
423
+ "maxLength": 1024
424
+ },
425
+ "description": {
426
+ "type": "string",
427
+ "maxLength": 32767
428
+ },
429
+ "required": {
430
+ "type": "boolean"
431
+ }
432
+ },
433
+ "additionalProperties": false,
434
+ "required": [
435
+ "type",
436
+ "label"
437
+ ]
438
+ },
439
+ {
440
+ "type": "object",
441
+ "properties": {
442
+ "type": {
443
+ "type": "string",
444
+ "enum": [
445
+ "section"
446
+ ]
447
+ },
448
+ "label": {
449
+ "type": "string",
450
+ "minLength": 1,
451
+ "maxLength": 1024
452
+ },
453
+ "id": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 1024
457
+ },
458
+ "description": {
459
+ "type": "string",
460
+ "maxLength": 32767
461
+ }
462
+ },
463
+ "additionalProperties": false,
464
+ "required": [
465
+ "type",
466
+ "label"
467
+ ]
468
+ }
469
+ ]
470
+ }
471
+ }
472
+ },
473
+ "additionalProperties": false,
474
+ "required": [
475
+ "outputCount",
476
+ "resultMode",
477
+ "fields"
478
+ ]
164
479
  }
165
480
  }
166
481
  }
@@ -41,6 +41,7 @@
41
41
  "integration",
42
42
  "mqttTopic",
43
43
  "request",
44
+ "customNodeStart",
44
45
  "timer",
45
46
  "udp",
46
47
  "virtualButton",
@@ -137,6 +138,320 @@
137
138
  "minimumAgentVersion": {
138
139
  "type": "string",
139
140
  "pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
141
+ },
142
+ "customNodeConfig": {
143
+ "type": "object",
144
+ "properties": {
145
+ "outputCount": {
146
+ "type": "number",
147
+ "enum": [
148
+ 1,
149
+ 2
150
+ ]
151
+ },
152
+ "resultMode": {
153
+ "type": "string",
154
+ "enum": [
155
+ "optional",
156
+ "required",
157
+ "none"
158
+ ]
159
+ },
160
+ "resultDescription": {
161
+ "type": "string",
162
+ "maxLength": 32767
163
+ },
164
+ "fields": {
165
+ "type": "array",
166
+ "maxItems": 100,
167
+ "items": {
168
+ "oneOf": [
169
+ {
170
+ "type": "object",
171
+ "properties": {
172
+ "type": {
173
+ "type": "string",
174
+ "enum": [
175
+ "checkbox"
176
+ ]
177
+ },
178
+ "label": {
179
+ "type": "string",
180
+ "minLength": 1,
181
+ "maxLength": 1024
182
+ },
183
+ "id": {
184
+ "type": "string",
185
+ "minLength": 1,
186
+ "maxLength": 1024
187
+ },
188
+ "description": {
189
+ "type": "string",
190
+ "maxLength": 32767
191
+ },
192
+ "defaultValue": {
193
+ "type": "boolean"
194
+ }
195
+ },
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "type",
199
+ "label"
200
+ ]
201
+ },
202
+ {
203
+ "type": "object",
204
+ "properties": {
205
+ "type": {
206
+ "type": "string",
207
+ "enum": [
208
+ "select"
209
+ ]
210
+ },
211
+ "label": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "maxLength": 1024
215
+ },
216
+ "id": {
217
+ "type": "string",
218
+ "minLength": 1,
219
+ "maxLength": 1024
220
+ },
221
+ "description": {
222
+ "type": "string",
223
+ "maxLength": 32767
224
+ },
225
+ "defaultValue": {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "maxLength": 1024
229
+ },
230
+ "options": {
231
+ "type": "array",
232
+ "minItems": 1,
233
+ "maxItems": 100,
234
+ "items": {
235
+ "type": "object",
236
+ "properties": {
237
+ "label": {
238
+ "type": "string",
239
+ "maxLength": 1024
240
+ },
241
+ "value": {
242
+ "type": "string",
243
+ "minLength": 1,
244
+ "maxLength": 1024
245
+ }
246
+ },
247
+ "additionalProperties": false,
248
+ "required": [
249
+ "value"
250
+ ]
251
+ }
252
+ }
253
+ },
254
+ "additionalProperties": false,
255
+ "required": [
256
+ "type",
257
+ "label",
258
+ "defaultValue",
259
+ "options"
260
+ ]
261
+ },
262
+ {
263
+ "type": "object",
264
+ "properties": {
265
+ "type": {
266
+ "type": "string",
267
+ "enum": [
268
+ "stringTemplate"
269
+ ]
270
+ },
271
+ "label": {
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 1024
275
+ },
276
+ "id": {
277
+ "type": "string",
278
+ "minLength": 1,
279
+ "maxLength": 1024
280
+ },
281
+ "description": {
282
+ "type": "string",
283
+ "maxLength": 32767
284
+ },
285
+ "defaultValue": {
286
+ "type": "string",
287
+ "maxLength": 1024
288
+ },
289
+ "required": {
290
+ "type": "boolean"
291
+ },
292
+ "validRegExp": {
293
+ "type": "string",
294
+ "maxLength": 1024
295
+ }
296
+ },
297
+ "additionalProperties": false,
298
+ "required": [
299
+ "type",
300
+ "label"
301
+ ]
302
+ },
303
+ {
304
+ "type": "object",
305
+ "properties": {
306
+ "type": {
307
+ "type": "string",
308
+ "enum": [
309
+ "numberTemplate"
310
+ ]
311
+ },
312
+ "label": {
313
+ "type": "string",
314
+ "minLength": 1,
315
+ "maxLength": 1024
316
+ },
317
+ "id": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 1024
321
+ },
322
+ "description": {
323
+ "type": "string",
324
+ "maxLength": 32767
325
+ },
326
+ "defaultValue": {
327
+ "type": "number"
328
+ },
329
+ "required": {
330
+ "type": "boolean"
331
+ },
332
+ "validMin": {
333
+ "type": "number"
334
+ },
335
+ "validMax": {
336
+ "type": "number"
337
+ }
338
+ },
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "type",
342
+ "label"
343
+ ]
344
+ },
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "type": {
349
+ "type": "string",
350
+ "enum": [
351
+ "jsonTemplate"
352
+ ]
353
+ },
354
+ "label": {
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "maxLength": 1024
358
+ },
359
+ "id": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "maxLength": 1024
363
+ },
364
+ "description": {
365
+ "type": "string",
366
+ "maxLength": 32767
367
+ },
368
+ "defaultValue": {
369
+ "type": "string",
370
+ "maxLength": 32767
371
+ },
372
+ "required": {
373
+ "type": "boolean"
374
+ }
375
+ },
376
+ "additionalProperties": false,
377
+ "required": [
378
+ "type",
379
+ "label"
380
+ ]
381
+ },
382
+ {
383
+ "type": "object",
384
+ "properties": {
385
+ "type": {
386
+ "type": "string",
387
+ "enum": [
388
+ "payloadPath"
389
+ ]
390
+ },
391
+ "label": {
392
+ "type": "string",
393
+ "minLength": 1,
394
+ "maxLength": 1024
395
+ },
396
+ "id": {
397
+ "type": "string",
398
+ "minLength": 1,
399
+ "maxLength": 1024
400
+ },
401
+ "description": {
402
+ "type": "string",
403
+ "maxLength": 32767
404
+ },
405
+ "required": {
406
+ "type": "boolean"
407
+ }
408
+ },
409
+ "additionalProperties": false,
410
+ "required": [
411
+ "type",
412
+ "label"
413
+ ]
414
+ },
415
+ {
416
+ "type": "object",
417
+ "properties": {
418
+ "type": {
419
+ "type": "string",
420
+ "enum": [
421
+ "section"
422
+ ]
423
+ },
424
+ "label": {
425
+ "type": "string",
426
+ "minLength": 1,
427
+ "maxLength": 1024
428
+ },
429
+ "id": {
430
+ "type": "string",
431
+ "minLength": 1,
432
+ "maxLength": 1024
433
+ },
434
+ "description": {
435
+ "type": "string",
436
+ "maxLength": 32767
437
+ }
438
+ },
439
+ "additionalProperties": false,
440
+ "required": [
441
+ "type",
442
+ "label"
443
+ ]
444
+ }
445
+ ]
446
+ }
447
+ }
448
+ },
449
+ "additionalProperties": false,
450
+ "required": [
451
+ "outputCount",
452
+ "resultMode",
453
+ "fields"
454
+ ]
140
455
  }
141
456
  },
142
457
  "additionalProperties": false,