@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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 +81 -31
  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: 20241107
12
+ // Revision: 20241115
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -697,7 +697,7 @@ declare namespace gapi.client {
697
697
  claimText?: string;
698
698
  /** Position indicating the end of the claim in the answer candidate, exclusive. */
699
699
  endPos?: number;
700
- /** 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. */
700
+ /** 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. */
701
701
  groundingCheckRequired?: boolean;
702
702
  /** Position indicating the start of the claim in the answer candidate, measured in bytes. */
703
703
  startPos?: number;
@@ -721,8 +721,8 @@ declare namespace gapi.client {
721
721
  requirement?: GoogleCloudDiscoveryengineV1alphaRequirement;
722
722
  /** The condition for evaluating the requirement result. */
723
723
  requirementCondition?: GoogleTypeExpr;
724
- /** Requirement result, e.g. pass or fail. */
725
- requirementResult?: string;
724
+ /** The result of the requirement. It should be one of the `severity` fields in the requirement definition. If any error happens during the evaluation, it will be `UNKNOWN`. */
725
+ result?: string;
726
726
  }
727
727
  interface GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult {
728
728
  /** Type identifier of the metric corresponding to this query result. */
@@ -751,7 +751,7 @@ declare namespace gapi.client {
751
751
  name?: string;
752
752
  /** Page span of the chunk. */
753
753
  pageSpan?: GoogleCloudDiscoveryengineV1alphaChunkPageSpan;
754
- /** 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. */
754
+ /** 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. */
755
755
  relevanceScore?: number;
756
756
  }
757
757
  interface GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata {
@@ -1176,6 +1176,8 @@ declare namespace gapi.client {
1176
1176
  indexTime?: string;
1177
1177
  }
1178
1178
  interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
1179
+ /** 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. */
1180
+ conversionValue?: number;
1179
1181
  /** The Document resource ID. */
1180
1182
  id?: string;
1181
1183
  /** Output only. Whether the referenced Document can be found in the data store. */
@@ -1404,24 +1406,6 @@ declare namespace gapi.client {
1404
1406
  /** More fine-grained information for the source reference. */
1405
1407
  sourceMetadata?: {[P in string]: string};
1406
1408
  }
1407
- interface GoogleCloudDiscoveryengineV1alphaFeedback {
1408
- /** Optional. The additional user comment of the feedback if user gives a thumb down. */
1409
- comment?: string;
1410
- /** The related conversation information when user gives feedback. */
1411
- conversationInfo?: GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo;
1412
- /** Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details. */
1413
- feedbackType?: string;
1414
- /** The version of the LLM model that was used to generate the response. */
1415
- llmModelVersion?: string;
1416
- /** Optional. The reason if user gives a thumb down. */
1417
- reasons?: string[];
1418
- }
1419
- interface GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo {
1420
- /** The index of the user input within the conversation messages. */
1421
- questionIndex?: number;
1422
- /** Name of the newly generated or continued session. */
1423
- session?: string;
1424
- }
1425
1409
  interface GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse {
1426
1410
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1427
1411
  nextPageToken?: string;
@@ -2021,7 +2005,7 @@ declare namespace gapi.client {
2021
2005
  content?: string;
2022
2006
  /** The unique ID to represent the record. */
2023
2007
  id?: string;
2024
- /** The score of this record based on the given query and selected model. */
2008
+ /** 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. */
2025
2009
  score?: number;
2026
2010
  /** 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. */
2027
2011
  title?: string;
@@ -2157,6 +2141,8 @@ declare namespace gapi.client {
2157
2141
  displayName?: string;
2158
2142
  /** A list of the metric bindings to be used in `condition`. */
2159
2143
  metricBindings?: GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding[];
2144
+ /** The severity of errors if the requirement is not met. It must be ordered from the most strict to the least strict. Examples: * `BLOCKING` * `CRITICAL` * `WARNING` All thresholds in the requirement must have all the severity here. */
2145
+ severity?: string[];
2160
2146
  /** A list of threshold bindings to be used in `condition`. */
2161
2147
  thresholdBindings?: GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding[];
2162
2148
  /** The requirement type, used as an identifier. Must be unique. The type should prefix with service name to avoid possible collision. It's encouraged to use natural hierarchical grouping for similar requirements. Examples: * `library.googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/media_rec/recommended_for_you/conversion_rate` */
@@ -2177,14 +2163,18 @@ declare namespace gapi.client {
2177
2163
  variableId?: string;
2178
2164
  }
2179
2165
  interface GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding {
2180
- /** Threshold to trigger a blocking failure. If not met, the requirement will evaluate as a `FAILURE`. */
2181
- blockingThreshold?: number;
2182
2166
  /** Human readable description of the corresponding threshold and sub-requirement. */
2183
2167
  description?: string;
2168
+ /** The values of the threshold. The values should be ordered from the most strict to the least strict. */
2169
+ thresholdValues?: GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue[];
2184
2170
  /** The variable id to be referenced in `condition`. Must be unique across all `metric_bindings` and `threshold_bindings`. */
2185
2171
  variableId?: string;
2186
- /** Threshold to trigger a warning. If not met, the requirement will evaluate as a `WARNING`. */
2187
- warningThreshold?: number;
2172
+ }
2173
+ interface GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue {
2174
+ /** The severity of errors if the threshold is not met. It should be one of the `severity` fields in the requirement. */
2175
+ severity?: string;
2176
+ /** The value of the threshold. */
2177
+ value?: number;
2188
2178
  }
2189
2179
  interface GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding {
2190
2180
  /** Description of this sample binding. Used by the UI to render user friendly descriptions for each requirement condition. Should be less than 128 characters long. */
@@ -2777,6 +2767,8 @@ declare namespace gapi.client {
2777
2767
  interface GoogleCloudDiscoveryengineV1alphaSessionTurn {
2778
2768
  /** The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
2779
2769
  answer?: string;
2770
+ /** 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. */
2771
+ detailedAnswer?: GoogleCloudDiscoveryengineV1alphaAnswer;
2780
2772
  /** The user query. */
2781
2773
  query?: GoogleCloudDiscoveryengineV1alphaQuery;
2782
2774
  }
@@ -2952,6 +2944,8 @@ declare namespace gapi.client {
2952
2944
  attributionToken?: string;
2953
2945
  /** 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. */
2954
2946
  completionInfo?: GoogleCloudDiscoveryengineV1alphaCompletionInfo;
2947
+ /** 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. */
2948
+ conversionType?: string;
2955
2949
  /** 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. */
2956
2950
  dataStore?: string;
2957
2951
  /** 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. */
@@ -2962,10 +2956,8 @@ declare namespace gapi.client {
2962
2956
  engine?: string;
2963
2957
  /** Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened. */
2964
2958
  eventTime?: string;
2965
- /** 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. */
2959
+ /** 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. */
2966
2960
  eventType?: string;
2967
- /** Optional. This field is optional except for the `add-feedback` event types. */
2968
- feedback?: GoogleCloudDiscoveryengineV1alphaFeedback;
2969
2961
  /** 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. */
2970
2962
  filter?: string;
2971
2963
  /** Media-specific info. */
@@ -14716,6 +14708,64 @@ declare namespace gapi.client {
14716
14708
  /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
14717
14709
  userEvent?: string;
14718
14710
  }): Request<GoogleApiHttpBody>;
14711
+ /** 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. */
14712
+ import(request: {
14713
+ /** V1 error format. */
14714
+ '$.xgafv'?: string;
14715
+ /** OAuth access token. */
14716
+ access_token?: string;
14717
+ /** Data format for response. */
14718
+ alt?: string;
14719
+ /** JSONP */
14720
+ callback?: string;
14721
+ /** Selector specifying which fields to include in a partial response. */
14722
+ fields?: string;
14723
+ /** 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. */
14724
+ key?: string;
14725
+ /** OAuth 2.0 token for the current user. */
14726
+ oauth_token?: string;
14727
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
14728
+ parent: string;
14729
+ /** Returns response with indentations and line breaks. */
14730
+ prettyPrint?: boolean;
14731
+ /** 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. */
14732
+ quotaUser?: string;
14733
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14734
+ upload_protocol?: string;
14735
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14736
+ uploadType?: string;
14737
+ /** Request body */
14738
+ resource: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest;
14739
+ }): Request<GoogleLongrunningOperation>;
14740
+ import(
14741
+ request: {
14742
+ /** V1 error format. */
14743
+ '$.xgafv'?: string;
14744
+ /** OAuth access token. */
14745
+ access_token?: string;
14746
+ /** Data format for response. */
14747
+ alt?: string;
14748
+ /** JSONP */
14749
+ callback?: string;
14750
+ /** Selector specifying which fields to include in a partial response. */
14751
+ fields?: string;
14752
+ /** 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. */
14753
+ key?: string;
14754
+ /** OAuth 2.0 token for the current user. */
14755
+ oauth_token?: string;
14756
+ /** Required. Parent DataStore resource name, of the form `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` */
14757
+ parent: string;
14758
+ /** Returns response with indentations and line breaks. */
14759
+ prettyPrint?: boolean;
14760
+ /** 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. */
14761
+ quotaUser?: string;
14762
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14763
+ upload_protocol?: string;
14764
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14765
+ uploadType?: string;
14766
+ },
14767
+ body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
14768
+ ): Request<GoogleLongrunningOperation>;
14719
14769
  /** Writes a single user event. */
14720
14770
  write(request: {
14721
14771
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20241107",
3
+ "version": "0.0.20241115",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",