@aws-sdk/client-textract 3.216.0 → 3.222.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.
Files changed (35) hide show
  1. package/dist-cjs/Textract.js +45 -0
  2. package/dist-cjs/commands/GetLendingAnalysisCommand.js +46 -0
  3. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +46 -0
  4. package/dist-cjs/commands/StartLendingAnalysisCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +1 -1
  7. package/dist-cjs/models/models_0.js +77 -1
  8. package/dist-cjs/protocols/Aws_json1_1.js +501 -1
  9. package/dist-es/Textract.js +45 -0
  10. package/dist-es/commands/GetLendingAnalysisCommand.js +42 -0
  11. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +42 -0
  12. package/dist-es/commands/StartLendingAnalysisCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/endpoint/ruleset.js +1 -1
  15. package/dist-es/models/models_0.js +57 -0
  16. package/dist-es/protocols/Aws_json1_1.js +494 -0
  17. package/dist-types/Textract.d.ts +72 -0
  18. package/dist-types/TextractClient.d.ts +5 -2
  19. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +47 -0
  20. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +48 -0
  21. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +67 -0
  22. package/dist-types/commands/index.d.ts +3 -0
  23. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  24. package/dist-types/models/models_0.d.ts +431 -10
  25. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  26. package/dist-types/ts3.4/Textract.d.ts +51 -0
  27. package/dist-types/ts3.4/TextractClient.d.ts +20 -2
  28. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +38 -0
  29. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +41 -0
  30. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +41 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  32. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  33. package/dist-types/ts3.4/models/models_0.d.ts +144 -0
  34. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  35. package/package.json +29 -28
@@ -1024,9 +1024,61 @@ export interface DetectDocumentTextResponse {
1024
1024
  */
1025
1025
  DetectDocumentTextModelVersion?: string;
1026
1026
  }
1027
+ /**
1028
+ * <p>A structure that holds information regarding a detected signature on a page.</p>
1029
+ */
1030
+ export interface DetectedSignature {
1031
+ /**
1032
+ * <p>The page a detected signature was found on.</p>
1033
+ */
1034
+ Page?: number;
1035
+ }
1036
+ /**
1037
+ * <p>Contains information about the pages of a document, defined by logical boundary.</p>
1038
+ */
1039
+ export interface SplitDocument {
1040
+ /**
1041
+ * <p>The index for a given document in a DocumentGroup of a specific Type.</p>
1042
+ */
1043
+ Index?: number;
1044
+ /**
1045
+ * <p>An array of page numbers for a for a given document, ordered by logical boundary.</p>
1046
+ */
1047
+ Pages?: number[];
1048
+ }
1049
+ /**
1050
+ * <p>A structure containing information about an undetected signature on a page where it was expected but not found.</p>
1051
+ */
1052
+ export interface UndetectedSignature {
1053
+ /**
1054
+ * <p>The page where a signature was expected but not found.</p>
1055
+ */
1056
+ Page?: number;
1057
+ }
1058
+ /**
1059
+ * <p>Summary information about documents grouped by the same document type.</p>
1060
+ */
1061
+ export interface DocumentGroup {
1062
+ /**
1063
+ * <p>The type of document that Amazon Textract has detected. See LINK for a list of all types returned by Textract.</p>
1064
+ */
1065
+ Type?: string;
1066
+ /**
1067
+ * <p>An array that contains information about the pages of a document, defined by logical boundary.</p>
1068
+ */
1069
+ SplitDocuments?: SplitDocument[];
1070
+ /**
1071
+ * <p>A list of the detected signatures found in a document group.</p>
1072
+ */
1073
+ DetectedSignatures?: DetectedSignature[];
1074
+ /**
1075
+ * <p>A list of any expected signatures not found in a document group.</p>
1076
+ */
1077
+ UndetectedSignatures?: UndetectedSignature[];
1078
+ }
1027
1079
  /**
1028
1080
  * <p>The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous
1029
- * operations such as <a>StartDocumentTextDetection</a>.</p>
1081
+ * operations.</p>
1030
1082
  * <p>The input document can be an image file in JPEG or PNG format. It can also be a file in
1031
1083
  * PDF format.</p>
1032
1084
  */
@@ -1036,6 +1088,89 @@ export interface DocumentLocation {
1036
1088
  */
1037
1089
  S3Object?: S3Object;
1038
1090
  }
