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
@@ -101,6 +101,17 @@
101
101
  }
102
102
  },
103
103
  "additionalProperties": false
104
+ },
105
+ "headers": {
106
+ "type": "object",
107
+ "properties": {
108
+ "content-type": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "maxLength": 255
112
+ }
113
+ },
114
+ "additionalProperties": false
104
115
  }
105
116
  }
106
117
  }
@@ -483,6 +494,108 @@
483
494
  "type": "array",
484
495
  "items": {
485
496
  "oneOf": [
497
+ {
498
+ "type": "object",
499
+ "properties": {
500
+ "key": {
501
+ "type": "string",
502
+ "maxLength": 1024
503
+ },
504
+ "type": {
505
+ "type": "string",
506
+ "enum": [
507
+ "appFile"
508
+ ]
509
+ },
510
+ "config": {
511
+ "type": "object",
512
+ "properties": {
513
+ "delete": {
514
+ "type": "boolean"
515
+ },
516
+ "create": {
517
+ "type": "boolean"
518
+ },
519
+ "update": {
520
+ "type": "boolean"
521
+ }
522
+ },
523
+ "additionalProperties": false
524
+ },
525
+ "meta": {
526
+ "type": "object",
527
+ "properties": {
528
+ "category": {
529
+ "type": "string",
530
+ "enum": [
531
+ "trigger"
532
+ ]
533
+ },
534
+ "name": {
535
+ "type": "string",
536
+ "enum": [
537
+ "appFile"
538
+ ]
539
+ },
540
+ "label": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 255
544
+ },
545
+ "x": {
546
+ "type": "number"
547
+ },
548
+ "y": {
549
+ "type": "number"
550
+ },
551
+ "uiId": {
552
+ "type": "string",
553
+ "maxLength": 48
554
+ },
555
+ "description": {
556
+ "type": "string",
557
+ "maxLength": 32767
558
+ },
559
+ "icon": {
560
+ "type": "string",
561
+ "maxLength": 1024
562
+ },
563
+ "color": {
564
+ "type": "string",
565
+ "maxLength": 1024
566
+ },
567
+ "inputCount": {
568
+ "type": "number"
569
+ },
570
+ "outputCount": {
571
+ "type": "number"
572
+ },
573
+ "id": {
574
+ "type": "string",
575
+ "maxLength": 48
576
+ }
577
+ },
578
+ "additionalProperties": false
579
+ },
580
+ "outputIds": {
581
+ "type": "array",
582
+ "items": {
583
+ "type": "array",
584
+ "items": {
585
+ "type": "string",
586
+ "maxLength": 48,
587
+ "minLength": 1
588
+ },
589
+ "maxItems": 100
590
+ },
591
+ "maxItems": 100
592
+ }
593
+ },
594
+ "required": [
595
+ "type"
596
+ ],
597
+ "additionalProperties": false
598
+ },
486
599
  {
487
600
  "type": "object",
488
601
  "properties": {
@@ -499,15 +612,16 @@
499
612
  "deviceTagConnect",
500
613
  "deviceIdDisconnect",
501
614
  "deviceTagDisconnect",
615
+ "inboundEmail",
502
616
  "notebook",
503
617
  "onBoot",
504
618
  "onConnect",
505
619
  "onDisconnect",
506
- "udp",
507
- "webhook",
620
+ "resourceJobComplete",
508
621
  "resourceJobIteration",
509
622
  "resourceJobIterationTimeout",
510
- "resourceJobComplete"
623
+ "udp",
624
+ "webhook"
511
625
  ]
512
626
  },
513
627
  "config": {
@@ -532,15 +646,16 @@
532
646
  "deviceIdsTagsDisconnect",
533
647
  "eeaInit",
534
648
  "flowError",
649
+ "inboundEmail",
535
650
  "notebook",
536
651
  "onBoot",
537
652
  "onConnect",
538
653
  "onDisconnect",
539
- "udp",
540
- "webhook",
654
+ "resourceJobComplete",
541
655
  "resourceJobIteration",
542
656
  "resourceJobIterationTimeout",
543
- "resourceJobComplete"
657
+ "udp",
658
+ "webhook"
544
659
  ]
545
660
  },
