@cueframe/api-contract 4.1.0 → 4.2.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.
package/dist/openapi.json CHANGED
@@ -1823,11 +1823,1362 @@
1823
1823
  }
1824
1824
  ]
1825
1825
  },
1826
+ "CompositionRead": {
1827
+ "type": "object",
1828
+ "properties": {
1829
+ "v": {
1830
+ "type": "number",
1831
+ "const": 1
1832
+ },
1833
+ "format": {
1834
+ "$ref": "#/components/schemas/Format"
1835
+ },
1836
+ "tracks": {
1837
+ "type": "array",
1838
+ "items": {
1839
+ "type": "object",
1840
+ "properties": {
1841
+ "id": {
1842
+ "type": "string",
1843
+ "minLength": 1
1844
+ },
1845
+ "kind": {
1846
+ "type": "string",
1847
+ "enum": [
1848
+ "video",
1849
+ "audio",
1850
+ "image",
1851
+ "overlay",
1852
+ "effect"
1853
+ ]
1854
+ },
1855
+ "name": {
1856
+ "type": "string"
1857
+ },
1858
+ "enabled": {
1859
+ "type": "boolean"
1860
+ },
1861
+ "volume": {
1862
+ "type": "number",
1863
+ "minimum": 0,
1864
+ "maximum": 4
1865
+ },
1866
+ "contents": {
1867
+ "type": "array",
1868
+ "items": {
1869
+ "anyOf": [
1870
+ {
1871
+ "$ref": "#/components/schemas/TimelineClip"
1872
+ },
1873
+ {
1874
+ "type": "object",
1875
+ "properties": {
1876
+ "id": {
1877
+ "type": "string",
1878
+ "minLength": 1
1879
+ },
1880
+ "startTime": {
1881
+ "type": "number",
1882
+ "minimum": 0
1883
+ },
1884
+ "duration": {
1885
+ "type": "number",
1886
+ "exclusiveMinimum": 0
1887
+ }
1888
+ },
1889
+ "required": [
1890
+ "id",
1891
+ "startTime",
1892
+ "duration"
1893
+ ],
1894
+ "additionalProperties": false
1895
+ }
1896
+ ]
1897
+ }
1898
+ }
1899
+ },
1900
+ "required": [
1901
+ "id",
1902
+ "kind",
1903
+ "contents"
1904
+ ],
1905
+ "additionalProperties": false
1906
+ }
1907
+ },
1908
+ "markers": {
1909
+ "type": "array",
1910
+ "items": {
1911
+ "type": "object",
1912
+ "properties": {
1913
+ "id": {
1914
+ "type": "string",
1915
+ "minLength": 1
1916
+ },
1917
+ "startTime": {
1918
+ "type": "number",
1919
+ "minimum": 0
1920
+ },
1921
+ "endTime": {
1922
+ "type": "number",
1923
+ "minimum": 0
1924
+ },
1925
+ "kind": {
1926
+ "type": "string",
1927
+ "minLength": 1
1928
+ },
1929
+ "name": {
1930
+ "type": "string"
1931
+ },
1932
+ "metadata": {
1933
+ "type": "object",
1934
+ "propertyNames": {
1935
+ "type": "string"
1936
+ },
1937
+ "additionalProperties": {}
1938
+ }
1939
+ },
1940
+ "required": [
1941
+ "id",
1942
+ "startTime",
1943
+ "kind"
1944
+ ],
1945
+ "additionalProperties": false
1946
+ }
1947
+ },
1948
+ "captions": {
1949
+ "oneOf": [
1950
+ {
1951
+ "type": "object",
1952
+ "properties": {
1953
+ "source": {
1954
+ "type": "string",
1955
+ "const": "derived"
1956
+ },
1957
+ "from": {
1958
+ "type": "object",
1959
+ "properties": {
1960
+ "clipId": {
1961
+ "type": "string"
1962
+ }
1963
+ },
1964
+ "required": [
1965
+ "clipId"
1966
+ ]
1967
+ },
1968
+ "segments": {
1969
+ "type": "array",
1970
+ "items": {
1971
+ "type": "object",
1972
+ "properties": {
1973
+ "words": {
1974
+ "type": "array",
1975
+ "items": {
1976
+ "type": "object",
1977
+ "properties": {
1978
+ "text": {
1979
+ "type": "string",
1980
+ "minLength": 1
1981
+ },
1982
+ "startMs": {
1983
+ "type": "number",
1984
+ "minimum": 0,
1985
+ "description": "Word start on the composition timeline, in milliseconds."
1986
+ },
1987
+ "endMs": {
1988
+ "type": "number",
1989
+ "minimum": 0,
1990
+ "description": "Word end on the composition timeline, in milliseconds."
1991
+ },
1992
+ "emphasis": {
1993
+ "type": "boolean"
1994
+ },
1995
+ "annotate": {
1996
+ "type": "string",
1997
+ "enum": [
1998
+ "circle",
1999
+ "underline"
2000
+ ]
2001
+ }
2002
+ },
2003
+ "required": [
2004
+ "text",
2005
+ "startMs",
2006
+ "endMs"
2007
+ ]
2008
+ }
2009
+ }
2010
+ },
2011
+ "required": [
2012
+ "words"
2013
+ ]
2014
+ }
2015
+ },
2016
+ "style": {
2017
+ "type": "object",
2018
+ "properties": {
2019
+ "fontFamily": {
2020
+ "type": "string",
2021
+ "minLength": 1
2022
+ },
2023
+ "fontSize": {
2024
+ "description": "Font size as % of composition height (1-15, default 5). NOT px.",
2025
+ "type": "number",
2026
+ "minimum": 1,
2027
+ "maximum": 15
2028
+ },
2029
+ "fontWeight": {
2030
+ "type": "integer",
2031
+ "minimum": 100,
2032
+ "maximum": 900
2033
+ },
2034
+ "color": {
2035
+ "type": "string",
2036
+ "minLength": 1
2037
+ },
2038
+ "highlightColor": {
2039
+ "type": "string",
2040
+ "minLength": 1
2041
+ },
2042
+ "backgroundColor": {
2043
+ "type": "string"
2044
+ },
2045
+ "plate": {
2046
+ "type": "string",
2047
+ "enum": [
2048
+ "glass",
2049
+ "solid",
2050
+ "none"
2051
+ ]
2052
+ },
2053
+ "position": {
2054
+ "type": "string",
2055
+ "enum": [
2056
+ "top",
2057
+ "center",
2058
+ "bottom"
2059
+ ]
2060
+ },
2061
+ "region": {
2062
+ "description": "Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height.",
2063
+ "type": "object",
2064
+ "properties": {
2065
+ "x": {
2066
+ "type": "number",
2067
+ "minimum": 0,
2068
+ "maximum": 1
2069
+ },
2070
+ "y": {
2071
+ "type": "number",
2072
+ "minimum": 0,
2073
+ "maximum": 1
2074
+ },
2075
+ "w": {
2076
+ "type": "number",
2077
+ "exclusiveMinimum": 0,
2078
+ "maximum": 1
2079
+ },
2080
+ "h": {
2081
+ "type": "number",
2082
+ "exclusiveMinimum": 0,
2083
+ "maximum": 1
2084
+ }
2085
+ },
2086
+ "required": [
2087
+ "x",
2088
+ "y",
2089
+ "w",
2090
+ "h"
2091
+ ]
2092
+ },
2093
+ "textTransform": {
2094
+ "type": "string",
2095
+ "enum": [
2096
+ "none",
2097
+ "uppercase",
2098
+ "capitalize"
2099
+ ]
2100
+ },
2101
+ "letterSpacing": {
2102
+ "description": "Base caption glyph spacing in pixels.",
2103
+ "type": "number",
2104
+ "minimum": -5,
2105
+ "maximum": 20
2106
+ },
2107
+ "wordGapEm": {
2108
+ "description": "Gap between caption runs as a multiple of base font size; default 0.35.",
2109
+ "type": "number",
2110
+ "minimum": 0,
2111
+ "maximum": 2
2112
+ },
2113
+ "lineGapEm": {
2114
+ "description": "Gap between caption lines as a multiple of base font size; default 0.25.",
2115
+ "type": "number",
2116
+ "minimum": 0,
2117
+ "maximum": 2
2118
+ },
2119
+ "emphasisColor": {
2120
+ "type": "string"
2121
+ },
2122
+ "emphasisGradient": {
2123
+ "type": "string"
2124
+ },
2125
+ "emphasisScale": {
2126
+ "type": "number",
2127
+ "exclusiveMinimum": 0
2128
+ },
2129
+ "emphasisFontFamily": {
2130
+ "type": "string"
2131
+ },
2132
+ "emphasisFontWeight": {
2133
+ "type": "integer",
2134
+ "minimum": 100,
2135
+ "maximum": 900
2136
+ },
2137
+ "emphasisTextTransform": {
2138
+ "type": "string",
2139
+ "enum": [
2140
+ "none",
2141
+ "uppercase",
2142
+ "capitalize"
2143
+ ]
2144
+ },
2145
+ "emphasisLetterSpacing": {
2146
+ "type": "number"
2147
+ },
2148
+ "emphasisFontStyle": {
2149
+ "type": "string",
2150
+ "enum": [
2151
+ "normal",
2152
+ "italic"
2153
+ ]
2154
+ },
2155
+ "entrance": {
2156
+ "type": "string",
2157
+ "enum": [
2158
+ "none",
2159
+ "fade",
2160
+ "word-pop",
2161
+ "stagger-up"
2162
+ ]
2163
+ },
2164
+ "entranceMs": {
2165
+ "type": "number",
2166
+ "minimum": 0
2167
+ },
2168
+ "entranceStaggerMs": {
2169
+ "type": "number",
2170
+ "minimum": 0
2171
+ },
2172
+ "exitMs": {
2173
+ "type": "number",
2174
+ "minimum": 0
2175
+ },
2176
+ "emphasisPlate": {
2177
+ "type": "boolean"
2178
+ },
2179
+ "emphasisPlateColor": {
2180
+ "type": "string"
2181
+ },
2182
+ "emphasisPlateTextColor": {
2183
+ "type": "string"
2184
+ },
2185
+ "emphasisPlateAltColor": {
2186
+ "type": "string"
2187
+ },
2188
+ "emphasisPlateAltTextColor": {
2189
+ "type": "string"
2190
+ },
2191
+ "emphasisPlateRadius": {
2192
+ "type": "number",
2193
+ "minimum": 0
2194
+ },
2195
+ "emphasisPlatePadX": {
2196
+ "type": "number"
2197
+ },
2198
+ "emphasisPlatePadY": {
2199
+ "type": "number"
2200
+ },
2201
+ "emphasisPlateReveal": {
2202
+ "description": "Grow a shared emphasis plate as saved words appear while reserving its final layout width.",
2203
+ "type": "boolean"
2204
+ },
2205
+ "annotationColor": {
2206
+ "type": "string"
2207
+ },
2208
+ "annotationStrokeWidth": {
2209
+ "description": "Annotation stroke width in its 100×100 SVG coordinate system; default 4.",
2210
+ "type": "number",
2211
+ "minimum": 0.5,
2212
+ "maximum": 12
2213
+ },
2214
+ "annotationTexture": {
2215
+ "description": "Native annotation stroke finish; default clean.",
2216
+ "type": "string",
2217
+ "enum": [
2218
+ "clean",
2219
+ "pencil"
2220
+ ]
2221
+ },
2222
+ "maxWidthPercent": {
2223
+ "type": "number",
2224
+ "exclusiveMinimum": 0,
2225
+ "maximum": 100
2226
+ }
2227
+ }
2228
+ },
2229
+ "layouts": {
2230
+ "type": "array",
2231
+ "items": {
2232
+ "type": "object",
2233
+ "properties": {
2234
+ "segmentIndex": {
2235
+ "type": "integer",
2236
+ "minimum": 0,
2237
+ "maximum": 9007199254740991
2238
+ },
2239
+ "wordStartIndex": {
2240
+ "type": "integer",
2241
+ "minimum": 0,
2242
+ "maximum": 9007199254740991
2243
+ },
2244
+ "wordEndIndex": {
2245
+ "type": "integer",
2246
+ "exclusiveMinimum": 0,
2247
+ "maximum": 9007199254740991,
2248
+ "description": "Exclusive word index in the saved caption segment."
2249
+ },
2250
+ "region": {
2251
+ "type": "object",
2252
+ "properties": {
2253
+ "x": {
2254
+ "type": "number",
2255
+ "minimum": 0,
2256
+ "maximum": 1
2257
+ },
2258
+ "y": {
2259
+ "type": "number",
2260
+ "minimum": 0,
2261
+ "maximum": 1
2262
+ },
2263
+ "w": {
2264
+ "type": "number",
2265
+ "exclusiveMinimum": 0,
2266
+ "maximum": 1
2267
+ },
2268
+ "h": {
2269
+ "type": "number",
2270
+ "exclusiveMinimum": 0,
2271
+ "maximum": 1
2272
+ }
2273
+ },
2274
+ "required": [
2275
+ "x",
2276
+ "y",
2277
+ "w",
2278
+ "h"
2279
+ ]
2280
+ },
2281
+ "scale": {
2282
+ "type": "number",
2283
+ "minimum": 0.25,
2284
+ "maximum": 4
2285
+ },
2286
+ "rotation": {
2287
+ "type": "number",
2288
+ "minimum": -45,
2289
+ "maximum": 45
2290
+ },
2291
+ "style": {
2292
+ "type": "object",
2293
+ "properties": {
2294
+ "fontFamily": {
2295
+ "type": "string",
2296
+ "minLength": 1
2297
+ },
2298
+ "fontSize": {
2299
+ "description": "Font size as % of composition height (1-15, default 5). NOT px.",
2300
+ "type": "number",
2301
+ "minimum": 1,
2302
+ "maximum": 15
2303
+ },
2304
+ "fontWeight": {
2305
+ "type": "integer",
2306
+ "minimum": 100,
2307
+ "maximum": 900
2308
+ },
2309
+ "color": {
2310
+ "type": "string",
2311
+ "minLength": 1
2312
+ },
2313
+ "highlightColor": {
2314
+ "type": "string",
2315
+ "minLength": 1
2316
+ },
2317
+ "backgroundColor": {
2318
+ "type": "string"
2319
+ },
2320
+ "plate": {
2321
+ "type": "string",
2322
+ "enum": [
2323
+ "glass",
2324
+ "solid",
2325
+ "none"
2326
+ ]
2327
+ },
2328
+ "textTransform": {
2329
+ "type": "string",
2330
+ "enum": [
2331
+ "none",
2332
+ "uppercase",
2333
+ "capitalize"
2334
+ ]
2335
+ },
2336
+ "letterSpacing": {
2337
+ "description": "Base caption glyph spacing in pixels.",
2338
+ "type": "number",
2339
+ "minimum": -5,
2340
+ "maximum": 20
2341
+ },
2342
+ "wordGapEm": {
2343
+ "description": "Gap between caption runs as a multiple of base font size; default 0.35.",
2344
+ "type": "number",
2345
+ "minimum": 0,
2346
+ "maximum": 2
2347
+ },
2348
+ "lineGapEm": {
2349
+ "description": "Gap between caption lines as a multiple of base font size; default 0.25.",
2350
+ "type": "number",
2351
+ "minimum": 0,
2352
+ "maximum": 2
2353
+ },
2354
+ "emphasisColor": {
2355
+ "type": "string"
2356
+ },
2357
+ "emphasisScale": {
2358
+ "type": "number",
2359
+ "exclusiveMinimum": 0
2360
+ },
2361
+ "emphasisFontFamily": {
2362
+ "type": "string"
2363
+ },
2364
+ "emphasisFontWeight": {
2365
+ "type": "integer",
2366
+ "minimum": 100,
2367
+ "maximum": 900
2368
+ },
2369
+ "emphasisTextTransform": {
2370
+ "type": "string",
2371
+ "enum": [
2372
+ "none",
2373
+ "uppercase",
2374
+ "capitalize"
2375
+ ]
2376
+ },
2377
+ "emphasisLetterSpacing": {
2378
+ "type": "number"
2379
+ },
2380
+ "emphasisFontStyle": {
2381
+ "type": "string",
2382
+ "enum": [
2383
+ "normal",
2384
+ "italic"
2385
+ ]
2386
+ },
2387
+ "emphasisPlate": {
2388
+ "type": "boolean"
2389
+ },
2390
+ "emphasisPlateColor": {
2391
+ "type": "string"
2392
+ },
2393
+ "emphasisPlateTextColor": {
2394
+ "type": "string"
2395
+ },
2396
+ "emphasisPlateAltColor": {
2397
+ "type": "string"
2398
+ },
2399
+ "emphasisPlateAltTextColor": {
2400
+ "type": "string"
2401
+ },
2402
+ "emphasisPlateRadius": {
2403
+ "type": "number",
2404
+ "minimum": 0
2405
+ },
2406
+ "emphasisPlatePadX": {
2407
+ "type": "number"
2408
+ },
2409
+ "emphasisPlatePadY": {
2410
+ "type": "number"
2411
+ },
2412
+ "emphasisPlateReveal": {
2413
+ "description": "Grow a shared emphasis plate as saved words appear while reserving its final layout width.",
2414
+ "type": "boolean"
2415
+ },
2416
+ "annotationColor": {
2417
+ "type": "string"
2418
+ },
2419
+ "annotationStrokeWidth": {
2420
+ "description": "Annotation stroke width in its 100×100 SVG coordinate system; default 4.",
2421
+ "type": "number",
2422
+ "minimum": 0.5,
2423
+ "maximum": 12
2424
+ },
2425
+ "annotationTexture": {
2426
+ "description": "Native annotation stroke finish; default clean.",
2427
+ "type": "string",
2428
+ "enum": [
2429
+ "clean",
2430
+ "pencil"
2431
+ ]
2432
+ },
2433
+ "entrance": {
2434
+ "type": "string",
2435
+ "enum": [
2436
+ "none",
2437
+ "fade",
2438
+ "word-pop",
2439
+ "stagger-up"
2440
+ ]
2441
+ },
2442
+ "entranceMs": {
2443
+ "type": "number",
2444
+ "minimum": 0
2445
+ },
2446
+ "entranceStaggerMs": {
2447
+ "type": "number",
2448
+ "minimum": 0
2449
+ },
2450
+ "exitMs": {
2451
+ "type": "number",
2452
+ "minimum": 0
2453
+ }
2454
+ },
2455
+ "additionalProperties": false
2456
+ },
2457
+ "holdThroughWordIndex": {
2458
+ "description": "Inclusive saved-word index in this segment. The layout stays visible until that word ends.",
2459
+ "type": "integer",
2460
+ "minimum": 0,
2461
+ "maximum": 9007199254740991
2462
+ },
2463
+ "wordMarks": {
2464
+ "type": "array",
2465
+ "items": {
2466
+ "type": "object",
2467
+ "properties": {
2468
+ "wordIndex": {
2469
+ "type": "integer",
2470
+ "minimum": 0,
2471
+ "maximum": 9007199254740991
2472
+ },
2473
+ "emphasis": {
2474
+ "type": "boolean"
2475
+ },
2476
+ "annotate": {
2477
+ "anyOf": [
2478
+ {
2479
+ "type": "string",
2480
+ "enum": [
2481
+ "circle",
2482
+ "underline"
2483
+ ]
2484
+ },
2485
+ {
2486
+ "type": "null"
2487
+ }
2488
+ ]
2489
+ }
2490
+ },
2491
+ "required": [
2492
+ "wordIndex"
2493
+ ],
2494
+ "additionalProperties": false
2495
+ }
2496
+ },
2497
+ "wordSignature": {
2498
+ "type": "string",
2499
+ "pattern": "^[a-f0-9]{64}$"
2500
+ }
2501
+ },
2502
+ "required": [
2503
+ "segmentIndex",
2504
+ "wordStartIndex",
2505
+ "wordEndIndex",
2506
+ "region",
2507
+ "wordSignature"
2508
+ ],
2509
+ "additionalProperties": false
2510
+ }
2511
+ },
2512
+ "zPlane": {
2513
+ "type": "string",
2514
+ "enum": [
2515
+ "front",
2516
+ "behind-subject"
2517
+ ]
2518
+ }
2519
+ },
2520
+ "required": [
2521
+ "source",
2522
+ "from",
2523
+ "segments"
2524
+ ]
2525
+ },
2526
+ {
2527
+ "type": "object",
2528
+ "properties": {
2529
+ "source": {
2530
+ "type": "string",
2531
+ "const": "authored"
2532
+ },
2533
+ "segments": {
2534
+ "type": "array",
2535
+ "items": {
2536
+ "type": "object",
2537
+ "properties": {
2538
+ "words": {
2539
+ "type": "array",
2540
+ "items": {
2541
+ "type": "object",
2542
+ "properties": {
2543
+ "text": {
2544
+ "type": "string",
2545
+ "minLength": 1
2546
+ },
2547
+ "startMs": {
2548
+ "type": "number",
2549
+ "minimum": 0,
2550
+ "description": "Word start on the composition timeline, in milliseconds."
2551
+ },
2552
+ "endMs": {
2553
+ "type": "number",
2554
+ "minimum": 0,
2555
+ "description": "Word end on the composition timeline, in milliseconds."
2556
+ },
2557
+ "emphasis": {
2558
+ "type": "boolean"
2559
+ },
2560
+ "annotate": {
2561
+ "type": "string",
2562
+ "enum": [
2563
+ "circle",
2564
+ "underline"
2565
+ ]
2566
+ }
2567
+ },
2568
+ "required": [
2569
+ "text",
2570
+ "startMs",
2571
+ "endMs"
2572
+ ]
2573
+ }
2574
+ }
2575
+ },
2576
+ "required": [
2577
+ "words"
2578
+ ]
2579
+ }
2580
+ },
2581
+ "style": {
2582
+ "type": "object",
2583
+ "properties": {
2584
+ "fontFamily": {
2585
+ "type": "string",
2586
+ "minLength": 1
2587
+ },
2588
+ "fontSize": {
2589
+ "description": "Font size as % of composition height (1-15, default 5). NOT px.",
2590
+ "type": "number",
2591
+ "minimum": 1,
2592
+ "maximum": 15
2593
+ },
2594
+ "fontWeight": {
2595
+ "type": "integer",
2596
+ "minimum": 100,
2597
+ "maximum": 900
2598
+ },
2599
+ "color": {
2600
+ "type": "string",
2601
+ "minLength": 1
2602
+ },
2603
+ "highlightColor": {
2604
+ "type": "string",
2605
+ "minLength": 1
2606
+ },
2607
+ "backgroundColor": {
2608
+ "type": "string"
2609
+ },
2610
+ "plate": {
2611
+ "type": "string",
2612
+ "enum": [
2613
+ "glass",
2614
+ "solid",
2615
+ "none"
2616
+ ]
2617
+ },
2618
+ "position": {
2619
+ "type": "string",
2620
+ "enum": [
2621
+ "top",
2622
+ "center",
2623
+ "bottom"
2624
+ ]
2625
+ },
2626
+ "region": {
2627
+ "description": "Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height.",
2628
+ "type": "object",
2629
+ "properties": {
2630
+ "x": {
2631
+ "type": "number",
2632
+ "minimum": 0,
2633
+ "maximum": 1
2634
+ },
2635
+ "y": {
2636
+ "type": "number",
2637
+ "minimum": 0,
2638
+ "maximum": 1
2639
+ },
2640
+ "w": {
2641
+ "type": "number",
2642
+ "exclusiveMinimum": 0,
2643
+ "maximum": 1
2644
+ },
2645
+ "h": {
2646
+ "type": "number",
2647
+ "exclusiveMinimum": 0,
2648
+ "maximum": 1
2649
+ }
2650
+ },
2651
+ "required": [
2652
+ "x",
2653
+ "y",
2654
+ "w",
2655
+ "h"
2656
+ ]
2657
+ },
2658
+ "textTransform": {
2659
+ "type": "string",
2660
+ "enum": [
2661
+ "none",
2662
+ "uppercase",
2663
+ "capitalize"
2664
+ ]
2665
+ },
2666
+ "letterSpacing": {
2667
+ "description": "Base caption glyph spacing in pixels.",
2668
+ "type": "number",
2669
+ "minimum": -5,
2670
+ "maximum": 20
2671
+ },
2672
+ "wordGapEm": {
2673
+ "description": "Gap between caption runs as a multiple of base font size; default 0.35.",
2674
+ "type": "number",
2675
+ "minimum": 0,
2676
+ "maximum": 2
2677
+ },
2678
+ "lineGapEm": {
2679
+ "description": "Gap between caption lines as a multiple of base font size; default 0.25.",
2680
+ "type": "number",
2681
+ "minimum": 0,
2682
+ "maximum": 2
2683
+ },
2684
+ "emphasisColor": {
2685
+ "type": "string"
2686
+ },
2687
+ "emphasisGradient": {
2688
+ "type": "string"
2689
+ },
2690
+ "emphasisScale": {
2691
+ "type": "number",
2692
+ "exclusiveMinimum": 0
2693
+ },
2694
+ "emphasisFontFamily": {
2695
+ "type": "string"
2696
+ },
2697
+ "emphasisFontWeight": {
2698
+ "type": "integer",
2699
+ "minimum": 100,
2700
+ "maximum": 900
2701
+ },
2702
+ "emphasisTextTransform": {
2703
+ "type": "string",
2704
+ "enum": [
2705
+ "none",
2706
+ "uppercase",
2707
+ "capitalize"
2708
+ ]
2709
+ },
2710
+ "emphasisLetterSpacing": {
2711
+ "type": "number"
2712
+ },
2713
+ "emphasisFontStyle": {
2714
+ "type": "string",
2715
+ "enum": [
2716
+ "normal",
2717
+ "italic"
2718
+ ]
2719
+ },
2720
+ "entrance": {
2721
+ "type": "string",
2722
+ "enum": [
2723
+ "none",
2724
+ "fade",
2725
+ "word-pop",
2726
+ "stagger-up"
2727
+ ]
2728
+ },
2729
+ "entranceMs": {
2730
+ "type": "number",
2731
+ "minimum": 0
2732
+ },
2733
+ "entranceStaggerMs": {
2734
+ "type": "number",
2735
+ "minimum": 0
2736
+ },
2737
+ "exitMs": {
2738
+ "type": "number",
2739
+ "minimum": 0
2740
+ },
2741
+ "emphasisPlate": {
2742
+ "type": "boolean"
2743
+ },
2744
+ "emphasisPlateColor": {
2745
+ "type": "string"
2746
+ },
2747
+ "emphasisPlateTextColor": {
2748
+ "type": "string"
2749
+ },
2750
+ "emphasisPlateAltColor": {
2751
+ "type": "string"
2752
+ },
2753
+ "emphasisPlateAltTextColor": {
2754
+ "type": "string"
2755
+ },
2756
+ "emphasisPlateRadius": {
2757
+ "type": "number",
2758
+ "minimum": 0
2759
+ },
2760
+ "emphasisPlatePadX": {
2761
+ "type": "number"
2762
+ },
2763
+ "emphasisPlatePadY": {
2764
+ "type": "number"
2765
+ },
2766
+ "emphasisPlateReveal": {
2767
+ "description": "Grow a shared emphasis plate as saved words appear while reserving its final layout width.",
2768
+ "type": "boolean"
2769
+ },
2770
+ "annotationColor": {
2771
+ "type": "string"
2772
+ },
2773
+ "annotationStrokeWidth": {
2774
+ "description": "Annotation stroke width in its 100×100 SVG coordinate system; default 4.",
2775
+ "type": "number",
2776
+ "minimum": 0.5,
2777
+ "maximum": 12
2778
+ },
2779
+ "annotationTexture": {
2780
+ "description": "Native annotation stroke finish; default clean.",
2781
+ "type": "string",
2782
+ "enum": [
2783
+ "clean",
2784
+ "pencil"
2785
+ ]
2786
+ },
2787
+ "maxWidthPercent": {
2788
+ "type": "number",
2789
+ "exclusiveMinimum": 0,
2790
+ "maximum": 100
2791
+ }
2792
+ }
2793
+ },
2794
+ "layouts": {
2795
+ "type": "array",
2796
+ "items": {
2797
+ "type": "object",
2798
+ "properties": {
2799
+ "segmentIndex": {
2800
+ "type": "integer",
2801
+ "minimum": 0,
2802
+ "maximum": 9007199254740991
2803
+ },
2804
+ "wordStartIndex": {
2805
+ "type": "integer",
2806
+ "minimum": 0,
2807
+ "maximum": 9007199254740991
2808
+ },
2809
+ "wordEndIndex": {
2810
+ "type": "integer",
2811
+ "exclusiveMinimum": 0,
2812
+ "maximum": 9007199254740991,
2813
+ "description": "Exclusive word index in the saved caption segment."
2814
+ },
2815
+ "region": {
2816
+ "type": "object",
2817
+ "properties": {
2818
+ "x": {
2819
+ "type": "number",
2820
+ "minimum": 0,
2821
+ "maximum": 1
2822
+ },
2823
+ "y": {
2824
+ "type": "number",
2825
+ "minimum": 0,
2826
+ "maximum": 1
2827
+ },
2828
+ "w": {
2829
+ "type": "number",
2830
+ "exclusiveMinimum": 0,
2831
+ "maximum": 1
2832
+ },
2833
+ "h": {
2834
+ "type": "number",
2835
+ "exclusiveMinimum": 0,
2836
+ "maximum": 1
2837
+ }
2838
+ },
2839
+ "required": [
2840
+ "x",
2841
+ "y",
2842
+ "w",
2843
+ "h"
2844
+ ]
2845
+ },
2846
+ "scale": {
2847
+ "type": "number",
2848
+ "minimum": 0.25,
2849
+ "maximum": 4
2850
+ },
2851
+ "rotation": {
2852
+ "type": "number",
2853
+ "minimum": -45,
2854
+ "maximum": 45
2855
+ },
2856
+ "style": {
2857
+ "type": "object",
2858
+ "properties": {
2859
+ "fontFamily": {
2860
+ "type": "string",
2861
+ "minLength": 1
2862
+ },
2863
+ "fontSize": {
2864
+ "description": "Font size as % of composition height (1-15, default 5). NOT px.",
2865
+ "type": "number",
2866
+ "minimum": 1,
2867
+ "maximum": 15
2868
+ },
2869
+ "fontWeight": {
2870
+ "type": "integer",
2871
+ "minimum": 100,
2872
+ "maximum": 900
2873
+ },
2874
+ "color": {
2875
+ "type": "string",
2876
+ "minLength": 1
2877
+ },
2878
+ "highlightColor": {
2879
+ "type": "string",
2880
+ "minLength": 1
2881
+ },
2882
+ "backgroundColor": {
2883
+ "type": "string"
2884
+ },
2885
+ "plate": {
2886
+ "type": "string",
2887
+ "enum": [
2888
+ "glass",
2889
+ "solid",
2890
+ "none"
2891
+ ]
2892
+ },
2893
+ "textTransform": {
2894
+ "type": "string",
2895
+ "enum": [
2896
+ "none",
2897
+ "uppercase",
2898
+ "capitalize"
2899
+ ]
2900
+ },
2901
+ "letterSpacing": {
2902
+ "description": "Base caption glyph spacing in pixels.",
2903
+ "type": "number",
2904
+ "minimum": -5,
2905
+ "maximum": 20
2906
+ },
2907
+ "wordGapEm": {
2908
+ "description": "Gap between caption runs as a multiple of base font size; default 0.35.",
2909
+ "type": "number",
2910
+ "minimum": 0,
2911
+ "maximum": 2
2912
+ },
2913
+ "lineGapEm": {
2914
+ "description": "Gap between caption lines as a multiple of base font size; default 0.25.",
2915
+ "type": "number",
2916
+ "minimum": 0,
2917
+ "maximum": 2
2918
+ },
2919
+ "emphasisColor": {
2920
+ "type": "string"
2921
+ },
2922
+ "emphasisScale": {
2923
+ "type": "number",
2924
+ "exclusiveMinimum": 0
2925
+ },
2926
+ "emphasisFontFamily": {
2927
+ "type": "string"
2928
+ },
2929
+ "emphasisFontWeight": {
2930
+ "type": "integer",
2931
+ "minimum": 100,
2932
+ "maximum": 900
2933
+ },
2934
+ "emphasisTextTransform": {
2935
+ "type": "string",
2936
+ "enum": [
2937
+ "none",
2938
+ "uppercase",
2939
+ "capitalize"
2940
+ ]
2941
+ },
2942
+ "emphasisLetterSpacing": {
2943
+ "type": "number"
2944
+ },
2945
+ "emphasisFontStyle": {
2946
+ "type": "string",
2947
+ "enum": [
2948
+ "normal",
2949
+ "italic"
2950
+ ]
2951
+ },
2952
+ "emphasisPlate": {
2953
+ "type": "boolean"
2954
+ },
2955
+ "emphasisPlateColor": {
2956
+ "type": "string"
2957
+ },
2958
+ "emphasisPlateTextColor": {
2959
+ "type": "string"
2960
+ },
2961
+ "emphasisPlateAltColor": {
2962
+ "type": "string"
2963
+ },
2964
+ "emphasisPlateAltTextColor": {
2965
+ "type": "string"
2966
+ },
2967
+ "emphasisPlateRadius": {
2968
+ "type": "number",
2969
+ "minimum": 0
2970
+ },
2971
+ "emphasisPlatePadX": {
2972
+ "type": "number"
2973
+ },
2974
+ "emphasisPlatePadY": {
2975
+ "type": "number"
2976
+ },
2977
+ "emphasisPlateReveal": {
2978
+ "description": "Grow a shared emphasis plate as saved words appear while reserving its final layout width.",
2979
+ "type": "boolean"
2980
+ },
2981
+ "annotationColor": {
2982
+ "type": "string"
2983
+ },
2984
+ "annotationStrokeWidth": {
2985
+ "description": "Annotation stroke width in its 100×100 SVG coordinate system; default 4.",
2986
+ "type": "number",
2987
+ "minimum": 0.5,
2988
+ "maximum": 12
2989
+ },
2990
+ "annotationTexture": {
2991
+ "description": "Native annotation stroke finish; default clean.",
2992
+ "type": "string",
2993
+ "enum": [
2994
+ "clean",
2995
+ "pencil"
2996
+ ]
2997
+ },
2998
+ "entrance": {
2999
+ "type": "string",
3000
+ "enum": [
3001
+ "none",
3002
+ "fade",
3003
+ "word-pop",
3004
+ "stagger-up"
3005
+ ]
3006
+ },
3007
+ "entranceMs": {
3008
+ "type": "number",
3009
+ "minimum": 0
3010
+ },
3011
+ "entranceStaggerMs": {
3012
+ "type": "number",
3013
+ "minimum": 0
3014
+ },
3015
+ "exitMs": {
3016
+ "type": "number",
3017
+ "minimum": 0
3018
+ }
3019
+ },
3020
+ "additionalProperties": false
3021
+ },
3022
+ "holdThroughWordIndex": {
3023
+ "description": "Inclusive saved-word index in this segment. The layout stays visible until that word ends.",
3024
+ "type": "integer",
3025
+ "minimum": 0,
3026
+ "maximum": 9007199254740991
3027
+ },
3028
+ "wordMarks": {
3029
+ "type": "array",
3030
+ "items": {
3031
+ "type": "object",
3032
+ "properties": {
3033
+ "wordIndex": {
3034
+ "type": "integer",
3035
+ "minimum": 0,
3036
+ "maximum": 9007199254740991
3037
+ },
3038
+ "emphasis": {
3039
+ "type": "boolean"
3040
+ },
3041
+ "annotate": {
3042
+ "anyOf": [
3043
+ {
3044
+ "type": "string",
3045
+ "enum": [
3046
+ "circle",
3047
+ "underline"
3048
+ ]
3049
+ },
3050
+ {
3051
+ "type": "null"
3052
+ }
3053
+ ]
3054
+ }
3055
+ },
3056
+ "required": [
3057
+ "wordIndex"
3058
+ ],
3059
+ "additionalProperties": false
3060
+ }
3061
+ },
3062
+ "wordSignature": {
3063
+ "type": "string",
3064
+ "pattern": "^[a-f0-9]{64}$"
3065
+ }
3066
+ },
3067
+ "required": [
3068
+ "segmentIndex",
3069
+ "wordStartIndex",
3070
+ "wordEndIndex",
3071
+ "region",
3072
+ "wordSignature"
3073
+ ],
3074
+ "additionalProperties": false
3075
+ }
3076
+ },
3077
+ "zPlane": {
3078
+ "type": "string",
3079
+ "enum": [
3080
+ "front",
3081
+ "behind-subject"
3082
+ ]
3083
+ }
3084
+ },
3085
+ "required": [
3086
+ "source",
3087
+ "segments"
3088
+ ]
3089
+ }
3090
+ ]
3091
+ },
3092
+ "sourceSuggestionId": {
3093
+ "readOnly": true,
3094
+ "type": "string"
3095
+ },
3096
+ "license": {
3097
+ "type": "object",
3098
+ "properties": {
3099
+ "type": {
3100
+ "type": "string",
3101
+ "minLength": 1
3102
+ },
3103
+ "source": {
3104
+ "type": "string"
3105
+ },
3106
+ "notes": {
3107
+ "type": "string"
3108
+ }
3109
+ },
3110
+ "required": [
3111
+ "type"
3112
+ ]
3113
+ },
3114
+ "licenseVerification": {
3115
+ "readOnly": true,
3116
+ "type": "string",
3117
+ "enum": [
3118
+ "attested",
3119
+ "cueframe-verified",
3120
+ "third-party-verified"
3121
+ ]
3122
+ },
3123
+ "accessibility": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "audioDescriptionTrackId": {
3127
+ "type": "string"
3128
+ },
3129
+ "captionsTrackId": {
3130
+ "type": "string"
3131
+ },
3132
+ "signLanguageTrackId": {
3133
+ "type": "string"
3134
+ },
3135
+ "notes": {
3136
+ "type": "string"
3137
+ }
3138
+ }
3139
+ },
3140
+ "ownerOrgId": {
3141
+ "readOnly": true,
3142
+ "type": "string"
3143
+ },
3144
+ "acl": {
3145
+ "readOnly": true,
3146
+ "type": "object",
3147
+ "properties": {
3148
+ "public": {
3149
+ "type": "boolean"
3150
+ },
3151
+ "readerOrgIds": {
3152
+ "type": "array",
3153
+ "items": {
3154
+ "type": "string"
3155
+ }
3156
+ },
3157
+ "writerOrgIds": {
3158
+ "type": "array",
3159
+ "items": {
3160
+ "type": "string"
3161
+ }
3162
+ }
3163
+ }
3164
+ },
3165
+ "needsUpgrade": {
3166
+ "type": "array",
3167
+ "items": {
3168
+ "$ref": "#/components/schemas/CompositionUpgradeNeed"
3169
+ }
3170
+ }
3171
+ },
3172
+ "required": [
3173
+ "v",
3174
+ "format",
3175
+ "tracks"
3176
+ ],
3177
+ "additionalProperties": false,
3178
+ "description": "A composition as GET /projects/:id/composition answers it: the kernel's Composition, plus `needsUpgrade` when clips are stored in a retired form (absent otherwise)."
3179
+ },
1826
3180
  "CompositionReadResponse": {
1827
3181
  "anyOf": [
1828
- {
1829
- "$ref": "#/components/schemas/Composition"
1830
- },
1831
3182
  {
1832
3183
  "type": "object",
1833
3184
  "properties": {
@@ -1866,6 +3217,9 @@
1866
3217
  "dependencies"
1867
3218
  ],
1868
3219
  "additionalProperties": false
3220
+ },
3221
+ {
3222
+ "$ref": "#/components/schemas/CompositionRead"
1869
3223
  }
1870
3224
  ]
1871
3225
  },
