@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240612 → 0.0.20240621

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 +355 -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=v1alpha
12
- // Revision: 20240612
12
+ // Revision: 20240621
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -558,9 +558,9 @@ declare namespace gapi.client {
558
558
  citationThreshold?: number;
559
559
  }
560
560
  interface GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest {
561
- /** A Requirement.type specifying the requirement to check. */
561
+ /** The type specifying the requirement to check. The supported types are: * `discoveryengine.googleapis.com/media_recs/general/all/warning` * `discoveryengine.googleapis.com/media_recs/oyml/cvr/warning` * `discoveryengine.googleapis.com/media_recs/rfy/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mlt/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mp/cvr/warning` * `discoveryengine.googleapis.com/media_recs/oyml/wdps/warning` * `discoveryengine.googleapis.com/media_recs/rfy/wdps/warning` * `discoveryengine.googleapis.com/media_recs/mlt/wdps/warning` */
562
562
  requirementType?: string;
563
- /** The resources to be checked for this requirement. */
563
+ /** The type needed for the monitored resources: * `discoveryengine.googleapis.com/Branch`. * The labels needed for this resource: * `project_number` * `location_id` * `collection_id` * `datastore_id` * `branch_id` * `discoveryengine.googleapis.com/DataStore` * The labels needed for this resource: * `project_number` * `location_id` * `collection_id` * `datastore_id` */
564
564
  resources?: GoogleApiMonitoredResource[];
565
565
  }
