@aws-sdk/client-textract 3.41.0 → 3.46.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 +47 -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 +1 -0
- package/dist-cjs/models/models_0.js +42 -2
- package/dist-cjs/protocols/Aws_json1_1.js +204 -1
- package/dist-cjs/runtimeConfig.js +0 -2
- 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 +1 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +211 -0
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/Textract.d.ts +11 -1
- package/dist-types/TextractClient.d.ts +3 -2
- package/dist-types/commands/AnalyzeExpenseCommand.d.ts +2 -1
- package/dist-types/commands/AnalyzeIDCommand.d.ts +37 -0
- 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 +36 -43
|
@@ -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,18 +1,17 @@
|
|
|
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.46.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
-
"clean:dist": "rimraf ./dist",
|
|
13
|
-
"clean:docs": "rimraf ./docs"
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
13
|
+
"clean:dist": "rimraf ./dist-*",
|
|
14
|
+
"clean:docs": "rimraf ./docs"
|
|
16
15
|
},
|
|
17
16
|
"main": "./dist-cjs/index.js",
|
|
18
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,48 +20,42 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
22
|
"@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.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.46.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.46.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.46.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.46.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.46.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.46.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.46.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.46.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.46.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.46.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.46.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.46.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.46.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.46.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.46.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.46.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.46.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.46.0",
|
|
41
|
+
"@aws-sdk/types": "3.46.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.46.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.46.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.46.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.46.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.46.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.46.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.46.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.46.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.46.0",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
-
"@types/node": "^12.7.5"
|
|
57
|
-
"downlevel-dts": "0.7.0",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"rimraf": "^3.0.0",
|
|
60
|
-
"ts-jest": "^26.4.1",
|
|
61
|
-
"typedoc": "^0.19.2",
|
|
62
|
-
"typescript": "~4.3.5"
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.46.0",
|
|
55
|
+
"@types/node": "^12.7.5"
|
|
63
56
|
},
|
|
64
57
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
66
59
|
},
|
|
67
60
|
"typesVersions": {
|
|
68
61
|
"<4.0": {
|