losant_rest 1.19.7 → 1.19.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +30 -0
  3. data/README.md +2 -2
  4. data/docs/_schemas.md +3986 -227
  5. data/docs/devices.md +0 -1
  6. data/docs/instanceOrgs.md +1 -0
  7. data/lib/platform_rest/client.rb +2 -2
  8. data/lib/platform_rest/devices.rb +0 -1
  9. data/lib/platform_rest/instance_orgs.rb +3 -0
  10. data/lib/platform_rest/version.rb +1 -1
  11. data/schemas/advancedInstanceOrgQuery.json +1171 -0
  12. data/schemas/application.json +20 -4
  13. data/schemas/applicationCreationByTemplateResult.json +20 -4
  14. data/schemas/applicationDashboardPost.json +7 -0
  15. data/schemas/applicationTemplate.json +4 -0
  16. data/schemas/applicationTemplates.json +4 -0
  17. data/schemas/applications.json +20 -4
  18. data/schemas/credential.json +13 -1
  19. data/schemas/credentialLinkedResources.json +330 -18
  20. data/schemas/credentialPatch.json +22 -0
  21. data/schemas/credentialPost.json +31 -1
  22. data/schemas/credentials.json +13 -1
  23. data/schemas/dashboard.json +7 -0
  24. data/schemas/dashboardPatch.json +7 -0
  25. data/schemas/dashboardPost.json +7 -0
  26. data/schemas/dashboards.json +7 -0
  27. data/schemas/devicesExportPost.json +8 -0
  28. data/schemas/devicesRemoveDataPost.json +10 -0
  29. data/schemas/experienceLinkedResources.json +341 -18
  30. data/schemas/experienceView.json +11 -0
  31. data/schemas/experienceViewPatch.json +11 -0
  32. data/schemas/experienceViewPost.json +11 -0
  33. data/schemas/experienceViews.json +11 -0
  34. data/schemas/flow.json +110 -6
  35. data/schemas/flowPatch.json +110 -6
  36. data/schemas/flowPost.json +110 -6
  37. data/schemas/flowVersion.json +220 -12
  38. data/schemas/flowVersionPost.json +110 -6
  39. data/schemas/flowVersions.json +220 -12
  40. data/schemas/flows.json +110 -6
  41. data/schemas/flowsImportPost.json +220 -12
  42. data/schemas/flowsImportResult.json +330 -18
  43. data/schemas/historicalSummaries.json +40 -8
  44. data/schemas/historicalSummary.json +40 -8
  45. data/schemas/instanceCustomNodePatch.json +8 -6
  46. data/schemas/instanceCustomNodePost.json +8 -6
  47. data/schemas/instanceOrg.json +20 -4
  48. data/schemas/instanceOrgs.json +20 -4
  49. data/schemas/instanceSandbox.json +20 -4
  50. data/schemas/instanceSandboxes.json +20 -4
  51. data/schemas/me.json +20 -4
  52. data/schemas/notebook.json +8 -0
  53. data/schemas/notebookPatch.json +8 -0
  54. data/schemas/notebookPost.json +8 -0
  55. data/schemas/notebooks.json +8 -0
  56. data/schemas/org.json +20 -4
  57. data/schemas/orgs.json +20 -4
  58. data/schemas/payloadStats.json +20 -4
  59. data/schemas/webhook.json +13 -0
  60. data/schemas/webhookPatch.json +13 -0
  61. data/schemas/webhookPost.json +13 -0
  62. data/schemas/webhooks.json +13 -0
  63. metadata +4 -3
  64. data/.travis.yml +0 -7
@@ -304,6 +304,14 @@
304
304
  "description": "Schema for the result of a payload stats request",
305
305
  "type": "object",
306
306
  "properties": {
307
+ "appFile": {
308
+ "type": "object",
309
+ "patternProperties": {
310
+ ".*": {
311
+ "type": "number"
312
+ }
313
+ }
314
+ },
307
315
  "dataTable": {
308
316
  "type": "object",
309
317
  "patternProperties": {
@@ -368,6 +376,14 @@
368
376
  }
369
377
  }
370
378
  },
379
+ "inboundEmail": {
380
+ "type": "object",
381
+ "patternProperties": {
382
+ ".*": {
383
+ "type": "number"
384
+ }
385
+ }
386
+ },
371
387
  "integration": {
372
388
  "type": "object",
373
389
  "patternProperties": {
@@ -400,7 +416,7 @@
400
416
  }
401
417
  }
