@aws-sdk/client-textract 3.38.0 → 3.42.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 (47) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/Textract.js +30 -0
  3. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +36 -0
  4. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoints.js +156 -26
  7. package/dist-cjs/models/models_0.js +26 -2
  8. package/dist-cjs/protocols/Aws_json1_1.js +306 -1
  9. package/dist-cjs/runtimeConfig.browser.js +6 -3
  10. package/dist-cjs/runtimeConfig.js +5 -3
  11. package/dist-es/Textract.js +30 -0
  12. package/dist-es/commands/GetExpenseAnalysisCommand.js +39 -0
  13. package/dist-es/commands/StartExpenseAnalysisCommand.js +39 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/endpoints.js +156 -26
  16. package/dist-es/models/models_0.js +16 -0
  17. package/dist-es/protocols/Aws_json1_1.js +314 -0
  18. package/dist-es/runtimeConfig.browser.js +3 -2
  19. package/dist-es/runtimeConfig.js +3 -3
  20. package/dist-types/Textract.d.ts +47 -2
  21. package/dist-types/TextractClient.d.ts +12 -2
  22. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +1 -1
  23. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +1 -1
  24. package/dist-types/commands/DetectDocumentTextCommand.d.ts +1 -1
  25. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +1 -1
  26. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +1 -1
  27. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +51 -0
  28. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +2 -2
  29. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +2 -2
  30. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +50 -0
  31. package/dist-types/commands/index.d.ts +2 -0
  32. package/dist-types/models/models_0.d.ts +123 -2
  33. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  35. package/dist-types/runtimeConfig.d.ts +2 -0
  36. package/dist-types/runtimeConfig.native.d.ts +2 -0
  37. package/dist-types/ts3.4/Textract.d.ts +10 -0
  38. package/dist-types/ts3.4/TextractClient.d.ts +8 -2
  39. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  47. package/package.json +25 -25
@@ -11,10 +11,12 @@ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./comma
11
11
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
12
12
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
13
13
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
14
+ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "./commands/GetExpenseAnalysisCommand";
14
15
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
15
16
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
16
- export declare type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput;
17
- export declare type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput;
17
+ 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;
18
20
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
19
21
 
20
22
  requestHandler?: __HttpHandler;
@@ -45,6 +47,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
45
47
 
46
48
  logger?: __Logger;
47
49
 
50
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
51
+
52
+ useFipsEndpoint?: boolean | __Provider<boolean>;
53
+
48
54
  serviceId?: string;
49
55
 
