@aws-sdk/client-textract 3.42.0 → 3.47.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 (37) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/Textract.js +15 -0
  3. package/dist-cjs/commands/AnalyzeIDCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -28
  6. package/dist-cjs/models/models_0.js +42 -86
  7. package/dist-cjs/protocols/Aws_json1_1.js +204 -1
  8. package/dist-cjs/runtimeConfig.browser.js +7 -2
  9. package/dist-cjs/runtimeConfig.js +9 -3
  10. package/dist-es/Textract.js +15 -0
  11. package/dist-es/commands/AnalyzeIDCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoints.js +1 -28
  14. package/dist-es/models/models_0.js +28 -56
  15. package/dist-es/protocols/Aws_json1_1.js +211 -0
  16. package/dist-es/runtimeConfig.browser.js +12 -3
  17. package/dist-es/runtimeConfig.js +13 -6
  18. package/dist-types/Textract.d.ts +11 -1
  19. package/dist-types/TextractClient.d.ts +8 -3
  20. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +2 -1
  21. package/dist-types/commands/AnalyzeIDCommand.d.ts +37 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +123 -86
  24. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  26. package/dist-types/runtimeConfig.d.ts +4 -3
  27. package/dist-types/runtimeConfig.native.d.ts +1 -0
  28. package/dist-types/ts3.4/Textract.d.ts +5 -0
  29. package/dist-types/ts3.4/TextractClient.d.ts +6 -3
  30. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +69 -56
  33. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  37. package/package.json +38 -45
