@shotstack/schemas 1.7.0 → 1.8.2

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 (53) hide show
  1. package/README.md +89 -89
  2. package/dist/api.bundled.json +49 -833
  3. package/dist/json-schema/asset.json +115 -856
  4. package/dist/json-schema/audio-asset.json +31 -1
  5. package/dist/json-schema/blueprint.json +380 -0
  6. package/dist/json-schema/caption-detailer.json +275 -0
  7. package/dist/json-schema/clip.json +256 -949
  8. package/dist/json-schema/edit.json +247 -940
  9. package/dist/json-schema/index.cjs +5 -0
  10. package/dist/json-schema/index.d.ts +5 -0
  11. package/dist/json-schema/index.js +5 -0
  12. package/dist/json-schema/offset.json +31 -1
  13. package/dist/json-schema/rich-caption-asset.json +221 -140
  14. package/dist/json-schema/rich-text-content.json +370 -0
  15. package/dist/json-schema/rich-text-effects.json +400 -0
  16. package/dist/json-schema/rotate-transformation.json +31 -1
  17. package/dist/json-schema/schemas.json +264 -1044
  18. package/dist/json-schema/skew-transformation.json +31 -1
  19. package/dist/json-schema/svg-asset.json +6 -857
  20. package/dist/json-schema/template.json +541 -0
  21. package/dist/json-schema/text-to-speech-asset.json +31 -1
  22. package/dist/json-schema/timeline.json +256 -949
  23. package/dist/json-schema/track.json +256 -949
  24. package/dist/json-schema/transformation.json +52 -22
  25. package/dist/json-schema/transition.json +50 -2
  26. package/dist/json-schema/tween.json +31 -1
  27. package/dist/json-schema/video-asset.json +56 -26
  28. package/dist/schema.d.ts +43 -660
  29. package/dist/zod/zod.gen.cjs +914 -1640
  30. package/dist/zod/zod.gen.d.ts +306 -8714
  31. package/dist/zod/zod.gen.js +911 -1636
  32. package/dist/zod/zod.gen.ts +1593 -1880
  33. package/package.json +79 -79
  34. package/dist/json-schema/svg-arrow-shape.json +0 -49
  35. package/dist/json-schema/svg-circle-shape.json +0 -28
  36. package/dist/json-schema/svg-cross-shape.json +0 -42
  37. package/dist/json-schema/svg-ellipse-shape.json +0 -35
  38. package/dist/json-schema/svg-fill.json +0 -169
  39. package/dist/json-schema/svg-gradient-stop.json +0 -25
  40. package/dist/json-schema/svg-heart-shape.json +0 -28
  41. package/dist/json-schema/svg-line-shape.json +0 -35
  42. package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
  43. package/dist/json-schema/svg-path-shape.json +0 -26
  44. package/dist/json-schema/svg-polygon-shape.json +0 -35
  45. package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
  46. package/dist/json-schema/svg-rectangle-shape.json +0 -49
  47. package/dist/json-schema/svg-ring-shape.json +0 -35
  48. package/dist/json-schema/svg-shadow.json +0 -79
  49. package/dist/json-schema/svg-shape.json +0 -404
  50. package/dist/json-schema/svg-solid-fill.json +0 -40
  51. package/dist/json-schema/svg-star-shape.json +0 -42
  52. package/dist/json-schema/svg-stroke.json +0 -115
  53. package/dist/json-schema/svg-transform.json +0 -93
@@ -1 +1,6 @@
1
1
  module.exports.edit = require('./edit.json');
2
+ module.exports.template = require('./template.json');
3
+ module.exports.blueprint = require('./blueprint.json');
4
+ module.exports.richTextContent = require('./rich-text-content.json');
5
+ module.exports.richTextEffects = require('./rich-text-effects.json');
6
+ module.exports.captionDetailer = require('./caption-detailer.json');
@@ -4,3 +4,8 @@ export interface JsonSchema {
4
4
  schema: Record<string, unknown>;
5
5
  }
6
6
  export declare const edit: JsonSchema;
7
+ export declare const template: JsonSchema;
8
+ export declare const blueprint: JsonSchema;
9
+ export declare const richTextContent: JsonSchema;
10
+ export declare const richTextEffects: JsonSchema;
11
+ export declare const captionDetailer: JsonSchema;
@@ -1,3 +1,8 @@
1
1
  import { createRequire } from 'module';
2
2
  const require = createRequire(import.meta.url);
3
3
  export const edit = require('./edit.json');
