@aws-sdk/client-textract 3.40.0 → 3.45.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 +9 -0
- package/dist-cjs/models/models_0.js +42 -2
- package/dist-cjs/protocols/Aws_json1_1.js +204 -1
- 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 +9 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +211 -0
- package/dist-types/Textract.d.ts +11 -1
- package/dist-types/TextractClient.d.ts +3 -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/ts3.4/Textract.d.ts +5 -0
- package/dist-types/ts3.4/TextractClient.d.ts +3 -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/package.json +6 -6
|
@@ -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;
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.45.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.45.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.45.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.45.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.40.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.40.0",
|
|
33
33
|
"@aws-sdk/middleware-retry": "3.40.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.40.0",
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.45.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.40.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.40.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.40.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.40.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.41.0",
|
|
42
42
|
"@aws-sdk/types": "3.40.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.40.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.37.0",
|