402
418
  },
403
- "timer": {
419
+ "resourceJob": {
404
420
  "type": "object",
405
421
  "patternProperties": {
406
422
  ".*": {
@@ -408,7 +424,7 @@
408
424
  }
409
425
  }
410
426
  },
411
- "virtualButton": {
427
+ "timer": {
412
428
  "type": "object",
413
429
  "patternProperties": {
414
430
  ".*": {
@@ -416,7 +432,7 @@
416
432
  }
417
433
  }
418
434
  },
419
- "webhook": {
435
+ "virtualButton": {
420
436
  "type": "object",
421
437
  "patternProperties": {
422
438
  ".*": {
@@ -424,7 +440,7 @@
424
440
  }
425
441
  }
426
442
  },
427
- "resourceJob": {
443
+ "webhook": {
428
444
  "type": "object",
429
445
  "patternProperties": {
430
446
  ".*": {
@@ -439,6 +455,14 @@
439
455
  "description": "Schema for the result of a payload stats request",
440
456
  "type": "object",
441
457
  "properties": {
458
+ "appFile": {
459
+ "type": "object",
460
+ "patternProperties": {
461
+ ".*": {
462
+ "type": "number"
463
+ }
464
+ }
465
+ },
442
466
  "dataTable": {
443
467
  "type": "object",
444
468
  "patternProperties": {
@@ -503,6 +527,14 @@
503
527
  }
504
528
  }
505
529
  },
530
+ "inboundEmail": {
531
+ "type": "object",
532
+ "patternProperties": {
533
+ ".*": {
534
+ "type": "number"
535
+ }
536
+ }
537
+ },
506
538
  "integration": {
507
539
  "type": "object",
508
540
  "patternProperties": {
@@ -535,7 +567,7 @@
535
567
  }
536
568
  }
537
569
  },
538
- "timer": {
570
+ "resourceJob": {
539
571
  "type": "object",
540
572
  "patternProperties": {
541
573
  ".*": {
@@ -543,7 +575,7 @@
543
575
  }
544
576
  }
545
577
  },
546
- "virtualButton": {
578
+ "timer": {
547
579
  "type": "object",
548
580
  "patternProperties": {
549
581
  ".*": {
@@ -551,7 +583,7 @@
551
583
  }
552
584
  }
553
585
  },
554
- "webhook": {
586
+ "virtualButton": {
555
587
  "type": "object",
556
588
  "patternProperties": {
557
589
  ".*": {
@@ -559,7 +591,7 @@
559
591
  }
560
592
  }
561
593
  },
562
- "resourceJob": {
594
+ "webhook": {
563
595
  "type": "object",
564
596
  "patternProperties": {
565
597
  ".*": {
@@ -66,15 +66,16 @@
66
66
  "deviceTagConnect",
67
67
  "deviceIdDisconnect",
68
68
  "deviceTagDisconnect",
69
+ "inboundEmail",
69
70
  "notebook",
70
71
  "onBoot",
71
72
  "onConnect",
72
73
  "onDisconnect",
73
- "udp",
74
- "webhook",
74
+ "resourceJobComplete",
75
75
  "resourceJobIteration",
76
76
  "resourceJobIterationTimeout",
77
- "resourceJobComplete"
77
+ "udp",
78
+ "webhook"
78
79
  ]
79
80
  },
80
81
  "config": {
@@ -99,15 +100,16 @@
99
100
  "deviceIdsTagsDisconnect",
100
101
  "eeaInit",
101
102
  "flowError",
103
+ "inboundEmail",
102
104
  "notebook",
103
105
  "onBoot",
104
106
  "onConnect",
105
107
  "onDisconnect",
106
- "udp",
107
- "webhook",
108
+ "resourceJobComplete",
108
109
  "resourceJobIteration",
109
110
  "resourceJobIterationTimeout",
110
- "resourceJobComplete"
111
+ "udp",
112
+ "webhook"
111
113
  ]
112
114
  },
113
115
  "label": {
@@ -66,15 +66,16 @@
66
66
  "deviceTagConnect",
67
67
  "deviceIdDisconnect",
68
68
  "deviceTagDisconnect",
69
+ "inboundEmail",
69
70
  "notebook",
70
71
  "onBoot",
71
72
  "onConnect",
72
73
  "onDisconnect",
73
- "udp",
74
- "webhook",
74
+ "resourceJobComplete",
75
75
  "resourceJobIteration",
76
76
  "resourceJobIterationTimeout",
77
- "resourceJobComplete"
77
+ "udp",
78
+ "webhook"
78
79
  ]
79
80
  },
80
81
  "config": {
@@ -99,15 +100,16 @@
99
100
  "deviceIdsTagsDisconnect",
100
101
  "eeaInit",
101
102
  "flowError",
103
+ "inboundEmail",
102
104
  "notebook",
103
105
  "onBoot",
104
106
  "onConnect",
105
107
  "onDisconnect",
106
- "udp",
107
- "webhook",
108
+ "resourceJobComplete",
108
109
  "resourceJobIteration",
109
110
  "resourceJobIterationTimeout",
110
- "resourceJobComplete"
111
+ "udp",
112
+ "webhook"
111
113
  ]
112
114
  },
113
115
  "label": {
@@ -256,6 +256,14 @@
256
256
  "description": "Schema for the result of a payload stats request",
257
257
  "type": "object",
258
258
  "properties": {
259
+ "appFile": {
260
+ "type": "object",
261
+ "patternProperties": {
262
+ ".*": {
263
+ "type": "number"
264
+ }
265
+ }
266
+ },
259
267
  "dataTable": {
260
268
  "type": "object",
261
269
  "patternProperties": {
@@ -320,6 +328,14 @@
320
328
  }
321
329
  }
322
330
  },
331
+ "inboundEmail": {
332
+ "type": "object",
333
+ "patternProperties": {
334
+ ".*": {
335
+ "type": "number"
336
+ }
337
+ }
338
+ },
323
339
  "integration": {
324
340
  "type": "object",
325
341
  "patternProperties": {
@@ -352,7 +368,7 @@
352
368
  }
353
369
  }
354
370
  },
355
- "timer": {
371
+ "resourceJob": {
356
372
  "type": "object",
357
373
  "patternProperties": {
358
374
  ".*": {
@@ -360,7 +376,7 @@
360
376
  }
361
377
  }
362
378
  },
363
- "virtualButton": {
379
+ "timer": {
364
380
  "type": "object",
365
381
  "patternProperties": {
366
382
  ".*": {
@@ -368,7 +384,7 @@
368
384
  }
369
385
  }
370
386
  },
371
- "webhook": {
387
+ "virtualButton": {
372
388
  "type": "object",
373
389
  "patternProperties": {
374
390
  ".*": {
@@ -376,7 +392,7 @@
376
392
  }
377
393
  }
378
394
  },
379
- "resourceJob": {
395
+ "webhook": {
380
396
  "type": "object",
381
397
  "patternProperties": {
382
398
  ".*": {
@@ -263,6 +263,14 @@
263
263
  "description": "Schema for the result of a payload stats request",
264
264
  "type": "object",
265
265
  "properties": {
266
+ "appFile": {
267
+ "type": "object",
268
+ "patternProperties": {
269
+ ".*": {
270
+ "type": "number"
271
+ }
272
+ }
273
+ },
266
274
  "dataTable": {
267
275
  "type": "object",
268
276
  "patternProperties": {
@@ -327,6 +335,14 @@
327
335
  }
328
336
  }
329
337
  },
338
+ "inboundEmail": {
339
+ "type": "object",
340
+ "patternProperties": {
341
+ ".*": {
342
+ "type": "number"
343
+ }
344
+ }
345
+ },
330
346
  "integration": {
331
347
  "type": "object",
332
348
  "patternProperties": {
@@ -359,7 +375,7 @@
359
375
  }
360
376
  }
361
377
  },
362
- "timer": {
378
+ "resourceJob": {
363
379
  "type": "object",
364
380
  "patternProperties": {
365
381
  ".*": {
@@ -367,7 +383,7 @@
367
383
  }
368
384
  }
369
385
  },
370
- "virtualButton": {
386
+ "timer": {
371
387
  "type": "object",
372
388
  "patternProperties": {
373
389
  ".*": {
@@ -375,7 +391,7 @@
375
391
  }
376
392
  }
377
393
  },
378
- "webhook": {
394
+ "virtualButton": {
379
395
  "type": "object",
380
396
  "patternProperties": {
381
397
  ".*": {
@@ -383,7 +399,7 @@
383
399
  }
384
400
  }
385
401
  },
386
- "resourceJob": {
402
+ "webhook": {
387
403
  "type": "object",
388
404
  "patternProperties": {
389
405
  ".*": {
@@ -291,6 +291,14 @@
291
291
  "description": "Schema for the result of a payload stats request",
292
292
  "type": "object",
293
293
  "properties": {
294
+ "appFile": {
295
+ "type": "object",
296
+ "patternProperties": {
297
+ ".*": {
298
+ "type": "number"
299
+ }
300
+ }
301
+ },
294
302
  "dataTable": {
295
303
  "type": "object",
296
304
  "patternProperties": {
@@ -355,6 +363,14 @@
355
363
  }
356
364
  }
357
365
  },
366
+ "inboundEmail": {
367
+ "type": "object",
368
+ "patternProperties": {
369
+ ".*": {
370
+ "type": "number"
371
+ }
372
+ }
373
+ },
358
374
  "integration": {
359
375
  "type": "object",
360
376
  "patternProperties": {
@@ -387,7 +403,7 @@
387
403
  }
388
404
  }
389
405
  },
390
- "timer": {
406
+ "resourceJob": {
391
407
  "type": "object",
392
408
  "patternProperties": {
393
409
  ".*": {
@@ -395,7 +411,7 @@
395
411
  }
396
412
  }
397
413
  },
398
- "virtualButton": {
414
+ "timer": {
399
415
  "type": "object",
400
416
  "patternProperties": {
401
417
  ".*": {
@@ -403,7 +419,7 @@
403
419
  }
404
420
  }
405
421
  },
406
- "webhook": {
422
+ "virtualButton": {
407
423
  "type": "object",
408
424
  "patternProperties": {
409
425
  ".*": {
@@ -411,7 +427,7 @@
411
427
  }
412
428
  }
413
429
  },
414
- "resourceJob": {
430
+ "webhook": {
415
431
  "type": "object",
416
432
  "patternProperties": {
417
433
  ".*": {
@@ -298,6 +298,14 @@
298
298
  "description": "Schema for the result of a payload stats request",
299
299
  "type": "object",
300
300
  "properties": {
301
+ "appFile": {
302
+ "type": "object",
303
+ "patternProperties": {
304
+ ".*": {
305
+ "type": "number"
306
+ }
307
+ }
308
+ },
301
309
  "dataTable": {
302
310
  "type": "object",
303
311
  "patternProperties": {
@@ -362,6 +370,14 @@
362
370
  }
363
371
  }
364
372
  },
373
+ "inboundEmail": {
374
+ "type": "object",
375
+ "patternProperties": {
376
+ ".*": {
377
+ "type": "number"
378
+ }
379
+ }
380
+ },
365
381
  "integration": {
366
382
  "type": "object",
367
383
  "patternProperties": {
@@ -394,7 +410,7 @@
394
410
  }
395
411
  }
396
412
  },
397
- "timer": {
413
+ "resourceJob": {
398
414
  "type": "object",
399
415
  "patternProperties": {
400
416
  ".*": {
@@ -402,7 +418,7 @@
402
418
  }
403
419
  }
404
420
  },
405
- "virtualButton": {
421
+ "timer": {
406
422
  "type": "object",
407
423
  "patternProperties": {
408
424
  ".*": {
@@ -410,7 +426,7 @@
410
426
  }
411
427
  }
412
428
  },
413
- "webhook": {
429
+ "virtualButton": {
414
430
  "type": "object",
415
431
  "patternProperties": {
416
432
  ".*": {
@@ -418,7 +434,7 @@
418
434
  }
419
435
  }
420
436
  },
421
- "resourceJob": {
437
+ "webhook": {
422
438
  "type": "object",
423
439
  "patternProperties": {
424
440
  ".*": {
data/schemas/me.json CHANGED
@@ -382,6 +382,14 @@
382
382
  "description": "Schema for the result of a payload stats request",
383
383
  "type": "object",
384
384
  "properties": {
385
+ "appFile": {
386
+ "type": "object",
387
+ "patternProperties": {
388
+ ".*": {
389
+ "type": "number"
390
+ }
391
+ }
392
+ },
385
393
  "dataTable": {
386
394
  "type": "object",
387
395
  "patternProperties": {
@@ -446,6 +454,14 @@
446
454
  }
447
455
  }
448
456
  },
457
+ "inboundEmail": {
458
+ "type": "object",
459
+ "patternProperties": {
460
+ ".*": {
461
+ "type": "number"
462
+ }
463
+ }
464
+ },
449
465
  "integration": {
450
466
  "type": "object",
451
467
  "patternProperties": {
@@ -478,7 +494,7 @@
478
494
  }
479
495
  }
480
496
  },
481
- "timer": {
497
+ "resourceJob": {
482
498
  "type": "object",
483
499
  "patternProperties": {
484
500
  ".*": {
@@ -486,7 +502,7 @@
486
502
  }
487
503
  }
488
504
  },
489
- "virtualButton": {
505
+ "timer": {
490
506
  "type": "object",
491
507
  "patternProperties": {
492
508
  ".*": {
@@ -494,7 +510,7 @@
494
510
  }
495
511
  }
496
512
  },
497
- "webhook": {
513
+ "virtualButton": {
498
514
  "type": "object",
499
515
  "patternProperties": {
500
516
  ".*": {
@@ -502,7 +518,7 @@
502
518
  }
503
519
  }
504
520
  },
505
- "resourceJob": {
521
+ "webhook": {
506
522
  "type": "object",
507
523
  "patternProperties": {
508
524
  ".*": {
@@ -311,6 +311,14 @@
311
311
  "queryJson": {
312
312
  "type": "string",
313
313
  "maxLength": 8192
314
+ },
315
+ "format": {
316
+ "type": "string",
317
+ "enum": [
318
+ "csv",
319
+ "json"
320
+ ],
321
+ "default": "csv"
314
322
  }
315
323
  },
316
324
  "required": [
@@ -275,6 +275,14 @@
275
275
  "queryJson": {
276
276
  "type": "string",
277
277
  "maxLength": 8192
278
+ },
279
+ "format": {
280
+ "type": "string",
281
+ "enum": [
282
+ "csv",
283
+ "json"
284
+ ],
285
+ "default": "csv"
278
286
  }
279
287
  },
280
288
  "required": [
@@ -283,6 +283,14 @@
283
283
  "queryJson": {
284
284
  "type": "string",
285
285
  "maxLength": 8192
286
+ },
287
+ "format": {
288
+ "type": "string",
289
+ "enum": [
290
+ "csv",
291
+ "json"
292
+ ],
293
+ "default": "csv"
286
294
  }
287
295
  },
288
296
  "required": [
@@ -318,6 +318,14 @@
318
318
  "queryJson": {
319
319
  "type": "string",
320
320
  "maxLength": 8192
321
+ },
322
+ "format": {
323
+ "type": "string",
324
+ "enum": [
325
+ "csv",
326
+ "json"
327
+ ],
328
+ "default": "csv"
321
329
  }
322
330
  },
323
331
  "required": [
data/schemas/org.json CHANGED
@@ -351,6 +351,14 @@
351
351
  "description": "Schema for the result of a payload stats request",
352
352
  "type": "object",
353
353
  "properties": {
354
+ "appFile": {
355
+ "type": "object",
356
+ "patternProperties": {
357
+ ".*": {
358
+ "type": "number"
359
+ }
360
+ }
361
+ },
354
362
  "dataTable": {
355
363
  "type": "object",
356
364
  "patternProperties": {
@@ -415,6 +423,14 @@
415
423
  }
416
424
  }
417
425
  },
426
+ "inboundEmail": {
427
+ "type": "object",
428
+ "patternProperties": {
429
+ ".*": {
430
+ "type": "number"
431
+ }
432
+ }
433
+ },
418
434
  "integration": {
419
435
  "type": "object",
420
436
  "patternProperties": {
@@ -447,7 +463,7 @@
447
463
  }
448
464
  }
449
465
  },
450
- "timer": {
466
+ "resourceJob": {
451
467
  "type": "object",
452
468
  "patternProperties": {
453
469
  ".*": {
@@ -455,7 +471,7 @@
455
471
  }
456
472
  }
457
473
  },
458
- "virtualButton": {
474
+ "timer": {
459
475
  "type": "object",
460
476
  "patternProperties": {
461
477
  ".*": {
@@ -463,7 +479,7 @@
463
479
  }
464
480
  }
465
481
  },
466
- "webhook": {
482
+ "virtualButton": {
467
483
  "type": "object",
468
484
  "patternProperties": {
469
485
  ".*": {
@@ -471,7 +487,7 @@
471
487
  }
472
488
  }
473
489
  },
474
- "resourceJob": {
490
+ "webhook": {
475
491
  "type": "object",
476
492
  "patternProperties": {
477
493
  ".*": {