losant_rest 1.19.6 → 1.19.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) 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 +7742 -2728
  5. data/docs/devices.md +0 -1
  6. data/docs/experienceUsers.md +1 -0
  7. data/docs/instanceOrgs.md +1 -0
  8. data/lib/platform_rest/client.rb +2 -2
  9. data/lib/platform_rest/devices.rb +0 -1
  10. data/lib/platform_rest/experience_users.rb +3 -0
  11. data/lib/platform_rest/instance_orgs.rb +3 -0
  12. data/lib/platform_rest/version.rb +1 -1
  13. data/schemas/advancedExperienceUserQuery.json +1068 -0
  14. data/schemas/advancedInstanceOrgQuery.json +1171 -0
  15. data/schemas/applicationDashboardPost.json +7 -0
  16. data/schemas/credential.json +52 -1
  17. data/schemas/credentialLinkedResources.json +345 -24
  18. data/schemas/credentialPatch.json +62 -0
  19. data/schemas/credentialPost.json +74 -1
  20. data/schemas/credentials.json +52 -1
  21. data/schemas/dashboard.json +7 -0
  22. data/schemas/dashboardPatch.json +7 -0
  23. data/schemas/dashboardPost.json +7 -0
  24. data/schemas/dashboards.json +7 -0
  25. data/schemas/devicesExportPost.json +8 -0
  26. data/schemas/devicesRemoveDataPost.json +10 -0
  27. data/schemas/experienceLinkedResources.json +356 -24
  28. data/schemas/experienceVersion.json +64 -0
  29. data/schemas/experienceVersionPatch.json +64 -0
  30. data/schemas/experienceVersionPost.json +64 -0
  31. data/schemas/experienceVersions.json +64 -0
  32. data/schemas/experienceView.json +11 -0
  33. data/schemas/experienceViewPatch.json +11 -0
  34. data/schemas/experienceViewPost.json +11 -0
  35. data/schemas/experienceViews.json +11 -0
  36. data/schemas/flow.json +115 -8
  37. data/schemas/flowPatch.json +115 -8
  38. data/schemas/flowPost.json +115 -8
  39. data/schemas/flowVersion.json +230 -16
  40. data/schemas/flowVersionPost.json +115 -8
  41. data/schemas/flowVersions.json +230 -16
  42. data/schemas/flows.json +115 -8
  43. data/schemas/flowsImportPost.json +230 -16
  44. data/schemas/flowsImportResult.json +345 -24
  45. data/schemas/instanceCustomNode.json +2 -1
  46. data/schemas/instanceCustomNodePatch.json +3 -9
  47. data/schemas/instanceCustomNodePost.json +3 -9
  48. data/schemas/instanceCustomNodes.json +2 -1
  49. data/schemas/notebook.json +8 -0
  50. data/schemas/notebookPatch.json +8 -0
  51. data/schemas/notebookPost.json +8 -0
  52. data/schemas/notebooks.json +8 -0
  53. data/schemas/resourceJob.json +2 -1
  54. data/schemas/resourceJobExecutionLogs.json +2 -1
  55. data/schemas/resourceJobPost.json +2 -1
  56. data/schemas/resourceJobs.json +2 -1
  57. metadata +5 -3
  58. data/.travis.yml +0 -7
@@ -5960,6 +5960,13 @@
5960
5960
  },
5961
5961
  "maxItems": 100
5962
5962
  },
5963
+ "query": {
5964
+ "type": [
5965
+ "string",
5966
+ "null"
5967
+ ],
5968
+ "maxLength": 8192
5969
+ },
5963
5970
  "includeFullDevice": {
5964
5971
  "type": "boolean"
5965
5972
  }
@@ -65,7 +65,9 @@
65
65
  "twilio",
66
66
  "loggly",
67
67
  "jwt",
68
- "whatsapp"
68
+ "whatsapp",
69
+ "sql",
70
+ "mongodb"
69
71
  ]
70
72
  },
