@google-cloud/discoveryengine 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/README.md +33 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +30 -2
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +15 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +114 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +303 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +8 -5
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +27 -23
- package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +428 -20
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +48 -39
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +155 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +134 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +138 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +121 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +318 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +343 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +159 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +221 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +312 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +260 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +851 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +152 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +475 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +154 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +9 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +25 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +115 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -0
- package/build/protos/protos.d.ts +22864 -6680
- package/build/protos/protos.js +57205 -16191
- package/build/protos/protos.json +5548 -1224
- package/build/src/index.d.ts +6 -1
- package/build/src/index.js +7 -1
- package/build/src/v1/completion_service_client.d.ts +156 -6
- package/build/src/v1/completion_service_client.js +188 -4
- package/build/src/v1/conversational_search_service_client.d.ts +947 -0
- package/build/src/v1/conversational_search_service_client.js +1205 -0
- package/build/src/v1/conversational_search_service_client_config.json +68 -0
- package/build/src/v1/document_service_client.d.ts +165 -18
- package/build/src/v1/document_service_client.js +215 -11
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/schema_service_client.d.ts +148 -4
- package/build/src/v1/schema_service_client.js +207 -5
- package/build/src/v1/search_service_client.d.ts +238 -28
- package/build/src/v1/search_service_client.js +248 -20
- package/build/src/v1/user_event_service_client.d.ts +153 -9
- package/build/src/v1/user_event_service_client.js +207 -5
- package/build/src/v1alpha/completion_service_client.d.ts +603 -0
- package/build/src/v1alpha/completion_service_client.js +843 -0
- package/build/src/v1alpha/completion_service_client_config.json +43 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +998 -0
- package/build/src/v1alpha/conversational_search_service_client.js +1275 -0
- package/build/src/v1alpha/conversational_search_service_client_config.json +68 -0
- package/build/src/v1alpha/document_service_client.d.ts +1140 -0
- package/build/src/v1alpha/document_service_client.js +1393 -0
- package/build/src/v1alpha/document_service_client_config.json +82 -0
- package/build/src/v1alpha/index.d.ts +8 -0
- package/build/src/v1alpha/index.js +37 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +735 -0
- package/build/src/v1alpha/recommendation_service_client.js +938 -0
- package/build/src/v1alpha/recommendation_service_client_config.json +43 -0
- package/build/src/v1alpha/schema_service_client.d.ts +935 -0
- package/build/src/v1alpha/schema_service_client.js +1327 -0
- package/build/src/v1alpha/schema_service_client_config.json +63 -0
- package/build/src/v1alpha/search_service_client.d.ts +1208 -0
- package/build/src/v1alpha/search_service_client.js +1432 -0
- package/build/src/v1alpha/search_service_client_config.json +43 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +704 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +1087 -0
- package/build/src/v1alpha/site_search_engine_service_client_config.json +30 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +853 -0
- package/build/src/v1alpha/user_event_service_client.js +1174 -0
- package/build/src/v1alpha/user_event_service_client_config.json +67 -0
- package/build/src/v1beta/completion_service_client.d.ts +55 -4
- package/build/src/v1beta/completion_service_client.js +60 -4
- package/build/src/v1beta/conversational_search_service_client.d.ts +75 -4
- package/build/src/v1beta/conversational_search_service_client.js +60 -4
- package/build/src/v1beta/document_service_client.d.ts +55 -4
- package/build/src/v1beta/document_service_client.js +61 -5
- package/build/src/v1beta/recommendation_service_client.d.ts +55 -4
- package/build/src/v1beta/recommendation_service_client.js +60 -4
- package/build/src/v1beta/schema_service_client.d.ts +55 -4
- package/build/src/v1beta/schema_service_client.js +61 -5
- package/build/src/v1beta/search_service_client.d.ts +142 -4
- package/build/src/v1beta/search_service_client.js +118 -4
- package/build/src/v1beta/user_event_service_client.d.ts +55 -4
- package/build/src/v1beta/user_event_service_client.js +61 -5
- package/package.json +5 -5
@@ -59,8 +59,11 @@ message Document {
|
|
59
59
|
|
60
60
|
// The MIME type of the content. Supported types:
|
61
61
|
//
|
62
|
-
// * `application/pdf` (PDF)
|
62
|
+
// * `application/pdf` (PDF, only native PDFs are supported for now)
|
63
63
|
// * `text/html` (HTML)
|
64
|
+
// * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
|
65
|
+
// * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
|
66
|
+
// * `text/plain` (TXT)
|
64
67
|
//
|
65
68
|
// See https://www.iana.org/assignments/media-types/media-types.xhtml.
|
66
69
|
string mime_type = 1;
|
@@ -72,13 +75,13 @@ message Document {
|
|
72
75
|
// provided otherwise an `INVALID_ARGUMENT` error is thrown.
|
73
76
|
oneof data {
|
74
77
|
// The structured JSON data for the document. It should conform to the
|
75
|
-
// registered [Schema
|
76
|
-
//
|
78
|
+
// registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
|
79
|
+
// `INVALID_ARGUMENT` error is thrown.
|
77
80
|
google.protobuf.Struct struct_data = 4;
|
78
81
|
|
79
82
|
// The JSON string representation of the document. It should conform to the
|
80
|
-
// registered [Schema
|
81
|
-
//
|
83
|
+
// registered [Schema][google.cloud.discoveryengine.v1.Schema] or an
|
84
|
+
// `INVALID_ARGUMENT` error is thrown.
|
82
85
|
string json_data = 5;
|
83
86
|
}
|
84
87
|
|
@@ -187,9 +187,10 @@ message ListDocumentsRequest {
|
|
187
187
|
// Use `default_branch` as the branch ID, to list documents under the default
|
188
188
|
// branch.
|
189
189
|
//
|
190
|
-
// If the caller does not have permission to list
|
191
|
-
//
|
192
|
-
// `PERMISSION_DENIED`
|
190
|
+
// If the caller does not have permission to list
|
191
|
+
// [Document][google.cloud.discoveryengine.v1.Document]s under this branch,
|
192
|
+
// regardless of whether or not this branch exists, a `PERMISSION_DENIED`
|
193
|
+
// error is returned.
|
193
194
|
string parent = 1 [
|
194
195
|
(google.api.field_behavior) = REQUIRED,
|
195
196
|
(google.api.resource_reference) = {
|
@@ -54,11 +54,15 @@ message GcsSource {
|
|
54
54
|
// document must
|
55
55
|
// have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id].
|
56
56
|
// * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by
|
57
|
-
// `input_uris`
|
57
|
+
// `input_uris` becomes a document, with the ID set to the first 128
|
58
58
|
// bits of SHA256(URI) encoded as a hex string.
|
59
59
|
// * `custom`: One custom data JSON per row in arbitrary format that conforms
|
60
|
-
// the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the
|
61
|
-
// store. This can only be used by
|
60
|
+
// to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the
|
61
|
+
// data store. This can only be used by Gen App Builder.
|
62
|
+
// * `csv`: A CSV file with header conforming to the defined
|
63
|
+
// [Schema][google.cloud.discoveryengine.v1.Schema] of the
|
64
|
+
// data store. Each entry after the header is imported as a Document.
|
65
|
+
// This can only be used by Gen App Builder.
|
62
66
|
//
|
63
67
|
// Supported values for user even imports:
|
64
68
|
//
|
@@ -110,9 +114,9 @@ message BigQuerySource {
|
|
110
114
|
// [Document.json_data][google.cloud.discoveryengine.v1.Document.json_data]
|
111
115
|
// or
|
112
116
|
// [Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data].
|
113
|
-
// * `custom`: One custom data per row in arbitrary format that conforms
|
114
|
-
// defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data
|
115
|
-
// store. This can only be used by
|
117
|
+
// * `custom`: One custom data per row in arbitrary format that conforms to
|
118
|
+
// the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data
|
119
|
+
// store. This can only be used by Gen App Builder.
|
116
120
|
string data_schema = 6;
|
117
121
|
}
|
118
122
|
|
@@ -121,7 +125,7 @@ message ImportErrorConfig {
|
|
121
125
|
// Required. Errors destination.
|
122
126
|
oneof destination {
|
123
127
|
// Cloud Storage prefix for import errors. This must be an empty,
|
124
|
-
// existing Cloud Storage directory. Import errors
|
128
|
+
// existing Cloud Storage directory. Import errors are written to
|
125
129
|
// sharded files in this directory, one per line, as a JSON-encoded
|
126
130
|
// `google.rpc.Status` message.
|
127
131
|
string gcs_prefix = 1;
|
@@ -136,16 +140,16 @@ message ImportUserEventsRequest {
|
|
136
140
|
repeated UserEvent user_events = 1 [(google.api.field_behavior) = REQUIRED];
|
137
141
|
}
|
138
142
|
|
139
|
-
// The desired input source of the user event data.
|
143
|
+
// Required - The desired input source of the user event data.
|
140
144
|
oneof source {
|
141
|
-
//
|
142
|
-
InlineSource inline_source = 2
|
145
|
+
// The Inline source for the input content for UserEvents.
|
146
|
+
InlineSource inline_source = 2;
|
143
147
|
|
144
|
-
//
|
145
|
-
GcsSource gcs_source = 3
|
148
|
+
// Cloud Storage location for the input content.
|
149
|
+
GcsSource gcs_source = 3;
|
146
150
|
|
147
|
-
//
|
148
|
-
BigQuerySource bigquery_source = 4
|
151
|
+
// BigQuery input source.
|
152
|
+
BigQuerySource bigquery_source = 4;
|
149
153
|
}
|
150
154
|
|
151
155
|
// Required. Parent DataStore resource name, of the form
|
@@ -181,7 +185,7 @@ message ImportUserEventsResponse {
|
|
181
185
|
int64 unjoined_events_count = 4;
|
182
186
|
}
|
183
187
|
|
184
|
-
// Metadata related to the progress of the Import operation. This
|
188
|
+
// Metadata related to the progress of the Import operation. This is
|
185
189
|
// returned by the google.longrunning.Operation.metadata field.
|
186
190
|
message ImportUserEventsMetadata {
|
187
191
|
// Operation create time.
|
@@ -198,8 +202,8 @@ message ImportUserEventsMetadata {
|
|
198
202
|
int64 failure_count = 4;
|
199
203
|
}
|
200
204
|
|
201
|
-
// Metadata related to the progress of the ImportDocuments operation. This
|
202
|
-
//
|
205
|
+
// Metadata related to the progress of the ImportDocuments operation. This is
|
206
|
+
// returned by the google.longrunning.Operation.metadata field.
|
203
207
|
message ImportDocumentsMetadata {
|
204
208
|
// Operation create time.
|
205
209
|
google.protobuf.Timestamp create_time = 1;
|
@@ -228,7 +232,7 @@ message ImportDocumentsRequest {
|
|
228
232
|
// Indicates how imported documents are reconciled with the existing documents
|
229
233
|
// created or imported before.
|
230
234
|
enum ReconciliationMode {
|
231
|
-
// Defaults to INCREMENTAL
|
235
|
+
// Defaults to `INCREMENTAL`.
|
232
236
|
RECONCILIATION_MODE_UNSPECIFIED = 0;
|
233
237
|
|
234
238
|
// Inserts new documents or updates existing documents.
|
@@ -280,7 +284,7 @@ message ImportDocumentsRequest {
|
|
280
284
|
// `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have
|
281
285
|
// to be specified using
|
282
286
|
// [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field],
|
283
|
-
//
|
287
|
+
// otherwise, documents without IDs fail to be imported.
|
284
288
|
//
|
285
289
|
// Only set this field when using
|
286
290
|
// [GcsSource][google.cloud.discoveryengine.v1.GcsSource] or
|
@@ -288,7 +292,7 @@ message ImportDocumentsRequest {
|
|
288
292
|
// [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema]
|
289
293
|
// or
|
290
294
|
// [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema]
|
291
|
-
// is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
295
|
+
// is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
292
296
|
bool auto_generate_ids = 8;
|
293
297
|
|
294
298
|
// The field in the Cloud Storage and BigQuery sources that indicates the
|
@@ -299,12 +303,12 @@ message ImportDocumentsRequest {
|
|
299
303
|
// For [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource] it is
|
300
304
|
// the column name of the BigQuery table where the unique ids are stored.
|
301
305
|
//
|
302
|
-
// The values of the JSON field or the BigQuery column
|
306
|
+
// The values of the JSON field or the BigQuery column are used as the
|
303
307
|
// [Document.id][google.cloud.discoveryengine.v1.Document.id]s. The JSON field
|
304
308
|
// or the BigQuery column must be of string type, and the values must be set
|
305
309
|
// as valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
|
306
|
-
// with 1-63 characters. Otherwise, documents without valid IDs
|
307
|
-
//
|
310
|
+
// with 1-63 characters. Otherwise, documents without valid IDs fail to be
|
311
|
+
// imported.
|
308
312
|
//
|
309
313
|
// Only set this field when using
|
310
314
|
// [GcsSource][google.cloud.discoveryengine.v1.GcsSource] or
|
@@ -40,7 +40,7 @@ message Schema {
|
|
40
40
|
// Schema representation. One of
|
41
41
|
// [struct_schema][google.cloud.discoveryengine.v1.Schema.struct_schema] or
|
42
42
|
// [json_schema][google.cloud.discoveryengine.v1.Schema.json_schema] should be
|
43
|
-
// provided otherwise an INVALID_ARGUMENT error is thrown.
|
43
|
+
// provided otherwise an `INVALID_ARGUMENT` error is thrown.
|
44
44
|
oneof schema {
|
45
45
|
// The structured representation of the schema.
|
46
46
|
google.protobuf.Struct struct_schema = 2;
|