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
@@ -94,6 +94,70 @@
94
94
  ]
95
95
  }
96
96
  },
97
+ "notFoundReply": {
98
+ "oneOf": [
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "value": {
103
+ "type": "string"
104
+ },
105
+ "statusCode": {
106
+ "type": "integer",
107
+ "minimum": 100,
108
+ "maximum": 599
109
+ },
110
+ "type": {
111
+ "type": "string",
112
+ "enum": [
113
+ "page",
114
+ "redirect"
115
+ ]
116
+ }
117
+ },
118
+ "required": [
119
+ "value",
120
+ "type"
121
+ ],
122
+ "additionalProperties": false
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "unauthorizedReply": {
130
+ "oneOf": [
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "value": {
135
+ "type": "string"
136
+ },
137
+ "statusCode": {
138
+ "type": "integer",
139
+ "minimum": 100,
140
+ "maximum": 599
141
+ },
142
+ "type": {
143
+ "type": "string",
144
+ "enum": [
145
+ "page",
146
+ "redirect"
147
+ ]
148
+ }
149
+ },
150
+ "required": [
151
+ "value",
152
+ "type"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ {
157
+ "type": "null"
158
+ }
159
+ ]
160
+ },
97
161
  "attachedDomains": {
98
162
  "type": "array",
99
163
  "items": {
@@ -41,6 +41,70 @@
41
41
  ]
42
42
  }
43
43
  },
44
+ "notFoundReply": {
45
+ "oneOf": [
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "value": {
50
+ "type": "string"
51
+ },
52
+ "statusCode": {
53
+ "type": "integer",
54
+ "minimum": 100,
55
+ "maximum": 599
56
+ },
57
+ "type": {
58
+ "type": "string",
59
+ "enum": [
60
+ "page",
61
+ "redirect"
62
+ ]
63
+ }
64
+ },
65
+ "required": [
66
+ "value",
67
+ "type"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ]
75
+ },
76
+ "unauthorizedReply": {
77
+ "oneOf": [
78
+ {
79
+ "type": "object",
80
+ "properties": {
81
+ "value": {
82
+ "type": "string"
83
+ },
84
+ "statusCode": {
85
+ "type": "integer",
86
+ "minimum": 100,
87
+ "maximum": 599
88
+ },
89
+ "type": {
90
+ "type": "string",
91
+ "enum": [
92
+ "page",
93
+ "redirect"
94
+ ]
95
+ }
96
+ },
97
+ "required": [
98
+ "value",
99
+ "type"
100
+ ],
101
+ "additionalProperties": false
102
+ },
103
+ {
104
+ "type": "null"
105
+ }
106
+ ]
107
+ },
44
108
  "description": {
45
109
  "type": "string",
46
110
  "maxLength": 32767
@@ -57,6 +57,70 @@
57
57
  ]
58
58
  }
59
59
  },
60
+ "notFoundReply": {
61
+ "oneOf": [
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "value": {
66
+ "type": "string"
67
+ },
68
+ "statusCode": {
69
+ "type": "integer",
70
+ "minimum": 100,
71
+ "maximum": 599
72
+ },
73
+ "type": {
74
+ "type": "string",
75
+ "enum": [
76
+ "page",
77
+ "redirect"
78
+ ]
79
+ }
80
+ },
81
+ "required": [
82
+ "value",
83
+ "type"
84
+ ],
85
+ "additionalProperties": false
86
+ },
87
+ {
88
+ "type": "null"
89
+ }
90
+ ]
91
+ },
92
+ "unauthorizedReply": {
93
+ "oneOf": [
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "value": {
98
+ "type": "string"
99
+ },
100
+ "statusCode": {
101
+ "type": "integer",
102
+ "minimum": 100,
103
+ "maximum": 599
104
+ },
105
+ "type": {
106
+ "type": "string",
107
+ "enum": [
108
+ "page",
109
+ "redirect"
110
+ ]
111
+ }
112
+ },
113
+ "required": [
114
+ "value",
115
+ "type"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "null"
121
+ }
122
+ ]
123
+ },
60
124
  "allowedCorsOrigins": {
61
125
  "type": "array",
62
126
  "items": {
@@ -101,6 +101,70 @@
101
101
  ]
102
102
  }
103
103
  },
