You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {Function} [callback] - The callback that handles the response.
2703
2703
* @returns {NodeJS.ReadableStream|void}
@@ -3302,7 +3302,7 @@ namespace DiscoveryV1 {
3302
3302
3303
3303
/** Constants for the `createEnvironment` operation. */
3304
3304
exportnamespaceCreateEnvironmentConstants{
3305
-
/** Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the default is `S`. */
3305
+
/** Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the default is `S`. */
3306
3306
exportenumSize{
3307
3307
LT='LT',
3308
3308
XS='XS',
@@ -3362,7 +3362,7 @@ namespace DiscoveryV1 {
3362
3362
3363
3363
/** Constants for the `updateEnvironment` operation. */
3364
3364
exportnamespaceUpdateEnvironmentConstants{
3365
-
/** Size that the environment should be increased to. Environment size cannot be modified when using a Lite plan. Environment size can only increased and not decreased. */
3365
+
/** Size that the environment should be increased to. Environment size cannot be modified when using a Lite plan. Environment size can only increased and not decreased. */
3366
3366
exportenumSize{
3367
3367
S='S',
3368
3368
MS='MS',
@@ -3383,7 +3383,7 @@ namespace DiscoveryV1 {
3383
3383
name: string;
3384
3384
/** The description of the configuration, if available. */
3385
3385
description?: string;
3386
-
/** The document conversion settings for the configuration. */
3386
+
/** Document conversion settings. */
3387
3387
conversions?: Conversions;
3388
3388
/** An array of document enrichment settings for the configuration. */
3389
3389
enrichments?: Enrichment[];
@@ -3431,7 +3431,7 @@ namespace DiscoveryV1 {
3431
3431
name: string;
3432
3432
/** The description of the configuration, if available. */
3433
3433
description?: string;
3434
-
/** The document conversion settings for the configuration. */
3434
+
/** Document conversion settings. */
3435
3435
conversions?: Conversions;
3436
3436
/** An array of document enrichment settings for the configuration. */
3437
3437
enrichments?: Enrichment[];
@@ -3465,7 +3465,7 @@ namespace DiscoveryV1 {
3465
3465
3466
3466
/** Constants for the `testConfigurationInEnvironment` operation. */
/** Specify to only run the input document through the given step instead of running the input document through the entire ingestion workflow. Valid values are `convert`, `enrich`, and `normalize`. */
3468
+
/** Specify to only run the input document through the given step instead of running the input document through the entire ingestion workflow. Valid values are `convert`, `enrich`, and `normalize`. */
3469
3469
exportenumStep{
3470
3470
HTML_INPUT='html_input',
3471
3471
HTML_OUTPUT='html_output',
@@ -3474,7 +3474,7 @@ namespace DiscoveryV1 {
3474
3474
ENRICHMENTS_OUTPUT='enrichments_output',
3475
3475
NORMALIZATIONS_OUTPUT='normalizations_output',
3476
3476
}
3477
-
/** The content type of file. */
3477
+
/** The content type of file. */
3478
3478
exportenumFileContentType{
3479
3479
APPLICATION_JSON='application/json',
3480
3480
APPLICATION_MSWORD='application/msword',
@@ -3502,7 +3502,7 @@ namespace DiscoveryV1 {
3502
3502
3503
3503
/** Constants for the `createCollection` operation. */
3504
3504
exportnamespaceCreateCollectionConstants{
3505
-
/** The language of the documents stored in the collection, in the form of an ISO 639-1 language code. */
3505
+
/** The language of the documents stored in the collection, in the form of an ISO 639-1 language code. */
3506
3506
exportenumLanguage{
3507
3507
EN='en',
3508
3508
ES='es',
@@ -3645,7 +3645,7 @@ namespace DiscoveryV1 {
3645
3645
3646
3646
/** Constants for the `addDocument` operation. */
3647
3647
exportnamespaceAddDocumentConstants{
3648
-
/** The content type of file. */
3648
+
/** The content type of file. */
3649
3649
exportenumFileContentType{
3650
3650
APPLICATION_JSON='application/json',
3651
3651
APPLICATION_MSWORD='application/msword',
@@ -3699,7 +3699,7 @@ namespace DiscoveryV1 {
3699
3699
3700
3700
/** Constants for the `updateDocument` operation. */
3701
3701
exportnamespaceUpdateDocumentConstants{
3702
-
/** The content type of file. */
3702
+
/** The content type of file. */
3703
3703
exportenumFileContentType{
3704
3704
APPLICATION_JSON='application/json',
3705
3705
APPLICATION_MSWORD='application/msword',
@@ -3930,7 +3930,7 @@ namespace DiscoveryV1 {
3930
3930
3931
3931
/** Constants for the `queryRelations` operation. */
3932
3932
exportnamespaceQueryRelationsConstants{
3933
-
/** The sorting method for the relationships, can be `score` or `frequency`. `frequency` is the number of unique times each entity is identified. The default is `score`. This parameter cannot be used in the same query as the **bias** parameter. */
3933
+
/** The sorting method for the relationships, can be `score` or `frequency`. `frequency` is the number of unique times each entity is identified. The default is `score`. This parameter cannot be used in the same query as the **bias** parameter. */
3934
3934
exportenumSort{
3935
3935
SCORE='score',
3936
3936
FREQUENCY='frequency',
@@ -4066,14 +4066,14 @@ namespace DiscoveryV1 {
4066
4066
exportinterfaceCreateEventParams{
4067
4067
/** The event type to be created. */
4068
4068
type: CreateEventConstants.Type|string;
4069
-
/** Data object used to create a query event. */
4069
+
/** Query event data object. */
4070
4070
data: EventData;
4071
4071
headers?: Object;
4072
4072
}
4073
4073
4074
4074
/** Constants for the `createEvent` operation. */
4075
4075
exportnamespaceCreateEventConstants{
4076
-
/** The event type to be created. */
4076
+
/** The event type to be created. */
4077
4077
exportenumType{
4078
4078
CLICK='click',
4079
4079
}
@@ -4092,7 +4092,7 @@ namespace DiscoveryV1 {
4092
4092
4093
4093
/** Constants for the `getMetricsEventRate` operation. */
4094
4094
exportnamespaceGetMetricsEventRateConstants{
4095
-
/** The type of result to consider when calculating the metric. */
4095
+
/** The type of result to consider when calculating the metric. */
4096
4096
exportenumResultType{
4097
4097
DOCUMENT='document',
4098
4098
}
@@ -4111,7 +4111,7 @@ namespace DiscoveryV1 {
4111
4111
4112
4112
/** Constants for the `getMetricsQuery` operation. */
4113
4113
exportnamespaceGetMetricsQueryConstants{
4114
-
/** The type of result to consider when calculating the metric. */
4114
+
/** The type of result to consider when calculating the metric. */
4115
4115
exportenumResultType{
4116
4116
DOCUMENT='document',
4117
4117
}
@@ -4130,7 +4130,7 @@ namespace DiscoveryV1 {
4130
4130
4131
4131
/** Constants for the `getMetricsQueryEvent` operation. */
4132
4132
exportnamespaceGetMetricsQueryEventConstants{
4133
-
/** The type of result to consider when calculating the metric. */
4133
+
/** The type of result to consider when calculating the metric. */
4134
4134
exportenumResultType{
4135
4135
DOCUMENT='document',
4136
4136
}
@@ -4149,7 +4149,7 @@ namespace DiscoveryV1 {
4149
4149
4150
4150
/** Constants for the `getMetricsQueryNoResults` operation. */
4151
4151
exportnamespaceGetMetricsQueryNoResultsConstants{
4152
-
/** The type of result to consider when calculating the metric. */
4152
+
/** The type of result to consider when calculating the metric. */
4153
4153
exportenumResultType{
4154
4154
DOCUMENT='document',
4155
4155
}
@@ -4190,7 +4190,7 @@ namespace DiscoveryV1 {
4190
4190
4191
4191
/** Constants for the `createCredentials` operation. */
4192
4192
exportnamespaceCreateCredentialsConstants{
4193
-
/** The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. */
4193
+
/** The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. */
4194
4194
exportenumSourceType{
4195
4195
BOX='box',
4196
4196
SALESFORCE='salesforce',
@@ -4238,7 +4238,7 @@ namespace DiscoveryV1 {
4238
4238
4239
4239
/** Constants for the `updateCredentials` operation. */
4240
4240
exportnamespaceUpdateCredentialsConstants{
4241
-
/** The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. */
4241
+
/** The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. */
4242
4242
exportenumSourceType{
4243
4243
BOX='box',
4244
4244
SALESFORCE='salesforce',
@@ -4280,7 +4280,7 @@ namespace DiscoveryV1 {
4280
4280
language?: string;
4281
4281
/** The object providing information about the documents in the collection. Present only when retrieving details of a collection. */
4282
4282
document_counts?: DocumentCounts;
4283
-
/** The object providing information about the disk usage of the collection. Present only when retrieving details of a collection. */
4283
+
/** Summary of the disk usage statistics for this collection. */
4284
4284
disk_usage?: CollectionDiskUsage;
4285
4285
/** Provides information about the status of relevance training for collection. */
4286
4286
training_status?: TrainingStatus;
@@ -4314,7 +4314,7 @@ namespace DiscoveryV1 {
4314
4314
updated?: string;
4315
4315
/** The description of the configuration, if available. */
4316
4316
description?: string;
4317
-
/** The document conversion settings for the configuration. */
4317
+
/** Document conversion settings. */
4318
4318
conversions?: Conversions;
4319
4319
/** An array of document enrichment settings for the configuration. */
4320
4320
enrichments?: Enrichment[];
@@ -4512,7 +4512,7 @@ namespace DiscoveryV1 {
4512
4512
enrichment_name: string;
4513
4513
/** If true, then most errors generated during the enrichment process will be treated as warnings and will not cause the document to fail processing. */
4514
4514
ignore_downstream_errors?: boolean;
4515
-
/** A list of options specific to the enrichment. */
4515
+
/** Options which are specific to a particular enrichment. */
4516
4516
options?: EnrichmentOptions;
4517
4517
}
4518
4518
@@ -4548,7 +4548,7 @@ namespace DiscoveryV1 {
4548
4548
requested_size?: string;
4549
4549
/** Details about the resource usage and capacity of the environment. */
4550
4550
index_capacity?: IndexCapacity;
4551
-
/** Information about Continuous Relevancy Training for this environment. */
4551
+
/** Information about the Continuous Relevancy Training for this environment. */
4552
4552
search_status?: SearchStatus;
4553
4553
}
4554
4554
@@ -4624,11 +4624,11 @@ namespace DiscoveryV1 {
4624
4624
exportinterfaceIndexCapacity{
4625
4625
/** Summary of the document usage statistics for the environment. */
4626
4626
documents?: EnvironmentDocuments;
4627
-
/** Summary of the disk usage of the environment. */
4627
+
/** Summary of the disk usage statistics for the environment. */
4628
4628
disk_usage?: DiskUsage;
4629
4629
/** Summary of the collection usage in the environment. */
4630
4630
collections?: CollectionUsage;
4631
-
/** **Deprecated**: Summary of the memory usage of the environment. */
4631
+
/** **Deprecated**: Summary of the memory usage statistics for this environment. */
4632
4632
memory_usage?: MemoryUsage;
4633
4633
}
4634
4634
@@ -4826,7 +4826,7 @@ namespace DiscoveryV1 {
4826
4826
sentiment?: NluEnrichmentSentiment;
4827
4827
/** An object specifying the emotion detection enrichment and related parameters. */
4828
4828
emotion?: NluEnrichmentEmotion;
4829
-
/** An object specifying the categories enrichment and related parameters. */
4829
+
/** An object that indicates the Categories enrichment will be applied to the specified field. */
4830
4830
categories?: NluEnrichmentCategories;
4831
4831
/** An object specifiying the semantic roles enrichment and related parameters. */
4832
4832
semantic_roles?: NluEnrichmentSemanticRoles;
@@ -5001,7 +5001,7 @@ namespace DiscoveryV1 {
5001
5001
metadata?: Object;
5002
5002
/** The collection ID of the collection containing the document for this result. */
5003
5003
collection_id?: string;
5004
-
/** Metadata of the query result. */
5004
+
/** Metadata of a query result. */
5005
5005
result_metadata?: QueryResultResultMetadata;
5006
5006
/** The internal status code returned by the ingestion subsystem indicating the overall result of ingesting the source document. */
5007
5007
code?: number;
@@ -5084,6 +5084,8 @@ namespace DiscoveryV1 {
5084
5084
duplicates_removed?: number;
5085
5085
/** The session token for this query. The session token can be used to add events associated with this query to the query and event log. **Important:** Session tokens are case sensitive. */
5086
5086
session_token?: string;
5087
+
/** An object contain retrieval type information. */
5088
+
retrieval_details?: RetrievalDetails;
5087
5089
}
5088
5090
5089
5091
/** QueryResult. */
@@ -5096,7 +5098,7 @@ namespace DiscoveryV1 {
5096
5098
metadata?: Object;
5097
5099
/** The collection ID of the collection containing the document for this result. */
5098
5100
collection_id?: string;
5099
-
/** Metadata of the query result. */
5101
+
/** Metadata of a query result. */
5100
5102
result_metadata?: QueryResultResultMetadata;
5101
5103
/** QueryResult accepts additional properties. */
5102
5104
[propName: string]: any;
@@ -5105,9 +5107,15 @@ namespace DiscoveryV1 {
5105
5107
/** Metadata of a query result. */
5106
5108
exportinterfaceQueryResultResultMetadata{
5107
5109
/** An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher score indicates a greater match to the query parameters. */
5108
-
score?: number;
5109
-
/** The confidence score for the given result. Calculated based on how relevant the result is estimated to be, compared to a trained relevancy model. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. */
5110
-
confidence?: number;
5110
+
score: number;
5111
+
/** The confidence score for the given result. Calculated based on how relevant the result is estimated to be. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. The `confidence` value for a result was calculated using the model specified in the `document_retrieval_strategy` field of the result set. */
5112
+
confidence: number;
5113
+
}
5114
+
5115
+
/** An object contain retrieval type information. */
5116
+
exportinterfaceRetrievalDetails{
5117
+
/** Indentifies the document retrieval strategy used for this query. `relevancy_training` indicates that the results were returned using a relevancy trained model. `continuous_relevancy_training` indicates that the results were returned using the continuous relevancy training model created by result feedback analysis. `untrained` means the results were returned using the standard untrained model. **Note**: In the event of trained collections being queried, but the trained model is not used to return results, the **document_retrieval_strategy** will be listed as `untrained`. */
5118
+
document_retrieval_strategy?: string;
5111
5119
}
5112
5120
5113
5121
/** Information about the Continuous Relevancy Training for this environment. */
0 commit comments