@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230608 → 0.0.20230623
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.
- package/index.d.ts +274 -55
- package/package.json +1 -1
- package/tests.ts +23 -3
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:
|
|
12
|
+
// Revision: 20230623
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -113,7 +113,7 @@ declare namespace gapi.client {
|
|
|
113
113
|
/**
|
|
114
114
|
* The schema to use when parsing the data from the source. Supported values for user event imports: * `user_event` (default): One UserEvent per row. Supported values for document
|
|
115
115
|
* imports: * `document` (default): One Document format per row. Each document must have a valid Document.id and one of Document.json_data or Document.struct_data. * `custom`: One
|
|
116
|
-
* custom data per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.
|
|
116
|
+
* custom data per row in arbitrary format that conforms to the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.
|
|
117
117
|
*/
|
|
118
118
|
dataSchema?:
|
|
119
119
|
string;
|
|
@@ -137,10 +137,10 @@ declare namespace gapi.client {
|
|
|
137
137
|
string;
|
|
138
138
|
}
|
|
139
139
|
interface GoogleCloudDiscoveryengineV1alphaCompletionInfo {
|
|
140
|
-
/** End user selected CompleteQueryResponse.
|
|
140
|
+
/** End user selected CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0. */
|
|
141
141
|
selectedPosition?:
|
|
142
142
|
number;
|
|
143
|
-
/** End user selected CompleteQueryResponse.
|
|
143
|
+
/** End user selected CompleteQueryResponse.QuerySuggestion.suggestion. */
|
|
144
144
|
selectedSuggestion?:
|
|
145
145
|
string;
|
|
146
146
|
}
|
|
@@ -162,7 +162,7 @@ declare namespace gapi.client {
|
|
|
162
162
|
/** 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. */
|
|
163
163
|
id?:
|
|
164
164
|
string;
|
|
165
|
-
/** The JSON string representation of the document. It should conform to the registered Schema
|
|
165
|
+
/** The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
166
166
|
jsonData?:
|
|
167
167
|
string;
|
|
168
168
|
/**
|
|
@@ -181,16 +181,16 @@ declare namespace gapi.client {
|
|
|
181
181
|
/** The identifier of the schema located in the same data store. */
|
|
182
182
|
schemaId?:
|
|
183
183
|
string;
|
|
184
|
-
/** The structured JSON data for the document. It should conform to the registered Schema
|
|
184
|
+
/** The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
185
185
|
structData?:
|
|
186
186
|
{ [P in string]: any };
|
|
187
187
|
}
|
|
188
188
|
interface GoogleCloudDiscoveryengineV1alphaDocumentInfo {
|
|
189
|
-
/**
|
|
189
|
+
/** The Document resource ID. */
|
|
190
190
|
id?:
|
|
191
191
|
string;
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
193
|
+
* The Document resource full name, of the form:
|
|
194
194
|
* `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
|
|
195
195
|
*/
|
|
196
196
|
name?:
|
|
@@ -204,16 +204,17 @@ declare namespace gapi.client {
|
|
|
204
204
|
*/
|
|
205
205
|
quantity?:
|
|
206
206
|
number;
|
|
207
|
-
/**
|
|
207
|
+
/** The Document URI - only allowed for website data stores. */
|
|
208
208
|
uri?:
|
|
209
209
|
string;
|
|
210
210
|
}
|
|
211
211
|
interface GoogleCloudDiscoveryengineV1alphaGcsSource {
|
|
212
212
|
/**
|
|
213
213
|
* The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid
|
|
214
|
-
* Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris`
|
|
215
|
-
*
|
|
216
|
-
*
|
|
214
|
+
* Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a
|
|
215
|
+
* hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms to the defined Schema of the data store. This can only be used by Gen App Builder. * `csv`: A
|
|
216
|
+
* CSV file with header conforming to the defined Schema of the data store. Each entry after the header is imported as a Document. This can only be used by Gen App Builder. Supported
|
|
217
|
+
* values for user even imports: * `user_event` (default): One JSON UserEvent per line.
|
|
217
218
|
*/
|
|
218
219
|
dataSchema?:
|
|
219
220
|
string;
|
|
@@ -243,8 +244,8 @@ declare namespace gapi.client {
|
|
|
243
244
|
/**
|
|
244
245
|
* Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be
|
|
245
246
|
* consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be
|
|
246
|
-
* specified using id_field,
|
|
247
|
-
* BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
247
|
+
* specified using id_field, otherwise, documents without IDs fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or
|
|
248
|
+
* BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
248
249
|
*/
|
|
249
250
|
autoGenerateIds?:
|
|
250
251
|
boolean;
|
|
@@ -259,9 +260,9 @@ declare namespace gapi.client {
|
|
|
259
260
|
GoogleCloudDiscoveryengineV1alphaGcsSource;
|
|
260
261
|
/**
|
|
261
262
|
* The field in the Cloud Storage and BigQuery sources that indicates the unique IDs of the documents. For GcsSource it is the key of the JSON field. For instance, `my_id` for JSON
|
|
262
|
-
* `{"my_id": "some_uuid"}`. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored. The values of the JSON field or the BigQuery column
|
|
263
|
+
* `{"my_id": "some_uuid"}`. For BigQuerySource it is the column name of the BigQuery table where the unique ids are stored. The values of the JSON field or the BigQuery column are
|
|
263
264
|
* used as the Document.ids. The JSON field or the BigQuery column must be of string type, and the values must be set as valid strings conform to
|
|
264
|
-
* [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs
|
|
265
|
+
* [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs fail to be imported. Only set this field when using GcsSource or
|
|
265
266
|
* BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema is `custom`. And only set this field when auto_generate_ids is unset or set as `false`. Otherwise, an
|
|
266
267
|
* INVALID_ARGUMENT error is thrown. If it is unset, a default value `_id` is used when importing from the allowed data sources.
|
|
267
268
|
*/
|
|
@@ -289,7 +290,7 @@ declare namespace gapi.client {
|
|
|
289
290
|
}
|
|
290
291
|
interface GoogleCloudDiscoveryengineV1alphaImportErrorConfig {
|
|
291
292
|
/**
|
|
292
|
-
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors
|
|
293
|
+
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a
|
|
293
294
|
* JSON-encoded `google.rpc.Status` message.
|
|
294
295
|
*/
|
|
295
296
|
gcsPrefix?:
|
|
@@ -310,16 +311,16 @@ declare namespace gapi.client {
|
|
|
310
311
|
string;
|
|
311
312
|
}
|
|
312
313
|
interface GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest {
|
|
313
|
-
/**
|
|
314
|
+
/** BigQuery input source. */
|
|
314
315
|
bigquerySource?:
|
|
315
316
|
GoogleCloudDiscoveryengineV1alphaBigQuerySource;
|
|
316
317
|
/** The desired location of errors incurred during the Import. Cannot be set for inline user event imports. */
|
|
317
318
|
errorConfig?:
|
|
318
319
|
GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
|
|
319
|
-
/**
|
|
320
|
+
/** Cloud Storage location for the input content. */
|
|
320
321
|
gcsSource?:
|
|
321
322
|
GoogleCloudDiscoveryengineV1alphaGcsSource;
|
|
322
|
-
/**
|
|
323
|
+
/** The Inline source for the input content for UserEvents. */
|
|
323
324
|
inlineSource?:
|
|
324
325
|
GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource;
|
|
325
326
|
}
|
|
@@ -368,14 +369,14 @@ declare namespace gapi.client {
|
|
|
368
369
|
/**
|
|
369
370
|
* The most specific category associated with a category page. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name,
|
|
370
371
|
* please replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy:
|
|
371
|
-
* "pageCategory" : "Sales > 2017 Black Friday Deals"
|
|
372
|
-
* returned.
|
|
372
|
+
* `"pageCategory" : "Sales > 2017 Black Friday Deals"`. Required for `view-category-page` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error
|
|
373
|
+
* is returned.
|
|
373
374
|
*/
|
|
374
375
|
pageCategory?:
|
|
375
376
|
string;
|
|
376
377
|
/**
|
|
377
378
|
* A unique ID of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple
|
|
378
|
-
* events as the user is browsing the page. The `
|
|
379
|
+
* events as the user is browsing the page. The `pageview_id` property should be kept the same for all these events so that they can be grouped together properly. When using the client
|
|
379
380
|
* side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically.
|
|
380
381
|
*/
|
|
381
382
|
pageviewId?:
|
|
@@ -437,6 +438,42 @@ declare namespace gapi.client {
|
|
|
437
438
|
purgeSample?:
|
|
438
439
|
string[];
|
|
439
440
|
}
|
|
441
|
+
interface GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata {
|
|
442
|
+
/** Operation create time. */
|
|
443
|
+
createTime?:
|
|
444
|
+
string;
|
|
445
|
+
/** Count of entries that encountered errors while processing. */
|
|
446
|
+
failureCount?:
|
|
447
|
+
string;
|
|
448
|
+
/** Count of entries that were deleted successfully. */
|
|
449
|
+
successCount?:
|
|
450
|
+
string;
|
|
451
|
+
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
452
|
+
updateTime?:
|
|
453
|
+
string;
|
|
454
|
+
}
|
|
455
|
+
interface GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest {
|
|
456
|
+
/**
|
|
457
|
+
* Required. The filter string to specify the events to be deleted with a length limit of 5,000 characters. The eligible fields for filtering are: * `eventType`: Double quoted
|
|
458
|
+
* UserEvent.event_type string. * `eventTime`: in ISO 8601 "zulu" format. * `userPseudoId`: Double quoted string. Specifying this will delete all events associated with a visitor. *
|
|
459
|
+
* `userId`: Double quoted string. Specifying this will delete all events associated with a user. Examples: * Deleting all events in a time range: `eventTime >
|
|
460
|
+
* "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` * Deleting specific eventType: `eventType = "search"` * Deleting all events for a specific visitor: `userPseudoId
|
|
461
|
+
* = "visitor1024"` * Deleting all events inside a DataStore: `*` The filtering fields are assumed to have an implicit AND.
|
|
462
|
+
*/
|
|
463
|
+
filter?:
|
|
464
|
+
string;
|
|
465
|
+
/**
|
|
466
|
+
* The `force` field is currently not supported. Purge user event requests will permanently delete all purgeable events. Once the development is complete: If `force` is set to false,
|
|
467
|
+
* the method will return the expected purge count without deleting any user events. This field will default to false if not included in the request.
|
|
468
|
+
*/
|
|
469
|
+
force?:
|
|
470
|
+
boolean;
|
|
471
|
+
}
|
|
472
|
+
interface GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse {
|
|
473
|
+
/** The total count of events purged as a result of the operation. */
|
|
474
|
+
purgeCount?:
|
|
475
|
+
string;
|
|
476
|
+
}
|
|
440
477
|
interface GoogleCloudDiscoveryengineV1alphaRecommendRequest {
|
|
441
478
|
/**
|
|
442
479
|
* Filter for restricting recommendation results with a length limit of 5,000 characters. Currently, only filter expressions on the `filter_tags` attribute is supported. Examples: *
|
|
@@ -528,31 +565,31 @@ declare namespace gapi.client {
|
|
|
528
565
|
interface GoogleCloudDiscoveryengineV1alphaSearchInfo {
|
|
529
566
|
/**
|
|
530
567
|
* An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See SearchRequest.offset for
|
|
531
|
-
* definition. If this field is negative, an INVALID_ARGUMENT is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an
|
|
532
|
-
* INVALID_ARGUMENT error is returned.
|
|
568
|
+
* definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an
|
|
569
|
+
* `INVALID_ARGUMENT` error is returned.
|
|
533
570
|
*/
|
|
534
571
|
offset?:
|
|
535
572
|
number;
|
|
536
573
|
/**
|
|
537
574
|
* The order in which products are returned, if applicable. See SearchRequest.order_by for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000
|
|
538
|
-
* characters. Otherwise, an INVALID_ARGUMENT error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an
|
|
539
|
-
* error is returned.
|
|
575
|
+
* characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an
|
|
576
|
+
* `INVALID_ARGUMENT` error is returned.
|
|
540
577
|
*/
|
|
541
578
|
orderBy?:
|
|
542
579
|
string;
|
|
543
580
|
/**
|
|
544
|
-
* The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT
|
|
581
|
+
* The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT`
|
|
545
582
|
* error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an
|
|
546
|
-
* INVALID_ARGUMENT error is returned.
|
|
583
|
+
* `INVALID_ARGUMENT` error is returned.
|
|
547
584
|
*/
|
|
548
585
|
searchQuery?:
|
|
549
586
|
string;
|
|
550
587
|
}
|
|
551
588
|
interface GoogleCloudDiscoveryengineV1alphaTargetSite {
|
|
552
589
|
/**
|
|
553
|
-
* Input only. If set to false,
|
|
554
|
-
*
|
|
555
|
-
*
|
|
590
|
+
* Input only. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to
|
|
591
|
+
* be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI
|
|
592
|
+
* pattern to be used by the search engine.
|
|
556
593
|
*/
|
|
557
594
|
exactMatch?:
|
|
558
595
|
boolean;
|
|
@@ -565,7 +602,7 @@ declare namespace gapi.client {
|
|
|
565
602
|
*/
|
|
566
603
|
name?:
|
|
567
604
|
string;
|
|
568
|
-
/** Required. Input only. The user provided
|
|
605
|
+
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
569
606
|
providedUriPattern?:
|
|
570
607
|
string;
|
|
571
608
|
/** The type of the target site, e.g. whether the site is to be included or excluded. */
|
|
@@ -609,22 +646,25 @@ declare namespace gapi.client {
|
|
|
609
646
|
* consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving
|
|
610
647
|
* predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8
|
|
611
648
|
* encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded
|
|
612
|
-
* string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is
|
|
613
|
-
* traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
|
|
649
|
+
* string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is
|
|
650
|
+
* `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
|
|
614
651
|
*/
|
|
615
652
|
attributes?:
|
|
616
653
|
{ [P in string]: GoogleCloudDiscoveryengineV1alphaCustomAttribute };
|
|
617
654
|
/**
|
|
618
655
|
* Token to attribute an API response to user action(s) to trigger the event. Highly recommended for user events that are the result of RecommendationService.Recommend. This field
|
|
619
|
-
* enables accurate attribution of recommendation model performance. The value must be one of: *
|
|
620
|
-
* RecommendationService.Recommend. * SearchResponse.attribution_token for events that are the result of SearchService.Search.
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
656
|
+
* enables accurate attribution of recommendation model performance. The value must be one of: * RecommendResponse.attribution_token for events that are the result of
|
|
657
|
+
* RecommendationService.Recommend. * SearchResponse.attribution_token for events that are the result of SearchService.Search. This token enables us to accurately attribute page view
|
|
658
|
+
* or conversion completion back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results,
|
|
659
|
+
* pass RecommendResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the RecommendResponse.attribution_token to this
|
|
660
|
+
* field.
|
|
624
661
|
*/
|
|
625
662
|
attributionToken?:
|
|
626
663
|
string;
|
|
627
|
-
/**
|
|
664
|
+
/**
|
|
665
|
+
* CompletionService.CompleteQuery details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for
|
|
666
|
+
* search.
|
|
667
|
+
*/
|
|
628
668
|
completionInfo?:
|
|
629
669
|
GoogleCloudDiscoveryengineV1alphaCompletionInfo;
|
|
630
670
|
/**
|
|
@@ -656,7 +696,7 @@ declare namespace gapi.client {
|
|
|
656
696
|
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the
|
|
657
697
|
* associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are
|
|
658
698
|
* generated from a RecommendationService.RecommendRequest, this field may be populated directly from RecommendationService.RecommendRequest.filter conforming to
|
|
659
|
-
* https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
|
699
|
+
* https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
660
700
|
*/
|
|
661
701
|
filter?:
|
|
662
702
|
string;
|
|
@@ -672,7 +712,7 @@ declare namespace gapi.client {
|
|
|
672
712
|
/** The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID. */
|
|
673
713
|
promotionIds?:
|
|
674
714
|
string[];
|
|
675
|
-
/** Search
|
|
715
|
+
/** SearchService.Search details related to the event. This field should be set for `search` event. */
|
|
676
716
|
searchInfo?:
|
|
677
717
|
GoogleCloudDiscoveryengineV1alphaSearchInfo;
|
|
678
718
|
/**
|
|
@@ -698,7 +738,7 @@ declare namespace gapi.client {
|
|
|
698
738
|
* Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single
|
|
699
739
|
* device. This unique identifier should not change if the visitor log in/out of the website. Do not set the field to the same fixed ID for different users. This mixes the event
|
|
700
740
|
* history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
|
701
|
-
* INVALID_ARGUMENT error is returned. The field should not contain PII or user-data. We recommend to use Google Analytics [Client
|
|
741
|
+
* `INVALID_ARGUMENT` error is returned. The field should not contain PII or user-data. We recommend to use Google Analytics [Client
|
|
702
742
|
* ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
|
703
743
|
*/
|
|
704
744
|
userPseudoId?:
|
|
@@ -706,9 +746,8 @@ declare namespace gapi.client {
|
|
|
706
746
|
}
|
|
707
747
|
interface GoogleCloudDiscoveryengineV1alphaUserInfo {
|
|
708
748
|
/**
|
|
709
|
-
* User agent as included in the HTTP header.
|
|
710
|
-
*
|
|
711
|
-
* or if UserEvent.direct_user_request is set.
|
|
749
|
+
* User agent as included in the HTTP header. The field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This
|
|
750
|
+
* should not be set when using the client side event reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or if UserEvent.direct_user_request is set.
|
|
712
751
|
*/
|
|
713
752
|
userAgent?:
|
|
714
753
|
string;
|
|
@@ -744,7 +783,7 @@ declare namespace gapi.client {
|
|
|
744
783
|
}
|
|
745
784
|
interface GoogleCloudDiscoveryengineV1betaImportErrorConfig {
|
|
746
785
|
/**
|
|
747
|
-
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors
|
|
786
|
+
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a
|
|
748
787
|
* JSON-encoded `google.rpc.Status` message.
|
|
749
788
|
*/
|
|
750
789
|
gcsPrefix?:
|
|
@@ -838,7 +877,7 @@ declare namespace gapi.client {
|
|
|
838
877
|
}
|
|
839
878
|
interface GoogleCloudDiscoveryengineV1ImportErrorConfig {
|
|
840
879
|
/**
|
|
841
|
-
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors
|
|
880
|
+
* Cloud Storage prefix for import errors. This must be an empty, existing Cloud Storage directory. Import errors are written to sharded files in this directory, one per line, as a
|
|
842
881
|
* JSON-encoded `google.rpc.Status` message.
|
|
843
882
|
*/
|
|
844
883
|
gcsPrefix?:
|
|
@@ -1282,7 +1321,7 @@ declare namespace gapi.client {
|
|
|
1282
1321
|
string;
|
|
1283
1322
|
/**
|
|
1284
1323
|
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
|
|
1285
|
-
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list
|
|
1324
|
+
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documents under this branch, regardless of whether
|
|
1286
1325
|
* or not this branch exists, a `PERMISSION_DENIED` error is returned.
|
|
1287
1326
|
*/
|
|
1288
1327
|
parent:
|
|
@@ -1942,7 +1981,7 @@ declare namespace gapi.client {
|
|
|
1942
1981
|
}
|
|
1943
1982
|
interface UserEventsResource {
|
|
1944
1983
|
/**
|
|
1945
|
-
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a
|
|
1984
|
+
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery
|
|
1946
1985
|
* Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|
|
1947
1986
|
*/
|
|
1948
1987
|
collect(request?: {
|
|
@@ -1987,7 +2026,7 @@ declare namespace gapi.client {
|
|
|
1987
2026
|
string;
|
|
1988
2027
|
/**
|
|
1989
2028
|
* The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers
|
|
1990
|
-
* only send the domain for
|
|
2029
|
+
* only send the domain for third-party requests.
|
|
1991
2030
|
*/
|
|
1992
2031
|
uri?:
|
|
1993
2032
|
string;
|
|
@@ -2079,6 +2118,96 @@ declare namespace gapi.client {
|
|
|
2079
2118
|
string;
|
|
2080
2119
|
},
|
|
2081
2120
|
body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete.
|
|
2123
|
+
* To test a filter, use the list command first.
|
|
2124
|
+
*/
|
|
2125
|
+
purge(request: {
|
|
2126
|
+
/** V1 error format. */
|
|
2127
|
+
"$.xgafv"?:
|
|
2128
|
+
string;
|
|
2129
|
+
/** OAuth access token. */
|
|
2130
|
+
access_token?:
|
|
2131
|
+
string;
|
|
2132
|
+
/** Data format for response. */
|
|
2133
|
+
alt?:
|
|
2134
|
+
string;
|
|
2135
|
+
/** JSONP */
|
|
2136
|
+
callback?:
|
|
2137
|
+
string;
|
|
2138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2139
|
+
fields?:
|
|
2140
|
+
string;
|
|
2141
|
+
/** 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. */
|
|
2142
|
+
key?:
|
|
2143
|
+
string;
|
|
2144
|
+
/** OAuth 2.0 token for the current user. */
|
|
2145
|
+
oauth_token?:
|
|
2146
|
+
string;
|
|
2147
|
+
/**
|
|
2148
|
+
* Required. The resource name of the catalog under which the events are created. The format is
|
|
2149
|
+
* `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
|
|
2150
|
+
*/
|
|
2151
|
+
parent:
|
|
2152
|
+
string;
|
|
2153
|
+
/** Returns response with indentations and line breaks. */
|
|
2154
|
+
prettyPrint?:
|
|
2155
|
+
boolean;
|
|
2156
|
+
/** 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. */
|
|
2157
|
+
quotaUser?:
|
|
2158
|
+
string;
|
|
2159
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2160
|
+
upload_protocol?:
|
|
2161
|
+
string;
|
|
2162
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2163
|
+
uploadType?:
|
|
2164
|
+
string;
|
|
2165
|
+
/** Request body */
|
|
2166
|
+
resource:
|
|
2167
|
+
GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest;
|
|
2168
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2169
|
+
purge(request: {
|
|
2170
|
+
/** V1 error format. */
|
|
2171
|
+
"$.xgafv"?:
|
|
2172
|
+
string;
|
|
2173
|
+
/** OAuth access token. */
|
|
2174
|
+
access_token?:
|
|
2175
|
+
string;
|
|
2176
|
+
/** Data format for response. */
|
|
2177
|
+
alt?:
|
|
2178
|
+
string;
|
|
2179
|
+
/** JSONP */
|
|
2180
|
+
callback?:
|
|
2181
|
+
string;
|
|
2182
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2183
|
+
fields?:
|
|
2184
|
+
string;
|
|
2185
|
+
/** 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. */
|
|
2186
|
+
key?:
|
|
2187
|
+
string;
|
|
2188
|
+
/** OAuth 2.0 token for the current user. */
|
|
2189
|
+
oauth_token?:
|
|
2190
|
+
string;
|
|
2191
|
+
/**
|
|
2192
|
+
* Required. The resource name of the catalog under which the events are created. The format is
|
|
2193
|
+
* `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
|
|
2194
|
+
*/
|
|
2195
|
+
parent:
|
|
2196
|
+
string;
|
|
2197
|
+
/** Returns response with indentations and line breaks. */
|
|
2198
|
+
prettyPrint?:
|
|
2199
|
+
boolean;
|
|
2200
|
+
/** 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. */
|
|
2201
|
+
quotaUser?:
|
|
2202
|
+
string;
|
|
2203
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2204
|
+
upload_protocol?:
|
|
2205
|
+
string;
|
|
2206
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2207
|
+
uploadType?:
|
|
2208
|
+
string;
|
|
2209
|
+
},
|
|
2210
|
+
body: GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest): Request<GoogleLongrunningOperation>;
|
|
2082
2211
|
/** Writes a single user event. */
|
|
2083
2212
|
write(request: {
|
|
2084
2213
|
/** V1 error format. */
|
|
@@ -2676,7 +2805,7 @@ declare namespace gapi.client {
|
|
|
2676
2805
|
string;
|
|
2677
2806
|
/**
|
|
2678
2807
|
* Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Use
|
|
2679
|
-
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list
|
|
2808
|
+
* `default_branch` as the branch ID, to list documents under the default branch. If the caller does not have permission to list Documents under this branch, regardless of whether
|
|
2680
2809
|
* or not this branch exists, a `PERMISSION_DENIED` error is returned.
|
|
2681
2810
|
*/
|
|
2682
2811
|
parent:
|
|
@@ -3243,7 +3372,7 @@ declare namespace gapi.client {
|
|
|
3243
3372
|
}
|
|
3244
3373
|
interface UserEventsResource {
|
|
3245
3374
|
/**
|
|
3246
|
-
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a
|
|
3375
|
+
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery
|
|
3247
3376
|
* Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|
|
3248
3377
|
*/
|
|
3249
3378
|
collect(request?: {
|
|
@@ -3288,7 +3417,7 @@ declare namespace gapi.client {
|
|
|
3288
3417
|
string;
|
|
3289
3418
|
/**
|
|
3290
3419
|
* The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers
|
|
3291
|
-
* only send the domain for
|
|
3420
|
+
* only send the domain for third-party requests.
|
|
3292
3421
|
*/
|
|
3293
3422
|
uri?:
|
|
3294
3423
|
string;
|
|
@@ -3380,6 +3509,96 @@ declare namespace gapi.client {
|
|
|
3380
3509
|
string;
|
|
3381
3510
|
},
|
|
3382
3511
|
body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest): Request<GoogleLongrunningOperation>;
|
|
3512
|
+
/**
|
|
3513
|
+
* Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete.
|
|
3514
|
+
* To test a filter, use the list command first.
|
|
3515
|
+
*/
|
|
3516
|
+
purge(request: {
|
|
3517
|
+
/** V1 error format. */
|
|
3518
|
+
"$.xgafv"?:
|
|
3519
|
+
string;
|
|
3520
|
+
/** OAuth access token. */
|
|
3521
|
+
access_token?:
|
|
3522
|
+
string;
|
|
3523
|
+
/** Data format for response. */
|
|
3524
|
+
alt?:
|
|
3525
|
+
string;
|
|
3526
|
+
/** JSONP */
|
|
3527
|
+
callback?:
|
|
3528
|
+
string;
|
|
3529
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3530
|
+
fields?:
|
|
3531
|
+
string;
|
|
3532
|
+
/** 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. */
|
|
3533
|
+
key?:
|
|
3534
|
+
string;
|
|
3535
|
+
/** OAuth 2.0 token for the current user. */
|
|
3536
|
+
oauth_token?:
|
|
3537
|
+
string;
|
|
3538
|
+
/**
|
|
3539
|
+
* Required. The resource name of the catalog under which the events are created. The format is
|
|
3540
|
+
* `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
|
|
3541
|
+
*/
|
|
3542
|
+
parent:
|
|
3543
|
+
string;
|
|
3544
|
+
/** Returns response with indentations and line breaks. */
|
|
3545
|
+
prettyPrint?:
|
|
3546
|
+
boolean;
|
|
3547
|
+
/** 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. */
|
|
3548
|
+
quotaUser?:
|
|
3549
|
+
string;
|
|
3550
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3551
|
+
upload_protocol?:
|
|
3552
|
+
string;
|
|
3553
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3554
|
+
uploadType?:
|
|
3555
|
+
string;
|
|
3556
|
+
/** Request body */
|
|
3557
|
+
resource:
|
|
3558
|
+
GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest;
|
|
3559
|
+
}): Request<GoogleLongrunningOperation>;
|
|
3560
|
+
purge(request: {
|
|
3561
|
+
/** V1 error format. */
|
|
3562
|
+
"$.xgafv"?:
|
|
3563
|
+
string;
|
|
3564
|
+
/** OAuth access token. */
|
|
3565
|
+
access_token?:
|
|
3566
|
+
string;
|
|
3567
|
+
/** Data format for response. */
|
|
3568
|
+
alt?:
|
|
3569
|
+
string;
|
|
3570
|
+
/** JSONP */
|
|
3571
|
+
callback?:
|
|
3572
|
+
string;
|
|
3573
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3574
|
+
fields?:
|
|
3575
|
+
string;
|
|
3576
|
+
/** 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. */
|
|
3577
|
+
key?:
|
|
3578
|
+
string;
|
|
3579
|
+
/** OAuth 2.0 token for the current user. */
|
|
3580
|
+
oauth_token?:
|
|
3581
|
+
string;
|
|
3582
|
+
/**
|
|
3583
|
+
* Required. The resource name of the catalog under which the events are created. The format is
|
|
3584
|
+
* `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
|
|
3585
|
+
*/
|
|
3586
|
+
parent:
|
|
3587
|
+
string;
|
|
3588
|
+
/** Returns response with indentations and line breaks. */
|
|
3589
|
+
prettyPrint?:
|
|
3590
|
+
boolean;
|
|
3591
|
+
/** 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. */
|
|
3592
|
+
quotaUser?:
|
|
3593
|
+
string;
|
|
3594
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3595
|
+
upload_protocol?:
|
|
3596
|
+
string;
|
|
3597
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3598
|
+
uploadType?:
|
|
3599
|
+
string;
|
|
3600
|
+
},
|
|
3601
|
+
body: GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest): Request<GoogleLongrunningOperation>;
|
|
3383
3602
|
/** Writes a single user event. */
|
|
3384
3603
|
write(request: {
|
|
3385
3604
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230623
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -260,7 +260,7 @@ gapi.load('client', async () => {
|
|
|
260
260
|
validateOnly: true,
|
|
261
261
|
});
|
|
262
262
|
/**
|
|
263
|
-
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a
|
|
263
|
+
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine
|
|
264
264
|
* API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|
|
265
265
|
*/
|
|
266
266
|
await gapi.client.discoveryengine.projects.locations.collections.dataStores.userEvents.collect({
|
|
@@ -375,6 +375,16 @@ gapi.load('client', async () => {
|
|
|
375
375
|
],
|
|
376
376
|
},
|
|
377
377
|
});
|
|
378
|
+
/**
|
|
379
|
+
* Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To
|
|
380
|
+
* test a filter, use the list command first.
|
|
381
|
+
*/
|
|
382
|
+
await gapi.client.discoveryengine.projects.locations.collections.dataStores.userEvents.purge({
|
|
383
|
+
parent: "Test string",
|
|
384
|
+
}, {
|
|
385
|
+
filter: "Test string",
|
|
386
|
+
force: true,
|
|
387
|
+
});
|
|
378
388
|
/** Writes a single user event. */
|
|
379
389
|
await gapi.client.discoveryengine.projects.locations.collections.dataStores.userEvents.write({
|
|
380
390
|
parent: "Test string",
|
|
@@ -693,7 +703,7 @@ gapi.load('client', async () => {
|
|
|
693
703
|
validateOnly: true,
|
|
694
704
|
});
|
|
695
705
|
/**
|
|
696
|
-
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a
|
|
706
|
+
* Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine
|
|
697
707
|
* API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
|
|
698
708
|
*/
|
|
699
709
|
await gapi.client.discoveryengine.projects.locations.dataStores.userEvents.collect({
|
|
@@ -808,6 +818,16 @@ gapi.load('client', async () => {
|
|
|
808
818
|
],
|
|
809
819
|
},
|
|
810
820
|
});
|
|
821
|
+
/**
|
|
822
|
+
* Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To
|
|
823
|
+
* test a filter, use the list command first.
|
|
824
|
+
*/
|
|
825
|
+
await gapi.client.discoveryengine.projects.locations.dataStores.userEvents.purge({
|
|
826
|
+
parent: "Test string",
|
|
827
|
+
}, {
|
|
828
|
+
filter: "Test string",
|
|
829
|
+
force: true,
|
|
830
|
+
});
|
|
811
831
|
/** Writes a single user event. */
|
|
812
832
|
await gapi.client.discoveryengine.projects.locations.dataStores.userEvents.write({
|
|
813
833
|
parent: "Test string",
|