@@ -1,6 +1,7 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
3
3
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
4
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
4
5
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
5
6
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
6
7
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
@@ -52,7 +53,8 @@ export declare class Textract extends TextractClient {
52
53
  analyzeDocument(args: AnalyzeDocumentCommandInput, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
53
54
  analyzeDocument(args: AnalyzeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
54
55
  /**
55
- * <p>Analyzes an input document for financially related relationships between text.</p>
56
+ * <p>
57
+ * <code>AnalyzeExpense</code> synchronously analyzes an input document for financially related relationships between text.</p>
56
58
  * <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
57
59
  * <ul>
58
60
  * <li>
@@ -70,6 +72,14 @@ export declare class Textract extends TextractClient {
70
72
  analyzeExpense(args: AnalyzeExpenseCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeExpenseCommandOutput>;
71
73
  analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
72
74
  analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
75
+ /**
76
+ * <p>Analyzes identity documents for relevant information. This information is extracted
77
+ * and returned as <code>IdentityDocumentFields</code>, which records both the normalized
78
+ * field and value of the extracted text.</p>
79
+ */
80
+ analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
81
+ analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
82
+ analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
73
83
  /**
74
84
  * <p>Detects text in the input document. Amazon Textract can detect lines of text and the
75
85
  * words that make up a line of text. The input document must be an image in JPEG or PNG
@@ -4,10 +4,11 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
10
10
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
11
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
11
12
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
12
13
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
13
14
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
@@ -15,8 +16,8 @@ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from
15
16
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
16
17
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
17
18
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
18
- export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
19
- export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
19
+ export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
20
+ export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
20
21
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
21
22
  /**
22
23
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -117,6 +118,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
117
118
  * @internal
118
119
  */
119
120
  defaultUserAgentProvider?: Provider<__UserAgent>;
121
+ /**
122
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
123
+ */
124
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
120
125
  }
121
126
  declare type TextractClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
122
127
  /**
@@ -7,7 +7,8 @@ export interface AnalyzeExpenseCommandInput extends AnalyzeExpenseRequest {
7
7
  export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Analyzes an input document for financially related relationships between text.</p>
10
+ * <p>
11
+ * <code>AnalyzeExpense</code> synchronously analyzes an input document for financially related relationships between text.</p>
11
12
  * <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
12
13
  * <ul>
13
14
  * <li>
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AnalyzeIDRequest, AnalyzeIDResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface AnalyzeIDCommandInput extends AnalyzeIDRequest {
6
+ }
7
+ export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Analyzes identity documents for relevant information. This information is extracted
11
+ * and returned as <code>IdentityDocumentFields</code>, which records both the normalized
12
+ * field and value of the extracted text.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { TextractClient, AnalyzeIDCommand } from "@aws-sdk/client-textract"; // ES Modules import
17
+ * // const { TextractClient, AnalyzeIDCommand } = require("@aws-sdk/client-textract"); // CommonJS import
18
+ * const client = new TextractClient(config);
19
+ * const command = new AnalyzeIDCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link AnalyzeIDCommandInput} for command's `input` shape.
24
+ * @see {@link AnalyzeIDCommandOutput} for command's `response` shape.
25
+ * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class AnalyzeIDCommand extends $Command<AnalyzeIDCommandInput, AnalyzeIDCommandOutput, TextractClientResolvedConfig> {
29
+ readonly input: AnalyzeIDCommandInput;
30
+ constructor(input: AnalyzeIDCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeIDCommandInput, AnalyzeIDCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AnalyzeDocumentCommand";
2
2
  export * from "./AnalyzeExpenseCommand";
3
+ export * from "./AnalyzeIDCommand";
3
4
  export * from "./DetectDocumentTextCommand";
4
5
  export * from "./GetDocumentAnalysisCommand";
5
6
  export * from "./GetDocumentTextDetectionCommand";
@@ -10,12 +10,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
10
10
  Message?: string;
11
11
  Code?: string;
12
12
  }
13
- export declare namespace AccessDeniedException {
14
- /**
15
- * @internal
16
- */
17
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
18
- }
19
13
  /**
20
14
  * <p>The S3 bucket name and file name that identifies the document.</p>
21
15
  * <p>The AWS Region for the S3 bucket that contains the document must match the Region that
@@ -567,12 +561,6 @@ export interface BadDocumentException extends __SmithyException, $MetadataBearer
567
561
  Message?: string;
568
562
  Code?: string;
569
563
  }
570
- export declare namespace BadDocumentException {
571
- /**
572
- * @internal
573
- */
574
- const filterSensitiveLog: (obj: BadDocumentException) => any;
575
- }
576
564
  /**
577
565
  * <p>The document can't be processed because it's too large. The maximum document size for
578
566
  * synchronous operations 10 MB. The maximum document size for asynchronous operations is 500
@@ -584,12 +572,6 @@ export interface DocumentTooLargeException extends __SmithyException, $MetadataB
584
572
  Message?: string;
585
573
  Code?: string;
586
574
  }
587
- export declare namespace DocumentTooLargeException {
588
- /**
589
- * @internal
590
- */
591
- const filterSensitiveLog: (obj: DocumentTooLargeException) => any;
592
- }
593
575
  /**
594
576
  * <p>Indicates you have exceeded the maximum number of active human in the loop workflows available</p>
595
577
  */
@@ -611,12 +593,6 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
611
593
  Message?: string;
612
594
  Code?: string;
613
595
  }
614
- export declare namespace HumanLoopQuotaExceededException {
615
- /**
616
- * @internal
617
- */
618
- const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
619
- }
620
596
  /**
621
597
  * <p>Amazon Textract experienced a service issue. Try your call again.</p>
622
598
  */
@@ -626,12 +602,6 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
626
602
  Message?: string;
627
603
  Code?: string;
628
604
  }
