@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240817 → 0.0.20240829

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 +21 -5
  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: 20240817
12
+ // Revision: 20240829
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -487,6 +487,8 @@ declare namespace gapi.client {
487
487
  documentsMetadata?: GoogleCloudDiscoveryengineV1alphaBatchGetDocumentsMetadataResponseDocumentMetadata[];
488
488
  }
489
489
  interface GoogleCloudDiscoveryengineV1alphaBatchGetDocumentsMetadataResponseDocumentMetadata {
490
+ /** The data ingestion source of the Document. Allowed values are: * `batch`: Data ingested via Batch API, e.g., ImportDocuments. * `streaming` Data ingested via Streaming API, e.g., FHIR streaming. */
491
+ dataIngestionSource?: string;
490
492
  /** The timestamp of the last time the Document was last indexed. */
491
493
  lastRefreshedTime?: string;
492
494
  /** The value of the matcher that was used to match the Document. */
@@ -495,6 +497,8 @@ declare namespace gapi.client {
495
497
  status?: string;
496
498
  }
497
499
  interface GoogleCloudDiscoveryengineV1alphaBatchGetDocumentsMetadataResponseDocumentMetadataMatcherValue {
500
+ /** Required. Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} */
501
+ fhirResource?: string;
498
502
  /** If match by URI, the URI of the Document. */
499
503
  uri?: string;
500
504
  }
@@ -576,10 +580,8 @@ declare namespace gapi.client {
576
580
  claimText?: string;
577
581
  /** Position indicating the end of the claim in the answer candidate, exclusive. */
578
582
  endPos?: number;
579
- /** 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, and anti_citation_indices should not be returned. */
583
+ /** 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. */
580
584
  groundingCheckRequired?: boolean;
581
- /** Confidence score for the claim in the answer candidate, in the range of [0, 1]. */
582
- score?: number;
583
585
  /** Position indicating the start of the claim in the answer candidate, measured in bytes. */
584
586
  startPos?: number;
585
587
  }
@@ -947,6 +949,8 @@ declare namespace gapi.client {
947
949
  derivedStructData?: {[P in string]: any};
948
950
  /** Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. */
949
951
  id?: string;
952
+ /** Output only. The index status of the document. * If document is indexed successfully, the index_time field is populated. * Otherwise, if document is not indexed due to errors, the error_samples field is populated. * Otherwise, index_status is unset. */
953
+ indexStatus?: GoogleCloudDiscoveryengineV1alphaDocumentIndexStatus;
950
954
  /** Output only. The last time the document was indexed. If this field is set, the document could be returned in search results. This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed. */
951
955
  indexTime?: string;
952
956
  /** The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
@@ -978,6 +982,12 @@ declare namespace gapi.client {
978
982
  /** The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5 MB for text-based formats, 200 MB for other formats. */
979
983
  uri?: string;
980
984
  }
985
+ interface GoogleCloudDiscoveryengineV1alphaDocumentIndexStatus {
986
+ /** A sample of errors encountered while indexing the document. If this field is populated, the document is not indexed due to errors. */
987
+ errorSamples?: GoogleRpcStatus[];
988
+ /** The time when the document was indexed. If this field is populated, it means the document has been indexed. */
989
+ indexTime?: string;
990
+ }
981
991
  interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
982
992
  /** The Document resource ID. */
983
993
  id?: string;
@@ -2215,7 +2225,7 @@ declare namespace gapi.client {
2215
2225
  interface GoogleCloudDiscoveryengineV1alphaSearchResponse {
2216
2226
  /** Controls applied as part of the Control service. */
2217
2227
  appliedControls?: string[];
2218
- /** A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance. */
2228
+ /** A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance. This also helps to identify a request during the customer support scenarios. */
2219
2229
  attributionToken?: string;
2220
2230
  /** Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search. */
2221
2231
  correctedQuery?: string;
@@ -2322,6 +2332,8 @@ declare namespace gapi.client {
2322
2332
  comparison?: string;
2323
2333
  /** Name of the numerical field as defined in the schema. */
2324
2334
  fieldName?: string;
2335
+ /** Identifies the keywords within the search query that match a filter. */
2336
+ querySegment?: string;
2325
2337
  /** The value specified in the numerical constraint. */
2326
2338
  value?: number;
2327
2339
  }
@@ -4657,6 +4669,8 @@ declare namespace gapi.client {
4657
4669
  fields?: string;
4658
4670
  /** 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. */
4659
4671
  key?: string;
4672
+ /** Required. The FHIR resources to match by. Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} */
4673
+ 'matcher.fhirMatcher.fhirResources'?: string | string[];
4660
4674
  /** The exact URIs to match by. */
4661
4675
  'matcher.urisMatcher.uris'?: string | string[];
4662
4676
  /** OAuth 2.0 token for the current user. */
@@ -9853,6 +9867,8 @@ declare namespace gapi.client {
9853
9867
  fields?: string;
9854
9868
  /** 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. */
9855
9869
  key?: string;
9870
+ /** Required. The FHIR resources to match by. Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} */
9871
+ 'matcher.fhirMatcher.fhirResources'?: string | string[];
9856
9872
  /** The exact URIs to match by. */
9857
9873
  'matcher.urisMatcher.uris'?: string | string[];
9858
9874
  /** OAuth 2.0 token for the current user. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240817",
3
+ "version": "0.0.20240829",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",