@google-cloud/discoveryengine 3.2.0 → 3.3.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.
@@ -315,7 +315,12 @@ class SearchServiceClient {
315
315
  * @returns {string[]} List of default scopes.
316
316
  */
317
317
  static get scopes() {
318
- return ['https://www.googleapis.com/auth/cloud-platform'];
318
+ return [
319
+ 'https://www.googleapis.com/auth/cloud-platform',
320
+ 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
321
+ 'https://www.googleapis.com/auth/discoveryengine.readwrite',
322
+ 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
323
+ ];
319
324
  }
320
325
  /**
321
326
  * Return the project ID used by this class.
@@ -443,6 +448,11 @@ class SearchServiceClient {
443
448
  * stores. For engines with a single data store, the specs directly under
444
449
  * {@link protos.google.cloud.discoveryengine.v1.SearchRequest|SearchRequest} should be
445
450
  * used.
451
+ * @param {number} [request.numResultsPerDataStore]
452
+ * Optional. The maximum number of results to retrieve from each data store.
453
+ * If not specified, it will use the
454
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.num_results|SearchRequest.DataStoreSpec.num_results}
455
+ * if provided, otherwise there is no limit.
446
456
  * @param {string} request.filter
447
457
  * The filter syntax consists of an expression language for constructing a
448
458
  * predicate from one or more fields of the documents being filtered. Filter
@@ -635,6 +645,15 @@ class SearchServiceClient {
635
645
  * Google model to determine the keyword-based overlap between the query and
636
646
  * the document.
637
647
  * * `base_rank`: the default rank of the result
648
+ * * `media_actor_match`: whether the media actor matches the query
649
+ * * `media_director_match`: whether the media director matches the query
650
+ * * `media_genre_match`: whether the media genre matches the query
651
+ * * `media_language_match`: whether the media language matches the query
652
+ * * `media_title_match`: whether the media title matches the query
653
+ * * `media_prefix_similarity_rank`: prefix similarity rank for media
654
+ * results
655
+ * * `media_semantic_similarity_rank`: semantic similarity rank for media
656
+ * results
638
657
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
639
658
  * Optional. The backend to use for the ranking expression evaluation.
640
659
  * @param {boolean} request.safeSearch
@@ -699,10 +718,6 @@ class SearchServiceClient {
699
718
  * Call /answer API with the session ID generated in the first call.
700
719
  * Here, the answer generation happens in the context of the search
701
720
  * results from the first search call.
702
- *
703
- * Multi-turn Search feature is currently at private GA stage. Please use
704
- * v1alpha or v1beta version instead before we launch this feature to public
705
- * GA. Or ask for allowlisting through Google Support team.
706
721
  * @param {google.cloud.discoveryengine.v1.SearchRequest.SessionSpec} request.sessionSpec
707
722
  * Session specification.
708
723
  *
@@ -728,6 +743,19 @@ class SearchServiceClient {
728
743
  * This feature is currently supported only for custom and site search.
729
744
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
730
745
  * Optional. The specification for returning the relevance score.
746
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec} [request.searchAddonSpec]
747
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new
748
+ * repricing model.
749
+ * This field is only supported for search requests.
750
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams} [request.customRankingParams]
751
+ * Optional. Optional configuration for the Custom Ranking feature.
752
+ * @param {string} [request.entity]
753
+ * Optional. The entity for customers that may run multiple different
754
+ * entities, domains, sites or regions, for example, "Google US", "Google
755
+ * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
756
+ * be exactly matched with
757
+ * {@link protos.google.cloud.discoveryengine.v1.UserEvent.entity|UserEvent.entity} to get
758
+ * search results boosted by entity.
731
759
  * @param {object} [options]
732
760
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
733
761
  * @returns {Stream}
@@ -839,6 +867,11 @@ class SearchServiceClient {
839
867
  * stores. For engines with a single data store, the specs directly under
840
868
  * {@link protos.google.cloud.discoveryengine.v1.SearchRequest|SearchRequest} should be
841
869
  * used.
870
+ * @param {number} [request.numResultsPerDataStore]
871
+ * Optional. The maximum number of results to retrieve from each data store.
872
+ * If not specified, it will use the
873
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.num_results|SearchRequest.DataStoreSpec.num_results}
874
+ * if provided, otherwise there is no limit.
842
875
  * @param {string} request.filter
843
876
  * The filter syntax consists of an expression language for constructing a
844
877
  * predicate from one or more fields of the documents being filtered. Filter
@@ -1031,6 +1064,15 @@ class SearchServiceClient {
1031
1064
  * Google model to determine the keyword-based overlap between the query and
1032
1065
  * the document.
1033
1066
  * * `base_rank`: the default rank of the result
1067
+ * * `media_actor_match`: whether the media actor matches the query
1068
+ * * `media_director_match`: whether the media director matches the query
1069
+ * * `media_genre_match`: whether the media genre matches the query
1070
+ * * `media_language_match`: whether the media language matches the query
1071
+ * * `media_title_match`: whether the media title matches the query
1072
+ * * `media_prefix_similarity_rank`: prefix similarity rank for media
1073
+ * results
1074
+ * * `media_semantic_similarity_rank`: semantic similarity rank for media
1075
+ * results
1034
1076
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1035
1077
  * Optional. The backend to use for the ranking expression evaluation.
1036
1078
  * @param {boolean} request.safeSearch
@@ -1095,10 +1137,6 @@ class SearchServiceClient {
1095
1137
  * Call /answer API with the session ID generated in the first call.
1096
1138
  * Here, the answer generation happens in the context of the search
1097
1139
  * results from the first search call.
1098
- *
1099
- * Multi-turn Search feature is currently at private GA stage. Please use
1100
- * v1alpha or v1beta version instead before we launch this feature to public
1101
- * GA. Or ask for allowlisting through Google Support team.
1102
1140
  * @param {google.cloud.discoveryengine.v1.SearchRequest.SessionSpec} request.sessionSpec
1103
1141
  * Session specification.
1104
1142
  *
@@ -1124,6 +1162,19 @@ class SearchServiceClient {
1124
1162
  * This feature is currently supported only for custom and site search.
1125
1163
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
1126
1164
  * Optional. The specification for returning the relevance score.
1165
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec} [request.searchAddonSpec]
1166
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new
1167
+ * repricing model.
1168
+ * This field is only supported for search requests.
1169
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams} [request.customRankingParams]
1170
+ * Optional. Optional configuration for the Custom Ranking feature.
1171
+ * @param {string} [request.entity]
1172
+ * Optional. The entity for customers that may run multiple different
1173
+ * entities, domains, sites or regions, for example, "Google US", "Google
1174
+ * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
1175
+ * be exactly matched with
1176
+ * {@link protos.google.cloud.discoveryengine.v1.UserEvent.entity|UserEvent.entity} to get
1177
+ * search results boosted by entity.
1127
1178
  * @param {object} [options]
1128
1179
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1129
1180
  * @returns {Object}
@@ -1268,6 +1319,11 @@ class SearchServiceClient {
1268
1319
  * stores. For engines with a single data store, the specs directly under
1269
1320
  * {@link protos.google.cloud.discoveryengine.v1.SearchRequest|SearchRequest} should be
1270
1321
  * used.
1322
+ * @param {number} [request.numResultsPerDataStore]
1323
+ * Optional. The maximum number of results to retrieve from each data store.
1324
+ * If not specified, it will use the
1325
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.num_results|SearchRequest.DataStoreSpec.num_results}
1326
+ * if provided, otherwise there is no limit.
1271
1327
  * @param {string} request.filter
1272
1328
  * The filter syntax consists of an expression language for constructing a
1273
1329
  * predicate from one or more fields of the documents being filtered. Filter
@@ -1460,6 +1516,15 @@ class SearchServiceClient {
1460
1516
  * Google model to determine the keyword-based overlap between the query and
1461
1517
  * the document.
1462
1518
  * * `base_rank`: the default rank of the result
1519
+ * * `media_actor_match`: whether the media actor matches the query
1520
+ * * `media_director_match`: whether the media director matches the query
1521
+ * * `media_genre_match`: whether the media genre matches the query
1522
+ * * `media_language_match`: whether the media language matches the query
1523
+ * * `media_title_match`: whether the media title matches the query
1524
+ * * `media_prefix_similarity_rank`: prefix similarity rank for media
1525
+ * results
1526
+ * * `media_semantic_similarity_rank`: semantic similarity rank for media
1527
+ * results
1463
1528
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1464
1529
  * Optional. The backend to use for the ranking expression evaluation.
1465
1530
  * @param {boolean} request.safeSearch
@@ -1524,10 +1589,6 @@ class SearchServiceClient {
1524
1589
  * Call /answer API with the session ID generated in the first call.
1525
1590
  * Here, the answer generation happens in the context of the search
1526
1591
  * results from the first search call.
1527
- *
1528
- * Multi-turn Search feature is currently at private GA stage. Please use
1529
- * v1alpha or v1beta version instead before we launch this feature to public
1530
- * GA. Or ask for allowlisting through Google Support team.
1531
1592
  * @param {google.cloud.discoveryengine.v1.SearchRequest.SessionSpec} request.sessionSpec
1532
1593
  * Session specification.
1533
1594
  *
@@ -1553,6 +1614,19 @@ class SearchServiceClient {
1553
1614
  * This feature is currently supported only for custom and site search.
1554
1615
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
1555
1616
  * Optional. The specification for returning the relevance score.
1617
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec} [request.searchAddonSpec]
1618
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new
1619
+ * repricing model.
1620
+ * This field is only supported for search requests.
1621
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams} [request.customRankingParams]
1622
+ * Optional. Optional configuration for the Custom Ranking feature.
1623
+ * @param {string} [request.entity]
1624
+ * Optional. The entity for customers that may run multiple different
1625
+ * entities, domains, sites or regions, for example, "Google US", "Google
1626
+ * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
1627
+ * be exactly matched with
1628
+ * {@link protos.google.cloud.discoveryengine.v1.UserEvent.entity|UserEvent.entity} to get
1629
+ * search results boosted by entity.
1556
1630
  * @param {object} [options]
1557
1631
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1558
1632
  * @returns {Stream}
@@ -1664,6 +1738,11 @@ class SearchServiceClient {
1664
1738
  * stores. For engines with a single data store, the specs directly under
1665
1739
  * {@link protos.google.cloud.discoveryengine.v1.SearchRequest|SearchRequest} should be
1666
1740
  * used.
1741
+ * @param {number} [request.numResultsPerDataStore]
1742
+ * Optional. The maximum number of results to retrieve from each data store.
1743
+ * If not specified, it will use the
1744
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.num_results|SearchRequest.DataStoreSpec.num_results}
1745
+ * if provided, otherwise there is no limit.
1667
1746
  * @param {string} request.filter
1668
1747
  * The filter syntax consists of an expression language for constructing a
1669
1748
  * predicate from one or more fields of the documents being filtered. Filter
@@ -1856,6 +1935,15 @@ class SearchServiceClient {
1856
1935
  * Google model to determine the keyword-based overlap between the query and
1857
1936
  * the document.
1858
1937
  * * `base_rank`: the default rank of the result
1938
+ * * `media_actor_match`: whether the media actor matches the query
1939
+ * * `media_director_match`: whether the media director matches the query
1940
+ * * `media_genre_match`: whether the media genre matches the query
1941
+ * * `media_language_match`: whether the media language matches the query
1942
+ * * `media_title_match`: whether the media title matches the query
1943
+ * * `media_prefix_similarity_rank`: prefix similarity rank for media
1944
+ * results
1945
+ * * `media_semantic_similarity_rank`: semantic similarity rank for media
1946
+ * results
1859
1947
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1860
1948
  * Optional. The backend to use for the ranking expression evaluation.
1861
1949
  * @param {boolean} request.safeSearch
@@ -1920,10 +2008,6 @@ class SearchServiceClient {
1920
2008
  * Call /answer API with the session ID generated in the first call.
1921
2009
  * Here, the answer generation happens in the context of the search
1922
2010
  * results from the first search call.
1923
- *
1924
- * Multi-turn Search feature is currently at private GA stage. Please use
1925
- * v1alpha or v1beta version instead before we launch this feature to public
1926
- * GA. Or ask for allowlisting through Google Support team.
1927
2011
  * @param {google.cloud.discoveryengine.v1.SearchRequest.SessionSpec} request.sessionSpec
1928
2012
  * Session specification.
1929
2013
  *
@@ -1949,6 +2033,19 @@ class SearchServiceClient {
1949
2033
  * This feature is currently supported only for custom and site search.
1950
2034
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
1951
2035
  * Optional. The specification for returning the relevance score.
2036
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.SearchAddonSpec} [request.searchAddonSpec]
2037
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new
2038
+ * repricing model.
2039
+ * This field is only supported for search requests.
2040
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams} [request.customRankingParams]
2041
+ * Optional. Optional configuration for the Custom Ranking feature.
2042
+ * @param {string} [request.entity]
2043
+ * Optional. The entity for customers that may run multiple different
2044
+ * entities, domains, sites or regions, for example, "Google US", "Google
2045
+ * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
2046
+ * be exactly matched with
2047
+ * {@link protos.google.cloud.discoveryengine.v1.UserEvent.entity|UserEvent.entity} to get
2048
+ * search results boosted by entity.
1952
2049
  * @param {object} [options]
1953
2050
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1954
2051
  * @returns {Object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/discoveryengine",
3
- "version": "3.2.0",
3
+ "version": "3.3.1",
4
4
  "description": "Discovery Engine API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,10 +67,5 @@
67
67
  },
68
68
  "overrides": {
69
69
  "@sinonjs/fake-timers": "15.2.1"
70
- },
71
- "pnpm": {
72
- "overrides": {
73
- "@sinonjs/fake-timers": "15.2.1"
74
- }
75
70
  }
76
71
  }