@ai-sdk/provider 3.0.16 → 3.0.17

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/provider
2
2
 
3
+ ## 3.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - da2e17b: fix(provider): preserve opaque file URI strings for provider serialization
8
+
3
9
  ## 3.0.16
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1152,6 +1152,13 @@ interface LanguageModelV3FilePart {
1152
1152
  * File data. Can be a Uint8Array, base64 encoded data as a string or a URL.
1153
1153
  */
1154
1154
  data: LanguageModelV3DataContent;
1155
+ /**
1156
+ * The original URL string before it was parsed into a URL.
1157
+ *
1158
+ * This is available when parsing changes the string and a provider needs to
1159
+ * preserve an opaque non-HTTP URI exactly.
1160
+ */
1161
+ originalUrl?: string;
1155
1162
  /**
1156
1163
  * IANA media type of the file.
1157
1164
  *
package/dist/index.d.ts CHANGED
@@ -1152,6 +1152,13 @@ interface LanguageModelV3FilePart {
1152
1152
  * File data. Can be a Uint8Array, base64 encoded data as a string or a URL.
1153
1153
  */
1154
1154
  data: LanguageModelV3DataContent;
1155
+ /**
1156
+ * The original URL string before it was parsed into a URL.
1157
+ *
1158
+ * This is available when parsing changes the string and a provider needs to
1159
+ * preserve an opaque non-HTTP URI exactly.
1160
+ */
1161
+ originalUrl?: string;
1155
1162
  /**
1156
1163
  * IANA media type of the file.
1157
1164
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -106,6 +106,14 @@ export interface LanguageModelV3FilePart {
106
106
  */
107
107
  data: LanguageModelV3DataContent;
108
108
 
109
+ /**
110
+ * The original URL string before it was parsed into a URL.
111
+ *
112
+ * This is available when parsing changes the string and a provider needs to
113
+ * preserve an opaque non-HTTP URI exactly.
114
+ */
115
+ originalUrl?: string;
116
+
109
117
  /**
110
118
  * IANA media type of the file.
111
119
  *