@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250116 → 0.0.20250121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +30 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20250116
12
+ // Revision: 20250121
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -187,6 +187,8 @@ declare namespace gapi.client {
187
187
  queryModel?: string;
188
188
  /** Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned. Only one suggestion type is supported at the moment. */
189
189
  suggestionTypes?: string[];
190
+ /** Optional. Specification of each suggestion type. */
191
+ suggestionTypeSpecs?: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestSuggestionTypeSpec[];
190
192
  /** Optional. Information about the end user. This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info. */
191
193
  userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
192
194
  /** 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 */
@@ -202,6 +204,12 @@ declare namespace gapi.client {
202
204
  /** An expression which specifies a boost condition. The syntax is the same as [filter expression syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax). Currently, the only supported condition is a list of BCP-47 lang codes. Example: * To boost suggestions in languages `en` or `fr`: `(lang_code: ANY("en", "fr"))` */
203
205
  condition?: string;
204
206
  }
207
+ interface GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestSuggestionTypeSpec {
208
+ /** Optional. Maximum number of suggestions to return for each suggestion type. */
209
+ maxSuggestions?: number;
210
+ /** Optional. Suggestion type. */
211
+ suggestionType?: string;
212
+ }
205
213
  interface GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse {
206
214
  /** Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion. */
207
215
  contentSuggestions?: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion[];
@@ -327,6 +335,8 @@ declare namespace gapi.client {
327
335
  answerGenerationSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec;
328
336
  /** Deprecated: This field is deprecated. Streaming Answer API will be supported. Asynchronous mode control. If enabled, the response will be returned with answer/session resource name without final answer. The API users need to do the polling to get the latest status of answer/session by calling ConversationalSearchService.GetAnswer or ConversationalSearchService.GetSession method. */
329
337
  asynchronousMode?: boolean;
338
+ /** Optional. End user specification. */
339
+ endUserSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpec;
330
340
  /** Optional. Grounding specification. */
331
341
  groundingSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec;
332
342
  /** Required. Current user query. */
@@ -372,6 +382,24 @@ declare namespace gapi.client {
372
382
  /** Customized preamble. */
373
383
  preamble?: string;
374
384
  }
385
+ interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpec {
386
+ /** Optional. End user metadata. */
387
+ endUserMetadata?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaData[];
388
+ }
389
+ interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaData {
390
+ /** Chunk information. */
391
+ chunkInfo?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfo;
392
+ }
393
+ interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfo {
394
+ /** Chunk textual content. It is limited to 8000 characters. */
395
+ content?: string;
396
+ /** Metadata of the document from the current chunk. */
397
+ documentMetadata?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfoDocumentMetadata;
398
+ }
399
+ interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestEndUserSpecEndUserMetaDataChunkInfoDocumentMetadata {
400
+ /** Title of the document. */
401
+ title?: string;
402
+ }
375
403
  interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec {
376
404
  /** Optional. Specifies whether to enable the filtering based on grounding score and at what level. */
377
405
  filteringLevel?: string;
@@ -1161,7 +1189,7 @@ declare namespace gapi.client {
1161
1189
  latestPauseTime?: string;
1162
1190
  /** Output only. The full resource name of the Data Connector. Format: `projects/*‍/locations/*‍/collections/*‍/dataConnector`. */
1163
1191
  name?: string;
1164
- /** The UTC time when the next data sync is expected to start for the Data Connector. Customers are only able to specify the hour and minute to schedule the data sync. This is utilized when the data connector has a refresh interval greater than 1 day. */
1192
+ /** Defines the scheduled time for the next data synchronization. This field requires hour , minute, and time_zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). This is utilized when the data connector has a refresh interval greater than 1 day. When the hours or minutes are not specified, we will assume a sync time of 0:00. The user must provide a time zone to avoid ambiguity. */
1165
1193
  nextSyncTime?: GoogleTypeDateTime;
1166
1194
  /** Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { "instance_uri": "https://xxx.atlassian.net", "user_account": "xxxx.xxx@xxx.com", "api_token": "test-token" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`. */
1167
1195
  params?: {[P in string]: any};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250116",
3
+ "version": "0.0.20250121",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",