@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20240607 → 0.0.20240617

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 +370 -3
  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=v1
12
- // Revision: 20240607
12
+ // Revision: 20240617
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -371,6 +371,8 @@ declare namespace gapi.client {
371
371
  idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
372
372
  /** Immutable. The industry vertical that the data store registers. */
373
373
  industryVertical?: string;
374
+ /** Language info for DataStore. */
375
+ languageInfo?: GoogleCloudDiscoveryengineV1alphaLanguageInfo;
374
376
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
375
377
  name?: string;
376
378
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
@@ -585,6 +587,22 @@ declare namespace gapi.client {
585
587
  /** Workforce pool name. Example: "locations/global/workforcePools/pool_id" */
586
588
  workforcePoolName?: string;
587
589
  }
590
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata {
591
+ /** Operation create time. */
592
+ createTime?: string;
593
+ /** Count of CompletionSuggestions that failed to be imported. */
594
+ failureCount?: string;
595
+ /** Count of CompletionSuggestions successfully imported. */
596
+ successCount?: string;
597
+ /** Operation last update time. If the operation is done, this is also the finish time. */
598
+ updateTime?: string;
599
+ }
600
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse {
601
+ /** The desired location of errors incurred during the Import. */
602
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
603
+ /** A sample of errors encountered while processing the request. */
604
+ errorSamples?: GoogleRpcStatus[];
605
+ }
588
606
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
589
607
  /** Operation create time. */
590
608
  createTime?: string;
@@ -641,6 +659,16 @@ declare namespace gapi.client {
641
659
  /** Count of user events imported, but with Document information not found in the existing Branch. */
642
660
  unjoinedEventsCount?: string;
643
661
  }
662
+ interface GoogleCloudDiscoveryengineV1alphaLanguageInfo {
663
+ /** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
664
+ language?: string;
665
+ /** The language code for the DataStore. */
666
+ languageCode?: string;
667
+ /** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
668
+ normalizedLanguageCode?: string;
669
+ /** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
670
+ region?: string;
671
+ }
644
672
  interface GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse {
645
673
  /** List of custom tuning models. */
646
674
  models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
@@ -670,6 +698,18 @@ declare namespace gapi.client {
670
698
  version?: string;
671
699
  }
672
700
  interface GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata {}
701
+ interface GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata {
702
+ /** Operation create time. */
703
+ createTime?: string;
704
+ /** Operation last update time. If the operation is done, this is also the finish time. */
705
+ updateTime?: string;
706
+ }
707
+ interface GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse {
708
+ /** A sample of errors encountered while processing the request. */
709
+ errorSamples?: GoogleRpcStatus[];
710
+ /** Whether the completion suggestions were successfully purged. */
711
+ purgeSucceeded?: boolean;
712
+ }
673
713
  interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
674
714
  /** Operation create time. */
675
715
  createTime?: string;
@@ -1279,6 +1319,8 @@ declare namespace gapi.client {
1279
1319
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
1280
1320
  /** Immutable. The industry vertical that the data store registers. */
1281
1321
  industryVertical?: string;
1322
+ /** Language info for DataStore. */
1323
+ languageInfo?: GoogleCloudDiscoveryengineV1betaLanguageInfo;
1282
1324
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
1283
1325
  name?: string;
1284
1326
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
@@ -1416,6 +1458,22 @@ declare namespace gapi.client {
1416
1458
  /** The search feature tier of this engine. Different tiers might have different pricing. To learn more, check the pricing documentation. Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified. */
1417
1459
  searchTier?: string;
1418
1460
  }
1461
+ interface GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata {
1462
+ /** Operation create time. */
1463
+ createTime?: string;
1464
+ /** Count of CompletionSuggestions that failed to be imported. */
1465
+ failureCount?: string;
1466
+ /** Count of CompletionSuggestions successfully imported. */
1467
+ successCount?: string;
1468
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1469
+ updateTime?: string;
1470
+ }
1471
+ interface GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse {
1472
+ /** The desired location of errors incurred during the Import. */
1473
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
1474
+ /** A sample of errors encountered while processing the request. */
1475
+ errorSamples?: GoogleRpcStatus[];
1476
+ }
1419
1477
  interface GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata {
1420
1478
  /** Operation create time. */
1421
1479
  createTime?: string;
@@ -1472,6 +1530,16 @@ declare namespace gapi.client {
1472
1530
  /** Count of user events imported, but with Document information not found in the existing Branch. */
1473
1531
  unjoinedEventsCount?: string;
1474
1532
  }
1533
+ interface GoogleCloudDiscoveryengineV1betaLanguageInfo {
1534
+ /** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
1535
+ language?: string;
1536
+ /** The language code for the DataStore. */
1537
+ languageCode?: string;
1538
+ /** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
1539
+ normalizedLanguageCode?: string;
1540
+ /** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
1541
+ region?: string;
1542
+ }
1475
1543
  interface GoogleCloudDiscoveryengineV1betaListCustomModelsResponse {
1476
1544
  /** List of custom tuning models. */
1477
1545
  models?: GoogleCloudDiscoveryengineV1betaCustomTuningModel[];
@@ -1766,6 +1834,22 @@ declare namespace gapi.client {
1766
1834
  /** End user selected CompleteQueryResponse.QuerySuggestion.suggestion. */
1767
1835
  selectedSuggestion?: string;
1768
1836
  }
1837
+ interface GoogleCloudDiscoveryengineV1CompletionSuggestion {
1838
+ /** Alternative matching phrases for this suggestion. */
1839
+ alternativePhrases?: string[];
1840
+ /** Frequency of this suggestion. Will be used to rank suggestions when score is not available. */
1841
+ frequency?: string;
1842
+ /** Global score of this suggestion. Control how this suggestion would be scored / ranked. */
1843
+ globalScore?: number;
1844
+ /** If two suggestions have the same groupId, they will not be returned together. Instead the one ranked higher will be returned. This can be used to deduplicate semantically identical suggestions. */
1845
+ groupId?: string;
1846
+ /** The score of this suggestion within its group. */
1847
+ groupScore?: number;
1848
+ /** BCP-47 language code of this suggestion. */
1849
+ languageCode?: string;
1850
+ /** Required. The suggestion text. */
1851
+ suggestion?: string;
1852
+ }
1769
1853
  interface GoogleCloudDiscoveryengineV1Condition {
1770
1854
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
1771
1855
  activeTimeRange?: GoogleCloudDiscoveryengineV1ConditionTimeRange[];
@@ -1995,7 +2079,7 @@ declare namespace gapi.client {
1995
2079
  mimeType?: string;
1996
2080
  /** The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json. */
1997
2081
  rawBytes?: string;
1998
- /** The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 100 MB for other formats. */
2082
+ /** The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats. */
1999
2083
  uri?: string;
2000
2084
  }
2001
2085
  interface GoogleCloudDiscoveryengineV1DocumentInfo {
@@ -2156,6 +2240,36 @@ declare namespace gapi.client {
2156
2240
  /** Text content of the fact. Can be at most 10K characters long. */
2157
2241
  factText?: string;
2158
2242
  }
2243
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata {
2244
+ /** Operation create time. */
2245
+ createTime?: string;
2246
+ /** Count of CompletionSuggestions that failed to be imported. */
2247
+ failureCount?: string;
2248
+ /** Count of CompletionSuggestions successfully imported. */
2249
+ successCount?: string;
2250
+ /** Operation last update time. If the operation is done, this is also the finish time. */
2251
+ updateTime?: string;
2252
+ }
2253
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest {
2254
+ /** BigQuery input source. */
2255
+ bigquerySource?: GoogleCloudDiscoveryengineV1BigQuerySource;
2256
+ /** The desired location of errors incurred during the Import. */
2257
+ errorConfig?: GoogleCloudDiscoveryengineV1ImportErrorConfig;
2258
+ /** Cloud Storage location for the input content. */
2259
+ gcsSource?: GoogleCloudDiscoveryengineV1GcsSource;
2260
+ /** The Inline source for suggestion entries. */
2261
+ inlineSource?: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource;
2262
+ }
2263
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource {
2264
+ /** Required. A list of all denylist entries to import. Max of 1000 items. */
2265
+ suggestions?: GoogleCloudDiscoveryengineV1CompletionSuggestion[];
2266
+ }
2267
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse {
2268
+ /** The desired location of errors incurred during the Import. */
2269
+ errorConfig?: GoogleCloudDiscoveryengineV1ImportErrorConfig;
2270
+ /** A sample of errors encountered while processing the request. */
2271
+ errorSamples?: GoogleRpcStatus[];
2272
+ }
2159
2273
  interface GoogleCloudDiscoveryengineV1ImportDocumentsMetadata {
2160
2274
  /** Operation create time. */
2161
2275
  createTime?: string;
@@ -2387,6 +2501,19 @@ declare namespace gapi.client {
2387
2501
  /** Required. The version of the [Terms for data use](https://cloud.google.com/retail/data-use-terms) that caller has read and would like to give consent to. Acceptable version is `2022-11-23`, and this may change over time. */
2388
2502
  dataUseTermsVersion?: string;
2389
2503
  }
2504
+ interface GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata {
2505
+ /** Operation create time. */
2506
+ createTime?: string;
2507
+ /** Operation last update time. If the operation is done, this is also the finish time. */
2508
+ updateTime?: string;
2509
+ }
2510
+ interface GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest {}
2511
+ interface GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse {
2512
+ /** A sample of errors encountered while processing the request. */
2513
+ errorSamples?: GoogleRpcStatus[];
2514
+ /** Whether the completion suggestions were successfully purged. */
2515
+ purgeSucceeded?: boolean;
2516
+ }
2390
2517
  interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
2391
2518
  /** Operation create time. */
2392
2519
  createTime?: string;
@@ -2531,6 +2658,8 @@ declare namespace gapi.client {
2531
2658
  filter?: string;
2532
2659
  /** Raw image query. */
2533
2660
  imageQuery?: GoogleCloudDiscoveryengineV1SearchRequestImageQuery;
2661
+ /** 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. */
2662
+ languageCode?: string;
2534
2663
  /** 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. */
2535
2664
  offset?: number;
2536
2665
  /** 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. */
@@ -2641,7 +2770,7 @@ declare namespace gapi.client {
2641
2770
  excludedFilterKeys?: string[];
2642
2771
  /** Required. The facet key specification. */
2643
2772
  facetKey?: GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey;
2644
- /** Maximum facet values that are returned for this facet. If unspecified, defaults to 20. The maximum allowed value is 300. Values above 300 are coerced to 300. If this field is negative, an `INVALID_ARGUMENT` is returned. */
2773
+ /** Maximum facet values that are returned for this facet. If unspecified, defaults to 20. The maximum allowed value is 300. Values above 300 are coerced to 300. For aggregation in healthcare search, when the [FacetKey.key] is "healthcare_aggregation_key", the limit will be overridden to 10,000 internally, regardless of the value set here. If this field is negative, an `INVALID_ARGUMENT` is returned. */
2645
2774
  limit?: number;
2646
2775
  }
2647
2776
  interface GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey {
@@ -3494,6 +3623,124 @@ declare namespace gapi.client {
3494
3623
  documents: DocumentsResource;
3495
3624
  operations: OperationsResource;
3496
3625
  }
3626
+ interface CompletionSuggestionsResource {
3627
+ /** Imports CompletionSuggestions for a DataStore. */
3628
+ import(request: {
3629
+ /** V1 error format. */
3630
+ '$.xgafv'?: string;
3631
+ /** OAuth access token. */
3632
+ access_token?: string;
3633
+ /** Data format for response. */
3634
+ alt?: string;
3635
+ /** JSONP */
3636
+ callback?: string;
3637
+ /** Selector specifying which fields to include in a partial response. */
3638
+ fields?: string;
3639
+ /** 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. */
3640
+ key?: string;
3641
+ /** OAuth 2.0 token for the current user. */
3642
+ oauth_token?: string;
3643
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
3644
+ parent: string;
3645
+ /** Returns response with indentations and line breaks. */
3646
+ prettyPrint?: boolean;
3647
+ /** 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. */
3648
+ quotaUser?: string;
3649
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3650
+ upload_protocol?: string;
3651
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3652
+ uploadType?: string;
3653
+ /** Request body */
3654
+ resource: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest;
3655
+ }): Request<GoogleLongrunningOperation>;
3656
+ import(
3657
+ request: {
3658
+ /** V1 error format. */
3659
+ '$.xgafv'?: string;
3660
+ /** OAuth access token. */
3661
+ access_token?: string;
3662
+ /** Data format for response. */
3663
+ alt?: string;
3664
+ /** JSONP */
3665
+ callback?: string;
3666
+ /** Selector specifying which fields to include in a partial response. */
3667
+ fields?: string;
3668
+ /** 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. */
3669
+ key?: string;
3670
+ /** OAuth 2.0 token for the current user. */
3671
+ oauth_token?: string;
3672
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
3673
+ parent: string;
3674
+ /** Returns response with indentations and line breaks. */
3675
+ prettyPrint?: boolean;
3676
+ /** 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. */
3677
+ quotaUser?: string;
3678
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3679
+ upload_protocol?: string;
3680
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3681
+ uploadType?: string;
3682
+ },
3683
+ body: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
3684
+ ): Request<GoogleLongrunningOperation>;
3685
+ /** Permanently deletes all CompletionSuggestions for a DataStore. */
3686
+ purge(request: {
3687
+ /** V1 error format. */
3688
+ '$.xgafv'?: string;
3689
+ /** OAuth access token. */
3690
+ access_token?: string;
3691
+ /** Data format for response. */
3692
+ alt?: string;
3693
+ /** JSONP */
3694
+ callback?: string;
3695
+ /** Selector specifying which fields to include in a partial response. */
3696
+ fields?: string;
3697
+ /** 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. */
3698
+ key?: string;
3699
+ /** OAuth 2.0 token for the current user. */
3700
+ oauth_token?: string;
3701
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
3702
+ parent: string;
3703
+ /** Returns response with indentations and line breaks. */
3704
+ prettyPrint?: boolean;
3705
+ /** 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. */
3706
+ quotaUser?: string;
3707
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3708
+ upload_protocol?: string;
3709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3710
+ uploadType?: string;
3711
+ /** Request body */
3712
+ resource: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest;
3713
+ }): Request<GoogleLongrunningOperation>;
3714
+ purge(
3715
+ request: {
3716
+ /** V1 error format. */
3717
+ '$.xgafv'?: string;
3718
+ /** OAuth access token. */
3719
+ access_token?: string;
3720
+ /** Data format for response. */
3721
+ alt?: string;
3722
+ /** JSONP */
3723
+ callback?: string;
3724
+ /** Selector specifying which fields to include in a partial response. */
3725
+ fields?: string;
3726
+ /** 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. */
3727
+ key?: string;
3728
+ /** OAuth 2.0 token for the current user. */
3729
+ oauth_token?: string;
3730
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
3731
+ parent: string;
3732
+ /** Returns response with indentations and line breaks. */
3733
+ prettyPrint?: boolean;
3734
+ /** 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. */
3735
+ quotaUser?: string;
3736
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3737
+ upload_protocol?: string;
3738
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3739
+ uploadType?: string;
3740
+ },
3741
+ body: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
3742
+ ): Request<GoogleLongrunningOperation>;
3743
+ }
3497
3744
  interface ControlsResource {
3498
3745
  /** 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. */
3499
3746
  create(request: {
@@ -5999,6 +6246,7 @@ declare namespace gapi.client {
5999
6246
  body: GoogleCloudDiscoveryengineV1DataStore
6000
6247
  ): Request<GoogleCloudDiscoveryengineV1DataStore>;
6001
6248
  branches: BranchesResource;
6249
+ completionSuggestions: CompletionSuggestionsResource;
6002
6250
  controls: ControlsResource;
6003
6251
  conversations: ConversationsResource;
6004
6252
  models: ModelsResource;
@@ -7712,6 +7960,124 @@ declare namespace gapi.client {
7712
7960
  documents: DocumentsResource;
7713
7961
  operations: OperationsResource;
7714
7962
  }
7963
+ interface CompletionSuggestionsResource {
7964
+ /** Imports CompletionSuggestions for a DataStore. */
7965
+ import(request: {
7966
+ /** V1 error format. */
7967
+ '$.xgafv'?: string;
7968
+ /** OAuth access token. */
7969
+ access_token?: string;
7970
+ /** Data format for response. */
7971
+ alt?: string;
7972
+ /** JSONP */
7973
+ callback?: string;
7974
+ /** Selector specifying which fields to include in a partial response. */
7975
+ fields?: string;
7976
+ /** 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. */
7977
+ key?: string;
7978
+ /** OAuth 2.0 token for the current user. */
7979
+ oauth_token?: string;
7980
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
7981
+ parent: string;
7982
+ /** Returns response with indentations and line breaks. */
7983
+ prettyPrint?: boolean;
7984
+ /** 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. */
7985
+ quotaUser?: string;
7986
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7987
+ upload_protocol?: string;
7988
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7989
+ uploadType?: string;
7990
+ /** Request body */
7991
+ resource: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest;
7992
+ }): Request<GoogleLongrunningOperation>;
7993
+ import(
7994
+ request: {
7995
+ /** V1 error format. */
7996
+ '$.xgafv'?: string;
7997
+ /** OAuth access token. */
7998
+ access_token?: string;
7999
+ /** Data format for response. */
8000
+ alt?: string;
8001
+ /** JSONP */
8002
+ callback?: string;
8003
+ /** Selector specifying which fields to include in a partial response. */
8004
+ fields?: string;
8005
+ /** 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. */
8006
+ key?: string;
8007
+ /** OAuth 2.0 token for the current user. */
8008
+ oauth_token?: string;
8009
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
8010
+ parent: string;
8011
+ /** Returns response with indentations and line breaks. */
8012
+ prettyPrint?: boolean;
8013
+ /** 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. */
8014
+ quotaUser?: string;
8015
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8016
+ upload_protocol?: string;
8017
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8018
+ uploadType?: string;
8019
+ },
8020
+ body: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
8021
+ ): Request<GoogleLongrunningOperation>;
8022
+ /** Permanently deletes all CompletionSuggestions for a DataStore. */
8023
+ purge(request: {
8024
+ /** V1 error format. */
8025
+ '$.xgafv'?: string;
8026
+ /** OAuth access token. */
8027
+ access_token?: string;
8028
+ /** Data format for response. */
8029
+ alt?: string;
8030
+ /** JSONP */
8031
+ callback?: string;
8032
+ /** Selector specifying which fields to include in a partial response. */
8033
+ fields?: string;
8034
+ /** 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. */
8035
+ key?: string;
8036
+ /** OAuth 2.0 token for the current user. */
8037
+ oauth_token?: string;
8038
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
8039
+ parent: string;
8040
+ /** Returns response with indentations and line breaks. */
8041
+ prettyPrint?: boolean;
8042
+ /** 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. */
8043
+ quotaUser?: string;
8044
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8045
+ upload_protocol?: string;
8046
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8047
+ uploadType?: string;
8048
+ /** Request body */
8049
+ resource: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest;
8050
+ }): Request<GoogleLongrunningOperation>;
8051
+ purge(
8052
+ request: {
8053
+ /** V1 error format. */
8054
+ '$.xgafv'?: string;
8055
+ /** OAuth access token. */
8056
+ access_token?: string;
8057
+ /** Data format for response. */
8058
+ alt?: string;
8059
+ /** JSONP */
8060
+ callback?: string;
8061
+ /** Selector specifying which fields to include in a partial response. */
8062
+ fields?: string;
8063
+ /** 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. */
8064
+ key?: string;
8065
+ /** OAuth 2.0 token for the current user. */
8066
+ oauth_token?: string;
8067
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
8068
+ parent: string;
8069
+ /** Returns response with indentations and line breaks. */
8070
+ prettyPrint?: boolean;
8071
+ /** 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. */
8072
+ quotaUser?: string;
8073
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8074
+ upload_protocol?: string;
8075
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8076
+ uploadType?: string;
8077
+ },
8078
+ body: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
8079
+ ): Request<GoogleLongrunningOperation>;
8080
+ }
7715
8081
  interface ControlsResource {
7716
8082
  /** 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. */
7717
8083
  create(request: {
@@ -9939,6 +10305,7 @@ declare namespace gapi.client {
9939
10305
  body: GoogleCloudDiscoveryengineV1DataStore
9940
10306
  ): Request<GoogleCloudDiscoveryengineV1DataStore>;
9941
10307
  branches: BranchesResource;
10308
+ completionSuggestions: CompletionSuggestionsResource;
9942
10309
  controls: ControlsResource;
9943
10310
  conversations: ConversationsResource;
9944
10311
  models: ModelsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1",
3
- "version": "0.0.20240607",
3
+ "version": "0.0.20240617",
4
4
  "description": "TypeScript typings for Discovery Engine API v1",
5
5
  "repository": {
6
6
  "type": "git",