4
+ export const template = require('./template.json');
5
+ export const blueprint = require('./blueprint.json');
6
+ export const richTextContent = require('./rich-text-content.json');
7
+ export const richTextEffects = require('./rich-text-effects.json');
8
+ export const captionDetailer = require('./caption-detailer.json');
@@ -121,7 +121,37 @@
121
121
  "anyOf": [
122
122
  {
123
123
  "type": "string",
124
- "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`."
124
+ "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`.",
125
+ "enum": [
126
+ "ease",
127
+ "easeIn",
128
+ "easeOut",
129
+ "easeInOut",
130
+ "easeInQuad",
131
+ "easeInCubic",
132
+ "easeInQuart",
133
+ "easeInQuint",
134
+ "easeInSine",
135
+ "easeInExpo",
136
+ "easeInCirc",
137
+ "easeInBack",
138
+ "easeOutQuad",
139
+ "easeOutCubic",
140
+ "easeOutQuart",
141
+ "easeOutQuint",
142
+ "easeOutSine",
143
+ "easeOutExpo",
144
+ "easeOutCirc",
145
+ "easeOutBack",
146
+ "easeInOutQuad",
147
+ "easeInOutCubic",
148
+ "easeInOutQuart",
149
+ "easeInOutQuint",
150
+ "easeInOutSine",
151
+ "easeInOutExpo",
152
+ "easeInOutCirc",
153
+ "easeInOutBack"
154
+ ]
125
155
  },
126
156
  {
127
157
  "type": "null"
@@ -36,7 +36,88 @@
36
36
  "font": {
37
37
  "anyOf": [
38
38
  {
39
- "$ref": "#/$defs/RichTextFont"
39
+ "type": "object",
40
+ "properties": {
41
+ "family": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string",
45
+ "enum": [
46
+ "Roboto"
47
+ ]
48
+ },
49
+ {
50
+ "type": "null"
51
+ }
52
+ ]
53
+ },
54
+ "size": {
55
+ "anyOf": [
56
+ {
57
+ "type": "integer",
58
+ "minimum": 1,
59
+ "maximum": 500
60
+ },
61
+ {
62
+ "type": "null"
63
+ }
64
+ ]
65
+ },
66
+ "weight": {
67
+ "anyOf": [
68
+ {
69
+ "type": "string"
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ]
75
+ },
76
+ "color": {
77
+ "anyOf": [
78
+ {
79
+ "type": "string",
80
+ "enum": [
81
+ "#ffffff"
82
+ ]
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ },
89
+ "opacity": {
90
+ "anyOf": [
91
+ {
92
+ "type": "number",
93
+ "minimum": 0,
94
+ "maximum": 1
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "background": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ]
110
+ }
111
+ },
112
+ "additionalProperties": false,
113
+ "required": [
114
+ "family",
115
+ "size",
116
+ "weight",
117
+ "color",
118
+ "opacity",
119
+ "background"
120
+ ]
40
121
  },
41
122
  {
42
123
  "type": "null"
@@ -221,145 +302,6 @@
221
302
  "confidence"
222
303
  ]
223
304
  },
224
- "RichTextFont": {
225
- "properties": {
226
- "family": {
227
- "anyOf": [
228
- {
229
- "type": "string",
230
- "enum": [
231
- "Open Sans"
232
- ]
233
- },
234
- {
235
- "type": "null"
236
- }
237
- ]
238
- },
239
- "size": {
240
- "anyOf": [
241
- {
242
- "type": "integer",
243
- "minimum": 1,
244
- "maximum": 500
245
- },
246
- {
247
- "type": "null"
248
- }
249
- ]
250
- },
251
- "weight": {
252
- "anyOf": [
253
- {
254
- "type": "string"
255
- },
256
- {
257
- "type": "null"
258
- }
259
- ]
260
- },
261
- "color": {
262
- "anyOf": [
263
- {
264
- "type": "string"
265
- },
266
- {
267
- "type": "null"
268
- }
269
- ]
270
- },
271
- "opacity": {
272
- "anyOf": [
273
- {
274
- "type": "number",
275
- "minimum": 0,
276
- "maximum": 1
277
- },
278
- {
279
- "type": "null"
280
- }
281
- ]
282
- },
283
- "background": {
284
- "anyOf": [
285
- {
286
- "type": "string"
287
- },
288
- {
289
- "type": "null"
290
- }
291
- ]
292
- },
293
- "stroke": {
294
- "anyOf": [
295
- {
296
- "$ref": "#/$defs/RichTextStroke"
297
- },
298
- {
299
- "type": "null"
300
- }
301
- ]
302
- }
303
- },
304
- "additionalProperties": false,
305
- "type": "object",
306
- "required": [
307
- "family",
308
- "size",
309
- "weight",
310
- "color",
311
- "opacity",
312
- "background",
313
- "stroke"
314
- ]
315
- },
316
- "RichTextStroke": {
317
- "properties": {
318
- "width": {
319
- "anyOf": [
320
- {
321
- "type": "number",
322
- "minimum": 0
323
- },
324
- {
325
- "type": "null"
326
- }
327
- ]
328
- },
329
- "color": {
330
- "anyOf": [
331
- {
332
- "type": "string",
333
- "enum": [
334
- "#000000"
335
- ]
336
- },
337
- {
338
- "type": "null"
339
- }
340
- ]
341
- },
342
- "opacity": {
343
- "anyOf": [
344
- {
345
- "type": "number",
346
- "minimum": 0,
347
- "maximum": 1
348
- },
349
- {
350
- "type": "null"
351
- }
352
- ]
353
- }
354
- },
355
- "additionalProperties": false,
356
- "type": "object",
357
- "required": [
358
- "width",
359
- "color",
360
- "opacity"
361
- ]
362
- },
363
305
  "RichTextStyle": {
364
306
  "properties": {
365
307
  "letterSpacing": {
@@ -506,6 +448,53 @@
506
448
  "additionalProperties": false,
507
449
  "type": "object"
508
450
  },
451
+ "RichTextStroke": {
452
+ "properties": {
453
+ "width": {
454
+ "anyOf": [
455
+ {
456
+ "type": "number",
457
+ "minimum": 0
458
+ },
459
+ {
460
+ "type": "null"
461
+ }
462
+ ]
463
+ },
464
+ "color": {
465
+ "anyOf": [
466
+ {
467
+ "type": "string",
468
+ "enum": [
469
+ "#000000"
470
+ ]
471
+ },
472
+ {
473
+ "type": "null"
474
+ }
475
+ ]
476
+ },
477
+ "opacity": {
478
+ "anyOf": [
479
+ {
480
+ "type": "number",
481
+ "minimum": 0,
482
+ "maximum": 1
483
+ },
484
+ {
485
+ "type": "null"
486
+ }
487
+ ]
488
+ }
489
+ },
490
+ "additionalProperties": false,
491
+ "type": "object",
492
+ "required": [
493
+ "width",
494
+ "color",
495
+ "opacity"
496
+ ]
497
+ },
509
498
  "RichTextShadow": {
510
499
  "properties": {
511
500
  "offsetX": {
@@ -847,6 +836,98 @@
847
836
  "animation"
848
837
  ]
849
838
  },
839
+ "RichTextFont": {
840
+ "properties": {
841
+ "family": {
842
+ "anyOf": [
843
+ {
844
+ "type": "string",
845
+ "enum": [
846
+ "Open Sans"
847
+ ]
848
+ },
849
+ {
850
+ "type": "null"
851
+ }
852
+ ]
853
+ },
854
+ "size": {
855
+ "anyOf": [
856
+ {
857
+ "type": "integer",
858
+ "minimum": 1,
859
+ "maximum": 500
860
+ },
861
+ {
862
+ "type": "null"
863
+ }
864
+ ]
865
+ },
866
+ "weight": {
867
+ "anyOf": [
868
+ {
869
+ "type": "string"
870
+ },
871
+ {
872
+ "type": "null"
873
+ }
874
+ ]
875
+ },
876
+ "color": {
877
+ "anyOf": [
878
+ {
879
+ "type": "string"
880
+ },
881
+ {
882
+ "type": "null"
883
+ }
884
+ ]
885
+ },
886
+ "opacity": {
887
+ "anyOf": [
888
+ {
889
+ "type": "number",
890
+ "minimum": 0,
891
+ "maximum": 1
892
+ },
893
+ {
894
+ "type": "null"
895
+ }
896
+ ]
897
+ },
898
+ "background": {
899
+ "anyOf": [
900
+ {
901
+ "type": "string"
902
+ },
903
+ {
904
+ "type": "null"
905
+ }
906
+ ]
907
+ },
908
+ "stroke": {
909
+ "anyOf": [
910
+ {
911
+ "$ref": "#/$defs/RichTextStroke"
912
+ },
913
+ {
914
+ "type": "null"
915
+ }
916
+ ]
917
+ }
918
+ },
919
+ "additionalProperties": false,
920
+ "type": "object",
921
+ "required": [
922
+ "family",
923
+ "size",
924
+ "weight",
925
+ "color",
926
+ "opacity",
927
+ "background",
928
+ "stroke"
929
+ ]
930
+ },
850
931
  "RichTextAlignment": {
851
932
  "properties": {
852
933
  "horizontal": {