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
@@ -127,7 +127,6 @@
127
127
  "deviceTagConnect",
128
128
  "deviceIdDisconnect",
129
129
  "deviceTagDisconnect",
130
- "integration",
131
130
  "notebook",
132
131
  "onBoot",
133
132
  "onConnect",
@@ -161,21 +160,15 @@
161
160
  "deviceIdsTagsDisconnect",
162
161
  "eeaInit",
163
162
  "flowError",
164
- "azureEventHub",
165
- "googlePubSub",
166
- "mqtt",
167
163
  "notebook",
168
164
  "onBoot",
169
165
  "onConnect",
170
166
  "onDisconnect",
171
- "particle",
172
- "sqs",
173
167
  "udp",
174
168
  "webhook",
175
169
  "resourceJobIteration",
176
170
  "resourceJobIterationTimeout",
177
- "resourceJobComplete",
178
- "websocket"
171
+ "resourceJobComplete"
179
172
  ]
180
173
  },
181
174
  "label": {
@@ -346,6 +339,120 @@
346
339
  ],
347
340
  "additionalProperties": false
348
341
  },
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "key": {
346
+ "type": "string",
347
+ "maxLength": 1024
348
+ },
349
+ "type": {
350
+ "type": "string",
351
+ "enum": [
352
+ "integration"
353
+ ]
354
+ },
355
+ "config": {
356
+ "type": "object",
357
+ "properties": {
358
+ "connect": {
359
+ "type": "boolean"
360
+ },
361
+ "message": {
362
+ "type": "boolean"
363
+ },
364
+ "disconnect": {
365
+ "type": "boolean"
366
+ },
367
+ "failure": {
368
+ "type": "boolean"
369
+ }
370
+ },
371
+ "additionalProperties": false
372
+ },
373
+ "meta": {
374
+ "type": "object",
375
+ "properties": {
376
+ "category": {
377
+ "type": "string",
378
+ "enum": [
379
+ "trigger"
380
+ ]
381
+ },
382
+ "name": {
383
+ "type": "string",
384
+ "enum": [
385
+ "azureEventHub",
386
+ "googlePubSub",
387
+ "mqtt",
388
+ "particle",
389
+ "sqs",
390
+ "websocket"
391
+ ]
392
+ },
393
+ "label": {
394
+ "type": "string",
395
+ "minLength": 1,
396
+ "maxLength": 255
397
+ },
398
+ "x": {
399
+ "type": "number"
400
+ },
401
+ "y": {
402
+ "type": "number"
403
+ },
404
+ "uiId": {
405
+ "type": "string",
406
+ "maxLength": 48
407
+ },
408
+ "description": {
409
+ "type": "string",
410
+ "maxLength": 32767
411
+ },
412
+ "icon": {
413
+ "type": "string",
414
+ "maxLength": 1024
415
+ },
416
+ "color": {
417
+ "type": "string",
418
+ "maxLength": 1024
419
+ },
420
+ "inputCount": {
421
+ "type": "number"
422
+ },
423
+ "outputCount": {
424
+ "type": "number"
425
+ },
426
+ "triggerId": {
427
+ "type": "string",
428
+ "maxLength": 48
429
+ },
430
+ "id": {
431
+ "type": "string",
432
+ "maxLength": 48
433
+ }
434
+ },
435
+ "additionalProperties": false
436
+ },
437
+ "outputIds": {
438
+ "type": "array",
439
+ "items": {
440
+ "type": "array",
441
+ "items": {
442
+ "type": "string",
443
+ "maxLength": 48,
444
+ "minLength": 1
445
+ },
446
+ "maxItems": 100
447
+ },
448
+ "maxItems": 100
449
+ }
450
+ },
451
+ "required": [
452
+ "type"
453
+ ],
454
+ "additionalProperties": false
455
+ },
349
456
  {
350
457
  "type": "object",
351
458
  "properties": {
@@ -2852,7 +2959,6 @@
2852
2959
  "deviceTagConnect",
2853
2960
  "deviceIdDisconnect",
2854
2961
  "deviceTagDisconnect",
2855
- "integration",
2856
2962
  "notebook",
2857
2963
  "onBoot",
2858
2964
  "onConnect",
@@ -2886,21 +2992,15 @@
2886
2992
  "deviceIdsTagsDisconnect",
2887
2993
  "eeaInit",
2888
2994
  "flowError",
2889
- "azureEventHub",
2890
- "googlePubSub",
2891
- "mqtt",
2892
2995
  "notebook",
2893
2996
  "onBoot",
2894
2997
  "onConnect",
2895
2998
  "onDisconnect",
2896
- "particle",
2897
- "sqs",
2898
2999
  "udp",
2899
3000
  "webhook",
2900
3001
  "resourceJobIteration",
2901
3002
  "resourceJobIterationTimeout",
2902
- "resourceJobComplete",
2903
- "websocket"
3003
+ "resourceJobComplete"
2904
3004
  ]
2905
3005
  },