104
+ "notFoundReply": {
105
+ "oneOf": [
106
+ {
107
+ "type": "object",
108
+ "properties": {
109
+ "value": {
110
+ "type": "string"
111
+ },
112
+ "statusCode": {
113
+ "type": "integer",
114
+ "minimum": 100,
115
+ "maximum": 599
116
+ },
117
+ "type": {
118
+ "type": "string",
119
+ "enum": [
120
+ "page",
121
+ "redirect"
122
+ ]
123
+ }
124
+ },
125
+ "required": [
126
+ "value",
127
+ "type"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ {
132
+ "type": "null"
133
+ }
134
+ ]
135
+ },
136
+ "unauthorizedReply": {
137
+ "oneOf": [
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "value": {
142
+ "type": "string"
143
+ },
144
+ "statusCode": {
145
+ "type": "integer",
146
+ "minimum": 100,
147
+ "maximum": 599
148
+ },
149
+ "type": {
150
+ "type": "string",
151
+ "enum": [
152
+ "page",
153
+ "redirect"
154
+ ]
155
+ }
156
+ },
157
+ "required": [
158
+ "value",
159
+ "type"
160
+ ],
161
+ "additionalProperties": false
162
+ },
163
+ {
164
+ "type": "null"
165
+ }
166
+ ]
167
+ },
104
168
  "attachedDomains": {
105
169
  "type": "array",
106
170
  "items": {
@@ -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
@@ -119,7 +119,6 @@
119
119
  "deviceTagConnect",
120
120
  "deviceIdDisconnect",
121
121
  "deviceTagDisconnect",
122
- "integration",
123
122
  "notebook",
124
123
  "onBoot",
125
124
  "onConnect",
@@ -153,21 +152,15 @@
153
152
  "deviceIdsTagsDisconnect",
154
153
  "eeaInit",
155
154
  "flowError",
156
- "azureEventHub",
157
- "googlePubSub",
158
- "mqtt",
159
155
  "notebook",
160
156
  "onBoot",
161
157
  "onConnect",
162
158
  "onDisconnect",
163
- "particle",
164
- "sqs",
165
159
  "udp",
166
160
  "webhook",
167
161
  "resourceJobIteration",
168
162
  "resourceJobIterationTimeout",
169
- "resourceJobComplete",
170
- "websocket"
163
+ "resourceJobComplete"
171
164
  ]
172
165
  },
173
166
  "label": {
@@ -338,6 +331,120 @@
338
331
  ],
339
332
  "additionalProperties": false
340
333
  },
334
+ {
335
+ "type": "object",
336
+ "properties": {
337
+ "key": {
338
+ "type": "string",
339
+ "maxLength": 1024
340
+ },
341
+ "type": {
342
+ "type": "string",
343
+ "enum": [
344
+ "integration"
345
+ ]
346
+ },
347
+ "config": {
348
+ "type": "object",
349
+ "properties": {
350
+ "connect": {
351
+ "type": "boolean"
352
+ },
353
+ "message": {
354
+ "type": "boolean"
355
+ },
356
+ "disconnect": {
357
+ "type": "boolean"
358
+ },
359
+ "failure": {
360
+ "type": "boolean"
361
+ }
362
+ },
363
+ "additionalProperties": false
364
+ },
365
+ "meta": {
366
+ "type": "object",
367
+ "properties": {
368
+ "category": {
369
+ "type": "string",
370
+ "enum": [
371
+ "trigger"
372
+ ]
373
+ },
374
+ "name": {
375
+ "type": "string",
376
+ "enum": [
377
+ "azureEventHub",
378
+ "googlePubSub",
379
+ "mqtt",
380
+ "particle",
381
+ "sqs",
382
+ "websocket"
383
+ ]
384
+ },
385
+ "label": {
386
+ "type": "string",
387
+ "minLength": 1,
388
+ "maxLength": 255
389
+ },
390
+ "x": {
391
+ "type": "number"
392
+ },
393
+ "y": {
394
+ "type": "number"
395
+ },
396
+ "uiId": {
397
+ "type": "string",
398
+ "maxLength": 48
399
+ },
400
+ "description": {
401
+ "type": "string",
402
+ "maxLength": 32767
403
+ },
404
+ "icon": {
405
+ "type": "string",
406
+ "maxLength": 1024
407
+ },
408
+ "color": {
409
+ "type": "string",
410
+ "maxLength": 1024
411
+ },
412
+ "inputCount": {
413
+ "type": "number"
414
+ },
415
+ "outputCount": {
416
+ "type": "number"
417
+ },
418
+ "triggerId": {
419
+ "type": "string",
420
+ "maxLength": 48
421
+ },
422
+ "id": {
423
+ "type": "string",
424
+ "maxLength": 48
425
+ }
426
+ },
427
+ "additionalProperties": false
428
+ },
429
+ "outputIds": {
430
+ "type": "array",
431
+ "items": {
432
+ "type": "array",
433
+ "items": {
434
+ "type": "string",
435
+ "maxLength": 48,
436
+ "minLength": 1
437
+ },
438
+ "maxItems": 100
439
+ },
440
+ "maxItems": 100
441
+ }
442
+ },
443
+ "required": [
444
+ "type"
445
+ ],
446
+ "additionalProperties": false
447
+ },
341
448
  {
342
449
  "type": "object",
343
450
  "properties": {
@@ -76,7 +76,6 @@
76
76
  "deviceTagConnect",
77
77
  "deviceIdDisconnect",
78
78
  "deviceTagDisconnect",
79
- "integration",
80
79
  "notebook",
81
80
  "onBoot",
82
81
  "onConnect",
@@ -110,21 +109,15 @@
110
109
  "deviceIdsTagsDisconnect",
111
110
  "eeaInit",
112
111
  "flowError",
113
- "azureEventHub",
114
- "googlePubSub",
115
- "mqtt",
116
112
  "notebook",
117
113
  "onBoot",
118
114
  "onConnect",
119
115
  "onDisconnect",
120
- "particle",
121
- "sqs",
122
116
  "udp",
123
117
  "webhook",
124
118
  "resourceJobIteration",
125
119
  "resourceJobIterationTimeout",
126
- "resourceJobComplete",
127
- "websocket"
120
+ "resourceJobComplete"
128
121
  ]
129
122
  },
