@ai-sdk/openai 3.0.0-beta.48 → 3.0.0-beta.49

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.
@@ -2623,7 +2623,12 @@ var openaiResponsesChunkSchema = lazySchema12(
2623
2623
  z14.object({
2624
2624
  type: z14.literal("search"),
2625
2625
  query: z14.string().nullish(),
2626
- sources: z14.array(z14.object({ type: z14.literal("url"), url: z14.string() })).nullish()
2626
+ sources: z14.array(
2627
+ z14.discriminatedUnion("type", [
2628
+ z14.object({ type: z14.literal("url"), url: z14.string() }),
2629
+ z14.object({ type: z14.literal("api"), name: z14.string() })
2630
+ ])
2631
+ ).nullish()
2627
2632
  }),
2628
2633
  z14.object({
2629
2634
  type: z14.literal("open_page"),
@@ -2810,7 +2815,12 @@ var openaiResponsesResponseSchema = lazySchema12(
2810
2815
  z14.object({
2811
2816
  type: z14.literal("search"),
2812
2817
  query: z14.string().nullish(),
2813
- sources: z14.array(z14.object({ type: z14.literal("url"), url: z14.string() })).nullish()
2818
+ sources: z14.array(
2819
+ z14.discriminatedUnion("type", [
2820
+ z14.object({ type: z14.literal("url"), url: z14.string() }),
2821
+ z14.object({ type: z14.literal("api"), name: z14.string() })
2822
+ ])
2823
+ ).nullish()
2814
2824
  }),
2815
2825
  z14.object({
2816
2826
  type: z14.literal("open_page"),
@@ -3162,7 +3172,12 @@ var webSearchOutputSchema = lazySchema16(
3162
3172
  pattern: z18.string()
3163
3173
  })
3164
3174
  ]),
3165
- sources: z18.array(z18.object({ type: z18.literal("url"), url: z18.string() })).optional()
3175
+ sources: z18.array(
3176
+ z18.discriminatedUnion("type", [
3177
+ z18.object({ type: z18.literal("url"), url: z18.string() }),
3178
+ z18.object({ type: z18.literal("api"), name: z18.string() })
3179
+ ])
3180
+ ).optional()
3166
3181
  })
3167
3182
  )
3168
3183
  );