629
- export declare namespace InternalServerError {
630
- /**
631
- * @internal
632
- */
633
- const filterSensitiveLog: (obj: InternalServerError) => any;
634
- }
635
605
  /**
636
606
  * <p>An input parameter violated a constraint. For example, in synchronous operations,
637
607
  * an <code>InvalidParameterException</code> exception occurs
@@ -645,12 +615,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
645
615
  Message?: string;
646
616
  Code?: string;
647
617
  }
648
- export declare namespace InvalidParameterException {
649
- /**
650
- * @internal
651
- */
652
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
653
- }
654
618
  /**
655
619
  * <p>Amazon Textract is unable to access the S3 object that's specified in the request.
656
620
  * for more information, <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html">Configure Access to Amazon S3</a>
@@ -663,12 +627,6 @@ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBe
663
627
  Message?: string;
664
628
  Code?: string;
665
629
  }
666
- export declare namespace InvalidS3ObjectException {
667
- /**
668
- * @internal
669
- */
670
- const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
671
- }
672
630
  /**
673
631
  * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
674
632
  * contact Amazon Textract.</p>
@@ -679,12 +637,6 @@ export interface ProvisionedThroughputExceededException extends __SmithyExceptio
679
637
  Message?: string;
680
638
  Code?: string;
681
639
  }
682
- export declare namespace ProvisionedThroughputExceededException {
683
- /**
684
- * @internal
685
- */
686
- const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
687
- }
688
640
  /**
689
641
  * <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
690
642
  */
@@ -694,15 +646,9 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
694
646
  Message?: string;
695
647
  Code?: string;
696
648
  }
697
- export declare namespace ThrottlingException {
698
- /**
699
- * @internal
700
- */
701
- const filterSensitiveLog: (obj: ThrottlingException) => any;
702
- }
703
649
  /**
704
650
  * <p>The format of the input document isn't supported. Documents for synchronous operations can be in
705
- * PNG or JPEG format. Documents for asynchronous operations can also be in PDF format.</p>
651
+ * PNG or JPEG format only. Documents for asynchronous operations can be in PDF format.</p>
706
652
  */
707
653
  export interface UnsupportedDocumentException extends __SmithyException, $MetadataBearer {
708
654
  name: "UnsupportedDocumentException";
@@ -710,12 +656,6 @@ export interface UnsupportedDocumentException extends __SmithyException, $Metada
710
656
  Message?: string;
711
657
  Code?: string;
712
658
  }
