@mux/ai 0.47.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.
- package/README.md +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.js +3 -5
- package/dist/primitives/index.js.map +1 -1
- package/dist/workflows/index.js +3 -5
- package/dist/workflows/index.js.map +1 -1
- package/package.json +2 -2
package/dist/workflows/index.js
CHANGED
|
@@ -5519,17 +5519,15 @@ async function transformShotsResponse(data) {
|
|
|
5519
5519
|
status: "pending",
|
|
5520
5520
|
createdAt: data.created_at
|
|
5521
5521
|
};
|
|
5522
|
-
case "errored":
|
|
5523
|
-
const details = data.errors ?? data.error;
|
|
5522
|
+
case "errored":
|
|
5524
5523
|
return {
|
|
5525
5524
|
status: "errored",
|
|
5526
5525
|
createdAt: data.created_at,
|
|
5527
5526
|
error: {
|
|
5528
|
-
type:
|
|
5529
|
-
messages:
|
|
5527
|
+
type: data.errors?.type ?? "unknown",
|
|
5528
|
+
messages: data.errors?.messages ?? []
|
|
5530
5529
|
}
|
|
5531
5530
|
};
|
|
5532
|
-
}
|
|
5533
5531
|
case "completed":
|
|
5534
5532
|
if (!data.shots_manifest_url) {
|
|
5535
5533
|
throw new Error("Completed shots response is missing shots_manifest_url");
|