@ai-sdk/openai 3.0.0-beta.75 → 3.0.0-beta.77

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.
@@ -1649,12 +1649,17 @@ var import_v48 = require("zod/v4");
1649
1649
  var openaiImageResponseSchema = (0, import_provider_utils12.lazySchema)(
1650
1650
  () => (0, import_provider_utils12.zodSchema)(
1651
1651
  import_v48.z.object({
1652
+ created: import_v48.z.number().nullish(),
1652
1653
  data: import_v48.z.array(
1653
1654
  import_v48.z.object({
1654
1655
  b64_json: import_v48.z.string(),
1655
1656
  revised_prompt: import_v48.z.string().nullish()
1656
1657
  })
1657
1658
  ),
1659
+ background: import_v48.z.string().nullish(),
1660
+ output_format: import_v48.z.string().nullish(),
1661
+ size: import_v48.z.string().nullish(),
1662
+ quality: import_v48.z.string().nullish(),
1658
1663
  usage: import_v48.z.object({
1659
1664
  input_tokens: import_v48.z.number().nullish(),
1660
1665
  output_tokens: import_v48.z.number().nullish(),
@@ -1753,11 +1758,17 @@ var OpenAIImageModel = class {
1753
1758
  },
1754
1759
  providerMetadata: {
1755
1760
  openai: {
1756
- images: response.data.map(
1757
- (item) => item.revised_prompt ? {
1758
- revisedPrompt: item.revised_prompt
1759
- } : null
1760
- )
1761
+ images: response.data.map((item) => {
1762
+ var _a2, _b2, _c2, _d2, _e2;
1763
+ return {
1764
+ ...item.revised_prompt ? { revisedPrompt: item.revised_prompt } : {},
1765
+ created: (_a2 = response.created) != null ? _a2 : void 0,
1766
+ size: (_b2 = response.size) != null ? _b2 : void 0,
1767
+ quality: (_c2 = response.quality) != null ? _c2 : void 0,
1768
+ background: (_d2 = response.background) != null ? _d2 : void 0,
1769
+ outputFormat: (_e2 = response.output_format) != null ? _e2 : void 0
1770
+ };
1771
+ })
1761
1772
  }
1762
1773
  }
1763
1774
  };