71
73
  "awsConfig": {
@@ -211,6 +213,55 @@
211
213
  "required": [
212
214
  "fromNumberId"
213
215
  ]
216
+ },
217
+ "sqlConfig": {
218
+ "type": "object",
219
+ "properties": {
220
+ "system": {
221
+ "type": "string",
222
+ "enum": [
223
+ "mssql",
224
+ "mysql",
225
+ "pg"
226
+ ]
227
+ },
228
+ "host": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 256
232
+ },
233
+ "port": {
234
+ "type": "integer",
235
+ "minimum": 1,
236
+ "maximum": 65535
237
+ },
238
+ "username": {
239
+ "type": "string",
240
+ "minLength": 1,
241
+ "maxLength": 256
242
+ },
243
+ "secureConnection": {
244
+ "type": "boolean"
245
+ },
246
+ "caCertificate": {
247
+ "type": "string",
248
+ "maxLength": 8196
249
+ },
250
+ "disableSSLVerification": {
251
+ "type": "boolean"
252
+ }
253
+ },
254
+ "additionalProperties": false,
255
+ "required": [
256
+ "system",
257
+ "host",
258
+ "username"
259
+ ]
260
+ },
261
+ "mongodbConfig": {
262
+ "type": "object",
263
+ "properties": {},
264
+ "additionalProperties": false
214
265
  }
215
266
  },
216
267
  "additionalProperties": false,
@@ -528,7 +528,6 @@
528
528
  "deviceTagConnect",
529
529
  "deviceIdDisconnect",
530
530
  "deviceTagDisconnect",
531
- "integration",
532
531
  "notebook",
533
532
  "onBoot",
534
533
  "onConnect",
@@ -562,21 +561,15 @@
562
561
  "deviceIdsTagsDisconnect",
563
562
  "eeaInit",
564
563
  "flowError",
565
- "azureEventHub",
566
- "googlePubSub",
567
- "mqtt",
568
564
  "notebook",
569
565
  "onBoot",
570
566
  "onConnect",
571
567
  "onDisconnect",
572
- "particle",
573
- "sqs",
574
568
  "udp",
575
569
  "webhook",
576
570
  "resourceJobIteration",
577
571
  "resourceJobIterationTimeout",
578
- "resourceJobComplete",
579
- "websocket"
572
+ "resourceJobComplete"
580
573
  ]
581
574
  },
582
575
  "label": {
@@ -747,6 +740,120 @@
747
740
  ],
748
741
  "additionalProperties": false
749
742
  },
743
+ {
744
+ "type": "object",
745
+ "properties": {
746
+ "key": {
747
+ "type": "string",
748
+ "maxLength": 1024
749
+ },
750
+ "type": {
751
+ "type": "string",
752
+ "enum": [
753
+ "integration"
754
+ ]
755
+ },
756
+ "config": {
757
+ "type": "object",
758
+ "properties": {
759
+ "connect": {
760
+ "type": "boolean"
761
+ },
762
+ "message": {
763
+ "type": "boolean"
764
+ },
765
+ "disconnect": {
766
+ "type": "boolean"
767
+ },
768
+ "failure": {
769
+ "type": "boolean"
770
+ }
771
+ },
772
+ "additionalProperties": false
773
+ },
774
+ "meta": {
775
+ "type": "object",
776
+ "properties": {
777
+ "category": {
778
+ "type": "string",
779
+ "enum": [
780
+ "trigger"
781
+ ]
782
+ },
783
+ "name": {
784
+ "type": "string",
785
+ "enum": [
786
+ "azureEventHub",
787
+ "googlePubSub",
788
+ "mqtt",
789
+ "particle",
790
+ "sqs",
791
+ "websocket"
792
+ ]
793
+ },
794
+ "label": {
795
+ "type": "string",
796
+ "minLength": 1,
797
+ "maxLength": 255
798
+ },
799
+ "x": {
800
+ "type": "number"
801
+ },
802
+ "y": {
803
+ "type": "number"
804
+ },
805
+ "uiId": {
806
+ "type": "string",
807
+ "maxLength": 48
808
+ },
809
+ "description": {
810
+ "type": "string",
811
+ "maxLength": 32767
812
+ },
813
+ "icon": {
814
+ "type": "string",
815
+ "maxLength": 1024
816
+ },
817
+ "color": {
818
+ "type": "string",
819
+ "maxLength": 1024
820
+ },
821
+ "inputCount": {
822
+ "type": "number"
823
+ },
824
+ "outputCount": {
825
+ "type": "number"
826
+ },
827
+ "triggerId": {
828
+ "type": "string",
829
+ "maxLength": 48
830
+ },
831
+ "id": {
832
+ "type": "string",
833
+ "maxLength": 48
834
+ }
835
+ },
836
+ "additionalProperties": false
837
+ },
838
+ "outputIds": {
839
+ "type": "array",
840
+ "items": {
841
+ "type": "array",
842
+ "items": {
843
+ "type": "string",
844
+ "maxLength": 48,
845
+ "minLength": 1
846
+ },
847
+ "maxItems": 100
848
+ },
849
+ "maxItems": 100
850
+ }
851
+ },
852
+ "required": [
853
+ "type"
854
+ ],
855
+ "additionalProperties": false
856
+ },
750
857
  {
751
858
  "type": "object",
752
859
  "properties": {
@@ -3304,7 +3411,6 @@
3304
3411
  "deviceTagConnect",
3305
3412
  "deviceIdDisconnect",
3306
3413
  "deviceTagDisconnect",
3307
- "integration",
3308
3414
  "notebook",
3309
3415
  "onBoot",
3310
3416
  "onConnect",
@@ -3338,21 +3444,15 @@
3338
3444
  "deviceIdsTagsDisconnect",
3339
3445
  "eeaInit",
3340
3446
  "flowError",
3341
- "azureEventHub",
3342
- "googlePubSub",
3343
- "mqtt",
3344
3447
  "notebook",
3345
3448
  "onBoot",
3346
3449
  "onConnect",
3347
3450
  "onDisconnect",
3348
- "particle",
3349
- "sqs",
3350
3451
  "udp",
3351
3452
  "webhook",
3352
3453
  "resourceJobIteration",
3353
3454
  "resourceJobIterationTimeout",
3354
- "resourceJobComplete",
3355
- "websocket"
3455
+ "resourceJobComplete"
3356
3456
  ]
3357
3457
  },
