@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20241107 → 0.0.20241115

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 +71 -25
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20241107
12
+ // Revision: 20241115
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1341,6 +1341,8 @@ declare namespace gapi.client {
1341
1341
  interface GoogleCloudDiscoveryengineV1alphaSessionTurn {
1342
1342
  /** The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
1343
1343
  answer?: string;
1344
+ /** Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session. */
1345
+ detailedAnswer?: GoogleCloudDiscoveryengineV1alphaAnswer;
1344
1346
  /** The user query. */
1345
1347
  query?: GoogleCloudDiscoveryengineV1alphaQuery;
1346
1348
  }
@@ -1987,7 +1989,7 @@ declare namespace gapi.client {
1987
1989
  claimText?: string;
1988
1990
  /** Position indicating the end of the claim in the answer candidate, exclusive. */
1989
1991
  endPos?: number;
1990
- /** Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices, anti_citation_indices, and score should not be returned. */
1992
+ /** Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned. */
1991
1993
  groundingCheckRequired?: boolean;
1992
1994
  /** Position indicating the start of the claim in the answer candidate, measured in bytes. */
1993
1995
  startPos?: number;
@@ -2011,7 +2013,7 @@ declare namespace gapi.client {
2011
2013
  name?: string;
2012
2014
  /** Page span of the chunk. */
2013
2015
  pageSpan?: GoogleCloudDiscoveryengineV1betaChunkPageSpan;
2014
- /** Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchService.SearchResponse. */
2016
+ /** Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchResponse. */
2015
2017
  relevanceScore?: number;
2016
2018
  }
2017
2019
  interface GoogleCloudDiscoveryengineV1betaChunkChunkMetadata {
@@ -2406,6 +2408,8 @@ declare namespace gapi.client {
2406
2408
  indexTime?: string;
2407
2409
  }
2408
2410
  interface GoogleCloudDiscoveryengineV1betaDocumentInfo {
2411
+ /** Optional. The conversion value associated with this Document. Must be set if UserEvent.event_type is "conversion". For example, a value of 1000 signifies that 1000 seconds were spent viewing a Document for the `watch` conversion type. */
2412
+ conversionValue?: number;
2409
2413
  /** The Document resource ID. */
2410
2414
  id?: string;
2411
2415
  /** Output only. Whether the referenced Document can be found in the data store. */
@@ -2567,24 +2571,6 @@ declare namespace gapi.client {
2567
2571
  /** More fine-grained information for the source reference. */
2568
2572
  sourceMetadata?: {[P in string]: string};
2569
2573
  }
2570
- interface GoogleCloudDiscoveryengineV1betaFeedback {
2571
- /** Optional. The additional user comment of the feedback if user gives a thumb down. */
2572
- comment?: string;
2573
- /** The related conversation information when user gives feedback. */
2574
- conversationInfo?: GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo;
2575
- /** Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details. */
2576
- feedbackType?: string;
2577
- /** The version of the LLM model that was used to generate the response. */
2578
- llmModelVersion?: string;
2579
- /** Optional. The reason if user gives a thumb down. */
2580
- reasons?: string[];
2581
- }
2582
- interface GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo {
2583
- /** The index of the user input within the conversation messages. */
2584
- questionIndex?: number;
2585
- /** Name of the newly generated or continued session. */
2586
- session?: string;
2587
- }
2588
2574
  interface GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse {
2589
2575
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
2590
2576
  nextPageToken?: string;
@@ -3072,7 +3058,7 @@ declare namespace gapi.client {
3072
3058
  content?: string;
3073
3059
  /** The unique ID to represent the record. */
3074
3060
  id?: string;
3075
- /** The score of this record based on the given query and selected model. */
3061
+ /** The score of this record based on the given query and selected model. The score will be rounded to 2 decimal places. If the score is close to 0, it will be rounded to 0.0001 to avoid returning unset. */
3076
3062
  score?: number;
3077
3063
  /** The title of the record. Empty by default. At least one of title or content should be set otherwise an INVALID_ARGUMENT error is thrown. */
3078
3064
  title?: string;
@@ -3724,6 +3710,8 @@ declare namespace gapi.client {
3724
3710
  interface GoogleCloudDiscoveryengineV1betaSessionTurn {
3725
3711
  /** The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
3726
3712
  answer?: string;
3713
+ /** Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session. */
3714
+ detailedAnswer?: GoogleCloudDiscoveryengineV1betaAnswer;
3727
3715
  /** The user query. */
3728
3716
  query?: GoogleCloudDiscoveryengineV1betaQuery;
3729
3717
  }
@@ -3878,6 +3866,8 @@ declare namespace gapi.client {
3878
3866
  attributionToken?: string;
3879
3867
  /** CompletionService.CompleteQuery details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search. */
3880
3868
  completionInfo?: GoogleCloudDiscoveryengineV1betaCompletionInfo;
3869
+ /** Optional. Conversion type. Required if UserEvent.event_type is `conversion`. This is a customer-defined conversion name in lowercase letters or numbers separated by "-", such as "watch", "good-visit" etc. Do not set the field if UserEvent.event_type is not `conversion`. This mixes the custom conversion event with predefined events like `search`, `view-item` etc. */
3870
+ conversionType?: string;
3881
3871
  /** The DataStore resource full name, of the form `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. Optional. Only required for user events whose data store can't by determined by UserEvent.engine or UserEvent.documents. If data store is set in the parent of write/import/collect user event requests, this field can be omitted. */
3882
3872
  dataStore?: string;
3883
3873
  /** Should set to true if the request is made directly from the end user, in which case the UserEvent.user_info.user_agent can be populated from the HTTP request. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be set when using the JavaScript tag in UserEventService.CollectUserEvent. */
@@ -3888,10 +3878,8 @@ declare namespace gapi.client {
3888
3878
  engine?: string;
3889
3879
  /** Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. */
3890
3880
  eventTime?: string;
3891
- /** Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home > Men > Jeans * `add-feedback`: Add a user feedback. Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. */
3881
+ /** Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home > Men > Jeans * `add-feedback`: Add a user feedback. Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. Custom conversion value: * `conversion`: Customer defined conversion event. */
3892
3882
  eventType?: string;
3893
- /** Optional. This field is optional except for the `add-feedback` event types. */
3894
- feedback?: GoogleCloudDiscoveryengineV1betaFeedback;
3895
3883
  /** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
3896
3884
  filter?: string;
3897
3885
  /** Media-specific info. */
@@ -14095,6 +14083,64 @@ declare namespace gapi.client {
14095
14083
  /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
14096
14084
  userEvent?: string;
14097
14085
  }): Request<GoogleApiHttpBody>;
14086
+ /** Bulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata. */
14087
+ import(request: {
14088
+ /** V1 error format. */
14089
+ '$.xgafv'?: string;
14090
+ /** OAuth access token. */
14091
+ access_token?: string;
14092
+ /** Data format for response. */
14093
+ alt?: string;
14094
+ /** JSONP */
14095
+ callback?: string;
14096
+ /** Selector specifying which fields to include in a partial response. */
14097
+ fields?: string;
14098
+ /** 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. */
14099
+ key?: string;
14100
+ /** OAuth 2.0 token for the current user. */
14101
+ oauth_token?: string;
14102
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
14103
+ parent: string;
14104
+ /** Returns response with indentations and line breaks. */
14105
+ prettyPrint?: boolean;
14106
+ /** 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. */
14107
+ quotaUser?: string;
14108
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14109
+ upload_protocol?: string;
14110
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14111
+ uploadType?: string;
14112
+ /** Request body */
14113
+ resource: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest;
14114
+ }): Request<GoogleLongrunningOperation>;
14115
+ import(
14116
+ request: {
14117
+ /** V1 error format. */
14118
+ '$.xgafv'?: string;
14119
+ /** OAuth access token. */
14120
+ access_token?: string;
14121
+ /** Data format for response. */
14122
+ alt?: string;
14123
+ /** JSONP */
14124
+ callback?: string;
14125
+ /** Selector specifying which fields to include in a partial response. */
14126
+ fields?: string;
14127
+ /** 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. */
14128
+ key?: string;
14129
+ /** OAuth 2.0 token for the current user. */
14130
+ oauth_token?: string;
14131
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
14132
+ parent: string;
14133
+ /** Returns response with indentations and line breaks. */
14134
+ prettyPrint?: boolean;
14135
+ /** 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. */
14136
+ quotaUser?: string;
14137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14138
+ upload_protocol?: string;
14139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14140
+ uploadType?: string;
14141
+ },
14142
+ body: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
14143
+ ): Request<GoogleLongrunningOperation>;
14098
14144
  /** Writes a single user event. */
14099
14145
  write(request: {
14100
14146
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20241107",
3
+ "version": "0.0.20241115",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",