@shotstack/schemas 1.6.0 → 1.7.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.
Files changed (90) hide show
  1. package/README.md +89 -89
  2. package/dist/json-schema/asset.json +3123 -0
  3. package/dist/json-schema/audio-asset.json +180 -0
  4. package/dist/json-schema/caption-asset.json +285 -0
  5. package/dist/json-schema/caption-background.json +61 -0
  6. package/dist/json-schema/caption-font.json +97 -0
  7. package/dist/json-schema/caption-margin.json +49 -0
  8. package/dist/json-schema/chroma-key.json +46 -0
  9. package/dist/json-schema/clip.json +3575 -0
  10. package/dist/json-schema/crop.json +69 -0
  11. package/dist/json-schema/destinations.json +495 -0
  12. package/dist/json-schema/edit.json +4540 -0
  13. package/dist/json-schema/flip-transformation.json +37 -0
  14. package/dist/json-schema/font.json +18 -0
  15. package/dist/json-schema/google-cloud-storage-destination-options.json +42 -0
  16. package/dist/json-schema/google-cloud-storage-destination.json +73 -0
  17. package/dist/json-schema/google-drive-destination-options.json +30 -0
  18. package/dist/json-schema/google-drive-destination.json +54 -0
  19. package/dist/json-schema/image-asset.json +104 -0
  20. package/dist/json-schema/image-to-video-asset.json +151 -0
  21. package/dist/json-schema/index.cjs +1 -0
  22. package/dist/json-schema/index.d.ts +6 -0
  23. package/dist/json-schema/index.js +3 -0
  24. package/dist/json-schema/luma-asset.json +38 -0
  25. package/dist/json-schema/merge-field.json +23 -0
  26. package/dist/json-schema/offset.json +145 -0
  27. package/dist/json-schema/output.json +771 -0
  28. package/dist/json-schema/poster.json +18 -0
  29. package/dist/json-schema/range.json +39 -0
  30. package/dist/json-schema/rich-caption-active-font.json +54 -0
  31. package/dist/json-schema/rich-caption-active.json +154 -0
  32. package/dist/json-schema/rich-caption-asset.json +1098 -0
  33. package/dist/json-schema/rich-caption-word-animation.json +60 -0
  34. package/dist/json-schema/rich-text-alignment.json +47 -0
  35. package/dist/json-schema/rich-text-animation.json +74 -0
  36. package/dist/json-schema/rich-text-asset.json +737 -0
  37. package/dist/json-schema/rich-text-background.json +52 -0
  38. package/dist/json-schema/rich-text-font.json +157 -0
  39. package/dist/json-schema/rich-text-gradient.json +68 -0
  40. package/dist/json-schema/rich-text-shadow.json +79 -0
  41. package/dist/json-schema/rich-text-stroke.json +55 -0
  42. package/dist/json-schema/rich-text-style.json +165 -0
  43. package/dist/json-schema/rotate-transformation.json +123 -0
  44. package/dist/json-schema/s3destination-options.json +59 -0
  45. package/dist/json-schema/s3destination.json +90 -0
  46. package/dist/json-schema/schemas.json +4983 -0
  47. package/dist/json-schema/shape-asset.json +225 -0
  48. package/dist/json-schema/shotstack-destination.json +33 -0
  49. package/dist/json-schema/size.json +41 -0
  50. package/dist/json-schema/skew-transformation.json +145 -0
  51. package/dist/json-schema/soundtrack.json +47 -0
  52. package/dist/json-schema/svg-arrow-shape.json +49 -0
  53. package/dist/json-schema/svg-asset.json +877 -0
  54. package/dist/json-schema/svg-circle-shape.json +28 -0
  55. package/dist/json-schema/svg-cross-shape.json +42 -0
  56. package/dist/json-schema/svg-ellipse-shape.json +35 -0
  57. package/dist/json-schema/svg-fill.json +169 -0
  58. package/dist/json-schema/svg-gradient-stop.json +25 -0
  59. package/dist/json-schema/svg-heart-shape.json +28 -0
  60. package/dist/json-schema/svg-line-shape.json +35 -0
  61. package/dist/json-schema/svg-linear-gradient-fill.json +80 -0
  62. package/dist/json-schema/svg-path-shape.json +26 -0
  63. package/dist/json-schema/svg-polygon-shape.json +35 -0
  64. package/dist/json-schema/svg-radial-gradient-fill.json +66 -0
  65. package/dist/json-schema/svg-rectangle-shape.json +49 -0
  66. package/dist/json-schema/svg-ring-shape.json +35 -0
  67. package/dist/json-schema/svg-shadow.json +79 -0
  68. package/dist/json-schema/svg-shape.json +404 -0
  69. package/dist/json-schema/svg-solid-fill.json +40 -0
  70. package/dist/json-schema/svg-star-shape.json +42 -0
  71. package/dist/json-schema/svg-stroke.json +115 -0
  72. package/dist/json-schema/svg-transform.json +93 -0
  73. package/dist/json-schema/text-to-image-asset.json +128 -0
  74. package/dist/json-schema/text-to-speech-asset.json +209 -0
  75. package/dist/json-schema/thumbnail.json +25 -0
  76. package/dist/json-schema/timeline.json +3703 -0
  77. package/dist/json-schema/track.json +3590 -0
  78. package/dist/json-schema/transformation.json +251 -0
  79. package/dist/json-schema/transition.json +37 -0
  80. package/dist/json-schema/tween.json +90 -0
  81. package/dist/json-schema/video-asset.json +321 -0
  82. package/dist/json-schema/vimeo-destination-options.json +149 -0
  83. package/dist/json-schema/vimeo-destination-privacy-options.json +90 -0
  84. package/dist/json-schema/vimeo-destination.json +178 -0
  85. package/dist/json-schema/word-timing.json +44 -0
  86. package/dist/zod/zod.gen.cjs +1080 -921
  87. package/dist/zod/zod.gen.d.ts +139 -139
  88. package/dist/zod/zod.gen.js +1081 -922
  89. package/dist/zod/zod.gen.ts +1583 -1648
  90. package/package.json +79 -73
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "Crop",
3
+ "strict": true,
4
+ "schema": {
5
+ "description": "Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.",
6
+ "properties": {
7
+ "top": {
8
+ "anyOf": [
9
+ {
10
+ "type": "number",
11
+ "description": "Crop from the top of the asset",
12
+ "minimum": 0,
13
+ "maximum": 1
14
+ },
15
+ {
16
+ "type": "null"
17
+ }
18
+ ]
19
+ },
20
+ "bottom": {
21
+ "anyOf": [
22
+ {
23
+ "type": "number",
24
+ "description": "Crop from the bottom of the asset",
25
+ "minimum": 0,
26
+ "maximum": 1
27
+ },
28
+ {
29
+ "type": "null"
30
+ }
31
+ ]
32
+ },
33
+ "left": {
34
+ "anyOf": [
35
+ {
36
+ "type": "number",
37
+ "description": "Crop from the left of the asset",
38
+ "minimum": 0,
39
+ "maximum": 1
40
+ },
41
+ {
42
+ "type": "null"
43
+ }
44
+ ]
45
+ },
46
+ "right": {
47
+ "anyOf": [
48
+ {
49
+ "type": "number",
50
+ "description": "Crop from the left of the asset",
51
+ "minimum": 0,
52
+ "maximum": 1
53
+ },
54
+ {
55
+ "type": "null"
56
+ }
57
+ ]
58
+ }
59
+ },
60
+ "additionalProperties": false,
61
+ "type": "object",
62
+ "required": [
63
+ "top",
64
+ "bottom",
65
+ "left",
66
+ "right"
67
+ ]
68
+ }
69
+ }
@@ -0,0 +1,495 @@
1
+ {
2
+ "name": "Destinations",
3
+ "strict": true,
4
+ "schema": {
5
+ "description": "A destination is a...",
6
+ "anyOf": [
7
+ {
8
+ "$ref": "#/$defs/ShotstackDestination"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/S3Destination"
12
+ },
13
+ {
14
+ "$ref": "#/$defs/GoogleCloudStorageDestination"
15
+ },
16
+ {
17
+ "$ref": "#/$defs/GoogleDriveDestination"
18
+ },
19
+ {
20
+ "$ref": "#/$defs/VimeoDestination"
21
+ },
22
+ {
23
+ "description": "S...",
24
+ "properties": {
25
+ "provider": {
26
+ "type": "string",
27
+ "enum": [
28
+ "tiktok"
29
+ ]
30
+ },
31
+ "options": {
32
+ "anyOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "title": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string"
40
+ },
41
+ {
42
+ "type": "null"
43
+ }
44
+ ]
45
+ },
46
+ "privacyLevel": {
47
+ "anyOf": [
48
+ {
49
+ "type": "string",
50
+ "description": "Th...",
51
+ "enum": [
52
+ "public",
53
+ "friends",
54
+ "private"
55
+ ]
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ]
61
+ },
62
+ "disableDuet": {
63
+ "anyOf": [
64
+ {
65
+ "type": "boolean"
66
+ },
67
+ {
68
+ "type": "null"
69
+ }
70
+ ]
71
+ },
72
+ "disableStitch": {
73
+ "anyOf": [
74
+ {
75
+ "type": "boolean"
76
+ },
77
+ {
78
+ "type": "null"
79
+ }
80
+ ]
81
+ },
82
+ "disableComment": {
83
+ "anyOf": [
84
+ {
85
+ "type": "boolean"
86
+ },
87
+ {
88
+ "type": "null"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ "additionalProperties": false,
94
+ "required": [
95
+ "title",
96
+ "privacyLevel",
97
+ "disableDuet",
98
+ "disableStitch",
99
+ "disableComment"
100
+ ]
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ "type": "object",
109
+ "required": [
110
+ "provider",
111
+ "options"
112
+ ],
113
+ "additionalProperties": false
114
+ }
115
+ ],
116
+ "$defs": {
117
+ "ShotstackDestination": {
118
+ "description": "S...",
119
+ "properties": {
120
+ "provider": {
121
+ "type": "string",
122
+ "enum": [
123
+ "shotstack"
124
+ ]
125
+ },
126
+ "exclude": {
127
+ "anyOf": [
128
+ {
129
+ "type": "boolean",
130
+ "description": "S..."
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ "type": "object",
139
+ "required": [
140
+ "provider",
141
+ "exclude"
142
+ ],
143
+ "additionalProperties": false
144
+ },
145
+ "S3Destination": {
146
+ "description": "Send...",
147
+ "properties": {
148
+ "provider": {
149
+ "type": "string",
150
+ "enum": [
151
+ "s3"
152
+ ]
153
+ },
154
+ "options": {
155
+ "anyOf": [
156
+ {
157
+ "$ref": "#/$defs/S3DestinationOptions"
158
+ },
159
+ {
160
+ "type": "null"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ "type": "object",
166
+ "required": [
167
+ "provider",
168
+ "options"
169
+ ],
170
+ "additionalProperties": false
171
+ },
172
+ "S3DestinationOptions": {
173
+ "properties": {
174
+ "region": {
175
+ "description": "C...",
176
+ "type": "string"
177
+ },
178
+ "bucket": {
179
+ "type": "string"
180
+ },
181
+ "prefix": {
182
+ "anyOf": [
183
+ {
184
+ "type": "string"
185
+ },
186
+ {
187
+ "type": "null"
188
+ }
189
+ ]
190
+ },
191
+ "filename": {
192
+ "anyOf": [
193
+ {
194
+ "type": "string",
195
+ "description": "Use..."
196
+ },
197
+ {
198
+ "type": "null"
199
+ }
200
+ ]
201
+ },
202
+ "acl": {
203
+ "anyOf": [
204
+ {
205
+ "type": "string",
206
+ "description": "Se..."
207
+ },
208
+ {
209
+ "type": "null"
210
+ }
211
+ ]
212
+ }
213
+ },
214
+ "required": [
215
+ "region",
216
+ "bucket",
217
+ "prefix",
218
+ "filename",
219
+ "acl"
220
+ ],
221
+ "type": "object",
222
+ "additionalProperties": false
223
+ },
224
+ "GoogleCloudStorageDestination": {
225
+ "description": "Send...",
226
+ "properties": {
227
+ "provider": {
228
+ "type": "string",
229
+ "enum": [
230
+ "google-cloud-storage"
231
+ ]
232
+ },
233
+ "options": {
234
+ "anyOf": [
235
+ {
236
+ "$ref": "#/$defs/GoogleCloudStorageDestinationOptions"
237
+ },
238
+ {
239
+ "type": "null"
240
+ }
241
+ ]
242
+ }
243
+ },
244
+ "type": "object",
245
+ "required": [
246
+ "provider",
247
+ "options"
248
+ ],
249
+ "additionalProperties": false
250
+ },
251
+ "GoogleCloudStorageDestinationOptions": {
252
+ "properties": {
253
+ "bucket": {
254
+ "type": "string"
255
+ },
256
+ "prefix": {
257
+ "anyOf": [
258
+ {
259
+ "type": "string"
260
+ },
261
+ {
262
+ "type": "null"
263
+ }
264
+ ]
265
+ },
266
+ "filename": {
267
+ "anyOf": [
268
+ {
269
+ "type": "string",
270
+ "description": "Use..."
271
+ },
272
+ {
273
+ "type": "null"
274
+ }
275
+ ]
276
+ }
277
+ },
278
+ "required": [
279
+ "bucket",
280
+ "prefix",
281
+ "filename"
282
+ ],
283
+ "type": "object",
284
+ "additionalProperties": false
285
+ },
286
+ "GoogleDriveDestination": {
287
+ "description": "Send ...",
288
+ "properties": {
289
+ "provider": {
290
+ "type": "string",
291
+ "enum": [
292
+ "google-drive"
293
+ ]
294
+ },
295
+ "options": {
296
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
297
+ }
298
+ },
299
+ "type": "object",
300
+ "required": [
301
+ "provider",
302
+ "options"
303
+ ],
304
+ "additionalProperties": false
305
+ },
306
+ "GoogleDriveDestinationOptions": {
307
+ "properties": {
308
+ "folderId": {
309
+ "description": "The...",
310
+ "type": "string"
311
+ },
312
+ "filename": {
313
+ "anyOf": [
314
+ {
315
+ "type": "string",
316
+ "description": "Use..."
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ]
322
+ }
323
+ },
324
+ "required": [
325
+ "folderId",
326
+ "filename"
327
+ ],
328
+ "type": "object",
329
+ "additionalProperties": false
330
+ },
331
+ "VimeoDestination": {
332
+ "description": "Sen...",
333
+ "properties": {
334
+ "provider": {
335
+ "type": "string",
336
+ "enum": [
337
+ "vimeo"
338
+ ]
339
+ },
340
+ "options": {
341
+ "anyOf": [
342
+ {
343
+ "$ref": "#/$defs/VimeoDestinationOptions"
344
+ },
345
+ {
346
+ "type": "null"
347
+ }
348
+ ]
349
+ }
350
+ },
351
+ "type": "object",
352
+ "required": [
353
+ "provider",
354
+ "options"
355
+ ],
356
+ "additionalProperties": false
357
+ },
358
+ "VimeoDestinationOptions": {
359
+ "properties": {
360
+ "name": {
361
+ "anyOf": [
362
+ {
363
+ "type": "string"
364
+ },
365
+ {
366
+ "type": "null"
367
+ }
368
+ ]
369
+ },
370
+ "description": {
371
+ "anyOf": [
372
+ {
373
+ "type": "string"
374
+ },
375
+ {
376
+ "type": "null"
377
+ }
378
+ ]
379
+ },
380
+ "privacy": {
381
+ "anyOf": [
382
+ {
383
+ "$ref": "#/$defs/VimeoDestinationPrivacyOptions"
384
+ },
385
+ {
386
+ "type": "null"
387
+ }
388
+ ]
389
+ },
390
+ "folderUri": {
391
+ "anyOf": [
392
+ {
393
+ "type": "string"
394
+ },
395
+ {
396
+ "type": "null"
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "type": "object",
402
+ "additionalProperties": false,
403
+ "required": [
404
+ "name",
405
+ "description",
406
+ "privacy",
407
+ "folderUri"
408
+ ]
409
+ },
410
+ "VimeoDestinationPrivacyOptions": {
411
+ "properties": {
412
+ "view": {
413
+ "anyOf": [
414
+ {
415
+ "type": "string",
416
+ "description": "Set wh...",
417
+ "enum": [
418
+ "anybody",
419
+ "nobody",
420
+ "contacts",
421
+ "password",
422
+ "unlisted"
423
+ ]
424
+ },
425
+ {
426
+ "type": "null"
427
+ }
428
+ ]
429
+ },
430
+ "embed": {
431
+ "anyOf": [
432
+ {
433
+ "type": "string",
434
+ "description": "Set...",
435
+ "enum": [
436
+ "public",
437
+ "private",
438
+ "whitelist"
439
+ ]
440
+ },
441
+ {
442
+ "type": "null"
443
+ }
444
+ ]
445
+ },
446
+ "comments": {
447
+ "anyOf": [
448
+ {
449
+ "type": "string",
450
+ "description": "Set...",
451
+ "enum": [
452
+ "anybody",
453
+ "nobody",
454
+ "contacts"
455
+ ]
456
+ },
457
+ {
458
+ "type": "null"
459
+ }
460
+ ]
461
+ },
462
+ "download": {
463
+ "anyOf": [
464
+ {
465
+ "type": "boolean"
466
+ },
467
+ {
468
+ "type": "null"
469
+ }
470
+ ]
471
+ },
472
+ "add": {
473
+ "anyOf": [
474
+ {
475
+ "type": "boolean"
476
+ },
477
+ {
478
+ "type": "null"
479
+ }
480
+ ]
481
+ }
482
+ },
483
+ "type": "object",
484
+ "additionalProperties": false,
485
+ "required": [
486
+ "view",
487
+ "embed",
488
+ "comments",
489
+ "download",
490
+ "add"
491
+ ]
492
+ }
493
+ }
494
+ }
495
+ }