@aws-sdk/client-textract 3.50.0 → 3.51.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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-textract
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-textract
@@ -0,0 +1,55 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
3
+ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
4
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
5
+ import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
6
+ import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
7
+ import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
8
+ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "./commands/GetExpenseAnalysisCommand";
9
+ import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
10
+ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
11
+ import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
12
+ import { TextractClient } from "./TextractClient";
13
+
14
+ export declare class Textract extends TextractClient {
15
+
16
+ analyzeDocument(args: AnalyzeDocumentCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeDocumentCommandOutput>;
17
+ analyzeDocument(args: AnalyzeDocumentCommandInput, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
18
+ analyzeDocument(args: AnalyzeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
19
+
20
+ analyzeExpense(args: AnalyzeExpenseCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeExpenseCommandOutput>;
21
+ analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
22
+ analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
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
+
28
+ detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
29
+ detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
30
+ detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
31
+
32
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentAnalysisCommandOutput>;
33
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
34
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
35
+
36
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentTextDetectionCommandOutput>;
37
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
38
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
39
+
40
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetExpenseAnalysisCommandOutput>;
41
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void): void;
42
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void): void;
43
+
44
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentAnalysisCommandOutput>;
45
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
46
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
47
+
48
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentTextDetectionCommandOutput>;
49
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
50
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
51
+
52
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartExpenseAnalysisCommandOutput>;
53
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void): void;
54
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void): void;
55
+ }
@@ -0,0 +1,83 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
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
+ import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
10
+ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
11
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
12
+ import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
13
+ import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
14
+ import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
15
+ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "./commands/GetExpenseAnalysisCommand";
16
+ import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
17
+ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
18
+ import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
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;
21
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
22
+
23
+ requestHandler?: __HttpHandler;
24
+
25
+ sha256?: __HashConstructor;
26
+
27
+ urlParser?: __UrlParser;
28
+
29
+ bodyLengthChecker?: (body: any) => number | undefined;
30
+
31
+ streamCollector?: __StreamCollector;
32
+
33
+ base64Decoder?: __Decoder;
34
+
35
+ base64Encoder?: __Encoder;
36
+
37
+ utf8Decoder?: __Decoder;
38
+
39
+ utf8Encoder?: __Encoder;
40
+
41
+ runtime?: string;
42
+
43
+ disableHostPrefix?: boolean;
44
+
45
+ maxAttempts?: number | __Provider<number>;
46
+
47
+ retryMode?: string | __Provider<string>;
48
+
49
+ logger?: __Logger;
50
+
51
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
52
+
53
+ useFipsEndpoint?: boolean | __Provider<boolean>;
54
+
55
+ serviceId?: string;
56
+
57
+ region?: string | __Provider<string>;
58
+
59
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
60
+
61
+ regionInfoProvider?: RegionInfoProvider;
62
+
63
+ defaultUserAgentProvider?: Provider<__UserAgent>;
64
+
65
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
66
+ }
67
+ declare type TextractClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
68
+
69
+ export interface TextractClientConfig extends TextractClientConfigType {
70
+ }
71
+ declare type TextractClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
72
+
73
+ export interface TextractClientResolvedConfig extends TextractClientResolvedConfigType {
74
+ }
75
+
76
+ export declare class TextractClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig> {
77
+
78
+ readonly config: TextractClientResolvedConfig;
79
+ constructor(configuration: TextractClientConfig);
80
+
81
+ destroy(): void;
82
+ }
83
+ export {};
@@ -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 { AnalyzeDocumentRequest, AnalyzeDocumentResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface AnalyzeDocumentCommandInput extends AnalyzeDocumentRequest {
6
+ }
7
+ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class AnalyzeDocumentCommand extends $Command<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: AnalyzeDocumentCommandInput;
12
+ constructor(input: AnalyzeDocumentCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface AnalyzeExpenseCommandInput extends AnalyzeExpenseRequest {
6
+ }
7
+ export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class AnalyzeExpenseCommand extends $Command<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: AnalyzeExpenseCommandInput;
12
+ constructor(input: AnalyzeExpenseCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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
+ }
@@ -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 { DetectDocumentTextRequest, DetectDocumentTextResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface DetectDocumentTextCommandInput extends DetectDocumentTextRequest {
6
+ }
7
+ export interface DetectDocumentTextCommandOutput extends DetectDocumentTextResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class DetectDocumentTextCommand extends $Command<DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: DetectDocumentTextCommandInput;
12
+ constructor(input: DetectDocumentTextCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { GetDocumentAnalysisRequest, GetDocumentAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface GetDocumentAnalysisCommandInput extends GetDocumentAnalysisRequest {
6
+ }
7
+ export interface GetDocumentAnalysisCommandOutput extends GetDocumentAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetDocumentAnalysisCommand extends $Command<GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: GetDocumentAnalysisCommandInput;
12
+ constructor(input: GetDocumentAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface GetDocumentTextDetectionCommandInput extends GetDocumentTextDetectionRequest {
6
+ }
7
+ export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDetectionResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetDocumentTextDetectionCommand extends $Command<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: GetDocumentTextDetectionCommandInput;
12
+ constructor(input: GetDocumentTextDetectionCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { GetExpenseAnalysisRequest, GetExpenseAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface GetExpenseAnalysisCommandInput extends GetExpenseAnalysisRequest {
6
+ }
7
+ export interface GetExpenseAnalysisCommandOutput extends GetExpenseAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetExpenseAnalysisCommand extends $Command<GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: GetExpenseAnalysisCommandInput;
12
+ constructor(input: GetExpenseAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { StartDocumentAnalysisRequest, StartDocumentAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface StartDocumentAnalysisCommandInput extends StartDocumentAnalysisRequest {
6
+ }
7
+ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartDocumentAnalysisCommand extends $Command<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: StartDocumentAnalysisCommandInput;
12
+ constructor(input: StartDocumentAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface StartDocumentTextDetectionCommandInput extends StartDocumentTextDetectionRequest {
6
+ }
7
+ export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTextDetectionResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartDocumentTextDetectionCommand extends $Command<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: StartDocumentTextDetectionCommandInput;
12
+ constructor(input: StartDocumentTextDetectionCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { StartExpenseAnalysisRequest, StartExpenseAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface StartExpenseAnalysisCommandInput extends StartExpenseAnalysisRequest {
6
+ }
7
+ export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartExpenseAnalysisCommand extends $Command<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: StartExpenseAnalysisCommandInput;
12
+ constructor(input: StartExpenseAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./AnalyzeDocumentCommand";
2
+ export * from "./AnalyzeExpenseCommand";
3
+ export * from "./AnalyzeIDCommand";
4
+ export * from "./DetectDocumentTextCommand";
5
+ export * from "./GetDocumentAnalysisCommand";
6
+ export * from "./GetDocumentTextDetectionCommand";
7
+ export * from "./GetExpenseAnalysisCommand";
8
+ export * from "./StartDocumentAnalysisCommand";
9
+ export * from "./StartDocumentTextDetectionCommand";
10
+ export * from "./StartExpenseAnalysisCommand";
@@ -0,0 +1,2 @@
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -0,0 +1,4 @@
1
+ export * from "./Textract";
2
+ export * from "./TextractClient";
3
+ export * from "./commands";
4
+ export * from "./models";
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,720 @@
1
+ import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
+
4
+ export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
5
+ name: "AccessDeniedException";
6
+ $fault: "client";
7
+ Message?: string;
8
+ Code?: string;
9
+ }
10
+
11
+ export interface S3Object {
12
+
13
+ Bucket?: string;
14
+
15
+ Name?: string;
16
+
17
+ Version?: string;
18
+ }
19
+ export declare namespace S3Object {
20
+
21
+ const filterSensitiveLog: (obj: S3Object) => any;
22
+ }
23
+
24
+ export interface Document {
25
+
26
+ Bytes?: Uint8Array;
27
+
28
+ S3Object?: S3Object;
29
+ }
30
+ export declare namespace Document {
31
+
32
+ const filterSensitiveLog: (obj: Document) => any;
33
+ }
34
+ export declare enum FeatureType {
35
+ FORMS = "FORMS",
36
+ TABLES = "TABLES"
37
+ }
38
+ export declare enum ContentClassifier {
39
+ FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
40
+ FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
41
+ }
42
+
43
+ export interface HumanLoopDataAttributes {
44
+
45
+ ContentClassifiers?: (ContentClassifier | string)[];
46
+ }
47
+ export declare namespace HumanLoopDataAttributes {
48
+
49
+ const filterSensitiveLog: (obj: HumanLoopDataAttributes) => any;
50
+ }
51
+
52
+ export interface HumanLoopConfig {
53
+
54
+ HumanLoopName: string | undefined;
55
+
56
+ FlowDefinitionArn: string | undefined;
57
+
58
+ DataAttributes?: HumanLoopDataAttributes;
59
+ }
60
+ export declare namespace HumanLoopConfig {
61
+
62
+ const filterSensitiveLog: (obj: HumanLoopConfig) => any;
63
+ }
64
+ export interface AnalyzeDocumentRequest {
65
+
66
+ Document: Document | undefined;
67
+
68
+ FeatureTypes: (FeatureType | string)[] | undefined;
69
+
70
+ HumanLoopConfig?: HumanLoopConfig;
71
+ }
72
+ export declare namespace AnalyzeDocumentRequest {
73
+
74
+ const filterSensitiveLog: (obj: AnalyzeDocumentRequest) => any;
75
+ }
76
+ export declare enum BlockType {
77
+ CELL = "CELL",
78
+ KEY_VALUE_SET = "KEY_VALUE_SET",
79
+ LINE = "LINE",
80
+ PAGE = "PAGE",
81
+ SELECTION_ELEMENT = "SELECTION_ELEMENT",
82
+ TABLE = "TABLE",
83
+ WORD = "WORD"
84
+ }
85
+ export declare enum EntityType {
86
+ KEY = "KEY",
87
+ VALUE = "VALUE"
88
+ }
89
+
90
+ export interface BoundingBox {
91
+
92
+ Width?: number;
93
+
94
+ Height?: number;
95
+
96
+ Left?: number;
97
+
98
+ Top?: number;
99
+ }
100
+ export declare namespace BoundingBox {
101
+
102
+ const filterSensitiveLog: (obj: BoundingBox) => any;
103
+ }
104
+
105
+ export interface Point {
106
+
107
+ X?: number;
108
+
109
+ Y?: number;
110
+ }
111
+ export declare namespace Point {
112
+
113
+ const filterSensitiveLog: (obj: Point) => any;
114
+ }
115
+
116
+ export interface Geometry {
117
+
118
+ BoundingBox?: BoundingBox;
119
+
120
+ Polygon?: Point[];
121
+ }
122
+ export declare namespace Geometry {
123
+
124
+ const filterSensitiveLog: (obj: Geometry) => any;
125
+ }
126
+ export declare enum RelationshipType {
127
+ CHILD = "CHILD",
128
+ COMPLEX_FEATURES = "COMPLEX_FEATURES",
129
+ VALUE = "VALUE"
130
+ }
131
+
132
+ export interface Relationship {
133
+
134
+ Type?: RelationshipType | string;
135
+
136
+ Ids?: string[];
137
+ }
138
+ export declare namespace Relationship {
139
+
140
+ const filterSensitiveLog: (obj: Relationship) => any;
141
+ }
142
+ export declare enum SelectionStatus {
143
+ NOT_SELECTED = "NOT_SELECTED",
144
+ SELECTED = "SELECTED"
145
+ }
146
+ export declare enum TextType {
147
+ HANDWRITING = "HANDWRITING",
148
+ PRINTED = "PRINTED"
149
+ }
150
+
151
+ export interface Block {
152
+
153
+ BlockType?: BlockType | string;
154
+
155
+ Confidence?: number;
156
+
157
+ Text?: string;
158
+
159
+ TextType?: TextType | string;
160
+
161
+ RowIndex?: number;
162
+
163
+ ColumnIndex?: number;
164
+
165
+ RowSpan?: number;
166
+
167
+ ColumnSpan?: number;
168
+
169
+ Geometry?: Geometry;
170
+
171
+ Id?: string;
172
+
173
+ Relationships?: Relationship[];
174
+
175
+ EntityTypes?: (EntityType | string)[];
176
+
177
+ SelectionStatus?: SelectionStatus | string;
178
+
179
+ Page?: number;
180
+ }
181
+ export declare namespace Block {
182
+
183
+ const filterSensitiveLog: (obj: Block) => any;
184
+ }
185
+
186
+ export interface DocumentMetadata {
187
+
188
+ Pages?: number;
189
+ }
190
+ export declare namespace DocumentMetadata {
191
+
192
+ const filterSensitiveLog: (obj: DocumentMetadata) => any;
193
+ }
194
+
195
+ export interface HumanLoopActivationOutput {
196
+
197
+ HumanLoopArn?: string;
198
+
199
+ HumanLoopActivationReasons?: string[];
200
+
201
+ HumanLoopActivationConditionsEvaluationResults?: __LazyJsonString | string;
202
+ }
203
+ export declare namespace HumanLoopActivationOutput {
204
+
205
+ const filterSensitiveLog: (obj: HumanLoopActivationOutput) => any;
206
+ }
207
+ export interface AnalyzeDocumentResponse {
208
+
209
+ DocumentMetadata?: DocumentMetadata;
210
+
211
+ Blocks?: Block[];
212
+
213
+ HumanLoopActivationOutput?: HumanLoopActivationOutput;
214
+
215
+ AnalyzeDocumentModelVersion?: string;
216
+ }
217
+ export declare namespace AnalyzeDocumentResponse {
218
+
219
+ const filterSensitiveLog: (obj: AnalyzeDocumentResponse) => any;
220
+ }
221
+
222
+ export interface BadDocumentException extends __SmithyException, $MetadataBearer {
223
+ name: "BadDocumentException";
224
+ $fault: "client";
225
+ Message?: string;
226
+ Code?: string;
227
+ }
228
+
229
+ export interface DocumentTooLargeException extends __SmithyException, $MetadataBearer {
230
+ name: "DocumentTooLargeException";
231
+ $fault: "client";
232
+ Message?: string;
233
+ Code?: string;
234
+ }
235
+
236
+ export interface HumanLoopQuotaExceededException extends __SmithyException, $MetadataBearer {
237
+ name: "HumanLoopQuotaExceededException";
238
+ $fault: "client";
239
+
240
+ ResourceType?: string;
241
+
242
+ QuotaCode?: string;
243
+
244
+ ServiceCode?: string;
245
+ Message?: string;
246
+ Code?: string;
247
+ }
248
+
249
+ export interface InternalServerError extends __SmithyException, $MetadataBearer {
250
+ name: "InternalServerError";
251
+ $fault: "server";
252
+ Message?: string;
253
+ Code?: string;
254
+ }
255
+
256
+ export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
257
+ name: "InvalidParameterException";
258
+ $fault: "client";
259
+ Message?: string;
260
+ Code?: string;
261
+ }
262
+
263
+ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBearer {
264
+ name: "InvalidS3ObjectException";
265
+ $fault: "client";
266
+ Message?: string;
267
+ Code?: string;
268
+ }
269
+
270
+ export interface ProvisionedThroughputExceededException extends __SmithyException, $MetadataBearer {
271
+ name: "ProvisionedThroughputExceededException";
272
+ $fault: "client";
273
+ Message?: string;
274
+ Code?: string;
275
+ }
276
+
277
+ export interface ThrottlingException extends __SmithyException, $MetadataBearer {
278
+ name: "ThrottlingException";
279
+ $fault: "server";
280
+ Message?: string;
281
+ Code?: string;
282
+ }
283
+
284
+ export interface UnsupportedDocumentException extends __SmithyException, $MetadataBearer {
285
+ name: "UnsupportedDocumentException";
286
+ $fault: "client";
287
+ Message?: string;
288
+ Code?: string;
289
+ }
290
+ export interface AnalyzeExpenseRequest {
291
+
292
+ Document: Document | undefined;
293
+ }
294
+ export declare namespace AnalyzeExpenseRequest {
295
+
296
+ const filterSensitiveLog: (obj: AnalyzeExpenseRequest) => any;
297
+ }
298
+
299
+ export interface ExpenseDetection {
300
+
301
+ Text?: string;
302
+
303
+ Geometry?: Geometry;
304
+
305
+ Confidence?: number;
306
+ }
307
+ export declare namespace ExpenseDetection {
308
+
309
+ const filterSensitiveLog: (obj: ExpenseDetection) => any;
310
+ }
311
+
312
+ export interface ExpenseType {
313
+
314
+ Text?: string;
315
+
316
+ Confidence?: number;
317
+ }
318
+ export declare namespace ExpenseType {
319
+
320
+ const filterSensitiveLog: (obj: ExpenseType) => any;
321
+ }
322
+
323
+ export interface ExpenseField {
324
+
325
+ Type?: ExpenseType;
326
+
327
+ LabelDetection?: ExpenseDetection;
328
+
329
+ ValueDetection?: ExpenseDetection;
330
+
331
+ PageNumber?: number;
332
+ }
333
+ export declare namespace ExpenseField {
334
+
335
+ const filterSensitiveLog: (obj: ExpenseField) => any;
336
+ }
337
+
338
+ export interface LineItemFields {
339
+
340
+ LineItemExpenseFields?: ExpenseField[];
341
+ }
342
+ export declare namespace LineItemFields {
343
+
344
+ const filterSensitiveLog: (obj: LineItemFields) => any;
345
+ }
346
+
347
+ export interface LineItemGroup {
348
+
349
+ LineItemGroupIndex?: number;
350
+
351
+ LineItems?: LineItemFields[];
352
+ }
353
+ export declare namespace LineItemGroup {
354
+
355
+ const filterSensitiveLog: (obj: LineItemGroup) => any;
356
+ }
357
+
358
+ export interface ExpenseDocument {
359
+
360
+ ExpenseIndex?: number;
361
+
362
+ SummaryFields?: ExpenseField[];
363
+
364
+ LineItemGroups?: LineItemGroup[];
365
+ }
366
+ export declare namespace ExpenseDocument {
367
+
368
+ const filterSensitiveLog: (obj: ExpenseDocument) => any;
369
+ }
370
+ export interface AnalyzeExpenseResponse {
371
+
372
+ DocumentMetadata?: DocumentMetadata;
373
+
374
+ ExpenseDocuments?: ExpenseDocument[];
375
+ }
376
+ export declare namespace AnalyzeExpenseResponse {
377
+
378
+ const filterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
379
+ }
380
+ export interface AnalyzeIDRequest {
381
+
382
+ DocumentPages: Document[] | undefined;
383
+ }
384
+ export declare namespace AnalyzeIDRequest {
385
+
386
+ const filterSensitiveLog: (obj: AnalyzeIDRequest) => any;
387
+ }
388
+ export declare enum ValueType {
389
+ DATE = "DATE"
390
+ }
391
+
392
+ export interface NormalizedValue {
393
+
394
+ Value?: string;
395
+
396
+ ValueType?: ValueType | string;
397
+ }
398
+ export declare namespace NormalizedValue {
399
+
400
+ const filterSensitiveLog: (obj: NormalizedValue) => any;
401
+ }
402
+
403
+ export interface AnalyzeIDDetections {
404
+
405
+ Text: string | undefined;
406
+
407
+ NormalizedValue?: NormalizedValue;
408
+
409
+ Confidence?: number;
410
+ }
411
+ export declare namespace AnalyzeIDDetections {
412
+
413
+ const filterSensitiveLog: (obj: AnalyzeIDDetections) => any;
414
+ }
415
+
416
+ export interface IdentityDocumentField {
417
+
418
+ Type?: AnalyzeIDDetections;
419
+
420
+ ValueDetection?: AnalyzeIDDetections;
421
+ }
422
+ export declare namespace IdentityDocumentField {
423
+
424
+ const filterSensitiveLog: (obj: IdentityDocumentField) => any;
425
+ }
426
+
427
+ export interface IdentityDocument {
428
+
429
+ DocumentIndex?: number;
430
+
431
+ IdentityDocumentFields?: IdentityDocumentField[];
432
+ }
433
+ export declare namespace IdentityDocument {
434
+
435
+ const filterSensitiveLog: (obj: IdentityDocument) => any;
436
+ }
437
+ export interface AnalyzeIDResponse {
438
+
439
+ IdentityDocuments?: IdentityDocument[];
440
+
441
+ DocumentMetadata?: DocumentMetadata;
442
+
443
+ AnalyzeIDModelVersion?: string;
444
+ }
445
+ export declare namespace AnalyzeIDResponse {
446
+
447
+ const filterSensitiveLog: (obj: AnalyzeIDResponse) => any;
448
+ }
449
+ export interface DetectDocumentTextRequest {
450
+
451
+ Document: Document | undefined;
452
+ }
453
+ export declare namespace DetectDocumentTextRequest {
454
+
455
+ const filterSensitiveLog: (obj: DetectDocumentTextRequest) => any;
456
+ }
457
+ export interface DetectDocumentTextResponse {
458
+
459
+ DocumentMetadata?: DocumentMetadata;
460
+
461
+ Blocks?: Block[];
462
+
463
+ DetectDocumentTextModelVersion?: string;
464
+ }
465
+ export declare namespace DetectDocumentTextResponse {
466
+
467
+ const filterSensitiveLog: (obj: DetectDocumentTextResponse) => any;
468
+ }
469
+
470
+ export interface DocumentLocation {
471
+
472
+ S3Object?: S3Object;
473
+ }
474
+ export declare namespace DocumentLocation {
475
+
476
+ const filterSensitiveLog: (obj: DocumentLocation) => any;
477
+ }
478
+ export interface GetDocumentAnalysisRequest {
479
+
480
+ JobId: string | undefined;
481
+
482
+ MaxResults?: number;
483
+
484
+ NextToken?: string;
485
+ }
486
+ export declare namespace GetDocumentAnalysisRequest {
487
+
488
+ const filterSensitiveLog: (obj: GetDocumentAnalysisRequest) => any;
489
+ }
490
+ export declare enum JobStatus {
491
+ FAILED = "FAILED",
492
+ IN_PROGRESS = "IN_PROGRESS",
493
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
494
+ SUCCEEDED = "SUCCEEDED"
495
+ }
496
+
497
+ export interface Warning {
498
+
499
+ ErrorCode?: string;
500
+
501
+ Pages?: number[];
502
+ }
503
+ export declare namespace Warning {
504
+
505
+ const filterSensitiveLog: (obj: Warning) => any;
506
+ }
507
+ export interface GetDocumentAnalysisResponse {
508
+
509
+ DocumentMetadata?: DocumentMetadata;
510
+
511
+ JobStatus?: JobStatus | string;
512
+
513
+ NextToken?: string;
514
+
515
+ Blocks?: Block[];
516
+
517
+ Warnings?: Warning[];
518
+
519
+ StatusMessage?: string;
520
+
521
+ AnalyzeDocumentModelVersion?: string;
522
+ }
523
+ export declare namespace GetDocumentAnalysisResponse {
524
+
525
+ const filterSensitiveLog: (obj: GetDocumentAnalysisResponse) => any;
526
+ }
527
+
528
+ export interface InvalidJobIdException extends __SmithyException, $MetadataBearer {
529
+ name: "InvalidJobIdException";
530
+ $fault: "client";
531
+ Message?: string;
532
+ Code?: string;
533
+ }
534
+
535
+ export interface InvalidKMSKeyException extends __SmithyException, $MetadataBearer {
536
+ name: "InvalidKMSKeyException";
537
+ $fault: "client";
538
+ Message?: string;
539
+ Code?: string;
540
+ }
541
+ export interface GetDocumentTextDetectionRequest {
542
+
543
+ JobId: string | undefined;
544
+
545
+ MaxResults?: number;
546
+
547
+ NextToken?: string;
548
+ }
549
+ export declare namespace GetDocumentTextDetectionRequest {
550
+
551
+ const filterSensitiveLog: (obj: GetDocumentTextDetectionRequest) => any;
552
+ }
553
+ export interface GetDocumentTextDetectionResponse {
554
+
555
+ DocumentMetadata?: DocumentMetadata;
556
+
557
+ JobStatus?: JobStatus | string;
558
+
559
+ NextToken?: string;
560
+
561
+ Blocks?: Block[];
562
+
563
+ Warnings?: Warning[];
564
+
565
+ StatusMessage?: string;
566
+
567
+ DetectDocumentTextModelVersion?: string;
568
+ }
569
+ export declare namespace GetDocumentTextDetectionResponse {
570
+
571
+ const filterSensitiveLog: (obj: GetDocumentTextDetectionResponse) => any;
572
+ }
573
+ export interface GetExpenseAnalysisRequest {
574
+
575
+ JobId: string | undefined;
576
+
577
+ MaxResults?: number;
578
+
579
+ NextToken?: string;
580
+ }
581
+ export declare namespace GetExpenseAnalysisRequest {
582
+
583
+ const filterSensitiveLog: (obj: GetExpenseAnalysisRequest) => any;
584
+ }
585
+ export interface GetExpenseAnalysisResponse {
586
+
587
+ DocumentMetadata?: DocumentMetadata;
588
+
589
+ JobStatus?: JobStatus | string;
590
+
591
+ NextToken?: string;
592
+
593
+ ExpenseDocuments?: ExpenseDocument[];
594
+
595
+ Warnings?: Warning[];
596
+
597
+ StatusMessage?: string;
598
+
599
+ AnalyzeExpenseModelVersion?: string;
600
+ }
601
+ export declare namespace GetExpenseAnalysisResponse {
602
+
603
+ const filterSensitiveLog: (obj: GetExpenseAnalysisResponse) => any;
604
+ }
605
+
606
+ export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
607
+ name: "IdempotentParameterMismatchException";
608
+ $fault: "client";
609
+ Message?: string;
610
+ Code?: string;
611
+ }
612
+
613
+ export interface LimitExceededException extends __SmithyException, $MetadataBearer {
614
+ name: "LimitExceededException";
615
+ $fault: "client";
616
+ Message?: string;
617
+ Code?: string;
618
+ }
619
+
620
+ export interface NotificationChannel {
621
+
622
+ SNSTopicArn: string | undefined;
623
+
624
+ RoleArn: string | undefined;
625
+ }
626
+ export declare namespace NotificationChannel {
627
+
628
+ const filterSensitiveLog: (obj: NotificationChannel) => any;
629
+ }
630
+
631
+ export interface OutputConfig {
632
+
633
+ S3Bucket: string | undefined;
634
+
635
+ S3Prefix?: string;
636
+ }
637
+ export declare namespace OutputConfig {
638
+
639
+ const filterSensitiveLog: (obj: OutputConfig) => any;
640
+ }
641
+ export interface StartDocumentAnalysisRequest {
642
+
643
+ DocumentLocation: DocumentLocation | undefined;
644
+
645
+ FeatureTypes: (FeatureType | string)[] | undefined;
646
+
647
+ ClientRequestToken?: string;
648
+
649
+ JobTag?: string;
650
+
651
+ NotificationChannel?: NotificationChannel;
652
+
653
+ OutputConfig?: OutputConfig;
654
+
655
+ KMSKeyId?: string;
656
+ }
657
+ export declare namespace StartDocumentAnalysisRequest {
658
+
659
+ const filterSensitiveLog: (obj: StartDocumentAnalysisRequest) => any;
660
+ }
661
+ export interface StartDocumentAnalysisResponse {
662
+
663
+ JobId?: string;
664
+ }
665
+ export declare namespace StartDocumentAnalysisResponse {
666
+
667
+ const filterSensitiveLog: (obj: StartDocumentAnalysisResponse) => any;
668
+ }
669
+ export interface StartDocumentTextDetectionRequest {
670
+
671
+ DocumentLocation: DocumentLocation | undefined;
672
+
673
+ ClientRequestToken?: string;
674
+
675
+ JobTag?: string;
676
+
677
+ NotificationChannel?: NotificationChannel;
678
+
679
+ OutputConfig?: OutputConfig;
680
+
681
+ KMSKeyId?: string;
682
+ }
683
+ export declare namespace StartDocumentTextDetectionRequest {
684
+
685
+ const filterSensitiveLog: (obj: StartDocumentTextDetectionRequest) => any;
686
+ }
687
+ export interface StartDocumentTextDetectionResponse {
688
+
689
+ JobId?: string;
690
+ }
691
+ export declare namespace StartDocumentTextDetectionResponse {
692
+
693
+ const filterSensitiveLog: (obj: StartDocumentTextDetectionResponse) => any;
694
+ }
695
+ export interface StartExpenseAnalysisRequest {
696
+
697
+ DocumentLocation: DocumentLocation | undefined;
698
+
699
+ ClientRequestToken?: string;
700
+
701
+ JobTag?: string;
702
+
703
+ NotificationChannel?: NotificationChannel;
704
+
705
+ OutputConfig?: OutputConfig;
706
+
707
+ KMSKeyId?: string;
708
+ }
709
+ export declare namespace StartExpenseAnalysisRequest {
710
+
711
+ const filterSensitiveLog: (obj: StartExpenseAnalysisRequest) => any;
712
+ }
713
+ export interface StartExpenseAnalysisResponse {
714
+
715
+ JobId?: string;
716
+ }
717
+ export declare namespace StartExpenseAnalysisResponse {
718
+
719
+ const filterSensitiveLog: (obj: StartExpenseAnalysisResponse) => any;
720
+ }
@@ -0,0 +1,32 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "../commands/AnalyzeDocumentCommand";
4
+ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../commands/AnalyzeExpenseCommand";
5
+ import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "../commands/AnalyzeIDCommand";
6
+ import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
7
+ import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
8
+ import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
9
+ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "../commands/GetExpenseAnalysisCommand";
10
+ import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "../commands/StartDocumentAnalysisCommand";
11
+ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "../commands/StartDocumentTextDetectionCommand";
12
+ import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
13
+ export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
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>;
16
+ export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
+ export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
+ export declare const serializeAws_json1_1GetExpenseAnalysisCommand: (input: GetExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
+ export declare const serializeAws_json1_1StartDocumentAnalysisCommand: (input: StartDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
+ export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (input: StartDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
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>;
26
+ export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
27
+ export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
28
+ export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
29
+ export declare const deserializeAws_json1_1GetExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExpenseAnalysisCommandOutput>;
30
+ export declare const deserializeAws_json1_1StartDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentAnalysisCommandOutput>;
31
+ export declare const deserializeAws_json1_1StartDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentTextDetectionCommandOutput>;
32
+ export declare const deserializeAws_json1_1StartExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartExpenseAnalysisCommandOutput>;
@@ -0,0 +1,38 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
+ import { TextractClientConfig } from "./TextractClient";
3
+
4
+ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<any>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,38 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
+ import { TextractClientConfig } from "./TextractClient";
3
+
4
+ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,37 @@
1
+ import { TextractClientConfig } from "./TextractClient";
2
+
3
+ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
4
+ runtime: string;
5
+ sha256: import("@aws-sdk/types").HashConstructor;
6
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
+ apiVersion: string;
8
+ urlParser: import("@aws-sdk/types").UrlParser;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ streamCollector: import("@aws-sdk/types").StreamCollector;
11
+ base64Decoder: import("@aws-sdk/types").Decoder;
12
+ base64Encoder: import("@aws-sdk/types").Encoder;
13
+ utf8Decoder: import("@aws-sdk/types").Decoder;
14
+ utf8Encoder: import("@aws-sdk/types").Encoder;
15
+ disableHostPrefix: boolean;
16
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
18
+ logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
+ serviceId: string;
22
+ region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ 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>;
27
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
+ tls?: boolean | undefined;
29
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
30
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
31
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
32
+ signingEscapePath?: boolean | undefined;
33
+ systemClockOffset?: number | undefined;
34
+ signingRegion?: string | undefined;
35
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
36
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
37
+ };
@@ -0,0 +1,11 @@
1
+ import { Logger as __Logger } from "@aws-sdk/types";
2
+ import { TextractClientConfig } from "./TextractClient";
3
+
4
+ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
5
+ apiVersion: string;
6
+ disableHostPrefix: boolean;
7
+ logger: __Logger;
8
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
9
+ serviceId: string;
10
+ urlParser: import("@aws-sdk/types").UrlParser;
11
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-textract",
3
3
  "description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
4
- "version": "3.50.0",
4
+ "version": "3.51.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,21 +18,21 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.50.0",
22
- "@aws-sdk/config-resolver": "3.50.0",
23
- "@aws-sdk/credential-provider-node": "3.50.0",
21
+ "@aws-sdk/client-sts": "3.51.0",
22
+ "@aws-sdk/config-resolver": "3.51.0",
23
+ "@aws-sdk/credential-provider-node": "3.51.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.50.0",
25
25
  "@aws-sdk/hash-node": "3.50.0",
26
26
  "@aws-sdk/invalid-dependency": "3.50.0",
27
27
  "@aws-sdk/middleware-content-length": "3.50.0",
28
28
  "@aws-sdk/middleware-host-header": "3.50.0",
29
29
  "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.51.0",
31
31
  "@aws-sdk/middleware-serde": "3.50.0",
32
32
  "@aws-sdk/middleware-signing": "3.50.0",
33
33
  "@aws-sdk/middleware-stack": "3.50.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.51.0",
36
36
  "@aws-sdk/node-http-handler": "3.50.0",
37
37
  "@aws-sdk/protocol-http": "3.50.0",
38
38
  "@aws-sdk/smithy-client": "3.50.0",
@@ -43,9 +43,9 @@
43
43
  "@aws-sdk/util-body-length-browser": "3.49.0",
44
44
  "@aws-sdk/util-body-length-node": "3.49.0",
45
45
  "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.51.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.49.0",
50
50
  "@aws-sdk/util-utf8-node": "3.49.0",
51
51
  "tslib": "^2.3.0"