alpha2 0.5.3 → 0.6.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 (82) hide show
  1. package/README.md +68 -3
  2. package/THIRD_PARTY_NOTICES.md +7 -3
  3. package/dist/apply-edit.d.ts +124 -0
  4. package/dist/apply-edit.js +15 -0
  5. package/dist/assets.d.ts +12 -0
  6. package/dist/audio-layout.js +6 -3
  7. package/dist/audio-worklet-processor.js +27 -33
  8. package/dist/audio.d.ts +5 -4
  9. package/dist/audio.js +8 -6
  10. package/dist/compose.d.ts +105 -0
  11. package/dist/compose.js +63 -0
  12. package/dist/decoder-fallback.d.ts +3 -2
  13. package/dist/decoder-fallback.js +11 -3
  14. package/dist/decoder-stall.d.ts +15 -0
  15. package/dist/decoder-stall.js +52 -0
  16. package/dist/edit-data.d.ts +24 -0
  17. package/dist/edit-data.js +224 -0
  18. package/dist/edit-keys.d.ts +16 -0
  19. package/dist/edit-keys.js +233 -0
  20. package/dist/edit.d.ts +41 -8
  21. package/dist/edit.js +123 -30
  22. package/dist/export-failure.d.ts +10 -2
  23. package/dist/export-failure.js +55 -4
  24. package/dist/export-retry.d.ts +6 -1
  25. package/dist/export-retry.js +12 -1
  26. package/dist/exporter.d.ts +11 -7
  27. package/dist/exporter.js +10 -9
  28. package/dist/extract.d.ts +65 -0
  29. package/dist/extract.js +291 -0
  30. package/dist/extractor.d.ts +151 -0
  31. package/dist/extractor.js +141 -0
  32. package/dist/float32.d.ts +2 -0
  33. package/dist/float32.js +10 -0
  34. package/dist/frame-intake.d.ts +5 -0
  35. package/dist/frame-intake.js +10 -3
  36. package/dist/generated/builtin-effects.d.ts +3 -0
  37. package/dist/generated/builtin-effects.js +1804 -0
  38. package/dist/generated/project-schema.d.ts +636 -37
  39. package/dist/generated/project-schema.js +55 -0
  40. package/dist/generated/project-shape.js +950 -381
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/json-text.js +14 -2
  44. package/dist/layout-values.js +7 -1
  45. package/dist/layout.d.ts +12 -4
  46. package/dist/media.d.ts +43 -10
  47. package/dist/media.js +255 -66
  48. package/dist/mediabunny.d.ts +32 -12
  49. package/dist/mediabunny.js +276 -90
  50. package/dist/player.d.ts +9 -3
  51. package/dist/player.js +114 -18
  52. package/dist/plugins.d.ts +62 -0
  53. package/dist/plugins.js +506 -0
  54. package/dist/project-data.d.ts +56 -0
  55. package/dist/project-data.js +765 -0
  56. package/dist/project.d.ts +24 -1
  57. package/dist/project.js +456 -38
  58. package/dist/robustness.d.ts +6 -33
  59. package/dist/robustness.js +2 -63
  60. package/dist/sha256.d.ts +3 -2
  61. package/dist/sha256.js +14 -6
  62. package/dist/worker-error.d.ts +3 -2
  63. package/dist/worker-error.js +3 -1
  64. package/dist/worker.d.ts +13 -3
  65. package/dist/worker.js +36 -9
  66. package/package.json +26 -1
  67. package/wasm/alpha2_compose.d.ts +92 -0
  68. package/wasm/alpha2_compose.js +445 -0
  69. package/wasm/alpha2_compose_bg.wasm +0 -0
  70. package/wasm/alpha2_compose_bg.wasm.d.ts +17 -0
  71. package/wasm/alpha2_extensions_bg.wasm +0 -0
  72. package/wasm/alpha2_extensions_pdf_bg.wasm +0 -0
  73. package/wasm/alpha2_wasm.d.ts +151 -18
  74. package/wasm/alpha2_wasm.js +403 -59
  75. package/wasm/alpha2_wasm_bg.wasm +0 -0
  76. package/wasm/alpha2_wasm_bg.wasm.d.ts +21 -6
  77. package/wasm/rust-crate-licenses.md +5 -61
  78. package/wasm/snippets/alpha2-wasm-1b02e9f302d283ba/inline3.js +7 -0
  79. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline1.js → alpha2-wasm-1b02e9f302d283ba/inline0.js} +0 -0
  80. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline2.js → alpha2-wasm-1b02e9f302d283ba/inline1.js} +0 -0
  81. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline3.js → alpha2-wasm-1b02e9f302d283ba/inline2.js} +0 -0
  82. /package/wasm/snippets/{alpha2-wasm-a6265983c9769e80/inline0.js → alpha2-wasm-1b02e9f302d283ba/inline4.js} +0 -0
