@ai-sdk/provider 2.0.0-alpha.10 → 2.0.0-alpha.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-sdk/provider
2
2
 
3
+ ## 2.0.0-alpha.11
4
+
5
+ ### Patch Changes
6
+
7
+ - c1e6647: release alpha.11
8
+
3
9
  ## 2.0.0-alpha.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -918,7 +918,7 @@ A source that has been used as input to generate the response.
918
918
  type LanguageModelV2Source = {
919
919
  type: 'source';
920
920
  /**
921
- * A URL source. This is return by web search RAG models.
921
+ * The type of source - URL sources reference web content.
922
922
  */
923
923
  sourceType: 'url';
924
924
  /**
@@ -937,6 +937,32 @@ type LanguageModelV2Source = {
937
937
  * Additional provider metadata for the source.
938
938
  */
939
939
  providerMetadata?: SharedV2ProviderMetadata;
940
+ } | {
941
+ type: 'source';
942
+ /**
943
+ * The type of source - document sources reference files/documents.
944
+ */
945
+ sourceType: 'document';
946
+ /**
947
+ * The ID of the source.
948
+ */
949
+ id: string;
950
+ /**
951
+ * IANA media type of the document (e.g., 'application/pdf').
952
+ */
953
+ mediaType: string;
954
+ /**
955
+ * The title of the document.
956
+ */
957
+ title: string;
958
+ /**
959
+ * Optional filename of the document.
960
+ */
961
+ filename?: string;
962
+ /**
963
+ * Additional provider metadata for the source.
964
+ */
965
+ providerMetadata?: SharedV2ProviderMetadata;
940
966
  };
941
967
 
942
968
  /**
package/dist/index.d.ts CHANGED
@@ -918,7 +918,7 @@ A source that has been used as input to generate the response.
918
918
  type LanguageModelV2Source = {
919
919
  type: 'source';
920
920
  /**
921
- * A URL source. This is return by web search RAG models.
921
+ * The type of source - URL sources reference web content.
922
922
  */
923
923
  sourceType: 'url';
924
924
  /**
@@ -937,6 +937,32 @@ type LanguageModelV2Source = {
937
937
  * Additional provider metadata for the source.
938
938
  */
939
939
  providerMetadata?: SharedV2ProviderMetadata;
940
+ } | {
941
+ type: 'source';
942
+ /**
943
+ * The type of source - document sources reference files/documents.
944
+ */
945
+ sourceType: 'document';
946
+ /**
947
+ * The ID of the source.
948
+ */
949
+ id: string;
950
+ /**
951
+ * IANA media type of the document (e.g., 'application/pdf').
952
+ */
953
+ mediaType: string;
954
+ /**
955
+ * The title of the document.
956
+ */
957
+ title: string;
958
+ /**
959
+ * Optional filename of the document.
960
+ */
961
+ filename?: string;
962
+ /**
963
+ * Additional provider metadata for the source.
964
+ */
965
+ providerMetadata?: SharedV2ProviderMetadata;
940
966
  };
941
967
 
942
968
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.11",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",