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
@@ -512,6 +512,108 @@
512
512
  "type": "array",
513
513
  "items": {
514
514
  "oneOf": [
515
+ {
516
+ "type": "object",
517
+ "properties": {
518
+ "key": {
519
+ "type": "string",
520
+ "maxLength": 1024
521
+ },
522
+ "type": {
523
+ "type": "string",
524
+ "enum": [
525
+ "appFile"
526
+ ]
527
+ },
528
+ "config": {
529
+ "type": "object",
530
+ "properties": {
531
+ "delete": {
532
+ "type": "boolean"
533
+ },
534
+ "create": {
535
+ "type": "boolean"
536
+ },
537
+ "update": {
538
+ "type": "boolean"
539
+ }
540
+ },
541
+ "additionalProperties": false
542
+ },
543
+ "meta": {
544
+ "type": "object",
545
+ "properties": {
546
+ "category": {
547
+ "type": "string",
548
+ "enum": [
549
+ "trigger"
550
+ ]
551
+ },
552
+ "name": {
553
+ "type": "string",
554
+ "enum": [
555
+ "appFile"
556
+ ]
557
+ },
558
+ "label": {
559
+ "type": "string",
560
+ "minLength": 1,
561
+ "maxLength": 255
562
+ },
563
+ "x": {
564
+ "type": "number"
565
+ },
566
+ "y": {
567
+ "type": "number"
568
+ },
569
+ "uiId": {
570
+ "type": "string",
571
+ "maxLength": 48
572
+ },
573
+ "description": {
574
+ "type": "string",
575
+ "maxLength": 32767
576
+ },
577
+ "icon": {
578
+ "type": "string",
579
+ "maxLength": 1024
580
+ },
581
+ "color": {
582
+ "type": "string",
583
+ "maxLength": 1024
584
+ },
585
+ "inputCount": {
586
+ "type": "number"
587
+ },
588
+ "outputCount": {
589
+ "type": "number"
590
+ },
591
+ "id": {
592
+ "type": "string",
593
+ "maxLength": 48
594
+ }
595
+ },
596
+ "additionalProperties": false
597
+ },
598
+ "outputIds": {
599
+ "type": "array",
600
+ "items": {
601
+ "type": "array",
602
+ "items": {
603
+ "type": "string",
604
+ "maxLength": 48,
605
+ "minLength": 1
606
+ },
607
+ "maxItems": 100
608
+ },
609
+ "maxItems": 100
610
+ }
611
+ },
612
+ "required": [
613
+ "type"
614
+ ],
615
+ "additionalProperties": false
616
+ },
515
617
  {
516
618
  "type": "object",
517
619
  "properties": {
@@ -528,15 +630,16 @@
528
630
  "deviceTagConnect",
529
631
  "deviceIdDisconnect",
530
632
  "deviceTagDisconnect",
633
+ "inboundEmail",
531
634
  "notebook",
532
635
  "onBoot",
533
636
  "onConnect",
534
637
  "onDisconnect",
535
- "udp",
536
- "webhook",
638
+ "resourceJobComplete",
537
639
  "resourceJobIteration",
538
640
  "resourceJobIterationTimeout",
539
- "resourceJobComplete"
641
+ "udp",
642
+ "webhook"
540
643
  ]
541
644
  },
542
645
  "config": {
@@ -561,15 +664,16 @@
561
664
  "deviceIdsTagsDisconnect",
562
665
  "eeaInit",
563
666
  "flowError",
667
+ "inboundEmail",
564
668
  "notebook",
565
669
  "onBoot",
566
670
  "onConnect",
567
671
  "onDisconnect",
568
- "udp",
569
- "webhook",
672
+ "resourceJobComplete",
570
673
  "resourceJobIteration",
571
674
  "resourceJobIterationTimeout",
572
- "resourceJobComplete"
675
+ "udp",
676
+ "webhook"
573
677
  ]
574
678
  },
575
679
  "label": {
@@ -3395,6 +3499,108 @@
3395
3499
  "type": "array",
3396
3500
  "items": {
3397
3501
  "oneOf": [
3502
+ {
3503
+ "type": "object",
3504
+ "properties": {
3505
+ "key": {
3506
+ "type": "string",
3507
+ "maxLength": 1024
3508
+ },
3509
+ "type": {
3510
+ "type": "string",
3511
+ "enum": [
3512
+ "appFile"
3513
+ ]
3514
+ },
3515
+ "config": {
3516
+ "type": "object",
3517
+ "properties": {
3518
+ "delete": {
3519
+ "type": "boolean"
3520
+ },
3521
+ "create": {
3522
+ "type": "boolean"
3523
+ },
3524
+ "update": {
3525
+ "type": "boolean"
3526
+ }
3527
+ },
3528
+ "additionalProperties": false
3529
+ },
3530
+ "meta": {
3531
+ "type": "object",
3532
+ "properties": {
3533
+ "category": {
3534
+ "type": "string",
3535
+ "enum": [
3536
+ "trigger"
3537
+ ]
3538
+ },
3539
+ "name": {
3540
+ "type": "string",
3541
+ "enum": [
3542
+ "appFile"
3543
+ ]
3544
+ },
3545
+ "label": {
3546
+ "type": "string",
3547
+ "minLength": 1,
3548
+ "maxLength": 255
3549
+ },
3550
+ "x": {
3551
+ "type": "number"
3552
+ },
3553
+ "y": {
3554
+ "type": "number"
3555
+ },
3556
+ "uiId": {
3557
+ "type": "string",
3558
+ "maxLength": 48
3559
+ },
3560
+ "description": {
3561
+ "type": "string",
3562
+ "maxLength": 32767
3563
+ },
3564
+ "icon": {
3565
+ "type": "string",
3566
+ "maxLength": 1024
3567
+ },
3568
+ "color": {
3569
+ "type": "string",
3570
+ "maxLength": 1024
3571
+ },
3572
+ "inputCount": {
3573
+ "type": "number"
3574
+ },
3575
+ "outputCount": {
3576
+ "type": "number"
3577
+ },
3578
+ "id": {
3579
+ "type": "string",
3580
+ "maxLength": 48
3581
+ }
3582
+ },
3583
+ "additionalProperties": false
3584
+ },
3585
+ "outputIds": {
3586
+ "type": "array",
3587
+ "items": {
3588
+ "type": "array",
3589
+ "items": {
3590
+ "type": "string",
3591
+ "maxLength": 48,
3592
+ "minLength": 1
3593
+ },
3594
+ "maxItems": 100
3595
+ },
3596
+ "maxItems": 100
3597
+ }
3598
+ },
3599
+ "required": [
3600
+ "type"
3601
+ ],
3602
+ "additionalProperties": false
3603
+ },
3398
3604
  {
3399
3605
  "type": "object",
3400
3606
  "properties": {
@@ -3411,15 +3617,16 @@
3411
3617
  "deviceTagConnect",
3412
3618
  "deviceIdDisconnect",
3413
3619
  "deviceTagDisconnect",
3620
+ "inboundEmail",
3414
3621
  "notebook",
3415
3622
  "onBoot",
3416
3623
  "onConnect",
3417
3624
  "onDisconnect",
3418
- "udp",
3419
- "webhook",
3625
+ "resourceJobComplete",
3420
3626
  "resourceJobIteration",
3421
3627
  "resourceJobIterationTimeout",
3422
- "resourceJobComplete"
3628
+ "udp",
3629
+ "webhook"
3423
3630
  ]
3424
3631
  },
3425
3632
  "config": {
@@ -3444,15 +3651,16 @@
3444
3651
  "deviceIdsTagsDisconnect",
3445
3652
  "eeaInit",
3446
3653
  "flowError",
3654
+ "inboundEmail",
3447
3655
  "notebook",
3448
3656
  "onBoot",
3449
3657
  "onConnect",
3450
3658
  "onDisconnect",
3451
- "udp",
3452
- "webhook",
3659
+ "resourceJobComplete",
3453
3660
  "resourceJobIteration",
3454
3661
  "resourceJobIterationTimeout",
3455
- "resourceJobComplete"
3662
+ "udp",
3663
+ "webhook"
3456
3664
  ]
3457
3665
  },
3458
3666
  "label": {
@@ -6187,6 +6395,108 @@
6187
6395
  "type": "array",
6188
6396
  "items": {
6189
6397
  "oneOf": [
6398
+ {
6399
+ "type": "object",
6400
+ "properties": {
6401
+ "key": {
6402
+ "type": "string",
6403
+ "maxLength": 1024
6404
+ },
6405
+ "type": {
6406
+ "type": "string",
6407
+ "enum": [
6408
+ "appFile"
6409
+ ]
6410
+ },
6411
+ "config": {
6412
+ "type": "object",
6413
+ "properties": {
6414
+ "delete": {
6415
+ "type": "boolean"
6416
+ },
6417
+ "create": {
6418
+ "type": "boolean"
6419
+ },
6420
+ "update": {
6421
+ "type": "boolean"
6422
+ }
6423
+ },
6424
+ "additionalProperties": false
6425
+ },
6426
+ "meta": {
6427
+ "type": "object",
6428
+ "properties": {
6429
+ "category": {
6430
+ "type": "string",
6431
+ "enum": [
6432
+ "trigger"
6433
+ ]
6434
+ },
6435
+ "name": {
6436
+ "type": "string",
6437
+ "enum": [
6438
+ "appFile"
6439
+ ]
6440
+ },
6441
+ "label": {
6442
+ "type": "string",
6443
+ "minLength": 1,
6444
+ "maxLength": 255
6445
+ },
6446
+ "x": {
6447
+ "type": "number"
6448
+ },
6449
+ "y": {
6450
+ "type": "number"
6451
+ },
6452
+ "uiId": {
6453
+ "type": "string",
6454
+ "maxLength": 48
6455
+ },
6456
+ "description": {
6457
+ "type": "string",
6458
+ "maxLength": 32767
6459
+ },
6460
+ "icon": {
6461
+ "type": "string",
6462
+ "maxLength": 1024
6463
+ },
6464
+ "color": {
6465
+ "type": "string",
6466
+ "maxLength": 1024
6467
+ },
6468
+ "inputCount": {
6469
+ "type": "number"
6470
+ },
6471
+ "outputCount": {
6472
+ "type": "number"
6473
+ },
6474
+ "id": {
6475
+ "type": "string",
6476
+ "maxLength": 48
6477
+ }
6478
+ },
6479
+ "additionalProperties": false
6480
+ },
6481
+ "outputIds": {
6482
+ "type": "array",
6483
+ "items": {
6484
+ "type": "array",
6485
+ "items": {
6486
+ "type": "string",
6487
+ "maxLength": 48,
6488
+ "minLength": 1
6489
+ },
6490
+ "maxItems": 100
6491
+ },
6492
+ "maxItems": 100
6493
+ }
6494
+ },
6495
+ "required": [
6496
+ "type"
6497
+ ],
6498
+ "additionalProperties": false
6499
+ },
6190
6500
  {
6191
6501
  "type": "object",
6192
6502
  "properties": {
@@ -6203,15 +6513,16 @@
6203
6513
  "deviceTagConnect",
6204
6514
  "deviceIdDisconnect",
6205
6515
  "deviceTagDisconnect",
6516
+ "inboundEmail",
6206
6517
  "notebook",
6207
6518
  "onBoot",
6208
6519
  "onConnect",
6209
6520
  "onDisconnect",
6210
- "udp",
6211
- "webhook",
6521
+ "resourceJobComplete",
6212
6522
  "resourceJobIteration",
6213
6523
  "resourceJobIterationTimeout",
6214
- "resourceJobComplete"
6524
+ "udp",
6525
+ "webhook"
6215
6526
  ]
6216
6527
  },
6217
6528
  "config": {
@@ -6236,15 +6547,16 @@
6236
6547
  "deviceIdsTagsDisconnect",
6237
6548
  "eeaInit",
6238
6549
  "flowError",
6550
+ "inboundEmail",
6239
6551
  "notebook",
6240
6552
  "onBoot",
6241
6553
  "onConnect",
6242
6554
  "onDisconnect",
6243
- "udp",
6244
- "webhook",
6555
+ "resourceJobComplete",
6245
6556
  "resourceJobIteration",
6246
6557
  "resourceJobIterationTimeout",
6247
- "resourceJobComplete"
6558
+ "udp",
6559
+ "webhook"
6248
6560
  ]
6249
6561
  },
6250
6562
  "label": {
@@ -227,6 +227,28 @@
227
227
  }
228
228
  },
229
229
  "additionalProperties": false
230
+ },
231
+ "mongodbConfig": {
232
+ "type": "object",
233
+ "properties": {
234
+ "connectionUri": {
235
+ "type": "string",
236
+ "minLength": 1,
237
+ "maxLength": 2048
238
+ }
239
+ },
240
+ "additionalProperties": false
241
+ },
242
+ "mailgunConfig": {
243
+ "type": "object",
244
+ "properties": {
245
+ "apiKey": {
246
+ "type": "string",
247
+ "minLength": 4,
248
+ "maxLength": 128
249
+ }
250
+ },
251
+ "additionalProperties": false
230
252
  }
231
253
  },
232
254
  "additionalProperties": false
@@ -26,7 +26,9 @@
26
26
  "loggly",
27
27
  "jwt",
28
28
  "whatsapp",
29
- "sql"
29
+ "sql",
30
+ "mongodb",
31
+ "mailgun"
30
32
  ]
31
33
  },
