ai 5.0.0-beta.10 → 5.0.0-beta.11

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
2
2
 
3
+ ## 5.0.0-beta.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e40cbe: Allow destructuring output and errorText on `ToolUIPart` type
8
+
3
9
  ## 5.0.0-beta.10
4
10
 
5
11
  ### Major Changes
package/dist/index.d.mts CHANGED
@@ -1085,18 +1085,24 @@ type ToolUIPart<TOOLS extends UITools = UITools> = ValueOf<{
1085
1085
  state: 'input-streaming';
1086
1086
  input: DeepPartial<TOOLS[NAME]['input']>;
1087
1087
  providerExecuted?: boolean;
1088
+ output?: never;
1089
+ errorText?: never;
1088
1090
  } | {
1089
1091
  state: 'input-available';
1090
1092
  input: TOOLS[NAME]['input'];
1091
1093
  providerExecuted?: boolean;
1094
+ output?: never;
1095
+ errorText?: never;
1092
1096
  } | {
1093
1097
  state: 'output-available';
1094
1098
  input: TOOLS[NAME]['input'];
1095
1099
  output: TOOLS[NAME]['output'];
1100
+ errorText?: never;
1096
1101
  providerExecuted?: boolean;
1097
1102
  } | {
1098
1103
  state: 'output-error';
1099
1104
  input: TOOLS[NAME]['input'];
1105
+ output?: never;
1100
1106
  errorText: string;
1101
1107
  providerExecuted?: boolean;
1102
1108
  });
package/dist/index.d.ts CHANGED
@@ -1085,18 +1085,24 @@ type ToolUIPart<TOOLS extends UITools = UITools> = ValueOf<{
1085
1085
  state: 'input-streaming';
1086
1086
  input: DeepPartial<TOOLS[NAME]['input']>;
1087
1087
  providerExecuted?: boolean;
1088
+ output?: never;
1089
+ errorText?: never;
1088
1090
  } | {
1089
1091
  state: 'input-available';
1090
1092
  input: TOOLS[NAME]['input'];
1091
1093
  providerExecuted?: boolean;
1094
+ output?: never;
1095
+ errorText?: never;
1092
1096
  } | {
1093
1097
  state: 'output-available';
1094
1098
  input: TOOLS[NAME]['input'];
1095
1099
  output: TOOLS[NAME]['output'];
1100
+ errorText?: never;
1096
1101
  providerExecuted?: boolean;
1097
1102
  } | {
1098
1103
  state: 'output-error';
1099
1104
  input: TOOLS[NAME]['input'];
1105
+ output?: never;
1100
1106
  errorText: string;
1101
1107
  providerExecuted?: boolean;
1102
1108
  });