@shotstack/schemas 1.1.2 → 1.3.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/api.bundled.json +241 -7
- package/dist/schema.d.ts +170 -10
- package/dist/zod/zod.gen.cjs +80 -12
- package/dist/zod/zod.gen.d.ts +1409 -8
- package/dist/zod/zod.gen.js +75 -7
- package/dist/zod/zod.gen.ts +91 -7
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -1062,10 +1062,24 @@
|
|
|
1062
1062
|
"type": "string"
|
|
1063
1063
|
},
|
|
1064
1064
|
"scale": {
|
|
1065
|
-
"description": "Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and
|
|
1065
|
+
"description": "Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.",
|
|
1066
1066
|
"type": "number",
|
|
1067
1067
|
"example": 0
|
|
1068
1068
|
},
|
|
1069
|
+
"width": {
|
|
1070
|
+
"description": "Set the width of the clip bounding box in pixels. This constrains the width of the clip, overriding the default behavior where clips fill the viewport width.",
|
|
1071
|
+
"type": "integer",
|
|
1072
|
+
"minimum": 1,
|
|
1073
|
+
"maximum": 3840,
|
|
1074
|
+
"example": 800
|
|
1075
|
+
},
|
|
1076
|
+
"height": {
|
|
1077
|
+
"description": "Set the height of the clip bounding box in pixels. This constrains the height of the clip, overriding the default behavior where clips fill the viewport height.",
|
|
1078
|
+
"type": "integer",
|
|
1079
|
+
"minimum": 1,
|
|
1080
|
+
"maximum": 2160,
|
|
1081
|
+
"example": 600
|
|
1082
|
+
},
|
|
1069
1083
|
"position": {
|
|
1070
1084
|
"description": "Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. <ul>\n <li>`top` - top (center)</li>\n <li>`topRight` - top right</li>\n <li>`right` - right (center)</li>\n <li>`bottomRight` - bottom right</li>\n <li>`bottom` - bottom (center)</li>\n <li>`bottomLeft` - bottom left</li>\n <li>`left` - left (center)</li>\n <li>`topLeft` - top left</li>\n <li>`center` - center</li>\n</ul>",
|
|
1071
1085
|
"enum": [
|
|
@@ -1147,6 +1161,12 @@
|
|
|
1147
1161
|
"transform": {
|
|
1148
1162
|
"description": "A transformation lets you modify the visual properties of a clip. Available transformations are <b>rotate</b>, <b>skew</b> and <b>flip</b>. Transformations can be combined to create interesting new shapes and effects.",
|
|
1149
1163
|
"$ref": "#/components/schemas/Transformation"
|
|
1164
|
+
},
|
|
1165
|
+
"alias": {
|
|
1166
|
+
"description": "A unique identifier for this clip that can be used to reference it from other clips using the `alias://` protocol in asset sources. This is useful for features like auto-captioning where a caption asset needs to reference the audio from another clip.",
|
|
1167
|
+
"type": "string",
|
|
1168
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
1169
|
+
"example": "MY_VIDEO_CLIP"
|
|
1150
1170
|
}
|
|
1151
1171
|
},
|
|
1152
1172
|
"required": [
|
|
@@ -1250,6 +1270,7 @@
|
|
|
1250
1270
|
"volumeEffect": {
|
|
1251
1271
|
"description": "Preset volume effects to apply to the video asset <ul>\n <li>`fadeIn` - fade volume in only</li>\n <li>`fadeOut` - fade volume out only</li>\n <li>`fadeInFadeOut` - fade volume in and out</li>\n</ul>",
|
|
1252
1272
|
"enum": [
|
|
1273
|
+
"none",
|
|
1253
1274
|
"fadeIn",
|
|
1254
1275
|
"fadeOut",
|
|
1255
1276
|
"fadeInFadeOut"
|
|
@@ -1334,6 +1355,54 @@
|
|
|
1334
1355
|
"alignment": {
|
|
1335
1356
|
"description": "Alignment properties.",
|
|
1336
1357
|
"$ref": "#/components/schemas/TextAlignment"
|
|
1358
|
+
},
|
|
1359
|
+
"stroke": {
|
|
1360
|
+
"description": "Text stroke (outline) properties.",
|
|
1361
|
+
"properties": {
|
|
1362
|
+
"width": {
|
|
1363
|
+
"description": "The width of the stroke in pixels.",
|
|
1364
|
+
"type": "number",
|
|
1365
|
+
"minimum": 0,
|
|
1366
|
+
"maximum": 10,
|
|
1367
|
+
"example": 2
|
|
1368
|
+
},
|
|
1369
|
+
"color": {
|
|
1370
|
+
"description": "The stroke color using hexadecimal color notation.",
|
|
1371
|
+
"type": "string",
|
|
1372
|
+
"pattern": "^#[A-Fa-f0-9]{6}$",
|
|
1373
|
+
"example": "#000000"
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
"type": "object"
|
|
1377
|
+
},
|
|
1378
|
+
"animation": {
|
|
1379
|
+
"description": "Animation properties for text entrance effects.",
|
|
1380
|
+
"properties": {
|
|
1381
|
+
"preset": {
|
|
1382
|
+
"description": "The animation preset to apply. <ul>\n <li>`typewriter` - typewriter effect where characters appear one at a time</li>\n</ul>",
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"enum": [
|
|
1385
|
+
"typewriter"
|
|
1386
|
+
],
|
|
1387
|
+
"example": "typewriter"
|
|
1388
|
+
},
|
|
1389
|
+
"duration": {
|
|
1390
|
+
"description": "The duration of the animation in seconds.",
|
|
1391
|
+
"type": "number",
|
|
1392
|
+
"minimum": 0.1,
|
|
1393
|
+
"maximum": 30,
|
|
1394
|
+
"example": 2
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"required": [
|
|
1398
|
+
"preset"
|
|
1399
|
+
],
|
|
1400
|
+
"type": "object"
|
|
1401
|
+
},
|
|
1402
|
+
"ellipsis": {
|
|
1403
|
+
"description": "The string to display when text overflows its bounding box. Set to an ellipsis character or custom string to indicate truncated text.",
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"example": "..."
|
|
1337
1406
|
}
|
|
1338
1407
|
},
|
|
1339
1408
|
"required": [
|
|
@@ -1364,7 +1433,7 @@
|
|
|
1364
1433
|
"example": 800
|
|
1365
1434
|
},
|
|
1366
1435
|
"height": {
|
|
1367
|
-
"description": "Set the height of the rich text asset bounding box in pixels. Text and elements will be masked if they
|
|
1436
|
+
"description": "Set the height of the rich text asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box. Minimum 1px, maximum 4096px.",
|
|
1368
1437
|
"type": "integer",
|
|
1369
1438
|
"minimum": 1,
|
|
1370
1439
|
"maximum": 4096,
|
|
@@ -1390,6 +1459,86 @@
|
|
|
1390
1459
|
"description": "Background styling properties for the text bounding box.",
|
|
1391
1460
|
"$ref": "#/components/schemas/RichTextBackground"
|
|
1392
1461
|
},
|
|
1462
|
+
"border": {
|
|
1463
|
+
"description": "Border styling properties for the text bounding box.",
|
|
1464
|
+
"properties": {
|
|
1465
|
+
"width": {
|
|
1466
|
+
"description": "The width of the border in pixels. Must be 0 or greater.",
|
|
1467
|
+
"type": "number",
|
|
1468
|
+
"minimum": 0,
|
|
1469
|
+
"default": 0,
|
|
1470
|
+
"example": 2
|
|
1471
|
+
},
|
|
1472
|
+
"color": {
|
|
1473
|
+
"description": "The border color using hexadecimal color notation.",
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"pattern": "^#[A-Fa-f0-9]{6}$",
|
|
1476
|
+
"default": "#000000",
|
|
1477
|
+
"example": "#ff0000"
|
|
1478
|
+
},
|
|
1479
|
+
"opacity": {
|
|
1480
|
+
"description": "The opacity of the border where 1 is opaque and 0 is transparent.",
|
|
1481
|
+
"type": "number",
|
|
1482
|
+
"minimum": 0,
|
|
1483
|
+
"maximum": 1,
|
|
1484
|
+
"default": 1,
|
|
1485
|
+
"example": 0.8
|
|
1486
|
+
},
|
|
1487
|
+
"radius": {
|
|
1488
|
+
"description": "The border radius in pixels for rounded corners. Must be 0 or greater.",
|
|
1489
|
+
"type": "number",
|
|
1490
|
+
"minimum": 0,
|
|
1491
|
+
"default": 0,
|
|
1492
|
+
"example": 10
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
"type": "object"
|
|
1496
|
+
},
|
|
1497
|
+
"padding": {
|
|
1498
|
+
"description": "Padding inside the text bounding box. Can be a single number (applied to all sides) or an object with individual sides.",
|
|
1499
|
+
"oneOf": [
|
|
1500
|
+
{
|
|
1501
|
+
"type": "number",
|
|
1502
|
+
"minimum": 0,
|
|
1503
|
+
"description": "Padding in pixels applied to all sides.",
|
|
1504
|
+
"example": 10
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"description": "Padding properties for individual sides of the text bounding box.",
|
|
1508
|
+
"properties": {
|
|
1509
|
+
"top": {
|
|
1510
|
+
"description": "Top padding in pixels.",
|
|
1511
|
+
"type": "number",
|
|
1512
|
+
"minimum": 0,
|
|
1513
|
+
"default": 0,
|
|
1514
|
+
"example": 10
|
|
1515
|
+
},
|
|
1516
|
+
"right": {
|
|
1517
|
+
"description": "Right padding in pixels.",
|
|
1518
|
+
"type": "number",
|
|
1519
|
+
"minimum": 0,
|
|
1520
|
+
"default": 0,
|
|
1521
|
+
"example": 10
|
|
1522
|
+
},
|
|
1523
|
+
"bottom": {
|
|
1524
|
+
"description": "Bottom padding in pixels.",
|
|
1525
|
+
"type": "number",
|
|
1526
|
+
"minimum": 0,
|
|
1527
|
+
"default": 0,
|
|
1528
|
+
"example": 10
|
|
1529
|
+
},
|
|
1530
|
+
"left": {
|
|
1531
|
+
"description": "Left padding in pixels.",
|
|
1532
|
+
"type": "number",
|
|
1533
|
+
"minimum": 0,
|
|
1534
|
+
"default": 0,
|
|
1535
|
+
"example": 10
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
"type": "object"
|
|
1539
|
+
}
|
|
1540
|
+
]
|
|
1541
|
+
},
|
|
1393
1542
|
"align": {
|
|
1394
1543
|
"description": "Text alignment properties (horizontal and vertical).",
|
|
1395
1544
|
"$ref": "#/components/schemas/RichTextAlignment"
|
|
@@ -1453,6 +1602,7 @@
|
|
|
1453
1602
|
"effect": {
|
|
1454
1603
|
"description": "The effect to apply to the audio asset <ul>\n <li>`fadeIn` - fade volume in only</li>\n <li>`fadeOut` - fade volume out only</li>\n <li>`fadeInFadeOut` - fade volume in and out</li>\n</ul>",
|
|
1455
1604
|
"enum": [
|
|
1605
|
+
"none",
|
|
1456
1606
|
"fadeIn",
|
|
1457
1607
|
"fadeOut",
|
|
1458
1608
|
"fadeInFadeOut"
|
|
@@ -1883,6 +2033,7 @@
|
|
|
1883
2033
|
"in": {
|
|
1884
2034
|
"description": "The transition in. Available transitions are:\n <ul>\n <li>`fade` - fade in</li>\n <li>`reveal` - reveal from left to right</li>\n <li>`wipeLeft` - fade across screen to the left</li>\n <li>`wipeRight` - fade across screen to the right</li>\n <li>`slideLeft` - move slightly left and fade in</li>\n <li>`slideRight` - move slightly right and fade in</li>\n <li>`slideUp` - move slightly up and fade in</li>\n <li>`slideDown` - move slightly down and fade in</li>\n <li>`carouselLeft` - slide in from right to left</li>\n <li>`carouselRight` - slide in from left to right</li>\n <li>`carouselUp` - slide in from bottom to top</li>\n <li>`carouselDown` - slide in from top to bottom</li>\n <li>`shuffleTopRight` - rotate in from top right</li>\n <li>`shuffleRightTop` - rotate in from right top</li>\n <li>`shuffleRightBottom` - rotate in from right bottom</li>\n <li>`shuffleBottomRight` - rotate in from bottom right</li>\n <li>`shuffleBottomLeft` - rotate in from bottom left</li>\n <li>`shuffleLeftBottom` - rotate in from left bottom</li>\n <li>`shuffleLeftTop` - rotate in from left top</li>\n <li>`shuffleTopLeft` - rotate in from top left</li>\n <li>`zoom` - fast zoom in</li>\n </ul>\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.",
|
|
1885
2035
|
"enum": [
|
|
2036
|
+
"none",
|
|
1886
2037
|
"fade",
|
|
1887
2038
|
"fadeSlow",
|
|
1888
2039
|
"fadeFast",
|
|
@@ -1950,6 +2101,7 @@
|
|
|
1950
2101
|
"out": {
|
|
1951
2102
|
"description": "The transition out. Available transitions are:\n <ul>\n <li>`fade` - fade out</li>\n <li>`reveal` - reveal from right to left</li>\n <li>`wipeLeft` - fade across screen to the left</li>\n <li>`wipeRight` - fade across screen to the right</li>\n <li>`slideLeft` - move slightly left and fade out</li>\n <li>`slideRight` - move slightly right and fade out</li>\n <li>`slideUp` - move slightly up and fade out</li>\n <li>`slideDown` - move slightly down and fade out</li>\n <li>`carouselLeft` - slide out from right to left</li>\n <li>`carouselRight` - slide out from left to right</li>\n <li>`carouselUp` - slide out from bottom to top</li>\n <li>`carouselDown` - slide out from top to bottom</li>\n <li>`shuffleTopRight` - rotate out from top right</li>\n <li>`shuffleRightTop` - rotate out from right top</li>\n <li>`shuffleRightBottom` - rotate out from right bottom</li>\n <li>`shuffleBottomRight` - rotate out from bottom right</li>\n <li>`shuffleBottomLeft` - rotate out from bottom left</li>\n <li>`shuffleLeftBottom` - rotate out from left bottom</li>\n <li>`shuffleLeftTop` - rotate out from left top</li>\n <li>`shuffleTopLeft` - rotate out from top left</li>\n <li>`zoom` - fast zoom out</li>\n </ul>\nThe transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.",
|
|
1952
2103
|
"enum": [
|
|
2104
|
+
"none",
|
|
1953
2105
|
"fade",
|
|
1954
2106
|
"fadeSlow",
|
|
1955
2107
|
"fadeFast",
|
|
@@ -2141,7 +2293,7 @@
|
|
|
2141
2293
|
}
|
|
2142
2294
|
},
|
|
2143
2295
|
"SkewTransformation": {
|
|
2144
|
-
"description": "Skew a clip so its edges are sheared at an angle. Use values between
|
|
2296
|
+
"description": "Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.",
|
|
2145
2297
|
"type": "object",
|
|
2146
2298
|
"properties": {
|
|
2147
2299
|
"x": {
|
|
@@ -2149,8 +2301,10 @@
|
|
|
2149
2301
|
"oneOf": [
|
|
2150
2302
|
{
|
|
2151
2303
|
"type": "number",
|
|
2152
|
-
"description": "Range varies from
|
|
2304
|
+
"description": "Range varies from -100 to 100. Positive numbers skew the asset right, negative left. The distance moved is relative to the width of the viewport - i.e. an X skew of 0.5 will skew the asset half the screen width to the right.",
|
|
2153
2305
|
"format": "float",
|
|
2306
|
+
"minimum": -100,
|
|
2307
|
+
"maximum": 100,
|
|
2154
2308
|
"example": 0.5
|
|
2155
2309
|
},
|
|
2156
2310
|
{
|
|
@@ -2167,8 +2321,10 @@
|
|
|
2167
2321
|
"oneOf": [
|
|
2168
2322
|
{
|
|
2169
2323
|
"type": "number",
|
|
2170
|
-
"description": "Range varies from
|
|
2324
|
+
"description": "Range varies from -100 to 100. Positive numbers skew the asset up, negative down. The distance moved is relative to the height of the viewport - i.e. an Y skew of 0.5 will skew the asset half the screen height up.",
|
|
2171
2325
|
"format": "float",
|
|
2326
|
+
"minimum": -100,
|
|
2327
|
+
"maximum": 100,
|
|
2172
2328
|
"example": 0.5
|
|
2173
2329
|
},
|
|
2174
2330
|
{
|
|
@@ -2240,7 +2396,28 @@
|
|
|
2240
2396
|
"color": {
|
|
2241
2397
|
"description": "The background color using hexadecimal color notation.",
|
|
2242
2398
|
"type": "string",
|
|
2399
|
+
"pattern": "^#[A-Fa-f0-9]{6}$",
|
|
2243
2400
|
"example": "#000000"
|
|
2401
|
+
},
|
|
2402
|
+
"opacity": {
|
|
2403
|
+
"description": "The opacity of the background where 1 is opaque and 0 is transparent.",
|
|
2404
|
+
"type": "number",
|
|
2405
|
+
"minimum": 0,
|
|
2406
|
+
"maximum": 1,
|
|
2407
|
+
"example": 0.8
|
|
2408
|
+
},
|
|
2409
|
+
"padding": {
|
|
2410
|
+
"description": "Padding inside the background box in pixels.",
|
|
2411
|
+
"type": "number",
|
|
2412
|
+
"minimum": 0,
|
|
2413
|
+
"maximum": 100,
|
|
2414
|
+
"example": 10
|
|
2415
|
+
},
|
|
2416
|
+
"borderRadius": {
|
|
2417
|
+
"description": "The border radius of the background box in pixels for rounded corners.",
|
|
2418
|
+
"type": "number",
|
|
2419
|
+
"minimum": 0,
|
|
2420
|
+
"example": 5
|
|
2244
2421
|
}
|
|
2245
2422
|
},
|
|
2246
2423
|
"type": "object"
|
|
@@ -2275,7 +2452,7 @@
|
|
|
2275
2452
|
"description": "Font properties for rich text.",
|
|
2276
2453
|
"properties": {
|
|
2277
2454
|
"family": {
|
|
2278
|
-
"description": "The font family name. This must be the Family name embedded in the font, i.e. \"Open Sans\".
|
|
2455
|
+
"description": "The font family name. This must be the Family name embedded in the font, i.e. \"Open Sans\".",
|
|
2279
2456
|
"type": "string",
|
|
2280
2457
|
"example": "Open Sans",
|
|
2281
2458
|
"default": "Open Sans"
|
|
@@ -2871,7 +3048,8 @@
|
|
|
2871
3048
|
"mobile",
|
|
2872
3049
|
"sd",
|
|
2873
3050
|
"hd",
|
|
2874
|
-
"1080"
|
|
3051
|
+
"1080",
|
|
3052
|
+
"4k"
|
|
2875
3053
|
],
|
|
2876
3054
|
"type": "string"
|
|
2877
3055
|
},
|
|
@@ -3021,6 +3199,57 @@
|
|
|
3021
3199
|
},
|
|
3022
3200
|
{
|
|
3023
3201
|
"$ref": "#/components/schemas/VimeoDestination"
|
|
3202
|
+
},
|
|
3203
|
+
{
|
|
3204
|
+
"description": "Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.",
|
|
3205
|
+
"properties": {
|
|
3206
|
+
"provider": {
|
|
3207
|
+
"description": "The destination to send video to - set to `tiktok` for TikTok.",
|
|
3208
|
+
"type": "string",
|
|
3209
|
+
"default": "tiktok",
|
|
3210
|
+
"example": "tiktok"
|
|
3211
|
+
},
|
|
3212
|
+
"options": {
|
|
3213
|
+
"description": "Additional TikTok configuration options.",
|
|
3214
|
+
"properties": {
|
|
3215
|
+
"title": {
|
|
3216
|
+
"description": "A title for the video that will be displayed on TikTok.",
|
|
3217
|
+
"type": "string",
|
|
3218
|
+
"maxLength": 150
|
|
3219
|
+
},
|
|
3220
|
+
"privacyLevel": {
|
|
3221
|
+
"description": "The privacy level for the video. Options are: <ul>\n <li>`public` - video is visible to everyone</li>\n <li>`friends` - video is visible to friends only</li>\n <li>`private` - video is only visible to you</li>\n</ul>",
|
|
3222
|
+
"type": "string",
|
|
3223
|
+
"enum": [
|
|
3224
|
+
"public",
|
|
3225
|
+
"friends",
|
|
3226
|
+
"private"
|
|
3227
|
+
],
|
|
3228
|
+
"default": "private"
|
|
3229
|
+
},
|
|
3230
|
+
"disableDuet": {
|
|
3231
|
+
"description": "Disable the Duet feature for this video.",
|
|
3232
|
+
"type": "boolean",
|
|
3233
|
+
"default": false
|
|
3234
|
+
},
|
|
3235
|
+
"disableStitch": {
|
|
3236
|
+
"description": "Disable the Stitch feature for this video.",
|
|
3237
|
+
"type": "boolean",
|
|
3238
|
+
"default": false
|
|
3239
|
+
},
|
|
3240
|
+
"disableComment": {
|
|
3241
|
+
"description": "Disable comments on this video.",
|
|
3242
|
+
"type": "boolean",
|
|
3243
|
+
"default": false
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
"type": "object"
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3249
|
+
"type": "object",
|
|
3250
|
+
"required": [
|
|
3251
|
+
"provider"
|
|
3252
|
+
]
|
|
3024
3253
|
}
|
|
3025
3254
|
],
|
|
3026
3255
|
"additionalProperties": false
|
|
@@ -3251,6 +3480,11 @@
|
|
|
3251
3480
|
"privacy": {
|
|
3252
3481
|
"description": "Options to control the visibility of videos and privacy features.",
|
|
3253
3482
|
"$ref": "#/components/schemas/VimeoDestinationPrivacyOptions"
|
|
3483
|
+
},
|
|
3484
|
+
"folderUri": {
|
|
3485
|
+
"description": "The Vimeo folder URI to upload the video to. The folder must already exist in your Vimeo account.",
|
|
3486
|
+
"type": "string",
|
|
3487
|
+
"example": "/users/12345678/projects/87654321"
|
|
3254
3488
|
}
|
|
3255
3489
|
}
|
|
3256
3490
|
},
|