@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250306 → 0.0.20250314

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 +119 -4
  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: 20250306
12
+ // Revision: 20250314
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -498,6 +498,18 @@ declare namespace gapi.client {
498
498
  /** If set true, initial indexing is disabled for the DataStore. */
499
499
  disableInitialIndex?: boolean;
500
500
  }
501
+ interface GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig {
502
+ /** Optional. The enrollment states of each alert. */
503
+ alertEnrollments?: GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment[];
504
+ /** Immutable. The fully qualified resource name of the AlertPolicy. */
505
+ alertPolicyName?: string;
506
+ }
507
+ interface GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment {
508
+ /** Immutable. The id of an alert. */
509
+ alertId?: string;
510
+ /** Required. The enrollment status of a customer. */
511
+ enrollState?: string;
512
+ }
501
513
  interface GoogleCloudDiscoveryengineV1alphaAlloyDbSource {
502
514
  /** Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters. */
503
515
  clusterId?: string;
@@ -517,6 +529,8 @@ declare namespace gapi.client {
517
529
  answerSkippedReasons?: string[];
518
530
  /** The textual answer. */
519
531
  answerText?: string;
532
+ /** List of blob attachments in the answer. */
533
+ blobAttachments?: GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment[];
520
534
  /** Citations. */
521
535
  citations?: GoogleCloudDiscoveryengineV1alphaAnswerCitation[];
522
536
  /** Output only. Answer completed timestamp. */
@@ -542,6 +556,18 @@ declare namespace gapi.client {
542
556
  /** Answer generation steps. */
543
557
  steps?: GoogleCloudDiscoveryengineV1alphaAnswerStep[];
544
558
  }
559
+ interface GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment {
560
+ /** Output only. The attribution type of the blob. */
561
+ attributionType?: string;
562
+ /** Output only. The mime type and data of the blob. */
563
+ data?: GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachmentBlob;
564
+ }
565
+ interface GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachmentBlob {
566
+ /** Output only. Raw bytes. */
567
+ data?: string;
568
+ /** Output only. The media type (MIME type) of the generated or retrieved data. */
569
+ mimeType?: string;
570
+ }
545
571
  interface GoogleCloudDiscoveryengineV1alphaAnswerCitation {
546
572
  /** 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. */
547
573
  endIndex?: string;
@@ -607,6 +633,8 @@ declare namespace gapi.client {
607
633
  includeCitations?: boolean;
608
634
  /** Answer generation model specification. */
609
635
  modelSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec;
636
+ /** Optional. Multimodal specification. */
637
+ multimodalSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec;
610
638
  /** Answer generation prompt specification. */
611
639
  promptSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec;
612
640
  }
@@ -614,6 +642,10 @@ declare namespace gapi.client {
614
642
  /** Model version. If not set, it will use the default stable model. Allowed values are: stable, preview. */
615
643
  modelVersion?: string;
616
644
  }
645
+ interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec {
646
+ /** Optional. Source of image returned in the answer. */
647
+ imageSource?: string;
648
+ }
617
649
  interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec {
618
650
  /** Customized preamble. */
619
651
  preamble?: string;
@@ -643,6 +675,8 @@ declare namespace gapi.client {
643
675
  includeGroundingSupports?: boolean;
644
676
  }
645
677
  interface GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec {
678
+ /** Optional. Whether to disable spell correction. The default value is `false`. */
679
+ disableSpellCorrection?: boolean;
646
680
  /** Query classification specification. */
647
681
  queryClassificationSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec;
648
682
  /** Query rephraser specification. */
@@ -787,6 +821,8 @@ declare namespace gapi.client {
787
821
  unstructuredDocumentInfo?: GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo;
788
822
  }
789
823
  interface GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo {
824
+ /** Output only. Stores indexes of blobattachments linked to this chunk. */
825
+ blobAttachmentIndexes?: string[];
790
826
  /** Chunk resource name. */
791
827
  chunk?: string;
792
828
  /** Chunk textual content. */
@@ -831,6 +867,8 @@ declare namespace gapi.client {
831
867
  uri?: string;
832
868
  }
833
869
  interface GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent {
870
+ /** Output only. Stores indexes of blobattachments linked to this chunk. */
871
+ blobAttachmentIndexes?: string[];
834
872
  /** Chunk textual content. */
835
873
  content?: string;
836
874
  /** Page identifier. */
@@ -1114,6 +1152,8 @@ declare namespace gapi.client {
1114
1152
  lastRotationTimestampMicros?: string;
1115
1153
  /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
1116
1154
  name?: string;
1155
+ /** Output only. Whether the NotebookLM Corpus is ready to be used. */
1156
+ notebooklmState?: string;
1117
1157
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
1118
1158
  singleRegionKeys?: GoogleCloudDiscoveryengineV1alphaSingleRegionKey[];
1119
1159
  /** Output only. The states of the CmekConfig. */
@@ -1437,6 +1477,8 @@ declare namespace gapi.client {
1437
1477
  interface GoogleCloudDiscoveryengineV1alphaDataConnector {
1438
1478
  /** Optional. Action configurations to make the connector support actions. */
1439
1479
  actionConfig?: GoogleCloudDiscoveryengineV1alphaActionConfig;
1480
+ /** Optional. The connector level alert config. */
1481
+ alertPolicyConfigs?: GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig[];
1440
1482
  /** Indicates whether the connector is disabled for auto run. It can be used to pause periodical and real time sync. */
1441
1483
  autoRunDisabled?: boolean;
1442
1484
  /** Optional. The configuration for establishing a BAP connection. */
@@ -2930,7 +2972,7 @@ declare namespace gapi.client {
2930
2972
  imageUri?: string;
2931
2973
  /** Required. The title of the promotion. Maximum length: 160 characters. */
2932
2974
  title?: string;
2933
- /** Required. The URL for the page the user wants to promote. */
2975
+ /** Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional. */
2934
2976
  uri?: string;
2935
2977
  }
2936
2978
  interface GoogleCloudDiscoveryengineV1alphaSearchRequest {
@@ -3090,6 +3132,8 @@ declare namespace gapi.client {
3090
3132
  modelPromptSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec;
3091
3133
  /** If specified, the spec will be used to modify the model specification provided to the LLM. */
3092
3134
  modelSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
3135
+ /** Optional. Multimodal specification. */
3136
+ multimodalSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMultiModalSpec;
3093
3137
  /** 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 for documents mode, or 50 for chunks mode, can be used to generate a summary. The chunks mode is used when SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
3094
3138
  summaryResultCount?: number;
3095
3139
  /** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. 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. */
@@ -3103,6 +3147,10 @@ declare namespace gapi.client {
3103
3147
  /** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). * `preview`: string. (Public preview) Uses a preview model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). */
3104
3148
  version?: string;
3105
3149
  }
3150
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMultiModalSpec {
3151
+ /** Optional. Source of image returned in the answer. */
3152
+ imageSource?: string;
3153
+ }
3106
3154
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
3107
3155
  /** Optional. Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
3108
3156
  boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
@@ -3368,6 +3416,18 @@ declare namespace gapi.client {
3368
3416
  /** Summary with metadata information. */
3369
3417
  summaryWithMetadata?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata;
3370
3418
  }
3419
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryBlobAttachment {
3420
+ /** Output only. The attribution type of the blob. */
3421
+ attributionType?: string;
3422
+ /** Output only. The blob data. */
3423
+ data?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryBlobAttachmentBlob;
3424
+ }
3425
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryBlobAttachmentBlob {
3426
+ /** Output only. Raw bytes. */
3427
+ data?: string;
3428
+ /** Output only. The media type (MIME type) of the generated data. */
3429
+ mimeType?: string;
3430
+ }
3371
3431
  interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation {
3372
3432
  /** End of the attributed segment, exclusive. */
3373
3433
  endIndex?: string;
@@ -3395,6 +3455,8 @@ declare namespace gapi.client {
3395
3455
  uri?: string;
3396
3456
  }
3397
3457
  interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent {
3458
+ /** Output only. Stores indexes of blobattachments linked to this chunk. */
3459
+ blobAttachmentIndexes?: string[];
3398
3460
  /** Chunk textual content. */
3399
3461
  content?: string;
3400
3462
  /** Page identifier. */
@@ -3407,6 +3469,8 @@ declare namespace gapi.client {
3407
3469
  scores?: number[];
3408
3470
  }
3409
3471
  interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata {
3472
+ /** Output only. Store multimodal data for answer enhancement. */
3473
+ blobAttachments?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryBlobAttachment[];
3410
3474
  /** Citation metadata for given summary. */
3411
3475
  citationMetadata?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata;
3412
3476
  /** Document References. */
@@ -3861,6 +3925,8 @@ declare namespace gapi.client {
3861
3925
  allowPublicAccess?: boolean;
3862
3926
  /** Whether web app access is enabled. */
3863
3927
  enableWebApp?: boolean;
3928
+ /** Optional. Language code for user interface. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). If unset, the default language code is "en-US". */
3929
+ languageCode?: string;
3864
3930
  /** Optional. The workforce identity pool provider used to access the widget. */
3865
3931
  workforceIdentityPoolProvider?: string;
3866
3932
  }
@@ -4039,6 +4105,8 @@ declare namespace gapi.client {
4039
4105
  lastRotationTimestampMicros?: string;
4040
4106
  /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
4041
4107
  name?: string;
4108
+ /** Output only. Whether the NotebookLM Corpus is ready to be used. */
4109
+ notebooklmState?: string;
4042
4110
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
4043
4111
  singleRegionKeys?: GoogleCloudDiscoveryengineV1betaSingleRegionKey[];
4044
4112
  /** Output only. The states of the CmekConfig. */
@@ -4669,7 +4737,7 @@ declare namespace gapi.client {
4669
4737
  imageUri?: string;
4670
4738
  /** Required. The title of the promotion. Maximum length: 160 characters. */
4671
4739
  title?: string;
4672
- /** Required. The URL for the page the user wants to promote. */
4740
+ /** Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional. */
4673
4741
  uri?: string;
4674
4742
  }
4675
4743
  interface GoogleCloudDiscoveryengineV1betaSearchRequest {
@@ -4683,6 +4751,8 @@ declare namespace gapi.client {
4683
4751
  contentSearchSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec;
4684
4752
  /** Specifications that define the specific [DataStore]s to be searched, along with 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. */
4685
4753
  dataStoreSpecs?: GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec[];
4754
+ /** Optional. Config for display feature, like match highlighting on search results. */
4755
+ displaySpec?: GoogleCloudDiscoveryengineV1betaSearchRequestDisplaySpec;
4686
4756
  /** 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. */
4687
4757
  embeddingSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec;
4688
4758
  /** 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. */
@@ -4825,6 +4895,8 @@ declare namespace gapi.client {
4825
4895
  modelPromptSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec;
4826
4896
  /** If specified, the spec will be used to modify the model specification provided to the LLM. */
4827
4897
  modelSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec;
4898
+ /** Optional. Multimodal specification. */
4899
+ multimodalSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMultiModalSpec;
4828
4900
  /** 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 for documents mode, or 50 for chunks mode, can be used to generate a summary. The chunks mode is used when SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
4829
4901
  summaryResultCount?: number;
4830
4902
  /** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. 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. */
@@ -4838,6 +4910,10 @@ declare namespace gapi.client {
4838
4910
  /** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). * `preview`: string. (Public preview) Uses a preview model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). */
4839
4911
  version?: string;
4840
4912
  }
4913
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMultiModalSpec {
4914
+ /** Optional. Source of image returned in the answer. */
4915
+ imageSource?: string;
4916
+ }
4841
4917
  interface GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec {
4842
4918
  /** Optional. Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
4843
4919
  boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
@@ -4846,6 +4922,10 @@ declare namespace gapi.client {
4846
4922
  /** 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) */
4847
4923
  filter?: string;
4848
4924
  }
4925
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestDisplaySpec {
4926
+ /** The condition under which match highlighting should occur. */
4927
+ matchHighlightingCondition?: string;
4928
+ }
4849
4929
  interface GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec {
4850
4930
  /** The embedding vector used for retrieval. Limit to 1. */
4851
4931
  embeddingVectors?: GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector[];
@@ -5042,6 +5122,8 @@ declare namespace gapi.client {
5042
5122
  lastRotationTimestampMicros?: string;
5043
5123
  /** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
5044
5124
  name?: string;
5125
+ /** Output only. Whether the NotebookLM Corpus is ready to be used. */
5126
+ notebooklmState?: string;
5045
5127
  /** Optional. Single-regional CMEKs that are required for some VAIS features. */
5046
5128
  singleRegionKeys?: GoogleCloudDiscoveryengineV1SingleRegionKey[];
5047
5129
  /** Output only. The states of the CmekConfig. */
@@ -5551,7 +5633,7 @@ declare namespace gapi.client {
5551
5633
  imageUri?: string;
5552
5634
  /** Required. The title of the promotion. Maximum length: 160 characters. */
5553
5635
  title?: string;
5554
- /** Required. The URL for the page the user wants to promote. */
5636
+ /** Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional. */
5555
5637
  uri?: string;
5556
5638
  }
5557
5639
  interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec {
@@ -16515,6 +16597,38 @@ declare namespace gapi.client {
16515
16597
  uploadType?: string;
16516
16598
  }): Request<GoogleLongrunningListOperationsResponse>;
16517
16599
  }
16600
+ interface OperationsResource {
16601
+ /** 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. */
16602
+ get(request?: {
16603
+ /** V1 error format. */
16604
+ '$.xgafv'?: string;
16605
+ /** OAuth access token. */
16606
+ access_token?: string;
16607
+ /** Data format for response. */
16608
+ alt?: string;
16609
+ /** JSONP */
16610
+ callback?: string;
16611
+ /** Selector specifying which fields to include in a partial response. */
16612
+ fields?: string;
16613
+ /** 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. */
16614
+ key?: string;
16615
+ /** The name of the operation resource. */
16616
+ name: string;
16617
+ /** OAuth 2.0 token for the current user. */
16618
+ oauth_token?: string;
16619
+ /** Returns response with indentations and line breaks. */
16620
+ prettyPrint?: boolean;
16621
+ /** 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. */
16622
+ quotaUser?: string;
16623
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
16624
+ upload_protocol?: string;
16625
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
16626
+ uploadType?: string;
16627
+ }): Request<GoogleLongrunningOperation>;
16628
+ }
16629
+ interface PodcastsResource {
16630
+ operations: OperationsResource;
16631
+ }
16518
16632
  interface RankingConfigsResource {
16519
16633
  /** Ranks a list of text records based on the given input query. */
16520
16634
  rank(request: {
@@ -17838,6 +17952,7 @@ declare namespace gapi.client {
17838
17952
  groundingConfigs: GroundingConfigsResource;
17839
17953
  identityMappingStores: IdentityMappingStoresResource;
17840
17954
  operations: OperationsResource;
17955
+ podcasts: PodcastsResource;
17841
17956
  rankingConfigs: RankingConfigsResource;
17842
17957
  requirements: RequirementsResource;
17843
17958
  sampleQuerySets: SampleQuerySetsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250306",
3
+ "version": "0.0.20250314",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",