1091
+ /**
1092
+ * <p>The results extracted for a lending document.</p>
1093
+ */
1094
+ export interface LendingDetection {
1095
+ /**
1096
+ * <p>The text extracted for a detected value in a lending document.</p>
1097
+ */
1098
+ Text?: string;
1099
+ /**
1100
+ * <p>The selection status of a selection element, such as an option button or check box.</p>
1101
+ */
1102
+ SelectionStatus?: SelectionStatus | string;
1103
+ /**
1104
+ * <p>Information about where the following items are located on a document page: detected
1105
+ * page, text, key-value pairs, tables, table cells, and selection elements.</p>
1106
+ */
1107
+ Geometry?: Geometry;
1108
+ /**
1109
+ * <p>The confidence level for the text of a detected value in a lending document.</p>
1110
+ */
1111
+ Confidence?: number;
1112
+ }
1113
+ /**
1114
+ * <p>Holds the normalized key-value pairs returned by AnalyzeDocument, including the document type, detected text, and geometry.</p>
1115
+ */
1116
+ export interface LendingField {
1117
+ /**
1118
+ * <p>The type of the lending document.</p>
1119
+ */
1120
+ Type?: string;
1121
+ /**
1122
+ * <p>The results extracted for a lending document.</p>
1123
+ */
1124
+ KeyDetection?: LendingDetection;
1125
+ /**
1126
+ * <p>An array of LendingDetection objects.</p>
1127
+ */
1128
+ ValueDetections?: LendingDetection[];
1129
+ }
1130
+ /**
1131
+ * <p>Information regarding a detected signature on a page.</p>
1132
+ */
1133
+ export interface SignatureDetection {
1134
+ /**
1135
+ * <p>The confidence, from 0 to 100, in the predicted values for a detected signature.</p>
1136
+ */
1137
+ Confidence?: number;
1138
+ /**
1139
+ * <p>Information about where the following items are located on a document page: detected
1140
+ * page, text, key-value pairs, tables, table cells, and selection elements.</p>
1141
+ */
1142
+ Geometry?: Geometry;
1143
+ }
1144
+ /**
1145
+ * <p>Holds the structured data returned by AnalyzeDocument for lending documents.</p>
1146
+ */
1147
+ export interface LendingDocument {
1148
+ /**
1149
+ * <p>An array of LendingField objects.</p>
1150
+ */
1151
+ LendingFields?: LendingField[];
1152
+ /**
1153
+ * <p>A list of signatures detected in a lending document.</p>
1154
+ */
1155
+ SignatureDetections?: SignatureDetection[];
1156
+ }
1157
+ /**
1158
+ * <p>Contains information extracted by an analysis operation after using StartLendingAnalysis.</p>
1159
+ */
1160
+ export interface Extraction {
1161
+ /**
1162
+ * <p>Holds the structured data returned by AnalyzeDocument for lending documents.</p>
1163
+ */
1164
+ LendingDocument?: LendingDocument;
1165
+ /**
1166
+ * <p>The structure holding all the information returned by AnalyzeExpense</p>
1167
+ */
1168
+ ExpenseDocument?: ExpenseDocument;
1169
+ /**
1170
+ * <p>The structure that lists each document processed in an AnalyzeID operation.</p>
1171
+ */
1172
+ IdentityDocument?: IdentityDocument;
1173
+ }
1039
1174
  export interface GetDocumentAnalysisRequest {
1040
1175
  /**
1041
1176
  * <p>A unique identifier for the text-detection job. The <code>JobId</code> is returned from
@@ -1110,8 +1245,7 @@ export interface GetDocumentAnalysisResponse {
1110
1245
  AnalyzeDocumentModelVersion?: string;
1111
1246
  }
1112
1247
  /**
1113
- * <p>An invalid job identifier was passed to <a>GetDocumentAnalysis</a> or to
1114
- * <a>GetDocumentAnalysis</a>.</p>
1248
+ * <p>An invalid job identifier was passed to an asynchronous analysis operation.</p>
1115
1249
  */
1116
1250
  export declare class InvalidJobIdException extends __BaseException {
1117
1251
  readonly name: "InvalidJobIdException";
@@ -1239,6 +1373,153 @@ export interface GetExpenseAnalysisResponse {
1239
1373
  */
1240
1374
  AnalyzeExpenseModelVersion?: string;
1241
1375
  }
1376
+ export interface GetLendingAnalysisRequest {
1377
+ /**
1378
+ * <p>A unique identifier for the lending or text-detection job. The <code>JobId</code> is
1379
+ * returned from <code>StartLendingAnalysis</code>. A <code>JobId</code> value is only
1380
+ * valid for 7 days.</p>
1381
+ */
1382
+ JobId: string | undefined;
1383
+ /**
1384
+ * <p>The maximum number of results to return per paginated call. The largest value that you
1385
+ * can specify is 30. If you specify a value greater than 30, a maximum of 30 results is
1386
+ * returned. The default value is 30.</p>
1387
+ */
1388
+ MaxResults?: number;
1389
+ /**
1390
+ * <p>If the previous response was incomplete, Amazon Textract returns a pagination token in
1391
+ * the response. You can use this pagination token to retrieve the next set of lending
1392
+ * results.</p>
1393
+ */
1394
+ NextToken?: string;
1395
+ }
1396
+ /**
1397
+ * <p>Contains information regarding predicted values returned by Amazon Textract operations, including the
1398
+ * predicted value and the confidence in the predicted value.</p>
1399
+ */
1400
+ export interface Prediction {
1401
+ /**
1402
+ * <p>The predicted value of a detected object.</p>
1403
+ */
1404
+ Value?: string;
1405
+ /**
1406
+ * <p>Amazon Textract's confidence in its predicted value.</p>
1407
+ */
1408
+ Confidence?: number;
1409
+ }
1410
+ /**
1411
+ * <p>The class assigned to a Page object detected in an input document.
1412
+ * Contains information regarding the predicted type/class of a document's page and the
1413
+ * page number that the Page object was detected on.</p>
1414
+ */
1415
+ export interface PageClassification {
1416
+ /**
1417
+ * <p>The class, or document type, assigned to a detected Page object. The class, or document type,
1418
+ * assigned to a detected Page object.</p>
1419
+ */
1420
+ PageType: Prediction[] | undefined;
1421
+ /**
1422
+ * <p> The page number the value was detected on, relative to Amazon Textract's starting position.</p>
1423
+ */
1424
+ PageNumber: Prediction[] | undefined;
1425
+ }
1426
+ /**
1427
+ * <p>Contains the detections for each page analyzed through the Analyze Lending API.</p>
1428
+ */
1429
+ export interface LendingResult {
1430
+ /**
1431
+ * <p>The page number for a page, with regard to whole submission.</p>
1432
+ */
1433
+ Page?: number;
1434
+ /**
1435
+ * <p>The classifier result for a given page.</p>
1436
+ */
1437
+ PageClassification?: PageClassification;
1438
+ /**
1439
+ * <p>An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections .</p>
1440
+ */
1441
+ Extractions?: Extraction[];
1442
+ }
1443
+ export interface GetLendingAnalysisResponse {
1444
+ /**
1445
+ * <p>Information about the input document.</p>
1446
+ */
1447
+ DocumentMetadata?: DocumentMetadata;
1448
+ /**
1449
+ * <p> The current status of the lending analysis job.</p>
1450
+ */
1451
+ JobStatus?: JobStatus | string;
1452
+ /**
1453
+ * <p>If the response is truncated, Amazon Textract returns this token.
1454
+ * You can use this token in the subsequent request to retrieve the next set of lending results.</p>
1455
+ */
1456
+ NextToken?: string;
1457
+ /**
1458
+ * <p> Holds the information returned by one of AmazonTextract's document analysis
1459
+ * operations for the pinstripe.</p>
1460
+ */
1461
+ Results?: LendingResult[];
1462
+ /**
1463
+ * <p> A list of warnings that occurred during the lending analysis operation. </p>
1464
+ */
1465
+ Warnings?: Warning[];
1466
+ /**
1467
+ * <p> Returns if the lending analysis job could not be completed. Contains explanation for
1468
+ * what error occurred. </p>
1469
+ */
1470
+ StatusMessage?: string;
1471
+ /**
1472
+ * <p> The current model version of the Analyze Lending API.</p>
1473
+ */
1474
+ AnalyzeLendingModelVersion?: string;
1475
+ }
1476
+ export interface GetLendingAnalysisSummaryRequest {
1477
+ /**
1478
+ * <p> A unique identifier for the lending or text-detection job. The <code>JobId</code> is
1479
+ * returned from StartLendingAnalysis. A <code>JobId</code> value is only valid for 7 days.</p>
1480
+ */
1481
+ JobId: string | undefined;
1482
+ }
1483
+ /**
1484
+ * <p>Contains information regarding DocumentGroups and UndetectedDocumentTypes.</p>
1485
+ */
1486
+ export interface LendingSummary {
1487
+ /**
1488
+ * <p>Contains an array of all DocumentGroup objects.</p>
1489
+ */
1490
+ DocumentGroups?: DocumentGroup[];
1491
+ /**
1492
+ * <p>UndetectedDocumentTypes.</p>
1493
+ */
1494
+ UndetectedDocumentTypes?: string[];
1495
+ }
1496
+ export interface GetLendingAnalysisSummaryResponse {
1497
+ /**
1498
+ * <p>Information about the input document.</p>
1499
+ */
1500
+ DocumentMetadata?: DocumentMetadata;
1501
+ /**
1502
+ * <p> The current status of the lending analysis job. </p>
1503
+ */
1504
+ JobStatus?: JobStatus | string;
1505
+ /**
1506
+ * <p> Contains summary information for documents grouped by type.</p>
1507
+ */
1508
+ Summary?: LendingSummary;
1509
+ /**
1510
+ * <p>A list of warnings that occurred during the lending analysis operation.</p>
1511
+ */
1512
+ Warnings?: Warning[];
1513
+ /**
1514
+ * <p>Returns if the lending analysis could not be completed. Contains explanation for what error
1515
+ * occurred.</p>
1516
+ */
1517
+ StatusMessage?: string;
1518
+ /**
1519
+ * <p>The current model version of the Analyze Lending API.</p>
1520
+ */
1521
+ AnalyzeLendingModelVersion?: string;
1522
+ }
1242
1523
  /**
1243
1524
  * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at
1244
1525
  * least one of the other input parameters is different from the previous call to the
@@ -1273,7 +1554,7 @@ export declare class LimitExceededException extends __BaseException {
1273
1554
  }
1274
1555
  /**
1275
1556
  * <p>The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of
1276
- * an asynchronous document operation, such as <a>StartDocumentTextDetection</a>. </p>
1557
+ * an asynchronous document operation. </p>
1277
1558
  */
1278
1559
  export interface NotificationChannel {
1279
1560
  /**
@@ -1289,12 +1570,13 @@ export interface NotificationChannel {
1289
1570
  * <p>Sets whether or not your output will go to a user created bucket. Used to set the name
1290
1571
  * of the bucket, and the prefix on the output file.</p>
1291
1572
  * <p>
1292
- * <code>OutputConfig</code> is an optional parameter which lets you adjust where your output will be placed.
1293
- * By default, Amazon Textract will store the results internally and can only be accessed by the Get
1294
- * API operations. With OutputConfig enabled, you can set the name of the bucket the output will be
1295
- * sent to and the file prefix of the results where you can download your results. Additionally, you
1296
- * can set the <code>KMSKeyID</code> parameter to a customer master key (CMK) to encrypt your output. Without this
1297
- * parameter set Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.</p>
1573
+ * <code>OutputConfig</code> is an optional parameter which lets you adjust where your
1574
+ * output will be placed. By default, Amazon Textract will store the results internally and can
1575
+ * only be accessed by the Get API operations. With <code>OutputConfig</code> enabled, you can
1576
+ * set the name of the bucket the output will be sent to the file prefix of the results where
1577
+ * you can download your results. Additionally, you can set the <code>KMSKeyID</code>
1578
+ * parameter to a customer master key (CMK) to encrypt your output. Without this parameter set
1579
+ * Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.</p>
1298
1580
  * <p>Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account
1299
1581
  * is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after
1300
1582
  * the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html"> Managing AI services opt-out policy. </a>
@@ -1467,6 +1749,69 @@ export interface StartExpenseAnalysisResponse {
1467
1749
  */
1468
1750
  JobId?: string;
1469
1751
  }
1752
+ export interface StartLendingAnalysisRequest {
1753
+ /**
1754
+ * <p>The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous
1755
+ * operations.</p>
1756
+ * <p>The input document can be an image file in JPEG or PNG format. It can also be a file in
1757
+ * PDF format.</p>
1758
+ */
1759
+ DocumentLocation: DocumentLocation | undefined;
1760
+ /**
1761
+ * <p>The idempotent token that you use to identify the start request. If you use the same token
1762
+ * with multiple <code>StartLendingAnalysis</code> requests, the same <code>JobId</code> is
1763
+ * returned. Use <code>ClientRequestToken</code> to prevent the same job from being accidentally
1764
+ * started more than once. For more information, see <a href="https://docs.aws.amazon.com/textract/latest/dg/api-sync.html">Calling Amazon Textract Asynchronous Operations</a>.</p>
1765
+ */
1766
+ ClientRequestToken?: string;
1767
+ /**
1768
+ * <p>An identifier that you specify to be included in the completion notification published to
1769
+ * the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of
1770
+ * document that the completion notification corresponds to (such as a tax form or a
1771
+ * receipt).</p>
1772
+ */
1773
+ JobTag?: string;
1774
+ /**
1775
+ * <p>The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of
1776
+ * an asynchronous document operation. </p>
1777
+ */
1778
+ NotificationChannel?: NotificationChannel;
1779
+ /**
1780
+ * <p>Sets whether or not your output will go to a user created bucket. Used to set the name
1781
+ * of the bucket, and the prefix on the output file.</p>
1782
+ * <p>
1783
+ * <code>OutputConfig</code> is an optional parameter which lets you adjust where your
1784
+ * output will be placed. By default, Amazon Textract will store the results internally and can
1785
+ * only be accessed by the Get API operations. With <code>OutputConfig</code> enabled, you can
1786
+ * set the name of the bucket the output will be sent to the file prefix of the results where
1787
+ * you can download your results. Additionally, you can set the <code>KMSKeyID</code>
1788
+ * parameter to a customer master key (CMK) to encrypt your output. Without this parameter set
1789
+ * Amazon Textract will encrypt server-side using the AWS managed CMK for Amazon S3.</p>
1790
+ * <p>Decryption of Customer Content is necessary for processing of the documents by Amazon Textract. If your account
1791
+ * is opted out under an AI services opt out policy then all unencrypted Customer Content is immediately and permanently deleted after
1792
+ * the Customer Content has been processed by the service. No copy of of the output is retained by Amazon Textract. For information about how to opt out, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html"> Managing AI services opt-out policy. </a>
1793
+ * </p>
1794
+ * <p>For more information on data privacy,
1795
+ * see the <a href="https://aws.amazon.com/compliance/data-privacy-faq/">Data Privacy
1796
+ * FAQ</a>.</p>
1797
+ */
1798
+ OutputConfig?: OutputConfig;
1799
+ /**
1800
+ * <p>The KMS key used to encrypt the inference results. This can be in either Key ID or Key
1801
+ * Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of
1802
+ * the objects in the customer bucket. When this parameter is not enabled, the result will be
1803
+ * encrypted server side, using SSE-S3. </p>
1804
+ */
1805
+ KMSKeyId?: string;
1806
+ }
1807
+ export interface StartLendingAnalysisResponse {
1808
+ /**
1809
+ * <p>A unique identifier for the lending or text-detection job. The <code>JobId</code> is
1810
+ * returned from <code>StartLendingAnalysis</code>. A <code>JobId</code> value is only valid for 7
1811
+ * days.</p>
1812
+ */
1813
+ JobId?: string;
1814
+ }
1470
1815
  /**
1471
1816
  * @internal
1472
1817
  */
@@ -1599,10 +1944,46 @@ export declare const DetectDocumentTextRequestFilterSensitiveLog: (obj: DetectDo
1599
1944
  * @internal
1600
1945
  */
1601
1946
  export declare const DetectDocumentTextResponseFilterSensitiveLog: (obj: DetectDocumentTextResponse) => any;
1947
+ /**
1948
+ * @internal
1949
+ */
1950
+ export declare const DetectedSignatureFilterSensitiveLog: (obj: DetectedSignature) => any;
1951
+ /**
1952
+ * @internal
1953
+ */
1954
+ export declare const SplitDocumentFilterSensitiveLog: (obj: SplitDocument) => any;
1955
+ /**
1956
+ * @internal
1957
+ */
1958
+ export declare const UndetectedSignatureFilterSensitiveLog: (obj: UndetectedSignature) => any;
1959
+ /**
1960
+ * @internal
1961
+ */
1962
+ export declare const DocumentGroupFilterSensitiveLog: (obj: DocumentGroup) => any;
1602
1963
  /**
1603
1964
  * @internal
1604
1965
  */
1605
1966
  export declare const DocumentLocationFilterSensitiveLog: (obj: DocumentLocation) => any;
1967
+ /**
1968
+ * @internal
1969
+ */
1970
+ export declare const LendingDetectionFilterSensitiveLog: (obj: LendingDetection) => any;
1971
+ /**
1972
+ * @internal
1973
+ */
1974
+ export declare const LendingFieldFilterSensitiveLog: (obj: LendingField) => any;
1975
+ /**
1976
+ * @internal
1977
+ */
1978
+ export declare const SignatureDetectionFilterSensitiveLog: (obj: SignatureDetection) => any;
1979
+ /**
1980
+ * @internal
1981
+ */
1982
+ export declare const LendingDocumentFilterSensitiveLog: (obj: LendingDocument) => any;
1983
+ /**
1984
+ * @internal
1985
+ */
1986
+ export declare const ExtractionFilterSensitiveLog: (obj: Extraction) => any;
1606
1987
  /**
1607
1988
  * @internal
1608
1989
  */
@@ -1631,6 +2012,38 @@ export declare const GetExpenseAnalysisRequestFilterSensitiveLog: (obj: GetExpen
1631
2012
  * @internal
1632
2013
  */
1633
2014
  export declare const GetExpenseAnalysisResponseFilterSensitiveLog: (obj: GetExpenseAnalysisResponse) => any;
2015
+ /**
2016
+ * @internal
2017
+ */
2018
+ export declare const GetLendingAnalysisRequestFilterSensitiveLog: (obj: GetLendingAnalysisRequest) => any;
2019
+ /**
2020
+ * @internal
2021
+ */
2022
+ export declare const PredictionFilterSensitiveLog: (obj: Prediction) => any;
2023
+ /**
2024
+ * @internal
2025
+ */
2026
+ export declare const PageClassificationFilterSensitiveLog: (obj: PageClassification) => any;
2027
+ /**
2028
+ * @internal
2029
+ */
2030
+ export declare const LendingResultFilterSensitiveLog: (obj: LendingResult) => any;
2031
+ /**
2032
+ * @internal
2033
+ */
2034
+ export declare const GetLendingAnalysisResponseFilterSensitiveLog: (obj: GetLendingAnalysisResponse) => any;
2035
+ /**
2036
+ * @internal
2037
+ */
2038
+ export declare const GetLendingAnalysisSummaryRequestFilterSensitiveLog: (obj: GetLendingAnalysisSummaryRequest) => any;
2039
+ /**
2040
+ * @internal
2041
+ */
2042
+ export declare const LendingSummaryFilterSensitiveLog: (obj: LendingSummary) => any;
2043
+ /**
2044
+ * @internal
2045
+ */
2046
+ export declare const GetLendingAnalysisSummaryResponseFilterSensitiveLog: (obj: GetLendingAnalysisSummaryResponse) => any;
1634
2047
  /**
1635
2048
  * @internal
1636
2049
  */
@@ -1663,3 +2076,11 @@ export declare const StartExpenseAnalysisRequestFilterSensitiveLog: (obj: StartE
1663
2076
  * @internal
1664
2077
  */
1665
2078
  export declare const StartExpenseAnalysisResponseFilterSensitiveLog: (obj: StartExpenseAnalysisResponse) => any;
2079
+ /**
2080
+ * @internal
2081
+ */
2082
+ export declare const StartLendingAnalysisRequestFilterSensitiveLog: (obj: StartLendingAnalysisRequest) => any;
2083
+ /**
2084
+ * @internal
2085
+ */
2086
+ export declare const StartLendingAnalysisResponseFilterSensitiveLog: (obj: StartLendingAnalysisResponse) => any;
@@ -7,9 +7,12 @@ import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from
7
7
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
8
8
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
9
9
  import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "../commands/GetExpenseAnalysisCommand";
10
+ import { GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput } from "../commands/GetLendingAnalysisCommand";
11
+ import { GetLendingAnalysisSummaryCommandInput, GetLendingAnalysisSummaryCommandOutput } from "../commands/GetLendingAnalysisSummaryCommand";
10
12
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "../commands/StartDocumentAnalysisCommand";
11
13
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "../commands/StartDocumentTextDetectionCommand";
12
14
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
15
+ import { StartLendingAnalysisCommandInput, StartLendingAnalysisCommandOutput } from "../commands/StartLendingAnalysisCommand";
13
16
  export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
17
  export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
18
  export declare const serializeAws_json1_1AnalyzeIDCommand: (input: AnalyzeIDCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -17,9 +20,12 @@ export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: Dete
17
20
  export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
21
  export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
22
  export declare const serializeAws_json1_1GetExpenseAnalysisCommand: (input: GetExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ export declare const serializeAws_json1_1GetLendingAnalysisCommand: (input: GetLendingAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
+ export declare const serializeAws_json1_1GetLendingAnalysisSummaryCommand: (input: GetLendingAnalysisSummaryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
25
  export declare const serializeAws_json1_1StartDocumentAnalysisCommand: (input: StartDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
26
  export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (input: StartDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
27
  export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
+ export declare const serializeAws_json1_1StartLendingAnalysisCommand: (input: StartLendingAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
29
  export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
24
30
  export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
25
31
  export declare const deserializeAws_json1_1AnalyzeIDCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeIDCommandOutput>;
@@ -27,6 +33,9 @@ export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: _
27
33
  export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
28
34
  export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
29
35
  export declare const deserializeAws_json1_1GetExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExpenseAnalysisCommandOutput>;
36
+ export declare const deserializeAws_json1_1GetLendingAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLendingAnalysisCommandOutput>;
37
+ export declare const deserializeAws_json1_1GetLendingAnalysisSummaryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLendingAnalysisSummaryCommandOutput>;
30
38
  export declare const deserializeAws_json1_1StartDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentAnalysisCommandOutput>;
31
39
  export declare const deserializeAws_json1_1StartDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentTextDetectionCommandOutput>;
32
40
  export declare const deserializeAws_json1_1StartExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartExpenseAnalysisCommandOutput>;
41
+ export declare const deserializeAws_json1_1StartLendingAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartLendingAnalysisCommandOutput>;
@@ -27,6 +27,14 @@ import {
27
27
  GetExpenseAnalysisCommandInput,
28
28
  GetExpenseAnalysisCommandOutput,
29
29
  } from "./commands/GetExpenseAnalysisCommand";
30
+ import {
31
+ GetLendingAnalysisCommandInput,
32
+ GetLendingAnalysisCommandOutput,
33
+ } from "./commands/GetLendingAnalysisCommand";
34
+ import {
35
+ GetLendingAnalysisSummaryCommandInput,
36
+ GetLendingAnalysisSummaryCommandOutput,
37
+ } from "./commands/GetLendingAnalysisSummaryCommand";
30
38
  import {
31
39
  StartDocumentAnalysisCommandInput,
32
40
  StartDocumentAnalysisCommandOutput,
@@ -39,6 +47,10 @@ import {
39
47
  StartExpenseAnalysisCommandInput,
40
48
  StartExpenseAnalysisCommandOutput,
41
49
  } from "./commands/StartExpenseAnalysisCommand";
50
+ import {
51
+ StartLendingAnalysisCommandInput,
52
+ StartLendingAnalysisCommandOutput,
53
+ } from "./commands/StartLendingAnalysisCommand";
42
54
  import { TextractClient } from "./TextractClient";
43
55
  export declare class Textract extends TextractClient {
44
56
  analyzeDocument(
@@ -132,6 +144,32 @@ export declare class Textract extends TextractClient {
132
144
  options: __HttpHandlerOptions,
133
145
  cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void
134
146
  ): void;
147
+ getLendingAnalysis(
148
+ args: GetLendingAnalysisCommandInput,
149
+ options?: __HttpHandlerOptions
150
+ ): Promise<GetLendingAnalysisCommandOutput>;
151
+ getLendingAnalysis(
152
+ args: GetLendingAnalysisCommandInput,
153
+ cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void
154
+ ): void;
155
+ getLendingAnalysis(
156
+ args: GetLendingAnalysisCommandInput,
157
+ options: __HttpHandlerOptions,
158
+ cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void
159
+ ): void;
160
+ getLendingAnalysisSummary(
161
+ args: GetLendingAnalysisSummaryCommandInput,
162
+ options?: __HttpHandlerOptions
163
+ ): Promise<GetLendingAnalysisSummaryCommandOutput>;
164
+ getLendingAnalysisSummary(
165
+ args: GetLendingAnalysisSummaryCommandInput,
166
+ cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void
167
+ ): void;
168
+ getLendingAnalysisSummary(
169
+ args: GetLendingAnalysisSummaryCommandInput,
170
+ options: __HttpHandlerOptions,
171
+ cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void
172
+ ): void;
135
173
  startDocumentAnalysis(
136
174
  args: StartDocumentAnalysisCommandInput,
137
175
  options?: __HttpHandlerOptions
@@ -171,4 +209,17 @@ export declare class Textract extends TextractClient {
171
209
  options: __HttpHandlerOptions,
172
210
  cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void
173
211
  ): void;
212
+ startLendingAnalysis(
213
+ args: StartLendingAnalysisCommandInput,
214
+ options?: __HttpHandlerOptions
215
+ ): Promise<StartLendingAnalysisCommandOutput>;
216
+ startLendingAnalysis(
217
+ args: StartLendingAnalysisCommandInput,
218
+ cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void
219
+ ): void;
220
+ startLendingAnalysis(
221
+ args: StartLendingAnalysisCommandInput,
222
+ options: __HttpHandlerOptions,
223
+ cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void
224
+ ): void;
174
225
  }
@@ -71,6 +71,14 @@ import {
71
71
  GetExpenseAnalysisCommandInput,
72
72
  GetExpenseAnalysisCommandOutput,
73
73
  } from "./commands/GetExpenseAnalysisCommand";
74
+ import {
75
+ GetLendingAnalysisCommandInput,
76
+ GetLendingAnalysisCommandOutput,
77
+ } from "./commands/GetLendingAnalysisCommand";
78
+ import {
79
+ GetLendingAnalysisSummaryCommandInput,
80
+ GetLendingAnalysisSummaryCommandOutput,
81
+ } from "./commands/GetLendingAnalysisSummaryCommand";
74
82
  import {
75
83
  StartDocumentAnalysisCommandInput,
76
84
  StartDocumentAnalysisCommandOutput,
@@ -83,6 +91,10 @@ import {
83
91
  StartExpenseAnalysisCommandInput,
84
92
  StartExpenseAnalysisCommandOutput,
85
93
  } from "./commands/StartExpenseAnalysisCommand";
94
+ import {
95
+ StartLendingAnalysisCommandInput,
96
+ StartLendingAnalysisCommandOutput,
97
+ } from "./commands/StartLendingAnalysisCommand";
86
98
  import {
87
99
  ClientInputEndpointParameters,
88
100
  ClientResolvedEndpointParameters,
@@ -96,9 +108,12 @@ export declare type ServiceInputTypes =
96
108
  | GetDocumentAnalysisCommandInput
97
109
  | GetDocumentTextDetectionCommandInput
98
110
  | GetExpenseAnalysisCommandInput
111
+ | GetLendingAnalysisCommandInput
112
+ | GetLendingAnalysisSummaryCommandInput
99
113
  | StartDocumentAnalysisCommandInput
100
114
  | StartDocumentTextDetectionCommandInput
101
- | StartExpenseAnalysisCommandInput;
115
+ | StartExpenseAnalysisCommandInput
116
+ | StartLendingAnalysisCommandInput;
102
117
  export declare type ServiceOutputTypes =
103
118
  | AnalyzeDocumentCommandOutput
104
119
  | AnalyzeExpenseCommandOutput
@@ -107,9 +122,12 @@ export declare type ServiceOutputTypes =
107
122
  | GetDocumentAnalysisCommandOutput
108
123
  | GetDocumentTextDetectionCommandOutput
109
124
  | GetExpenseAnalysisCommandOutput
125
+ | GetLendingAnalysisCommandOutput
126
+ | GetLendingAnalysisSummaryCommandOutput
110
127
  | StartDocumentAnalysisCommandOutput
111
128
  | StartDocumentTextDetectionCommandOutput
112
- | StartExpenseAnalysisCommandOutput;
129
+ | StartExpenseAnalysisCommandOutput
130
+ | StartLendingAnalysisCommandOutput;
113
131
  export interface ClientDefaults
114
132
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
115
133
  requestHandler?: __HttpHandler;