aws-sdk 2.1402.0 → 2.1403.0
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/CHANGELOG.md +7 -1
- package/README.md +1 -1
- package/apis/chime-sdk-identity-2021-04-20.min.json +67 -80
- package/apis/chime-sdk-messaging-2021-05-15.min.json +48 -30
- package/apis/kendra-2019-02-03.min.json +72 -14
- package/apis/states-2016-11-23.min.json +367 -89
- package/clients/chimesdkidentity.d.ts +38 -17
- package/clients/chimesdkmessaging.d.ts +47 -28
- package/clients/kendra.d.ts +104 -23
- package/clients/stepfunctions.d.ts +356 -25
- package/dist/aws-sdk-core-react-native.js +1 -1
- package/dist/aws-sdk-react-native.js +5 -5
- package/dist/aws-sdk.js +3 -3
- package/dist/aws-sdk.min.js +2 -2
- package/lib/core.js +1 -1
- package/package.json +1 -1
package/clients/kendra.d.ts
CHANGED
@@ -420,13 +420,21 @@ declare class Kendra extends Service {
|
|
420
420
|
*/
|
421
421
|
putPrincipalMapping(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
422
422
|
/**
|
423
|
-
* Searches an
|
423
|
+
* Searches an index given an input query. You can configure boosting or relevance tuning at the query level to override boosting at the index level, filter based on document fields/attributes and faceted search, and filter based on the user or their group access to documents. You can also include certain fields in the response that might provide useful additional information. A query response contains three types of results. Relevant suggested answers. The answers can be either a text excerpt or table excerpt. The answer can be highlighted in the excerpt. Matching FAQs or questions-answer from your FAQ file. Relevant documents. This result type includes an excerpt of the document with the document title. The searched terms can be highlighted in the excerpt. You can specify that the query return only one type of result using the QueryResultTypeFilter parameter. Each query returns the 100 most relevant results. If you filter result type to only question-answers, a maximum of four results are returned. If you filter result type to only answers, a maximum of three results are returned.
|
424
424
|
*/
|
425
425
|
query(params: Kendra.Types.QueryRequest, callback?: (err: AWSError, data: Kendra.Types.QueryResult) => void): Request<Kendra.Types.QueryResult, AWSError>;
|
426
426
|
/**
|
427
|
-
* Searches an
|
427
|
+
* Searches an index given an input query. You can configure boosting or relevance tuning at the query level to override boosting at the index level, filter based on document fields/attributes and faceted search, and filter based on the user or their group access to documents. You can also include certain fields in the response that might provide useful additional information. A query response contains three types of results. Relevant suggested answers. The answers can be either a text excerpt or table excerpt. The answer can be highlighted in the excerpt. Matching FAQs or questions-answer from your FAQ file. Relevant documents. This result type includes an excerpt of the document with the document title. The searched terms can be highlighted in the excerpt. You can specify that the query return only one type of result using the QueryResultTypeFilter parameter. Each query returns the 100 most relevant results. If you filter result type to only question-answers, a maximum of four results are returned. If you filter result type to only answers, a maximum of three results are returned.
|
428
428
|
*/
|
429
429
|
query(callback?: (err: AWSError, data: Kendra.Types.QueryResult) => void): Request<Kendra.Types.QueryResult, AWSError>;
|
430
|
+
/**
|
431
|
+
* Retrieves relevant passages or text excerpts given an input query. This API is similar to the Query API. However, by default, the Query API only returns excerpt passages of up to 100 token words. With the Retrieve API, you can retrieve longer passages of up to 200 token words and up to 100 semantically relevant passages. This doesn't include question-answer or FAQ type responses from your index. The passages are text excerpts that can be semantically extracted from multiple documents and multiple parts of the same document. If in extreme cases your documents produce no relevant passages using the Retrieve API, you can alternatively use the Query API. You can also do the following: Override boosting at the index level Filter based on document fields or attributes Filter based on the user or their group access to documents You can also include certain fields in the response that might provide useful additional information.
|
432
|
+
*/
|
433
|
+
retrieve(params: Kendra.Types.RetrieveRequest, callback?: (err: AWSError, data: Kendra.Types.RetrieveResult) => void): Request<Kendra.Types.RetrieveResult, AWSError>;
|
434
|
+
/**
|
435
|
+
* Retrieves relevant passages or text excerpts given an input query. This API is similar to the Query API. However, by default, the Query API only returns excerpt passages of up to 100 token words. With the Retrieve API, you can retrieve longer passages of up to 200 token words and up to 100 semantically relevant passages. This doesn't include question-answer or FAQ type responses from your index. The passages are text excerpts that can be semantically extracted from multiple documents and multiple parts of the same document. If in extreme cases your documents produce no relevant passages using the Retrieve API, you can alternatively use the Query API. You can also do the following: Override boosting at the index level Filter based on document fields or attributes Filter based on the user or their group access to documents You can also include certain fields in the response that might provide useful additional information.
|
436
|
+
*/
|
437
|
+
retrieve(callback?: (err: AWSError, data: Kendra.Types.RetrieveResult) => void): Request<Kendra.Types.RetrieveResult, AWSError>;
|
430
438
|
/**
|
431
439
|
* Starts a synchronization job for a data source connector. If a synchronization job is already in progress, Amazon Kendra returns a ResourceInUseException exception.
|
432
440
|
*/
|
@@ -1208,6 +1216,7 @@ declare namespace Kendra {
|
|
1208
1216
|
*/
|
1209
1217
|
SecretArn: SecretArn;
|
1210
1218
|
}
|
1219
|
+
export type Content = string;
|
1211
1220
|
export interface ContentSourceConfiguration {
|
1212
1221
|
/**
|
1213
1222
|
* The identifier of the data sources you want to use for your Amazon Kendra experience.
|
@@ -1389,7 +1398,7 @@ declare namespace Kendra {
|
|
1389
1398
|
*/
|
1390
1399
|
Tags?: TagList;
|
1391
1400
|
/**
|
1392
|
-
* The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes. The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter. For more information, see Adding questions and answers.
|
1401
|
+
* The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes. The default format is CSV. The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter. For more information, see Adding questions and answers.
|
1393
1402
|
*/
|
1394
1403
|
FileFormat?: FaqFileFormat;
|
1395
1404
|
/**
|
@@ -1648,7 +1657,7 @@ declare namespace Kendra {
|
|
1648
1657
|
*/
|
1649
1658
|
GitHubConfiguration?: GitHubConfiguration;
|
1650
1659
|
/**
|
1651
|
-
* Provides the configuration information to connect to Alfresco as your data source.
|
1660
|
+
* Provides the configuration information to connect to Alfresco as your data source. Support for AlfrescoConfiguration ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
|
1652
1661
|
*/
|
1653
1662
|
AlfrescoConfiguration?: AlfrescoConfiguration;
|
1654
1663
|
/**
|
@@ -2523,7 +2532,7 @@ declare namespace Kendra {
|
|
2523
2532
|
*/
|
2524
2533
|
HierarchicalAccessControlList?: HierarchicalPrincipalList;
|
2525
2534
|
/**
|
2526
|
-
* The file type of the document in the Blob field.
|
2535
|
+
* The file type of the document in the Blob field. If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you must add the HTML start and closing tags (<HTML>content</HTML>) around the content.
|
2527
2536
|
*/
|
2528
2537
|
ContentType?: ContentType;
|
2529
2538
|
/**
|
@@ -2656,6 +2665,7 @@ declare namespace Kendra {
|
|
2656
2665
|
export type DocumentRelevanceOverrideConfigurationList = DocumentRelevanceConfiguration[];
|
2657
2666
|
export type DocumentStatus = "NOT_FOUND"|"PROCESSING"|"INDEXED"|"UPDATED"|"FAILED"|"UPDATE_FAILED"|string;
|
2658
2667
|
export type DocumentStatusList = Status[];
|
2668
|
+
export type DocumentTitle = string;
|
2659
2669
|
export interface DocumentsMetadataConfiguration {
|
2660
2670
|
/**
|
2661
2671
|
* A prefix used to filter metadata configuration files in the Amazon Web Services S3 bucket. The S3 bucket might contain multiple metadata files. Use S3Prefix to include only the desired metadata files.
|
@@ -4029,7 +4039,7 @@ declare namespace Kendra {
|
|
4029
4039
|
export type QueryIdentifiersEnclosingOption = "DOUBLE_QUOTES"|"NONE"|string;
|
4030
4040
|
export interface QueryRequest {
|
4031
4041
|
/**
|
4032
|
-
* The identifier of the index
|
4042
|
+
* The identifier of the index for the search.
|
4033
4043
|
*/
|
4034
4044
|
IndexId: IndexId;
|
4035
4045
|
/**
|
@@ -4037,23 +4047,23 @@ declare namespace Kendra {
|
|
4037
4047
|
*/
|
4038
4048
|
QueryText?: QueryText;
|
4039
4049
|
/**
|
4040
|
-
*
|
4050
|
+
* Filters search results by document fields/attributes. You can only provide one attribute filter; however, the AndAllFilters, NotFilter, and OrAllFilters parameters contain a list of other filters. The AttributeFilter parameter means you can create a set of filtering rules that a document must satisfy to be included in the query results.
|
4041
4051
|
*/
|
4042
4052
|
AttributeFilter?: AttributeFilter;
|
4043
4053
|
/**
|
4044
|
-
* An array of documents attributes. Amazon Kendra returns a count for each
|
4054
|
+
* An array of documents fields/attributes for faceted search. Amazon Kendra returns a count for each field key specified. This helps your users narrow their search.
|
4045
4055
|
*/
|
4046
4056
|
Facets?: FacetList;
|
4047
4057
|
/**
|
4048
|
-
* An array of document attributes to include in the response. You can limit the response to include certain document
|
4058
|
+
* An array of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document attributes are included in the response.
|
4049
4059
|
*/
|
4050
4060
|
RequestedDocumentAttributes?: DocumentAttributeKeyList;
|
4051
4061
|
/**
|
4052
|
-
* Sets the type of query. Only results for the specified
|
4062
|
+
* Sets the type of query result or response. Only results for the specified type are returned.
|
4053
4063
|
*/
|
4054
4064
|
QueryResultTypeFilter?: QueryResultType;
|
4055
4065
|
/**
|
4056
|
-
* Overrides relevance tuning configurations of fields
|
4066
|
+
* Overrides relevance tuning configurations of fields/attributes set at the index level. If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning. If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
|
4057
4067
|
*/
|
4058
4068
|
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceOverrideConfigurationList;
|
4059
4069
|
/**
|
@@ -4083,7 +4093,7 @@ declare namespace Kendra {
|
|
4083
4093
|
}
|
4084
4094
|
export interface QueryResult {
|
4085
4095
|
/**
|
4086
|
-
* The identifier for the search. You use QueryId to identify the search when using the
|
4096
|
+
* The identifier for the search. You also use QueryId to identify the search when using the SubmitFeedback API.
|
4087
4097
|
*/
|
4088
4098
|
QueryId?: QueryId;
|
4089
4099
|
/**
|
@@ -4091,11 +4101,11 @@ declare namespace Kendra {
|
|
4091
4101
|
*/
|
4092
4102
|
ResultItems?: QueryResultItemList;
|
4093
4103
|
/**
|
4094
|
-
* Contains the facet results. A FacetResult contains the counts for each attribute key that was specified in the Facets input parameter.
|
4104
|
+
* Contains the facet results. A FacetResult contains the counts for each field/attribute key that was specified in the Facets input parameter.
|
4095
4105
|
*/
|
4096
4106
|
FacetResults?: FacetResultList;
|
4097
4107
|
/**
|
4098
|
-
* The total number of items found by the search
|
4108
|
+
* The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
|
4099
4109
|
*/
|
4100
4110
|
TotalNumberOfResults?: Integer;
|
4101
4111
|
/**
|
@@ -4126,7 +4136,7 @@ declare namespace Kendra {
|
|
4126
4136
|
*/
|
4127
4137
|
Format?: QueryResultFormat;
|
4128
4138
|
/**
|
4129
|
-
* One or more additional attributes associated with the query result.
|
4139
|
+
* One or more additional fields/attributes associated with the query result.
|
4130
4140
|
*/
|
4131
4141
|
AdditionalAttributes?: AdditionalResultAttributeList;
|
4132
4142
|
/**
|
@@ -4146,15 +4156,15 @@ declare namespace Kendra {
|
|
4146
4156
|
*/
|
4147
4157
|
DocumentURI?: Url;
|
4148
4158
|
/**
|
4149
|
-
* An array of document attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.
|
4159
|
+
* An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.
|
4150
4160
|
*/
|
4151
4161
|
DocumentAttributes?: DocumentAttributeList;
|
4152
4162
|
/**
|
4153
|
-
* Indicates the confidence
|
4163
|
+
* Indicates the confidence level of Amazon Kendra providing a relevant result for the query. Each result is placed into a bin that indicates the confidence, VERY_HIGH, HIGH, MEDIUM and LOW. You can use the score to determine if a response meets the confidence needed for your application. The field is only set to LOW when the Type field is set to DOCUMENT and Amazon Kendra is not confident that the result is relevant to the query.
|
4154
4164
|
*/
|
4155
4165
|
ScoreAttributes?: ScoreAttributes;
|
4156
4166
|
/**
|
4157
|
-
* A token that identifies a particular result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback
|
4167
|
+
* A token that identifies a particular result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
|
4158
4168
|
*/
|
4159
4169
|
FeedbackToken?: FeedbackToken;
|
4160
4170
|
/**
|
@@ -4286,6 +4296,77 @@ declare namespace Kendra {
|
|
4286
4296
|
export type RepositoryName = string;
|
4287
4297
|
export type RepositoryNames = RepositoryName[];
|
4288
4298
|
export type ResultId = string;
|
4299
|
+
export interface RetrieveRequest {
|
4300
|
+
/**
|
4301
|
+
* The identifier of the index to retrieve relevant passages for the search.
|
4302
|
+
*/
|
4303
|
+
IndexId: IndexId;
|
4304
|
+
/**
|
4305
|
+
* The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30 token words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced, complex queries.
|
4306
|
+
*/
|
4307
|
+
QueryText: QueryText;
|
4308
|
+
/**
|
4309
|
+
* Filters search results by document fields/attributes. You can only provide one attribute filter; however, the AndAllFilters, NotFilter, and OrAllFilters parameters contain a list of other filters. The AttributeFilter parameter means you can create a set of filtering rules that a document must satisfy to be included in the query results.
|
4310
|
+
*/
|
4311
|
+
AttributeFilter?: AttributeFilter;
|
4312
|
+
/**
|
4313
|
+
* A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.
|
4314
|
+
*/
|
4315
|
+
RequestedDocumentAttributes?: DocumentAttributeKeyList;
|
4316
|
+
/**
|
4317
|
+
* Overrides relevance tuning configurations of fields/attributes set at the index level. If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning. If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.
|
4318
|
+
*/
|
4319
|
+
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceOverrideConfigurationList;
|
4320
|
+
/**
|
4321
|
+
* Retrieved relevant passages are returned in pages the size of the PageSize parameter. By default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.
|
4322
|
+
*/
|
4323
|
+
PageNumber?: Integer;
|
4324
|
+
/**
|
4325
|
+
* Sets the number of retrieved relevant passages that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.
|
4326
|
+
*/
|
4327
|
+
PageSize?: Integer;
|
4328
|
+
/**
|
4329
|
+
* The user context token or user and group information.
|
4330
|
+
*/
|
4331
|
+
UserContext?: UserContext;
|
4332
|
+
}
|
4333
|
+
export interface RetrieveResult {
|
4334
|
+
/**
|
4335
|
+
* The identifier of query used for the search. You also use QueryId to identify the search when using the Submitfeedback API.
|
4336
|
+
*/
|
4337
|
+
QueryId?: QueryId;
|
4338
|
+
/**
|
4339
|
+
* The results of the retrieved relevant passages for the search.
|
4340
|
+
*/
|
4341
|
+
ResultItems?: RetrieveResultItemList;
|
4342
|
+
}
|
4343
|
+
export interface RetrieveResultItem {
|
4344
|
+
/**
|
4345
|
+
* The identifier of the relevant passage result.
|
4346
|
+
*/
|
4347
|
+
Id?: ResultId;
|
4348
|
+
/**
|
4349
|
+
* The identifier of the document.
|
4350
|
+
*/
|
4351
|
+
DocumentId?: DocumentId;
|
4352
|
+
/**
|
4353
|
+
* The title of the document.
|
4354
|
+
*/
|
4355
|
+
DocumentTitle?: DocumentTitle;
|
4356
|
+
/**
|
4357
|
+
* The contents of the relevant passage.
|
4358
|
+
*/
|
4359
|
+
Content?: Content;
|
4360
|
+
/**
|
4361
|
+
* The URI of the original location of the document.
|
4362
|
+
*/
|
4363
|
+
DocumentURI?: Url;
|
4364
|
+
/**
|
4365
|
+
* An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.
|
4366
|
+
*/
|
4367
|
+
DocumentAttributes?: DocumentAttributeList;
|
4368
|
+
}
|
4369
|
+
export type RetrieveResultItemList = RetrieveResultItem[];
|
4289
4370
|
export type RoleArn = string;
|
4290
4371
|
export type S3BucketName = string;
|
4291
4372
|
export interface S3DataSourceConfiguration {
|
@@ -4473,7 +4554,7 @@ declare namespace Kendra {
|
|
4473
4554
|
export type ScanSchedule = string;
|
4474
4555
|
export interface ScoreAttributes {
|
4475
4556
|
/**
|
4476
|
-
* A relative ranking for how
|
4557
|
+
* A relative ranking for how relevant the response is to the query.
|
4477
4558
|
*/
|
4478
4559
|
ScoreConfidence?: ScoreConfidence;
|
4479
4560
|
}
|
@@ -4505,7 +4586,7 @@ declare namespace Kendra {
|
|
4505
4586
|
*/
|
4506
4587
|
SeedUrls: SeedUrlList;
|
4507
4588
|
/**
|
4508
|
-
* You can choose one of the following modes: HOST_ONLY
|
4589
|
+
* You can choose one of the following modes: HOST_ONLY—crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled. SUBDOMAINS—crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled. EVERYTHING—crawl the website host names with subdomains and other domains that the web pages link to. The default mode is set to HOST_ONLY.
|
4509
4590
|
*/
|
4510
4591
|
WebCrawlerMode?: WebCrawlerMode;
|
4511
4592
|
}
|
@@ -4551,11 +4632,11 @@ declare namespace Kendra {
|
|
4551
4632
|
*/
|
4552
4633
|
CrawlAttachments?: Boolean;
|
4553
4634
|
/**
|
4554
|
-
* A list of regular expression patterns to include
|
4635
|
+
* A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
|
4555
4636
|
*/
|
4556
4637
|
IncludeAttachmentFilePatterns?: DataSourceInclusionsExclusionsStrings;
|
4557
4638
|
/**
|
4558
|
-
* A list of regular expression patterns to exclude certain
|
4639
|
+
* A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
|
4559
4640
|
*/
|
4560
4641
|
ExcludeAttachmentFilePatterns?: DataSourceInclusionsExclusionsStrings;
|
4561
4642
|
/**
|
@@ -5386,7 +5467,7 @@ declare namespace Kendra {
|
|
5386
5467
|
*/
|
5387
5468
|
Urls: Urls;
|
5388
5469
|
/**
|
5389
|
-
*
|
5470
|
+
* The 'depth' or number of levels from the seed level to crawl. For example, the seed URL page is depth 1 and any hyperlinks on this page that are also crawled are depth 2.
|
5390
5471
|
*/
|
5391
5472
|
CrawlDepth?: CrawlDepth;
|
5392
5473
|
/**
|