130
123
  "label": {
@@ -295,6 +288,120 @@
295
288
  ],
296
289
  "additionalProperties": false
297
290
  },
291
+ {
292
+ "type": "object",
293
+ "properties": {
294
+ "key": {
295
+ "type": "string",
296
+ "maxLength": 1024
297
+ },
298
+ "type": {
299
+ "type": "string",
300
+ "enum": [
301
+ "integration"
302
+ ]
303
+ },
304
+ "config": {
305
+ "type": "object",
306
+ "properties": {
307
+ "connect": {
308
+ "type": "boolean"
309
+ },
310
+ "message": {
311
+ "type": "boolean"
312
+ },
313
+ "disconnect": {
314
+ "type": "boolean"
315
+ },
316
+ "failure": {
317
+ "type": "boolean"
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ },
322
+ "meta": {
323
+ "type": "object",
324
+ "properties": {
325
+ "category": {
326
+ "type": "string",
327
+ "enum": [
328
+ "trigger"
329
+ ]
330
+ },
331
+ "name": {
332
+ "type": "string",
333
+ "enum": [
334
+ "azureEventHub",
335
+ "googlePubSub",
336
+ "mqtt",
337
+ "particle",
338
+ "sqs",
339
+ "websocket"
340
+ ]
341
+ },
342
+ "label": {
343
+ "type": "string",
344
+ "minLength": 1,
345
+ "maxLength": 255
346
+ },
347
+ "x": {
348
+ "type": "number"
349
+ },
350
+ "y": {
351
+ "type": "number"
352
+ },
353
+ "uiId": {
354
+ "type": "string",
355
+ "maxLength": 48
356
+ },
357
+ "description": {
358
+ "type": "string",
359
+ "maxLength": 32767
360
+ },
361
+ "icon": {
362
+ "type": "string",
363
+ "maxLength": 1024
364
+ },
365
+ "color": {
366
+ "type": "string",
367
+ "maxLength": 1024
368
+ },
369
+ "inputCount": {
370
+ "type": "number"
371
+ },
372
+ "outputCount": {
373
+ "type": "number"
374
+ },
375
+ "triggerId": {
376
+ "type": "string",
377
+ "maxLength": 48
378
+ },
379
+ "id": {
380
+ "type": "string",
381
+ "maxLength": 48
382
+ }
383
+ },
384
+ "additionalProperties": false
385
+ },
386
+ "outputIds": {
387
+ "type": "array",
388
+ "items": {
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string",
392
+ "maxLength": 48,
393
+ "minLength": 1
394
+ },
395
+ "maxItems": 100
396
+ },
397
+ "maxItems": 100
398
+ }
399
+ },
400
+ "required": [
401
+ "type"
402
+ ],
403
+ "additionalProperties": false
404
+ },
298
405
  {
299
406
  "type": "object",
300
407
  "properties": {