@gnawbit/tabretake 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,616 +1,632 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json",
4
- "title": "TabRetake story, recording marks or recorded timeline",
5
- "oneOf": [
6
- {
7
- "$ref": "#/definitions/story"
8
- },
9
- {
10
- "$ref": "#/definitions/marks"
11
- },
12
- {
13
- "$ref": "#/definitions/record"
14
- }
15
- ],
16
- "definitions": {
17
- "viewport": {
18
- "type": "object",
19
- "properties": {
20
- "width": {
21
- "type": "integer",
22
- "minimum": 1
23
- },
24
- "height": {
25
- "type": "integer",
26
- "minimum": 1
27
- }
28
- },
29
- "additionalProperties": false,
30
- "required": [
31
- "width",
32
- "height"
33
- ]
34
- },
35
- "vertical": {
36
- "type": "object",
37
- "properties": {
38
- "zoom": {
39
- "type": "number",
40
- "minimum": 1,
41
- "maximum": 10,
42
- "description": "Portrait focus magnification; --vertical-zoom overrides this value."
43
- },
44
- "badge": {
45
- "type": "string"
46
- },
47
- "titleLines": {
48
- "type": "array",
49
- "items": {
50
- "type": "string"
51
- },
52
- "minItems": 1,
53
- "maxItems": 2
54
- },
55
- "titleSize": {
56
- "type": "number",
57
- "exclusiveMinimum": 0
58
- },
59
- "titleY": {
60
- "type": "number",
61
- "minimum": 0
62
- },
63
- "subtitle": {
64
- "type": "string"
65
- },
66
- "subtitleSize": {
67
- "type": "number",
68
- "exclusiveMinimum": 0
69
- },
70
- "subtitleGap": {
71
- "type": "number",
72
- "minimum": 0
73
- },
74
- "cta": {
75
- "type": "string"
76
- },
77
- "ctaSize": {
78
- "type": "number",
79
- "exclusiveMinimum": 0
80
- },
81
- "ctaY": {
82
- "type": "number",
83
- "minimum": 0
84
- },
85
- "watermark": {
86
- "type": "boolean"
87
- }
88
- },
89
- "additionalProperties": false
90
- },
91
- "step": {
92
- "type": "object",
93
- "properties": {
94
- "action": {
95
- "enum": [
96
- "wait",
97
- "goto",
98
- "click",
99
- "type",
100
- "hover",
101
- "focus",
102
- "drag",
103
- "scroll",
104
- "press",
105
- "waitFor",
106
- "screenshot"
107
- ]
108
- },
109
- "selector": {
110
- "type": "string",
111
- "minLength": 1
112
- },
113
- "role": {
114
- "type": "string",
115
- "minLength": 1
116
- },
117
- "name": {
118
- "type": "string",
119
- "minLength": 1
120
- },
121
- "text": {
122
- "type": "string",
123
- "minLength": 1
124
- },
125
- "value": {
126
- "type": "string"
127
- },
128
- "url": {
129
- "type": "string",
130
- "minLength": 1
131
- },
132
- "key": {
133
- "type": "string",
134
- "minLength": 1
135
- },
136
- "file": {
137
- "type": "string",
138
- "minLength": 1
139
- },
140
- "ms": {
141
- "type": "number",
142
- "minimum": 0,
143
- "description": "Milliseconds."
144
- },
145
- "pause": {
146
- "type": "number",
147
- "minimum": 0,
148
- "description": "Milliseconds."
149
- },
150
- "timeout": {
151
- "type": "number",
152
- "exclusiveMinimum": 0,
153
- "description": "Milliseconds."
154
- },
155
- "dx": {
156
- "type": "number"
157
- },
158
- "dy": {
159
- "type": "number"
160
- },
161
- "y": {
162
- "type": "number"
163
- },
164
- "steps": {
165
- "type": "integer",
166
- "minimum": 1
167
- },
168
- "caption": {
169
- "type": "string"
170
- },
171
- "zoom": {
172
- "type": "boolean"
173
- }
174
- },
175
- "additionalProperties": false,
176
- "required": [
177
- "action"
178
- ],
179
- "allOf": [
180
- {
181
- "if": {
182
- "properties": {
183
- "action": {
184
- "enum": [
185
- "click",
186
- "type",
187
- "hover",
188
- "focus",
189
- "drag"
190
- ]
191
- }
192
- }
193
- },
194
- "then": {
195
- "anyOf": [
196
- {
197
- "required": [
198
- "selector"
199
- ]
200
- },
201
- {
202
- "required": [
203
- "role"
204
- ]
205
- },
206
- {
207
- "required": [
208
- "name"
209
- ]
210
- },
211
- {
212
- "required": [
213
- "text"
214
- ]
215
- }
216
- ]
217
- }
218
- },
219
- {
220
- "if": {
221
- "properties": {
222
- "action": {
223
- "const": "type"
224
- }
225
- }
226
- },
227
- "then": {
228
- "anyOf": [
229
- {
230
- "required": [
231
- "value"
232
- ]
233
- },
234
- {
235
- "required": [
236
- "text"
237
- ]
238
- }
239
- ]
240
- }
241
- },
242
- {
243
- "if": {
244
- "properties": {
245
- "action": {
246
- "const": "waitFor"
247
- }
248
- }
249
- },
250
- "then": {
251
- "anyOf": [
252
- {
253
- "required": [
254
- "url"
255
- ]
256
- },
257
- {
258
- "required": [
259
- "selector"
260
- ]
261
- },
262
- {
263
- "required": [
264
- "text"
265
- ]
266
- }
267
- ]
268
- }
269
- },
270
- {
271
- "if": {
272
- "properties": {
273
- "action": {
274
- "const": "goto"
275
- }
276
- }
277
- },
278
- "then": {
279
- "properties": {
280
- "url": {
281
- "type": "string",
282
- "format": "uri",
283
- "pattern": "^https?://"
284
- }
285
- }
286
- }
287
- }
288
- ]
289
- },
290
- "mark": {
291
- "type": "object",
292
- "properties": {
293
- "t": {
294
- "type": "number",
295
- "minimum": 0,
296
- "description": "Seconds on the output timeline."
297
- },
298
- "duration": {
299
- "type": "number",
300
- "minimum": 0,
301
- "description": "Seconds on the output timeline."
302
- },
303
- "x": {
304
- "type": "number",
305
- "minimum": 0,
306
- "description": "Values from 0 to 1 are normalized source coordinates; larger values are source pixels."
307
- },
308
- "y": {
309
- "type": "number",
310
- "minimum": 0,
311
- "description": "Values from 0 to 1 are normalized source coordinates; larger values are source pixels."
312
- },
313
- "caption": {
314
- "type": "string"
315
- },
316
- "zoom": {
317
- "type": "boolean"
318
- },
319
- "label": {
320
- "type": "string"
321
- }
322
- },
323
- "additionalProperties": false
324
- },
325
- "event": {
326
- "type": "object",
327
- "properties": {
328
- "t": {
329
- "type": "number",
330
- "minimum": 0,
331
- "description": "Milliseconds on the recorded timeline."
332
- },
333
- "tEnd": {
334
- "type": "number",
335
- "minimum": 0,
336
- "description": "Milliseconds on the recorded timeline."
337
- },
338
- "x": {
339
- "type": "number"
340
- },
341
- "y": {
342
- "type": "number"
343
- },
344
- "action": {
345
- "type": "string",
346
- "minLength": 1
347
- },
348
- "caption": {
349
- "type": "string"
350
- },
351
- "zoom": {
352
- "type": "boolean"
353
- },
354
- "label": {
355
- "type": "string"
356
- }
357
- },
358
- "additionalProperties": false,
359
- "required": [
360
- "t"
361
- ]
362
- },
363
- "settings": {
364
- "type": "object",
365
- "properties": {
366
- "$schema": {
367
- "type": "string",
368
- "minLength": 1
369
- },
370
- "displayUrl": {
371
- "type": "string"
372
- },
373
- "out": {
374
- "type": "string",
375
- "minLength": 1
376
- },
377
- "viewport": {
378
- "$ref": "#/definitions/viewport"
379
- },
380
- "brand": {
381
- "type": "object",
382
- "properties": {
383
- "background": {
384
- "type": "string",
385
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
386
- },
387
- "accent": {
388
- "type": "string",
389
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
390
- }
391
- },
392
- "additionalProperties": false
393
- },
394
- "vertical": {
395
- "$ref": "#/definitions/vertical"
396
- },
397
- "posterAt": {
398
- "type": "number",
399
- "minimum": 0
400
- },
401
- "zoomDuration": {
402
- "type": "number",
403
- "minimum": 0
404
- },
405
- "url": {
406
- "type": "string",
407
- "format": "uri",
408
- "pattern": "^https?://"
409
- },
410
- "scale": {
411
- "const": 1
412
- },
413
- "initialWait": {
414
- "type": "number",
415
- "minimum": 0
416
- },
417
- "tail": {
418
- "type": "number",
419
- "minimum": 0
420
- },
421
- "steps": {
422
- "type": "array",
423
- "minItems": 1,
424
- "items": {
425
- "$ref": "#/definitions/step"
426
- }
427
- }
428
- },
429
- "additionalProperties": false
430
- },
431
- "story": {
432
- "type": "object",
433
- "properties": {
434
- "$schema": {
435
- "type": "string",
436
- "minLength": 1
437
- },
438
- "displayUrl": {
439
- "type": "string"
440
- },
441
- "out": {
442
- "type": "string",
443
- "minLength": 1
444
- },
445
- "viewport": {
446
- "$ref": "#/definitions/viewport"
447
- },
448
- "brand": {
449
- "type": "object",
450
- "properties": {
451
- "background": {
452
- "type": "string",
453
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
454
- },
455
- "accent": {
456
- "type": "string",
457
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
458
- }
459
- },
460
- "additionalProperties": false
461
- },
462
- "vertical": {
463
- "$ref": "#/definitions/vertical"
464
- },
465
- "posterAt": {
466
- "type": "number",
467
- "minimum": 0
468
- },
469
- "zoomDuration": {
470
- "type": "number",
471
- "minimum": 0
472
- },
473
- "url": {
474
- "type": "string",
475
- "format": "uri",
476
- "pattern": "^https?://"
477
- },
478
- "scale": {
479
- "const": 1
480
- },
481
- "initialWait": {
482
- "type": "number",
483
- "minimum": 0
484
- },
485
- "tail": {
486
- "type": "number",
487
- "minimum": 0
488
- },
489
- "steps": {
490
- "type": "array",
491
- "minItems": 1,
492
- "items": {
493
- "$ref": "#/definitions/step"
494
- }
495
- }
496
- },
497
- "additionalProperties": false,
498
- "required": [
499
- "url",
500
- "steps"
501
- ]
502
- },
503
- "marks": {
504
- "type": "object",
505
- "properties": {
506
- "$schema": {
507
- "type": "string",
508
- "minLength": 1
509
- },
510
- "displayUrl": {
511
- "type": "string"
512
- },
513
- "out": {
514
- "type": "string",
515
- "minLength": 1
516
- },
517
- "viewport": {
518
- "$ref": "#/definitions/viewport"
519
- },
520
- "brand": {
521
- "type": "object",
522
- "properties": {
523
- "background": {
524
- "type": "string",
525
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
526
- },
527
- "accent": {
528
- "type": "string",
529
- "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
530
- }
531
- },
532
- "additionalProperties": false
533
- },
534
- "vertical": {
535
- "$ref": "#/definitions/vertical"
536
- },
537
- "posterAt": {
538
- "type": "number",
539
- "minimum": 0
540
- },
541
- "zoomDuration": {
542
- "type": "number",
543
- "minimum": 0
544
- },
545
- "url": {
546
- "type": "string"
547
- },
548
- "video": {
549
- "type": "string",
550
- "minLength": 1
551
- },
552
- "duration": {
553
- "type": "number",
554
- "exclusiveMinimum": 0
555
- },
556
- "marks": {
557
- "type": "array",
558
- "items": {
559
- "$ref": "#/definitions/mark"
560
- }
561
- }
562
- },
563
- "additionalProperties": false,
564
- "required": [
565
- "marks"
566
- ]
567
- },
568
- "record": {
569
- "type": "object",
570
- "properties": {
571
- "$schema": {
572
- "type": "string",
573
- "minLength": 1
574
- },
575
- "config": {
576
- "$ref": "#/definitions/settings"
577
- },
578
- "url": {
579
- "type": "string"
580
- },
581
- "viewport": {
582
- "$ref": "#/definitions/viewport"
583
- },
584
- "scale": {
585
- "const": 1
586
- },
587
- "video": {
588
- "type": "string",
589
- "minLength": 1
590
- },
591
- "videoOffset": {
592
- "type": "number",
593
- "minimum": 0
594
- },
595
- "duration": {
596
- "type": "number",
597
- "exclusiveMinimum": 0
598
- },
599
- "events": {
600
- "type": "array",
601
- "items": {
602
- "$ref": "#/definitions/event"
603
- }
604
- },
605
- "recordedAt": {
606
- "type": "string"
607
- }
608
- },
609
- "additionalProperties": false,
610
- "required": [
611
- "video",
612
- "events"
613
- ]
614
- }
615
- }
616
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json",
4
+ "title": "TabRetake story, recording marks or recorded timeline",
5
+ "oneOf": [
6
+ {
7
+ "$ref": "#/definitions/story"
8
+ },
9
+ {
10
+ "$ref": "#/definitions/marks"
11
+ },
12
+ {
13
+ "$ref": "#/definitions/record"
14
+ }
15
+ ],
16
+ "definitions": {
17
+ "brand": {
18
+ "type": "object",
19
+ "properties": {
20
+ "preset": {
21
+ "type": "string",
22
+ "enum": [
23
+ "midnight",
24
+ "daylight",
25
+ "paper",
26
+ "slate"
27
+ ]
28
+ },
29
+ "background": {
30
+ "type": "string",
31
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
32
+ },
33
+ "accent": {
34
+ "type": "string",
35
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
36
+ },
37
+ "frame": {
38
+ "type": "string",
39
+ "enum": [
40
+ "auto",
41
+ "browser",
42
+ "phone",
43
+ "none"
44
+ ]
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ },
49
+ "viewport": {
50
+ "type": "object",
51
+ "properties": {
52
+ "width": {
53
+ "type": "integer",
54
+ "minimum": 1
55
+ },
56
+ "height": {
57
+ "type": "integer",
58
+ "minimum": 1
59
+ }
60
+ },
61
+ "additionalProperties": false,
62
+ "required": [
63
+ "width",
64
+ "height"
65
+ ]
66
+ },
67
+ "vertical": {
68
+ "type": "object",
69
+ "properties": {
70
+ "zoom": {
71
+ "type": "number",
72
+ "minimum": 1,
73
+ "maximum": 10,
74
+ "description": "Portrait focus magnification; --vertical-zoom overrides this value."
75
+ },
76
+ "badge": {
77
+ "type": "string"
78
+ },
79
+ "titleLines": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ },
84
+ "minItems": 1,
85
+ "maxItems": 2
86
+ },
87
+ "titleSize": {
88
+ "type": "number",
89
+ "exclusiveMinimum": 0
90
+ },
91
+ "titleY": {
92
+ "type": "number",
93
+ "minimum": 0
94
+ },
95
+ "subtitle": {
96
+ "type": "string"
97
+ },
98
+ "subtitleSize": {
99
+ "type": "number",
100
+ "exclusiveMinimum": 0
101
+ },
102
+ "subtitleGap": {
103
+ "type": "number",
104
+ "minimum": 0
105
+ },
106
+ "cta": {
107
+ "type": "string"
108
+ },
109
+ "ctaSize": {
110
+ "type": "number",
111
+ "exclusiveMinimum": 0
112
+ },
113
+ "ctaY": {
114
+ "type": "number",
115
+ "minimum": 0
116
+ },
117
+ "watermark": {
118
+ "type": "boolean"
119
+ }
120
+ },
121
+ "additionalProperties": false
122
+ },
123
+ "step": {
124
+ "type": "object",
125
+ "properties": {
126
+ "action": {
127
+ "enum": [
128
+ "wait",
129
+ "goto",
130
+ "click",
131
+ "type",
132
+ "select",
133
+ "hover",
134
+ "focus",
135
+ "drag",
136
+ "scroll",
137
+ "press",
138
+ "waitFor",
139
+ "screenshot"
140
+ ]
141
+ },
142
+ "selector": {
143
+ "type": "string",
144
+ "minLength": 1
145
+ },
146
+ "role": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ },
150
+ "name": {
151
+ "type": "string",
152
+ "minLength": 1
153
+ },
154
+ "text": {
155
+ "type": "string",
156
+ "minLength": 1
157
+ },
158
+ "value": {
159
+ "type": "string"
160
+ },
161
+ "url": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "key": {
166
+ "type": "string",
167
+ "minLength": 1
168
+ },
169
+ "file": {
170
+ "type": "string",
171
+ "minLength": 1
172
+ },
173
+ "ms": {
174
+ "type": "number",
175
+ "minimum": 0,
176
+ "description": "Milliseconds."
177
+ },
178
+ "pause": {
179
+ "type": "number",
180
+ "minimum": 0,
181
+ "description": "Milliseconds."
182
+ },
183
+ "timeout": {
184
+ "type": "number",
185
+ "exclusiveMinimum": 0,
186
+ "description": "Milliseconds."
187
+ },
188
+ "dx": {
189
+ "type": "number"
190
+ },
191
+ "dy": {
192
+ "type": "number"
193
+ },
194
+ "y": {
195
+ "type": "number"
196
+ },
197
+ "steps": {
198
+ "type": "integer",
199
+ "minimum": 1
200
+ },
201
+ "caption": {
202
+ "type": "string"
203
+ },
204
+ "zoom": {
205
+ "type": "boolean"
206
+ }
207
+ },
208
+ "additionalProperties": false,
209
+ "required": [
210
+ "action"
211
+ ],
212
+ "allOf": [
213
+ {
214
+ "if": {
215
+ "properties": {
216
+ "action": {
217
+ "enum": [
218
+ "click",
219
+ "type",
220
+ "select",
221
+ "hover",
222
+ "focus",
223
+ "drag"
224
+ ]
225
+ }
226
+ }
227
+ },
228
+ "then": {
229
+ "anyOf": [
230
+ {
231
+ "required": [
232
+ "selector"
233
+ ]
234
+ },
235
+ {
236
+ "required": [
237
+ "role"
238
+ ]
239
+ },
240
+ {
241
+ "required": [
242
+ "name"
243
+ ]
244
+ },
245
+ {
246
+ "required": [
247
+ "text"
248
+ ]
249
+ }
250
+ ]
251
+ }
252
+ },
253
+ {
254
+ "if": {
255
+ "properties": {
256
+ "action": {
257
+ "enum": [
258
+ "type",
259
+ "select"
260
+ ]
261
+ }
262
+ }
263
+ },
264
+ "then": {
265
+ "anyOf": [
266
+ {
267
+ "required": [
268
+ "value"
269
+ ]
270
+ },
271
+ {
272
+ "required": [
273
+ "text"
274
+ ]
275
+ }
276
+ ]
277
+ }
278
+ },
279
+ {
280
+ "if": {
281
+ "properties": {
282
+ "action": {
283
+ "const": "waitFor"
284
+ }
285
+ }
286
+ },
287
+ "then": {
288
+ "anyOf": [
289
+ {
290
+ "required": [
291
+ "url"
292
+ ]
293
+ },
294
+ {
295
+ "required": [
296
+ "selector"
297
+ ]
298
+ },
299
+ {
300
+ "required": [
301
+ "text"
302
+ ]
303
+ }
304
+ ]
305
+ }
306
+ },
307
+ {
308
+ "if": {
309
+ "properties": {
310
+ "action": {
311
+ "const": "goto"
312
+ }
313
+ }
314
+ },
315
+ "then": {
316
+ "properties": {
317
+ "url": {
318
+ "type": "string",
319
+ "format": "uri",
320
+ "pattern": "^https?://"
321
+ }
322
+ }
323
+ }
324
+ }
325
+ ]
326
+ },
327
+ "mark": {
328
+ "type": "object",
329
+ "properties": {
330
+ "t": {
331
+ "type": "number",
332
+ "minimum": 0,
333
+ "description": "Seconds on the output timeline."
334
+ },
335
+ "duration": {
336
+ "type": "number",
337
+ "minimum": 0,
338
+ "description": "Seconds on the output timeline."
339
+ },
340
+ "x": {
341
+ "type": "number",
342
+ "minimum": 0,
343
+ "description": "Values from 0 to 1 are normalized source coordinates; larger values are source pixels."
344
+ },
345
+ "y": {
346
+ "type": "number",
347
+ "minimum": 0,
348
+ "description": "Values from 0 to 1 are normalized source coordinates; larger values are source pixels."
349
+ },
350
+ "caption": {
351
+ "type": "string"
352
+ },
353
+ "zoom": {
354
+ "type": "boolean"
355
+ },
356
+ "label": {
357
+ "type": "string"
358
+ }
359
+ },
360
+ "additionalProperties": false
361
+ },
362
+ "event": {
363
+ "type": "object",
364
+ "properties": {
365
+ "t": {
366
+ "type": "number",
367
+ "minimum": 0,
368
+ "description": "Milliseconds on the recorded timeline."
369
+ },
370
+ "tEnd": {
371
+ "type": "number",
372
+ "minimum": 0,
373
+ "description": "Milliseconds on the recorded timeline."
374
+ },
375
+ "x": {
376
+ "type": "number"
377
+ },
378
+ "y": {
379
+ "type": "number"
380
+ },
381
+ "action": {
382
+ "type": "string",
383
+ "minLength": 1
384
+ },
385
+ "caption": {
386
+ "type": "string"
387
+ },
388
+ "zoom": {
389
+ "type": "boolean"
390
+ },
391
+ "label": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "additionalProperties": false,
396
+ "required": [
397
+ "t"
398
+ ]
399
+ },
400
+ "settings": {
401
+ "type": "object",
402
+ "properties": {
403
+ "$schema": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ },
407
+ "displayUrl": {
408
+ "type": "string"
409
+ },
410
+ "out": {
411
+ "type": "string",
412
+ "minLength": 1
413
+ },
414
+ "viewport": {
415
+ "$ref": "#/definitions/viewport"
416
+ },
417
+ "brand": {
418
+ "$ref": "#/definitions/brand"
419
+ },
420
+ "vertical": {
421
+ "$ref": "#/definitions/vertical"
422
+ },
423
+ "posterAt": {
424
+ "type": "number",
425
+ "minimum": 0
426
+ },
427
+ "zoomDuration": {
428
+ "type": "number",
429
+ "minimum": 0
430
+ },
431
+ "url": {
432
+ "type": "string",
433
+ "format": "uri",
434
+ "pattern": "^https?://"
435
+ },
436
+ "scale": {
437
+ "type": "integer",
438
+ "enum": [
439
+ 1,
440
+ 2
441
+ ]
442
+ },
443
+ "initialWait": {
444
+ "type": "number",
445
+ "minimum": 0
446
+ },
447
+ "tail": {
448
+ "type": "number",
449
+ "minimum": 0
450
+ },
451
+ "steps": {
452
+ "type": "array",
453
+ "minItems": 1,
454
+ "items": {
455
+ "$ref": "#/definitions/step"
456
+ }
457
+ }
458
+ },
459
+ "additionalProperties": false
460
+ },
461
+ "story": {
462
+ "type": "object",
463
+ "properties": {
464
+ "$schema": {
465
+ "type": "string",
466
+ "minLength": 1
467
+ },
468
+ "displayUrl": {
469
+ "type": "string"
470
+ },
471
+ "out": {
472
+ "type": "string",
473
+ "minLength": 1
474
+ },
475
+ "viewport": {
476
+ "$ref": "#/definitions/viewport"
477
+ },
478
+ "brand": {
479
+ "$ref": "#/definitions/brand"
480
+ },
481
+ "vertical": {
482
+ "$ref": "#/definitions/vertical"
483
+ },
484
+ "posterAt": {
485
+ "type": "number",
486
+ "minimum": 0
487
+ },
488
+ "zoomDuration": {
489
+ "type": "number",
490
+ "minimum": 0
491
+ },
492
+ "url": {
493
+ "type": "string",
494
+ "format": "uri",
495
+ "pattern": "^https?://"
496
+ },
497
+ "scale": {
498
+ "type": "integer",
499
+ "enum": [
500
+ 1,
501
+ 2
502
+ ]
503
+ },
504
+ "initialWait": {
505
+ "type": "number",
506
+ "minimum": 0
507
+ },
508
+ "tail": {
509
+ "type": "number",
510
+ "minimum": 0
511
+ },
512
+ "steps": {
513
+ "type": "array",
514
+ "minItems": 1,
515
+ "items": {
516
+ "$ref": "#/definitions/step"
517
+ }
518
+ }
519
+ },
520
+ "additionalProperties": false,
521
+ "required": [
522
+ "url",
523
+ "steps"
524
+ ]
525
+ },
526
+ "marks": {
527
+ "type": "object",
528
+ "properties": {
529
+ "$schema": {
530
+ "type": "string",
531
+ "minLength": 1
532
+ },
533
+ "displayUrl": {
534
+ "type": "string"
535
+ },
536
+ "out": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ },
540
+ "viewport": {
541
+ "$ref": "#/definitions/viewport"
542
+ },
543
+ "brand": {
544
+ "$ref": "#/definitions/brand"
545
+ },
546
+ "vertical": {
547
+ "$ref": "#/definitions/vertical"
548
+ },
549
+ "posterAt": {
550
+ "type": "number",
551
+ "minimum": 0
552
+ },
553
+ "zoomDuration": {
554
+ "type": "number",
555
+ "minimum": 0
556
+ },
557
+ "url": {
558
+ "type": "string"
559
+ },
560
+ "video": {
561
+ "type": "string",
562
+ "minLength": 1
563
+ },
564
+ "duration": {
565
+ "type": "number",
566
+ "exclusiveMinimum": 0
567
+ },
568
+ "marks": {
569
+ "type": "array",
570
+ "items": {
571
+ "$ref": "#/definitions/mark"
572
+ }
573
+ }
574
+ },
575
+ "additionalProperties": false,
576
+ "required": [
577
+ "marks"
578
+ ]
579
+ },
580
+ "record": {
581
+ "type": "object",
582
+ "properties": {
583
+ "$schema": {
584
+ "type": "string",
585
+ "minLength": 1
586
+ },
587
+ "config": {
588
+ "$ref": "#/definitions/settings"
589
+ },
590
+ "url": {
591
+ "type": "string"
592
+ },
593
+ "viewport": {
594
+ "$ref": "#/definitions/viewport"
595
+ },
596
+ "scale": {
597
+ "type": "integer",
598
+ "enum": [
599
+ 1,
600
+ 2
601
+ ]
602
+ },
603
+ "video": {
604
+ "type": "string",
605
+ "minLength": 1
606
+ },
607
+ "videoOffset": {
608
+ "type": "number",
609
+ "minimum": 0
610
+ },
611
+ "duration": {
612
+ "type": "number",
613
+ "exclusiveMinimum": 0
614
+ },
615
+ "events": {
616
+ "type": "array",
617
+ "items": {
618
+ "$ref": "#/definitions/event"
619
+ }
620
+ },
621
+ "recordedAt": {
622
+ "type": "string"
623
+ }
624
+ },
625
+ "additionalProperties": false,
626
+ "required": [
627
+ "video",
628
+ "events"
629
+ ]
630
+ }
631
+ }
632
+ }