@aws-sdk/client-textract 3.39.0 → 3.43.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 +41 -0
- package/dist-cjs/Textract.js +15 -0
- package/dist-cjs/commands/AnalyzeIDCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +151 -26
- package/dist-cjs/models/models_0.js +42 -2
- package/dist-cjs/protocols/Aws_json1_1.js +204 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Textract.js +15 -0
- package/dist-es/commands/AnalyzeIDCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +151 -26
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +211 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Textract.d.ts +11 -1
- package/dist-types/TextractClient.d.ts +11 -2
- package/dist-types/commands/AnalyzeDocumentCommand.d.ts +1 -1
- package/dist-types/commands/AnalyzeExpenseCommand.d.ts +3 -2
- package/dist-types/commands/AnalyzeIDCommand.d.ts +37 -0
- package/dist-types/commands/DetectDocumentTextCommand.d.ts +1 -1
- package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +123 -2
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Textract.d.ts +5 -0
- package/dist-types/ts3.4/TextractClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +69 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
package/dist-types/Textract.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
3
3
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
4
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
|
|
4
5
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
|
|
5
6
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
|
|
6
7
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
|
|
@@ -52,7 +53,8 @@ export declare class Textract extends TextractClient {
|
|
|
52
53
|
analyzeDocument(args: AnalyzeDocumentCommandInput, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
|
|
53
54
|
analyzeDocument(args: AnalyzeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
|
|
54
55
|
/**
|
|
55
|
-
* <p>
|
|
56
|
+
* <p>
|
|
57
|
+
* <code>AnalyzeExpense</code> synchronously analyzes an input document for financially related relationships between text.</p>
|
|
56
58
|
* <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
|
|
57
59
|
* <ul>
|
|
58
60
|
* <li>
|
|
@@ -70,6 +72,14 @@ export declare class Textract extends TextractClient {
|
|
|
70
72
|
analyzeExpense(args: AnalyzeExpenseCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeExpenseCommandOutput>;
|
|
71
73
|
analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
72
74
|
analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* <p>Analyzes identity documents for relevant information. This information is extracted
|
|
77
|
+
* and returned as <code>IdentityDocumentFields</code>, which records both the normalized
|
|
78
|
+
* field and value of the extracted text.</p>
|
|
79
|
+
*/
|
|
80
|
+
analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
|
|
81
|
+
analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
|
|
82
|
+
analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
|
|
73
83
|
/**
|
|
74
84
|
* <p>Detects text in the input document. Amazon Textract can detect lines of text and the
|
|
75
85
|
* words that make up a line of text. The input document must be an image in JPEG or PNG
|
|
@@ -8,6 +8,7 @@ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, Smith
|
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
10
10
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
11
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
|
|
11
12
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
|
|
12
13
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
|
|
13
14
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
|
|
@@ -15,8 +16,8 @@ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from
|
|
|
15
16
|
import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
|
|
16
17
|
import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
|
|
17
18
|
import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
|
|
18
|
-
export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
|
|
19
|
-
export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
|
|
19
|
+
export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
|
|
20
|
+
export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
|
|
20
21
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
21
22
|
/**
|
|
22
23
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -85,6 +86,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
85
86
|
* Optional logger for logging debug/info/warn/error.
|
|
86
87
|
*/
|
|
87
88
|
logger?: __Logger;
|
|
89
|
+
/**
|
|
90
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
91
|
+
*/
|
|
92
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Enables FIPS compatible endpoints.
|
|
95
|
+
*/
|
|
96
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
88
97
|
/**
|
|
89
98
|
* Unique service identifier.
|
|
90
99
|
* @internal
|
|
@@ -50,7 +50,7 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
|
|
|
50
50
|
*
|
|
51
51
|
* @see {@link AnalyzeDocumentCommandInput} for command's `input` shape.
|
|
52
52
|
* @see {@link AnalyzeDocumentCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
53
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
56
|
export declare class AnalyzeDocumentCommand extends $Command<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -7,7 +7,8 @@ export interface AnalyzeExpenseCommandInput extends AnalyzeExpenseRequest {
|
|
|
7
7
|
export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>
|
|
10
|
+
* <p>
|
|
11
|
+
* <code>AnalyzeExpense</code> synchronously analyzes an input document for financially related relationships between text.</p>
|
|
11
12
|
* <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
|
|
12
13
|
* <ul>
|
|
13
14
|
* <li>
|
|
@@ -33,7 +34,7 @@ export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __M
|
|
|
33
34
|
*
|
|
34
35
|
* @see {@link AnalyzeExpenseCommandInput} for command's `input` shape.
|
|
35
36
|
* @see {@link AnalyzeExpenseCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
37
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
37
38
|
*
|
|
38
39
|
*/
|
|
39
40
|
export declare class AnalyzeExpenseCommand extends $Command<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AnalyzeIDRequest, AnalyzeIDResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
5
|
+
export interface AnalyzeIDCommandInput extends AnalyzeIDRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Analyzes identity documents for relevant information. This information is extracted
|
|
11
|
+
* and returned as <code>IdentityDocumentFields</code>, which records both the normalized
|
|
12
|
+
* field and value of the extracted text.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { TextractClient, AnalyzeIDCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
17
|
+
* // const { TextractClient, AnalyzeIDCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
18
|
+
* const client = new TextractClient(config);
|
|
19
|
+
* const command = new AnalyzeIDCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link AnalyzeIDCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link AnalyzeIDCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class AnalyzeIDCommand extends $Command<AnalyzeIDCommandInput, AnalyzeIDCommandOutput, TextractClientResolvedConfig> {
|
|
29
|
+
readonly input: AnalyzeIDCommandInput;
|
|
30
|
+
constructor(input: AnalyzeIDCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeIDCommandInput, AnalyzeIDCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -30,7 +30,7 @@ export interface DetectDocumentTextCommandOutput extends DetectDocumentTextRespo
|
|
|
30
30
|
*
|
|
31
31
|
* @see {@link DetectDocumentTextCommandInput} for command's `input` shape.
|
|
32
32
|
* @see {@link DetectDocumentTextCommandOutput} for command's `response` shape.
|
|
33
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
33
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
export declare class DetectDocumentTextCommand extends $Command<DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -64,7 +64,7 @@ export interface GetDocumentAnalysisCommandOutput extends GetDocumentAnalysisRes
|
|
|
64
64
|
*
|
|
65
65
|
* @see {@link GetDocumentAnalysisCommandInput} for command's `input` shape.
|
|
66
66
|
* @see {@link GetDocumentAnalysisCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
67
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
export declare class GetDocumentAnalysisCommand extends $Command<GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -44,7 +44,7 @@ export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDe
|
|
|
44
44
|
*
|
|
45
45
|
* @see {@link GetDocumentTextDetectionCommandInput} for command's `input` shape.
|
|
46
46
|
* @see {@link GetDocumentTextDetectionCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
47
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
export declare class GetDocumentTextDetectionCommand extends $Command<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -36,7 +36,7 @@ export interface GetExpenseAnalysisCommandOutput extends GetExpenseAnalysisRespo
|
|
|
36
36
|
*
|
|
37
37
|
* @see {@link GetExpenseAnalysisCommandInput} for command's `input` shape.
|
|
38
38
|
* @see {@link GetExpenseAnalysisCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
39
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
42
|
export declare class GetExpenseAnalysisCommand extends $Command<GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -37,7 +37,7 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
|
|
|
37
37
|
*
|
|
38
38
|
* @see {@link StartDocumentAnalysisCommandInput} for command's `input` shape.
|
|
39
39
|
* @see {@link StartDocumentAnalysisCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
40
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
export declare class StartDocumentAnalysisCommand extends $Command<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -36,7 +36,7 @@ export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTe
|
|
|
36
36
|
*
|
|
37
37
|
* @see {@link StartDocumentTextDetectionCommandInput} for command's `input` shape.
|
|
38
38
|
* @see {@link StartDocumentTextDetectionCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
39
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
42
|
export declare class StartDocumentTextDetectionCommand extends $Command<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -35,7 +35,7 @@ export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisR
|
|
|
35
35
|
*
|
|
36
36
|
* @see {@link StartExpenseAnalysisCommandInput} for command's `input` shape.
|
|
37
37
|
* @see {@link StartExpenseAnalysisCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link TextractClientResolvedConfig | config} for
|
|
38
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
41
|
export declare class StartExpenseAnalysisCommand extends $Command<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AnalyzeDocumentCommand";
|
|
2
2
|
export * from "./AnalyzeExpenseCommand";
|
|
3
|
+
export * from "./AnalyzeIDCommand";
|
|
3
4
|
export * from "./DetectDocumentTextCommand";
|
|
4
5
|
export * from "./GetDocumentAnalysisCommand";
|
|
5
6
|
export * from "./GetDocumentTextDetectionCommand";
|
|
@@ -702,7 +702,7 @@ export declare namespace ThrottlingException {
|
|
|
702
702
|
}
|
|
703
703
|
/**
|
|
704
704
|
* <p>The format of the input document isn't supported. Documents for synchronous operations can be in
|
|
705
|
-
* PNG or JPEG format. Documents for asynchronous operations can
|
|
705
|
+
* PNG or JPEG format only. Documents for asynchronous operations can be in PDF format.</p>
|
|
706
706
|
*/
|
|
707
707
|
export interface UnsupportedDocumentException extends __SmithyException, $MetadataBearer {
|
|
708
708
|
name: "UnsupportedDocumentException";
|
|
@@ -789,7 +789,7 @@ export declare namespace ExpenseType {
|
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
791
|
* <p>Breakdown of detected information, seperated into
|
|
792
|
-
* the catagories Type,
|
|
792
|
+
* the catagories Type, LabelDetection, and ValueDetection</p>
|
|
793
793
|
*/
|
|
794
794
|
export interface ExpenseField {
|
|
795
795
|
/**
|
|
@@ -889,6 +889,127 @@ export declare namespace AnalyzeExpenseResponse {
|
|
|
889
889
|
*/
|
|
890
890
|
const filterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
|
|
891
891
|
}
|
|
892
|
+
export interface AnalyzeIDRequest {
|
|
893
|
+
/**
|
|
894
|
+
* <p>The document being passed to AnalyzeID.</p>
|
|
895
|
+
*/
|
|
896
|
+
DocumentPages: Document[] | undefined;
|
|
897
|
+
}
|
|
898
|
+
export declare namespace AnalyzeIDRequest {
|
|
899
|
+
/**
|
|
900
|
+
* @internal
|
|
901
|
+
*/
|
|
902
|
+
const filterSensitiveLog: (obj: AnalyzeIDRequest) => any;
|
|
903
|
+
}
|
|
904
|
+
export declare enum ValueType {
|
|
905
|
+
DATE = "DATE"
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* <p>Contains information relating to dates in a document, including the type
|
|
909
|
+
* of value, and the value.</p>
|
|
910
|
+
*/
|
|
911
|
+
export interface NormalizedValue {
|
|
912
|
+
/**
|
|
913
|
+
* <p>The value of the date, written as Year-Month-DayTHour:Minute:Second.</p>
|
|
914
|
+
*/
|
|
915
|
+
Value?: string;
|
|
916
|
+
/**
|
|
917
|
+
* <p>The normalized type of the value detected. In this case, DATE.</p>
|
|
918
|
+
*/
|
|
919
|
+
ValueType?: ValueType | string;
|
|
920
|
+
}
|
|
921
|
+
export declare namespace NormalizedValue {
|
|
922
|
+
/**
|
|
923
|
+
* @internal
|
|
924
|
+
*/
|
|
925
|
+
const filterSensitiveLog: (obj: NormalizedValue) => any;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* <p>Used to contain the information detected by an AnalyzeID operation.</p>
|
|
929
|
+
*/
|
|
930
|
+
export interface AnalyzeIDDetections {
|
|
931
|
+
/**
|
|
932
|
+
* <p>Text of either the normalized field or value associated with it.</p>
|
|
933
|
+
*/
|
|
934
|
+
Text: string | undefined;
|
|
935
|
+
/**
|
|
936
|
+
* <p>Only returned for dates, returns the type of value detected and the date
|
|
937
|
+
* written in a more machine readable way.</p>
|
|
938
|
+
*/
|
|
939
|
+
NormalizedValue?: NormalizedValue;
|
|
940
|
+
/**
|
|
941
|
+
* <p>The confidence score of the detected text.</p>
|
|
942
|
+
*/
|
|
943
|
+
Confidence?: number;
|
|
944
|
+
}
|
|
945
|
+
export declare namespace AnalyzeIDDetections {
|
|
946
|
+
/**
|
|
947
|
+
* @internal
|
|
948
|
+
*/
|
|
949
|
+
const filterSensitiveLog: (obj: AnalyzeIDDetections) => any;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* <p>Structure containing both the normalized type of the extracted information
|
|
953
|
+
* and the text associated with it. These are extracted as Type and Value respectively.</p>
|
|
954
|
+
*/
|
|
955
|
+
export interface IdentityDocumentField {
|
|
956
|
+
/**
|
|
957
|
+
* <p>Used to contain the information detected by an AnalyzeID operation.</p>
|
|
958
|
+
*/
|
|
959
|
+
Type?: AnalyzeIDDetections;
|
|
960
|
+
/**
|
|
961
|
+
* <p>Used to contain the information detected by an AnalyzeID operation.</p>
|
|
962
|
+
*/
|
|
963
|
+
ValueDetection?: AnalyzeIDDetections;
|
|
964
|
+
}
|
|
965
|
+
export declare namespace IdentityDocumentField {
|
|
966
|
+
/**
|
|
967
|
+
* @internal
|
|
968
|
+
*/
|
|
969
|
+
const filterSensitiveLog: (obj: IdentityDocumentField) => any;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* <p>The structure that lists each document processed in an AnalyzeID operation.</p>
|
|
973
|
+
*/
|
|
974
|
+
export interface IdentityDocument {
|
|
975
|
+
/**
|
|
976
|
+
* <p>Denotes the placement of a document in the IdentityDocument list. The first document
|
|
977
|
+
* is marked 1, the second 2 and so on.</p>
|
|
978
|
+
*/
|
|
979
|
+
DocumentIndex?: number;
|
|
980
|
+
/**
|
|
981
|
+
* <p>The structure used to record information extracted from identity documents.
|
|
982
|
+
* Contains both normalized field and value of the extracted text.</p>
|
|
983
|
+
*/
|
|
984
|
+
IdentityDocumentFields?: IdentityDocumentField[];
|
|
985
|
+
}
|
|
986
|
+
export declare namespace IdentityDocument {
|
|
987
|
+
/**
|
|
988
|
+
* @internal
|
|
989
|
+
*/
|
|
990
|
+
const filterSensitiveLog: (obj: IdentityDocument) => any;
|
|
991
|
+
}
|
|
992
|
+
export interface AnalyzeIDResponse {
|
|
993
|
+
/**
|
|
994
|
+
* <p>The list of documents processed by AnalyzeID. Includes a number denoting their
|
|
995
|
+
* place in the list and the response structure for the document.</p>
|
|
996
|
+
*/
|
|
997
|
+
IdentityDocuments?: IdentityDocument[];
|
|
998
|
+
/**
|
|
999
|
+
* <p>Information about the input document.</p>
|
|
1000
|
+
*/
|
|
1001
|
+
DocumentMetadata?: DocumentMetadata;
|
|
1002
|
+
/**
|
|
1003
|
+
* <p>The version of the AnalyzeIdentity API being used to process documents.</p>
|
|
1004
|
+
*/
|
|
1005
|
+
AnalyzeIDModelVersion?: string;
|
|
1006
|
+
}
|
|
1007
|
+
export declare namespace AnalyzeIDResponse {
|
|
1008
|
+
/**
|
|
1009
|
+
* @internal
|
|
1010
|
+
*/
|
|
1011
|
+
const filterSensitiveLog: (obj: AnalyzeIDResponse) => any;
|
|
1012
|
+
}
|
|
892
1013
|
export interface DetectDocumentTextRequest {
|
|
893
1014
|
/**
|
|
894
1015
|
* <p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI
|
|
@@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "../commands/AnalyzeDocumentCommand";
|
|
4
4
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../commands/AnalyzeExpenseCommand";
|
|
5
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "../commands/AnalyzeIDCommand";
|
|
5
6
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
|
|
6
7
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
|
|
7
8
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
|
|
@@ -11,6 +12,7 @@ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionComma
|
|
|
11
12
|
import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
|
|
12
13
|
export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
14
|
export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
export declare const serializeAws_json1_1AnalyzeIDCommand: (input: AnalyzeIDCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
16
|
export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
17
|
export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
18
|
export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -20,6 +22,7 @@ export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (inp
|
|
|
20
22
|
export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
23
|
export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
|
|
22
24
|
export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
|
|
25
|
+
export declare const deserializeAws_json1_1AnalyzeIDCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeIDCommandOutput>;
|
|
23
26
|
export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
|
|
24
27
|
export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
|
|
25
28
|
export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
16
16
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
17
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
18
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
21
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
22
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
23
|
apiVersion: string;
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
16
16
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
17
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
18
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
21
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
20
22
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
21
23
|
apiVersion: string;
|
|
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
18
18
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
19
19
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
20
20
|
logger: import("@aws-sdk/types").Logger;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
23
|
serviceId: string;
|
|
22
24
|
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
23
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
3
3
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
4
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
|
|
4
5
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
|
|
5
6
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
|
|
6
7
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
|
|
@@ -20,6 +21,10 @@ export declare class Textract extends TextractClient {
|
|
|
20
21
|
analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
21
22
|
analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
22
23
|
|
|
24
|
+
analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
|
|
25
|
+
analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
|
|
26
|
+
analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
|
|
27
|
+
|
|
23
28
|
detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
|
|
24
29
|
detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
|
|
25
30
|
detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
|
|
@@ -8,6 +8,7 @@ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, Smith
|
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
10
10
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
11
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
|
|
11
12
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
|
|
12
13
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
|
|
13
14
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
|
|
@@ -15,8 +16,8 @@ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from
|
|
|
15
16
|
import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
|
|
16
17
|
import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
|
|
17
18
|
import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
|
|
18
|
-
export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
|
|
19
|
-
export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
|
|
19
|
+
export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput;
|
|
20
|
+
export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput;
|
|
20
21
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
21
22
|
|
|
22
23
|
requestHandler?: __HttpHandler;
|
|
@@ -47,6 +48,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
47
48
|
|
|
48
49
|
logger?: __Logger;
|
|
49
50
|
|
|
51
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
52
|
+
|
|
53
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
54
|
+
|
|
50
55
|
serviceId?: string;
|
|
51
56
|
|
|
52
57
|
region?: string | __Provider<string>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AnalyzeIDRequest, AnalyzeIDResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
5
|
+
export interface AnalyzeIDCommandInput extends AnalyzeIDRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class AnalyzeIDCommand extends $Command<AnalyzeIDCommandInput, AnalyzeIDCommandOutput, TextractClientResolvedConfig> {
|
|
11
|
+
readonly input: AnalyzeIDCommandInput;
|
|
12
|
+
constructor(input: AnalyzeIDCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeIDCommandInput, AnalyzeIDCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AnalyzeDocumentCommand";
|
|
2
2
|
export * from "./AnalyzeExpenseCommand";
|
|
3
|
+
export * from "./AnalyzeIDCommand";
|
|
3
4
|
export * from "./DetectDocumentTextCommand";
|
|
4
5
|
export * from "./GetDocumentAnalysisCommand";
|
|
5
6
|
export * from "./GetDocumentTextDetectionCommand";
|
|
@@ -417,6 +417,75 @@ export declare namespace AnalyzeExpenseResponse {
|
|
|
417
417
|
|
|
418
418
|
const filterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
|
|
419
419
|
}
|
|
420
|
+
export interface AnalyzeIDRequest {
|
|
421
|
+
|
|
422
|
+
DocumentPages: Document[] | undefined;
|
|
423
|
+
}
|
|
424
|
+
export declare namespace AnalyzeIDRequest {
|
|
425
|
+
|
|
426
|
+
const filterSensitiveLog: (obj: AnalyzeIDRequest) => any;
|
|
427
|
+
}
|
|
428
|
+
export declare enum ValueType {
|
|
429
|
+
DATE = "DATE"
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface NormalizedValue {
|
|
433
|
+
|
|
434
|
+
Value?: string;
|
|
435
|
+
|
|
436
|
+
ValueType?: ValueType | string;
|
|
437
|
+
}
|
|
438
|
+
export declare namespace NormalizedValue {
|
|
439
|
+
|
|
440
|
+
const filterSensitiveLog: (obj: NormalizedValue) => any;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface AnalyzeIDDetections {
|
|
444
|
+
|
|
445
|
+
Text: string | undefined;
|
|
446
|
+
|
|
447
|
+
NormalizedValue?: NormalizedValue;
|
|
448
|
+
|
|
449
|
+
Confidence?: number;
|
|
450
|
+
}
|
|
451
|
+
export declare namespace AnalyzeIDDetections {
|
|
452
|
+
|
|
453
|
+
const filterSensitiveLog: (obj: AnalyzeIDDetections) => any;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface IdentityDocumentField {
|
|
457
|
+
|
|
458
|
+
Type?: AnalyzeIDDetections;
|
|
459
|
+
|
|
460
|
+
ValueDetection?: AnalyzeIDDetections;
|
|
461
|
+
}
|
|
462
|
+
export declare namespace IdentityDocumentField {
|
|
463
|
+
|
|
464
|
+
const filterSensitiveLog: (obj: IdentityDocumentField) => any;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface IdentityDocument {
|
|
468
|
+
|
|
469
|
+
DocumentIndex?: number;
|
|
470
|
+
|
|
471
|
+
IdentityDocumentFields?: IdentityDocumentField[];
|
|
472
|
+
}
|
|
473
|
+
export declare namespace IdentityDocument {
|
|
474
|
+
|
|
475
|
+
const filterSensitiveLog: (obj: IdentityDocument) => any;
|
|
476
|
+
}
|
|
477
|
+
export interface AnalyzeIDResponse {
|
|
478
|
+
|
|
479
|
+
IdentityDocuments?: IdentityDocument[];
|
|
480
|
+
|
|
481
|
+
DocumentMetadata?: DocumentMetadata;
|
|
482
|
+
|
|
483
|
+
AnalyzeIDModelVersion?: string;
|
|
484
|
+
}
|
|
485
|
+
export declare namespace AnalyzeIDResponse {
|
|
486
|
+
|
|
487
|
+
const filterSensitiveLog: (obj: AnalyzeIDResponse) => any;
|
|
488
|
+
}
|
|
420
489
|
export interface DetectDocumentTextRequest {
|
|
421
490
|
|
|
422
491
|
Document: Document | undefined;
|
|
@@ -2,6 +2,7 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "../commands/AnalyzeDocumentCommand";
|
|
4
4
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../commands/AnalyzeExpenseCommand";
|
|
5
|
+
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "../commands/AnalyzeIDCommand";
|
|
5
6
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
|
|
6
7
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
|
|
7
8
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
|
|
@@ -11,6 +12,7 @@ import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionComma
|
|
|
11
12
|
import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
|
|
12
13
|
export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
14
|
export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
export declare const serializeAws_json1_1AnalyzeIDCommand: (input: AnalyzeIDCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
16
|
export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
17
|
export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
18
|
export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -20,6 +22,7 @@ export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (inp
|
|
|
20
22
|
export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
23
|
export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
|
|
22
24
|
export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
|
|
25
|
+
export declare const deserializeAws_json1_1AnalyzeIDCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeIDCommandOutput>;
|
|
23
26
|
export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
|
|
24
27
|
export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
|
|
25
28
|
export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
|