@ai-sdk/openai 3.0.30 → 3.0.32

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.
@@ -3252,7 +3252,7 @@ var openaiResponsesChunkSchema = lazySchema14(
3252
3252
  url: z16.string().nullish(),
3253
3253
  pattern: z16.string().nullish()
3254
3254
  })
3255
- ])
3255
+ ]).nullish()
3256
3256
  }),
3257
3257
  z16.object({
3258
3258
  type: z16.literal("file_search_call"),
@@ -3568,7 +3568,10 @@ var openaiResponsesResponseSchema = lazySchema14(
3568
3568
  sources: z16.array(
3569
3569
  z16.discriminatedUnion("type", [
3570
3570
  z16.object({ type: z16.literal("url"), url: z16.string() }),
3571
- z16.object({ type: z16.literal("api"), name: z16.string() })
3571
+ z16.object({
3572
+ type: z16.literal("api"),
3573
+ name: z16.string()
3574
+ })
3572
3575
  ])
3573
3576
  ).nullish()
3574
3577
  }),
@@ -3581,7 +3584,7 @@ var openaiResponsesResponseSchema = lazySchema14(
3581
3584
  url: z16.string().nullish(),
3582
3585
  pattern: z16.string().nullish()
3583
3586
  })
3584
- ])
3587
+ ]).nullish()
3585
3588
  }),
3586
3589
  z16.object({
3587
3590
  type: z16.literal("file_search_call"),
@@ -3799,7 +3802,9 @@ var openaiResponsesReasoningModelIds = [
3799
3802
  "gpt-5.1-codex-max",
3800
3803
  "gpt-5.2",
3801
3804
  "gpt-5.2-chat-latest",
3802
- "gpt-5.2-pro"
3805
+ "gpt-5.2-pro",
3806
+ "gpt-5.2-codex",
3807
+ "gpt-5.3-codex"
3803
3808
  ];
3804
3809
  var openaiResponsesModelIds = [
3805
3810
  "gpt-4.1",
@@ -4245,7 +4250,7 @@ var webSearchOutputSchema = lazySchema20(
4245
4250
  url: z22.string().nullish(),
4246
4251
  pattern: z22.string().nullish()
4247
4252
  })
4248
- ]),
4253
+ ]).optional(),
4249
4254
  sources: z22.array(
4250
4255
  z22.discriminatedUnion("type", [
4251
4256
  z22.object({ type: z22.literal("url"), url: z22.string() }),
@@ -4302,7 +4307,7 @@ var webSearchPreviewOutputSchema = lazySchema21(
4302
4307
  url: z23.string().nullish(),
4303
4308
  pattern: z23.string().nullish()
4304
4309
  })
4305
- ])
4310
+ ]).optional()
4306
4311
  })
4307
4312
  )
4308
4313
  );
@@ -6010,6 +6015,9 @@ function isErrorChunk(chunk) {
6010
6015
  }
6011
6016
  function mapWebSearchOutput(action) {
6012
6017
  var _a;
6018
+ if (action == null) {
6019
+ return {};
6020
+ }
6013
6021
  switch (action.type) {
6014
6022
  case "search":
6015
6023
  return {