@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250207 → 0.0.20250214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +802 -36
  2. package/package.json +1 -1
  3. package/readme.md +8 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20250207
12
+ // Revision: 20250214
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,6 +28,208 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace discoveryengine {
31
+ interface ApiservingMediaRequestInfo {
32
+ /** The number of current bytes uploaded or downloaded. */
33
+ currentBytes?: string;
34
+ /** Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications. */
35
+ customData?: string;
36
+ /** Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information. */
37
+ diffObjectVersion?: string;
38
+ /** The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929 */
39
+ finalStatus?: number;
40
+ /** The type of notification received from Scotty. */
41
+ notificationType?: string;
42
+ /** The Scotty request ID. */
43
+ requestId?: string;
44
+ /** The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange() */
45
+ requestReceivedParamsServingInfo?: string;
46
+ /** The total size of the file. */
47
+ totalBytes?: string;
48
+ /** Whether the total bytes field contains an estimated data. */
49
+ totalBytesIsEstimated?: boolean;
50
+ }
51
+ interface ApiservingMediaResponseInfo {
52
+ /** Data to copy from backend response to the next backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications. */
53
+ customData?: string;
54
+ /** Specifies any transformation to be applied to data before persisting it or retrieving from storage. E.g., encryption options for blobstore2. This should be of the form uploader_service.DataStorageTransform. */
55
+ dataStorageTransform?: string;
56
+ /** Specifies the Scotty Drop Target to use for uploads. If present in a media response, Scotty does not upload to a standard drop zone. Instead, Scotty saves the upload directly to the location specified in this drop target. Unlike drop zones, the drop target is the final storage location for an upload. So, the agent does not need to clone the blob at the end of the upload. The agent is responsible for garbage collecting any orphaned blobs that may occur due to aborted uploads. For more information, see the drop target design doc here: http://goto/ScottyDropTarget This field will be preferred to dynamicDropzone. If provided, the identified field in the response must be of the type uploader.agent.DropTarget. */
57
+ dynamicDropTarget?: string;
58
+ /** Specifies the Scotty dropzone to use for uploads. */
59
+ dynamicDropzone?: string;
60
+ /** Diff Updates must respond to a START notification with this Media proto to tell Scotty to decode the diff encoded payload and apply the diff against this field. If the request was diff encoded, but this field is not set, Scotty will treat the encoding as identity. This is corresponding to Apiary's DiffUploadResponse.original_object (//depot/google3/gdata/rosy/proto/data.proto?l=413). See go/esf-scotty-diff-upload for more information. */
61
+ mediaForDiff?: GdataMedia;
62
+ /** Request class to use for all Blobstore operations for this request. */
63
+ requestClass?: string;
64
+ /** Requester ID passed along to be recorded in the Scotty logs */
65
+ scottyAgentUserId?: string;
66
+ /** Customer-specific data to be recorded in the Scotty logs type is logs_proto_scotty.CustomerLog */
67
+ scottyCustomerLog?: string;
68
+ /** Specifies the TrafficClass that Scotty should use for any RPCs to fetch the response bytes. Will override the traffic class GTOS of the incoming http request. This is a temporary field to facilitate whitelisting and experimentation by the bigstore agent only. For instance, this does not apply to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM. */
69
+ trafficClassField?: string;
70
+ /** Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog-Hash header. */
71
+ verifyHashFromHeader?: boolean;
72
+ }
73
+ interface GdataBlobstore2Info {
74
+ /** The blob generation id. */
75
+ blobGeneration?: string;
76
+ /** The blob id, e.g., /blobstore/prod/playground/scotty */
77
+ blobId?: string;
78
+ /** Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads. */
79
+ downloadReadHandle?: string;
80
+ /** The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call. */
81
+ readToken?: string;
82
+ /** Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. */
83
+ uploadMetadataContainer?: string;
84
+ }
85
+ interface GdataCompositeMedia {
86
+ /** Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. */
87
+ blobRef?: string;
88
+ /** Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. */
89
+ blobstore2Info?: GdataBlobstore2Info;
90
+ /** A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field. */
91
+ cosmoBinaryReference?: string;
92
+ /** crc32.c hash for the payload. */
93
+ crc32cHash?: number;
94
+ /** Media data, set if reference_type is INLINE */
95
+ inline?: string;
96
+ /** Size of the data, in bytes */
97
+ length?: string;
98
+ /** MD5 hash for the payload. */
99
+ md5Hash?: string;
100
+ /** Reference to a TI Blob, set if reference_type is BIGSTORE_REF. */
101
+ objectId?: GdataObjectId;
102
+ /** Path to the data, set if reference_type is PATH */
103
+ path?: string;
104
+ /** Describes what the field reference contains. */
105
+ referenceType?: string;
106
+ /** SHA-1 hash for the payload. */
107
+ sha1Hash?: string;
108
+ }
109
+ interface GdataContentTypeInfo {
110
+ /** Scotty's best guess of what the content type of the file is. */
111
+ bestGuess?: string;
112
+ /** The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file. */
113
+ fromBytes?: string;
114
+ /** The content type of the file derived from the file extension of the original file name used by the client. */
115
+ fromFileName?: string;
116
+ /** The content type of the file as specified in the request headers, multipart headers, or RUPIO start request. */
117
+ fromHeader?: string;
118
+ /** The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API). */
119
+ fromUrlPath?: string;
120
+ }
121
+ interface GdataDiffChecksumsResponse {
122
+ /** Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol. */
123
+ checksumsLocation?: GdataCompositeMedia;
124
+ /** The chunk size of checksums. Must be a multiple of 256KB. */
125
+ chunkSizeBytes?: string;
126
+ /** If set, calculate the checksums based on the contents and return them to the caller. */
127
+ objectLocation?: GdataCompositeMedia;
128
+ /** The total size of the server object. */
129
+ objectSizeBytes?: string;
130
+ /** The object version of the object the checksums are being returned for. */
131
+ objectVersion?: string;
132
+ }
133
+ interface GdataDiffDownloadResponse {
134
+ /** The original object location. */
135
+ objectLocation?: GdataCompositeMedia;
136
+ }
137
+ interface GdataDiffUploadRequest {
138
+ /** The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol. */
139
+ checksumsInfo?: GdataCompositeMedia;
140
+ /** The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. */
141
+ objectInfo?: GdataCompositeMedia;
142
+ /** The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in. */
143
+ objectVersion?: string;
144
+ }
145
+ interface GdataDiffUploadResponse {
146
+ /** The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload. */
147
+ objectVersion?: string;
148
+ /** The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification. */
149
+ originalObject?: GdataCompositeMedia;
150
+ }
151
+ interface GdataDiffVersionResponse {
152
+ /** The total size of the server object. */
153
+ objectSizeBytes?: string;
154
+ /** The version of the object stored at the server. */
155
+ objectVersion?: string;
156
+ }
157
+ interface GdataDownloadParameters {
158
+ /** A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client. */
159
+ allowGzipCompression?: boolean;
160
+ /** Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty. */
161
+ ignoreRange?: boolean;
162
+ }
163
+ interface GdataMedia {
164
+ /** Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time. */
165
+ algorithm?: string;
166
+ /** Use object_id instead. */
167
+ bigstoreObjectRef?: string;
168
+ /** Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. */
169
+ blobRef?: string;
170
+ /** Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. */
171
+ blobstore2Info?: GdataBlobstore2Info;
172
+ /** A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified. */
173
+ compositeMedia?: GdataCompositeMedia[];
174
+ /** MIME type of the data */
175
+ contentType?: string;
176
+ /** Extended content type information provided for Scotty uploads. */
177
+ contentTypeInfo?: GdataContentTypeInfo;
178
+ /** A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field. */
179
+ cosmoBinaryReference?: string;
180
+ /** For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported. */
181
+ crc32cHash?: number;
182
+ /** Set if reference_type is DIFF_CHECKSUMS_RESPONSE. */
183
+ diffChecksumsResponse?: GdataDiffChecksumsResponse;
184
+ /** Set if reference_type is DIFF_DOWNLOAD_RESPONSE. */
185
+ diffDownloadResponse?: GdataDiffDownloadResponse;
186
+ /** Set if reference_type is DIFF_UPLOAD_REQUEST. */
187
+ diffUploadRequest?: GdataDiffUploadRequest;
188
+ /** Set if reference_type is DIFF_UPLOAD_RESPONSE. */
189
+ diffUploadResponse?: GdataDiffUploadResponse;
190
+ /** Set if reference_type is DIFF_VERSION_RESPONSE. */
191
+ diffVersionResponse?: GdataDiffVersionResponse;
192
+ /** Parameters for a media download. */
193
+ downloadParameters?: GdataDownloadParameters;
194
+ /** Original file name */
195
+ filename?: string;
196
+ /** Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media. */
197
+ hash?: string;
198
+ /** For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification. */
199
+ hashVerified?: boolean;
200
+ /** Media data, set if reference_type is INLINE */
201
+ inline?: string;
202
+ /** |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence. */
203
+ isPotentialRetry?: boolean;
204
+ /** Size of the data, in bytes */
205
+ length?: string;
206
+ /** Scotty-provided MD5 hash for an upload. */
207
+ md5Hash?: string;
208
+ /** Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. */
209
+ mediaId?: string;
210
+ /** Reference to a TI Blob, set if reference_type is BIGSTORE_REF. */
211
+ objectId?: GdataObjectId;
212
+ /** Path to the data, set if reference_type is PATH */
213
+ path?: string;
214
+ /** Describes what the field reference contains. */
215
+ referenceType?: string;
216
+ /** Scotty-provided SHA1 hash for an upload. */
217
+ sha1Hash?: string;
218
+ /** Scotty-provided SHA256 hash for an upload. */
219
+ sha256Hash?: string;
220
+ /** Time at which the media data was last updated, in milliseconds since UNIX epoch */
221
+ timestamp?: string;
222
+ /** A unique fingerprint/version id for the media data */
223
+ token?: string;
224
+ }
225
+ interface GdataObjectId {
226
+ /** The name of the bucket to which this object belongs. */
227
+ bucketName?: string;
228
+ /** Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions */
229
+ generation?: string;
230
+ /** The name of the object. */
231
+ objectName?: string;
232
+ }
31
233
  interface GoogleApiDistribution {
32
234
  /** The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1). */
33
235
  bucketCounts?: string[];
@@ -183,7 +385,7 @@ declare namespace gapi.client {
183
385
  includeTailSuggestions?: boolean;
184
386
  /** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT` error is returned. The exception is when the suggestion_types contains only the type `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which returns user's recently searched queries given the empty query. */
185
387
  query?: string;
186
- /** Specifies the autocomplete data model. This overrides any model specified in the Configuration > Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. */
388
+ /** Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. This overrides any model specified in the Configuration > Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. */
187
389
  queryModel?: string;
188
390
  /** Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned. Only one suggestion type is supported at the moment. */
189
391
  suggestionTypes?: string[];
@@ -307,11 +509,11 @@ declare namespace gapi.client {
307
509
  steps?: GoogleCloudDiscoveryengineV1alphaAnswerStep[];
308
510
  }
309
511
  interface GoogleCloudDiscoveryengineV1alphaAnswerCitation {
310
- /** End of the attributed segment, exclusive. */
512
+ /** End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length. */
311
513
  endIndex?: string;
312
514
  /** Citation sources for the attributed segment. */
313
515
  sources?: GoogleCloudDiscoveryengineV1alphaAnswerCitationSource[];
314
- /** Index indicates the start of the segment, measured in bytes (UTF-8 unicode). */
516
+ /** Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length. */
315
517
  startIndex?: string;
316
518
  }
317
519
  interface GoogleCloudDiscoveryengineV1alphaAnswerCitationSource {
@@ -577,6 +779,10 @@ declare namespace gapi.client {
577
779
  document?: string;
578
780
  /** Structured search data. */
579
781
  structData?: {[P in string]: any};
782
+ /** Output only. The title of the document. */
783
+ title?: string;
784
+ /** Output only. The URI of the document. */
785
+ uri?: string;
580
786
  }
581
787
  interface GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo {
582
788
  /** List of cited chunk contents derived from document content. */
@@ -862,17 +1068,17 @@ declare namespace gapi.client {
862
1068
  interface GoogleCloudDiscoveryengineV1alphaCmekConfig {
863
1069
  /** Output only. The default CmekConfig for the Customer. */
864
1070
  isDefault?: boolean;
865
- /** Kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
1071
+ /** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
866
1072
  kmsKey?: string;
867
- /** Kms key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
1073
+ /** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
868
1074
  kmsKeyVersion?: string;
869
1075
  /** Output only. The timestamp of the last key rotation. */
870
1076
  lastRotationTimestampMicros?: string;
871
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
1077
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
872
1078
  name?: string;
873
1079
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
874
1080
  singleRegionKeys?: GoogleCloudDiscoveryengineV1alphaSingleRegionKey[];
875
- /** Output only. State of the CmekConfig. */
1081
+ /** Output only. The states of the CmekConfig. */
876
1082
  state?: string;
877
1083
  }
878
1084
  interface GoogleCloudDiscoveryengineV1alphaCollection {
@@ -960,6 +1166,8 @@ declare namespace gapi.client {
960
1166
  trigger?: string;
961
1167
  }
962
1168
  interface GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun {
1169
+ /** The number of documents deleted. */
1170
+ deletedRecordCount?: string;
963
1171
  /** The name of the source entity. */
964
1172
  entityName?: string;
965
1173
  /** The total number of documents failed at sync at any stage (extraction, indexing, etc). */
@@ -1231,10 +1439,14 @@ declare namespace gapi.client {
1231
1439
  dataStore?: string;
1232
1440
  /** The name of the entity. Supported values by data source: * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`, `Contract`, `Campaign` * Jira: `Issue` * Confluence: `Content`, `Space` */
1233
1441
  entityName?: string;
1442
+ /** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
1443
+ healthcareFhirConfig?: GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig;
1234
1444
  /** Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as `title`, and `description`. Supported key properties: * `title`: The title for data record. This would be displayed on search results. * `description`: The description for data record. This would be displayed on search results. */
1235
1445
  keyPropertyMappings?: {[P in string]: string};
1236
1446
  /** The parameters for the entity to facilitate data ingestion. E.g. for BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The value of the column ID. */
1237
1447
  params?: {[P in string]: any};
1448
+ /** Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used. This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
1449
+ startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
1238
1450
  }
1239
1451
  interface GoogleCloudDiscoveryengineV1alphaDataStore {
1240
1452
  /** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
@@ -1249,7 +1461,7 @@ declare namespace gapi.client {
1249
1461
  contentConfig?: string;
1250
1462
  /** Output only. Timestamp the DataStore was created at. */
1251
1463
  createTime?: string;
1252
- /** Output only. The id of the default Schema asscociated to this data store. */
1464
+ /** Output only. The id of the default Schema associated to this data store. */
1253
1465
  defaultSchemaId?: string;
1254
1466
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
1255
1467
  displayName?: string;
@@ -1257,6 +1469,8 @@ declare namespace gapi.client {
1257
1469
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
1258
1470
  /** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
1259
1471
  healthcareFhirConfig?: GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig;
1472
+ /** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
1473
+ identityMappingStore?: string;
1260
1474
  /** Output only. Data store level identity provider config. */
1261
1475
  idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
1262
1476
  /** Immutable. The industry vertical that the data store registers. */
@@ -2592,7 +2806,7 @@ declare namespace gapi.client {
2592
2806
  validUrisCount?: number;
2593
2807
  }
2594
2808
  interface GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest {
2595
- /** Optional. Full resource name of the `SiteCredential`, such as `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/siteSearchEngine/siteCredentials/*`. Only set to crawl private URIs. */
2809
+ /** Optional. Credential id to use for crawling. */
2596
2810
  siteCredential?: string;
2597
2811
  /** Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in `site_search_engine`. */
2598
2812
  uris?: string[];
@@ -2631,6 +2845,19 @@ declare namespace gapi.client {
2631
2845
  /** Output only. The state of the response. */
2632
2846
  state?: string;
2633
2847
  }
2848
+ interface GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest {
2849
+ /** Remove all search history suggestions for the user. */
2850
+ removeAllSearchHistorySuggestions?: boolean;
2851
+ /** Optional. Time at which the suggestion was removed. If not set, the current time will be used. */
2852
+ removeTime?: string;
2853
+ /** The search history suggestion to be removed. */
2854
+ searchHistorySuggestion?: string;
2855
+ /** Optional. Information about the end user. This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info. */
2856
+ userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
2857
+ /** Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded string with a length limit of 128. */
2858
+ userPseudoId?: string;
2859
+ }
2860
+ interface GoogleCloudDiscoveryengineV1alphaRemoveSuggestionResponse {}
2634
2861
  interface GoogleCloudDiscoveryengineV1alphaReply {
2635
2862
  /** References in the reply. */
2636
2863
  references?: GoogleCloudDiscoveryengineV1alphaReplyReference[];
@@ -2799,6 +3026,8 @@ declare namespace gapi.client {
2799
3026
  customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
2800
3027
  /** Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
2801
3028
  dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
3029
+ /** Optional. Config for display feature, like match highlighting on search results. */
3030
+ displaySpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestDisplaySpec;
2802
3031
  /** Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path. */
2803
3032
  embeddingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec;
2804
3033
  /** Facet specifications for faceted search. If empty, no facets are returned. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. */
@@ -2829,8 +3058,10 @@ declare namespace gapi.client {
2829
3058
  query?: string;
2830
3059
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
2831
3060
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
2832
- /** 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)`. */
3061
+ /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to BYOE. === BYOE === If ranking expression is not provided or set to BYOE, it should be 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)`. === CLEARBOX === If ranking expression is set to CLEARBOX, the following expression types (and combinations of those chained using + or * operators) are supported: * double * signal * log(signal) * exp(signal) * rr(signal, double > 0) -- reciprocal rank transformation with second argument being a denominator constant. * is_nan(signal) -- returns 0 if signal is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 * gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32) The following signals are supported: * gecko_score -- semantic similarity adjustment * bm25_score -- keyword match adjustment * jetstream_score -- semantic relevance adjustment * pctr_rank -- predicted conversion rate adjustment as a rank * freshness_rank -- freshness adjustment as a rank * base_rank -- the default rank of the result */
2833
3062
  rankingExpression?: string;
3063
+ /** Optional. The backend to use for the ranking expression evaluation. */
3064
+ rankingExpressionBackend?: string;
2834
3065
  /** 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. */
2835
3066
  regionCode?: string;
2836
3067
  /** 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. */
@@ -2958,6 +3189,10 @@ declare namespace gapi.client {
2958
3189
  /** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
2959
3190
  filter?: string;
2960
3191
  }
3192
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestDisplaySpec {
3193
+ /** The condition under which match highlighting should occur. */
3194
+ matchHighlightingCondition?: string;
3195
+ }
2961
3196
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
2962
3197
  /** The embedding vector used for retrieval. Limit to 1. */
2963
3198
  embeddingVectors?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector[];
@@ -3021,7 +3256,7 @@ declare namespace gapi.client {
3021
3256
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec {
3022
3257
  /** 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. */
3023
3258
  queryId?: string;
3024
- /** 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. */
3259
+ /** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is similar 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. */
3025
3260
  searchResultPersistenceCount?: number;
3026
3261
  }
3027
3262
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec {
@@ -3617,6 +3852,208 @@ declare namespace gapi.client {
3617
3852
  /** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
3618
3853
  userId?: string;
3619
3854
  }
3855
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfig {
3856
+ /** Will be used for all widget access settings seen in cloud console integration page. Replaces top deprecated top level properties. */
3857
+ accessSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigAccessSettings;
3858
+ /** Allowlisted domains that can load this widget. */
3859
+ allowlistedDomains?: string[];
3860
+ /** Whether allow no-auth integration with widget. If set true, public access to search or other solutions from widget is allowed without authenication token provided by customer hosted backend server. */
3861
+ allowPublicAccess?: boolean;
3862
+ /** Optional. Output only. Describes the assistant settings of the widget. */
3863
+ assistantSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings;
3864
+ /** Output only. Collection components that lists all collections and child data stores associated with the widget config, those data sources can be used for filtering in widget service APIs, users can return results that from selected data sources. */
3865
+ collectionComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
3866
+ /** Output only. Unique obfuscated identifier of a WidgetConfig. */
3867
+ configId?: string;
3868
+ /** The content search spec that configs the desired behavior of content search. */
3869
+ contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
3870
+ /** Output only. Timestamp the WidgetConfig was created. */
3871
+ createTime?: string;
3872
+ /** Output only. The type of the parent data store. */
3873
+ dataStoreType?: string;
3874
+ /** Configurable UI configurations per data store. */
3875
+ dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
3876
+ /** The default ordering for search results if specified. Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body */
3877
+ defaultSearchRequestOrderBy?: string;
3878
+ /** Required. The human readable widget config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
3879
+ displayName?: string;
3880
+ /** Whether or not to enable autocomplete. */
3881
+ enableAutocomplete?: boolean;
3882
+ /** Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn). */
3883
+ enableConversationalSearch?: boolean;
3884
+ /** Turn on or off collecting the search result quality feedback from end users. */
3885
+ enableQualityFeedback?: boolean;
3886
+ /** Whether to show the result score. */
3887
+ enableResultScore?: boolean;
3888
+ /** Whether to enable safe search. */
3889
+ enableSafeSearch?: boolean;
3890
+ /** Whether to enable search-as-you-type behavior for the search widget */
3891
+ enableSearchAsYouType?: boolean;
3892
+ /** Turn on or off summary for each snippets result. */
3893
+ enableSnippetResultSummary?: boolean;
3894
+ /** Turn on or off summarization for the search response. */
3895
+ enableSummarization?: boolean;
3896
+ /** Whether to enable standalone web app. */
3897
+ enableWebApp?: boolean;
3898
+ /** Allows to toggle unstable/experimental features in the widget (or web app) */
3899
+ experimentalFeatures?: {[P in string]: string};
3900
+ /** The configuration and appearance of facets in the end user view. */
3901
+ facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
3902
+ /** The key is the UI component. Mock. Currently supported `title`, `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed. */
3903
+ fieldsUiComponentsMap?: {
3904
+ [P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
3905
+ };
3906
+ /** Optional. Describes the homepage settings of the widget. */
3907
+ homepageSetting?: GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSetting;
3908
+ /** Output only. The industry vertical that the WidgetConfig registers. The WidgetConfig industry vertical is based on the associated Engine. */
3909
+ industryVertical?: string;
3910
+ /** Output only. Whether LLM is enabled in the corresponding data store. */
3911
+ llmEnabled?: boolean;
3912
+ /** Output only. Whether the customer accepted data use terms. */
3913
+ minimumDataTermAccepted?: boolean;
3914
+ /** Immutable. The full resource name of the widget config. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
3915
+ name?: string;
3916
+ /** The type of snippet to display in UCS widget. - RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new non-enterprise search users. - EXTRACTIVE_ANSWER for new enterprise search users. */
3917
+ resultDisplayType?: string;
3918
+ /** Required. Immutable. Specifies the solution type that this WidgetConfig can be used for. */
3919
+ solutionType?: string;
3920
+ /** Describes search widget UI branding settings, such as the widget title, logo, favicons, and colors. */
3921
+ uiBranding?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiBrandingSettings;
3922
+ /** Describes general widget search settings as seen in cloud console widget configuration page. Replaces top deprecated top level properties. */
3923
+ uiSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings;
3924
+ /** Output only. Timestamp the WidgetConfig was updated. */
3925
+ updateTime?: string;
3926
+ }
3927
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAccessSettings {
3928
+ /** List of domains that are allowed to integrate the search widget. */
3929
+ allowlistedDomains?: string[];
3930
+ /** Whether public unauthenticated access is allowed. */
3931
+ allowPublicAccess?: boolean;
3932
+ /** Whether web app access is enabled. */
3933
+ enableWebApp?: boolean;
3934
+ }
3935
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
3936
+ /** Whether or not the Google search grounding toggle is shown. */
3937
+ googleSearchGroundingEnabled?: boolean;
3938
+ }
3939
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
3940
+ /** Output only. The icon link of the connector source. */
3941
+ connectorIconLink?: string;
3942
+ /** The name of the data source, retrieved from `Collection.data_connector.data_source`. */
3943
+ dataSource?: string;
3944
+ /** For the data store collection, list of the children data stores. */
3945
+ dataStoreComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
3946
+ /** The display name of the collection. */
3947
+ displayName?: string;
3948
+ /** Output only. the identifier of the collection, used for widget service. For now it refers to collection_id, in the future we will migrate the field to encrypted collection name UUID. */
3949
+ id?: string;
3950
+ /** The name of the collection. It should be collection resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
3951
+ name?: string;
3952
+ }
3953
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
3954
+ /** Output only. The content config of the data store. */
3955
+ contentConfig?: string;
3956
+ /** The display name of the data store. */
3957
+ displayName?: string;
3958
+ /** The name of the entity, retrieved from `Collection.data_connector.entities.entityName`. */
3959
+ entityName?: string;
3960
+ /** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
3961
+ id?: string;
3962
+ /** The name of the data store. It should be data store resource name Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
3963
+ name?: string;
3964
+ /** Output only. Workspace Source Types for workspace data, retrieved from `DataStore.workspace_config.type`. */
3965
+ workspaceType?: string;
3966
+ }
3967
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
3968
+ /** Facet fields that store the mapping of fields to end user widget appearance. */
3969
+ facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
3970
+ /** The key is the UI component. Mock. Currently supported `title`, `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed. */
3971
+ fieldsUiComponentsMap?: {
3972
+ [P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
3973
+ };
3974
+ /** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
3975
+ id?: string;
3976
+ /** The name of the data store. It should be data store resource name Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
3977
+ name?: string;
3978
+ }
3979
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
3980
+ /** Optional. The field name that end users will see. */
3981
+ displayName?: string;
3982
+ /** Required. Registered field name. The format is `field.abc`. */
3983
+ field?: string;
3984
+ }
3985
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSetting {
3986
+ /** Optional. The shortcuts to display on the homepage. LINT.IfChange(max_shortcuts_number) LINT.ThenChange(//depot/google3/cloud/console/web/ai/unified_cloud_search/components/widget_preview/widget_homepage_shortcut_config_form.ts:max_shortcuts_number) */
3987
+ shortcuts?: GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSettingShortcut[];
3988
+ }
3989
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSettingShortcut {
3990
+ /** Optional. Destination URL of shortcut. */
3991
+ destinationUri?: string;
3992
+ /** Optional. Icon URL of shortcut. */
3993
+ icon?: GoogleCloudDiscoveryengineV1alphaWidgetConfigImage;
3994
+ /** Optional. Title of the shortcut. */
3995
+ title?: string;
3996
+ }
3997
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigImage {
3998
+ /** Image URL. */
3999
+ url?: string;
4000
+ }
4001
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiBrandingSettings {
4002
+ /** Logo image. */
4003
+ logo?: GoogleCloudDiscoveryengineV1alphaWidgetConfigImage;
4004
+ }
4005
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField {
4006
+ /** The field visibility on different types of devices. */
4007
+ deviceVisibility?: string[];
4008
+ /** The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}". */
4009
+ displayTemplate?: string;
4010
+ /** Required. Registered field name. The format is `field.abc`. */
4011
+ field?: string;
4012
+ }
4013
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings {
4014
+ /** Per data store configuration. */
4015
+ dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
4016
+ /** The default ordering for search results if specified. Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body */
4017
+ defaultSearchRequestOrderBy?: string;
4018
+ /** If set to true, the widget will not collect user events. */
4019
+ disableUserEventsCollection?: boolean;
4020
+ /** Whether or not to enable autocomplete. */
4021
+ enableAutocomplete?: boolean;
4022
+ /** Turn on or off collecting the search result quality feedback from end users. */
4023
+ enableQualityFeedback?: boolean;
4024
+ /** Whether to enable safe search. */
4025
+ enableSafeSearch?: boolean;
4026
+ /** Whether to enable search-as-you-type behavior for the search widget. */
4027
+ enableSearchAsYouType?: boolean;
4028
+ /** If set to true, the widget will enable visual content summary on applicable search requests. Only used by healthcare search. */
4029
+ enableVisualContentSummary?: boolean;
4030
+ /** Describes generative answer configuration. */
4031
+ generativeAnswerConfig?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig;
4032
+ /** Describes widget (or web app) interaction type */
4033
+ interactionType?: string;
4034
+ /** Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified. */
4035
+ resultDescriptionType?: string;
4036
+ }
4037
+ interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig {
4038
+ /** Whether generated answer contains suggested related questions. */
4039
+ disableRelatedQuestions?: boolean;
4040
+ /** Optional. Specifies whether to filter out queries that are adversarial. */
4041
+ ignoreAdversarialQuery?: boolean;
4042
+ /** Optional. Specifies whether to filter out queries that are not relevant to the content. */
4043
+ ignoreLowRelevantContent?: boolean;
4044
+ /** Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is `false`. No answer is returned if the search query is classified as a non-answer seeking query. If this field is set to `true`, we skip generating answers for non-answer seeking queries and return fallback messages instead. */
4045
+ ignoreNonAnswerSeekingQuery?: boolean;
4046
+ /** Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature. */
4047
+ languageCode?: string;
4048
+ /** Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. */
4049
+ maxRephraseSteps?: number;
4050
+ /** Text at the beginning of the prompt that instructs the model that generates the answer. */
4051
+ modelPromptPreamble?: string;
4052
+ /** The model version used to generate the answer. */
4053
+ modelVersion?: string;
4054
+ /** The number of top results to generate the answer from. Up to 10. */
4055
+ resultCount?: number;
4056
+ }
3620
4057
  interface GoogleCloudDiscoveryengineV1alphaWorkspaceConfig {
3621
4058
  /** Obfuscated Dasher customer ID. */
3622
4059
  dasherCustomerId?: string;
@@ -3656,17 +4093,17 @@ declare namespace gapi.client {
3656
4093
  interface GoogleCloudDiscoveryengineV1betaCmekConfig {
3657
4094
  /** Output only. The default CmekConfig for the Customer. */
3658
4095
  isDefault?: boolean;
3659
- /** Kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
4096
+ /** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
3660
4097
  kmsKey?: string;
3661
- /** Kms key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
4098
+ /** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
3662
4099
  kmsKeyVersion?: string;
3663
4100
  /** Output only. The timestamp of the last key rotation. */
3664
4101
  lastRotationTimestampMicros?: string;
3665
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
4102
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
3666
4103
  name?: string;
3667
4104
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
3668
4105
  singleRegionKeys?: GoogleCloudDiscoveryengineV1betaSingleRegionKey[];
3669
- /** Output only. State of the CmekConfig. */
4106
+ /** Output only. The states of the CmekConfig. */
3670
4107
  state?: string;
3671
4108
  }
3672
4109
  interface GoogleCloudDiscoveryengineV1betaCondition {
@@ -3761,6 +4198,10 @@ declare namespace gapi.client {
3761
4198
  /** Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown. */
3762
4199
  synonyms?: string[];
3763
4200
  }
4201
+ interface GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries {
4202
+ /** The QPS of the crawl rate. */
4203
+ qpsTimeSeries?: GoogleMonitoringV3TimeSeries;
4204
+ }
3764
4205
  interface GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata {
3765
4206
  /** Operation create time. */
3766
4207
  createTime?: string;
@@ -3803,7 +4244,7 @@ declare namespace gapi.client {
3803
4244
  contentConfig?: string;
3804
4245
  /** Output only. Timestamp the DataStore was created at. */
3805
4246
  createTime?: string;
3806
- /** Output only. The id of the default Schema asscociated to this data store. */
4247
+ /** Output only. The id of the default Schema associated to this data store. */
3807
4248
  defaultSchemaId?: string;
3808
4249
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
3809
4250
  displayName?: string;
@@ -3811,6 +4252,8 @@ declare namespace gapi.client {
3811
4252
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
3812
4253
  /** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
3813
4254
  healthcareFhirConfig?: GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig;
4255
+ /** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
4256
+ identityMappingStore?: string;
3814
4257
  /** Immutable. The industry vertical that the data store registers. */
3815
4258
  industryVertical?: string;
3816
4259
  /** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
@@ -3850,6 +4293,12 @@ declare namespace gapi.client {
3850
4293
  /** If set true, the DataStore will not be available for serving search requests. */
3851
4294
  disabledForServing?: boolean;
3852
4295
  }
4296
+ interface GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries {
4297
+ /** Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically. */
4298
+ autoRefreshCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
4299
+ /** Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users. */
4300
+ userTriggeredCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
4301
+ }
3853
4302
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
3854
4303
  /** Operation create time. */
3855
4304
  createTime?: string;
@@ -4022,14 +4471,6 @@ declare namespace gapi.client {
4022
4471
  /** Required. The full resource name of the SampleQuerySet used for the evaluation, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
4023
4472
  sampleQuerySet?: string;
4024
4473
  }
4025
- interface GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse {
4026
- /** List of Sitemaps fetched. */
4027
- sitemapsMetadata?: GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata[];
4028
- }
4029
- interface GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata {
4030
- /** The Sitemap. */
4031
- sitemap?: GoogleCloudDiscoveryengineV1betaSitemap;
4032
- }
4033
4474
  interface GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig {
4034
4475
  /** Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering. */
4035
4476
  enableConfigurableSchema?: boolean;
@@ -4162,6 +4603,22 @@ declare namespace gapi.client {
4162
4603
  /** Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED. */
4163
4604
  mode?: string;
4164
4605
  }
4606
+ interface GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse {
4607
+ /** The historical dedicated crawl rate timeseries data, used for monitoring. */
4608
+ dedicatedCrawlRateTimeSeries?: GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries;
4609
+ /** Errors from service when handling the request. */
4610
+ error?: GoogleRpcStatus;
4611
+ /** The historical organic crawl rate timeseries data, used for monitoring. */
4612
+ organicCrawlRateTimeSeries?: GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries;
4613
+ /** Output only. The state of the response. */
4614
+ state?: string;
4615
+ }
4616
+ interface GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries {
4617
+ /** Google's organic crawl rate time series, which is the sum of all googlebots' crawl rate. Please refer to https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers for more details about googlebots. */
4618
+ googleOrganicCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
4619
+ /** Vertex AI's organic crawl rate time series, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is not set. Please refer to https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers#google-cloudvertexbot for more details about Google-CloudVertexBot. */
4620
+ vertexAiOrganicCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
4621
+ }
4165
4622
  interface GoogleCloudDiscoveryengineV1betaProject {
4166
4623
  /** Output only. The timestamp when this project is created. */
4167
4624
  createTime?: string;
@@ -4239,6 +4696,18 @@ declare namespace gapi.client {
4239
4696
  /** The top-5 value. */
4240
4697
  top5?: number;
4241
4698
  }
4699
+ interface GoogleCloudDiscoveryengineV1betaRemoveDedicatedCrawlRateMetadata {
4700
+ /** Operation create time. */
4701
+ createTime?: string;
4702
+ /** Operation last update time. If the operation is done, this is also the finish time. */
4703
+ updateTime?: string;
4704
+ }
4705
+ interface GoogleCloudDiscoveryengineV1betaRemoveDedicatedCrawlRateResponse {
4706
+ /** Errors from service when handling the request. */
4707
+ error?: GoogleRpcStatus;
4708
+ /** Output only. The state of the response. */
4709
+ state?: string;
4710
+ }
4242
4711
  interface GoogleCloudDiscoveryengineV1betaSchema {
4243
4712
  /** The JSON representation of the schema. */
4244
4713
  jsonSchema?: string;
@@ -4300,8 +4769,10 @@ declare namespace gapi.client {
4300
4769
  query?: string;
4301
4770
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
4302
4771
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec;
4303
- /** 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)`. */
4772
+ /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to BYOE. === BYOE === If ranking expression is not provided or set to BYOE, it should be 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)`. === CLEARBOX === If ranking expression is set to CLEARBOX, the following expression types (and combinations of those chained using + or * operators) are supported: * double * signal * log(signal) * exp(signal) * rr(signal, double > 0) -- reciprocal rank transformation with second argument being a denominator constant. * is_nan(signal) -- returns 0 if signal is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 * gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32) The following signals are supported: * gecko_score -- semantic similarity adjustment * bm25_score -- keyword match adjustment * jetstream_score -- semantic relevance adjustment * pctr_rank -- predicted conversion rate adjustment as a rank * freshness_rank -- freshness adjustment as a rank * base_rank -- the default rank of the result */
4304
4773
  rankingExpression?: string;
4774
+ /** Optional. The backend to use for the ranking expression evaluation. */
4775
+ rankingExpressionBackend?: string;
4305
4776
  /** 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. */
4306
4777
  regionCode?: string;
4307
4778
  /** 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. */
@@ -4492,13 +4963,25 @@ declare namespace gapi.client {
4492
4963
  interface GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec {
4493
4964
  /** 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. */
4494
4965
  queryId?: string;
4495
- /** 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. */
4966
+ /** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is similar 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. */
4496
4967
  searchResultPersistenceCount?: number;
4497
4968
  }
4498
4969
  interface GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec {
4499
4970
  /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
4500
4971
  mode?: string;
4501
4972
  }
4973
+ interface GoogleCloudDiscoveryengineV1betaSetDedicatedCrawlRateMetadata {
4974
+ /** Operation create time. */
4975
+ createTime?: string;
4976
+ /** Operation last update time. If the operation is done, this is also the finish time. */
4977
+ updateTime?: string;
4978
+ }
4979
+ interface GoogleCloudDiscoveryengineV1betaSetDedicatedCrawlRateResponse {
4980
+ /** Errors from service when handling the request. */
4981
+ error?: GoogleRpcStatus;
4982
+ /** Output only. The state of the response. */
4983
+ state?: string;
4984
+ }
4502
4985
  interface GoogleCloudDiscoveryengineV1betaSingleRegionKey {
4503
4986
  /** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
4504
4987
  kmsKey?: string;
@@ -4601,17 +5084,17 @@ declare namespace gapi.client {
4601
5084
  interface GoogleCloudDiscoveryengineV1CmekConfig {
4602
5085
  /** Output only. The default CmekConfig for the Customer. */
4603
5086
  isDefault?: boolean;
4604
- /** Kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
5087
+ /** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
4605
5088
  kmsKey?: string;
4606
- /** Kms key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
5089
+ /** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
4607
5090
  kmsKeyVersion?: string;
4608
5091
  /** Output only. The timestamp of the last key rotation. */
4609
5092
  lastRotationTimestampMicros?: string;
4610
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
5093
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
4611
5094
  name?: string;
4612
5095
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
4613
5096
  singleRegionKeys?: GoogleCloudDiscoveryengineV1SingleRegionKey[];
4614
- /** Output only. State of the CmekConfig. */
5097
+ /** Output only. The states of the CmekConfig. */
4615
5098
  state?: string;
4616
5099
  }
4617
5100
  interface GoogleCloudDiscoveryengineV1Condition {
@@ -4724,6 +5207,12 @@ declare namespace gapi.client {
4724
5207
  /** Operation last update time. If the operation is done, this is also the finish time. */
4725
5208
  updateTime?: string;
4726
5209
  }
5210
+ interface GoogleCloudDiscoveryengineV1CreateSitemapMetadata {
5211
+ /** Operation create time. */
5212
+ createTime?: string;
5213
+ /** Operation last update time. If the operation is done, this is also the finish time. */
5214
+ updateTime?: string;
5215
+ }
4727
5216
  interface GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata {
4728
5217
  /** Operation create time. */
4729
5218
  createTime?: string;
@@ -4741,7 +5230,7 @@ declare namespace gapi.client {
4741
5230
  contentConfig?: string;
4742
5231
  /** Output only. Timestamp the DataStore was created at. */
4743
5232
  createTime?: string;
4744
- /** Output only. The id of the default Schema asscociated to this data store. */
5233
+ /** Output only. The id of the default Schema associated to this data store. */
4745
5234
  defaultSchemaId?: string;
4746
5235
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
4747
5236
  displayName?: string;
@@ -4749,6 +5238,8 @@ declare namespace gapi.client {
4749
5238
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
4750
5239
  /** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
4751
5240
  healthcareFhirConfig?: GoogleCloudDiscoveryengineV1HealthcareFhirConfig;
5241
+ /** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
5242
+ identityMappingStore?: string;
4752
5243
  /** Immutable. The industry vertical that the data store registers. */
4753
5244
  industryVertical?: string;
4754
5245
  /** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
@@ -4814,6 +5305,12 @@ declare namespace gapi.client {
4814
5305
  /** Operation last update time. If the operation is done, this is also the finish time. */
4815
5306
  updateTime?: string;
4816
5307
  }
5308
+ interface GoogleCloudDiscoveryengineV1DeleteSitemapMetadata {
5309
+ /** Operation create time. */
5310
+ createTime?: string;
5311
+ /** Operation last update time. If the operation is done, this is also the finish time. */
5312
+ updateTime?: string;
5313
+ }
4817
5314
  interface GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata {
4818
5315
  /** Operation create time. */
4819
5316
  createTime?: string;
@@ -5233,6 +5730,14 @@ declare namespace gapi.client {
5233
5730
  /** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
5234
5731
  kmsKey?: string;
5235
5732
  }
5733
+ interface GoogleCloudDiscoveryengineV1Sitemap {
5734
+ /** Output only. The sitemap's creation time. */
5735
+ createTime?: string;
5736
+ /** Output only. The fully qualified resource name of the sitemap. `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated. */
5737
+ name?: string;
5738
+ /** Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. */
5739
+ uri?: string;
5740
+ }
5236
5741
  interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
5237
5742
  /** Site verification state indicating the ownership and validity. */
5238
5743
  siteVerificationState?: string;
@@ -5315,6 +5820,22 @@ declare namespace gapi.client {
5315
5820
  /** The Google Workspace data source. */
5316
5821
  type?: string;
5317
5822
  }
5823
+ interface GoogleCloudNotebooklmV1alphaSourceId {
5824
+ /** The id of the source. */
5825
+ id?: string;
5826
+ }
5827
+ interface GoogleCloudNotebooklmV1alphaUploadSourceFileRequest {
5828
+ /** Information about the file being uploaded. */
5829
+ blob?: GdataMedia;
5830
+ /** Media upload request metadata. */
5831
+ mediaRequestInfo?: ApiservingMediaRequestInfo;
5832
+ }
5833
+ interface GoogleCloudNotebooklmV1alphaUploadSourceFileResponse {
5834
+ /** Media upload response metadata. */
5835
+ mediaResponseInfo?: ApiservingMediaResponseInfo;
5836
+ /** The source id of the uploaded source. */
5837
+ sourceId?: GoogleCloudNotebooklmV1alphaSourceId;
5838
+ }
5318
5839
  interface GoogleLongrunningCancelOperationRequest {}
5319
5840
  interface GoogleLongrunningListOperationsResponse {
5320
5841
  /** The standard List next-page token. */
@@ -5429,6 +5950,66 @@ declare namespace gapi.client {
5429
5950
  /** Optional. IANA Time Zone Database version number. For example "2019a". */
5430
5951
  version?: string;
5431
5952
  }
5953
+ interface MediaResource {
5954
+ /** Uploads a file for Notebook LM to use. Creates a Source. */
5955
+ upload(request: {
5956
+ /** V1 error format. */
5957
+ '$.xgafv'?: string;
5958
+ /** OAuth access token. */
5959
+ access_token?: string;
5960
+ /** Data format for response. */
5961
+ alt?: string;
5962
+ /** JSONP */
5963
+ callback?: string;
5964
+ /** Selector specifying which fields to include in a partial response. */
5965
+ fields?: string;
5966
+ /** 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. */
5967
+ key?: string;
5968
+ /** OAuth 2.0 token for the current user. */
5969
+ oauth_token?: string;
5970
+ /** Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} */
5971
+ parent: string;
5972
+ /** Returns response with indentations and line breaks. */
5973
+ prettyPrint?: boolean;
5974
+ /** 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. */
5975
+ quotaUser?: string;
5976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5977
+ upload_protocol?: string;
5978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5979
+ uploadType?: string;
5980
+ /** Request body */
5981
+ resource: GoogleCloudNotebooklmV1alphaUploadSourceFileRequest;
5982
+ }): Request<GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>;
5983
+ upload(
5984
+ request: {
5985
+ /** V1 error format. */
5986
+ '$.xgafv'?: string;
5987
+ /** OAuth access token. */
5988
+ access_token?: string;
5989
+ /** Data format for response. */
5990
+ alt?: string;
5991
+ /** JSONP */
5992
+ callback?: string;
5993
+ /** Selector specifying which fields to include in a partial response. */
5994
+ fields?: string;
5995
+ /** 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. */
5996
+ key?: string;
5997
+ /** OAuth 2.0 token for the current user. */
5998
+ oauth_token?: string;
5999
+ /** Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} */
6000
+ parent: string;
6001
+ /** Returns response with indentations and line breaks. */
6002
+ prettyPrint?: boolean;
6003
+ /** 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. */
6004
+ quotaUser?: string;
6005
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6006
+ upload_protocol?: string;
6007
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6008
+ uploadType?: string;
6009
+ },
6010
+ body: GoogleCloudNotebooklmV1alphaUploadSourceFileRequest,
6011
+ ): Request<GoogleCloudNotebooklmV1alphaUploadSourceFileResponse>;
6012
+ }
5432
6013
  interface CmekConfigsResource {
5433
6014
  /** De-provisions a CmekConfig. */
5434
6015
  delete(request?: {
@@ -5525,7 +6106,7 @@ declare namespace gapi.client {
5525
6106
  fields?: string;
5526
6107
  /** 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. */
5527
6108
  key?: string;
5528
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
6109
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
5529
6110
  name: string;
5530
6111
  /** OAuth 2.0 token for the current user. */
5531
6112
  oauth_token?: string;
@@ -5556,7 +6137,7 @@ declare namespace gapi.client {
5556
6137
  fields?: string;
5557
6138
  /** 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. */
5558
6139
  key?: string;
5559
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
6140
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
5560
6141
  name: string;
5561
6142
  /** OAuth 2.0 token for the current user. */
5562
6143
  oauth_token?: string;
@@ -8202,6 +8783,35 @@ declare namespace gapi.client {
8202
8783
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8203
8784
  uploadType?: string;
8204
8785
  }): Request<GoogleLongrunningOperation>;
8786
+ /** Fetch Sitemaps in a DataStore. */
8787
+ fetch(request?: {
8788
+ /** V1 error format. */
8789
+ '$.xgafv'?: string;
8790
+ /** OAuth access token. */
8791
+ access_token?: string;
8792
+ /** Data format for response. */
8793
+ alt?: string;
8794
+ /** JSONP */
8795
+ callback?: string;
8796
+ /** Selector specifying which fields to include in a partial response. */
8797
+ fields?: string;
8798
+ /** 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. */
8799
+ key?: string;
8800
+ /** The Sitemap uris. */
8801
+ 'matcher.urisMatcher.uris'?: string | string[];
8802
+ /** OAuth 2.0 token for the current user. */
8803
+ oauth_token?: string;
8804
+ /** Required. Parent resource name of the SiteSearchEngine, such as `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/siteSearchEngine`. */
8805
+ parent: string;
8806
+ /** Returns response with indentations and line breaks. */
8807
+ prettyPrint?: boolean;
8808
+ /** 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. */
8809
+ quotaUser?: string;
8810
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8811
+ upload_protocol?: string;
8812
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8813
+ uploadType?: string;
8814
+ }): Request<GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse>;
8205
8815
  }
8206
8816
  interface OperationsResource {
8207
8817
  /** 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. */
@@ -9211,6 +9821,37 @@ declare namespace gapi.client {
9211
9821
  body: GoogleCloudDiscoveryengineV1alphaUserEvent,
9212
9822
  ): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
9213
9823
  }
9824
+ interface WidgetConfigsResource {
9825
+ /** Gets a WidgetConfig. */
9826
+ get(request?: {
9827
+ /** V1 error format. */
9828
+ '$.xgafv'?: string;
9829
+ /** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
9830
+ acceptCache?: boolean;
9831
+ /** OAuth access token. */
9832
+ access_token?: string;
9833
+ /** Data format for response. */
9834
+ alt?: string;
9835
+ /** JSONP */
9836
+ callback?: string;
9837
+ /** Selector specifying which fields to include in a partial response. */
9838
+ fields?: string;
9839
+ /** 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. */
9840
+ key?: string;
9841
+ /** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
9842
+ name: string;
9843
+ /** OAuth 2.0 token for the current user. */
9844
+ oauth_token?: string;
9845
+ /** Returns response with indentations and line breaks. */
9846
+ prettyPrint?: boolean;
9847
+ /** 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. */
9848
+ quotaUser?: string;
9849
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9850
+ upload_protocol?: string;
9851
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9852
+ uploadType?: string;
9853
+ }): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
9854
+ }
9214
9855
  interface DataStoresResource {
9215
9856
  /** Completes the specified user input with keyword suggestions. */
9216
9857
  completeQuery(request?: {
@@ -9662,6 +10303,7 @@ declare namespace gapi.client {
9662
10303
  siteSearchEngine: SiteSearchEngineResource;
9663
10304
  suggestionDenyListEntries: SuggestionDenyListEntriesResource;
9664
10305
  userEvents: UserEventsResource;
10306
+ widgetConfigs: WidgetConfigsResource;
9665
10307
  }
9666
10308
  interface CompletionConfigResource {
9667
10309
  /** Completes the user input with advanced keyword suggestions. */
@@ -9722,6 +10364,64 @@ declare namespace gapi.client {
9722
10364
  },
9723
10365
  body: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest,
9724
10366
  ): Request<GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse>;
10367
+ /** Removes the search history suggestion in an engine for a user. This will remove the suggestion from being returned in the AdvancedCompleteQueryResponse.recent_search_suggestions for this user. If the user searches the same suggestion again, the new history will override and suggest this suggestion again. */
10368
+ removeSuggestion(request: {
10369
+ /** V1 error format. */
10370
+ '$.xgafv'?: string;
10371
+ /** OAuth access token. */
10372
+ access_token?: string;
10373
+ /** Data format for response. */
10374
+ alt?: string;
10375
+ /** JSONP */
10376
+ callback?: string;
10377
+ /** Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
10378
+ completionConfig: string;
10379
+ /** Selector specifying which fields to include in a partial response. */
10380
+ fields?: string;
10381
+ /** 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. */
10382
+ key?: string;
10383
+ /** OAuth 2.0 token for the current user. */
10384
+ oauth_token?: string;
10385
+ /** Returns response with indentations and line breaks. */
10386
+ prettyPrint?: boolean;
10387
+ /** 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. */
10388
+ quotaUser?: string;
10389
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10390
+ upload_protocol?: string;
10391
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10392
+ uploadType?: string;
10393
+ /** Request body */
10394
+ resource: GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest;
10395
+ }): Request<{}>;
10396
+ removeSuggestion(
10397
+ request: {
10398
+ /** V1 error format. */
10399
+ '$.xgafv'?: string;
10400
+ /** OAuth access token. */
10401
+ access_token?: string;
10402
+ /** Data format for response. */
10403
+ alt?: string;
10404
+ /** JSONP */
10405
+ callback?: string;
10406
+ /** Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as `projects/*‍/locations/global/collections/default_collection/engines/*‍/completionConfig`. */
10407
+ completionConfig: string;
10408
+ /** Selector specifying which fields to include in a partial response. */
10409
+ fields?: string;
10410
+ /** 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. */
10411
+ key?: string;
10412
+ /** OAuth 2.0 token for the current user. */
10413
+ oauth_token?: string;
10414
+ /** Returns response with indentations and line breaks. */
10415
+ prettyPrint?: boolean;
10416
+ /** 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. */
10417
+ quotaUser?: string;
10418
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10419
+ upload_protocol?: string;
10420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10421
+ uploadType?: string;
10422
+ },
10423
+ body: GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest,
10424
+ ): Request<{}>;
9725
10425
  }
9726
10426
  interface ControlsResource {
9727
10427
  /** 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. */
@@ -10922,6 +11622,37 @@ declare namespace gapi.client {
10922
11622
  ): Request<GoogleCloudDiscoveryengineV1alphaSession>;
10923
11623
  answers: AnswersResource;
10924
11624
  }
11625
+ interface WidgetConfigsResource {
11626
+ /** Gets a WidgetConfig. */
11627
+ get(request?: {
11628
+ /** V1 error format. */
11629
+ '$.xgafv'?: string;
11630
+ /** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
11631
+ acceptCache?: boolean;
11632
+ /** OAuth access token. */
11633
+ access_token?: string;
11634
+ /** Data format for response. */
11635
+ alt?: string;
11636
+ /** JSONP */
11637
+ callback?: string;
11638
+ /** Selector specifying which fields to include in a partial response. */
11639
+ fields?: string;
11640
+ /** 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. */
11641
+ key?: string;
11642
+ /** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
11643
+ name: string;
11644
+ /** OAuth 2.0 token for the current user. */
11645
+ oauth_token?: string;
11646
+ /** Returns response with indentations and line breaks. */
11647
+ prettyPrint?: boolean;
11648
+ /** 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. */
11649
+ quotaUser?: string;
11650
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11651
+ upload_protocol?: string;
11652
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11653
+ uploadType?: string;
11654
+ }): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
11655
+ }
10925
11656
  interface EnginesResource {
10926
11657
  /** Creates a Engine. */
10927
11658
  create(request: {
@@ -11314,6 +12045,7 @@ declare namespace gapi.client {
11314
12045
  operations: OperationsResource;
11315
12046
  servingConfigs: ServingConfigsResource;
11316
12047
  sessions: SessionsResource;
12048
+ widgetConfigs: WidgetConfigsResource;
11317
12049
  }
11318
12050
  interface OperationsResource {
11319
12051
  /** 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. */
@@ -14738,6 +15470,37 @@ declare namespace gapi.client {
14738
15470
  body: GoogleCloudDiscoveryengineV1alphaUserEvent,
14739
15471
  ): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
14740
15472
  }
15473
+ interface WidgetConfigsResource {
15474
+ /** Gets a WidgetConfig. */
15475
+ get(request?: {
15476
+ /** V1 error format. */
15477
+ '$.xgafv'?: string;
15478
+ /** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
15479
+ acceptCache?: boolean;
15480
+ /** OAuth access token. */
15481
+ access_token?: string;
15482
+ /** Data format for response. */
15483
+ alt?: string;
15484
+ /** JSONP */
15485
+ callback?: string;
15486
+ /** Selector specifying which fields to include in a partial response. */
15487
+ fields?: string;
15488
+ /** 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. */
15489
+ key?: string;
15490
+ /** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
15491
+ name: string;
15492
+ /** OAuth 2.0 token for the current user. */
15493
+ oauth_token?: string;
15494
+ /** Returns response with indentations and line breaks. */
15495
+ prettyPrint?: boolean;
15496
+ /** 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. */
15497
+ quotaUser?: string;
15498
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
15499
+ upload_protocol?: string;
15500
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
15501
+ uploadType?: string;
15502
+ }): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
15503
+ }
14741
15504
  interface DataStoresResource {
14742
15505
  /** Completes the specified user input with keyword suggestions. */
14743
15506
  completeQuery(request?: {
@@ -15130,6 +15893,7 @@ declare namespace gapi.client {
15130
15893
  siteSearchEngine: SiteSearchEngineResource;
15131
15894
  suggestionDenyListEntries: SuggestionDenyListEntriesResource;
15132
15895
  userEvents: UserEventsResource;
15896
+ widgetConfigs: WidgetConfigsResource;
15133
15897
  }
15134
15898
  interface OperationsResource {
15135
15899
  /** 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. */
@@ -17125,7 +17889,7 @@ declare namespace gapi.client {
17125
17889
  fields?: string;
17126
17890
  /** 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. */
17127
17891
  key?: string;
17128
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
17892
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
17129
17893
  name: string;
17130
17894
  /** OAuth 2.0 token for the current user. */
17131
17895
  oauth_token?: string;
@@ -17156,7 +17920,7 @@ declare namespace gapi.client {
17156
17920
  fields?: string;
17157
17921
  /** 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. */
17158
17922
  key?: string;
17159
- /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
17923
+ /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
17160
17924
  name: string;
17161
17925
  /** OAuth 2.0 token for the current user. */
17162
17926
  oauth_token?: string;
@@ -17396,6 +18160,8 @@ declare namespace gapi.client {
17396
18160
  operations: OperationsResource;
17397
18161
  }
17398
18162
 
18163
+ const media: MediaResource;
18164
+
17399
18165
  const projects: ProjectsResource;
17400
18166
  }
17401
18167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250207",
3
+ "version": "0.0.20250214",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -48,6 +48,9 @@ Don't forget to authenticate your client before sending any request to resources
48
48
  // declare client_id registered in Google Developers Console
49
49
  var client_id = '',
50
50
  scope = [
51
+ // Search your organization's data in the Cloud Search index
52
+ 'https://www.googleapis.com/auth/cloud_search.query',
53
+
51
54
  // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
52
55
  'https://www.googleapis.com/auth/cloud-platform',
53
56
  ],
@@ -69,6 +72,11 @@ gapi.auth.authorize(
69
72
  After that you can use Discovery Engine API resources: <!-- TODO: make this work for multiple namespaces -->
70
73
 
71
74
  ```typescript
75
+ /*
76
+ Uploads a file for Notebook LM to use. Creates a Source.
77
+ */
78
+ await gapi.client.discoveryengine.media.upload({parent: 'parent'});
79
+
72
80
  /*
73
81
  Gets a Project. Returns NOT_FOUND when the project is not yet created.
74
82
  */