@aws-sdk/client-textract 3.168.0 → 3.170.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 (25) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-types/ts3.4/Textract.d.ts +184 -55
  3. package/dist-types/ts3.4/TextractClient.d.ts +189 -83
  4. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +37 -17
  5. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +37 -17
  6. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +34 -17
  7. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +38 -17
  8. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +38 -17
  9. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +41 -17
  10. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +38 -17
  11. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +41 -17
  12. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +41 -17
  13. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +41 -17
  14. package/dist-types/ts3.4/commands/index.d.ts +10 -10
  15. package/dist-types/ts3.4/endpoints.d.ts +2 -2
  16. package/dist-types/ts3.4/index.d.ts +5 -5
  17. package/dist-types/ts3.4/models/TextractServiceException.d.ts +8 -6
  18. package/dist-types/ts3.4/models/index.d.ts +1 -1
  19. package/dist-types/ts3.4/models/models_0.d.ts +754 -691
  20. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +125 -32
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +66 -38
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +66 -38
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +67 -37
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -11
  25. package/package.json +34 -34
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-textract
9
+
10
+
11
+
12
+
13
+
14
+ # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-textract
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/client-textract
@@ -1,55 +1,184 @@
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
- }
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import {
3
+ AnalyzeDocumentCommandInput,
4
+ AnalyzeDocumentCommandOutput,
5
+ } from "./commands/AnalyzeDocumentCommand";
6
+ import {
7
+ AnalyzeExpenseCommandInput,
8
+ AnalyzeExpenseCommandOutput,
9
+ } from "./commands/AnalyzeExpenseCommand";
10
+ import {
11
+ AnalyzeIDCommandInput,
12
+ AnalyzeIDCommandOutput,
13
+ } from "./commands/AnalyzeIDCommand";
14
+ import {
15
+ DetectDocumentTextCommandInput,
16
+ DetectDocumentTextCommandOutput,
17
+ } from "./commands/DetectDocumentTextCommand";
18
+ import {
19
+ GetDocumentAnalysisCommandInput,
20
+ GetDocumentAnalysisCommandOutput,
21
+ } from "./commands/GetDocumentAnalysisCommand";
22
+ import {
23
+ GetDocumentTextDetectionCommandInput,
24
+ GetDocumentTextDetectionCommandOutput,
25
+ } from "./commands/GetDocumentTextDetectionCommand";
26
+ import {
27
+ GetExpenseAnalysisCommandInput,
28
+ GetExpenseAnalysisCommandOutput,
29
+ } from "./commands/GetExpenseAnalysisCommand";
30
+ import {
31
+ StartDocumentAnalysisCommandInput,
32
+ StartDocumentAnalysisCommandOutput,
33
+ } from "./commands/StartDocumentAnalysisCommand";
34
+ import {
35
+ StartDocumentTextDetectionCommandInput,
36
+ StartDocumentTextDetectionCommandOutput,
37
+ } from "./commands/StartDocumentTextDetectionCommand";
38
+ import {
39
+ StartExpenseAnalysisCommandInput,
40
+ StartExpenseAnalysisCommandOutput,
41
+ } from "./commands/StartExpenseAnalysisCommand";
42
+ import { TextractClient } from "./TextractClient";
43
+
44
+ export declare class Textract extends TextractClient {
45
+ analyzeDocument(
46
+ args: AnalyzeDocumentCommandInput,
47
+ options?: __HttpHandlerOptions
48
+ ): Promise<AnalyzeDocumentCommandOutput>;
49
+ analyzeDocument(
50
+ args: AnalyzeDocumentCommandInput,
51
+ cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void
52
+ ): void;
53
+ analyzeDocument(
54
+ args: AnalyzeDocumentCommandInput,
55
+ options: __HttpHandlerOptions,
56
+ cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void
57
+ ): void;
58
+
59
+ analyzeExpense(
60
+ args: AnalyzeExpenseCommandInput,
61
+ options?: __HttpHandlerOptions
62
+ ): Promise<AnalyzeExpenseCommandOutput>;
63
+ analyzeExpense(
64
+ args: AnalyzeExpenseCommandInput,
65
+ cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void
66
+ ): void;
67
+ analyzeExpense(
68
+ args: AnalyzeExpenseCommandInput,
69
+ options: __HttpHandlerOptions,
70
+ cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void
71
+ ): void;
72
+
73
+ analyzeID(
74
+ args: AnalyzeIDCommandInput,
75
+ options?: __HttpHandlerOptions
76
+ ): Promise<AnalyzeIDCommandOutput>;
77
+ analyzeID(
78
+ args: AnalyzeIDCommandInput,
79
+ cb: (err: any, data?: AnalyzeIDCommandOutput) => void
80
+ ): void;
81
+ analyzeID(
82
+ args: AnalyzeIDCommandInput,
83
+ options: __HttpHandlerOptions,
84
+ cb: (err: any, data?: AnalyzeIDCommandOutput) => void
85
+ ): void;
86
+
87
+ detectDocumentText(
88
+ args: DetectDocumentTextCommandInput,
89
+ options?: __HttpHandlerOptions
90
+ ): Promise<DetectDocumentTextCommandOutput>;
91
+ detectDocumentText(
92
+ args: DetectDocumentTextCommandInput,
93
+ cb: (err: any, data?: DetectDocumentTextCommandOutput) => void
94
+ ): void;
95
+ detectDocumentText(
96
+ args: DetectDocumentTextCommandInput,
97
+ options: __HttpHandlerOptions,
98
+ cb: (err: any, data?: DetectDocumentTextCommandOutput) => void
99
+ ): void;
100
+
101
+ getDocumentAnalysis(
102
+ args: GetDocumentAnalysisCommandInput,
103
+ options?: __HttpHandlerOptions
104
+ ): Promise<GetDocumentAnalysisCommandOutput>;
105
+ getDocumentAnalysis(
106
+ args: GetDocumentAnalysisCommandInput,
107
+ cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void
108
+ ): void;
109
+ getDocumentAnalysis(
110
+ args: GetDocumentAnalysisCommandInput,
111
+ options: __HttpHandlerOptions,
112
+ cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void
113
+ ): void;
114
+
115
+ getDocumentTextDetection(
116
+ args: GetDocumentTextDetectionCommandInput,
117
+ options?: __HttpHandlerOptions
118
+ ): Promise<GetDocumentTextDetectionCommandOutput>;
119
+ getDocumentTextDetection(
120
+ args: GetDocumentTextDetectionCommandInput,
121
+ cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void
122
+ ): void;
123
+ getDocumentTextDetection(
124
+ args: GetDocumentTextDetectionCommandInput,
125
+ options: __HttpHandlerOptions,
126
+ cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void
127
+ ): void;
128
+
129
+ getExpenseAnalysis(
130
+ args: GetExpenseAnalysisCommandInput,
131
+ options?: __HttpHandlerOptions
132
+ ): Promise<GetExpenseAnalysisCommandOutput>;
133
+ getExpenseAnalysis(
134
+ args: GetExpenseAnalysisCommandInput,
135
+ cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void
136
+ ): void;
137
+ getExpenseAnalysis(
138
+ args: GetExpenseAnalysisCommandInput,
139
+ options: __HttpHandlerOptions,
140
+ cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void
141
+ ): void;
142
+
143
+ startDocumentAnalysis(
144
+ args: StartDocumentAnalysisCommandInput,
145
+ options?: __HttpHandlerOptions
146
+ ): Promise<StartDocumentAnalysisCommandOutput>;
147
+ startDocumentAnalysis(
148
+ args: StartDocumentAnalysisCommandInput,
149
+ cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void
150
+ ): void;
151
+ startDocumentAnalysis(
152
+ args: StartDocumentAnalysisCommandInput,
153
+ options: __HttpHandlerOptions,
154
+ cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void
155
+ ): void;
156
+
157
+ startDocumentTextDetection(
158
+ args: StartDocumentTextDetectionCommandInput,
159
+ options?: __HttpHandlerOptions
160
+ ): Promise<StartDocumentTextDetectionCommandOutput>;
161
+ startDocumentTextDetection(
162
+ args: StartDocumentTextDetectionCommandInput,
163
+ cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void
164
+ ): void;
165
+ startDocumentTextDetection(
166
+ args: StartDocumentTextDetectionCommandInput,
167
+ options: __HttpHandlerOptions,
168
+ cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void
169
+ ): void;
170
+
171
+ startExpenseAnalysis(
172
+ args: StartExpenseAnalysisCommandInput,
173
+ options?: __HttpHandlerOptions
174
+ ): Promise<StartExpenseAnalysisCommandOutput>;
175
+ startExpenseAnalysis(
176
+ args: StartExpenseAnalysisCommandInput,
177
+ cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void
178
+ ): void;
179
+ startExpenseAnalysis(
180
+ args: StartExpenseAnalysisCommandInput,
181
+ options: __HttpHandlerOptions,
182
+ cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void
183
+ ): void;
184
+ }
@@ -1,83 +1,189 @@
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 { BodyLengthCalculator as __BodyLengthCalculator, 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?: __BodyLengthCalculator;
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 {};
1
+ import {
2
+ EndpointsInputConfig,
3
+ EndpointsResolvedConfig,
4
+ RegionInputConfig,
5
+ RegionResolvedConfig,
6
+ } from "@aws-sdk/config-resolver";
7
+ import {
8
+ HostHeaderInputConfig,
9
+ HostHeaderResolvedConfig,
10
+ } from "@aws-sdk/middleware-host-header";
11
+ import {
12
+ RetryInputConfig,
13
+ RetryResolvedConfig,
14
+ } from "@aws-sdk/middleware-retry";
15
+ import {
16
+ AwsAuthInputConfig,
17
+ AwsAuthResolvedConfig,
18
+ } from "@aws-sdk/middleware-signing";
19
+ import {
20
+ UserAgentInputConfig,
21
+ UserAgentResolvedConfig,
22
+ } from "@aws-sdk/middleware-user-agent";
23
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
24
+ import {
25
+ Client as __Client,
26
+ DefaultsMode,
27
+ SmithyConfiguration as __SmithyConfiguration,
28
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
29
+ } from "@aws-sdk/smithy-client";
30
+ import {
31
+ BodyLengthCalculator as __BodyLengthCalculator,
32
+ Credentials as __Credentials,
33
+ Decoder as __Decoder,
34
+ Encoder as __Encoder,
35
+ HashConstructor as __HashConstructor,
36
+ HttpHandlerOptions as __HttpHandlerOptions,
37
+ Logger as __Logger,
38
+ Provider as __Provider,
39
+ Provider,
40
+ RegionInfoProvider,
41
+ StreamCollector as __StreamCollector,
42
+ UrlParser as __UrlParser,
43
+ UserAgent as __UserAgent,
44
+ } from "@aws-sdk/types";
45
+ import {
46
+ AnalyzeDocumentCommandInput,
47
+ AnalyzeDocumentCommandOutput,
48
+ } from "./commands/AnalyzeDocumentCommand";
49
+ import {
50
+ AnalyzeExpenseCommandInput,
51
+ AnalyzeExpenseCommandOutput,
52
+ } from "./commands/AnalyzeExpenseCommand";
53
+ import {
54
+ AnalyzeIDCommandInput,
55
+ AnalyzeIDCommandOutput,
56
+ } from "./commands/AnalyzeIDCommand";
57
+ import {
58
+ DetectDocumentTextCommandInput,
59
+ DetectDocumentTextCommandOutput,
60
+ } from "./commands/DetectDocumentTextCommand";
61
+ import {
62
+ GetDocumentAnalysisCommandInput,
63
+ GetDocumentAnalysisCommandOutput,
64
+ } from "./commands/GetDocumentAnalysisCommand";
65
+ import {
66
+ GetDocumentTextDetectionCommandInput,
67
+ GetDocumentTextDetectionCommandOutput,
68
+ } from "./commands/GetDocumentTextDetectionCommand";
69
+ import {
70
+ GetExpenseAnalysisCommandInput,
71
+ GetExpenseAnalysisCommandOutput,
72
+ } from "./commands/GetExpenseAnalysisCommand";
73
+ import {
74
+ StartDocumentAnalysisCommandInput,
75
+ StartDocumentAnalysisCommandOutput,
76
+ } from "./commands/StartDocumentAnalysisCommand";
77
+ import {
78
+ StartDocumentTextDetectionCommandInput,
79
+ StartDocumentTextDetectionCommandOutput,
80
+ } from "./commands/StartDocumentTextDetectionCommand";
81
+ import {
82
+ StartExpenseAnalysisCommandInput,
83
+ StartExpenseAnalysisCommandOutput,
84
+ } from "./commands/StartExpenseAnalysisCommand";
85
+ export declare type ServiceInputTypes =
86
+ | AnalyzeDocumentCommandInput
87
+ | AnalyzeExpenseCommandInput
88
+ | AnalyzeIDCommandInput
89
+ | DetectDocumentTextCommandInput
90
+ | GetDocumentAnalysisCommandInput
91
+ | GetDocumentTextDetectionCommandInput
92
+ | GetExpenseAnalysisCommandInput
93
+ | StartDocumentAnalysisCommandInput
94
+ | StartDocumentTextDetectionCommandInput
95
+ | StartExpenseAnalysisCommandInput;
96
+ export declare type ServiceOutputTypes =
97
+ | AnalyzeDocumentCommandOutput
98
+ | AnalyzeExpenseCommandOutput
99
+ | AnalyzeIDCommandOutput
100
+ | DetectDocumentTextCommandOutput
101
+ | GetDocumentAnalysisCommandOutput
102
+ | GetDocumentTextDetectionCommandOutput
103
+ | GetExpenseAnalysisCommandOutput
104
+ | StartDocumentAnalysisCommandOutput
105
+ | StartDocumentTextDetectionCommandOutput
106
+ | StartExpenseAnalysisCommandOutput;
107
+ export interface ClientDefaults
108
+ extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
109
+ requestHandler?: __HttpHandler;
110
+
111
+ sha256?: __HashConstructor;
112
+
113
+ urlParser?: __UrlParser;
114
+
115
+ bodyLengthChecker?: __BodyLengthCalculator;
116
+
117
+ streamCollector?: __StreamCollector;
118
+
119
+ base64Decoder?: __Decoder;
120
+
121
+ base64Encoder?: __Encoder;
122
+
123
+ utf8Decoder?: __Decoder;
124
+
125
+ utf8Encoder?: __Encoder;
126
+
127
+ runtime?: string;
128
+
129
+ disableHostPrefix?: boolean;
130
+
131
+ maxAttempts?: number | __Provider<number>;
132
+
133
+ retryMode?: string | __Provider<string>;
134
+
135
+ logger?: __Logger;
136
+
137
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
138
+
139
+ useFipsEndpoint?: boolean | __Provider<boolean>;
140
+
141
+ serviceId?: string;
142
+
143
+ region?: string | __Provider<string>;
144
+
145
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
146
+
147
+ regionInfoProvider?: RegionInfoProvider;
148
+
149
+ defaultUserAgentProvider?: Provider<__UserAgent>;
150
+
151
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
152
+ }
153
+ declare type TextractClientConfigType = Partial<
154
+ __SmithyConfiguration<__HttpHandlerOptions>
155
+ > &
156
+ ClientDefaults &
157
+ RegionInputConfig &
158
+ EndpointsInputConfig &
159
+ RetryInputConfig &
160
+ HostHeaderInputConfig &
161
+ AwsAuthInputConfig &
162
+ UserAgentInputConfig;
163
+
164
+ export interface TextractClientConfig extends TextractClientConfigType {}
165
+ declare type TextractClientResolvedConfigType =
166
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
167
+ Required<ClientDefaults> &
168
+ RegionResolvedConfig &
169
+ EndpointsResolvedConfig &
170
+ RetryResolvedConfig &
171
+ HostHeaderResolvedConfig &
172
+ AwsAuthResolvedConfig &
173
+ UserAgentResolvedConfig;
174
+
175
+ export interface TextractClientResolvedConfig
176
+ extends TextractClientResolvedConfigType {}
177
+
178
+ export declare class TextractClient extends __Client<
179
+ __HttpHandlerOptions,
180
+ ServiceInputTypes,
181
+ ServiceOutputTypes,
182
+ TextractClientResolvedConfig
183
+ > {
184
+ readonly config: TextractClientResolvedConfig;
185
+ constructor(configuration: TextractClientConfig);
186
+
187
+ destroy(): void;
188
+ }
189
+ export {};
@@ -1,17 +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 { 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
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import {
9
+ AnalyzeDocumentRequest,
10
+ AnalyzeDocumentResponse,
11
+ } from "../models/models_0";
12
+ import {
13
+ ServiceInputTypes,
14
+ ServiceOutputTypes,
15
+ TextractClientResolvedConfig,
16
+ } from "../TextractClient";
17
+ export interface AnalyzeDocumentCommandInput extends AnalyzeDocumentRequest {}
18
+ export interface AnalyzeDocumentCommandOutput
19
+ extends AnalyzeDocumentResponse,
20
+ __MetadataBearer {}
21
+
22
+ export declare class AnalyzeDocumentCommand extends $Command<
23
+ AnalyzeDocumentCommandInput,
24
+ AnalyzeDocumentCommandOutput,
25
+ TextractClientResolvedConfig
26
+ > {
27
+ readonly input: AnalyzeDocumentCommandInput;
28
+ constructor(input: AnalyzeDocumentCommandInput);
29
+
30
+ resolveMiddleware(
31
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
32
+ configuration: TextractClientResolvedConfig,
33
+ options?: __HttpHandlerOptions
34
+ ): Handler<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -1,17 +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 { 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
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import {
9
+ AnalyzeExpenseRequest,
10
+ AnalyzeExpenseResponse,
11
+ } from "../models/models_0";
12
+ import {
13
+ ServiceInputTypes,
14
+ ServiceOutputTypes,
15
+ TextractClientResolvedConfig,
16
+ } from "../TextractClient";
17
+ export interface AnalyzeExpenseCommandInput extends AnalyzeExpenseRequest {}
18
+ export interface AnalyzeExpenseCommandOutput
19
+ extends AnalyzeExpenseResponse,
20
+ __MetadataBearer {}
21
+
22
+ export declare class AnalyzeExpenseCommand extends $Command<
23
+ AnalyzeExpenseCommandInput,
24
+ AnalyzeExpenseCommandOutput,
25
+ TextractClientResolvedConfig
26
+ > {
27
+ readonly input: AnalyzeExpenseCommandInput;
28
+ constructor(input: AnalyzeExpenseCommandInput);
29
+
30
+ resolveMiddleware(
31
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
32
+ configuration: TextractClientResolvedConfig,
33
+ options?: __HttpHandlerOptions
34
+ ): Handler<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }