losant_rest 1.13.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +19437 -10622
  3. data/docs/application.md +6 -6
  4. data/docs/applicationApiTokens.md +1 -1
  5. data/docs/applications.md +1 -1
  6. data/docs/dataTable.md +1 -1
  7. data/docs/dataTableRows.md +1 -1
  8. data/docs/dataTables.md +1 -1
  9. data/docs/device.md +43 -0
  10. data/docs/devices.md +41 -2
  11. data/docs/edgeDeployment.md +49 -0
  12. data/docs/embeddedDeployment.md +49 -0
  13. data/docs/embeddedDeployments.md +215 -0
  14. data/docs/experience.md +1 -1
  15. data/docs/experienceDomains.md +1 -1
  16. data/docs/experienceGroup.md +2 -0
  17. data/docs/experienceSlugs.md +1 -1
  18. data/docs/experienceVersion.md +3 -3
  19. data/docs/experienceVersions.md +2 -2
  20. data/docs/experienceView.md +4 -4
  21. data/docs/experienceViews.md +2 -2
  22. data/docs/file.md +5 -5
  23. data/docs/files.md +2 -2
  24. data/docs/flow.md +3 -3
  25. data/docs/flowVersions.md +44 -0
  26. data/docs/flows.md +2 -2
  27. data/docs/instance.md +40 -0
  28. data/docs/instanceApiToken.md +133 -0
  29. data/docs/instanceApiTokens.md +91 -0
  30. data/docs/instanceMembers.md +1 -1
  31. data/docs/instanceOrg.md +2 -0
  32. data/docs/instanceOrgInvite.md +139 -0
  33. data/docs/instanceOrgInvites.md +96 -0
  34. data/docs/instanceOrgMembers.md +3 -3
  35. data/docs/instanceOrgs.md +1 -1
  36. data/docs/me.md +1 -1
  37. data/docs/org.md +1 -1
  38. data/docs/userApiToken.md +125 -0
  39. data/docs/userApiTokens.md +87 -0
  40. data/lib/losant_rest/application.rb +5 -5
  41. data/lib/losant_rest/application_api_tokens.rb +1 -1
  42. data/lib/losant_rest/applications.rb +1 -1
  43. data/lib/losant_rest/client.rb +38 -2
  44. data/lib/losant_rest/data_table.rb +1 -1
  45. data/lib/losant_rest/data_table_rows.rb +1 -1
  46. data/lib/losant_rest/data_tables.rb +1 -1
  47. data/lib/losant_rest/device.rb +50 -0
  48. data/lib/losant_rest/devices.rb +48 -2
  49. data/lib/losant_rest/edge_deployment.rb +81 -0
  50. data/lib/losant_rest/embedded_deployment.rb +81 -0
  51. data/lib/losant_rest/embedded_deployments.rb +280 -0
  52. data/lib/losant_rest/experience.rb +1 -1
  53. data/lib/losant_rest/experience_domains.rb +1 -1
  54. data/lib/losant_rest/experience_group.rb +4 -0
  55. data/lib/losant_rest/experience_slugs.rb +1 -1
  56. data/lib/losant_rest/experience_version.rb +3 -3
  57. data/lib/losant_rest/experience_versions.rb +2 -2
  58. data/lib/losant_rest/experience_view.rb +4 -4
  59. data/lib/losant_rest/experience_views.rb +2 -2
  60. data/lib/losant_rest/file.rb +4 -4
  61. data/lib/losant_rest/files.rb +2 -2
  62. data/lib/losant_rest/flow.rb +3 -3
  63. data/lib/losant_rest/flow_versions.rb +50 -0
  64. data/lib/losant_rest/flows.rb +2 -2
  65. data/lib/losant_rest/instance.rb +47 -1
  66. data/lib/losant_rest/instance_api_token.rb +176 -0
  67. data/lib/losant_rest/instance_api_tokens.rb +136 -0
  68. data/lib/losant_rest/instance_member.rb +1 -1
  69. data/lib/losant_rest/instance_members.rb +2 -2
  70. data/lib/losant_rest/instance_org.rb +5 -1
  71. data/lib/losant_rest/instance_org_invite.rb +182 -0
  72. data/lib/losant_rest/instance_org_invites.rb +138 -0
  73. data/lib/losant_rest/instance_org_member.rb +1 -1
  74. data/lib/losant_rest/instance_org_members.rb +4 -4
  75. data/lib/losant_rest/instance_orgs.rb +3 -3
  76. data/lib/losant_rest/instances.rb +1 -1
  77. data/lib/losant_rest/user_api_token.rb +170 -0
  78. data/lib/losant_rest/user_api_tokens.rb +132 -0
  79. data/lib/losant_rest/version.rb +1 -1
  80. data/lib/losant_rest.rb +9 -0
  81. data/schemas/apiToken.json +2 -1
  82. data/schemas/apiTokenPost.json +439 -0
  83. data/schemas/apiTokens.json +4 -2
  84. data/schemas/application.json +32 -32
  85. data/schemas/applicationCreationByTemplateResult.json +32 -32
  86. data/schemas/applicationDashboardPost.json +28 -21
  87. data/schemas/applicationPatch.json +13 -13
  88. data/schemas/applicationPost.json +13 -13
  89. data/schemas/applicationTemplate.json +16 -16
  90. data/schemas/applicationTemplates.json +16 -16
  91. data/schemas/applications.json +32 -32
  92. data/schemas/auditLog.json +4 -0
  93. data/schemas/auditLogFilter.json +4 -0
  94. data/schemas/auditLogs.json +4 -0
  95. data/schemas/authedDevice.json +2 -1
  96. data/schemas/bulkDeleteResponse.json +12 -0
  97. data/schemas/dashboard.json +28 -21
  98. data/schemas/dashboardPatch.json +28 -21
  99. data/schemas/dashboardPost.json +28 -21
  100. data/schemas/dashboardSendReport.json +9 -5
  101. data/schemas/dashboards.json +28 -21
  102. data/schemas/dataTableRowsDelete.json +1 -1
  103. data/schemas/device.json +2 -1
  104. data/schemas/deviceClassFilter.json +4 -2
  105. data/schemas/devicePatch.json +2 -1
  106. data/schemas/devicePayloadCounts.json +24 -0
  107. data/schemas/devicePost.json +2 -1
  108. data/schemas/deviceRecipe.json +2 -1
  109. data/schemas/deviceRecipePatch.json +2 -1
  110. data/schemas/deviceRecipePost.json +2 -1
  111. data/schemas/deviceRecipes.json +2 -1
  112. data/schemas/devices.json +4 -2
  113. data/schemas/devicesExportPayloadCountPost.json +1350 -0
  114. data/schemas/devicesPatch.json +4 -2
  115. data/schemas/edgeDeployment.json +20 -0
  116. data/schemas/edgeDeployments.json +20 -0
  117. data/schemas/embeddedDeployment.json +179 -0
  118. data/schemas/embeddedDeploymentExport.json +44 -0
  119. data/schemas/embeddedDeploymentRelease.json +58 -0
  120. data/schemas/embeddedDeploymentRemove.json +25 -0
  121. data/schemas/embeddedDeploymentReplace.json +29 -0
  122. data/schemas/embeddedDeployments.json +212 -0
  123. data/schemas/eventsDeleted.json +1 -1
  124. data/schemas/experienceEndpoint.json +6 -8
  125. data/schemas/experienceEndpointPatch.json +6 -8
  126. data/schemas/experienceEndpointPost.json +6 -8
  127. data/schemas/experienceEndpoints.json +6 -8
  128. data/schemas/experienceGroup.json +6 -0
  129. data/schemas/experienceGroups.json +6 -0
  130. data/schemas/experienceLinkedResources.json +790 -85
  131. data/schemas/flow.json +252 -16
  132. data/schemas/flowPatch.json +251 -16
  133. data/schemas/flowPost.json +252 -16
  134. data/schemas/flowVersion.json +503 -33
  135. data/schemas/flowVersionPost.json +251 -16
  136. data/schemas/flowVersions.json +503 -33
  137. data/schemas/flowVersionsDeletePost.json +941 -0
  138. data/schemas/flows.json +253 -16
  139. data/schemas/flowsImportPost.json +503 -32
  140. data/schemas/flowsImportResult.json +785 -79
  141. data/schemas/githubLogin.json +38 -1
  142. data/schemas/historicalSummary.json +150 -102
  143. data/schemas/instance.json +150 -77
  144. data/schemas/instanceMember.json +10 -0
  145. data/schemas/instanceMemberPost.json +18 -3
  146. data/schemas/instanceMembers.json +14 -0
  147. data/schemas/instanceOrg.json +87 -74
  148. data/schemas/instanceOrgMember.json +14 -0
  149. data/schemas/instanceOrgMembers.json +8 -0
  150. data/schemas/instanceOrgPatch.json +64 -26
  151. data/schemas/instanceOrgPost.json +229 -25
  152. data/schemas/instanceOrgs.json +91 -74
  153. data/schemas/instancePatch.json +67 -0
  154. data/schemas/instanceReportOptionsPost.json +1 -0
  155. data/schemas/me.json +134 -105
  156. data/schemas/notebook.json +45 -0
  157. data/schemas/notebookPatch.json +30 -0
  158. data/schemas/notebookPost.json +30 -0
  159. data/schemas/notebooks.json +45 -0
  160. data/schemas/org.json +145 -110
  161. data/schemas/orgInvite.json +90 -0
  162. data/schemas/orgInviteCollection.json +130 -0
  163. data/schemas/orgInvites.json +82 -77
  164. data/schemas/orgRoleInfo.json +69 -0
  165. data/schemas/orgs.json +145 -110
  166. data/schemas/payloadStats.json +28 -12
  167. data/schemas/userCredentials.json +38 -1
  168. data/schemas/userPost.json +38 -1
  169. data/schemas/validateContextError.json +34 -0
  170. data/schemas/validateContextSuccess.json +34 -0
  171. data/schemas/virtualButtonPress.json +4 -0
  172. metadata +39 -6
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "reportConfigs": {
6
+ "type": "array",
7
+ "maxItems": 10,
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string",
13
+ "maxLength": 48
14
+ },
15
+ "cron": {
16
+ "type": "string",
17
+ "maxLength": 255
18
+ },
19
+ "timezone": {
20
+ "type": "string",
21
+ "maxLength": 255
22
+ },
23
+ "emails": {
24
+ "type": "array",
25
+ "maxItems": 10,
26
+ "items": {
27
+ "type": "string",
28
+ "format": "email",
29
+ "maxLength": 1024
30
+ }
31
+ },
32
+ "callbackUrl": {
33
+ "type": "string",
34
+ "maxLength": 1024
35
+ },
36
+ "resourceGroupBy": {
37
+ "type": "string",
38
+ "enum": [
39
+ "application",
40
+ "organization"
41
+ ]
42
+ },
43
+ "dateGroupBy": {
44
+ "type": "string",
45
+ "enum": [
46
+ "day",
47
+ "month"
48
+ ]
49
+ },
50
+ "periods": {
51
+ "type": "integer",
52
+ "minimum": 1,
53
+ "maximum": 90
54
+ },
55
+ "includeSandbox": {
56
+ "type": "boolean"
57
+ }
58
+ },
59
+ "required": [
60
+ "cron"
61
+ ],
62
+ "additionalProperties": false
63
+ }
64
+ }
65
+ },
66
+ "additionalProperties": false
67
+ }
@@ -21,6 +21,7 @@
21
21
  "dateGroupBy": {
22
22
  "type": "string",
23
23
  "enum": [
24
+ "day",
24
25
  "month"
25
26
  ]
26
27
  },
