@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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 (2) hide show
  1. package/index.d.ts +227 -8
  2. package/package.json +1 -1
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=v1alpha
12
- // Revision: 20250708
12
+ // Revision: 20250716
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -965,6 +965,104 @@ declare namespace gapi.client {
965
965
  /** The query to search. */
966
966
  query?: string;
967
967
  }
968
+ interface GoogleCloudDiscoveryengineV1alphaAssistAnswer {
969
+ /** Reasons for not answering the assist call. */
970
+ assistSkippedReasons?: string[];
971
+ /** Replies of the assistant. */
972
+ replies?: GoogleCloudDiscoveryengineV1alphaAssistAnswerReply[];
973
+ /** State of the answer generation. */
974
+ state?: string;
975
+ }
976
+ interface GoogleCloudDiscoveryengineV1alphaAssistAnswerReply {
977
+ /** Possibly grounded response text or media from the assistant. */
978
+ groundedContent?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent;
979
+ }
980
+ interface GoogleCloudDiscoveryengineV1alphaAssistantContent {
981
+ /** Result of executing an ExecutableCode. */
982
+ codeExecutionResult?: GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult;
983
+ /** Code generated by the model that is meant to be executed. */
984
+ executableCode?: GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode;
985
+ /** A file, e.g., an audio summary. */
986
+ file?: GoogleCloudDiscoveryengineV1alphaAssistantContentFile;
987
+ /** Inline binary data. */
988
+ inlineData?: GoogleCloudDiscoveryengineV1alphaAssistantContentBlob;
989
+ /** The producer of the content. Can be "model" or "user". */
990
+ role?: string;
991
+ /** Inline text. */
992
+ text?: string;
993
+ /** Optional. Indicates if the part is thought from the model. */
994
+ thought?: boolean;
995
+ }
996
+ interface GoogleCloudDiscoveryengineV1alphaAssistantContentBlob {
997
+ /** Required. Raw bytes. */
998
+ data?: string;
999
+ /** Required. The media type (MIME type) of the generated data. */
1000
+ mimeType?: string;
1001
+ }
1002
+ interface GoogleCloudDiscoveryengineV1alphaAssistantContentCodeExecutionResult {
1003
+ /** Required. Outcome of the code execution. */
1004
+ outcome?: string;
1005
+ /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
1006
+ output?: string;
1007
+ }
1008
+ interface GoogleCloudDiscoveryengineV1alphaAssistantContentExecutableCode {
1009
+ /** Required. The code content. Currently only supports Python. */
1010
+ code?: string;
1011
+ }
1012
+ interface GoogleCloudDiscoveryengineV1alphaAssistantContentFile {
1013
+ /** Required. The file ID. */
1014
+ fileId?: string;
1015
+ /** Required. The media type (MIME type) of the file. */
1016
+ mimeType?: string;
1017
+ }
1018
+ interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent {
1019
+ /** The content. */
1020
+ content?: GoogleCloudDiscoveryengineV1alphaAssistantContent;
1021
+ /** Metadata for grounding based on text sources. */
1022
+ textGroundingMetadata?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata;
1023
+ }
1024
+ interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadata {
1025
+ /** References for the grounded text. */
1026
+ references?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference[];
1027
+ /** Grounding information for parts of the text. */
1028
+ segments?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment[];
1029
+ }
1030
+ interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
1031
+ /** Referenced text content. */
1032
+ content?: string;
1033
+ /** Document metadata. */
1034
+ documentMetadata?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata;
1035
+ }
1036
+ interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata {
1037
+ /** Document resource name. */
1038
+ document?: string;
1039
+ /** 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. */
1040
+ domain?: string;
1041
+ /** Page identifier. */
1042
+ pageIdentifier?: string;
1043
+ /** Title. */
1044
+ title?: string;
1045
+ /** URI for the document. It may contain a URL that redirects to the actual website. */
1046
+ uri?: string;
1047
+ }
1048
+ interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataSegment {
1049
+ /** End of the segment, exclusive. */
1050
+ endIndex?: string;
1051
+ /** Score for the segment. */
1052
+ groundingScore?: number;
1053
+ /** References for the segment. */
1054
+ referenceIndices?: number[];
1055
+ /** 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). */
1056
+ startIndex?: string;
1057
+ /** The text segment itself. */
1058
+ text?: string;
1059
+ }
1060
+ interface GoogleCloudDiscoveryengineV1alphaAssistUserMetadata {
1061
+ /** 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. */
1062
+ preferredLanguageCode?: string;
1063
+ /** Optional. IANA time zone, e.g. Europe/Budapest. */
1064
+ timeZone?: string;
1065
+ }
968
1066
  interface GoogleCloudDiscoveryengineV1alphaBAPConfig {
969
1067
  /** Required. The supported connector modes for the associated BAP connection. */
970
1068
  supportedConnectorModes?: string[];
@@ -1917,6 +2015,8 @@ declare namespace gapi.client {
1917
2015
  }
1918
2016
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
1919
2017
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig {
2018
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
2019
+ enableGetProcessedDocument?: boolean;
1920
2020
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
1921
2021
  enableImageAnnotation?: boolean;
1922
2022
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -1967,7 +2067,7 @@ declare namespace gapi.client {
1967
2067
  disableAnalytics?: boolean;
1968
2068
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
1969
2069
  displayName?: string;
1970
- /** 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` */
2070
+ /** 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. */
1971
2071
  features?: {[P in string]: string};
1972
2072
  /** 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. */
1973
2073
  industryVertical?: string;
@@ -2358,7 +2458,7 @@ declare namespace gapi.client {
2358
2458
  forceRefreshContent?: boolean;
2359
2459
  /** Cloud Storage location for the input content. */
2360
2460
  gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
2361
- /** 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. */
2461
+ /** 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. */
2362
2462
  idField?: string;
2363
2463
  /** The Inline source for the input content for documents. */
2364
2464
  inlineSource?: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource;
@@ -3232,7 +3332,7 @@ declare namespace gapi.client {
3232
3332
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec;
3233
3333
  /** 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. */
3234
3334
  servingConfig?: string;
3235
- /** 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. */
3335
+ /** 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. */
3236
3336
  session?: string;
3237
3337
  /** Session specification. Can be used only when `session` is set. */
3238
3338
  sessionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec;
@@ -3858,6 +3958,60 @@ declare namespace gapi.client {
3858
3958
  /** Timestamp to indicate the point in time from which data should be synced for Streaming/Batch Data Connectors. This field is only utilized for Healthcare Connectors. */
3859
3959
  syncSinceTimestamp?: string;
3860
3960
  }
3961
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequest {
3962
+ /** Optional. Specification of the generation configuration for the request. */
3963
+ generationSpec?: GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec;
3964
+ /** 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. */
3965
+ query?: GoogleCloudDiscoveryengineV1alphaQuery;
3966
+ /** 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}` */
3967
+ session?: string;
3968
+ /** Optional. Specification of tools that are used to serve the request. */
3969
+ toolsSpec?: GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec;
3970
+ /** Optional. Information about the user initiating the query. */
3971
+ userMetadata?: GoogleCloudDiscoveryengineV1alphaAssistUserMetadata;
3972
+ }
3973
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestGenerationSpec {
3974
+ /** Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used. */
3975
+ modelId?: string;
3976
+ }
3977
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpec {
3978
+ /** Optional. Specification of the image generation tool. */
3979
+ imageGenerationSpec?: any;
3980
+ /** Optional. The name of the tool registry to use. Format: `projects/{project}/locations/{location}/toolRegistries/{tool_registry}` */
3981
+ toolRegistry?: string;
3982
+ /** Optional. Specification of the Vertex AI Search tool. */
3983
+ vertexAiSearchSpec?: GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec;
3984
+ /** Optional. Specification of the video generation tool. */
3985
+ videoGenerationSpec?: any;
3986
+ /** 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. */
3987
+ webGroundingSpec?: GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec;
3988
+ }
3989
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecImageGenerationSpec {}
3990
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVertexAiSearchSpec {
3991
+ /** 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. */
3992
+ dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
3993
+ /** 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. */
3994
+ disabled?: boolean;
3995
+ /** 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) */
3996
+ filter?: string;
3997
+ }
3998
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecVideoGenerationSpec {}
3999
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistRequestToolsSpecWebGroundingSpec {
4000
+ /** Optional. Deprecated. Please refrain from using this field. Whether the web grounding tool is enabled. */
4001
+ enabled?: boolean;
4002
+ }
4003
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistResponse {
4004
+ /** 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. */
4005
+ answer?: GoogleCloudDiscoveryengineV1alphaAssistAnswer;
4006
+ /** A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support. */
4007
+ assistToken?: string;
4008
+ /** Session information. */
4009
+ sessionInfo?: GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo;
4010
+ }
4011
+ interface GoogleCloudDiscoveryengineV1alphaStreamAssistResponseSessionInfo {
4012
+ /** Name of the newly generated or continued session. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`. */
4013
+ session?: string;
4014
+ }
3861
4015
  interface GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry {
3862
4016
  /** Required. Phrase to block from suggestions served. Can be maximum 125 characters. */
3863
4017
  blockPhrase?: string;
@@ -4261,7 +4415,7 @@ declare namespace gapi.client {
4261
4415
  enableSearchAsYouType?: boolean;
4262
4416
  /** If set to true, the widget will enable visual content summary on applicable search requests. Only used by healthcare search. */
4263
4417
  enableVisualContentSummary?: boolean;
4264
- /** Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` */
4418
+ /** Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `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. */
4265
4419
  features?: {[P in string]: string};
4266
4420
  /** Describes generative answer configuration. */
4267
4421
  generativeAnswerConfig?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig;
@@ -4674,6 +4828,8 @@ declare namespace gapi.client {
4674
4828
  }
4675
4829
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
4676
4830
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig {
4831
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
4832
+ enableGetProcessedDocument?: boolean;
4677
4833
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
4678
4834
  enableImageAnnotation?: boolean;
4679
4835
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -4715,7 +4871,7 @@ declare namespace gapi.client {
4715
4871
  disableAnalytics?: boolean;
4716
4872
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
4717
4873
  displayName?: string;
4718
- /** 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` */
4874
+ /** 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. */
4719
4875
  features?: {[P in string]: string};
4720
4876
  /** 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. */
4721
4877
  industryVertical?: string;
@@ -5140,7 +5296,7 @@ declare namespace gapi.client {
5140
5296
  searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec;
5141
5297
  /** 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. */
5142
5298
  servingConfig?: string;
5143
- /** 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. */
5299
+ /** 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. */
5144
5300
  session?: string;
5145
5301
  /** Session specification. Can be used only when `session` is set. */
5146
5302
  sessionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec;
@@ -5751,6 +5907,8 @@ declare namespace gapi.client {
5751
5907
  }
5752
5908
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
5753
5909
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig {
5910
+ /** Optional. If true, the processed document will be made available for the GetProcessedDocument API. */
5911
+ enableGetProcessedDocument?: boolean;
5754
5912
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
5755
5913
  enableImageAnnotation?: boolean;
5756
5914
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
@@ -5792,7 +5950,7 @@ declare namespace gapi.client {
5792
5950
  disableAnalytics?: boolean;
5793
5951
  /** Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters. */
5794
5952
  displayName?: string;
5795
- /** 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` */
5953
+ /** 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. */
5796
5954
  features?: {[P in string]: string};
5797
5955
  /** 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. */
5798
5956
  industryVertical?: string;
@@ -10862,6 +11020,66 @@ declare namespace gapi.client {
10862
11020
  userEvents: UserEventsResource;
10863
11021
  widgetConfigs: WidgetConfigsResource;
10864
11022
  }
11023
+ interface AssistantsResource {
11024
+ /** Assists the user with a query in a streaming fashion. */
11025
+ streamAssist(request: {
11026
+ /** V1 error format. */
11027
+ '$.xgafv'?: string;
11028
+ /** OAuth access token. */
11029
+ access_token?: string;
11030
+ /** Data format for response. */
11031
+ alt?: string;
11032
+ /** JSONP */
11033
+ callback?: string;
11034
+ /** Selector specifying which fields to include in a partial response. */
11035
+ fields?: string;
11036
+ /** 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. */
11037
+ key?: string;
11038
+ /** Required. The resource name of the Assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` */
11039
+ name: string;
11040
+ /** OAuth 2.0 token for the current user. */
11041
+ oauth_token?: string;
11042
+ /** Returns response with indentations and line breaks. */
11043
+ prettyPrint?: boolean;
11044
+ /** 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. */
11045
+ quotaUser?: string;
11046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11047
+ upload_protocol?: string;
11048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11049
+ uploadType?: string;
11050
+ /** Request body */
11051
+ resource: GoogleCloudDiscoveryengineV1alphaStreamAssistRequest;
11052
+ }): Request<GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>;
11053
+ streamAssist(
11054
+ request: {
11055
+ /** V1 error format. */
11056
+ '$.xgafv'?: string;
11057
+ /** OAuth access token. */
11058
+ access_token?: string;
11059
+ /** Data format for response. */
11060
+ alt?: string;
11061
+ /** JSONP */
11062
+ callback?: string;
11063
+ /** Selector specifying which fields to include in a partial response. */
11064
+ fields?: string;
11065
+ /** 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. */
11066
+ key?: string;
11067
+ /** Required. The resource name of the Assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` */
11068
+ name: string;
11069
+ /** OAuth 2.0 token for the current user. */
11070
+ oauth_token?: string;
11071
+ /** Returns response with indentations and line breaks. */
11072
+ prettyPrint?: boolean;
11073
+ /** 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. */
11074
+ quotaUser?: string;
11075
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11076
+ upload_protocol?: string;
11077
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11078
+ uploadType?: string;
11079
+ },
11080
+ body: GoogleCloudDiscoveryengineV1alphaStreamAssistRequest,
11081
+ ): Request<GoogleCloudDiscoveryengineV1alphaStreamAssistResponse>;
11082
+ }
10865
11083
  interface CompletionConfigResource {
10866
11084
  /** Completes the user input with advanced keyword suggestions. */
10867
11085
  completeQuery(request: {
@@ -12598,6 +12816,7 @@ declare namespace gapi.client {
12598
12816
  },
12599
12817
  body: GoogleCloudDiscoveryengineV1alphaTuneEngineRequest,
12600
12818
  ): Request<GoogleLongrunningOperation>;
12819
+ assistants: AssistantsResource;
12601
12820
  completionConfig: CompletionConfigResource;
12602
12821
  controls: ControlsResource;
12603
12822
  conversations: ConversationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250708",
3
+ "version": "0.0.20250716",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",