@@ -6882,6 +8236,29 @@
6882
8236
  "additionalProperties": false,
6883
8237
  "description": "POST /projects/:id/compositions body — create a new video (composition) in the project. `format` defaults to the project's compositionFormat when omitted."
6884
8238
  },
8239
+ "CompositionCreateResponse": {
8240
+ "type": "object",
8241
+ "properties": {
8242
+ "compositionId": {
8243
+ "type": "string",
8244
+ "description": "The new composition's id: `composition_id` for apply_composition, `compositionId` for preview_frame and create_render."
8245
+ },
8246
+ "format": {
8247
+ "$ref": "#/components/schemas/Format"
8248
+ },
8249
+ "etag": {
8250
+ "type": "string",
8251
+ "description": "The strong ETag of the empty composition, for If-Match on its first write."
8252
+ }
8253
+ },
8254
+ "required": [
8255
+ "compositionId",
8256
+ "format",
8257
+ "etag"
8258
+ ],
8259
+ "additionalProperties": false,
8260
+ "description": "POST /projects/:id/compositions response."
8261
+ },
6885
8262
  "CompositionSummary": {
6886
8263
  "type": "object",
6887
8264
  "properties": {
@@ -9045,6 +10422,77 @@
9045
10422
  "type": "string",
9046
10423
  "description": "ISO-8601 timestamp of the render's most recent progress update. Compute staleness = now − updatedAt to distinguish a wedged render from a slow one and decide whether to wait, cancel, or retry."
9047
10424
  },
10425
+ "compositionId": {
10426
+ "description": "The composition this render froze at create time (the project's active one, or the compositionId the request named). Null on renders minted before this was recorded.",
10427
+ "type": [
10428
+ "string",
10429
+ "null"
10430
+ ]
10431
+ },
10432
+ "format": {
10433
+ "anyOf": [
10434
+ {
10435
+ "$ref": "#/components/schemas/Format"
10436
+ },
10437
+ {
10438
+ "type": "null"
10439
+ }
10440
+ ],
10441
+ "description": "The resolved output format the render was encoded at (aspectRatio, fps, resolution): the frozen composition's, after any create-time scale override. Null on legacy rows."
10442
+ },
10443
+ "engine": {
10444
+ "anyOf": [
10445
+ {
10446
+ "type": "string",
10447
+ "enum": [
10448
+ "hyperframes",
10449
+ "remotion"
10450
+ ]
10451
+ },
10452
+ {
10453
+ "type": "null"
10454
+ }
10455
+ ],
10456
+ "description": "The render engine the row was minted for. Null on rows minted before the engine was recorded."
10457
+ },
10458
+ "completedAt": {
10459
+ "description": "ISO-8601 instant the render reached its terminal status (complete, error or cancelled); null while it runs. Pair with createdAt for the wall time.",
10460
+ "type": [
10461
+ "string",
10462
+ "null"
10463
+ ]
10464
+ },
10465
+ "outputDurationSec": {
10466
+ "description": "The output's length in seconds (the composition timeline's, or the preview window's), as billed. Null on legacy rows.",
10467
+ "type": [
10468
+ "number",
10469
+ "null"
10470
+ ]
10471
+ },
10472
+ "preview": {
10473
+ "anyOf": [
10474
+ {
10475
+ "type": "object",
10476
+ "properties": {
10477
+ "fromSec": {
10478
+ "type": "number"
10479
+ },
10480
+ "toSec": {
10481
+ "type": "number"
10482
+ }
10483
+ },
10484
+ "required": [
10485
+ "fromSec",
10486
+ "toSec"
10487
+ ],
10488
+ "additionalProperties": false
10489
+ },
10490
+ {
10491
+ "type": "null"
10492
+ }
10493
+ ],
10494
+ "description": "The scoped preview window when this is a preview_clip render; null for a full deliverable."
10495
+ },
9048
10496
  "listUsd": {
9049
10497
  "description": "A2 money stamp: the metered event's LIST price (USD), stamped at the success terminal (exports for deliverable renders, compose_capture for A8 previews). A plan allowance may zero the actual invoice line — this is the list price, never a Stripe charge. Absent while running, on failure, and for x402 orgs (on-chain receipts). Mirrors the get_usage ledger.",
9050
10498
  "type": "number"
@@ -9068,7 +10516,13 @@
9068
10516
  "category",
9069
10517
  "retryable",
9070
10518
  "createdAt",
9071
- "updatedAt"
10519
+ "updatedAt",
10520
+ "compositionId",
10521
+ "format",
10522
+ "engine",
10523
+ "completedAt",
10524
+ "outputDurationSec",
10525
+ "preview"
9072
10526
  ],
9073
10527
  "additionalProperties": false,
9074
10528
  "description": "Render job response per §Renders."
@@ -18547,6 +20001,25 @@
18547
20001
  ],
