@aws-sdk/client-textract 3.215.0 → 3.218.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 (35) hide show
  1. package/dist-cjs/Textract.js +45 -0
  2. package/dist-cjs/commands/GetLendingAnalysisCommand.js +46 -0
  3. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +46 -0
  4. package/dist-cjs/commands/StartLendingAnalysisCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +1 -1
  7. package/dist-cjs/models/models_0.js +77 -1
  8. package/dist-cjs/protocols/Aws_json1_1.js +501 -1
  9. package/dist-es/Textract.js +45 -0
  10. package/dist-es/commands/GetLendingAnalysisCommand.js +42 -0
  11. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +42 -0
  12. package/dist-es/commands/StartLendingAnalysisCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/endpoint/ruleset.js +1 -1
  15. package/dist-es/models/models_0.js +57 -0
  16. package/dist-es/protocols/Aws_json1_1.js +494 -0
  17. package/dist-types/Textract.d.ts +72 -0
  18. package/dist-types/TextractClient.d.ts +5 -2
  19. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +47 -0
  20. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +48 -0
  21. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +67 -0
  22. package/dist-types/commands/index.d.ts +3 -0
  23. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  24. package/dist-types/models/models_0.d.ts +431 -10
  25. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  26. package/dist-types/ts3.4/Textract.d.ts +51 -0
  27. package/dist-types/ts3.4/TextractClient.d.ts +20 -2
  28. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +38 -0
  29. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +41 -0
  30. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +41 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  32. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  33. package/dist-types/ts3.4/models/models_0.d.ts +144 -0
  34. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  35. package/package.json +4 -4
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ GetLendingAnalysisRequest,
11
+ GetLendingAnalysisResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ TextractClientResolvedConfig,
17
+ } from "../TextractClient";
18
+ export interface GetLendingAnalysisCommandInput
19
+ extends GetLendingAnalysisRequest {}
20
+ export interface GetLendingAnalysisCommandOutput
21
+ extends GetLendingAnalysisResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetLendingAnalysisCommand extends $Command<
24
+ GetLendingAnalysisCommandInput,
25
+ GetLendingAnalysisCommandOutput,
26
+ TextractClientResolvedConfig
27
+ > {
28
+ readonly input: GetLendingAnalysisCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetLendingAnalysisCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: TextractClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ GetLendingAnalysisSummaryRequest,
11
+ GetLendingAnalysisSummaryResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ TextractClientResolvedConfig,
17
+ } from "../TextractClient";
18
+ export interface GetLendingAnalysisSummaryCommandInput
19
+ extends GetLendingAnalysisSummaryRequest {}
20
+ export interface GetLendingAnalysisSummaryCommandOutput
21
+ extends GetLendingAnalysisSummaryResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetLendingAnalysisSummaryCommand extends $Command<
24
+ GetLendingAnalysisSummaryCommandInput,
25
+ GetLendingAnalysisSummaryCommandOutput,
26
+ TextractClientResolvedConfig
27
+ > {
28
+ readonly input: GetLendingAnalysisSummaryCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetLendingAnalysisSummaryCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: TextractClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ GetLendingAnalysisSummaryCommandInput,
37
+ GetLendingAnalysisSummaryCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ StartLendingAnalysisRequest,
11
+ StartLendingAnalysisResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ TextractClientResolvedConfig,
17
+ } from "../TextractClient";
18
+ export interface StartLendingAnalysisCommandInput
19
+ extends StartLendingAnalysisRequest {}
20
+ export interface StartLendingAnalysisCommandOutput
21
+ extends StartLendingAnalysisResponse,
22
+ __MetadataBearer {}
23
+ export declare class StartLendingAnalysisCommand extends $Command<
24
+ StartLendingAnalysisCommandInput,
25
+ StartLendingAnalysisCommandOutput,
26
+ TextractClientResolvedConfig
27
+ > {
28
+ readonly input: StartLendingAnalysisCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: StartLendingAnalysisCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: TextractClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ StartLendingAnalysisCommandInput,
37
+ StartLendingAnalysisCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -5,6 +5,9 @@ export * from "./DetectDocumentTextCommand";
5
5
  export * from "./GetDocumentAnalysisCommand";
6
6
  export * from "./GetDocumentTextDetectionCommand";
7
7
  export * from "./GetExpenseAnalysisCommand";
8
+ export * from "./GetLendingAnalysisCommand";
9
+ export * from "./GetLendingAnalysisSummaryCommand";
8
10
  export * from "./StartDocumentAnalysisCommand";
9
11
  export * from "./StartDocumentTextDetectionCommand";
10
12
  export * from "./StartExpenseAnalysisCommand";
13
+ export * from "./StartLendingAnalysisCommand";
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -309,9 +309,49 @@ export interface DetectDocumentTextResponse {
309
309
  Blocks?: Block[];
310
310
  DetectDocumentTextModelVersion?: string;
311
311
  }
312
+ export interface DetectedSignature {
313
+ Page?: number;
314
+ }
315
+ export interface SplitDocument {
316
+ Index?: number;
317
+ Pages?: number[];
318
+ }
319
+ export interface UndetectedSignature {
320
+ Page?: number;
321
+ }
322
+ export interface DocumentGroup {
323
+ Type?: string;
324
+ SplitDocuments?: SplitDocument[];
325
+ DetectedSignatures?: DetectedSignature[];
326
+ UndetectedSignatures?: UndetectedSignature[];
327
+ }
312
328
  export interface DocumentLocation {
313
329
  S3Object?: S3Object;
314
330
  }
331
+ export interface LendingDetection {
332
+ Text?: string;
333
+ SelectionStatus?: SelectionStatus | string;
334
+ Geometry?: Geometry;
335
+ Confidence?: number;
336
+ }
337
+ export interface LendingField {
338
+ Type?: string;
339
+ KeyDetection?: LendingDetection;
340
+ ValueDetections?: LendingDetection[];
341
+ }
342
+ export interface SignatureDetection {
343
+ Confidence?: number;
344
+ Geometry?: Geometry;
345
+ }
346
+ export interface LendingDocument {
347
+ LendingFields?: LendingField[];
348
+ SignatureDetections?: SignatureDetection[];
349
+ }
350
+ export interface Extraction {
351
+ LendingDocument?: LendingDocument;
352
+ ExpenseDocument?: ExpenseDocument;
353
+ IdentityDocument?: IdentityDocument;
354
+ }
315
355
  export interface GetDocumentAnalysisRequest {
316
356
  JobId: string | undefined;
317
357
  MaxResults?: number;
@@ -382,6 +422,48 @@ export interface GetExpenseAnalysisResponse {
382
422
  StatusMessage?: string;
383
423
  AnalyzeExpenseModelVersion?: string;
384
424
  }
425
+ export interface GetLendingAnalysisRequest {
426
+ JobId: string | undefined;
427
+ MaxResults?: number;
428
+ NextToken?: string;
429
+ }
430
+ export interface Prediction {
431
+ Value?: string;
432
+ Confidence?: number;
433
+ }
434
+ export interface PageClassification {
435
+ PageType: Prediction[] | undefined;
436
+ PageNumber: Prediction[] | undefined;
437
+ }
438
+ export interface LendingResult {
439
+ Page?: number;
440
+ PageClassification?: PageClassification;
441
+ Extractions?: Extraction[];
442
+ }
443
+ export interface GetLendingAnalysisResponse {
444
+ DocumentMetadata?: DocumentMetadata;
445
+ JobStatus?: JobStatus | string;
446
+ NextToken?: string;
447
+ Results?: LendingResult[];
448
+ Warnings?: Warning[];
449
+ StatusMessage?: string;
450
+ AnalyzeLendingModelVersion?: string;
451
+ }
452
+ export interface GetLendingAnalysisSummaryRequest {
453
+ JobId: string | undefined;
454
+ }
455
+ export interface LendingSummary {
456
+ DocumentGroups?: DocumentGroup[];
457
+ UndetectedDocumentTypes?: string[];
458
+ }
459
+ export interface GetLendingAnalysisSummaryResponse {
460
+ DocumentMetadata?: DocumentMetadata;
461
+ JobStatus?: JobStatus | string;
462
+ Summary?: LendingSummary;
463
+ Warnings?: Warning[];
464
+ StatusMessage?: string;
465
+ AnalyzeLendingModelVersion?: string;
466
+ }
385
467
  export declare class IdempotentParameterMismatchException extends __BaseException {
386
468
  readonly name: "IdempotentParameterMismatchException";
387
469
  readonly $fault: "client";
@@ -446,6 +528,17 @@ export interface StartExpenseAnalysisRequest {
446
528
  export interface StartExpenseAnalysisResponse {
447
529
  JobId?: string;
448
530
  }
531
+ export interface StartLendingAnalysisRequest {
532
+ DocumentLocation: DocumentLocation | undefined;
533
+ ClientRequestToken?: string;
534
+ JobTag?: string;
535
+ NotificationChannel?: NotificationChannel;
536
+ OutputConfig?: OutputConfig;
537
+ KMSKeyId?: string;
538
+ }
539
+ export interface StartLendingAnalysisResponse {
540
+ JobId?: string;
541
+ }
449
542
  export declare const S3ObjectFilterSensitiveLog: (obj: S3Object) => any;
450
543
  export declare const DocumentFilterSensitiveLog: (obj: Document) => any;
451
544
  export declare const HumanLoopDataAttributesFilterSensitiveLog: (
@@ -525,9 +618,32 @@ export declare const DetectDocumentTextRequestFilterSensitiveLog: (
525
618
  export declare const DetectDocumentTextResponseFilterSensitiveLog: (
526
619
  obj: DetectDocumentTextResponse
527
620
  ) => any;
621
+ export declare const DetectedSignatureFilterSensitiveLog: (
622
+ obj: DetectedSignature
623
+ ) => any;
624
+ export declare const SplitDocumentFilterSensitiveLog: (
625
+ obj: SplitDocument
626
+ ) => any;
627
+ export declare const UndetectedSignatureFilterSensitiveLog: (
628
+ obj: UndetectedSignature
629
+ ) => any;
630
+ export declare const DocumentGroupFilterSensitiveLog: (
631
+ obj: DocumentGroup
632
+ ) => any;
528
633
  export declare const DocumentLocationFilterSensitiveLog: (
529
634
  obj: DocumentLocation
530
635
  ) => any;
636
+ export declare const LendingDetectionFilterSensitiveLog: (
637
+ obj: LendingDetection
638
+ ) => any;
639
+ export declare const LendingFieldFilterSensitiveLog: (obj: LendingField) => any;
640
+ export declare const SignatureDetectionFilterSensitiveLog: (
641
+ obj: SignatureDetection
642
+ ) => any;
643
+ export declare const LendingDocumentFilterSensitiveLog: (
644
+ obj: LendingDocument
645
+ ) => any;
646
+ export declare const ExtractionFilterSensitiveLog: (obj: Extraction) => any;
531
647
  export declare const GetDocumentAnalysisRequestFilterSensitiveLog: (
532
648
  obj: GetDocumentAnalysisRequest
533
649
  ) => any;
@@ -547,6 +663,28 @@ export declare const GetExpenseAnalysisRequestFilterSensitiveLog: (
547
663
  export declare const GetExpenseAnalysisResponseFilterSensitiveLog: (
548
664
  obj: GetExpenseAnalysisResponse
549
665
  ) => any;
666
+ export declare const GetLendingAnalysisRequestFilterSensitiveLog: (
667
+ obj: GetLendingAnalysisRequest
668
+ ) => any;
669
+ export declare const PredictionFilterSensitiveLog: (obj: Prediction) => any;
670
+ export declare const PageClassificationFilterSensitiveLog: (
671
+ obj: PageClassification
672
+ ) => any;
673
+ export declare const LendingResultFilterSensitiveLog: (
674
+ obj: LendingResult
675
+ ) => any;
676
+ export declare const GetLendingAnalysisResponseFilterSensitiveLog: (
677
+ obj: GetLendingAnalysisResponse
678
+ ) => any;
679
+ export declare const GetLendingAnalysisSummaryRequestFilterSensitiveLog: (
680
+ obj: GetLendingAnalysisSummaryRequest
681
+ ) => any;
682
+ export declare const LendingSummaryFilterSensitiveLog: (
683
+ obj: LendingSummary
684
+ ) => any;
685
+ export declare const GetLendingAnalysisSummaryResponseFilterSensitiveLog: (
686
+ obj: GetLendingAnalysisSummaryResponse
687
+ ) => any;
550
688
  export declare const NotificationChannelFilterSensitiveLog: (
551
689
  obj: NotificationChannel
552
690
  ) => any;
@@ -569,3 +707,9 @@ export declare const StartExpenseAnalysisRequestFilterSensitiveLog: (
569
707
  export declare const StartExpenseAnalysisResponseFilterSensitiveLog: (
570
708
  obj: StartExpenseAnalysisResponse
571
709
  ) => any;
710
+ export declare const StartLendingAnalysisRequestFilterSensitiveLog: (
711
+ obj: StartLendingAnalysisRequest
712
+ ) => any;
713
+ export declare const StartLendingAnalysisResponseFilterSensitiveLog: (
714
+ obj: StartLendingAnalysisResponse
715
+ ) => any;
@@ -31,6 +31,14 @@ import {
31
31
  GetExpenseAnalysisCommandInput,
32
32
  GetExpenseAnalysisCommandOutput,
33
33
  } from "../commands/GetExpenseAnalysisCommand";
34
+ import {
35
+ GetLendingAnalysisCommandInput,
36
+ GetLendingAnalysisCommandOutput,
37
+ } from "../commands/GetLendingAnalysisCommand";
38
+ import {
39
+ GetLendingAnalysisSummaryCommandInput,
40
+ GetLendingAnalysisSummaryCommandOutput,
41
+ } from "../commands/GetLendingAnalysisSummaryCommand";
34
42
  import {
35
43
  StartDocumentAnalysisCommandInput,
36
44
  StartDocumentAnalysisCommandOutput,
@@ -43,6 +51,10 @@ import {
43
51
  StartExpenseAnalysisCommandInput,
44
52
  StartExpenseAnalysisCommandOutput,
45
53
  } from "../commands/StartExpenseAnalysisCommand";
54
+ import {
55
+ StartLendingAnalysisCommandInput,
56
+ StartLendingAnalysisCommandOutput,
57
+ } from "../commands/StartLendingAnalysisCommand";
46
58
  export declare const serializeAws_json1_1AnalyzeDocumentCommand: (
47
59
  input: AnalyzeDocumentCommandInput,
48
60
  context: __SerdeContext
@@ -71,6 +83,14 @@ export declare const serializeAws_json1_1GetExpenseAnalysisCommand: (
71
83
  input: GetExpenseAnalysisCommandInput,
72
84
  context: __SerdeContext
73
85
  ) => Promise<__HttpRequest>;
86
+ export declare const serializeAws_json1_1GetLendingAnalysisCommand: (
87
+ input: GetLendingAnalysisCommandInput,
88
+ context: __SerdeContext
89
+ ) => Promise<__HttpRequest>;
90
+ export declare const serializeAws_json1_1GetLendingAnalysisSummaryCommand: (
91
+ input: GetLendingAnalysisSummaryCommandInput,
92
+ context: __SerdeContext
93
+ ) => Promise<__HttpRequest>;
74
94
  export declare const serializeAws_json1_1StartDocumentAnalysisCommand: (
75
95
  input: StartDocumentAnalysisCommandInput,
76
96
  context: __SerdeContext
@@ -83,6 +103,10 @@ export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (
83
103
  input: StartExpenseAnalysisCommandInput,
84
104
  context: __SerdeContext
85
105
  ) => Promise<__HttpRequest>;
106
+ export declare const serializeAws_json1_1StartLendingAnalysisCommand: (
107
+ input: StartLendingAnalysisCommandInput,
108
+ context: __SerdeContext
109
+ ) => Promise<__HttpRequest>;
86
110
  export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (
87
111
  output: __HttpResponse,
88
112
  context: __SerdeContext
@@ -111,6 +135,14 @@ export declare const deserializeAws_json1_1GetExpenseAnalysisCommand: (
111
135
  output: __HttpResponse,
112
136
  context: __SerdeContext
113
137
  ) => Promise<GetExpenseAnalysisCommandOutput>;
138
+ export declare const deserializeAws_json1_1GetLendingAnalysisCommand: (
139
+ output: __HttpResponse,
140
+ context: __SerdeContext
141
+ ) => Promise<GetLendingAnalysisCommandOutput>;
142
+ export declare const deserializeAws_json1_1GetLendingAnalysisSummaryCommand: (
143
+ output: __HttpResponse,
144
+ context: __SerdeContext
145
+ ) => Promise<GetLendingAnalysisSummaryCommandOutput>;
114
146
  export declare const deserializeAws_json1_1StartDocumentAnalysisCommand: (
115
147
  output: __HttpResponse,
116
148
  context: __SerdeContext
@@ -123,3 +155,7 @@ export declare const deserializeAws_json1_1StartExpenseAnalysisCommand: (
123
155
  output: __HttpResponse,
124
156
  context: __SerdeContext
125
157
  ) => Promise<StartExpenseAnalysisCommandOutput>;
158
+ export declare const deserializeAws_json1_1StartLendingAnalysisCommand: (
159
+ output: __HttpResponse,
160
+ context: __SerdeContext
161
+ ) => Promise<StartLendingAnalysisCommandOutput>;
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.215.0",
4
+ "version": "3.218.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.215.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.216.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.215.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",