@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.
- package/README.md +5 -0
- package/dist/{index-CIcGZD3x.d.ts → index-DxAt9Jq8.d.ts} +34 -18
- package/dist/index.d.ts +2 -2
- package/dist/index.js +57 -24
- 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.d.ts +1 -1
- package/dist/workflows/index.js +54 -23
- package/dist/workflows/index.js.map +1 -1
- package/package.json +2 -2
package/dist/primitives/index.js
CHANGED
|
@@ -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:
|
|
1025
|
-
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");
|