2906
3006
  "label": {
@@ -3071,6 +3171,120 @@
3071
3171
  ],
3072
3172
  "additionalProperties": false
3073
3173
  },
3174
+ {
3175
+ "type": "object",
3176
+ "properties": {
3177
+ "key": {
3178
+ "type": "string",
3179
+ "maxLength": 1024
3180
+ },
3181
+ "type": {
3182
+ "type": "string",
3183
+ "enum": [
3184
+ "integration"
3185
+ ]
3186
+ },
3187
+ "config": {
3188
+ "type": "object",
3189
+ "properties": {
3190
+ "connect": {
3191
+ "type": "boolean"
3192
+ },
3193
+ "message": {
3194
+ "type": "boolean"
3195
+ },
3196
+ "disconnect": {
3197
+ "type": "boolean"
3198
+ },
3199
+ "failure": {
3200
+ "type": "boolean"
3201
+ }
3202
+ },
3203
+ "additionalProperties": false
3204
+ },
3205
+ "meta": {
3206
+ "type": "object",
3207
+ "properties": {
3208
+ "category": {
3209
+ "type": "string",
3210
+ "enum": [
3211
+ "trigger"
3212
+ ]
3213
+ },
3214
+ "name": {
3215
+ "type": "string",
3216
+ "enum": [
3217
+ "azureEventHub",
3218
+ "googlePubSub",
3219
+ "mqtt",
3220
+ "particle",
3221
+ "sqs",
3222
+ "websocket"
3223
+ ]
3224
+ },
3225
+ "label": {
3226
+ "type": "string",
3227
+ "minLength": 1,
3228
+ "maxLength": 255
3229
+ },
3230
+ "x": {
3231
+ "type": "number"
3232
+ },
3233
+ "y": {
3234
+ "type": "number"
3235
+ },
3236
+ "uiId": {
3237
+ "type": "string",
3238
+ "maxLength": 48
3239
+ },
3240
+ "description": {
3241
+ "type": "string",
3242
+ "maxLength": 32767
3243
+ },
3244
+ "icon": {
3245
+ "type": "string",
3246
+ "maxLength": 1024
3247
+ },
3248
+ "color": {
3249
+ "type": "string",
3250
+ "maxLength": 1024
3251
+ },
3252
+ "inputCount": {
3253
+ "type": "number"
3254
+ },
3255
+ "outputCount": {
3256
+ "type": "number"
3257
+ },
3258
+ "triggerId": {
3259
+ "type": "string",
3260
+ "maxLength": 48
3261
+ },
3262
+ "id": {
3263
+ "type": "string",
3264
+ "maxLength": 48
3265
+ }
3266
+ },
3267
+ "additionalProperties": false
3268
+ },
3269
+ "outputIds": {
3270
+ "type": "array",
3271
+ "items": {
3272
+ "type": "array",
3273
+ "items": {
3274
+ "type": "string",
3275
+ "maxLength": 48,
3276
+ "minLength": 1
3277
+ },
3278
+ "maxItems": 100
3279
+ },
3280
+ "maxItems": 100
3281
+ }
3282
+ },
3283
+ "required": [
3284
+ "type"
3285
+ ],
3286
+ "additionalProperties": false
3287
+ },
3074
3288
  {
3075
3289
  "type": "object",
3076
3290
  "properties": {
@@ -5537,7 +5751,6 @@
5537
5751
  "deviceTagConnect",
5538
5752
  "deviceIdDisconnect",
5539
5753
  "deviceTagDisconnect",
5540
- "integration",
5541
5754
  "notebook",
5542
5755
  "onBoot",
5543
5756
  "onConnect",
@@ -5571,21 +5784,15 @@
5571
5784
  "deviceIdsTagsDisconnect",
5572
5785
  "eeaInit",
5573
5786
  "flowError",
5574
- "azureEventHub",
5575
- "googlePubSub",
5576
- "mqtt",
5577
5787
  "notebook",
5578
5788
  "onBoot",
5579
5789
  "onConnect",
5580
5790
  "onDisconnect",
5581
- "particle",
5582
- "sqs",
5583
5791
  "udp",
5584
5792
  "webhook",
5585
5793
  "resourceJobIteration",
5586
5794
  "resourceJobIterationTimeout",
5587
- "resourceJobComplete",
5588
- "websocket"
5795
+ "resourceJobComplete"
5589
5796
  ]
5590
5797
  },
