@shotstack/schemas 1.9.11 → 1.10.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.
@@ -1152,7 +1152,7 @@ exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
1152
1152
  if (mediaExts.some((ext) => pathname.endsWith(ext))) {
1153
1153
  ctx.addIssue({
1154
1154
  code: zod_1.z.ZodIssueCode.custom,
1155
- message: "src must point to a subtitle file (SRT or VTT). Audio and video files are not supported as src. Use the words array to provide word timings directly.",
1155
+ message: "Caption src must be an SRT or VTT subtitle file. To generate captions from a media asset, use an alias reference (e.g. \"alias://my-clip\") instead of a direct URL. See: https://shotstack.io/docs/guide/architecting-an-application/rich-captions/",
1156
1156
  path: ["src"],
1157
1157
  });
1158
1158
  }
@@ -1144,7 +1144,7 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
1144
1144
  if (mediaExts.some((ext) => pathname.endsWith(ext))) {
1145
1145
  ctx.addIssue({
1146
1146
  code: z.ZodIssueCode.custom,
1147
- message: "src must point to a subtitle file (SRT or VTT). Audio and video files are not supported as src. Use the words array to provide word timings directly.",
1147
+ message: "Caption src must be an SRT or VTT subtitle file. To generate captions from a media asset, use an alias reference (e.g. \"alias://my-clip\") instead of a direct URL. See: https://shotstack.io/docs/guide/architecting-an-application/rich-captions/",
1148
1148
  path: ["src"],
1149
1149
  });
1150
1150
  }
@@ -982,7 +982,7 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
982
982
  if (mediaExts.some((ext) => pathname.endsWith(ext))) {
983
983
  ctx.addIssue({
984
984
  code: z.ZodIssueCode.custom,
985
- message: "src must point to a subtitle file (SRT or VTT). Audio and video files are not supported as src. Use the words array to provide word timings directly.",
985
+ message: "Caption src must be an SRT or VTT subtitle file. To generate captions from a media asset, use an alias reference (e.g. \"alias://my-clip\") instead of a direct URL. See: https://shotstack.io/docs/guide/architecting-an-application/rich-captions/",
986
986
  path: ["src"],
987
987
  });
988
988
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.9.11",
3
+ "version": "1.10.0",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",