@mux/ai 0.46.0 → 0.48.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.
@@ -1015,17 +1015,15 @@ async function transformShotsResponse(data) {
1015
1015
  status: "pending",
1016
1016
  createdAt: data.created_at
1017
1017
  };
1018
- case "errored": {
1019
- const details = data.errors ?? data.error;
1018
+ case "errored":
1020
1019
  return {
1021
1020
  status: "errored",
1022
1021
  createdAt: data.created_at,
1023
1022
  error: {
1024
- type: details?.type ?? "unknown",
1025
- messages: details?.messages ?? []
1023
+ type: data.errors?.type ?? "unknown",
1024
+ messages: data.errors?.messages ?? []
1026
1025
  }
1027
1026
  };
1028
- }
1029
1027
  case "completed":
1030
1028
  if (!data.shots_manifest_url) {
1031
1029
  throw new Error("Completed shots response is missing shots_manifest_url");