ai 6.0.188 → 6.0.190

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,19 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.190
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [33b10a2]
8
+ - Updated dependencies [f6e4146]
9
+ - @ai-sdk/gateway@3.0.119
10
+
11
+ ## 6.0.189
12
+
13
+ ### Patch Changes
14
+
15
+ - 356c3cf: fix(ai): make input optional on input-streaming UIMessagePart variants
16
+
3
17
  ## 6.0.188
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1709,7 +1709,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
1709
1709
  providerExecuted?: boolean;
1710
1710
  } & ({
1711
1711
  state: 'input-streaming';
1712
- input: DeepPartial<asUITool<TOOL>['input']> | undefined;
1712
+ input?: DeepPartial<asUITool<TOOL>['input']> | undefined;
1713
1713
  output?: never;
1714
1714
  errorText?: never;
1715
1715
  callProviderMetadata?: ProviderMetadata;
@@ -1804,7 +1804,7 @@ type DynamicToolUIPart = {
1804
1804
  providerExecuted?: boolean;
1805
1805
  } & ({
1806
1806
  state: 'input-streaming';
1807
- input: unknown | undefined;
1807
+ input?: unknown;
1808
1808
  output?: never;
1809
1809
  errorText?: never;
1810
1810
  callProviderMetadata?: ProviderMetadata;
package/dist/index.d.ts CHANGED
@@ -1709,7 +1709,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
1709
1709
  providerExecuted?: boolean;
1710
1710
  } & ({
1711
1711
  state: 'input-streaming';
1712
- input: DeepPartial<asUITool<TOOL>['input']> | undefined;
1712
+ input?: DeepPartial<asUITool<TOOL>['input']> | undefined;
1713
1713
  output?: never;
1714
1714
  errorText?: never;
1715
1715
  callProviderMetadata?: ProviderMetadata;
@@ -1804,7 +1804,7 @@ type DynamicToolUIPart = {
1804
1804
  providerExecuted?: boolean;
1805
1805
  } & ({
1806
1806
  state: 'input-streaming';
1807
- input: unknown | undefined;
1807
+ input?: unknown;
1808
1808
  output?: never;
1809
1809
  errorText?: never;
1810
1810
  callProviderMetadata?: ProviderMetadata;
package/dist/index.js CHANGED
@@ -1254,7 +1254,7 @@ function detectMediaType({
1254
1254
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
1255
1255
 
1256
1256
  // src/version.ts
1257
- var VERSION = true ? "6.0.188" : "0.0.0-test";
1257
+ var VERSION = true ? "6.0.190" : "0.0.0-test";
1258
1258
 
1259
1259
  // src/util/download/download.ts
1260
1260
  var download = async ({