@shotstack/schemas 1.9.9 → 1.9.10

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.
@@ -1752,7 +1752,7 @@
1752
1752
  ]
1753
1753
  },
1754
1754
  "CaptionAsset": {
1755
- "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset\") or [Audio](#tocs_audioasset\") with\nmatching start and end time.\n",
1755
+ "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
1756
1756
  "type": "object",
1757
1757
  "properties": {
1758
1758
  "type": {
@@ -2417,7 +2417,7 @@
2417
2417
  ]
2418
2418
  },
2419
2419
  "SvgAsset": {
2420
- "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n```json\n{\n \"type\": \"svg\",\n \"src\": \"<svg width=\\\"100\\\" height=\\\"100\\\"><circle cx=\\\"50\\\" cy=\\\"50\\\" r=\\\"40\\\" fill=\\\"#FF0000\\\"/></svg>\"\n}\n```\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
2420
+ "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
2421
2421
  "type": "object",
2422
2422
  "properties": {
2423
2423
  "type": {
@@ -2430,7 +2430,7 @@
2430
2430
  "example": "svg"
2431
2431
  },
2432
2432
  "src": {
2433
- "description": "Raw SVG markup string. The shape, fill, stroke, dimensions and opacity\nare automatically extracted from the SVG content.\n",
2433
+ "description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
2434
2434
  "type": "string",
2435
2435
  "minLength": 1,
2436
2436
  "maxLength": 500000,
@@ -2444,7 +2444,7 @@
2444
2444
  ],
2445
2445
  "example": {
2446
2446
  "type": "svg",
2447
- "src": "<svg width=\"200\" height=\"200\"><rect x=\"10\" y=\"10\" width=\"180\" height=\"180\" rx=\"20\" fill=\"#3498db\" stroke=\"#2C3E50\" stroke-width=\"3\"/></svg>"
2447
+ "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"
2448
2448
  }
2449
2449
  },
2450
2450
  "Transition": {
@@ -2,7 +2,7 @@
2
2
  "name": "CaptionAsset",
3
3
  "strict": true,
4
4
  "schema": {
5
- "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset\") or [Audio](#tocs_audioasset\") with\nmatching start and end time.\n",
5
+ "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "type": {
@@ -1734,7 +1734,7 @@
1734
1734
  ]
1735
1735
  },
1736
1736
  "CaptionAsset": {
1737
- "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset\") or [Audio](#tocs_audioasset\") with\nmatching start and end time.\n",
1737
+ "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
1738
1738
  "type": "object",
1739
1739
  "properties": {
1740
1740
  "type": {
@@ -2761,7 +2761,7 @@
2761
2761
  ]
2762
2762
  },
2763
2763
  "SvgAsset": {
2764
- "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n```json\n{\n \"type\": \"svg\",\n \"src\": \"<svg width=\\\"100\\\" height=\\\"100\\\"><circle cx=\\\"50\\\" cy=\\\"50\\\" r=\\\"40\\\" fill=\\\"#FF0000\\\"/></svg>\"\n}\n```\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
2764
+ "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
2765
2765
  "type": "object",
2766
2766
  "properties": {
2767
2767
  "type": {
@@ -2772,7 +2772,7 @@
2772
2772
  ]
2773
2773
  },
2774
2774
  "src": {
2775
- "description": "Raw SVG markup string. The shape, fill, stroke, dimensions and opacity\nare automatically extracted from the SVG content.\n",
2775
+ "description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
2776
2776
  "type": "string"
2777
2777
  }
2778
2778
  },
@@ -2,7 +2,7 @@
2
2
  "name": "SvgAsset",
3
3
  "strict": true,
4
4
  "schema": {
5
- "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n```json\n{\n \"type\": \"svg\",\n \"src\": \"<svg width=\\\"100\\\" height=\\\"100\\\"><circle cx=\\\"50\\\" cy=\\\"50\\\" r=\\\"40\\\" fill=\\\"#FF0000\\\"/></svg>\"\n}\n```\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
5
+ "description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "type": {
@@ -13,7 +13,7 @@
13
13
  ]
14
14
  },
15
15
  "src": {
16
- "description": "Raw SVG markup string. The shape, fill, stroke, dimensions and opacity\nare automatically extracted from the SVG content.\n",
16
+ "description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
17
17
  "type": "string"
18
18
  }
19
19
  },
package/dist/schema.d.ts CHANGED
@@ -897,7 +897,7 @@ export interface components {
897
897
  * flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
898
898
  * captions.
899
899
  *
900
- * To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
900
+ * To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
901
901
  * matching start and end time.
902
902
  */
903
903
  CaptionAsset: {
@@ -1339,13 +1339,6 @@ export interface components {
1339
1339
  /**
1340
1340
  * @description The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
1341
1341
  *
1342
- * ```json
1343
- * {
1344
- * "type": "svg",
1345
- * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
1346
- * }
1347
- * ```
1348
- *
1349
1342
  * **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
1350
1343
  * `<line>`, `<polygon>`, `<polyline>`
1351
1344
  *
@@ -1359,7 +1352,7 @@ export interface components {
1359
1352
  * See [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.
1360
1353
  * @example {
1361
1354
  * "type": "svg",
1362
- * "src": "<svg width=\"200\" height=\"200\"><rect x=\"10\" y=\"10\" width=\"180\" height=\"180\" rx=\"20\" fill=\"#3498db\" stroke=\"#2C3E50\" stroke-width=\"3\"/></svg>"
1355
+ * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"
1363
1356
  * }
1364
1357
  */
1365
1358
  SvgAsset: {
@@ -1369,8 +1362,9 @@ export interface components {
1369
1362
  */
1370
1363
  type: "svg";
1371
1364
  /**
1372
- * @description Raw SVG markup string. The shape, fill, stroke, dimensions and opacity
1373
- * are automatically extracted from the SVG content.
1365
+ * @description Raw SVG markup string. The SVG must contain valid SVG elements. The shape,
1366
+ * fill, stroke, dimensions and opacity are automatically extracted from the
1367
+ * SVG content.
1374
1368
  * @example <svg width="100" height="100"><circle cx="50" cy="50" r="40" fill="#3498db"/></svg>
1375
1369
  */
1376
1370
  src: string;
@@ -122,7 +122,7 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
122
122
  * flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
123
123
  * captions.
124
124
  *
125
- * To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
125
+ * To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
126
126
  * matching start and end time.
127
127
  *
128
128
  */
@@ -1628,13 +1628,6 @@ exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1628
1628
  /**
1629
1629
  * The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
1630
1630
  *
1631
- * ```json
1632
- * {
1633
- * "type": "svg",
1634
- * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
1635
- * }
1636
- * ```
1637
- *
1638
1631
  * **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
1639
1632
  * `<line>`, `<polygon>`, `<polyline>`
1640
1633
  *
@@ -70,7 +70,7 @@ export declare const captionMarginSchema: z.ZodObject<{
70
70
  * flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
71
71
  * captions.
72
72
  *
73
- * To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
73
+ * To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
74
74
  * matching start and end time.
75
75
  *
76
76
  */
@@ -4653,13 +4653,6 @@ export declare const soundtrackSchema: z.ZodObject<{
4653
4653
  /**
4654
4654
  * The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
4655
4655
  *
4656
- * ```json
4657
- * {
4658
- * "type": "svg",
4659
- * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
4660
- * }
4661
- * ```
4662
- *
4663
4656
  * **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
4664
4657
  * `<line>`, `<polygon>`, `<polyline>`
4665
4658
  *
@@ -114,7 +114,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
114
114
  * flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
115
115
  * captions.
116
116
  *
117
- * To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
117
+ * To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
118
118
  * matching start and end time.
119
119
  *
120
120
  */
@@ -1620,13 +1620,6 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1620
1620
  /**
1621
1621
  * The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
1622
1622
  *
1623
- * ```json
1624
- * {
1625
- * "type": "svg",
1626
- * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
1627
- * }
1628
- * ```
1629
- *
1630
1623
  * **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
1631
1624
  * `<line>`, `<polygon>`, `<polyline>`
1632
1625
  *
@@ -76,7 +76,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
76
76
  * flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
77
77
  * captions.
78
78
  *
79
- * To sync captions with a video or audio file use a [Video](#tocs_videoasset") or [Audio](#tocs_audioasset") with
79
+ * To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
80
80
  * matching start and end time.
81
81
  *
82
82
  */
@@ -1318,13 +1318,6 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1318
1318
  /**
1319
1319
  * The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
1320
1320
  *
1321
- * ```json
1322
- * {
1323
- * "type": "svg",
1324
- * "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
1325
- * }
1326
- * ```
1327
- *
1328
1321
  * **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
1329
1322
  * `<line>`, `<polygon>`, `<polyline>`
1330
1323
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.9.9",
3
+ "version": "1.9.10",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",