50
56
  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 { GetExpenseAnalysisRequest, GetExpenseAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface GetExpenseAnalysisCommandInput extends GetExpenseAnalysisRequest {
6
+ }
7
+ export interface GetExpenseAnalysisCommandOutput extends GetExpenseAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GetExpenseAnalysisCommand extends $Command<GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: GetExpenseAnalysisCommandInput;
12
+ constructor(input: GetExpenseAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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 { StartExpenseAnalysisRequest, StartExpenseAnalysisResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
5
+ export interface StartExpenseAnalysisCommandInput extends StartExpenseAnalysisRequest {
6
+ }
7
+ export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartExpenseAnalysisCommand extends $Command<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
11
+ readonly input: StartExpenseAnalysisCommandInput;
12
+ constructor(input: StartExpenseAnalysisCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -3,5 +3,7 @@ export * from "./AnalyzeExpenseCommand";
3
3
  export * from "./DetectDocumentTextCommand";
4
4
  export * from "./GetDocumentAnalysisCommand";
5
5
  export * from "./GetDocumentTextDetectionCommand";
6
+ export * from "./GetExpenseAnalysisCommand";
6
7
  export * from "./StartDocumentAnalysisCommand";
7
8
  export * from "./StartDocumentTextDetectionCommand";
9
+ export * from "./StartExpenseAnalysisCommand";
@@ -549,6 +549,38 @@ export declare namespace GetDocumentTextDetectionResponse {
549
549
 
550
550
  const filterSensitiveLog: (obj: GetDocumentTextDetectionResponse) => any;
551
551
  }
552
+ export interface GetExpenseAnalysisRequest {
553
+
554
+ JobId: string | undefined;
555
+
556
+ MaxResults?: number;
557
+
558
+ NextToken?: string;
559
+ }
560
+ export declare namespace GetExpenseAnalysisRequest {
561
+
562
+ const filterSensitiveLog: (obj: GetExpenseAnalysisRequest) => any;
563
+ }
564
+ export interface GetExpenseAnalysisResponse {
565
+
566
+ DocumentMetadata?: DocumentMetadata;
567
+
568
+ JobStatus?: JobStatus | string;
569
+
570
+ NextToken?: string;
571
+
572
+ ExpenseDocuments?: ExpenseDocument[];
573
+
574
+ Warnings?: Warning[];
575
+
576
+ StatusMessage?: string;
577
+
578
+ AnalyzeExpenseModelVersion?: string;
579
+ }
580
+ export declare namespace GetExpenseAnalysisResponse {
581
+
582
+ const filterSensitiveLog: (obj: GetExpenseAnalysisResponse) => any;
583
+ }
552
584
 
553
585
  export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
554
586
  name: "IdempotentParameterMismatchException";
@@ -647,3 +679,29 @@ export declare namespace StartDocumentTextDetectionResponse {
647
679
 
648
680
  const filterSensitiveLog: (obj: StartDocumentTextDetectionResponse) => any;
649
681
  }
682
+ export interface StartExpenseAnalysisRequest {
683
+
684
+ DocumentLocation: DocumentLocation | undefined;
685
+
686
+ ClientRequestToken?: string;
687
+
688
+ JobTag?: string;
689
+
690
+ NotificationChannel?: NotificationChannel;
691
+
692
+ OutputConfig?: OutputConfig;
693
+
694
+ KMSKeyId?: string;
695
+ }
696
+ export declare namespace StartExpenseAnalysisRequest {
697
+
698
+ const filterSensitiveLog: (obj: StartExpenseAnalysisRequest) => any;
699
+ }
700
+ export interface StartExpenseAnalysisResponse {
701
+
702
+ JobId?: string;
703
+ }
704
+ export declare namespace StartExpenseAnalysisResponse {
705
+
706
+ const filterSensitiveLog: (obj: StartExpenseAnalysisResponse) => any;
707
+ }
@@ -5,19 +5,25 @@ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../comm
5
5
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
6
6
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
7
7
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
8
+ import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "../commands/GetExpenseAnalysisCommand";
8
9
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "../commands/StartDocumentAnalysisCommand";
9
10
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "../commands/StartDocumentTextDetectionCommand";
11
+ import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
10
12
  export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
13
  export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
14
  export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
15
  export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
16
  export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
+ export declare const serializeAws_json1_1GetExpenseAnalysisCommand: (input: GetExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
18
  export declare const serializeAws_json1_1StartDocumentAnalysisCommand: (input: StartDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
19
  export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (input: StartDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
+ export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
21
  export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
18
22
  export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
19
23
  export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
20
24
  export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
21
25
  export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
26
+ export declare const deserializeAws_json1_1GetExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExpenseAnalysisCommandOutput>;
22
27
  export declare const deserializeAws_json1_1StartDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentAnalysisCommandOutput>;
23
28
  export declare const deserializeAws_json1_1StartDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentTextDetectionCommandOutput>;
29
+ export declare const deserializeAws_json1_1StartExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartExpenseAnalysisCommandOutput>;
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
16
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
18
  logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  serviceId: string;
20
22
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
21
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
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.38.0",
4
+ "version": "3.42.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -19,34 +19,34 @@
19
19
  "module": "./dist-es/index.js",
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@aws-crypto/sha256-browser": "^1.0.0",
23
- "@aws-crypto/sha256-js": "^1.0.0",
24
- "@aws-sdk/client-sts": "3.38.0",
25
- "@aws-sdk/config-resolver": "3.38.0",
26
- "@aws-sdk/credential-provider-node": "3.38.0",
27
- "@aws-sdk/fetch-http-handler": "3.38.0",
28
- "@aws-sdk/hash-node": "3.38.0",
29
- "@aws-sdk/invalid-dependency": "3.38.0",
30
- "@aws-sdk/middleware-content-length": "3.38.0",
31
- "@aws-sdk/middleware-host-header": "3.38.0",
32
- "@aws-sdk/middleware-logger": "3.38.0",
33
- "@aws-sdk/middleware-retry": "3.38.0",
34
- "@aws-sdk/middleware-serde": "3.38.0",
35
- "@aws-sdk/middleware-signing": "3.38.0",
36
- "@aws-sdk/middleware-stack": "3.38.0",
37
- "@aws-sdk/middleware-user-agent": "3.38.0",
38
- "@aws-sdk/node-config-provider": "3.38.0",
39
- "@aws-sdk/node-http-handler": "3.38.0",
40
- "@aws-sdk/protocol-http": "3.38.0",
41
- "@aws-sdk/smithy-client": "3.38.0",
42
- "@aws-sdk/types": "3.38.0",
43
- "@aws-sdk/url-parser": "3.38.0",
22
+ "@aws-crypto/sha256-browser": "2.0.0",
23
+ "@aws-crypto/sha256-js": "2.0.0",
24
+ "@aws-sdk/client-sts": "3.42.0",
25
+ "@aws-sdk/config-resolver": "3.40.0",
26
+ "@aws-sdk/credential-provider-node": "3.41.0",
27
+ "@aws-sdk/fetch-http-handler": "3.40.0",
28
+ "@aws-sdk/hash-node": "3.40.0",
29
+ "@aws-sdk/invalid-dependency": "3.40.0",
30
+ "@aws-sdk/middleware-content-length": "3.40.0",
31
+ "@aws-sdk/middleware-host-header": "3.40.0",
32
+ "@aws-sdk/middleware-logger": "3.40.0",
33
+ "@aws-sdk/middleware-retry": "3.40.0",
34
+ "@aws-sdk/middleware-serde": "3.40.0",
35
+ "@aws-sdk/middleware-signing": "3.40.0",
36
+ "@aws-sdk/middleware-stack": "3.40.0",
37
+ "@aws-sdk/middleware-user-agent": "3.40.0",
38
+ "@aws-sdk/node-config-provider": "3.40.0",
39
+ "@aws-sdk/node-http-handler": "3.40.0",
40
+ "@aws-sdk/protocol-http": "3.40.0",
41
+ "@aws-sdk/smithy-client": "3.41.0",
42
+ "@aws-sdk/types": "3.40.0",
43
+ "@aws-sdk/url-parser": "3.40.0",
44
44
  "@aws-sdk/util-base64-browser": "3.37.0",
45
45
  "@aws-sdk/util-base64-node": "3.37.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.37.0",
47
47
  "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.38.0",
49
- "@aws-sdk/util-user-agent-node": "3.38.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.40.0",
49
+ "@aws-sdk/util-user-agent-node": "3.40.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.37.0",
51
51
  "@aws-sdk/util-utf8-node": "3.37.0",
52
52
  "tslib": "^2.3.0"