546
661
  "label": {
@@ -3366,6 +3481,108 @@
3366
3481
  "type": "array",
3367
3482
  "items": {
3368
3483
  "oneOf": [
3484
+ {
3485
+ "type": "object",
3486
+ "properties": {
3487
+ "key": {
3488
+ "type": "string",
3489
+ "maxLength": 1024
3490
+ },
3491
+ "type": {
3492
+ "type": "string",
3493
+ "enum": [
3494
+ "appFile"
3495
+ ]
3496
+ },
3497
+ "config": {
3498
+ "type": "object",
3499
+ "properties": {
3500
+ "delete": {
3501
+ "type": "boolean"
3502
+ },
3503
+ "create": {
3504
+ "type": "boolean"
3505
+ },
3506
+ "update": {
3507
+ "type": "boolean"
3508
+ }
3509
+ },
3510
+ "additionalProperties": false
3511
+ },
3512
+ "meta": {
3513
+ "type": "object",
3514
+ "properties": {
3515
+ "category": {
3516
+ "type": "string",
3517
+ "enum": [
3518
+ "trigger"
3519
+ ]
3520
+ },
3521
+ "name": {
3522
+ "type": "string",
3523
+ "enum": [
3524
+ "appFile"
3525
+ ]
3526
+ },
3527
+ "label": {
3528
+ "type": "string",
3529
+ "minLength": 1,
3530
+ "maxLength": 255
3531
+ },
3532
+ "x": {
3533
+ "type": "number"
3534
+ },
3535
+ "y": {
3536
+ "type": "number"
3537
+ },
3538
+ "uiId": {
3539
+ "type": "string",
3540
+ "maxLength": 48
3541
+ },
3542
+ "description": {
3543
+ "type": "string",
3544
+ "maxLength": 32767
3545
+ },
3546
+ "icon": {
3547
+ "type": "string",
3548
+ "maxLength": 1024
3549
+ },
3550
+ "color": {
3551
+ "type": "string",
3552
+ "maxLength": 1024
3553
+ },
3554
+ "inputCount": {
3555
+ "type": "number"
3556
+ },
3557
+ "outputCount": {
3558
+ "type": "number"
3559
+ },
3560
+ "id": {
3561
+ "type": "string",
3562
+ "maxLength": 48
3563
+ }
3564
+ },
3565
+ "additionalProperties": false
3566
+ },
3567
+ "outputIds": {
3568
+ "type": "array",
3569
+ "items": {
3570
+ "type": "array",
3571
+ "items": {
3572
+ "type": "string",
3573
+ "maxLength": 48,
3574
+ "minLength": 1
3575
+ },
3576
+ "maxItems": 100
3577
+ },
3578
+ "maxItems": 100
3579
+ }
3580
+ },
3581
+ "required": [
3582
+ "type"
3583
+ ],
3584
+ "additionalProperties": false
3585
+ },
3369
3586
  {
3370
3587
  "type": "object",
3371
3588
  "properties": {
@@ -3382,15 +3599,16 @@
3382
3599
  "deviceTagConnect",
3383
3600
  "deviceIdDisconnect",
3384
3601
  "deviceTagDisconnect",
3602
+ "inboundEmail",
3385
3603
  "notebook",
3386
3604
  "onBoot",
3387
3605
  "onConnect",
3388
3606
  "onDisconnect",
3389
- "udp",
3390
- "webhook",
3607
+ "resourceJobComplete",
3391
3608
  "resourceJobIteration",
3392
3609
  "resourceJobIterationTimeout",
3393
- "resourceJobComplete"
3610
+ "udp",
3611
+ "webhook"
3394
3612
  ]
3395
3613
  },
3396
3614
  "config": {
@@ -3415,15 +3633,16 @@
3415
3633
  "deviceIdsTagsDisconnect",
3416
3634
  "eeaInit",
3417
3635
  "flowError",
3636
+ "inboundEmail",
3418
3637
  "notebook",
3419
3638
  "onBoot",
3420
3639
  "onConnect",
3421
3640
  "onDisconnect",
3422
- "udp",
3423
- "webhook",
3641
+ "resourceJobComplete",
3424
3642
  "resourceJobIteration",
3425
3643
  "resourceJobIterationTimeout",
3426
- "resourceJobComplete"
3644
+ "udp",
3645
+ "webhook"
3427
3646
  ]
3428
3647
  },
3429
3648
  "label": {
@@ -6158,6 +6377,108 @@
6158
6377
  "type": "array",
6159
6378
  "items": {
6160
6379
  "oneOf": [
6380
+ {
6381
+ "type": "object",
6382
+ "properties": {
6383
+ "key": {
6384
+ "type": "string",
6385
+ "maxLength": 1024
6386
+ },
6387
+ "type": {
6388
+ "type": "string",
6389
+ "enum": [
6390
+ "appFile"
6391
+ ]
6392
+ },
6393
+ "config": {
6394
+ "type": "object",
6395
+ "properties": {
6396
+ "delete": {
6397
+ "type": "boolean"
6398
+ },
6399
+ "create": {
6400
+ "type": "boolean"
6401
+ },
6402
+ "update": {
6403
+ "type": "boolean"
6404
+ }
6405
+ },
6406
+ "additionalProperties": false
6407
+ },
6408
+ "meta": {
6409
+ "type": "object",
6410
+ "properties": {
6411
+ "category": {
6412
+ "type": "string",
6413
+ "enum": [
6414
+ "trigger"
6415
+ ]
6416
+ },
6417
+ "name": {
6418
+ "type": "string",
6419
+ "enum": [
6420
+ "appFile"
6421
+ ]
6422
+ },
6423
+ "label": {
6424
+ "type": "string",
6425
+ "minLength": 1,
6426
+ "maxLength": 255
6427
+ },
6428
+ "x": {
6429
+ "type": "number"
6430
+ },
6431
+ "y": {
6432
+ "type": "number"
6433
+ },
6434
+ "uiId": {
6435
+ "type": "string",
6436
+ "maxLength": 48
6437
+ },
6438
+ "description": {
6439
+ "type": "string",
6440
+ "maxLength": 32767
6441
+ },
6442
+ "icon": {
6443
+ "type": "string",
6444
+ "maxLength": 1024
6445
+ },
6446
+ "color": {
6447
+ "type": "string",
6448
+ "maxLength": 1024
6449
+ },
6450
+ "inputCount": {
6451
+ "type": "number"
6452
+ },
6453
+ "outputCount": {
6454
+ "type": "number"
6455
+ },
6456
+ "id": {
6457
+ "type": "string",
6458
+ "maxLength": 48
6459
+ }
6460
+ },
6461
+ "additionalProperties": false
6462
+ },
6463
+ "outputIds": {
6464
+ "type": "array",
6465
+ "items": {
6466
+ "type": "array",
6467
+ "items": {
6468
+ "type": "string",
6469
+ "maxLength": 48,
6470
+ "minLength": 1
6471
+ },
6472
+ "maxItems": 100
6473
+ },
6474
+ "maxItems": 100
6475
+ }
6476
+ },
6477
+ "required": [
6478
+ "type"
6479
+ ],
6480
+ "additionalProperties": false
6481
+ },
6161
6482
  {
6162
6483
  "type": "object",
6163
6484
  "properties": {
@@ -6174,15 +6495,16 @@
6174
6495
  "deviceTagConnect",
6175
6496
  "deviceIdDisconnect",
6176
6497
  "deviceTagDisconnect",
6498
+ "inboundEmail",
6177
6499
  "notebook",
6178
6500
  "onBoot",
6179
6501
  "onConnect",
6180
6502
  "onDisconnect",
6181
- "udp",
6182
- "webhook",
6503
+ "resourceJobComplete",
6183
6504
  "resourceJobIteration",
6184
6505
  "resourceJobIterationTimeout",
6185
- "resourceJobComplete"
6506
+ "udp",
6507
+ "webhook"
6186
6508
  ]
6187
6509
  },
6188
6510
  "config": {
@@ -6207,15 +6529,16 @@
6207
6529
  "deviceIdsTagsDisconnect",
6208
6530
  "eeaInit",
6209
6531
  "flowError",
6532
+ "inboundEmail",
6210
6533
  "notebook",
6211
6534
  "onBoot",
6212
6535
  "onConnect",
6213
6536
  "onDisconnect",
6214
- "udp",
6215
- "webhook",
6537
+ "resourceJobComplete",
6216
6538
  "resourceJobIteration",
6217
6539
  "resourceJobIterationTimeout",
6218
- "resourceJobComplete"
6540
+ "udp",
6541
+ "webhook"
6219
6542
  ]
6220
6543
  },
6221
6544
  "label": {
@@ -89,6 +89,17 @@
89
89
  }
90
90
  },
91
91
  "additionalProperties": false
92
+ },
93
+ "headers": {
94
+ "type": "object",
95
+ "properties": {
96
+ "content-type": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 255
100
+ }
101
+ },
102
+ "additionalProperties": false
92
103
  }
93
104
  }