@@ -38,6 +38,7 @@ export const PROJECT_SHAPE = {
38
38
  properties: {
39
39
  keyframes: {
40
40
  items: { $ref: "#/$defs/PointKeyframe" },
41
+ maxItems: 100000,
41
42
  type: "array",
42
43
  },
43
44
  mode: { const: "keyframes", type: "string" },
@@ -45,140 +46,34 @@ export const PROJECT_SHAPE = {
45
46
  required: ["mode", "keyframes"],
46
47
  type: "object",
47
48
  },
48
- ],
49
- },
50
- Animated_EffectValue: {
51
- oneOf: [
52
- {
53
- additionalProperties: false,
54
- properties: {
55
- mode: { const: "constant", type: "string" },
56
- value: { $ref: "#/$defs/EffectValue" },
57
- },
58
- required: ["mode", "value"],
59
- type: "object",
60
- },
61
- {
62
- additionalProperties: false,
63
- properties: {
64
- keyframes: {
65
- items: { $ref: "#/$defs/Keyframe_EffectValue" },
66
- type: "array",
67
- },
68
- mode: { const: "keyframes", type: "string" },
69
- },
70
- required: ["mode", "keyframes"],
71
- type: "object",
72
- },
73
- ],
74
- },
75
- Animated_Insets: {
76
- oneOf: [
77
- {
78
- additionalProperties: false,
79
- properties: {
80
- mode: { const: "constant", type: "string" },
81
- value: { $ref: "#/$defs/Insets" },
82
- },
83
- required: ["mode", "value"],
84
- type: "object",
85
- },
86
- {
87
- additionalProperties: false,
88
- properties: {
89
- keyframes: {
90
- items: { $ref: "#/$defs/Keyframe_Insets" },
91
- type: "array",
92
- },
93
- mode: { const: "keyframes", type: "string" },
94
- },
95
- required: ["mode", "keyframes"],
96
- type: "object",
97
- },
98
- ],
99
- },
100
- Animated_LayoutLength: {
101
- oneOf: [
102
- {
103
- additionalProperties: false,
104
- properties: {
105
- mode: { const: "constant", type: "string" },
106
- value: { $ref: "#/$defs/LayoutLength" },
107
- },
108
- required: ["mode", "value"],
109
- type: "object",
110
- },
111
- {
112
- additionalProperties: false,
113
- properties: {
114
- keyframes: {
115
- items: { $ref: "#/$defs/Keyframe_LayoutLength" },
116
- type: "array",
117
- },
118
- mode: { const: "keyframes", type: "string" },
119
- },
120
- required: ["mode", "keyframes"],
121
- type: "object",
122
- },
123
- ],
124
- },
125
- Animated_LayoutOffset: {
126
- oneOf: [
127
- {
128
- additionalProperties: false,
129
- properties: {
130
- mode: { const: "constant", type: "string" },
131
- value: { $ref: "#/$defs/LayoutOffset" },
132
- },
133
- required: ["mode", "value"],
134
- type: "object",
135
- },
136
- {
137
- additionalProperties: false,
138
- properties: {
139
- keyframes: {
140
- items: { $ref: "#/$defs/Keyframe_LayoutOffset" },
141
- type: "array",
142
- },
143
- mode: { const: "keyframes", type: "string" },
144
- },
145
- required: ["mode", "keyframes"],
146
- type: "object",
147
- },
148
- ],
149
- },
150
- Animated_LayoutSize: {
151
- oneOf: [
152
- {
153
- additionalProperties: false,
154
- properties: {
155
- mode: { const: "constant", type: "string" },
156
- value: { $ref: "#/$defs/LayoutSize" },
157
- },
158
- required: ["mode", "value"],
159
- type: "object",
160
- },
161
49
  {
162
50
  additionalProperties: false,
163
51
  properties: {
164
- keyframes: {
165
- items: { $ref: "#/$defs/Keyframe_LayoutSize" },
166
- type: "array",
52
+ channel: { type: "string" },
53
+ data: { $ref: "#/$defs/DataSetId" },
54
+ mode: { const: "data", type: "string" },
55
+ offset: {
56
+ items: { format: "float", type: "number" },
57
+ maxItems: 2,
58
+ minItems: 2,
59
+ type: ["array", "null"],
167
60
  },
168
- mode: { const: "keyframes", type: "string" },
61
+ remap: { anyOf: [{ $ref: "#/$defs/DataRemap" }, { type: "null" }] },
62
+ space: { anyOf: [{ $ref: "#/$defs/DataSpace" }, { type: "null" }] },
63
+ via: { anyOf: [{ $ref: "#/$defs/DataVia" }, { type: "null" }] },
169
64
  },
170
- required: ["mode", "keyframes"],
65
+ required: ["mode", "data", "channel"],
171
66
  type: "object",
172
67
  },
173
68
  ],
174
69
  },
175
- Animated_Paint: {
70
+ Animated_EffectValue: {
176
71
  oneOf: [
177
72
  {
178
73
  additionalProperties: false,
179
74
  properties: {
180
75
  mode: { const: "constant", type: "string" },
181
- value: { $ref: "#/$defs/Paint" },
76
+ value: { $ref: "#/$defs/EffectValue" },
182
77
  },
183
78
  required: ["mode", "value"],
184
79
  type: "object",
@@ -187,7 +82,8 @@ export const PROJECT_SHAPE = {
187
82
  additionalProperties: false,
188
83
  properties: {
189
84
  keyframes: {
190
- items: { $ref: "#/$defs/Keyframe_Paint" },
85
+ items: { $ref: "#/$defs/Keyframe_EffectValue" },
86
+ maxItems: 100000,
191
87
  type: "array",
192
88
  },
193
89
  mode: { const: "keyframes", type: "string" },
@@ -195,40 +91,34 @@ export const PROJECT_SHAPE = {
195
91
  required: ["mode", "keyframes"],
196
92
  type: "object",
197
93
  },
198
- ],
199
- },
200
- Animated_Path: {
201
- oneOf: [
202
- {
203
- additionalProperties: false,
204
- properties: {
205
- mode: { const: "constant", type: "string" },
206
- value: { $ref: "#/$defs/Path" },
207
- },
208
- required: ["mode", "value"],
209
- type: "object",
210
- },
211
94
  {
212
95
  additionalProperties: false,
213
96
  properties: {
214
- keyframes: {
215
- items: { $ref: "#/$defs/Keyframe_Path" },
216
- type: "array",
97
+ channel: { type: "string" },
98
+ data: { $ref: "#/$defs/DataSetId" },
99
+ mode: { const: "data", type: "string" },
100
+ offset: {
101
+ items: { format: "float", type: "number" },
102
+ maxItems: 2,
103
+ minItems: 2,
104
+ type: ["array", "null"],
217
105
  },
218
- mode: { const: "keyframes", type: "string" },
106
+ remap: { anyOf: [{ $ref: "#/$defs/DataRemap" }, { type: "null" }] },
107
+ space: { anyOf: [{ $ref: "#/$defs/DataSpace" }, { type: "null" }] },
108
+ via: { anyOf: [{ $ref: "#/$defs/DataVia" }, { type: "null" }] },
219
109
  },
220
- required: ["mode", "keyframes"],
110
+ required: ["mode", "data", "channel"],
221
111
  type: "object",
222
112
  },
223
113
  ],
224
114
  },
225
- Animated_Rgba: {
115
+ Animated_Vec2: {
226
116
  oneOf: [
227
117
  {
228
118
  additionalProperties: false,
229
119
  properties: {
230
120
  mode: { const: "constant", type: "string" },
231
- value: { $ref: "#/$defs/Rgba" },
121
+ value: { $ref: "#/$defs/Vec2" },
232
122
  },
233
123
  required: ["mode", "value"],
234
124
  type: "object",
@@ -237,7 +127,8 @@ export const PROJECT_SHAPE = {
237
127
  additionalProperties: false,
238
128
  properties: {
239
129
  keyframes: {
240
- items: { $ref: "#/$defs/Keyframe_Rgba" },
130
+ items: { $ref: "#/$defs/Keyframe_Vec2" },
131
+ maxItems: 100000,
241
132
  type: "array",
242
133
  },
243
134
  mode: { const: "keyframes", type: "string" },
@@ -245,29 +136,23 @@ export const PROJECT_SHAPE = {
245
136
  required: ["mode", "keyframes"],
246
137
  type: "object",
247
138
  },
248
- ],
249
- },
250
- Animated_Vec2: {
251
- oneOf: [
252
- {
253
- additionalProperties: false,
254
- properties: {
255
- mode: { const: "constant", type: "string" },
256
- value: { $ref: "#/$defs/Vec2" },
257
- },
258
- required: ["mode", "value"],
259
- type: "object",
260
- },
261
139
  {
262
140
  additionalProperties: false,
263
141
  properties: {
264
- keyframes: {
265
- items: { $ref: "#/$defs/Keyframe_Vec2" },
266
- type: "array",
142
+ channel: { type: "string" },
143
+ data: { $ref: "#/$defs/DataSetId" },
144
+ mode: { const: "data", type: "string" },
145
+ offset: {
146
+ items: { format: "float", type: "number" },
147
+ maxItems: 2,
148
+ minItems: 2,
149
+ type: ["array", "null"],
267
150
  },
268
- mode: { const: "keyframes", type: "string" },
151
+ remap: { anyOf: [{ $ref: "#/$defs/DataRemap" }, { type: "null" }] },
152
+ space: { anyOf: [{ $ref: "#/$defs/DataSpace" }, { type: "null" }] },
153
+ via: { anyOf: [{ $ref: "#/$defs/DataVia" }, { type: "null" }] },
269
154
  },
270
- required: ["mode", "keyframes"],
155
+ required: ["mode", "data", "channel"],
271
156
  type: "object",
272
157
  },
273
158
  ],
@@ -288,6 +173,7 @@ export const PROJECT_SHAPE = {
288
173
  properties: {
289
174
  keyframes: {
290
175
  items: { $ref: "#/$defs/Keyframe_float" },
176
+ maxItems: 100000,
291
177
  type: "array",
292
178
  },
293
179
  mode: { const: "keyframes", type: "string" },
@@ -295,29 +181,23 @@ export const PROJECT_SHAPE = {
295
181
  required: ["mode", "keyframes"],
296
182
  type: "object",
297
183
  },
298
- ],
299
- },
300
- Animated_string: {
301
- oneOf: [
302
- {
303
- additionalProperties: false,
304
- properties: {
305
- mode: { const: "constant", type: "string" },
306
- value: { type: "string" },
307
- },
308
- required: ["mode", "value"],
309
- type: "object",
310
- },
311
184
  {
312
185
  additionalProperties: false,
313
186
  properties: {
314
- keyframes: {
315
- items: { $ref: "#/$defs/Keyframe_string" },
316
- type: "array",
187
+ channel: { type: "string" },
188
+ data: { $ref: "#/$defs/DataSetId" },
189
+ mode: { const: "data", type: "string" },
190
+ offset: {
191
+ items: { format: "float", type: "number" },
192
+ maxItems: 2,
193
+ minItems: 2,
194
+ type: ["array", "null"],
317
195
  },
318
- mode: { const: "keyframes", type: "string" },
196
+ remap: { anyOf: [{ $ref: "#/$defs/DataRemap" }, { type: "null" }] },
197
+ space: { anyOf: [{ $ref: "#/$defs/DataSpace" }, { type: "null" }] },
198
+ via: { anyOf: [{ $ref: "#/$defs/DataVia" }, { type: "null" }] },
319
199
  },
320
- required: ["mode", "keyframes"],
200
+ required: ["mode", "data", "channel"],
321
201
  type: "object",
322
202
  },
323
203
  ],
@@ -327,7 +207,11 @@ export const PROJECT_SHAPE = {
327
207
  {
328
208
  additionalProperties: false,
329
209
  properties: {
330
- bands: { items: { $ref: "#/$defs/EqBand" }, type: "array" },
210
+ bands: {
211
+ items: { $ref: "#/$defs/EqBand" },
212
+ maxItems: 16,
213
+ type: "array",
214
+ },
331
215
  type: { const: "eq", type: "string" },
332
216
  },
333
217
  required: ["type", "bands"],
@@ -375,11 +259,13 @@ export const PROJECT_SHAPE = {
375
259
  minimum: 0,
376
260
  type: "integer",
377
261
  },
262
+ maxItems: 2,
378
263
  type: ["array", "null"],
379
264
  },
380
265
  effects: {
381
266
  default: [],
382
267
  items: { $ref: "#/$defs/AudioEffect" },
268
+ maxItems: 16,
383
269
  type: "array",
384
270
  },
385
271
  fade_in: { $ref: "#/$defs/MediaTime", default: 0 },
@@ -429,6 +315,18 @@ export const PROJECT_SHAPE = {
429
315
  { const: "srgb_encoded", type: "string" },
430
316
  ],
431
317
  },
318
+ BlockEllipsis: {
319
+ oneOf: [
320
+ { const: "no_ellipsis", type: "string" },
321
+ { const: "ellipsis", type: "string" },
322
+ {
323
+ additionalProperties: false,
324
+ properties: { string: { type: "string" } },
325
+ required: ["string"],
326
+ type: "object",
327
+ },
328
+ ],
329
+ },
432
330
  CacheIntent: {
433
331
  oneOf: [
434
332
  { const: "auto", type: "string" },
@@ -450,7 +348,15 @@ export const PROJECT_SHAPE = {
450
348
  Captions: {
451
349
  additionalProperties: false,
452
350
  properties: {
453
- cues: { items: { $ref: "#/$defs/CaptionCue" }, type: "array" },
351
+ cues: {
352
+ default: [],
353
+ items: { $ref: "#/$defs/CaptionCue" },
354
+ maxItems: 4096,
355
+ type: "array",
356
+ },
357
+ from_words: {
358
+ anyOf: [{ $ref: "#/$defs/CaptionsFromWords" }, { type: "null" }],
359
+ },
454
360
  style: {
455
361
  $ref: "#/$defs/TextStyle",
456
362
  default: {
@@ -474,7 +380,21 @@ export const PROJECT_SHAPE = {
474
380
  type: "object",
475
381
  },
476
382
  },
477
- required: ["cues"],
383
+ type: "object",
384
+ },
385
+ CaptionsFromWords: {
386
+ additionalProperties: false,
387
+ properties: {
388
+ data: { $ref: "#/$defs/DataSetId" },
389
+ max_chars: {
390
+ format: "uint32",
391
+ maximum: 4294967295,
392
+ minimum: 0,
393
+ type: "integer",
394
+ },
395
+ track: { anyOf: [{ $ref: "#/$defs/TrackId" }, { type: "null" }] },
396
+ },
397
+ required: ["data", "max_chars"],
478
398
  type: "object",
479
399
  },
480
400
  Clip: {
@@ -502,6 +422,7 @@ export const PROJECT_SHAPE = {
502
422
  masks: {
503
423
  default: [],
504
424
  items: { $ref: "#/$defs/ShapeMask" },
425
+ maxItems: 8,
505
426
  type: "array",
506
427
  },
507
428
  matte: {
@@ -646,13 +567,15 @@ export const PROJECT_SHAPE = {
646
567
  properties: {
647
568
  controls: {
648
569
  items: { $ref: "#/$defs/CompositionControl" },
570
+ maxItems: 64,
649
571
  type: "array",
650
572
  },
651
573
  id: { $ref: "#/$defs/CompositionId" },
652
- inputs: { items: { type: "string" }, type: "array" },
574
+ inputs: { items: { type: "string" }, maxItems: 16, type: "array" },
653
575
  nodes: {
654
576
  default: [],
655
577
  items: { $ref: "#/$defs/CompositionNode" },
578
+ maxItems: 256,
656
579
  type: "array",
657
580
  },
658
581
  output: {
@@ -684,6 +607,12 @@ export const PROJECT_SHAPE = {
684
607
  required: ["id", "op"],
685
608
  type: "object",
686
609
  },
610
+ CorrectionRef: {
611
+ additionalProperties: false,
612
+ properties: { data: { $ref: "#/$defs/DataSetId" } },
613
+ required: ["data"],
614
+ type: "object",
615
+ },
687
616
  Dash: {
688
617
  additionalProperties: false,
689
618
  properties: {
@@ -691,33 +620,296 @@ export const PROJECT_SHAPE = {
691
620
  $ref: "#/$defs/Animated_float",
692
621
  default: { mode: "constant", value: 0 },
693
622
  },
694
- pattern: { items: { $ref: "#/$defs/Animated_float" }, type: "array" },
623
+ pattern: {
624
+ items: { $ref: "#/$defs/Animated_float" },
625
+ maxItems: 16,
626
+ type: "array",
627
+ },
695
628
  },
696
629
  required: ["pattern"],
697
630
  type: "object",
698
631
  },
699
- Display: {
632
+ DataAnchor: {
700
633
  oneOf: [
701
- { const: "flex", type: "string" },
702
- { const: "grid", type: "string" },
634
+ {
635
+ additionalProperties: false,
636
+ properties: {
637
+ source_id: { $ref: "#/$defs/SourceId" },
638
+ type: { const: "source", type: "string" },
639
+ },
640
+ required: ["type", "source_id"],
641
+ type: "object",
642
+ },
643
+ {
644
+ additionalProperties: false,
645
+ properties: { type: { const: "timeline", type: "string" } },
646
+ required: ["type"],
647
+ type: "object",
648
+ },
703
649
  ],
704
650
  },
705
- Ducking: {
651
+ DataInterpolation: {
652
+ oneOf: [
653
+ { const: "hold", type: "string" },
654
+ { const: "linear", type: "string" },
655
+ ],
656
+ },
657
+ DataInterval: {
706
658
  additionalProperties: false,
707
659
  properties: {
708
- attack_ms: { format: "float", type: "number" },
709
- depth_db: { format: "float", type: "number" },
710
- release_ms: { format: "float", type: "number" },
711
- sidechain_track: { $ref: "#/$defs/TrackId" },
712
- threshold: { format: "float", type: "number" },
660
+ end: { $ref: "#/$defs/MediaTime" },
661
+ label: { type: ["string", "null"] },
662
+ score: { format: "float", type: ["number", "null"] },
663
+ start: { $ref: "#/$defs/MediaTime" },
713
664
  },
714
- required: [
715
- "sidechain_track",
716
- "threshold",
717
- "depth_db",
718
- "attack_ms",
719
- "release_ms",
720
- ],
665
+ required: ["start", "end"],
666
+ type: "object",
667
+ },
668
+ DataRemap: {
669
+ additionalProperties: false,
670
+ properties: {
671
+ input: {
672
+ items: { format: "float", type: "number" },
673
+ maxItems: 2,
674
+ minItems: 2,
675
+ type: "array",
676
+ },
677
+ output: {
678
+ items: { format: "float", type: "number" },
679
+ maxItems: 2,
680
+ minItems: 2,
681
+ type: "array",
682
+ },
683
+ },
684
+ required: ["input", "output"],
685
+ type: "object",
686
+ },
687
+ DataSet: {
688
+ oneOf: [
689
+ {
690
+ additionalProperties: false,
691
+ properties: {
692
+ anchor: { $ref: "#/$defs/DataAnchor" },
693
+ channels: {
694
+ items: { type: "string" },
695
+ maxItems: 64,
696
+ type: "array",
697
+ },
698
+ id: { $ref: "#/$defs/DataSetId" },
699
+ interpolation: { $ref: "#/$defs/DataInterpolation" },
700
+ kind: { const: "points", type: "string" },
701
+ made_by: {
702
+ anyOf: [{ $ref: "#/$defs/MadeBy" }, { type: "null" }],
703
+ default: null,
704
+ },
705
+ made_from: {
706
+ anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
707
+ default: null,
708
+ },
709
+ times: {
710
+ items: { $ref: "#/$defs/MediaTime" },
711
+ maxItems: 4000000,
712
+ type: "array",
713
+ },
714
+ values: {
715
+ items: { format: "float", type: ["number", "null"] },
716
+ maxItems: 4000000,
717
+ type: "array",
718
+ },
719
+ },
720
+ required: [
721
+ "kind",
722
+ "id",
723
+ "anchor",
724
+ "interpolation",
725
+ "channels",
726
+ "times",
727
+ "values",
728
+ ],
729
+ type: "object",
730
+ },
731
+ {
732
+ additionalProperties: false,
733
+ properties: {
734
+ anchor: { $ref: "#/$defs/DataAnchor" },
735
+ channels: {
736
+ items: { type: "string" },
737
+ maxItems: 64,
738
+ type: "array",
739
+ },
740
+ id: { $ref: "#/$defs/DataSetId" },
741
+ interpolation: { $ref: "#/$defs/DataInterpolation" },
742
+ kind: { const: "scalars", type: "string" },
743
+ made_by: {
744
+ anyOf: [{ $ref: "#/$defs/MadeBy" }, { type: "null" }],
745
+ default: null,
746
+ },
747
+ made_from: {
748
+ anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
749
+ default: null,
750
+ },
751
+ times: {
752
+ items: { $ref: "#/$defs/MediaTime" },
753
+ maxItems: 4000000,
754
+ type: "array",
755
+ },
756
+ values: {
757
+ items: { format: "float", type: ["number", "null"] },
758
+ maxItems: 4000000,
759
+ type: "array",
760
+ },
761
+ },
762
+ required: [
763
+ "kind",
764
+ "id",
765
+ "anchor",
766
+ "interpolation",
767
+ "channels",
768
+ "times",
769
+ "values",
770
+ ],
771
+ type: "object",
772
+ },
773
+ {
774
+ additionalProperties: false,
775
+ properties: {
776
+ anchor: { $ref: "#/$defs/DataAnchor" },
777
+ id: { $ref: "#/$defs/DataSetId" },
778
+ interpolation: { $ref: "#/$defs/DataInterpolation" },
779
+ kind: { const: "similarity", type: "string" },
780
+ made_by: {
781
+ anyOf: [{ $ref: "#/$defs/MadeBy" }, { type: "null" }],
782
+ default: null,
783
+ },
784
+ made_from: {
785
+ anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
786
+ default: null,
787
+ },
788
+ times: {
789
+ items: { $ref: "#/$defs/MediaTime" },
790
+ maxItems: 4000000,
791
+ type: "array",
792
+ },
793
+ values: {
794
+ items: { format: "float", type: ["number", "null"] },
795
+ maxItems: 4000000,
796
+ type: "array",
797
+ },
798
+ },
799
+ required: [
800
+ "kind",
801
+ "id",
802
+ "anchor",
803
+ "interpolation",
804
+ "times",
805
+ "values",
806
+ ],
807
+ type: "object",
808
+ },
809
+ {
810
+ additionalProperties: false,
811
+ properties: {
812
+ anchor: { $ref: "#/$defs/DataAnchor" },
813
+ id: { $ref: "#/$defs/DataSetId" },
814
+ kind: { const: "words", type: "string" },
815
+ made_by: {
816
+ anyOf: [{ $ref: "#/$defs/MadeBy" }, { type: "null" }],
817
+ default: null,
818
+ },
819
+ made_from: {
820
+ anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
821
+ default: null,
822
+ },
823
+ words: {
824
+ items: { $ref: "#/$defs/DataWord" },
825
+ maxItems: 200000,
826
+ type: "array",
827
+ },
828
+ },
829
+ required: ["kind", "id", "anchor", "words"],
830
+ type: "object",
831
+ },
832
+ {
833
+ additionalProperties: false,
834
+ properties: {
835
+ anchor: { $ref: "#/$defs/DataAnchor" },
836
+ id: { $ref: "#/$defs/DataSetId" },
837
+ intervals: {
838
+ items: { $ref: "#/$defs/DataInterval" },
839
+ maxItems: 200000,
840
+ type: "array",
841
+ },
842
+ kind: { const: "intervals", type: "string" },
843
+ made_by: {
844
+ anyOf: [{ $ref: "#/$defs/MadeBy" }, { type: "null" }],
845
+ default: null,
846
+ },
847
+ made_from: {
848
+ anyOf: [{ $ref: "#/$defs/MediaFingerprint" }, { type: "null" }],
849
+ default: null,
850
+ },
851
+ },
852
+ required: ["kind", "id", "anchor", "intervals"],
853
+ type: "object",
854
+ },
855
+ ],
856
+ },
857
+ DataSetId: { minLength: 1, type: "string" },
858
+ DataSpace: {
859
+ oneOf: [
860
+ { const: "picture", type: "string" },
861
+ { const: "canvas", type: "string" },
862
+ ],
863
+ },
864
+ DataVia: {
865
+ oneOf: [
866
+ {
867
+ additionalProperties: false,
868
+ properties: { clip: { $ref: "#/$defs/ClipId" } },
869
+ required: ["clip"],
870
+ type: "object",
871
+ },
872
+ {
873
+ additionalProperties: false,
874
+ properties: { node: { $ref: "#/$defs/NodeId" } },
875
+ required: ["node"],
876
+ type: "object",
877
+ },
878
+ ],
879
+ },
880
+ DataWord: {
881
+ additionalProperties: false,
882
+ properties: {
883
+ end: { $ref: "#/$defs/MediaTime" },
884
+ speaker: { type: ["string", "null"] },
885
+ start: { $ref: "#/$defs/MediaTime" },
886
+ text: { type: "string" },
887
+ },
888
+ required: ["start", "end", "text"],
889
+ type: "object",
890
+ },
891
+ Display: {
892
+ oneOf: [
893
+ { const: "flex", type: "string" },
894
+ { const: "grid", type: "string" },
895
+ ],
896
+ },
897
+ Ducking: {
898
+ additionalProperties: false,
899
+ properties: {
900
+ attack_ms: { format: "float", type: "number" },
901
+ depth_db: { format: "float", type: "number" },
902
+ release_ms: { format: "float", type: "number" },
903
+ sidechain_track: { $ref: "#/$defs/TrackId" },
904
+ threshold: { format: "float", type: "number" },
905
+ },
906
+ required: [
907
+ "sidechain_track",
908
+ "threshold",
909
+ "depth_db",
910
+ "attack_ms",
911
+ "release_ms",
912
+ ],
721
913
  type: "object",
722
914
  },
723
915
  DynamicRange: {
@@ -882,6 +1074,15 @@ export const PROJECT_SHAPE = {
882
1074
  { const: "wrap", type: "string" },
883
1075
  ],
884
1076
  },
1077
+ FontSizeFit: {
1078
+ additionalProperties: false,
1079
+ properties: {
1080
+ max: { format: "float", type: ["number", "null"] },
1081
+ min: { format: "float", type: "number" },
1082
+ },
1083
+ required: ["min"],
1084
+ type: "object",
1085
+ },
885
1086
  FrameRate: {
886
1087
  additionalProperties: false,
887
1088
  properties: {
@@ -915,7 +1116,11 @@ export const PROJECT_SHAPE = {
915
1116
  {
916
1117
  additionalProperties: false,
917
1118
  properties: {
918
- items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
1119
+ items: {
1120
+ items: { $ref: "#/$defs/ShapeItem" },
1121
+ maxItems: 1024,
1122
+ type: "array",
1123
+ },
919
1124
  type: { const: "shapes", type: "string" },
920
1125
  },
921
1126
  required: ["type", "items"],
@@ -992,192 +1197,409 @@ export const PROJECT_SHAPE = {
992
1197
  anyOf: [
993
1198
  { format: "float", type: "number" },
994
1199
  {
995
- pattern: "^ *-?(\\d+\\.?\\d*|\\.\\d+)(px)?( +-?(\\d+\\.?\\d*|\\.\\d+)(px)?){0,3} *$",
996
- type: "string",
1200
+ pattern: "^ *-?(\\d+\\.?\\d*|\\.\\d+)(px)?( +-?(\\d+\\.?\\d*|\\.\\d+)(px)?){0,3} *$",
1201
+ type: "string",
1202
+ },
1203
+ {
1204
+ additionalProperties: false,
1205
+ properties: {
1206
+ bottom: { $ref: "#/$defs/LayoutSize" },
1207
+ left: { $ref: "#/$defs/LayoutSize" },
1208
+ right: { $ref: "#/$defs/LayoutSize" },
1209
+ top: { $ref: "#/$defs/LayoutSize" },
1210
+ },
1211
+ type: "object",
1212
+ },
1213
+ ],
1214
+ },
1215
+ Interpolation: {
1216
+ oneOf: [
1217
+ {
1218
+ additionalProperties: false,
1219
+ properties: { type: { const: "hold", type: "string" } },
1220
+ required: ["type"],
1221
+ type: "object",
1222
+ },
1223
+ {
1224
+ additionalProperties: false,
1225
+ properties: { type: { const: "linear", type: "string" } },
1226
+ required: ["type"],
1227
+ type: "object",
1228
+ },
1229
+ {
1230
+ additionalProperties: false,
1231
+ properties: {
1232
+ type: { const: "cubic_bezier", type: "string" },
1233
+ x1: { format: "float", type: "number" },
1234
+ x2: { format: "float", type: "number" },
1235
+ y1: { format: "float", type: "number" },
1236
+ y2: { format: "float", type: "number" },
1237
+ },
1238
+ required: ["type", "x1", "y1", "x2", "y2"],
1239
+ type: "object",
1240
+ },
1241
+ ],
1242
+ },
1243
+ JustifyContent: {
1244
+ oneOf: [
1245
+ { const: "start", type: "string" },
1246
+ { const: "center", type: "string" },
1247
+ { const: "end", type: "string" },
1248
+ { const: "space_between", type: "string" },
1249
+ { const: "space_around", type: "string" },
1250
+ { const: "space_evenly", type: "string" },
1251
+ ],
1252
+ },
1253
+ Keyframe_EffectValue: {
1254
+ additionalProperties: false,
1255
+ properties: {
1256
+ interpolation: { $ref: "#/$defs/Interpolation" },
1257
+ time: { $ref: "#/$defs/MediaTime" },
1258
+ value: { $ref: "#/$defs/EffectValue" },
1259
+ },
1260
+ required: ["time", "value", "interpolation"],
1261
+ type: "object",
1262
+ },
1263
+ Keyframe_Insets: {
1264
+ additionalProperties: false,
1265
+ properties: {
1266
+ interpolation: { $ref: "#/$defs/Interpolation" },
1267
+ time: { $ref: "#/$defs/MediaTime" },
1268
+ value: { $ref: "#/$defs/Insets" },
1269
+ },
1270
+ required: ["time", "value", "interpolation"],
1271
+ type: "object",
1272
+ },
1273
+ Keyframe_LayoutLength: {
1274
+ additionalProperties: false,
1275
+ properties: {
1276
+ interpolation: { $ref: "#/$defs/Interpolation" },
1277
+ time: { $ref: "#/$defs/MediaTime" },
1278
+ value: { $ref: "#/$defs/LayoutLength" },
1279
+ },
1280
+ required: ["time", "value", "interpolation"],
1281
+ type: "object",
1282
+ },
1283
+ Keyframe_LayoutOffset: {
1284
+ additionalProperties: false,
1285
+ properties: {
1286
+ interpolation: { $ref: "#/$defs/Interpolation" },
1287
+ time: { $ref: "#/$defs/MediaTime" },
1288
+ value: { $ref: "#/$defs/LayoutOffset" },
1289
+ },
1290
+ required: ["time", "value", "interpolation"],
1291
+ type: "object",
1292
+ },
1293
+ Keyframe_LayoutSize: {
1294
+ additionalProperties: false,
1295
+ properties: {
1296
+ interpolation: { $ref: "#/$defs/Interpolation" },
1297
+ time: { $ref: "#/$defs/MediaTime" },
1298
+ value: { $ref: "#/$defs/LayoutSize" },
1299
+ },
1300
+ required: ["time", "value", "interpolation"],
1301
+ type: "object",
1302
+ },
1303
+ Keyframe_Paint: {
1304
+ additionalProperties: false,
1305
+ properties: {
1306
+ interpolation: { $ref: "#/$defs/Interpolation" },
1307
+ time: { $ref: "#/$defs/MediaTime" },
1308
+ value: { $ref: "#/$defs/Paint" },
1309
+ },
1310
+ required: ["time", "value", "interpolation"],
1311
+ type: "object",
1312
+ },
1313
+ Keyframe_Path: {
1314
+ additionalProperties: false,
1315
+ properties: {
1316
+ interpolation: { $ref: "#/$defs/Interpolation" },
1317
+ time: { $ref: "#/$defs/MediaTime" },
1318
+ value: { $ref: "#/$defs/Path" },
1319
+ },
1320
+ required: ["time", "value", "interpolation"],
1321
+ type: "object",
1322
+ },
1323
+ Keyframe_Rgba: {
1324
+ additionalProperties: false,
1325
+ properties: {
1326
+ interpolation: { $ref: "#/$defs/Interpolation" },
1327
+ time: { $ref: "#/$defs/MediaTime" },
1328
+ value: { $ref: "#/$defs/Rgba" },
1329
+ },
1330
+ required: ["time", "value", "interpolation"],
1331
+ type: "object",
1332
+ },
1333
+ Keyframe_Vec2: {
1334
+ additionalProperties: false,
1335
+ properties: {
1336
+ interpolation: { $ref: "#/$defs/Interpolation" },
1337
+ time: { $ref: "#/$defs/MediaTime" },
1338
+ value: { $ref: "#/$defs/Vec2" },
1339
+ },
1340
+ required: ["time", "value", "interpolation"],
1341
+ type: "object",
1342
+ },
1343
+ Keyframe_float: {
1344
+ additionalProperties: false,
1345
+ properties: {
1346
+ interpolation: { $ref: "#/$defs/Interpolation" },
1347
+ time: { $ref: "#/$defs/MediaTime" },
1348
+ value: { format: "float", type: "number" },
1349
+ },
1350
+ required: ["time", "value", "interpolation"],
1351
+ type: "object",
1352
+ },
1353
+ Keyframe_string: {
1354
+ additionalProperties: false,
1355
+ properties: {
1356
+ interpolation: { $ref: "#/$defs/Interpolation" },
1357
+ time: { $ref: "#/$defs/MediaTime" },
1358
+ value: { type: "string" },
1359
+ },
1360
+ required: ["time", "value", "interpolation"],
1361
+ type: "object",
1362
+ },
1363
+ Keyframed_Insets: {
1364
+ oneOf: [
1365
+ {
1366
+ additionalProperties: false,
1367
+ properties: {
1368
+ mode: { const: "constant", type: "string" },
1369
+ value: { $ref: "#/$defs/Insets" },
1370
+ },
1371
+ required: ["mode", "value"],
1372
+ type: "object",
1373
+ },
1374
+ {
1375
+ additionalProperties: false,
1376
+ properties: {
1377
+ keyframes: {
1378
+ items: { $ref: "#/$defs/Keyframe_Insets" },
1379
+ maxItems: 100000,
1380
+ type: "array",
1381
+ },
1382
+ mode: { const: "keyframes", type: "string" },
1383
+ },
1384
+ required: ["mode", "keyframes"],
1385
+ type: "object",
1386
+ },
1387
+ ],
1388
+ },
1389
+ Keyframed_LayoutLength: {
1390
+ oneOf: [
1391
+ {
1392
+ additionalProperties: false,
1393
+ properties: {
1394
+ mode: { const: "constant", type: "string" },
1395
+ value: { $ref: "#/$defs/LayoutLength" },
1396
+ },
1397
+ required: ["mode", "value"],
1398
+ type: "object",
1399
+ },
1400
+ {
1401
+ additionalProperties: false,
1402
+ properties: {
1403
+ keyframes: {
1404
+ items: { $ref: "#/$defs/Keyframe_LayoutLength" },
1405
+ maxItems: 100000,
1406
+ type: "array",
1407
+ },
1408
+ mode: { const: "keyframes", type: "string" },
1409
+ },
1410
+ required: ["mode", "keyframes"],
1411
+ type: "object",
1412
+ },
1413
+ ],
1414
+ },
1415
+ Keyframed_LayoutOffset: {
1416
+ oneOf: [
1417
+ {
1418
+ additionalProperties: false,
1419
+ properties: {
1420
+ mode: { const: "constant", type: "string" },
1421
+ value: { $ref: "#/$defs/LayoutOffset" },
1422
+ },
1423
+ required: ["mode", "value"],
1424
+ type: "object",
1425
+ },
1426
+ {
1427
+ additionalProperties: false,
1428
+ properties: {
1429
+ keyframes: {
1430
+ items: { $ref: "#/$defs/Keyframe_LayoutOffset" },
1431
+ maxItems: 100000,
1432
+ type: "array",
1433
+ },
1434
+ mode: { const: "keyframes", type: "string" },
1435
+ },
1436
+ required: ["mode", "keyframes"],
1437
+ type: "object",
1438
+ },
1439
+ ],
1440
+ },
1441
+ Keyframed_LayoutSize: {
1442
+ oneOf: [
1443
+ {
1444
+ additionalProperties: false,
1445
+ properties: {
1446
+ mode: { const: "constant", type: "string" },
1447
+ value: { $ref: "#/$defs/LayoutSize" },
1448
+ },
1449
+ required: ["mode", "value"],
1450
+ type: "object",
1451
+ },
1452
+ {
1453
+ additionalProperties: false,
1454
+ properties: {
1455
+ keyframes: {
1456
+ items: { $ref: "#/$defs/Keyframe_LayoutSize" },
1457
+ maxItems: 100000,
1458
+ type: "array",
1459
+ },
1460
+ mode: { const: "keyframes", type: "string" },
1461
+ },
1462
+ required: ["mode", "keyframes"],
1463
+ type: "object",
1464
+ },
1465
+ ],
1466
+ },
1467
+ Keyframed_Paint: {
1468
+ oneOf: [
1469
+ {
1470
+ additionalProperties: false,
1471
+ properties: {
1472
+ mode: { const: "constant", type: "string" },
1473
+ value: { $ref: "#/$defs/Paint" },
1474
+ },
1475
+ required: ["mode", "value"],
1476
+ type: "object",
1477
+ },
1478
+ {
1479
+ additionalProperties: false,
1480
+ properties: {
1481
+ keyframes: {
1482
+ items: { $ref: "#/$defs/Keyframe_Paint" },
1483
+ maxItems: 100000,
1484
+ type: "array",
1485
+ },
1486
+ mode: { const: "keyframes", type: "string" },
1487
+ },
1488
+ required: ["mode", "keyframes"],
1489
+ type: "object",
1490
+ },
1491
+ ],
1492
+ },
1493
+ Keyframed_Path: {
1494
+ oneOf: [
1495
+ {
1496
+ additionalProperties: false,
1497
+ properties: {
1498
+ mode: { const: "constant", type: "string" },
1499
+ value: { $ref: "#/$defs/Path" },
1500
+ },
1501
+ required: ["mode", "value"],
1502
+ type: "object",
997
1503
  },
998
1504
  {
999
1505
  additionalProperties: false,
1000
1506
  properties: {
1001
- bottom: { $ref: "#/$defs/LayoutSize" },
1002
- left: { $ref: "#/$defs/LayoutSize" },
1003
- right: { $ref: "#/$defs/LayoutSize" },
1004
- top: { $ref: "#/$defs/LayoutSize" },
1507
+ keyframes: {
1508
+ items: { $ref: "#/$defs/Keyframe_Path" },
1509
+ maxItems: 100000,
1510
+ type: "array",
1511
+ },
1512
+ mode: { const: "keyframes", type: "string" },
1005
1513
  },
1514
+ required: ["mode", "keyframes"],
1006
1515
  type: "object",
1007
1516
  },
1008
1517
  ],
1009
1518
  },
1010
- Interpolation: {
1519
+ Keyframed_Rgba: {
1011
1520
  oneOf: [
1012
1521
  {
1013
1522
  additionalProperties: false,
1014
- properties: { type: { const: "hold", type: "string" } },
1015
- required: ["type"],
1523
+ properties: {
1524
+ mode: { const: "constant", type: "string" },
1525
+ value: { $ref: "#/$defs/Rgba" },
1526
+ },
1527
+ required: ["mode", "value"],
1016
1528
  type: "object",
1017
1529
  },
1018
1530
  {
1019
1531
  additionalProperties: false,
1020
- properties: { type: { const: "linear", type: "string" } },
1021
- required: ["type"],
1532
+ properties: {
1533
+ keyframes: {
1534
+ items: { $ref: "#/$defs/Keyframe_Rgba" },
1535
+ maxItems: 100000,
1536
+ type: "array",
1537
+ },
1538
+ mode: { const: "keyframes", type: "string" },
1539
+ },
1540
+ required: ["mode", "keyframes"],
1022
1541
  type: "object",
1023
1542
  },
1543
+ ],
1544
+ },
1545
+ Keyframed_string: {
1546
+ oneOf: [
1024
1547
  {
1025
1548
  additionalProperties: false,
1026
1549
  properties: {
1027
- type: { const: "cubic_bezier", type: "string" },
1028
- x1: { format: "float", type: "number" },
1029
- x2: { format: "float", type: "number" },
1030
- y1: { format: "float", type: "number" },
1031
- y2: { format: "float", type: "number" },
1550
+ mode: { const: "constant", type: "string" },
1551
+ value: { type: "string" },
1032
1552
  },
1033
- required: ["type", "x1", "y1", "x2", "y2"],
1553
+ required: ["mode", "value"],
1554
+ type: "object",
1555
+ },
1556
+ {
1557
+ additionalProperties: false,
1558
+ properties: {
1559
+ keyframes: {
1560
+ items: { $ref: "#/$defs/Keyframe_string" },
1561
+ maxItems: 100000,
1562
+ type: "array",
1563
+ },
1564
+ mode: { const: "keyframes", type: "string" },
1565
+ },
1566
+ required: ["mode", "keyframes"],
1034
1567
  type: "object",
1035
1568
  },
1036
1569
  ],
1037
1570
  },
1038
- JustifyContent: {
1039
- oneOf: [
1040
- { const: "start", type: "string" },
1041
- { const: "center", type: "string" },
1042
- { const: "end", type: "string" },
1043
- { const: "space_between", type: "string" },
1044
- { const: "space_around", type: "string" },
1045
- { const: "space_evenly", type: "string" },
1046
- ],
1047
- },
1048
- Keyframe_EffectValue: {
1049
- additionalProperties: false,
1050
- properties: {
1051
- interpolation: { $ref: "#/$defs/Interpolation" },
1052
- time: { $ref: "#/$defs/MediaTime" },
1053
- value: { $ref: "#/$defs/EffectValue" },
1054
- },
1055
- required: ["time", "value", "interpolation"],
1056
- type: "object",
1057
- },
1058
- Keyframe_Insets: {
1059
- additionalProperties: false,
1060
- properties: {
1061
- interpolation: { $ref: "#/$defs/Interpolation" },
1062
- time: { $ref: "#/$defs/MediaTime" },
1063
- value: { $ref: "#/$defs/Insets" },
1064
- },
1065
- required: ["time", "value", "interpolation"],
1066
- type: "object",
1067
- },
1068
- Keyframe_LayoutLength: {
1069
- additionalProperties: false,
1070
- properties: {
1071
- interpolation: { $ref: "#/$defs/Interpolation" },
1072
- time: { $ref: "#/$defs/MediaTime" },
1073
- value: { $ref: "#/$defs/LayoutLength" },
1074
- },
1075
- required: ["time", "value", "interpolation"],
1076
- type: "object",
1077
- },
1078
- Keyframe_LayoutOffset: {
1079
- additionalProperties: false,
1080
- properties: {
1081
- interpolation: { $ref: "#/$defs/Interpolation" },
1082
- time: { $ref: "#/$defs/MediaTime" },
1083
- value: { $ref: "#/$defs/LayoutOffset" },
1084
- },
1085
- required: ["time", "value", "interpolation"],
1086
- type: "object",
1087
- },
1088
- Keyframe_LayoutSize: {
1089
- additionalProperties: false,
1090
- properties: {
1091
- interpolation: { $ref: "#/$defs/Interpolation" },
1092
- time: { $ref: "#/$defs/MediaTime" },
1093
- value: { $ref: "#/$defs/LayoutSize" },
1094
- },
1095
- required: ["time", "value", "interpolation"],
1096
- type: "object",
1097
- },
1098
- Keyframe_Paint: {
1099
- additionalProperties: false,
1100
- properties: {
1101
- interpolation: { $ref: "#/$defs/Interpolation" },
1102
- time: { $ref: "#/$defs/MediaTime" },
1103
- value: { $ref: "#/$defs/Paint" },
1104
- },
1105
- required: ["time", "value", "interpolation"],
1106
- type: "object",
1107
- },
1108
- Keyframe_Path: {
1109
- additionalProperties: false,
1110
- properties: {
1111
- interpolation: { $ref: "#/$defs/Interpolation" },
1112
- time: { $ref: "#/$defs/MediaTime" },
1113
- value: { $ref: "#/$defs/Path" },
1114
- },
1115
- required: ["time", "value", "interpolation"],
1116
- type: "object",
1117
- },
1118
- Keyframe_Rgba: {
1119
- additionalProperties: false,
1120
- properties: {
1121
- interpolation: { $ref: "#/$defs/Interpolation" },
1122
- time: { $ref: "#/$defs/MediaTime" },
1123
- value: { $ref: "#/$defs/Rgba" },
1124
- },
1125
- required: ["time", "value", "interpolation"],
1126
- type: "object",
1127
- },
1128
- Keyframe_Vec2: {
1129
- additionalProperties: false,
1130
- properties: {
1131
- interpolation: { $ref: "#/$defs/Interpolation" },
1132
- time: { $ref: "#/$defs/MediaTime" },
1133
- value: { $ref: "#/$defs/Vec2" },
1134
- },
1135
- required: ["time", "value", "interpolation"],
1136
- type: "object",
1137
- },
1138
- Keyframe_float: {
1139
- additionalProperties: false,
1140
- properties: {
1141
- interpolation: { $ref: "#/$defs/Interpolation" },
1142
- time: { $ref: "#/$defs/MediaTime" },
1143
- value: { format: "float", type: "number" },
1144
- },
1145
- required: ["time", "value", "interpolation"],
1146
- type: "object",
1147
- },
1148
- Keyframe_string: {
1571
+ LayoutBorder: {
1149
1572
  additionalProperties: false,
1150
1573
  properties: {
1151
- interpolation: { $ref: "#/$defs/Interpolation" },
1152
- time: { $ref: "#/$defs/MediaTime" },
1153
- value: { type: "string" },
1574
+ paint: { $ref: "#/$defs/Keyframed_Paint" },
1575
+ width: { $ref: "#/$defs/Keyframed_LayoutSize" },
1154
1576
  },
1155
- required: ["time", "value", "interpolation"],
1577
+ required: ["width", "paint"],
1156
1578
  type: "object",
1157
1579
  },
1158
- LayoutBorder: {
1580
+ LayoutFontSizeFit: {
1159
1581
  additionalProperties: false,
1160
1582
  properties: {
1161
- paint: { $ref: "#/$defs/Animated_Paint" },
1162
- width: { $ref: "#/$defs/Animated_LayoutSize" },
1583
+ max: { anyOf: [{ $ref: "#/$defs/LayoutSize" }, { type: "null" }] },
1584
+ min: { $ref: "#/$defs/LayoutSize" },
1163
1585
  },
1164
- required: ["width", "paint"],
1586
+ required: ["min"],
1165
1587
  type: "object",
1166
1588
  },
1167
1589
  LayoutInset: {
1168
1590
  additionalProperties: false,
1169
1591
  properties: {
1170
1592
  bottom: {
1171
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1593
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1172
1594
  },
1173
1595
  left: {
1174
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1596
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1175
1597
  },
1176
1598
  right: {
1177
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1599
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1178
1600
  },
1179
1601
  top: {
1180
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1602
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1181
1603
  },
1182
1604
  },
1183
1605
  type: "object",
@@ -1202,20 +1624,24 @@ export const PROJECT_SHAPE = {
1202
1624
  },
1203
1625
  aspect_ratio: { format: "float", type: ["number", "null"] },
1204
1626
  background: {
1205
- anyOf: [{ $ref: "#/$defs/Animated_Paint" }, { type: "null" }],
1627
+ anyOf: [{ $ref: "#/$defs/Keyframed_Paint" }, { type: "null" }],
1206
1628
  },
1207
1629
  border: { anyOf: [{ $ref: "#/$defs/LayoutBorder" }, { type: "null" }] },
1208
1630
  border_radius: {
1209
- anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1631
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutSize" }, { type: "null" }],
1632
+ },
1633
+ children: {
1634
+ items: { $ref: "#/$defs/LayoutNode" },
1635
+ maxItems: 256,
1636
+ type: "array",
1210
1637
  },
1211
- children: { items: { $ref: "#/$defs/LayoutNode" }, type: "array" },
1212
1638
  column_gap: {
1213
- anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1639
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutSize" }, { type: "null" }],
1214
1640
  },
1215
1641
  display: { anyOf: [{ $ref: "#/$defs/Display" }, { type: "null" }] },
1216
1642
  fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
1217
1643
  flex_basis: {
1218
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1644
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1219
1645
  },
1220
1646
  flex_direction: {
1221
1647
  anyOf: [{ $ref: "#/$defs/FlexDirection" }, { type: "null" }],
@@ -1229,7 +1655,10 @@ export const PROJECT_SHAPE = {
1229
1655
  flex_wrap: { anyOf: [{ $ref: "#/$defs/FlexWrap" }, { type: "null" }] },
1230
1656
  font_family: { type: ["string", "null"] },
1231
1657
  font_size: {
1232
- anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1658
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutSize" }, { type: "null" }],
1659
+ },
1660
+ font_size_fit: {
1661
+ anyOf: [{ $ref: "#/$defs/LayoutFontSizeFit" }, { type: "null" }],
1233
1662
  },
1234
1663
  font_weight: {
1235
1664
  format: "uint16",
@@ -1238,7 +1667,7 @@ export const PROJECT_SHAPE = {
1238
1667
  type: ["integer", "null"],
1239
1668
  },
1240
1669
  gap: {
1241
- anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1670
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutSize" }, { type: "null" }],
1242
1671
  },
1243
1672
  grid_auto_columns: {
1244
1673
  anyOf: [{ $ref: "#/$defs/TrackList" }, { type: "null" }],
@@ -1262,7 +1691,7 @@ export const PROJECT_SHAPE = {
1262
1691
  anyOf: [{ $ref: "#/$defs/TrackList" }, { type: "null" }],
1263
1692
  },
1264
1693
  height: {
1265
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1694
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1266
1695
  },
1267
1696
  inset: { anyOf: [{ $ref: "#/$defs/LayoutInset" }, { type: "null" }] },
1268
1697
  justify_content: {
@@ -1275,61 +1704,67 @@ export const PROJECT_SHAPE = {
1275
1704
  anyOf: [{ $ref: "#/$defs/AlignItems" }, { type: "null" }],
1276
1705
  },
1277
1706
  letter_spacing: { format: "float", type: ["number", "null"] },
1707
+ line_clamp: {
1708
+ anyOf: [{ $ref: "#/$defs/LineClamp" }, { type: "null" }],
1709
+ },
1278
1710
  line_height: { format: "float", type: ["number", "null"] },
1279
1711
  margin: {
1280
- anyOf: [{ $ref: "#/$defs/Animated_Insets" }, { type: "null" }],
1712
+ anyOf: [{ $ref: "#/$defs/Keyframed_Insets" }, { type: "null" }],
1281
1713
  },
1282
1714
  max_height: {
1283
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1715
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1284
1716
  },
1285
1717
  max_width: {
1286
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1718
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1287
1719
  },
1288
1720
  min_height: {
1289
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1721
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1290
1722
  },
1291
1723
  min_width: {
1292
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1724
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1293
1725
  },
1294
1726
  opacity: {
1295
1727
  anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
1296
1728
  },
1297
1729
  overflow: { anyOf: [{ $ref: "#/$defs/Overflow" }, { type: "null" }] },
1298
1730
  padding: {
1299
- anyOf: [{ $ref: "#/$defs/Animated_Insets" }, { type: "null" }],
1731
+ anyOf: [{ $ref: "#/$defs/Keyframed_Insets" }, { type: "null" }],
1300
1732
  },
1301
1733
  position: { anyOf: [{ $ref: "#/$defs/Position" }, { type: "null" }] },
1302
1734
  rotation_degrees: {
1303
1735
  anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
1304
1736
  },
1305
1737
  row_gap: {
1306
- anyOf: [{ $ref: "#/$defs/Animated_LayoutSize" }, { type: "null" }],
1738
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutSize" }, { type: "null" }],
1307
1739
  },
1308
1740
  scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
1309
1741
  shadows: {
1310
1742
  items: { $ref: "#/$defs/TextShadow" },
1743
+ maxItems: 4,
1311
1744
  type: ["array", "null"],
1312
1745
  },
1313
1746
  shape: { anyOf: [{ $ref: "#/$defs/LayoutShape" }, { type: "null" }] },
1314
1747
  strokes: {
1315
1748
  items: { $ref: "#/$defs/TextStroke" },
1749
+ maxItems: 4,
1316
1750
  type: ["array", "null"],
1317
1751
  },
1318
1752
  text: {
1319
- anyOf: [{ $ref: "#/$defs/Animated_string" }, { type: "null" }],
1753
+ anyOf: [{ $ref: "#/$defs/Keyframed_string" }, { type: "null" }],
1320
1754
  },
1321
1755
  text_align: {
1322
1756
  anyOf: [{ $ref: "#/$defs/TextAlign" }, { type: "null" }],
1323
1757
  },
1324
1758
  text_animators: {
1325
1759
  items: { $ref: "#/$defs/TextAnimator" },
1760
+ maxItems: 8,
1326
1761
  type: "array",
1327
1762
  },
1328
1763
  translate: {
1329
- anyOf: [{ $ref: "#/$defs/Animated_LayoutOffset" }, { type: "null" }],
1764
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutOffset" }, { type: "null" }],
1330
1765
  },
1331
1766
  width: {
1332
- anyOf: [{ $ref: "#/$defs/Animated_LayoutLength" }, { type: "null" }],
1767
+ anyOf: [{ $ref: "#/$defs/Keyframed_LayoutLength" }, { type: "null" }],
1333
1768
  },
1334
1769
  },
1335
1770
  type: "object",
@@ -1354,7 +1789,11 @@ export const PROJECT_SHAPE = {
1354
1789
  LayoutShape: {
1355
1790
  additionalProperties: false,
1356
1791
  properties: {
1357
- items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
1792
+ items: {
1793
+ items: { $ref: "#/$defs/ShapeItem" },
1794
+ maxItems: 1024,
1795
+ type: "array",
1796
+ },
1358
1797
  },
1359
1798
  required: ["items"],
1360
1799
  type: "object",
@@ -1381,6 +1820,19 @@ export const PROJECT_SHAPE = {
1381
1820
  { const: "square", type: "string" },
1382
1821
  ],
1383
1822
  },
1823
+ LineClamp: {
1824
+ additionalProperties: false,
1825
+ properties: {
1826
+ block_ellipsis: { $ref: "#/$defs/BlockEllipsis", default: "ellipsis" },
1827
+ max_lines: {
1828
+ format: "uint32",
1829
+ maximum: 4294967295,
1830
+ minimum: 0,
1831
+ type: ["integer", "null"],
1832
+ },
1833
+ },
1834
+ type: "object",
1835
+ },
1384
1836
  LineJoin: {
1385
1837
  oneOf: [
1386
1838
  { const: "miter", type: "string" },
@@ -1403,6 +1855,31 @@ export const PROJECT_SHAPE = {
1403
1855
  { const: "ping_pong", type: "string" },
1404
1856
  ],
1405
1857
  },
1858
+ MadeBy: {
1859
+ additionalProperties: false,
1860
+ properties: {
1861
+ extractor: { type: "string" },
1862
+ params: { additionalProperties: true, default: {}, type: "object" },
1863
+ plugin: { anyOf: [{ $ref: "#/$defs/MadeByPlugin" }, { type: "null" }] },
1864
+ version: {
1865
+ format: "uint32",
1866
+ maximum: 4294967295,
1867
+ minimum: 0,
1868
+ type: "integer",
1869
+ },
1870
+ },
1871
+ required: ["extractor", "version"],
1872
+ type: "object",
1873
+ },
1874
+ MadeByPlugin: {
1875
+ additionalProperties: false,
1876
+ properties: {
1877
+ artifact_sha256: { type: "string" },
1878
+ version: { type: "string" },
1879
+ },
1880
+ required: ["version", "artifact_sha256"],
1881
+ type: "object",
1882
+ },
1406
1883
  MaskMode: {
1407
1884
  oneOf: [
1408
1885
  { const: "add", type: "string" },
@@ -1416,6 +1893,7 @@ export const PROJECT_SHAPE = {
1416
1893
  effects: {
1417
1894
  default: [],
1418
1895
  items: { $ref: "#/$defs/AudioEffect" },
1896
+ maxItems: 16,
1419
1897
  type: "array",
1420
1898
  },
1421
1899
  gain: {
@@ -1569,6 +2047,7 @@ export const PROJECT_SHAPE = {
1569
2047
  additionalProperties: {
1570
2048
  anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1571
2049
  },
2050
+ maxProperties: 8,
1572
2051
  type: "object",
1573
2052
  },
1574
2053
  type: { const: "effect", type: "string" },
@@ -1622,6 +2101,7 @@ export const PROJECT_SHAPE = {
1622
2101
  layers: {
1623
2102
  default: [],
1624
2103
  items: { $ref: "#/$defs/MergeLayer" },
2104
+ maxItems: 32,
1625
2105
  type: "array",
1626
2106
  },
1627
2107
  type: { const: "merge", type: "string" },
@@ -1653,7 +2133,11 @@ export const PROJECT_SHAPE = {
1653
2133
  anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }],
1654
2134
  default: null,
1655
2135
  },
1656
- masks: { items: { $ref: "#/$defs/ShapeMask" }, type: "array" },
2136
+ masks: {
2137
+ items: { $ref: "#/$defs/ShapeMask" },
2138
+ maxItems: 8,
2139
+ type: "array",
2140
+ },
1657
2141
  type: { const: "shape_mask", type: "string" },
1658
2142
  },
1659
2143
  required: ["type", "masks"],
@@ -1670,6 +2154,7 @@ export const PROJECT_SHAPE = {
1670
2154
  inputs: {
1671
2155
  default: [],
1672
2156
  items: { anyOf: [{ $ref: "#/$defs/NodeId" }, { type: "null" }] },
2157
+ maxItems: 16,
1673
2158
  type: "array",
1674
2159
  },
1675
2160
  type: { const: "group", type: "string" },
@@ -1716,7 +2201,11 @@ export const PROJECT_SHAPE = {
1716
2201
  end: { $ref: "#/$defs/Vec2" },
1717
2202
  spread: { $ref: "#/$defs/Spread", default: "pad" },
1718
2203
  start: { $ref: "#/$defs/Vec2" },
1719
- stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
2204
+ stops: {
2205
+ items: { $ref: "#/$defs/GradientStop" },
2206
+ maxItems: 8,
2207
+ type: "array",
2208
+ },
1720
2209
  type: { const: "linear_gradient", type: "string" },
1721
2210
  },
1722
2211
  required: ["type", "start", "end", "stops"],
@@ -1728,7 +2217,11 @@ export const PROJECT_SHAPE = {
1728
2217
  center: { $ref: "#/$defs/Vec2" },
1729
2218
  radius: { format: "float", type: "number" },
1730
2219
  spread: { $ref: "#/$defs/Spread", default: "pad" },
1731
- stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
2220
+ stops: {
2221
+ items: { $ref: "#/$defs/GradientStop" },
2222
+ maxItems: 8,
2223
+ type: "array",
2224
+ },
1732
2225
  type: { const: "radial_gradient", type: "string" },
1733
2226
  },
1734
2227
  required: ["type", "center", "radius", "stops"],
@@ -1739,7 +2232,11 @@ export const PROJECT_SHAPE = {
1739
2232
  properties: {
1740
2233
  angle_degrees: { default: 0, format: "float", type: "number" },
1741
2234
  center: { $ref: "#/$defs/Vec2" },
1742
- stops: { items: { $ref: "#/$defs/GradientStop" }, type: "array" },
2235
+ stops: {
2236
+ items: { $ref: "#/$defs/GradientStop" },
2237
+ maxItems: 8,
2238
+ type: "array",
2239
+ },
1743
2240
  type: { const: "conic_gradient", type: "string" },
1744
2241
  },
1745
2242
  required: ["type", "center", "stops"],
@@ -1751,7 +2248,11 @@ export const PROJECT_SHAPE = {
1751
2248
  Path: {
1752
2249
  additionalProperties: false,
1753
2250
  properties: {
1754
- subpaths: { items: { $ref: "#/$defs/Subpath" }, type: "array" },
2251
+ subpaths: {
2252
+ items: { $ref: "#/$defs/Subpath" },
2253
+ maxItems: 256,
2254
+ type: "array",
2255
+ },
1755
2256
  },
1756
2257
  required: ["subpaths"],
1757
2258
  type: "object",
@@ -1854,7 +2355,11 @@ export const PROJECT_SHAPE = {
1854
2355
  properties: {
1855
2356
  format: { const: "image_sequence", type: "string" },
1856
2357
  frame_rate: { $ref: "#/$defs/FrameRate" },
1857
- frames: { items: { type: ["string", "null"] }, type: "array" },
2358
+ frames: {
2359
+ items: { type: ["string", "null"] },
2360
+ maxItems: 100000,
2361
+ type: "array",
2362
+ },
1858
2363
  missing: { $ref: "#/$defs/MissingFrames", default: "reject" },
1859
2364
  primaries: {
1860
2365
  anyOf: [{ $ref: "#/$defs/LinearPrimaries" }, { type: "null" }],
@@ -2042,7 +2547,7 @@ export const PROJECT_SHAPE = {
2042
2547
  {
2043
2548
  additionalProperties: false,
2044
2549
  properties: {
2045
- path: { $ref: "#/$defs/Animated_Path" },
2550
+ path: { $ref: "#/$defs/Keyframed_Path" },
2046
2551
  type: { const: "path", type: "string" },
2047
2552
  },
2048
2553
  required: ["type", "path"],
@@ -2055,7 +2560,11 @@ export const PROJECT_SHAPE = {
2055
2560
  {
2056
2561
  additionalProperties: false,
2057
2562
  properties: {
2058
- items: { items: { $ref: "#/$defs/ShapeItem" }, type: "array" },
2563
+ items: {
2564
+ items: { $ref: "#/$defs/ShapeItem" },
2565
+ maxItems: 1024,
2566
+ type: "array",
2567
+ },
2059
2568
  transform: {
2060
2569
  $ref: "#/$defs/ShapeTransform",
2061
2570
  default: {
@@ -2134,7 +2643,7 @@ export const PROJECT_SHAPE = {
2134
2643
  {
2135
2644
  additionalProperties: false,
2136
2645
  properties: {
2137
- path: { $ref: "#/$defs/Animated_Path" },
2646
+ path: { $ref: "#/$defs/Keyframed_Path" },
2138
2647
  type: { const: "path", type: "string" },
2139
2648
  },
2140
2649
  required: ["type", "path"],
@@ -2147,7 +2656,7 @@ export const PROJECT_SHAPE = {
2147
2656
  $ref: "#/$defs/Animated_float",
2148
2657
  default: { mode: "constant", value: 1 },
2149
2658
  },
2150
- paint: { $ref: "#/$defs/Animated_Paint" },
2659
+ paint: { $ref: "#/$defs/Keyframed_Paint" },
2151
2660
  rule: { $ref: "#/$defs/FillRule", default: "nonzero" },
2152
2661
  type: { const: "fill", type: "string" },
2153
2662
  },
@@ -2168,7 +2677,7 @@ export const PROJECT_SHAPE = {
2168
2677
  $ref: "#/$defs/Animated_float",
2169
2678
  default: { mode: "constant", value: 1 },
2170
2679
  },
2171
- paint: { $ref: "#/$defs/Animated_Paint" },
2680
+ paint: { $ref: "#/$defs/Keyframed_Paint" },
2172
2681
  type: { const: "stroke", type: "string" },
2173
2682
  width: { $ref: "#/$defs/Animated_float" },
2174
2683
  },
@@ -2257,7 +2766,11 @@ export const PROJECT_SHAPE = {
2257
2766
  additionalProperties: false,
2258
2767
  properties: {
2259
2768
  closed: { default: false, type: "boolean" },
2260
- vertices: { items: { $ref: "#/$defs/PathVertex" }, type: "array" },
2769
+ vertices: {
2770
+ items: { $ref: "#/$defs/PathVertex" },
2771
+ maxItems: 4096,
2772
+ type: "array",
2773
+ },
2261
2774
  },
2262
2775
  required: ["vertices"],
2263
2776
  type: "object",
@@ -2281,7 +2794,7 @@ export const PROJECT_SHAPE = {
2281
2794
  TextAnimatorProperties: {
2282
2795
  additionalProperties: false,
2283
2796
  properties: {
2284
- fill: { anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }] },
2797
+ fill: { anyOf: [{ $ref: "#/$defs/Keyframed_Rgba" }, { type: "null" }] },
2285
2798
  offset: {
2286
2799
  anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }],
2287
2800
  },
@@ -2293,7 +2806,7 @@ export const PROJECT_SHAPE = {
2293
2806
  },
2294
2807
  scale: { anyOf: [{ $ref: "#/$defs/Animated_Vec2" }, { type: "null" }] },
2295
2808
  stroke: {
2296
- anyOf: [{ $ref: "#/$defs/Animated_Rgba" }, { type: "null" }],
2809
+ anyOf: [{ $ref: "#/$defs/Keyframed_Rgba" }, { type: "null" }],
2297
2810
  },
2298
2811
  tracking: {
2299
2812
  anyOf: [{ $ref: "#/$defs/Animated_float" }, { type: "null" }],
@@ -2313,13 +2826,13 @@ export const PROJECT_SHAPE = {
2313
2826
  TextContent: {
2314
2827
  anyOf: [
2315
2828
  { type: "string" },
2316
- { items: { $ref: "#/$defs/TextRun" }, type: "array" },
2829
+ { items: { $ref: "#/$defs/TextRun" }, maxItems: 512, type: "array" },
2317
2830
  ],
2318
2831
  },
2319
2832
  TextRun: {
2320
2833
  additionalProperties: false,
2321
2834
  properties: {
2322
- class: { items: { type: "string" }, type: "array" },
2835
+ class: { items: { type: "string" }, maxItems: 8, type: "array" },
2323
2836
  text: { type: "string" },
2324
2837
  time: { anyOf: [{ $ref: "#/$defs/RunTime" }, { type: "null" }] },
2325
2838
  },
@@ -2401,7 +2914,11 @@ export const PROJECT_SHAPE = {
2401
2914
  properties: {
2402
2915
  align: { $ref: "#/$defs/TextAlign", default: "center" },
2403
2916
  anchor: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 1 } },
2404
- animators: { items: { $ref: "#/$defs/TextAnimator" }, type: "array" },
2917
+ animators: {
2918
+ items: { $ref: "#/$defs/TextAnimator" },
2919
+ maxItems: 8,
2920
+ type: "array",
2921
+ },
2405
2922
  background: {
2406
2923
  anyOf: [{ $ref: "#/$defs/TextBackground" }, { type: "null" }],
2407
2924
  default: null,
@@ -2415,6 +2932,9 @@ export const PROJECT_SHAPE = {
2415
2932
  },
2416
2933
  font_family: { type: ["string", "null"] },
2417
2934
  font_size: { default: 0.05, format: "float", type: "number" },
2935
+ font_size_fit: {
2936
+ anyOf: [{ $ref: "#/$defs/FontSizeFit" }, { type: "null" }],
2937
+ },
2418
2938
  font_weight: {
2419
2939
  default: 400,
2420
2940
  format: "uint16",
@@ -2423,11 +2943,23 @@ export const PROJECT_SHAPE = {
2423
2943
  type: "integer",
2424
2944
  },
2425
2945
  letter_spacing: { default: 0, format: "float", type: "number" },
2946
+ line_clamp: {
2947
+ anyOf: [{ $ref: "#/$defs/LineClamp" }, { type: "null" }],
2948
+ },
2426
2949
  line_height: { default: 1.2, format: "float", type: "number" },
2950
+ max_height: { format: "float", type: ["number", "null"] },
2427
2951
  max_width: { default: 0.9, format: "float", type: "number" },
2428
2952
  position: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 0.92 } },
2429
- shadows: { items: { $ref: "#/$defs/TextShadow" }, type: "array" },
2430
- strokes: { items: { $ref: "#/$defs/TextStroke" }, type: "array" },
2953
+ shadows: {
2954
+ items: { $ref: "#/$defs/TextShadow" },
2955
+ maxItems: 4,
2956
+ type: "array",
2957
+ },
2958
+ strokes: {
2959
+ items: { $ref: "#/$defs/TextStroke" },
2960
+ maxItems: 4,
2961
+ type: "array",
2962
+ },
2431
2963
  },
2432
2964
  type: "object",
2433
2965
  },
@@ -2438,6 +2970,7 @@ export const PROJECT_SHAPE = {
2438
2970
  anchor: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
2439
2971
  animators: {
2440
2972
  items: { $ref: "#/$defs/TextAnimator" },
2973
+ maxItems: 8,
2441
2974
  type: ["array", "null"],
2442
2975
  },
2443
2976
  background: {
@@ -2446,6 +2979,9 @@ export const PROJECT_SHAPE = {
2446
2979
  fill: { anyOf: [{ $ref: "#/$defs/Paint" }, { type: "null" }] },
2447
2980
  font_family: { type: ["string", "null"] },
2448
2981
  font_size: { format: "float", type: ["number", "null"] },
2982
+ font_size_fit: {
2983
+ anyOf: [{ $ref: "#/$defs/FontSizeFit" }, { type: "null" }],
2984
+ },
2449
2985
  font_weight: {
2450
2986
  format: "uint16",
2451
2987
  maximum: 65535,
@@ -2453,15 +2989,21 @@ export const PROJECT_SHAPE = {
2453
2989
  type: ["integer", "null"],
2454
2990
  },
2455
2991
  letter_spacing: { format: "float", type: ["number", "null"] },
2992
+ line_clamp: {
2993
+ anyOf: [{ $ref: "#/$defs/LineClamp" }, { type: "null" }],
2994
+ },
2456
2995
  line_height: { format: "float", type: ["number", "null"] },
2996
+ max_height: { format: "float", type: ["number", "null"] },
2457
2997
  max_width: { format: "float", type: ["number", "null"] },
2458
2998
  position: { anyOf: [{ $ref: "#/$defs/Vec2" }, { type: "null" }] },
2459
2999
  shadows: {
2460
3000
  items: { $ref: "#/$defs/TextShadow" },
3001
+ maxItems: 4,
2461
3002
  type: ["array", "null"],
2462
3003
  },
2463
3004
  strokes: {
2464
3005
  items: { $ref: "#/$defs/TextStroke" },
3006
+ maxItems: 4,
2465
3007
  type: ["array", "null"],
2466
3008
  },
2467
3009
  },
@@ -2540,7 +3082,11 @@ export const PROJECT_SHAPE = {
2540
3082
  Timeline: {
2541
3083
  additionalProperties: false,
2542
3084
  properties: {
2543
- tracks: { items: { $ref: "#/$defs/Track" }, type: "array" },
3085
+ tracks: {
3086
+ items: { $ref: "#/$defs/Track" },
3087
+ maxItems: 256,
3088
+ type: "array",
3089
+ },
2544
3090
  },
2545
3091
  required: ["tracks"],
2546
3092
  type: "object",
@@ -2563,13 +3109,19 @@ export const PROJECT_SHAPE = {
2563
3109
  anyOf: [{ $ref: "#/$defs/Captions" }, { type: "null" }],
2564
3110
  default: null,
2565
3111
  },
2566
- clips: { default: [], items: { $ref: "#/$defs/Clip" }, type: "array" },
3112
+ clips: {
3113
+ default: [],
3114
+ items: { $ref: "#/$defs/Clip" },
3115
+ maxItems: 4096,
3116
+ type: "array",
3117
+ },
2567
3118
  id: { $ref: "#/$defs/TrackId" },
2568
3119
  kind: { $ref: "#/$defs/TrackKind" },
2569
3120
  name: { type: "string" },
2570
3121
  transitions: {
2571
3122
  default: [],
2572
3123
  items: { $ref: "#/$defs/ClipTransition" },
3124
+ maxItems: 4096,
2573
3125
  type: "array",
2574
3126
  },
2575
3127
  },
@@ -2586,6 +3138,7 @@ export const PROJECT_SHAPE = {
2586
3138
  effects: {
2587
3139
  default: [],
2588
3140
  items: { $ref: "#/$defs/AudioEffect" },
3141
+ maxItems: 16,
2589
3142
  type: "array",
2590
3143
  },
2591
3144
  gain: {
@@ -2659,6 +3212,9 @@ export const PROJECT_SHAPE = {
2659
3212
  additionalProperties: false,
2660
3213
  properties: {
2661
3214
  anchor: { $ref: "#/$defs/Vec2", default: { x: 0.5, y: 0.5 } },
3215
+ correction: {
3216
+ anyOf: [{ $ref: "#/$defs/CorrectionRef" }, { type: "null" }],
3217
+ },
2662
3218
  opacity: {
2663
3219
  $ref: "#/$defs/Animated_float",
2664
3220
  default: { mode: "constant", value: 1 },
@@ -2681,6 +3237,7 @@ export const PROJECT_SHAPE = {
2681
3237
  },
2682
3238
  additionalProperties: false,
2683
3239
  properties: {
3240
+ $schema: { default: null, type: ["string", "null"] },
2684
3241
  audio: {
2685
3242
  $ref: "#/$defs/MasterAudio",
2686
3243
  default: {
@@ -2692,11 +3249,19 @@ export const PROJECT_SHAPE = {
2692
3249
  compositions: {
2693
3250
  default: [],
2694
3251
  items: { $ref: "#/$defs/Composition" },
3252
+ maxItems: 10000,
3253
+ type: "array",
3254
+ },
3255
+ data: {
3256
+ default: [],
3257
+ items: { $ref: "#/$defs/DataSet" },
3258
+ maxItems: 256,
2695
3259
  type: "array",
2696
3260
  },
2697
3261
  effect_resources: {
2698
3262
  default: [],
2699
3263
  items: { $ref: "#/$defs/EffectResource" },
3264
+ maxItems: 10000,
2700
3265
  type: "array",
2701
3266
  },
2702
3267
  id: { $ref: "#/$defs/ProjectId" },
@@ -2709,7 +3274,11 @@ export const PROJECT_SHAPE = {
2709
3274
  type: "integer",
2710
3275
  },
2711
3276
  settings: { $ref: "#/$defs/ProjectSettings" },
2712
- sources: { items: { $ref: "#/$defs/MediaSource" }, type: "array" },
3277
+ sources: {
3278
+ items: { $ref: "#/$defs/MediaSource" },
3279
+ maxItems: 100000,
3280
+ type: "array",
3281
+ },
2713
3282
  timeline: { $ref: "#/$defs/Timeline" },
2714
3283
  },
2715
3284
  required: ["schema_version", "id", "name", "settings", "sources", "timeline"],