5591
5798
  "label": {
@@ -5756,6 +5963,120 @@
5756
5963
  ],
5757
5964
  "additionalProperties": false
5758
5965
  },
5966
+ {
5967
+ "type": "object",
5968
+ "properties": {
5969
+ "key": {
5970
+ "type": "string",
5971
+ "maxLength": 1024
5972
+ },
5973
+ "type": {
5974
+ "type": "string",
5975
+ "enum": [
5976
+ "integration"
5977
+ ]
5978
+ },
5979
+ "config": {
5980
+ "type": "object",
5981
+ "properties": {
5982
+ "connect": {
5983
+ "type": "boolean"
5984
+ },
5985
+ "message": {
5986
+ "type": "boolean"
5987
+ },
5988
+ "disconnect": {
5989
+ "type": "boolean"
5990
+ },
5991
+ "failure": {
5992
+ "type": "boolean"
5993
+ }
5994
+ },
5995
+ "additionalProperties": false
5996
+ },
5997
+ "meta": {
5998
+ "type": "object",
5999
+ "properties": {
6000
+ "category": {
6001
+ "type": "string",
6002
+ "enum": [
6003
+ "trigger"
6004
+ ]
6005
+ },
6006
+ "name": {
6007
+ "type": "string",
6008
+ "enum": [
6009
+ "azureEventHub",
6010
+ "googlePubSub",
6011
+ "mqtt",
6012
+ "particle",
6013
+ "sqs",
6014
+ "websocket"
6015
+ ]
6016
+ },
6017
+ "label": {
6018
+ "type": "string",
6019
+ "minLength": 1,
6020
+ "maxLength": 255
6021
+ },
6022
+ "x": {
6023
+ "type": "number"
6024
+ },
6025
+ "y": {
6026
+ "type": "number"
6027
+ },
6028
+ "uiId": {
6029
+ "type": "string",
6030
+ "maxLength": 48
6031
+ },
6032
+ "description": {
6033
+ "type": "string",
6034
+ "maxLength": 32767
6035
+ },
6036
+ "icon": {
6037
+ "type": "string",
6038
+ "maxLength": 1024
6039
+ },
6040
+ "color": {
6041
+ "type": "string",
6042
+ "maxLength": 1024
6043
+ },
6044
+ "inputCount": {
6045
+ "type": "number"
6046
+ },
6047
+ "outputCount": {
6048
+ "type": "number"
6049
+ },
6050
+ "triggerId": {
6051
+ "type": "string",
6052
+ "maxLength": 48
6053
+ },
6054
+ "id": {
6055
+ "type": "string",
6056
+ "maxLength": 48
6057
+ }
6058
+ },
6059
+ "additionalProperties": false
6060
+ },
6061
+ "outputIds": {
6062
+ "type": "array",
6063
+ "items": {
6064
+ "type": "array",
6065
+ "items": {
6066
+ "type": "string",
6067
+ "maxLength": 48,
6068
+ "minLength": 1
6069
+ },
6070
+ "maxItems": 100
6071
+ },
6072
+ "maxItems": 100
6073
+ }
6074
+ },
6075
+ "required": [
6076
+ "type"
6077
+ ],
6078
+ "additionalProperties": false
6079
+ },
5759
6080
  {
5760
6081
  "type": "object",
5761
6082
  "properties": {
@@ -517,7 +517,8 @@
517
517
  "items": {
518
518
  "type": "string",
519
519
  "enum": [
520
- "cloud"
520
+ "cloud",
521
+ "edge"
521
522
  ]
522
523
  }
523
524
  },
@@ -66,7 +66,6 @@
66
66
  "deviceTagConnect",
67
67
  "deviceIdDisconnect",
68
68
  "deviceTagDisconnect",
69
- "integration",
70
69
  "notebook",
71
70
  "onBoot",
72
71
  "onConnect",
@@ -100,21 +99,15 @@
100
99
  "deviceIdsTagsDisconnect",
101
100
  "eeaInit",
102
101
  "flowError",
103
- "azureEventHub",
104
- "googlePubSub",
105
- "mqtt",
106
102
  "notebook",
107
103
  "onBoot",
108
104
  "onConnect",
109
105
  "onDisconnect",
110
- "particle",
111
- "sqs",
112
106
  "udp",
113
107
  "webhook",
114
108
  "resourceJobIteration",
115
109
  "resourceJobIterationTimeout",
116
- "resourceJobComplete",
117
- "websocket"
110
+ "resourceJobComplete"
118
111
  ]
