losant_rest 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +5644 -846
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationKeys.md +1 -1
- data/docs/applications.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/deviceRecipes.md +1 -1
- data/docs/devices.md +1 -1
- data/docs/experienceEndpoints.md +1 -1
- data/docs/experienceGroups.md +1 -1
- data/docs/experienceUsers.md +1 -1
- data/docs/flow.md +2 -0
- data/docs/flowVersion.md +6 -4
- data/docs/flowVersions.md +4 -2
- data/docs/flows.md +44 -2
- data/docs/integrations.md +1 -1
- data/docs/orgs.md +1 -1
- data/docs/solutionUsers.md +1 -1
- data/docs/solutions.md +1 -1
- data/docs/webhooks.md +1 -1
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_keys.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/device_recipes.rb +1 -1
- data/lib/losant_rest/devices.rb +1 -1
- data/lib/losant_rest/experience_endpoints.rb +1 -1
- data/lib/losant_rest/experience_groups.rb +1 -1
- data/lib/losant_rest/experience_users.rb +1 -1
- data/lib/losant_rest/flow.rb +4 -0
- data/lib/losant_rest/flow_version.rb +8 -4
- data/lib/losant_rest/flow_versions.rb +6 -2
- data/lib/losant_rest/flows.rb +53 -2
- data/lib/losant_rest/integrations.rb +1 -1
- data/lib/losant_rest/orgs.rb +1 -1
- data/lib/losant_rest/solution_users.rb +1 -1
- data/lib/losant_rest/solutions.rb +1 -1
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhooks.rb +1 -1
- data/schemas/applicationApiTokenPost.json +2 -0
- data/schemas/auditLog.json +1 -0
- data/schemas/auditLogFilter.json +1 -0
- data/schemas/auditLogs.json +1 -0
- data/schemas/dashboard.json +7 -0
- data/schemas/dashboardPatch.json +7 -0
- data/schemas/dashboardPost.json +7 -0
- data/schemas/dashboards.json +7 -0
- data/schemas/deviceState.json +54 -0
- data/schemas/flow.json +334 -1
- data/schemas/flowPatch.json +327 -0
- data/schemas/flowPost.json +338 -1
- data/schemas/flowVersion.json +315 -0
- data/schemas/flowVersionPost.json +315 -0
- data/schemas/flowVersions.json +315 -0
- data/schemas/flows.json +336 -2
- data/schemas/flowsImportPost.json +994 -0
- data/schemas/flowsImportResult.json +1048 -0
- data/schemas/org.json +59 -1
- data/schemas/orgInviteInfo.json +3 -1
- data/schemas/orgInvitePost.json +59 -1
- data/schemas/orgInvites.json +59 -1
- data/schemas/orgMemberPatch.json +60 -3
- data/schemas/orgs.json +59 -1
- metadata +5 -2
@@ -0,0 +1,1048 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"flows": {
|
6
|
+
"maxItems": 1000,
|
7
|
+
"type": "array",
|
8
|
+
"items": {
|
9
|
+
"title": "Workflow",
|
10
|
+
"description": "Schema for a single Workflow",
|
11
|
+
"type": "object",
|
12
|
+
"properties": {
|
13
|
+
"id": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"flowId": {
|
18
|
+
"type": "string",
|
19
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
20
|
+
},
|
21
|
+
"applicationId": {
|
22
|
+
"type": "string",
|
23
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
24
|
+
},
|
25
|
+
"creationDate": {
|
26
|
+
"type": "string",
|
27
|
+
"format": "date-time"
|
28
|
+
},
|
29
|
+
"lastUpdated": {
|
30
|
+
"type": "string",
|
31
|
+
"format": "date-time"
|
32
|
+
},
|
33
|
+
"name": {
|
34
|
+
"type": "string",
|
35
|
+
"minLength": 1,
|
36
|
+
"maxLength": 255
|
37
|
+
},
|
38
|
+
"description": {
|
39
|
+
"type": "string",
|
40
|
+
"maxLength": 32767
|
41
|
+
},
|
42
|
+
"iconData": {
|
43
|
+
"type": "string",
|
44
|
+
"maxLength": 32767,
|
45
|
+
"pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
|
46
|
+
},
|
47
|
+
"enabled": {
|
48
|
+
"type": "boolean"
|
49
|
+
},
|
50
|
+
"defaultVersionId": {
|
51
|
+
"type": "string",
|
52
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
53
|
+
},
|
54
|
+
"minimumAgentVersion": {
|
55
|
+
"type": "string",
|
56
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
57
|
+
},
|
58
|
+
"flowClass": {
|
59
|
+
"type": "string",
|
60
|
+
"enum": [
|
61
|
+
"cloud",
|
62
|
+
"edge",
|
63
|
+
"customNode"
|
64
|
+
]
|
65
|
+
},
|
66
|
+
"triggers": {
|
67
|
+
"type": "array",
|
68
|
+
"items": {
|
69
|
+
"type": "object",
|
70
|
+
"properties": {
|
71
|
+
"key": {
|
72
|
+
"type": "string",
|
73
|
+
"maxLength": 1024
|
74
|
+
},
|
75
|
+
"type": {
|
76
|
+
"type": "string",
|
77
|
+
"enum": [
|
78
|
+
"dataTable",
|
79
|
+
"deviceCommand",
|
80
|
+
"deviceId",
|
81
|
+
"deviceIdConnect",
|
82
|
+
"deviceIdDisconnect",
|
83
|
+
"deviceIdInactivity",
|
84
|
+
"deviceTag",
|
85
|
+
"deviceTagConnect",
|
86
|
+
"deviceTagDisconnect",
|
87
|
+
"deviceTagInactivity",
|
88
|
+
"endpoint",
|
89
|
+
"event",
|
90
|
+
"integration",
|
91
|
+
"mqttTopic",
|
92
|
+
"request",
|
93
|
+
"customNodeStart",
|
94
|
+
"timer",
|
95
|
+
"udp",
|
96
|
+
"virtualButton",
|
97
|
+
"webhook"
|
98
|
+
]
|
99
|
+
},
|
100
|
+
"config": {
|
101
|
+
"type": "object"
|
102
|
+
},
|
103
|
+
"meta": {
|
104
|
+
"type": "object"
|
105
|
+
},
|
106
|
+
"outputIds": {
|
107
|
+
"type": "array",
|
108
|
+
"items": {
|
109
|
+
"type": "array",
|
110
|
+
"items": {
|
111
|
+
"type": "string",
|
112
|
+
"maxLength": 255
|
113
|
+
},
|
114
|
+
"maxItems": 100
|
115
|
+
},
|
116
|
+
"maxItems": 100
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"additionalProperties": false,
|
120
|
+
"required": [
|
121
|
+
"type"
|
122
|
+
]
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"nodes": {
|
126
|
+
"type": "array",
|
127
|
+
"items": {
|
128
|
+
"type": "object",
|
129
|
+
"properties": {
|
130
|
+
"id": {
|
131
|
+
"type": "string",
|
132
|
+
"maxLength": 1024
|
133
|
+
},
|
134
|
+
"type": {
|
135
|
+
"type": "string",
|
136
|
+
"minLength": 1,
|
137
|
+
"maxLength": 1024
|
138
|
+
},
|
139
|
+
"config": {
|
140
|
+
"type": "object"
|
141
|
+
},
|
142
|
+
"meta": {
|
143
|
+
"type": "object"
|
144
|
+
},
|
145
|
+
"outputIds": {
|
146
|
+
"type": "array",
|
147
|
+
"items": {
|
148
|
+
"type": "array",
|
149
|
+
"items": {
|
150
|
+
"type": "string",
|
151
|
+
"maxLength": 255
|
152
|
+
},
|
153
|
+
"maxItems": 100
|
154
|
+
},
|
155
|
+
"maxItems": 100
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"additionalProperties": false,
|
159
|
+
"required": [
|
160
|
+
"type"
|
161
|
+
]
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"customNodeConfig": {
|
165
|
+
"type": "object",
|
166
|
+
"properties": {
|
167
|
+
"outputCount": {
|
168
|
+
"type": "number",
|
169
|
+
"enum": [
|
170
|
+
1,
|
171
|
+
2
|
172
|
+
]
|
173
|
+
},
|
174
|
+
"resultMode": {
|
175
|
+
"type": "string",
|
176
|
+
"enum": [
|
177
|
+
"optional",
|
178
|
+
"required",
|
179
|
+
"none"
|
180
|
+
]
|
181
|
+
},
|
182
|
+
"resultDescription": {
|
183
|
+
"type": "string",
|
184
|
+
"maxLength": 32767
|
185
|
+
},
|
186
|
+
"fields": {
|
187
|
+
"type": "array",
|
188
|
+
"maxItems": 100,
|
189
|
+
"items": {
|
190
|
+
"oneOf": [
|
191
|
+
{
|
192
|
+
"type": "object",
|
193
|
+
"properties": {
|
194
|
+
"type": {
|
195
|
+
"type": "string",
|
196
|
+
"enum": [
|
197
|
+
"checkbox"
|
198
|
+
]
|
199
|
+
},
|
200
|
+
"label": {
|
201
|
+
"type": "string",
|
202
|
+
"minLength": 1,
|
203
|
+
"maxLength": 1024
|
204
|
+
},
|
205
|
+
"id": {
|
206
|
+
"type": "string",
|
207
|
+
"minLength": 1,
|
208
|
+
"maxLength": 1024
|
209
|
+
},
|
210
|
+
"description": {
|
211
|
+
"type": "string",
|
212
|
+
"maxLength": 32767
|
213
|
+
},
|
214
|
+
"defaultValue": {
|
215
|
+
"type": "boolean"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"additionalProperties": false,
|
219
|
+
"required": [
|
220
|
+
"type",
|
221
|
+
"label"
|
222
|
+
]
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"type": "object",
|
226
|
+
"properties": {
|
227
|
+
"type": {
|
228
|
+
"type": "string",
|
229
|
+
"enum": [
|
230
|
+
"select"
|
231
|
+
]
|
232
|
+
},
|
233
|
+
"label": {
|
234
|
+
"type": "string",
|
235
|
+
"minLength": 1,
|
236
|
+
"maxLength": 1024
|
237
|
+
},
|
238
|
+
"id": {
|
239
|
+
"type": "string",
|
240
|
+
"minLength": 1,
|
241
|
+
"maxLength": 1024
|
242
|
+
},
|
243
|
+
"description": {
|
244
|
+
"type": "string",
|
245
|
+
"maxLength": 32767
|
246
|
+
},
|
247
|
+
"defaultValue": {
|
248
|
+
"type": "string",
|
249
|
+
"minLength": 1,
|
250
|
+
"maxLength": 1024
|
251
|
+
},
|
252
|
+
"options": {
|
253
|
+
"type": "array",
|
254
|
+
"minItems": 1,
|
255
|
+
"maxItems": 100,
|
256
|
+
"items": {
|
257
|
+
"type": "object",
|
258
|
+
"properties": {
|
259
|
+
"label": {
|
260
|
+
"type": "string",
|
261
|
+
"maxLength": 1024
|
262
|
+
},
|
263
|
+
"value": {
|
264
|
+
"type": "string",
|
265
|
+
"minLength": 1,
|
266
|
+
"maxLength": 1024
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"additionalProperties": false,
|
270
|
+
"required": [
|
271
|
+
"value"
|
272
|
+
]
|
273
|
+
}
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"additionalProperties": false,
|
277
|
+
"required": [
|
278
|
+
"type",
|
279
|
+
"label",
|
280
|
+
"defaultValue",
|
281
|
+
"options"
|
282
|
+
]
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"type": "object",
|
286
|
+
"properties": {
|
287
|
+
"type": {
|
288
|
+
"type": "string",
|
289
|
+
"enum": [
|
290
|
+
"stringTemplate"
|
291
|
+
]
|
292
|
+
},
|
293
|
+
"label": {
|
294
|
+
"type": "string",
|
295
|
+
"minLength": 1,
|
296
|
+
"maxLength": 1024
|
297
|
+
},
|
298
|
+
"id": {
|
299
|
+
"type": "string",
|
300
|
+
"minLength": 1,
|
301
|
+
"maxLength": 1024
|
302
|
+
},
|
303
|
+
"description": {
|
304
|
+
"type": "string",
|
305
|
+
"maxLength": 32767
|
306
|
+
},
|
307
|
+
"defaultValue": {
|
308
|
+
"type": "string",
|
309
|
+
"maxLength": 1024
|
310
|
+
},
|
311
|
+
"required": {
|
312
|
+
"type": "boolean"
|
313
|
+
},
|
314
|
+
"validRegExp": {
|
315
|
+
"type": "string",
|
316
|
+
"maxLength": 1024
|
317
|
+
}
|
318
|
+
},
|
319
|
+
"additionalProperties": false,
|
320
|
+
"required": [
|
321
|
+
"type",
|
322
|
+
"label"
|
323
|
+
]
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"type": "object",
|
327
|
+
"properties": {
|
328
|
+
"type": {
|
329
|
+
"type": "string",
|
330
|
+
"enum": [
|
331
|
+
"numberTemplate"
|
332
|
+
]
|
333
|
+
},
|
334
|
+
"label": {
|
335
|
+
"type": "string",
|
336
|
+
"minLength": 1,
|
337
|
+
"maxLength": 1024
|
338
|
+
},
|
339
|
+
"id": {
|
340
|
+
"type": "string",
|
341
|
+
"minLength": 1,
|
342
|
+
"maxLength": 1024
|
343
|
+
},
|
344
|
+
"description": {
|
345
|
+
"type": "string",
|
346
|
+
"maxLength": 32767
|
347
|
+
},
|
348
|
+
"defaultValue": {
|
349
|
+
"type": "number"
|
350
|
+
},
|
351
|
+
"required": {
|
352
|
+
"type": "boolean"
|
353
|
+
},
|
354
|
+
"validMin": {
|
355
|
+
"type": "number"
|
356
|
+
},
|
357
|
+
"validMax": {
|
358
|
+
"type": "number"
|
359
|
+
}
|
360
|
+
},
|
361
|
+
"additionalProperties": false,
|
362
|
+
"required": [
|
363
|
+
"type",
|
364
|
+
"label"
|
365
|
+
]
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"type": "object",
|
369
|
+
"properties": {
|
370
|
+
"type": {
|
371
|
+
"type": "string",
|
372
|
+
"enum": [
|
373
|
+
"jsonTemplate"
|
374
|
+
]
|
375
|
+
},
|
376
|
+
"label": {
|
377
|
+
"type": "string",
|
378
|
+
"minLength": 1,
|
379
|
+
"maxLength": 1024
|
380
|
+
},
|
381
|
+
"id": {
|
382
|
+
"type": "string",
|
383
|
+
"minLength": 1,
|
384
|
+
"maxLength": 1024
|
385
|
+
},
|
386
|
+
"description": {
|
387
|
+
"type": "string",
|
388
|
+
"maxLength": 32767
|
389
|
+
},
|
390
|
+
"defaultValue": {
|
391
|
+
"type": "string",
|
392
|
+
"maxLength": 32767
|
393
|
+
},
|
394
|
+
"required": {
|
395
|
+
"type": "boolean"
|
396
|
+
}
|
397
|
+
},
|
398
|
+
"additionalProperties": false,
|
399
|
+
"required": [
|
400
|
+
"type",
|
401
|
+
"label"
|
402
|
+
]
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"type": "object",
|
406
|
+
"properties": {
|
407
|
+
"type": {
|
408
|
+
"type": "string",
|
409
|
+
"enum": [
|
410
|
+
"payloadPath"
|
411
|
+
]
|
412
|
+
},
|
413
|
+
"label": {
|
414
|
+
"type": "string",
|
415
|
+
"minLength": 1,
|
416
|
+
"maxLength": 1024
|
417
|
+
},
|
418
|
+
"id": {
|
419
|
+
"type": "string",
|
420
|
+
"minLength": 1,
|
421
|
+
"maxLength": 1024
|
422
|
+
},
|
423
|
+
"description": {
|
424
|
+
"type": "string",
|
425
|
+
"maxLength": 32767
|
426
|
+
},
|
427
|
+
"required": {
|
428
|
+
"type": "boolean"
|
429
|
+
}
|
430
|
+
},
|
431
|
+
"additionalProperties": false,
|
432
|
+
"required": [
|
433
|
+
"type",
|
434
|
+
"label"
|
435
|
+
]
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"type": "object",
|
439
|
+
"properties": {
|
440
|
+
"type": {
|
441
|
+
"type": "string",
|
442
|
+
"enum": [
|
443
|
+
"section"
|
444
|
+
]
|
445
|
+
},
|
446
|
+
"label": {
|
447
|
+
"type": "string",
|
448
|
+
"minLength": 1,
|
449
|
+
"maxLength": 1024
|
450
|
+
},
|
451
|
+
"id": {
|
452
|
+
"type": "string",
|
453
|
+
"minLength": 1,
|
454
|
+
"maxLength": 1024
|
455
|
+
},
|
456
|
+
"description": {
|
457
|
+
"type": "string",
|
458
|
+
"maxLength": 32767
|
459
|
+
}
|
460
|
+
},
|
461
|
+
"additionalProperties": false,
|
462
|
+
"required": [
|
463
|
+
"type",
|
464
|
+
"label"
|
465
|
+
]
|
466
|
+
}
|
467
|
+
]
|
468
|
+
}
|
469
|
+
}
|
470
|
+
},
|
471
|
+
"additionalProperties": false,
|
472
|
+
"required": [
|
473
|
+
"outputCount",
|
474
|
+
"resultMode",
|
475
|
+
"fields"
|
476
|
+
]
|
477
|
+
},
|
478
|
+
"customNodeSupports": {
|
479
|
+
"type": "array",
|
480
|
+
"items": {
|
481
|
+
"type": "string",
|
482
|
+
"enum": [
|
483
|
+
"cloud"
|
484
|
+
]
|
485
|
+
}
|
486
|
+
},
|
487
|
+
"customNodeUseCount": {
|
488
|
+
"type": "number"
|
489
|
+
},
|
490
|
+
"globals": {
|
491
|
+
"type": "array",
|
492
|
+
"maxItems": 100,
|
493
|
+
"items": {
|
494
|
+
"type": "object",
|
495
|
+
"properties": {
|
496
|
+
"key": {
|
497
|
+
"type": "string",
|
498
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
499
|
+
},
|
500
|
+
"json": {
|
501
|
+
"type": "string",
|
502
|
+
"minLength": 1,
|
503
|
+
"maxLength": 32767
|
504
|
+
}
|
505
|
+
},
|
506
|
+
"additionalProperties": false,
|
507
|
+
"required": [
|
508
|
+
"key",
|
509
|
+
"json"
|
510
|
+
]
|
511
|
+
}
|
512
|
+
},
|
513
|
+
"stats": {
|
514
|
+
"type": "object",
|
515
|
+
"properties": {
|
516
|
+
"runCount": {
|
517
|
+
"type": "number"
|
518
|
+
},
|
519
|
+
"errorCount": {
|
520
|
+
"type": "number"
|
521
|
+
},
|
522
|
+
"byVersion": {
|
523
|
+
"type": "object",
|
524
|
+
"patternProperties": {
|
525
|
+
".*": {
|
526
|
+
"type": "object",
|
527
|
+
"properties": {
|
528
|
+
"runCount": {
|
529
|
+
"type": "number"
|
530
|
+
},
|
531
|
+
"errorCount": {
|
532
|
+
"type": "number"
|
533
|
+
}
|
534
|
+
}
|
535
|
+
}
|
536
|
+
}
|
537
|
+
}
|
538
|
+
}
|
539
|
+
}
|
540
|
+
}
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"flowVersions": {
|
544
|
+
"maxItems": 1000,
|
545
|
+
"type": "array",
|
546
|
+
"items": {
|
547
|
+
"title": "Workflow Version",
|
548
|
+
"description": "Schema for a single Workflow Version",
|
549
|
+
"type": "object",
|
550
|
+
"properties": {
|
551
|
+
"id": {
|
552
|
+
"type": "string",
|
553
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
554
|
+
},
|
555
|
+
"flowVersionId": {
|
556
|
+
"type": "string",
|
557
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
558
|
+
},
|
559
|
+
"flowId": {
|
560
|
+
"type": "string",
|
561
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
562
|
+
},
|
563
|
+
"applicationId": {
|
564
|
+
"type": "string",
|
565
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
566
|
+
},
|
567
|
+
"creationDate": {
|
568
|
+
"type": "string",
|
569
|
+
"format": "date-time"
|
570
|
+
},
|
571
|
+
"lastUpdated": {
|
572
|
+
"type": "string",
|
573
|
+
"format": "date-time"
|
574
|
+
},
|
575
|
+
"version": {
|
576
|
+
"type": "string",
|
577
|
+
"minLength": 1,
|
578
|
+
"maxLength": 255
|
579
|
+
},
|
580
|
+
"notes": {
|
581
|
+
"type": "string",
|
582
|
+
"maxLength": 32767
|
583
|
+
},
|
584
|
+
"enabled": {
|
585
|
+
"type": "boolean"
|
586
|
+
},
|
587
|
+
"triggers": {
|
588
|
+
"type": "array",
|
589
|
+
"items": {
|
590
|
+
"type": "object",
|
591
|
+
"properties": {
|
592
|
+
"key": {
|
593
|
+
"type": "string",
|
594
|
+
"maxLength": 1024
|
595
|
+
},
|
596
|
+
"type": {
|
597
|
+
"type": "string",
|
598
|
+
"enum": [
|
599
|
+
"dataTable",
|
600
|
+
"deviceCommand",
|
601
|
+
"deviceId",
|
602
|
+
"deviceIdConnect",
|
603
|
+
"deviceIdDisconnect",
|
604
|
+
"deviceIdInactivity",
|
605
|
+
"deviceTag",
|
606
|
+
"deviceTagConnect",
|
607
|
+
"deviceTagDisconnect",
|
608
|
+
"deviceTagInactivity",
|
609
|
+
"endpoint",
|
610
|
+
"event",
|
611
|
+
"integration",
|
612
|
+
"mqttTopic",
|
613
|
+
"request",
|
614
|
+
"customNodeStart",
|
615
|
+
"timer",
|
616
|
+
"udp",
|
617
|
+
"virtualButton",
|
618
|
+
"webhook"
|
619
|
+
]
|
620
|
+
},
|
621
|
+
"config": {
|
622
|
+
"type": "object"
|
623
|
+
},
|
624
|
+
"meta": {
|
625
|
+
"type": "object"
|
626
|
+
},
|
627
|
+
"outputIds": {
|
628
|
+
"type": "array",
|
629
|
+
"items": {
|
630
|
+
"type": "array",
|
631
|
+
"items": {
|
632
|
+
"type": "string",
|
633
|
+
"maxLength": 255
|
634
|
+
},
|
635
|
+
"maxItems": 100
|
636
|
+
},
|
637
|
+
"maxItems": 100
|
638
|
+
}
|
639
|
+
},
|
640
|
+
"additionalProperties": false,
|
641
|
+
"required": [
|
642
|
+
"type"
|
643
|
+
]
|
644
|
+
}
|
645
|
+
},
|
646
|
+
"nodes": {
|
647
|
+
"type": "array",
|
648
|
+
"items": {
|
649
|
+
"type": "object",
|
650
|
+
"properties": {
|
651
|
+
"id": {
|
652
|
+
"type": "string",
|
653
|
+
"maxLength": 1024
|
654
|
+
},
|
655
|
+
"type": {
|
656
|
+
"type": "string",
|
657
|
+
"minLength": 1,
|
658
|
+
"maxLength": 1024
|
659
|
+
},
|
660
|
+
"config": {
|
661
|
+
"type": "object"
|
662
|
+
},
|
663
|
+
"meta": {
|
664
|
+
"type": "object"
|
665
|
+
},
|
666
|
+
"outputIds": {
|
667
|
+
"type": "array",
|
668
|
+
"items": {
|
669
|
+
"type": "array",
|
670
|
+
"items": {
|
671
|
+
"type": "string",
|
672
|
+
"maxLength": 255
|
673
|
+
},
|
674
|
+
"maxItems": 100
|
675
|
+
},
|
676
|
+
"maxItems": 100
|
677
|
+
}
|
678
|
+
},
|
679
|
+
"additionalProperties": false,
|
680
|
+
"required": [
|
681
|
+
"type"
|
682
|
+
]
|
683
|
+
}
|
684
|
+
},
|
685
|
+
"globals": {
|
686
|
+
"type": "array",
|
687
|
+
"maxItems": 100,
|
688
|
+
"items": {
|
689
|
+
"type": "object",
|
690
|
+
"properties": {
|
691
|
+
"key": {
|
692
|
+
"type": "string",
|
693
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
694
|
+
},
|
695
|
+
"json": {
|
696
|
+
"type": "string",
|
697
|
+
"minLength": 1,
|
698
|
+
"maxLength": 32767
|
699
|
+
}
|
700
|
+
},
|
701
|
+
"additionalProperties": false,
|
702
|
+
"required": [
|
703
|
+
"key",
|
704
|
+
"json"
|
705
|
+
]
|
706
|
+
}
|
707
|
+
},
|
708
|
+
"minimumAgentVersion": {
|
709
|
+
"type": "string",
|
710
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
711
|
+
},
|
712
|
+
"customNodeConfig": {
|
713
|
+
"type": "object",
|
714
|
+
"properties": {
|
715
|
+
"outputCount": {
|
716
|
+
"type": "number",
|
717
|
+
"enum": [
|
718
|
+
1,
|
719
|
+
2
|
720
|
+
]
|
721
|
+
},
|
722
|
+
"resultMode": {
|
723
|
+
"type": "string",
|
724
|
+
"enum": [
|
725
|
+
"optional",
|
726
|
+
"required",
|
727
|
+
"none"
|
728
|
+
]
|
729
|
+
},
|
730
|
+
"resultDescription": {
|
731
|
+
"type": "string",
|
732
|
+
"maxLength": 32767
|
733
|
+
},
|
734
|
+
"fields": {
|
735
|
+
"type": "array",
|
736
|
+
"maxItems": 100,
|
737
|
+
"items": {
|
738
|
+
"oneOf": [
|
739
|
+
{
|
740
|
+
"type": "object",
|
741
|
+
"properties": {
|
742
|
+
"type": {
|
743
|
+
"type": "string",
|
744
|
+
"enum": [
|
745
|
+
"checkbox"
|
746
|
+
]
|
747
|
+
},
|
748
|
+
"label": {
|
749
|
+
"type": "string",
|
750
|
+
"minLength": 1,
|
751
|
+
"maxLength": 1024
|
752
|
+
},
|
753
|
+
"id": {
|
754
|
+
"type": "string",
|
755
|
+
"minLength": 1,
|
756
|
+
"maxLength": 1024
|
757
|
+
},
|
758
|
+
"description": {
|
759
|
+
"type": "string",
|
760
|
+
"maxLength": 32767
|
761
|
+
},
|
762
|
+
"defaultValue": {
|
763
|
+
"type": "boolean"
|
764
|
+
}
|
765
|
+
},
|
766
|
+
"additionalProperties": false,
|
767
|
+
"required": [
|
768
|
+
"type",
|
769
|
+
"label"
|
770
|
+
]
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"type": "object",
|
774
|
+
"properties": {
|
775
|
+
"type": {
|
776
|
+
"type": "string",
|
777
|
+
"enum": [
|
778
|
+
"select"
|
779
|
+
]
|
780
|
+
},
|
781
|
+
"label": {
|
782
|
+
"type": "string",
|
783
|
+
"minLength": 1,
|
784
|
+
"maxLength": 1024
|
785
|
+
},
|
786
|
+
"id": {
|
787
|
+
"type": "string",
|
788
|
+
"minLength": 1,
|
789
|
+
"maxLength": 1024
|
790
|
+
},
|
791
|
+
"description": {
|
792
|
+
"type": "string",
|
793
|
+
"maxLength": 32767
|
794
|
+
},
|
795
|
+
"defaultValue": {
|
796
|
+
"type": "string",
|
797
|
+
"minLength": 1,
|
798
|
+
"maxLength": 1024
|
799
|
+
},
|
800
|
+
"options": {
|
801
|
+
"type": "array",
|
802
|
+
"minItems": 1,
|
803
|
+
"maxItems": 100,
|
804
|
+
"items": {
|
805
|
+
"type": "object",
|
806
|
+
"properties": {
|
807
|
+
"label": {
|
808
|
+
"type": "string",
|
809
|
+
"maxLength": 1024
|
810
|
+
},
|
811
|
+
"value": {
|
812
|
+
"type": "string",
|
813
|
+
"minLength": 1,
|
814
|
+
"maxLength": 1024
|
815
|
+
}
|
816
|
+
},
|
817
|
+
"additionalProperties": false,
|
818
|
+
"required": [
|
819
|
+
"value"
|
820
|
+
]
|
821
|
+
}
|
822
|
+
}
|
823
|
+
},
|
824
|
+
"additionalProperties": false,
|
825
|
+
"required": [
|
826
|
+
"type",
|
827
|
+
"label",
|
828
|
+
"defaultValue",
|
829
|
+
"options"
|
830
|
+
]
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"type": "object",
|
834
|
+
"properties": {
|
835
|
+
"type": {
|
836
|
+
"type": "string",
|
837
|
+
"enum": [
|
838
|
+
"stringTemplate"
|
839
|
+
]
|
840
|
+
},
|
841
|
+
"label": {
|
842
|
+
"type": "string",
|
843
|
+
"minLength": 1,
|
844
|
+
"maxLength": 1024
|
845
|
+
},
|
846
|
+
"id": {
|
847
|
+
"type": "string",
|
848
|
+
"minLength": 1,
|
849
|
+
"maxLength": 1024
|
850
|
+
},
|
851
|
+
"description": {
|
852
|
+
"type": "string",
|
853
|
+
"maxLength": 32767
|
854
|
+
},
|
855
|
+
"defaultValue": {
|
856
|
+
"type": "string",
|
857
|
+
"maxLength": 1024
|
858
|
+
},
|
859
|
+
"required": {
|
860
|
+
"type": "boolean"
|
861
|
+
},
|
862
|
+
"validRegExp": {
|
863
|
+
"type": "string",
|
864
|
+
"maxLength": 1024
|
865
|
+
}
|
866
|
+
},
|
867
|
+
"additionalProperties": false,
|
868
|
+
"required": [
|
869
|
+
"type",
|
870
|
+
"label"
|
871
|
+
]
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"type": "object",
|
875
|
+
"properties": {
|
876
|
+
"type": {
|
877
|
+
"type": "string",
|
878
|
+
"enum": [
|
879
|
+
"numberTemplate"
|
880
|
+
]
|
881
|
+
},
|
882
|
+
"label": {
|
883
|
+
"type": "string",
|
884
|
+
"minLength": 1,
|
885
|
+
"maxLength": 1024
|
886
|
+
},
|
887
|
+
"id": {
|
888
|
+
"type": "string",
|
889
|
+
"minLength": 1,
|
890
|
+
"maxLength": 1024
|
891
|
+
},
|
892
|
+
"description": {
|
893
|
+
"type": "string",
|
894
|
+
"maxLength": 32767
|
895
|
+
},
|
896
|
+
"defaultValue": {
|
897
|
+
"type": "number"
|
898
|
+
},
|
899
|
+
"required": {
|
900
|
+
"type": "boolean"
|
901
|
+
},
|
902
|
+
"validMin": {
|
903
|
+
"type": "number"
|
904
|
+
},
|
905
|
+
"validMax": {
|
906
|
+
"type": "number"
|
907
|
+
}
|
908
|
+
},
|
909
|
+
"additionalProperties": false,
|
910
|
+
"required": [
|
911
|
+
"type",
|
912
|
+
"label"
|
913
|
+
]
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"type": "object",
|
917
|
+
"properties": {
|
918
|
+
"type": {
|
919
|
+
"type": "string",
|
920
|
+
"enum": [
|
921
|
+
"jsonTemplate"
|
922
|
+
]
|
923
|
+
},
|
924
|
+
"label": {
|
925
|
+
"type": "string",
|
926
|
+
"minLength": 1,
|
927
|
+
"maxLength": 1024
|
928
|
+
},
|
929
|
+
"id": {
|
930
|
+
"type": "string",
|
931
|
+
"minLength": 1,
|
932
|
+
"maxLength": 1024
|
933
|
+
},
|
934
|
+
"description": {
|
935
|
+
"type": "string",
|
936
|
+
"maxLength": 32767
|
937
|
+
},
|
938
|
+
"defaultValue": {
|
939
|
+
"type": "string",
|
940
|
+
"maxLength": 32767
|
941
|
+
},
|
942
|
+
"required": {
|
943
|
+
"type": "boolean"
|
944
|
+
}
|
945
|
+
},
|
946
|
+
"additionalProperties": false,
|
947
|
+
"required": [
|
948
|
+
"type",
|
949
|
+
"label"
|
950
|
+
]
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"type": "object",
|
954
|
+
"properties": {
|
955
|
+
"type": {
|
956
|
+
"type": "string",
|
957
|
+
"enum": [
|
958
|
+
"payloadPath"
|
959
|
+
]
|
960
|
+
},
|
961
|
+
"label": {
|
962
|
+
"type": "string",
|
963
|
+
"minLength": 1,
|
964
|
+
"maxLength": 1024
|
965
|
+
},
|
966
|
+
"id": {
|
967
|
+
"type": "string",
|
968
|
+
"minLength": 1,
|
969
|
+
"maxLength": 1024
|
970
|
+
},
|
971
|
+
"description": {
|
972
|
+
"type": "string",
|
973
|
+
"maxLength": 32767
|
974
|
+
},
|
975
|
+
"required": {
|
976
|
+
"type": "boolean"
|
977
|
+
}
|
978
|
+
},
|
979
|
+
"additionalProperties": false,
|
980
|
+
"required": [
|
981
|
+
"type",
|
982
|
+
"label"
|
983
|
+
]
|
984
|
+
},
|
985
|
+
{
|
986
|
+
"type": "object",
|
987
|
+
"properties": {
|
988
|
+
"type": {
|
989
|
+
"type": "string",
|
990
|
+
"enum": [
|
991
|
+
"section"
|
992
|
+
]
|
993
|
+
},
|
994
|
+
"label": {
|
995
|
+
"type": "string",
|
996
|
+
"minLength": 1,
|
997
|
+
"maxLength": 1024
|
998
|
+
},
|
999
|
+
"id": {
|
1000
|
+
"type": "string",
|
1001
|
+
"minLength": 1,
|
1002
|
+
"maxLength": 1024
|
1003
|
+
},
|
1004
|
+
"description": {
|
1005
|
+
"type": "string",
|
1006
|
+
"maxLength": 32767
|
1007
|
+
}
|
1008
|
+
},
|
1009
|
+
"additionalProperties": false,
|
1010
|
+
"required": [
|
1011
|
+
"type",
|
1012
|
+
"label"
|
1013
|
+
]
|
1014
|
+
}
|
1015
|
+
]
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
},
|
1019
|
+
"additionalProperties": false,
|
1020
|
+
"required": [
|
1021
|
+
"outputCount",
|
1022
|
+
"resultMode",
|
1023
|
+
"fields"
|
1024
|
+
]
|
1025
|
+
}
|
1026
|
+
}
|
1027
|
+
}
|
1028
|
+
},
|
1029
|
+
"importedFlowIdMap": {
|
1030
|
+
"type": "object",
|
1031
|
+
"patternProperties": {
|
1032
|
+
"^[A-Fa-f\\d]{24}$": {
|
1033
|
+
"type": "string",
|
1034
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
1035
|
+
}
|
1036
|
+
}
|
1037
|
+
},
|
1038
|
+
"importedVersionIdMap": {
|
1039
|
+
"type": "object",
|
1040
|
+
"patternProperties": {
|
1041
|
+
"^[A-Fa-f\\d]{24}$": {
|
1042
|
+
"type": "string",
|
1043
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
1044
|
+
}
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
}
|
1048
|
+
}
|