3358
3458
  "label": {
@@ -3523,6 +3623,120 @@
3523
3623
  ],
3524
3624
  "additionalProperties": false
3525
3625
  },
3626
+ {
3627
+ "type": "object",
3628
+ "properties": {
3629
+ "key": {
3630
+ "type": "string",
3631
+ "maxLength": 1024
3632
+ },
3633
+ "type": {
3634
+ "type": "string",
3635
+ "enum": [
3636
+ "integration"
3637
+ ]
3638
+ },
3639
+ "config": {
3640
+ "type": "object",
3641
+ "properties": {
3642
+ "connect": {
3643
+ "type": "boolean"
3644
+ },
3645
+ "message": {
3646
+ "type": "boolean"
3647
+ },
3648
+ "disconnect": {
3649
+ "type": "boolean"
3650
+ },
3651
+ "failure": {
3652
+ "type": "boolean"
3653
+ }
3654
+ },
3655
+ "additionalProperties": false
3656
+ },
3657
+ "meta": {
3658
+ "type": "object",
3659
+ "properties": {
3660
+ "category": {
3661
+ "type": "string",
3662
+ "enum": [
3663
+ "trigger"
3664
+ ]
3665
+ },
3666
+ "name": {
3667
+ "type": "string",
3668
+ "enum": [
3669
+ "azureEventHub",
3670
+ "googlePubSub",
3671
+ "mqtt",
3672
+ "particle",
3673
+ "sqs",
3674
+ "websocket"
3675
+ ]
3676
+ },
3677
+ "label": {
3678
+ "type": "string",
3679
+ "minLength": 1,
3680
+ "maxLength": 255
3681
+ },
3682
+ "x": {
3683
+ "type": "number"
3684
+ },
3685
+ "y": {
3686
+ "type": "number"
3687
+ },
3688
+ "uiId": {
3689
+ "type": "string",
3690
+ "maxLength": 48
3691
+ },
3692
+ "description": {
3693
+ "type": "string",
3694
+ "maxLength": 32767
3695
+ },
3696
+ "icon": {
3697
+ "type": "string",
3698
+ "maxLength": 1024
3699
+ },
3700
+ "color": {
3701
+ "type": "string",
3702
+ "maxLength": 1024
3703
+ },
3704
+ "inputCount": {
3705
+ "type": "number"
3706
+ },
3707
+ "outputCount": {
3708
+ "type": "number"
3709
+ },
3710
+ "triggerId": {
3711
+ "type": "string",
3712
+ "maxLength": 48
3713
+ },
3714
+ "id": {
3715
+ "type": "string",
3716
+ "maxLength": 48
3717
+ }
3718
+ },
3719
+ "additionalProperties": false
3720
+ },
3721
+ "outputIds": {
3722
+ "type": "array",
3723
+ "items": {
3724
+ "type": "array",
3725
+ "items": {
3726
+ "type": "string",
3727
+ "maxLength": 48,
3728
+ "minLength": 1
3729
+ },
3730
+ "maxItems": 100
3731
+ },
3732
+ "maxItems": 100
3733
+ }
3734
+ },
3735
+ "required": [
3736
+ "type"
3737
+ ],
3738
+ "additionalProperties": false
3739
+ },
3526
3740
  {
3527
3741
  "type": "object",
3528
3742
  "properties": {
@@ -5989,7 +6203,6 @@
5989
6203
  "deviceTagConnect",
5990
6204
  "deviceIdDisconnect",
5991
6205
  "deviceTagDisconnect",
5992
- "integration",
5993
6206
  "notebook",
5994
6207
  "onBoot",
5995
6208
  "onConnect",
@@ -6023,21 +6236,15 @@
6023
6236
  "deviceIdsTagsDisconnect",
6024
6237
  "eeaInit",
6025
6238
  "flowError",
6026
- "azureEventHub",
6027
- "googlePubSub",
6028
- "mqtt",
6029
6239
  "notebook",
6030
6240
  "onBoot",
6031
6241
  "onConnect",
6032
6242
  "onDisconnect",
6033
- "particle",
6034
- "sqs",
6035
6243
  "udp",
6036
6244
  "webhook",
6037
6245
  "resourceJobIteration",
6038
6246
  "resourceJobIterationTimeout",
6039
- "resourceJobComplete",
6040
- "websocket"
6247
+ "resourceJobComplete"
6041
6248
  ]
6042
6249
  },