566
566
  interface GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse {
@@ -657,6 +657,22 @@ declare namespace gapi.client {
657
657
  /** End user selected CompleteQueryResponse.QuerySuggestion.suggestion. */
658
658
  selectedSuggestion?: string;
659
659
  }
660
+ interface GoogleCloudDiscoveryengineV1alphaCompletionSuggestion {
661
+ /** Alternative matching phrases for this suggestion. */
662
+ alternativePhrases?: string[];
663
+ /** Frequency of this suggestion. Will be used to rank suggestions when score is not available. */
664
+ frequency?: string;
665
+ /** Global score of this suggestion. Control how this suggestion would be scored / ranked. */
666
+ globalScore?: number;
667
+ /** 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. */
668
+ groupId?: string;
669
+ /** The score of this suggestion within its group. */
670
+ groupScore?: number;
671
+ /** BCP-47 language code of this suggestion. */
672
+ languageCode?: string;
673
+ /** Required. The suggestion text. */
674
+ suggestion?: string;
675
+ }
660
676
  interface GoogleCloudDiscoveryengineV1alphaCondition {
661
677
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
662
678
  activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
@@ -922,7 +938,7 @@ declare namespace gapi.client {
922
938
  mimeType?: string;
923
939
  /** 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. */
924
940
  rawBytes?: string;
925
- /** 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. */
941
+ /** 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. */
926
942
  uri?: string;
927
943
  }
928
944
  interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
@@ -1200,6 +1216,36 @@ declare namespace gapi.client {
1200
1216
  /** Workforce pool name. Example: "locations/global/workforcePools/pool_id" */
1201
1217
  workforcePoolName?: string;
1202
1218
  }
1219
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata {
1220
+ /** Operation create time. */
1221
+ createTime?: string;
1222
+ /** Count of CompletionSuggestions that failed to be imported. */
1223
+ failureCount?: string;
1224
+ /** Count of CompletionSuggestions successfully imported. */
1225
+ successCount?: string;
1226
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1227
+ updateTime?: string;
1228
+ }
1229
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest {
1230
+ /** BigQuery input source. */
1231
+ bigquerySource?: GoogleCloudDiscoveryengineV1alphaBigQuerySource;
1232
+ /** The desired location of errors incurred during the Import. */
1233
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
1234
+ /** Cloud Storage location for the input content. */
1235
+ gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
1236
+ /** The Inline source for suggestion entries. */
1237
+ inlineSource?: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource;
1238
+ }
1239
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource {
1240
+ /** Required. A list of all denylist entries to import. Max of 1000 items. */
1241
+ suggestions?: GoogleCloudDiscoveryengineV1alphaCompletionSuggestion[];
1242
+ }
1243
+ interface GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse {
1244
+ /** The desired location of errors incurred during the Import. */
1245
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
1246
+ /** A sample of errors encountered while processing the request. */
1247
+ errorSamples?: GoogleRpcStatus[];
1248
+ }
1203
1249
  interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
1204
1250
  /** Operation create time. */
1205
1251
  createTime?: string;
@@ -1470,6 +1516,19 @@ declare namespace gapi.client {
1470
1516
  /** 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. */
1471
1517
  dataUseTermsVersion?: string;
1472
1518
  }
1519
+ interface GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata {
1520
+ /** Operation create time. */
1521
+ createTime?: string;
1522
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1523
+ updateTime?: string;
1524
+ }
1525
+ interface GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest {}
1526
+ interface GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse {
1527
+ /** A sample of errors encountered while processing the request. */
1528
+ errorSamples?: GoogleRpcStatus[];
1529
+ /** Whether the completion suggestions were successfully purged. */
1530
+ purgeSucceeded?: boolean;
1531
+ }
1473
1532
  interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
1474
1533
  /** Operation create time. */
1475
1534
  createTime?: string;
@@ -1676,7 +1735,7 @@ declare namespace gapi.client {
1676
1735
  metricBindings?: GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding[];
1677
1736
  /** A list of threshold bindings to be used in `condition`. */
1678
1737
  thresholdBindings?: GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding[];
1679
- /** The requirement type, used as an identifier. Must be unique. The type should prefix with service name to avoid possible collision. It's encoraged to use natural hierarchical grouping for similar requirements. Examples: * `library.googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/media_rec/recommended_for_you/conversion_rate` */
1738
+ /** The requirement type, used as an identifier. Must be unique. The type should prefix with service name to avoid possible collision. It's encouraged to use natural hierarchical grouping for similar requirements. Examples: * `library.googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/media_rec/recommended_for_you/conversion_rate` */
1680
1739
  type?: string;
1681
1740
  /** A list of the metric bindings to be used in `condition`. */
1682
1741
  violationSamplesBindings?: GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding[];
@@ -1771,8 +1830,12 @@ declare namespace gapi.client {
1771
1830
  rankingExpression?: string;
1772
1831
  /** 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. */
1773
1832
  regionCode?: string;
1833
+ /** The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. */
1834
+ relevanceThreshold?: string;
1774
1835
  /** Whether to turn on safe search. This is only supported for website search. */
1775
1836
  safeSearch?: boolean;
1837
+ /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
1838
+ searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec;
1776
1839
  /** The spell correction specification that specifies the mode under which spell correction takes effect. */
1777
1840
  spellCorrectionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
1778
1841
  /** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
@@ -1895,7 +1958,7 @@ declare namespace gapi.client {
1895
1958
  excludedFilterKeys?: string[];
1896
1959
  /** Required. The facet key specification. */
1897
1960
  facetKey?: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey;
1898
- /** 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. */
1961
+ /** 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. */
1899
1962
  limit?: number;
1900
1963
  }
1901
1964
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey {
@@ -1924,6 +1987,10 @@ declare namespace gapi.client {
1924
1987
  /** 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. */
1925
1988
  pinUnexpandedResults?: boolean;
1926
1989
  }
1990
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec {
1991
+ /** The condition under which search as you type should occur. Default to Condition.DISABLED. */
1992
+ condition?: string;
1993
+ }
1927
1994
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec {
1928
1995
  /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
1929
1996
  mode?: string;
@@ -2595,6 +2662,22 @@ declare namespace gapi.client {
2595
2662
  /** 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. */
2596
2663
  searchTier?: string;
2597
2664
  }
2665
+ interface GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata {
2666
+ /** Operation create time. */
2667
+ createTime?: string;
2668
+ /** Count of CompletionSuggestions that failed to be imported. */
2669
+ failureCount?: string;
2670
+ /** Count of CompletionSuggestions successfully imported. */
2671
+ successCount?: string;
2672
+ /** Operation last update time. If the operation is done, this is also the finish time. */
2673
+ updateTime?: string;
2674
+ }
2675
+ interface GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse {
2676
+ /** The desired location of errors incurred during the Import. */
2677
+ errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
2678
+ /** A sample of errors encountered while processing the request. */
2679
+ errorSamples?: GoogleRpcStatus[];
2680
+ }
2598
2681
  interface GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata {
2599
2682
  /** Operation create time. */
2600
2683
  createTime?: string;
@@ -3035,6 +3118,22 @@ declare namespace gapi.client {
3035
3118
  /** 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. */
3036
3119
  searchTier?: string;
3037
3120
  }
3121
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata {
3122
+ /** Operation create time. */
3123
+ createTime?: string;
3124
+ /** Count of CompletionSuggestions that failed to be imported. */
3125
+ failureCount?: string;
3126
+ /** Count of CompletionSuggestions successfully imported. */
3127
+ successCount?: string;
3128
+ /** Operation last update time. If the operation is done, this is also the finish time. */
3129
+ updateTime?: string;
3130
+ }
3131
+ interface GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse {
3132
+ /** The desired location of errors incurred during the Import. */
3133
+ errorConfig?: GoogleCloudDiscoveryengineV1ImportErrorConfig;
3134
+ /** A sample of errors encountered while processing the request. */
3135
+ errorSamples?: GoogleRpcStatus[];
3136
+ }
3038
3137
  interface GoogleCloudDiscoveryengineV1ImportDocumentsMetadata {
3039
3138
  /** Operation create time. */
3040
3139
  createTime?: string;
@@ -3116,6 +3215,18 @@ declare namespace gapi.client {
3116
3215
  version?: string;
3117
3216
  }
3118
3217
  interface GoogleCloudDiscoveryengineV1ProvisionProjectMetadata {}
3218
+ interface GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata {
3219
+ /** Operation create time. */
3220
+ createTime?: string;
3221
+ /** Operation last update time. If the operation is done, this is also the finish time. */
3222
+ updateTime?: string;
3223
+ }
3224
+ interface GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse {
3225
+ /** A sample of errors encountered while processing the request. */
3226
+ errorSamples?: GoogleRpcStatus[];
3227
+ /** Whether the completion suggestions were successfully purged. */
3228
+ purgeSucceeded?: boolean;
3229
+ }
3119
3230
  interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
3120
3231
  /** Operation create time. */
3121
3232
  createTime?: string;
@@ -3872,6 +3983,124 @@ declare namespace gapi.client {
3872
3983
  documents: DocumentsResource;
3873
3984
  operations: OperationsResource;
3874
3985
  }
3986
+ interface CompletionSuggestionsResource {
3987
+ /** Imports CompletionSuggestions for a DataStore. */
3988
+ import(request: {
3989
+ /** V1 error format. */
3990
+ '$.xgafv'?: string;
3991
+ /** OAuth access token. */
3992
+ access_token?: string;
3993
+ /** Data format for response. */
3994
+ alt?: string;
3995
+ /** JSONP */
3996
+ callback?: string;
3997
+ /** Selector specifying which fields to include in a partial response. */
3998
+ fields?: string;
3999
+ /** 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. */
4000
+ key?: string;
4001
+ /** OAuth 2.0 token for the current user. */
4002
+ oauth_token?: string;
4003
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
4004
+ parent: string;
4005
+ /** Returns response with indentations and line breaks. */
4006
+ prettyPrint?: boolean;
4007
+ /** 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. */
4008
+ quotaUser?: string;
4009
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4010
+ upload_protocol?: string;
4011
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4012
+ uploadType?: string;
4013
+ /** Request body */
4014
+ resource: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest;
4015
+ }): Request<GoogleLongrunningOperation>;
4016
+ import(
4017
+ request: {
4018
+ /** V1 error format. */
4019
+ '$.xgafv'?: string;
4020
+ /** OAuth access token. */
4021
+ access_token?: string;
4022
+ /** Data format for response. */
4023
+ alt?: string;
4024
+ /** JSONP */
4025
+ callback?: string;
4026
+ /** Selector specifying which fields to include in a partial response. */
4027
+ fields?: string;
4028
+ /** 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. */
4029
+ key?: string;
4030
+ /** OAuth 2.0 token for the current user. */
4031
+ oauth_token?: string;
4032
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
4033
+ parent: string;
4034
+ /** Returns response with indentations and line breaks. */
4035
+ prettyPrint?: boolean;
4036
+ /** 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. */
4037
+ quotaUser?: string;
4038
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4039
+ upload_protocol?: string;
4040
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4041
+ uploadType?: string;
4042
+ },
4043
+ body: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest
4044
+ ): Request<GoogleLongrunningOperation>;
4045
+ /** Permanently deletes all CompletionSuggestions for a DataStore. */
4046
+ purge(request: {
4047
+ /** V1 error format. */
4048
+ '$.xgafv'?: string;
4049
+ /** OAuth access token. */
4050
+ access_token?: string;
4051
+ /** Data format for response. */
4052
+ alt?: string;
4053
+ /** JSONP */
4054
+ callback?: string;
4055
+ /** Selector specifying which fields to include in a partial response. */
4056
+ fields?: string;
4057
+ /** 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. */
4058
+ key?: string;
4059
+ /** OAuth 2.0 token for the current user. */
4060
+ oauth_token?: string;
4061
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
4062
+ parent: string;
4063
+ /** Returns response with indentations and line breaks. */
4064
+ prettyPrint?: boolean;
4065
+ /** 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. */
4066
+ quotaUser?: string;
4067
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4068
+ upload_protocol?: string;
4069
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4070
+ uploadType?: string;
4071
+ /** Request body */
4072
+ resource: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest;
4073
+ }): Request<GoogleLongrunningOperation>;
4074
+ purge(
4075
+ request: {
4076
+ /** V1 error format. */
4077
+ '$.xgafv'?: string;
4078
+ /** OAuth access token. */
4079
+ access_token?: string;
4080
+ /** Data format for response. */
4081
+ alt?: string;
4082
+ /** JSONP */
4083
+ callback?: string;
4084
+ /** Selector specifying which fields to include in a partial response. */
4085
+ fields?: string;
4086
+ /** 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. */
4087
+ key?: string;
4088
+ /** OAuth 2.0 token for the current user. */
4089
+ oauth_token?: string;
4090
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
4091
+ parent: string;
4092
+ /** Returns response with indentations and line breaks. */
4093
+ prettyPrint?: boolean;
4094
+ /** 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. */
4095
+ quotaUser?: string;
4096
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4097
+ upload_protocol?: string;
4098
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4099
+ uploadType?: string;
4100
+ },
4101
+ body: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest
4102
+ ): Request<GoogleLongrunningOperation>;
4103
+ }
3875
4104
  interface ControlsResource {
3876
4105
  /** 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. */
3877
4106
  create(request: {
@@ -6731,6 +6960,7 @@ declare namespace gapi.client {
6731
6960
  body: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
6732
6961
  ): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
6733
6962
  branches: BranchesResource;
6963
+ completionSuggestions: CompletionSuggestionsResource;
6734
6964
  controls: ControlsResource;
6735
6965
  conversations: ConversationsResource;
6736
6966
  customModels: CustomModelsResource;
@@ -8831,6 +9061,124 @@ declare namespace gapi.client {
8831
9061
  documents: DocumentsResource;
8832
9062
  operations: OperationsResource;
8833
9063
  }
9064
+ interface CompletionSuggestionsResource {
9065
+ /** Imports CompletionSuggestions for a DataStore. */
9066
+ import(request: {
9067
+ /** V1 error format. */
9068
+ '$.xgafv'?: string;
9069
+ /** OAuth access token. */
9070
+ access_token?: string;
9071
+ /** Data format for response. */
9072
+ alt?: string;
9073
+ /** JSONP */
9074
+ callback?: string;
9075
+ /** Selector specifying which fields to include in a partial response. */
9076
+ fields?: string;
9077
+ /** 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. */
9078
+ key?: string;
9079
+ /** OAuth 2.0 token for the current user. */
9080
+ oauth_token?: string;
9081
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
9082
+ parent: string;
9083
+ /** Returns response with indentations and line breaks. */
9084
+ prettyPrint?: boolean;
9085
+ /** 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. */
9086
+ quotaUser?: string;
9087
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9088
+ upload_protocol?: string;
9089
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9090
+ uploadType?: string;
9091
+ /** Request body */
9092
+ resource: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest;
9093
+ }): Request<GoogleLongrunningOperation>;
9094
+ import(
9095
+ request: {
9096
+ /** V1 error format. */
9097
+ '$.xgafv'?: string;
9098
+ /** OAuth access token. */
9099
+ access_token?: string;
9100
+ /** Data format for response. */
9101
+ alt?: string;
9102
+ /** JSONP */
9103
+ callback?: string;
9104
+ /** Selector specifying which fields to include in a partial response. */
9105
+ fields?: string;
9106
+ /** 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. */
9107
+ key?: string;
9108
+ /** OAuth 2.0 token for the current user. */
9109
+ oauth_token?: string;
9110
+ /** Required. The parent data store resource name for which to import customer autocomplete suggestions. Follows pattern `projects/*‍/locations/*‍/collections/*‍/dataStores/*` */
9111
+ parent: string;
9112
+ /** Returns response with indentations and line breaks. */
9113
+ prettyPrint?: boolean;
9114
+ /** 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. */
9115
+ quotaUser?: string;
9116
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9117
+ upload_protocol?: string;
9118
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9119
+ uploadType?: string;
9120
+ },
9121
+ body: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest
9122
+ ): Request<GoogleLongrunningOperation>;
9123
+ /** Permanently deletes all CompletionSuggestions for a DataStore. */
9124
+ purge(request: {
9125
+ /** V1 error format. */
9126
+ '$.xgafv'?: string;
9127
+ /** OAuth access token. */
9128
+ access_token?: string;
9129
+ /** Data format for response. */
9130
+ alt?: string;
9131
+ /** JSONP */
9132
+ callback?: string;
9133
+ /** Selector specifying which fields to include in a partial response. */
9134
+ fields?: string;
9135
+ /** 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. */
9136
+ key?: string;
9137
+ /** OAuth 2.0 token for the current user. */
9138
+ oauth_token?: string;
9139
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
9140
+ parent: string;
9141
+ /** Returns response with indentations and line breaks. */
9142
+ prettyPrint?: boolean;
9143
+ /** 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. */
9144
+ quotaUser?: string;
9145
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9146
+ upload_protocol?: string;
9147
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9148
+ uploadType?: string;
9149
+ /** Request body */
9150
+ resource: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest;
9151
+ }): Request<GoogleLongrunningOperation>;
9152
+ purge(
9153
+ request: {
9154
+ /** V1 error format. */
9155
+ '$.xgafv'?: string;
9156
+ /** OAuth access token. */
9157
+ access_token?: string;
9158
+ /** Data format for response. */
9159
+ alt?: string;
9160
+ /** JSONP */
9161
+ callback?: string;
9162
+ /** Selector specifying which fields to include in a partial response. */
9163
+ fields?: string;
9164
+ /** 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. */
9165
+ key?: string;
9166
+ /** OAuth 2.0 token for the current user. */
9167
+ oauth_token?: string;
9168
+ /** Required. The parent data store resource name for which to purge completion suggestions. Follows pattern projects/*‍/locations/*‍/collections/*‍/dataStores/*. */
9169
+ parent: string;
9170
+ /** Returns response with indentations and line breaks. */
9171
+ prettyPrint?: boolean;
9172
+ /** 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. */
9173
+ quotaUser?: string;
9174
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9175
+ upload_protocol?: string;
9176
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9177
+ uploadType?: string;
9178
+ },
9179
+ body: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest
9180
+ ): Request<GoogleLongrunningOperation>;
9181
+ }
8834
9182
  interface ControlsResource {
8835
9183
  /** 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. */
8836
9184
  create(request: {
@@ -11325,6 +11673,7 @@ declare namespace gapi.client {
11325
11673
  body: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
11326
11674
  ): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
11327
11675
  branches: BranchesResource;
11676
+ completionSuggestions: CompletionSuggestionsResource;
11328
11677
  controls: ControlsResource;
11329
11678
  conversations: ConversationsResource;
11330
11679
  models: ModelsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240612",
3
+ "version": "0.0.20240621",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",