@ai-sdk/xai 4.0.0 → 4.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ba6d510: chore: fix deprecated use of zod `.passthrough()`
8
+
3
9
  ## 4.0.0
4
10
 
5
11
  ### Major Changes
package/dist/index.js CHANGED
@@ -3393,7 +3393,7 @@ var xaiTools = {
3393
3393
  };
3394
3394
 
3395
3395
  // src/version.ts
3396
- var VERSION = true ? "4.0.0" : "0.0.0-test";
3396
+ var VERSION = true ? "4.0.1" : "0.0.0-test";
3397
3397
 
3398
3398
  // src/files/xai-files.ts
3399
3399
  import {
@@ -3429,10 +3429,10 @@ import {
3429
3429
  import { z as z16 } from "zod/v4";
3430
3430
  var xaiFilesOptionsSchema = lazySchema6(
3431
3431
  () => zodSchema6(
3432
- z16.object({
3432
+ z16.looseObject({
3433
3433
  teamId: z16.string().optional(),
3434
3434
  filePath: z16.string().optional()
3435
- }).passthrough()
3435
+ })
3436
3436
  )
3437
3437
  );
3438
3438
 
@@ -3552,12 +3552,12 @@ var xaiVideoModelOptions = z17.union([
3552
3552
  referenceToVideoSchema,
3553
3553
  autoDetectSchema
3554
3554
  ]);
3555
- var runtimeSchema = z17.object({
3555
+ var runtimeSchema = z17.looseObject({
3556
3556
  mode: modeSchema.optional(),
3557
3557
  videoUrl: nonEmptyStringSchema.optional(),
3558
3558
  referenceImageUrls: z17.array(nonEmptyStringSchema).min(1).max(7).optional(),
3559
3559
  ...baseFields
3560
- }).passthrough();
3560
+ });
3561
3561
  var xaiVideoModelOptionsSchema = lazySchema7(
3562
3562
  () => zodSchema7(runtimeSchema)
3563
3563
  );