@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20250708 → 0.0.20250716

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.
Files changed (3) hide show
  1. package/index.d.ts +508 -8
  2. package/package.json +1 -1
  3. package/readme.md +3 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250708
12
+ // Revision: 20250716
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -176,6 +176,104 @@ declare namespace gapi.client {
176
176
  /** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
177
177
  functionName?: string;
178
178
  }
179
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest {
180
+ /** Optional. Specification to boost suggestions matching the condition. */
181
+ boostSpec?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpec;
182
+ /** Optional. Experiment ids for this request. */
183
+ experimentIds?: string[];
184
+ /** Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned. */
185
+ includeTailSuggestions?: boolean;
186
+ /** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT` error is returned. The exception is when the suggestion_types contains only the type `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which returns user's recently searched queries given the empty query. */
187
+ query?: string;
188
+ /** Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. This overrides any model specified in the Configuration > Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. */
189
+ queryModel?: string;
190
+ /** Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned. Only one suggestion type is supported at the moment. */
191
+ suggestionTypes?: string[];
192
+ /** Optional. Specification of each suggestion type. */
193
+ suggestionTypeSpecs?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestSuggestionTypeSpec[];
194
+ /** Optional. Information about the end user. This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info. */
195
+ userInfo?: GoogleCloudDiscoveryengineV1UserInfo;
196
+ /** A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded string with a length limit of 128 */
197
+ userPseudoId?: string;
198
+ }
199
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpec {
200
+ /** Condition boost specifications. If a suggestion matches multiple conditions in the specifications, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. Note: Currently only support language condition boost. */
201
+ conditionBoostSpecs?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpecConditionBoostSpec[];
202
+ }
203
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestBoostSpecConditionBoostSpec {
204
+ /** Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the suggestions a big demotion. However, other suggestions that are relevant might still be shown. Setting to 0.0 means no boost applied. The boosting condition is ignored. */
205
+ boost?: number;
206
+ /** An expression which specifies a boost condition. The syntax is the same as [filter expression syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax). Currently, the only supported condition is a list of BCP-47 lang codes. Example: * To boost suggestions in languages `en` or `fr`: `(lang_code: ANY("en", "fr"))` */
207
+ condition?: string;
208
+ }
209
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequestSuggestionTypeSpec {
210
+ /** Optional. Maximum number of suggestions to return for each suggestion type. */
211
+ maxSuggestions?: number;
212
+ /** Optional. Suggestion type. */
213
+ suggestionType?: string;
214
+ }
215
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse {
216
+ /** Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion. */
217
+ contentSuggestions?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseContentSuggestion[];
218
+ /** Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion. */
219
+ peopleSuggestions?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponsePersonSuggestion[];
220
+ /** Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion. */
221
+ querySuggestions?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseQuerySuggestion[];
222
+ /** Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion. */
223
+ recentSearchSuggestions?: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseRecentSearchSuggestion[];
224
+ /** True if the returned suggestions are all tail suggestions. For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query. */
225
+ tailMatchTriggered?: boolean;
226
+ }
227
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseContentSuggestion {
228
+ /** The type of the content suggestion. */
229
+ contentType?: string;
230
+ /** The name of the dataStore that this suggestion belongs to. */
231
+ dataStore?: string;
232
+ /** The destination uri of the content suggestion. */
233
+ destinationUri?: string;
234
+ /** The document data snippet in the suggestion. Only a subset of fields will be populated. */
235
+ document?: GoogleCloudDiscoveryengineV1Document;
236
+ /** The icon uri of the content suggestion. */
237
+ iconUri?: string;
238
+ /** The score of each suggestion. The score is in the range of [0, 1]. */
239
+ score?: number;
240
+ /** The suggestion for the query. */
241
+ suggestion?: string;
242
+ }
243
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponsePersonSuggestion {
244
+ /** The name of the dataStore that this suggestion belongs to. */
245
+ dataStore?: string;
246
+ /** The destination uri of the person suggestion. */
247
+ destinationUri?: string;
248
+ /** The photo uri of the person suggestion. */
249
+ displayPhotoUri?: string;
250
+ /** The document data snippet in the suggestion. Only a subset of fields is populated. */
251
+ document?: GoogleCloudDiscoveryengineV1Document;
252
+ /** The type of the person. */
253
+ personType?: string;
254
+ /** The score of each suggestion. The score is in the range of [0, 1]. */
255
+ score?: number;
256
+ /** The suggestion for the query. */
257
+ suggestion?: string;
258
+ }
259
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseQuerySuggestion {
260
+ /** The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model. */
261
+ completableFieldPaths?: string[];
262
+ /** The name of the dataStore that this suggestion belongs to. */
263
+ dataStore?: string[];
264
+ /** The score of each suggestion. The score is in the range of [0, 1]. */
265
+ score?: number;
266
+ /** The suggestion for the query. */
267
+ suggestion?: string;
268
+ }
269
+ interface GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponseRecentSearchSuggestion {
270
+ /** The time when this recent rearch happened. */
271
+ recentSearchTime?: string;
272
+ /** The score of each suggestion. The score is in the range of [0, 1]. */
273
+ score?: number;
274
+ /** The suggestion for the query. */
275
+ suggestion?: string;
276
+ }
179
277
  interface GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig {
180
278
  /** If set true, automatic refresh is disabled for the DataStore. */
181
279
  disableAutomaticRefresh?: boolean;
@@ -954,6 +1052,8 @@ declare namespace gapi.client {
954
1052
  }
955
1053
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
956
1054
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig {
1055
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
1056
+ enableGetProcessedDocument?: boolean;
957
1057
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
958
1058
  enableImageAnnotation?: boolean;
959
1059
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -995,7 +1095,7 @@ declare namespace gapi.client {
995
1095
  disableAnalytics?: boolean;
996
1096
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
997
1097
  displayName?: string;
998
- /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` */
1098
+ /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` - Enables personalization based on user preferences. */
999
1099
  features?: {[P in string]: string};
1000
1100
  /** Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine. */
1001
1101
  industryVertical?: string;
@@ -1611,7 +1711,7 @@ declare namespace gapi.client {
1611
1711
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec;
1612
1712
  /** Required. The resource name of the Search serving config, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/servingConfigs/default_serving_config`, or `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
1613
1713
  servingConfig?: string;
1614
- /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
1714
+ /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
1615
1715
  session?: string;
1616
1716
  /** Session specification. Can be used only when `session` is set. */
1617
1717
  sessionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec;
@@ -2405,6 +2505,104 @@ declare namespace gapi.client {
2405
2505
  /** The query to search. */
2406
2506
  query?: string;
2407
2507
  }
2508
+ interface GoogleCloudDiscoveryengineV1AssistAnswer {
2509
+ /** Reasons for not answering the assist call. */
2510
+ assistSkippedReasons?: string[];
2511
+ /** Replies of the assistant. */
2512
+ replies?: GoogleCloudDiscoveryengineV1AssistAnswerReply[];
2513
+ /** State of the answer generation. */
2514
+ state?: string;
2515
+ }
2516
+ interface GoogleCloudDiscoveryengineV1AssistAnswerReply {
2517
+ /** Possibly grounded response text or media from the assistant. */
2518
+ groundedContent?: GoogleCloudDiscoveryengineV1AssistantGroundedContent;
2519
+ }
2520
+ interface GoogleCloudDiscoveryengineV1AssistantContent {
2521
+ /** Result of executing an ExecutableCode. */
2522
+ codeExecutionResult?: GoogleCloudDiscoveryengineV1AssistantContentCodeExecutionResult;
2523
+ /** Code generated by the model that is meant to be executed. */
2524
+ executableCode?: GoogleCloudDiscoveryengineV1AssistantContentExecutableCode;
2525
+ /** A file, e.g., an audio summary. */
2526
+ file?: GoogleCloudDiscoveryengineV1AssistantContentFile;
2527
+ /** Inline binary data. */
2528
+ inlineData?: GoogleCloudDiscoveryengineV1AssistantContentBlob;
2529
+ /** The producer of the content. Can be "model" or "user". */
2530
+ role?: string;
2531
+ /** Inline text. */
2532
+ text?: string;
2533
+ /** Optional. Indicates if the part is thought from the model. */
2534
+ thought?: boolean;
2535
+ }
2536
+ interface GoogleCloudDiscoveryengineV1AssistantContentBlob {
2537
+ /** Required. Raw bytes. */
2538
+ data?: string;
2539
+ /** Required. The media type (MIME type) of the generated data. */
2540
+ mimeType?: string;
2541
+ }
2542
+ interface GoogleCloudDiscoveryengineV1AssistantContentCodeExecutionResult {
2543
+ /** Required. Outcome of the code execution. */
2544
+ outcome?: string;
2545
+ /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
2546
+ output?: string;
2547
+ }
2548
+ interface GoogleCloudDiscoveryengineV1AssistantContentExecutableCode {
2549
+ /** Required. The code content. Currently only supports Python. */
2550
+ code?: string;
2551
+ }
2552
+ interface GoogleCloudDiscoveryengineV1AssistantContentFile {
2553
+ /** Required. The file ID. */
2554
+ fileId?: string;
2555
+ /** Required. The media type (MIME type) of the file. */
2556
+ mimeType?: string;
2557
+ }
2558
+ interface GoogleCloudDiscoveryengineV1AssistantGroundedContent {
2559
+ /** The content. */
2560
+ content?: GoogleCloudDiscoveryengineV1AssistantContent;
2561
+ /** Metadata for grounding based on text sources. */
2562
+ textGroundingMetadata?: GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadata;
2563
+ }
2564
+ interface GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadata {
2565
+ /** References for the grounded text. */
2566
+ references?: GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReference[];
2567
+ /** Grounding information for parts of the text. */
2568
+ segments?: GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataSegment[];
2569
+ }
2570
+ interface GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReference {
2571
+ /** Referenced text content. */
2572
+ content?: string;
2573
+ /** Document metadata. */
2574
+ documentMetadata?: GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata;
2575
+ }
2576
+ interface GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata {
2577
+ /** Document resource name. */
2578
+ document?: string;
2579
+ /** Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site. */
2580
+ domain?: string;
2581
+ /** Page identifier. */
2582
+ pageIdentifier?: string;
2583
+ /** Title. */
2584
+ title?: string;
2585
+ /** URI for the document. It may contain a URL that redirects to the actual website. */
2586
+ uri?: string;
2587
+ }
2588
+ interface GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataSegment {
2589
+ /** End of the segment, exclusive. */
2590
+ endIndex?: string;
2591
+ /** Score for the segment. */
2592
+ groundingScore?: number;
2593
+ /** References for the segment. */
2594
+ referenceIndices?: number[];
2595
+ /** Zero-based index indicating the start of the segment, measured in bytes of a UTF-8 string (i.e. characters encoded on multiple bytes have a length of more than one). */
2596
+ startIndex?: string;
2597
+ /** The text segment itself. */
2598
+ text?: string;
2599
+ }
2600
+ interface GoogleCloudDiscoveryengineV1AssistUserMetadata {
2601
+ /** Optional. Preferred language to be used for answering if language detection fails. Also used as the language of error messages created by actions, regardless of language detection results. */
2602
+ preferredLanguageCode?: string;
2603
+ /** Optional. IANA time zone, e.g. Europe/Budapest. */
2604
+ timeZone?: string;
2605
+ }
2408
2606
  interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
2409
2607
  /** Operation create time. */
2410
2608
  createTime?: string;
@@ -2792,6 +2990,8 @@ declare namespace gapi.client {
2792
2990
  }
2793
2991
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
2794
2992
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig {
2993
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
2994
+ enableGetProcessedDocument?: boolean;
2795
2995
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
2796
2996
  enableImageAnnotation?: boolean;
2797
2997
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -2833,7 +3033,7 @@ declare namespace gapi.client {
2833
3033
  disableAnalytics?: boolean;
2834
3034
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
2835
3035
  displayName?: string;
2836
- /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` */
3036
+ /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` - Enables personalization based on user preferences. */
2837
3037
  features?: {[P in string]: string};
2838
3038
  /** Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine. */
2839
3039
  industryVertical?: string;
@@ -3258,7 +3458,7 @@ declare namespace gapi.client {
3258
3458
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec;
3259
3459
  /** Required. The resource name of the Search serving config, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/servingConfigs/default_serving_config`, or `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
3260
3460
  servingConfig?: string;
3261
- /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
3461
+ /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
3262
3462
  session?: string;
3263
3463
  /** Session specification. Can be used only when `session` is set. */
3264
3464
  sessionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec;
@@ -4220,6 +4420,8 @@ declare namespace gapi.client {
4220
4420
  }
4221
4421
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
4222
4422
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig {
4423
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
4424
+ enableGetProcessedDocument?: boolean;
4223
4425
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
4224
4426
  enableImageAnnotation?: boolean;
4225
4427
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -4266,7 +4468,7 @@ declare namespace gapi.client {
4266
4468
  disableAnalytics?: boolean;
4267
4469
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
4268
4470
  displayName?: string;
4269
- /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` */
4471
+ /** Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` - Enables personalization based on user preferences. */
4270
4472
  features?: {[P in string]: string};
4271
4473
  /** Optional. The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine. */
4272
4474
  industryVertical?: string;
@@ -4502,7 +4704,7 @@ declare namespace gapi.client {
4502
4704
  forceRefreshContent?: boolean;
4503
4705
  /** Cloud Storage location for the input content. */
4504
4706
  gcsSource?: GoogleCloudDiscoveryengineV1GcsSource;
4505
- /** The field indicates the ID field or column to be used as unique IDs of the documents. For GcsSource it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For others, it may be the column name of the table where the unique ids are stored. The values of the JSON field or the table column are used as the Document.ids. The JSON field or the table column must be of string type, and the values must be set as valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs fail to be imported. Only set this field when auto_generate_ids is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a default value `_id` is used when importing from the allowed data sources. Supported data sources: * GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. * FirestoreSource. * BigtableSource. */
4707
+ /** The field indicates the ID field or column to be used as unique IDs of the documents. For GcsSource it is the key of the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For others, it may be the column name of the table where the unique ids are stored. The values of the JSON field or the table column are used as the Document.ids. The JSON field or the table column must be of string type, and the values must be set as valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs fail to be imported. Only set this field when auto_generate_ids is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a default value `_id` is used when importing from the allowed data sources. Supported data sources: * GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. * BigtableSource. */
4506
4708
  idField?: string;
4507
4709
  /** The Inline source for the input content for documents. */
4508
4710
  inlineSource?: GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource;
@@ -4997,7 +5199,7 @@ declare namespace gapi.client {
4997
5199
  safeSearch?: boolean;
4998
5200
  /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
4999
5201
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec;
5000
- /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
5202
+ /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
5001
5203
  session?: string;
5002
5204
  /** Session specification. Can be used only when `session` is set. */
5003
5205
  sessionSpec?: GoogleCloudDiscoveryengineV1SearchRequestSessionSpec;
@@ -5412,6 +5614,60 @@ declare namespace gapi.client {
5412
5614
  /** Required. The table name of the Spanner database that needs to be imported. */
5413
5615
  tableId?: string;
5414
5616
  }
5617
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequest {
5618
+ /** Optional. Specification of the generation configuration for the request. */
5619
+ generationSpec?: GoogleCloudDiscoveryengineV1StreamAssistRequestGenerationSpec;
5620
+ /** Optional. Current user query. Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files. */
5621
+ query?: GoogleCloudDiscoveryengineV1Query;
5622
+ /** Optional. The session to use for the request. If specified, the assistant has access to the session history, and the query and the answer are stored there. If `-` is specified as the session ID, or it is left empty, then a new session is created with an automatically generated ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` */
5623
+ session?: string;
5624
+ /** Optional. Specification of tools that are used to serve the request. */
5625
+ toolsSpec?: GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpec;
5626
+ /** Optional. Information about the user initiating the query. */
5627
+ userMetadata?: GoogleCloudDiscoveryengineV1AssistUserMetadata;
5628
+ }
5629
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestGenerationSpec {
5630
+ /** Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used. */
5631
+ modelId?: string;
5632
+ }
5633
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpec {
5634
+ /** Optional. Specification of the image generation tool. */
5635
+ imageGenerationSpec?: any;
5636
+ /** Optional. The name of the tool registry to use. Format: `projects/{project}/locations/{location}/toolRegistries/{tool_registry}` */
5637
+ toolRegistry?: string;
5638
+ /** Optional. Specification of the Vertex AI Search tool. */
5639
+ vertexAiSearchSpec?: GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecVertexAiSearchSpec;
5640
+ /** Optional. Specification of the video generation tool. */
5641
+ videoGenerationSpec?: any;
5642
+ /** Optional. Specification of the web grounding tool. If field is present, enables grounding with web search. Works only if Assistant.web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. */
5643
+ webGroundingSpec?: GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecWebGroundingSpec;
5644
+ }
5645
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecImageGenerationSpec {}
5646
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecVertexAiSearchSpec {
5647
+ /** Optional. Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores. */
5648
+ dataStoreSpecs?: GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec[];
5649
+ /** Optional. Deprecated. Please refrain from using this field. Whether the Vertex AI Search tool is disabled. Default value is false, the tool is enabled by default. */
5650
+ disabled?: boolean;
5651
+ /** Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
5652
+ filter?: string;
5653
+ }
5654
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecVideoGenerationSpec {}
5655
+ interface GoogleCloudDiscoveryengineV1StreamAssistRequestToolsSpecWebGroundingSpec {
5656
+ /** Optional. Deprecated. Please refrain from using this field. Whether the web grounding tool is enabled. */
5657
+ enabled?: boolean;
5658
+ }
5659
+ interface GoogleCloudDiscoveryengineV1StreamAssistResponse {
5660
+ /** Assist answer resource object containing parts of the assistant's final answer for the user's query. Not present if the current response doesn't add anything to previously sent AssistAnswer.replies. Observe AssistAnswer.state to see if more parts are to be expected. While the state is `IN_PROGRESS`, the AssistAnswer.replies field in each response will contain replies (reply fragments) to be appended to the ones received in previous responses. AssistAnswer.name won't be filled. If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response is the last response and AssistAnswer.name will have a value. */
5661
+ answer?: GoogleCloudDiscoveryengineV1AssistAnswer;
5662
+ /** A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support. */
5663
+ assistToken?: string;
5664
+ /** Session information. */
5665
+ sessionInfo?: GoogleCloudDiscoveryengineV1StreamAssistResponseSessionInfo;
5666
+ }
5667
+ interface GoogleCloudDiscoveryengineV1StreamAssistResponseSessionInfo {
5668
+ /** Name of the newly generated or continued session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`. */
5669
+ session?: string;
5670
+ }
5415
5671
  interface GoogleCloudDiscoveryengineV1SuggestionDenyListEntry {
5416
5672
  /** Required. Phrase to block from suggestions served. Can be maximum 125 characters. */
5417
5673
  blockPhrase?: string;
@@ -6404,6 +6660,66 @@ declare namespace gapi.client {
6404
6660
  documents: DocumentsResource;
6405
6661
  operations: OperationsResource;
6406
6662
  }
6663
+ interface CompletionConfigResource {
6664
+ /** Completes the user input with advanced keyword suggestions. */
6665
+ completeQuery(request: {
6666
+ /** V1 error format. */
6667
+ '$.xgafv'?: string;
6668
+ /** OAuth access token. */
6669
+ access_token?: string;
6670
+ /** Data format for response. */
6671
+ alt?: string;
6672
+ /** JSONP */
6673
+ callback?: string;
6674
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
6675
+ completionConfig: string;
6676
+ /** Selector specifying which fields to include in a partial response. */
6677
+ fields?: string;
6678
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6679
+ key?: string;
6680
+ /** OAuth 2.0 token for the current user. */
6681
+ oauth_token?: string;
6682
+ /** Returns response with indentations and line breaks. */
6683
+ prettyPrint?: boolean;
6684
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6685
+ quotaUser?: string;
6686
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6687
+ upload_protocol?: string;
6688
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6689
+ uploadType?: string;
6690
+ /** Request body */
6691
+ resource: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest;
6692
+ }): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
6693
+ completeQuery(
6694
+ request: {
6695
+ /** V1 error format. */
6696
+ '$.xgafv'?: string;
6697
+ /** OAuth access token. */
6698
+ access_token?: string;
6699
+ /** Data format for response. */
6700
+ alt?: string;
6701
+ /** JSONP */
6702
+ callback?: string;
6703
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
6704
+ completionConfig: string;
6705
+ /** Selector specifying which fields to include in a partial response. */
6706
+ fields?: string;
6707
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6708
+ key?: string;
6709
+ /** OAuth 2.0 token for the current user. */
6710
+ oauth_token?: string;
6711
+ /** Returns response with indentations and line breaks. */
6712
+ prettyPrint?: boolean;
6713
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6714
+ quotaUser?: string;
6715
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6716
+ upload_protocol?: string;
6717
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6718
+ uploadType?: string;
6719
+ },
6720
+ body: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest,
6721
+ ): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
6722
+ }
6407
6723
  interface CompletionSuggestionsResource {
6408
6724
  /** Imports CompletionSuggestions for a DataStore. */
6409
6725
  import(request: {
@@ -9481,6 +9797,7 @@ declare namespace gapi.client {
9481
9797
  body: GoogleCloudDiscoveryengineV1TrainCustomModelRequest,
9482
9798
  ): Request<GoogleLongrunningOperation>;
9483
9799
  branches: BranchesResource;
9800
+ completionConfig: CompletionConfigResource;
9484
9801
  completionSuggestions: CompletionSuggestionsResource;
9485
9802
  controls: ControlsResource;
9486
9803
  conversations: ConversationsResource;
@@ -9494,6 +9811,126 @@ declare namespace gapi.client {
9494
9811
  suggestionDenyListEntries: SuggestionDenyListEntriesResource;
9495
9812
  userEvents: UserEventsResource;
9496
9813
  }
9814
+ interface AssistantsResource {
9815
+ /** Assists the user with a query in a streaming fashion. */
9816
+ streamAssist(request: {
9817
+ /** V1 error format. */
9818
+ '$.xgafv'?: string;
9819
+ /** OAuth access token. */
9820
+ access_token?: string;
9821
+ /** Data format for response. */
9822
+ alt?: string;
9823
+ /** JSONP */
9824
+ callback?: string;
9825
+ /** Selector specifying which fields to include in a partial response. */
9826
+ fields?: string;
9827
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
9828
+ key?: string;
9829
+ /** Required. The resource name of the Assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` */
9830
+ name: string;
9831
+ /** OAuth 2.0 token for the current user. */
9832
+ oauth_token?: string;
9833
+ /** Returns response with indentations and line breaks. */
9834
+ prettyPrint?: boolean;
9835
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
9836
+ quotaUser?: string;
9837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9838
+ upload_protocol?: string;
9839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9840
+ uploadType?: string;
9841
+ /** Request body */
9842
+ resource: GoogleCloudDiscoveryengineV1StreamAssistRequest;
9843
+ }): Request<GoogleCloudDiscoveryengineV1StreamAssistResponse>;
9844
+ streamAssist(
9845
+ request: {
9846
+ /** V1 error format. */
9847
+ '$.xgafv'?: string;
9848
+ /** OAuth access token. */
9849
+ access_token?: string;
9850
+ /** Data format for response. */
9851
+ alt?: string;
9852
+ /** JSONP */
9853
+ callback?: string;
9854
+ /** Selector specifying which fields to include in a partial response. */
9855
+ fields?: string;
9856
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
9857
+ key?: string;
9858
+ /** Required. The resource name of the Assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` */
9859
+ name: string;
9860
+ /** OAuth 2.0 token for the current user. */
9861
+ oauth_token?: string;
9862
+ /** Returns response with indentations and line breaks. */
9863
+ prettyPrint?: boolean;
9864
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
9865
+ quotaUser?: string;
9866
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9867
+ upload_protocol?: string;
9868
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9869
+ uploadType?: string;
9870
+ },
9871
+ body: GoogleCloudDiscoveryengineV1StreamAssistRequest,
9872
+ ): Request<GoogleCloudDiscoveryengineV1StreamAssistResponse>;
9873
+ }
9874
+ interface CompletionConfigResource {
9875
+ /** Completes the user input with advanced keyword suggestions. */
9876
+ completeQuery(request: {
9877
+ /** V1 error format. */
9878
+ '$.xgafv'?: string;
9879
+ /** OAuth access token. */
9880
+ access_token?: string;
9881
+ /** Data format for response. */
9882
+ alt?: string;
9883
+ /** JSONP */
9884
+ callback?: string;
9885
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
9886
+ completionConfig: string;
9887
+ /** Selector specifying which fields to include in a partial response. */
9888
+ fields?: string;
9889
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
9890
+ key?: string;
9891
+ /** OAuth 2.0 token for the current user. */
9892
+ oauth_token?: string;
9893
+ /** Returns response with indentations and line breaks. */
9894
+ prettyPrint?: boolean;
9895
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
9896
+ quotaUser?: string;
9897
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9898
+ upload_protocol?: string;
9899
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9900
+ uploadType?: string;
9901
+ /** Request body */
9902
+ resource: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest;
9903
+ }): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
9904
+ completeQuery(
9905
+ request: {
9906
+ /** V1 error format. */
9907
+ '$.xgafv'?: string;
9908
+ /** OAuth access token. */
9909
+ access_token?: string;
9910
+ /** Data format for response. */
9911
+ alt?: string;
9912
+ /** JSONP */
9913
+ callback?: string;
9914
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
9915
+ completionConfig: string;
9916
+ /** Selector specifying which fields to include in a partial response. */
9917
+ fields?: string;
9918
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
9919
+ key?: string;
9920
+ /** OAuth 2.0 token for the current user. */
9921
+ oauth_token?: string;
9922
+ /** Returns response with indentations and line breaks. */
9923
+ prettyPrint?: boolean;
9924
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
9925
+ quotaUser?: string;
9926
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9927
+ upload_protocol?: string;
9928
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9929
+ uploadType?: string;
9930
+ },
9931
+ body: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest,
9932
+ ): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
9933
+ }
9497
9934
  interface ControlsResource {
9498
9935
  /** Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the Control to create already exists, an ALREADY_EXISTS error is returned. */
9499
9936
  create(request: {
@@ -10905,6 +11342,8 @@ declare namespace gapi.client {
10905
11342
  },
10906
11343
  body: GoogleCloudDiscoveryengineV1Engine,
10907
11344
  ): Request<GoogleCloudDiscoveryengineV1Engine>;
11345
+ assistants: AssistantsResource;
11346
+ completionConfig: CompletionConfigResource;
10908
11347
  controls: ControlsResource;
10909
11348
  conversations: ConversationsResource;
10910
11349
  operations: OperationsResource;
@@ -11465,6 +11904,66 @@ declare namespace gapi.client {
11465
11904
  documents: DocumentsResource;
11466
11905
  operations: OperationsResource;
11467
11906
  }
11907
+ interface CompletionConfigResource {
11908
+ /** Completes the user input with advanced keyword suggestions. */
11909
+ completeQuery(request: {
11910
+ /** V1 error format. */
11911
+ '$.xgafv'?: string;
11912
+ /** OAuth access token. */
11913
+ access_token?: string;
11914
+ /** Data format for response. */
11915
+ alt?: string;
11916
+ /** JSONP */
11917
+ callback?: string;
11918
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
11919
+ completionConfig: string;
11920
+ /** Selector specifying which fields to include in a partial response. */
11921
+ fields?: string;
11922
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11923
+ key?: string;
11924
+ /** OAuth 2.0 token for the current user. */
11925
+ oauth_token?: string;
11926
+ /** Returns response with indentations and line breaks. */
11927
+ prettyPrint?: boolean;
11928
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11929
+ quotaUser?: string;
11930
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11931
+ upload_protocol?: string;
11932
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11933
+ uploadType?: string;
11934
+ /** Request body */
11935
+ resource: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest;
11936
+ }): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
11937
+ completeQuery(
11938
+ request: {
11939
+ /** V1 error format. */
11940
+ '$.xgafv'?: string;
11941
+ /** OAuth access token. */
11942
+ access_token?: string;
11943
+ /** Data format for response. */
11944
+ alt?: string;
11945
+ /** JSONP */
11946
+ callback?: string;
11947
+ /** Required. The completion_config of the parent dataStore or engine resource name for which the completion is performed, such as `projects/*‍/locations/global/collections/default_collection/dataStores/*‍/completionConfig` `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
11948
+ completionConfig: string;
11949
+ /** Selector specifying which fields to include in a partial response. */
11950
+ fields?: string;
11951
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
11952
+ key?: string;
11953
+ /** OAuth 2.0 token for the current user. */
11954
+ oauth_token?: string;
11955
+ /** Returns response with indentations and line breaks. */
11956
+ prettyPrint?: boolean;
11957
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
11958
+ quotaUser?: string;
11959
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11960
+ upload_protocol?: string;
11961
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11962
+ uploadType?: string;
11963
+ },
11964
+ body: GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest,
11965
+ ): Request<GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse>;
11966
+ }
11468
11967
  interface CompletionSuggestionsResource {
11469
11968
  /** Imports CompletionSuggestions for a DataStore. */
11470
11969
  import(request: {
@@ -14177,6 +14676,7 @@ declare namespace gapi.client {
14177
14676
  body: GoogleCloudDiscoveryengineV1DataStore,
14178
14677
  ): Request<GoogleCloudDiscoveryengineV1DataStore>;
14179
14678
  branches: BranchesResource;
14679
+ completionConfig: CompletionConfigResource;
14180
14680
  completionSuggestions: CompletionSuggestionsResource;
14181
14681
  controls: ControlsResource;
14182
14682
  conversations: ConversationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1",
3
- "version": "0.0.20250708",
3
+ "version": "0.0.20250716",
4
4
  "description": "TypeScript typings for Discovery Engine API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -48,6 +48,9 @@ Don't forget to authenticate your client before sending any request to resources
48
48
  // declare client_id registered in Google Developers Console
49
49
  var client_id = '',
50
50
  scope = [
51
+ // Search your organization's data in the Cloud Search index
52
+ 'https://www.googleapis.com/auth/cloud_search.query',
53
+
51
54
  // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
52
55
  'https://www.googleapis.com/auth/cloud-platform',
53
56
  ],