@shotstack/schemas 1.24.0 → 1.25.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 +39 -0
- package/dist/json-schema/edit.json +42 -0
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +12 -0
- package/dist/zod/zod.gen.cjs +25 -7
- package/dist/zod/zod.gen.d.ts +287 -0
- package/dist/zod/zod.gen.js +19 -1
- package/dist/zod/zod.gen.ts +15 -1
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -2190,6 +2190,9 @@
|
|
|
2190
2190
|
"fadeInFadeOut"
|
|
2191
2191
|
],
|
|
2192
2192
|
"type": "string"
|
|
2193
|
+
},
|
|
2194
|
+
"duck": {
|
|
2195
|
+
"$ref": "#/components/schemas/Duck"
|
|
2193
2196
|
}
|
|
2194
2197
|
},
|
|
2195
2198
|
"additionalProperties": false,
|
|
@@ -3335,6 +3338,42 @@
|
|
|
3335
3338
|
"additionalProperties": false,
|
|
3336
3339
|
"type": "object"
|
|
3337
3340
|
},
|
|
3341
|
+
"Duck": {
|
|
3342
|
+
"description": "Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`.",
|
|
3343
|
+
"type": "object",
|
|
3344
|
+
"properties": {
|
|
3345
|
+
"under": {
|
|
3346
|
+
"description": "The clip or clips to duck under, each referenced by its alias in the form `alias://clip-name`.",
|
|
3347
|
+
"oneOf": [
|
|
3348
|
+
{
|
|
3349
|
+
"type": "string",
|
|
3350
|
+
"pattern": "^alias://[A-Za-z0-9_-]+$",
|
|
3351
|
+
"example": "alias://voice"
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
"type": "array",
|
|
3355
|
+
"minItems": 1,
|
|
3356
|
+
"items": {
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"pattern": "^alias://[A-Za-z0-9_-]+$"
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
]
|
|
3362
|
+
},
|
|
3363
|
+
"volume": {
|
|
3364
|
+
"description": "The volume while ducked, from 0 to 1. When omitted, the level is chosen automatically so the clips it ducks under stay clearly audible. When set, it must be lower than the clip's own volume.",
|
|
3365
|
+
"type": "number",
|
|
3366
|
+
"format": "float",
|
|
3367
|
+
"minimum": 0,
|
|
3368
|
+
"maximum": 1,
|
|
3369
|
+
"example": 0.1
|
|
3370
|
+
}
|
|
3371
|
+
},
|
|
3372
|
+
"additionalProperties": false,
|
|
3373
|
+
"required": [
|
|
3374
|
+
"under"
|
|
3375
|
+
]
|
|
3376
|
+
},
|
|
3338
3377
|
"Transformation": {
|
|
3339
3378
|
"description": "Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.",
|
|
3340
3379
|
"type": "object",
|
|
@@ -194,6 +194,9 @@
|
|
|
194
194
|
"fadeInFadeOut"
|
|
195
195
|
],
|
|
196
196
|
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"duck": {
|
|
199
|
+
"$ref": "#/$defs/Duck"
|
|
197
200
|
}
|
|
198
201
|
},
|
|
199
202
|
"additionalProperties": false,
|
|
@@ -1020,6 +1023,45 @@
|
|
|
1020
1023
|
}
|
|
1021
1024
|
]
|
|
1022
1025
|
},
|
|
1026
|
+
"Duck": {
|
|
1027
|
+
"description": "Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`.",
|
|
1028
|
+
"type": "object",
|
|
1029
|
+
"properties": {
|
|
1030
|
+
"under": {
|
|
1031
|
+
"description": "The clip or clips to duck under, each referenced by its alias in the form `alias://clip-name`.",
|
|
1032
|
+
"oneOf": [
|
|
1033
|
+
{
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"pattern": "^alias://[A-Za-z0-9_-]+$",
|
|
1036
|
+
"examples": [
|
|
1037
|
+
"alias://voice"
|
|
1038
|
+
]
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"type": "array",
|
|
1042
|
+
"minItems": 1,
|
|
1043
|
+
"items": {
|
|
1044
|
+
"type": "string",
|
|
1045
|
+
"pattern": "^alias://[A-Za-z0-9_-]+$"
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
]
|
|
1049
|
+
},
|
|
1050
|
+
"volume": {
|
|
1051
|
+
"description": "The volume while ducked, from 0 to 1. When omitted, the level is chosen automatically so the clips it ducks under stay clearly audible. When set, it must be lower than the clip's own volume.",
|
|
1052
|
+
"type": "number",
|
|
1053
|
+
"minimum": 0,
|
|
1054
|
+
"maximum": 1,
|
|
1055
|
+
"examples": [
|
|
1056
|
+
0.1
|
|
1057
|
+
]
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"additionalProperties": false,
|
|
1061
|
+
"required": [
|
|
1062
|
+
"under"
|
|
1063
|
+
]
|
|
1064
|
+
},
|
|
1023
1065
|
"Filter": {
|
|
1024
1066
|
"type": "object",
|
|
1025
1067
|
"description": "A filter that adjusts the look of a Clip. Choose from one of the available filter types below. Tween values outside a field's range are limited to that range.",
|