32
34
  "awsConfig": {
@@ -283,6 +285,34 @@
283
285
  "username",
284
286
  "password"
285
287
  ]
288
+ },
289
+ "mongodbConfig": {
290
+ "type": "object",
291
+ "properties": {
292
+ "connectionUri": {
293
+ "type": "string",
294
+ "minLength": 1,
295
+ "maxLength": 2048
296
+ },
297
+ "required": [
298
+ "connectionUri"
299
+ ]
300
+ },
301
+ "additionalProperties": false
302
+ },
303
+ "mailgunConfig": {
304
+ "type": "object",
305
+ "properties": {
306
+ "apiKey": {
307
+ "type": "string",
308
+ "minLength": 4,
309
+ "maxLength": 128
310
+ }
311
+ },
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "apiKey"
315
+ ]
286
316
  }
287
317
  },
288
318
  "additionalProperties": false,
@@ -73,7 +73,9 @@
73
73
  "loggly",
74
74
  "jwt",
75
75
  "whatsapp",
76
- "sql"
76
+ "sql",
77
+ "mongodb",
78
+ "mailgun"
77
79
  ]
78
80
  },
79
81
  "awsConfig": {
@@ -263,6 +265,16 @@
263
265
  "host",
264
266
  "username"
265
267
  ]
