alpha2 0.4.5 → 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.
Files changed (119) hide show
  1. package/README.md +5 -4
  2. package/THIRD_PARTY_NOTICES.md +4 -0
  3. package/dist/abort.d.ts +12 -0
  4. package/dist/abort.js +48 -0
  5. package/dist/active-clock.d.ts +35 -0
  6. package/dist/active-clock.js +99 -0
  7. package/dist/assets.d.ts +28 -22
  8. package/dist/assets.js +8 -12
  9. package/dist/audio-layout.d.ts +52 -74
  10. package/dist/audio-layout.js +114 -148
  11. package/dist/audio-timeline.d.ts +89 -117
  12. package/dist/audio-timeline.js +102 -118
  13. package/dist/audio-worker.d.ts +12 -21
  14. package/dist/audio-worker.js +8 -13
  15. package/dist/audio-worklet-processor.js +45 -58
  16. package/dist/audio-worklet.d.ts +45 -76
  17. package/dist/audio-worklet.js +44 -79
  18. package/dist/audio.d.ts +15 -23
  19. package/dist/audio.js +9 -13
  20. package/dist/builder.d.ts +45 -63
  21. package/dist/builder.js +49 -45
  22. package/dist/capabilities.d.ts +99 -16
  23. package/dist/capabilities.js +2 -2
  24. package/dist/captions.d.ts +45 -22
  25. package/dist/captions.js +60 -15
  26. package/dist/chroma-siting.d.ts +24 -41
  27. package/dist/chroma-siting.js +38 -71
  28. package/dist/containers.d.ts +41 -30
  29. package/dist/containers.js +59 -27
  30. package/dist/decoder-fallback.d.ts +13 -0
  31. package/dist/decoder-fallback.js +38 -0
  32. package/dist/decoder-order.d.ts +24 -39
  33. package/dist/decoder-order.js +28 -42
  34. package/dist/edit.d.ts +77 -154
  35. package/dist/edit.js +98 -180
  36. package/dist/effects.d.ts +109 -173
  37. package/dist/effects.js +7 -9
  38. package/dist/export-destination.d.ts +25 -41
  39. package/dist/export-destination.js +20 -32
  40. package/dist/export-failure.d.ts +34 -59
  41. package/dist/export-failure.js +54 -48
  42. package/dist/export-metrics.d.ts +116 -0
  43. package/dist/export-metrics.js +74 -0
  44. package/dist/export-retry.d.ts +46 -29
  45. package/dist/export-retry.js +86 -51
  46. package/dist/exporter.d.ts +67 -116
  47. package/dist/exporter.js +133 -133
  48. package/dist/extensions.d.ts +69 -115
  49. package/dist/extensions.js +55 -82
  50. package/dist/frame-intake.d.ts +92 -0
  51. package/dist/frame-intake.js +114 -0
  52. package/dist/frame-supply.d.ts +98 -157
  53. package/dist/frame-supply.js +191 -162
  54. package/dist/generated/project-schema.d.ts +742 -464
  55. package/dist/generated/project-schema.js +63 -2
  56. package/dist/generated/project-shape.js +663 -118
  57. package/dist/geometry.d.ts +28 -34
  58. package/dist/geometry.js +18 -23
  59. package/dist/gpu-recovery.d.ts +92 -0
  60. package/dist/gpu-recovery.js +135 -0
  61. package/dist/hdr-frames.d.ts +88 -62
  62. package/dist/hdr-frames.js +123 -46
  63. package/dist/index.d.ts +4 -0
  64. package/dist/index.js +4 -0
  65. package/dist/json-text.d.ts +13 -23
  66. package/dist/json-text.js +10 -20
  67. package/dist/layout-values.d.ts +14 -22
  68. package/dist/layout-values.js +18 -21
  69. package/dist/layout.d.ts +55 -55
  70. package/dist/layout.js +37 -36
  71. package/dist/loudness.d.ts +27 -32
  72. package/dist/loudness.js +19 -23
  73. package/dist/media.d.ts +85 -237
  74. package/dist/media.js +133 -287
  75. package/dist/mediabunny.d.ts +173 -237
  76. package/dist/mediabunny.js +943 -518
  77. package/dist/physical-frames.d.ts +5 -17
  78. package/dist/physical-frames.js +4 -11
  79. package/dist/player.d.ts +56 -47
  80. package/dist/player.js +155 -40
  81. package/dist/presented-frames.d.ts +2 -7
  82. package/dist/presented-frames.js +3 -8
  83. package/dist/project.d.ts +83 -110
  84. package/dist/project.js +421 -447
  85. package/dist/rate-control.d.ts +9 -23
  86. package/dist/rate-control.js +7 -18
  87. package/dist/renderer-choice.d.ts +41 -0
  88. package/dist/renderer-choice.js +82 -0
  89. package/dist/repacked-bytes.d.ts +0 -2
  90. package/dist/repacked-bytes.js +2 -5
  91. package/dist/robustness.d.ts +25 -37
  92. package/dist/robustness.js +71 -54
  93. package/dist/sha256.d.ts +5 -13
  94. package/dist/sha256.js +9 -24
  95. package/dist/text.d.ts +106 -63
  96. package/dist/text.js +44 -69
  97. package/dist/video-frames.d.ts +7 -25
  98. package/dist/video-frames.js +12 -29
  99. package/dist/waveform.d.ts +5 -11
  100. package/dist/waveform.js +4 -9
  101. package/dist/worker-error.d.ts +5 -20
  102. package/dist/worker-error.js +8 -25
  103. package/dist/worker.d.ts +82 -92
  104. package/dist/worker.js +239 -144
  105. package/package.json +26 -2
  106. package/wasm/alpha2_audio_worklet.wasm +0 -0
  107. package/wasm/alpha2_extensions.d.ts +26 -47
  108. package/wasm/alpha2_extensions.js +26 -47
  109. package/wasm/alpha2_extensions_bg.wasm +0 -0
  110. package/wasm/alpha2_wasm.d.ts +487 -543
  111. package/wasm/alpha2_wasm.js +669 -572
  112. package/wasm/alpha2_wasm_bg.wasm +0 -0
  113. package/wasm/alpha2_wasm_bg.wasm.d.ts +20 -8
  114. package/wasm/rust-crate-licenses.md +2 -2
  115. package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline1.js +1 -0
  116. package/wasm/snippets/alpha2-wasm-1313375d424845c0/inline2.js +82 -0
  117. package/wasm/snippets/alpha2-wasm-57b04ecc6db57e1f/inline2.js +0 -52
  118. /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline0.js +0 -0
  119. /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline3.js +0 -0
@@ -222,6 +222,31 @@ export const PROJECT_SHAPE = {
222
222
  },
223
223
  ],
224
224
  },