data/schemas/me.json CHANGED
@@ -81,78 +81,91 @@
81
81
  "format": "url"
82
82
  },
83
83
  "limits": {
84
- "apitoken": {
85
- "type": "number"
86
- },
87
- "application": {
88
- "type": "number"
89
- },
90
- "applicationkey": {
91
- "type": "number"
92
- },
93
- "dashboard": {
94
- "type": "number"
95
- },
96
- "datatable": {
97
- "type": "number"
98
- },
99
- "device": {
100
- "type": "number"
101
- },
102
- "devicerecipe": {
103
- "type": "number"
104
- },
105
- "experiencedomain": {
106
- "type": "number"
107
- },
108
- "experienceendpoint": {
109
- "type": "number"
110
- },
111
- "experiencegroup": {
112
- "type": "number"
113
- },
114
- "experienceslug": {
115
- "type": "number"
116
- },
117
- "experienceuser": {
118
- "type": "number"
119
- },
120
- "experienceversion": {
121
- "type": "number"
122
- },
123
- "experienceview": {
124
- "type": "number"
125
- },
126
- "file": {
127
- "type": "number"
128
- },
129
- "flow": {
130
- "type": "number"
131
- },
132
- "integration": {
133
- "type": "number"
134
- },
135
- "notebook": {
136
- "type": "number"
137
- },
138
- "webhook": {
139
- "type": "number"
140
- },
141
- "dataTTL": {
142
- "type": "number"
143
- },
144
- "payload": {
145
- "type": "number"
146
- },
147
- "notebookMinutesPerRun": {
148
- "type": "number"
149
- },
150
- "notebookMinutesPerMonth": {
151
- "type": "number"
84
+ "type": "object",
85
+ "properties": {
86
+ "apitoken": {
87
+ "type": "integer"
88
+ },
89
+ "application": {
90
+ "type": "integer"
91
+ },
92
+ "applicationkey": {
93
+ "type": "integer"
94
+ },
95
+ "dashboard": {
96
+ "type": "integer"
97
+ },
98
+ "datatable": {
99
+ "type": "integer"
100
+ },
101
+ "device": {
102
+ "type": "integer"
103
+ },
104
+ "devicerecipe": {
105
+ "type": "integer"
106
+ },
107
+ "experiencedomain": {
108
+ "type": "integer"
109
+ },
110
+ "experienceendpoint": {
111
+ "type": "integer"
112
+ },
113
+ "experiencegroup": {
114
+ "type": "integer"
115
+ },
116
+ "experienceslug": {
117
+ "type": "integer"
118
+ },
119
+ "experienceuser": {
120
+ "type": "integer"
121
+ },
122
+ "experienceversion": {
123
+ "type": "integer"
124
+ },
125
+ "experienceview": {
126
+ "type": "integer"
127
+ },
128
+ "file": {
129
+ "type": "integer"
130
+ },
131
+ "flow": {
132
+ "type": "integer"
133
+ },
134
+ "integration": {
135
+ "type": "integer"
136
+ },
137
+ "notebook": {
138
+ "type": "integer"
139
+ },
140
+ "webhook": {
141
+ "type": "integer"
142
+ },
143
+ "dataTTL": {
144
+ "type": "integer"
145
+ },
146
+ "payload": {
147
+ "type": "integer"
148
+ },
149
+ "storage": {
150
+ "type": "integer"
151
+ },
152
+ "notebookMinutesPerRun": {
153
+ "type": "integer"
154
+ },
155
+ "notebookMinutesPerMonth": {
156
+ "type": "integer"
157
+ },
158
+ "notebookInParallel": {
159
+ "type": "integer"
160
+ },
161
+ "experienceFlowSlots": {
162
+ "type": "integer"
163
+ },
164
+ "applicationFlowSlots": {
165
+ "type": "integer"
166
+ }
152
167
  },
153
- "notebookInParallel": {
154
- "type": "number"
155
- }
168
+ "additionalProperties": false
156
169
  },
157
170
  "recentDashboards": {
158
171
  "title": "Recent Item List",
@@ -272,62 +285,62 @@
272
285
  "type": "object",
273
286
  "properties": {
274
287
  "apiTokenCount": {
275
- "type": "number"
288
+ "type": "integer"
276
289
  },
277
290
  "appCount": {
278
- "type": "number"
291
+ "type": "integer"
279
292
  },
280
293
  "dashCount": {
281
- "type": "number"
294
+ "type": "integer"
282
295
  },
283
296
  "dataTableCount": {
284
- "type": "number"
297
+ "type": "integer"
285
298
  },
286
299
  "deviceCount": {
287
- "type": "number"
300
+ "type": "integer"
288
301
  },
289
302
  "deviceRecipeCount": {
290
- "type": "number"
303
+ "type": "integer"
291
304
  },
292
305
  "experienceEndpointCount": {
293
- "type": "number"
306
+ "type": "integer"
294
307
  },
295
308
  "experienceGroupCount": {
296
- "type": "number"
309
+ "type": "integer"
297
310
  },
298
311
  "experienceSlugCount": {
299
- "type": "number"
312
+ "type": "integer"
300
313
  },
301
314
  "experienceUserCount": {
302
- "type": "number"
315
+ "type": "integer"
303
316
  },
304
317
  "experienceVersionCount": {
305
- "type": "number"
318
+ "type": "integer"
306
319
  },
307
320
  "experienceViewCount": {
308
- "type": "number"
321
+ "type": "integer"
309
322
  },
310
323
  "fileCount": {
311
- "type": "number"
324
+ "type": "integer"
312
325
  },
313
326
  "flowCount": {
314
- "type": "number"
327
+ "type": "integer"
315
328
  },
316
329
  "integrationCount": {
317
- "type": "number"
330
+ "type": "integer"
318
331
  },
319
332
  "keyCount": {
320
- "type": "number"
333
+ "type": "integer"
321
334
  },
322
335
  "orgCount": {
323
- "type": "number"
336
+ "type": "integer"
324
337
  },
325
338
  "payloadCount": {
326
- "title": "Payload Counts",
327
- "description": "Schema for the result of a payload count request",
339
+ "title": "Payload Stats",
340
+ "description": "Schema for the result of a payload stats request",
328
341
  "type": "object",
329
342
  "properties": {
330
- "mqttOut": {
343
+ "dataTable": {
331
344
  "type": "object",
332
345
  "patternProperties": {
333
346
  ".*": {
@@ -335,7 +348,7 @@
335
348
  }
336
349
  }
337
350
  },
338
- "mqttIn": {
351
+ "deviceCommand": {
339
352
  "type": "object",
340
353
  "patternProperties": {
341
354
  ".*": {
@@ -343,7 +356,15 @@
343
356
  }
344
357
  }
345
358
  },
346
- "dataTable": {
359
+ "deviceConnect": {
360
+ "type": "object",
361
+ "patternProperties": {
362
+ ".*": {
363
+ "type": "number"
364
+ }
365
+ }
366
+ },
367
+ "deviceDisconnect": {
347
368
  "type": "object",
348
369
  "patternProperties": {
349
370
  ".*": {
@@ -359,7 +380,7 @@
359
380
  }
360
381
  }
361
382
  },
362
- "deviceCommand": {
383
+ "endpoint": {
363
384
  "type": "object",
364
385
  "patternProperties": {
365
386
  ".*": {
@@ -367,7 +388,7 @@
367
388
  }
368
389
  }
369
390
  },
370
- "webhook": {
391
+ "event": {
371
392
  "type": "object",
372
393
  "patternProperties": {
373
394
  ".*": {
@@ -375,7 +396,7 @@
375
396
  }
376
397
  }
377
398
  },
378
- "timer": {
399
+ "flowError": {
379
400
  "type": "object",
380
401
  "patternProperties": {
381
402
  ".*": {
@@ -383,7 +404,7 @@
383
404
  }
384
405
  }
385
406
  },
386
- "event": {
407
+ "integration": {
387
408
  "type": "object",
388
409
  "patternProperties": {
389
410
  ".*": {
@@ -391,7 +412,7 @@
391
412
  }
392
413
  }
393
414
  },
394
- "virtualButton": {
415
+ "mqttIn": {
395
416
  "type": "object",
396
417
  "patternProperties": {
397
418
  ".*": {
@@ -399,7 +420,7 @@
399
420
  }
400
421
  }
401
422
  },
402
- "deviceConnect": {
423
+ "mqttOut": {
403
424
  "type": "object",
404
425
  "patternProperties": {
405
426
  ".*": {
@@ -407,7 +428,7 @@
407
428
  }
408
429
  }
409
430
  },
410
- "deviceDisconnect": {
431
+ "notebook": {
411
432
  "type": "object",
412
433
  "patternProperties": {
413
434
  ".*": {
@@ -415,7 +436,7 @@
415
436
  }
416
437
  }
417
438
  },
418
- "endpoint": {
439
+ "timer": {
419
440
  "type": "object",
420
441
  "patternProperties": {
421
442
  ".*": {
@@ -423,7 +444,15 @@
423
444
  }
424
445
  }
425
446
  },
426
- "integration": {
447
+ "virtualButton": {
448
+ "type": "object",
449
+ "patternProperties": {
450
+ ".*": {
451
+ "type": "number"
452
+ }
453
+ }
454
+ },
455
+ "webhook": {
427
456
  "type": "object",
428
457
  "patternProperties": {
429
458
  ".*": {
@@ -437,15 +466,15 @@
437
466
  "type": "object",
438
467
  "properties": {
439
468
  "count": {
440
- "type": "number"
469
+ "type": "integer"
441
470
  },
442
471
  "size": {
443
- "type": "number"
472
+ "type": "integer"
444
473
  }
445
474
  }
446
475
  },
447
476
  "webhookCount": {
448
- "type": "number"
477
+ "type": "integer"
449
478
  }
450
479
  }
451
480
  },
@@ -608,9 +608,54 @@
608
608
  "outputType"
609
609
  ],
610
610
  "additionalProperties": false
611
+ },
612
+ {
613
+ "type": "object",
614
+ "properties": {
615
+ "outputType": {
616
+ "type": "string",
617
+ "enum": [
618
+ "temporaryUrl"
619
+ ]
620
+ },
621
+ "fileName": {
622
+ "oneOf": [
623
+ {
624
+ "type": "string",
625
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
626
+ },
627
+ {
628
+ "type": "string",
629
+ "minLength": 4,
630
+ "maxLength": 255,
631
+ "pattern": ".*{{.+}}.*"
632
+ }
633
+ ]
634
+ }
635
+ },
636
+ "required": [
637
+ "fileName",
638
+ "outputType"
639
+ ],
640
+ "additionalProperties": false
611
641
  }
612
642
  ]
613
643
  }
644
+ },
645
+ "stats": {
646
+ "type": "object",
647
+ "properties": {
648
+ "minutesThisPeriod": {
649
+ "type": "number"
650
+ },
651
+ "runsThisPeriod": {
652
+ "type": "number"
653
+ },
654
+ "errorsThisPeriod": {
655
+ "type": "number"
656
+ }
657
+ },
658
+ "additionalProperties": false
614
659
  }
615
660
  }
616
661
  }
@@ -573,6 +573,36 @@
573
573
  "outputType"
574
574
  ],
575
575
  "additionalProperties": false
576
+ },
577
+ {
578
+ "type": "object",
579
+ "properties": {
580
+ "outputType": {
581
+ "type": "string",
582
+ "enum": [
583
+ "temporaryUrl"
584
+ ]
585
+ },
586
+ "fileName": {
587
+ "oneOf": [
588
+ {
589
+ "type": "string",
590
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
591
+ },
592
+ {
593
+ "type": "string",
594
+ "minLength": 4,
595
+ "maxLength": 255,
596
+ "pattern": ".*{{.+}}.*"
597
+ }
598
+ ]
599
+ }
600
+ },
601
+ "required": [
602
+ "fileName",
603
+ "outputType"
604
+ ],
605
+ "additionalProperties": false
576
606
  }
577
607
  ]
578
608
  }
@@ -580,6 +580,36 @@
580
580
  "outputType"
581
581
  ],
582
582
  "additionalProperties": false
583
+ },
584
+ {
585
+ "type": "object",
586
+ "properties": {
587
+ "outputType": {
588
+ "type": "string",
589
+ "enum": [
590
+ "temporaryUrl"
591
+ ]
592
+ },
593
+ "fileName": {
594
+ "oneOf": [
595
+ {
596
+ "type": "string",
597
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
598
+ },
599
+ {
600
+ "type": "string",
601
+ "minLength": 4,
602
+ "maxLength": 255,
603
+ "pattern": ".*{{.+}}.*"
604
+ }
605
+ ]
606
+ }
607
+ },
608
+ "required": [
609
+ "fileName",
610
+ "outputType"
611
+ ],
612
+ "additionalProperties": false
583
613
  }
584
614
  ]
585
615
  }
@@ -615,9 +615,54 @@
615
615
  "outputType"
616
616
  ],
617
617
  "additionalProperties": false
618
+ },
619
+ {
620
+ "type": "object",
621
+ "properties": {
622
+ "outputType": {
623
+ "type": "string",
624
+ "enum": [
625
+ "temporaryUrl"
626
+ ]
627
+ },
628
+ "fileName": {
629
+ "oneOf": [
630
+ {
631
+ "type": "string",
632
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
633
+ },
634
+ {
635
+ "type": "string",
636
+ "minLength": 4,
637
+ "maxLength": 255,
638
+ "pattern": ".*{{.+}}.*"
639
+ }
640
+ ]
641
+ }
642
+ },
643
+ "required": [
644
+ "fileName",
645
+ "outputType"
646
+ ],
647
+ "additionalProperties": false
618
648
  }
619
649
  ]
620
650
  }
651
+ },
652
+ "stats": {
653
+ "type": "object",
654
+ "properties": {
655
+ "minutesThisPeriod": {
656
+ "type": "number"
657
+ },
658
+ "runsThisPeriod": {
659
+ "type": "number"
660
+ },
661
+ "errorsThisPeriod": {
662
+ "type": "number"
663
+ }
664
+ },
665
+ "additionalProperties": false
621
666
  }
622
667
  }
623
668
  }