@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20231130 → 0.0.20231209

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 +225 -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: 20231130
12
+ // Revision: 20231209
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -176,6 +176,8 @@ declare namespace gapi.client {
176
176
  interface GoogleCloudDiscoveryengineV1alphaConverseConversationRequest {
177
177
  /** The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session. */
178
178
  conversation?: GoogleCloudDiscoveryengineV1alphaConversation;
179
+ /** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the summary response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
180
+ filter?: string;
179
181
  /** Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. */
180
182
  name?: string;
181
183
  /** Required. Current user input. */
@@ -418,6 +420,40 @@ declare namespace gapi.client {
418
420
  searchTier?: string;
419
421
  }
420
422
  interface GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig {}
423
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata {
424
+ /** Operation create time. */
425
+ createTime?: string;
426
+ }
427
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest {
428
+ /** Structured or unstructured data. */
429
+ fileDataSource?: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource;
430
+ /** Website data. */
431
+ websiteDataSource?: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource;
432
+ }
433
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource {
434
+ /** BigQuery input source. */
435
+ bigquerySource?: GoogleCloudDiscoveryengineV1alphaBigQuerySource;
436
+ /** Cloud Storage location for the input content. */
437
+ gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
438
+ }
439
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource {
440
+ /** Required. The URI patterns to estimate the data sizes. At most 10 patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown. */
441
+ estimatorUriPatterns?: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern[];
442
+ }
443
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern {
444
+ /** Whether we infer the generated URI or use the exact provided one. */
445
+ exactMatch?: boolean;
446
+ /** Whether the pattern is exclusive or not. If set to true, the pattern is considered exclusive. If unset or set to false, the pattern is considered inclusive by default. */
447
+ exclusive?: boolean;
448
+ /** User provided URI pattern. For example, `foo.com/bar/*`. */
449
+ providedUriPattern?: string;
450
+ }
451
+ interface GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse {
452
+ /** Data size in terms of bytes. */
453
+ dataSizeBytes?: string;
454
+ /** Total number of documents. */
455
+ documentCount?: string;
456
+ }
421
457
  interface GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse {
422
458
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
423
459
  nextPageToken?: string;
@@ -849,13 +885,19 @@ declare namespace gapi.client {
849
885
  includeCitations?: boolean;
850
886
  /** Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature. */
851
887
  languageCode?: string;
888
+ /** If specified, the spec will be used to modify the prompt provided to the LLM. */
889
+ modelPromptSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec;
852
890
  /** If specified, the spec will be used to modify the model specification provided to the LLM. */
853
891
  modelSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
854
892
  /** 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 five results can be used to generate a summary. */
855
893
  summaryResultCount?: number;
856
894
  }
895
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec {
896
+ /** Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. */
897
+ preamble?: string;
898
+ }
857
899
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec {
858
- /** The string format of the model version. e.g. stable, latest, etc. */
900
+ /** The string format of the model version. e.g. stable, preview, etc. */
859
901
  version?: string;
860
902
  }
861
903
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
@@ -990,6 +1032,31 @@ declare namespace gapi.client {
990
1032
  summarySkippedReasons?: string[];
991
1033
  /** The summary content. */
992
1034
  summaryText?: string;
1035
+ summaryWithMetadata?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata;
1036
+ }
1037
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation {
1038
+ /** End of the attributed segment, exclusive. */
1039
+ endIndex?: string;
1040
+ /** Citation sources for the attributed segment. */
1041
+ sources?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource[];
1042
+ /** Index indicates the start of the segment, measured in bytes/unicode. */
1043
+ startIndex?: string;
1044
+ }
1045
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata {
1046
+ /** Citations for segments. */
1047
+ citations?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation[];
1048
+ }
1049
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource {
1050
+ /** Document reference index from SummaryWithMetadata.references. It is 0-indexed and the value will be zero if the reference_index is not set explicitly. */
1051
+ referenceIndex?: string;
1052
+ }
1053
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference {
1054
+ /** Required. Document.name of the document. Full resource name of the referenced document, in the format `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/branches/*‍/documents/*`. */
1055
+ document?: string;
1056
+ /** Title of the document. */
1057
+ title?: string;
1058
+ /** GCS or HTTP uri for the document. */
1059
+ uri?: string;
993
1060
  }
994
1061
  interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes {
995
1062
  /** The display names of Safety Attribute categories associated with the generated content. Order matches the Scores. */
@@ -997,6 +1064,14 @@ declare namespace gapi.client {
997
1064
  /** The confidence scores of the each category, higher value means higher confidence. Order matches the Categories. */
998
1065
  scores?: number[];
999
1066
  }
1067
+ interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata {
1068
+ /** Citation metadata for given summary. */
1069
+ citationMetadata?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata;
1070
+ /** Document References. */
1071
+ references?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference[];
1072
+ /** Summary text with no citation information. */
1073
+ summary?: string;
1074
+ }
1000
1075
  interface GoogleCloudDiscoveryengineV1alphaSiteSearchEngine {
1001
1076
  /** The fully qualified resource name of the site search engine. Format: `projects/*‍/locations/*‍/dataStores/*‍/siteSearchEngine` */
1002
1077
  name?: string;
@@ -1038,6 +1113,38 @@ declare namespace gapi.client {
1038
1113
  /** Text input. */
1039
1114
  input?: string;
1040
1115
  }
1116
+ interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata {
1117
+ /** Operation create time. */
1118
+ createTime?: string;
1119
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1120
+ updateTime?: string;
1121
+ }
1122
+ interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest {
1123
+ /** The desired location of errors incurred during the data ingestion and training. */
1124
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
1125
+ /** Gcs training input. */
1126
+ gcsTrainingInput?: GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput;
1127
+ /** Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided. */
1128
+ modelType?: string;
1129
+ }
1130
+ interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput {
1131
+ /** The gcs corpus data which could be associated in train data. The data path format is gs:///. A newline delimited jsonl/ndjson file. * For search-tuning model, each line should have the _id, title and text. Example: {"_id": "doc1", title: "relevant doc", "text": "relevant text"} */
1132
+ corpusDataPath?: string;
1133
+ /** The gcs query data which could be associated in train data. The data path format is gs:///. A newline delimited jsonl/ndjson file. * For search-tuning model, each line should have the _id and text. Example: {"_id": "query1", "text": "example query"} */
1134
+ queryDataPath?: string;
1135
+ /** Gcs test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path. */
1136
+ testDataPath?: string;
1137
+ /** Gcs training data path whose format should be gs:///. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). * For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in [0, inf+). The larger the number is, the more relevant the pair is. Example: query-id\tcorpus-id\tscore query1\tdoc1\t1 */
1138
+ trainDataPath?: string;
1139
+ }
1140
+ interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse {
1141
+ /** Echoes the destination for the complete errors in the request if set. */
1142
+ errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
1143
+ /** A sample of errors encountered while processing the data. */
1144
+ errorSamples?: GoogleRpcStatus[];
1145
+ /** The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training is in progress. * **ready**: The model is ready for serving. */
1146
+ modelStatus?: string;
1147
+ }
1041
1148
  interface GoogleCloudDiscoveryengineV1alphaTransactionInfo {
1042
1149
  /** All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that: * Profit = value - tax - cost */
1043
1150
  cost?: number;
@@ -4047,6 +4154,64 @@ declare namespace gapi.client {
4047
4154
  },
4048
4155
  body: GoogleCloudDiscoveryengineV1alphaDataStore
4049
4156
  ): Request<GoogleCloudDiscoveryengineV1alphaDataStore>;
4157
+ /** Trains a custom model. */
4158
+ trainCustomModel(request: {
4159
+ /** V1 error format. */
4160
+ '$.xgafv'?: string;
4161
+ /** OAuth access token. */
4162
+ access_token?: string;
4163
+ /** Data format for response. */
4164
+ alt?: string;
4165
+ /** JSONP */
4166
+ callback?: string;
4167
+ /** Required. The resource name of the Data Store, such as `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models. */
4168
+ dataStore: string;
4169
+ /** Selector specifying which fields to include in a partial response. */
4170
+ fields?: string;
4171
+ /** 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. */
4172
+ key?: string;
4173
+ /** OAuth 2.0 token for the current user. */
4174
+ oauth_token?: string;
4175
+ /** Returns response with indentations and line breaks. */
4176
+ prettyPrint?: boolean;
4177
+ /** 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. */
4178
+ quotaUser?: string;
4179
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4180
+ upload_protocol?: string;
4181
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4182
+ uploadType?: string;
4183
+ /** Request body */
4184
+ resource: GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest;
4185
+ }): Request<GoogleLongrunningOperation>;
4186
+ trainCustomModel(
4187
+ request: {
4188
+ /** V1 error format. */
4189
+ '$.xgafv'?: string;
4190
+ /** OAuth access token. */
4191
+ access_token?: string;
4192
+ /** Data format for response. */
4193
+ alt?: string;
4194
+ /** JSONP */
4195
+ callback?: string;
4196
+ /** Required. The resource name of the Data Store, such as `projects/*‍/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models. */
4197
+ dataStore: string;
4198
+ /** Selector specifying which fields to include in a partial response. */
4199
+ fields?: string;
4200
+ /** 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. */
4201
+ key?: string;
4202
+ /** OAuth 2.0 token for the current user. */
4203
+ oauth_token?: string;
4204
+ /** Returns response with indentations and line breaks. */
4205
+ prettyPrint?: boolean;
4206
+ /** 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. */
4207
+ quotaUser?: string;
4208
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4209
+ upload_protocol?: string;
4210
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4211
+ uploadType?: string;
4212
+ },
4213
+ body: GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
4214
+ ): Request<GoogleLongrunningOperation>;
4050
4215
  branches: BranchesResource;
4051
4216
  conversations: ConversationsResource;
4052
4217
  models: ModelsResource;
@@ -7078,6 +7243,64 @@ declare namespace gapi.client {
7078
7243
  }): Request<GoogleLongrunningListOperationsResponse>;
7079
7244
  }
7080
7245
  interface LocationsResource {
7246
+ /** Estimates the data size to be used by a customer. */
7247
+ estimateDataSize(request: {
7248
+ /** V1 error format. */
7249
+ '$.xgafv'?: string;
7250
+ /** OAuth access token. */
7251
+ access_token?: string;
7252
+ /** Data format for response. */
7253
+ alt?: string;
7254
+ /** JSONP */
7255
+ callback?: string;
7256
+ /** Selector specifying which fields to include in a partial response. */
7257
+ fields?: string;
7258
+ /** 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. */
7259
+ key?: string;
7260
+ /** Required. Full resource name of the Location, such as `projects/{project}/locations/{location}`. */
7261
+ location: string;
7262
+ /** OAuth 2.0 token for the current user. */
7263
+ oauth_token?: string;
7264
+ /** Returns response with indentations and line breaks. */
7265
+ prettyPrint?: boolean;
7266
+ /** 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. */
7267
+ quotaUser?: string;
7268
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7269
+ upload_protocol?: string;
7270
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7271
+ uploadType?: string;
7272
+ /** Request body */
7273
+ resource: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest;
7274
+ }): Request<GoogleLongrunningOperation>;
7275
+ estimateDataSize(
7276
+ request: {
7277
+ /** V1 error format. */
7278
+ '$.xgafv'?: string;
7279
+ /** OAuth access token. */
7280
+ access_token?: string;
7281
+ /** Data format for response. */
7282
+ alt?: string;
7283
+ /** JSONP */
7284
+ callback?: string;
7285
+ /** Selector specifying which fields to include in a partial response. */
7286
+ fields?: string;
7287
+ /** 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. */
7288
+ key?: string;
7289
+ /** Required. Full resource name of the Location, such as `projects/{project}/locations/{location}`. */
7290
+ location: string;
7291
+ /** OAuth 2.0 token for the current user. */
7292
+ oauth_token?: string;
7293
+ /** Returns response with indentations and line breaks. */
7294
+ prettyPrint?: boolean;
7295
+ /** 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. */
7296
+ quotaUser?: string;
7297
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
7298
+ upload_protocol?: string;
7299
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
7300
+ uploadType?: string;
7301
+ },
7302
+ body: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
7303
+ ): Request<GoogleLongrunningOperation>;
7081
7304
  collections: CollectionsResource;
7082
7305
  dataStores: DataStoresResource;
7083
7306
  operations: OperationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20231130",
3
+ "version": "0.0.20231209",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",