225
+ Animated_Rgba: {
226
+ oneOf: [
227
+ {
228
+ additionalProperties: false,
229
+ properties: {
230
+ mode: { const: "constant", type: "string" },
231
+ value: { $ref: "#/$defs/Rgba" },
232
+ },
233
+ required: ["mode", "value"],
234
+ type: "object",
235
+ },
236
+ {
237
+ additionalProperties: false,
238
+ properties: {
239
+ keyframes: {
240
+ items: { $ref: "#/$defs/Keyframe_Rgba" },
241
+ type: "array",
242
+ },
243
+ mode: { const: "keyframes", type: "string" },
244
+ },
245
+ required: ["mode", "keyframes"],
246
+ type: "object",
247
+ },
248
+ ],
249
+ },
225
250
  Animated_Vec2: {
226
251
  oneOf: [
227
252
  {
@@ -312,7 +337,7 @@ export const PROJECT_SHAPE = {
312
337
  additionalProperties: false,
313
338
  properties: {
314
339
  attack_ms: { format: "float", type: "number" },
315
- lookahead_ms: { format: "float", type: "number" },
340
+ lookahead_ms: { default: 0, format: "float", type: "number" },
316
341
  ratio: { format: "float", type: "number" },
317
342
  release_ms: { format: "float", type: "number" },
318
343
  threshold_db: { format: "float", type: "number" },
@@ -343,13 +368,24 @@ export const PROJECT_SHAPE = {
343
368
  AudioProperties: {
344
369
  additionalProperties: false,
345
370
  properties: {
346
- effects: { items: { $ref: "#/$defs/AudioEffect" }, type: "array" },
347
- fade_in: { $ref: "#/$defs/MediaTime" },
348
- fade_out: { $ref: "#/$defs/MediaTime" },
349
- fade_shape: { $ref: "#/$defs/FadeShape" },
350
- gain: { $ref: "#/$defs/Animated_float" },
351
- muted: { type: "boolean" },
352
- pan: { $ref: "#/$defs/Animated_float" },
371
+ effects: {
372
+ default: [],
373
+ items: { $ref: "#/$defs/AudioEffect" },
374
+ type: "array",
375
+ },
376
+ fade_in: { $ref: "#/$defs/MediaTime", default: 0 },
377
+ fade_out: { $ref: "#/$defs/MediaTime", default: 0 },
378
+ fade_shape: { $ref: "#/$defs/FadeShape", default: "linear" },
379
+ gain: {
380
+ $ref: "#/$defs/Animated_float",
381
+ default: { mode: "constant", value: 1 },
382
+ },
383
+ muted: { default: false, type: "boolean" },
384
+ pan: {
385
+ $ref: "#/$defs/Animated_float",
386
+ default: { mode: "constant", value: 0 },
387
+ },
388
+ preserve_pitch: { type: "boolean" },
353
389
  },
354
390
  type: "object",
355
391
  },
@@ -388,7 +424,9 @@ export const PROJECT_SHAPE = {
388
424
  CaptionCue: {
389
425
  additionalProperties: false,
390
426
  properties: {
391
- text: { type: "string" },
427
+ speaker: { type: ["string", "null"] },
428
+ style: { type: ["string", "null"] },
429
+ text: { $ref: "#/$defs/TextContent" },
392
430
  timeline_range: { $ref: "#/$defs/TimeRange" },
393
431
  },
394
432
  required: ["timeline_range", "text"],
@@ -398,7 +436,28 @@ export const PROJECT_SHAPE = {
398
436
  additionalProperties: false,
399
437
  properties: {
400
438
  cues: { items: { $ref: "#/$defs/CaptionCue" }, type: "array" },
401
- style: { $ref: "#/$defs/TextStyle" },
439
+ style: {
440
+ $ref: "#/$defs/TextStyle",
441
+ default: {
442
+ align: "center",
443
+ anchor: { x: 0.5, y: 1 },
444
+ background: null,
445
+ fill: {
446
+ color: { alpha: 1, blue: 1, green: 1, red: 1 },
447
+ type: "solid",
448
+ },
449
+ font_size: 0.05,
450
+ font_weight: 400,
451
+ letter_spacing: 0,
452
+ line_height: 1.2,
453
+ max_width: 0.9,
454
+ position: { x: 0.5, y: 0.92 },
455
+ },
456
+ },
457
+ styles: {
458
+ additionalProperties: { $ref: "#/$defs/TextStylePatch" },
459
+ type: "object",
460
+ },
402
461
  },
403
462
  required: ["cues"],
404
463
  type: "object",
@@ -406,20 +465,48 @@ export const PROJECT_SHAPE = {
406
465
  Clip: {
407
466
  additionalProperties: false,
408
467
  properties: {
409
- audio: { $ref: "#/$defs/AudioProperties" },
410
- blend_mode: { $ref: "#/$defs/ClipBlendMode" },
468
+ audio: {
469
+ $ref: "#/$defs/AudioProperties",
470
+ default: {
471
+ effects: [],
472
+ fade_in: 0,
473
+ fade_out: 0,
474
+ fade_shape: "linear",
475
+ gain: { mode: "constant", value: 1 },
476
+ muted: false,
477
+ pan: { mode: "constant", value: 0 },
478
+ },
479
+ },
480
+ blend_mode: { $ref: "#/$defs/ClipBlendMode", default: "normal" },
411
481
  cache: { $ref: "#/$defs/CacheIntent" },
412
482
  composition: {
413
483
  anyOf: [{ $ref: "#/$defs/ClipComposition" }, { type: "null" }],
484
+ default: null,
414
485
  },
415
486
  id: { $ref: "#/$defs/ClipId" },
416
- masks: { items: { $ref: "#/$defs/ShapeMask" }, type: "array" },
417
- matte: { anyOf: [{ $ref: "#/$defs/Matte" }, { type: "null" }] },
487
+ masks: {
488
+ default: [],
489
+ items: { $ref: "#/$defs/ShapeMask" },
490
+ type: "array",
491
+ },
492
+ matte: {
493
+ anyOf: [{ $ref: "#/$defs/Matte" }, { type: "null" }],
494
+ default: null,
495
+ },
418
496
  source_id: { $ref: "#/$defs/SourceId" },
419
497
  source_range: { $ref: "#/$defs/TimeRange" },
420
- time_map: { $ref: "#/$defs/TimeMap" },
498
+ time_map: { $ref: "#/$defs/TimeMap", default: { type: "forward" } },
421
499
  timeline_range: { $ref: "#/$defs/TimeRange" },
422
- visual: { $ref: "#/$defs/VisualProperties" },
500
+ visual: {
501
+ $ref: "#/$defs/VisualProperties",
502
+ default: {
503
+ anchor: { x: 0.5, y: 0.5 },
504
+ opacity: { mode: "constant", value: 1 },
505
+ position: { mode: "constant", value: { x: 0.5, y: 0.5 } },
506
+ rotation_degrees: { mode: "constant", value: 0 },
507
+ scale: { mode: "constant", value: { x: 1, y: 1 } },
508
+ },
509
+ },
423
510
  },
424
511
  required: ["id", "source_id", "timeline_range", "source_range"],
425
512
  type: "object",
@@ -442,14 +529,15 @@ export const PROJECT_SHAPE = {
442
529
  { const: "saturation", type: "string" },
443
530
  { const: "color", type: "string" },
444
531
  { const: "luminosity", type: "string" },
532
+ { const: "plus_lighter", type: "string" },
445
533
  ],
446
534
  },
447
535
  ClipComposition: {
448
536
  additionalProperties: false,
449
537
  properties: {
450
538
  id: { $ref: "#/$defs/CompositionId" },
451
- offset: { $ref: "#/$defs/MediaTime" },
452
- scale: { $ref: "#/$defs/TimeScale" },
539
+ offset: { $ref: "#/$defs/MediaTime", default: 0 },
540
+ scale: { $ref: "#/$defs/TimeScale", default: { den: 1, num: 1 } },
453
541
  },
454
542
  required: ["id"],
455
543
  type: "object",
@@ -460,10 +548,12 @@ export const PROJECT_SHAPE = {
460
548
  id: { type: "string" },
461
549
  params: {
462
550
  additionalProperties: { $ref: "#/$defs/Animated_EffectValue" },
551
+ default: {},
463
552
  type: "object",
464
553
  },
465
554
  resources: {
466
555
  additionalProperties: { $ref: "#/$defs/EffectResourceId" },
556
+ default: {},
467
557
  type: "object",
468
558
  },
469
559
  version: {
@@ -512,8 +602,9 @@ export const PROJECT_SHAPE = {
512
602
  ColorPipeline: {
513
603
  additionalProperties: false,
514
604
  properties: {
515
- hdr: { $ref: "#/$defs/HdrSources" },
605
+ hdr: { $ref: "#/$defs/HdrSources", default: "tone_map" },
516
606
  hdr_peak_nits: {
607
+ default: 1000,
517
608
  format: "uint32",
518
609
  maximum: 4294967295,
519
610
  minimum: 0,
@@ -544,8 +635,15 @@ export const PROJECT_SHAPE = {
544
635
  },
545
636
  id: { $ref: "#/$defs/CompositionId" },
546
637
  inputs: { items: { type: "string" }, type: "array" },
547
- nodes: { items: { $ref: "#/$defs/CompositionNode" }, type: "array" },
548
- output: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
638
+ nodes: {
639
+ default: [],
640
+ items: { $ref: "#/$defs/CompositionNode" },
641
+ type: "array",
642
+ },
643
+ output: {
644
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
645
+ default: null,
646
+ },
549
647
  },
550
648
  required: ["id"],
551
649
  type: "object",
@@ -564,7 +662,7 @@ export const PROJECT_SHAPE = {
564
662
  CompositionNode: {
565
663
  additionalProperties: false,
566
664
  properties: {
567
- bypass: { type: "boolean" },
665
+ bypass: { default: false, type: "boolean" },
568
666
  id: { $ref: "#/$defs/NodeId" },
569
667
  op: { $ref: "#/$defs/NodeOp" },
570
668
  },
@@ -574,7 +672,10 @@ export const PROJECT_SHAPE = {
574
672
  Dash: {
575
673
  additionalProperties: false,
576
674
  properties: {
577
- offset: { $ref: "#/$defs/Animated_float" },
675
+ offset: {
676
+ $ref: "#/$defs/Animated_float",
677
+ default: { mode: "constant", value: 0 },
678
+ },
578
679
  pattern: { items: { $ref: "#/$defs/Animated_float" }, type: "array" },
579
680
  },
580
681
  required: ["pattern"],
@@ -726,7 +827,7 @@ export const PROJECT_SHAPE = {
726
827
  additionalProperties: false,
727
828
  properties: {
728
829
  frequency_hz: { format: "float", type: "number" },
729
- gain_db: { format: "float", type: "number" },
830
+ gain_db: { default: 0, format: "float", type: "number" },
730
831
  kind: { $ref: "#/$defs/EqBandKind" },
731
832
  q: { format: "float", type: "number" },
732
833
  },
@@ -808,8 +909,25 @@ export const PROJECT_SHAPE = {
808
909
  {
809
910
  additionalProperties: false,
810
911
  properties: {
811
- style: { $ref: "#/$defs/TextStyle" },
812
- text: { type: "string" },
912
+ style: {
913
+ $ref: "#/$defs/TextStyle",
914
+ default: {
915
+ align: "center",
916
+ anchor: { x: 0.5, y: 1 },
917
+ background: null,
918
+ fill: {
919
+ color: { alpha: 1, blue: 1, green: 1, red: 1 },
920
+ type: "solid",
921
+ },
922
+ font_size: 0.05,
923
+ font_weight: 400,
924
+ letter_spacing: 0,
925
+ line_height: 1.2,
926
+ max_width: 0.9,
927
+ position: { x: 0.5, y: 0.92 },
928
+ },
929
+ },
930
+ text: { $ref: "#/$defs/TextContent" },
813
931
  type: { const: "text", type: "string" },
814
932
  },
815
933
  required: ["type", "text"],
@@ -982,6 +1100,16 @@ export const PROJECT_SHAPE = {
982
1100
  required: ["time", "value", "interpolation"],
983
1101
  type: "object",
984
1102
  },
1103
+ Keyframe_Rgba: {
1104
+ additionalProperties: false,
1105
+ properties: {
1106
+ interpolation: { $ref: "#/$defs/Interpolation" },
1107
+ time: { $ref: "#/$defs/MediaTime" },
1108
+ value: { $ref: "#/$defs/Rgba" },
1109
+ },
1110
+ required: ["time", "value", "interpolation"],
1111
+ type: "object",
1112
+ },
985
1113
  Keyframe_Vec2: {
986
1114
  additionalProperties: false,
987
1115
  properties: {
@@ -1066,11 +1194,11 @@ export const PROJECT_SHAPE = {
1066
1194
  anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1067
1195
  },
1068
1196
  children: { items: { $ref: "#/$defs/LayoutNode" }, type: "array" },
1069
- color: { anyOf: [{ $ref: "#/$defs/Rgba" }, { type: "null" }] },
1070
1197
  column_gap: {
1071
1198
  anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1072
1199
  },
1073
1200
  display: { anyOf: [{ $ref: "#/$defs/Display" }, { type: "null" }] },
1201
+ fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
1074
1202
  flex_basis: {
1075
1203
  anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1076
1204
  },
@@ -1088,6 +1216,12 @@ export const PROJECT_SHAPE = {
1088
1216
  font_size: {
1089
1217
  anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1090
1218
  },
1219
+ font_weight: {
1220
+ format: "uint16",
1221
+ maximum: 65535,
1222
+ minimum: 0,
1223
+ type: ["integer", "null"],
1224
+ },
1091
1225
  gap: {
1092
1226
  anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1093
1227
  },
@@ -1125,6 +1259,7 @@ export const PROJECT_SHAPE = {
1125
1259
  justify_self: {
1126
1260
  anyOf: [{ $ref: "#/$defs/AlignItems" }, { type: "null" }],
1127
1261
  },
1262
+ letter_spacing: { format: "float", type: ["number", "null"] },
1128
1263
  line_height: { format: "float", type: ["number", "null"] },
1129
1264
  margin: {
1130
1265
  anyOf: [{ $ref: "#/$defs/Animated_Insets" }, { type: "null" }],
@@ -1144,7 +1279,6 @@ export const PROJECT_SHAPE = {
1144
1279
  opacity: {
1145
1280
  anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
1146
1281
  },
1147
- outline: { anyOf: [{ $ref: "#/$defs/TextOutline" }, { type: "null" }] },
1148
1282
  overflow: { anyOf: [{ $ref: "#/$defs/Overflow" }, { type: "null" }] },
1149
1283
  padding: {
1150
1284
  anyOf: [{ $ref: "#/$defs/Animated_Insets" }, { type: "null" }],
@@ -1157,13 +1291,25 @@ export const PROJECT_SHAPE = {
1157
1291
  anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1158
1292
  },
1159
1293
  scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
1294
+ shadows: {
1295
+ items: { $ref: "#/$defs/TextShadow" },
1296
+ type: ["array", "null"],
1297
+ },
1160
1298
  shape: { anyOf: [{ $ref: "#/$defs/LayoutShape" }, { type: "null" }] },
1299
+ strokes: {
1300
+ items: { $ref: "#/$defs/TextStroke" },
1301
+ type: ["array", "null"],
1302
+ },
1161
1303
  text: {
1162
1304
  anyOf: [{ $ref: "#/$defs/Animated_string" }, { type: "null" }],
1163
1305
  },
1164
1306
  text_align: {
1165
1307
  anyOf: [{ $ref: "#/$defs/TextAlign" }, { type: "null" }],
1166
1308
  },
1309
+ text_animators: {
1310
+ items: { $ref: "#/$defs/TextAnimator" },
1311
+ type: "array",
1312
+ },
1167
1313
  translate: {
1168
1314
  anyOf: [{ $ref: "#/$defs/Animated_LayoutOffset" }, { type: "null" }],
1169
1315
  },
@@ -1252,9 +1398,19 @@ export const PROJECT_SHAPE = {
1252
1398
  MasterAudio: {
1253
1399
  additionalProperties: false,
1254
1400
  properties: {
1255
- effects: { items: { $ref: "#/$defs/AudioEffect" }, type: "array" },
1256
- gain: { $ref: "#/$defs/Animated_float" },
1257
- limiter: { anyOf: [{ $ref: "#/$defs/Limiter" }, { type: "null" }] },
1401
+ effects: {
1402
+ default: [],
1403
+ items: { $ref: "#/$defs/AudioEffect" },
1404
+ type: "array",
1405
+ },
1406
+ gain: {
1407
+ $ref: "#/$defs/Animated_float",
1408
+ default: { mode: "constant", value: 1 },
1409
+ },
1410
+ limiter: {
1411
+ anyOf: [{ $ref: "#/$defs/Limiter" }, { type: "null" }],
1412
+ default: { release_ms: 50, threshold: 1 },
1413
+ },
1258
1414
  },
1259
1415
  type: "object",
1260
1416
  },
@@ -1307,6 +1463,7 @@ export const PROJECT_SHAPE = {
1307
1463
  properties: {
1308
1464
  color_metadata: {
1309
1465
  anyOf: [{ $ref: "#/$defs/ColorMetadata" }, { type: "null" }],
1466
+ default: null,
1310
1467
  },
1311
1468
  composition: {
1312
1469
  anyOf: [{ $ref: "#/$defs/CompositionId" }, { type: "null" }],
@@ -1314,11 +1471,14 @@ export const PROJECT_SHAPE = {
1314
1471
  fingerprint: {
1315
1472
  anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
1316
1473
  },
1317
- generator: { anyOf: [{ $ref: "#/$defs/Generator" }, { type: "null" }] },
1318
- has_audio: { type: "boolean" },
1474
+ generator: {
1475
+ anyOf: [{ $ref: "#/$defs/Generator" }, { type: "null" }],
1476
+ default: null,
1477
+ },
1478
+ has_audio: { default: false, type: "boolean" },
1319
1479
  id: { $ref: "#/$defs/SourceId" },
1320
1480
  kind: { $ref: "#/$defs/MediaKind" },
1321
- locator: { type: "string" },
1481
+ locator: { default: "", type: "string" },
1322
1482
  provider: {
1323
1483
  anyOf: [{ $ref: "#/$defs/ProviderSource" }, { type: "null" }],
1324
1484
  },
@@ -1335,9 +1495,15 @@ export const PROJECT_SHAPE = {
1335
1495
  MergeLayer: {
1336
1496
  additionalProperties: false,
1337
1497
  properties: {
1338
- blend_mode: { $ref: "#/$defs/ClipBlendMode" },
1339
- input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1340
- opacity: { $ref: "#/$defs/Animated_float" },
1498
+ blend_mode: { $ref: "#/$defs/ClipBlendMode", default: "normal" },
1499
+ input: {
1500
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1501
+ default: null,
1502
+ },
1503
+ opacity: {
1504
+ $ref: "#/$defs/Animated_float",
1505
+ default: { mode: "constant", value: 1 },
1506
+ },
1341
1507
  },
1342
1508
  type: "object",
1343
1509
  },
@@ -1361,7 +1527,7 @@ export const PROJECT_SHAPE = {
1361
1527
  additionalProperties: false,
1362
1528
  properties: {
1363
1529
  source_id: { $ref: "#/$defs/SourceId" },
1364
- start: { $ref: "#/$defs/MediaTime" },
1530
+ start: { $ref: "#/$defs/MediaTime", default: 0 },
1365
1531
  type: { const: "media", type: "string" },
1366
1532
  },
1367
1533
  required: ["type", "source_id"],
@@ -1380,7 +1546,10 @@ export const PROJECT_SHAPE = {
1380
1546
  additionalProperties: false,
1381
1547
  properties: {
1382
1548
  effect: { $ref: "#/$defs/ClipEffect" },
1383
- input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1549
+ input: {
1550
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1551
+ default: null,
1552
+ },
1384
1553
  inputs: {
1385
1554
  additionalProperties: {
1386
1555
  anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
@@ -1396,9 +1565,15 @@ export const PROJECT_SHAPE = {
1396
1565
  additionalProperties: false,
1397
1566
  properties: {
1398
1567
  effect: { $ref: "#/$defs/ClipEffect" },
1399
- from: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1568
+ from: {
1569
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1570
+ default: null,
1571
+ },
1400
1572
  progress: { $ref: "#/$defs/Animated_float" },
1401
- to: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1573
+ to: {
1574
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1575
+ default: null,
1576
+ },
1402
1577
  type: { const: "transition", type: "string" },
1403
1578
  },
1404
1579
  required: ["type", "effect", "progress"],
@@ -1407,8 +1582,20 @@ export const PROJECT_SHAPE = {
1407
1582
  {
1408
1583
  additionalProperties: false,
1409
1584
  properties: {
1410
- input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1411
- transform: { $ref: "#/$defs/VisualProperties" },
1585
+ input: {
1586
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1587
+ default: null,
1588
+ },
1589
+ transform: {
1590
+ $ref: "#/$defs/VisualProperties",
1591
+ default: {
1592
+ anchor: { x: 0.5, y: 0.5 },
1593
+ opacity: { mode: "constant", value: 1 },
1594
+ position: { mode: "constant", value: { x: 0.5, y: 0.5 } },
1595
+ rotation_degrees: { mode: "constant", value: 0 },
1596
+ scale: { mode: "constant", value: { x: 1, y: 1 } },
1597
+ },
1598
+ },
1412
1599
  type: { const: "transform", type: "string" },
1413
1600
  },
1414
1601
  required: ["type"],
@@ -1417,7 +1604,11 @@ export const PROJECT_SHAPE = {
1417
1604
  {
1418
1605
  additionalProperties: false,
1419
1606
  properties: {
1420
- layers: { items: { $ref: "#/$defs/MergeLayer" }, type: "array" },
1607
+ layers: {
1608
+ default: [],
1609
+ items: { $ref: "#/$defs/MergeLayer" },
1610
+ type: "array",
1611
+ },
1421
1612
  type: { const: "merge", type: "string" },
1422
1613
  },
1423
1614
  required: ["type"],
@@ -1426,8 +1617,14 @@ export const PROJECT_SHAPE = {
1426
1617
  {
1427
1618
  additionalProperties: false,
1428
1619
  properties: {
1429
- input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1430
- matte: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1620
+ input: {
1621
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1622
+ default: null,
1623
+ },
1624
+ matte: {
1625
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1626
+ default: null,
1627
+ },
1431
1628
  mode: { $ref: "#/$defs/MatteMode" },
1432
1629
  type: { const: "matte", type: "string" },
1433
1630
  },
@@ -1437,7 +1634,10 @@ export const PROJECT_SHAPE = {
1437
1634
  {
1438
1635
  additionalProperties: false,
1439
1636
  properties: {
1440
- input: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1637
+ input: {
1638
+ anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1639
+ default: null,
1640
+ },
1441
1641
  masks: { items: { $ref: "#/$defs/ShapeMask" }, type: "array" },
1442
1642
  type: { const: "shape_mask", type: "string" },
1443
1643
  },
@@ -1453,6 +1653,7 @@ export const PROJECT_SHAPE = {
1453
1653
  type: "object",
1454
1654
  },
1455
1655
  inputs: {
1656
+ default: [],
1456
1657
  items: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
1457
1658
  type: "array",
1458
1659
  },
@@ -1498,7 +1699,7 @@ export const PROJECT_SHAPE = {
1498
1699
  additionalProperties: false,
1499
1700
  properties: {
1500
1701
  end: { $ref: "#/$defs/Vec2" },
1501
- spread: { $ref: "#/$defs/Spread" },
1702
+ spread: { $ref: "#/$defs/Spread", default: "pad" },
1502
1703
  start: { $ref: "#/$defs/Vec2" },
1503
1704
  stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
1504
1705
  type: { const: "linear_gradient", type: "string" },
@@ -1511,7 +1712,7 @@ export const PROJECT_SHAPE = {
1511
1712
  properties: {
1512
1713
  center: { $ref: "#/$defs/Vec2" },
1513
1714
  radius: { format: "float", type: "number" },
1514
- spread: { $ref: "#/$defs/Spread" },
1715
+ spread: { $ref: "#/$defs/Spread", default: "pad" },
1515
1716
  stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
1516
1717
  type: { const: "radial_gradient", type: "string" },
1517
1718
  },
@@ -1521,7 +1722,7 @@ export const PROJECT_SHAPE = {
1521
1722
  {
1522
1723
  additionalProperties: false,
1523
1724
  properties: {
1524
- angle_degrees: { format: "float", type: "number" },
1725
+ angle_degrees: { default: 0, format: "float", type: "number" },
1525
1726
  center: { $ref: "#/$defs/Vec2" },
1526
1727
  stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
1527
1728
  type: { const: "conic_gradient", type: "string" },
@@ -1543,8 +1744,8 @@ export const PROJECT_SHAPE = {
1543
1744
  PathVertex: {
1544
1745
  additionalProperties: false,
1545
1746
  properties: {
1546
- in_tangent: { $ref: "#/$defs/Vec2" },
1547
- out_tangent: { $ref: "#/$defs/Vec2" },
1747
+ in_tangent: { $ref: "#/$defs/Vec2", default: { x: 0, y: 0 } },
1748
+ out_tangent: { $ref: "#/$defs/Vec2", default: { x: 0, y: 0 } },
1548
1749
  point: { $ref: "#/$defs/Vec2" },
1549
1750
  },
1550
1751
  required: ["point"],
@@ -1578,9 +1779,15 @@ export const PROJECT_SHAPE = {
1578
1779
  ProjectSettings: {
1579
1780
  additionalProperties: false,
1580
1781
  properties: {
1581
- background: { $ref: "#/$defs/Rgb" },
1582
- blend_space: { $ref: "#/$defs/BlendSpace" },
1583
- color: { $ref: "#/$defs/ColorPipeline" },
1782
+ background: {
1783
+ $ref: "#/$defs/Rgb",
1784
+ default: { blue: 0, green: 0, red: 0 },
1785
+ },
1786
+ blend_space: { $ref: "#/$defs/BlendSpace", default: "linear_light" },
1787
+ color: {
1788
+ $ref: "#/$defs/ColorPipeline",
1789
+ default: { hdr: "tone_map", hdr_peak_nits: 1000 },
1790
+ },
1584
1791
  frame_rate: { $ref: "#/$defs/FrameRate" },
1585
1792
  height: {
1586
1793
  format: "uint32",
@@ -1633,11 +1840,16 @@ export const PROJECT_SHAPE = {
1633
1840
  format: { const: "image_sequence", type: "string" },
1634
1841
  frame_rate: { $ref: "#/$defs/FrameRate" },
1635
1842
  frames: { items: { type: ["string", "null"] }, type: "array" },
1636
- missing: { $ref: "#/$defs/MissingFrames" },
1843
+ missing: { $ref: "#/$defs/MissingFrames", default: "reject" },
1637
1844
  primaries: {
1638
1845
  anyOf: [{ $ref: "#/$defs/LinearPrimaries" }, { type: "null" }],
1639
1846
  },
1640
- start_number: { format: "uint64", minimum: 0, type: "integer" },
1847
+ start_number: {
1848
+ default: 0,
1849
+ format: "uint64",
1850
+ minimum: 0,
1851
+ type: "integer",
1852
+ },
1641
1853
  },
1642
1854
  required: ["format", "frames", "frame_rate"],
1643
1855
  type: "object",
@@ -1655,6 +1867,22 @@ export const PROJECT_SHAPE = {
1655
1867
  },
1656
1868
  ],
1657
1869
  },
1870
+ RangeShape: {
1871
+ oneOf: [
1872
+ { const: "square", type: "string" },
1873
+ { const: "ramp_up", type: "string" },
1874
+ { const: "ramp_down", type: "string" },
1875
+ { const: "triangle", type: "string" },
1876
+ { const: "round", type: "string" },
1877
+ { const: "smooth", type: "string" },
1878
+ ],
1879
+ },
1880
+ RangeUnits: {
1881
+ oneOf: [
1882
+ { const: "percent", type: "string" },
1883
+ { const: "index", type: "string" },
1884
+ ],
1885
+ },
1658
1886
  Rgb: {
1659
1887
  additionalProperties: false,
1660
1888
  properties: {
@@ -1684,14 +1912,36 @@ export const PROJECT_SHAPE = {
1684
1912
  },
1685
1913
  ],
1686
1914
  },
1915
+ RunState: {
1916
+ oneOf: [
1917
+ { const: "upcoming", type: "string" },
1918
+ { const: "active", type: "string" },
1919
+ { const: "spoken", type: "string" },
1920
+ ],
1921
+ },
1922
+ RunTime: {
1923
+ additionalProperties: false,
1924
+ properties: {
1925
+ end: { $ref: "#/$defs/MediaTime" },
1926
+ start: { $ref: "#/$defs/MediaTime" },
1927
+ },
1928
+ required: ["start", "end"],
1929
+ type: "object",
1930
+ },
1687
1931
  ShapeGeometry: {
1688
1932
  oneOf: [
1689
1933
  {
1690
1934
  additionalProperties: false,
1691
1935
  properties: {
1692
1936
  center: { $ref: "#/$defs/AnimatedPoint" },
1693
- corner_radius: { $ref: "#/$defs/Animated_float" },
1694
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
1937
+ corner_radius: {
1938
+ $ref: "#/$defs/Animated_float",
1939
+ default: { mode: "constant", value: 0 },
1940
+ },
1941
+ rotation_degrees: {
1942
+ $ref: "#/$defs/Animated_float",
1943
+ default: { mode: "constant", value: 0 },
1944
+ },
1695
1945
  size: { $ref: "#/$defs/Animated_Vec2" },
1696
1946
  type: { const: "rectangle", type: "string" },
1697
1947
  },
@@ -1702,7 +1952,10 @@ export const PROJECT_SHAPE = {
1702
1952
  additionalProperties: false,
1703
1953
  properties: {
1704
1954
  center: { $ref: "#/$defs/AnimatedPoint" },
1705
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
1955
+ rotation_degrees: {
1956
+ $ref: "#/$defs/Animated_float",
1957
+ default: { mode: "constant", value: 0 },
1958
+ },
1706
1959
  size: { $ref: "#/$defs/Animated_Vec2" },
1707
1960
  type: { const: "ellipse", type: "string" },
1708
1961
  },
@@ -1713,13 +1966,25 @@ export const PROJECT_SHAPE = {
1713
1966
  additionalProperties: false,
1714
1967
  properties: {
1715
1968
  center: { $ref: "#/$defs/AnimatedPoint" },
1716
- inner_radius: { $ref: "#/$defs/Animated_float" },
1717
- inner_roundness: { $ref: "#/$defs/Animated_float" },
1969
+ inner_radius: {
1970
+ $ref: "#/$defs/Animated_float",
1971
+ default: { mode: "constant", value: 0 },
1972
+ },
1973
+ inner_roundness: {
1974
+ $ref: "#/$defs/Animated_float",
1975
+ default: { mode: "constant", value: 0 },
1976
+ },
1718
1977
  kind: { $ref: "#/$defs/PolystarKind" },
1719
1978
  outer_radius: { $ref: "#/$defs/Animated_float" },
1720
- outer_roundness: { $ref: "#/$defs/Animated_float" },
1979
+ outer_roundness: {
1980
+ $ref: "#/$defs/Animated_float",
1981
+ default: { mode: "constant", value: 0 },
1982
+ },
1721
1983
  points: { $ref: "#/$defs/Animated_float" },
1722
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
1984
+ rotation_degrees: {
1985
+ $ref: "#/$defs/Animated_float",
1986
+ default: { mode: "constant", value: 0 },
1987
+ },
1723
1988
  type: { const: "polystar", type: "string" },
1724
1989
  },
1725
1990
  required: ["type", "kind", "center", "points", "outer_radius"],
@@ -1742,7 +2007,16 @@ export const PROJECT_SHAPE = {
1742
2007
  additionalProperties: false,
1743
2008
  properties: {
1744
2009
  items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
1745
- transform: { $ref: "#/$defs/ShapeTransform" },
2010
+ transform: {
2011
+ $ref: "#/$defs/ShapeTransform",
2012
+ default: {
2013
+ anchor: { mode: "constant", value: { x: 0, y: 0 } },
2014
+ opacity: { mode: "constant", value: 1 },
2015
+ position: { mode: "constant", value: { x: 0, y: 0 } },
2016
+ rotation_degrees: { mode: "constant", value: 0 },
2017
+ scale: { mode: "constant", value: { x: 1, y: 1 } },
2018
+ },
2019
+ },
1746
2020
  type: { const: "group", type: "string" },
1747
2021
  },
1748
2022
  required: ["type", "items"],
@@ -1752,8 +2026,14 @@ export const PROJECT_SHAPE = {
1752
2026
  additionalProperties: false,
1753
2027
  properties: {
1754
2028
  center: { $ref: "#/$defs/AnimatedPoint" },
1755
- corner_radius: { $ref: "#/$defs/Animated_float" },
1756
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
2029
+ corner_radius: {
2030
+ $ref: "#/$defs/Animated_float",
2031
+ default: { mode: "constant", value: 0 },
2032
+ },
2033
+ rotation_degrees: {
2034
+ $ref: "#/$defs/Animated_float",
2035
+ default: { mode: "constant", value: 0 },
2036
+ },
1757
2037
  size: { $ref: "#/$defs/Animated_Vec2" },
1758
2038
  type: { const: "rectangle", type: "string" },
1759
2039
  },
@@ -1764,7 +2044,10 @@ export const PROJECT_SHAPE = {
1764
2044
  additionalProperties: false,
1765
2045
  properties: {
1766
2046
  center: { $ref: "#/$defs/AnimatedPoint" },
1767
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
2047
+ rotation_degrees: {
2048
+ $ref: "#/$defs/Animated_float",
2049
+ default: { mode: "constant", value: 0 },
2050
+ },
1768
2051
  size: { $ref: "#/$defs/Animated_Vec2" },
1769
2052
  type: { const: "ellipse", type: "string" },
1770
2053
  },
@@ -1775,13 +2058,25 @@ export const PROJECT_SHAPE = {
1775
2058
  additionalProperties: false,
1776
2059
  properties: {
1777
2060
  center: { $ref: "#/$defs/AnimatedPoint" },
1778
- inner_radius: { $ref: "#/$defs/Animated_float" },
1779
- inner_roundness: { $ref: "#/$defs/Animated_float" },
2061
+ inner_radius: {
2062
+ $ref: "#/$defs/Animated_float",
2063
+ default: { mode: "constant", value: 0 },
2064
+ },
2065
+ inner_roundness: {
2066
+ $ref: "#/$defs/Animated_float",
2067
+ default: { mode: "constant", value: 0 },
2068
+ },
1780
2069
  kind: { $ref: "#/$defs/PolystarKind" },
1781
2070
  outer_radius: { $ref: "#/$defs/Animated_float" },
1782
- outer_roundness: { $ref: "#/$defs/Animated_float" },
2071
+ outer_roundness: {
2072
+ $ref: "#/$defs/Animated_float",
2073
+ default: { mode: "constant", value: 0 },
2074
+ },
1783
2075
  points: { $ref: "#/$defs/Animated_float" },
1784
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
2076
+ rotation_degrees: {
2077
+ $ref: "#/$defs/Animated_float",
2078
+ default: { mode: "constant", value: 0 },
2079
+ },
1785
2080
  type: { const: "polystar", type: "string" },
1786
2081
  },
1787
2082
  required: ["type", "kind", "center", "points", "outer_radius"],
@@ -1799,9 +2094,12 @@ export const PROJECT_SHAPE = {
1799
2094
  {
1800
2095
  additionalProperties: false,
1801
2096
  properties: {
1802
- opacity: { $ref: "#/$defs/Animated_float" },
2097
+ opacity: {
2098
+ $ref: "#/$defs/Animated_float",
2099
+ default: { mode: "constant", value: 1 },
2100
+ },
1803
2101
  paint: { $ref: "#/$defs/Animated_Paint" },
1804
- rule: { $ref: "#/$defs/FillRule" },
2102
+ rule: { $ref: "#/$defs/FillRule", default: "nonzero" },
1805
2103
  type: { const: "fill", type: "string" },
1806
2104
  },
1807
2105
  required: ["type", "paint"],
@@ -1810,11 +2108,17 @@ export const PROJECT_SHAPE = {
1810
2108
  {
1811
2109
  additionalProperties: false,
1812
2110
  properties: {
1813
- cap: { $ref: "#/$defs/LineCap" },
1814
- dash: { anyOf: [{ $ref: "#/$defs/Dash" }, { type: "null" }] },
1815
- join: { $ref: "#/$defs/LineJoin" },
1816
- miter_limit: { format: "float", type: "number" },
1817
- opacity: { $ref: "#/$defs/Animated_float" },
2111
+ cap: { $ref: "#/$defs/LineCap", default: "butt" },
2112
+ dash: {
2113
+ anyOf: [{ $ref: "#/$defs/Dash" }, { type: "null" }],
2114
+ default: null,
2115
+ },
2116
+ join: { $ref: "#/$defs/LineJoin", default: "miter" },
2117
+ miter_limit: { default: 4, format: "float", type: "number" },
2118
+ opacity: {
2119
+ $ref: "#/$defs/Animated_float",
2120
+ default: { mode: "constant", value: 1 },
2121
+ },
1818
2122
  paint: { $ref: "#/$defs/Animated_Paint" },
1819
2123
  type: { const: "stroke", type: "string" },
1820
2124
  width: { $ref: "#/$defs/Animated_float" },
@@ -1826,8 +2130,11 @@ export const PROJECT_SHAPE = {
1826
2130
  additionalProperties: false,
1827
2131
  properties: {
1828
2132
  end: { $ref: "#/$defs/Animated_float" },
1829
- mode: { $ref: "#/$defs/TrimMode" },
1830
- offset: { $ref: "#/$defs/Animated_float" },
2133
+ mode: { $ref: "#/$defs/TrimMode", default: "together" },
2134
+ offset: {
2135
+ $ref: "#/$defs/Animated_float",
2136
+ default: { mode: "constant", value: 0 },
2137
+ },
1831
2138
  start: { $ref: "#/$defs/Animated_float" },
1832
2139
  type: { const: "trim", type: "string" },
1833
2140
  },
@@ -1839,10 +2146,13 @@ export const PROJECT_SHAPE = {
1839
2146
  ShapeMask: {
1840
2147
  additionalProperties: false,
1841
2148
  properties: {
1842
- feather: { $ref: "#/$defs/Animated_float" },
1843
- fill_rule: { $ref: "#/$defs/FillRule" },
1844
- invert: { type: "boolean" },
1845
- mode: { $ref: "#/$defs/MaskMode" },
2149
+ feather: {
2150
+ $ref: "#/$defs/Animated_float",
2151
+ default: { mode: "constant", value: 0 },
2152
+ },
2153
+ fill_rule: { $ref: "#/$defs/FillRule", default: "nonzero" },
2154
+ invert: { default: false, type: "boolean" },
2155
+ mode: { $ref: "#/$defs/MaskMode", default: "add" },
1846
2156
  shape: { $ref: "#/$defs/ShapeGeometry" },
1847
2157
  },
1848
2158
  required: ["shape"],
@@ -1851,11 +2161,26 @@ export const PROJECT_SHAPE = {
1851
2161
  ShapeTransform: {
1852
2162
  additionalProperties: false,
1853
2163
  properties: {
1854
- anchor: { $ref: "#/$defs/Animated_Vec2" },
1855
- opacity: { $ref: "#/$defs/Animated_float" },
1856
- position: { $ref: "#/$defs/AnimatedPoint" },
1857
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
1858
- scale: { $ref: "#/$defs/Animated_Vec2" },
2164
+ anchor: {
2165
+ $ref: "#/$defs/Animated_Vec2",
2166
+ default: { mode: "constant", value: { x: 0, y: 0 } },
2167
+ },
2168
+ opacity: {
2169
+ $ref: "#/$defs/Animated_float",
2170
+ default: { mode: "constant", value: 1 },
2171
+ },
2172
+ position: {
2173
+ $ref: "#/$defs/AnimatedPoint",
2174
+ default: { mode: "constant", value: { x: 0, y: 0 } },
2175
+ },
2176
+ rotation_degrees: {
2177
+ $ref: "#/$defs/Animated_float",
2178
+ default: { mode: "constant", value: 0 },
2179
+ },
2180
+ scale: {
2181
+ $ref: "#/$defs/Animated_Vec2",
2182
+ default: { mode: "constant", value: { x: 1, y: 1 } },
2183
+ },
1859
2184
  },
1860
2185
  type: "object",
1861
2186
  },
@@ -1882,7 +2207,7 @@ export const PROJECT_SHAPE = {
1882
2207
  Subpath: {
1883
2208
  additionalProperties: false,
1884
2209
  properties: {
1885
- closed: { type: "boolean" },
2210
+ closed: { default: false, type: "boolean" },
1886
2211
  vertices: { items: { $ref: "#/$defs/PathVertex" }, type: "array" },
1887
2212
  },
1888
2213
  required: ["vertices"],
@@ -1895,16 +2220,125 @@ export const PROJECT_SHAPE = {
1895
2220
  { const: "end", type: "string" },
1896
2221
  ],
1897
2222
  },
2223
+ TextAnimator: {
2224
+ additionalProperties: false,
2225
+ properties: {
2226
+ properties: { $ref: "#/$defs/TextAnimatorProperties", default: {} },
2227
+ selector: { $ref: "#/$defs/TextSelector" },
2228
+ },
2229
+ required: ["selector"],
2230
+ type: "object",
2231
+ },
2232
+ TextAnimatorProperties: {
2233
+ additionalProperties: false,
2234
+ properties: {
2235
+ fill: { anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }] },
2236
+ offset: {
2237
+ anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }],
2238
+ },
2239
+ opacity: {
2240
+ anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
2241
+ },
2242
+ rotation_degrees: {
2243
+ anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
2244
+ },
2245
+ scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
2246
+ stroke: {
2247
+ anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }],
2248
+ },
2249
+ tracking: {
2250
+ anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
2251
+ },
2252
+ },
2253
+ type: "object",
2254
+ },
1898
2255
  TextBackground: {
1899
2256
  additionalProperties: false,
1900
2257
  properties: {
1901
2258
  color: { $ref: "#/$defs/Rgba" },
1902
- padding: { format: "float", type: "number" },
2259
+ padding: { default: 0, format: "float", type: "number" },
1903
2260
  },
1904
2261
  required: ["color"],
1905
2262
  type: "object",
1906
2263
  },
1907
- TextOutline: {
2264
+ TextContent: {
2265
+ anyOf: [
2266
+ { type: "string" },
2267
+ { items: { $ref: "#/$defs/TextRun" }, type: "array" },
2268
+ ],
2269
+ },
2270
+ TextRun: {
2271
+ additionalProperties: false,
2272
+ properties: {
2273
+ class: { items: { type: "string" }, type: "array" },
2274
+ text: { type: "string" },
2275
+ time: { anyOf: [{ $ref: "#/$defs/RunTime" }, { type: "null" }] },
2276
+ },
2277
+ required: ["text"],
2278
+ type: "object",
2279
+ },
2280
+ TextSelector: {
2281
+ oneOf: [
2282
+ {
2283
+ additionalProperties: false,
2284
+ properties: {
2285
+ amount: {
2286
+ $ref: "#/$defs/Animated_float",
2287
+ default: { mode: "constant", value: 1 },
2288
+ },
2289
+ based_on: { $ref: "#/$defs/TextUnit", default: "characters" },
2290
+ end: {
2291
+ $ref: "#/$defs/Animated_float",
2292
+ default: { mode: "constant", value: 100 },
2293
+ },
2294
+ offset: {
2295
+ $ref: "#/$defs/Animated_float",
2296
+ default: { mode: "constant", value: 0 },
2297
+ },
2298
+ shape: { $ref: "#/$defs/RangeShape", default: "square" },
2299
+ start: {
2300
+ $ref: "#/$defs/Animated_float",
2301
+ default: { mode: "constant", value: 0 },
2302
+ },
2303
+ type: { const: "range", type: "string" },
2304
+ units: { $ref: "#/$defs/RangeUnits", default: "percent" },
2305
+ },
2306
+ required: ["type"],
2307
+ type: "object",
2308
+ },
2309
+ {
2310
+ additionalProperties: false,
2311
+ properties: {
2312
+ ramp: { $ref: "#/$defs/MediaTime", default: 0 },
2313
+ state: { $ref: "#/$defs/RunState" },
2314
+ sweep: { default: false, type: "boolean" },
2315
+ type: { const: "timing", type: "string" },
2316
+ },
2317
+ required: ["type", "state"],
2318
+ type: "object",
2319
+ },
2320
+ {
2321
+ additionalProperties: false,
2322
+ properties: {
2323
+ class: { type: "string" },
2324
+ type: { const: "class", type: "string" },
2325
+ },
2326
+ required: ["type", "class"],
2327
+ type: "object",
2328
+ },
2329
+ ],
2330
+ },
2331
+ TextShadow: {
2332
+ additionalProperties: false,
2333
+ properties: {
2334
+ blur: { default: 0, format: "float", type: "number" },
2335
+ color: { $ref: "#/$defs/Rgba" },
2336
+ offset: { $ref: "#/$defs/Vec2", default: { x: 0, y: 0 } },
2337
+ },
2338
+ required: ["color"],
2339
+ type: "object",
2340
+ },
2341
+ TextStroke: {
1908
2342
  additionalProperties: false,
1909
2343
  properties: {
1910
2344
  color: { $ref: "#/$defs/Rgba" },
@@ -1916,21 +2350,82 @@ export const PROJECT_SHAPE = {
1916
2350
  TextStyle: {
1917
2351
  additionalProperties: false,
1918
2352
  properties: {
1919
- align: { $ref: "#/$defs/TextAlign" },
1920
- anchor: { $ref: "#/$defs/Vec2" },
2353
+ align: { $ref: "#/$defs/TextAlign", default: "center" },
2354
+ anchor: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 1 } },
2355
+ animators: { items: { $ref: "#/$defs/TextAnimator" }, type: "array" },
1921
2356
  background: {
1922
2357
  anyOf: [{ $ref: "#/$defs/TextBackground" }, { type: "null" }],
2358
+ default: null,
1923
2359
  },
1924
- color: { $ref: "#/$defs/Rgba" },
2360
+ fill: {
2361
+ $ref: "#/$defs/Paint",
2362
+ default: {
2363
+ color: { alpha: 1, blue: 1, green: 1, red: 1 },
2364
+ type: "solid",
2365
+ },
2366
+ },
2367
+ font_family: { type: ["string", "null"] },
2368
+ font_size: { default: 0.05, format: "float", type: "number" },
2369
+ font_weight: {
2370
+ default: 400,
2371
+ format: "uint16",
2372
+ maximum: 65535,
2373
+ minimum: 0,
2374
+ type: "integer",
2375
+ },
2376
+ letter_spacing: { default: 0, format: "float", type: "number" },
2377
+ line_height: { default: 1.2, format: "float", type: "number" },
2378
+ max_width: { default: 0.9, format: "float", type: "number" },
2379
+ position: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 0.92 } },
2380
+ shadows: { items: { $ref: "#/$defs/TextShadow" }, type: "array" },
2381
+ strokes: { items: { $ref: "#/$defs/TextStroke" }, type: "array" },
2382
+ },
2383
+ type: "object",
2384
+ },
2385
+ TextStylePatch: {
2386
+ additionalProperties: false,
2387
+ properties: {
2388
+ align: { anyOf: [{ $ref: "#/$defs/TextAlign" }, { type: "null" }] },
2389
+ anchor: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
2390
+ animators: {
2391
+ items: { $ref: "#/$defs/TextAnimator" },
2392
+ type: ["array", "null"],
2393
+ },
2394
+ background: {
2395
+ anyOf: [{ $ref: "#/$defs/TextBackground" }, { type: "null" }],
2396
+ },
2397
+ fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
1925
2398
  font_family: { type: ["string", "null"] },
1926
- font_size: { format: "float", type: "number" },
1927
- line_height: { format: "float", type: "number" },
1928
- max_width: { format: "float", type: "number" },
1929
- outline: { anyOf: [{ $ref: "#/$defs/TextOutline" }, { type: "null" }] },
1930
- position: { $ref: "#/$defs/Vec2" },
2399
+ font_size: { format: "float", type: ["number", "null"] },
2400
+ font_weight: {
2401
+ format: "uint16",
2402
+ maximum: 65535,
2403
+ minimum: 0,
2404
+ type: ["integer", "null"],
2405
+ },
2406
+ letter_spacing: { format: "float", type: ["number", "null"] },
2407
+ line_height: { format: "float", type: ["number", "null"] },
2408
+ max_width: { format: "float", type: ["number", "null"] },
2409
+ position: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
2410
+ shadows: {
2411
+ items: { $ref: "#/$defs/TextShadow" },
2412
+ type: ["array", "null"],
2413
+ },
2414
+ strokes: {
2415
+ items: { $ref: "#/$defs/TextStroke" },
2416
+ type: ["array", "null"],
2417
+ },
1931
2418
  },
1932
2419
  type: "object",
1933
2420
  },
2421
+ TextUnit: {
2422
+ oneOf: [
2423
+ { const: "characters", type: "string" },
2424
+ { const: "characters_excluding_spaces", type: "string" },
2425
+ { const: "words", type: "string" },
2426
+ { const: "lines", type: "string" },
2427
+ ],
2428
+ },
1934
2429
  TimeMap: {
1935
2430
  oneOf: [
1936
2431
  {
@@ -2004,13 +2499,27 @@ export const PROJECT_SHAPE = {
2004
2499
  Track: {
2005
2500
  additionalProperties: false,
2006
2501
  properties: {
2007
- audio: { $ref: "#/$defs/TrackAudio" },
2008
- captions: { anyOf: [{ $ref: "#/$defs/Captions" }, { type: "null" }] },
2009
- clips: { items: { $ref: "#/$defs/Clip" }, type: "array" },
2502
+ audio: {
2503
+ $ref: "#/$defs/TrackAudio",
2504
+ default: {
2505
+ ducking: null,
2506
+ effects: [],
2507
+ gain: { mode: "constant", value: 1 },
2508
+ muted: false,
2509
+ pan: { mode: "constant", value: 0 },
2510
+ solo: false,
2511
+ },
2512
+ },
2513
+ captions: {
2514
+ anyOf: [{ $ref: "#/$defs/Captions" }, { type: "null" }],
2515
+ default: null,
2516
+ },
2517
+ clips: { default: [], items: { $ref: "#/$defs/Clip" }, type: "array" },
2010
2518
  id: { $ref: "#/$defs/TrackId" },
2011
2519
  kind: { $ref: "#/$defs/TrackKind" },
2012
2520
  name: { type: "string" },
2013
2521
  transitions: {
2522
+ default: [],
2014
2523
  items: { $ref: "#/$defs/ClipTransition" },
2015
2524
  type: "array",
2016
2525
  },
@@ -2021,12 +2530,25 @@ export const PROJECT_SHAPE = {
2021
2530
  TrackAudio: {
2022
2531
  additionalProperties: false,
2023
2532
  properties: {
2024
- ducking: { anyOf: [{ $ref: "#/$defs/Ducking" }, { type: "null" }] },
2025
- effects: { items: { $ref: "#/$defs/AudioEffect" }, type: "array" },
2026
- gain: { $ref: "#/$defs/Animated_float" },
2027
- muted: { type: "boolean" },
2028
- pan: { $ref: "#/$defs/Animated_float" },
2029
- solo: { type: "boolean" },
2533
+ ducking: {
2534
+ anyOf: [{ $ref: "#/$defs/Ducking" }, { type: "null" }],
2535
+ default: null,
2536
+ },
2537
+ effects: {
2538
+ default: [],
2539
+ items: { $ref: "#/$defs/AudioEffect" },
2540
+ type: "array",
2541
+ },
2542
+ gain: {
2543
+ $ref: "#/$defs/Animated_float",
2544
+ default: { mode: "constant", value: 1 },
2545
+ },
2546
+ muted: { default: false, type: "boolean" },
2547
+ pan: {
2548
+ $ref: "#/$defs/Animated_float",
2549
+ default: { mode: "constant", value: 0 },
2550
+ },
2551
+ solo: { default: false, type: "boolean" },
2030
2552
  },
2031
2553
  type: "object",
2032
2554
  },
@@ -2087,21 +2609,44 @@ export const PROJECT_SHAPE = {
2087
2609
  VisualProperties: {
2088
2610
  additionalProperties: false,
2089
2611
  properties: {
2090
- anchor: { $ref: "#/$defs/Vec2" },
2091
- opacity: { $ref: "#/$defs/Animated_float" },
2092
- position: { $ref: "#/$defs/AnimatedPoint" },
2093
- rotation_degrees: { $ref: "#/$defs/Animated_float" },
2094
- scale: { $ref: "#/$defs/Animated_Vec2" },
2612
+ anchor: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 0.5 } },
2613
+ opacity: {
2614
+ $ref: "#/$defs/Animated_float",
2615
+ default: { mode: "constant", value: 1 },
2616
+ },
2617
+ position: {
2618
+ $ref: "#/$defs/AnimatedPoint",
2619
+ default: { mode: "constant", value: { x: 0.5, y: 0.5 } },
2620
+ },
2621
+ rotation_degrees: {
2622
+ $ref: "#/$defs/Animated_float",
2623
+ default: { mode: "constant", value: 0 },
2624
+ },
2625
+ scale: {
2626
+ $ref: "#/$defs/Animated_Vec2",
2627
+ default: { mode: "constant", value: { x: 1, y: 1 } },
2628
+ },
2095
2629
  },
2096
- required: ["position", "anchor", "scale", "rotation_degrees", "opacity"],
2097
2630
  type: "object",
2098
2631
  },
2099
2632
  },
2100
2633
  additionalProperties: false,
2101
2634
  properties: {
2102
- audio: { $ref: "#/$defs/MasterAudio" },
2103
- compositions: { items: { $ref: "#/$defs/Composition" }, type: "array" },
2635
+ audio: {
2636
+ $ref: "#/$defs/MasterAudio",
2637
+ default: {
2638
+ effects: [],
2639
+ gain: { mode: "constant", value: 1 },
2640
+ limiter: { release_ms: 50, threshold: 1 },
2641
+ },
2642
+ },
2643
+ compositions: {
2644
+ default: [],
2645
+ items: { $ref: "#/$defs/Composition" },
2646
+ type: "array",
2647
+ },
2104
2648
  effect_resources: {
2649
+ default: [],
2105
2650
  items: { $ref: "#/$defs/EffectResource" },
2106
2651
  type: "array",
2107
2652
  },