713
- export declare namespace UnsupportedDocumentException {
714
- /**
715
- * @internal
716
- */
717
- const filterSensitiveLog: (obj: UnsupportedDocumentException) => any;
718
- }
719
659
  export interface AnalyzeExpenseRequest {
720
660
  /**
721
661
  * <p>The input document, either as bytes or as an S3 object.</p>
@@ -789,7 +729,7 @@ export declare namespace ExpenseType {
789
729
  }
790
730
  /**
791
731
  * <p>Breakdown of detected information, seperated into
792
- * the catagories Type, LableDetection, and ValueDetection</p>
732
+ * the catagories Type, LabelDetection, and ValueDetection</p>
793
733
  */
794
734
  export interface ExpenseField {
795
735
  /**
@@ -889,6 +829,127 @@ export declare namespace AnalyzeExpenseResponse {
889
829
  */
890
830
  const filterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
891
831
  }
832
+ export interface AnalyzeIDRequest {
833
+ /**
834
+ * <p>The document being passed to AnalyzeID.</p>
835
+ */
836
+ DocumentPages: Document[] | undefined;
837
+ }
838
+ export declare namespace AnalyzeIDRequest {
839
+ /**
840
+ * @internal
841
+ */
842
+ const filterSensitiveLog: (obj: AnalyzeIDRequest) => any;
843
+ }
844
+ export declare enum ValueType {
845
+ DATE = "DATE"
846
+ }
847
+ /**
848
+ * <p>Contains information relating to dates in a document, including the type
849
+ * of value, and the value.</p>
850
+ */
851
+ export interface NormalizedValue {
852
+ /**
853
+ * <p>The value of the date, written as Year-Month-DayTHour:Minute:Second.</p>
854
+ */
855
+ Value?: string;
856
+ /**
857
+ * <p>The normalized type of the value detected. In this case, DATE.</p>
858
+ */
859
+ ValueType?: ValueType | string;
860
+ }
861
+ export declare namespace NormalizedValue {
862
+ /**
863
+ * @internal
864
+ */
865
+ const filterSensitiveLog: (obj: NormalizedValue) => any;
866
+ }
867
+ /**
868
+ * <p>Used to contain the information detected by an AnalyzeID operation.</p>
869
+ */
870
+ export interface AnalyzeIDDetections {
871
+ /**
872
+ * <p>Text of either the normalized field or value associated with it.</p>
873
+ */
874
+ Text: string | undefined;
875
+ /**
876
+ * <p>Only returned for dates, returns the type of value detected and the date
877
+ * written in a more machine readable way.</p>
878
+ */
879
+ NormalizedValue?: NormalizedValue;
880
+ /**
881
+ * <p>The confidence score of the detected text.</p>
882
+ */
883
+ Confidence?: number;
884
+ }
885
+ export declare namespace AnalyzeIDDetections {
886
+ /**
887
+ * @internal
888
+ */
889
+ const filterSensitiveLog: (obj: AnalyzeIDDetections) => any;
890
+ }
891
+ /**
892
+ * <p>Structure containing both the normalized type of the extracted information
893
+ * and the text associated with it. These are extracted as Type and Value respectively.</p>
894
+ */
895
+ export interface IdentityDocumentField {
896
+ /**
897
+ * <p>Used to contain the information detected by an AnalyzeID operation.</p>
898
+ */
899
+ Type?: AnalyzeIDDetections;
900
+ /**
901
+ * <p>Used to contain the information detected by an AnalyzeID operation.</p>
902
+ */
903
+ ValueDetection?: AnalyzeIDDetections;
904
+ }
905
+ export declare namespace IdentityDocumentField {
906
+ /**
907
+ * @internal
908
+ */
909
+ const filterSensitiveLog: (obj: IdentityDocumentField) => any;
910
+ }
911
+ /**
912
+ * <p>The structure that lists each document processed in an AnalyzeID operation.</p>
913
+ */
914
+ export interface IdentityDocument {
915
+ /**
916
+ * <p>Denotes the placement of a document in the IdentityDocument list. The first document
917
+ * is marked 1, the second 2 and so on.</p>
918
+ */
919
+ DocumentIndex?: number;
920
+ /**
921
+ * <p>The structure used to record information extracted from identity documents.
922
+ * Contains both normalized field and value of the extracted text.</p>
923
+ */
924
+ IdentityDocumentFields?: IdentityDocumentField[];
925
+ }
926
+ export declare namespace IdentityDocument {
927
+ /**
928
+ * @internal
929
+ */
930
+ const filterSensitiveLog: (obj: IdentityDocument) => any;
931
+ }
932
+ export interface AnalyzeIDResponse {
933
+ /**
934
+ * <p>The list of documents processed by AnalyzeID. Includes a number denoting their
935
+ * place in the list and the response structure for the document.</p>
936
+ */
937
+ IdentityDocuments?: IdentityDocument[];
938
+ /**
939
+ * <p>Information about the input document.</p>
940
+ */
941
+ DocumentMetadata?: DocumentMetadata;
942
+ /**
943
+ * <p>The version of the AnalyzeIdentity API being used to process documents.</p>
944
+ */
945
+ AnalyzeIDModelVersion?: string;
946
+ }
947
+ export declare namespace AnalyzeIDResponse {
948
+ /**
949
+ * @internal
950
+ */
951
+ const filterSensitiveLog: (obj: AnalyzeIDResponse) => any;
952
+ }
892
953
  export interface DetectDocumentTextRequest {
893
954
  /**
894
955
  * <p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI
@@ -1042,12 +1103,6 @@ export interface InvalidJobIdException extends __SmithyException, $MetadataBeare
1042
1103
  Message?: string;
1043
1104
  Code?: string;
1044
1105
  }
1045
- export declare namespace InvalidJobIdException {
1046
- /**
1047
- * @internal
1048
- */
1049
- const filterSensitiveLog: (obj: InvalidJobIdException) => any;
1050
- }
1051
1106
  /**
1052
1107
  * <p> Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key
1053
1108
  * was entered incorrectly. </p>
@@ -1058,12 +1113,6 @@ export interface InvalidKMSKeyException extends __SmithyException, $MetadataBear
1058
1113
  Message?: string;
1059
1114
  Code?: string;
1060
1115
  }
1061
- export declare namespace InvalidKMSKeyException {
1062
- /**
1063
- * @internal
1064
- */
1065
- const filterSensitiveLog: (obj: InvalidKMSKeyException) => any;
1066
- }
1067
1116
  export interface GetDocumentTextDetectionRequest {
1068
1117
  /**
1069
1118
  * <p>A unique identifier for the text detection job. The <code>JobId</code> is returned from
@@ -1201,12 +1250,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
1201
1250
  Message?: string;
1202
1251
  Code?: string;
1203
1252
  }
1204
- export declare namespace IdempotentParameterMismatchException {
1205
- /**
1206
- * @internal
1207
- */
1208
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
1209
- }
1210
1253
  /**
1211
1254
  * <p>An Amazon Textract service limit was exceeded. For example, if you start too many
1212
1255
  * asynchronous jobs concurrently, calls to start operations
@@ -1220,12 +1263,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
1220
1263
  Message?: string;
1221
1264
  Code?: string;
1222
1265
  }
1223
- export declare namespace LimitExceededException {
1224
- /**
1225
- * @internal
1226
- */
1227
- const filterSensitiveLog: (obj: LimitExceededException) => any;
1228
- }
1229
1266
  /**
1230
1267
  * <p>The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of
1231
1268
  * an asynchronous document operation, such as <a>StartDocumentTextDetection</a>. </p>
@@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "../commands/AnalyzeDocumentCommand";
4
4
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../commands/AnalyzeExpenseCommand";
5
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "../commands/AnalyzeIDCommand";
5
6
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
6
7
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
7
8
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
@@ -11,6 +12,7 @@ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionComma
11
12
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
12
13
  export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
14
  export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
+ export declare const serializeAws_json1_1AnalyzeIDCommand: (input: AnalyzeIDCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
16
  export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
17
  export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
18
  export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -20,6 +22,7 @@ export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (inp
20
22
  export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
23
  export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
22
24
  export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
25
+ export declare const deserializeAws_json1_1AnalyzeIDCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeIDCommandOutput>;
23
26
  export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
24
27
  export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
25
28
  export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { TextractClientConfig } from "./TextractClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { TextractClientConfig } from "./TextractClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -1,6 +1,7 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
3
3
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
4
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
4
5
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
5
6
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
6
7
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
@@ -20,6 +21,10 @@ export declare class Textract extends TextractClient {
20
21
  analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
21
22
  analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
22
23
 
24
+ analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
25
+ analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
26
+ analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
27
+
23
28
  detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
24
29
  detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
25
30
  detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
@@ -4,10 +4,11 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
10
10
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
11
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
11
12
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
12
13
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
13
14
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
@@ -15,8 +16,8 @@ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from
15
16
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
16
17
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
17
18
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
18
- export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
19
- export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
19
+ export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
20
+ export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
20
21
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
21
22
 
22
23
  requestHandler?: __HttpHandler;
@@ -60,6 +61,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
60
61
  regionInfoProvider?: RegionInfoProvider;
61
62
 
62
63
  defaultUserAgentProvider?: Provider<__UserAgent>;
64
+
65
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
63
66
  }
64
67
  declare type TextractClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
65
68
 
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AnalyzeIDRequest, AnalyzeIDResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface AnalyzeIDCommandInput extends AnalyzeIDRequest {
6
+ }
7
+ export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class AnalyzeIDCommand extends $Command<AnalyzeIDCommandInput, AnalyzeIDCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: AnalyzeIDCommandInput;
12
+ constructor(input: AnalyzeIDCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeIDCommandInput, AnalyzeIDCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AnalyzeDocumentCommand";
2
2
  export * from "./AnalyzeExpenseCommand";
3
+ export * from "./AnalyzeIDCommand";
3
4
  export * from "./DetectDocumentTextCommand";
4
5
  export * from "./GetDocumentAnalysisCommand";
5
6
  export * from "./GetDocumentTextDetectionCommand";