@shotstack/schemas 1.7.1 → 1.8.2
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/README.md +89 -89
- package/dist/api.bundled.json +49 -833
- package/dist/json-schema/asset.json +84 -855
- package/dist/json-schema/clip.json +84 -855
- package/dist/json-schema/edit.json +84 -855
- package/dist/json-schema/rich-caption-asset.json +221 -140
- package/dist/json-schema/schemas.json +93 -951
- package/dist/json-schema/svg-asset.json +6 -857
- package/dist/json-schema/timeline.json +84 -855
- package/dist/json-schema/track.json +84 -855
- package/dist/schema.d.ts +43 -660
- package/dist/zod/zod.gen.cjs +914 -1640
- package/dist/zod/zod.gen.d.ts +306 -8714
- package/dist/zod/zod.gen.js +911 -1636
- package/dist/zod/zod.gen.ts +1593 -1880
- package/package.json +79 -79
- package/dist/json-schema/svg-arrow-shape.json +0 -49
- package/dist/json-schema/svg-circle-shape.json +0 -28
- package/dist/json-schema/svg-cross-shape.json +0 -42
- package/dist/json-schema/svg-ellipse-shape.json +0 -35
- package/dist/json-schema/svg-fill.json +0 -169
- package/dist/json-schema/svg-gradient-stop.json +0 -25
- package/dist/json-schema/svg-heart-shape.json +0 -28
- package/dist/json-schema/svg-line-shape.json +0 -35
- package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
- package/dist/json-schema/svg-path-shape.json +0 -26
- package/dist/json-schema/svg-polygon-shape.json +0 -35
- package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
- package/dist/json-schema/svg-rectangle-shape.json +0 -49
- package/dist/json-schema/svg-ring-shape.json +0 -35
- package/dist/json-schema/svg-shadow.json +0 -79
- package/dist/json-schema/svg-shape.json +0 -404
- package/dist/json-schema/svg-solid-fill.json +0 -40
- package/dist/json-schema/svg-star-shape.json +0 -42
- package/dist/json-schema/svg-stroke.json +0 -115
- package/dist/json-schema/svg-transform.json +0 -93
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SvgSolidFill",
|
|
3
|
-
"strict": true,
|
|
4
|
-
"schema": {
|
|
5
|
-
"description": "A solid color fill for SVG shapes.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"type": {
|
|
10
|
-
"description": "The fill type - set to `solid` for a single color fill.",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"enum": [
|
|
13
|
-
"solid"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"color": {
|
|
17
|
-
"description": "The fill color using hexadecimal color notation (e.g., `#FF0000` for red).\nMust be a 6-digit hex color code prefixed with `#`.\n",
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"opacity": {
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"type": "number",
|
|
24
|
-
"description": "The opacity of the fill where `1` is fully opaque and `0` is fully transparent.\nValues between 0 and 1 create semi-transparent fills.\n",
|
|
25
|
-
"minimum": 0,
|
|
26
|
-
"maximum": 1
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "null"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"required": [
|
|
35
|
-
"type",
|
|
36
|
-
"color",
|
|
37
|
-
"opacity"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SvgStarShape",
|
|
3
|
-
"strict": true,
|
|
4
|
-
"schema": {
|
|
5
|
-
"description": "A star shape with a specified number of points.\nThe star is defined by outer and inner radii, creating the characteristic\npointed appearance.\n",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"type": {
|
|
10
|
-
"description": "The shape type - set to `star`.",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"enum": [
|
|
13
|
-
"star"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"points": {
|
|
17
|
-
"description": "The number of points on the star.\nMinimum 3 for a triangle-like star, typically 5 for a classic star.\n",
|
|
18
|
-
"type": "integer",
|
|
19
|
-
"minimum": 3,
|
|
20
|
-
"maximum": 100
|
|
21
|
-
},
|
|
22
|
-
"outerRadius": {
|
|
23
|
-
"description": "The outer radius in pixels - the distance from center to the tips of the points.\n",
|
|
24
|
-
"type": "number",
|
|
25
|
-
"minimum": 1,
|
|
26
|
-
"maximum": 2048
|
|
27
|
-
},
|
|
28
|
-
"innerRadius": {
|
|
29
|
-
"description": "The inner radius in pixels - the distance from center to the inner vertices.\nShould be smaller than outerRadius for a star effect.\n",
|
|
30
|
-
"type": "number",
|
|
31
|
-
"minimum": 1,
|
|
32
|
-
"maximum": 2048
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"required": [
|
|
36
|
-
"type",
|
|
37
|
-
"points",
|
|
38
|
-
"outerRadius",
|
|
39
|
-
"innerRadius"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SvgStroke",
|
|
3
|
-
"strict": true,
|
|
4
|
-
"schema": {
|
|
5
|
-
"description": "Stroke (outline) properties for SVG shapes. The stroke defines how the outline\nof a shape is painted, including its color, width, and line style.\n",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"color": {
|
|
10
|
-
"anyOf": [
|
|
11
|
-
{
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "The stroke color using hexadecimal color notation."
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "null"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"width": {
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"type": "number",
|
|
24
|
-
"description": "The width of the stroke in pixels. Must be greater than 0.\nLarger values create thicker outlines.\n",
|
|
25
|
-
"minimum": 0,
|
|
26
|
-
"maximum": 100
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "null"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"opacity": {
|
|
34
|
-
"anyOf": [
|
|
35
|
-
{
|
|
36
|
-
"type": "number",
|
|
37
|
-
"description": "The opacity of the stroke where `1` is opaque and `0` is transparent.",
|
|
38
|
-
"minimum": 0,
|
|
39
|
-
"maximum": 1
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "null"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"lineCap": {
|
|
47
|
-
"anyOf": [
|
|
48
|
-
{
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "The shape at the end of open paths (lines, polylines, unclosed paths).\n<ul>\n <li>`butt` - flat edge perpendicular to the line (default)</li>\n <li>`round` - semicircular cap extending beyond the endpoint</li>\n <li>`square` - rectangular cap extending beyond the endpoint</li>\n</ul>\n",
|
|
51
|
-
"enum": [
|
|
52
|
-
"butt",
|
|
53
|
-
"round",
|
|
54
|
-
"square"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "null"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"lineJoin": {
|
|
63
|
-
"anyOf": [
|
|
64
|
-
{
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "The shape at the corners where two lines meet.\n<ul>\n <li>`miter` - sharp corner (default)</li>\n <li>`round` - rounded corner</li>\n <li>`bevel` - flattened corner</li>\n</ul>\n",
|
|
67
|
-
"enum": [
|
|
68
|
-
"miter",
|
|
69
|
-
"round",
|
|
70
|
-
"bevel"
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "null"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"dashArray": {
|
|
79
|
-
"anyOf": [
|
|
80
|
-
{
|
|
81
|
-
"type": "array",
|
|
82
|
-
"description": "Pattern of dashes and gaps for the stroke. An array of numbers where\nodd indices are dash lengths and even indices are gap lengths.\nFor example, `[10, 5]` creates 10px dashes with 5px gaps.\n`[10, 5, 2, 5]` creates alternating 10px and 2px dashes with 5px gaps.\n",
|
|
83
|
-
"items": {
|
|
84
|
-
"type": "number",
|
|
85
|
-
"minimum": 0
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"type": "null"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
"dashOffset": {
|
|
94
|
-
"anyOf": [
|
|
95
|
-
{
|
|
96
|
-
"type": "number",
|
|
97
|
-
"description": "Offset for the dash pattern. Positive values shift the pattern\nforward along the path, negative values shift it backward.\n"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "null"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"required": [
|
|
106
|
-
"color",
|
|
107
|
-
"width",
|
|
108
|
-
"opacity",
|
|
109
|
-
"lineCap",
|
|
110
|
-
"lineJoin",
|
|
111
|
-
"dashArray",
|
|
112
|
-
"dashOffset"
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SvgTransform",
|
|
3
|
-
"strict": true,
|
|
4
|
-
"schema": {
|
|
5
|
-
"description": "Transformation properties for positioning, rotating, and scaling SVG shapes.\n",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"x": {
|
|
10
|
-
"anyOf": [
|
|
11
|
-
{
|
|
12
|
-
"type": "number",
|
|
13
|
-
"description": "The x-coordinate position of the shape in pixels.\nRelative to the top-left corner of the viewport.\n"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "null"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"y": {
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"type": "number",
|
|
24
|
-
"description": "The y-coordinate position of the shape in pixels.\nRelative to the top-left corner of the viewport.\n"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "null"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"rotation": {
|
|
32
|
-
"anyOf": [
|
|
33
|
-
{
|
|
34
|
-
"type": "number",
|
|
35
|
-
"description": "Rotation angle in degrees. Positive values rotate clockwise,\nnegative values rotate counter-clockwise. Range: -360 to 360.\n",
|
|
36
|
-
"minimum": -360,
|
|
37
|
-
"maximum": 360
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "null"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"scale": {
|
|
45
|
-
"anyOf": [
|
|
46
|
-
{
|
|
47
|
-
"type": "number",
|
|
48
|
-
"description": "Scale factor for the shape. `1` is original size, `2` is double size,\n`0.5` is half size. Must be greater than 0.\n",
|
|
49
|
-
"minimum": 0.01,
|
|
50
|
-
"maximum": 100
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"type": "null"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"originX": {
|
|
58
|
-
"anyOf": [
|
|
59
|
-
{
|
|
60
|
-
"type": "number",
|
|
61
|
-
"description": "The x-coordinate of the transformation origin as a value from 0 to 1.\n`0` is the left edge, `0.5` is the center, `1` is the right edge.\n",
|
|
62
|
-
"minimum": 0,
|
|
63
|
-
"maximum": 1
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "null"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
"originY": {
|
|
71
|
-
"anyOf": [
|
|
72
|
-
{
|
|
73
|
-
"type": "number",
|
|
74
|
-
"description": "The y-coordinate of the transformation origin as a value from 0 to 1.\n`0` is the top edge, `0.5` is the center, `1` is the bottom edge.\n",
|
|
75
|
-
"minimum": 0,
|
|
76
|
-
"maximum": 1
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"type": "null"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"required": [
|
|
85
|
-
"x",
|
|
86
|
-
"y",
|
|
87
|
-
"rotation",
|
|
88
|
-
"scale",
|
|
89
|
-
"originX",
|
|
90
|
-
"originY"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
}
|