6043
6250
  "label": {
@@ -6208,6 +6415,120 @@
6208
6415
  ],
6209
6416
  "additionalProperties": false
6210
6417
  },
6418
+ {
6419
+ "type": "object",
6420
+ "properties": {
6421
+ "key": {
6422
+ "type": "string",
6423
+ "maxLength": 1024
6424
+ },
6425
+ "type": {
6426
+ "type": "string",
6427
+ "enum": [
6428
+ "integration"
6429
+ ]
6430
+ },
6431
+ "config": {
6432
+ "type": "object",
6433
+ "properties": {
6434
+ "connect": {
6435
+ "type": "boolean"
6436
+ },
6437
+ "message": {
6438
+ "type": "boolean"
6439
+ },
6440
+ "disconnect": {
6441
+ "type": "boolean"
6442
+ },
6443
+ "failure": {
6444
+ "type": "boolean"
6445
+ }
6446
+ },
6447
+ "additionalProperties": false
6448
+ },
6449
+ "meta": {
6450
+ "type": "object",
6451
+ "properties": {
6452
+ "category": {
6453
+ "type": "string",
6454
+ "enum": [
6455
+ "trigger"
6456
+ ]
6457
+ },
6458
+ "name": {
6459
+ "type": "string",
6460
+ "enum": [
6461
+ "azureEventHub",
6462
+ "googlePubSub",
6463
+ "mqtt",
6464
+ "particle",
6465
+ "sqs",
6466
+ "websocket"
6467
+ ]
6468
+ },
6469
+ "label": {
6470
+ "type": "string",
6471
+ "minLength": 1,
6472
+ "maxLength": 255
6473
+ },
6474
+ "x": {
6475
+ "type": "number"
6476
+ },
6477
+ "y": {
6478
+ "type": "number"
6479
+ },
6480
+ "uiId": {
6481
+ "type": "string",
6482
+ "maxLength": 48
6483
+ },
6484
+ "description": {
6485
+ "type": "string",
6486
+ "maxLength": 32767
6487
+ },
6488
+ "icon": {
6489
+ "type": "string",
6490
+ "maxLength": 1024
6491
+ },
6492
+ "color": {
6493
+ "type": "string",
6494
+ "maxLength": 1024
6495
+ },
6496
+ "inputCount": {
6497
+ "type": "number"
6498
+ },
6499
+ "outputCount": {
6500
+ "type": "number"
6501
+ },
6502
+ "triggerId": {
6503
+ "type": "string",
6504
+ "maxLength": 48
6505
+ },
6506
+ "id": {
6507
+ "type": "string",
6508
+ "maxLength": 48
6509
+ }
6510
+ },
6511
+ "additionalProperties": false
6512
+ },
6513
+ "outputIds": {
6514
+ "type": "array",
6515
+ "items": {
6516
+ "type": "array",
6517
+ "items": {
6518
+ "type": "string",
6519
+ "maxLength": 48,
6520
+ "minLength": 1
6521
+ },
6522
+ "maxItems": 100
6523
+ },
6524
+ "maxItems": 100
6525
+ }
6526
+ },
6527
+ "required": [
6528
+ "type"
6529
+ ],
6530
+ "additionalProperties": false
6531
+ },
6211
6532
  {
6212
6533
  "type": "object",
6213
6534
  "properties": {
@@ -176,6 +176,68 @@
176
176
  }
177
177
  },
