@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240312 → 0.0.20240318

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 +72 -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: 20240312
12
+ // Revision: 20240318
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -799,6 +799,12 @@ declare namespace gapi.client {
799
799
  /** User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config. */
800
800
  userId?: string;
801
801
  }
802
+ interface GoogleCloudDiscoveryengineV1alphaProcessedDocument {
803
+ /** Required. Full resource name of the referenced document, in the format `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/branches/*‍/documents/*`. */
804
+ document?: string;
805
+ /** The JSON string representation of the processed document. */
806
+ jsonData?: string;
807
+ }
802
808
  interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
803
809
  /** Operation create time. */
804
810
  createTime?: string;
@@ -1026,7 +1032,7 @@ declare namespace gapi.client {
1026
1032
  conditionBoostSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec[];
1027
1033
  }
1028
1034
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
1029
- /** Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored. */
1035
+ /** Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored. Only one of the (condition, boost) combination or the boost_control_spec below are set. If both are set then the global boost is ignored and the more fine-grained boost_control_spec is applied. */
1030
1036
  boost?: number;
1031
1037
  /** An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` */
1032
1038
  condition?: string;
@@ -1076,6 +1082,8 @@ declare namespace gapi.client {
1076
1082
  modelSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
1077
1083
  /** The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results can be used to generate a summary. */
1078
1084
  summaryResultCount?: number;
1085
+ /** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. Please note that with this feature enabled, not all top search results will be referenced and included in the reference list, so the citation source index only points to the search results listed in the reference list. */
1086
+ useSemanticChunks?: boolean;
1079
1087
  }
1080
1088
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec {
1081
1089
  /** Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. */
@@ -2771,6 +2779,37 @@ declare namespace gapi.client {
2771
2779
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2772
2780
  uploadType?: string;
2773
2781
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
2782
+ /** Gets the parsed layout information for a Document. */
2783
+ getProcessedDocument(request?: {
2784
+ /** V1 error format. */
2785
+ '$.xgafv'?: string;
2786
+ /** OAuth access token. */
2787
+ access_token?: string;
2788
+ /** Data format for response. */
2789
+ alt?: string;
2790
+ /** JSONP */
2791
+ callback?: string;
2792
+ /** Selector specifying which fields to include in a partial response. */
2793
+ fields?: string;
2794
+ /** 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. */
2795
+ key?: string;
2796
+ /** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
2797
+ name: string;
2798
+ /** OAuth 2.0 token for the current user. */
2799
+ oauth_token?: string;
2800
+ /** Returns response with indentations and line breaks. */
2801
+ prettyPrint?: boolean;
2802
+ /** What format output should be. If unspecified, defaults to JSON. */
2803
+ processedDocumentFormat?: string;
2804
+ /** Required. What type of processing to return. */
2805
+ processedDocumentType?: string;
2806
+ /** 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. */
2807
+ quotaUser?: string;
2808
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2809
+ upload_protocol?: string;
2810
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2811
+ uploadType?: string;
2812
+ }): Request<GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
2774
2813
  /** Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated. */
2775
2814
  import(request: {
2776
2815
  /** V1 error format. */
@@ -6579,6 +6618,37 @@ declare namespace gapi.client {
6579
6618
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6580
6619
  uploadType?: string;
6581
6620
  }): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
6621
+ /** Gets the parsed layout information for a Document. */
6622
+ getProcessedDocument(request?: {
6623
+ /** V1 error format. */
6624
+ '$.xgafv'?: string;
6625
+ /** OAuth access token. */
6626
+ access_token?: string;
6627
+ /** Data format for response. */
6628
+ alt?: string;
6629
+ /** JSONP */
6630
+ callback?: string;
6631
+ /** Selector specifying which fields to include in a partial response. */
6632
+ fields?: string;
6633
+ /** 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. */
6634
+ key?: string;
6635
+ /** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
6636
+ name: string;
6637
+ /** OAuth 2.0 token for the current user. */
6638
+ oauth_token?: string;
6639
+ /** Returns response with indentations and line breaks. */
6640
+ prettyPrint?: boolean;
6641
+ /** What format output should be. If unspecified, defaults to JSON. */
6642
+ processedDocumentFormat?: string;
6643
+ /** Required. What type of processing to return. */
6644
+ processedDocumentType?: string;
6645
+ /** 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. */
6646
+ quotaUser?: string;
6647
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6648
+ upload_protocol?: string;
6649
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6650
+ uploadType?: string;
6651
+ }): Request<GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
6582
6652
  /** Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated. */
6583
6653
  import(request: {
6584
6654
  /** 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.20240312",
3
+ "version": "0.0.20240318",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",