94
105
  }
@@ -32,6 +32,17 @@
32
32
  }
33
33
  },
34
34
  "additionalProperties": false
35
+ },
36
+ "headers": {
37
+ "type": "object",
38
+ "properties": {
39
+ "content-type": {
40
+ "type": "string",
41
+ "minLength": 1,
42
+ "maxLength": 255
43
+ }
44
+ },
45
+ "additionalProperties": false
35
46
  }
36
47
  },
37
48
  "additionalProperties": false
@@ -40,6 +40,17 @@
40
40
  }
41
41
  },
42
42
  "additionalProperties": false
43
+ },
44
+ "headers": {
45
+ "type": "object",
46
+ "properties": {
47
+ "content-type": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 255
51
+ }
52
+ },
53
+ "additionalProperties": false
43
54
  }
44
55
  },
45
56
  "additionalProperties": false,
@@ -96,6 +96,17 @@
96
96
  }
97
97
  },
98
98
  "additionalProperties": false
99
+ },
100
+ "headers": {
101
+ "type": "object",
102
+ "properties": {
103
+ "content-type": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "maxLength": 255
107
+ }
108
+ },
109
+ "additionalProperties": false
99
110
  }
100
111
  }
101
112
  }
data/schemas/flow.json CHANGED
@@ -103,6 +103,108 @@
103
103
  "type": "array",