119
112
  },
120
113
  "label": {
@@ -659,7 +652,8 @@
659
652
  "items": {
660
653
  "type": "string",
661
654
  "enum": [
662
- "cloud"
655
+ "cloud",
656
+ "edge"
663
657
  ]
664
658
  }
665
659
  }
@@ -66,7 +66,6 @@
66
66
  "deviceTagConnect",
67
67
  "deviceIdDisconnect",
68
68
  "deviceTagDisconnect",
69
- "integration",
70
69
  "notebook",
71
70
  "onBoot",
72
71
  "onConnect",
@@ -100,21 +99,15 @@
100
99
  "deviceIdsTagsDisconnect",
101
100
  "eeaInit",
102
101
  "flowError",
103
- "azureEventHub",
104
- "googlePubSub",
105
- "mqtt",
106
102
  "notebook",
107
103
  "onBoot",
108
104
  "onConnect",
109
105
  "onDisconnect",
110
- "particle",
111
- "sqs",
112
106
  "udp",
113
107
  "webhook",
114
108
  "resourceJobIteration",
115
109
  "resourceJobIterationTimeout",
116
- "resourceJobComplete",
117
- "websocket"
110
+ "resourceJobComplete"
118
111
  ]
119
112
  },
120
113
  "label": {
@@ -659,7 +652,8 @@
659
652
  "items": {
660
653
  "type": "string",
661
654
  "enum": [
662
- "cloud"
655
+ "cloud",
656
+ "edge"
663
657
  ]
664
658
  }
665
659
  }
@@ -524,7 +524,8 @@
524
524
  "items": {
525
525
  "type": "string",
526
526
  "enum": [
527
- "cloud"
527
+ "cloud",
528
+ "edge"
528
529
  ]
529
530
  }
530
531
  },
@@ -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": [
@@ -46,7 +46,8 @@
46
46
  "enum": [
47
47
  "dataTableRow",
48
48
  "device",
49
- "experienceGroup"
49
+ "experienceGroup",
50
+ "experienceUser"
50
51
  ]
51
52
  },
52
53
  "maxIterationConcurrency": {
@@ -44,7 +44,8 @@
44
44
  "enum": [
45
45
  "dataTableRow",
46
46
  "device",
47
- "experienceGroup"
47
+ "experienceGroup",
48
+ "experienceUser"
48
49
  ]
49
50
  },
50
51
  "sourceType": {
@@ -34,7 +34,8 @@
34
34
  "enum": [
35
35
  "dataTableRow",
36
36
  "device",
37
- "experienceGroup"
37
+ "experienceGroup",
38
+ "experienceUser"
38
39
  ]
39
40
  },
40
41
  "maxIterationConcurrency": {
@@ -53,7 +53,8 @@
53
53
  "enum": [
54
54
  "dataTableRow",
55
55
  "device",
56
- "experienceGroup"
56
+ "experienceGroup",
57
+ "experienceUser"
57
58
  ]
58
59
  },
59
60
  "maxIterationConcurrency": {