178
178
  "additionalProperties": false
179
+ },
180
+ "sqlConfig": {
181
+ "type": "object",
182
+ "properties": {
183
+ "system": {
184
+ "type": "string",
185
+ "enum": [
186
+ "mssql",
187
+ "mysql",
188
+ "pg"
189
+ ]
190
+ },
191
+ "host": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 256
195
+ },
196
+ "port": {
197
+ "oneOf": [
198
+ {
199
+ "type": "integer",
200
+ "minimum": 1,
201
+ "maximum": 65535
202
+ },
203
+ {
204
+ "type": "null"
205
+ }
206
+ ]
207
+ },
208
+ "username": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 256
212
+ },
213
+ "password": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 256
217
+ },
218
+ "secureConnection": {
219
+ "type": "boolean"
220
+ },
221
+ "caCertificate": {
222
+ "type": "string",
223
+ "maxLength": 8196
224
+ },
225
+ "disableSSLVerification": {
226
+ "type": "boolean"
227
+ }
228
+ },
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
179
241
  }
180
242
  },
181
243
  "additionalProperties": false
@@ -25,7 +25,9 @@
25
25
  "twilio",
26
26
  "loggly",
27
27
  "jwt",
28
- "whatsapp"
28
+ "whatsapp",
29
+ "sql",
30
+ "mongodb"
29
31
  ]
30
32
  },
31
33
  "awsConfig": {
@@ -225,6 +227,77 @@
225
227
  "accessToken",
226
228
  "fromNumberId"
227
229
  ]
230
+ },
231
+ "sqlConfig": {
232
+ "type": "object",
233
+ "properties": {
234
+ "system": {
235
+ "type": "string",
236
+ "enum": [
237
+ "mssql",
238
+ "mysql",
239
+ "pg"
240
+ ]
241
+ },
242
+ "host": {
243
+ "type": "string",
244
+ "minLength": 1,
245
+ "maxLength": 256
246
+ },
247
+ "port": {
248
+ "oneOf": [
249
+ {
250
+ "type": "integer",
251
+ "minimum": 1,
252
+ "maximum": 65535
253
+ },
254
+ {
255
+ "type": "null"
256
+ }
257
+ ]
258
+ },
259
+ "username": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 256
263
+ },
264
+ "password": {
265
+ "type": "string",
266
+ "minLength": 1,
267
+ "maxLength": 256
268
+ },
269
+ "secureConnection": {
270
+ "type": "boolean"
271
+ },
272
+ "caCertificate": {
273
+ "type": "string",
274
+ "maxLength": 8196
275
+ },
276
+ "disableSSLVerification": {
277
+ "type": "boolean"
278
+ }
279
+ },
280
+ "additionalProperties": false,
281
+ "required": [
282
+ "system",
283
+ "host",
284
+ "username",
285
+ "password"
286
+ ]
287
+ },
288
+ "mongodbConfig": {
289
+ "type": "object",
290
+ "properties": {
291
+ "connectionUri": {
292
+ "type": "string",
293
+ "minLength": 1,
294
+ "maxLength": 2048
295
+ },
296
+ "required": [
297
+ "connectionUri"
298
+ ]
299
+ },
300
+ "additionalProperties": false
228
301
  }
229
302
  },
230
303
  "additionalProperties": false,