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