268
+ },
269
+ "mongodbConfig": {
270
+ "type": "object",
271
+ "properties": {},
272
+ "additionalProperties": false
273
+ },
274
+ "mailgunConfig": {
275
+ "type": "object",
276
+ "properties": {},
277
+ "additionalProperties": false
266
278
  }
267
279
  },
268
280
  "additionalProperties": false,
@@ -6026,6 +6026,13 @@
6026
6026
  },
6027
6027
  "maxItems": 100
6028
6028
  },
6029
+ "query": {
6030
+ "type": [
6031
+ "string",
6032
+ "null"
6033
+ ],
6034
+ "maxLength": 8192
6035
+ },
6029
6036
  "includeFullDevice": {
6030
6037
  "type": "boolean"
6031
6038
  }
@@ -5967,6 +5967,13 @@
5967
5967
  },
5968
5968
  "maxItems": 100
5969
5969
  },
5970
+ "query": {
5971
+ "type": [
5972
+ "string",
5973
+ "null"
5974
+ ],
5975
+ "maxLength": 8192
5976
+ },
5970
5977
  "includeFullDevice": {
5971
5978
  "type": "boolean"
5972
5979
  }
@@ -5975,6 +5975,13 @@
5975
5975
  },
5976
5976
  "maxItems": 100
5977
5977
  },
5978
+ "query": {
5979
+ "type": [
5980
+ "string",
5981
+ "null"
5982
+ ],
5983
+ "maxLength": 8192
5984
+ },
5978
5985
  "includeFullDevice": {
5979
5986
  "type": "boolean"
5980
5987
  }
@@ -6033,6 +6033,13 @@
6033
6033
  },
6034
6034
  "maxItems": 100
6035
6035
  },
6036
+ "query": {
6037
+ "type": [
6038
+ "string",
6039
+ "null"
6040
+ ],
6041
+ "maxLength": 8192
6042
+ },
6036
6043
  "includeFullDevice": {
6037
6044
  "type": "boolean"
6038
6045
  }
@@ -1603,6 +1603,14 @@
1603
1603
  }
1604
1604
  },
1605
1605
  "additionalProperties": false
1606
+ },
1607
+ "format": {
1608
+ "type": "string",
1609
+ "enum": [
1610
+ "csv",
1611
+ "json"
1612
+ ],
1613
+ "default": "csv"
1606
1614
  }
1607
1615
  },
1608
1616
  "additionalProperties": false
@@ -1620,6 +1620,16 @@
1620
1620
  },
1621
1621
  "keepCommandHistory": {
1622
1622
  "type": "boolean"
1623
+ },
1624
+ "email": {
1625
+ "type": "string",
1626
+ "format": "email",
1627
+ "maxLength": 1024
1628
+ },
1629
+ "callbackUrl": {
1630
+ "type": "string",
1631
+ "format": "uri",
1632
+ "maxLength": 1024
1623
1633
  }
1624
1634
  },
1625
1635
  "additionalProperties": false,