@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240621 → 0.0.20240701

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 +168 -6
  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=v1beta
12
- // Revision: 20240621
12
+ // Revision: 20240701
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -207,6 +207,8 @@ declare namespace gapi.client {
207
207
  document?: string;
208
208
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
209
209
  snippetInfo?: GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo[];
210
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
211
+ structData?: {[P in string]: any};
210
212
  /** Title. */
211
213
  title?: string;
212
214
  /** URI for the document. */
@@ -331,6 +333,8 @@ declare namespace gapi.client {
331
333
  createTime?: string;
332
334
  /** The display name of the model. */
333
335
  displayName?: string;
336
+ /** The metrics of the trained model. */
337
+ metrics?: {[P in string]: number};
334
338
  /** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
335
339
  modelState?: string;
336
340
  /** The version of the model. */
@@ -404,7 +408,7 @@ declare namespace gapi.client {
404
408
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
405
409
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
406
410
  name?: string;
407
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
411
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
408
412
  parsingConfigOverrides?: {
409
413
  [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
410
414
  };
@@ -1170,6 +1174,8 @@ declare namespace gapi.client {
1170
1174
  document?: string;
1171
1175
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
1172
1176
  snippetInfo?: GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo[];
1177
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
1178
+ structData?: {[P in string]: any};
1173
1179
  /** Title. */
1174
1180
  title?: string;
1175
1181
  /** URI for the document. */
@@ -1539,6 +1545,8 @@ declare namespace gapi.client {
1539
1545
  createTime?: string;
1540
1546
  /** The display name of the model. */
1541
1547
  displayName?: string;
1548
+ /** The metrics of the trained model. */
1549
+ metrics?: {[P in string]: number};
1542
1550
  /** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
1543
1551
  modelState?: string;
1544
1552
  /** The version of the model. */
@@ -1649,7 +1657,7 @@ declare namespace gapi.client {
1649
1657
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1650
1658
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1651
1659
  name?: string;
1652
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
1660
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
1653
1661
  parsingConfigOverrides?: {
1654
1662
  [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1655
1663
  };
@@ -2242,6 +2250,8 @@ declare namespace gapi.client {
2242
2250
  imageQuery?: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery;
2243
2251
  /** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate. */
2244
2252
  languageCode?: string;
2253
+ /** If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional natural language query understanding will be done. */
2254
+ naturalLanguageQueryUnderstandingSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec;
2245
2255
  /** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
2246
2256
  offset?: number;
2247
2257
  /** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
@@ -2256,12 +2266,18 @@ declare namespace gapi.client {
2256
2266
  query?: string;
2257
2267
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
2258
2268
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec;
2259
- /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joint by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: `relevance_score`: pre-defined keywords, used for measure relevance between query and document. `embedding_field_path`: the document embedding field used with query embedding vector. `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
2269
+ /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
2260
2270
  rankingExpression?: string;
2261
2271
  /** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
2262
2272
  regionCode?: string;
2263
2273
  /** Whether to turn on safe search. This is only supported for website search. */
2264
2274
  safeSearch?: boolean;
2275
+ /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
2276
+ searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec;
2277
+ /** 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. */
2278
+ session?: string;
2279
+ /** Session specification. Can be used only when `session` is set. */
2280
+ sessionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec;
2265
2281
  /** The spell correction specification that specifies the mode under which spell correction takes effect. */
2266
2282
  spellCorrectionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec;
2267
2283
  /** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
@@ -2407,12 +2423,28 @@ declare namespace gapi.client {
2407
2423
  /** Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP. */
2408
2424
  imageBytes?: string;
2409
2425
  }
2426
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec {
2427
+ /** The condition under which filter extraction should occur. Default to Condition.DISABLED. */
2428
+ filterExtractionCondition?: string;
2429
+ /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in Servingconfig.geo_search_query_detection_field_names. */
2430
+ geoSearchQueryDetectionFieldNames?: string[];
2431
+ }
2410
2432
  interface GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec {
2411
2433
  /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
2412
2434
  condition?: string;
2413
2435
  /** Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. */
2414
2436
  pinUnexpandedResults?: boolean;
2415
2437
  }
2438
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec {
2439
+ /** The condition under which search as you type should occur. Default to Condition.DISABLED. */
2440
+ condition?: string;
2441
+ }
2442
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec {
2443
+ /** If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID. */
2444
+ queryId?: string;
2445
+ /** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode. */
2446
+ searchResultPersistenceCount?: number;
2447
+ }
2416
2448
  interface GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec {
2417
2449
  /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
2418
2450
  mode?: string;
@@ -2429,6 +2461,8 @@ declare namespace gapi.client {
2429
2461
  geoSearchDebugInfo?: GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo[];
2430
2462
  /** Guided search result. */
2431
2463
  guidedSearchResult?: GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult;
2464
+ /** Natural language query understanding information for the returned results. */
2465
+ naturalLanguageQueryUnderstandingInfo?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo;
2432
2466
  /** A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2433
2467
  nextPageToken?: string;
2434
2468
  /** Query expansion information for the returned results. */
@@ -2437,6 +2471,8 @@ declare namespace gapi.client {
2437
2471
  redirectUri?: string;
2438
2472
  /** A list of matched documents. The order represents the ranking. */
2439
2473
  results?: GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult[];
2474
+ /** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
2475
+ sessionInfo?: GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo;
2440
2476
  /** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
2441
2477
  summary?: GoogleCloudDiscoveryengineV1betaSearchResponseSummary;
2442
2478
  /** The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches. */
@@ -2476,6 +2512,60 @@ declare namespace gapi.client {
2476
2512
  /** Attribute value used to refine the results. For example, `"drama"`. */
2477
2513
  attributeValue?: string;
2478
2514
  }
2515
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo {
2516
+ /** The filters that were extracted from the input query. */
2517
+ extractedFilters?: string;
2518
+ /** Rewritten input query minus the extracted filters. */
2519
+ rewrittenQuery?: string;
2520
+ /** The filters that were extracted from the input query represented in a structured form. */
2521
+ structuredExtractedFilter?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter;
2522
+ }
2523
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter {
2524
+ /** The expression denoting the filter that was extracted from the input query in a structured form. It can be a simple expression denoting a single string, numerical or geolocation constraint or a compound expression which is a combination of multiple expressions connected using logical (OR and AND) operators. */
2525
+ expression?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression;
2526
+ }
2527
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression {
2528
+ /** The expressions that were ANDed together. */
2529
+ expressions?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression[];
2530
+ }
2531
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression {
2532
+ /** Logical "And" compound operator connecting multiple expressions. */
2533
+ andExpr?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression;
2534
+ /** Geolocation constraint expression. */
2535
+ geolocationConstraint?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint;
2536
+ /** Numerical constraint expression. */
2537
+ numberConstraint?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint;
2538
+ /** Logical "Or" compound operator connecting multiple expressions. */
2539
+ orExpr?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression;
2540
+ /** String constraint expression. */
2541
+ stringConstraint?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint;
2542
+ }
2543
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint {
2544
+ /** The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results. */
2545
+ address?: string;
2546
+ /** The name of the geolocation field as defined in the schema. */
2547
+ fieldName?: string;
2548
+ /** The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius. */
2549
+ radiusInMeters?: number;
2550
+ }
2551
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint {
2552
+ /** The comparison operation performed between the field value and the value specified in the constraint. */
2553
+ comparison?: string;
2554
+ /** Name of the numerical field as defined in the schema. */
2555
+ fieldName?: string;
2556
+ /** The value specified in the numerical constraint. */
2557
+ value?: number;
2558
+ }
2559
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression {
2560
+ /** The expressions that were ORed together. */
2561
+ expressions?: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression[];
2562
+ }
2563
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint {
2564
+ /** Name of the string field as defined in the schema. */
2565
+ fieldName?: string;
2566
+ /** Values of the string field. The record will only be returned if the field value matches one of the values specified here. */
2567
+ values?: string[];
2568
+ }
2479
2569
  interface GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo {
2480
2570
  /** Bool describing whether query expansion has occurred. */
2481
2571
  expandedQuery?: boolean;
@@ -2492,6 +2582,12 @@ declare namespace gapi.client {
2492
2582
  /** Google provided available scores. */
2493
2583
  modelScores?: {[P in string]: GoogleCloudDiscoveryengineV1betaDoubleList};
2494
2584
  }
2585
+ interface GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo {
2586
+ /** Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name. */
2587
+ name?: string;
2588
+ /** Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call. */
2589
+ queryId?: string;
2590
+ }
2495
2591
  interface GoogleCloudDiscoveryengineV1betaSearchResponseSummary {
2496
2592
  /** A collection of Safety Attribute categories and their associated confidence scores. */
2497
2593
  safetyAttributes?: GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes;
@@ -2575,7 +2671,7 @@ declare namespace gapi.client {
2575
2671
  name?: string;
2576
2672
  /** Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
2577
2673
  onewaySynonymsControlIds?: string[];
2578
- /** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: relevance_score: pre-defined keywords, used for measure relevance between query and document. embedding_field_path: the document embedding field used with query embedding vector. dotProduct: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). */
2674
+ /** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
2579
2675
  rankingExpression?: string;
2580
2676
  /** IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
2581
2677
  redirectControlIds?: string[];
@@ -2950,7 +3046,7 @@ declare namespace gapi.client {
2950
3046
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2951
3047
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
2952
3048
  name?: string;
2953
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
3049
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
2954
3050
  parsingConfigOverrides?: {
2955
3051
  [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2956
3052
  };
@@ -11109,6 +11205,38 @@ declare namespace gapi.client {
11109
11205
  suggestionDenyListEntries: SuggestionDenyListEntriesResource;
11110
11206
  userEvents: UserEventsResource;
11111
11207
  }
11208
+ interface OperationsResource {
11209
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
11210
+ get(request?: {
11211
+ /** V1 error format. */
11212
+ '$.xgafv'?: string;
11213
+ /** OAuth access token. */
11214
+ access_token?: string;
11215
+ /** Data format for response. */
11216
+ alt?: string;
11217
+ /** JSONP */
11218
+ callback?: string;
11219
+ /** Selector specifying which fields to include in a partial response. */
11220
+ fields?: string;
11221
+ /** 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. */
11222
+ key?: string;
11223
+ /** The name of the operation resource. */
11224
+ name: string;
11225
+ /** OAuth 2.0 token for the current user. */
11226
+ oauth_token?: string;
11227
+ /** Returns response with indentations and line breaks. */
11228
+ prettyPrint?: boolean;
11229
+ /** 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. */
11230
+ quotaUser?: string;
11231
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11232
+ upload_protocol?: string;
11233
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11234
+ uploadType?: string;
11235
+ }): Request<GoogleLongrunningOperation>;
11236
+ }
11237
+ interface EvaluationsResource {
11238
+ operations: OperationsResource;
11239
+ }
11112
11240
  interface GroundingConfigsResource {
11113
11241
  /** Performs a grounding check. */
11114
11242
  check(request: {
@@ -11291,6 +11419,38 @@ declare namespace gapi.client {
11291
11419
  body: GoogleCloudDiscoveryengineV1betaRankRequest
11292
11420
  ): Request<GoogleCloudDiscoveryengineV1betaRankResponse>;
11293
11421
  }
11422
+ interface OperationsResource {
11423
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
11424
+ get(request?: {
11425
+ /** V1 error format. */
11426
+ '$.xgafv'?: string;
11427
+ /** OAuth access token. */
11428
+ access_token?: string;
11429
+ /** Data format for response. */
11430
+ alt?: string;
11431
+ /** JSONP */
11432
+ callback?: string;
11433
+ /** Selector specifying which fields to include in a partial response. */
11434
+ fields?: string;
11435
+ /** 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. */
11436
+ key?: string;
11437
+ /** The name of the operation resource. */
11438
+ name: string;
11439
+ /** OAuth 2.0 token for the current user. */
11440
+ oauth_token?: string;
11441
+ /** Returns response with indentations and line breaks. */
11442
+ prettyPrint?: boolean;
11443
+ /** 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. */
11444
+ quotaUser?: string;
11445
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11446
+ upload_protocol?: string;
11447
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11448
+ uploadType?: string;
11449
+ }): Request<GoogleLongrunningOperation>;
11450
+ }
11451
+ interface SampleQuerySetsResource {
11452
+ operations: OperationsResource;
11453
+ }
11294
11454
  interface UserEventsResource {
11295
11455
  /** Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */
11296
11456
  collect(request?: {
@@ -11391,9 +11551,11 @@ declare namespace gapi.client {
11391
11551
  interface LocationsResource {
11392
11552
  collections: CollectionsResource;
11393
11553
  dataStores: DataStoresResource;
11554
+ evaluations: EvaluationsResource;
11394
11555
  groundingConfigs: GroundingConfigsResource;
11395
11556
  operations: OperationsResource;
11396
11557
  rankingConfigs: RankingConfigsResource;
11558
+ sampleQuerySets: SampleQuerySetsResource;
11397
11559
  userEvents: UserEventsResource;
11398
11560
  }
11399
11561
  interface OperationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240621",
3
+ "version": "0.0.20240701",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",