18548
20002
  "additionalProperties": false
18549
20003
  },
20004
+ "MediaDownloadUrlResponse": {
20005
+ "type": "object",
20006
+ "properties": {
20007
+ "url": {
20008
+ "type": "string",
20009
+ "description": "Presigned GET URL for the item's stored source file (the bytes CueFrame composes from). Fetch it directly, no auth header."
20010
+ },
20011
+ "expiresAt": {
20012
+ "type": "string",
20013
+ "description": "When the URL stops working (ISO-8601). Read this endpoint again for a fresh one; nothing is cached."
20014
+ }
20015
+ },
20016
+ "required": [
20017
+ "url",
20018
+ "expiresAt"
20019
+ ],
20020
+ "additionalProperties": false,
20021
+ "description": "GET /media/:id/download-url response."
20022
+ },
18550
20023
  "ProjectListResponse": {
18551
20024
  "type": "object",
18552
20025
  "properties": {
@@ -23814,6 +25287,7 @@
23814
25287
  "type": "string"
23815
25288
  },
23816
25289
  "from": {
25290
+ "description": "The source version the clip pinned; absent for a clip stored before execution pins.",
23817
25291
  "type": "string"
23818
25292
  },
23819
25293
  "to": {
@@ -23823,7 +25297,6 @@
23823
25297
  "required": [
23824
25298
  "clipId",
23825
25299
  "componentId",
23826
- "from",
23827
25300
  "to"
23828
25301
  ],
23829
25302
  "additionalProperties": false
@@ -23834,7 +25307,31 @@
23834
25307
  "items": {
23835
25308
  "type": "string"
23836
25309
  },
23837
- "description": "Clips pinning a retired TSX source no curated release shipped: rebuild them as native components."
25310
+ "description": "Clips in a retired form no curated release recorded: rebuild them as native components, or remove them, in the same edit that upgrades the others."
25311
+ },
25312
+ "inputsRefused": {
25313
+ "type": "array",
25314
+ "items": {
25315
+ "type": "object",
25316
+ "properties": {
25317
+ "clipId": {
25318
+ "type": "string"
25319
+ },
25320
+ "componentId": {
25321
+ "type": "string"
25322
+ },
25323
+ "message": {
25324
+ "type": "string"
25325
+ }
25326
+ },
25327
+ "required": [
25328
+ "clipId",
25329
+ "componentId",
25330
+ "message"
25331
+ ],
25332
+ "additionalProperties": false
25333
+ },
25334
+ "description": "Clips whose successor refuses their stored inputs (its input schema), each with why: fix the inputs by rebuilding the clip, or remove it."
23838
25335
  },
23839
25336
  "etag": {
23840
25337
  "type": [
@@ -23846,6 +25343,7 @@
23846
25343
  "required": [
23847
25344
  "moved",
23848
25345
  "withoutSuccessor",
25346
+ "inputsRefused",
23849
25347
  "etag"
23850
25348
  ],
23851
25349
  "additionalProperties": false
@@ -30370,7 +31868,14 @@
30370
31868
  },
30371
31869
  "responses": {
30372
31870
  "201": {
30373
- "description": "Composition created."
31871
+ "description": "Composition created.",
31872
+ "content": {
31873
+ "application/json": {
31874
+ "schema": {
31875
+ "$ref": "#/components/schemas/CompositionCreateResponse"
31876
+ }
31877
+ }
31878
+ }
30374
31879
  },
30375
31880
  "400": {
30376
31881
  "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
@@ -32288,129 +33793,282 @@
32288
33793
  }
32289
33794
  }
32290
33795
  }
32291
- }
32292
- },
32293
- "x-payment-info": {
32294
- "price": {
32295
- "mode": "fixed",
32296
- "currency": "USDC",
32297
- "amount": "10000"
32298
- },
32299
- "protocols": [
32300
- {
32301
- "x402": {}
32302
- }
32303
- ]
32304
- }
32305
- }
32306
- },
32307
- "/v1/media/{id}/finalize": {
32308
- "post": {
32309
- "operationId": "finalizeMedia",
32310
- "tags": [
32311
- "media"
32312
- ],
32313
- "summary": "Finalize a direct upload (trigger processing after the bytes are PUT)",
32314
- "description": "Required permission: media:write",
32315
- "security": [
32316
- {
32317
- "bearerAuth": []
32318
- },
32319
- {
32320
- "oauth2": [
32321
- "media:write"
32322
- ]
33796
+ }
33797
+ },
33798
+ "x-payment-info": {
33799
+ "price": {
33800
+ "mode": "fixed",
33801
+ "currency": "USDC",
33802
+ "amount": "10000"
33803
+ },
33804
+ "protocols": [
33805
+ {
33806
+ "x402": {}
33807
+ }
33808
+ ]
33809
+ }
33810
+ }
33811
+ },
33812
+ "/v1/media/{id}/finalize": {
33813
+ "post": {
33814
+ "operationId": "finalizeMedia",
33815
+ "tags": [
33816
+ "media"
33817
+ ],
33818
+ "summary": "Finalize a direct upload (trigger processing after the bytes are PUT)",
33819
+ "description": "Required permission: media:write",
33820
+ "security": [
33821
+ {
33822
+ "bearerAuth": []
33823
+ },
33824
+ {
33825
+ "oauth2": [
33826
+ "media:write"
33827
+ ]
33828
+ },
33829
+ {
33830
+ "x402": []
33831
+ }
33832
+ ],
33833
+ "x-permissions": {
33834
+ "media": [
33835
+ "write"
33836
+ ]
33837
+ },
33838
+ "requestBody": {
33839
+ "required": false,
33840
+ "content": {
33841
+ "application/json": {
33842
+ "schema": {
33843
+ "$ref": "#/components/schemas/MediaFinalizeRequest"
33844
+ }
33845
+ }
33846
+ }
33847
+ },
33848
+ "responses": {
33849
+ "200": {
33850
+ "description": "Ingest triggered.",
33851
+ "content": {
33852
+ "application/json": {
33853
+ "schema": {
33854
+ "$ref": "#/components/schemas/MediaFinalizeResponse"
33855
+ }
33856
+ }
33857
+ }
33858
+ },
33859
+ "400": {
33860
+ "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
33861
+ "content": {
33862
+ "application/json": {
33863
+ "schema": {
33864
+ "$ref": "#/components/schemas/ErrorEnvelope"
33865
+ }
33866
+ }
33867
+ }
33868
+ },
33869
+ "401": {
33870
+ "description": "Missing or invalid Authorization header.",
33871
+ "content": {
33872
+ "application/json": {
33873
+ "schema": {
33874
+ "$ref": "#/components/schemas/ErrorEnvelope"
33875
+ }
33876
+ }
33877
+ }
33878
+ },
33879
+ "402": {
33880
+ "description": "Payment required. Returned when the caller presents no API key on a priced operation: the body AND the `Payment-Required` header carry the x402 v2 challenge (accepted scheme, network, USDC asset, amount, payTo). Sign the EIP-3009 authorization and retry with a `PAYMENT-SIGNATURE` header. A KEYED caller sees this status instead when their plan lacks or has exhausted the feature (`billing_required`).",
33881
+ "headers": {
33882
+ "Payment-Required": {
33883
+ "description": "Base64 x402 v2 PaymentRequired envelope — the same challenge as the body, for clients that read it off the header.",
33884
+ "schema": {
33885
+ "type": "string"
33886
+ }
33887
+ }
33888
+ },
33889
+ "content": {
33890
+ "application/json": {
33891
+ "schema": {
33892
+ "$ref": "#/components/schemas/X402PaymentRequired"
33893
+ }
33894
+ }
33895
+ }
33896
+ },
33897
+ "403": {
33898
+ "description": "Forbidden — permission insufficient.",
33899
+ "content": {
33900
+ "application/json": {
33901
+ "schema": {
33902
+ "$ref": "#/components/schemas/ErrorEnvelope"
33903
+ }
33904
+ }
33905
+ }
33906
+ },
33907
+ "404": {
33908
+ "description": "Resource not found.",
33909
+ "content": {
33910
+ "application/json": {
33911
+ "schema": {
33912
+ "$ref": "#/components/schemas/ErrorEnvelope"
33913
+ }
33914
+ }
33915
+ }
33916
+ },
33917
+ "500": {
33918
+ "description": "Internal error.",
33919
+ "content": {
33920
+ "application/json": {
33921
+ "schema": {
33922
+ "$ref": "#/components/schemas/ErrorEnvelope"
33923
+ }
33924
+ }
33925
+ }
33926
+ }
33927
+ },
33928
+ "parameters": [
33929
+ {
33930
+ "schema": {
33931
+ "type": "string"
33932
+ },
33933
+ "in": "path",
33934
+ "name": "id",
33935
+ "required": true
33936
+ }
33937
+ ],
33938
+ "x-payment-info": {
33939
+ "price": {
33940
+ "mode": "fixed",
33941
+ "currency": "USDC",
33942
+ "amount": "10000"
33943
+ },
33944
+ "protocols": [
33945
+ {
33946
+ "x402": {}
33947
+ }
33948
+ ]
33949
+ }
33950
+ }
33951
+ },
33952
+ "/v1/media/generate": {
33953
+ "post": {
33954
+ "operationId": "generateMedia",
33955
+ "tags": [
33956
+ "media"
33957
+ ],
33958
+ "summary": "Generate media with AI (video, image, or Manim animation)",
33959
+ "description": "Generate a new media item from a text prompt: text-to-video, text-to-image, image-to-video, or a programmatic Manim animation (generator 'auto' picks the best one for the prompt). Async — returns a media id that flips to ready when generation finishes; poll GET /media/:id or register a media.completed webhook. Priced on what the model actually costs; refused with 402 if your balance cannot cover the quote (see GET /me).",
33960
+ "security": [
33961
+ {
33962
+ "bearerAuth": []
33963
+ },
33964
+ {
33965
+ "oauth2": [
33966
+ "media:write"
33967
+ ]
33968
+ },
33969
+ {
33970
+ "x402": []
33971
+ }
33972
+ ],
33973
+ "x-permissions": {
33974
+ "media": [
33975
+ "write"
33976
+ ]
33977
+ },
33978
+ "x-x402": "generate",
33979
+ "requestBody": {
33980
+ "required": true,
33981
+ "content": {
33982
+ "application/json": {
33983
+ "schema": {
33984
+ "$ref": "#/components/schemas/MediaGenerateRequest"
33985
+ }
33986
+ }
33987
+ }
33988
+ },
33989
+ "responses": {
33990
+ "201": {
33991
+ "description": "Generation enqueued.",
33992
+ "content": {
33993
+ "application/json": {
33994
+ "schema": {
33995
+ "$ref": "#/components/schemas/MediaGenerateResponse"
33996
+ }
33997
+ }
33998
+ }
33999
+ },
34000
+ "400": {
34001
+ "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
34002
+ "content": {
34003
+ "application/json": {
34004
+ "schema": {
34005
+ "$ref": "#/components/schemas/ErrorEnvelope"
34006
+ }
34007
+ }
34008
+ }
34009
+ },
34010
+ "401": {
34011
+ "description": "Missing or invalid Authorization header.",
34012
+ "content": {
34013
+ "application/json": {
34014
+ "schema": {
34015
+ "$ref": "#/components/schemas/ErrorEnvelope"
34016
+ }
34017
+ }
34018
+ }
34019
+ },
34020
+ "402": {
34021
+ "description": "Payment required — billing_required or x402 payment_*.",
34022
+ "content": {
34023
+ "application/json": {
34024
+ "schema": {
34025
+ "$ref": "#/components/schemas/ErrorEnvelope"
34026
+ }
34027
+ }
34028
+ }
34029
+ },
34030
+ "403": {
34031
+ "description": "Forbidden — permission insufficient.",
34032
+ "content": {
34033
+ "application/json": {
34034
+ "schema": {
34035
+ "$ref": "#/components/schemas/ErrorEnvelope"
34036
+ }
34037
+ }
34038
+ }
34039
+ },
34040
+ "422": {
34041
+ "description": "Unprocessable — invalid_composition / media_in_use / session_in_use / render_not_cancellable.",
34042
+ "content": {
34043
+ "application/json": {
34044
+ "schema": {
34045
+ "$ref": "#/components/schemas/ErrorEnvelope"
34046
+ }
34047
+ }
34048
+ }
34049
+ },
34050
+ "429": {
34051
+ "description": "Rate limited. Retry-After header present.",
34052
+ "content": {
34053
+ "application/json": {
34054
+ "schema": {
34055
+ "$ref": "#/components/schemas/ErrorEnvelope"
34056
+ }
34057
+ }
34058
+ }
34059
+ },
34060
+ "500": {
34061
+ "description": "Internal error.",
34062
+ "content": {
34063
+ "application/json": {
34064
+ "schema": {
34065
+ "$ref": "#/components/schemas/ErrorEnvelope"
34066
+ }
34067
+ }
34068
+ }
32323
34069
  },
32324
- {
32325
- "x402": []
32326
- }
32327
- ],
32328
- "x-permissions": {
32329
- "media": [
32330
- "write"
32331
- ]
32332
- },
32333
- "requestBody": {
32334
- "required": false,
32335
- "content": {
32336
- "application/json": {
32337
- "schema": {
32338
- "$ref": "#/components/schemas/MediaFinalizeRequest"
32339
- }
32340
- }
32341
- }
32342
- },
32343
- "responses": {
32344
- "200": {
32345
- "description": "Ingest triggered.",
32346
- "content": {
32347
- "application/json": {
32348
- "schema": {
32349
- "$ref": "#/components/schemas/MediaFinalizeResponse"
32350
- }
32351
- }
32352
- }
32353
- },
32354
- "400": {
32355
- "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
32356
- "content": {
32357
- "application/json": {
32358
- "schema": {
32359
- "$ref": "#/components/schemas/ErrorEnvelope"
32360
- }
32361
- }
32362
- }
32363
- },
32364
- "401": {
32365
- "description": "Missing or invalid Authorization header.",
32366
- "content": {
32367
- "application/json": {
32368
- "schema": {
32369
- "$ref": "#/components/schemas/ErrorEnvelope"
32370
- }
32371
- }
32372
- }
32373
- },
32374
- "402": {
32375
- "description": "Payment required. Returned when the caller presents no API key on a priced operation: the body AND the `Payment-Required` header carry the x402 v2 challenge (accepted scheme, network, USDC asset, amount, payTo). Sign the EIP-3009 authorization and retry with a `PAYMENT-SIGNATURE` header. A KEYED caller sees this status instead when their plan lacks or has exhausted the feature (`billing_required`).",
32376
- "headers": {
32377
- "Payment-Required": {
32378
- "description": "Base64 x402 v2 PaymentRequired envelope — the same challenge as the body, for clients that read it off the header.",
32379
- "schema": {
32380
- "type": "string"
32381
- }
32382
- }
32383
- },
32384
- "content": {
32385
- "application/json": {
32386
- "schema": {
32387
- "$ref": "#/components/schemas/X402PaymentRequired"
32388
- }
32389
- }
32390
- }
32391
- },
32392
- "403": {
32393
- "description": "Forbidden — permission insufficient.",
32394
- "content": {
32395
- "application/json": {
32396
- "schema": {
32397
- "$ref": "#/components/schemas/ErrorEnvelope"
32398
- }
32399
- }
32400
- }
32401
- },
32402
- "404": {
32403
- "description": "Resource not found.",
32404
- "content": {
32405
- "application/json": {
32406
- "schema": {
32407
- "$ref": "#/components/schemas/ErrorEnvelope"
32408
- }
32409
- }
32410
- }
32411
- },
32412
- "500": {
32413
- "description": "Internal error.",
34070
+ "503": {
34071
+ "description": "Service unavailable — billing_unavailable / honest-503 for runtime deps.",
32414
34072
  "content": {
32415
34073
  "application/json": {
32416
34074
  "schema": {
@@ -32420,21 +34078,10 @@
32420
34078
  }
32421
34079
  }
32422
34080
  },
32423
- "parameters": [
32424
- {
32425
- "schema": {
32426
- "type": "string"
32427
- },
32428
- "in": "path",
32429
- "name": "id",
32430
- "required": true
32431
- }
32432
- ],
32433
34081
  "x-payment-info": {
32434
34082
  "price": {
32435
- "mode": "fixed",
32436
- "currency": "USDC",
32437
- "amount": "10000"
34083
+ "mode": "dynamic",
34084
+ "currency": "USDC"
32438
34085
  },
32439
34086
  "protocols": [
32440
34087
  {
@@ -32444,14 +34091,14 @@
32444
34091
  }
32445
34092
  }
32446
34093
  },
32447
- "/v1/media/generate": {
34094
+ "/v1/media/import": {
32448
34095
  "post": {
32449
- "operationId": "generateMedia",
34096
+ "operationId": "importMedia",
32450
34097
  "tags": [
32451
34098
  "media"
32452
34099
  ],
32453
- "summary": "Generate media with AI (video, image, or Manim animation)",
32454
- "description": "Generate a new media item from a text prompt: text-to-video, text-to-image, image-to-video, or a programmatic Manim animation (generator 'auto' picks the best one for the prompt). Async — returns a media id that flips to ready when generation finishes; poll GET /media/:id or register a media.completed webhook. Priced on what the model actually costs; refused with 402 if your balance cannot cover the quote (see GET /me).",
34100
+ "summary": "Import media from a URL (server-side fetch)",
34101
+ "description": "Import media into the project from a public https URL — the server fetches and mirrors the bytes (SSRF-filtered), then processes it (transcode + transcribe). Async: returns a media id that flips to ready when the mirror and processing finish; poll GET /media/:id or use a media.completed webhook.",
32455
34102
  "security": [
32456
34103
  {
32457
34104
  "bearerAuth": []
@@ -32470,24 +34117,24 @@
32470
34117
  "write"
32471
34118
  ]
32472
34119
  },
32473
- "x-x402": "generate",
34120
+ "x-x402": "import",
32474
34121
  "requestBody": {
32475
34122
  "required": true,
32476
34123
  "content": {
32477
34124
  "application/json": {
32478
34125
  "schema": {
32479
- "$ref": "#/components/schemas/MediaGenerateRequest"
34126
+ "$ref": "#/components/schemas/MediaImportRequest"
32480
34127
  }
32481
34128
  }
32482
34129
  }
32483
34130
  },
32484
34131
  "responses": {
32485
34132
  "201": {
32486
- "description": "Generation enqueued.",
34133
+ "description": "Import enqueued.",
32487
34134
  "content": {
32488
34135
  "application/json": {
32489
34136
  "schema": {
32490
- "$ref": "#/components/schemas/MediaGenerateResponse"
34137
+ "$ref": "#/components/schemas/MediaImportResponse"
32491
34138
  }
32492
34139
  }
32493
34140
  }
@@ -32513,11 +34160,19 @@
32513
34160
  }
32514
34161
  },
32515
34162
  "402": {
32516
- "description": "Payment required — billing_required or x402 payment_*.",
34163
+ "description": "Payment required. Returned when the caller presents no API key on a priced operation: the body AND the `Payment-Required` header carry the x402 v2 challenge (accepted scheme, network, USDC asset, amount, payTo). Sign the EIP-3009 authorization and retry with a `PAYMENT-SIGNATURE` header. A KEYED caller sees this status instead when their plan lacks or has exhausted the feature (`billing_required`).",
34164
+ "headers": {
34165
+ "Payment-Required": {
34166
+ "description": "Base64 x402 v2 PaymentRequired envelope — the same challenge as the body, for clients that read it off the header.",
34167
+ "schema": {
34168
+ "type": "string"
34169
+ }
34170
+ }
34171
+ },
32517
34172
  "content": {
32518
34173
  "application/json": {
32519
34174
  "schema": {
32520
- "$ref": "#/components/schemas/ErrorEnvelope"
34175
+ "$ref": "#/components/schemas/X402PaymentRequired"
32521
34176
  }
32522
34177
  }
32523
34178
  }
@@ -32575,8 +34230,9 @@
32575
34230
  },
32576
34231
  "x-payment-info": {
32577
34232
  "price": {
32578
- "mode": "dynamic",
32579
- "currency": "USDC"
34233
+ "mode": "fixed",
34234
+ "currency": "USDC",
34235
+ "amount": "10000"
32580
34236
  },
32581
34237
  "protocols": [
32582
34238
  {
@@ -32586,14 +34242,14 @@
32586
34242
  }
32587
34243
  }
32588
34244
  },
32589
- "/v1/media/import": {
32590
- "post": {
32591
- "operationId": "importMedia",
34245
+ "/v1/media/{id}": {
34246
+ "delete": {
34247
+ "operationId": "deleteMedia",
32592
34248
  "tags": [
32593
34249
  "media"
32594
34250
  ],
32595
- "summary": "Import media from a URL (server-side fetch)",
32596
- "description": "Import media into the project from a public https URL — the server fetches and mirrors the bytes (SSRF-filtered), then processes it (transcode + transcribe). Async: returns a media id that flips to ready when the mirror and processing finish; poll GET /media/:id or use a media.completed webhook.",
34251
+ "summary": "Delete a media item",
34252
+ "description": "Required permission: media:write",
32597
34253
  "security": [
32598
34254
  {
32599
34255
  "bearerAuth": []
@@ -32612,27 +34268,9 @@
32612
34268
  "write"
32613
34269
  ]
32614
34270
  },
32615
- "x-x402": "import",
32616
- "requestBody": {
32617
- "required": true,
32618
- "content": {
32619
- "application/json": {
32620
- "schema": {
32621
- "$ref": "#/components/schemas/MediaImportRequest"
32622
- }
32623
- }
32624
- }
32625
- },
32626
34271
  "responses": {
32627
- "201": {
32628
- "description": "Import enqueued.",
32629
- "content": {
32630
- "application/json": {
32631
- "schema": {
32632
- "$ref": "#/components/schemas/MediaImportResponse"
32633
- }
32634
- }
32635
- }
34272
+ "204": {
34273
+ "description": "Deleted."
32636
34274
  },
32637
34275
  "400": {
32638
34276
  "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
@@ -32682,8 +34320,8 @@
32682
34320
  }
32683
34321
  }
32684
34322
  },
32685
- "422": {
32686
- "description": "Unprocessable — invalid_composition / media_in_use / session_in_use / render_not_cancellable.",
34323
+ "404": {
34324
+ "description": "Resource not found.",
32687
34325
  "content": {
32688
34326
  "application/json": {
32689
34327
  "schema": {
@@ -32692,8 +34330,8 @@
32692
34330
  }
32693
34331
  }
32694
34332
  },
32695
- "429": {
32696
- "description": "Rate limited. Retry-After header present.",
34333
+ "422": {
34334
+ "description": "Unprocessable — invalid_composition / media_in_use / session_in_use / render_not_cancellable.",
32697
34335
  "content": {
32698
34336
  "application/json": {
32699
34337
  "schema": {
@@ -32702,8 +34340,8 @@
32702
34340
  }
32703
34341
  }
32704
34342
  },
32705
- "500": {
32706
- "description": "Internal error.",
34343
+ "429": {
34344
+ "description": "Rate limited. Retry-After header present.",
32707
34345
  "content": {
32708
34346
  "application/json": {
32709
34347
  "schema": {
@@ -32712,8 +34350,8 @@
32712
34350
  }
32713
34351
  }
32714
34352
  },
32715
- "503": {
32716
- "description": "Service unavailable — billing_unavailable / honest-503 for runtime deps.",
34353
+ "500": {
34354
+ "description": "Internal error.",
32717
34355
  "content": {
32718
34356
  "application/json": {
32719
34357
  "schema": {
@@ -32723,6 +34361,16 @@
32723
34361
  }
32724
34362
  }
32725
34363
  },
34364
+ "parameters": [
34365
+ {
34366
+ "schema": {
34367
+ "type": "string"
34368
+ },
34369
+ "in": "path",
34370
+ "name": "id",
34371
+ "required": true
34372
+ }
34373
+ ],
32726
34374
  "x-payment-info": {
32727
34375
  "price": {
32728
34376
  "mode": "fixed",
@@ -32735,23 +34383,21 @@
32735
34383
  }
32736
34384
  ]
32737
34385
  }
32738
- }
32739
- },
32740
- "/v1/media/{id}": {
32741
- "delete": {
32742
- "operationId": "deleteMedia",
34386
+ },
34387
+ "get": {
34388
+ "operationId": "getMedia",
32743
34389
  "tags": [
32744
34390
  "media"
32745
34391
  ],
32746
- "summary": "Delete a media item",
32747
- "description": "Required permission: media:write",
34392
+ "summary": "Get a media item by id",
34393
+ "description": "Required permission: media:read",
32748
34394
  "security": [
32749
34395
  {
32750
34396
  "bearerAuth": []
32751
34397
  },
32752
34398
  {
32753
34399
  "oauth2": [
32754
- "media:write"
34400
+ "media:read"
32755
34401
  ]
32756
34402
  },
32757
34403
  {
@@ -32760,12 +34406,19 @@
32760
34406
  ],
32761
34407
  "x-permissions": {
32762
34408
  "media": [
32763
- "write"
34409
+ "read"
32764
34410
  ]
32765
34411
  },
32766
34412
  "responses": {
32767
- "204": {
32768
- "description": "Deleted."
34413
+ "200": {
34414
+ "description": "Media item.",
34415
+ "content": {
34416
+ "application/json": {
34417
+ "schema": {
34418
+ "$ref": "#/components/schemas/MediaResponse"
34419
+ }
34420
+ }
34421
+ }
32769
34422
  },
32770
34423
  "400": {
32771
34424
  "description": "Bad request — validation_error / invalid_cursor / invalid_query.",
@@ -32878,14 +34531,16 @@
32878
34531
  }
32879
34532
  ]
32880
34533
  }
32881
- },
34534
+ }
34535
+ },
34536
+ "/v1/media/{id}/download-url": {
32882
34537
  "get": {
32883
- "operationId": "getMedia",
34538
+ "operationId": "getMediaDownloadUrl",
32884
34539
  "tags": [
32885
34540
  "media"
32886
34541
  ],
32887
- "summary": "Get a media item by id",
32888
- "description": "Required permission: media:read",
34542
+ "summary": "A download URL for a media item's source file",
34543
+ "description": "Issue a presigned GET URL for the item's stored source file, the bytes CueFrame composes from. The URL works without an Authorization header and expires at `expiresAt` (about an hour); read again for a fresh one. Available as soon as the upload or import is stored, before processing completes. Required permission: media:read",
32889
34544
  "security": [
32890
34545
  {
32891
34546
  "bearerAuth": []
@@ -32906,11 +34561,11 @@
32906
34561
  },
32907
34562
  "responses": {
32908
34563
  "200": {
32909
- "description": "Media item.",
34564
+ "description": "Presigned download URL issued.",
32910
34565
  "content": {
32911
34566
  "application/json": {
32912
34567
  "schema": {
32913
- "$ref": "#/components/schemas/MediaResponse"
34568
+ "$ref": "#/components/schemas/MediaDownloadUrlResponse"
32914
34569
  }
32915
34570
  }
32916
34571
  }
@@ -41956,8 +43611,8 @@
41956
43611
  "tags": [
41957
43612
  "components"
41958
43613
  ],
41959
- "summary": "Move retired TSX component clips to their native successors",
41960
- "description": "Repin clips that pin a retired curated TSX (version 3) component to its native (version 4) successor — the successorSourceVersionId a refusal of such a clip names. Name clip_ids, or omit them to move every clip that has a successor. Every saved input is kept. Clips with no successor are listed in withoutSuccessor.",
43614
+ "summary": "Move retired component clips to their native successors",
43615
+ "description": "Move clips stored in a retired form to their native (version 4) successors: a clip pinning a retired curated TSX (version 3) component, or one stored before execution pins (needsUpgrade kind unpinned-component), moves to the successorSourceVersionId the read or a refusal of such a clip names. Name clip_ids, or omit them to move every clip that has a successor. Every saved input is kept. Clips with no successor are listed in withoutSuccessor, and clips whose stored inputs the successor refuses in inputsRefused; a write never leaves a retired clip in place, so rebuild or remove those in the same edit that upgrades the others.",
41961
43616
  "security": [
41962
43617
  {
41963
43618
  "bearerAuth": []