@ai-sdk/openai 2.0.76 → 2.0.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.
@@ -510,7 +510,7 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
510
510
  /**
511
511
  * The URL opened by the model.
512
512
  */
513
- url: string;
513
+ url?: string | null;
514
514
  } | {
515
515
  /**
516
516
  * Action type "find": Searches for a pattern within a loaded page.
@@ -519,11 +519,11 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
519
519
  /**
520
520
  * The URL of the page searched for the pattern.
521
521
  */
522
- url: string;
522
+ url?: string | null;
523
523
  /**
524
524
  * The pattern or text to search for within the page.
525
525
  */
526
- pattern: string;
526
+ pattern?: string | null;
527
527
  };
528
528
  }, {
529
529
  /**
@@ -510,7 +510,7 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
510
510
  /**
511
511
  * The URL opened by the model.
512
512
  */
513
- url: string;
513
+ url?: string | null;
514
514
  } | {
515
515
  /**
516
516
  * Action type "find": Searches for a pattern within a loaded page.
@@ -519,11 +519,11 @@ declare const webSearchPreview: _ai_sdk_provider_utils.ProviderDefinedToolFactor
519
519
  /**
520
520
  * The URL of the page searched for the pattern.
521
521
  */
522
- url: string;
522
+ url?: string | null;
523
523
  /**
524
524
  * The pattern or text to search for within the page.
525
525
  */
526
- pattern: string;
526
+ pattern?: string | null;
527
527
  };
528
528
  }, {
529
529
  /**
@@ -2631,12 +2631,12 @@ var openaiResponsesChunkSchema = (0, import_provider_utils21.lazyValidator)(
2631
2631
  }),
2632
2632
  import_v414.z.object({
2633
2633
  type: import_v414.z.literal("open_page"),
2634
- url: import_v414.z.string()
2634
+ url: import_v414.z.string().nullish()
2635
2635
  }),
2636
2636
  import_v414.z.object({
2637
2637
  type: import_v414.z.literal("find"),
2638
- url: import_v414.z.string(),
2639
- pattern: import_v414.z.string()
2638
+ url: import_v414.z.string().nullish(),
2639
+ pattern: import_v414.z.string().nullish()
2640
2640
  })
2641
2641
  ])
2642
2642
  }),
@@ -2841,12 +2841,12 @@ var openaiResponsesResponseSchema = (0, import_provider_utils21.lazyValidator)(
2841
2841
  }),
2842
2842
  import_v414.z.object({
2843
2843
  type: import_v414.z.literal("open_page"),
2844
- url: import_v414.z.string()
2844
+ url: import_v414.z.string().nullish()
2845
2845
  }),
2846
2846
  import_v414.z.object({
2847
2847
  type: import_v414.z.literal("find"),
2848
- url: import_v414.z.string(),
2849
- pattern: import_v414.z.string()
2848
+ url: import_v414.z.string().nullish(),
2849
+ pattern: import_v414.z.string().nullish()
2850
2850
  })
2851
2851
  ])
2852
2852
  }),
@@ -3189,12 +3189,12 @@ var webSearchOutputSchema = (0, import_provider_utils25.lazySchema)(
3189
3189
  }),
3190
3190
  import_v418.z.object({
3191
3191
  type: import_v418.z.literal("openPage"),
3192
- url: import_v418.z.string()
3192
+ url: import_v418.z.string().nullish()
3193
3193
  }),
3194
3194
  import_v418.z.object({
3195
3195
  type: import_v418.z.literal("find"),
3196
- url: import_v418.z.string(),
3197
- pattern: import_v418.z.string()
3196
+ url: import_v418.z.string().nullish(),
3197
+ pattern: import_v418.z.string().nullish()
3198
3198
  })
3199
3199
  ]),
3200
3200
  sources: import_v418.z.array(
@@ -3243,12 +3243,12 @@ var webSearchPreviewOutputSchema = (0, import_provider_utils26.lazySchema)(
3243
3243
  }),
3244
3244
  import_v419.z.object({
3245
3245
  type: import_v419.z.literal("openPage"),
3246
- url: import_v419.z.string()
3246
+ url: import_v419.z.string().nullish()
3247
3247
  }),
3248
3248
  import_v419.z.object({
3249
3249
  type: import_v419.z.literal("find"),
3250
- url: import_v419.z.string(),
3251
- pattern: import_v419.z.string()
3250
+ url: import_v419.z.string().nullish(),
3251
+ pattern: import_v419.z.string().nullish()
3252
3252
  })
3253
3253
  ])
3254
3254
  })