104
104
  "items": {
105
105
  "oneOf": [
106
+ {
107
+ "type": "object",
108
+ "properties": {
109
+ "key": {
110
+ "type": "string",
111
+ "maxLength": 1024
112
+ },
113
+ "type": {
114
+ "type": "string",
115
+ "enum": [
116
+ "appFile"
117
+ ]
118
+ },
119
+ "config": {
120
+ "type": "object",
121
+ "properties": {
122
+ "delete": {
123
+ "type": "boolean"
124
+ },
125
+ "create": {
126
+ "type": "boolean"
127
+ },
128
+ "update": {
129
+ "type": "boolean"
130
+ }
131
+ },
132
+ "additionalProperties": false
133
+ },
134
+ "meta": {
135
+ "type": "object",
136
+ "properties": {
137
+ "category": {
138
+ "type": "string",
139
+ "enum": [
140
+ "trigger"
141
+ ]
142
+ },
143
+ "name": {
144
+ "type": "string",
145
+ "enum": [
146
+ "appFile"
147
+ ]
148
+ },
149
+ "label": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "maxLength": 255
153
+ },
154
+ "x": {
155
+ "type": "number"
156
+ },
157
+ "y": {
158
+ "type": "number"
159
+ },
160
+ "uiId": {
161
+ "type": "string",
162
+ "maxLength": 48
163
+ },
164
+ "description": {
165
+ "type": "string",
166
+ "maxLength": 32767
167
+ },
168
+ "icon": {
169
+ "type": "string",
170
+ "maxLength": 1024
171
+ },
172
+ "color": {
173
+ "type": "string",
174
+ "maxLength": 1024
175
+ },
176
+ "inputCount": {
177
+ "type": "number"
178
+ },
179
+ "outputCount": {
180
+ "type": "number"
181
+ },
182
+ "id": {
183
+ "type": "string",
184
+ "maxLength": 48
185
+ }
186
+ },
187
+ "additionalProperties": false
188
+ },
189
+ "outputIds": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "string",
195
+ "maxLength": 48,
196
+ "minLength": 1
197
+ },
198
+ "maxItems": 100
199
+ },
200
+ "maxItems": 100
201
+ }
202
+ },
203
+ "required": [
204
+ "type"
205
+ ],
206
+ "additionalProperties": false
207
+ },
106
208
  {
107
209
  "type": "object",
108
210
  "properties": {
@@ -119,15 +221,16 @@
119
221
  "deviceTagConnect",
120
222
  "deviceIdDisconnect",
121
223
  "deviceTagDisconnect",
224
+ "inboundEmail",
122
225
  "notebook",
123
226
  "onBoot",
124
227
  "onConnect",
125
228
  "onDisconnect",
126
- "udp",
127
- "webhook",
229
+ "resourceJobComplete",
128
230
  "resourceJobIteration",
129
231
  "resourceJobIterationTimeout",
130
- "resourceJobComplete"
232
+ "udp",
233
+ "webhook"
131
234
  ]
132
235
  },
133
236
  "config": {
@@ -152,15 +255,16 @@
152
255
  "deviceIdsTagsDisconnect",
153
256
  "eeaInit",
154
257
  "flowError",
258
+ "inboundEmail",
155
259
  "notebook",
156
260
  "onBoot",
157
261
  "onConnect",
158
262
  "onDisconnect",
159
- "udp",
160
- "webhook",
263
+ "resourceJobComplete",
161
264
  "resourceJobIteration",
162
265
  "resourceJobIterationTimeout",
163
- "resourceJobComplete"
266
+ "udp",
267
+ "webhook"
164
268
  ]
165
269
  },
166
270
  "label": {